/* BioDataHelm 0.1 (Phase 1 shell). Self-hosted fonts; no external requests. */
:root {
  --bg: #ffffff; --bg-soft: #f4f6f8; --surface: #ffffff; --surface-2: #f1f3f5;
  --fg: #1b2430; --muted: #4a5562; --faint: #6b7480; --border: #e3e6ea; --border-strong: #c9d3dc;
  --teal: #17767c; --teal-strong: #0f5a5f; --teal-soft: #e2f3f4;
  --purple: #5b4a8a; --purple-soft: #efecf6;
  --amber-fg: #6b4a00; --amber-soft: #fbf0d9;
  --focus: #1b2430;
  --gauge-zone: #c5cede; --gauge-fill: #5f7396; --gauge-line: #6a4fb3;
  --lm-off: #eef0f2; --lm-off-fg: #8b95a1;
  --lm-green: #1f6b3a; --lm-blue: #1f5f99; --lm-amber: #9a6400; --lm-red: #a12b2b; --lm-purple: #5b4a8a;
  --shadow: 0 8px 24px rgba(20, 30, 40, .12);
  --font: "DM Sans", system-ui, sans-serif; --display: "Titillium Web", "DM Sans", sans-serif;
  --serif: "Crimson Pro", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px; --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c; --bg-soft: #141c25; --surface: #17202a; --surface-2: #1d2733;
    --fg: #e6ebf0; --muted: #b0bac5; --faint: #8f9aa6; --border: #2a3542; --border-strong: #3a4757;
    --teal: #5fc4cb; --teal-strong: #8fd9de; --teal-soft: #12363a;
    --purple: #b9a8e6; --purple-soft: #2a2440;
    --amber-fg: #f3cf86; --amber-soft: #3a2e12; --focus: #e6ebf0;
    --gauge-zone: #34405a; --gauge-fill: #8ea2c6; --gauge-line: #c3b1f2;
    --lm-off: #222c38; --lm-off-fg: #8f9aa6;
    --shadow: 0 8px 24px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg: #0f151c; --bg-soft: #141c25; --surface: #17202a; --surface-2: #1d2733;
  --fg: #e6ebf0; --muted: #b0bac5; --faint: #8f9aa6; --border: #2a3542; --border-strong: #3a4757;
  --teal: #5fc4cb; --teal-strong: #8fd9de; --teal-soft: #12363a;
  --purple: #b9a8e6; --purple-soft: #2a2440;
  --amber-fg: #f3cf86; --amber-soft: #3a2e12; --focus: #e6ebf0;
  --gauge-zone: #34405a; --gauge-fill: #8ea2c6; --gauge-line: #c3b1f2;
  --lm-off: #222c38; --lm-off-fg: #8f9aa6;
  --shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); }
