:root, html[data-mode="dark"], html[data-theme="dark"] {
  color-scheme: dark;
  --color-kumo-canvas: oklch(10% 0 0);
  --color-kumo-base: oklch(13.5% 0 0);
  --color-kumo-elevated: oklch(16.5% 0 0);
  --color-kumo-recessed: oklch(7.5% 0 0);
  --color-kumo-contrast: oklch(97% 0 0);
  --color-kumo-line: oklch(28% 0 0);
  --color-kumo-hairline: oklch(21% 0 0);
  --color-kumo-text: oklch(96% 0 0);
  --color-kumo-text-secondary: oklch(74% 0 0);
  --color-kumo-text-tertiary: oklch(56% 0 0);
  --color-kumo-success: oklch(80% 0.17 160);
  --color-kumo-warning: oklch(79% 0.16 60);
  --color-kumo-danger: oklch(72% 0.19 25);
  --color-kumo-focus: oklch(72% 0.15 240);
  --color-kumo-hybrid: oklch(78% 0.12 300);
  --shadow-pop: 0 8px 24px oklch(0% 0 0 / 0.55);
}
html[data-mode="light"], html[data-theme="light"] {
  color-scheme: light;
  --color-kumo-canvas: oklch(98.75% 0 0);
  --color-kumo-base: oklch(100% 0 0);
  --color-kumo-elevated: oklch(100% 0 0);
  --color-kumo-recessed: oklch(96.5% 0 0);
  --color-kumo-contrast: oklch(14% 0 0);
  --color-kumo-line: oklch(87% 0 0);
  --color-kumo-hairline: oklch(92.5% 0 0);
  --color-kumo-text: oklch(16% 0 0);
  --color-kumo-text-secondary: oklch(45% 0 0);
  --color-kumo-text-tertiary: oklch(60% 0 0);
  --color-kumo-success: oklch(54% 0.16 160);
  --color-kumo-warning: oklch(60% 0.17 55);
  --color-kumo-danger: oklch(55% 0.21 25);
  --color-kumo-focus: oklch(55% 0.18 250);
  --color-kumo-hybrid: oklch(48% 0.14 300);
  --shadow-pop: 0 8px 24px oklch(0% 0 0 / 0.14);
}
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  overflow-x: clip;
  background: var(--color-kumo-canvas); color: var(--color-kumo-text);
  font-family: var(--font-sans); font-size: 14px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--color-kumo-focus); outline-offset: 2px; }
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px;
  border-radius: var(--radius); background: var(--color-kumo-contrast); color: var(--color-kumo-canvas);
  font-weight: 650; transform: translateY(calc(-100% - 16px)); transition: transform .16s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- sticky header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--color-kumo-canvas) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-kumo-hairline);
}
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.bar { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.brand { display: flex; gap: 8px; align-items: center; flex: none; }
.mark {
  width: 28px; height: 28px; border-radius: 4px;
  border: 1px solid var(--color-kumo-success); color: var(--color-kumo-success);
  display: grid; place-items: center;
  font: 600 10px/1 var(--font-mono); letter-spacing: 0.06em;
}
.brand b { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-size: 11px; color: var(--color-kumo-text-tertiary); line-height: 1.2; }
.search { position: relative; flex: 1 1 180px; min-width: 140px; max-width: 380px; margin: 0; }
.fold { flex: 0 1 auto; }
.search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--color-kumo-text-tertiary); pointer-events: none; }
.input {
  width: 100%; height: 32px; padding: 0 10px 0 30px;
  background: var(--color-kumo-base); border: 1px solid var(--color-kumo-line); border-radius: var(--radius);
  color: var(--color-kumo-text); font: inherit; font-size: 13px;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--color-kumo-text-tertiary); }
