/* Dark theme on the starmap tokens of network.html, so the embedded graph and the page read as one product. */
:root {
  --void: #060913; --void-2: #0a0f1f;
  --panel: rgba(13, 19, 38, .72); --panel-2: rgba(18, 26, 50, .92); --panel-solid: #0e1528;
  --line: rgba(148, 178, 255, .14); --line-soft: rgba(148, 178, 255, .08); --line-strong: rgba(148, 178, 255, .3);
  --starlight: #e9eefb; --dim: #9aa7c9; --faint: #6b789c;
  --ice: #8fc6ff; --ice-soft: rgba(143, 198, 255, .14); --ice-glow: rgba(143, 198, 255, .45);
  --ember: #ffc98a; --ember-soft: rgba(255, 201, 138, .12);   /* pending / placeholder */
  --lime: #9ee493; --lime-soft: rgba(158, 228, 147, .12);      /* achieved / ok */
  --rose: #ff8fa3; --rose-soft: rgba(255, 143, 163, .12);      /* risk */
  --violet: #c3a8ff; --review: #8d9fc4;
  --font-display: 'Syne', -apple-system, 'PingFang SC', sans-serif;
  --font-ui: 'Space Grotesk', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --r: 12px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--starlight); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 50% 0%, #0d1530 0%, var(--void) 55%) fixed, var(--void); min-height: 100vh; }
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
h4 { font-family: var(--font-data); font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
p { margin: 6px 0; }
.muted { color: var(--dim); font-weight: 400; }
.small { font-size: 12px; }
.mono { font-family: var(--font-data); font-size: 12px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.banner { color: #f0d5b0; background: rgba(40, 30, 14, .78); border-bottom: 1px solid rgba(255, 201, 138, .3); padding: 8px 28px; font-size: 12.5px; }
.banner strong { color: var(--ember); font-weight: 600; }

/* A: header */
.head { padding: 18px 28px 6px; max-width: 1500px; margin: 0 auto; }
.eyebrow { font-family: var(--font-data); font-size: 10px; letter-spacing: .38em; color: var(--ice); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--ice), transparent); }
.head-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .01em; }
h1 em { font-style: normal; color: var(--ice); }
.readout { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-data); font-size: 10px; color: var(--dim);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; backdrop-filter: blur(14px); }
.readout > div > span { display: block; color: var(--faint); letter-spacing: .18em; font-size: 8.5px; text-transform: uppercase; }
.readout b { display: block; color: var(--starlight); font-weight: 500; font-size: 12.5px; margin-top: 2px; white-space: nowrap; }
.definition { margin: 10px 0 0; font-size: 13.5px; color: var(--dim); border-left: 2px solid var(--ice); padding-left: 10px; }
.definition b { color: var(--starlight); font-weight: 500; }

main { max-width: 1500px; margin: 0 auto; padding: 8px 28px 28px; }
.agree { margin: 12px 0 0; font-size: 13px; color: var(--dim); padding: 8px 12px; border: 1px solid rgba(158, 228, 147, .22); background: var(--lime-soft); border-radius: 10px; }
.agree:empty { display: none; }
.agree b { color: var(--lime); font-weight: 600; }
details.pw { margin: 2px 0 6px; }
details.pw > summary { cursor: pointer; color: var(--starlight); font-size: 13px; }
details.pw > summary b { font-family: var(--font-data); font-weight: 500; }
.hint { color: var(--faint); font-size: 11.5px; margin: 8px 0 0; font-family: var(--font-data); letter-spacing: .03em; }
.group-title { margin: 30px 0 12px; font-family: var(--font-data); font-size: 10.5px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--ice);
  display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(12px); box-shadow: var(--shadow); }

