/* ==========================================================================
   Iteration 04 — Monolith II
   Navy field, ivory type, orange for overlap & action, brick + red as support.
   ========================================================================== */

:root {
  --navy: #1E3040;
  --navy-deep: #172735;
  --raise: #243A4D;
  --raise-2: #2B4357;
  --line: #34495C;
  --text: #F2EEE8;
  --muted: #93A3B3;
  --dim: #6B7E90;

  --orange: #F25C05;
  --red: #D93A2B;
  --brick: #A63B32;

  --a: var(--text);
  --b: var(--brick);
  --i: var(--orange);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p, figure, dl { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.key-a { background: var(--a); }
.key-b { background: var(--b); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600; letter-spacing: .005em; white-space: nowrap; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--text); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .32em; font-size: 15px; }
.brand-mark { width: 22px; height: 22px; background: var(--orange); border-radius: 50% 50% 0 50%; }

/* console */
.console-sec { padding-top: clamp(28px, 5vw, 56px); }
.console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; background: var(--navy-deep); border-radius: 4px; padding: clamp(18px, 2.6vw, 32px); }
.slot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.slot-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* primary action */
.go { height: 76px; padding: 0 32px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--orange); color: var(--navy); font-size: 16px; font-weight: 600; white-space: nowrap; outline: 2px solid transparent; outline-offset: 0; transition: background .2s var(--ease), color .2s, transform .2s var(--ease); }
.go svg { transition: transform .3s var(--ease); }
.go:hover:not(:disabled) { background: var(--text); }
.go:hover:not(:disabled) svg { transform: translateX(4px); }
.go:active:not(:disabled) { transform: scale(.98); }
.go:disabled { background: var(--raise); color: var(--dim); cursor: not-allowed; }
.go.is-ready { animation: goPulse 1.4s var(--ease) 2; }
.go.is-done { background: transparent; color: var(--text); outline: 1px solid var(--line); outline-offset: -1px; }
.go.is-done:hover { background: var(--raise); }
.go.is-done svg { transform: rotate(90deg); }
@keyframes goPulse {
  0% { outline-color: var(--orange); outline-offset: 0; }
  100% { outline-color: var(--navy-deep); outline-offset: 10px; }
}

.output[hidden] { display: none; }
.output { transition: opacity .3s var(--ease); }
.output.is-stale { opacity: .3; pointer-events: none; }
.result { scroll-margin-top: 96px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.data-status { margin: 12px 0 0; color: var(--dim); font-size: 12px; }
.data-status[data-state="loading"]::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); animation: goPulse 1s ease-in-out infinite; }
.data-status[data-state="ready"] { color: var(--text); }
.data-status[data-state="error"] { color: var(--red); }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); transition: all .2s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--navy); }