.input:hover { border-color: color-mix(in oklch, var(--color-kumo-line), var(--color-kumo-contrast) 20%); }
.input:focus { outline: none; border-color: var(--color-kumo-focus); box-shadow: 0 0 0 2px color-mix(in oklch, var(--color-kumo-focus) 35%, transparent); }
nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
nav a, .theme-toggle {
  display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: var(--radius);
  font-size: 13px; color: var(--color-kumo-text-secondary); background: transparent; border: 1px solid transparent; cursor: pointer;
}
nav a:hover, .theme-toggle:hover { color: var(--color-kumo-text); background: var(--color-kumo-base); }
nav a.current { color: var(--color-kumo-text); }
.theme-toggle { width: 28px; padding: 0; justify-content: center; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
html[data-mode="light"] .theme-toggle .sun { display: block; }
html[data-mode="light"] .theme-toggle .moon { display: none; }

/* ---------- filters: segmented control, toggle chip, select ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; align-items: stretch; height: 24px; border: 1px solid var(--color-kumo-line); border-radius: var(--radius); background: var(--color-kumo-base); overflow: hidden; }
.seg-opt { display: inline-flex; align-items: center; padding: 0 9px; font-size: 12px; font-weight: 500; color: var(--color-kumo-text-secondary); border-left: 1px solid var(--color-kumo-hairline); white-space: nowrap; }
.seg-opt:first-child { border-left: 0; }
.seg-opt:hover { color: var(--color-kumo-text); background: color-mix(in oklch, var(--color-kumo-base), var(--color-kumo-contrast) 5%); }
.seg-opt.active { background: var(--color-kumo-contrast); color: var(--color-kumo-canvas); }
.seg-opt.active:hover { color: var(--color-kumo-canvas); background: var(--color-kumo-contrast); }
.chip.toggle { height: 24px; gap: 5px; border-color: var(--color-kumo-line); }
.chip.toggle svg { width: 11px; height: 11px; }
.chip.toggle.active { color: var(--color-kumo-danger); background: color-mix(in oklch, var(--color-kumo-danger) 12%, transparent); border-color: color-mix(in oklch, var(--color-kumo-danger) 40%, transparent); }
.select { height: 24px; padding: 0 22px 0 8px; border: 1px solid var(--color-kumo-line); border-radius: var(--radius); background: var(--color-kumo-base); color: var(--color-kumo-text-secondary); font: inherit; font-size: 12px; font-weight: 500; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 5px center; background-size: 12px; }
.select:hover { color: var(--color-kumo-text); }
.select.active { color: var(--color-kumo-text); border-color: color-mix(in oklch, var(--color-kumo-line), var(--color-kumo-contrast) 30%); }
.select:focus { outline: none; border-color: var(--color-kumo-focus); box-shadow: 0 0 0 2px color-mix(in oklch, var(--color-kumo-focus) 35%, transparent); }
.chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius);
  border: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base);
  color: var(--color-kumo-text-secondary); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.chip:hover { color: var(--color-kumo-text); border-color: var(--color-kumo-line); }
.chip.active { background: var(--color-kumo-contrast); color: var(--color-kumo-canvas); border-color: var(--color-kumo-contrast); }
.chip.active:hover { color: var(--color-kumo-canvas); }
.count { font-size: 12px; color: var(--color-kumo-text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }


/* ---------- role map landing ---------- */
.rolemap {
  margin: 0 0 12px; padding: 12px 14px 10px;
  border: 1px solid var(--color-kumo-hairline); border-radius: 8px;
  background: var(--color-kumo-elevated);
  max-height: 720px; overflow: visible;
  transition: max-height .28s ease, opacity .22s ease, margin .22s ease, padding .22s ease, border-width .22s ease;
}
.rolemap.away { max-height: 0; opacity: 0; margin: 0; padding: 0 14px; border-width: 0; pointer-events: none; overflow: hidden; }
.rolemap-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-kumo-text-tertiary); }
.rolemap-stage { position: relative; height: 300px; overflow: hidden; border-radius: 6px; display: none; }
@media (max-width: 800px) { .rolemap-stage { height: 260px; } }
.rolemap.gl-on .rolemap-stage { display: block; }
.rolemap.no-gl .rolemap-stage { display: none; }
.rolemap-stage canvas#zd-roles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.rolemap-labels { position: absolute; inset: 0; pointer-events: none; }
.rolemap-labels a, .rolemap-labels .origin { position: absolute; white-space: nowrap; line-height: 1; transition: opacity .18s ease, color .18s ease; }
.rolemap-labels .lab-c { transform: translate(-50%, -50%); }
.rolemap-labels .lab-up { transform: translate(-50%, -100%); }
.rolemap-labels .lab-r { transform: translate(0, -50%); }
.rolemap-labels .lab-l { transform: translate(-100%, -50%); }
.rolemap-labels a { pointer-events: auto; padding: 2px 3px; border-radius: 3px; }
.rolemap-labels .origin { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--color-kumo-success); }
.rolemap-labels a.hub-lab { font-size: 12px; font-weight: 650; color: var(--color-kumo-text); }
.rolemap-labels a.hub-lab small { font: 500 10px/1 var(--font-mono); color: var(--color-kumo-text-tertiary); margin-left: 5px; font-variant-numeric: tabular-nums; }
.rolemap-labels a.arm-lab { font-size: 11px; color: var(--color-kumo-text-secondary); }
.rolemap-labels a.dim { opacity: 0.28; }
.rolemap-labels a.hot, .rolemap-labels a:hover, .rolemap-labels a:focus-visible { color: var(--color-kumo-text); }
.rolemap-labels a:focus-visible { outline-offset: 0; }
/* Hover / focus card: opens over the map's origin with the family in its own colour. */
.rolemap-hud {
  position: absolute; left: 50%; top: 50%; margin: 0; z-index: 3;
  transform: translate(-50%, -50%) scale(0.94);
  min-width: 220px; max-width: 320px; padding: 12px 16px 11px; text-align: center; border-radius: 10px;
  border: 1px solid var(--color-kumo-line); background: color-mix(in oklch, var(--color-kumo-elevated) 94%, transparent);
  box-shadow: var(--shadow-pop); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--color-kumo-text-secondary); pointer-events: none; opacity: 0;
  transition: opacity .16s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.rolemap-hud.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rolemap-hud .hud-eyebrow { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-kumo-text-tertiary); margin-bottom: 3px; }