/* B: top 5 cards — four blocks: identity+role · key points · key numbers · grades */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  padding: 14px 15px 13px; display: flex; flex-direction: column; cursor: pointer; text-align: left; color: inherit; min-width: 0;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: rgba(143, 198, 255, .45); box-shadow: 0 0 0 1px rgba(143, 198, 255, .12), 0 14px 40px rgba(0, 0, 0, .5); transform: translateY(-1px); }
.blk { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.blk:first-child { padding-top: 0; border-top: 0; }
.blk:last-child { padding-bottom: 0; }
.id-row { display: flex; align-items: baseline; gap: 10px; }
.rank { font-family: var(--font-data); font-size: 13px; color: var(--ice); border: 1px solid rgba(143, 198, 255, .35); border-radius: 6px; padding: 0 6px; line-height: 20px; flex: none; }
.role-big { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.15; color: var(--starlight); text-transform: capitalize; overflow-wrap: anywhere; }
.who { margin-top: 6px; font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.who b { color: var(--starlight); font-family: var(--font-data); font-weight: 500; font-size: 12.5px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.points li { font-size: 12.5px; line-height: 1.4; color: var(--starlight); padding-left: 11px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--ice); }
.points li b { color: var(--starlight); font-weight: 600; }
.bignums { display: grid; gap: 9px; }
.bignum { min-width: 0; }
.bignum .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.bignum .v { font-family: var(--font-data); font-size: 18px; font-weight: 500; color: var(--starlight); line-height: 1.25; overflow-wrap: anywhere; }
.bignum .lab { font-size: 11.5px; color: var(--dim); line-height: 1.3; min-width: 0; }
.bignum .lab-t { color: var(--starlight); font-weight: 500; font-size: 12px; line-height: 1.3; }
.bignum .rk { font-family: var(--font-data); font-size: 10px; color: var(--ice); border: 1px solid rgba(143, 198, 255, .28); border-radius: 4px; padding: 0 4px; margin-left: 6px; white-space: nowrap; }
.bignum .plain { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; color: var(--faint); margin-top: 1px; }
.bignum .pct { margin-left: 4px; }
.trait { display: inline-block; margin-top: 4px; font-family: var(--font-data); font-size: 10px; letter-spacing: .04em; color: var(--violet);
  background: rgba(195, 168, 255, .1); border: 1px solid rgba(195, 168, 255, .28); border-radius: 999px; padding: 1px 8px; }
.drawer-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .drawer-nums { grid-template-columns: 1fr; } }
/* make "hover me" discoverable where numbers carry definitions */
.bignum .v [data-def]::after, .readout [data-def]::after, .overall [data-def]::after {
  content: "ⓘ"; font-family: var(--font-ui); font-size: 9px; color: var(--ice); opacity: .75; margin-left: 2px; vertical-align: super; display: inline-block; text-decoration: none; }
[data-def]:hover { color: var(--ice); text-decoration-color: var(--ice); }
.angles { display: grid; gap: 4px; }
.angle { display: grid; grid-template-columns: 56px 1fr 18px; align-items: center; gap: 7px; font-size: 11.5px; color: var(--dim); }
.track { display: block; height: 5px; background: rgba(148, 178, 255, .1); border-radius: 3px; overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(143, 198, 255, .55), var(--ice)); box-shadow: 0 0 10px rgba(143, 198, 255, .35); }
.angle .g { text-align: right; color: var(--starlight); font-family: var(--font-data); font-size: 11.5px; }
.grade-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.overall { font-family: var(--font-data); font-size: 11px; color: var(--dim); }
.overall b { font-size: 16px; color: var(--ice); font-weight: 500; margin-left: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-family: var(--font-data); font-size: 10px; letter-spacing: .03em; border-radius: 5px; padding: 2px 6px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.badge.ok { background: var(--lime-soft); color: var(--lime); border-color: rgba(158, 228, 147, .25); }
.badge.warn { background: var(--ember-soft); color: var(--ember); border-color: rgba(255, 201, 138, .25); }
.badge.risk { background: var(--rose-soft); color: var(--rose); border-color: rgba(255, 143, 163, .25); }
.pending { grid-column: 1 / -1; background: var(--ember-soft); border: 1px dashed rgba(255, 201, 138, .45); border-radius: var(--r); padding: 18px 20px; font-size: 14px; color: #f0d5b0; }

/* numbers with definitions */
[data-def] { cursor: help; text-decoration: underline dotted var(--faint); text-underline-offset: 3px; }
.tip { position: fixed; z-index: 80; max-width: 340px; background: rgba(6, 9, 19, .96); color: var(--starlight); border: 1px solid var(--line-strong);
  border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); padding: 10px 12px; font-size: 12px; pointer-events: none; backdrop-filter: blur(8px); line-height: 1.5; }
.tip.pinned { pointer-events: auto; }
.tip .t-label { font-weight: 600; color: var(--ice); }
.tip .t-val { margin: 4px 0; font-family: var(--font-data); font-size: 11.5px; }
.tip .t-f { color: var(--dim); }
.tip .t-src { color: var(--faint); font-family: var(--font-data); font-size: 10.5px; margin-top: 4px; overflow-wrap: anywhere; }

/* D: ranks 6–10 small cards */
.next-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ncard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; cursor: pointer; min-width: 0; transition: border-color .15s; }
.ncard:hover { border-color: rgba(143, 198, 255, .45); }
.ncard .role-big { font-size: 14.5px; }
.ncard .why { font-size: 12px; color: var(--dim); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .miss { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .name-big { font-size: 16px; }
.ncard .miss b { color: var(--ember); font-weight: 500; font-family: var(--font-data); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }

/* E: how-it-was-built card grid */
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; cursor: pointer; text-align: left; color: inherit; font: inherit;
  display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.hcard:hover { border-color: rgba(143, 198, 255, .45); box-shadow: 0 0 24px rgba(143, 198, 255, .08); }
.hcard .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ice-soft); color: var(--ice); border: 1px solid rgba(143, 198, 255, .25); }
.hcard .ic svg { width: 18px; height: 18px; }
.hcard .t { font-weight: 600; font-size: 14.5px; }
.hcard .k { font-family: var(--font-data); font-size: 15px; color: var(--starlight); }
.hcard .s { font-size: 12.5px; color: var(--dim); }
.hcard .more { margin-top: auto; font-family: var(--font-data); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 28px; }
.modal-wrap[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(2, 4, 10, .72); backdrop-filter: blur(3px); }
.modal { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 56px); display: flex; flex-direction: column;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--font-display); font-size: 19px; }
.modal-body { overflow-y: auto; padding: 6px 22px 24px; }
.close { font-size: 24px; line-height: 1; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--dim); cursor: pointer; padding: 2px 8px; }
.close:hover { color: var(--ice); border-color: var(--line); }