/* picker skin */
.fp { position: relative; }
.fp-box { display: flex; align-items: center; min-height: 76px; padding: 0 12px 0 16px; gap: 12px; border: 1px solid var(--line); background: var(--raise); border-radius: 4px; transition: border-color .2s, background .2s; }
.fp:hover .fp-box { border-color: var(--dim); }
.fp.is-open .fp-box { border-color: var(--orange); }
.fp-value { display: none; flex: 1; min-width: 0; align-items: center; gap: 14px; text-align: left; padding: 12px 0; }
.fp[data-state="filled"] .fp-value { display: flex; }
.fp[data-state="filled"] .fp-search { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.fp-search { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted); cursor: text; }
.fp-input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.fp-input::placeholder { color: var(--dim); }
.fp-clear { width: 34px; height: 34px; border-radius: 50%; display: none; place-items: center; color: var(--muted); flex: none; }
.fp-clear:hover { background: var(--raise-2); color: var(--text); }
.fp[data-state="filled"] .fp-clear { display: grid; }
.fp-mono { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 600; font-size: 16px; background: var(--text); color: var(--navy); }
#pickB .fp-value .fp-mono { background: var(--brick); color: var(--text); }
.fp-text { display: flex; flex-direction: column; min-width: 0; }
.fp-name { font-size: 17px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--text); color: var(--navy); border-radius: 6px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .22s var(--ease); }
.fp.is-open .fp-pop { opacity: 1; transform: none; pointer-events: auto; }
.fp-list { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow: auto; overscroll-behavior: contain; }
.fp-opt { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 4px; cursor: pointer; }
.fp-opt .fp-mono { width: 36px; height: 36px; font-size: 13px; background: #E3DDD3; color: var(--navy); }
.fp-opt .fp-name { font-size: 15px; }
.fp-opt .fp-meta { color: #5E6C79; }
.fp-opt .fp-text { flex: 1; }
.fp-opt.is-active, .fp-opt:hover { background: #E7E2D9; }
.fp-opt.is-active .fp-mono { background: var(--orange); color: var(--navy); }
.fp-ret { font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fp-ret small { display: block; font-size: 11px; color: #5E6C79; font-weight: 400; }
.fp-empty { padding: 20px 12px; color: #5E6C79; font-size: 14px; }

/* result */
.result { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(48px, 7vw, 96px); transition: opacity .3s; }
.big { display: flex; align-items: flex-start; font-weight: 400; line-height: .82; letter-spacing: -.06em; font-size: clamp(96px, 15vw, 212px); margin-top: 18px; font-variant-numeric: tabular-nums; }
.big-unit { font-size: .36em; margin: .1em 0 0 .08em; letter-spacing: 0; color: var(--orange); }
.band { display: inline-flex; margin-top: 26px; height: 34px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--raise); font-size: 14px; font-weight: 600; }
.band[data-k="significant"], .band[data-k="extreme"] { background: var(--red); color: var(--text); }
.band[data-k="none"], .band[data-k="low"] { background: var(--text); color: var(--navy); }

.scale { position: relative; margin-top: 30px; padding-bottom: 24px; max-width: 440px; }
.scale-track { display: flex; gap: 3px; height: 6px; }
.scale-track span { background: var(--raise-2); transition: background .4s var(--ease); }
.scale-track span.is-on { background: var(--orange); }
.scale-pin { position: absolute; top: -7px; width: 2px; height: 20px; background: var(--text); left: 0; transition: left .9s var(--ease); }
.scale-ticks { position: relative; height: 16px; margin-top: 10px; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.scale-ticks span { position: absolute; transform: translateX(-50%); }
.scale-ticks span:first-child { transform: none; }
.scale-ticks span:last-child { transform: translateX(-100%); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.actions .btn-ghost { height: 56px; }

.venn-fig { position: relative; }
#venn { width: 100%; height: auto; display: block; overflow: visible; }
.venn-a { fill: var(--a); }
.venn-b { fill: var(--b); }
.venn-i { fill: var(--i); }
.vl { font-family: var(--font); }
.vl-n { font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.vl-c { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.vl.on-light { fill: var(--navy); }
.vl.on-dark { fill: var(--text); }
.venn-cap { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; font-size: 14px; }
.venn-cap span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.venn-cap b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 88px); transition: opacity .3s; }
.stat { padding: 26px 24px 26px 0; border-top: 1px solid var(--text); border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dd small { font-size: .45em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.stat:first-child dd { color: var(--orange); }

/* detail */
.detail { margin-top: clamp(56px, 8vw, 104px); transition: opacity .3s; }
.detail-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--text); }
.seg { display: inline-flex; gap: 28px; }
.seg button { position: relative; padding: 8px 0; font-size: clamp(18px, 2vw, 24px); font-weight: 500; letter-spacing: -.02em; color: var(--dim); transition: color .2s; }
.seg button:hover { color: var(--muted); }
.seg button[aria-selected="true"] { color: var(--text); }
.seg button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -21px; height: 3px; background: var(--orange); }
.sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sub[hidden] { display: none; }
.pills { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--raise); }
.pills button { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background .25s var(--ease), color .25s; }
.pills button b { font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.pills button[aria-selected="true"] { background: var(--text); color: var(--navy); }
.field { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); min-width: 200px; }
.field:focus-within { border-color: var(--text); }
.field input { border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--text); width: 100%; }
.field input::placeholder { color: var(--dim); }

.view { display: none; }
.view.is-on { display: block; animation: rowIn .4s var(--ease); }

/* table */
.table { --cols: minmax(0, 2.4fr) minmax(0, 1.1fr) 90px minmax(160px, 2fr) 90px 90px; font-variant-numeric: tabular-nums; }
.table[data-mode="single"] { --cols: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(160px, 2.6fr) 110px; }
.tr { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.tr-head { padding: 14px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.th-sort { display: inline-flex; align-items: center; gap: 6px; letter-spacing: inherit; text-transform: inherit; }
.th-sort::after { content: ''; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; opacity: .3; }
.th-sort.is-on { color: var(--text); }
.th-sort.is-on::after { opacity: 1; }
.th-sort.is-asc::after { transform: rotate(180deg); margin-top: -4px; }
.th-keys { display: inline-flex; align-items: center; gap: 8px; }
.th-keys .key { width: 8px; height: 8px; }
.t-r { text-align: right; justify-self: end; }
.t-c { justify-self: center; }
.tr:not(.tr-head) { animation: rowIn .45s var(--ease) both; }
.tr:not(.tr-head):hover { background: var(--navy-deep); }
.t-stock { display: flex; flex-direction: column; min-width: 0; }
.t-stock b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-stock small { display: none; font-size: 12px; color: var(--muted); }
.t-sector { font-size: 14px; color: var(--muted); }
.t-num { font-size: 15px; }
.t-min { font-weight: 600; color: var(--orange); }
.mirror { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 10px; }
.mirror i { display: block; height: 100%; }
.mirror .m-a { justify-self: end; background: var(--a); }
.mirror .m-b { justify-self: start; background: var(--b); }
.solo { height: 10px; background: var(--raise); }
.solo i { display: block; height: 100%; background: var(--a); }
.table[data-tab="onlyB"] .solo i { background: var(--b); }
.table-foot { display: flex; justify-content: center; margin-top: 28px; }
.table-foot .btn[hidden] { display: none; }
.t-empty { padding: 40px 0; color: var(--muted); text-align: center; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* sectors */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-top b { font-weight: 500; }
.sec-top span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-top em { font-style: normal; color: var(--text); }
.sec-bars { display: grid; gap: 4px; margin-top: 12px; }
.sec-bar { position: relative; height: 8px; background: var(--raise); }
.sec-bar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .8s var(--ease); }
.sec-bar .fill-a { background: var(--a); }
.sec-bar .fill-b { background: var(--b); }
.sec-bar .fill-i { background: var(--i); }

/* facts */
.facts { font-variant-numeric: tabular-nums; }
.f-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.f-head { padding: 22px 0; align-items: center; }
.f-head .f-fund { display: flex; align-items: center; gap: 12px; font-weight: 500; line-height: 1.25; }
.f-label { color: var(--muted); font-size: 14px; }
.f-group { padding: 28px 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--text); }
.f-val { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-val .win { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--orange); color: var(--navy); }

/* cta bar */
.cta-bar { display: block; margin-top: clamp(72px, 10vw, 128px); background: var(--orange); color: var(--navy); transition: background .3s var(--ease); }
.cta-bar:hover { background: var(--red); color: var(--text); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.cta-text { font-size: clamp(30px, 5vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.cta-arrow { flex: none; width: clamp(56px, 7vw, 88px); height: clamp(56px, 7vw, 88px); border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--text); transition: transform .35s var(--ease); }
.cta-bar:hover .cta-arrow { transform: translateX(8px); }

.foot { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 120px; font-size: 12.5px; color: var(--dim); }
.foot a { color: var(--text); white-space: nowrap; }

/* sticky + toast */
.sticky { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--text); color: var(--navy); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); transform: translate(-50%, 160%); transition: transform .4s var(--ease); max-width: calc(100vw - 24px); }
.sticky.is-on { transform: translate(-50%, 0); }
.st-pair { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.st-num { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.st-num b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--orange); font-variant-numeric: tabular-nums; }
.st-num span { font-size: 12.5px; color: #5E6C79; }
.sticky .btn-primary:hover { background: var(--navy); color: var(--text); }
.toast { position: fixed; left: 50%; top: 88px; transform: translate(-50%, -12px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--navy); font-size: 13.5px; font-weight: 600; transition: all .3s var(--ease); pointer-events: none; z-index: 100; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1080px) {
  .table { --cols: minmax(0, 2.4fr) 80px minmax(120px, 2fr) 80px 80px; }
  .table[data-mode="single"] { --cols: minmax(0, 2.4fr) minmax(140px, 2.6fr) 100px; }
  .t-sector, .th-sector { display: none; }
  .t-stock small { display: block; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .console { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .go { grid-column: 1 / -1; height: 60px; }
}
@media (max-width: 900px) {
  .result { grid-template-columns: 1fr; }
  .venn-fig { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top-color: var(--line); }
  .sectors { grid-template-columns: 1fr; }
  .st-pair { display: none; }
}
@media (max-width: 720px) {
  .nav-in { height: 64px; }
  .console { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .go { height: 60px; width: 100%; margin-top: 4px; }
  .result { scroll-margin-top: 80px; }
  .fp-box { min-height: 68px; }
  .fp-name { font-size: 16px; }
  .fp-ret { display: none; }
  .presets { flex-wrap: nowrap; overflow-x: auto; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .presets::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .actions .btn-lg { flex: 1 1 100%; }
  .actions .btn-ghost { flex: 1; }

  .seg { gap: 20px; }
  .sub { width: 100%; }
  .pills { width: 100%; }
  .pills button { flex: 1; padding: 0 8px; }
  .field { width: 100%; min-width: 0; }

  .tr-head { display: none; }
  .tr, .table[data-mode="single"] .tr { grid-template-columns: 1fr auto auto; grid-template-areas: 'stock a b' 'bar bar bar'; row-gap: 12px; column-gap: 16px; padding: 16px 0; }
  .table[data-mode="single"] .tr { grid-template-areas: 'stock a' 'bar bar'; grid-template-columns: 1fr auto; }
  .tr .t-stock { grid-area: stock; }
  .tr .c-a { grid-area: a; }
  .tr .c-b { grid-area: b; }
  .tr .c-bar { grid-area: bar; }
  .tr .c-min { display: none; }
  .tr .c-a::before, .tr .c-b::before { display: block; font-size: 10px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
  .tr .c-a::before { content: 'A'; }
  .tr .c-b::before { content: 'B'; }
  .table[data-tab="onlyB"] .tr .c-a::before { content: 'B'; }

  .f-row { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .f-row .f-label { grid-column: 1 / -1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .f-head .f-label { display: none; }
  .f-head .f-fund { font-size: 14px; align-items: flex-start; }
  .f-head .f-fund .key { margin-top: 5px; }
  .venn-cap { flex-direction: column; gap: 8px; }
  .foot { flex-direction: column; gap: 10px; }
  .sticky { left: 12px; right: 12px; transform: translateY(160%); justify-content: space-between; max-width: none; }
  .sticky.is-on { transform: none; }
}
@media (max-width: 420px) {
  .stat { padding: 22px 12px 22px 0; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .seg button { font-size: 17px; }
}

@media print {
  :root { --navy: #FFFFFF; --navy-deep: #FFFFFF; --raise: #ECE8E1; --raise-2: #E3DDD3; --line: #DDD6CA; --text: #1E3040; --muted: #5E6C79; --dim: #7A8794; }
  .nav, .console-sec, .actions, .cta-bar, .sticky, .toast, .detail-bar, .table-foot { display: none !important; }
  .view { display: block !important; margin-top: 32px; }
  #tA .vl-n, #tA .vl-c { fill: #FFFFFF; }
  #tI .vl-n, #tI .vl-c { fill: #1E3040; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