.rolemap-hud .hud-title { display: block; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--tone, var(--color-kumo-text)); line-height: 1.2; }
.rolemap-hud .hud-stats { display: flex; justify-content: center; gap: 18px; margin: 8px 0 6px; }
.rolemap-hud .hud-stats span { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--color-kumo-text-tertiary); }
.rolemap-hud .hud-stats b { font: 600 18px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-kumo-text); }
.rolemap-hud .hud-stats b.pay { color: var(--color-kumo-success); }
.rolemap-hud .hud-cta { display: block; font-size: 11px; color: var(--color-kumo-text-tertiary); }
.rolemap-hud .hud-cta kbd { font-size: 10px; padding: 0 4px; }
.rolemap.bare .rolemap-hud { bottom: auto; }
/* jobs page: compact family strip */
.rolemap.famstrip { padding: 10px 12px; }
.famgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 1000px) { .famgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .famgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.famcell { --tone: var(--color-kumo-line); min-width: 0; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base); }
.famcell:hover { border-color: color-mix(in oklch, var(--tone) 45%, var(--color-kumo-hairline)); }
.famcell[data-tone="focus"] { --tone: var(--color-kumo-focus); }
.famcell[data-tone="danger"] { --tone: var(--color-kumo-danger); }
.famcell[data-tone="success"] { --tone: var(--color-kumo-success); }
.famcell[data-tone="hybrid"] { --tone: var(--color-kumo-hybrid); }
.famcell[data-tone="warning"] { --tone: var(--color-kumo-warning); }
.famcell[data-tone="text"] { --tone: var(--color-kumo-text-secondary); }
.famcell-head { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--color-kumo-text); }
.famcell-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in oklch, var(--tone) 22%, transparent); flex: none; }
.famcell-head b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.famcell-head .n { margin-left: auto; font: 500 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-kumo-text-tertiary); }
.famcell-head:hover b { color: var(--tone); }
.fam-arms { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.fam-arm { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; color: var(--color-kumo-text-secondary); background: var(--color-kumo-recessed); border: 1px solid transparent; white-space: nowrap; }
.fam-arm:hover { color: var(--color-kumo-text); border-color: color-mix(in oklch, var(--tone) 45%, transparent); }
.rolemap-fallback { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: baseline; }
.rolemap.gl-on .rolemap-fallback { display: none; }
.rolemap-fallback .fb-group {
  display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline;
  padding: 2px 14px 2px 0; margin-right: 14px;
  border-right: 1px solid var(--color-kumo-hairline);
}
.rolemap-fallback .fb-group:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rolemap-fallback .fb-hub { font-size: 12px; font-weight: 650; color: var(--color-kumo-text); }
.rolemap-fallback .fb-arm { font-size: 11px; color: var(--color-kumo-text-secondary); }
.rolemap-fallback a:hover, .rolemap-fallback a:focus-visible { color: var(--color-kumo-text); }
/* ---------- page ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px 56px; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 6px; }
.crumb { font-size: 12px; color: var(--color-kumo-text-tertiary); margin: 4px 0 10px; }
.crumb a:hover { color: var(--color-kumo-text); }
.muted { color: var(--color-kumo-text-secondary); }
.dim { color: var(--color-kumo-text-tertiary); }

/* ---------- job rows ---------- */
.list { border: 1px solid var(--color-kumo-hairline); border-radius: 8px; background: var(--color-kumo-elevated); }
.row {
  position: relative;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 22px; gap: 10px; align-items: center;
  padding: 6px 12px; border-bottom: 1px solid var(--color-kumo-hairline); color: var(--color-kumo-text);
  background: var(--color-kumo-elevated);
}
.row-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.row > :not(.row-link) { position: relative; z-index: 2; pointer-events: none; }
.row > .save { z-index: 3; pointer-events: auto; }
.row > .pay { z-index: 3; pointer-events: auto; }
.row:nth-child(even) { background: color-mix(in oklch, var(--color-kumo-elevated), var(--color-kumo-contrast) 2.4%); }
.row:first-child { border-radius: 8px 8px 0 0; }
.row:last-child { border-bottom: 0; border-radius: 0 0 8px 8px; }
.row:hover { background: color-mix(in oklch, var(--color-kumo-elevated), var(--color-kumo-contrast) 5%); }
.row:has(.row-link:focus-visible) { outline: 2px solid var(--color-kumo-focus); outline-offset: -2px; }
.row-link:focus-visible { outline: 0; }
.logo { display: inline-block; flex: none; color: currentColor; fill: currentColor; vertical-align: middle; }
.row .logo { width: 28px; height: 28px; color: var(--color-kumo-text-secondary); transition: color .18s ease; }
/* hover brings each company's own colour to its mark, matching the discovered logos */
.row:hover .logo, .cocard:hover .logo, .colist a:hover .logo, .jobmeta .co:hover .logo, .cohead .logo { color: var(--brand, currentColor); }
.row .main { min-width: 0; }
.row .title { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--color-kumo-text-secondary); line-height: 1.3; margin-top: 2px; min-width: 0; }
.row .meta .co { flex: none; font-weight: 500; }
.row .meta .dot { flex: none; color: var(--color-kumo-text-tertiary); }
.row .meta .loc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-kumo-text-tertiary); }
.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; flex: none;
  background: var(--color-kumo-recessed); border: 1px solid var(--color-kumo-hairline);
  color: var(--color-kumo-text-secondary); font-size: 11px; font-weight: 500; text-transform: lowercase; white-space: nowrap;
}
.badge.remote { color: var(--color-kumo-success); border-color: color-mix(in oklch, var(--color-kumo-success) 30%, transparent); background: color-mix(in oklch, var(--color-kumo-success) 10%, transparent); }
.badge.hybrid { color: var(--color-kumo-hybrid); border-color: color-mix(in oklch, var(--color-kumo-hybrid) 34%, transparent); background: color-mix(in oklch, var(--color-kumo-hybrid) 16%, transparent); }
.badge.danger { color: var(--color-kumo-danger); border-color: color-mix(in oklch, var(--color-kumo-danger) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-danger) 12%, transparent); }
.badge.geo { font-size: 10px; height: 16px; padding: 0 5px; color: var(--color-kumo-text-tertiary); text-transform: none; }
.badge.intern { color: var(--color-kumo-hybrid); border-color: color-mix(in oklch, var(--color-kumo-hybrid) 34%, transparent); }
.badge.new { color: var(--color-kumo-focus); border-color: color-mix(in oklch, var(--color-kumo-focus) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-focus) 12%, transparent); }
.badge.clr { color: var(--color-kumo-warning); border-color: color-mix(in oklch, var(--color-kumo-warning) 35%, transparent); background: color-mix(in oklch, var(--color-kumo-warning) 10%, transparent); }
.badge.match { text-transform: none; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.badge.match.some { color: var(--color-kumo-warning); border-color: color-mix(in oklch, var(--color-kumo-warning) 35%, transparent); }
.badge.match.good { color: var(--color-kumo-success); border-color: color-mix(in oklch, var(--color-kumo-success) 35%, transparent); background: color-mix(in oklch, var(--color-kumo-success) 10%, transparent); }
.row .save { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--color-kumo-text-tertiary); cursor: pointer; }
.row .save svg { width: 14px; height: 14px; }
.row .save:hover, .row .save:focus-visible { color: var(--color-kumo-text); background: var(--color-kumo-recessed); }
.row .save.on { color: var(--color-kumo-warning); }
.row .save.on svg path { fill: currentColor; }
.row.kb { outline: 2px solid var(--color-kumo-focus); outline-offset: -2px; }
/* Narrow lists (sidebars) wrap the meta line and grow the row instead of spilling out of the box. */
aside .row { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding-right: 34px; }
aside .row .logo { grid-row: 1 / span 3; margin-top: 2px; }
aside .row .meta { flex-wrap: wrap; row-gap: 3px; }
aside .row .meta .loc { white-space: normal; overflow: visible; text-overflow: clip; flex: 1 1 100%; line-height: 1.35; }
aside .row .pay { grid-column: 2; justify-self: start; text-align: left; margin: 2px 0 0; padding: 0; white-space: normal; }
aside .row .pay .lbl { display: inline; margin-left: 6px; }
aside .row .pay .tip { right: auto; left: 0; }
aside .row .save { position: absolute; top: 8px; right: 8px; }
.listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; font-size: 12px; color: var(--color-kumo-text-tertiary); }
.listhead .feeds { display: inline-flex; gap: 12px; }
.listhead .feed { display: inline-flex; align-items: center; gap: 4px; color: var(--color-kumo-text-tertiary); }
.listhead .feed:hover { color: var(--color-kumo-text); }
.listhead .feed svg { width: 12px; height: 12px; }
.listhead #zd-new-count { color: var(--color-kumo-focus); font-weight: 600; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; font-size: 13px; }
.pager a, .pager span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base); color: var(--color-kumo-text-secondary); font-variant-numeric: tabular-nums; }
.pager a:hover { color: var(--color-kumo-text); border-color: var(--color-kumo-line); }
.pager .cur { color: var(--color-kumo-text); background: var(--color-kumo-elevated); border-color: var(--color-kumo-line); }
.pager .gap { border: 0; background: transparent; padding: 0 2px; }
.kbd-help { position: fixed; right: 16px; bottom: 16px; z-index: 30; max-width: 260px; padding: 10px 12px; border-radius: 8px; background: var(--color-kumo-elevated); border: 1px solid var(--color-kumo-line); box-shadow: var(--shadow-pop); font-size: 12px; color: var(--color-kumo-text-secondary); }
.kbd-help h2 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-kumo-text-tertiary); }
.kbd-help dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.kbd-help dt, .kbd-help dd { margin: 0; }
kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--color-kumo-line); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; background: var(--color-kumo-base); color: var(--color-kumo-text); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.sk { height: 24px; cursor: default; }
button.chip.sk { cursor: pointer; }
.chip.sk.on { background: var(--color-kumo-contrast); color: var(--color-kumo-canvas); border-color: var(--color-kumo-contrast); }
.chip.sk.hit { color: var(--color-kumo-success); border-color: color-mix(in oklch, var(--color-kumo-success) 45%, transparent); background: color-mix(in oklch, var(--color-kumo-success) 10%, transparent); }
.chip.sk.on.hit { background: var(--color-kumo-success); color: var(--color-kumo-canvas); border-color: var(--color-kumo-success); }
.chip.sk.miss { opacity: .75; }
/* ---------- landing: direct search → fresh roles → role families ---------- */
.hero { padding: 44px 0 6px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero .kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-kumo-text-tertiary); }
.hero h1 { font-size: 42px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.06; margin: 0; max-width: 18ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--color-kumo-success); }
.hero .lede { margin: 0; font-size: 16px; line-height: 1.5; color: var(--color-kumo-text-secondary); max-width: 58ch; text-wrap: pretty; }
.hero .search { width: 100%; max-width: 700px; flex: none; margin-top: 8px; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hero-search .search-field { position: relative; min-width: 0; }
.hero .input { height: 48px; font-size: 16px; padding-left: 42px; border-radius: 10px; background: var(--color-kumo-base); box-shadow: var(--shadow-pop); }
.hero .search svg { left: 15px; width: 16px; height: 16px; }
.hero .search-submit { height: 48px; padding-inline: 18px; border-radius: 10px; white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.quick .chip { height: 26px; padding: 0 10px; }
.stats { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; color: var(--color-kumo-text-secondary); }
.stats a { display: inline-flex; align-items: baseline; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; }
.stats a:hover { color: var(--color-kumo-text); border-color: var(--color-kumo-hairline); background: var(--color-kumo-base); }
.stats b { font: 600 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-kumo-text); margin-right: 6px; }
.rolemap.bare { position: relative; border: 0; background: transparent; padding: 10px 0 0; margin: 40px 0 0; max-height: none; }
/* a soft glow anchors the map's origin so the section reads as its own block */
.rolemap.bare::before { content: ""; position: absolute; left: 50%; top: 52%; width: min(720px, 90%); height: 320px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--color-kumo-success) 14%, transparent), transparent 70%); }
html[data-mode="light"] .rolemap.bare::before { background: radial-gradient(closest-side, color-mix(in oklch, var(--color-kumo-success) 9%, transparent), transparent 70%); }
.rolemap.bare .rolemap-kicker { text-align: center; margin-bottom: 4px; }
.rolemap.bare .rolemap-stage { height: 340px; }
/* Mobile: no WebGL map; family cards below already cover this. */
@media (max-width: 640px) {
  .rolemap.bare { display: none; }
}
.family-explorer { margin: 32px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 650; text-wrap: balance; }
.section-head p { margin: 0; font-size: 13px; color: var(--color-kumo-text-tertiary); }
.fams { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (max-width: 1000px) { .fams { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fam { --tone: var(--color-kumo-line); display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--color-kumo-hairline); border-left: 3px solid var(--tone); border-radius: 8px; background: var(--color-kumo-elevated); box-shadow: var(--shadow-pop); color: var(--color-kumo-text); }
.fam[data-tone="focus"] { --tone: var(--color-kumo-focus); }
.fam[data-tone="danger"] { --tone: var(--color-kumo-danger); }
.fam[data-tone="success"] { --tone: var(--color-kumo-success); }
.fam[data-tone="hybrid"] { --tone: var(--color-kumo-hybrid); }
.fam[data-tone="warning"] { --tone: var(--color-kumo-warning); }
.fam[data-tone="text"] { --tone: var(--color-kumo-text-secondary); }
.fam:hover { background: var(--color-kumo-elevated); border-color: var(--color-kumo-line); border-left-color: var(--tone); }
.fam b { font-size: 13px; font-weight: 650; line-height: 1.2; }
.fam .n { font: 500 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-kumo-text-tertiary); }
.fam p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--color-kumo-text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* full-bleed recessed band gives the live inventory a distinct ground. */
.band-wrap { position: relative; padding: 28px 0 32px; margin: 22px 0 8px; }
.band-wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: 0; pointer-events: none;
  background: color-mix(in oklch, var(--color-kumo-base) 82%, transparent); border-top: 1px solid var(--color-kumo-hairline); border-bottom: 1px solid var(--color-kumo-hairline);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.band { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }
.band .sect { margin: 0 0 8px; }
.colist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--color-kumo-hairline); border-radius: 8px; background: var(--color-kumo-elevated); overflow: hidden; }
.colist a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--color-kumo-hairline); font-size: 13px; font-weight: 500; color: var(--color-kumo-text); }
.colist li:last-child a { border-bottom: 0; }
.colist a:hover { background: color-mix(in oklch, var(--color-kumo-elevated), var(--color-kumo-contrast) 4%); }
.colist .logo { width: 22px; height: 22px; color: var(--color-kumo-text-secondary); flex: none; }
.colist .n { margin-left: auto; font: 500 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-kumo-text-tertiary); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 36px 0 12px; padding-top: 8px; }
.strip .ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base); color: var(--color-kumo-success); margin-bottom: 10px; }
.strip .ic svg { width: 15px; height: 15px; }
.strip h2 { margin: 0 0 5px; font-size: 13px; font-weight: 650; }
.strip p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-kumo-text-secondary); }
.strip a { text-decoration: underline; text-underline-offset: 2px; }
.famsel { display: inline-flex; gap: 4px; align-items: center; }
/* ---------- profile ---------- */
.profile textarea.input { width: 100%; height: auto; min-height: 220px; padding: 10px; font: 13px/1.5 var(--font-sans); resize: vertical; }
.fileline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.privacy { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--color-kumo-text-secondary); }
.skillgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
.skillgroup h3 { margin: 0 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--color-kumo-text-tertiary); }
.velocity { margin: 0; }
.velocity svg { display: block; max-width: 100%; }
.velocity figcaption { margin-top: 6px; font-size: 12px; color: var(--color-kumo-text-tertiary); }
.velocity figcaption b { color: var(--color-kumo-text); font-family: var(--font-mono); }
nav a b { margin-left: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--color-kumo-success); }

