/* Visual language v2 (15/10, Aziz; references docs/ui_mock/mock_dashboard_v2.html and mock_portal_v2.html, rules in
   UI_GUIDE.md). Cream background, navy gradient header with the key numbers, white cards rounded 18 to 20 px with a light
   shadow, coloured pills on the right, people tiles that scroll, day pills, a tab bar at the bottom on a phone and a navy
   sidebar on a computer. Poppins everywhere. Change the colours here only. Loaded after Tailwind and mobile.css. */

/* Poppins served by the app itself (the brand kit's files, OFL licence): no third-party font service, allowed by the CSP. */
@font-face { font-family: Poppins; src: url("/static/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("/static/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Poppins; src: url("/static/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --navy: #0E3A5D; --deep: #0A2C47; --gold: #E8A33D; --cream: #F7F3EA; --ink: #14212B; --muted: #5E6A78;  /* 6B7785 measured 4.1:1 on cream; 5E6A78 passes 4.5:1 (finition 6) */
  --ok: #1F9D55; --ok-ink: #146C3A; --ok-bg: #DFF5E7; --warn: #D98E04; --warn-ink: #8A5A00; --warn-bg: #FDEFD2;
  --bad: #C8381F; --bad-ink: #A12C17; --bad-bg: #FBE4DF; --info-bg: #E3EBF2;
  --card: #fff; --line: #E6E0D3; --field: #D9D2C3;
  --shadow: 0 2px 8px rgba(14, 58, 93, .05);
  --nav-h: 64px;
}

body { font-size: 15px; font-family: Poppins, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; background: var(--cream); color: var(--ink); }

/* --- Cards: every white box of the app (macros and older pages alike) --------------------------------------------------- */
.ui-card, .bg-white.rounded-2xl, .bg-white.rounded-xl { border: 1px solid var(--line); }
.ui-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: 10px; }
.sec-h h2 { font-size: 15px; font-weight: 600; }
.sec-link { font-size: 13px; font-weight: 500; color: var(--navy); white-space: nowrap; text-decoration: none; }
.sec-link:hover { text-decoration: underline; }

/* Lines of a list inside a card: icon square, title, grey detail, pill on the right; a thin line between two. */
.ui-list > [data-item] + [data-item] { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.ui-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; flex: none; color: var(--navy); }
.ui-title { font-size: 13px; font-weight: 600; }
.ui-detail { font-size: 11px; color: var(--muted); }
.text-muted { color: var(--muted); }

/* --- Pills (status), tones: ok green, warn amber, danger red, neutral grey, brand navy --------------------------------- */
.ui-pill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 9999px; padding: .28rem .7rem; font-size: .78rem; line-height: 1.1rem;
  font-weight: 600; white-space: nowrap; text-decoration: none; }