/* folds inside the drawer */
.fold { background: rgba(6, 10, 22, .5); border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.fold > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "▸"; color: var(--ice); width: 12px; transition: transform .15s; }
.fold[open] > summary::before { transform: rotate(90deg); }
.sum-note { color: var(--faint); font-size: 12px; }
.fold-body { padding: 0 14px 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: rgba(6, 10, 22, .45); }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; white-space: nowrap; }
td { color: var(--starlight); }
td.num { font-family: var(--font-data); font-size: 12px; }
td.wrap, th.wrap { white-space: normal; min-width: 220px; }
th { background: rgba(18, 26, 50, .95); font-weight: 400; color: var(--faint); font-family: var(--font-data); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; position: sticky; top: 0; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--starlight); }
th .arrow { color: var(--ice); margin-left: 3px; }
td.num, th.num { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--ice-soft); }
tbody tr:last-child td { border-bottom: 0; }
.pct { color: var(--faint); font-family: var(--font-data); font-size: 10.5px; margin-left: 4px; }
.heat { display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--ice); opacity: .8; }
.heat.neutral { background: var(--review); }

/* small charts */
.funnel { display: grid; gap: 8px; margin: 12px 0; }
.f-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; }
.f-bar { background: rgba(195, 168, 255, .22); border: 1px solid rgba(195, 168, 255, .4); color: var(--starlight); border-radius: 6px; padding: 3px 9px;
  font-family: var(--font-data); font-size: 12.5px; min-width: 46px; white-space: nowrap; }