/* ---------- pay ---------- */
.pay {
  position: relative; text-align: right; white-space: nowrap; border-radius: 4px; padding: 2px 4px; margin: -2px -4px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.2;
  color: var(--color-kumo-success); outline: none; cursor: default;
}
.pay.estimate { color: var(--color-kumo-warning); }
.pay.none { color: var(--color-kumo-text-tertiary); font-size: 12px; }
.pay .lbl { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-kumo-text-tertiary); margin-top: 1px; }
.pay .lbl.approx { text-transform: none; letter-spacing: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.pay.lg .lbl.approx { font-size: 14px; }
.pay .lbl.mkt { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 4px; margin-left: 8px; font-size: 10px; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--color-kumo-hairline); color: var(--color-kumo-text-secondary); background: var(--color-kumo-recessed); }
.pay .lbl.mkt.above { color: var(--color-kumo-success); border-color: color-mix(in oklch, var(--color-kumo-success) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-success) 10%, transparent); }
.pay .lbl.mkt.below { color: var(--color-kumo-warning); border-color: color-mix(in oklch, var(--color-kumo-warning) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-warning) 10%, transparent); }
.pay:focus-visible { outline: 2px solid var(--color-kumo-focus); outline-offset: 0; }
.pay .tip {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
  min-width: 180px; max-width: 260px; padding: 8px 10px;
  background: var(--color-kumo-elevated); border: 1px solid var(--color-kumo-line); border-radius: var(--radius);
  color: var(--color-kumo-text-secondary); font: 400 11.5px/1.4 var(--font-sans); letter-spacing: 0; text-transform: none;
  white-space: normal; text-align: left; box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
}
.pay:hover .tip, .pay:focus-visible .tip { opacity: 1; transform: none; }
.pay.lg { text-align: left; font-size: 20px; font-weight: 600; margin: 0; padding: 0; display: inline-block; }
.pay.lg .lbl { display: inline; margin-left: 8px; font-weight: 500; }
.pay.lg .tip { right: auto; left: 0; }
.pay-note { margin: 6px 0 0; font-size: 12px; color: var(--color-kumo-text-tertiary); line-height: 1.45; }
.pay-note b { color: var(--color-kumo-text-secondary); font-weight: 600; }
.pay-note a { text-decoration: underline; text-underline-offset: 2px; }
.levels { width: 100%; border-collapse: collapse; font-size: 13px; }
.levels th, .levels td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--color-kumo-hairline); }
.levels th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color-kumo-text-tertiary); }
.levels td b { display: block; font-weight: 650; }
.levels td small { color: var(--color-kumo-text-tertiary); font-family: var(--font-mono); font-size: 11px; }
.levels .sum { color: var(--color-kumo-text-secondary); line-height: 1.45; }
@media (max-width: 800px) { .levels-wrap { overflow-x: auto; } .levels { min-width: 760px; } }