.tone-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tone-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tone-danger { background: var(--bad-bg); color: var(--bad-ink); }
.tone-neutral { background: #EEF1F4; color: var(--ink); }
.tone-info { background: var(--info-bg); color: var(--navy); }
.tone-grey { background: #EEF1F4; color: var(--muted); }
.tone-brand { background: var(--navy); color: #fff; }
a.tone-neutral.ui-pill { background: #fff; border: 1px solid var(--line); }
.counter-ok { background: var(--ok-bg); color: #13703B; }
.counter-warn { background: var(--warn-bg); color: var(--warn-ink); }
.counter-danger { background: var(--bad-bg); color: var(--bad-ink); }
.counter-neutral { background: #EEF0F2; color: var(--ink); }
[data-counter] { border-radius: 14px; }

/* --- Buttons and fields ---------------------------------------------------------------------------------------------- */
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; border-radius: 14px; padding: .6rem 1.1rem;
  font-size: .875rem; font-weight: 600; min-height: 44px; text-decoration: none; cursor: pointer; }
.ui-btn-primary { background: var(--navy); color: #fff; }
.ui-btn-primary:hover { background: var(--deep); }
.ui-btn-secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.ui-btn-secondary:hover { background: var(--info-bg); }
.ui-btn-danger { background: var(--bad); color: #fff; }
.ui-btn-gold { background: var(--gold); color: var(--navy); }
input.border-slate-300, select.border-slate-300, textarea.border-slate-300 { border-color: var(--field); background-color: #fff; }
.ui-input { border: 1.5px solid var(--line) !important; border-radius: 12px; background: #fff; padding: 11px 12px; }
.ui-input:focus { border-color: var(--navy) !important; outline: none; }
.ui-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.ui-help { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.ui-btn-block { display: flex; width: 100%; padding: 13px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.bg-brand { background-color: var(--navy); }

/* --- Record tabs: pills in a white bar; the active one navy ----------------------------------------------------------- */
.ui-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.ui-tab { white-space: nowrap; padding: 8px 0; font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ui-tab:hover { color: var(--ink); }
.ui-tab[aria-current] { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }

/* Key facts of a record (mock 03) */
.ui-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1024px) { .ui-kv { grid-template-columns: repeat(4, 1fr); } }
.ui-kv > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ui-kv em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.ui-kv b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.ui-kv .kv-danger { color: var(--bad); } .ui-kv .kv-warn { color: var(--warn-ink); } .ui-kv .kv-ok { color: var(--ok); }

/* --- Header: navy gradient. On a phone it holds the logo, the search and the bell; on the dashboard the hero (greeting and
   the key numbers, 26 px) continues it with rounded bottom corners. On a computer: a slim bar on cream, the hero a card. */
.app-top { background: linear-gradient(160deg, var(--navy), var(--deep)); color: #fff; position: relative; }
.app-top.solo { border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; }
.hero { background: linear-gradient(160deg, var(--navy), var(--deep)); color: #fff; padding: 22px 20px 22px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
.hero-hello { font-size: 13px; opacity: .75; }
.hero-name { font-size: 20px; font-weight: 600; letter-spacing: -.2px; line-height: 1.25; }
.kpis { display: grid; gap: 10px; margin-top: 18px; }
.kpi { display: block; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 12px 12px 10px; color: #fff; text-decoration: none; min-width: 0; }
a.kpi:hover { background: rgba(255, 255, 255, .14); }
.kpi b { display: block; font-size: 26px; font-weight: 600; line-height: 1; }
.kpi span { display: block; font-size: 11px; opacity: .85; margin-top: 4px; line-height: 1.25; }
.kpi .k-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-long { display: none; }
@media (min-width: 1024px) { .kpi .k-short { display: none; } .kpi .k-long { display: block; } }
.kpi.danger b { color: #FFB3A3; } .kpi.warn b { color: #FFD58A; } .kpi.ok b { color: #9EE2B8; }
.hero-btn { display: inline-flex; align-items: center; border-radius: 9999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 500;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; }
@media (max-width: 1023px) {
  .app-top.has-hero .top-row { display: none; }
  .kpis > .kpi:nth-child(n+4) { display: none; }
  .kpis.k4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .app-top { background: transparent; color: var(--ink); }
  .app-top.solo { border-radius: 0; }
  .hero { background: none; color: var(--ink); padding: 0; border-radius: 0; }
  .hero .hero-head { display: none; }
  .kpis { margin-top: 4px; gap: 14px; }
  .kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi { background: linear-gradient(160deg, var(--navy), var(--deep)); border: 0; border-radius: 18px; padding: 16px; }
  a.kpi:hover { filter: brightness(1.08); background: linear-gradient(160deg, var(--navy), var(--deep)); }
  .kpi b { font-size: 26px; }
  .kpi span { font-size: 11px; opacity: .75; }
}

/* --- Sidebar (computer) and the « Plus » drawer (phone): the same menu ------------------------------------------------ */
.sidebar { background: linear-gradient(180deg, var(--navy), var(--deep)); color: #E7EEF5; }
.sidebar a, .sidebar summary, .sidebar button { color: inherit; }
.sidebar a:hover, .sidebar summary:hover, .sidebar button:hover { background: rgba(255, 255, 255, .08); }
.sidebar .text-slate-500, .sidebar .text-slate-400 { color: rgba(231, 238, 245, .6); }
.sidebar .text-red-700 { color: #FFB3A3; }
.sidebar .border-b, .sidebar .border-t, .sidebar .border-y { border-color: rgba(255, 255, 255, .1); }
.sidebar a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; opacity: 1; }
.side-brand { font-weight: 700; letter-spacing: 2px; font-size: 13px; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.side-brand img { width: 30px; height: 30px; border-radius: 8px; }
.sidebar nav[data-menu] a, .sidebar nav[data-menu] form button { font-size: 13px; padding: 8px 10px; margin: 1px 12px; border-radius: 10px; opacity: .88; }
.sidebar nav[data-menu] a:hover { opacity: 1; }
.sidebar nav[data-menu] details[data-menu-group] { border: 0; }
.sidebar nav[data-menu] details[data-menu-group] > summary { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; opacity: .6;
  padding: 14px 22px 6px; min-height: 0; border-radius: 0; }
.sidebar nav[data-menu] details[data-menu-group] > summary:hover { background: none; opacity: .9; }
.sidebar nav[data-menu] details[data-menu-group] > summary svg { display: none; }
.sidebar nav[data-menu] form { padding-left: 22px; padding-right: 22px; }
.sidebar [data-msg-count] { background: var(--bad); }
.sidebar select { color: var(--ink); background: #fff; }
@media (max-width: 1023px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(20rem, 88vw); z-index: 70; transform: translateX(-102%); transition: transform .15s ease;
    padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
  #nav-open:checked ~ .sidebar { transform: none; }
  #nav-open:checked ~ .nav-scrim { display: block; }
}
.nav-scrim { display: none; position: fixed; inset: 0; background: rgba(10, 44, 71, .45); z-index: 65; }

/* --- Tab bar at the bottom (phone and tablet) and the floating « + » ------------------------------------------------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); }
.tabbar a, .tabbar label { position: relative; flex: 1; max-width: 5rem; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px;
  color: var(--muted); text-decoration: none; cursor: pointer; min-height: 44px; justify-content: center; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar [aria-current="page"] { color: var(--navy); font-weight: 600; }
.tabbar [data-msg-count] { position: absolute; top: -2px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 11px; font-weight: 700;
  padding: 0 5px; border-radius: 9999px; line-height: 15px; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(232, 163, 61, .45); cursor: pointer; }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .4); }
@media (max-width: 1023px) { .shell { padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px)); } }

/* Quick add: a sheet opened by the « + » (gold, floating above the tab bar on a phone; « + Tâche » in the bar on a computer). */
.quick-sheet { display: none; position: fixed; z-index: 56; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px;
  box-shadow: 0 10px 30px rgba(14, 58, 93, .18); left: 12px; right: 12px; bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom, 0px)); }
#quick-open:checked ~ .shell .quick-sheet { display: block; }
#quick-open:checked ~ .fab { transform: rotate(45deg); }
@media (min-width: 1024px) {
  .quick-sheet { position: absolute; left: auto; bottom: auto; right: 1rem; top: 4.5rem; width: 30rem; }
  .app-top .top-row { position: relative; }
}

/* --- People tiles: a strip that scrolls on a phone, a grid from 640 px ------------------------------------------------- */
.ui-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.ui-tile.tile-danger { background: #FFF6F4; border-color: #F3C3B8; }
.ui-tile.tile-warn { background: #FFFAF0; border-color: #F2D9A6; }
.ui-pole { display: inline-block; white-space: nowrap; font-size: 11px; color: var(--muted); font-weight: 500; background: none; padding: 0; }
@media (max-width: 639px) {
  [data-cards] { grid-template-columns: minmax(0, 1fr); }
  .people-grid .pg-grid { max-width: calc(100vw - 2rem); display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .people-grid .pg-grid > [data-tile] { display: block !important; flex: 0 0 156px; scroll-snap-align: start; }
  .people-grid .pg-all { display: none !important; }
}

/* --- Day pills (content calendar) ------------------------------------------------------------------------------------ */
.day-pill { display: block; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 2px 7px; text-decoration: none; color: var(--ink); }
.day-pill em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.day-pill b { display: block; font-size: 13px; font-weight: 600; margin: 2px 0; }
.day-pill i { display: block; height: 5px; border-radius: 3px; margin: 4px 8px 0; background: #E7E2D6; }
.day-pill[aria-current="date"] { border: 2px solid var(--gold); }
.day-pill:hover { box-shadow: var(--shadow); }

/* --- Banners ----------------------------------------------------------------------------------------------------------- */
.ui-banner { border-radius: 18px; border: 1px solid transparent; }
.ui-banner.b-info { background: var(--info-bg); color: var(--navy); }
.ui-banner.b-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #F2D9A6; }
.ui-banner.b-danger { background: var(--bad-bg); color: var(--bad-ink); border-color: #F3C3B8; }

/* --- Sign-in (mock 01) ------------------------------------------------------------------------------------------------ */
.auth-top.hero { text-align: center; padding: 34px 20px 40px; }
.ui-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--gold); margin: 0 auto 14px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--navy); font-size: 20px; }
.auth-foot { text-align: center; font-size: 11px; color: var(--muted); padding: 24px 16px; }
@media (min-width: 1024px) {
  .auth-top.hero { background: linear-gradient(160deg, var(--navy), var(--deep)); color: #fff; border-radius: 0 0 28px 28px; padding: 48px 20px 52px; }
  .auth-top .hero-name, .auth-top .hero-hello { display: block; }
}

/* Finition 3: « mis à jour il y a … » is an 8 px dot in the bar (the text on hover); nothing floats over the content: the page
   keeps 96 px at the bottom on a phone (above the tab bar and the « + ») and on a computer (the Messages bubble). */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9EE2B8; font-size: 0; line-height: 0; overflow: hidden; flex: none; }
@media (min-width: 1024px) { .live-dot { background: var(--ok); } .shell { padding-bottom: 96px; } }
@media (max-width: 1023px) { .shell { padding-bottom: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom, 0px)) !important; } }
.ui-tile [data-status] .text-sm { font-size: 11px; }
.sidebar nav[data-menu] a[data-news-bubble] { color: var(--navy); background: var(--gold); opacity: 1; font-weight: 600; border-radius: 9999px; }

/* Finition 8 and 9: keyboard focus is a gold ring; 150 ms transitions on hover and folds only, never on figures. */
a:focus-visible, button:focus-visible, summary:focus-visible, label[tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold) !important; outline-offset: 2px; }
a, button, summary, .ui-btn, .ui-pill, .ui-tile, .day-pill, .kpi, .tabbar a, .tabbar label, .fab { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, opacity .15s, transform .15s; }
.ui-btn[aria-busy="true"], button[aria-busy="true"] { opacity: .7; pointer-events: none; }
.ui-btn[aria-busy="true"]::before, button[aria-busy="true"]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; display: inline-block; animation: ui-spin .7s linear infinite; margin-right: .4rem; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
.tabbar .tab-brand { width: 22px; height: 22px; }
.tabbar a:not([aria-current]) .tab-brand { filter: grayscale(1); opacity: .7; }

/* --- List page (mock 02) ----------------------------------------------------------------------------------------------- */
.list-head { background: linear-gradient(160deg, var(--navy), var(--deep)); color: #fff; padding: 22px 16px 16px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
.lh-crumb { font-size: 11px; opacity: .75; }
.lh-title { font-size: 20px; font-weight: 600; letter-spacing: -.2px; margin-top: 2px; line-height: 1.25; }
.lh-count { font-size: 13px; opacity: .7; font-weight: 400; }
.lh-search { display: flex; gap: 8px; margin-top: 14px; }
.lh-input, .lh-select { min-width: 0; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 14px; font-size: 16px; color: #fff; min-height: 44px; }
.lh-input { flex: 1; } .lh-input::placeholder { color: rgba(255, 255, 255, .75); }
.lh-select { max-width: 45%; } .lh-select option { color: var(--ink); }
.lh-chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; max-width: calc(100vw - 32px); }
@media (min-width: 1024px) { .lh-chips { max-width: none; flex-wrap: wrap; } }
.lh-chip { font-size: 11px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; white-space: nowrap; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.lh-chip:hover { background: rgba(255, 255, 255, .2); }
.lh-chip.on { background: var(--gold); color: var(--navy); }
.list-head .ui-btn-secondary { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.list-head .ui-btn { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.list-head details[data-more-menu] > div { color: var(--ink); }
@media (min-width: 1024px) {
  .list-head { max-width: 69rem; margin: 8px auto 0; width: calc(100% - 3rem); border-radius: 20px; padding: 20px 24px; }
  .lh-input { font-size: 13px; } .lh-select { font-size: 13px; max-width: 16rem; }
}
.list-card { padding-top: 4px; padding-bottom: 4px; }
.list-card > a[data-item], .list-card > div[data-item] { border-radius: 0; margin: 0 -6px; width: calc(100% + 12px); }
.list-empty { padding: 18px 4px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ui-ph { border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ui-group-h { font-size: 13px; font-weight: 600; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }

/* Tasks: the row keeps its priority bar on the left (state), the rest is the list line of mock 02 */
.task-row { background: #fff !important; border-left-width: 4px; }
.task-row.due-overdue { background: #FFF6F4 !important; }
.task-row.due-today { background: #FFFAF0 !important; }
.task-row .font-medium { font-weight: 600; font-size: 13px; }
.role-pill { background: #EEF1F4 !important; color: var(--muted) !important; font-weight: 500; font-size: 11px !important; }

/* Finition 5: the five sizes for every page, older ones included (Tailwind's text-xs to text-3xl map onto them). */
.text-\[10px\], .text-\[10\.5px\], .text-\[11px\], .text-\[11\.5px\], .text-\[12px\] { font-size: 11px !important; }
.text-\[12\.5px\], .text-\[13px\], .text-\[13\.5px\] { font-size: 13px !important; }
.ui-pill, .ui-btn, .ui-tab, .tabbar a, .tabbar label { font-size: 13px; }
.tabbar a span, .tabbar label span { font-size: 11px; }
/* Finition 6: no light grey on cream or white */
.text-slate-300, .text-slate-400, .text-slate-500, .text-slate-600 { color: var(--muted) !important; }
.date-today { color: #8A5A00 !important; } .date-overdue { color: var(--bad-ink) !important; }
/* Finition 7: 44 px touch targets on a phone */
@media (pointer: coarse), (max-width: 639px) {
  .lh-chip, a.ui-pill, button.ui-pill, label.ui-pill, .sec-link, .list-head .ui-btn, .ui-btn { min-height: 44px; }
  .sec-link { display: inline-flex; align-items: center; }
  .status-pill, select, main button, summary, main input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]) { min-height: 44px; }
  details[data-more-menu] a { min-height: 44px; display: flex; align-items: center; }
  a.ui-title { min-height: 44px; display: flex; align-items: center; }
}

/* Content platforms (15/10): grey while planned, navy once a published link exists; the link field shows for a checked platform */
.platform-icon { display: inline-flex; align-items: center; justify-content: center; color: #9AA4AE; }
.platform-icon.on { color: var(--navy); }
.plat-row:not(:has(input[type=checkbox]:checked)) .plat-link { display: none; }
