/* Fortix Brand OS — Fortix VI: Bebas (titles, numbers) + Roboto (everything else); black, white, purple #783CBC, #7B36FF, #42157A, #C29F88.
   Company rule: hover = soft shadow + faint tint only, never a dark/solid border. */
@font-face { font-family: "Bebas Neue"; src: url(/static/BebasNeue-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Roboto; src: url(/static/Roboto-VF-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Han Sans SC"; src: url(/static/SourceHanSansSC-VF.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0F0F0F; --ink-2: #1A1820; --violet: #783CBC; --violet-hi: #7B36FF; --violet-deep: #42157A; --tan: #C29F88;
  --v50: #F6F1FC; --v100: #ECE2F8; --v200: #DBC8F1; --v300: #B993E3;
  --gray-50: #F2F2F2; --gray-100: #E6E6E6; --gray-400: #8A8A8A; --gray-600: #555; --blue: #2457C5; --blue-50: #EAF0FC; --amber: #9A5B00; --amber-50: #FCF2E1; --teal: #0E6E6A; --teal-50: #E3F3F2;
  --tan-50: #F7F0EB; --tan-ink: #6E4E3A; --red: #B42318; --red-50: #FDEDEC; --green: #1F7A4D; --green-50: #E8F5EE;
  --bg: #F3F2F5; --surface: #FFFFFF; --line: #E7E4EC; --line-2: #F0EEF3; --text: #16141B; --muted: #686470; --hover: #FBF9FE;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 28px; --s7: 40px;
  --r1: 8px; --r2: 14px; --r3: 999px;
  --f-xs: 12px; --f-sm: 13px; --f-md: 14px; --f-lg: 16px; --f-xl: 19px;
  --d-sm: 22px; --d-md: 30px; --d-lg: 44px;
  --h: 32px; --h-sm: 28px;
  --sh-1: 0 1px 2px rgb(22 20 27 / .05);
  --sh-2: 0 2px 4px rgb(22 20 27 / .04), 0 10px 28px rgb(66 21 122 / .10);
  --ring: 0 0 0 3px rgb(123 54 255 / .32);
  --side: 200px;
  --display: "Bebas Neue", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-family: Roboto, "Source Han Sans SC", "Noto Sans SC", sans-serif;
  font-size: var(--f-md); line-height: 1.5; color: var(--text); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--gray-100) transparent; }
::selection { background: var(--gray-100); color: var(--ink); }
body { margin: 0; background: var(--bg); min-height: 100vh; font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r1); }
h1, h2, h3 { margin: 0; }
h1 { font: 400 var(--d-md)/1 var(--display); letter-spacing: .01em; }
h2 { font-size: var(--f-lg); font-weight: 600; margin-bottom: var(--s3); }
h3 { font-size: var(--f-sm); color: var(--muted); font-weight: 500; margin-bottom: var(--s2); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ic.big { width: 28px; height: 28px; color: var(--gray-400); }
.muted { color: var(--muted); }
.meta { display: block; color: var(--muted); font-size: var(--f-xs); }
.late, .meta .late { color: var(--red); }
.note { font-size: var(--f-sm); margin: var(--s3) 0 0; }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--f-sm); }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: var(--s5) var(--s3) var(--s4); gap: var(--s4); z-index: 5; overflow-y: auto; }
.logo { display: flex; flex-direction: column; gap: 10px; padding: 0 var(--s3); color: #fff; }
.logo:hover { text-decoration: none; }
.logo img { width: 108px; height: auto; display: block; }
.logo span { font: 400 18px/1 var(--display); letter-spacing: .08em; color: var(--tan); }
.side nav, .side .foot { display: flex; flex-direction: column; gap: 2px; }
.side .foot { margin-top: auto; padding-top: var(--s3); border-top: 1px solid rgb(255 255 255 / .08); }
.side nav a, .side .foot a, .navbtn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 var(--s3); border-radius: var(--r1);
  color: rgb(255 255 255 / .66); font: 400 var(--f-md)/1 Roboto, "Source Han Sans SC", sans-serif; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; transition: background .15s, color .15s; }