/* ---------- buttons (Kumo primary / secondary) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--color-kumo-line); background: var(--color-kumo-base); color: var(--color-kumo-text);
}
.btn:hover { background: color-mix(in oklch, var(--color-kumo-base), var(--color-kumo-contrast) 5%); border-color: color-mix(in oklch, var(--color-kumo-line), var(--color-kumo-contrast) 20%); }
.btn.primary { background: var(--color-kumo-contrast); color: var(--color-kumo-canvas); border-color: var(--color-kumo-contrast); }
.btn.primary:hover { background: color-mix(in oklch, var(--color-kumo-contrast) 88%, var(--color-kumo-canvas)); }
.actions { display: flex; gap: 8px; margin: 14px 0 8px; flex-wrap: wrap; }

/* ---------- cards / detail ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--color-kumo-base); border: 1px solid var(--color-kumo-hairline); border-radius: 8px; padding: 14px; }
.card + .card { margin-top: 12px; }
.card h2 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-kumo-text-tertiary); }
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--color-kumo-hairline); font-size: 13px; }
.stat:last-child { border-bottom: 0; }
.stat strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.jobmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--color-kumo-text-secondary); font-size: 13px; margin: 0 0 14px; }
.jobmeta .co { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--color-kumo-text); }
.jobmeta .co .logo { width: 16px; height: 16px; }
.jobmeta .flags { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jobmeta .flag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px 0 5px; border-radius: 4px; border: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base); font-size: 12px; color: var(--color-kumo-text-secondary); }
.jobmeta .flag .em { font-size: 14px; line-height: 1; }
/* discovered logos: image on top, initials underneath for when it fails to load */
.logo-img { position: relative; display: inline-block; width: 28px; height: 28px; flex: none; vertical-align: middle; }
/* Discovered logos are shown as black-and-white marks on a white tile so every company reads the same; colour returns on hover. */
.logo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; filter: grayscale(1) contrast(1.08); transition: filter .18s ease; }
.row:hover .logo-img img, .cocard:hover .logo-img img, .colist a:hover .logo-img img, .cohead .logo-img img { filter: none; }
.logo-img svg { width: 100%; height: 100%; }
.logo-img.broken img { display: none; }
.logo-img:not(.broken) svg { visibility: hidden; }
.row .logo-img { width: 28px; height: 28px; }
.cohead .logo-img { width: 48px; height: 48px; }
.cocard .head .logo-img { width: 32px; height: 32px; }
.colist .logo-img { width: 22px; height: 22px; }
.jobmeta .loc { color: var(--color-kumo-text-tertiary); white-space: normal; line-height: 1.4; }
.desc { line-height: 1.55; font-size: 14px; overflow-wrap: anywhere; }
.desc h2, .desc h3 { color: var(--color-kumo-text); font-size: 14px; letter-spacing: 0; text-transform: none; margin: 16px 0 6px; }
.desc p { margin: 0 0 10px; }
.desc a { color: var(--color-kumo-focus); text-decoration: underline; }
.fineprint { margin: 0; font-size: 12px; color: var(--color-kumo-text-tertiary); }

