/* 2Fastboy scorecard styles (shared by the scorecard and every ticker page) */
:root {
  --paper: #6D1B2B;
  --field: #58141F;
  --ink: #F7EFEA;
  --graphite: #DCC6C6;
  --rule: rgba(247, 239, 234, 0.22);
  --faint: rgba(247, 239, 234, 0.11);
  --healthy: #F3D38A;
  --caution: #F08A4B;
  --critical: #FF4F6A;
  --healthy-bg: rgba(243, 211, 138, 0.16);
  --caution-bg: rgba(240, 138, 75, 0.16);
  --critical-bg: rgba(255, 79, 106, 0.16);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #4A1320; --field: #3B0F19; --rule: rgba(247, 239, 234, 0.2); --faint: rgba(247, 239, 234, 0.1); }
}
:root[data-theme="dark"] { --paper: #4A1320; --field: #3B0F19; --rule: rgba(247, 239, 234, 0.2); --faint: rgba(247, 239, 234, 0.1); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.45; font-stretch: 100%;
  font-variant-numeric: lining-nums;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--healthy); outline-offset: 2px; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
[hidden] { display: none !important; }

/* tone helpers */
.t-good { --tone: var(--healthy); } .t-mid { --tone: var(--graphite); } .t-warn { --tone: var(--caution); } .t-bad { --tone: var(--critical); } .t-na { --tone: var(--rule); }
.tx-good { color: var(--healthy); } .tx-warn { color: var(--caution); } .tx-bad { color: var(--critical); } .tx-mid, .tx-neutral { color: var(--ink); }

/* top bar */
.topbar { border-bottom: 1px solid var(--rule); }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { margin: 0; font-size: 17px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.005em; }
.search { display: flex; gap: 8px; }
.search input {
  width: 8.5em; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--field);
  font-weight: 650; font-stretch: 110%; letter-spacing: 0.02em; text-transform: uppercase;
}
.search input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--graphite); }
.btn { border: 0; border-radius: 6px; padding: 9px 16px; background: var(--ink); color: var(--paper); font-weight: 650; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--healthy)); }
.btn:disabled { opacity: 0.55; cursor: default; }
.link { border: 0; background: none; padding: 0; color: var(--healthy); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 600; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-bottom: 12px; font-size: 13px; color: var(--graphite); }
.chip { border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; font-stretch: 108%; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--graphite); }

