/* CNS tracker - styles of the interface (moved from index.html in v2.0.0). */
:root {
  color-scheme: light;
  --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f3f2ef;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11,11,11,0.10);
  --accent: #2a78d6; --accent-soft: #e6f0fc;
  --ph0: #86b6ef; --ph1: #3987e5; --ph2: #1c5cab; --ph3: #0d366b;
  --ph0-ink: #0b0b0b; --ph1-ink: #fff; --ph2-ink: #fff; --ph3-ink: #fff;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
    --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10);
    --accent: #3987e5; --accent-soft: #16263a;
    --ph0: #184f95; --ph1: #256abf; --ph2: #5598e7; --ph3: #9ec5f4;
    --ph0-ink: #fff; --ph1-ink: #fff; --ph2-ink: #0b0b0b; --ph3-ink: #0b0b0b;
    --shadow: 0 8px 30px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
  --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,0.10);
  --accent: #3987e5; --accent-soft: #16263a;
  --ph0: #184f95; --ph1: #256abf; --ph2: #5598e7; --ph3: #9ec5f4;
    --ph0-ink: #fff; --ph1-ink: #fff; --ph2-ink: #0b0b0b; --ph3-ink: #0b0b0b;
  --shadow: 0 8px 30px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
button, select, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header { position: sticky; top: 0; z-index: 5; background: var(--page); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; max-width: 1480px; margin: 0 auto; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 8px; }
.tabs { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 8px; }
.tabs button { border: 0; background: none; padding: 5px 14px; border-radius: 6px; cursor: pointer; color: var(--ink-2); }
.tabs button .pv { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); vertical-align: 1px; }
.pv-note { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 10px; font-size: 13px; color: var(--ink-2); background: var(--surface); }
.ii-box.soon .ii-head { cursor: default; opacity: .55; } .ii-box.soon .ii-head:hover { background: none; }
.ii-dev { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.spacer { flex: 1; }
.btn { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 24px 12px; max-width: 1480px; margin: 0 auto; }
.filters select, .filters input[type=search] { border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 5px 8px; max-width: 260px; }
.filters input[type=search] { width: 200px; }
.chips { display: flex; gap: 4px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.chip.flag.on { background: color-mix(in srgb, var(--crit) 14%, transparent); border-color: var(--crit); }
.lbl { font-size: 12px; color: var(--muted); margin-left: 6px; }
.reset { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.reset:hover { color: var(--ink); }

main { max-width: 1480px; margin: 0 auto; padding: 20px 24px 60px; }
/* Indication intelligence */
.ii-h { font-size: 26px !important; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px !important; }
.ii-subt { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.ii-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 8px; }
.ii-kpis > div { padding: 6px 4px; } .ii-kpis .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; } .ii-kpis .k { font-size: 13px; color: var(--ink-2); }
.ii-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; grid-auto-flow: row dense; }
.ii-box { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.ii-box.open { grid-column: 1 / -1; }
.ii-head { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; cursor: pointer; color: var(--ink); }
.ii-head:hover { background: var(--surface-2); border-radius: 12px; }
.ii-head .ii-ic { color: var(--muted); flex: none; }
.ii-t { display: flex; flex-direction: column; gap: 4px; flex: 1; } .ii-t b { font-size: 16px; font-weight: 600; } .ii-t span { font-size: 13px; color: var(--ink-2); }
.ii-box.open .ii-t b { font-size: 20px; font-weight: 700; }
.ii-arr { font-size: 20px; color: var(--muted); }
.ii-content { padding: 0 20px 20px; }
.ii-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; } .ii-ctl .lbl { font-size: 12px; color: var(--muted); }
.ii-seg button { padding: 6px 12px; font-size: 13px; }
.ii-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); margin: 0 0 14px; }
.ii-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; } .ii-leg b { color: var(--ink); }
.ii-def { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; }
table.hm { line-height: 1.2; font-size: 12.5px; border-collapse: separate; border-spacing: 4px 2px; width: 100%; table-layout: fixed; margin: 0 -4px; }
table.hm col.cl { width: 22%; } table.hm col.cn { width: 6%; } table.hm col.cp { width: 16.5%; }
table.hm th { font-size: 11px; font-weight: 500; color: var(--muted); padding: 2px 4px 4px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.hm th.hm-c { text-align: center; } table.hm th.hm-n { text-align: right; } table.hm th.hm-l { text-align: left; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
table.hm td { padding: 0; height: 22px; vertical-align: middle; border: 0; background: none; }
table.hm .hm-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
table.hm .hm-n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; padding-right: 4px; }
.hm-tile { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 4px; background: color-mix(in srgb, #2f5487 6%, var(--surface)); font-size: 12.5px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.hm-tile.none { background: none; color: var(--border); font-size: 12px; }
tr.mol td { height: 19px; } tr.mol .hm-tile { font-size: 11.5px; background: color-mix(in srgb, #11907c 6%, var(--surface)); } tr.mol .hm-tile.none { background: none; }
tr.d0 td { height: 26px; } tr.d0 .hm-tile { font-size: 13.5px; font-weight: 600; }
table.hm .hm-s { color: #d1401f; font-weight: 700; margin-left: 5px; font-size: .85em; } .hm-tile[style*="color:#fff"] .hm-s { color: #ffc9b8; }
.hm-tg, .hm-mol { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font: inherit; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
tr.d0 .hm-tg { font-weight: 700; font-size: 13px; } tr.d1 .hm-tg { font-weight: 600; } tr.tgt .hm-tg { font-weight: 500; }
tr.mol .hm-mol { color: var(--ink-2); font-size: 12px; } tr.mol .hm-mol:hover { color: var(--accent); text-decoration: underline; }
table.hm tr:hover .hm-l .hm-tg, table.hm tr:hover .hm-l .hm-mol { color: var(--accent); }
table.hm tr.dim { opacity: .28; } table.hm tr.dim:hover { opacity: .7; }
table.hm tr.foc .hm-tg { font-weight: 800; color: var(--ink); }
table.hm tr.foc-in td.hm-l { box-shadow: inset 3px 0 0 #11907c; padding-left: 10px; } table.hm tr.foc-in .hm-mol { color: var(--ink); font-weight: 600; }
.hm-mo { font-size: 13px; color: var(--ink-2); margin-left: -4px; } .hm-mo input { width: 56px; padding: 5px 6px; font-size: 13px; margin-right: 4px; }
.hm-tile.hm-click { cursor: pointer; } .hm-tile.hm-click:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
.hm-faded table.hm, .hm-faded .hm-leg { opacity: .2; transition: opacity .15s; }
.dd-ov { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 24px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.dd-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); width: min(1180px, 100%); max-height: 86vh; overflow: auto; padding: 18px 22px; }
.dd-card h3 { margin: 0 0 4px; font-size: 18px; } .dd-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
table.dd { width: 100%; border-collapse: collapse; font-size: 13px; } table.dd th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
table.dd td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; } table.dd .num { text-align: right; white-space: nowrap; }
table.dd tr.dd-m { cursor: pointer; } table.dd tr.dd-m:hover td, table.dd tr.dd-m.on td { background: var(--accent-soft); }
table.dd tr.dd-t td { background: var(--surface-2); font-size: 12px; } table.dd tr.dd-t div { padding: 2px 0; }
.dd-d { white-space: nowrap; } .dd-k.late { color: #d97706; font-weight: 600; }
.dd-k { font-size: 10.5px; color: var(--muted); margin-left: 5px; text-transform: uppercase; letter-spacing: .03em; } .dd-st { display: inline-block; min-width: 150px; color: var(--ink-2); }
table.dd .hm-s { color: #d1401f; font-weight: 700; margin-left: 6px; }
.hm-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: 12px; color: var(--ink-2); margin: 14px 0 0; }
.hm-ramp { display: inline-flex; align-items: center; gap: 4px; } .hm-ramp i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }
.hm-ramp > span { color: var(--muted); margin: 0 4px; } .hm-ramp em { font-style: normal; margin-left: 6px; }
.ii-content.hm-fs { position: fixed; inset: 0; z-index: 20; overflow: auto; background: var(--surface); padding: 20px 28px; }
.cchip.ii-main { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.cchip.ii-main button { color: #fff; }
@media (max-width: 760px) { .ii-grid, .ii-kpis { grid-template-columns: 1fr 1fr; } .ii-box.open { grid-column: 1 / -1; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.kpi .k { font-size: 12px; color: var(--ink-2); }
.kpi .s { font-size: 12px; color: var(--muted); }

.mk-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mk-grid #v-sponsors .sp-summary { margin-top: 2px; }
.phchart { display: flex; align-items: flex-end; gap: 24px; padding: 8px 4px 4px; }
.phbar { width: 110px; display: flex; flex-direction: column; align-items: stretch; }
.phtot { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.phstack { height: 300px; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); }
.phleg { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.phleg div { display: grid; grid-template-columns: 12px 52px auto auto; align-items: center; gap: 8px; font-size: 13px; }
.phleg i { width: 12px; height: 12px; border-radius: 3px; }
.phleg b { text-align: right; }
.phleg em { font-style: normal; color: var(--muted); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; min-width: 0; }
.card h2 { font-size: 14px; margin: 0 0 2px; }
.card .sub { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.hbar { display: grid; grid-template-columns: 230px minmax(0,1fr) 56px; align-items: center; gap: 10px; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.hbar:hover { background: var(--surface-2); }
.hbar.sel { background: var(--accent-soft); }
.hbar .name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { display: flex; gap: 2px; height: 16px; }
.hbar .seg { height: 100%; min-width: 2px; }
.hbar .seg:first-child { border-radius: 4px 0 0 4px; }
.hbar .seg:last-child { border-radius: 0 4px 4px 0; }
.hbar .seg:only-child { border-radius: 4px; }
.hbar .n { font-size: 12px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--axis); position: sticky; top: 0; background: var(--surface); cursor: pointer; white-space: nowrap; user-select: none; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th .arr { color: var(--accent); margin-left: 3px; }
td { padding: 7px 10px; border-bottom: 1px solid var(--grid); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }
.tablewrap { max-height: calc(100vh - 250px); overflow: auto; border-radius: 8px; }
.sp-name { font-weight: 600; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; background: var(--surface-2); color: var(--ink-2); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.muted { color: var(--muted); }
.flag-dot { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--crit); font-weight: 600; white-space: nowrap; }
.phase { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; }
.more { text-align: center; padding: 12px; }

.status { font-size: 11px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--muted); vertical-align: 1px; }
.status.active::before { background: var(--good); }
.status.stopped::before { background: var(--crit); }
.status.completed::before { background: var(--accent); }

#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .2s ease; z-index: 20; display: flex; flex-direction: column; }
#drawer.open { transform: none; }
#drawer.wide { width: min(max(50vw, 760px), 100%); }
#drawer .fam td { font-size: 12px; } #drawer .fam th { top: -16px; background: var(--surface); }
.seg { display: inline-flex; gap: 6px; margin: 4px 0 10px; }
svg.netmap .cnt { font-size: 15px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--page); stroke-width: 4px; }
#drawer .head { padding: 20px 56px 12px 24px; border-bottom: 1px solid var(--border); }
#drawer .head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
#drawer .body { padding: 16px 24px 40px; overflow: auto; }
#drawer .close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.stats div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.stats b { display: block; font-size: 18px; }
.stats span { font-size: 11px; color: var(--muted); }
.sec { margin-top: 18px; }
.sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.trial { display: grid; grid-template-columns: 86px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grid); }
.trial .date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trial .t { font-size: 13px; margin: 2px 0 4px; }
.trial .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.why { margin-top: 6px; font-size: 12px; padding: 6px 8px; border-left: 3px solid var(--crit); background: color-mix(in srgb, var(--crit) 8%, transparent); border-radius: 0 6px 6px 0; }

#tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--page); font-size: 12px; padding: 7px 9px; border-radius: 7px; z-index: 30; display: none; max-width: 280px; box-shadow: var(--shadow); }
#tip b { display: block; margin-bottom: 3px; }
#tip .r { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
#tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.empty { padding: 60px 20px; text-align: center; color: var(--ink-2); }
.empty code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.hidden { display: none !important; }
.newshead { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.news .trial { grid-template-columns: 86px 1fr; }
.news .t { font-size: 14px; font-weight: 600; }
.news .t a { color: var(--ink); } .news .t a:hover { color: var(--accent); }
.news .links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.news .links .lbl { font-size: 11px; color: var(--muted); }
.ntype { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.ntype.m3 { background: var(--accent); color: #fff; }
.news .t a { cursor: pointer; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--border); gap: 1px; }
.facts > div { background: var(--surface); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.facts > div.full { grid-column: 1 / -1; }
.facts > div > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.facts > div.fill { background: var(--surface-2); }
.nid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); margin-top: 14px; }
:root { --mo1: #2a78d6; --mo2: #eda100; --mo3: #008300; --mo4: #e87ba4; --mo5: #d1401f; --mo6: #7a52c7; --mo0: #b8b6ae; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mo1: #3987e5; --mo2: #c98500; --mo3: #008300; --mo4: #d55181; --mo5: #e2603f; --mo6: #9a78e0; --mo0: #5c5b57; } }
:root[data-theme="dark"] { --mo1: #3987e5; --mo2: #c98500; --mo3: #008300; --mo4: #d55181; --mo5: #e2603f; --mo6: #9a78e0; --mo0: #5c5b57; }
.maphead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.mapctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chk { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.netwrap { border: 1px solid var(--grid); border-radius: 8px; background: var(--page); overflow: hidden; }
svg.netmap { width: 100%; height: calc(100vh - 330px); min-height: 460px; display: block; cursor: grab; }
svg.netmap .lk { stroke: var(--axis); stroke-width: 1; }
svg.netmap .hub circle { fill: var(--surface-2); stroke: var(--axis); stroke-width: 1.5; }
svg.netmap .hub text { font-size: 11px; font-weight: 600; fill: var(--ink-2); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--page); stroke-width: 3px; }
svg.netmap .mol circle { stroke: var(--page); stroke-width: 2; cursor: pointer; }
svg.netmap .mol.bm circle { stroke: var(--ink); stroke-width: 1.8; }
svg.netmap .mol path { stroke: var(--ink); stroke-width: 1.6; pointer-events: none; }
svg.netmap .mol text { font-size: 10px; fill: var(--ink-2); pointer-events: none; paint-order: stroke; stroke: var(--page); stroke-width: 3px; }
svg.netmap.focus .mol:not(.on), svg.netmap.focus .hub:not(.on), svg.netmap.focus .lk:not(.on) { opacity: .12; }
svg.netmap .hub { cursor: pointer; }
.netbody { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; margin-top: 10px; }
.netlegend { border: 1px solid var(--grid); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--ink-2); overflow: auto; max-height: calc(100vh - 330px); min-height: 460px; }
.netlegend h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.netlegend h3:first-child { margin-top: 0; }
.mchip { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; padding: 5px 6px; border-radius: 6px; border: 1px solid transparent; }
.mchip:hover { background: var(--surface-2); }
.mchip.static { cursor: default; } .mchip.static:hover { background: none; }
.mchip.on { border-color: var(--axis); background: var(--surface-2); }
.mchip i { flex: none; width: 11px; height: 11px; border-radius: 50%; margin-top: 3px; }
.mchip b { color: var(--ink); font-weight: 600; }
.mchip span { display: block; color: var(--muted); font-size: 11px; }
.lg-row { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.lg-row svg { flex: none; }
.lg-row.sizes { gap: 0; font-size: 10px; color: var(--muted); padding-top: 0; } .lg-row.sizes span { width: 34px; text-align: left; margin-left: -6px; padding-left: 6px; }
.hint { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.fsmode header { display: none; }
/* Program in full screen: the card alone fills the window (the header filters do not apply to it) */
#prog-card.fs { position: fixed; inset: 0; z-index: 20; border-radius: 0; border: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; }
#prog-card.fs .tablewrap { flex: 1 1 auto; max-height: none; min-height: 0; }
#prog-card.fs #prog-note { display: none; }
#prog-card.fs #prog-fs { position: absolute; top: 16px; right: 18px; z-index: 2; }
#ci-card.fs { position: fixed; inset: 0; z-index: 20; border-radius: 0; border: 0; margin: 0; overflow: auto; }
.netcard.fs { position: fixed; inset: var(--fsh, 0px) 0 0 0; z-index: 15; border-radius: 0; border: 0; overflow: auto; }
.netcard.fs svg.netmap { height: calc(100vh - 110px - var(--fsh, 0px)); }
svg.netmap .hub.opp circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
svg.netmap .hub.opp text { font-size: 13px; fill: var(--ink); }
svg.netmap .lk.dl { stroke-opacity: .28; }
svg.netmap .lk.th { stroke: var(--accent); stroke-opacity: .45; }
svg.netmap .hub.dimv circle { stroke-width: 2; }
svg.netmap .hub.dimv text, svg.netmap .hub.opp text { font-size: 15px; fill: var(--ink); }
svg.netmap .hub circle.share { fill: none; stroke: var(--accent); stroke-width: 3; }
.corelist div { align-items: center; }
.net3d { position: relative; height: calc(100vh - 330px); min-height: 460px; overflow: hidden; border-radius: 8px; }
.netcard.fs .net3d { height: calc(100vh - 110px - var(--fsh, 0px)); }
.net3d .lab3 { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.net3d .lab3 span { position: absolute; left: 0; top: 0; font-size: 10px; font-weight: 600; color: var(--ink-2); white-space: nowrap; text-shadow: 0 0 3px var(--page), 0 0 3px var(--page); will-change: transform; }
.net3d .lab3 span.big { font-size: 13px; color: var(--ink); }
.net3d .lab3 span.mid { font-size: 11px; color: var(--ink); }
.mchip.sub { margin-left: 18px; }
svg.netmap .hub.tri text { font-size: 11px; }
.tlwrap { overflow: auto; max-height: calc(100vh - 330px); min-height: 460px; }
.netcard.fs .tlwrap { max-height: calc(100vh - 110px - var(--fsh, 0px)); }
.tlaxis { position: sticky; top: 0; z-index: 2; background: var(--page); height: 26px; }
svg.tl { display: block; } svg.tl .row:hover rect { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
svg.tl .nm { font-size: 12px; font-weight: 600; fill: var(--ink); cursor: pointer; } svg.tl .nm:hover { fill: var(--accent); }
svg.tl .tg { font-size: 10px; fill: var(--muted); } svg.tl .sw text { font-size: 9px; fill: var(--ink-2); paint-order: stroke; stroke: var(--page); stroke-width: 3px; }
svg.tl .tr { cursor: pointer; }
.crit { display: flex; gap: 7px; align-items: flex-start; padding: 3px 0; cursor: pointer; }
.crit input { margin-top: 2px; }
.crit b { color: var(--ink); font-weight: 600; }
.crit span { display: block; color: var(--muted); font-size: 11px; }
.corelist div { padding: 4px 6px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.corelist div:hover { background: var(--surface-2); }
.corelist b { color: var(--ink); font-weight: 600; }
.netcard.fs .netlegend { max-height: calc(100vh - 110px - var(--fsh, 0px)); }
.netcard.fs .netnote { display: none; }
@media (max-width: 980px) { .netbody { grid-template-columns: minmax(0, 1fr); } .netlegend { min-height: 0; max-height: none; } }
th.sep, td.sep { border-left: 1px solid var(--grid); }
tr.top th { position: sticky; top: 0; z-index: 2; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 0; padding-bottom: 0; cursor: default; }
tr.top th.grp { text-align: center; border-bottom: 1px solid var(--grid); }
#sp-head th { top: 26px; }
.traj { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.traj.same { box-shadow: inset 3px 0 0 #1baf7a; color: var(--ink); }
.traj.other { box-shadow: inset 3px 0 0 #eda100; color: var(--ink); }
.traj.none { box-shadow: inset 3px 0 0 var(--muted); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 13px; padding: 4px 0; }
.kv > span { color: var(--muted); font-size: 12px; }
.kv > b { font-weight: 500; }
.kv.col { grid-template-columns: 1fr; gap: 4px; }
.arm { font-size: 13px; padding: 6px 0; border-top: 1px dashed var(--grid); }
.arm .muted { font-size: 12px; margin-top: 2px; }
.later { font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 3px 0; }
details { margin-top: 8px; font-size: 13px; }
summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.crit { white-space: pre-wrap; font-size: 12px; color: var(--ink-2); max-height: 320px; overflow: auto; background: var(--page); border-radius: 8px; padding: 10px 12px; margin-top: 6px; }
.declared { font-size: 12px; color: var(--muted); font-style: italic; margin: 0; }
.sp-summary { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.sig { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; color: var(--ink); cursor: help; }
.sig.imm { background: color-mix(in srgb, #2a78d6 16%, transparent); box-shadow: inset 3px 0 0 #2a78d6; }
.sig.post { background: color-mix(in srgb, #eb6834 16%, transparent); box-shadow: inset 3px 0 0 #eb6834; }
.trial.hl { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.trial .sigtag { margin-left: 4px; }
.dfilters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dfilters input[type=search], .dfilters select { border: 1px solid var(--border); background: var(--page); border-radius: 7px; padding: 5px 8px; }
.dfilters input[type=search] { flex: 1 1 220px; }
.excl { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 16px 4px 0; padding-top: 12px; border-top: 1px solid var(--grid); font-size: 13px; }
.excl label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.scope-note { margin: 12px 4px 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.scope-note p { margin: 0 0 4px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 12px; }
.linkbtn:hover { text-decoration: underline; }
.scope { margin-top: 10px; font-size: 12px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid2, .mk-grid { grid-template-columns: minmax(0,1fr); }
  .hbar { grid-template-columns: 130px minmax(0,1fr) 44px; }
  .bar, .filters, main { padding-left: 16px; padding-right: 16px; }
}
/* Program sheet: one column per searched object, years as shared rows */
.prog-grid { display: grid; gap: 0 14px; align-items: start; }
.prog-grid > .yr { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 10px 0; border-top: 1px solid var(--grid); font-variant-numeric: tabular-nums; position: sticky; left: 0; }
.prog-grid > .yr.future { color: var(--muted); font-weight: 600; }
.prog-grid > .cell { border-top: 1px solid var(--grid); padding: 8px 0 8px 14px; border-left: 2px solid var(--axis); min-height: 38px; min-width: 0; }
.prog-grid > .slot { padding: 0 0 12px 0; min-width: 0; max-width: 460px; }
.prog-slot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prog-slot select, .prog-slot input { border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 5px 8px; }
.prog-slot input { flex: 1 1 140px; min-width: 110px; }
.prog-slot input[type="checkbox"] { flex: none; min-width: 0; }
.prog-head { margin-top: 10px; }
.prog-head h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.prog-head .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prog-miss { font-size: 12px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pev { position: relative; padding: 5px 8px 6px; margin: 0 0 6px; border-radius: 7px; background: var(--surface-2); cursor: pointer; font-size: 12px; line-height: 1.4; }
.pev::before { content: ""; position: absolute; left: -20px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--axis)); box-shadow: 0 0 0 2px var(--surface); }
.pev:hover { box-shadow: inset 0 0 0 1px var(--pc, var(--axis)); }
.pev .d { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.pev .tg { display: inline-block; font-size: 11px; font-weight: 700; color: var(--pc, var(--ink-2)); margin-right: 8px; }
.pev .l { font-size: 13px; }
.pev .m { color: var(--ink-2); }
.pev.minor { background: none; padding-top: 1px; padding-bottom: 1px; color: var(--ink-2); }
.pev.minor::before { width: 6px; height: 6px; left: -18px; top: 8px; }
.pev.planned { background: none; box-shadow: inset 0 0 0 1px var(--grid); }
.pev.planned::before { background: var(--surface); box-shadow: 0 0 0 2px var(--pc, var(--axis)); }
.pev.hl { box-shadow: inset 0 0 0 2px var(--ink); }
.prog-grid > .lanes { display: flex; height: 46px; align-items: stretch; }
.prog-grid > .lanes > div { box-sizing: border-box; flex: none; padding: 4px 6px 0; font-size: 11px; line-height: 1.25; font-weight: 600; color: var(--ink-2); overflow: hidden; border-top: 3px solid var(--lc, var(--axis)); }
.prog-grid > .chart { min-width: 0; }
.prog-grid svg.pc { display: block; }
.prog-grid svg.pc text { font-size: 11px; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.prog-grid svg.pc .bar { cursor: pointer; }
.prog-grid svg.pc .bar:hover circle:last-of-type { stroke: var(--ink); stroke-width: 2; }
.prog-grid svg.pc .bar:hover rect { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: none; }
.prog-grid svg.pc .nm { font-weight: 600; fill: var(--ink); }
.prog-grid svg.pc .nw { cursor: pointer; }
.prog-legend .sq { width: 10px; height: 10px; border-radius: 2px; }
.prog-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin: 0 0 14px; align-items: center; }
.prog-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.prog-dates { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.prog-dates input { width: 96px; border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 3px 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
:root { --hl-combo: #8a5a2b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl-combo: #c4935f; } }
:root[data-theme="dark"] { --hl-combo: #c4935f; }
/* Compare: a real separator before the second column (search, lanes and chart alike) */
.prog-grid > [style^="grid-column:3"] { border-left: 2px solid var(--ink-2); padding-left: 18px; margin-left: 4px; align-self: stretch; }
.prog-molfoot { margin: 8px 0 2px; font-size: 12px; color: var(--ink-2); display: grid; gap: 4px; max-width: 560px; }
.prog-molfoot span { display: inline-block; min-width: 96px; color: var(--muted); font-weight: 600; }
.prog-molhead { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 8px; }
.prog-mod { font: 700 11px system-ui, -apple-system, sans-serif; padding: 2px 8px; border-radius: 4px; background: color-mix(in srgb, var(--mc) 30%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mc) 70%, transparent); color: var(--ink); }
.prog-tchip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; }
.prog-tchip span { font-weight: 400; color: var(--muted); margin-left: 5px; }
.prog-tchip:hover { border-color: var(--ink-2); }
.prog-pchip { background: var(--surface-2); }
.prog-sep { font-size: 11px; font-weight: 600; color: var(--muted); margin: 0 2px 0 10px; padding-left: 10px; border-left: 1px solid var(--border); }
.prog-trail { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); margin: 0 0 12px; min-height: 22px; }
.prog-trail button.step { border: 0; background: none; padding: 2px 4px; border-radius: 5px; color: var(--ink-2); cursor: pointer; font: inherit; }
.prog-trail button.step:hover { background: var(--surface-2); }
.prog-trail button.step.on { color: var(--ink); font-weight: 700; }
.prog-trail .close { margin-left: auto; }
.prog-grid .slot .prog-trail { margin: 0 0 6px; }
.prog-grid svg.pc text.nm.lk { cursor: pointer; }
.prog-grid svg.pc text.nm.lk:hover { fill: var(--ink); text-decoration: underline; }
.tg-map { display: block; max-width: 100%; }
.tg-map text { font-size: 10px; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.tg-map .tg-z { font-size: 16px; font-weight: 800; fill: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.tg-map .tg-n { font-weight: 400; fill: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12px; }
.tg-map .tg-s { font-size: 12.5px; font-weight: 700; fill: var(--ink); letter-spacing: .01em; }
.tg-map .tg-b { cursor: pointer; }
.tg-map .tg-b:hover circle { stroke: var(--ink); stroke-width: 2; }
/* Tracker overview: four sub-sheets under the summary of the base, each with its own filter bar */
.subtabs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 4px 0 16px; }
.subtabs #ov-fs { justify-self: end; }
/* QC log DB: one table per section, a row per check */
.ae .ae-bar { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; font-size: 13px; }
.ae .ae-bar input[type=text], .ae #ae-q { width: 320px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); }
.ae table { width: 100%; border-collapse: collapse; }
.ae th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--grid); }
.ae td { padding: 6px 8px; border-top: 1px solid var(--grid); font-size: 13px; vertical-align: top; }
.ae td.n { text-align: right; white-space: nowrap; }
.ae th.n { text-align: right; }
.ae-dig { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.5; background: var(--surface); border: 1px solid var(--grid); border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; overflow-x: auto; }
.ae-dig b { color: var(--ink); }
#ae-f #ae-q { width: 330px; max-width: none; }
.ae-phs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; font-weight: 400; padding: 6px 0; letter-spacing: 0; }
.ae-phs b { font-weight: 700; margin-left: 4px; }
.qc h3 { font-size: 14px; margin: 22px 0 4px; }
.qc .qc-scope { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.qc table { width: 100%; border-collapse: collapse; }
.qc td { padding: 6px 8px; border-top: 1px solid var(--grid); vertical-align: top; font-size: 13px; }
.qc td.n { text-align: right; font-weight: 700; white-space: nowrap; width: 90px; }
.qc td.pc { text-align: right; color: var(--muted); white-space: nowrap; width: 70px; }
.qc td.st { width: 92px; }
.qc .pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.qc .pill.ok { background: color-mix(in srgb, var(--mo3) 18%, transparent); color: var(--ink); }
.qc .pill.warn { background: color-mix(in srgb, var(--crit) 16%, transparent); color: var(--ink); }
.qc .pill.info { background: var(--surface-2); color: var(--ink-2); }
.qc .qc-list { margin: 6px 0 2px; max-height: 260px; overflow: auto; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.qc .qc-list button.linkbtn { font-size: 12px; }
.qc td .help { display: block; font-size: 11px; color: var(--muted); }
.prog-cf { margin: 8px 0 0; }
.pind { display: contents; }
.pind .cpick { flex: 1 1 160px; } .pind .cpick input { width: 100%; }
.pind .lchips { order: 99; }
/* Full screen of the Tracker overview: the four sheets fill the window, summary and header hidden */
#v-ov.ovfs { position: fixed; inset: 0; z-index: 20; background: var(--page); overflow: auto; padding: 14px 24px 20px; }
#v-ov.ovfs #kpis, #v-ov.ovfs > .scope-note { display: none; }
#v-ov.ovfs svg.netmap, #v-ov.ovfs .net3d { height: calc(100vh - 210px); }
#v-ov.ovfs .tlwrap, #v-ov.ovfs .netlegend { max-height: calc(100vh - 210px); }
.subtabs button small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 11px; }
.subtabs button.on small { color: var(--surface); opacity: .75; }
.lfilters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.lfilters select, .lfilters input { border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 5px 8px; max-width: 240px; }
.lfilters input[type=search] { width: 210px; }
.lfilters input.bad { border-color: var(--crit); outline-color: var(--crit); }
.lfilters input[list] { width: 150px; }
.cpick { position: relative; display: inline-block; }
.cpick input { width: 190px; }
.cpick-list { position: fixed; z-index: 60; width: 360px; max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; }
.cpick-list button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 13px; color: var(--ink); }
.cpick-list button:hover { background: var(--surface-2); }
.cpick-list button span { color: var(--muted); font-size: 12px; }
.cpick-list button[data-call] { font-weight: 700; border-bottom: 1px solid var(--border); border-radius: 5px 5px 0 0; margin-bottom: 2px; }
.cpick-more { font-size: 12px; color: var(--muted); padding: 6px 8px; }
.cchips { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.cchips:empty { display: none; }
.lchips { flex-basis: 100%; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.lchips:not(:has(.cchip)) { display: none; }
.cchip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12px; }
.cchip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; padding: 0 4px; }
.cchip button:hover { color: var(--ink); }
.lfilters .push { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mix { display: inline-flex; gap: 8px; flex-wrap: nowrap; }
.mix .phase { min-width: 0; }
.mix .phase b { font-weight: 700; margin-left: 6px; padding-left: 6px; border-left: 1px solid currentColor; }
.cal-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.cal-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cal-seg button { border: 0; background: var(--surface); padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cal-seg button + button { border-left: 1px solid var(--border); }
.cal-seg button span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.cal-seg button.on { background: var(--ink); color: var(--surface); }
.cal-seg button.on span { color: var(--surface); opacity: .75; }
.cal-nav { justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal-nav .btn { font-size: 16px; padding: 3px 12px; }
.cal-nav .btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.cal-col { background: var(--surface-2); border-radius: 10px; padding: 10px; max-height: calc(100vh - 290px); overflow-y: auto; }
.cal-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.cal-h span { color: var(--muted); font-size: 12px; }
.cal-card { background: var(--surface); border: 1px solid var(--grid); border-radius: 8px; padding: 7px 9px; margin-bottom: 6px; cursor: pointer; font-size: 12px; }
.cal-card:hover { border-color: var(--ink-2); }
.cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.cal-d { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-m { font-weight: 700; font-size: 13px; }
.cal-s { color: var(--ink-2); }
.cal-i { color: var(--muted); margin-top: 2px; }
.cal-row { cursor: pointer; }
.cal-row:hover td { background: var(--surface-2); }
.ci-inds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ci-ind { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; min-width: 170px; text-align: left; }
.ci-ind b { font-size: 14px; color: var(--ink); }
.ci-ind span { font-size: 12px; color: var(--muted); }
.ci-ind:hover { border-color: var(--ink-2); }
.ci-ind { border-left: 5px solid var(--ic, var(--border)); }
.ci-ind.on { border-color: var(--ink); border-left-color: var(--ic); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.ci-ind.off { opacity: .5; }
.ci-map .ci-ind-lab { font-size: 10.5px; font-weight: 700; fill: var(--ink); stroke: none; }
.ci-head { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.ci-zoom { display: inline-flex; gap: 4px; align-items: center; margin-left: 10px; }
.ci-zoom .btn { padding: 1px 9px; }
.ci-tlrow { display: flex; align-items: flex-start; }
.ci-tlrow > svg { flex: none; }
.ci-tlwrap { overflow-x: auto; border: 1px solid var(--grid); border-radius: 8px; flex: 1; min-width: 0; }
.ci-tl { display: block; }
.ci-tl .ci-pt { cursor: pointer; }
.ci-map .ci-tl-lab, .ci-tl .ci-tl-lab { font-size: 10px; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.ci-sum { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 8px; }
.ci-sum > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ci-sum > div > span:first-child { min-width: 170px; color: var(--muted); font-weight: 600; }
.ci-num { width: 56px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 2px 5px; font-size: 12.5px; }
.ci-sum em { font-style: normal; color: var(--muted); font-size: 12px; }
.ci-mod { border: 1.5px solid color-mix(in srgb, var(--mc) 70%, transparent); background: color-mix(in srgb, var(--mc) 16%, var(--surface)); border-radius: 10px; padding: 7px 14px; cursor: pointer; font-size: 14px; color: var(--ink); }
.ci-mod b { font-size: 15px; margin-right: 4px; }
.ci-mod:hover { border-color: var(--mc); }
.ci-mod.on { background: var(--mc); color: #fff; border-color: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 30%, transparent); }
.ci-mod.off { opacity: .4; }
.ci-map { display: block; max-width: 100%; }
.ci-map .ci-lab { font-size: 12px; font-weight: 600; fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.ci-map .ci-pt { cursor: pointer; }
.ci-map .ci-ring { font-size: 11px; font-weight: 700; letter-spacing: .04em; fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.ci-map .ci-tg-lab { font-size: 12px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.ci-map .dim { opacity: .08 !important; }
.ci-cls { display: inline-flex; align-items: center; gap: 4px; }
.ci-cls .ci-np { opacity: .75; font-size: 12.5px; margin-left: 4px; }
.ci-cls .ci-num { color: var(--ink); }
.ci-ro { display: inline-block; text-align: center; background: var(--surface-2); }
.ci-fail button { padding: 4px 12px; font-size: 12.5px; }
.ci-fam { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-right: 12px; }
.ci-famb { border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--mc); cursor: pointer; padding: 2px 4px; text-decoration: underline dotted; }
.ci-fam .ci-mod { padding: 4px 10px; font-size: 12.5px; }
.ci-within { font-size: 12.5px; color: var(--ink-2); }
.ci-map .ci-splab { cursor: pointer; }
.ci-map .ci-splab:hover { fill: var(--ink); text-decoration: underline; }
.ci-map .ci-pt:hover circle { stroke: var(--ink); stroke-width: 2; }
.prog-hl { flex-basis: 100%; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding-top: 8px; border-top: 1px solid var(--grid); }
.prog-hl label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.prog-hl label i { width: 14px; height: 4px; border-radius: 2px; margin: 0; background: var(--hc); }
.prog-hl input { accent-color: var(--hc); margin: 0; }
.prog-hl select { border: 1px solid var(--border); background: var(--surface); border-radius: 7px; padding: 3px 6px; font-size: 12px; }
.prog-hl select:disabled { opacity: .45; }
.pev.dim { opacity: .3; }
.pev.hit { box-shadow: inset 3px 0 0 var(--hc); }
[hidden] { display: none !important; }

/* News: words of the keyword search */
#news-list mark { background: color-mix(in srgb, #f5c400 45%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
