:root {
  color-scheme: only light;
  --bg: #f6f4ef;
  --panel: #ffffff;
  --panel-hi: #fbfaf7;
  --border: rgba(43, 52, 61, .12);
  --border-hi: rgba(43, 52, 61, .2);
  --text: #252a31;
  --muted: #586574;
  --subtle: #67717d;
  --accent: #b44718;
  --blue: #496f94;
  --positive: #216f53;
  --caution: #8f6000;
  --negative: #a0443c;
  --amber: var(--caution);
  --rose: var(--negative);
  --sans: "DM Sans", Inter, system-ui, sans-serif;
  --display: "Manrope", "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background-image: linear-gradient(rgba(86, 105, 124, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(86, 105, 124, .055) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(to bottom, black, transparent 76%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(2280px, calc(100% - clamp(40px, 4.5vw, 108px))); margin-inline: auto; }
.ambient { position: fixed; pointer-events: none; filter: blur(105px); border-radius: 100%; z-index: -1; opacity: .16; }
.ambient-one { width: 460px; height: 300px; top: 100px; left: -260px; background: #e9b18d; }
.ambient-two { width: 480px; height: 350px; right: -330px; top: 420px; background: #a2bad4; opacity: .12; }

.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.navigation-topbar { justify-content: flex-start; gap: clamp(24px, 3vw, 48px); padding-inline: 32px; }
.navigation-topbar .header-account { margin-left: auto; }
.brand { display: inline-flex; flex: 0 1 246px; align-items: center; width: 246px; min-width: 0; }
.brand-logo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; mix-blend-mode: multiply; }
.topnav { display: flex; gap: clamp(20px, 2.2vw, 34px); height: 82px; align-items: center; }
.topnav a { font-size: 16.6px; color: #465461; transition: color .15s ease; }
.topnav a:hover { color: var(--accent); }
.domain-chip { color: #465461; font: 400 13.8px var(--mono); border: 1px solid var(--border); border-radius: 999px; padding: 10px 13px; transition: border-color .15s ease, color .15s ease; }
.domain-chip span { color: var(--accent); margin-left: 4px; }
.domain-chip:hover { color: var(--accent); border-color: rgba(244,122,53,.4); }
.header-account { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; white-space: nowrap; }
.account-chip { max-width: 210px; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; padding: 9px 12px; background: transparent; color: #47535e; font: 400 12.4px var(--mono); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.account-chip:hover { border-color: rgba(244,122,53,.4); color: var(--accent); }
.account-avatar { display: inline-grid; flex: 0 0 40px; width: 40px; height: 40px; max-width: 40px; place-items: center; padding: 0; border-color: rgba(180,71,24,.24); background: linear-gradient(145deg, rgba(180,71,24,.12), rgba(73,111,148,.08)); color: #394652; font: 700 13px/1 var(--sans); letter-spacing: 0; text-align: center; }
.account-avatar:hover { background: linear-gradient(145deg, rgba(180,71,24,.18), rgba(73,111,148,.12)); }
#logoutButton.account-chip { border-color: rgba(37,42,49,.38); background: rgba(255,255,255,.9); color: #252a31; font-weight: 600; }
#logoutButton.account-chip:hover { border-color: rgba(180,71,24,.58); background: rgba(180,71,24,.07); color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); gap: clamp(28px, 4vw, 80px); align-items: center; min-height: 320px; padding: 34px 32px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero-watermark { position: absolute; z-index: 0; top: 50%; right: clamp(24px, 5vw, 68px); width: clamp(220px, 22vw, 320px); aspect-ratio: 1; object-fit: contain; opacity: .075; mix-blend-mode: multiply; transform: translateY(-50%); pointer-events: none; user-select: none; }
body[data-member="true"] .hero-watermark { width: clamp(180px, 15vw, 270px); }
.rotating-headline .headline-line { display: block; min-height: 1.08em; transition: opacity .2s ease, transform .2s ease; }
.rotating-headline.is-changing .headline-line { opacity: 0; transform: translateY(6px); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px rgba(33,111,83,.1), 0 0 13px rgba(33,111,83,.3); }
.hero h1 { margin: 0 0 20px; font: 700 clamp(40px, 4.2vw, 80px)/1.04 var(--display); letter-spacing: clamp(-4px, -.04em, -1.4px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 1050px; margin: 0; color: #52606e; font-size: clamp(16.5px, 1.05vw, 20.5px); line-height: 1.8; }
.hero-signin-card { width: 100%; padding: 22px 24px 17px; border: 1px solid var(--border-hi); border-radius: 11px; background: linear-gradient(145deg, #ffffff, #fbf9f5); box-shadow: 0 18px 45px rgba(43,52,61,.11), inset 0 1px rgba(255,255,255,.8); position: relative; z-index: 1; }
.hero-signin-heading h2 { margin: 0 0 6px; font: 700 28.9px/1.2 var(--display); letter-spacing: -.6px; }
.hero-signin-heading p { margin: 0 0 15px; color: #515c67; font-size: 15.1px; line-height: 1.55; }
.hero-signin-card .auth-notice { margin: 0 0 11px; }
.hero-signin-card .auth-form { gap: 9px; }
.hero-signin-card .auth-field { gap: 5px; font-size: 12.4px; }
.hero-signin-card .auth-field input { min-height: 38px; }
.hero-signin-card .auth-submit { min-height: 40px; }
.hero-signin-card .auth-links { margin-top: 5px; }
body[data-member="true"] .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 16px; }

.ticker-tools { min-height: 82px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; border-bottom: 1px solid var(--border); }
.ticker-search { position: relative; flex: 0 1 279px; width: 279px; }
.ticker-form { display: flex; align-items: center; width: 100%; height: 34.4px; border: 1px solid var(--border-hi); border-radius: 5.7px; background: #fbfaf8; overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease; }
.ticker-form:focus-within { border-color: rgba(244,122,53,.6); box-shadow: 0 0 0 3px rgba(244,122,53,.08); }
.ticker-form label { padding-left: 11.5px; color: var(--accent); font-size: 26px; line-height: 0; transform: rotate(-20deg); }
.ticker-form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 14.7px var(--mono); padding: 0 6.6px; }
.ticker-form input::placeholder { color: #586774; font: 400 11.3px var(--mono); text-transform: none; }
.search-submit { align-self: stretch; border: 0; border-left: 1px solid var(--border); padding: 0 9.8px; background: rgba(244,122,53,.08); color: var(--accent); font: 500 10.2px var(--mono); letter-spacing: .57px; cursor: pointer; }
.search-submit span { margin-left: 4.1px; }
.ticker-suggestions { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; max-height: 300px; overflow: auto; padding: 5px; border: 1px solid var(--border-hi); border-radius: 7px; background: #fffdfa; box-shadow: 0 14px 35px rgba(36,44,52,.16); }
.ticker-suggestions.hidden { display: none; }
.ticker-search-feedback { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border-hi); border-radius: 7px; background: #fffdfa; box-shadow: 0 14px 35px rgba(36,44,52,.16); color: #4a5661; font-size: 13.8px; line-height: 1.55; }
.ticker-search-feedback.hidden { display: none; }
.ticker-search-feedback a { color: var(--accent); font-size: 12.4px; font-weight: 600; text-decoration: none; }
.ticker-search-feedback a:hover { text-decoration: underline; }
.ticker-suggestion { display: flex; width: 100%; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-radius: 4px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.ticker-suggestion:hover, .ticker-suggestion.active { background: rgba(244,122,53,.1); }
.ticker-suggestion b { min-width: 48px; color: var(--accent); font: 500 13.8px var(--mono); }
.ticker-suggestion span { min-width: 0; flex: 1; overflow: hidden; color: #343f49; font-size: 13.8px; text-overflow: ellipsis; white-space: nowrap; }
.ticker-suggestion small { color: #596673; font: 400 12.4px var(--mono); white-space: nowrap; }
.watchlist { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.market-leaders-group { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 9px; }
.watchlist-message { color: var(--muted); font-size: 12px; }
.watchlist button, .range-tabs button { border: 1px solid transparent; border-radius: 5px; padding: 7px 9px; background: transparent; color: #4d5b68; font: 500 12.4px var(--mono); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.watchlist button:hover, .watchlist button.active { color: var(--accent); border-color: rgba(244,122,53,.18); background: rgba(244,122,53,.06); }
.favorite-stocks { flex: 0 1 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 0 5px; }
.favorite-stock-item { display: inline-flex; overflow: hidden; border: 1px solid rgba(244,122,53,.22); border-radius: 6px; background: rgba(244,122,53,.045); }
.favorite-stock-button, .favorite-remove { min-height: 36px; border: 0; color: #394652; background: transparent; cursor: pointer; }
.favorite-stock-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; font: 600 13.8px var(--mono); }
.favorite-stock-pin { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.favorite-stock-button:hover { color: var(--accent); background: rgba(244,122,53,.08); }
.favorite-remove { width: 34px; border-left: 1px solid rgba(244,122,53,.16); color: #65717c; font-size: 19.3px; }
.favorite-remove:hover { color: var(--rose); background: rgba(162,61,55,.06); }
.favorite-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 6px; color: #4d5b68; background: transparent; font: 600 13.8px var(--sans); cursor: pointer; transition: color .15s, background .15s; }
.favorite-toggle:hover, .favorite-toggle[aria-pressed="true"] { color: var(--accent); background: rgba(244,122,53,.07); }
.favorite-toggle-pin { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.favorite-toggle[aria-pressed="true"] .favorite-toggle-pin { fill: currentColor; }
.favorite-toggle:disabled, .favorite-remove:disabled { cursor: wait; opacity: .65; }
.data-status { margin-left: auto; display: flex; align-items: center; color: var(--muted); font: 400 12.4px var(--mono); }
.data-status .status-dot { width: 6px; height: 6px; background: var(--caution); box-shadow: 0 0 0 4px rgba(143,96,0,.1); }
.data-status.ready .status-dot { background: var(--positive); box-shadow: 0 0 0 4px rgba(33,111,83,.1); }
.data-status.error .status-dot { background: var(--negative); box-shadow: 0 0 0 4px rgba(160,68,60,.1); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(310px, .92fr); gap: 15px; padding-top: 19px; }
#marketContextPanel .compact-heading, #earningsDriftPanel .compact-heading, #headlines .compact-heading { justify-content: center; text-align: center; }
body:not([data-member="true"]) .news-panel { grid-column: 1 / -1; }
.panel { border: 1px solid var(--border); border-radius: 11px; background: var(--panel); box-shadow: 0 15px 50px rgba(0,0,0,.09); transition: transform .28s cubic-bezier(.2,.7,.25,1), box-shadow .28s ease, border-color .28s ease; animation: card-arrive .5s cubic-bezier(.2,.7,.25,1) both; }
.price-panel, .factors-panel, .outlook-panel, .news-panel { padding: 23px 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel h2 { margin: 0; font: 650 24.8px var(--display); letter-spacing: -.6px; }
.price-title-actions { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-start; gap: 10px 14px; }
.price-heading h2 { min-width: 0; }
.price-block { text-align: right; padding-top: 1px; }
.price-value { display: block; font: 650 34.4px/1.15 var(--display); letter-spacing: -.9px; }
.price-change { display: inline-block; margin-top: 5px; color: var(--muted); font: 500 12.4px var(--mono); }
.price-change.up { color: var(--positive); }.price-change.down { color: var(--negative); }.price-change.neutral { color: var(--caution); }
.chart-meta { margin-top: 27px; display: flex; align-items: center; justify-content: flex-end; color: #5e6c79; font: 400 12.4px var(--mono); }
.range-tabs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--border); background: #f5f6f7; border-radius: 5px; }
.range-tabs button { padding: 5px 8px; font-size: 12.4px; }.range-tabs button.selected { color: var(--text); background: #e9eef2; border-color: rgba(255,255,255,.04); }
.quote-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; margin: 10px 0 5px; }
.quote-stats > div { min-width: 0; display: grid; gap: 3px; padding: 7px 8px; border: 1px solid rgba(43,55,67,.1); border-radius: 5px; background: rgba(255,255,255,.66); text-align: center; }
.quote-stats > div > * { max-width: 100%; text-align: center; }
.quote-stats > div span, .volume-section > span { color: #65717d; font: 500 10.5px var(--mono); letter-spacing: .4px; text-transform: uppercase; }
.quote-stats > div b { overflow: hidden; color: #303b45; font: 500 12.4px var(--mono); text-overflow: ellipsis; }
.chart-shell { height: 236px; position: relative; margin: 5px 0 0; }
#priceChart { width: 100%; height: 100%; overflow: visible; cursor: crosshair; touch-action: manipulation; }
#priceChart:focus-visible { outline: 2px solid rgba(73,111,148,.45); outline-offset: 2px; }
.chart-point-tooltip { box-sizing: border-box; position: absolute; z-index: 3; width: min(280px, calc(100% - 16px)); min-width: min(220px, calc(100% - 16px)); max-width: 280px; padding: 8px 11px; border: 1px solid rgba(43,52,61,.2); border-radius: 6px; background: rgba(255,255,255,.97); color: #303a42; box-shadow: 0 8px 24px rgba(36,44,52,.14); font: 600 13.8px/1.35 var(--sans); pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); white-space: pre-line; overflow-wrap: break-word; word-break: normal; text-align: left; }
.chart-point-tooltip.forecast { box-sizing: border-box; width: min(330px, calc(100% - 16px)); max-width: 330px; padding: 12px 14px; font-size: 14.4px; font-weight: 500; line-height: 1.5; text-align: left; white-space: pre-line; }
.chart-point-tooltip.below { transform: translate(-50%, 10px); }
.chart-forecast-hit { cursor: pointer; }
#priceChart .chart-forecast-hit[role="button"]:focus-visible { fill: rgba(244,122,53,.1); stroke: #303a42; stroke-width: 2; outline: none; }
.chart-message { position: absolute; inset: 0; display: grid; place-items: center; color: #586774; font: 400 13.8px var(--mono); pointer-events: none; }
.chart-message.hidden { display: none; }
.volume-section { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 8px; align-items: end; margin: 2px 0 7px; }
.volume-section > span { align-self: center; }
.volume-chart { display: flex; height: 36px; align-items: end; gap: 2px; overflow: hidden; border-bottom: 1px solid rgba(43,55,67,.16); }
.volume-chart > span { min-width: 1px; flex: 1 1 0; border-radius: 2px 2px 0 0; background: rgba(73,111,148,.42); transition: background-color .2s, opacity .2s; }
.volume-chart > span:hover { background: var(--accent); }
.volume-chart-empty { align-self: center; color: #65717d; font: 400 11.5px var(--mono); }
.chart-legend { display: flex; align-items: center; gap: 17px; min-height: 28px; color: #52606e; font: 400 12.4px var(--mono); }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.forecast-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.forecast-legend.hidden { display: none; }
.forecast-item { display: inline-flex; align-items: center; gap: 6px; color: #465461; white-space: nowrap; }
.forecast-item i { display: inline-block; width: 13px; border-top: 2px dashed currentColor; }
.forecast-item.downside { color: var(--negative); }.forecast-item.middle { color: var(--caution); }.forecast-item.upside { color: var(--positive); }
.legend-line { width: 13px; border-top: 2px solid var(--accent); }

.compact-heading { align-items: center; }
.compact-heading h2 { font-size: 22.1px; }
.factor-list { display: flex; flex-direction: column; }
.factor-row { min-height: 44px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; align-items: center; border-bottom: 1px solid rgba(43, 55, 67, .1); }
.factor-name { color: #37434d; font-size: 13.1px; }
.factor-value { color: #303a42; font: 500 13.1px var(--mono); text-align: right; }
.factor-change { min-width: 53px; text-align: right; font: 400 12.4px var(--mono); color: var(--muted); }
.factor-change.up { color: var(--positive); }.factor-change.down { color: var(--negative); }.factor-change.neutral { color: var(--caution); }
.factor-placeholder { color: #586774; font: 400 12.4px var(--mono); padding: 22px 0; }

.technical-panel { min-width: 0; grid-column: 1 / -1; padding: 23px 24px; }
.technical-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.technical-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.technical-groups-content { display: contents; }
.market-help-trigger { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); font-size: 13.8px; cursor: pointer; }
.market-help-trigger:hover span { text-decoration: underline; text-underline-offset: 3px; }
.market-help-trigger:focus-visible, .market-help-close:focus-visible { outline: 3px solid rgba(180,71,24,.28); outline-offset: 3px; }
.market-help-trigger svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.market-help-dialog { width: min(620px, calc(100% - 28px)); max-height: min(78vh, 680px); padding: 0; overflow: auto; border: 1px solid var(--border-hi); border-radius: 14px; background: #fffdfa; color: var(--text); box-shadow: 0 24px 70px rgba(23,31,38,.24); }
.market-help-dialog::backdrop { background: rgba(27,34,41,.42); backdrop-filter: blur(2px); }
.market-help-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 23px 17px; border-bottom: 1px solid var(--border); background: #fffdfa; }
.market-help-header h3 { margin: 0; color: var(--text); font: 700 20px/1.3 var(--display); }
.market-help-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.market-help-close { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: #4d5b68; cursor: pointer; }
.market-help-close:hover { border-color: var(--border-hi); color: var(--accent); background: var(--panel-hi); }
.market-help-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.market-help-definitions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px 24px; margin: 0; padding: 21px 23px 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.market-help-definitions dt { font-weight: 700; color: var(--text); }
.market-help-definitions dd { margin: 3px 0 0; }
.technical-group { min-width: 0; padding-top: 12px; border-top: 1px solid rgba(43,55,67,.12); }
.technical-group h3 { margin: 0 0 8px; color: var(--text); font-size: 14px; }
.technical-group .technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.market-regime, .sector-rotation, .earnings-drift { margin-top: 12px; }
.market-regime .technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.earnings-drift .technical-grid { grid-template-columns: minmax(0, 1fr); }
.market-regime { padding-bottom: 8px; }
.sector-summary { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.sector-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.sector-table th, .sector-table td { padding: 7px 5px; border-bottom: 1px solid var(--border); text-align: right; }
.sector-table td:nth-child(2), .sector-table td:nth-child(3) { white-space: nowrap; }
.sector-table th:first-child { width: 44%; text-align: left; }
.sector-table tbody th { font-weight: 600; }
.sector-table small { color: var(--muted); margin-left: 4px; white-space: nowrap; }
.sector-table .up { color: var(--positive); }
.sector-table .down { color: var(--negative); }
.sector-method { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.technical-row { min-width: 0; min-height: 96px; display: grid; align-content: center; gap: 4px; padding: 10px; border: 1px solid rgba(43,55,67,.11); border-radius: 6px; background: linear-gradient(145deg, rgba(73,111,148,.035), #fff 68%); animation: card-arrive .4s cubic-bezier(.2,.7,.25,1) both; text-align: center; }
.technical-row > * { max-width: 100%; text-align: center; }
.technical-row.insight-positive { border-color: rgba(33,111,83,.26); background: linear-gradient(145deg, rgba(33,111,83,.07), #fff 72%); }
.technical-row.insight-positive > b { color: var(--positive); }
.technical-row.insight-mixed { border-color: rgba(143,96,0,.23); background: linear-gradient(145deg, rgba(143,96,0,.06), #fff 72%); }
.technical-row.insight-mixed > b { color: var(--caution); }
.technical-row.insight-negative { border-color: rgba(160,68,60,.25); background: linear-gradient(145deg, rgba(160,68,60,.065), #fff 72%); }
.technical-row.insight-negative > b { color: var(--negative); }
.technical-row:nth-child(2) { animation-delay: 30ms; }.technical-row:nth-child(3) { animation-delay: 60ms; }.technical-row:nth-child(4) { animation-delay: 90ms; }.technical-row:nth-child(5) { animation-delay: 120ms; }.technical-row:nth-child(6) { animation-delay: 150ms; }.technical-row:nth-child(7) { animation-delay: 180ms; }.technical-row:nth-child(8) { animation-delay: 210ms; }.technical-row:nth-child(9) { animation-delay: 240ms; }
.technical-row > span { color: #5b6875; font: 500 10.5px var(--mono); letter-spacing: .25px; text-transform: uppercase; }
.technical-row > b { overflow-wrap: anywhere; color: #303b45; font-size: 12.4px; font-weight: 600; line-height: 1.45; }
.technical-row > small { color: #68747f; font-size: 11.5px; line-height: 1.45; }
.technical-feature-heading { margin: 20px 0 8px; padding-top: 13px; border-top: 1px solid rgba(43,55,67,.12); }
.technical-feature-heading h3 { margin: 0; color: #303b45; font-size: 14px; font-weight: 650; }
.technical-feature-heading p { margin: 4px 0 0; color: #68747f; font-size: 11.5px; line-height: 1.5; }

.outlook-panel { min-height: 304px; }
.outlook-heading { align-items: center; }
.outlook-heading h2 { font-size: 23.4px; }
.outlook-actions { display: flex; flex: 0 0 auto; align-items: stretch; gap: 7px; }
.model-tier { position: relative; display: flex; flex: 0 0 210px; width: 210px; min-width: 0; align-items: stretch; color: #813c18; }
.model-tier::after { content: ""; position: absolute; top: calc(50% - 5px); right: 14px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.model-tier select { box-sizing: border-box; width: 100%; min-width: 0; max-width: none; height: 41px; min-height: 41px; padding: 0 10px; appearance: none; -webkit-appearance: none; border: 1px solid rgba(244,122,53,.48); border-radius: 6px; background: linear-gradient(110deg, rgba(244,122,53,.14), rgba(244,122,53,.045)); color: #813c18; font: 500 11.7px var(--sans); text-align: center; text-align-last: center; cursor: pointer; }
.model-tier select:disabled { opacity: .65; }
.analyze-button { box-sizing: border-box; display: flex; width: auto; min-width: 77px; height: 41px; min-height: 41px; align-items: center; justify-content: center; border: 1px solid rgba(244,122,53,.48); border-radius: 6px; padding: 0 10px; background: linear-gradient(110deg, rgba(244,122,53,.14), rgba(244,122,53,.045)); color: #813c18; font-size: 12.2px; font-weight: 700; cursor: pointer; box-shadow: 0 0 25px rgba(244,122,53,.08); transition: background .16s, transform .16s; }
.analyze-button:hover { background: rgba(244,122,53,.17); transform: translateY(-1px); }.analyze-button:disabled { opacity: .55; cursor: progress; transform: none; }
.analysis-state { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 16px; border: 1px dashed rgba(43, 55, 67, .22); border-radius: 7px; background: #faf9f6; }
.analysis-state > div { display: grid; gap: 4px; }.analysis-state b { font-size: 13.8px; font-weight: 600; }.analysis-state div span { color: #596673; font-size: 12.4px; line-height: 1.5; }
.analysis-summary { margin: 18px 0 15px; }
.analysis-summary p { margin: 0; color: #37434d; font-size: 13.8px; line-height: 1.75; }
.analysis-readout { display: grid; gap: 13px; margin: 0 0 15px; padding: 15px; border: 1px solid rgba(43,55,67,.14); border-left: 3px solid var(--caution); border-radius: 7px; background: linear-gradient(105deg, rgba(143,96,0,.045), #fbfbfa 52%); }
.analysis-readout.constructive { border-left-color: var(--positive); background: linear-gradient(105deg, rgba(33,111,83,.045), #fbfbfa 52%); }
.analysis-readout.cautious { border-left-color: var(--negative); background: linear-gradient(105deg, rgba(160,68,60,.045), #fbfbfa 52%); }
.research-focus-label { color: #45525f; font: 600 12.4px var(--mono); letter-spacing: .35px; text-transform: uppercase; }
.research-focus p { margin: 5px 0 3px; color: #303b45; font-size: 14.4px; font-weight: 600; line-height: 1.6; }
.research-focus small { color: #596673; font-size: 12.4px; line-height: 1.5; }




.analysis-auth-link { display: inline-block; margin-top: 5px; color: var(--accent); font-weight: 700; }
.analysis-auth-link:hover { text-decoration: underline; }
.news-readthrough { margin: 14px 0; padding: 12px 14px; border: 1px solid rgba(244,122,53,.18); border-radius: 6px; background: rgba(244,122,53,.035); transition: transform .24s cubic-bezier(.2,.7,.25,1), box-shadow .24s ease, border-color .24s ease; animation: card-arrive .42s cubic-bezier(.2,.7,.25,1) both; }
.news-readthrough p { margin: 0; color: #37434d; font-size: 12.4px; line-height: 1.7; }
.analysis-sources { margin: 14px 0; color: var(--muted); font-size: 12.4px; line-height: 1.6; }
.analysis-sources > b { display: block; margin-bottom: 5px; color: var(--text); }
.analysis-sources ul { margin: 0; padding-left: 18px; }
.analysis-sources li { margin: 3px 0; }
.analysis-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.direction-estimates { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.direction-card { position: relative; padding: 14px 15px 13px; border: 1px solid var(--border); border-radius: 6px; background: #faf9f6; overflow: hidden; text-align: center; transition: transform .24s cubic-bezier(.2,.7,.25,1), box-shadow .24s ease, border-color .24s ease, background-color .24s ease; animation: card-arrive .45s cubic-bezier(.2,.7,.25,1) both; }
.direction-card::before { content: ""; position: absolute; height: 2px; top: 0; left: 0; right: 0; background: var(--tone); opacity: .75; transition: height .22s ease, opacity .22s ease; }
.direction-card:nth-child(2) { animation-delay: 55ms; }
.direction-card.downside { --tone: var(--negative); }.direction-card.even { --tone: var(--caution); }.direction-card.upside { --tone: var(--positive); }
.direction-card details { margin-top: 10px; font-size: 0.9em; }
.direction-card summary { color: var(--caution); cursor: pointer; }
.direction-title { display: block; color: #53616e; font: 600 13.1px var(--sans); }
.direction-probability { display: block; margin-top: 5px; color: var(--tone); font: 700 25px var(--display); letter-spacing: -.4px; }
.direction-summary { display: block; margin-top: 2px; color: #35414b; font-size: 13.8px; font-weight: 600; line-height: 1.5; }
.direction-sample { margin: 8px 0 0; color: #596673; font-size: 12.4px; line-height: 1.55; }

.driver-list { display: grid; gap: 9px; margin-top: 18px; }
.driver-row { display: grid; grid-template-columns: minmax(160px, .3fr) minmax(106px, .18fr) minmax(0, 1fr); gap: 0; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid rgba(43, 55, 67, .14); border-radius: 7px; background: linear-gradient(100deg, rgba(244,122,53,.035), #fbfbfa 44%); transition: transform .24s cubic-bezier(.2,.7,.25,1), box-shadow .24s ease, border-color .24s ease; animation: card-arrive .44s cubic-bezier(.2,.7,.25,1) both; }
.driver-row:nth-child(2) { animation-delay: 45ms; }.driver-row:nth-child(3) { animation-delay: 90ms; }.driver-row:nth-child(4) { animation-delay: 135ms; }.driver-row:nth-child(5) { animation-delay: 180ms; }
.driver-name { display: flex; align-items: center; padding: 15px 17px; color: #303b45; font-size: 15.1px; font-weight: 600; line-height: 1.45; }
.driver-direction { display: flex; align-items: center; padding: 13px 14px; border-right: 1px solid rgba(43, 55, 67, .12); border-left: 1px solid rgba(43, 55, 67, .12); color: var(--caution); font: 600 12.4px var(--mono); letter-spacing: .3px; text-transform: uppercase; }.driver-direction.supportive { color: var(--positive); }.driver-direction.pressure { color: var(--negative); }
.driver-evidence { padding: 14px 17px; color: #4e5c69; font-size: 14.4px; line-height: 1.65; }.driver-evidence b { display: block; margin-bottom: 4px; color: #36414b; font-weight: 600; line-height: 1.5; }
.watch-next { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 9px; padding: 13px 0 4px; color: #37434d; font-size: 12.4px; }.watch-next b { color: var(--caution); font: 500 12.4px var(--mono); letter-spacing: .4px; text-transform: uppercase; }
.watch-next ul { margin: 0; padding-left: 14px; color: #4c5a67; line-height: 1.7; }

.news-list { display: flex; flex-direction: column; padding-right: 8px; }
.news-list-expanded { max-height: min(620px, 70vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.news-item { display: block; padding: 13px 0; border-bottom: 1px solid rgba(43, 55, 67, .11); transition: padding-left .2s ease, background-color .2s ease; animation: card-arrive .4s cubic-bezier(.2,.7,.25,1) both; }
.news-item:nth-child(2) { animation-delay: 35ms; }.news-item:nth-child(3) { animation-delay: 70ms; }.news-item:nth-child(4) { animation-delay: 105ms; }.news-item:nth-child(5) { animation-delay: 140ms; }
.news-item:hover { padding-left: 5px; background-color: rgba(244,122,53,.035); }
.news-item-title { display: block; color: #343f49; font-size: 13.8px; line-height: 1.55; font-weight: 500; transition: color .15s; }.news-item:hover .news-item-title { color: var(--accent); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; color: #586774; font: 400 12.4px var(--mono); }.news-publisher { min-width: 0; flex: 1; overflow: hidden; color: #4d5b68; text-overflow: ellipsis; white-space: nowrap; }.news-meta > span:last-child { margin-left: auto; white-space: nowrap; }
.news-placeholder { padding: 25px 0; color: #586774; font: 400 12.4px var(--mono); line-height: 1.8; }

.company-footer { margin-top: 20px; border-top: 1px solid var(--border); color: #596875; }
.company-footer-top { display: flex; align-items: center; gap: 36px; padding: 12px 0 14px; }
.company-footer-brand { flex: 0 0 auto; }
.company-footer-brand .brand-logo { height: 60px; object-fit: cover; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-topbar { width: min(2280px, calc(100% - clamp(40px, 4.5vw, 108px))); }
.auth-shell { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 45px 25px; }
.auth-card, .hero-signin-card { transition: transform .28s cubic-bezier(.2,.7,.25,1), box-shadow .28s ease, border-color .28s ease; animation: card-arrive .5s cubic-bezier(.2,.7,.25,1) both; }
.auth-card { width: min(100%, 465px); padding: 37px 40px 31px; border: 1px solid var(--border-hi); border-radius: 12px; background: linear-gradient(145deg, #ffffff, #fbf9f5); box-shadow: 0 24px 60px rgba(43,52,61,.13), inset 0 1px rgba(255,255,255,.8); }
.auth-card-top h1 { margin: 0 0 10px; font: 700 49.7px/1.1 var(--display); letter-spacing: -1.6px; }
.auth-card-top h1 em { color: var(--accent); font-style: normal; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 7px; color: #37414a; font-size: 13.8px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid var(--border-hi); border-radius: 6px; outline: none; background: #ffffff; color: var(--text); font-size: 16.6px; }
.auth-field input:focus { border-color: rgba(244,122,53,.65); box-shadow: 0 0 0 3px rgba(244,122,53,.08); }
.auth-submit { display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; margin-top: 3px; border: 1px solid rgba(255,151,93,.5); border-radius: 6px; background: linear-gradient(110deg, #f47a35, #df652b); color: #21160f; font: 700 15.1px var(--sans); cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.auth-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-links { display: flex; justify-content: flex-end; margin-top: 12px; }
.text-button { border: 0; padding: 5px 0; background: transparent; color: #48545e; font-size: 13.8px; cursor: pointer; }
.text-button:hover { color: var(--accent); }
.text-button:disabled { cursor: not-allowed; opacity: .5; }
.auth-notice { margin: 18px 0 0; padding: 11px 12px; border: 1px solid rgba(155,181,209,.24); border-radius: 6px; background: rgba(155,181,209,.06); color: #3f4d58; font-size: 13.8px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-notice.success { border-color: rgba(33,119,85,.28); background: rgba(33,119,85,.08); color: #28634d; }
.auth-notice.error { border-color: rgba(179,71,64,.28); background: rgba(179,71,64,.08); color: #9f3b34; }
.oauth-section { margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 11px; color: var(--subtle); font: 400 12.4px var(--mono); letter-spacing: 1px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.oauth-providers { display: grid; gap: 8px; margin-top: 13px; }
.oauth-button { min-height: 40px; border: 1px solid var(--border-hi); border-radius: 6px; background: #fbfaf8; color: var(--text); font-size: 13.8px; cursor: pointer; }
.oauth-button:hover { border-color: rgba(244,122,53,.45); }
.signed-in-panel { padding-top: 25px; text-align: center; }
.account-check { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(33,119,85,.36); border-radius: 50%; color: #1e7656; font-size: 24.8px; }
.signed-in-panel h2 { margin: 12px 0 5px; font: 700 26.2px var(--display); }
.signed-in-panel p { margin: 0 0 17px; color: var(--muted); font-size: 15.1px; overflow-wrap: anywhere; }
.signed-in-panel .text-button { margin-top: 11px; }
.hidden { display: none !important; }.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .shell { width: min(100% - 40px, 800px); }
  .discovery-page .navigation-topbar { padding-inline: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(325px, 370px); gap: 18px; padding-inline: 20px; }
  .hero-watermark { right: 34px; width: 220px; opacity: .045; }
  .topnav { gap: 20px; }.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(275px, .9fr); gap: 11px; }
  .price-panel, .factors-panel, .outlook-panel, .news-panel { padding: 19px; }
  .driver-row { grid-template-columns: minmax(115px, 1fr) 86px minmax(0, 2fr); }
  .company-footer-top { align-items: flex-start; gap: 24px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .topbar { min-height: 69px; }
  .navigation-topbar { gap: 8px; }
  .brand { flex: 0 1 clamp(132px, 42vw, 166px); width: clamp(132px, 42vw, 166px); min-width: 0; }
  .account-chip { max-width: 115px; padding: 8px 10px; font-size: 12.4px; }
  .account-avatar { flex-basis: 38px; width: 38px; height: 38px; max-width: 38px; padding: 0; }
  .topbar.navigation-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand account" "nav nav"; align-items: center; column-gap: 12px; row-gap: 6px; min-height: 0; padding: 8px 5px; }
  .topbar.navigation-topbar > .brand { grid-area: brand; flex: 0 1 clamp(132px, 42vw, 166px); width: clamp(132px, 42vw, 166px); min-width: 0; }
  .topbar.navigation-topbar > .header-account { grid-area: account; justify-self: end; flex-wrap: nowrap; margin-left: 0; }
  .topbar.navigation-topbar .topnav { grid-area: nav; display: flex; flex: none; width: 100%; height: auto; justify-content: flex-start; gap: clamp(8px, 3vw, 18px); margin: 0; padding-top: 8px; border-top: 1px solid var(--border); }
  .topbar.navigation-topbar .topnav a { display: flex; min-height: 38px; align-items: center; padding-inline: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 30px 5px 24px; gap: 20px; }.hero-watermark { display: none; }.hero h1 { font-size: clamp(36px, 10vw, 44px); line-height: 1.08; letter-spacing: clamp(-1.6px, -.04em, -1.2px); }.hero-sub { max-width: 380px; font-size: 16.6px; }.hero-signin-card { max-width: 440px; padding: 20px 19px 15px; }
  .ticker-tools { min-height: 114px; flex-wrap: wrap; gap: 9px 12px; align-content: center; }.ticker-search { flex: 0 1 193px; width: 193px; }.ticker-form { height: 32px; }.watchlist { gap: 2px; }.watchlist button { padding: 7px 6px; font-size: 12.4px; }.favorite-stocks { gap: 6px; }.favorite-stock-button { min-height: 34px; padding: 6px 8px; font-size: 12.4px; }.favorite-remove { min-height: 34px; }.favorite-toggle { min-height: 34px; font-size: 12.4px; }.data-status { margin-left: 0; width: 100%; font-size: 12.4px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; padding-top: 12px; }
  .dashboard-grid > .panel { min-width: 0; }
 .price-panel, .factors-panel, .outlook-panel, .news-panel { padding: 17px 15px; }.panel h2 { font-size: 22.1px; }.price-value { font-size: 28.9px; }.favorite-toggle { min-height: 34px; padding: 5px 8px; font-size: 12.4px; }.chart-shell { height: 195px; }.chart-legend { flex-wrap: wrap; gap: 9px 14px; }.factor-row { min-height: 42px; }.outlook-heading { align-items: flex-start; }.outlook-heading h2 { max-width: 245px; line-height: 1.35; }.analyze-button { padding: 9px; gap: 6px; white-space: nowrap; font-size: 14.4px; font-weight: 700; }.analysis-state { align-items: flex-start; }.analysis-state > div { flex: 1; }.direction-estimates { gap: 5px; }.direction-card { padding: 11px 8px 10px; }.direction-probability { font-size: 22.1px; }.direction-sample { font-size: 12.4px; }.driver-row { grid-template-columns: minmax(0, 1fr) auto; }.driver-name { padding: 12px 14px 8px; font-size: 13.8px; }.driver-direction { justify-content: flex-end; padding: 12px 14px 8px; border: 0; font-size: 12.4px; }.driver-evidence { grid-column: 1 / -1; padding: 10px 14px 14px; border-top: 1px solid rgba(43, 55, 67, .12); font-size: 13.8px; }.watch-next { grid-template-columns: 88px minmax(0,1fr); }
  .company-footer { margin-top: 16px; }
  .company-footer-top { flex-direction: column; align-items: flex-start; gap: 22px; padding: 10px 0 12px; }
  .company-footer .company-footer-brand { flex: 0 0 auto; }
  .company-footer-brand .brand-logo { height: 42px; }
  .auth-shell { width: calc(100% - 28px); padding-block: 30px 20px; }.auth-card { padding: 28px 21px 24px; }.auth-card-top h1 { font-size: 42.7px; }.auth-topbar .domain-chip { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-delay: 0ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.topnav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.discover-main { padding-bottom: 0; }
.discover-hero { position: relative; overflow: hidden; padding: 42px 32px 30px; border-bottom: 1px solid var(--border); }
.discover-hero-watermark { position: absolute; z-index: 0; top: 50%; right: clamp(24px, 5vw, 76px); width: clamp(220px, 18vw, 270px); aspect-ratio: 1; object-fit: contain; opacity: .075; mix-blend-mode: multiply; transform: translateY(-50%); pointer-events: none; user-select: none; }
.discover-hero h1, .discover-hero .discover-lede { position: relative; z-index: 1; }
.discover-hero h1 { margin: 0 0 9px; font: 700 clamp(44px, 4.9vw, 62px)/1.08 var(--display); letter-spacing: -2.2px; }
.discover-hero h1 em { color: var(--accent); font-style: normal; }
.discover-headline-tail { white-space: nowrap; }
.discover-lede { max-width: 1200px; margin: 0; color: #52606e; font-size: 19.3px; line-height: 1.75; }
.discover-panel { margin-bottom: 13px; padding: 22px 24px; }
.discover-heading { align-items: center; }
.discover-heading h2 { margin-top: 0; font-size: 24.8px; }
.discover-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: #f2f3f4; }
.horizon-tabs { margin-top: 16px; }
.discover-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid transparent; border-radius: 5px; padding: 0 14px; background: transparent; color: #596875; font: 500 15.1px var(--sans); cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.discover-tabs button:hover { color: var(--text); }
.discover-tabs button.selected { border-color: rgba(43,52,61,.1); background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(43,52,61,.08); }
.discover-tabs button:focus-visible, .research-link:focus-visible, .ipo-action:focus-visible, .table-action:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.horizon-tabs button span { color: #687583; font: 400 13.8px var(--mono); }
.horizon-description { margin: 16px 0 18px; color: #586574; font-size: 15.1px; line-height: 1.6; }
.horizon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.horizon-card { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: start; column-gap: 10px; row-gap: 11px; min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 7px; background: #fcfbf8; transition: transform .24s cubic-bezier(.2,.7,.25,1), box-shadow .24s ease, border-color .24s ease, background-color .24s ease; animation: card-arrive .45s cubic-bezier(.2,.7,.25,1) both; }
.horizon-card:nth-child(2) { animation-delay: 55ms; }.horizon-card:nth-child(3) { animation-delay: 110ms; }.horizon-card:nth-child(4) { animation-delay: 165ms; }
.horizon-rank { grid-row: 1 / span 3; padding-top: 2px; color: #687583; font: 500 14px var(--mono); text-align: left; }
.horizon-company { display: grid; gap: 4px; min-width: 0; }
.horizon-company > a { color: #262d34; font: 700 18px var(--display); }
.horizon-company > a span { color: var(--accent); font-size: 14px; }
.horizon-company small { overflow: hidden; color: #64717e; font-size: 14.4px; text-overflow: ellipsis; white-space: nowrap; }
.horizon-score { display: grid; gap: 4px; text-align: right; }
.horizon-score > span { color: var(--positive); font: 700 19.3px var(--mono); }
.horizon-score small { color: #65717d; font: 400 14px var(--mono); }
.horizon-history { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #414e5a; font: 500 14px var(--mono); }
.horizon-history > span { display: inline-flex; gap: 6px; align-items: center; }
.horizon-history small { color: #707b86; font: 400 14px var(--mono); }
.research-link { grid-column: 2 / 4; justify-self: start; color: var(--accent); font-size: 15.1px; font-weight: 700; }
.research-link:hover, .table-action:hover, .ipo-action:hover { text-decoration: underline; }
.list-expander { display: flex; width: fit-content; align-items: center; gap: 8px; min-height: 36px; margin: 0 0 0 auto; padding: 6px 12px 6px 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #4d5b67; font: 600 13.8px var(--sans); cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease; }
.list-expander-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.list-expander-row .list-expander { margin: 0; }
.list-expander:hover { border-color: rgba(180,71,24,.34); background: #fffaf6; color: var(--accent); }
.list-expander:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.list-expander-icon { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: rgba(180,71,24,.09); color: var(--accent); font: 600 15px/1 var(--sans); }
.period-tabs { margin: 16px 0; }
.discover-table-wrap { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 7px; }
.discover-table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
.discover-table th { padding: 12px 14px; border-bottom: 1px solid var(--border); color: #66727e; background: #f8f7f4; font: 500 14px var(--mono); letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.discover-table td { padding: 12px 14px; border-bottom: 1px solid rgba(43,55,67,.09); color: #424f5b; font: 400 14px var(--mono); white-space: nowrap; }
.discover-table tbody tr:last-child td { border-bottom: 0; }
.table-company { display: grid; gap: 4px; min-width: 180px; }
.table-company b { color: #252a31; font: 700 16.6px var(--display); }
.table-company span { overflow: hidden; max-width: 235px; color: #63707d; font: 400 14px var(--sans); text-overflow: ellipsis; }
.table-price { color: #313b44 !important; }
.return-value { font-weight: 600; }
.return-value.positive { color: var(--positive); }
.return-value.negative { color: var(--negative); }
.return-value.neutral { color: var(--caution); }
.return-value.not-reported { color: #7a838c; }
.return-value.selected-return { padding: 4px 6px; border: 1px solid rgba(180,71,24,.2); border-radius: 4px; background: rgba(180,71,24,.035); }
.table-action { color: var(--accent); font: 600 14.4px var(--sans); }
.discover-source-link { border: 1px solid var(--border); border-radius: 999px; padding: 8px 10px; color: #4c5a67; font: 500 14px var(--mono); }
.discover-source-link:hover { color: var(--accent); border-color: rgba(180,71,24,.3); }
.ipo-source-warning { margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(179,71,64,.22); border-radius: 6px; background: rgba(179,71,64,.06); color: #9f3b34; font-size: 14px; }
.ipo-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ipo-column { min-width: 0; }
.ipo-column h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: #313c46; font: 700 16.6px var(--display); }
.ipo-list { display: grid; gap: 7px; }
.ipo-card { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fcfbf8; transition: transform .24s cubic-bezier(.2,.7,.25,1), box-shadow .24s ease, border-color .24s ease, background-color .24s ease; animation: card-arrive .44s cubic-bezier(.2,.7,.25,1) both; }
.ipo-card:nth-child(2) { animation-delay: 45ms; }.ipo-card:nth-child(3) { animation-delay: 90ms; }.ipo-card:nth-child(4) { animation-delay: 135ms; }
.ipo-card-title { overflow-wrap: anywhere; color: #2c343c; font-size: 14.4px; font-weight: 700; line-height: 1.45; }
.ipo-facts { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; color: #61707d; font: 400 14px var(--mono); }
.ipo-action { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 15.1px; font-weight: 700; }
.discovery-empty { grid-column: 1 / -1; padding: 17px 12px; color: #5e6b78; font: 400 14.4px/1.7 var(--mono); }
.discover-table .discovery-empty { padding: 18px 13px; }
.ipo-column > .list-expander-row { margin-top: 9px; }

@keyframes card-arrive {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .panel:hover, .hero-signin-card:hover, .auth-card:hover { transform: translateY(-3px); border-color: rgba(43,52,61,.22); box-shadow: 0 22px 54px rgba(34,43,52,.14), inset 0 1px rgba(255,255,255,.8); }
  .direction-card:hover, .horizon-card:hover, .ipo-card:hover, .driver-row:hover, .news-readthrough:hover { transform: translateY(-3px); border-color: rgba(43,52,61,.24); box-shadow: 0 12px 26px rgba(34,43,52,.11); }
  .direction-card:hover { background-color: #fff; }
  .direction-card:hover::before { height: 4px; opacity: 1; }
}

@media (max-width: 960px) {
  .outlook-heading { flex-wrap: wrap; gap: 10px; }
  .outlook-actions { flex-basis: auto; }
  .discover-hero { padding-inline: 20px; }
  .discover-hero-watermark { right: 18px; width: 215px; opacity: .045; }
  .ipo-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ipo-column:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .outlook-heading { flex-wrap: wrap; gap: 10px; }
  .outlook-actions { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .model-tier { width: 100%; min-width: 0; }
  .model-tier select { width: 100%; min-width: 0; max-width: none; }
  .analyze-button { justify-content: center; }
  .discover-hero { padding: 35px 5px 24px; }
  .discover-hero-watermark { display: none; }
  .discover-hero h1 { font-size: clamp(34px, 7.4vw, 52px); letter-spacing: -1.6px; }
  .discover-lede { font-size: 16.6px; }
  .discover-panel { padding: 18px 16px; }
  .discover-heading h2 { max-width: 235px; font-size: 24.8px; }
  .discover-tabs button { min-height: 34px; padding-inline: 11px; font-size: 14.4px; }
  .horizon-list { grid-template-columns: 1fr; }
  .horizon-card { padding: 13px; }
  .horizon-tabs { display: flex; width: 100%; }
  .horizon-tabs button { justify-content: center; flex: 1; }
  .ipo-columns { grid-template-columns: 1fr; gap: 16px; }
  .ipo-column:last-child { grid-column: auto; }
  .discover-source-link { padding: 7px 8px; font-size: 14px; }
}

@media (min-width: 1500px) {
  .topbar { min-height: 94px; }
  .navigation-topbar { padding-inline: clamp(32px, 2.5vw, 58px); }
  .brand { flex-basis: 282px; width: 282px; }
  .topnav { height: 94px; gap: clamp(24px, 2.2vw, 38px); }
  .topnav a { font-size: 19.3px; }
  .domain-chip { font-size: 15.1px; padding: 12px 15px; }
  .account-chip { font-size: 13.8px; padding: 10px 14px; }
  .account-avatar { padding: 0; }

  .hero { min-height: clamp(350px, 18vw, 390px); padding: 38px clamp(32px, 2.5vw, 58px); }
  .hero-watermark { right: clamp(26px, 4vw, 64px); width: clamp(280px, 20vw, 340px); opacity: .08; }
  .hero-copy { max-width: 850px; }
  .hero-sub { max-width: 1050px; }
  .hero-signin-card { padding: 25px 27px 20px; }

  .ticker-tools { min-height: 98px; gap: clamp(24px, 2vw, 38px); }
  .ticker-search { flex-basis: 344px; width: 344px; }
  .ticker-form { height: 41px; }
  .ticker-form input { font-size: 17.1px; }
  .ticker-form input::placeholder { font-size: 13.6px; }
  .search-submit { font-size: 11.3px; padding-inline: 13.1px; }
  .watchlist button { font-size: 13.8px; padding: 9px 12px; }
  .data-status { font-size: 13.8px; }

  .dashboard-grid { grid-template-columns: minmax(0, 1.78fr) minmax(390px, .92fr); gap: 20px; padding-top: 24px; }
  body:not([data-member="true"]) .news-panel { grid-column: 1 / -1; }
  .panel { border-radius: 14px; }
  .price-panel, .factors-panel, .outlook-panel, .news-panel { padding: clamp(28px, 2vw, 40px); }
  .panel h2 { font-size: clamp(27.6px, 1.7vw, 33.1px); }
  .compact-heading h2 { font-size: clamp(26.2px, 1.6vw, 30.4px); }
  .outlook-heading h2 { font-size: clamp(27.6px, 1.6vw, 31.7px); }
  .price-value { font-size: 46.9px; }
  .price-change { font-size: 13.8px; }
  .chart-meta { margin-top: 32px; font-size: 15.1px; }
  .range-tabs button { font-size: 13.8px; padding: 7px 10px; }
  .chart-shell { height: clamp(300px, 20vw, 390px); }
  .chart-legend { min-height: 34px; font-size: 12.4px; }

  .factor-row { min-height: 52px; gap: 12px; }
  .factor-name, .factor-value { font-size: 15.1px; }
  .factor-change { font-size: 12.4px; }
  .outlook-panel { min-height: 350px; }
  .model-tier select { max-width: none; height: 41px; min-height: 41px; font-size: 14.1px; padding-inline: 12px; }
  .analyze-button { height: 41px; min-height: 41px; font-size: 14.1px; padding-inline: 14px; }
  .analysis-state { padding: 20px; }
  .analysis-state b { font-size: 16.6px; }
  .analysis-state div span { font-size: 15.1px; }
  .analysis-summary p { font-size: 16.6px; }
  .direction-title { font-size: 15.1px; }
  .direction-card { padding: 16px; }
  .direction-probability { font-size: 30.4px; }
  .direction-sample, .driver-evidence { font-size: 15.1px; }
  .driver-list { gap: 11px; margin-top: 20px; }
  .driver-row { grid-template-columns: minmax(200px, .3fr) minmax(125px, .18fr) minmax(0, 1fr); }
  .driver-name { padding: 18px 20px; font-size: 16.6px; }
  .driver-direction { padding: 16px; font-size: 13.8px; }
  .driver-evidence { padding: 17px 20px; font-size: 16.6px; }
  .watch-next { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: 15.1px; }
  .watch-next b { font-size: 12.4px; }

  .news-item { padding: 16px 0; }
  .news-item-title { font-size: 16.6px; }
  .news-meta { font-size: 12.4px; }
  .company-footer { margin-top: 20px; }
  .company-footer-top { padding: 12px 0 14px; }

  .discover-hero { padding: 56px clamp(32px, 2.5vw, 58px) 40px; }
  .discover-hero-watermark { right: clamp(28px, 4vw, 64px); width: clamp(280px, 18vw, 340px); }
  .discover-hero h1 { font-size: clamp(64px, 4.5vw, 82px); letter-spacing: -2.6px; }
  .discover-lede { max-width: 1200px; font-size: 23.4px; }
  .hero-sub, .discover-lede { max-width: none; white-space: nowrap; }
  .discover-panel { margin-bottom: 18px; padding: clamp(28px, 2vw, 40px); }
  .discover-heading h2 { font-size: 30.4px; }
  .discover-tabs button { min-height: 42px; padding-inline: 17px; font-size: 16.6px; }
  .horizon-card { padding: 18px; }
  .discover-table th, .discover-table td { font-size: 15.1px; padding: 16px 18px; }
  .ipo-column h3 { font-size: 18px; }
  .ipo-card { padding: 16px; }
}

@media (max-width: 700px) {
  .analysis-readout { gap: 11px; padding: 12px; }


  .direction-estimates { grid-template-columns: 1fr; gap: 8px; }
  .direction-card { padding: 13px; text-align: center; }
  .direction-title, .direction-probability, .direction-summary, .direction-sample { text-align: center; }
  .quote-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .quote-stats > div { padding: 6px; }
  .quote-stats > div b { font-size: 11.5px; }
  .technical-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .technical-groups { grid-template-columns: 1fr; }
  .technical-row { min-height: 120px; padding: 8px; }
  .technical-row > span { font-size: 9.5px; }
  .technical-row > b { font-size: 11.5px; }
  .technical-panel .technical-groups .technical-grid,
  .technical-panel > .technical-grid { margin-inline: 12px; }
  .volume-section { grid-template-columns: 45px minmax(0,1fr); }
  .volume-chart { height: 30px; }
}

/* Stock research chat */
.stock-chat-launcher {
  position: fixed;
  z-index: 120;
  right: clamp(18px, 3vw, 42px);
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 17px 8px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 34px rgba(37,42,49,.2);
  font: 650 15px var(--sans);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.stock-chat-launcher:hover { transform: translateY(-2px); background: #343a42; box-shadow: 0 16px 38px rgba(37,42,49,.25); }
.stock-chat-launcher:focus-visible, .stock-chat-dialog button:focus-visible, .stock-chat-dialog a:focus-visible, .stock-chat-dialog input:focus-visible, .stock-chat-dialog textarea:focus-visible { outline: 3px solid rgba(180,71,24,.48); outline-offset: 3px; }
.stock-chat-launcher img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; }
.stock-chat-dialog {
  position: fixed;
  z-index: 130;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 24px));
  min-width: min(340px, calc(100vw - 24px));
  min-height: min(360px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 28px 100px rgba(28,32,38,.27);
}
.stock-chat-dialog::backdrop { background: transparent; backdrop-filter: none; }
.stock-chat-frame { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: var(--panel); }
.stock-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px 12px; border-bottom: 1px solid var(--border); cursor: grab; touch-action: none; user-select: none; }
.stock-chat-dialog.stock-chat-moving .stock-chat-header { cursor: grabbing; }
.stock-chat-header h2 { margin: 0; font: 750 24px/1.2 var(--display); letter-spacing: -.5px; }
.stock-chat-close { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-hi); border-radius: 12px; background: var(--panel-hi); color: var(--text); cursor: pointer; }
.stock-chat-close svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.stock-chat-close:hover { border-color: rgba(180,71,24,.4); color: var(--accent); }
.stock-chat-resize { position: absolute; right: 5px; bottom: 5px; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--subtle); cursor: nwse-resize; touch-action: none; }
.stock-chat-resize:hover { background: var(--panel-hi); color: var(--accent); }
.stock-chat-resize svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.stock-chat-messages { display: flex; flex: 1 1 auto; flex-direction: column; gap: 13px; min-height: 110px; padding: 17px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(88,101,116,.35) transparent; }
.stock-chat-welcome { padding: 14px 16px; border: 1px dashed var(--border-hi); border-radius: 14px; background: var(--panel-hi); color: var(--muted); font-size: 14px; line-height: 1.55; }
.stock-chat-message { display: flex; flex-direction: column; gap: 5px; width: fit-content; max-width: 90%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; }
.stock-chat-message-assistant { align-self: flex-start; background: var(--panel-hi); }
.stock-chat-message-user { align-self: flex-end; border-color: rgba(180,71,24,.22); background: #fbefe8; }
.stock-chat-message-label { color: var(--muted); font: 500 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.stock-chat-message-user .stock-chat-message-label { color: #8e421f; }
.stock-chat-message-body { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13.5px; line-height: 1.58; }
.stock-chat-message-body > :first-child { margin-top: 0; }
.stock-chat-message-body > :last-child { margin-bottom: 0; }
.stock-chat-message-body > p { margin: 0 0 .8em; white-space: normal; }
.stock-chat-message-body > h3 { margin: 1em 0 .3em; font: 700 1em/1.45 var(--sans); }
.stock-chat-message-body > ul, .stock-chat-message-body > ol { margin: .2em 0 .8em; padding-inline-start: 1.35em; }
.stock-chat-message-body li + li { margin-top: .2em; }
.stock-chat-message-body hr { width: 100%; margin: .35em 0; border: 0; border-top: 1px solid var(--border); }
.stock-chat-message-body code { padding: .08em .3em; border-radius: 4px; background: rgba(43,52,61,.07); font: .92em var(--mono); }
.stock-chat-message-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.stock-chat-message-assistant .stock-chat-message-body:empty::after { content: "Reviewing the latest data…"; color: var(--muted); }
.stock-chat-sources { margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.stock-chat-sources summary { width: fit-content; color: var(--accent); font-weight: 650; cursor: pointer; }
.stock-chat-sources ul { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 18px; }
.stock-chat-sources a { color: #465461; text-decoration: underline; text-decoration-color: rgba(70,84,97,.35); text-underline-offset: 2px; }
.stock-chat-sources a:hover { color: var(--accent); }
.stock-chat-data-note { margin: 6px 0 0; color: var(--subtle); font: 10px/1.45 var(--mono); }
.stock-chat-signin { width: fit-content; margin-top: 3px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stock-chat-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px 12px; }
.stock-chat-prompts[hidden] { display: none; }
.stock-chat-web-hint { margin: -4px 20px 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.stock-chat-prompt { max-width: 100%; padding: 7px 10px; border: 1px solid var(--border-hi); border-radius: 999px; background: var(--panel); color: #465461; font-size: 11px; cursor: pointer; }
.stock-chat-prompt:hover { border-color: rgba(180,71,24,.45); background: #fbf1eb; color: var(--accent); }
.stock-chat-form { display: flex; align-items: flex-end; gap: 9px; margin: 0 18px; padding: 8px; border: 1px solid var(--border-hi); border-radius: 16px; background: var(--panel-hi); }
.stock-chat-form textarea { display: block; flex: 1 1 auto; min-width: 0; min-height: 38px; max-height: 150px; resize: none; padding: 9px 8px; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 13px/1.5 var(--sans); }
.stock-chat-form textarea:focus-visible { outline: 0; }
.stock-chat-form textarea::placeholder { color: var(--subtle); }
.stock-chat-form button { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 12px; background: var(--accent); color: white; font: 700 23px/1 var(--sans); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.stock-chat-form button:hover:not(:disabled) { background: #96390f; transform: translateY(-1px); }
.stock-chat-form .stock-chat-web { width: auto; padding-inline: 10px; border: 1px solid var(--border-hi); background: var(--panel); color: var(--accent); font: 650 12px/1 var(--sans); white-space: nowrap; }
.stock-chat-form .stock-chat-web:hover:not(:disabled) { background: #fbefe8; color: var(--text); }
.stock-chat-form .stock-chat-web:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stock-chat-form button:disabled, .stock-chat-form textarea:disabled { opacity: .55; cursor: wait; }
.stock-chat-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 7px 34px max(10px, env(safe-area-inset-bottom)) 21px; color: var(--subtle); font: 10px var(--mono); }
.stock-chat-footer button { padding: 4px 0; border: 0; background: transparent; color: #586574; font: inherit; cursor: pointer; }
.stock-chat-footer button:hover { color: var(--accent); }
.stock-chat-footer [role="status"] { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  .stock-chat-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 50px; padding: 7px 14px 7px 8px; font-size: 14px; }
  .stock-chat-launcher img { width: 34px; height: 34px; }
  .stock-chat-dialog {
    left: var(--stock-chat-visible-center-x, 50%);
    top: var(--stock-chat-visible-center, 50dvh);
    bottom: auto;
    width: min(360px, calc(var(--stock-chat-visible-width, 100%) - 32px));
    height: min(780px, calc(var(--stock-chat-visible-height, 100dvh) - 24px));
    min-width: min(280px, calc(var(--stock-chat-visible-width, 100%) - 32px));
    min-height: min(420px, calc(var(--stock-chat-visible-height, 100dvh) - 24px));
    max-width: calc(var(--stock-chat-visible-width, 100%) - 24px);
    max-height: calc(var(--stock-chat-visible-height, 100dvh) - 16px);
    margin: 0;
    transform: translate(-50%, -50%);
    border-radius: 17px;
  }
  .stock-chat-frame { overflow: hidden; }
  .stock-chat-header { flex: 0 0 auto; gap: 12px; padding: 10px 12px; }
  .stock-chat-header:focus { outline: none; }
  .stock-chat-header h2 { font-size: 20px; }
  .stock-chat-close { position: relative; width: 32px; height: 32px; border-radius: 9px; }
  .stock-chat-close::after { content: ""; position: absolute; inset: -6px; }
  .stock-chat-close svg { width: 14px; height: 14px; }
  .stock-chat-web-hint { flex: 0 0 auto; margin: 0 14px 7px; font-size: 11px; }
  .stock-chat-messages { min-height: 0; padding: 12px; }
  .stock-chat-welcome { padding: 0 2px; border: 0; border-radius: 0; background: transparent; font-size: 14px; line-height: 1.5; }
  .stock-chat-message { max-width: 96%; padding: 10px 11px; }
  .stock-chat-message-body { font-size: 13px; }
  .stock-chat-prompts { display: grid; flex: 0 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 0 12px 10px; }
  .stock-chat-prompt { min-width: 0; min-height: 40px; padding: 8px; border-radius: 10px; font-size: 12px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .stock-chat-prompt:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stock-chat-form { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 6px; margin-inline: 10px; padding: 8px; border-radius: 14px; }
  .stock-chat-form textarea { grid-column: 1 / -1; width: 100%; min-height: 42px; max-height: 90px; padding: 8px 6px; font-size: 16px; }
  .stock-chat-form .stock-chat-web { justify-self: start; min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .stock-chat-form #stockChatSend { width: 40px; height: 40px; font-size: 24px; }
  .stock-chat-footer { flex: 0 0 auto; gap: 8px; min-height: 36px; padding: 6px 36px max(8px, env(safe-area-inset-bottom)) 13px; }
  .stock-chat-footer button { white-space: nowrap; }
  .stock-chat-footer [role="status"] { min-width: 0; }
  .stock-chat-launcher[aria-expanded="true"] { visibility: hidden; }
  .stock-chat-dialog:has(#stockChatInput:focus) .stock-chat-prompts,
  .stock-chat-dialog:has(#stockChatInput:focus) .stock-chat-web-hint { display: none; }
  .stock-chat-resize { right: 3px; bottom: 3px; width: 30px; height: 30px; }
}

@media (max-width: 600px) and (max-height: 480px), (max-height: 480px) and (pointer: coarse) {
  .stock-chat-prompts,
  .stock-chat-web-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stock-chat-launcher, .stock-chat-form button { transition: none; }
}

/* Account settings and in-app alert controls */
.settings-main { padding-bottom: 34px; }
.settings-hero { padding: 38px 0 28px; border-bottom: 1px solid var(--border); }
.settings-hero h1 { margin: 8px 0 9px; font: 800 clamp(38px, 4vw, 58px)/1.05 var(--display); letter-spacing: -1.8px; }
.settings-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.settings-signed-out { margin-top: 22px; padding: clamp(22px, 3vw, 34px); }
.settings-signed-out p { color: var(--muted); }
.settings-primary-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid rgba(180,71,24,.27); border-radius: 9px; background: #fbefe8; color: #8e421f; font-weight: 700; text-decoration: none; }
.settings-primary-link:hover { background: #f8e4d8; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 20px; }
.settings-panel { min-width: 0; padding: clamp(19px, 2.3vw, 30px); }
.settings-panel:nth-child(3) { grid-column: 1 / -1; }
.settings-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.settings-panel-heading h2 { margin: 4px 0 0; font: 750 clamp(21px, 2vw, 27px)/1.2 var(--display); letter-spacing: -.45px; }
.settings-panel .eyebrow { color: var(--accent); font: 500 10px var(--mono); letter-spacing: .08em; }
.settings-section { margin: 0 0 18px; }
.settings-section h3 { margin: 0 0 4px; font: 700 15px var(--sans); }
.settings-help, .settings-intro { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.settings-watchlist { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; margin-bottom: 12px; }
.settings-watchlist-item { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 5px 4px 11px; border: 1px solid var(--border-hi); border-radius: 8px; background: var(--panel-hi); color: var(--text); font: 600 12px var(--mono); }
.settings-watchlist-item button, .settings-alert-actions button { min-height: 28px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: #596875; font: 600 11px var(--sans); cursor: pointer; }
.settings-watchlist-item button:hover, .settings-alert-actions button:hover { border-color: rgba(180,71,24,.4); color: var(--accent); }
.settings-watchlist-item button:disabled { opacity: .55; cursor: wait; }
.settings-empty { margin: 0; color: var(--muted); font-size: 13px; }
.settings-inline-form { display: flex; gap: 8px; }
.settings-inline-form input, .settings-alert-form input, .settings-alert-form select, .settings-form-row select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 11px; border: 1px solid var(--border-hi); border-radius: 8px; background: #fffefa; color: var(--text); font: 500 13px var(--sans); }
.settings-inline-form input { flex: 1 1 auto; text-transform: uppercase; }
.settings-inline-form button, .settings-save { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(180,71,24,.28); border-radius: 8px; background: #fbefe8; color: #8e421f; font: 700 12px var(--sans); cursor: pointer; }
.settings-inline-form button:hover, .settings-save:hover:not(:disabled) { background: #f8e4d8; }
.settings-save:disabled { opacity: .55; cursor: wait; }
.settings-form-row { display: grid; grid-template-columns: minmax(120px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); }
.settings-form-row > label { padding-top: 10px; color: var(--text); font-size: 13px; font-weight: 650; }
.settings-form-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-actions { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.settings-actions [role="status"], .settings-feedback { min-height: 16px; color: var(--positive); font-size: 12px; }
.settings-actions [role="status"].error, .settings-feedback.error { color: var(--negative); }
.settings-toggle-list { display: grid; border-top: 1px solid var(--border); }
.settings-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 65px; padding: 11px 2px; border-bottom: 1px solid var(--border); cursor: pointer; }
.settings-toggle > span { display: grid; gap: 4px; }
.settings-toggle b { font-size: 13px; }
.settings-toggle small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.settings-toggle input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--accent); }
.settings-note { margin: 12px 0; padding: 10px 12px; border-left: 2px solid rgba(180,71,24,.5); background: #fbf6f1; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-alert-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; align-items: end; gap: 10px; }
.settings-alert-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.settings-alert-symbol { position: relative; display: block; min-width: 0; }
.settings-alert-symbol input { text-transform: uppercase; }
.settings-alert-suggestions { top: calc(100% + 5px); max-height: min(280px, 42vh); }
.settings-alert-form .settings-save { white-space: nowrap; }
.settings-feedback { margin: 7px 0 0; }
.settings-alert-list { display: grid; margin-top: 6px; }
.settings-alert-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 2px; border-top: 1px solid var(--border); }
.settings-alert-item.is-triggered { border-left: 3px solid var(--positive); padding-left: 10px; }
.settings-alert-item.is-paused { opacity: .67; }
.settings-alert-description { display: grid; gap: 4px; min-width: 0; }
.settings-alert-description b { font-size: 13px; overflow-wrap: anywhere; }
.settings-alert-description small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.settings-alert-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.settings-page .company-footer { margin-top: 10px; }
.marketfox-alert-notices { position: fixed; z-index: 150; right: 20px; bottom: 82px; display: grid; gap: 9px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.marketfox-alert-toast { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid rgba(24,120,83,.28); border-radius: 11px; background: #f0faf5; color: #23483a; box-shadow: 0 12px 32px rgba(37,42,49,.16); pointer-events: auto; animation: marketfox-alert-in .2s ease-out; }
.marketfox-alert-toast p { margin: 0; font-size: 13px; line-height: 1.5; }
.marketfox-alert-toast button { flex: 0 0 auto; border: 0; background: transparent; color: #486457; font: 400 20px/1 var(--sans); cursor: pointer; }
@keyframes marketfox-alert-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .settings-alert-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-alert-form .settings-save { justify-self: start; }
}
@media (max-width: 700px) {
  .settings-hero { padding: 28px 0 22px; }
  .settings-hero h1 { font-size: 38px; }
  .settings-grid { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; }
  .settings-panel:nth-child(3) { grid-column: auto; }
  .settings-panel { padding: 18px 15px; }
  .settings-form-row { grid-template-columns: 1fr; gap: 6px; }
  .settings-form-row > label { padding-top: 0; }
  .settings-actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .settings-alert-form { grid-template-columns: 1fr 1fr; gap: 8px; }
  .settings-alert-form .settings-save { grid-column: 1 / -1; justify-self: stretch; }
  .settings-alert-item { align-items: flex-start; flex-direction: column; gap: 9px; }
  .settings-alert-actions { justify-content: flex-start; }
  .marketfox-alert-notices { right: 12px; bottom: 74px; width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .marketfox-alert-toast { animation: none; }
}

@media (max-width: 960px) {
  .technical-panel { padding: 19px; }
}
@media (max-width: 700px) {
  .technical-panel { padding: 17px 15px; }
}
@media (min-width: 1500px) {
  .technical-panel { padding: clamp(28px, 2vw, 40px); }
}

@media (max-width: 700px) {
  .quote-stats > div,
  .technical-row,
  .direction-card,

  .horizon-card,
  .ipo-card {
    text-align: center;
  }

  .quote-stats > div,
  .technical-row,
  .direction-card {
    justify-items: center;
  }

  .quote-stats > div > *,
  .technical-row > *,
  .direction-card > * {
    max-width: 100%;
    text-align: center;
  }

  .direction-title,
  .direction-probability,
  .direction-summary,
  .direction-sample {
    text-align: center;
  }

  .technical-group > h3,
  .technical-feature-heading {
    text-align: center;
    justify-content: center;
  }

  .factor-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding: 9px 0;
    text-align: center;
  }
  .factor-value,
  .factor-change { text-align: center; }

  .analysis-readout,
  .news-readthrough,
  .technical-feature-heading,
  .analysis-state {
    text-align: center;
  }
  .analysis-state { justify-content: center; }
  .analysis-state > div { justify-items: center; }

  .driver-name,
  .driver-direction,
  .driver-evidence {
    justify-content: center;
    text-align: center;
  }

  .horizon-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .horizon-rank,
  .horizon-company,
  .horizon-score,
  .horizon-history,
  .research-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: 100%;
    text-align: center;
  }
  .horizon-company,
  .horizon-score { justify-items: center; }
  .horizon-company small { white-space: normal; }
  .horizon-history { justify-content: center; }

  .ipo-card-title,
  .ipo-facts,
  .ipo-action { text-align: center; }
  .ipo-facts { justify-content: center; }

  .news-item,
  .news-item-title { text-align: center; }
  .news-meta { justify-content: center; flex-wrap: wrap; }
  .news-publisher { flex: 0 1 auto; max-width: 100%; }
  .news-meta > span:last-child { margin-left: 0; }
}

@media (max-width: 700px) {
  .outlook-actions { gap: 7px; }
  .model-tier select { height: 41px; min-height: 41px; padding-inline: 10px; font-size: 11.7px; }
  .analyze-button { height: 41px; min-height: 41px; padding: 8px; gap: 5px; font-size: 12.2px; }
}

/* Keep phone and tablet research focused on search, including large iPads in landscape. */
@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  .panel .panel-heading:not(.price-heading),
  .settings-panel-heading { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .panel .panel-heading:not(.price-heading) > div:first-child,
  .settings-panel-heading > div:first-child { width: 100%; }
  .panel .panel-heading:not(.price-heading) h2,
  .settings-panel-heading h2 { width: 100%; max-width: none; text-align: center; }
  .technical-group h3,
  .technical-feature-heading h3,
  .settings-section h3 { text-align: center; }
  .ipo-column h3 { justify-content: center; text-align: center; }
  .favorite-toggle,
  .favorite-stocks { display: none; }
  .ticker-tools { min-height: 114px; align-items: flex-end; align-content: flex-end; gap: 8px 12px; padding: 24px 0 10px; }
  .ticker-tools .data-status:empty { display: none; }
}

@media (max-width: 700px) {
  .ticker-tools .market-leaders-group { order: -1; flex-basis: 100%; }
  .ticker-tools .ticker-search { flex-basis: 100%; width: 100%; }
}