/* empty, loading, error */
.stage { padding-block: clamp(36px, 8vw, 72px); max-width: 44rem; }
.stage h1, .stage h2 { margin: 0 0 12px; font-size: clamp(26px, 4.2vw, 34px); line-height: 1.12; font-weight: 750; font-stretch: 108%; letter-spacing: -0.01em; }
.stage p { margin: 0 0 12px; font-size: 16px; }
.lede { font-family: var(--serif); font-size: 18px !important; line-height: 1.55; }
.small { color: var(--graphite); font-size: 14px !important; }
.steps { list-style: none; margin: 18px 0 16px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--graphite); }
.steps .st { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.steps li.s-run { color: var(--ink); }
.steps li.s-run .st { border-color: var(--healthy); background: radial-gradient(circle, var(--healthy) 0 38%, transparent 42%); animation: pulse 1.1s ease-in-out infinite; }
.steps li.s-done { color: var(--ink); }
.steps li.s-done .st { border-color: var(--healthy); background: var(--healthy); color: var(--paper); }
.steps li.s-done .st::after { content: "✓"; }
.steps li.s-fail { color: var(--ink); }
.steps li.s-fail .st { border-color: var(--caution); background: var(--caution); color: var(--paper); }
.steps li.s-fail .st::after { content: "!"; }
.steps .why-fail { color: var(--caution); font-size: 13px; }
@keyframes pulse { 50% { opacity: 0.45; } }
.err-detail { font-size: 13.5px !important; color: var(--graphite); border-left: 2px solid var(--rule); padding-left: 10px; overflow-wrap: anywhere; }

/* report: identity */
.id { padding: 26px 0 6px; }
.id-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sym { margin: 0; font-size: clamp(34px, 6vw, 44px); line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.01em; }
.co { margin: 0; font-size: 19px; font-weight: 500; }
.meta { margin: 10px 0 0; color: var(--graphite); font-size: 14px; max-width: 78ch; }
.meta b { color: var(--ink); font-weight: 600; }
.problems { margin: 14px 0 0; padding: 10px 14px; background: var(--caution-bg); border-radius: 6px; font-size: 14px; max-width: 78ch; }
.problems p { margin: 0; }
.problems p + p { margin-top: 6px; }

/* verdict */
.verdict { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px 56px; padding: 22px 0 30px; border-bottom: 1px solid var(--rule); }
.v-num { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.big { font-size: clamp(68px, 11vw, 100px); line-height: 0.86; font-weight: 800; font-stretch: 125%; letter-spacing: -0.025em; font-variant-numeric: lining-nums tabular-nums; }
.of { color: var(--graphite); font-size: 15px; }
.band { margin: 14px 0 6px; font-size: 25px; line-height: 1.15; font-weight: 750; font-stretch: 104%; }
.handoff { margin: 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.5; max-width: 44ch; }
.capnote { margin: 10px 0 0; font-size: 14px; color: var(--critical); font-weight: 600; }
.readings { margin: 4px 0 0; display: grid; gap: 14px; align-content: start; }
.readings div { display: grid; gap: 2px; }
.readings dt { font-size: 13px; color: var(--graphite); }
.readings dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.readings dd a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }

.ruler { grid-column: 1 / -1; position: relative; padding-top: 12px; }
.r-track { display: flex; gap: 3px; height: 12px; }
.r-seg { flex: var(--w) 1 0; background: var(--tone); opacity: 0.24; }
.r-seg:first-child { border-radius: 6px 0 0 6px; } .r-seg:last-child { border-radius: 0 6px 6px 0; }
.r-seg.on { opacity: 1; }
.r-names { display: flex; gap: 3px; margin-top: 8px; font-size: 12.5px; color: var(--graphite); }
.r-names span { flex: var(--w) 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-names span.on { color: var(--ink); font-weight: 650; }
.r-marker { position: absolute; top: 3px; left: 0; width: 3px; height: 30px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; transition: left 1100ms cubic-bezier(0.2, 0.75, 0.2, 1); }
.r-marker::before { content: ""; position: absolute; top: -6px; left: -4px; border: 5.5px solid transparent; border-top-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .r-marker { transition: none; } .steps li.s-run .st { animation: none; } }

.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 24px; margin: 4px 0 0; padding: 0; list-style: none; }
.pillars a { display: block; color: inherit; text-decoration: none; }
.pl-n { font-size: 13.5px; font-weight: 600; }
.pl-w { font-size: 12.5px; color: var(--graphite); }
.pl-s { display: block; margin: 2px 0 6px; font-size: 26px; font-weight: 750; font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--tone); }
.meter { display: block; height: 4px; background: var(--faint); border-radius: 2px; overflow: hidden; }
#report:focus { outline: none; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 10%); background: var(--tone); border-radius: 2px; }

/* sections */
.sec { padding: 28px 0 10px; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 750; font-stretch: 106%; }
.sec h3 { margin: 26px 0 6px; font-size: 17px; font-weight: 700; }
.sec-lead { margin: 6px 0 14px; color: var(--graphite); font-size: 14.5px; max-width: 70ch; }

.flag-list { list-style: none; margin: 14px 0 12px; padding: 0; }
.flag-list li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--faint); }
.flag-list li:first-child { border-top: 0; }
.flag-list a { font-size: 13px; color: var(--graphite); text-decoration-color: var(--rule); text-underline-offset: 3px; white-space: nowrap; }
.sev { font-size: 13px; font-weight: 750; }
.sev-critical { color: var(--critical); } .sev-caution { color: var(--caution); }
.more { margin: 0 0 14px; }

.panel { padding: 30px 0 6px; }
.panel + .panel { border-top: 1px solid var(--rule); }
.panel-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.panel-h h2 { margin: 0; font-size: 22px; font-weight: 750; font-stretch: 106%; }
.p-score { font-size: 22px; font-weight: 750; font-stretch: 112%; color: var(--tone); font-variant-numeric: tabular-nums; }
.p-w { font-size: 13px; color: var(--graphite); }
.p-why { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--graphite); }

table.tests, table.eps { width: 100%; border-collapse: collapse; font-stretch: 95%; font-variant-numeric: tabular-nums lining-nums; }
.tests th, .tests td, .eps th, .eps td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-top: 1px solid var(--rule); }
.tests thead th, .eps thead th { border-top: 0; padding-top: 0; padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--graphite); }
.tests tbody th { font-weight: 650; width: 31%; }
.tests .dt { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--graphite); }
.tests .res { font-weight: 650; width: 17%; }
.tests .ref { width: 25%; font-size: 13.5px; color: var(--graphite); }
.tests .sc { width: 16%; }
.tests .sc b { font-size: 16px; font-weight: 750; color: var(--tone); }
.tests .sc .meter { margin-top: 6px; max-width: 8rem; }
.tests .sc .ns { font-size: 13px; color: var(--graphite); }
.tests .fl { width: 11%; padding-right: 0; font-size: 13px; font-weight: 750; }
.tests tr.note td { border-top: 0; padding: 0 0 11px; font-size: 13.5px; }
.tests tr.note .nt { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 12px; max-width: 72ch; }
.tests tr:target > * { background: var(--healthy-bg); }