.side nav a span, .side .foot a span, .navbtn span { flex: 1; }
.side nav a:hover, .side .foot a:hover, .navbtn:hover { background: rgb(255 255 255 / .06); color: #fff; text-decoration: none; }
.side a[aria-current] { background: rgb(255 255 255 / .1); color: #fff; }
.side a[aria-current] .ic { color: #fff; }
.side i { font-style: normal; font-size: var(--f-xs); color: rgb(255 255 255 / .45); }
.side a[aria-current] i { color: rgb(255 255 255 / .8); }
main { margin-left: var(--side); padding: var(--s6) var(--s6) var(--s7); max-width: calc(1360px + var(--side)); }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.head .sub { margin: 8px 0 0; color: var(--muted); }
.head .sub b { color: var(--text); font-weight: 500; }
.head h1 .muted { font-size: .6em; }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: var(--f-sm); color: var(--muted); margin-bottom: var(--s3); }
.toast { position: sticky; top: var(--s3); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 10px var(--s3) 10px var(--s4);
  margin-bottom: var(--s4); background: var(--ink); color: #fff; border-radius: var(--r1); box-shadow: var(--sh-2); }
.toast .btn.ghost { color: #fff; text-decoration: underline; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 var(--s4); border-radius: var(--r1); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 500 var(--f-md)/1 Roboto, "Source Han Sans SC", sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:hover { background: var(--hover); box-shadow: var(--sh-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.accent { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.accent:hover { background: #8546CC; box-shadow: 0 8px 22px rgb(120 60 188 / .28); }
.btn.primary:hover { background: #8546CC; box-shadow: 0 8px 22px rgb(120 60 188 / .32); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--gray-50); box-shadow: none; }
.btn.sm { height: var(--h-sm); padding: 0 var(--s3); font-size: var(--f-sm); }
.btn[disabled], .btn[aria-busy] { opacity: .6; cursor: progress; }
.btn.upload { position: relative; overflow: hidden; }
.btn.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn.upload.loading { opacity: .6; pointer-events: none; }

/* ---------- chips & pills ---------- */
.chip, .pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r3); font-size: var(--f-xs); font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.chip.s0 { background: var(--gray-50); color: var(--gray-600); }
.chip.s1 { background: var(--blue-50); color: var(--blue); }
.chip.s2 { background: var(--blue-50); color: var(--blue); box-shadow: inset 0 0 0 1px #C9D7F4; }
.chip.s3 { background: var(--amber-50); color: var(--amber); }
.chip.s4 { background: var(--amber-50); color: var(--amber); box-shadow: inset 0 0 0 1px #F0D9AE; }
.chip.s6 { background: var(--teal-50); color: var(--teal); }
.chip.s5 { background: var(--green-50); color: var(--green); }
.chip.sx { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.pill.ok { background: var(--green-50); color: var(--green); }
.pill.mute { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pill.warn { background: var(--amber-50); color: var(--amber); }
.pill.info { background: var(--blue-50); color: var(--blue); }
.pill.bad { background: var(--red-50); color: var(--red); }
.pill.teal { background: var(--teal-50); color: var(--teal); }
.pill.note { background: var(--gray-50); color: var(--gray-600); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: var(--f-xs); background: var(--line-2); color: var(--muted); }
.tag.v { background: transparent; color: var(--gray-600); box-shadow: inset 0 0 0 1px var(--gray-100); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: var(--f-xs); color: var(--muted); }
.due .ic { width: 13px; height: 13px; vertical-align: 0; }
.due.today { color: var(--tan-ink); }
.due.late { color: var(--red); background: var(--red-50); padding: 1px 7px; border-radius: var(--r3); }
.due.today { background: var(--tan-50); padding: 1px 7px; border-radius: var(--r3); }

/* ---------- cards ---------- */
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); box-shadow: var(--sh-1); color: var(--text); }
a.card, .card.mcard, details.card { transition: box-shadow .18s, background .18s, transform .18s; }
a.card:hover, .mcard:hover, details.card:not([open]):hover { box-shadow: var(--sh-2); background: var(--hover); text-decoration: none; }
a.card:active { transform: translateY(1px); }
.cards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.grid3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards.grid2c { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.block { margin-bottom: var(--s6); }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.block-h h2 { margin: 0; font: 400 var(--d-sm)/1 var(--display); letter-spacing: .02em; }
.block-h .muted { font-size: var(--f-sm); }
.num { font: 400 var(--d-md)/1 var(--display); letter-spacing: .01em; color: var(--text); }
.num small { font-size: .55em; color: var(--muted); margin-left: 2px; }
.num.none, .kcard .num.none { font: 500 var(--f-lg)/1.4 Roboto, sans-serif; color: var(--muted); padding: 10px 0; }
.card > .chip, .card > .pill, .card > .tag { align-self: flex-start; }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }

/* today */
.fgroup + .fgroup { margin-top: var(--s4); }
.glabel { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s2); font-weight: 600; color: var(--text); }
.glabel i { font-style: normal; font-weight: 500; font-size: var(--f-xs); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 1px 7px; border-radius: var(--r3); }
.glabel.late { color: var(--red); }
.fcard { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); }
.fc-name { font-size: var(--f-lg); font-weight: 600; margin-top: 4px; }
.fc-act { color: #46424D; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cards.stages { grid-template-columns: repeat(6, 1fr); }
.scard { display: flex; flex-direction: column; gap: 10px; padding: var(--s4); min-height: 170px; }
.scard .num { font-size: var(--d-lg); }
.scard .names { font-size: var(--f-sm); line-height: 1.55; color: #46424D; }
.kcard { display: flex; flex-direction: column; gap: 10px; padding: var(--s5); }
.kcard .k { font-size: var(--f-sm); font-weight: 500; color: var(--muted); }
.kcard .num { font-size: var(--d-lg); }
.kcard > .muted { font-size: var(--f-sm); }
.bar { display: block; height: 6px; border-radius: var(--r3); background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.track-mini { display: flex; gap: 4px; }
.track-mini i { flex: 1; height: 6px; border-radius: var(--r3); background: var(--line-2); }
.track-mini i.on { background: var(--ink); }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s3); align-items: start; }
.kanban.single { grid-auto-columns: minmax(250px, 420px); }
.kcol { background: #EAE8EE; border-radius: var(--r2); padding: var(--s2); display: flex; flex-direction: column; min-width: 0; }
.kcol.dim { opacity: .75; }
.kcol header { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 10px; }
.kcol header i { font-style: normal; font-size: var(--f-xs); font-weight: 500; color: var(--muted); }
.kbody { display: flex; flex-direction: column; gap: var(--s2); max-height: calc(100vh - 250px); overflow-y: auto; padding: 2px; }
.colempty { margin: 0; padding: var(--s4) var(--s2); text-align: center; font-size: var(--f-sm); color: var(--muted); border: 1px dashed #D6D2DD; border-radius: var(--r1); }
.bcard, .ccard, .jcard { display: flex; flex-direction: column; gap: 6px; padding: var(--s3) 14px; border-radius: 12px; }
.bcard b, .ccard b, .jcard b { font-size: var(--f-md); font-weight: 600; line-height: 1.3; }
.local { font-size: var(--f-xs); color: var(--muted); margin-top: -3px; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.nx { font-size: var(--f-sm); color: #46424D; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard .cval { font: 400 26px/1 var(--display); letter-spacing: .01em; display: flex; align-items: baseline; gap: 8px; }
.ccard .cval .meta, .ccard .cval .muted { font: 400 var(--f-xs) Roboto, sans-serif; }
.ccard > .meta .ic { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.jcard a { display: flex; flex-direction: column; gap: 4px; color: inherit; }
.jcard a:hover { text-decoration: none; }
.jcard .muted { display: flex; align-items: center; gap: 4px; font-size: var(--f-sm); }
.jcard .muted .ic { width: 13px; height: 13px; }
.jcard form { margin-top: 4px; }
.jcard .btn.sm { padding: 0 6px; }

/* venues */
.vcard { display: flex; flex-direction: column; gap: 8px; }
.vcard.unverified { background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #FBFAFC 14px 28px); }
.vname { font: 400 var(--d-sm)/1.05 var(--display); letter-spacing: .02em; margin-top: 6px; }
.vstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: 6px 0 2px; padding-top: var(--s3); border-top: 1px solid var(--line-2); }
.vstats dt { font-size: 11.5px; color: var(--muted); }
.vstats dd { margin: 2px 0 0; font: 400 26px/1 var(--display); }
.vstats dd small { font-size: .6em; color: var(--muted); }
.spcard { padding: var(--s4); }
.spcard summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.spcard summary::-webkit-details-marker { display: none; }
.spcard summary b { font-size: var(--f-lg); font-weight: 600; }
.spcard .edit { font-size: var(--f-sm); color: var(--gray-600); font-weight: 500; }
.spcard[open] { grid-column: 1 / -1; }
.spcard[open] .edit { display: none; }
.spcard.touch { background: #FBFAFC; }
details.add { margin-top: var(--s3); padding: var(--s3); }
details.add > summary { list-style: none; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > summary { margin-bottom: var(--s4); }

/* matching */
.matches { list-style: none; margin: 0; padding: 0; grid-template-columns: 1fr; gap: var(--s2); }
.mcard { padding: 0; }
.mcard summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; gap: var(--s4); align-items: center; padding: 14px var(--s5); }
.mcard summary::-webkit-details-marker { display: none; }
.mb b { font-size: var(--f-lg); font-weight: 600; }
.score { display: flex; flex-direction: column; align-items: flex-end; min-width: 120px; font: 400 34px/1 var(--display); color: var(--ink); }
.score small { font: 400 var(--f-xs)/1.3 Roboto, sans-serif; color: var(--muted); max-width: 160px; text-align: right; }
.score.none { color: var(--line); }
.mcard.vetoed .mb b, .mcard.excluded .mb b { color: var(--muted); }
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s5); padding: var(--s4) var(--s5); border-top: 1px solid var(--line-2); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: var(--f-sm); }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.rules i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.rules i .ic { width: 13px; height: 13px; vertical-align: 0; }
.rules .pass i { background: var(--green-50); color: var(--green); }
.rules .fail i { background: var(--red-50); color: var(--red); }
.rules .unknown i { background: var(--tan-50); color: var(--tan-ink); }
.scores { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
.scores th, .scores td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; font-weight: 400; }
.scores th { font-weight: 500; }
.scores .n { font: 400 24px/1 var(--display); color: var(--ink); }
.parts { display: flex; flex-direction: column; gap: 3px; }
.parts span { font-size: var(--f-xs); color: var(--muted); }
.parts b { color: var(--text); font-weight: 500; }
.parts i { font-style: normal; }
.callout { margin-top: var(--s3); padding: var(--s3); border-radius: var(--r1); background: var(--gray-50); font-size: var(--f-sm); }
.override { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s5) var(--s4); border-top: 1px solid var(--line-2); font-size: var(--f-sm); }
.override p { margin: 0; flex: 1; }
.ovr { display: flex; gap: var(--s2); flex: 1; flex-wrap: wrap; }
.ovr input { flex: 1; min-width: 180px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: var(--s3) 0; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--s3); border-radius: var(--r3); color: var(--muted); font-size: var(--f-sm); font-weight: 500; transition: background .15s; }
.tabs a:hover { background: var(--surface); text-decoration: none; box-shadow: var(--sh-1); }
.tabs a[aria-current] { background: var(--ink); color: #fff; }
.tabs i { font-style: normal; opacity: .7; }

/* trash */
.tcard { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tcard b { font-weight: 600; }
.tcard form { margin-top: 6px; }

/* empty */
.card.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--s6); max-width: 560px; }
.empty .et { margin: 6px 0 0; font-size: var(--f-lg); font-weight: 600; color: var(--text); }
.empty p { margin: 0 0 6px; color: var(--muted); }
.empty:not(.card) { padding: var(--s4) 0; }

/* ---------- filters & forms ---------- */
.filters { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); align-items: center; }
.searchbox { position: relative; flex: 1 1 260px; max-width: 380px; }
.searchbox .ic { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.searchbox input { width: 100%; padding-left: 34px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); height: var(--h); padding: 0 var(--s3); transition: box-shadow .15s, background .15s; }
textarea { height: auto; padding: 10px var(--s3); resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { background: var(--hover); box-shadow: var(--sh-1); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #75707D; }
input[type=checkbox] { height: auto; accent-color: var(--ink); width: 16px; height: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.f { display: flex; flex-direction: column; gap: 6px; font-size: var(--f-sm); }
.f > span, .f legend { font-weight: 500; color: #3A3640; }
.f small { color: var(--muted); font-size: var(--f-xs); }
.f.wide { grid-column: 1 / -1; }
fieldset.f { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.ck { display: inline-flex; align-items: center; gap: 8px; font-size: var(--f-sm); cursor: pointer; }
.ck.f { flex-direction: row; align-self: end; height: var(--h); }
.stack-forms > .card, form > .card { margin-bottom: var(--s3); }
.card > h2 { font-size: var(--f-lg); }
.savebar { display: flex; gap: var(--s2); padding: var(--s3) 0; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); }
.spcard .savebar, details.add .savebar { background: none; position: static; }
.alert { padding: var(--s3) var(--s4); border-radius: var(--r1); background: var(--red-50); color: var(--red); margin-bottom: var(--s4); font-size: var(--f-sm); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.danger-zone { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: var(--s3) 0; }
.danger-zone .btn { color: var(--red); }
.danger-zone .btn:hover { background: var(--red-50); }
.danger-zone small { color: var(--muted); font-size: var(--f-xs); }
.upmsg { margin: 6px 0 0; font-size: var(--f-xs); }
.upmsg.err { color: var(--red); }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s4); align-items: start; }
.sidecol { display: flex; flex-direction: column; gap: var(--s3); position: sticky; top: var(--s4); }
.sidecol .card { padding: var(--s4); }
.sidecol h2 { font-size: var(--f-md); }
.fits, .mini, .files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--f-sm); }
.fits li { display: flex; align-items: center; gap: 8px; }
.fits li a { flex: 1; }
.fits .score { min-width: 0; font-size: 22px; }
.mini .pill { align-self: flex-start; }
.mini li, .files li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.files li form { margin-top: 2px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--f-xs); }
.log li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.log time { color: var(--muted); }
.log i { color: var(--muted); font-style: normal; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.stepper ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.stepper li button, .stepper li span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r1); border: 0; background: none; font: 500 var(--f-sm) Roboto, sans-serif; color: var(--muted); cursor: pointer; transition: background .15s; }
.stepper li button:hover { background: var(--gray-50); color: var(--ink); }
.stepper li.done button { color: var(--ink); }
.stepper li.now span { background: var(--ink); color: #fff; }
.side-steps { display: flex; gap: 4px; }
.side-steps .now { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r1); background: var(--line-2); font-size: var(--f-sm); }
.track { list-style: none; display: flex; gap: 4px; margin: 0 0 var(--s4); padding: 0; flex-wrap: wrap; }
.track li { flex: 1; min-width: 90px; padding: 8px 10px; border-radius: var(--r1); background: var(--surface); border: 1px solid var(--line); font-size: var(--f-xs); color: var(--muted); }
.track li.done { background: var(--gray-50); color: var(--ink); border-color: transparent; }
.track li.now { background: var(--ink); color: #fff; border-color: transparent; }

/* ---------- login ---------- */
body.login { display: grid; place-items: center; background: var(--ink); }
body.login main { margin: 0; padding: var(--s5); width: min(400px, 100%); display: flex; flex-direction: column; gap: var(--s5); }
body.login img { width: 132px; height: auto; }
body.login .card { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6); }
body.login h1 { font-size: var(--d-md); }
body.login .muted { margin: -8px 0 0; }
body.login .btn { width: 100%; height: 42px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .cards.stages { grid-template-columns: repeat(3, 1fr); } .detail { grid-template-columns: 1fr; } .sidecol { position: static; } }
@media (max-width: 860px) {
  .side { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3); }
  .side nav { flex-direction: row; overflow-x: auto; flex: 1 1 100%; order: 3; }
  .side nav a { white-space: nowrap; }
  .side .foot { flex-direction: row; margin: 0 0 0 auto; border: 0; padding: 0; }
  .side .foot span { display: none; }
  .logo { flex-direction: row; align-items: center; }
  main { margin: 0; padding: var(--s4); }
  .cards.three, .cards.stages { grid-template-columns: 1fr 1fr; }
  .grid, .why { grid-template-columns: 1fr; }
  .mcard summary { grid-template-columns: auto 1fr auto; } .mcard .score { grid-column: 1 / -1; align-items: flex-start; }
  .kanban { grid-auto-columns: 82%; }
  .kbody { max-height: none; }
}
@media (max-width: 520px) { .cards.three { grid-template-columns: 1fr; } .cards.stages { grid-template-columns: 1fr 1fr; } .scard { min-height: 0; } .scard .num { font-size: var(--d-md); } h1 { font-size: var(--d-sm); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- images: one system ----------
   Brands are logos → square, contained, never cropped: xs 24 (stacks), sm 40 (lists), md 56 (titles, fit cards), lg 96 (logo box).
   Places are photos → 16:9 cover on list cards, wide hero on their own page. No photo → quiet tile, same box, so grids stay aligned. */
:root { --img-xs: 24px; --img-sm: 40px; --img-md: 56px; --img-lg: 96px; }
.thumb { --hue: #333; display: grid; place-items: center; flex: none; width: var(--img-md); height: var(--img-md); border-radius: 12px; overflow: hidden; background: var(--hue); color: #fff; font: 400 26px/1 var(--display); letter-spacing: .02em; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:has(img) { display: block; background: var(--line-2); padding: 0; }
.thumb.xs { width: var(--img-xs); height: var(--img-xs); border-radius: 6px; font-size: 12px; }
.thumb.sm { width: var(--img-sm); height: var(--img-sm); border-radius: 10px; font-size: 18px; }
.thumb.lg { width: var(--img-lg); height: var(--img-lg); border-radius: 18px; font-size: 40px; }
.thumb.banner { width: calc(100% + 2 * var(--s5)); height: auto; aspect-ratio: 16 / 9; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s1); border-radius: var(--r2) var(--r2) 0 0; padding: 0; box-shadow: none; font-size: 44px; }
.thumb.banner:has(img) { display: block; }
.thumb.banner img { object-fit: cover; }
.thumb.mono.banner { background: linear-gradient(135deg, #F1F1F1, #E2E2E2); color: #9A9A9A; }
.fc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fc-who > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.head h1 .thumb { display: inline-grid; vertical-align: middle; margin-right: var(--s3); }
.faces { display: flex; margin: 4px 0; }
.faces .thumb + .thumb { margin-left: -6px; }
.faces .thumb { box-shadow: 0 0 0 2px var(--surface); }
.hero { position: relative; margin: 0 0 var(--s5); border-radius: var(--r2); overflow: hidden; box-shadow: var(--sh-1); }
.hero .thumb.banner { margin: 0; width: 100%; aspect-ratio: 21 / 7; border-radius: 0; font-size: 64px; }
.hero.none .thumb.banner { aspect-ratio: 21 / 4; }
.hero-act { position: absolute; right: var(--s4); bottom: var(--s4); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hero-act .upmsg { background: var(--surface); border-radius: var(--r1); padding: 0 8px; }
.hero-act .upmsg:empty { display: none; }
.logo-box { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s3); }
.logo-box p { margin: 0; font-size: var(--f-sm); }
.jcard a { display: flex; flex-direction: column; gap: 6px; }
.jcard .fc-who b { font-size: var(--f-md); }

/* ---------- districts ---------- */
.dcard { display: flex; flex-direction: column; gap: 8px; }
.dfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: auto; padding-top: var(--s2); }
.faces { display: flex; }
.faces .thumb + .thumb { margin-left: -6px; }
.kcard p { margin: 0; }
.cards.fits-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fitcard { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); }
.fit-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fit-why { font-size: var(--f-xs); color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fit-score { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fit-score b { font: 400 var(--d-sm)/1 var(--display); }

/* ---------- library, email, sourcing ---------- */
.libcard, .pcard { display: flex; flex-direction: column; gap: 8px; }
.libprev { display: grid; place-items: center; aspect-ratio: 16 / 9; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s1); border-radius: var(--r2) var(--r2) 0 0; overflow: hidden; background: var(--line-2); }
.libprev img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.libcard.on { box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-1); }
.libname { display: flex; gap: 6px; align-items: flex-start; font-weight: 500; word-break: break-word; }
.row { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: auto; }
.pcard p { margin: 0; font-size: var(--f-sm); }
.cards.stat-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: var(--s5); }
.attach { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.attach span:not(.muted) { flex: 1; min-width: 0; word-break: break-word; }
.btn.wide { width: 100%; justify-content: center; margin: var(--s3) 0 var(--s2); }
.compose textarea { font: inherit; line-height: 1.6; }


/* ---------- shell v2: wordmark, nav groups, account ---------- */
.wordmark { display: block; padding: 2px var(--s3) 0; font: 400 26px/1 var(--display); letter-spacing: .14em; color: #fff; }
.wordmark:hover { text-decoration: none; color: #fff; opacity: .8; }
.navgroup { margin: var(--s3) 0 4px; padding: 0 var(--s3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .38); }
.side nav .navgroup:first-child { margin-top: 0; }
.side .foot a.me { height: auto; padding: 8px var(--s3); gap: 10px; }
.me > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me b { color: #fff; font-weight: 500; font-size: var(--f-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { font-size: var(--f-xs); color: rgb(255 255 255 / .5); }
.avatar { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #444; color: #fff; font: 400 16px/1 var(--display); }
.avatar.lg { width: 44px; height: 44px; font-size: 22px; }
body.login .wordmark { color: var(--ink); font-size: 34px; text-align: center; margin-bottom: var(--s4); }
.grow { flex: 1; }

/* ---------- table ⇄ cards ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r1); background: var(--line-2); gap: 2px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; color: var(--muted); font-size: var(--f-sm); font-weight: 500; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current] { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.tablecard { padding: 0; overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
table.list th { text-align: left; font-weight: 500; color: var(--muted); font-size: var(--f-xs); padding: 10px var(--s3); border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFAFC; }
table.list td { padding: 10px var(--s3); border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list tbody tr:hover td { background: var(--hover); }
table.list tr:last-child td { border-bottom: 0; }
table.list .n { text-align: right; white-space: nowrap; }
table.list .clip { max-width: 280px; }
table.list .due { display: inline-flex; margin-top: 2px; }
.rowlink { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.rowlink b { font-weight: 500; }
.rowlink > span { display: flex; flex-direction: column; }
.rowlink:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cards.brand-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.bcard2 { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); }
.bcard2 b { font-size: var(--f-md); font-weight: 600; margin-top: 4px; }

/* ---------- venues, spots, facts ---------- */
.cards.venue-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.vcard { gap: 6px; padding: var(--s4); }
.vcard .thumb.banner { width: calc(100% + 2 * var(--s4)); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s1); aspect-ratio: 16 / 9; }
.vname { font: 400 22px/1.05 var(--display); letter-spacing: .02em; }
.vstats2 { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: var(--f-xs); color: var(--muted); margin-top: 4px; }
.vstats2 span { display: inline-flex; align-items: center; gap: 4px; }
.vstats2 .ic { width: 13px; height: 13px; }
.hero .thumb.banner { aspect-ratio: 21 / 6; max-height: 260px; }
.hero.none .thumb.banner { aspect-ratio: 21 / 3; }
.cards.facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: var(--s4); }
.fact { padding: var(--s4); display: flex; flex-direction: column; gap: 4px; }
.fact .num { font: 400 var(--d-sm)/1 var(--display); color: var(--ink); }
.fact .muted { font-size: var(--f-xs); line-height: 1.4; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px var(--s4); margin: 0; font-size: var(--f-sm); }
dl.kv.two { grid-template-columns: max-content 1fr max-content 1fr; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.prose { white-space: pre-line; margin: 0 0 var(--s3); line-height: 1.65; }
.cards.spot-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.spcard2 { padding: 0; overflow: hidden; }
.spcard2 > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: var(--s4); }
.spcard2 > summary::-webkit-details-marker { display: none; }
.spcard2 .thumb.banner { width: calc(100% + 2 * var(--s4)); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s1); aspect-ratio: 4 / 3; border-radius: 0; font-size: 34px; }
.spcard2 b { font-size: var(--f-md); font-weight: 600; }
.spcard2 .edit { display: inline-flex; align-items: center; gap: 4px; font-size: var(--f-xs); color: var(--gray-600); margin-top: 2px; }
.spcard2[open] { grid-column: 1 / -1; }
.spcard2[open] > summary { flex-direction: row; flex-wrap: wrap; align-items: center; }
.spcard2[open] > summary .thumb.banner { width: 160px; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r1); }
.spot-edit { padding: 0 var(--s4) var(--s4); }
.note-line { color: var(--tan-ink); }
.touch { opacity: .92; }
.editbox > summary { list-style: none; cursor: pointer; }
.editbox > summary::-webkit-details-marker { display: none; }
.editbox > summary h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.editbox[open] > summary h2 { margin-bottom: var(--s4); }
.editbox form > .card { box-shadow: none; border-color: var(--line-2); }
.nextcard { display: flex; flex-direction: column; gap: 4px; background: var(--ink); border-color: var(--ink); color: #fff; }
.nextcard .muted { color: rgb(255 255 255 / .6); }
.nextcard .k { font-size: var(--f-xs); color: rgb(255 255 255 / .6); }

/* ---------- projects ---------- */
.pjcard { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); }
.pjcard .thumb.banner { width: calc(100% + 2 * var(--s4)); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s1); aspect-ratio: 16 / 8; }
.pjcard b { font-size: var(--f-md); font-weight: 600; line-height: 1.35; }
.cval { font: 400 var(--f-xl)/1 var(--display); letter-spacing: .02em; }
table.budget tr.sec th { background: var(--gray-50); color: var(--ink); font-size: var(--f-sm); }
table.budget tfoot th { font-size: var(--f-sm); color: var(--text); border-top: 2px solid var(--line); padding: 12px var(--s3); }
table.budget td:last-child { width: 32px; }
.rowedit > summary { list-style: none; cursor: pointer; color: var(--muted); }
.rowedit > summary::-webkit-details-marker { display: none; }
.rowedit[open] { position: absolute; right: var(--s6); width: min(640px, 80vw); z-index: 3; background: var(--surface); border-radius: var(--r2); box-shadow: var(--sh-2); padding: var(--s4); }
#budget .block-h { margin-bottom: var(--s3); }
details.add > summary { list-style: none; cursor: pointer; display: inline-flex; margin-top: var(--s3); }
details.add > summary::-webkit-details-marker { display: none; }

/* ---------- media ---------- */
.cards.media-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mdcard { display: flex; flex-direction: column; gap: 5px; padding: var(--s4); }
.mdcard .thumb.banner { width: calc(100% + 2 * var(--s4)); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s1); aspect-ratio: 16 / 10; }
.mdcard .thumb.banner img { object-position: top; }
.mdcard b { font-size: var(--f-md); font-weight: 600; }
img.shot { width: 100%; border-radius: var(--r1); border: 1px solid var(--line); display: block; }

/* ---------- matching by district ---------- */
.pickers { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.picker { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.picker:hover { text-decoration: none; box-shadow: var(--sh-2); }
.picker.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.picker.on .meta { color: rgb(255 255 255 / .6); }
.picker.ghost { background: transparent; border-style: dashed; padding-left: 14px; }
.picker > span { display: flex; flex-direction: column; }
.portrait { display: grid; grid-template-columns: 300px 1fr; gap: var(--s5); padding: 0; overflow: hidden; margin-bottom: var(--s4); }
.portrait .pt-img .thumb.banner { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; border-radius: 0; min-height: 200px; }
.portrait .pt-body { padding: var(--s5) var(--s5) var(--s5) 0; display: flex; flex-direction: column; gap: var(--s3); }
.portrait h2 { margin: 0; }
.clip3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.cards.kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: var(--s5); }
.fitbar { display: inline-block; width: 120px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; vertical-align: middle; }
.fitbar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.pct { font: 400 18px/1 var(--display); margin-left: 8px; vertical-align: middle; }
.fitrow { display: flex; align-items: center; margin-top: 4px; }
.fitrow .fitbar { flex: 1; }
.cat-table tr.on td { background: var(--gray-50); }
.catgroup { margin-bottom: var(--s5); }
.catgroup .glabel { display: flex; align-items: center; gap: 8px; }
.mcard2 { display: flex; flex-direction: column; gap: var(--s3); }
.mcard2 .fc-who { justify-content: space-between; }
.mcard2 .fc-who > span:nth-child(2) { flex: 1; }

/* ---------- library ---------- */
.cards.lib { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.libcard { padding: var(--s4); overflow: hidden; }
.libprev { margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s2); width: calc(100% + 2 * var(--s4)); border-radius: 0; }
.libname { word-break: break-word; }

@media (max-width: 1180px) { dl.kv.two { grid-template-columns: max-content 1fr; } .cards.kpis { grid-template-columns: 1fr 1fr; } .portrait { grid-template-columns: 1fr; } .portrait .pt-body { padding: 0 var(--s5) var(--s5); } }
@media (max-width: 860px) {
  .side { position: sticky; top: 0; overflow: visible; }
  .side .navgroup { display: none; }
  .side nav { scrollbar-width: none; }
  .side .foot a.me > span:last-child, .side .foot a span { display: none; }
  .side .foot a.me { padding: 0 var(--s2); }
  .wordmark { padding: 0 var(--s2); }
  .head { align-items: flex-start; }
  table.list { font-size: var(--f-xs); }
  .cards.kpis { grid-template-columns: 1fr 1fr; }
  dl.kv.two { grid-template-columns: max-content 1fr; }
  .filters .grow { display: none; }
}

/* Chinese: plain international sans (Source Han Sans), regular and medium weights only — no faux-bold, no condensed display face */
html[lang="zh"] :is(b, strong, h2, h3, th, .btn, .chip, .pill, .tabs a, .seg a, .glabel, .vname, .wordmark + nav a) { font-weight: 500; }
html[lang="zh"] h2 { font-weight: 500; }
html[lang="zh"] h1 { font-family: "Bebas Neue", "Source Han Sans SC", sans-serif; font-weight: 400; letter-spacing: .01em; }
html[lang="zh"] .vname { font: 500 18px/1.3 "Bebas Neue", "Source Han Sans SC", sans-serif; letter-spacing: .01em; }
html[lang="zh"] .navgroup { letter-spacing: .02em; }
table.budget td:first-child { min-width: 180px; }
table.budget td:nth-child(2) { min-width: 220px; }

/* ---------- network, tasks, money, results ---------- */
.navgroup.sp { margin: var(--s2) 0 0; border-top: 1px solid rgb(255 255 255 / .08); height: 0; padding: 0; }
.side i.alert { color: #fff; background: var(--red); border-radius: var(--r3); padding: 1px 6px; }
.cards.two-col { grid-template-columns: 1fr 1fr; }
.cards.kpis-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); margin: 0 0 var(--s4); }
.kpis-sm .kcard { background: var(--line-2); border-radius: var(--r1); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpis-sm .num { font-size: var(--f-xl); }
.kcard.warn .num { color: var(--red); }
ul.people { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-direction: column; }
ul.people li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
ul.people .pc { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: var(--f-sm); color: var(--muted); }
ul.people .pc a { display: inline-flex; align-items: center; gap: 4px; }
ol.timeline { list-style: none; margin: var(--s3) 0 0; padding: 0; }
ol.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: var(--s3); padding-bottom: var(--s3); position: relative; }
ol.timeline li::before { content: ''; position: absolute; left: 6px; top: 12px; bottom: 0; width: 1px; background: var(--line); }
ol.timeline li:last-child::before { display: none; }
.tl-dot { width: 9px; height: 9px; margin: 5px 0 0 2px; border-radius: 50%; background: var(--ink); }
ol.timeline .prose { margin: 2px 0; }
ol.timeline .nx { display: inline-flex; gap: 4px; align-items: center; color: var(--ink); font-size: var(--f-sm); }
ul.tasks { list-style: none; margin: 0 0 var(--s3); padding: 0; }
ul.tasks li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s3); padding: 6px 0; border-bottom: 1px solid var(--line-2); }
ul.tasks li.done .tt { color: var(--muted); text-decoration: line-through; }
ul.tasks li.late .meta { color: var(--red); }
.tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--gray-400); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; }
.tick:hover { background: var(--gray-50); }
li.done .tick { background: var(--ink); border-color: var(--ink); }
.tick .ic { width: 13px; height: 13px; }
.task-add { display: grid; grid-template-columns: 1fr 130px 100px 130px 140px auto; gap: var(--s2); margin-top: var(--s3); }
details.tsec { border-bottom: 1px solid var(--line-2); }
details.tsec > summary { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; cursor: pointer; list-style: none; border-radius: var(--r1); }
details.tsec > summary::-webkit-details-marker { display: none; }
details.tsec > summary:hover { background: var(--hover); }
details.tsec > summary b { font-weight: 500; }
details.tsec > summary .muted { font-size: var(--f-xs); }
details.tsec ul.tasks { margin: 0 0 var(--s2); }
details.tsec ul.tasks li:last-child { border-bottom: 0; }
ul.tasks .tt .meta { margin-top: 1px; }
ul.tasks .meta .tag { height: 18px; vertical-align: 1px; }
.task-add input, .task-add select { height: var(--h-sm); }
.funnel { display: flex; flex-direction: column; gap: 6px; margin: 0 0 var(--s4); }
.funnel > div { display: grid; grid-template-columns: 130px 1fr 80px 60px; align-items: center; gap: var(--s3); font-size: var(--f-sm); }
.fitbar.wide { width: 100%; height: 10px; border-radius: 5px; }
.fitbar.wide i { border-radius: 5px; }
@media (max-width: 860px) { .cards.two-col { grid-template-columns: 1fr; } .task-add { grid-template-columns: 1fr 1fr; } .funnel > div { grid-template-columns: 100px 1fr 60px; } .funnel .muted { display: none; } }

