/* Approved CC V2 card design; production scoping by Codex. */
.home-overview {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --shell: 1240px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --nav-h: 48px;
  --r: 4px;
}
.home-overview {
  color-scheme: dark;
  --bg: #050806; --surface: #09110c; --surface-2: #0c1610; --surface-3: #112019; --sunken: #040705;
  --line: #193a29; --line-2: #2a5a40; --line-soft: #10251a;
  --text: #ddeae1; --text-2: #a2b8aa; --text-3: #6f8a79;
  --accent: #39ff88; --accent-2: #22c76a; --accent-strong: #8dffbf; --accent-ink: #032412;
  --accent-soft: rgba(57, 255, 136, .07); --accent-line: rgba(57, 255, 136, .32);
  --warn: #f2c14e; --warn-soft: rgba(242, 193, 78, .12);
  --glass: rgba(5, 8, 6, .9); --focus: #39ff88;
  --eff-low: oklch(0.42 0.09 238); --eff-medium: oklch(0.52 0.11 236); --eff-high: oklch(0.62 0.12 233);
  --eff-xhigh: oklch(0.72 0.12 228); --eff-max: oklch(0.81 0.11 222); --eff-ultra: oklch(0.90 0.08 214);
}
html[data-theme="light"] .home-overview {
  color-scheme: light;
  --bg: #f3f6f2; --surface: #fbfdfa; --surface-2: #eef3ee; --surface-3: #e3ebe4; --sunken: #e8efe9;
  --line: #cfdfd3; --line-2: #a7c2af; --line-soft: #e0eae2;
  --text: #0e1c14; --text-2: #3b5345; --text-3: #5b7264;
  --accent: #087a40; --accent-2: #0b8f4c; --accent-strong: #055a2f; --accent-ink: #ffffff;
  --accent-soft: rgba(8, 122, 64, .07); --accent-line: rgba(8, 122, 64, .3);
  --warn: #9a5b00; --warn-soft: rgba(214, 140, 0, .11);
  --glass: rgba(243, 246, 242, .92); --focus: #087a40;
  --eff-low: oklch(0.88 0.05 235); --eff-medium: oklch(0.78 0.08 237); --eff-high: oklch(0.67 0.11 240);
  --eff-xhigh: oklch(0.57 0.13 245); --eff-max: oklch(0.47 0.14 250); --eff-ultra: oklch(0.37 0.13 255);
}
.home-overview {min-width:0;font:400 14px/1.5 var(--font-sans);color:var(--text);padding-bottom:24px}
.home-overview *, .home-overview *::before, .home-overview *::after {box-sizing:border-box}
.home-overview h2, .home-overview p {margin:0}
.home-overview button {font:inherit;color:inherit}
.home-overview :focus-visible {outline:2px solid var(--focus);outline-offset:2px}
.home-overview .muted {color:var(--text-3)}
.home-overview .ov-grid{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.home-overview .c-iq,
.home-overview .c-effort{ grid-column: span 7; }
.home-overview .c-speed,
.home-overview .c-news{ grid-column: span 5; }
.home-overview .card{ display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.home-overview .card-h{ display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.home-overview .card-t{ min-width: 0; }
.home-overview .card h2{ display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; }
.home-overview .card h2 .ix{ font: 500 11px/1 var(--font-mono); color: var(--accent); }
.home-overview .win{ margin-top: 4px; font: 11.5px/1.5 var(--font-mono); color: var(--text-2); }
.home-overview .win time{ color: var(--text); white-space: nowrap; }
.home-overview .snap{ display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--text-2); font-size: 10.5px; line-height: 17px; }
.home-overview .snap::before{ content: ""; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.home-overview .hl{ flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.home-overview .hl-k{ font-size: 11px; color: var(--text-3); }
.home-overview .hl-n{ display: inline-flex; align-items: baseline; gap: 4px; }
.home-overview .hl b{ font: 700 28px/1.05 var(--font-mono); color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.home-overview .hl-u{ font: 500 12px/1 var(--font-mono); color: var(--text-3); }
.home-overview .hl-m{ font: 600 12px/1.4 var(--font-mono); color: var(--text-2); }
.home-overview .card-tools{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 6px; }
.home-overview .tool-note{ font: 11.5px var(--font-mono); color: var(--text-3); }
.home-overview .seg{ display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.home-overview .seg button{ min-height: 28px; padding: 0 11px; border: 0; background: transparent; color: var(--text-2); font-size: 12.5px; cursor: pointer; }
.home-overview .seg button + button{ border-left: 1px solid var(--line); }
.home-overview .seg button:hover{ color: var(--text); }
.home-overview .seg button[aria-pressed="true"]{ background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.home-overview .seg button:focus-visible{ outline-offset: -3px; }
.home-overview .legend{ display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font: 11px/1.4 var(--font-mono); color: var(--text-2); }
.home-overview .legend li{ display: inline-flex; align-items: center; gap: 5px; }
.home-overview .sw{ display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.home-overview .eff-low{ fill: var(--eff-low); background: var(--eff-low); }
.home-overview .eff-medium{ fill: var(--eff-medium); background: var(--eff-medium); }
.home-overview .eff-high{ fill: var(--eff-high); background: var(--eff-high); }
.home-overview .eff-xhigh{ fill: var(--eff-xhigh); background: var(--eff-xhigh); }
.home-overview .eff-max{ fill: var(--eff-max); background: var(--eff-max); }
.home-overview .eff-ultra{ fill: var(--eff-ultra); background: var(--eff-ultra); }
.home-overview .card-b{ flex: 1 1 auto; min-width: 0; }
.home-overview .rows{ margin: 0; padding: 0; list-style: none; }
.home-overview .rows > li{ display: grid; align-items: center; gap: 4px 10px; min-height: 31px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.home-overview .rows > li:last-child{ border-bottom: 0; }
.home-overview .rows .m{ min-width: 0; font: 600 13px/1.3 var(--font-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-overview .rows .v{ font: 700 16px/1 var(--font-mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-overview .rows .v small{ margin-left: 3px; font-size: 10.5px; font-weight: 500; color: var(--text-3); }
.home-overview .rows small{ font-family: var(--font-mono); color: var(--text-3); }
.home-overview svg.bar{ display: block; width: 100%; height: 8px; }
.home-overview svg.bar .trk{ fill: var(--line-soft); }
.home-overview svg.bar .fil{ fill: var(--accent-2); }
.home-overview .card-f{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.home-overview .note{ font-size: 11.5px; color: var(--text-3); }
.home-overview .card-link{ color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-overview .card-link:hover{ text-decoration: underline; text-underline-offset: 3px; }
.home-overview .iq-row{ grid-template-columns: 18px minmax(96px, 130px) 46px minmax(60px, 1fr) 62px 128px; }
.home-overview .iq-row .rk{ font: 11px var(--font-mono); color: var(--text-3); }
.home-overview .iq-row .e{ font: 12px var(--font-mono); color: var(--text-2); }
.home-overview .iq-row .ct{ font: 11px var(--font-mono); color: var(--text-3); text-align: right; white-space: nowrap; }
.home-overview .iq-row.is-top .v{ color: var(--accent); }
.home-overview .iq-row.is-top svg.bar .fil{ fill: var(--accent); }
.home-overview .iq-rows.all .iq-row,
.home-overview .iq-axis{ grid-template-columns: minmax(96px, 130px) 104px minmax(0, 1fr); }
.home-overview .iq-rows.all .rng{ font: 12px var(--font-mono); color: var(--text-2); white-space: nowrap; }
.home-overview .iq-rows.all .strip svg{ display: block; width: 100%; height: 20px; overflow: visible; }
.home-overview .iq-rows.all .base{ stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.home-overview .iq-rows.all .tick.is-best{ stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.home-overview .rows > li.iq-axis{ min-height: 18px; padding: 0; border-bottom: 1px solid var(--line); }
.home-overview .iq-axis .ticks{ position: relative; height: 16px; }
.home-overview .iq-axis .ticks i{ position: absolute; top: 1px; transform: translateX(-50%); font: normal 10px/1 var(--font-mono); color: var(--text-3); }
.home-overview .iq-axis .ticks i:last-child{ transform: translateX(-100%); }
.home-overview .sp-row{ grid-template-columns: minmax(92px, 1fr) 84px minmax(48px, 1fr) 84px 52px; }
.home-overview .sp-row .t svg{ display: block; width: 100%; height: 20px; }
.home-overview .spark path{ fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.home-overview .sp-row .n{ font: 12px var(--font-mono); color: var(--text); text-align: right; white-space: nowrap; }
.home-overview .sp-row .n small{ display: block; font-size: 10px; }
.home-overview .ef-row{ grid-template-columns: minmax(92px, 128px) 104px minmax(80px, 1fr) 148px; }
.home-overview .ef-row .n{ font: 12px var(--font-mono); color: var(--text); text-align: right; white-space: nowrap; }
.home-overview .ef-row .s{ display: block; min-width: 0; }
.home-overview svg.stack{ display: block; width: 100%; height: 12px; }
.home-overview svg.stack rect{ stroke: var(--surface); stroke-width: 1; vector-effect: non-scaling-stroke; }
.home-overview .unrec{ display: flex; align-items: center; height: 14px; padding: 0 6px; border: 1px dashed var(--line-2); border-radius: 2px; font-size: 10.5px; color: var(--text-3); }
.home-overview .ef-row .d{ font: 12px var(--font-mono); color: var(--text-2); white-space: nowrap; }
.home-overview .ef-row .d b{ color: var(--text); }
.home-overview .rec-row{ grid-template-columns: 112px minmax(0, 1fr); }
.home-overview .rec-row .sc{ font-size: 13px; color: var(--text-2); }
.home-overview .rec-row .rv{ font: 600 13px/1.4 var(--font-mono); color: var(--text); }
.home-overview .detail{ margin-top: 8px; }
.home-overview .detail summary{ cursor: pointer; font-size: 12px; color: var(--text-3); }
.home-overview .detail summary:hover{ color: var(--text-2); }
.home-overview .tbl-wrap{ margin-top: 6px; overflow-x: auto; }
.home-overview .detail table{ width: 100%; border-collapse: collapse; font: 11.5px/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.home-overview .detail th,
.home-overview .detail td{ padding: 5px 6px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.home-overview .detail thead th{ color: var(--text-3); font-weight: 500; }
.home-overview .detail tbody th{ text-align: left; color: var(--text); font-weight: 600; }
.home-overview .detail td small{ display: block; font-size: 10px; color: var(--text-3); }
.home-overview .detail .note{ margin-top: 6px; }
.home-overview .nw-latest{margin-left:auto;color:var(--text-3);font:400 10px/1.5 var(--font-mono);}
.home-overview .nw-section{margin:0 0 4px;font:500 10px/1.5 var(--font-mono);letter-spacing:.08em;color:var(--text-3);}
.home-overview .nw-row{grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:start !important;padding:9px 0 !important;}
.home-overview .nw-row > time{padding-top:2px;font:400 11px/1.5 var(--font-mono);color:var(--text-3);font-variant-numeric:tabular-nums;}
.home-overview .nw-b{min-width:0;}
.home-overview .nw-b a{display:block;min-height:24px;font-size:13.5px;font-weight:600;line-height:1.5;color:var(--text);text-decoration:none;overflow-wrap:anywhere;}
.home-overview .nw-b a:hover{color:var(--accent);}
.home-overview .nw-b a:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px;}
.home-overview .nw-b small{display:block;margin-top:3px;font-size:11px;line-height:1.5;color:var(--text-3);}
.home-overview .nw-b small time{font:inherit;font-variant-numeric:tabular-nums;}
.home-overview .nw-featured{border-top:1px solid var(--line);margin-top:12px;padding-top:12px;}
.home-overview .nw-featured .nw-section{color:var(--text-2);}
.home-overview .nw-featured .nw-row{padding:6px 0 !important;border:0;}
.home-overview .nw-featured .nw-b a{font-size:12px;font-weight:500;}
.home-overview .nw-pick{color:var(--text-2);}
.home-overview .nw-empty{margin:12px 0;color:var(--text-3);font-size:13px;}
.home-overview .hl b.hl-time{ font-size: 24px; }
@media (max-width: 1100px){.home-overview .c-iq,
.home-overview .c-effort,
.home-overview .c-speed,
.home-overview .c-news{ grid-column: span 12; }}
@media (max-width: 640px){.home-overview .card{ padding: 12px 12px 10px; }
.home-overview .card-h{ flex-wrap: wrap; }
.home-overview .hl b{ font-size: 24px; }
.home-overview .seg button{ min-height: 36px; }
.home-overview .iq-row{ grid-template-columns: 14px minmax(0, 1fr) auto 84px; grid-template-areas: "rk m e v" "rk ct ct b"; row-gap: 2px; }
.home-overview .iq-row .rk{ grid-area: rk; }
.home-overview .iq-row .m{ grid-area: m; }
.home-overview .iq-row .e{ grid-area: e; }
.home-overview .iq-row .v{ grid-area: v; }
.home-overview .iq-row .ct{ grid-area: ct; text-align: left; }
.home-overview .iq-row .b{ grid-area: b; }
.home-overview .iq-rows.all .iq-row,
.home-overview .iq-axis{ grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m r" "s s"; }
.home-overview .iq-rows.all .m{ grid-area: m; }
.home-overview .iq-rows.all .rng{ grid-area: r; }
.home-overview .iq-rows.all .strip{ grid-area: s; }
.home-overview .iq-axis > span:not(.ticks){ display: none; }
.home-overview .iq-axis .ticks{ grid-column: 1 / -1; }
.home-overview .sp-row{ grid-template-columns: minmax(0, 1fr) 84px 56px; grid-template-areas: "m v n" "b t t"; row-gap: 2px; }
.home-overview .sp-row .m{ grid-area: m; }
.home-overview .sp-row .v{ grid-area: v; }
.home-overview .sp-row .n{ grid-area: n; }
.home-overview .sp-row .b{ grid-area: b; }
.home-overview .sp-row .t{ grid-area: t; }
.home-overview .sp-row .n small{ display: inline; margin-left: 2px; }
.home-overview .ef-row{ grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m d" "s n"; row-gap: 3px; }
.home-overview .ef-row .m{ grid-area: m; }
.home-overview .ef-row .d{ grid-area: d; text-align: right; }
.home-overview .ef-row .s{ grid-area: s; }
.home-overview .ef-row .n{ grid-area: n; }
.home-overview .rec-row{ grid-template-columns: 96px minmax(0, 1fr); }
.home-overview .nw-row{ grid-template-columns: 64px minmax(0, 1fr); }}
@media (max-width: 360px){}
@media (prefers-reduced-motion: reduce){.home-overview *,
.home-overview *::before,
.home-overview *::after{ transition: none !important; animation: none !important; scroll-behavior: auto !important; }}
@media (forced-colors: active){.home-overview svg.bar .fil,
.home-overview svg.stack rect,
.home-overview .sw{ forced-color-adjust: none; }}
.home-overview .card-h {background:none;border:0;padding:0;margin:0;position:static}
.home-overview .card-f {background:none;position:static}
.home-overview .card .win {margin-top:4px}

.home-overview .nw-priority { color: var(--accent); font-weight: 700; }

/* Codex fallback design: one compact entry, no live counters or motion. */
.home-overview .ov-speed-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; padding:12px 14px; background:var(--accent-soft); border:1px solid var(--accent-line); border-radius:var(--r); }
.home-overview .ov-speed-entry-copy { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 12px; min-width:0; }
.home-overview .ov-speed-entry-copy span { color:var(--accent-strong); font-size:11px; font-weight:700; letter-spacing:.06em; }
.home-overview .ov-speed-entry-copy strong { color:var(--text); font-size:14px; font-weight:600; }
.home-overview .ov-speed-entry-action { display:inline-flex; align-items:center; justify-content:center; gap:10px; flex:none; min-height:40px; padding:8px 14px; background:var(--accent); color:var(--accent-ink); border:1px solid var(--accent); border-radius:var(--r); font-size:13px; font-weight:700; text-decoration:none; }
.home-overview .ov-speed-entry-action:hover { filter:brightness(.96); text-decoration:none; }
.home-overview .ov-speed-context { color:var(--accent-strong); font-size:12px; font-weight:600; text-underline-offset:3px; }
@media(max-width:540px) {
 .home-overview .ov-speed-entry { align-items:stretch; flex-direction:column; gap:9px; }
 .home-overview .ov-speed-entry-copy { gap:4px 10px; }
 .home-overview .ov-speed-entry-action { min-height:44px; }
}

/* Current 24h Codex mode samples; independent of the 5m all-site rows above. */
.home-overview .ov-mode-comparison{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.home-overview .ov-mode-comparison h3{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0;font-size:13px;color:var(--text)}
.home-overview .ov-mode-comparison h3 small{font-size:10px;font-weight:500;color:var(--text-3)}
.home-overview .ov-mode-window{margin:4px 0 8px;font:10px/1.6 var(--font-mono);color:var(--text-3);overflow-wrap:anywhere}
.home-overview .ov-mode-comparison ul{list-style:none;margin:0;padding:0}
.home-overview .ov-mode-comparison li,.home-overview .ov-mode-head{display:grid;grid-template-columns:minmax(90px,1.15fr) minmax(60px,1fr) minmax(60px,1fr) 55px;gap:6px;align-items:center}
.home-overview .ov-mode-head{font-size:10px;color:var(--text-3);text-align:right;padding-bottom:5px}
.home-overview .ov-mode-head>span:first-child{text-align:left}
.home-overview .ov-mode-comparison li{padding:8px 0;border-top:1px solid var(--line-soft);font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.home-overview .ov-mode-comparison li>strong{font-size:11px;font-weight:600;line-height:1.5}
.home-overview .ov-mode-comparison li>span{text-align:right;min-width:0}
.home-overview .ov-mode-rate{display:block;font-size:13px;font-weight:650;white-space:nowrap;color:var(--text)}
.home-overview .ov-mode-rate small{font-size:8px;font-weight:400;color:var(--text-3)}
.home-overview .ov-mode-requests{display:block;font-size:9px;color:var(--text-3);line-height:1.6}
.home-overview .ov-mode-change{font-size:12px;text-align:right;white-space:nowrap;color:var(--text-2)}
.home-overview .ov-mode-change[data-direction=positive]{color:var(--accent)}
.home-overview .ov-mode-change[data-direction=negative]{color:var(--warn)}
.home-overview .ov-mode-comparison summary{min-height:32px;display:list-item;align-content:center;cursor:pointer;font-size:10px;color:var(--text-3)}
.home-overview .ov-mode-comparison details p{font-size:11px;line-height:1.7;color:var(--text-2);margin:4px 0}
@media(max-width:400px){.home-overview .ov-mode-comparison li,.home-overview .ov-mode-head{grid-template-columns:minmax(0,1fr) 65px 65px 49px;gap:4px}.home-overview .ov-mode-comparison li>strong{font-size:10px}.home-overview .ov-mode-rate{font-size:12px}.home-overview .ov-mode-rate small{font-size:7px}.home-overview .ov-mode-change{font-size:11px}}

/* ── Ticket 303 · IQ card: history trend (home-overview-iq-trend.mjs) + weekly-quota summary ──
   Line colours mirror the validated 299 trend palette (intelligence-trends.css); slots ≥ 4 are also
   dashed. Colour follows the model (data order), never its rank. The plot fills the card's spare
   height on desktop (absolute SVG, so it never props the row up) and keeps a floor on phones. */
.home-overview {
  --ovt-s0: #39ff88; --ovt-s1: #6aa8ff; --ovt-s2: #ff6ec7; --ovt-s3: #ffb02e;
  --ovt-s4: #b39bff; --ovt-s5: #ff6b5b; --ovt-s6: #3fd0e0; --ovt-s7: #eef2ef;
  --ovt-hit: 28px;
}
html[data-theme="light"] .home-overview {
  --ovt-s0: #087a40; --ovt-s1: #1f62c9; --ovt-s2: #c2338f; --ovt-s3: #cf7f00;
  --ovt-s4: #7a5be0; --ovt-s5: #d03a2a; --ovt-s6: #00838f; --ovt-s7: #3d434a;
}
@media (pointer: coarse) { .home-overview { --ovt-hit: 40px; } }
.home-overview .ovt-c0 { --c: var(--ovt-s0); } .home-overview .ovt-c1 { --c: var(--ovt-s1); }
.home-overview .ovt-c2 { --c: var(--ovt-s2); } .home-overview .ovt-c3 { --c: var(--ovt-s3); }
.home-overview .ovt-c4 { --c: var(--ovt-s4); } .home-overview .ovt-c5 { --c: var(--ovt-s5); }
.home-overview .ovt-c6 { --c: var(--ovt-s6); } .home-overview .ovt-c7 { --c: var(--ovt-s7); }
.home-overview .c-iq .card-b { flex: 0 0 auto; }
.home-overview .c-iq .ov-iq-trend-slot,
.home-overview .c-iq .ov-iq-trend { flex: 1 1 auto; min-width: 0; }
.home-overview .ov-iq-trend { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.home-overview .ovt-status { margin: 0; font: 11.5px/1.5 var(--font-mono); color: var(--text-3); }
.home-overview .ovt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.home-overview .ovt-head h3 { margin: 0 2px 0 0; font-size: 13px; font-weight: 700; color: var(--text); }
/* Ticket 376: options keep their label on one line. When the strip is wider than the card it
   wraps into full rows (each row stretches its buttons), and 1px gaps over the line colour draw
   the dividers, so no label is squeezed into a three-line column on 360–390px phones. */
.home-overview .ovt-head .seg { flex-wrap: wrap; gap: 1px; max-width: 100%; background: var(--line); }
.home-overview .ovt-head .seg button { flex: 1 0 auto; min-height: var(--ovt-hit); padding: 0 8px; background: var(--surface); font: 500 11.5px/1 var(--font-mono); white-space: nowrap; }
.home-overview .ovt-head .seg button + button { border-left: 0; }
.home-overview .ovt-head .seg button[aria-pressed="true"] { background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.home-overview .ovt-full { display: inline-flex; align-items: center; min-height: var(--ovt-hit); margin-left: auto; }
.home-overview .ovt-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; }
.home-overview .ovt-read { margin: 0; font: 11.5px/1.5 var(--font-mono); color: var(--text-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-overview .ovt-read b { color: var(--accent); font-weight: 600; }
.home-overview .ovt-read time { color: var(--text); }
.home-overview .ovt-plot { position: relative; flex: 1 1 auto; min-height: 112px; max-height: 360px; border-radius: 2px; touch-action: pan-y; cursor: crosshair; }
.home-overview .ovt-plot:focus-visible { outline-offset: 1px; }
.home-overview .ovt-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.home-overview .ovt-svg text { font: 10px var(--font-mono); fill: var(--text-3); font-variant-numeric: tabular-nums; }
.home-overview .ovt-svg .ovt-xt { fill: var(--text-2); }
.home-overview .ovt-svg text.is-cur { fill: var(--text); font-weight: 600; }
.home-overview .ovt-svg .ovt-yu { fill: var(--text-2); }
.home-overview .ovt-grid { stroke: var(--line-soft); stroke-width: 1; shape-rendering: crispEdges; }
.home-overview .ovt-cur { stroke: var(--text-3); stroke-width: 1; shape-rendering: crispEdges; }
.home-overview .ovt-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-overview .ovt-s.is-dash .ovt-line { stroke-dasharray: 6 4; }
.home-overview .ovt-dot { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.home-overview .ovt-dot.is-basis { fill: var(--surface); stroke: var(--c); }
.home-overview .ovt-dot.is-cur { stroke-width: 2; }
.home-overview .ovt-s { transition: opacity .15s; }
.home-overview .ov-iq-trend[data-hot]:not([data-hot=""]) .ovt-s:not(.is-hot) { opacity: .22; }
.home-overview .ovt-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font: 11.5px var(--font-mono); color: var(--text-3); }
.home-overview .ovt-empty[hidden] { display: none; }
.home-overview .ovt-lg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px !important; margin: 0; padding: 0; list-style: none; }
.home-overview .ovt-lb { display: inline-flex; align-items: center; gap: 5px; min-height: var(--ovt-hit); padding: 0 7px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--text-3); font: 11.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; cursor: pointer; }
.home-overview .ovt-lb:hover { border-color: var(--line-2); color: var(--text-2); }
.home-overview .ovt-lb[aria-pressed="true"] { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.home-overview .ovt-lb:disabled { cursor: default; opacity: .55; border-style: dashed; }
.home-overview .ovt-key { width: 16px; height: 6px; flex: none; overflow: visible; }
.home-overview .ovt-key line { stroke: var(--c); stroke-width: 2; stroke-linecap: round; opacity: .45; }
.home-overview .ovt-lb.is-dash .ovt-key line { stroke-dasharray: 4 3; }
.home-overview .ovt-lb[aria-pressed="true"] .ovt-key line { opacity: 1; stroke-width: 2.5; }
.home-overview .ovt-v { font-weight: 700; color: var(--text); }
.home-overview .ovt-v:empty, .home-overview .ovt-d:empty { display: none; }
.home-overview .ovt-d { font-size: 10px; color: var(--text-3); }
.home-overview .ovt-cap { margin: 0; font: 10.5px/1.5 var(--font-mono); color: var(--text-3); }
.home-overview .ovt-lg li { display: flex; }
.benchmark-limit-note { margin: 8px 0; color: var(--text-2); font-size: 12px; line-height: 1.55; }
/* weekly-quota summary (historical accepted sample; not live, not an official limit) */
.home-overview .ov-quota { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; margin-top: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.home-overview .ovq-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.home-overview .ovq-k { font-size: 12px; font-weight: 700; color: var(--text); }
.home-overview .ovq-tier { font: 11px var(--font-mono); color: var(--text-2); }
.home-overview .ovq-v { font: 700 15px/1.2 var(--font-mono); color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-overview .ovq-median { display: block; }
.home-overview .ovq-median > span { display: block; color: var(--text-2); font-size: 11px; white-space: normal; }
.home-overview .ovq-pend { font: 12px var(--font-mono); color: var(--text-3); }
.home-overview .ovq-m { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.5; color: var(--text-3); }
.home-overview .ovq-mix { margin-top: 4px; color: var(--text); font-size: 13px; line-height: 1.6; }
.home-overview .ovq-model-item { white-space: nowrap; }
.home-overview .ovq-m time { color: var(--text-2); font-family: var(--font-mono); }
.home-overview .ovq-link { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; min-height: var(--ovt-hit); }
.home-overview .ovq-plans { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0; }
.home-overview .ovq-count { display: block; font: 11px/1.45 var(--font-mono); color: var(--text-2); white-space: normal; word-break: keep-all; }
@media (max-width: 600px) {
  .home-overview .ovq-count { font-size: 10px; }
}
.home-overview .ovq-at { white-space: nowrap; }
.home-overview .ovq-plan::before { content: ''; display: inline-block; width: 11px; height: 3px; margin: 0 4px 3px 0; background: #158f85; border-radius: 2px; }
.home-overview .ovq-plan[data-series="1"]::before { background: #b37909; }
.home-overview .ovq-plan[data-series="2"]::before { background: #9276ce; }
.home-overview .ovq-chart { display: block; grid-column: 1 / -1; width: 100%; height: 150px; overflow: visible; color: var(--text-3); }
.home-overview .ovq-chart text { fill: currentColor; font: 10px var(--font-mono); }
.home-overview .ovq-src { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.home-overview .ov-quota[data-state="stale"] .ovq-v { color: var(--text-2); }
@media (max-width: 640px) {
  .home-overview .ovt-plot { min-height: 180px; }
  .home-overview .ovt-full { margin-left: 0; }
  /* Ticket 376: wrap into full rows (no sideways scroll), so every effort option and its whole label stays visible on 320–390px. */
  .home-overview .ovt-head .ovt-eff { flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: wrap; overflow: hidden; order: 1; }
  .home-overview .ovt-head .ovt-eff button { flex: 1 0 auto; max-width: 100%; padding: 0 6px; font-size: 11px; white-space: nowrap; }
  .home-overview .ovt-full { order: 2; }
}
@media (forced-colors: active) {
  .home-overview .ovt-line, .home-overview .ovt-key line { forced-color-adjust: none; }
  .home-overview .ovt-lb[aria-pressed="true"] { outline: 2px solid Highlight; }
}

.home-overview .effort-pie { display:inline-block; width:44px; aspect-ratio:1; border-radius:50%; vertical-align:middle; }
.home-overview .ef-rows { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr)); gap:6px 12px; }
.home-overview .ef-row { display:grid; grid-template-columns:46px minmax(0,1fr); grid-template-areas:"s m" "s n" "s d"; column-gap:10px; align-content:center; }
.home-overview .ef-row .s { grid-area:s; }
.home-overview .ef-row .m { grid-area:m; }
.home-overview .ef-row .n { grid-area:n; text-align:left; }
.home-overview .ef-row .d { grid-area:d; text-align:left; }

.home-overview .ef-rows {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:10px;list-style:none;padding:0}
.home-overview .ef-card {min-width:0;display:block;border:1px solid var(--line-2);border-radius:8px;padding:12px;background:var(--surface)}
.home-overview .ef-heading {display:flex;justify-content:space-between;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:13px}
.home-overview .ef-heading strong {color:var(--text)}
.home-overview .ef-heading span,.home-overview .ef-sample {color:var(--text-2);font-size:12px}
.home-overview .ef-sample {margin:4px 0 9px}
.home-overview .ef-bar-list {list-style:none;padding:0;margin:0;display:grid;gap:6px}
.home-overview .ef-bar-line {display:grid;grid-template-columns:52px minmax(35px,1fr) auto;gap:8px;align-items:center;min-width:0;font:12px/1.4 var(--font-mono)}
.home-overview .ef-bar {width:100%;height:10px;display:block;background:var(--line-2);border-radius:3px}
.home-overview .ef-value {text-align:right;white-space:nowrap;color:var(--text)}
.home-overview .ef-value small {font-size:11px;color:var(--text-2)}

.home-overview .ovt-back { border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--accent-strong); min-height: var(--ovt-hit, 28px); padding: 0 9px; font: inherit; font-size: 11px; cursor: pointer; }
.home-overview .ovt-back[hidden] { display: none; }
.home-overview .ovt-full[aria-disabled="true"] { opacity: .55; }

.home-overview .iq-model-fill { stroke: var(--c, var(--accent)); stroke-width: 6; }
.home-overview .iq-row.is-dash .iq-model-fill { stroke-dasharray: 6 4; }
.home-overview .iq-row.ovt-c0 .v, .home-overview .iq-row.ovt-c1 .v,
.home-overview .iq-row.ovt-c2 .v, .home-overview .iq-row.ovt-c3 .v,
.home-overview .iq-row.ovt-c4 .v, .home-overview .iq-row.ovt-c5 .v,
.home-overview .iq-row.ovt-c6 .v, .home-overview .iq-row.ovt-c7 .v { color: var(--c); }
@media (forced-colors: active) { .home-overview .iq-model-fill { stroke: CanvasText; } }

.home-overview .iq-model-average { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; line-height: 1.5; white-space: normal; }
.home-overview .iq-model-average b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
