/* ============================================================
   IR Module — "Ivory & Racing Green"
   Same design language as the Olympics 2036 brief: editorial serif over a
   clean sans, hairline rules instead of heavy shadows, tracked overlines,
   light big numerals, brass + saffron accents, restrained motion.
   One light theme. Mobile first; desktop from 960px.
   ============================================================ */
:root {
  --bg: #faf7f1;
  --card: #ffffff;
  --card-2: #f8f4ec;
  --line: #ebe4d6;
  --line-2: #d9cfbd;
  --ink: #15191e;
  --ink-2: #3c4148;
  --muted: #68645c;
  --accent: #8a6526;      /* brass, text-safe */
  --accent-hi: #c39a52;   /* brass, decorative */
  --saffron: #a8470a;
  --saffron-hi: #f08a32;
  --green: #1e5240;       /* racing green */
  --green-hi: #2f8a5f;
  --bad: #8f2d2a;         /* oxblood */
  --warn: #7f5500;
  --info: #2c5078;        /* steel blue */
  --tag: #f2ece1;
  --tint-saffron: #fdf1e5;
  --tint-green: #eaf4ee;
  --tint-blue: #ebf1f8;
  --tint-red: #fbecea;
  --tint-gold: #f8f1e2;
  --tint-violet: #f1eef7;
  --dial-track: #e9e0cf;
  --dial-tick: #c9bba1;
  --shadow: 0 1px 2px rgba(60, 45, 20, .05), 0 6px 20px rgba(60, 45, 20, .06);
  --shadow-lg: 0 24px 60px rgba(20, 16, 8, .22);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --r: 10px;
  --g: 18px;
  --bar-h: 63px;
  --tabs-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --red: #8f2d2a;         /* alias: urgency = oxblood (used by newer blocks) */
  --tint-amber: #f8f1e2;
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; font-variant-numeric: lining-nums;
}
h1, h2, h3, h4, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font-family: inherit; color: inherit; }
b { font-weight: 700; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--sm { width: 18px; height: 18px; }
.i--xs { width: 14px; height: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border: 1px solid var(--line); z-index: 500; }
.skip:focus { left: 8px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }

/* overline: small tracked capitals used for every label */
.k, .sec__h h2, .bar__app, .pnl__k, .grp-hd, .field > label, .flabel, .fsec {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.k { color: var(--muted); }

/* ---------- app shell ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; }

.bar {
  position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar__in { display: flex; align-items: center; gap: 8px; max-width: 900px; margin: 0 auto; padding: 10px var(--g); min-height: 62px; }
.mark { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--saffron-hi), var(--saffron)); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .04em; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.bar__t { flex: 1; min-width: 0; display: grid; line-height: 1.1; margin-left: 4px; }
.bar__app { color: var(--accent); font-size: 10px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__app em { font-style: normal; color: var(--muted); letter-spacing: .08em; }
@media (max-width: 380px) { .bar__app em { display: none; } }
.bar h1 { font-family: var(--serif); font-size: 25px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.flag { width: 36px; height: 24px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .12); display: block; }
.ibtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--card); transition: transform .12s, background .2s; }
.ibtn:hover { background: var(--card-2); }
.ibtn:active { transform: scale(.94); }
.ibtn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ibtn .av { width: 38px; height: 38px; font-size: 12px; }
.ibtn--av { border: 0; background: none; }
.bell__n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.search-pill { display: none; }

/* ⋮ menu: New, Install, Settings */
.more { position: absolute; top: calc(100% + 6px); right: var(--g); width: min(300px, calc(100vw - 2 * var(--g))); background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40; padding: 6px; animation: drop .22s var(--ease); }
.mo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; transition: background .2s; }
.mo + .mo { margin-top: 2px; }
.mo:hover, .mo:focus-visible { background: var(--card-2); }
.mo:focus-visible { outline-offset: -2px; }
.mo .sq { width: 36px; height: 36px; border-radius: 9px; }
.mo .sq .i { width: 18px; height: 18px; }
.mo__t { flex: 1; min-width: 0; }
.mo__t b { display: block; font-size: 14.5px; font-weight: 600; }
.mo__t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo.on { background: var(--tint-gold); }
.mo.on .sq { background: var(--ink); color: var(--bg); }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }

/* ---------- bottom tabs (as in the Olympics 2036 brief) ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 4px max(6px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--line);
}
.tabs a { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 56px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.tabs a .i { width: 23px; height: 23px; transition: transform .2s var(--ease); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .i { color: var(--saffron); }
.tabs a:active .i { transform: scale(.9); }
.tabs__ind { position: absolute; top: 0; left: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--saffron-hi); opacity: 0; transition: transform .35s var(--ease), opacity .2s; }
.tabs__ind.on { opacity: 1; }
@media (max-width: 400px) { .tabs a { font-size: 9.5px; letter-spacing: .05em; } }
@media (max-width: 340px) { .tabs a { font-size: 8.5px; letter-spacing: .02em; } .tabs a .i { width: 21px; height: 21px; } }

/* view transitions: header and tab bar stay put while the page cross-fades */
.bar { view-transition-name: bar; }
.tabs { view-transition-name: tabs; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .24s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); transition: transform .12s, background .2s, opacity .2s; }
.btn:hover { background: var(--card-2); }
.btn:active { transform: scale(.97); }
.btn .i { width: 17px; height: 17px; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #2a3038; }
.btn--danger { color: var(--bad); }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--sm { height: 34px; padding: 0 13px; font-size: 12.5px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.link { color: var(--accent); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.fab { position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 31; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: 0 10px 28px rgba(21, 25, 30, .32); transition: transform .2s var(--ease); }
.fab .i { width: 26px; height: 26px; stroke-width: 1.8; }
.fab:active { transform: scale(.92); }

/* ---------- home ---------- */
.home { max-width: 900px; margin: 0 auto; padding: 18px var(--g) calc(var(--tabs-h) + env(safe-area-inset-bottom) + 28px); }
.view.enter { animation: enter .35s var(--ease); }
.lede { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.hello h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -.005em; margin-top: 6px; }
.hello p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.sec { margin-top: 32px; }
.sec__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.sec__h h2 { color: var(--muted); }
.sec__h::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 2; }
.sec__h > :not(h2) { order: 3; }
.sec__h .cnt { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--tag); padding: 1px 8px; border-radius: 999px; order: 1; }
.sub { font-size: 12px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.foot { font-size: 12px; color: var(--muted); text-align: center; margin-top: 36px; }

/* Today · layout B */
.hello-line { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.hello-line b { color: var(--ink); font-weight: 600; }
.ribbon { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 6px 20px rgba(21, 25, 30, .14); }
.ribbon a { display: grid; justify-items: center; gap: 4px; padding: 13px 4px 12px; color: var(--bg); transition: background .2s; min-width: 0; }
.ribbon a + a { border-left: 1px solid rgba(250, 247, 241, .12); }
.ribbon a:hover { background: #232a32; }
.ribbon a:active { background: #2c343d; }
.ribbon b { font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ribbon span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d9cfbd; }
.hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.hcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 14px 13px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; text-align: left; transition: transform .12s ease, border-color .2s; }
.hcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--saffron-hi); }
.hcard--bad::before { background: var(--bad); }
.hcard--good::before { background: var(--green-hi); }
.hcard:hover { border-color: var(--line-2); }
.hcard:active { transform: scale(.985); }
.hcard b { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.05; margin-top: 4px; }
.hcard--bad b { color: var(--bad); }
.hcard--good b { color: var(--green); }
.hcard__t { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.hcard small.link { color: var(--accent); }

/* Meetings · agenda timeline */
.tl { list-style: none; margin: 6px 0 0; padding: 12px 14px 6px 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tl > li:last-child .tl-c { padding-bottom: 10px; }
.tl-i a, .tl-now, .tl-m { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; }
.tl-d { text-align: right; padding: 9px 0 0; }
.tl-d b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.tl-d small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.tl-c { position: relative; min-width: 0; border-left: 2px solid var(--line-2); padding: 9px 0 16px 18px; }
.tl-c::before { content: ""; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); box-sizing: border-box; }
.tl-c b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.tl-c small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
/* a meeting's title and its country tag: side by side when there is room, the tag under the title on phones */
.tl-i .tl-c { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; }
.tl-tx { flex: 1 1 240px; min-width: 0; }
.tl-r { flex: none; max-width: 100%; margin-top: 1px; }
.tl-r .ctag { max-width: 200px; }
.tl-c .over { color: var(--bad); font-weight: 700; }
.tl-c .ok { color: var(--green); font-weight: 600; }
.tl-i a { border-radius: 8px; }
.tl-i a:hover .tl-c b { color: var(--accent); }
.tl-i a:active { background: var(--card-2); }
.tl-i.up .tl-c { border-left-color: var(--saffron-hi); }
.tl-i.up .tl-c::before { background: var(--saffron-hi); border-color: var(--saffron-hi); }
.tl-i.up .tl-d b { color: var(--saffron); }
.tl-i.od .tl-c::before { border-color: var(--bad); background: var(--tint-red); }
.tl-now .tl-d { padding-top: 10px; }
.tl-now .tl-d b { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); }
.tl-now .tl-c { border-left: 2px dashed var(--saffron-hi); padding: 11px 0 16px 18px; font-size: 12.5px; color: var(--muted); }
.tl-now .tl-c::before { width: 16px; height: 16px; left: -9px; top: 11px; background: var(--card); border: 3px solid var(--saffron-hi); }
.tl-m .tl-c { padding: 4px 0 6px 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tl-m .tl-c::before { display: none; }

/* Directory · World (country drill-down) */
.flg { display: inline-grid; place-items: center; flex: none; width: 26px; height: 18px; border-radius: 3px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; overflow: hidden; }
.flg--img { object-fit: cover; padding: 0; background: var(--card); border-color: rgba(0, 0, 0, .12); }
.flg--hero { width: 72px; height: 48px; font-size: 18px; border-radius: 6px; }
.flg--sm { width: 22px; height: 15px; font-size: 9px; }
.flg--lg { width: 42px; height: 28px; font-size: 11.5px; border-radius: 4px; }
.flg--xl { width: 54px; height: 36px; font-size: 14px; border-radius: 5px; }
.flg--globe { background: var(--tint-blue); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.flg--globe .i { width: 60%; height: 60%; }
/* country tag: flag + name (people rows, meetings timeline) */
.ctag { display: inline-flex; align-items: center; gap: 6px; max-width: 168px; height: 26px; padding: 0 9px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; }
.ctag .flg { border-radius: 50%; width: 18px; height: 18px; object-fit: cover; }
.ctag .flg--globe { border-radius: 50%; }
.ctag__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ctag__x { flex: none; color: var(--muted); font-weight: 700; }
@media (max-width: 420px) { .row .ctag { max-width: 112px; } }
.flags { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 2px calc(-1 * var(--g)) 0; padding: 4px var(--g) 10px; scroll-snap-type: x proximity; scroll-behavior: smooth; }
.flags::-webkit-scrollbar { display: none; }
.fcard { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-2); scroll-snap-align: center; transition: border-color .2s, background .2s, transform .12s; }
.fcard span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard:hover { border-color: var(--line-2); }
.fcard:active { transform: scale(.96); }
.fcard.on { border-color: var(--ink); background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.wpanel { animation: fade .25s ease; }
.whead { display: flex; align-items: center; gap: 14px; margin: 8px 0 2px; }
.whead__m { flex: 1; min-width: 0; }
.whead h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.whead p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tree__root { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); transition: background .2s; }
.tree__root:hover { background: #232a32; }
.tree__root .sq { background: var(--bg); color: var(--ink); }
.tree__root .tr-t { flex: 1; min-width: 0; }
.tree__root b { display: block; font-size: 14.5px; }
.tree__root small { display: block; font-size: 12px; color: #d9cfbd; }
.tree__br { position: relative; margin: 0 0 0 26px; padding: 10px 0 0 16px; border-left: 2px solid var(--line-2); }
.tree__br::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 10px; background: var(--ink); }
.arw { color: var(--accent); font-weight: 700; margin: 0 2px; }
.ppl { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.ppl__f { display: flex; }
.ppl__f .av { border: 2px solid var(--card); }
.ppl > span:nth-child(2) { flex: 1; }
.ppl .i { color: var(--accent); }
.r-add { display: flex; gap: 16px; margin: -4px 0 2px; }

/* segmented switch */
.seg { display: inline-flex; background: var(--tag); border-radius: 999px; padding: 3px; gap: 2px; }
.seg > a, .seg > button { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.seg > .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 45, 20, .14); }
.seg--full { display: flex; overflow-x: auto; scrollbar-width: none; }
.seg--full::-webkit-scrollbar { display: none; }
.seg--full > * { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
.seg .n { font-weight: 600; color: var(--muted); }

/* lists & rows */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 62px; transition: background .2s; cursor: pointer; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--card-2); }
.row.no-click { cursor: default; }
.row.no-click:hover { background: transparent; }
.row-lead { flex: none; display: grid; place-items: center; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub .over { color: var(--bad); font-weight: 700; }
.row-meta { flex: none; display: flex; align-items: center; gap: 6px; }
.row-chev { flex: none; color: var(--line-2); display: grid; }
.row-chev .i { width: 16px; height: 16px; }
.row.is-cur { background: var(--tint-gold); }
.grp-hd { color: var(--muted); padding: 18px 2px 8px; }
.grp-hd:first-child { padding-top: 2px; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .i { width: 30px; height: 30px; display: block; margin: 0 auto 8px; color: var(--line-2); }

/* avatars & tiles */
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; letter-spacing: .02em; border: 1px solid rgba(0, 0, 0, .04); }
.av--sm { width: 30px; height: 30px; font-size: 10.5px; }
.av--lg { width: 72px; height: 72px; font-size: 24px; font-family: var(--serif); font-weight: 600; }
/* a profile photo (FHC members) in place of the initials */
.av.av--img { display: block; object-fit: cover; object-position: center; padding: 0; background: var(--card-2); color: transparent; }
.t0 { background: var(--tint-blue); color: var(--info); } .t1 { background: var(--tint-saffron); color: var(--saffron); }
.t2 { background: var(--tint-green); color: var(--green); } .t3 { background: var(--tint-gold); color: var(--accent); }
.t4 { background: var(--tint-red); color: var(--bad); } .t5 { background: var(--tint-violet); color: #574a7a; }
.sq { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 11px; letter-spacing: .06em; flex: none; }
.sq--lg { width: 72px; height: 72px; border-radius: 14px; font-size: 17px; }
.sq--flag { background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.sq--ic { background: var(--tag); color: var(--accent); }
.sq--ic .i { width: 19px; height: 19px; }
.sq--ic.bad { background: var(--tint-red); color: var(--bad); }
.sq--ic.warn { background: var(--tint-gold); color: var(--warn); }
.dt { width: 44px; height: 48px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; background: var(--tint-saffron); color: var(--saffron); border: 1px solid color-mix(in srgb, var(--saffron-hi) 25%, transparent); }
.dt b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.dt small { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.dt--past { background: var(--card-2); color: var(--ink-2); border-color: var(--line); }
.dt--lg { width: 72px; height: 76px; border-radius: 14px; }
.dt--lg b { font-size: 34px; }

/* pills (tag style from the brief) */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1; padding: 0 8px 0 7px; border-radius: 3px; color: var(--muted); border: 1px solid var(--line-2); background: var(--card); white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--plain::before { display: none; }
.pill--good { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.pill--bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--tint-red); }
.pill--warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.pill--info { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.pill--accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pill--saffron { color: var(--saffron); border-color: color-mix(in srgb, var(--saffron) 40%, transparent); }
button.pill { height: 28px; cursor: pointer; transition: background .2s; }
button.pill:hover { background: var(--card-2); }
button.pill::after { content: ""; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid currentColor; margin-left: 2px; opacity: .7; }
.vdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--warn); }

/* task rows */
.tick { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--line-2); transition: color .2s, transform .2s var(--ease); }
.tick .i { width: 25px; height: 25px; }
button.tick:hover { color: var(--green-hi); }
button.tick:active { transform: scale(.85); }
.task.is-done .tick { color: var(--green-hi); }
.task.is-done .row-title { color: var(--muted); text-decoration: line-through; }
.task.leaving { animation: rowOut .3s var(--ease) forwards; }
@keyframes rowOut { to { opacity: 0; transform: translateX(24px); } }

/* ---------- alerts (bell) ---------- */
.alerts { position: absolute; top: calc(100% + 6px); right: var(--g); width: min(420px, calc(100vw - 2 * var(--g))); max-height: min(72vh, 640px); overflow-y: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40; padding: 4px 0; overscroll-behavior: contain; animation: drop .22s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.nt__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.nt__h b { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.af-pin { display: flex; align-items: center; gap: 10px; margin: 10px 10px 4px; padding: 10px 12px; border-radius: 10px; background: var(--tint-red); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); transition: filter .2s; }
.af-pin:hover { filter: brightness(.98); }
.af-pin > span { flex: 1; min-width: 0; }
.af-pin b { display: block; font-size: 13.5px; }
.af-pin small { display: block; font-size: 11.5px; color: var(--muted); }
.af-list { list-style: none; margin: 0; padding: 4px 6px 6px; }
.af-list li + li { border-top: 1px solid var(--line); }
.af { display: grid; grid-template-columns: 8px 24px minmax(0, 1fr); gap: 0 9px; align-items: start; padding: 10px 8px; border-radius: 8px; transition: background .2s; }
.af:hover { background: var(--card-2); }
.af.un { background: var(--tint-saffron); }
.af.un:hover { background: #fbe8d4; }
.af__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; }
.af.un .af__dot { background: var(--saffron-hi); }
.af__ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--tag); color: var(--muted); }
.af--late .af__ic { background: var(--tint-red); color: var(--bad); }
.af--soon .af__ic, .af--mou .af__ic { background: var(--tint-gold); color: var(--warn); }
.af--meet .af__ic { background: var(--tint-blue); color: var(--info); }
.af--review .af__ic, .af--mine .af__ic { background: var(--tint-gold); color: var(--accent); }
.af__m b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; }
.af.un .af__m b { font-weight: 700; }
.af__m small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nt__foot { display: block; text-align: center; padding: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent); border-top: 1px solid var(--line); }

/* ---------- panel: every list and detail opens here, as a popup (a sheet from the bottom on phones,
   a centred dialog on larger screens). Nothing slides in from the side. ---------- */
.pw { position: fixed; inset: 0; z-index: 80; }
.pw__bd { position: absolute; inset: 0; background: rgba(8, 10, 12, .5); backdrop-filter: blur(2px); animation: fade .25s ease; }
.pnl { position: absolute; left: 0; right: 0; bottom: 0; top: max(5vh, calc(env(safe-area-inset-top) + 12px)); display: flex; flex-direction: column; background: var(--bg); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: up .38s var(--ease); overflow: hidden; }
.pnl::before { content: ""; width: 36px; height: 3px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.pw.closing .pw__bd { animation: fadeOut .2s forwards; }
.pw.closing .pnl { animation: down .2s ease-in forwards; }
.pnl__hd { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px 16px; border-bottom: 1px solid var(--line); flex: none; }
.pnl__hd .ibtn { width: 36px; height: 36px; }
.pnl__t { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.pnl__k { color: var(--accent); font-size: 9.5px; }
.pnl__t b { font-family: var(--serif); font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnl__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--g) calc(24px + env(safe-area-inset-bottom)); }
.pnl__body.swap { animation: fade .22s ease; }
.pnl:focus { outline: none; }
.pager { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.pager span { font-size: 12px; color: var(--muted); font-weight: 600; }
.pager .btn { height: 36px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* panel content */
.view .toolbar { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); margin: 0 calc(-1 * var(--g)) 8px; padding: 10px var(--g); }
.toolbar { position: sticky; top: -16px; z-index: 5; display: flex; gap: 8px; margin: -16px calc(-1 * var(--g)) 10px; padding: 12px var(--g) 10px; background: var(--bg); }
.sfield { flex: 1; position: relative; }
.sfield .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.sfield input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); padding: 0 16px 0 40px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.sfield input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-hi) 25%, transparent); }
.fbtn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.fbtn .n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--g)) 14px; padding: 0 var(--g); }
.chips::-webkit-scrollbar { display: none; }
.qchip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s, border-color .2s; }
.qchip .c { font-weight: 600; color: var(--muted); }
.qchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.qchip.on .c { color: var(--line-2); }
.qchip.on.alert { background: var(--bad); border-color: var(--bad); }
.hero { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.hero__m { min-width: 0; }
.hero h1 { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; }
.hero .sub { font-size: 13.5px; margin-top: 3px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qa { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 4px; }
.stats > div { padding: 12px 8px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.05; }
.stats span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tabs-wrap { position: sticky; top: -16px; z-index: 4; background: var(--bg); padding: 14px 0 10px; margin-top: 8px; }
.tab-panel { animation: fade .25s ease; }
.prose { padding: 14px 16px; line-height: 1.65; font-size: 14.5px; }
.prose p { margin: 0 0 8px; }
.prose ul, .prose ol { margin: 0 0 8px; padding-left: 20px; }
.prose li { margin-bottom: 3px; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose h4 { margin: 16px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prose > h4:first-child { margin-top: 2px; }
.kvs { padding: 2px 16px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; text-align: right; min-width: 0; }
.kv dd a { color: var(--accent); }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s; }
a.chip:hover { border-color: var(--accent-hi); background: var(--tint-gold); }
.chip small { color: var(--muted); font-weight: 600; }
.netgrp { padding: 12px 16px; }
.netgrp + .netgrp { border-top: 1px solid var(--line); }
.netgrp h4 { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r); background: var(--tint-blue); color: var(--info); font-size: 13px; margin-top: 14px; }
.files { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); font-size: 13.5px; width: 100%; text-align: left; }
.file .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file small { color: var(--muted); }
.files__hint { display: block; margin-top: -2px; font-size: 11.5px; color: var(--muted); }
/* MoU documents: upload from the country page, and the drop zone in its dialog */
.mou-up { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.mou-up small { font-size: 12px; color: var(--muted); }
.drop { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--card-2); cursor: pointer; transition: border-color .2s, background .2s; outline: none; }
.drop:hover, .drop:focus-visible, .drop--over { border-color: var(--accent); background: var(--card); }
.drop--on { border-style: solid; border-color: color-mix(in srgb, var(--green) 45%, var(--line-2)); background: var(--card); }
.drop__ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tag); color: var(--accent); }
.drop--on .drop__ic { background: var(--tint-green, var(--tag)); color: var(--green); }
.drop__t { min-width: 0; display: grid; gap: 2px; }
.drop__t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__t small { font-size: 12px; color: var(--muted); }
.invalid .drop { border-color: var(--bad); background: var(--tint-red); }
.big-desc { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.foot-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.foot-note.photo-credit { margin-top: 6px; line-height: 1.45; overflow-wrap: anywhere; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--accent); }

