:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #111;
  --line: #383838;
  --ink: #f4f4f4;
  --muted: #b5b5b5;
  --accent: #00A145;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.home {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px;
  background: var(--bg);
}
.hero {
  width: min(100%, 700px);
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8.5vw, 104px);
  font-weight: 670;
  letter-spacing: -.077em;
  line-height: 1.05;
}
.hero h1 em {
  color: var(--accent);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.075em;
}
.tagline {
  max-width: 510px;
  margin: 16px auto 30px;
  color: #c7c7c7;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.6;
  text-wrap: balance;
}
.search {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 9px 9px 9px 18px;
  margin-inline: auto;
  border: 1px solid #444;
  border-radius: 19px;
  background: #101010;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 20px 54px #0009;
  text-align: left;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffffff2b, 0 20px 54px #0009;
}
.search-icon { flex: none; color: #c8c8c8; }
.examples {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.examples button, .soft {
  padding: 8px 11px;
  color: #dedede;
  font-size: 12px;
  background: #101010;
  border: 1px solid #333;
  border-radius: 999px;
}
.examples button span { color: var(--accent); margin-left: 3px; }
.examples button:hover, .soft:hover, .quiet:hover, .icon-btn:hover {
  border-color: var(--accent);
  background: #1b1b1b;
}
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .17em;
}
.hud-controls { display: flex; align-items: center; gap: 7px; flex: none; }
@media (max-width: 480px) {
  .home { padding-inline: 16px; }
  .tagline { margin-bottom: 23px; }
  .examples { max-width: 360px; margin-inline: auto; }
  .hud-controls { flex-wrap: wrap-reverse; justify-content: end; max-width: 106px; }
}

.quiet,.icon-btn{display:inline-flex;align-items:center;gap:8px;background:#121a17;border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:#d1ddd3;font-size:13px}.search input,.followup input{background:transparent;border:0;outline:0!important;color:var(--ink);min-width:0;width:100%;font-size:16px}.search input::placeholder,.followup input::placeholder{color:#a6b7ad}.submit,.primary{border:0;border-radius:8px;background:var(--accent);color:#080808;font-weight:750;min-height:42px;min-width:43px;display:grid;place-items:center;flex:none}.primary{padding:0 14px}.submit:hover,.primary:hover{background:#20b760}
dialog{color:var(--ink);background:var(--panel);border:1px solid #40534a;padding:0;border-radius:17px;width:min(950px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 100px #000a}dialog::backdrop{background:#000}.hud-shell{min-height:min(490px,calc(100dvh - 45px));display:flex;flex-direction:column}.hud-head{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:23px 26px 16px}.hud-head h2{font-weight:660;font-size:clamp(24px,5vw,36px);letter-spacing:-.055em;margin:6px 0 0}.hud-question{font-size:13px;color:var(--muted);margin:7px 0 0;overflow-wrap:anywhere}.icon-btn{font-size:24px;line-height:1;padding:4px 9px;flex:none}.tabs{display:flex;gap:5px;overflow:auto;padding:0 26px;border-bottom:1px solid var(--line)}.tabs:empty{display:none}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:11px 12px;color:#aebdb5;white-space:nowrap;font-size:14px}.tabs button[aria-selected=true]{color:var(--accent);border-color:var(--accent)}.content{padding:19px 26px 22px;flex:1;min-width:0}.split{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.price{font-size:39px;letter-spacing:-.06em;font-weight:725;margin:3px 0}.caption,small.caption{color:var(--muted);font-size:12px;line-height:1.5}.positive{color:var(--green)}.negative{color:var(--red)}.state,.insight{background:#17231e;border:1px solid #31443a;border-radius:10px;padding:16px;line-height:1.55;color:#c6d6cc}.state p,.insight p{margin:0 0 9px}.state p:last-child,.insight p:last-child{margin-bottom:0}.section-title{margin:19px 0 9px;font-size:15px}.insight{margin:12px 0 0;font-size:14px}.chart-wrap{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:10px;margin:12px 0 7px;position:relative}.chart-wrap canvas{width:100%;height:270px;display:block;touch-action:pan-y}.chart-detail{min-height:20px;padding-left:7px}.legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px}.ranges{display:flex;gap:4px}.ranges button.active,.soft.active{background:#293b2b;color:var(--accent);border-color:#527152}.cards,.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}.tiles{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.metric,.tile{background:#16221c;border:1px solid #2f4437;border-radius:10px;padding:13px;text-align:left;overflow-wrap:anywhere}.metric strong,.tile strong{display:block;font-size:16px}.metric p,.tile p{margin:5px 0;color:#b5c5bc;font-size:13px;line-height:1.42}.metric .value{display:block;font-weight:700;font-size:22px;margin:4px 0;color:var(--ink)}.tile.up{background:#19402c;border-color:#366149}.tile.down{background:#422a2b;border-color:#754849}.tile:hover{border-color:var(--accent)}.news-item{padding:12px 0;border-bottom:1px solid var(--line)}.news-item a{font-weight:650;text-decoration:none}.news-item a:hover{text-decoration:underline}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.followup{display:flex;gap:12px;align-items:center;padding:11px 26px;border-top:1px solid var(--line);background:#131d18;position:sticky;bottom:0}.followup input{background:#0e1713;padding:10px 12px;border:1px solid var(--line);border-radius:8px}.followup .submit{min-width:36px;min-height:36px}.settings-shell{max-width:580px;margin:auto}.settings-shell>.primary{margin:14px 26px 23px}#settings{max-width:550px}.setting{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin:0 26px;padding:16px 0}.setting p{font-size:14px;color:var(--muted);line-height:1.55;margin:5px 0 0}.setting input{width:20px;height:20px;flex:none;accent-color:var(--accent)}select{background:#17231e;border:1px solid var(--line);color:var(--ink);padding:7px;border-radius:7px}.ai-text{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.hud-head,.content{padding-left:15px;padding-right:15px}.tabs,.followup{padding-left:15px;padding-right:15px}dialog{width:calc(100% - 16px);max-height:calc(100dvh - 18px)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-wrap canvas{height:230px}}@media(max-width:360px){.cards{grid-template-columns:1fr}}
.tv-slot{height:clamp(355px,65dvh,570px);width:100%;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.tv-slot iframe{width:100%;height:100%;border:0;display:block}
.analysis-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:9px}
.analysis-head .soft{text-decoration:none;flex:none}
.actions a.soft{text-decoration:none}
.analysis-head .price{font-size:clamp(27px,6vw,40px)}
.plot-legend{display:flex;flex-wrap:wrap;gap:8px 15px;font-size:12px;margin:9px 0 4px}
.plot-legend span:before{content:"";display:inline-block;width:13px;border-top:1px dashed currentColor;margin:0 5px 3px 0}
.plot-legend .plot-live:before{width:6px;height:6px;background:currentColor;border:0;border-radius:50%;margin-bottom:1px}
.plot-support{color:#75e5ab}.plot-resistance{color:#ffb58e}.plot-trend{color:var(--accent)}.plot-live{color:#e6f4df}

.plot-legend[hidden]{display:none}

dialog {
  background: #111;
  border-color: #444;
}
dialog::backdrop { background: #000; }
.quiet, .icon-btn, .state, .insight, .metric {
  background: #171717;
  border-color: #333;
}
.followup { background: #111; }
.followup input { background: #090909; }

.search input::placeholder { color: #d3d3d3; opacity: 1; }

.plot-average { color: #d7bcff; }

.research-panel { margin-bottom: 18px; }
.research-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(142px,1fr)); gap: 10px; margin: 14px 0; }
.research-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.research-fields input { width: 100%; min-width: 0; padding: 9px; background: #101010; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.research-toggle { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.research-toggle input { accent-color: var(--accent); }
.research-results { margin-top: 12px; }

/* Keep the search and tab controls visible while the results scroll. */
#hud { overflow: hidden; }
.hud-shell { max-height: calc(100dvh - 42px); }
.hud-shell > .hud-head, .hud-shell > .tabs, .hud-shell > .followup { flex: 0 0 auto; }
.hud-head h2 { overflow-wrap: anywhere; letter-spacing: -.035em; }
.hud-question { line-height: 1.45; }
.hud-shell > .content { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.hud-shell > .followup { position: static; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 6px; overflow: visible; padding-bottom: 8px; }
.tabs button { min-height: 48px; padding: 8px 10px; border: 1px solid #333; border-radius: 9px; background: #171717; color: #eee; text-align: left; font-weight: 650; white-space: normal; line-height: 1.25; }
.tabs button[aria-selected=true] { background: #102217; color: #e9ffef; border-color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.tab-hint { display: block; margin-top: 3px; color: #bbb; font-size: 12px; font-weight: 400; }
.section-title { font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.caption, small.caption { font-size: 14px; line-height: 1.55; }
.state p, .insight p { font-size: 15px; }
.metric h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.metric .value { line-height: 1.25; }
.metric p { color: #d3d3d3; font-size: 14px; }
.metric .metric-period { margin-top: 12px; font-size: 13px; color: #bcbcbc; }
.filing-source { display: inline-block; margin-top: 4px; color: #8debb0; font-size: 12px; line-height: 1.5; text-underline-offset: 3px; }
.results-disclosure { margin-top: 12px; padding: 11px 14px; border: 1px solid #383838; border-radius: 10px; background: #141414; }
.results-disclosure summary { cursor: pointer; padding: 5px 0; }
.results-disclosure summary .caption { display: block; margin: 3px 0 0 16px; }
.facts-overview > .section-title, .content > section:first-child > .section-title { margin-top: 0; }
.source-picker { display: grid; gap: 4px; color: #d5d5d5; font-size: 13px; }
.actions { align-items: end; }
.actions > .soft, .actions select, .hud-controls button { min-height: 40px; }
.news-item a { color: #a1ebba; line-height: 1.45; }
.research-fields label, .research-toggle { font-size: 14px; color: #d5d5d5; }
@media (max-width: 620px) {
  .tabs { grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tab-hint { display: none; }
  .hud-shell { max-height: calc(100dvh - 20px); }
  .analysis-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .filing-cards, .research-results .cards { grid-template-columns: 1fr; }
  .hud-head { gap: 8px; padding-top: 14px; }
  .content { padding-top: 14px; }
}

.input-hint { font-size: 12px; line-height: 1.4; color: #bcbcbc; }

.tone-green { --tone:#80e4a4; --tone-bg:#15271b; }
.tone-gold { --tone:#ffd17b; --tone-bg:#302616; }
.tone-teal { --tone:#8ce2ca; --tone-bg:#18302b; }
.tone-purple { --tone:#d9baff; --tone-bg:#271d36; }
.ui-icon { flex: none; }
.icon-badge { display:inline-grid; width:34px; height:34px; flex:none; place-items:center; border-radius:10px; color:var(--tone); background:var(--tone-bg); }
.icon-badge .ui-icon { width:18px; height:18px; }
.examples button { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:5px 10px 5px 6px; color:#ececec; font-size:13px; }
.examples button .icon-badge { width:24px; height:24px; margin:0; color:var(--tone); border-radius:7px; }
.examples button .icon-badge .ui-icon { width:15px; height:15px; }
.examples button > span:last-child { color:#b0b0b0; }
.tabs { gap:7px; padding-bottom:12px; }
.tabs button { display:flex; gap:8px; align-items:center; padding:10px 8px; min-width:0; background:#151515; }
.tabs button[aria-selected=true] { color:#fff; border-color:var(--accent); background:#132219; box-shadow:inset 0 -2px var(--accent); }
.tabs button:focus-visible { outline-offset:2px; }
.tabs .icon-badge { width:30px; height:30px; border-radius:8px; }
.tab-copy { min-width:0; }
.tab-label { font-size:13px; }
.tab-hint { color:#c5c5c5; font-size:11px; }
.section-title { font-weight:720; letter-spacing:-.018em; }
.facts-overview { margin-bottom:18px; }
.metric { background:#161616; border-color:#353535; padding:14px; }
.metric-heading { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.metric-heading .icon-badge { width:29px; height:29px; border-radius:8px; }
.metric-heading .icon-badge .ui-icon { width:16px; height:16px; }
.metric .value { font-size:clamp(20px,3vw,26px); letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.facts-overview .metric { border-top:2px solid var(--tone); }
.results-disclosure summary:has(.disclosure-copy) { display:flex; gap:10px; align-items:center; list-style:none; }
.results-disclosure summary:has(.disclosure-copy)::-webkit-details-marker { display:none; }
.results-disclosure .disclosure-copy { flex:1; min-width:0; }
.results-disclosure summary .disclosure-copy .caption { margin:2px 0 0; }
.results-disclosure summary > .ui-icon { width:16px; color:#bbb; }
.results-disclosure[open] summary > .ui-icon { transform:rotate(90deg); }
.analysis-head { align-items:center; }
.analysis-head > .icon-badge { width:40px; height:40px; }
.analysis-head > div { flex:1; min-width:0; }
.section-with-icon { display:flex; align-items:center; gap:9px; }
@media (max-width:740px) {
  .tab-hint { display:none; }
}
@media (max-width:620px) {
  .analysis-head > .soft { margin-left:48px; }
  .tabs button { min-height:45px; padding:6px 8px; }
}

.news-section {border:1px solid #26392e;border-radius:15px;background:#101a15;padding:17px;margin-bottom:12px}
.news-heading {display:flex;align-items:center;gap:10px}
.news-heading h3 {margin:0;font-size:17px;letter-spacing:-.018em}
.news-detail {margin:7px 0 11px;color:#b6c4bc;font-size:13px;line-height:1.5}
.news-stack:empty {display:none}
.news-item {padding:12px 2px;border-bottom-color:#293a31}
.news-item:last-child {border-bottom:0}
.news-item a {display:inline-block;color:#f0f7f3;font-size:15px;overflow-wrap:anywhere}
.news-item a:hover {color:#a1ebba}
.news-meta {display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;margin-top:7px;color:#aabcb1;font-size:12px}
.news-publisher {border-radius:5px;background:#1c3028;color:#acdebf;padding:3px 7px}
.news-status {margin:9px 0;color:#b6c4bc;font-size:12px;line-height:1.55}
.news-section > a,.news-widget > a {display:inline-block;margin-top:8px;font-size:13px}
@media(max-width:500px) {.news-section{padding:12px}.news-item a{font-size:14px}}

.news-more summary {padding:8px 2px;cursor:pointer;color:#a1ebba;font-size:13px}

.overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.overview-card { min-width:0; align-self:stretch; padding:16px; border-radius:15px; border:1px solid #2e3932; background:#151a17; }
.overview-body { margin-top:10px; }
.overview-body > p { margin:6px 0; }
.overview-venue { font-size:13px; font-weight:650; color:#b6c9bd; overflow-wrap:anywhere; }
.overview-value { display:block; margin:5px 0; font-size:clamp(18px,3vw,30px); letter-spacing:-.035em; overflow-wrap:anywhere; }
.overview-guide { margin-top:9px; }
.overview-guide summary { cursor:pointer; color:#a1ebba; font-size:13px; text-underline-offset:4px; }
.overview-guide[open] summary { text-decoration:underline; }
.overview-guide + button { margin-top:10px; }
.overview-levels, .overview-actions { display:grid; gap:7px; }
.overview-levels:not(:empty) { margin-top:10px; }
.overview-action, .overview-level { min-height:42px; border:1px solid #33483c; border-radius:8px; background:#161f1a; text-align:left; }
.overview-action:hover, .overview-level:hover { border-color:var(--accent); background:#1b2b21; }
.overview-action { display:grid; grid-template-columns:18px minmax(0,1fr) 16px; align-items:center; gap:9px; padding:8px 10px; font-size:14px; }
.overview-action svg { width:16px; height:16px; color:#9be1b4; }
.overview-level { display:grid; gap:4px; padding:9px; }
.overview-level strong { font-size:17px; }
.overview-level-link { font-size:12px; color:#a1ebba; }
.overview-card .news-item { padding:4px 0 9px; }
@media(max-width:650px) {
  .overview-grid { grid-template-columns:1fr; gap:9px; }
  .overview-card { padding:13px; }
}
@media(max-width:390px) {
  .tabs button { gap:5px; font-size:12px; }
  .tabs button .icon-badge { width:22px; height:22px; }
}

.search-area { position:relative; }
.search-suggestions { position:absolute; inset:calc(100% + 5px) 0 auto; z-index:2; padding:6px; border:1px solid #33473b; border-radius:13px; background:#121713; box-shadow:0 10px 30px #000b; text-align:left; }
.search-suggestions button { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:center; width:100%; min-height:43px; padding:7px 10px; border:1px solid transparent; background:transparent; border-radius:8px; text-align:left; font-size:14px; }
.search-suggestions button:hover, .search-suggestions button:focus-visible { border-color:var(--accent); background:#1a2920; outline-offset:0; }
.search-suggestions button strong { overflow-wrap:anywhere; }
.search-suggestions button span { color:#afd1bc; font-size:12px; }
@media(max-width:620px) {
  .tabs:has(#result-tab-overview) { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(min-width:621px) and (max-width:850px) {
  .tabs:has(#result-tab-fundamentals) button { flex-direction:column; justify-content:center; padding:6px 3px; gap:4px; text-align:center; font-size:12px; }
  .tabs:has(#result-tab-fundamentals) .icon-badge { width:24px; height:24px; }
  .tabs:has(#result-tab-fundamentals) .tab-hint { display:none; }
}

.market-read { margin:12px 0; padding:14px; border:1px solid #2d4035; border-radius:13px; background:#141b17; }
.timeframe-table { width:100%; border-collapse:collapse; margin:12px 0; font-size:14px; table-layout:fixed; }
.timeframe-table thead { color:#bfcdc5; background:#1a2720; }
.timeframe-table th,.timeframe-table td { padding:10px 6px; text-align:left; border-bottom:1px solid #2a3a31; vertical-align:top; overflow-wrap:anywhere; }
.timeframe-table th:first-child { width:26%; }
.timeframe-table td .caption { display:block; font-size:11px; }
.session-read { padding-top:8px; }
.session-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:8px; margin:8px 0 14px; }
.session-stats > div { padding:9px; background:#19251e; border-radius:8px; }
.session-stats dt { margin-bottom:4px; color:#b9c8bf; font-size:12px; }
.session-stats dd { margin:0; font-weight:650; overflow-wrap:anywhere; }

.stock-chart-heading { flex-wrap:wrap; }
.delay-label { display:inline-flex; width:max-content; padding:4px 8px; border:1px solid #735729; border-radius:6px; color:#ffdb94; background:#302616; font-size:12px; line-height:1.25; font-weight:700; }
.stock-chart-symbol { color:#e7f1ea; font-size:14px; overflow-wrap:anywhere; }
.stock-chart-controls > p { margin:8px 0; }
.stock-widget-caption { display:flex; align-items:center; gap:9px; margin:14px 0 8px; }
.stock-widget-caption h4 { margin:0; font-size:14px; }

.heatmap-panel > p { margin:8px 0; }
.heatmap-panel .tv-slot { margin-top:12px; }
.heatmap-legend { display:flex; flex-wrap:wrap; gap:6px; font-size:12px; }
.heatmap-legend span { padding:3px 8px; border-radius:5px; font-weight:650; }
.heatmap-up { color:#a9e8c0; background:#1b3a2a; }
.heatmap-down { color:#ffc5bb; background:#472c2b; }
.tv-slot.quote-slot { height:185px; min-height:0; margin-top:8px; }
.analysis-head [role=status] + button:not([hidden]) { margin-top:8px; }

.trend-chip {
  display:inline-flex; align-items:center; gap:5px; width:max-content; max-width:100%;
  border:1px solid var(--trend-edge,#3e4742); border-radius:999px; padding:3px 8px;
  background:var(--trend-bg,#222a26); color:var(--trend-color,#e3ebe6);
  font-size:12px; font-weight:700; line-height:1.4;
}
.trend-chip[data-direction=Upward] { --trend-color:#83e3a9; --trend-bg:#193428; --trend-edge:#355d47; }
.trend-chip[data-direction=Downward] { --trend-color:#ffad9e; --trend-bg:#3c2525; --trend-edge:#673d36; }
.trend-chip[data-direction=Sideways] { --trend-color:#ffd17b; --trend-bg:#3b2d1b; --trend-edge:#615032; }
.price-sparkline { display:block; width:min(108px,100%); height:auto; margin:5px 0 3px; }
.overview-trend:not(:empty) { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:10px; }
.overview-trend .price-sparkline { width:min(150px,100%); margin:0; }
.overview-level-heading { display:flex; align-items:center; gap:6px; font-weight:650; }
.overview-level-heading .icon-badge { width:25px; height:25px; border-radius:7px; }
.overview-level-heading .ui-icon { width:15px; height:15px; }
.timeframe-table th:nth-child(2) { width:37%; }
.timeframe-table td:last-child { font-variant-numeric:tabular-nums; }
.flow-visual,.filing-margin { padding:14px; border:1px solid #374943; border-radius:12px; background:#1b2521; }
.flow-summary,.flow-values { display:flex; justify-content:space-between; gap:8px; align-items:center; flex-wrap:wrap; }
.flow-summary > span { font-size:13px; color:#cfddd5; }
.flow-meter,.margin-meter { display:block; width:100%; height:14px; appearance:none; border:0; border-radius:999px; overflow:hidden; }
.flow-meter { margin:10px 0 8px; background:#e88475; }
.flow-meter::-webkit-meter-bar { background:#e88475; border:none; border-radius:999px; height:100%; }
.flow-meter::-webkit-meter-optimum-value { background:#45cd84; border-radius:0; }
.flow-meter::-moz-meter-bar { background:#45cd84; }
.flow-values strong,.flow-values .caption { display:block; }
.flow-buy { color:#83e3a9; }
.flow-sell { color:#ffad9e; margin-left:auto; text-align:right; }
.filing-margin { margin:12px 0; }
.filing-margin-value { display:block; margin:8px 0; font-size:clamp(23px,4vw,36px); color:#8ce2ca; line-height:1.1; }
.filing-margin-value[data-loss=true] { color:#ffad9e; }
.margin-meter { max-width:420px; height:10px; background:#304b40; }
.margin-meter::-webkit-meter-bar { background:#304b40; border:none; border-radius:999px; height:100%; }
.margin-meter::-webkit-meter-optimum-value { background:#59d9b5; }
.margin-meter::-moz-meter-bar { background:#59d9b5; }
.filing-margin p { margin:7px 0 0; }
@media(max-width:430px) {
  .timeframe-table { font-size:12px; }
  .timeframe-table th,.timeframe-table td { padding:8px 4px; }
  .flow-visual,.filing-margin { padding:10px; }
}

.hud-controls .hud-quote { color:#adf3c4; border-color:#326647; background:#14251a; }
.hud-controls .hud-quote[hidden] { display:none; }
.overview-card:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
@media(max-width:480px) {
  .hud-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; max-width:140px; }
  .hud-controls #privacy { grid-row:1; grid-column:1; padding-inline:8px; }
  .hud-controls #close-hud { grid-row:1; grid-column:2; }
  .hud-controls .hud-quote { grid-row:2; grid-column:1 / -1; justify-content:center; }
}
.actions button[aria-pressed=true] { border-color:var(--accent); color:#a1ebba; background:#163021; }
.news-title { margin:0; color:#f0f7f3; font-size:15px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; }
.source-details { margin-top:7px; color:#adbbb3; font-size:12px; }
.source-details summary { width:max-content; max-width:100%; cursor:pointer; }
.source-details .actions { margin-top:6px; }
.source-details a { color:#a1ebba; }
/* Beginner reading flow: one idea per section, details on demand. */
.overview-grid { grid-template-columns:1fr; gap:18px; }
.overview-card { padding:22px; }
.overview-card h3,.market-read h3 { font-size:20px; line-height:1.35; }
.overview-body > .caption,.market-read > .caption { max-width:68ch; line-height:1.65; }
.overview-levels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.overview-level { text-align:left; padding:18px; }
.overview-level strong { font-variant-numeric:tabular-nums; }
.overview-level-chart .tv-slot { height:400px; min-height:400px; }
.timeframe-cards { display:grid; gap:10px; margin:18px 0 24px; }
.timeframe-card { border:1px solid #303030; border-radius:16px; background:#0b0b0b; overflow:hidden; }
.timeframe-card > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; cursor:pointer; list-style:none; }
.timeframe-card > summary::-webkit-details-marker { display:none; }
.timeframe-card > summary::after { content:'+'; color:#aaa; font-size:20px; }
.timeframe-card[open] > summary::after { content:'−'; }
.timeframe-direction { margin-left:auto; }
.timeframe-body { padding:0 18px 18px; display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px 20px; }
.timeframe-body .price-sparkline { width:150px; align-self:center; }
.trend-reason p,.timeframe-volume p { margin:6px 0 0; line-height:1.65; font-size:14px; }
.trend-reason strong,.timeframe-volume strong { font-size:13px; color:#c6cec8; }
.timeframe-volume,.timeframe-body > .caption { grid-column:1 / -1; padding-top:12px; border-top:1px solid #262626; margin:0; }
.chart-numbers > summary { padding:16px 0; cursor:pointer; font-weight:600; }
.chart-numbers .cards { margin-top:8px; }
.reading-guide { margin:16px 0; padding:20px; border:1px solid #303030; border-radius:16px; background:#0b0b0b; }
.reading-guide h4 { margin:0 0 8px; font-size:18px; }
.signal-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.signal-guide-card { padding:16px; border:1px solid #303030; border-radius:12px; }
.signal-guide-card[data-direction=Upward] strong { color:#83e3a9; }
.signal-guide-card[data-direction=Downward] strong { color:#ffad9e; }
.signal-guide-card[data-direction=Sideways] strong { color:#ffd17b; }
.signal-guide-card p { margin:9px 0 0; line-height:1.65; }
@media(max-width:650px) {
  .overview-card { padding:17px; }
  .overview-levels,.signal-guide-grid { grid-template-columns:1fr; }
  .timeframe-body { grid-template-columns:1fr; }
  .timeframe-card > summary { padding:15px 12px; gap:8px; }
  .timeframe-card .trend-chip { font-size:12px; }
  .overview-level-chart .tv-slot { height:430px; }
}

.level-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:650px) { .level-metrics { grid-template-columns:1fr; } }
.data-delay { display:inline-block; max-width:100%; margin:6px 0; }
.data-delay > summary { display:inline-flex; align-items:center; gap:7px; cursor:pointer; list-style:none; }
.data-delay > summary::after { content:'ⓘ'; font-size:12px; }
.data-delay > summary::-webkit-details-marker { display:none; }
.data-delay > p { max-width:46ch; margin:10px 0 4px; line-height:1.6; }
.data-delay[open] { flex-basis:100%; }
.stock-chart-heading { flex-wrap:wrap; }
.overview-level-chart .data-delay { margin-bottom:12px; }

.level-view-controls { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin:12px 0; }
.level-view-controls .source-picker { margin:0 0 0 auto; }
.level-view-controls button[aria-pressed=true] { border-color:#00A145; background:#14271b; color:#dbf4e3; }
.level-view-note { margin:8px 0 12px; }
.level-chart-view > .overview-guide { margin:12px 0; }
@media(max-width:650px) { .level-view-controls .source-picker { width:100%; margin:0; } }

.chart-timeframes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:14px 0; }
.chart-timeframes button { min-height:42px; padding:9px 5px; }
.chart-timeframes button[aria-pressed=true] { background:#14271b; color:#e5f8ec; border-color:#00A145; }

.plot-range { color:#a4aaa4; }
.plot-legend .plot-range::before { border-color:#929992; border-top-style:dashed; }

.icon-badge.tone-gray { color:#b2b8b2; background:#292d29; border-color:#4d544d; }

.tone-gray { --tone:#b2b8b2; --tone-bg:#292d29; }
.plot-legend .plot-support::before,.plot-legend .plot-resistance::before { border-top-style:solid; border-top-width:2px; }

.level-evidence { display:grid; gap:10px; margin:12px 0; }
.level-evidence dt { color:#a9b4ad; font-size:12px; margin-bottom:3px; }
.level-evidence dd { margin:0; color:#e3ede6; font-size:13px; line-height:1.5; }

.pivot-reference-toggle {display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;padding:8px 0;}
.pivot-reference-toggle input {width:18px;height:18px;accent-color:#00A145;}

.setting[hidden] {display:none;}

.hourly-status {color:#c3d4c7;border:1px solid #334b3b;background:#111b14;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.6;margin:0 0 16px;}
.hourly-status + section > .market-read:first-child {margin-top:0;}

.stock-embed {width:100%;border:1px solid #2a3d30;border-radius:12px;display:block;background:#000;margin:12px 0;}
.stock-embed-quote {height:285px;}
.stock-embed-chart {height:470px;}
.stock-embed-signals {height:430px;}

.stock-level-key {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;}
.stock-level-key>div {border:1px solid #5b462c;border-radius:10px;background:#17130d;padding:12px;}
.stock-level-key strong {display:block;color:#ffc374;font-size:14px;margin-bottom:5px;}
.stock-level-key span {display:block;}

@media(max-width:720px){.stock-embed-chart{height:350px;}}

/* Restore the visual navigation without adding a data request per view. */
.icon-action {display:inline-flex;align-items:center;gap:9px;text-align:left;}
.examples .icon-action {padding:8px 12px;}
.examples .icon-badge {width:25px;height:25px;border-radius:8px;}
.examples .icon-badge .ui-icon {width:16px;height:16px;}
.section-heading {display:flex;gap:10px;align-items:center;margin:14px 0 10px;}
.section-heading h3 {margin:0;font-size:19px;line-height:1.35;}
.section-heading>.icon-badge {width:34px;height:34px;border-radius:10px;flex:none;}
.instrument-tile>.icon-badge {margin-bottom:9px;}
.market-categories {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 16px;}
.market-categories button {justify-content:center;min-height:48px;padding:8px 5px;}
.market-categories [aria-pressed=true],.heatmap-periods [aria-pressed=true] {background:#14271b;border-color:#00A145;color:#e7ffed;}
.heatmap-periods {display:flex;gap:8px;flex-wrap:wrap;margin:12px 0;}
.heatmap-reading-key {display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;}
.heatmap-reading-key>span {padding:6px 10px;border-radius:8px;font-size:13px;}
.heatmap-flat {color:#d4dbd6;background:#242b26;}
.market-heatmap {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0;}
.heat-tile {border:1px solid #425548;min-width:0;min-height:150px;border-radius:12px;padding:13px;text-align:left;color:#e5f6e9;background:#16251a;transition:border-color .15s,transform .15s;}
.heat-tile:hover {border-color:#d2eddb;transform:translateY(-2px);}
.heat-tile:focus-visible {outline:3px solid #d2eddb;outline-offset:3px;}
.heat-tile-label {display:flex;align-items:center;gap:7px;line-height:1.2;overflow-wrap:anywhere;}
.heat-tile-label .ui-icon {width:16px;height:16px;flex:none;}
.heat-name {display:block;color:#d1ded5;font-size:12px;min-height:30px;margin-top:7px;}
.heat-change {display:block;font-size:23px;letter-spacing:-.04em;margin:7px 0;}
.heat-price {display:block;font-size:12px;color:#d3e0d6;overflow-wrap:anywhere;}
.heat-up {background:#143e26;border-color:#2b7850;}.heat-up.heat-strength-1 {background:#172f20;}.heat-up.heat-strength-3 {background:#155432;}.heat-up.heat-strength-4,.heat-up.heat-strength-5 {background:#14623a;}
.heat-down {background:#482222;border-color:#985752;}.heat-down.heat-strength-1 {background:#322020;}.heat-down.heat-strength-3 {background:#5c2726;}.heat-down.heat-strength-4,.heat-down.heat-strength-5 {background:#712b29;}
.heat-flat,.heat-missing {background:#222824;border-color:#49524b;}.heat-missing .heat-price {color:#c8ceca;}
.stock-embed-heatmap {height:570px;}
.guide-note {border-left:3px solid #00A145;padding:10px 13px;background:#111a14;color:#c8dbce;border-radius:0 8px 8px 0;line-height:1.6;font-size:13px;}
.guide-steps {display:grid;gap:12px;}
.guide-step {position:relative;padding:14px 16px;border:1px solid #343d36;border-radius:14px;background:#111713;}
.guide-step .section-heading {margin:0 30px 10px 0;}
.step-number {position:absolute;right:14px;top:14px;color:#8acda1;font-size:20px;font-weight:750;}
.beginner-hint summary {display:flex;align-items:center;gap:9px;}
.beginner-hint ol {padding-left:22px;line-height:1.7;color:#cbd8ce;font-size:14px;}
.stock-level-key>.icon-badge {margin-bottom:7px;}
@media(max-width:560px){.market-heatmap{grid-template-columns:repeat(2,minmax(0,1fr));}.heat-tile{min-height:145px;}.market-categories .icon-badge{width:22px;height:22px;}.market-categories button{gap:5px;font-size:12px;}.stock-embed-heatmap{height:540px;}}