/* anomaly */
.a-head { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 750; }
.a-sub { margin: 0 0 18px; font-family: var(--serif); font-size: 17px; line-height: 1.55; max-width: 66ch; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 6px; padding: 0; list-style: none; font-size: 13px; color: var(--graphite); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 22px; height: 10px; flex: none; }
.sw-price { border-top: 2px solid var(--ink); height: 0; }
.sw-fair { border-top: 2px dashed var(--graphite); height: 0; }
.sw-band { background: var(--ink); opacity: 0.2; }
.sw-ahead { background: var(--critical); opacity: 0.5; }
.sw-behind { background: var(--healthy); opacity: 0.5; }
.readout { min-height: 1.5em; margin: 4px 0 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.chart { position: relative; width: 100%; touch-action: pan-y; }
.chart:focus-visible { outline-offset: 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11.5px; fill: var(--graphite); font-variant-numeric: tabular-nums; }
.c-grid { stroke: var(--faint); stroke-width: 1; }
.c-axis { stroke: var(--rule); stroke-width: 1; }
.c-band { fill: var(--ink); opacity: 0.11; }
.c-fair { fill: none; stroke: var(--graphite); stroke-width: 1.4; stroke-dasharray: 5 4; }
.c-price { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.c-ahead { fill: var(--critical); opacity: 0.26; }
.c-behind { fill: var(--healthy); opacity: 0.26; }
.c-now { fill: var(--ink); }
.c-nowfair { fill: var(--paper); stroke: var(--graphite); stroke-width: 1.5; }
.c-guide { stroke: var(--graphite); stroke-width: 1; }
.c-dot { fill: var(--ink); }
.c-dot2 { fill: var(--paper); stroke: var(--graphite); stroke-width: 1.5; }
.c-hit { fill: transparent; cursor: crosshair; }
.eps td { font-size: 14px; }
.eps .ep-type { font-weight: 650; }
.eps .ep-out { max-width: 34ch; }
.a-sum { margin: 14px 0 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.55; max-width: 66ch; }
.unavail { margin: 12px 0 8px; padding: 12px 14px; background: var(--faint); border-radius: 6px; max-width: 70ch; }

/* winner */
.w-sum { margin: 8px 0 4px; font-size: 16px; }
.w-sum b { font-size: 20px; font-stretch: 110%; }
.traits { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 36px; }
.traits li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--faint); }
.traits .mk { font-weight: 800; }
.mk-ok { color: var(--healthy); } .mk-no { color: var(--critical); } .mk-na { color: var(--graphite); }
.traits .tv { font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; white-space: nowrap; }
.src { margin: 10px 0 0; font-size: 13.5px; color: var(--graphite); max-width: 76ch; }

/* notes + footer */
.plain { margin: 10px 0; padding-left: 1.1em; max-width: 76ch; font-size: 14.5px; }
.plain li { margin: 5px 0; }
.foot { padding-block: 26px 36px; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 13px; }
.foot p { margin: 0 0 6px; max-width: 80ch; }