/* ---------- client report (prints to A4) ---------- */
body.report { background: #fff; max-width: 980px; margin: 0 auto; padding: 48px 40px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: var(--s4); margin-bottom: var(--s6); }
.wordmark.dark { color: var(--ink); padding: 0; }
body.report h1 { font-size: 44px; margin-bottom: 6px; }
body.report h2 { margin: var(--s6) 0 var(--s3); font-size: var(--f-xl); }
.rp-hero { border-radius: var(--r2); overflow: hidden; margin-top: var(--s5); }
.rp-hero .thumb.banner { margin: 0; width: 100%; aspect-ratio: 21 / 8; border-radius: 0; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s3); }
.rp-kpis div { border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4); display: flex; flex-direction: column; gap: 4px; }
.rp-kpis b { font: 400 40px/1 var(--display); color: var(--ink); }
.rp-kpis span { color: var(--muted); font-size: var(--f-sm); }
.rp-bars { display: flex; gap: var(--s3); align-items: flex-end; height: 180px; margin-top: var(--s4); border-bottom: 1px solid var(--line); }
.rp-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.rp-bars .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.rp-bars .bars i { width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; }
.rp-bars small { font-size: 11px; color: var(--muted); }
.b0 { background: var(--ink); } .b1 { background: var(--gray-400); } .b2 { background: var(--tan); } .b3 { background: var(--violet); }
.legend { display: flex; gap: var(--s4); font-size: var(--f-sm); color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.rp-spots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.rp-spots figure { margin: 0; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.rp-spots .thumb.banner { margin: 0; width: 100%; border-radius: 0; aspect-ratio: 4 / 3; font-size: 30px; }
.rp-spots figcaption { padding: 10px 12px; display: flex; flex-direction: column; font-size: var(--f-sm); } .rp-spots figcaption span { color: var(--muted); }
.rp-foot { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--f-xs); color: var(--muted); }
@media print { body.report { padding: 0; } .rp-spots figure, .rp-kpis div, table { break-inside: avoid; } @page { size: A4; margin: 16mm; } }

/* ---------- search, schedule, calendar, quotation ---------- */
.side-search label { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 var(--s3); border-radius: var(--r1); background: rgb(255 255 255 / .07); color: rgb(255 255 255 / .55); }
.side-search input { background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: var(--f-sm); width: 100%; }
.side-search input::placeholder { color: rgb(255 255 255 / .45); }
.searchbox.wide { flex: 1; max-width: 640px; }
.sres { display: flex; align-items: center; gap: 10px; padding: var(--s3); }
.sres > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sres .thumb.md { width: var(--img-sm); height: var(--img-sm); background: var(--line-2); color: var(--gray-600); }
input.copy { width: 100%; font: var(--f-xs)/1.4 ui-monospace, monospace; padding: 8px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--line-2); margin-bottom: var(--s2); }
.gantt { font-size: var(--f-xs); overflow-x: auto; }
.g-head, .g-row { display: grid; grid-template-columns: 210px 1fr; align-items: center; min-width: 760px; }
.g-weeks { display: grid; grid-template-columns: repeat(10, 1fr); color: var(--muted); }
.g-weeks span { padding: 4px 0 6px 4px; border-left: 1px solid var(--line-2); }
.g-row { border-top: 1px solid var(--line-2); min-height: 38px; }
.g-name { display: flex; align-items: center; gap: 6px; padding-right: var(--s2); overflow: hidden; }
.g-name > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; height: 38px; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line-2) calc(10% - 1px) 10%); }
.g-bar { position: absolute; top: 8px; height: 22px; border-radius: 6px; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #fff; font-weight: 500; text-decoration: none !important; }
.g-bar.hold, .g-key.hold { background: #E8B95A; color: #3B2600; } .g-bar.confirmed, .g-key.confirmed { background: var(--ink); } .g-bar.live, .g-key.live { background: var(--green); } .g-bar.released { background: var(--line); color: var(--muted); }
.g-bar.clash, .g-key.clash { background: var(--red); } .g-bar.focus { box-shadow: 0 0 0 2px var(--ink); }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tan); }
.g-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.cal-title { margin: 0 0 var(--s3); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: var(--f-xs); color: var(--muted); padding: 4px 6px; }
.cal-day { min-height: 112px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); padding: 6px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-day.out { background: transparent; opacity: .55; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-n { font-size: var(--f-xs); color: var(--muted); }
.cal-ev { display: block; font-size: 11.5px; line-height: 1.35; padding: 2px 5px; border-radius: 4px; background: var(--line-2); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev b { font-weight: 500; color: var(--ink); }
.cal-ev.late { background: var(--red-50); } .cal-ev.late b { color: var(--red); } .cal-ev.ok { background: var(--green-50); } .cal-ev.ok b { color: var(--green); } .cal-ev.v { background: var(--blue-50); } .cal-ev.v b { color: var(--blue); }
.cal-ev:hover { text-decoration: none; box-shadow: var(--sh-1); }
.q-actions { margin: var(--s3) 0 0; }
body.quote .q-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: var(--f-sm); color: var(--muted); }
body.quote .q-meta b { font: 400 28px/1 var(--display); color: var(--ink); letter-spacing: .04em; }
.q-parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-bottom: var(--s5); }
.q-parties .k { font-size: var(--f-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.q-parties p { margin: 4px 0 0; line-height: 1.6; }
.q-table { margin-top: var(--s4); } .q-table td { vertical-align: top; }
.q-total th { font-size: var(--f-lg) !important; color: var(--ink) !important; }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } .cal-dow, .cal-day.out { display: none; } .cal-day { min-height: 0; } }