.f-row:nth-child(n+3) .f-bar { background: var(--ice-soft); border-color: rgba(143, 198, 255, .45); }
.f-row:last-child .f-bar { background: var(--lime-soft); border-color: rgba(158, 228, 147, .45); }
.f-crit { color: var(--dim); font-size: 12px; margin-top: 2px; }
.stack { display: flex; height: 16px; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; }
.stack span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--dim); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.step { background: rgba(6, 10, 22, .6); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; font-size: 12.5px; }
.steps .arr { color: var(--faint); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.note { color: var(--dim); font-size: 12.5px; }
.placeholder-tag { color: var(--ember); font-family: var(--font-data); font-weight: 400; font-size: 10.5px; letter-spacing: .06em; }
ul.plain { margin: 6px 0; padding-left: 18px; }
ul.plain li { margin: 4px 0; }
.empty { color: var(--faint); font-style: italic; }
iframe.net { display: block; width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: var(--void); margin: 10px 0 4px; }

/* C: drawer */
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(740px, 100%); background: var(--panel-2); border-left: 1px solid var(--line);
  backdrop-filter: blur(22px); box-shadow: -26px 0 70px rgba(0, 0, 0, .55); transform: translateX(102%); transition: transform .3s cubic-bezier(.22, 1, .3, 1);
  z-index: 60; display: flex; flex-direction: column; }
.drawer.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.22, 1, .3, 1); }
.drawer:not(.open) { visibility: hidden; transition: transform .3s cubic-bezier(.22, 1, .3, 1), visibility 0s .3s; }  /* off-screen drawer: no tab stops, no page overflow */
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-display); font-size: 20px; }
.drawer-body { overflow-y: auto; padding: 4px 20px 30px; }
.scrim { position: fixed; inset: 0; background: rgba(2, 4, 10, .55); z-index: 55; }
.contrib { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 8px 0; background: rgba(6, 10, 22, .45); }
.contrib .ttl { font-weight: 600; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; font-size: 13px; margin-top: 6px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--dim); }
.prs { list-style: none; padding: 0; margin: 4px 0; }
.prs li { padding: 5px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; color: var(--dim); }
.prs li:last-child { border-bottom: 0; }
.tier { display: inline-block; font-family: var(--font-data); font-size: 10px; border-radius: 4px; padding: 0 5px; margin-right: 6px; background: rgba(148, 178, 255, .1); color: var(--dim); }
.tier.major, .tier.landmark { background: var(--ice-soft); color: var(--ice); }
.filter { font: inherit; font-size: 12px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--void-2); color: var(--starlight); }

.foot { max-width: 1500px; margin: 0 auto; padding: 8px 28px 32px; color: var(--faint); font-size: 11.5px; font-family: var(--font-data); }

@media (max-width: 1180px) {
  .cards, .next-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .head, main, .foot { padding-left: 16px; padding-right: 16px; }
  .banner { padding: 8px 16px; }
  h1 { font-size: 20px; }
  .cards, .next-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 2px; }
  .kv { grid-template-columns: 1fr; }
  .modal-wrap { padding: 0; }
  .modal { max-height: 100vh; height: 100%; border-radius: 0; }
  .modal-body { padding: 4px 16px 20px; }
  iframe.net { height: 520px; }
}