@media (max-width: 820px) {
  .verdict { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .verdict .ruler { order: 2; } .verdict .readings { order: 3; } .verdict .pillars { order: 4; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-names span { font-size: 11.5px; }
  .tests thead { display: none; }
  .tests tbody tr:not(.note) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 3px; padding: 12px 0 10px; border-top: 1px solid var(--rule); }
  .tests tbody tr:not(.note) > * { border: 0; padding: 0; width: auto; }
  .tests tbody th { grid-column: 1 / -1; }
  .tests .res { grid-column: 1; margin-top: 4px; }
  .tests .sc { grid-column: 2; grid-row: 2 / span 2; text-align: right; margin-top: 4px; }
  .tests .sc .meter { margin-left: auto; width: 5.5rem; }
  .tests .ref { grid-column: 1; }
  .tests .fl { grid-column: 1 / -1; }
  .tests .fl:empty { display: none; }
  .tests tr.note { display: block; }
  .tests tr.note td { display: block; padding: 0 0 10px; }
  .tests tr.note .nt { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .eps thead { display: none; }
  .eps tr { display: block; padding: 10px 0; border-top: 1px solid var(--rule); }
  .eps td { display: block; border: 0; padding: 2px 0; }
  .flag-list li { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .flag-list a { grid-column: 2; }
}

/* SEC import */
.secpanel { margin: 26px 0 8px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 8px; max-width: 46rem; }
.secpanel h3 { margin: 0 0 6px; font-size: 17px; }
.secpanel a { color: var(--healthy); overflow-wrap: anywhere; }
.secpanel .plain { font-size: 14.5px; }
.filepick { display: inline; }
.secmore { margin: 10px 0 0; }
.secmore summary { cursor: pointer; color: var(--healthy); font-weight: 600; font-size: 14px; }
body.dragging::after { content: "Drop the SEC data file to analyze it"; position: fixed; inset: 12px; display: grid; place-items: center; border: 2px dashed var(--healthy); border-radius: 12px; background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink); font-size: 20px; font-weight: 700; z-index: 50; pointer-events: none; }
.chipwrap { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; }
.chipwrap .chip { border: 0; padding-right: 6px; }
.chipwrap .chip:only-child { padding-right: 10px; }
.chipx { border: 0; background: none; color: var(--graphite); font-size: 15px; line-height: 1; padding: 3px 9px 3px 2px; cursor: pointer; border-radius: 0 999px 999px 0; }
.chipx:hover, .chipx:focus-visible { color: var(--critical); }
.chip[aria-current="true"] { color: var(--healthy); }
.wl-label { font-weight: 600; color: var(--ink); }
.wl-select { font: inherit; font-size: 13px; color: var(--ink); background: var(--field); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 26px 3px 10px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.chip .cs { margin-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-left: 4px; }
.wl-tool { font-size: 13px; }
.wl-form { display: inline-flex; align-items: center; gap: 10px; }
.wl-input { font: inherit; font-size: 13px; color: var(--ink); background: var(--field); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 12px; width: 11em; }
.wl-input::placeholder { color: var(--graphite); }
.wl-hint { font-size: 13px; color: var(--graphite); }
.chipwrap.pending { border-style: dashed; }
.chipwrap.pending .chip { color: var(--graphite); }
.addto-row { margin-top: 8px; }
.meta.stale { color: var(--caution); }

/* sidebar */
.shell { display: flex; align-items: flex-start; gap: 0; }
.main { flex: 1 1 auto; order: 1; min-width: 0; max-width: 1020px; margin: 0; }
.side {
  flex: 0 0 272px; order: 2; margin-left: auto; align-self: stretch; position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  --paper: #3A0E18; --field: #4A1320; --ink: #F7EFEA; --graphite: #D7BEC2; --rule: rgba(247, 239, 234, 0.16); --faint: rgba(247, 239, 234, 0.08);
  --healthy: #F3D38A; --caution: #F08A4B; --critical: #FF4F6A;
  --healthy-bg: rgba(243, 211, 138, 0.14); --caution-bg: rgba(240, 138, 75, 0.14); --critical-bg: rgba(255, 79, 106, 0.14);
  background: var(--paper); color: var(--ink); border-left: 1px solid rgba(247, 239, 234, 0.14); padding: 16px 16px 24px; min-height: 100vh;
  color-scheme: dark;
}
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.side-title { font-size: 15px; font-weight: 700; font-stretch: 108%; }
.side-toggle { display: none; border: 1px solid var(--rule); background: var(--field); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.side .wl-select { width: 100%; margin-bottom: 6px; border-radius: 6px; padding: 6px 26px 6px 10px; font-size: 13.5px; }
.side .wl-form { display: flex; gap: 8px; margin: 10px 0 4px; }
.side .wl-input { flex: 1 1 auto; width: auto; border-radius: 6px; }
.wl-rows { list-style: none; margin: 12px 0 6px; padding: 0; border-top: 1px solid var(--rule); }
.wl-row { display: flex; align-items: flex-start; gap: 6px; border-bottom: 1px solid var(--rule); }
.wl-open { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; text-align: left; background: none; border: 0; padding: 9px 4px 9px 2px; cursor: pointer; color: inherit; border-radius: 4px; }
.wl-open:hover { background: var(--faint); }
.wl-row[aria-current="true"] { box-shadow: inset 3px 0 0 var(--healthy); }
.wl-row[aria-current="true"] .wl-sym { color: var(--healthy); }
.wl-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wl-sym { font-weight: 700; font-stretch: 106%; letter-spacing: 0.01em; }
.wl-score { font-weight: 750; font-variant-numeric: tabular-nums; }
.wl-meta { font-size: 12px; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-earn { font-size: 12px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.wl-row.pending .wl-sym { color: var(--graphite); font-style: italic; }
.wl-x { align-self: center; border: 0; background: none; color: var(--graphite); font-size: 15px; line-height: 1; padding: 6px 4px; cursor: pointer; border-radius: 4px; }
.wl-x:hover, .wl-x:focus-visible { color: var(--critical); background: var(--faint); }
.side .wl-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; }
.side .wl-hint, .side .wl-note { display: block; font-size: 12px; color: var(--graphite); margin-top: 8px; line-height: 1.4; }
.side .link { color: var(--healthy); font-size: 13px; }
.side .wl-label { display: none; }
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: static; margin-left: 0; max-height: none; min-height: 0; width: auto; border-left: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); padding: 12px clamp(16px, 4vw, 40px); }
  .side-toggle { display: inline-block; }
  .side-body { display: none; }
  .side.open .side-body { display: block; }
}

/* ---- hosted build ---- */
.topbar-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.foot b { color: var(--ink); }
.coverage { color: var(--graphite); font-size: 13px; }
/* ---- fear and greed gauges ---- */
/* hide / show the watchlist (desktop) */
.side-hide { border: 1px solid var(--rule); background: var(--field); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.side-hide:hover { background: var(--faint); }
.side-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 20;
  writing-mode: vertical-rl; background: #FFFFFF; color: #23171B; border: 1px solid rgba(0, 0, 0, 0.15); border-right: 0;
  border-radius: 8px 0 0 8px; padding: 14px 7px; font: 700 13px/1 "Archivo", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em; cursor: pointer;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.25);
}
.side-tab:hover { padding-right: 10px; }
body.side-hidden .side { display: none; }
@media (max-width: 900px) { .side-hide, .side-tab { display: none !important; } body.side-hidden .side { display: block; } }

/* description on the left, gauges centered in whatever space is left beside it */
.rep-id { container-type: inline-size; }
.id-row { display: grid; grid-template-columns: minmax(320px, 600px) minmax(280px, 1fr); gap: 24px; align-items: start; }
.id-main { min-width: 0; }
.gauges { justify-self: center; width: min(100%, 400px); margin-top: 26px; }
@container (max-width: 640px) {
  .id-row { grid-template-columns: minmax(0, 1fr); }
  .gauges { justify-self: stretch; width: auto; max-width: 440px; margin-top: 0; }
}
.g-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.g-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--graphite); }
.g-parts div { display: flex; flex-direction: column; gap: 2px; }
.g-parts b { color: var(--ink); }
.gauge { text-align: center; color: var(--ink); }
.g-svg { width: 100%; max-width: 190px; display: block; margin: 0 auto; }
.g-num { font-size: 26px; font-weight: 700; line-height: 1; margin-top: -2px; }
.g-lab { font-size: 13px; font-weight: 700; margin-top: 3px; }
.g-cap { font-size: 12px; color: var(--graphite); margin-top: 2px; }
.g-empty { border: 1px dashed var(--rule); border-radius: 8px; padding: 18px 10px; cursor: default; }
.g-note { margin: 6px 0 0; font-size: 12px; color: var(--graphite); }
.g-foot { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--graphite); }
.g-foot a { color: var(--graphite); }