/* ---------- one spacing system (wins over earlier one-off margins) ----------
   Page sections: 24px apart. Card grids: 16px gutters. Inside a card: 12px between blocks. Nothing pokes out of its card. */
main { display: flex; flex-direction: column; gap: var(--s5); }
main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
main > .crumb + .head { margin-top: calc(var(--s2) - var(--s5)) !important; }
main > .tabs + .filters, main > .head + .tabs { margin-top: calc(var(--s3) - var(--s5)) !important; }
.maincol { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.maincol > *, .sidecol > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.sidecol { gap: var(--s4); }
.block > .block-h { margin-bottom: var(--s3); }
.cards, .cards.grid3, .cards.grid2c, .cards.brand-grid, .cards.venue-grid, .cards.spot-grid, .cards.fits-grid, .cards.media-grid, .cards.lib, .cards.facts, .cards.kpis, .cards.kpis-sm, .cards.stat-cards, .cards.two-col { gap: var(--s4); }
.cards.facts, .cards.kpis, .cards.stat-cards, .cards.kpis-sm { margin-bottom: 0; }
.card > .cards.kpis-sm { margin-bottom: var(--s4); }
.catgroup + .catgroup { margin-top: var(--s5); }
.catgroup { margin-bottom: 0; }
.grid > *, .fit-body, .fc-who > span:last-child, .bcard2, .pjcard, .vcard, .mdcard, .libcard { min-width: 0; }
.grid select, .grid input, .grid textarea { width: 100%; max-width: 100%; min-width: 0; }
.bcard2 > b, .pjcard > b, .vcard .vname, .mdcard > b, .libname { overflow-wrap: anywhere; }
.card:has(> table.list) { overflow-x: auto; }
.card > table.list { min-width: 560px; }
table.budget td:first-child, table.budget td:nth-child(2) { min-width: 0; }
details.rowedit[open] { position: fixed; left: 50%; top: 8vh; transform: translateX(-50%); width: min(680px, 92vw); max-height: 84vh; overflow: auto; z-index: 20; box-shadow: 0 24px 80px rgb(0 0 0 / .25); }
details.rowedit[open]::before { content: ''; position: fixed; inset: -100vh -100vw; background: rgb(0 0 0 / .25); z-index: -1; }
details.add > form.card { margin-top: var(--s3); }
.spcard2[open] .spot-edit .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mcard2 .grid { grid-template-columns: 1fr; }
.task-add > * { min-width: 0; }
.thumb.mono { display: grid !important; place-items: center; flex-direction: initial; }
table.list tr.late { color: inherit; }
.due { white-space: nowrap; }
.fc-top { flex-wrap: wrap; row-gap: 4px; }
.thumb.xs:has(img) { display: inline-block; vertical-align: middle; margin-right: 4px; }
dl.kv dd a { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- density pass 2026-11-05: compact sidebar, no accent bar ---------- */
.side { padding: var(--s4) var(--s2) var(--s3); gap: var(--s3); }
.side nav, .side .foot { gap: 1px; }
.side nav a, .side .foot a, .navbtn { height: 30px; padding: 0 10px; gap: 8px; font-size: var(--f-md); }
.side a[aria-current] { background: rgb(255 255 255 / .12); font-weight: 500; }
.navgroup { margin: var(--s3) 0 2px; padding: 0 10px; font-size: 10.5px; }
.wordmark { padding: 0 10px; font-size: 22px; }
.side-search label { height: 30px; padding: 0 10px; }
.side .foot a.me { padding: 6px 10px; }
.card { padding: var(--s4); }
.vname { font-size: 20px; }
body.login .btn { height: 38px; }

/* selects: custom chevron with breathing room */
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px; }
select[multiple] { background-image: none; padding-right: var(--s3); height: auto; }
/* avatar never stretches */
.side .foot a span.avatar, .avatar { flex: none !important; width: 28px; height: 28px; aspect-ratio: 1; }
.avatar.lg { width: 44px; height: 44px; }

/* section tab strip (sibling pages) */
.subnav { display: flex; gap: var(--s5); border-bottom: 1px solid var(--line); margin-bottom: calc(var(--s2) - var(--s5)) !important; }
.subnav a { padding: 0 0 10px; font-size: var(--f-md); color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
/* sidebar foot: account + settings */
.side .foot { flex-direction: row; align-items: center; gap: 4px; }
.side .foot a.me { flex: 1; min-width: 0; }
.side .foot a.gear { flex: none; width: 30px; height: 30px; padding: 0; justify-content: center; }
/* workbench */
.wbkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.wbk { display: flex; flex-direction: column; gap: 6px; }
.wbk .k { font-size: var(--f-sm); color: var(--gray-600); }
.wbk .num { font: 400 var(--d-sm)/1 var(--display); overflow-wrap: anywhere; }
.wbk .num.late { color: var(--red); }
.wbk .muted { font-size: var(--f-xs); }
.wb { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.wbcol { display: flex; flex-direction: column; gap: var(--s4); }
.wbh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s2); }
.wbh h2 { margin: 0; }
.wbl { list-style: none; margin: 0; padding: 0; }
.wbl li + li { border-top: 1px solid var(--line-2); }
.wbl a { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; color: inherit; }
.wbl a:hover { text-decoration: none; background: var(--hover); }
.wbm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wbm b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbm .muted { font-size: var(--f-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbr { flex: none; display: flex; align-items: center; gap: var(--s2); }
.wbnone, .wbnote { margin: var(--s2) 0 0; font-size: var(--f-sm); }
.wbp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--s4); }
.wbp a { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; color: inherit; }
.wbp a:hover { text-decoration: none; }
.wbp b { font: 400 var(--f-xl)/1 var(--display); }
@media (max-width: 1000px) { .wb { grid-template-columns: 1fr; } .wbkpis { grid-template-columns: 1fr 1fr; } }
.wbcol, .wb > * { min-width: 0; }
@media (max-width: 760px) { .side .foot a.me { flex: none; } .wbr .due { display: none; } }
@media (max-width: 760px) { .side .foot a span.avatar { display: grid !important; } }

/* ---------- case library ---------- */
.casecard .prose { color: var(--text); font-size: var(--f-sm); }
ul.cres { list-style: none; margin: var(--s1) 0 0; padding: var(--s2) 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; font-size: var(--f-sm); color: var(--muted); }
ul.cres b { color: var(--ink); font-weight: 500; }

/* ---------- contract parties ---------- */
ul.parties { list-style: none; margin: 0 0 var(--s3); padding: 0; }
ul.parties > li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-bottom: 1px solid var(--line-2); }
ul.parties > li:last-child { border-bottom: 0; }
ul.parties .prole { color: var(--muted); font-size: var(--f-sm); padding-top: 1px; }
ul.parties b { font-weight: 500; }
ul.parties .psign { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
ul.parties details.rowedit { grid-column: 1 / -1; }
ul.parties details.rowedit:not([open]) { grid-column: auto; }
@media (max-width: 860px) { ul.parties > li { grid-template-columns: 1fr auto; } ul.parties .prole { grid-column: 1 / -1; } }

/* ---------- refinement pass 2026-11-30 (impeccable polish) ---------- */
/* One heading voice inside cards: section titles in a card read the same whether or not they carry a counter. */
.card .block-h h2 { font: 600 var(--f-lg)/1.4 Roboto, "Source Han Sans SC", "Noto Sans SC", sans-serif; letter-spacing: 0; }
.tag, .chip, .pill { white-space: nowrap; flex: none; }

/* Monograms: a faint tint of the ink, not a solid block. Blank banners show what the thing is. */
.thumb.mono { background: color-mix(in srgb, var(--hue) 8%, #fff); color: var(--hue); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 12%, transparent); }
.thumb.mono.blank, .thumb.mono.banner { background: linear-gradient(180deg, #F7F6F9, #EFEDF2); color: #B4AFBB; box-shadow: none; }
.thumb.mono.blank .ic { width: 28px; height: 28px; stroke-width: 1.4; }
.thumb.logo:has(img) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.thumb.logo img { object-fit: contain; padding: 8%; }
.thumb.logo.banner img { padding: 12% 28%; }

/* Project hero: a band, not a poster — the work below is the point. */
.hero .thumb.banner { max-height: 200px; }
.hero .thumb.banner img { object-position: center 32%; }

/* Project sections */
.ptabs { position: sticky; top: 0; z-index: 5; display: flex; gap: var(--s5); margin: 0 0 var(--s5); background: var(--bg); border-bottom: 1px solid var(--line); }
.ptabs a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0 11px; color: var(--gray-600); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s ease-out; }
.ptabs a:hover { color: var(--ink); text-decoration: none; }
.ptabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.ptabs i { font-style: normal; font-size: var(--f-xs); font-weight: 500; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--line-2); color: var(--gray-600); display: inline-grid; place-items: center; }
.panel { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.panel[hidden] { display: none; }

/* Files: one compact row each, the remove control appears where the pointer is. */
.files li { flex-direction: row; align-items: center; gap: var(--s2); }
.files .fname { display: flex; align-items: flex-start; gap: var(--s2); flex: 1; min-width: 0; color: var(--text); }
.files .fname .ic { margin-top: 2px; color: var(--gray-400); }
.files .fname .fn { display: block; overflow-wrap: anywhere; }
.files li form { margin: 0; }
.iconbtn { width: var(--h-sm); padding: 0; justify-content: center; }
.files li form, ul.tasks li > form:last-child { opacity: 0; transition: opacity .15s ease-out; }
.files li:hover form, .files li:focus-within form, ul.tasks li:hover > form:last-child, ul.tasks li:focus-within > form:last-child { opacity: 1; }
@media (hover: none) { .files li form, ul.tasks li > form:last-child { opacity: 1; } }

/* Overdue says so on its date, not by painting the whole row red. */
ul.tasks li.late, ul.tasks li.late .tt, ul.tasks li.late .tt a { color: var(--text); }
ul.tasks li.late .meta { color: var(--muted); }
ul.tasks .meta .late { color: var(--red); font-weight: 500; }

/* Workbench numbers */
.wbk .num { font-size: var(--d-md); }
.wbk .num.zero { color: var(--gray-400); }
.panel > section, .panel > details, #tasks, #finance, #budget, #bookings, #results { scroll-margin-top: 64px; }
.ptabs ~ .detail .sidecol { top: 64px; }
.devlink { align-self: flex-start; font-size: var(--f-xs); color: var(--gray-400); padding: 0 var(--s4); }
.nextup ul { list-style: none; margin: 0; padding: 0; }
.nextup li { display: grid; grid-template-columns: 108px 1fr auto; gap: var(--s3); align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.nextup ul:last-child li:last-child { border-bottom: 0; }
.nextup .nd { color: var(--muted); font-size: var(--f-sm); }
.nextup .nd.late { color: var(--red); font-weight: 500; }
.nextup .nd.today { color: var(--ink); font-weight: 500; }
.nextup .nlate { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; color: var(--red); font-size: var(--f-sm); font-weight: 500; }
.nextup .nlate + ul { margin-bottom: var(--s3); }
.spcard2 .thumb.mono.blank.banner { aspect-ratio: 16 / 7; }
td.nw, .nw { white-space: nowrap; }
.tablewrap { overflow-x: auto; margin: 0 calc(-1 * var(--s1)); padding: 0 var(--s1); }
.fits .score.none, .score.none { font: 400 var(--f-sm)/1.4 Roboto, "Source Han Sans SC", sans-serif; color: var(--gray-400); min-width: 0; cursor: help; }
.fitgap { display: flex; gap: 6px; align-items: flex-start; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line-2); font-size: var(--f-sm); color: var(--muted); }
.fitgap .ic { flex: none; margin-top: 2px; }
.fitgap a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nodata { font-size: var(--f-sm); }
.fits .score { flex-direction: row; align-items: baseline; gap: 6px; }
.fits .score small, .fitrow .cov { font: 400 var(--f-xs)/1.3 Roboto, "Source Han Sans SC", sans-serif; color: var(--gray-400); white-space: nowrap; cursor: help; }
.fitrow .cov { margin-left: 6px; }
/* Section tabs under the page title */
.head + .subnav { margin: calc(-1 * var(--s2)) 0 var(--s5) !important; }
.head + .subnav a { padding-bottom: 10px; }
.hero.none .thumb.banner { aspect-ratio: auto; height: 96px; max-height: 96px; }