/* ---------- companies ---------- */
.cohead { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.cohead .logo { width: 48px; height: 48px; color: var(--color-kumo-text); flex: none; }
.cohead h1 { margin: 0 0 2px; }
.cohead .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--color-kumo-text-secondary); }
.cohead .sub a:hover { color: var(--color-kumo-text); text-decoration: underline; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.socials .chip { text-transform: none; }
.about { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-kumo-text); }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 8px 0; border-bottom: 1px solid var(--color-kumo-hairline); }
.posts li:last-child { border-bottom: 0; padding-bottom: 0; }
.posts a { font-weight: 600; font-size: 13px; }
.posts a:hover { text-decoration: underline; }
.posts time { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--color-kumo-text-tertiary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.posts p { margin: 3px 0 0; font-size: 12.5px; color: var(--color-kumo-text-secondary); line-height: 1.45; }
.sect { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.sect .count { margin-left: 0; }
.cogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cogrid.more { margin-top: 10px; }
.cohead-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
.cohead-bar h1 { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.co-search { flex: 1 1 260px; max-width: 420px; }
.cosect { margin-top: 18px; }
.cosect .sect { margin: 0 0 8px; justify-content: space-between; }
.cosect .sect .count a:hover { color: var(--color-kumo-text); text-decoration: underline; }
.co-more { margin-top: 10px; }
.cocard { display: flex; flex-direction: column; gap: 8px; background: var(--color-kumo-elevated); border: 1px solid var(--color-kumo-hairline); border-radius: 8px; padding: 14px; color: var(--color-kumo-text); }
.cocard:hover { background: color-mix(in oklch, var(--color-kumo-elevated), var(--color-kumo-contrast) 4%); border-color: var(--color-kumo-line); }
.cocard .head { display: flex; align-items: center; gap: 10px; }
.cocard .head .logo { width: 32px; height: 32px; color: var(--color-kumo-text); }
.cocard .head b { font-size: 15px; font-weight: 650; }
.cocard .head small { display: block; font-size: 12px; color: var(--color-kumo-text-tertiary); }
.cocard .blurb { margin: 0; font-size: 13px; color: var(--color-kumo-text-secondary); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cocard .nums { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--color-kumo-text-tertiary); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cocard .nums b { color: var(--color-kumo-text); font-weight: 600; }
.cocard .nums .ok { color: var(--color-kumo-success); }

/* ---------- admin ---------- */
.admin-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-kumo-danger); border: 1px solid color-mix(in oklch, var(--color-kumo-danger) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-danger) 12%, transparent); margin-left: 8px; }
.actor { font-size: 12px; color: var(--color-kumo-text-tertiary); margin-left: 6px; }
.admin-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.admin-bar .input { width: 220px; }
.admin-bar .select, .admin-bar .input { height: 32px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile { background: var(--color-kumo-base); border: 1px solid var(--color-kumo-hairline); border-radius: 8px; padding: 10px 12px; }
.tile b { display: block; font: 600 20px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.tile span { font-size: 11px; color: var(--color-kumo-text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; font-weight: 500; }
.btn.danger { color: var(--color-kumo-danger); border-color: color-mix(in oklch, var(--color-kumo-danger) 40%, transparent); }
.btn.danger:hover { background: color-mix(in oklch, var(--color-kumo-danger) 12%, transparent); }
.inline { display: inline; }
.acts { display: flex; gap: 4px; flex-wrap: wrap; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--color-kumo-text-secondary); }
.form .full { grid-column: 1 / -1; }
.form .input, .form .select { width: 100%; height: 32px; padding-left: 10px; font-size: 13px; }
.form textarea.input { height: auto; min-height: 260px; padding: 8px 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.45; resize: vertical; }
.form .check { flex-direction: row; align-items: center; gap: 8px; height: 32px; font-size: 13px; color: var(--color-kumo-text); }
.flash { background: color-mix(in oklch, var(--color-kumo-success) 12%, transparent); border: 1px solid color-mix(in oklch, var(--color-kumo-success) 40%, transparent); color: var(--color-kumo-success); padding: 8px 10px; border-radius: var(--radius); font-size: 13px; margin: 0 0 12px; }
.badge.warn { color: var(--color-kumo-warning); border-color: color-mix(in oklch, var(--color-kumo-warning) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-warning) 12%, transparent); }
.heat td.num, .heat th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.heat td .dim { font-size: 11px; }
.audit li { padding: 6px 0; }
.audit li > span { font-weight: 600; font-size: 13px; }
.audit li > span a { color: var(--color-kumo-text-secondary); font-weight: 500; }
.audit li > span a:hover { text-decoration: underline; }
.audit p { overflow-wrap: anywhere; }

/* ---------- admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--color-kumo-hairline); border-radius: 8px; background: var(--color-kumo-base); }
@media (max-width: 800px) { .admin-side { position: static; flex-direction: row; flex-wrap: wrap; } }
.admin-side a { display: block; padding: 7px 10px; border-radius: var(--radius); font-size: 13px; color: var(--color-kumo-text-secondary); }
.admin-side a:hover { color: var(--color-kumo-text); background: var(--color-kumo-recessed); }
.admin-side a.current { color: var(--color-kumo-text); background: var(--color-kumo-elevated); font-weight: 600; box-shadow: inset 2px 0 0 var(--color-kumo-success); }
.admin-side .side-sep { height: 1px; margin: 6px 4px; background: var(--color-kumo-hairline); }
.admin-side .side-note { padding: 6px 10px; font-size: 11px; color: var(--color-kumo-warning); }
.admin-main { min-width: 0; }
.admin-main h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.heat .ok { color: var(--color-kumo-success); font-weight: 600; }
.heat .bad { color: var(--color-kumo-danger); font-weight: 600; }
.flash.bad { color: var(--color-kumo-danger); border-color: color-mix(in oklch, var(--color-kumo-danger) 40%, transparent); background: color-mix(in oklch, var(--color-kumo-danger) 10%, transparent); }
.heat.boards .select { height: 24px; font-size: 12px; padding-right: 20px; margin-right: 3px; }
.heat.boards td { vertical-align: middle; }
.heat.pay td { vertical-align: top; }
.heat.pay td b { font-family: var(--font-mono); font-weight: 600; }

/* ---------- admin dashboard ---------- */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.dash-head h1 { margin: 0; }
.hero-stats .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 800px) { .hero-stats .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile small { display: block; margin-top: 2px; font-size: 11px; color: var(--color-kumo-text-tertiary); text-transform: none; letter-spacing: 0; }
.chart-wrap { overflow-x: auto; }
.chart { display: block; width: 100%; height: auto; max-height: 180px; }
.chart .tick { font: 10px var(--font-mono); fill: var(--color-kumo-text-tertiary); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 10px 0; }
.dash-grid .card { margin: 0; }
.card h2 .csv { float: right; font: 500 10px/1 var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--color-kumo-text-tertiary); border: 1px solid var(--color-kumo-hairline); border-radius: 3px; padding: 2px 5px; }
.card h2 .csv:hover { color: var(--color-kumo-text); border-color: var(--color-kumo-line); }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.ranked .lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-kumo-text); }
.ranked .lab a:hover { text-decoration: underline; }
.ranked .lab small { display: block; font-size: 11px; color: var(--color-kumo-text-tertiary); }
.ranked .bar { height: 6px; border-radius: 3px; background: color-mix(in oklch, var(--color-kumo-line) 35%, transparent); overflow: hidden; }
.ranked .bar i { display: block; height: 100%; border-radius: 3px; background: var(--color-kumo-success); }
.ranked .val { font: 500 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-kumo-text-secondary); }
.card.ops { margin-top: 4px; }
.card.ops .tiles { margin-bottom: 8px; }