/* ---- previous-quarter comparison ---- */
.v-prev { margin: 6px 0 2px; font-size: 14px; color: var(--graphite); }
.v-prev b { color: var(--ink); }
.v-d, .pl-d { font-weight: 700; margin-left: 6px; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
.pl-d { font-size: 12.5px; vertical-align: 4px; }
.dz { color: var(--graphite); font-weight: 600; }

/* ---- intro slogan ---- */
.gold { color: #FFC53D; background: linear-gradient(180deg, #FFEBA8 0%, #FFC53D 50%, #D6941C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---- ticker search suggestions ---- */
.tk-sugg { position: absolute; z-index: 50; max-height: 380px; overflow-y: auto; background: #2A0B12; border: 1px solid rgba(247, 239, 234, 0.22); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); padding: 6px; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; }
.tk-opt { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: #F7EFEA; }
.tk-opt b { font-size: 15px; font-weight: 750; letter-spacing: 0.02em; }
.tk-opt span { font-size: 13px; color: #DCC6C6; }
.tk-opt:hover, .tk-opt.on { background: rgba(247, 239, 234, 0.12); }

/* ---- live price (TradingView) ---- */
.live-quote { width: 332px; max-width: 100%; margin: 8px 0 2px; }
/* the frame is 2px smaller than the widget and the widget sits 1px up and left, so its thin border falls outside the view;
   a fixed height keeps the price line from being cut off when TradingView sizes its frame too short */
/* the widget is shifted left by its border (1px) plus its built-in padding (16px), so its logo lines up with the ticker above;
   the frame is narrower than the widget so neither side's border shows */
.live-quote .lq-clip { position: relative; width: 332px; max-width: 100%; height: 90px; overflow: hidden; transition: opacity 0.25s ease;
  background: var(--paper); /* a maroon backing, so the widget blends into maroon even while it fades in (no dark flash) */ }
.live-quote.lq-loading .lq-clip { opacity: 0; } /* hidden while TradingView loads, so its loading frame never shows */
.live-quote .lq-clip .tradingview-widget-container { position: absolute; left: -17px; top: -1px; width: 350px; }
/* "lighten" lets the maroon replace the widget's near-black background; clicks are off so the quote is display-only */
.live-quote iframe { display: block; width: 350px !important; height: 92px !important; mix-blend-mode: lighten; pointer-events: none;
  filter: contrast(1.25); /* darkens the widget's background just below the maroon so no rectangle shows; text gets slightly crisper */ }
.live-quote .tradingview-widget-copyright { font-size: 11.5px !important; line-height: 1.4 !important; text-align: left !important; color: var(--graphite); margin: 2px 0 0 !important; padding: 0 !important; color-scheme: dark; }
.live-quote .tradingview-widget-copyright a { color: var(--graphite); }

/* ---- header: name and live price beside the gauges, description and facts full width below ---- */
.id-more { padding: 0 0 6px; }
/* gauges sit right beside the name and live price (no gap), on every screen size */
/* header layout adapts to the room available:
   wide:   ticker, name and live price on top; description and facts on the left, gauges beside them
   narrow: gauges beside the ticker and live price; description and facts full width underneath */
.id-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); grid-template-areas: "top gauges" "info info"; column-gap: 32px; align-items: center; }
.id-grid .g-top { grid-area: top; min-width: 0; }
.id-grid .g-info { grid-area: info; min-width: 0; }
.id-grid .gauges { grid-area: gauges; margin-top: 18px; width: 100%; }
@container (min-width: 900px) {
  .id-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); grid-template-areas: "top top" "info gauges"; column-gap: 40px; }
  .id-grid .gauges { margin-top: 0; justify-self: center; }
  .id-grid .g-info .about { margin-top: 6px; }
}
.id-more .about { max-width: 92ch; margin-top: 14px; }
.id-more .meta { max-width: none; }
/* phones: the gauges move into the score section, under the Unhealthy-to-Strong scale */
.v-gauges { display: none; }
@media (max-width: 700px) {
  .id-grid .gauges { display: none; }
  .id-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "info"; }
  .v-gauges { display: block; grid-column: 1 / -1; order: 3; }
  .v-gauges .gauges { margin: 4px 0 0; width: 100%; max-width: 440px; }
  .verdict .readings { order: 4; } .verdict .pillars { order: 5; }
}

