:root {
  color-scheme: light;
  --page: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f2f6fa;
  --ink: #0f2742;
  --ink-2: #44566c;
  --muted: #6b7489;
  --line: #dbe3ec;
  --o19: #0089bf;          /* 19 Oct offer */
  --o19-wash: #e3f3fa;
  --o2: #eb6834;           /* 2 Oct offer */
  --o2-wash: #fdeee7;
  --navy: #002b54;
  --cyan: #00a7cf;
  --hero: linear-gradient(100deg, #00345e 0%, #01426e 35%, #035787 65%, #0a7aaf 100%);
  --sans: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #071a2e; --surface: #0d2440; --surface-2: #12304f; --ink: #eaf2fa; --ink-2: #b4c4d6; --muted: #8296ab; --line: #1d3a5a;
    --o19: #1a9bd0; --o19-wash: #0f3550; --o2: #de6232; --o2-wash: #3a2a2a;
    --hero: linear-gradient(100deg, #00264a 0%, #013559 40%, #034770 70%, #075f8c 100%);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #071a2e; --surface: #0d2440; --surface-2: #12304f; --ink: #eaf2fa; --ink-2: #b4c4d6; --muted: #8296ab; --line: #1d3a5a;
  --o19: #1a9bd0; --o19-wash: #0f3550; --o2: #de6232; --o2-wash: #3a2a2a;
  --hero: linear-gradient(100deg, #00264a 0%, #013559 40%, #034770 70%, #075f8c 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
p, h1, h2 { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* top bar */
.topbar { background: var(--hero); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 6px; font-size: 16px; white-space: nowrap; }
.brand b { font-weight: 800; margin-left: 4px; }
.brand-sub { color: rgba(255,255,255,0.7); font-size: 13px; margin-left: 8px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); white-space: nowrap; }
.iconbtn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45); background: transparent; color: #fff; font-weight: 800; font-style: italic; font-family: Georgia, serif; cursor: pointer; line-height: 1; }
.iconbtn.dark { border-color: var(--line); color: var(--ink); font-style: normal; font-family: var(--sans); font-size: 18px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.o19 { background: #3fc3ee; } .dot.o2 { background: var(--o2); }
@media (max-width: 640px) { .brand-sub { display: none; } .topbar { padding: 10px 12px; } }

.page { max-width: 1180px; margin: 0 auto; padding: 16px 20px 24px; }
@media (max-width: 640px) { .page { padding: 12px 10px 20px; } }

/* offer cards */
.offers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.vs { align-self: center; font-weight: 800; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; gap: 8px; } .vs { justify-self: center; font-size: 13px; } }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; color: #fff; }
.offer.o2 .offer-head { background: var(--o2); }
.offer.o19 .offer-head { background: var(--o19); }
.offer-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tag { font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.offer-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 16px 14px; }
.who { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.big { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 2px; white-space: nowrap; }
.big small { font-size: 0.6em; color: var(--muted); font-weight: 700; }
.offer.o2 .big { color: var(--o2); }
.offer.o19 .big { color: var(--o19); }
.fine { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* controls */
.controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.seg { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); padding: 3px; border-radius: 9px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-checked='true'] { background: var(--navy); color: #fff; }
.ot { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 14px; min-width: 300px; }
.ot label { font-weight: 800; font-size: 13px; }
.ot input { flex: 1; accent-color: var(--cyan); }
.ot output { font-weight: 800; min-width: 54px; text-align: right; }
@media (max-width: 640px) { .controls { flex-direction: column; align-items: stretch; } .ot { min-width: 0; } .seg button { flex: 1; } }

/* classification table */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thead, .row { display: grid; grid-template-columns: 150px 100px minmax(0, 1fr) minmax(0, 1fr) 140px; gap: 16px; align-items: center; padding: 0 16px; }
.thead { position: sticky; top: 0; z-index: 2; background: var(--surface-2); border-bottom: 1px solid var(--line); padding-top: 9px; padding-bottom: 9px; font-size: 12px; font-weight: 800; color: var(--ink); }
.thead span { display: block; font-weight: 400; color: var(--muted); }
.group-h { padding: 8px 16px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.row { padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line); }
.group-h + .row { border-top: 0; }
.row:hover { background: var(--surface-2); }
.name b { display: block; font-size: 14.5px; font-weight: 800; }
.name span { font-size: 12px; color: var(--muted); }
.now { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 8px; }
.bar .track { height: 12px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 3px; }
.bar.o2 .fill { background: var(--o2); }
.bar.o19 .fill { background: var(--o19); }
.bar .v { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bar.o2 .v { color: var(--o2); }
.bar.o19 .v { color: var(--o19); }
.bar.win .v::after { content: ' ✓'; font-size: 11px; }
.bar .lbl { display: none; }
.ahead { font-size: 14px; font-weight: 800; }
.ahead.o2 { color: var(--o2); } .ahead.o19 { color: var(--o19); }
.ahead small { display: none; font-size: 11.5px; font-weight: 400; color: var(--muted); }
@media (max-width: 860px) {
  .thead { display: none; }
  .row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 12px; }
  .name { grid-column: 1; }
  .now { grid-column: 2; text-align: right; }
  .now::after { content: ' now'; font-size: 12px; font-weight: 400; color: var(--muted); }
  .bars { grid-column: 1 / -1; }
  .bars::before { content: attr(data-title); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .bar { grid-template-columns: 52px minmax(0, 1fr) 84px; }
  .bar .lbl { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
  .ahead { grid-column: 1 / -1; font-size: 13px; }
  .ahead small { display: inline; margin-right: 6px; }
  .group-h { padding: 10px 12px 2px; }
}

.foot { font-size: 11.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.link { background: none; border: 0; padding: 0; color: var(--cyan); font-size: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* info dialog */
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); max-width: 760px; width: calc(100% - 24px); max-height: 86vh; padding: 0; }
dialog::backdrop { background: rgba(0, 20, 40, 0.55); }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.d-head h2 { font-size: 16px; font-weight: 800; }
.prose { padding: 4px 18px 18px; font-size: 13.5px; color: var(--ink-2); }
.prose h3 { font-size: 14px; color: var(--ink); margin: 16px 0 6px; }
.prose p, .prose ul { margin: 10px 0; }
.prose ul { padding-left: 18px; }
.prose a { color: var(--cyan); }
.prose b { color: var(--ink); }
.prose table { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.prose td, .prose th { border-top: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }

.key { display: inline-flex; gap: 10px; margin-top: 3px; font-weight: 700; color: var(--ink-2); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.key .k2 { background: var(--o2); } .key .k19 { background: var(--o19); }
@media (max-width: 480px) {
  .big { font-size: clamp(19px, 5.8vw, 28px); }
  .offer-body { gap: 8px; padding: 10px 12px 12px; }
  .offer-head { padding: 8px 12px; }
  .offer-head h2 { font-size: 18px; white-space: nowrap; }
  .tag { font-size: 11px; padding: 2px 8px; }
}

/* intern line chart */
.chart-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 12px; }
.ct-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.ct-head h2 { font-size: 17px; font-weight: 800; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.legend .k2 { background: var(--o2); } .legend .k19 { background: var(--o19); }
.legend .kn { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.chart { position: relative; width: 100%; margin-top: 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--muted); font-size: 11.5px; }
.chart .lvl { fill: var(--ink-2); font-weight: 800; font-size: 12px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .sep { stroke: var(--line); stroke-dasharray: 3 3; }
.chart .end { font-weight: 800; font-size: 13px; }
.totals { display: grid; grid-template-columns: 1fr auto auto auto; gap: 22px; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.totals span { font-size: 12px; font-weight: 700; color: var(--muted); }
.totals .t { display: flex; align-items: baseline; gap: 8px; }
.totals b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.totals .o2 b { color: var(--o2); } .totals .o19 b { color: var(--o19); }
@media (max-width: 560px) { .totals { grid-template-columns: 1fr 1fr 1fr; gap: 6px 10px; } .totals > div:first-child { grid-column: 1 / -1; } .totals .t { flex-direction: column; gap: 0; } .totals b { font-size: 18px; } }
.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--navy); color: #fff; border-radius: 6px; padding: 7px 9px; font-size: 12px; line-height: 1.45; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.tip .r { display: flex; justify-content: space-between; gap: 14px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.table-head h2 { font-size: 17px; font-weight: 800; }
@media (max-width: 640px) { .table-head .seg { width: 100%; } .table-head .seg button { flex: 1; } .controls { justify-content: stretch; } .ot { width: 100%; } }

.ct-head h2 .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }

.ct-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg.small button { padding: 4px 10px; font-size: 12.5px; }
@media (max-width: 640px) { .ct-right { width: 100%; justify-content: space-between; } }

.bars .note { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* conditions infographic */
.conds { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 12px; margin-top: 14px; }
.cs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.cs-head h2 { font-size: 17px; font-weight: 800; }
.cs-legend { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cs-legend .st { transform: scale(0.9); transform-origin: left center; }
.cgrid { margin-top: 10px; }
.cr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 130px 130px; gap: 12px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); }
.cr.chead { border-top: 0; padding-top: 2px; padding-bottom: 6px; }
.ch { justify-self: center; font-size: 12.5px; font-weight: 800; color: #fff; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.ch.o2 { background: var(--o2); } .ch.o19 { background: var(--o19); }
.cg { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 4px 4px; }
.cg + .cr { border-top: 0; }
.ic { width: 24px; height: 24px; fill: none; stroke: var(--ink-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ct { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.st { justify-self: center; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.st svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.st b { font-weight: 800; }
.st.yes.o2, .st.val.o2 { background: var(--o2-wash); color: var(--o2); }
.st.yes.o19, .st.val.o19 { background: var(--o19-wash); color: var(--o19); }
.st.later { background: var(--surface-2); color: var(--ink-2); }
.st.later svg { stroke-width: 2; }
.st.no { color: var(--muted); padding: 4px 14px; }
.cs-legend .lg { margin-left: -6px; }
.cs-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
@media (max-width: 640px) {
  .cr { grid-template-columns: 22px minmax(0, 1fr) 62px 62px; gap: 8px; padding: 8px 0; }
  .ic { width: 20px; height: 20px; }
  .ct { font-size: 13.5px; }
  .ch { font-size: 11px; padding: 2px 8px; }
  .cgrid .st b { display: none; }
  .cgrid .st.no b, .cgrid .st.val b { display: inline; }
  .cgrid .st { padding: 5px 8px; }
  .cgrid .st.val { font-size: 11.5px; padding: 4px 6px; }
}

@media (max-width: 640px) { .ch .wd { display: none; } }

.tl { display: flex; flex-direction: column; gap: 2px; }
.tl span { color: var(--ink) !important; font-size: 13px !important; }
.tl small { font-size: 11.5px; color: var(--muted); }
.tl .link { align-self: flex-start; font-size: 12px; }
.totals .td b { font-size: 18px; color: var(--ink); }
.totals .td b.o19c { color: var(--o19); } .totals .td b.o2c { color: var(--o2); }
.chart svg { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.selband { fill: var(--cyan); opacity: 0.16; }
.o2c { color: var(--o2); } .o19c { color: var(--o19); }
/* paid-at-once panel */
.once { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.once-title { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.once-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 12px; align-items: center; margin: 5px 0; }
.once-row .nm { font-size: 13px; font-weight: 800; }
.once-row > b { font-size: 18px; font-weight: 800; text-align: right; }
.stack { display: flex; height: 26px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.stack i { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.stack i span { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; padding: 0 8px; white-space: nowrap; }
.stack .sl { background: var(--o19); }
.stack .sb { background: repeating-linear-gradient(135deg, var(--o19) 0 6px, color-mix(in srgb, var(--o19) 70%, #fff) 6px 12px); }
.stack .none { font-size: 12px; color: var(--muted); align-self: center; padding: 0 10px; }
.once-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .once-row { grid-template-columns: 70px minmax(0, 1fr) 60px; gap: 8px; } .once-row .nm { font-size: 12px; } .stack i span { font-size: 11px; padding: 0 5px; } }

.wkc { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 5px 6px 5px 14px; }
.wkc > span { font-weight: 800; font-size: 13px; }
.wkc .seg { border: 0; padding: 0; background: transparent; }
@media (max-width: 640px) { .wkc { width: 100%; justify-content: space-between; } .wkc .seg { flex: 1; } .wkc .seg button { flex: 1; padding: 5px 4px; } }

/* range selection: stage chips + on-chart card */
.selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sl-lbl { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.sl-hint { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.chips button:hover { border-color: var(--cyan); }
.chips button[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.selcard { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 30, 60, 0.16); padding: 9px 12px 8px; min-width: 196px; pointer-events: auto; }
.selcard .x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; }
.sc-t { font-size: 12.5px; font-weight: 800; margin-right: 18px; }
.sc-t span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.sc-r { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; margin-top: 3px; }
.sc-r b { font-size: 16px; font-weight: 800; }
.sc-d { font-size: 12.5px; font-weight: 800; margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .sl-hint { display: none; } .selcard { min-width: 170px; padding: 7px 10px; } .sc-r b { font-size: 14px; } }

/* backpay by level */
.bp { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.bp-head h2 { font-size: 17px; font-weight: 800; }
.bp-head .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.bp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (max-width: 860px) { .bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.bpt { background: var(--o19-wash); border-radius: 8px; padding: 9px 11px; }
.bpn { font-size: 13px; font-weight: 800; color: var(--ink); }
.bps { font-size: 11px; color: var(--muted); }
.bpv { font-size: 22px; font-weight: 800; color: var(--o19); letter-spacing: -0.02em; margin-top: 2px; }
.bpt.spec .bpv { font-size: 17px; }
.bpl { font-size: 11.5px; color: var(--ink-2); }

.legend .kr { width: 14px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--o2) 35%, transparent) 50%, color-mix(in srgb, var(--o19) 35%, transparent) 50%); vertical-align: 0; }
/* backpay table */
.bp-wrap { overflow-x: auto; margin-top: 10px; }
.bpt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bpt-table th { text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.bpt-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.bpt-table tr:last-child td { border-bottom: 0; }
.bpt-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.bpt-table .strong { font-weight: 800; color: var(--o19); }
@media (max-width: 480px) { .bpt-table { font-size: 13px; } .bpt-table td, .bpt-table th { padding: 6px 6px; } }

.lvl-pick { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 5px 6px 5px 14px; }
.lvl-pick span { font-weight: 800; font-size: 13px; white-space: nowrap; }
.lvl-pick select { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 7px; padding: 6px 8px; font-size: 14px; font-weight: 700; min-height: 34px; }
@media (max-width: 640px) { .lvl-pick { width: 100%; } .lvl-pick select { flex: 1; } }

.chart-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cgrid .st.val { font-size: 12px; }

/* your level + personal summary */
.you { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 14px 0 12px; }
.you-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.you-pick { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; }
.you-pick span { font-size: 17px; font-weight: 800; white-space: nowrap; }
.you-pick select { flex: 1; min-height: 46px; font-size: 17px; font-weight: 800; color: var(--ink); background: var(--surface-2); border: 2px solid var(--cyan); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.you .ot { border: 0; background: var(--surface-2); min-width: 280px; }
.you-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .you-sum { grid-template-columns: 1fr; } }
.ys-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ys-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ys { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.ys.o2 { background: var(--o2-wash); } .ys.o19 { background: var(--o19-wash); }
.ys span { font-size: 12.5px; font-weight: 800; }
.ys.o2 span, .ys.o2 b { color: var(--o2); } .ys.o19 span, .ys.o19 b { color: var(--o19); }
.ys b { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ys small { font-size: 11.5px; color: var(--ink-2); }
.ys-verdict { font-size: 14.5px; font-weight: 800; margin-top: 8px; }
@media (max-width: 640px) { .you-pick { flex-basis: 100%; } .you .ot { min-width: 0; width: 100%; } .you-pick span { font-size: 15px; } }
/* ribbon: stronger orange in dark mode */
.rb { opacity: 0.38; } .rb-o2 { fill: var(--o2); } .rb-o19 { fill: var(--o19); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .rb-o2 { opacity: 0.6; } }
:root[data-theme='dark'] .rb-o2 { opacity: 0.6; }
@media (max-width: 640px) { .chips button { min-height: 40px; padding: 6px 14px; } }
.ct-right .seg.small button { padding: 4px 10px; font-size: 12.5px; }

/* insight tiles */
.insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ins { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px 11px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ins-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ins-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex: none; }
.ins-ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ins-t { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ins-r { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ins-n { font-size: 11.5px; font-weight: 800; }
.ins-v { font-size: clamp(17px, 2.1vw, 22px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.ins-r.o2 .ins-n, .ins-r.o2 .ins-v { color: var(--o2); }
.ins-r.o19 .ins-n, .ins-r.o19 .ins-v { color: var(--o19); }
.ins-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 2px; }
.ins-bar i { display: block; height: 100%; border-radius: 3px; }
.ins-bar.o2 i { background: var(--o2); } .ins-bar.o19 i { background: var(--o19); }
.ins-f { font-size: 11.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.ins-f.o2c, .ins-f.o19c { font-weight: 800; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ins-ic { background: var(--cyan); } }
:root[data-theme='dark'] .ins-ic { background: var(--cyan); }
@media (max-width: 520px) {
  .ins { padding: 10px 11px 9px; }
  .ins-r { flex-direction: column; align-items: flex-start; gap: 0; }
  .ins-n { font-size: 10.5px; }
  .ins-v { font-size: 19px; }
  .ins-t { font-size: 10.5px; }
}