/* ---------- attention ---------- */
.heat { width: 100%; border-collapse: collapse; font-size: 13px; }
.heat th, .heat td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--color-kumo-hairline); }
.heat td:nth-child(n+3), .heat th:nth-child(n+3) { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.heat th { color: var(--color-kumo-text-tertiary); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.heat tr:last-child td { border-bottom: 0; }
.heat a:hover { text-decoration: underline; }
.label-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }

/* ---------- footer / empty ---------- */
footer.site {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 16px 28px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  color: var(--color-kumo-text-tertiary); font-size: 12px; border-top: 1px solid var(--color-kumo-hairline);
}
footer.site a { text-decoration: underline; text-underline-offset: 2px; }
footer.site .free { flex-basis: 100%; }
footer.site a:hover { color: var(--color-kumo-text); }
.empty { color: var(--color-kumo-text-secondary); padding: 32px 16px; text-align: center; border: 1px dashed var(--color-kumo-line); border-radius: 8px; font-size: 13px; }

/* ---------- fx layer (GSAP + Three) ---------- */
#zd-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; display: none; }
html[data-fx="on"] #zd-bg { display: block; }
.top, main, footer.site { position: relative; z-index: 1; }
.top.scrolled { box-shadow: 0 6px 24px oklch(0% 0 0 / 0.25); }
html[data-mode="light"] .top.scrolled { box-shadow: 0 6px 24px oklch(0% 0 0 / 0.08); }
html.theme-anim, html.theme-anim body, html.theme-anim .top, html.theme-anim .row, html.theme-anim .card, html.theme-anim .chip, html.theme-anim .btn, html.theme-anim .input, html.theme-anim .badge {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.chip, .btn, nav a, .pay .val { will-change: transform; display: inline-block; }
.chip, .btn, nav a { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { #zd-bg { display: none !important; } }

/* ---------- filter fold (mobile disclosure; always open on desktop) ---------- */
.fold > summary { display: none; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold-sum { align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--color-kumo-hairline); background: var(--color-kumo-base); color: var(--color-kumo-text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; }
.fold-sum .chev { width: 14px; height: 14px; transition: transform .15s ease; flex: none; }
.fold[open] > .fold-sum .chev { transform: rotate(180deg); }
.fold-sum .active { color: var(--color-kumo-text); }
.fold-sum .count { margin-left: auto; }
.family-fold > summary { display: none; list-style: none; }
.family-fold > summary::-webkit-details-marker { display: none; }
.family-fold-summary { align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 10px; color: var(--color-kumo-text); font-size: 13px; font-weight: 650; cursor: pointer; }
.family-fold-summary .count { margin-left: auto; }
.family-fold-summary .chev { width: 14px; height: 14px; transition: transform .15s ease; }
.family-fold[open] .family-fold-summary .chev { transform: rotate(180deg); }
.heat-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 1280px) { .brand small { display: none; } }
@media (max-width: 1400px) {
  .bar { flex-wrap: wrap; }
  .fold { order: 5; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .top-inner { padding: 6px 10px; gap: 6px; }
  .bar { flex-wrap: wrap; gap: 6px 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  nav .nav-attn { display: none; }
  .seg { height: 30px; }
  .seg-opt { padding: 0 12px; font-size: 13px; }
  .chip.toggle, .select { height: 30px; font-size: 13px; }
  .input { height: 36px; font-size: 16px; }
  nav { margin-left: auto; }
  nav a { height: 32px; padding: 0 10px; }
  .theme-toggle { height: 32px; width: 32px; padding: 0; }
  .fold > summary { display: flex; }
  .fold > .filters { padding-top: 6px; max-height: 50vh; overflow: auto; }
  .filters { gap: 8px; }
  .filters > .count { display: none; }
  main { padding: 8px 10px 40px; }
  h1 { font-size: 20px; }
  .row { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; padding: 10px 34px 10px 10px; align-items: start; }
  .row .save { position: absolute; top: 8px; right: 8px; }
  .row .meta { flex-wrap: wrap; row-gap: 3px; }
  .row .meta .loc { white-space: normal; overflow: visible; text-overflow: clip; flex: 1 1 100%; line-height: 1.35; }
  .row .pay { white-space: normal; }
  nav .nav-profile { display: none; }
  .hero { padding-top: 24px; }
  .hero .search { order: 0; }
  .hero h1 { font-size: 28px; }
  .hero .input { height: 44px; }
  .hero-search { grid-template-columns: 1fr; }
  .hero .search-submit { width: 100%; height: 44px; }
  .stats { margin-top: 4px; }
  .stats a { padding: 6px 8px; }
  .family-explorer { margin-top: 26px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .strip { grid-template-columns: 1fr; gap: 22px; }
  .family-fold { padding: 0; }
  .family-fold > summary { display: flex; }
  .family-fold[open] > .famgrid { padding: 0 10px 10px; }
  .row .logo { grid-row: 1 / span 2; margin-top: 2px; }
  .row .title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .row .pay { grid-column: 2; justify-self: start; text-align: left; margin: 2px 0 0; padding: 0; font-size: 13px; }
  .row .pay .lbl { display: inline; margin-left: 6px; }
  .row .pay .tip { right: auto; left: 0; }
  .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .actions .btn { flex: 1; }
  .card { padding: 12px; }
  .grid { gap: 10px; }
  footer.site { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