/* settings · two panes (list → section on phones) */
.acct { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.acct b { display: block; font-size: 15px; }
.acct small { display: block; font-size: 12.5px; color: var(--muted); }
.set2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.set2:not(.has-sec) .set2__main { display: none; }
.set2.has-sec .set2__nav { display: none; }
.set2__nav { padding: 4px; overflow: hidden; }
.sn-i { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 8px; transition: background .2s; }
.sn-i + .sn-i { border-top: 1px solid var(--line); }
.sn-i:hover { background: var(--card-2); }
.sn-i .sn-t { flex: 1; min-width: 0; }
.sn-i b { display: block; font-size: 14px; font-weight: 600; }
.sn-i small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-i > .i { color: var(--line-2); }
.sn-i .sq, .sn-i .av { width: 34px; height: 34px; }
.set2__back { margin-bottom: 8px; }
.set2__main { min-width: 0; animation: fade .25s ease; }
.sp-h { margin: 0 0 14px; }
.sp-h h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.sp-h p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.rcards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rcard { padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.rcard b { font-size: 13.5px; }
.rcard small { font-size: 11.5px; color: var(--muted); }
.rcard p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.rcard.me { border-color: color-mix(in srgb, var(--saffron-hi) 45%, transparent); background: var(--tint-saffron); }
.rcard.me b { color: var(--saffron); }
.mx { padding: 0; overflow: hidden; }
.mx__r { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); align-items: center; font-size: 13px; }
.mx__r + .mx__r { border-top: 1px solid var(--line); }
.mx__r > span { padding: 9px 4px; text-align: center; }
.mx__r > span:first-child { text-align: left; padding-left: 14px; }
.mx__r > span.me { background: var(--tint-saffron); }
.mx__h { background: var(--card-2); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mx__h > span.me { color: var(--saffron); }
.mx .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint-green); color: var(--green); font-style: normal; }
.mx .no { color: var(--line-2); font-style: normal; }
.afeed { list-style: none; margin: 0; padding: 0 0 0 6px; }
.afeed li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; }
.afeed__t { font-size: 11.5px; color: var(--muted); text-align: right; padding-top: 10px; }
.afeed__c { position: relative; border-left: 2px solid var(--line-2); padding: 8px 0 12px 16px; font-size: 13.5px; line-height: 1.4; }
.afeed__c::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); box-sizing: border-box; }
.afeed__c b { font-weight: 700; }
.afeed__c small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.dh { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dh + .dh { margin-top: 10px; }
.dh .r { display: flex; align-items: center; gap: 10px; }
.dh b { font-size: 13.5px; font-weight: 600; }
.dh small { font-size: 12.5px; color: var(--muted); }
.dh__bar { width: 100%; height: 6px; border-radius: 3px; background: var(--tag); overflow: hidden; }
.dh__bar i { display: block; height: 100%; background: var(--green-hi); border-radius: 3px; }
.dh--warn { background: var(--tint-red); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.dh--warn .r { color: var(--bad); }
.dh--ok .r { color: var(--green); }
.dz { padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.dh__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) {
  .set2 { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 24px; }
  .set2:not(.has-sec) .set2__main, .set2.has-sec .set2__nav { display: block; }
  .set2__nav { position: sticky; top: calc(var(--bar-h) + 16px); }
  .sn-i.on { background: var(--tint-gold); }
  .sn-i.on b { color: var(--ink); }
  .sn-i.on > .i { color: var(--accent); }
  .set2__back { display: none; }
}

/* ---------- modals (forms, menus, confirms) ---------- */
.md { position: fixed; inset: 0; z-index: 120; background: rgba(8, 10, 12, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.md__box { background: var(--card); width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .34s var(--ease); }
.md__box::before { content: ""; width: 36px; height: 3px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.md__hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 20px; }
.md__hd h2 { flex: 1; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.md__hd .ibtn { width: 36px; height: 36px; }
.md__body { overflow-y: auto; padding: 4px 20px 20px; flex: 1; overscroll-behavior: contain; }
.md__ft { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.md__ft .btn { flex: 1; height: 48px; }
.md__ft .btn--ghost { flex: none; }
.md.closing { animation: fadeOut .2s forwards; }
.md.closing .md__box { animation: down .2s ease-in forwards; }
.menu .md__body { padding: 0 8px 12px; }
.mi { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0 14px; min-height: 56px; border-radius: 10px; font-size: 15px; font-weight: 600; text-align: left; transition: background .2s; }
.mi:hover { background: var(--card-2); }
.mi .i { color: var(--accent); }
.mi small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.mi .chk { margin-left: auto; color: var(--green-hi); }
.mi--danger, .mi--danger .i { color: var(--bad); }

/* forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.fgrid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .flabel { color: var(--muted); }
.req { color: var(--bad); }
.help { font-size: 12px; color: var(--muted); }
.fsec { color: var(--accent); margin: 10px 0 -6px; }
.ctl { height: 48px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); padding: 0 13px; font-size: 16px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.ctl { height: auto; min-height: 74px; padding: 12px 13px; resize: vertical; line-height: 1.45; }
select.ctl { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2368645c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ctl:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-hi) 25%, transparent); }
.ctl:disabled { background: var(--card-2); color: var(--muted); }
.invalid .ctl, .invalid .picker, .invalid .rte { border-color: var(--bad); box-shadow: 0 0 0 3px var(--tint-red); }
.invalid > label { color: var(--bad); }
.segctl { display: flex; background: var(--tag); border-radius: 999px; padding: 3px; gap: 2px; }
.segctl label { flex: 1; position: relative; cursor: pointer; min-width: 0; }
.segctl input { position: absolute; opacity: 0; pointer-events: none; }
.segctl span { display: grid; place-items: center; height: 38px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; padding: 0 6px; }
.segctl input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 45, 20, .14); }
.segctl input:focus-visible + span { outline: 2px solid var(--accent); }
.rr { position: relative; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; animation: fade .25s ease; }
.rr .rm { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rr .rm:hover { background: var(--tint-red); color: var(--bad); }
.rr .rm .i { width: 16px; height: 16px; }
.rr > :first-child:not(.rm), .rr > .rm + * { margin-right: 32px; width: calc(100% - 32px); }
.rr .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr .two--pos { grid-template-columns: minmax(0, 1fr) 128px; }
.rr .two--rel { grid-template-columns: minmax(0, 1fr); }
.rr .fgrid.two { grid-template-columns: minmax(0, 1fr); gap: 16px; } /* a task inside a form: stacked on phones */
.ctl.bad { border-color: var(--bad); box-shadow: 0 0 0 3px var(--tint-red); }
.fid { margin: -4px 0 -4px; font-size: 12.5px; color: var(--muted); }
.fid b { color: var(--ink); font-weight: 700; letter-spacing: .03em; }
.add-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 13.5px; height: 40px; align-self: flex-start; }
.add-link .i { width: 17px; height: 17px; }
.stepper { display: flex; gap: 6px; margin: 4px 0 6px; }
.stepper button { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.stepper button.on { background: var(--saffron-hi); }
.step-label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.step { animation: fade .22s ease; }
.rte { border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); overflow: hidden; }
.rte .bar-t { display: flex; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line); background: var(--card-2); overflow-x: auto; scrollbar-width: none; }
.rte .bar-t button { flex: none; padding: 0 10px; height: 30px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.rte .bar-t button:hover { background: var(--tag); }
.rte .area { min-height: 116px; padding: 12px 13px; outline: none; line-height: 1.55; font-size: 16px; }
.rte .area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte .area ul, .rte .area ol { padding-left: 20px; margin: 4px 0; }
.rte:focus-within { border-color: var(--accent); }
.picker { border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); padding: 6px; position: relative; }
.picker:focus-within { border-color: var(--accent); }
.picker .inner { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.picker input { border: none; outline: none; background: transparent; padding: 7px 6px; flex: 1; min-width: 140px; font-size: 16px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px; border-radius: 999px; background: var(--tint-gold); color: var(--ink); font-size: 13px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--accent-hi) 35%, transparent); }
.pchip .av { width: 24px; height: 24px; font-size: 9.5px; }
.pchip .x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--muted); }
.pchip .x:hover { color: var(--bad); }
.picker .dd { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 250px; overflow-y: auto; z-index: 5; padding: 4px; }
.picker .opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.picker .opt .s { display: block; font-size: 12px; color: var(--muted); }
.picker .opt b { font-weight: 600; font-size: 14px; }
.picker .opt.hi, .picker .opt:hover { background: var(--tint-gold); }
.picker .none { padding: 12px; color: var(--muted); font-size: 13px; }

/* toast */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 11px 16px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); animation: toastIn .3s var(--ease); }
.toast .i { width: 17px; height: 17px; color: #8fd3ad; }
.toast.err .i { color: #f2a19d; }
.toast button { margin-left: auto; color: var(--accent-hi); font-weight: 700; padding: 2px 4px; }
.toast.out { animation: fadeOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .fgrid.two { grid-template-columns: 1fr 1fr; }
  .rr .two--rel { grid-template-columns: 168px minmax(0, 1fr); }
  .rr .fgrid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .tabs { left: 50%; right: auto; transform: translateX(-50%); width: 560px; bottom: 16px; border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 10px 40px rgba(0, 0, 0, .12); padding: 2px 16px; }
  .tabs__ind { top: 3px; }
  .bar__in { padding: 10px 32px; }
  .search-pill { display: flex; align-items: center; gap: 10px; flex: 0 1 300px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font-size: 14px; transition: border-color .2s; }
  .search-pill:hover { border-color: var(--accent-hi); }
  .search-pill kbd { margin-left: auto; font: 700 10.5px var(--sans); letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
  .bar .s-ic { display: none; }
  .home { padding: 26px 32px 130px; }
  .ribbon b { font-size: 34px; }
  .ribbon a { padding: 16px 4px 14px; }
  .hcard { padding: 20px 18px 16px; }
  .hcard b { font-size: 40px; }
  .hello-line { font-size: 14px; }
  .alerts, .more { right: max(32px, calc((100vw - 900px) / 2 + 32px)); }
  .pw { display: flex; align-items: center; justify-content: center; padding: 24px; }
  .pnl { position: relative; inset: auto; width: min(760px, 100%); height: min(920px, 100%); border-radius: 18px; border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0, 0, 0, .24); animation: pop .24s var(--ease); }
  .pnl::before { display: none; }
  .pnl__hd { padding: 14px 16px 12px 26px; }
  .pnl__body { padding: 18px 26px 32px; --g: 26px; }
  .pager { padding: 10px 16px; }
  .toolbar { top: -18px; margin-top: -18px; }
  .view .toolbar { top: var(--bar-h); margin: 0 -32px 8px; padding: 10px 32px; }
  .tabs-wrap { top: -18px; }
  .pw__bd { background: rgba(8, 10, 12, .42); }
  .pw.closing .pnl { animation: popOut .18s ease-in forwards; }
  .md { align-items: center; padding: 24px; }
  .md__box { max-width: 600px; border-radius: 16px; max-height: 88vh; animation: pop .22s var(--ease); }
  .md__box.sm { max-width: 420px; }
  .md__box::before { display: none; }
  .md__hd { padding: 18px 14px 6px 24px; }
  .md__body { padding: 8px 24px 22px; }
  .md__ft { padding: 14px 24px; justify-content: flex-end; }
  .md__ft .btn { flex: none; height: 42px; min-width: 110px; }
  .md.closing .md__box { animation: fadeOut .18s forwards; }
  .ctl, .rte .area, .picker input, .sfield input { font-size: 14.5px; }
  .ctl { height: 44px; }
  .toasts { bottom: 100px; }
}
@keyframes popOut { to { opacity: 0; transform: translateY(6px) scale(.985); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }

/* Action tracker: progress header and grouped list */
.trk { padding: 14px 16px; margin-bottom: 12px; }
.trk__top { display: flex; align-items: center; gap: 14px; }
.trk__ring { width: 64px; height: 64px; flex: none; }
.trk__ring text { font: 600 14px var(--sans); fill: var(--ink); }
.trk__m { display: grid; gap: 2px; min-width: 0; }
.trk__m b { font-size: 17px; font-weight: 600; }
.trk__od { color: var(--bad); font-weight: 600; font-size: 13.5px; }
.trk__ok { color: var(--green); font-weight: 600; font-size: 13.5px; }
.trk__m small { color: var(--muted); font-size: 12.5px; }
.trk__bar { display: flex; gap: 2px; height: 8px; margin-top: 12px; border-radius: 4px; overflow: hidden; }
.trk__bar i { display: block; height: 100%; min-width: 3px; }
.trk__lg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.trk__lg span { display: inline-flex; align-items: center; gap: 6px; }
.trk__lg i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.trk__lg b { font-weight: 600; }
.trk__seg { margin-bottom: 2px; }
.pnl__body > .toolbar:not(:first-child) { margin-top: 0; }
.agh { display: flex; align-items: center; gap: 8px; padding: 14px 2px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.agh em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 0 7px; border-radius: 999px; background: var(--tag); color: var(--ink-2); }
.agh--late { color: var(--bad); }
.agh--late em { background: var(--bad); color: #fff; }
.agh--week { color: var(--warn); }
.agrp { padding: 0; margin-top: 10px; overflow: hidden; }
.agrp summary { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; list-style: none; }
.agrp summary::-webkit-details-marker { display: none; }
.agrp__t { flex: 1; min-width: 0; }
.agrp__t b { display: block; font-size: 14px; font-weight: 600; }
.agrp__t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agrp summary em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--tag); color: var(--ink-2); white-space: nowrap; }
.agrp summary em.hot { background: var(--bad); color: #fff; }
.agrp__chev { color: var(--muted); transition: transform .2s var(--ease); }
.agrp[open] .agrp__chev { transform: rotate(90deg); }
.agrp__b { border-top: 1px solid var(--line); }

/* Search: filter chips inside the field, suggestions, commands */
.sfield--tok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 10px 5px 40px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); cursor: text; }
.sfield--tok > .i { top: 22px; }
.sfield--tok:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-hi) 25%, transparent); }
.sfield.sfield--tok input, .sfield.sfield--tok input:focus { flex: 1; min-width: 120px; width: auto; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.stoks { display: contents; }
.stok { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 11px; background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600; white-space: nowrap; border-radius: 999px; }
.stok .flg { outline: 1px solid rgba(255, 255, 255, .5); }
.sfield--tok .stok .i { position: static; transform: none; width: 14px; height: 14px; color: inherit; }
.stok button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--bg); cursor: pointer; }
.stok button:hover { color: var(--saffron-hi); }
.ssug { display: flex; align-items: center; gap: 6px; margin: -4px 0 6px; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; color: var(--muted); }
.ssug::-webkit-scrollbar { display: none; }
.ssug:empty { display: none; }
.ssug > span { flex: none; margin-right: 2px; }
.ssug button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
.ssug button:hover { border-color: var(--accent); }
.ssug button .i { width: 12px; height: 12px; }
.kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; font: 600 11.5px var(--sans); color: var(--muted); text-align: center; }
.empty small { display: block; margin-top: 4px; font-size: 13px; }
#sres .row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Meeting form: sections, form and live preview (three columns on desktop, tabs on phones) */
.mf__nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: sticky; top: -4px; z-index: 3; background: var(--card); margin: -4px -20px 14px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mf__nav::-webkit-scrollbar { display: none; }
.mf__nav button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 13.5px var(--sans); color: var(--muted); cursor: pointer; text-align: left; }
.mf__nav button.on { color: var(--ink); border-bottom-color: var(--saffron-hi); }
.mf__n { width: 20px; height: 20px; flex: none; display: grid; place-items: center; background: var(--tag); color: var(--ink-2); font-size: 11.5px; font-weight: 700; border-radius: 50%; }
.mf__nav button.on .mf__n { background: var(--ink); color: var(--bg); }
.mf__nav button.ok .mf__n { background: var(--green); color: #fff; }
.mf__n .i { width: 12px; height: 12px; }
.mf__lf, .mf__h, .mf__pv, .mf__hint { display: none; }
.mf__help { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.mf__pt { margin: 18px 0 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mf__pt:first-child { margin-top: 0; }
.mf__card { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.mf__card > div { min-width: 0; }
.mf__card b { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mf__card small { display: block; font-size: 12.5px; color: var(--muted); }
.mf__ph { margin: 0; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.mf__lks { display: flex; flex-wrap: wrap; gap: 6px; }
.mf__lk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; }
.mf__lk .i { width: 13px; height: 13px; color: var(--muted); }
.mf__fus, .mf__hear { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mf__fus li { padding: 6px 9px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.mf__fus small { display: block; font-size: 12px; color: var(--muted); }
.mf__warn { color: var(--warn); font-weight: 600; }
.mf__hear li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.mf__hear .i { width: 13px; height: 13px; margin-top: 2px; flex: none; color: var(--muted); }
@media (min-width: 960px) {
  .md__box.md__box--mf { max-width: 1080px; height: min(720px, 88vh); }
  .md__box--mf .md__body { display: flex; padding: 0; overflow: hidden; border-top: 1px solid var(--line); }
  .mf { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr) 270px; }
  .mf__nav { position: static; flex-direction: column; gap: 0; margin: 0; padding: 12px 0; overflow: visible; border-bottom: 0; border-right: 1px solid var(--line); }
  .mf__nav button { height: 44px; padding: 0 16px 0 13px; border-bottom: 0; border-left: 3px solid transparent; }
  .mf__nav button.on { background: var(--card-2); border-left-color: var(--saffron-hi); }
  .mf__lf { display: inline; }
  .mf__ls { display: none; }
  .mf__main { overflow-y: auto; padding: 18px 26px 24px; }
  .mf__h { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
  .mf__h small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .mf__pv { display: block; overflow-y: auto; padding: 18px 18px 24px; background: var(--card-2); border-left: 1px solid var(--line); font-size: 13px; }
  .mf__hint { display: inline; margin-right: auto; align-self: center; font-size: 12.5px; color: var(--muted); }
}

/* Meeting record: main column and a rail (side by side on desktop, stacked on phones) */
.mtg__top .qa { margin-top: 14px; }
.rp-list { padding: 2px 0; }
.rp { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 7px 12px; }
.rp + .rp { border-top: 1px solid var(--line); }
.rp:hover { background: var(--card-2); }
.rp__t { flex: 1; min-width: 0; }
.rp__t b, .rp__t small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp__t b { font-size: 14px; font-weight: 600; }
.rp__t small { font-size: 12px; color: var(--muted); }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; }
.lchip:hover { border-color: var(--accent); }
.lchip .i { width: 13px; height: 13px; color: var(--muted); }
.rail__none { margin: 0; font-size: 13px; color: var(--muted); }
@media (min-width: 960px) {
  .pnl { transition: width .25s var(--ease); }
  .pnl.pnl--wide { width: min(1080px, 100%); }
  .mtg__top { display: flex; align-items: flex-start; gap: 18px; }
  .mtg__top .hero { flex: 1; min-width: 0; }
  .mtg__top .qa { flex: none; max-width: 380px; justify-content: flex-end; margin: 6px 0 0; }
  .mtg { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
  .mtg__rail { margin-top: 32px; padding: 16px 16px 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); }
  .mtg__rail > .sec:first-child { margin-top: 0; }
  .mtg__rail .sec { margin-top: 22px; }
  .mtg__rail .foot-note { margin: 18px 0 12px; }
  .mtg__rail .foot-note.photo-credit { margin-top: -6px; }
}
/* Person profile: reuses the meeting-record layout; the number ribbon shows on phones, "At a glance" on desktop.
   The work profile sits at the top of the main column on phones and in the rail on desktop. */
.pf-glance { display: none; }
.pf-work-d { display: none; }
.wp-h { padding: 10px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rp + .wp-h { border-top: 1px solid var(--line); }
.rp--prev .rp__t b { font-weight: 500; color: var(--ink-2); }
.rp--prev .sq { opacity: .6; }
.rp .sq { width: 32px; height: 32px; border-radius: 8px; font-size: 9.5px; }
.kv dd small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.kv-c { display: inline-flex; align-items: center; gap: 6px; }
.kv-bad { color: var(--bad); }
.kv-good { color: var(--green); }
.kv-warn { color: var(--warn); }
.kv-bad, .kv-good, .kv-warn { font-weight: 700; }
details.more { margin-top: 6px; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; height: 38px; color: var(--accent); font-size: 13.5px; font-weight: 700; cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }
details.more > .list { margin-top: 8px; }
@media (min-width: 960px) {
  .pf-stats, .pf-work-m { display: none; }
  .pf-glance, .pf-work-d { display: block; }
  .mtg__rail .kvs { padding: 0 12px; }
  .mtg__rail .kv { padding: 9px 0; font-size: 13px; }
}
@media print {
  .pf-glance, .pf-work-d { display: block; }
  .pf-work-m { display: none; }
  details.more { display: none; }
  .mtg__top, .mtg { display: block; }
  .mtg__rail { position: static; max-height: none; overflow: visible; margin: 0; padding: 0; background: none; border: 0; }
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
.print-only { display: none; }
/* Print (the Brief button): with a popup open, only the popup prints, as plain pages. The page behind it, the
   bars, buttons and dialogs are left out, and the scroll lock is lifted so every page of the brief prints. */
@media print {
  @page { margin: 14mm 12mm; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, body { overflow: visible !important; height: auto !important; min-height: 0 !important; background: #fff !important; }
  body.pnl-open #app { display: none !important; }
  .tabs, .bar, .toasts, .qa, .toolbar, .chips, .tabs-wrap, .pager, .pnl__hd, .pw__bd, .md, .skip, .add-link, .no-print { display: none !important; }
  .pw { position: static !important; display: block !important; padding: 0 !important; }
  .pnl { position: static !important; display: block !important; inset: auto !important; width: auto !important; height: auto !important; max-width: none !important; overflow: visible !important; background: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .pnl::before { display: none !important; }
  .pnl__body { display: block !important; overflow: visible !important; padding: 0 !important; }
  .tab-panel { display: block !important; }
  .print-only { display: block !important; }
  .card, .list { box-shadow: none; break-inside: avoid; }
}

/* ---------- Voting: the race for 2036 (compact, mobile-first) ---------- */
.voting { padding-bottom: 8px; }
.vks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 10px; }
.vk { min-width: 0; display: grid; align-content: start; gap: 1px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.vk b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.05; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk span { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.vk small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.vk--accent { background: var(--ink); border-color: var(--ink); }
.vk--accent b { color: #fff; }
.vk--accent span, .vk--accent small { color: rgba(255, 255, 255, .72); }
.vks--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vks--sm .vk { padding: 8px 8px 7px; box-shadow: none; }
.vks--sm .vk b { font-size: 20px; }
.vks--sm .vk span { font-size: 9.5px; letter-spacing: .05em; }
.vks--sm .vk small { font-size: 10.5px; }
.vtabs { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top)); z-index: 6; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--g)) 12px; padding: 8px var(--g); background: var(--bg); border-bottom: 1px solid var(--line); }
.vtabs::-webkit-scrollbar { display: none; }
.vtabs button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--tag); color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.vtabs button.on { background: var(--ink); color: #fff; }
.vpanel { animation: fade .22s ease; }
.vnote { margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vfold { margin-bottom: 10px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.vfold > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.vfold > summary::-webkit-details-marker { display: none; }
.vfold > summary small { margin-left: auto; font-weight: 600; color: var(--muted); }
.vfold > summary .i { transition: transform .2s; }
.vfold:not([open]) > summary .i { transform: rotate(-90deg); }
.vfold[open] { padding-bottom: 12px; }
.vabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.vab { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.vab__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vab b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.vab--none b { color: var(--muted); }
.vfind { margin: 2px 0 8px; display: flex; }
.vchips { margin-bottom: 10px; }
.vmgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.vm { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.vm:hover { border-color: var(--accent-hi); }
.vm .av { width: 44px; height: 44px; }
.vm--abst { background: color-mix(in srgb, var(--tint-gold) 55%, var(--card)); border-color: color-mix(in srgb, var(--accent-hi) 40%, var(--line)); }
.vm__t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.vm__t b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm__t small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm__c { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.vm__c .flg { width: 18px; height: 12px; }
.vm__role { font-weight: 700; }
.vm__role--p { color: var(--saffron); }
.vm__role--vp { color: var(--accent); }
.vm__role--eb { color: var(--info); }
.vmore { display: flex; margin: 10px auto 0; }
.vleg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.bcs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 80%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--g)); padding: 2px var(--g) 10px; scroll-padding: 0 var(--g); scrollbar-width: thin; outline: none; }
.bc { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); scroll-snap-align: start; }
.bc--in { border-color: var(--saffron-hi); box-shadow: 0 0 0 2px color-mix(in srgb, var(--saffron-hi) 30%, transparent); }
.bc__img { position: relative; aspect-ratio: 16 / 9; background: var(--card-2); }
.bc__img > img:not(.flg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc__img > .bc__flag { position: absolute; left: 12px; bottom: -16px; width: 54px; height: 36px; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 3px 10px rgba(0, 0, 0, .22); }
.bc__img--flag > .bc__flag { inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
.bc__b { display: grid; gap: 4px; padding: 22px 12px 12px; }
.bc__img--flag + .bc__b { padding-top: 12px; }
.bc__c { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; }
.bc__city { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bc__tags { margin: 4px 0 2px; }
.bc__m { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.bc__src { display: flex; align-items: flex-start; gap: 5px; margin: 2px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.bc__src .i { flex: none; margin-top: 2px; }
.bc__src a, .vsrc--sub a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vrules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.vr { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.vr .sq { width: 32px; height: 32px; flex: none; }
.vr b { display: block; font-size: 13.5px; }
.vr small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vflow { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.vflow__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.vf { display: grid; margin: 0; padding: 0; list-style: none; }
.vf__s { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-bottom: 12px; }
.vf__s:last-child { padding-bottom: 0; }
.vf__s:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.vf__n { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tag); font-size: 12px; font-weight: 800; }
.vf__s--loop .vf__n { background: var(--tint-gold); color: var(--accent); }
.vf__s--win .vf__n { background: var(--green); color: #fff; }
.vacc { margin-top: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.vacc__i + .vacc__i { border-top: 1px solid var(--line); }
.vacc__i > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; cursor: pointer; list-style: none; }
.vacc__i > summary::-webkit-details-marker { display: none; }
.vacc__i > summary .sq { width: 30px; height: 30px; flex: none; }
.vacc__i > summary > span { flex: 1; min-width: 0; display: grid; }
.vacc__i > summary b { font-size: 13.5px; }
.vacc__i > summary small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vacc__i > summary > .i { flex: none; color: var(--muted); transition: transform .2s; }
.vacc__i[open] > summary > .i { transform: rotate(180deg); }
.vacc__i > p { margin: 0; padding: 0 12px 12px 52px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.vf__s b { display: block; font-size: 13.5px; }
.vf__s small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vcalc { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 12px; }
.vcalc b { font-size: 13px; }
.vcalc span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.vcalc--in { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.vcalc--in small { font-size: 12px; color: var(--muted); }
.vct { width: 100%; margin: 4px 0; border-collapse: collapse; font-size: 13px; }
.vct td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.vct td:last-child { padding-left: 12px; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vct__t td { font-weight: 800; border-bottom: 0; }
.vct__t + .vct__t td { padding-top: 0; }
.vtl { margin: 0; padding: 8px 12px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.vtl__i { position: relative; display: grid; grid-template-columns: 74px 24px minmax(0, 1fr); gap: 0 8px; padding: 6px 0; }
.vtl__i:not(:last-child)::after { content: ""; position: absolute; left: 93px; top: 32px; bottom: -6px; width: 2px; background: var(--line-2); }
.vtl__d { padding-top: 4px; font-size: 11.5px; font-weight: 700; line-height: 1.25; text-align: right; color: var(--muted); }
.vtl__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tag); color: var(--muted); }
.vtl__i--done .vtl__dot { background: var(--tint-green); color: var(--green); }
.vtl__i--next .vtl__dot { background: var(--saffron-hi); color: #fff; }
.vtl__i--next .vtl__d { color: var(--saffron); }
.vtl__c b { display: block; font-size: 13.5px; line-height: 1.3; }
.vtl__c small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.vtl__src { font-size: 11.5px; font-weight: 600; color: var(--accent); }
.vtl--in { padding: 0; background: none; border: 0; }
.ih { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.ih__t { min-width: 0; }
.ih__t b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.ih__t small { display: block; margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }
.ip { margin: 10px 0; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ip__bar { height: 6px; margin-bottom: 12px; overflow: hidden; border-radius: 999px; background: var(--tag); }
.ip__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--saffron-hi), var(--green)); }
.ip__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ip__s { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 8px; align-items: start; }
.ip__dot { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tag); color: var(--muted); font-size: 11px; font-weight: 800; }
.ip__s--done .ip__dot { background: var(--green); color: #fff; }
.ip__s--now .ip__dot { background: var(--saffron-hi); color: #fff; }
.ip__s b { font-size: 12.5px; line-height: 1.25; }
.ip__s small { font-size: 11.5px; color: var(--muted); }
.inext { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--saffron-hi); border-radius: 14px; }
.inext > span { flex: 1; min-width: 0; display: grid; }
.inext small { font-size: 11.5px; color: var(--muted); }
.inext b { font-size: 14px; }
.vsrc { display: flex; align-items: flex-start; gap: 6px; margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.vsrc .i { flex: none; margin-top: 3px; }
.vsrc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.vsrc--sub { margin-top: 2px; padding-left: 18px; }
@media (min-width: 720px) {
  .vks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vtabs button { flex: 1; }
  .vmgrid, .vrules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcs { grid-auto-columns: minmax(240px, 31%); }
  .ip__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Meeting capture: participants, what they represent, tasks ---------- */
.pcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pcs__empty { padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-size: 13.5px; text-align: center; }
.pc { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; animation: fade .25s ease; min-width: 0; }
.pc__h { display: flex; align-items: center; gap: 10px; }
.pc__t { flex: 1; min-width: 0; }
.pc__t b { display: block; font-size: 14.5px; font-weight: 600; }
.pc__t small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.pc__x:hover { background: var(--tint-red); color: var(--bad); }
.rep { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rep__h { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.rep__row { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 36px; min-width: 0; }
.rep__k { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.rep__k input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.rep__row.off .rep__k { color: var(--muted); cursor: default; }
.rep__c { min-width: 0; transition: opacity .2s; }
.rep__row:not(.on) .rep__c { opacity: .55; }
.rep__row.off .rep__c { opacity: 1; }
.rep__v { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rep__none { color: var(--muted); font-style: italic; }
.rep__hint { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.ctl.ctl--sm { height: 36px; font-size: 13.5px; padding: 0 34px 0 10px; background-position: right 12px center; min-width: 0; text-overflow: ellipsis; }
.picker--add { padding: 4px 6px 4px 10px; border-style: dashed; }
.picker--add:focus-within { border-style: solid; }
.picker--add .inner { flex-wrap: nowrap; gap: 6px; }
.picker--add .inner > .i { color: var(--muted); flex: none; }
.picker--add input { min-width: 0; }
.pchip__t { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip .sq { width: 24px; height: 24px; border-radius: 6px; }
.sq--xs { width: 30px; height: 30px; border-radius: 8px; }
.sq--xs .i, .pchip .sq .i { width: 14px; height: 14px; }
.sq--sm { width: 32px; height: 32px; border-radius: 8px; }
.sq--sm .i { width: 16px; height: 16px; }
.mf__done { margin: 0 0 12px; }
.mf__done .list { box-shadow: none; }
.mf__done .row { min-height: 52px; padding: 9px 12px; }
.tk .field { gap: 6px; }
.rr.tk.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--tint-red); }
.ro { margin: 0; font-size: 14px; font-weight: 600; padding: 12px 0; }
.ro small { font-weight: 500; color: var(--muted); }

/* tasks: priority, stopped tasks, link back to the meeting */
.prio { display: inline-block; margin-right: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.prio--urgent { color: var(--bad); }
.prio--high { color: var(--warn); }
.task.is-stopped .row-title { color: var(--muted); }
.task.is-stopped .tick { color: var(--line-2); }
.from-mtg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); transition: border-color .2s, background .2s; }
.from-mtg:hover { border-color: var(--accent-hi); background: var(--tint-gold); }
.from-mtg > span { flex: 1; min-width: 0; }
.from-mtg small { display: block; font-size: 11.5px; color: var(--muted); }
.from-mtg b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.from-mtg > .i { color: var(--accent); }
.task-tags { margin: -4px 0 14px; }
.st-field select { max-width: 260px; }

/* meeting record and profiles: what each participant represented, tag help, host marker */
.rp__t small.rp__rep { display: flex; align-items: flex-start; gap: 4px; color: var(--accent); white-space: normal; overflow: visible; line-height: 1.35; margin-top: 1px; }
.rp__rep .i { flex: none; margin-top: 1px; }
.rp-grp { display: flex; align-items: center; gap: 6px; margin: 2px 2px 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.rp-grp span { font-size: 11px; font-weight: 600; color: var(--muted); }
.rp-list + .rp-grp, .rail__none + .rp-grp { margin-top: 12px; }
.rail__help, .tab-help { margin: -2px 0 8px; font-size: 12px; color: var(--muted); }
.host { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--tint-saffron); color: var(--saffron); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }

/* search: engagement brief for a person */
.brief { padding: 0; margin-bottom: 12px; overflow: hidden; }
.brief__h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: background .2s; }
.brief__h:hover { background: var(--card-2); }
.brief__n { flex: 1; min-width: 0; }
.brief__n b { display: block; font-size: 15px; font-weight: 600; }
.brief__n small { display: block; font-size: 12px; color: var(--muted); }
.brief__h > .i { color: var(--line-2); }
.brief__g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.brief__g > div { padding: 10px 14px; }
.brief__g > div + div { border-left: 1px solid var(--line); }
.brief__g b { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; }
.brief__g small { display: block; font-size: 12px; color: var(--muted); }
.brief__s { padding: 10px 14px 12px; border-top: 1px solid var(--line); background: var(--card-2); }
.brief__s p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 360px) { .rep__row { grid-template-columns: 104px minmax(0, 1fr); } }

/* ============ Desktop first: sidebar, dashboard Home, tables ============ */
/* Home: on phones the two cards sit side by side and "who to meet" follows (as before); the extra blocks show on desktop */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.dash__col { display: grid; min-width: 0; }
.dash__more, .dash__race { display: none; }
.dash__who { grid-column: 1 / -1; min-width: 0; }
.dash-race { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .2s; }
.dash-race:hover { border-color: var(--accent-hi); }
.dash-race .k { flex-basis: 100%; margin: 0; }
.dash-race span:not(.k) { font-size: 13px; color: var(--muted); }
.dash-race b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); margin-right: 4px; }
.dash-race small { font-size: 12.5px; color: var(--ink-2); }
.dash-race > .i { margin-left: auto; color: var(--accent); }
@media (min-width: 960px) {
  .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
  .dash__col { display: flex; flex-direction: column; }
  .dash__more { display: block; }
  .dash__more > .sec { margin-top: 18px; }
  .dash__who { grid-column: auto; }
  .dash__who > .sec { margin-top: 0; }
  .dash__race { display: block; grid-column: 1 / -1; }
}

/* Tables (People, Countries) on desktop */
.tbl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 0; text-align: left; white-space: nowrap; background: var(--card-2); border-bottom: 1px solid var(--line-2); }
.tbl th button { display: inline-flex; align-items: center; gap: 5px; width: 100%; padding: 10px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl th button:hover, .tbl th[aria-sort="ascending"] button, .tbl th[aria-sort="descending"] button { color: var(--ink); }
.tbl th.num button { justify-content: flex-end; }
.tbl-arr { font-size: 8px; color: var(--accent); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: var(--card-2); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td small { margin-left: 4px; font-size: 12px; color: var(--muted); }
.tbl-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; }
.tbl-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl-name .av { width: 28px; height: 28px; font-size: 10px; }
.tbl-c { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tbl-bad { color: var(--bad); font-weight: 700; white-space: nowrap; }
.tbl--people td:nth-child(2), .tbl--people td:nth-child(3), .tbl--people td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; }
/* Meetings table: the date stacked over its day and time (and "in N days" when upcoming), so the column stays narrow;
   the title wraps onto a second line when space is short, so the table fits without scrolling sideways; a Today line */
.tbl-date { display: inline-grid; justify-items: start; gap: 2px; line-height: 1.25; white-space: nowrap; }
.tbl-date b { font-weight: 600; }
.tbl td .tbl-date small { margin-left: 0; }
.tbl-date.is-up b { color: var(--saffron); }
.tbl-soon { margin-top: 2px; padding: 1px 7px; border-radius: 999px; background: var(--tint-saffron); color: var(--saffron); font-size: 11.5px; font-weight: 700; }
.tbl--meetings td:nth-child(2) { min-width: 160px; white-space: normal; }
.tbl-title { font-weight: 600; color: var(--ink); }
.tbl-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl-fu { margin-left: 8px; white-space: nowrap; padding: 1px 7px; border-radius: 999px; background: var(--tint-gold); color: var(--accent); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.tbl-ok { color: var(--green-hi); font-weight: 600; }
.tbl tbody tr.tbl-now { cursor: default; }
.tbl tbody tr.tbl-now:hover { background: none; }
.tbl tr.tbl-now td { padding: 7px 10px; background: var(--tint-saffron); color: var(--saffron); font-size: 12.5px; }
.tbl tr.tbl-now td b { margin-right: 6px; font-weight: 700; }
.tbl tr.tbl-now td small { margin-left: 12px; color: var(--muted); }
.tbl--people td:nth-child(2) { max-width: 190px; }
.tbl--people td:nth-child(3), .tbl--people td:nth-child(4) { max-width: 150px; }
.tbl--people td:nth-child(4) .tbl-c { display: flex; }
.tbl--people td:nth-child(4) .tbl-c > :last-child { overflow: hidden; text-overflow: ellipsis; }

/* Sidebar: from 1024 px the bottom tab bar becomes a left sidebar, and pages use the full width */
.tabs .tabs__brand, .tabs .tabs__foot { display: none; }
@media (min-width: 1024px) {
  :root { --side-w: 232px; }
  .tabs { top: 0; bottom: 0; left: 0; right: auto; width: var(--side-w); transform: none; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--card-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabs__ind { display: none; }
  .tabs a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .tabs a .i { width: 20px; height: 20px; color: var(--muted); }
  .tabs a:hover { background: var(--card); }
  .tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: inset 3px 0 0 var(--saffron-hi), 0 1px 2px rgba(60, 45, 20, .06); }
  .tabs a[aria-current="page"] .i { color: var(--saffron); }
  .tabs .tabs__brand { display: flex; gap: 10px; min-height: 0; padding: 4px 10px 22px; background: none; box-shadow: none; }
  .tabs__brand .flag { width: 34px; height: 23px; }
  .tabs__brand span { display: grid; line-height: 1.1; }
  .tabs__brand b { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
  .tabs__brand small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .tabs .tabs__foot { display: flex; margin-top: auto; }
  .bar, #main { margin-left: var(--side-w); }
  .bar__in { max-width: none; padding: 10px 40px; }
  .bar .flag, .bar__app { display: none; }
  .search-pill { flex: 0 1 460px; }
  .home { max-width: 1360px; padding: 26px 40px 48px; }
  .view .toolbar { margin: 0 -40px 8px; padding: 10px 40px; }
  .alerts, .more { right: 40px; }
  .toasts { bottom: 24px; left: calc(50% + var(--side-w) / 2); }
}

/* ---------- Sign-in: the account, users, roles and permissions, the access log ---------- */
.gate { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.gate__c { display: grid; justify-items: center; gap: 10px; max-width: 380px; padding: 28px 24px; text-align: center; }
.gate__c h1 { margin: 4px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.gate__c p { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.acct-allows { display: inline-block; max-width: 420px; font-weight: 500; text-align: right; }
/* on/off switches: green when on */
.tgl { position: relative; display: inline-block; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); vertical-align: middle; cursor: pointer; transition: background .15s; }
.tgl i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s var(--ease); }
.tgl[aria-checked="true"], .tgl.on { background: var(--green-hi); }
.tgl[aria-checked="true"] i, .tgl.on i { transform: translateX(16px); }
.tgl:disabled { opacity: .5; cursor: default; }
.tgl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tgl--ro { width: 30px; height: 18px; cursor: default; }
.tgl--ro i { width: 12px; height: 12px; }
.tgl--ro.on i { transform: translateX(12px); }
.tgl--ro:not(.on) { background: var(--line); }
/* permissions: roles across, permissions down */
.perm-wrap { overflow-x: auto; padding: 0; }
.perm { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.perm th, .perm td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.perm thead th { min-width: 74px; max-width: 110px; white-space: normal; background: var(--card-2); font-size: 12.5px; font-weight: 700; line-height: 1.25; color: var(--ink-2); vertical-align: bottom; }
.perm thead th small { display: block; font-weight: 500; color: var(--muted); }
.perm thead th.me { color: var(--saffron); }
.perm thead th:first-child, .perm tbody th { text-align: left; }
.perm tbody th { min-width: 170px; padding-left: 14px; font-weight: 500; color: var(--ink); }
.perm tbody tr:last-child th, .perm tbody tr:last-child td { border-bottom: 0; }
.perm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
/* users */
.ubar { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ulist { padding: 0; }
.urow { display: grid; gap: 8px; padding: 12px 14px; }
.urow + .urow { border-top: 1px solid var(--line); }
.urow__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.urow__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-left: 38px; }
.urow__seen { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.urow.is-off .urow__who, .urow.is-off .urow__seen { opacity: .5; }
.u-n { display: grid; min-width: 0; line-height: 1.3; }
.u-n b { font-size: 14px; font-weight: 600; }
.u-n small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs__brand small.sbx { margin-top: 1px; color: var(--saffron); }
.you { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--tint-saffron); color: var(--saffron); font-size: 11px; font-weight: 700; }
.ctl.ctl--sm { width: auto; min-width: 170px; height: 34px; padding: 0 30px 0 10px; font-size: 13.5px; }
.link-box { display: flex; gap: 8px; }
.link-box .ctl { flex: 1; min-width: 0; height: 40px; font-size: 13px; }
/* access log */
.log-user { margin: 4px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.alog .alog__r { font-weight: 600; color: var(--ink); }
.alog li.is-bad .afeed__c, .alog li.is-bad .afeed__c b { color: var(--bad); }
.alog li.is-bad .afeed__c::before { border-color: var(--bad); }