a { color: var(--teal); }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 34px; } h2 { font-size: 28px; } h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.loading { padding: 64px 24px; color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* Beta note */
.beta-note { background: var(--amber-soft); color: var(--amber-fg); font-size: 14px; text-align: center; padding: 8px 16px; }

/* Header and menu */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.logo { height: 44px; width: auto; display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-group { position: relative; }
.nav-btn { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; border-radius: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--teal); }
.nav-btn[data-tone="purple"] { color: var(--purple); }
.nav-btn[aria-expanded="true"], .nav-btn:hover { background: var(--surface-2); }
.nav-btn.current { box-shadow: inset 0 -3px 0 currentColor; }
.nav-btn svg { transition: transform .15s; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; }
.nav-pop.open { display: flex; }
.nav-pop .pop-hint { padding: 8px 12px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.nav-pop a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); }
.nav-pop a:hover, .nav-pop a:focus-visible { background: var(--surface-2); }
.nav-pop a b { font-size: 15px; } .nav-pop a span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.nav-link { color: var(--fg); text-decoration: none; font-weight: 500; padding: 10px; }
.nav-link.current { text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { background: var(--purple); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 8px; margin-left: 4px; }
:root[data-theme="dark"] .nav-cta { color: #17141d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-cta { color: #17141d; } }
.nav-cta:hover { color: #fff; filter: brightness(1.1); }
.theme-btn { all: unset; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.theme-btn:hover { background: var(--surface-2); }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--fg); font: 600 15px var(--font); }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .main-nav.open { display: flex; }
  .nav-pop { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .logo { height: 36px; }
}

/* Buttons, chips, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: 700 15px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--teal); color: var(--fg); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #0f151c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #0f151c; } }
.btn-danger { color: #b42318; border-color: #b42318; }
:root[data-theme="dark"] .btn-danger { color: #ff9a8f; border-color: #ff9a8f; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: 500 14px var(--font); cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--fg); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag-unchecked { background: var(--amber-soft); color: var(--amber-fg); }
.tag-cat { font-weight: 600; }
input[type="search"], input[type="text"], select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; min-height: 44px; padding: 8px 12px; }
input[type="search"] { width: 100%; }
label { font-weight: 500; }

/* Page scaffolding */
.page { padding-top: 40px; padding-bottom: 72px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--muted); max-width: 760px; font-size: 17px; }
.eyebrow { font-family: var(--display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: var(--teal); margin: 0 0 8px; }
.note { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 12px 16px; color: var(--muted); font-size: 14.5px; background: var(--bg-soft); }
.note strong { color: var(--fg); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* Home */
.hero { position: relative; background: #07131c url(../../images/hero-1600.webp) center/cover no-repeat; color: #fff; }
@media (max-width: 900px) { .hero { background-image: url(../../images/hero-900.webp); } }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(5, 14, 22, .72); }
.hero .wrap { position: relative; padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.hero .eyebrow { color: #8fd9de; }
.hero h1 { font-size: 44px; line-height: 1.15; max-width: 820px; margin: 0; color: #fff; }
.hero h1 .amber { color: #dca37a; }
.hero h1 .tail { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.12em; color: #4cc3ca; }
.hero p.lede { max-width: 640px; font-size: 19px; color: #d5dde4; margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #c9d3dc; }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; }
.hero .btn-primary { background: #17767c !important; border-color: #17767c !important; color: #fff !important; }
.hero form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.hero input[type="search"] { flex: 1 1 320px; min-width: 0; height: 52px; background: #fff; color: #1b2430; border-color: #c9d3dc; }
.hero form .btn { height: 52px; background: #e9f6f7; color: #1b2430; border-color: #c9d3dc; }
.hero .stats { color: #b9c5cf; font-size: 14px; margin: 0; }
@media (max-width: 640px) { .hero h1 { font-size: 32px; } .hero p.lede { font-size: 17px; } }
.band { padding: 72px 0; }
.band-soft { background: var(--bg-soft); }
.band h2 { font-size: 34px; }
.q-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--fg); background: var(--surface); }
.q-card:hover { border-color: var(--teal); color: var(--fg); }
.q-card .q-title { font-family: var(--display); font-weight: 700; font-size: 21px; }
.q-card .q-text { font-size: 15px; color: var(--muted); }
.q-card .q-go { font-size: 14px; font-weight: 700; color: var(--teal); }
.q-card[data-tone="purple"] .q-go, .q-card[data-tone="purple"] svg { color: var(--purple); }
.q-card svg { color: var(--teal); }
.aud { padding-top: 16px; border-top: 3px solid var(--teal); }
.aud.p { border-color: var(--purple); }
.aud h3 { font-size: 19px; }
.aud p { color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.steps .n { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--teal); display: block; }
.steps b { display: block; font-size: 18px; margin: 4px 0; }
.steps span { color: var(--muted); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { border: 1px solid var(--border); border-radius: 12px; padding: 28px; background: var(--surface); }
.plan.commercial { border: 2px solid var(--purple); }
.plan h3 { font-size: 24px; }
.plan ul { padding-left: 20px; margin: 12px 0 18px; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--purple); background: var(--purple-soft); padding: 3px 10px; border-radius: 999px; vertical-align: middle; }

/* Browse */
.browse { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .browse { grid-template-columns: minmax(0, 1fr); } .side { position: static !important; } }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row > .lbl { font-size: 14px; color: var(--muted); margin-right: 4px; font-weight: 500; }
.count-line { font-size: 14px; color: var(--muted); margin: 8px 0; }
.rtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); }
.rtable td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rtable tr.sel td { background: var(--surface-2); }
.rtable tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.rtable tbody tr { cursor: pointer; }
.rtable tbody tr:hover td { background: var(--bg-soft); }
.rname { font-weight: 700; }
.racr { color: var(--muted); font-size: 13px; }
.rdesc { color: var(--muted); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.side h3 { margin: 0; }
@media (max-width: 700px) { .rtable .hide-sm { display: none; } }

/* Depth gauge */
.gauge { display: inline-flex; align-items: center; gap: 10px; }
.gauge svg { display: block; }
.gauge .g-zone { fill: var(--gauge-zone); }
.gauge .g-fill { fill: var(--gauge-fill); }
.gauge .g-line { stroke: var(--gauge-line); stroke-width: 3; }
.gauge .g-dash { fill: none; stroke: var(--faint); stroke-dasharray: 3 3; }
.gauge .g-lbl { font-size: 13px; color: var(--muted); }
.gauge .g-lbl b { color: var(--fg); }
.gauge-h { display: flex; flex-direction: column; gap: 6px; }
.gauge-h .zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font-size: 12px; color: var(--muted); text-align: center; gap: 2px; }
.gauge-h .zones span.on { color: var(--fg); font-weight: 700; }

/* License map */
.lm { display: flex; flex-direction: column; gap: 10px; }
.lm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 4px; }
.lm-grid.unchecked { border: 1px dashed var(--faint); }
.lm-rowlbl { grid-column: 1 / -1; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.lm-cell { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 8px; padding: 8px 6px; min-height: 56px; background: var(--lm-off); color: var(--lm-off-fg); display: flex; flex-direction: column; justify-content: space-between; gap: 2px; font-size: 11.5px; line-height: 1.25; }
.lm-cell .num { font-family: var(--mono); font-size: 11px; display: flex; justify-content: space-between; }
.lm-cell[data-on="true"] { color: #fff; }
.lm-cell[data-tone="green"][data-on="true"] { background: var(--lm-green); }
.lm-cell[data-tone="blue"][data-on="true"] { background: var(--lm-blue); }
.lm-cell[data-tone="amber"][data-on="true"] { background: var(--lm-amber); }
.lm-cell[data-tone="red"][data-on="true"] { background: var(--lm-red); }
.lm-cell[data-tone="purple"][data-on="true"] { background: var(--lm-purple); }
.lm-cell[aria-current="true"] { outline: 2px solid var(--focus); outline-offset: 1px; }
.lm-status { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lm-status .lm-cell { min-height: 40px; }
.lm-status .lm-cell[data-k="none"][data-on="true"] { background: var(--lm-red); color: #fff; }
.lm-status .lm-cell[data-k="unchecked"][data-on="true"] { background: var(--surface); color: var(--fg); border: 1px dashed var(--muted); }
.lm-explain { border-top: 1px solid var(--border); padding-top: 10px; font-size: 14px; }
.lm-explain .code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lm-explain b { display: block; margin: 2px 0 4px; }
.lm-explain .applies { font-weight: 700; font-size: 13px; color: var(--muted); }
.lm.large .lm-grid .lm-cell { min-height: 74px; font-size: 13px; padding: 10px; }
.lm.large .lm-status .lm-cell { min-height: 44px; font-size: 13px; padding: 10px; }

/* Profile */
.profile-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.6fr); gap: 10px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd .tag { margin-left: 6px; }
.section-title { font-size: 18px; margin: 28px 0 10px; }
.conn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

/* Tier badges */
.tier { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; margin-left: 4px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tier-verified { background: var(--teal-soft); color: var(--teal-strong); }
.tier-channel { background: var(--purple-soft); color: var(--purple); }
.tier-reported, .tier-estimate { background: var(--amber-soft); color: var(--amber-fg); }

/* Lifeline */
.lifeline svg { display: block; margin: 8px 0; min-width: 600px; max-width: 760px; }
.lifeline .legend { max-width: 760px; font-size: 12px; }
.ll-scroll { overflow-x: auto; }
.ll-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ll-act { font-family: var(--display); font-weight: 700; font-size: 15px; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); }
.ll-act[data-a="Growing"] { background: var(--teal-soft); color: var(--teal-strong); }
.ll-act[data-a="Stagnant"], .ll-act[data-a="Declining"] { background: var(--amber-soft); color: var(--amber-fg); }
.ll-t { font: 11px var(--font); fill: var(--muted); }
.ll-h { font: 600 10.5px var(--mono); fill: var(--muted); letter-spacing: .04em; }
.ll-grid { stroke: var(--border); }
.ll-axis { stroke: var(--border-strong); }
.ll-line { stroke: var(--teal); stroke-width: 2.5; }
.ll-line.ll-gap { stroke-dasharray: 5 4; stroke: var(--faint); }
.ll-pt { fill: var(--surface); stroke: var(--teal); stroke-width: 2; }
.ll-rel { stroke: var(--fg); stroke-width: 1.5; }
.ll-bar { fill: var(--gauge-fill); }
.ll-bar.ll-part { opacity: .4; }
.ll-use { stroke: var(--purple); stroke-width: 2; }
.ll-chk { fill: var(--fg); }
.ll-empty { fill: var(--bg-soft); stroke: var(--border-strong); stroke-dasharray: 4 4; }
.lifeline .legend span { white-space: nowrap; }
.lifeline .legend i { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 3px solid var(--teal); }
.lifeline .legend i.lg-gap { border-top: 3px dashed var(--faint); }
.lifeline .legend i.lg-era { height: 10px; border: 0; background: var(--purple); opacity: .2; }

/* Finder */
.finder-step { margin-bottom: 24px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { all: unset; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; box-sizing: border-box; cursor: pointer; border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 16px; min-height: 48px; background: var(--surface); font-weight: 500; }
.opt[aria-pressed="true"], .opt[aria-current="true"] { border-color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.opt:hover { border-color: var(--teal); }
.res-card { display: flex; flex-direction: column; gap: 8px; }
.res-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.res-card a.title { font-weight: 700; font-size: 17px; text-decoration: none; color: var(--fg); }
.res-card a.title:hover { color: var(--teal); }

/* Coverage */
.cov-dims { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 20px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr 56px; gap: 10px; align-items: center; font-size: 14.5px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.bar { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); }
.bar-row.thin .bar > i { background: var(--lm-amber); }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; }

/* Graph */
.graph-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
@media (max-width: 1000px) { .graph-wrap { grid-template-columns: minmax(0, 1fr); } }
#cy { height: 640px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
@media (max-width: 700px) { #cy { height: 420px; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; }
.tabs { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.tabs button { all: unset; cursor: pointer; padding: 10px 16px; min-height: 44px; box-sizing: border-box; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { color: #0f151c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-selected="true"] { color: #0f151c; } }

/* Journeys */
.jlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.timeline { list-style: none; margin: 16px 0; padding: 0; counter-reset: s; }
.timeline li { position: relative; padding: 0 0 22px 48px; }
.timeline li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
:root[data-theme="dark"] .timeline li::before { color: #0f151c; }
.timeline li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border-strong); }
.timeline li:last-child::after { display: none; }
.timeline .act { font-weight: 700; }

/* Licensing explained */
.lic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lic-item { border-left: 6px solid var(--lm-off-fg); }
.lic-item[data-tone="green"] { border-color: var(--lm-green); } .lic-item[data-tone="blue"] { border-color: var(--lm-blue); }
.lic-item[data-tone="amber"] { border-color: var(--lm-amber); } .lic-item[data-tone="red"] { border-color: var(--lm-red); }
.lic-item[data-tone="purple"] { border-color: var(--lm-purple); }
.lic-item .code { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Modal and Your data */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 20, 35, .5); }
.modal-card { position: relative; background: var(--surface); color: var(--fg); border-radius: 12px; max-width: 680px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px; box-shadow: var(--shadow); }
.modal-card.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 22px; margin: 0; }
.modal-x { all: unset; cursor: pointer; font-size: 28px; line-height: 1; min-width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.dp-sec { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.dp-sec h3 { font-family: var(--font); font-size: 15px; margin: 0 0 6px; }
.dp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dp-table td { border-bottom: 1px solid var(--border); padding: 6px 4px; vertical-align: top; }
.dp-table td:first-child { color: var(--muted); width: 40%; }
.dp-raw summary { cursor: pointer; font-weight: 600; margin-top: 8px; }
.dp-raw pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow: auto; max-height: 300px; font-size: 12.5px; }
.dp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.data-chip { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: 500 13px var(--font); box-shadow: var(--shadow); cursor: pointer; }
.data-chip:hover { border-color: var(--teal); }
.data-chip .dot-unsaved { width: 8px; height: 8px; border-radius: 50%; background: var(--lm-amber); display: none; }
.data-chip[data-unsaved="true"] .dot-unsaved { display: inline-block; }
@media (max-width: 600px) { .data-chip { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); } .data-chip .chip-t { display: none; } }
.req-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.req-table th, .req-table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.req-table th { color: var(--muted); font-size: 13px; }
.nm-tag { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--teal-soft); color: var(--teal-strong); }
@media (horizontal-viewport-segments: 2) { .modal { justify-content: flex-start; padding-left: calc(env(viewport-segment-left 1 0) + 16px); } }

/* Footer */
.site-footer { background: #121a24; color: #c9d3dc; padding: 48px 0 32px; margin-top: 0; }
.site-footer a { color: #c9d3dc; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #2b3846; margin-bottom: 8px; }
.footer-privacy { margin: 0; font-size: 14px; max-width: 560px; }
.site-footer .sf { padding: 1.25rem 0 0; border-top: 0; }
.site-footer .sf { --sf-link: #d6e2ec; --sf-fg: #c9d3dc; --sf-muted: #a8b4c0; --sf-border: #2b3846; --sf-bg: transparent; --sf-focus: #ffffff; --sf-max-width: 100%; }

@media print { .site-header, .site-footer, .data-chip, .beta-note { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