/* ---- company description ---- */
.about { margin: 10px 0 12px; max-width: 68ch; font-size: 16px; line-height: 1.55; color: var(--ink); }

/* ---- header buttons ---- */
.topnav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.topnav a { color: var(--graphite); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.topnav a:hover { color: var(--ink); background: var(--faint); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--faint); }
.topbar-in { justify-content: flex-start; }
.cmp-link { margin-left: 14px; font-size: 14px; font-weight: 600; color: var(--healthy); }

/* ---- full-width top bar and footer ---- */
.topbar .topbar-in { max-width: none; }
.foot.wrap { max-width: none; }
.foot p { max-width: none; }

/* ---- live chart (TradingView widget) ---- */
.rep-cols { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "verdict" "chart" "body"; }
.rep-verdict { grid-area: verdict; min-width: 0; }
.rep-id { grid-area: id; min-width: 0; }
.rep-body { grid-area: body; min-width: 0; }
.tv-side { grid-area: chart; min-width: 0; margin: 24px 0 26px; }
.tv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tv-title { margin: 0; font-size: 15px; font-weight: 700; font-stretch: 108%; }
.tv-box { height: 440px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #FFFFFF; position: relative; }
.tv-box .tradingview-widget-container, .tv-box .tradingview-widget-container__widget { height: 100%; width: 100%; }
.tv-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #4A1320; font-size: 14px; }
.tv-fallback .link { color: #8A6512; }
.tradingview-widget-copyright { margin-top: 6px; font-size: 12px; color: var(--graphite); }
.tradingview-widget-copyright a { color: var(--graphite); }
.tradingview-widget-copyright .blue-text { color: var(--healthy); }
.tv-credit { margin: 6px 0 0; font-size: 12px; color: var(--graphite); }
.tv-credit a { color: var(--graphite); }
.rep-cols.tv-off .tv-box, .rep-cols.tv-off .tv-credit, .rep-cols.tv-off .tradingview-widget-copyright { display: none; }
@media (max-width: 640px) { .tv-box { height: 340px; } }
/* Layout follows the space actually available (screen width minus the watchlist, if it's open):
   - roomy: scorecard and chart side by side, the scorecard taking about half (never more than 1,040px),
     the chart everything else, never narrower than ~520px
   - tighter (most laptops with the watchlist open): chart moves under the company header, full width */
@media (min-width: 901px) { .main { max-width: none; container-type: inline-size; } }
#empty, #loading, #error { max-width: 1020px; }
@container (min-width: 1200px) {
  .rep-cols { grid-template-columns: minmax(620px, min(1040px, 54%)) minmax(0, 1fr); grid-template-areas: "id chart" "verdict chart" "body chart"; column-gap: 32px; }
  .tv-side { align-self: start; position: sticky; top: 10px; margin: 26px 0 0; }
  .tv-head { height: 44px; align-items: center; margin-bottom: 6px; }
  .tv-box { height: max(520px, calc(100vh - 170px)); }
  .rep-cols.tv-off { max-width: 1020px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "verdict" "chart" "body"; }
  .rep-cols.tv-off .tv-side { position: static; margin: 4px 0 26px; }
}
@container (max-width: 1199px) {
  .tv-box { height: clamp(360px, 60vh, 560px); }
}

/* ---- champagne gold, polished: metallic gradient on the main highlights ---- */
:root { --gold-text: linear-gradient(180deg, #FFF4D6 0%, #F3D38A 46%, #CF9F45 100%); --gold-bar: linear-gradient(90deg, #C99A3F 0%, #EBC673 45%, #F7DE9E 75%, #FFF1CC 100%); }
.gold-polish { background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.band.tx-good, .t-good .pl-s, .t-good .p-score, .t-good .tests .sc b { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; background-image: var(--gold-text); }
.t-good .meter i { background: var(--gold-bar); }
.tx-good.v-d, .tx-good.pl-d { color: #F3D38A; }

/* ---- polished score scale: gold (good), platinum (neutral), copper (caution), ruby (critical) ---- */
:root { --gold-text: linear-gradient(180deg, #FFF4D6 0%, #F3D38A 46%, #CF9F45 100%); --gold-bar: linear-gradient(90deg, #C99A3F 0%, #EBC673 45%, #F7DE9E 75%, #FFF1CC 100%); --platinum-text: linear-gradient(180deg, #FFFFFF 0%, #DCDCE2 50%, #A3A3AE 100%); --platinum-bar: linear-gradient(90deg, #A3A3AE 0%, #DCDCE2 55%, #FFFFFF 100%); --copper-text: linear-gradient(180deg, #FFC59A 0%, #F08A4B 50%, #C25A1F 100%); --copper-bar: linear-gradient(90deg, #C25A1F 0%, #F08A4B 55%, #FFC59A 100%); --ruby-text: linear-gradient(180deg, #FF8A94 0%, #FF4F6A 50%, #D92D45 100%); --ruby-bar: linear-gradient(90deg, #D92D45 0%, #FF4F6A 55%, #FF8A94 100%); }
.big.pol-good, .band.tx-good, .t-good .pl-s, .t-good .p-score { background-image: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.t-good .meter i { background: var(--gold-bar); }
.big.pol-mid, .band.tx-mid, .t-mid .pl-s, .t-mid .p-score { background-image: var(--platinum-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.t-mid .meter i { background: var(--platinum-bar); }
.big.pol-warn, .band.tx-warn, .t-warn .pl-s, .t-warn .p-score { background-image: var(--copper-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.t-warn .meter i { background: var(--copper-bar); }
.big.pol-bad, .band.tx-bad, .t-bad .pl-s, .t-bad .p-score { background-image: var(--ruby-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.t-bad .meter i { background: var(--ruby-bar); }
.band.tx-neutral { background-image: var(--platinum-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* watchlist (dark panel): polished scores */
.side .wl-score { font-size: 15.5px; }
.side .wl-row[aria-current="true"] { box-shadow: inset 3px 0 0 #E2B95E; }
.side .wl-score.tx-good, .side .wl-row[aria-current="true"] .wl-sym { background-image: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.side .wl-score.tx-warn { background-image: var(--copper-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.side .wl-score.tx-bad { background-image: var(--ruby-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---- header brand: "2Fastboy." in polished gold ---- */
.brand-gold { background: linear-gradient(180deg, #FFEBA8 0%, #FFC53D 50%, #D6941C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.side .wl-score.tx-mid { background-image: var(--platinum-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---- plain-text summary on each ticker page (for search engines and visitors without JavaScript) ---- */
.js .seo-summary { display: none; }
.seo-summary { padding: 26px 0 30px; max-width: 80ch; }
.seo-summary h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); }
.seo-summary h2 { font-size: 18px; margin: 22px 0 8px; }
.seo-summary ul { margin: 0; padding-left: 20px; }
.seo-summary a { color: var(--healthy); }

/* ---- "Clear watchlist" at the bottom of the watchlist ---- */
.wl-clear { display: block; margin: 14px 0 0; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--graphite); font-size: 13px; font-weight: 600; cursor: pointer; }
.wl-clear:hover { color: var(--ink); border-color: var(--graphite); }

/* ---- score section lines up with the header: the readings column sits directly under the gauges ---- */
.rep-verdict { container-type: inline-size; } /* measured like the header (.rep-id), so both pick the same column widths */
.verdict { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); column-gap: 32px; }
@container (min-width: 900px) { .verdict { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); column-gap: 40px; } }
.readings { gap: 0; margin: 0; align-self: start; padding-left: 18px; border-left: 1px solid var(--rule); }
.readings div { padding: 12px 0; border-top: 1px solid var(--rule); }
.readings div:first-child { border-top: 0; padding-top: 2px; }
.readings div:last-child { padding-bottom: 2px; }
@media (max-width: 820px) {
  .verdict { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .readings { padding-left: 0; border-left: 0; }
  .readings div:first-child { border-top: 1px solid var(--rule); padding-top: 12px; }
}

/* ---- smooth in-page links ---- */
.sec, .panel, #disclaimer { scroll-margin-top: 16px; }
.sec:focus, .panel:focus, #disclaimer:focus, .tests tr:focus { outline: none; }
.tests tr.hit > * { animation: rowhit 2.2s ease-out; }
@keyframes rowhit { 0%, 35% { background: var(--healthy-bg); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .tests tr.hit > * { animation: none; background: var(--healthy-bg); } }

/* ---- motto, centered above the disclaimer on every page ---- */
.foot p.foot-motto { margin: 0 0 18px; max-width: none; text-align: center; font-size: 22px; line-height: 1.3; font-weight: 750; font-stretch: 106%; color: var(--ink); text-wrap: balance; }
.foot-motto .m-gold { background: linear-gradient(180deg, #FFEBA8 0%, #FFC53D 50%, #D6941C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
@media (max-width: 640px) { .foot p.foot-motto { font-size: 19px; } }
/* the start screen already shows the motto large, so skip the footer copy there */
body:has(#empty:not([hidden])) .foot-motto { display: none; }


@media (max-width: 520px) { .topnav { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .topnav::-webkit-scrollbar { display: none; } .topnav a { padding: 6px 8px; font-size: 13px; white-space: nowrap; } } /* phones: the menu stays on one line and swipes sideways */ /* four menu links fit on one line on phones */

/* ---- live price, price only: the TradingView quote is cropped to just its price and change, drawn at --lq-s times
   its normal size. The quote has two layouts: during market hours the price sits on the right of the logo and name,
   otherwise on a line under them, so the crop window (--cx, --cy, --cw, --ch, in the quote's own pixels) follows the
   market clock (the lq-compact class). The frame itself is scaled, so its blend into the maroon keeps working. */
.live-quote { --lq-s: 2; --cx: 0px; --cy: 0px; --cw: 328px; --ch: 90px; width: calc(var(--cw) * var(--lq-s)); max-width: 100%; }
.live-quote.lq-compact { --cx: 235px; --cy: 16px; --cw: 92px; --ch: 36px; }
.live-quote .lq-clip { width: calc(var(--cw) * var(--lq-s)); height: calc(var(--ch) * var(--lq-s)); max-width: none; }
.live-quote .lq-clip .tradingview-widget-container { left: calc(-1 * (17px + var(--cx)) * var(--lq-s)); top: calc(-1 * (1px + var(--cy)) * var(--lq-s)); width: calc(350px * var(--lq-s)); }
.live-quote iframe { transform: scale(var(--lq-s)); transform-origin: 0 0;
  color-scheme: normal; /* the page is dark-scheme; matching the frame's own scheme keeps its empty area transparent, not white */ }
.live-quote .lq-credit { margin-top: 6px !important; }

/* preliminary scores (from an earnings release, until the 10-Q / 10-K is filed) */
.pre-badge { margin-left: 12px; font: 800 12px Archivo, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #FFF4E5; color: #B45309; border: 1px solid #F2C48A; vertical-align: middle; }
.pre-range { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid #F2C48A; background: #FFFAF2; border-radius: 10px; font-size: 13.5px; line-height: 1.5; max-width: 520px; }
.pre-pill { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; color: #8A8183; }
.pre-pill.on { color: #157F4C; }
.meta.pre-note { color: #B45309; }
.release { margin-top: 18px; }
.release h2 { margin: 0 0 4px; }
.rel-sub { margin: 0 0 12px; color: var(--graphite); font-size: 14px; }
.rel-wrap { overflow-x: auto; }
.rel-tbl { border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 560px; }
.rel-tbl th { text-align: left; font-size: 12.5px; color: var(--graphite); font-weight: 600; padding: 0 18px 6px 0; }
.rel-tbl td { padding: 10px 18px 10px 0; border-top: 1px solid var(--rule); }
.rel-tbl .num { text-align: right; }
.rel-txt { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; max-width: 820px; }
.rel-note { margin: 8px 0 0; font-size: 12.5px; color: var(--graphite); }