/* v3: name-first cards, personal tags, caveat chip, compact drawer */
.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tag { font-size: 11px; color: var(--ice); background: var(--ice-soft); border: 1px solid rgba(143, 198, 255, .25); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.name-big { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--starlight); overflow-wrap: anywhere; min-width: 0; }
.drawer-head .name-big { font-size: 24px; }
.drawer-head .id-row { margin: 0; }
.tagrow { margin-top: 8px; }
.d-badges { margin: 8px 0 0; }
.card .who, .ncard .who { margin-top: 3px; }
.badge.caveat { background: rgba(255, 143, 163, .07); color: #e4a9b4; border-color: rgba(255, 143, 163, .22); cursor: help; }
.card .badges { margin-top: 8px; }
.d-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }
.summary { padding: 14px 0 6px; border-bottom: 1px solid var(--line-soft); }
.summary .clamp { font-size: 14px; color: var(--starlight); }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.clamp { display: -webkit-box; -webkit-line-clamp: var(--lines, 2); -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--dim); }
.clamp.open { display: block; -webkit-line-clamp: unset; }
button.more { background: none; border: 0; padding: 0; margin: 1px 0 4px; color: var(--ice); font-family: var(--font-data); font-size: 10.5px; letter-spacing: .06em; cursor: pointer; }
details.sec { border-bottom: 1px solid var(--line-soft); }
details.sec > summary { list-style: none; cursor: pointer; padding: 13px 0; display: flex; align-items: baseline; gap: 10px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before { content: "▸"; color: var(--ice); width: 12px; transition: transform .15s; }
details.sec[open] > summary::before { transform: rotate(90deg); }
details.sec > summary h3 { font-size: 14.5px; font-weight: 600; }
.sec-body { padding: 0 0 16px 22px; }
.contrib { padding: 10px 12px; margin: 0 0 8px; }
.contrib .ttl { font-size: 13.5px; }
.contrib .sub { font-size: 11.5px; color: var(--faint); margin: 1px 0 4px; }
.contrib .meta, .flags .meta { font-size: 12px; margin-top: 2px; }
details.mini > summary { cursor: pointer; font-size: 11.5px; color: var(--ice); font-family: var(--font-data); margin-top: 4px; }
.mrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.mchip { background: rgba(6, 10, 22, .5); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.mchip b { display: block; font-family: var(--font-data); font-weight: 500; font-size: 15px; }
.mchip span { font-size: 11px; color: var(--faint); }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { position: static; background: none; text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-size: 12px; color: var(--faint); width: 150px; padding: 7px 10px 7px 0; vertical-align: top; white-space: normal; }
.dtable td { padding: 7px 0; white-space: normal; color: var(--starlight); border-bottom: 1px solid var(--line-soft); }
.dtable tr:last-child td, .dtable th { border-bottom: 1px solid var(--line-soft); }
.pwl { margin-bottom: 6px; }
.pwl b.ok { color: var(--lime); } .pwl b.risk { color: var(--rose); }
ul.flags { list-style: none; padding: 0; margin: 8px 0; }
ul.flags li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
@media (max-width: 760px) { .facts-row, .mrow { grid-template-columns: 1fr 1fr; } .dtable th { width: 100px; } }

/* explore band + fine-stage modal */
.explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.explore .xcard { padding: 8px 12px; }
.explore .xcard .ic { width: 28px; height: 28px; }
.xcard { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; color: inherit; text-decoration: none; transition: border-color .15s; }
a.xcard:hover { border-color: rgba(143, 198, 255, .45); text-decoration: none; }
.xcard .ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--ice-soft); color: var(--ice); border: 1px solid rgba(143, 198, 255, .25); }
.xcard .ic svg { width: 17px; height: 17px; }
.xcard b { display: block; font-size: 13.5px; font-weight: 600; }
.xcard span.s { font-size: 12px; color: var(--dim); }
.xcard.soon { opacity: .55; cursor: default; }
.xcard.soon b::after { content: " · coming soon"; color: var(--ember); font-family: var(--font-data); font-size: 10px; font-weight: 400; }
.tree { width: 100%; max-width: 980px; height: auto; display: block; margin: 8px 0 4px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.rule { border: 1px solid rgba(195, 168, 255, .28); background: rgba(195, 168, 255, .07); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.rule b { color: var(--violet); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
@media (max-width: 760px) { .explore, .rules { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } }
.summary .headline { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ice); margin: 0 0 6px; }
ul.flags.verified li { color: var(--starlight); font-size: 13px; }
.card .name-big.long, .ncard .name-big.long { font-size: 17px; }
