@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/vazirmatn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/vazirmatn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ink: #18263c;
  --muted: #647086;
  --line: #e0e6ef;
  --navy: #101c32;
  --feature-gradient: radial-gradient(circle at 8% 8%, rgb(44 137 112 / 28%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%);
  --blue: #2857ba;
  --blue-soft: #edf2ff;
  --teal: #2857ba;
  --teal-soft: #eef3fc;
  --green: #147d58;
  --green-soft: #edf8f2;
  --amber: #95621b;
  --amber-soft: #fff7e8;
  --violet: #5b668c;
  --violet-soft: #f0f2f8;
  --red: #bd3e52;
  --red-soft: #fff0f2;
  --shadow: 0 2px 5px rgb(25 48 43 / 2%);
  --shadow-raised: 0 5px 16px rgb(25 48 43 / 5%);
  font-family: Vazirmatn, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.7; }
a { color: var(--navy); }
a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #247caa; outline-offset: 2px; }
.ambient { display: none; }
.skip-link { position: fixed; top: -80px; right: 1rem; z-index: 100; padding: .75rem 1rem; border-radius: 10px; background: white; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 0 auto; z-index: 50; width: 228px; border-left: 1px solid #263b5d; background: radial-gradient(circle at 10% 5%, rgb(56 95 153 / 28%), transparent 28%), linear-gradient(165deg, #132542 0%, #0d172a 72%); color: #ecf2fc; box-shadow: -8px 0 28px rgb(10 25 47 / 8%); }
.sidebar-toggle { display: none; }
.header-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 1.35rem .95rem 1rem; overflow-y: auto; }
.site-header a { text-decoration: none; }
.brand { min-height: 72px; display: flex; align-items: center; gap: .8rem; padding: .4rem .55rem 1.1rem; border-bottom: 1px solid rgb(165 190 225 / 16%); color: white; font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.brand > img { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid rgb(255 255 255 / 32%); border-radius: 12px; object-fit: cover; box-shadow: 0 8px 22px rgb(0 0 0 / 24%); }
.brand > span { display: grid; }
.brand small { margin-top: .35rem; color: #aebed5; font-size: .68rem; font-weight: 400; letter-spacing: -.01em; }
.site-header nav { display: grid; gap: .35rem; margin-top: .6rem; }
.site-header nav a { position: relative; min-height: 46px; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid transparent; border-radius: 8px; color: #b5c3d8; font-size: .82rem; font-weight: 500; transition: color 160ms, background 160ms, border-color 160ms; }
.site-header nav a svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; opacity: .9; }
.site-header nav a[href$="#market-pulse"] svg, .site-header nav a[aria-label="جریان پول و مالکیت"] svg, .site-header nav a[aria-label="ارزش‌گذاری چندنسبتی"] svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-status { margin-right: auto; padding: .08rem .3rem; border: 1px solid #43546e; border-radius: 4px; color: #b8c6db; font-size: .6rem; white-space: nowrap; }
.site-header nav a:hover { border-color: rgb(144 178 225 / 14%); background: rgb(62 96 145 / 22%); color: white; }
.site-header nav a.active { border-color: rgb(137 180 239 / 24%); background: linear-gradient(90deg, rgb(51 94 156 / 32%), rgb(54 100 165 / 52%)); color: #ffffff; font-weight: 700; box-shadow: inset -3px 0 #67d4b3; }
.site-header nav a.active svg { color: #82e0c4; opacity: 1; }
.sidebar-meta { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .55rem; margin-top: .7rem; padding: .7rem .8rem; border: 1px solid rgb(151 177 214 / 15%); border-radius: 8px; background: rgb(7 18 35 / 24%); color: #9fb0c9; font-size: .68rem; }
.sidebar-meta .status-orb { grid-row: span 2; }
.sidebar-meta strong { color: #e1e8f4; font-size: .7rem; font-weight: 500; }
.status-orb { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #67d4b3; box-shadow: 0 0 0 4px rgb(103 212 179 / 12%); }

main { width: auto; max-width: 1740px; min-height: calc(100vh - 180px); margin: 0 228px 0 0; padding: 1.7rem 2rem 3rem; }
footer { position: relative; min-height: 142px; margin-right: 228px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; overflow: hidden; padding: 1.6rem 2rem; border-top: 1px solid #284161; background: radial-gradient(circle at 12% 20%, rgb(58 104 168 / 26%), transparent 30%), linear-gradient(145deg, #142a4b, #0d182b 74%); color: #b7c5d9; font-size: .75rem; box-shadow: inset 0 1px rgb(255 255 255 / 5%); }
footer::before { position: absolute; inset: -45% -12%; background: linear-gradient(112deg, transparent 27%, rgb(126 174 244 / 3%) 38%, rgb(140 187 255 / 20%) 49%, rgb(103 212 179 / 8%) 54%, transparent 68%); content: ""; pointer-events: none; }
footer::after { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to left, black, transparent 72%); pointer-events: none; }
footer > * { position: relative; z-index: 1; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand > div { display: grid; }
.footer-brand strong { color: white; font-size: 1.1rem; }
.footer-brand span { color: #aebed3; }
.footer-mark { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgb(167 191 225 / 20%); border-radius: 12px; background: rgb(255 255 255 / 7%); color: #82e0c4 !important; }
.footer-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.footer-disclaimer { max-width: 360px; justify-self: end; color: #aebed3; line-height: 1.9; text-align: left; }
section { margin-top: 1.25rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .35rem; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.4; }
h2 { margin-bottom: .7rem; font-size: clamp(1.08rem, 2vw, 1.3rem); }
h3 { margin-bottom: .45rem; font-size: .95rem; }
.eyebrow { margin-bottom: .3rem; color: var(--muted); font-size: .7rem; font-weight: 500; }
.muted, .card span, .card small { color: var(--muted); }
.lead { max-width: 680px; color: var(--muted); }

.dashboard-hero { position: relative; margin-top: 0; overflow: hidden; padding: 1.5rem; border: 1px solid #263f65; border-radius: 18px; background: radial-gradient(circle at 8% 5%, rgb(64 111 181 / 34%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%); box-shadow: 0 18px 40px rgb(18 38 70 / 14%); }
.dashboard-hero::before { display: none; }
.dashboard-hero::after { display: none; }
.dashboard-hero > * { position: relative; z-index: 1; }
.dashboard-heading { min-height: 94px; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.35rem; }
.dashboard-heading p:last-child { margin-bottom: 0; }
.dashboard-hero h1 { margin-bottom: .3rem; color: white; font-size: clamp(2rem, 3vw, 2.55rem); letter-spacing: -.045em; line-height: 1.25; }
.dashboard-hero .eyebrow { display: flex; align-items: center; gap: .45rem; color: #86dec4; font-weight: 700; }
.dashboard-hero .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #67d4b3; box-shadow: 0 0 0 4px rgb(103 212 179 / 12%); content: ""; }
.dashboard-hero .muted { color: #b7c5d9; font-size: .82rem; }
.dashboard-hero .search label { color: #d7e0ef; }
.dashboard-hero .insight-filter { width: min(360px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; padding: .65rem; border: 1px solid rgb(170 194 228 / 18%); border-radius: 12px; background: rgb(8 20 38 / 35%); }
.dashboard-hero .filter-label { grid-column: 1 / -1; color: #aebed3; font-size: .68rem; font-weight: 600; }
.dashboard-hero .insight-filter select { min-width: 0; width: 100%; border-color: rgb(184 204 233 / 22%); background: rgb(255 255 255 / 96%); }
.dashboard-hero .insight-filter button { white-space: nowrap; }
.dashboard-hero .insight-filter > a { grid-column: 1 / -1; min-height: 32px; justify-content: center; padding: 0; color: #9cc0ff; }
.search { width: min(460px, 100%); }
.search label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .75rem; font-weight: 600; }
.search > div { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 3px 14px rgb(35 49 77 / 4%); }
.search-icon { width: 40px; display: grid; place-items: center; color: #8290a4; }
.search-icon svg { width: 19px; height: 19px; fill: currentColor; }
input, select, button { min-height: 44px; padding: .58rem .75rem; border: 1px solid #ccd5e1; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
input::placeholder { color: #697879; }
input:hover, select:hover { border-color: #9aabc1; }
.search input { min-width: 0; border: 0; border-radius: 0;  }
button, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border: 1px solid transparent; border-radius: 7px; background: var(--blue); color: white; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 600; text-decoration: none; transition: background 160ms; }
.search button { height: 40px; min-height: 40px; margin-left: .35rem; }
button:hover, .button:hover { background: #194498; }
button.danger { background: var(--red); }
button.secondary, .button.secondary { border: 1px solid var(--line); background: white; color: var(--navy); }

.market-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.market-summary > div { min-height: 96px; display: grid; grid-template-columns: 40px 1fr; align-content: center; gap: .1rem .7rem; padding: .85rem 1rem; border: 1px solid rgb(167 191 225 / 18%); border-radius: 12px; background: rgb(255 255 255 / 7%); backdrop-filter: blur(6px); }
.market-summary > div:last-child { border: 1px solid rgb(167 191 225 / 18%); }
.market-summary .summary-icon { width: 40px; height: 40px; display: grid; place-items: center; grid-row: span 2; border-radius: 10px; background: rgb(103 212 179 / 12%); color: #82e0c4; }
.market-summary > div:nth-child(2) .summary-icon { background: rgb(123 162 232 / 14%); color: #a8c4f8; }
.market-summary > div:nth-child(3) .summary-icon { background: rgb(238 185 94 / 14%); color: #efc77f; }
.market-summary > div:nth-child(4) .summary-icon { background: rgb(174 151 224 / 14%); color: #c7b6ec; }
.summary-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.market-summary .summary-label { color: #aebed3; font-size: .7rem; }
.market-summary strong { color: white; font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.45; }

.dashboard-command { position: sticky; top: .5rem; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1rem 0; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 11px; background: rgb(255 255 255 / 94%); box-shadow: 0 6px 20px rgb(28 49 80 / 6%); backdrop-filter: blur(10px); }
.section-jump { min-width: 0; display: flex; align-items: center; gap: .35rem; overflow-x: auto; }
.section-jump::-webkit-scrollbar { display: none; }
.section-jump strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.section-jump a { min-height: 48px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 .85rem; border-bottom: 2px solid transparent; color: var(--muted); font-size: .8rem; text-decoration: none; transition: color 160ms, border-color 160ms; }
.section-jump a:hover { border-bottom-color: var(--teal); color: var(--teal); }
.data-trust { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem 0 0; color: var(--muted); }
.data-trust > span { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.data-trust i { width: 7px; height: 7px; display: inline-block; grid-row: span 2; border-radius: 50%; }
.data-trust i.real { background: var(--teal); }
.data-trust i.mock { margin-right: .35rem; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.data-trust small, .trust-legend { color: var(--muted); font-size: .65rem; }
.data-trust b { color: var(--muted); font-size: .65rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.data-trust .trust-legend { display: flex; grid-template-columns: none; gap: .3rem; padding-right: .65rem; border-right: 1px solid var(--line); }

.decision-brief { scroll-margin-top: 5rem; margin-top: 1rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 8px 24px rgb(28 49 80 / 5%); }
.decision-brief > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0 .85rem; }
.decision-brief h2 { margin-bottom: .15rem; color: var(--ink); font-size: 1rem; }
.decision-brief .eyebrow { display: none; }
.decision-brief header p:last-child { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.decision-brief header > a { min-height: 44px; display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--teal); font-size: .8rem; text-decoration: none; }
.decision-brief header > a:hover { text-decoration: underline; }
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.decision-card { position: relative; min-height: 130px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: .5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.decision-card:last-child { border: 1px solid var(--line); }
.decision-card::before { display: none; }
.decision-card.positive::before { background: #77dbc1; }
.decision-card.negative::before { background: #f28c95; }
.decision-card.opportunity::before { background: #e8c67f; }
.decision-index { display: none; }
.decision-card > small { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
.decision-card > a, .decision-card > b { color: var(--ink); font-size: 1.18rem; font-weight: 700; text-decoration: none; }
.decision-card > a:hover { text-decoration: underline; }
.decision-card > strong { direction: ltr; color: var(--navy); font-size: 1rem; font-variant-numeric: tabular-nums; text-align: left; }
.decision-card.positive > strong { color: var(--green); }
.decision-card.negative > strong { color: var(--red); }
.decision-card.opportunity > strong { color: var(--blue); font-size: .875rem; }
.decision-card > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .7rem; }

.market-pulse { margin-top: .75rem; overflow: hidden; border: 1px solid #334d74; border-radius: 14px; background: radial-gradient(circle at 8% 0, rgb(64 111 181 / 30%), transparent 32%), linear-gradient(145deg, #142a4b, #0d182b 74%); box-shadow: 0 12px 28px rgb(18 38 70 / 10%); color: white; }
.market-pulse > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.market-pulse h2 { margin: 0; color: white; font-size: 1rem; }
.market-pulse .eyebrow { margin-bottom: 0; color: #82e0c4; }
.development-badge { min-height: 28px; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 99px; background: rgb(255 255 255 / 8%); color: #d7e0ef; font-size: .6rem; font-weight: 700; white-space: nowrap; }
.development-badge i { width: 7px; height: 7px; border-radius: 50%; background: #e5aa42; box-shadow: 0 0 0 3px rgb(229 170 66 / 16%); }
.development-badge.mock { color: #ffe1a8; }
.development-badge.real { color: #b9f1df; }
.development-badge.real i { background: #77dbc1; box-shadow: 0 0 0 3px rgb(119 219 193 / 16%); }
.market-tape { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.market-tape article { min-height: 124px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; align-content: center; gap: .05rem .55rem; padding: .75rem 1rem; border-left: 1px solid rgb(255 255 255 / 10%); }
.market-tape article:last-child { border-left: 0; }
.market-tape article > span:first-child { grid-column: 1 / -1; display: flex; align-items: center; gap: .35rem; color: #b8c4d9; font-size: .68rem; }
.market-tape article > span:first-child svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.market-tape strong { color: white; font-size: 1.12rem; font-variant-numeric: tabular-nums; line-height: 1.4; }
.market-tape em { align-self: center; direction: ltr; color: #77dbc1; font-size: .62rem; font-style: normal; font-weight: 800; text-align: left; }
.market-tape em.neutral { color: #e8c67f; }
.market-tape em.negative { color: #ffaaa3; }
.market-tape small { grid-column: 1 / -1; color: #8190aa; font-size: .58rem; }
.market-tape .pulse-mini-chart { grid-column: 2; grid-row: 2 / 4; height: 42px; display: flex; align-items: end; justify-content: end; gap: 3px; padding-bottom: 1px; border-bottom: 1px solid rgb(255 255 255 / 14%); }
.pulse-mini-chart i { width: 6px; min-height: 3px; height: var(--pulse-height); border-radius: 3px 3px 1px 1px; background: #77dbc1; opacity: .9; }
.pulse-mini-chart i.down { background: #ff8177; }
.pulse-mini-chart i.flat { background: #e8c67f; }
.market-pulse > p { margin: 0; padding: .45rem 1rem; border-top: 1px solid rgb(255 255 255 / 8%); color: #9caac0; font-size: .6rem; }
.market-dollar { margin: 1rem 0; padding: 1rem; border: 1px solid #dbe4ed; border-radius: 14px; background: #fff; }
.market-dollar .section-titlebar { margin: 0 0 .7rem; padding: 0; border: 0; }
.market-dollar-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.market-dollar-summary strong { color: #173d64; font-size: clamp(1.4rem, 3vw, 2rem); }
.market-dollar-summary span, .market-dollar > p { color: #607182; font-size: .8rem; }
.market-dollar-ranges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0; }
.market-dollar-ranges a { padding: .35rem .65rem; border: 1px solid #dbe4ed; border-radius: 7px; color: #173d64; text-decoration: none; font-size: .75rem; }
.market-dollar-ranges a[aria-current="true"] { background: #173d64; border-color: #173d64; color: white; }
.market-dollar-ranges a:focus-visible { outline: 2px solid #198a96; outline-offset: 2px; }
.market-dollar-plot { direction: ltr; margin: .5rem 0; }
.market-dollar-scale { display: flex; justify-content: space-between; direction: rtl; color: #607182; font-size: .7rem; }
.market-dollar-plot svg { display: block; width: 100%; height: auto; max-height: 280px; overflow: visible; }
.market-dollar-plot svg:focus-visible { outline: 2px solid #198a96; outline-offset: 3px; }
.market-dollar-plot line { stroke: #cbd7e4; stroke-width: 1.5; }
.market-dollar-plot polyline { fill: none; stroke: #198a96; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.market-dollar-plot circle { fill: #198a96; }
.market-dollar-plot circle:last-child { fill: #e18938; }
.market-dollar-dates { display: flex; justify-content: space-between; padding: 0 5%; color: #607182; font-size: .75rem; }
.market-dollar > p { margin: .5rem 0 0; line-height: 1.8; }

.insight-filter { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; flex-wrap: wrap; }
.insight-filter > div { min-width: 220px; display: grid; margin-left: auto; }
.insight-filter > div span { color: var(--muted); font-size: .75rem; }
.insight-filter > div strong { color: var(--navy); font-size: .8rem; }
.insight-filter label { color: var(--muted); font-size: .75rem; }
.insight-filter select { min-width: 190px; max-width: 260px; background: white; }
.insight-filter > a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .45rem; color: var(--blue); font-size: .75rem; font-weight: 700; }

.market-breadth-panel { display: flex; flex-direction: column; margin: 0; background: white; }
.breadth-legend { display: grid; gap: 0; margin-top: .75rem; }
.breadth-legend > div { display: grid; grid-template-columns: 1fr auto 52px; align-items: center; gap: .4rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.breadth-legend span { color: var(--muted); font-size: .75rem; }
.breadth-legend span::before { width: 7px; height: 7px; display: inline-block; margin-left: .35rem; border-radius: 50%; background: currentColor; content: ""; }
.breadth-legend strong { color: var(--navy); font-size: 1rem; }
.breadth-legend small { color: var(--muted); font-size: .75rem; }
.breadth-legend .growth span { color: var(--green); }
.breadth-legend .decline span { color: var(--red); }
.breadth-legend .neutral span { color: #7b8798; }

.market-section { --section-accent: var(--blue); --section-soft: var(--blue-soft); margin-top: 2.2rem; scroll-margin-top: 5rem; }
#sales-zone { --section-accent: var(--green); --section-soft: var(--green-soft); }
#market-zone { --section-accent: var(--amber); --section-soft: var(--amber-soft); }
#comparison-zone { --section-accent: var(--teal); --section-soft: var(--teal-soft); }
#valuation-zone { --section-accent: var(--blue); --section-soft: var(--blue-soft); }
#reports-zone { --section-accent: var(--violet); --section-soft: var(--violet-soft); }
.section-titlebar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: .85rem; margin-bottom: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(270deg, var(--section-soft), white 68%); box-shadow: 0 5px 18px rgb(28 49 80 / 4%); }
.section-titlebar > div { min-width: 0; flex: 1; }
.section-index { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--section-accent); font-size: .78rem; font-weight: 800; box-shadow: 0 3px 10px rgb(28 49 80 / 5%); }
.section-titlebar .eyebrow { margin-bottom: 0; }
.section-titlebar h2 { margin: 0; color: var(--navy); font-size: 1.12rem; }
.section-titlebar > a, .section-titlebar > span:not(.section-index) { min-height: 38px; display: inline-flex; align-items: center; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--section-accent); font-size: .75rem; font-weight: 600; text-decoration: none; }
.section-titlebar > a:hover { border-color: var(--section-accent); }
.market-section .panel { box-shadow: 0 7px 24px rgb(28 49 80 / 5%); }
.section-content > section { margin-top: 0; }
.section-content > section + section { margin-top: .8rem; }
.reports-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; gap: .8rem; }
.reports-layout > section { margin-top: 0; }

.valuation-home-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 13px; background: #101c32; color: white; box-shadow: 0 12px 30px rgb(18 38 70 / 11%); }
.valuation-home-intro h3 { max-width: 560px; margin: .75rem 0 .35rem; color: white; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.valuation-home-intro p { max-width: 600px; color: #becce0; font-size: .78rem; line-height: 1.9; }
.valuation-home-intro .valuation-home-date { width: fit-content; margin: .8rem 0; padding: .35rem .65rem; border: 1px solid rgb(167 191 225 / 20%); border-radius: 7px; background: rgb(255 255 255 / 6%); color: #d2def0; font-size: .72rem; }
.valuation-home-intro .button { min-height: 44px; margin-top: .4rem; }
.valuation-home-intro .evidence-label { background: rgb(122 157 220 / 16%); color: #c5d7f8; }
.valuation-home-ratios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgb(167 191 225 / 18%); border-radius: 10px; background: rgb(255 255 255 / 5%); }
.valuation-home-ratios > div { min-height: 104px; display: grid; align-content: center; gap: .3rem; padding: .85rem 1rem; border-left: 1px solid rgb(167 191 225 / 15%); border-bottom: 1px solid rgb(167 191 225 / 15%); }
.valuation-home-ratios > div:nth-child(even) { border-left: 0; }
.valuation-home-ratios > div:nth-last-child(-n+2) { border-bottom: 0; }
.valuation-home-ratios bdi { color: #a9c9ff; font-size: 1.05rem; font-weight: 800; }
.valuation-home-ratios strong { display: flex; direction: ltr; align-items: baseline; gap: .35rem; color: white; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.valuation-home-ratios strong bdi { color: white; font-size: inherit; }
.valuation-home-ratios strong small { color: #aebed3; font-size: .62rem; font-weight: 500; }
.valuation-home-ratios span { color: #becce0; font-size: .7rem; }
@media (max-width: 700px) { .valuation-home-card { grid-template-columns: 1fr; gap: 1rem; } }
.market-calendar-strip { --section-accent: var(--blue); --section-soft: var(--blue-soft); }
.market-calendar-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.market-calendar-item { --event-color: var(--blue); --event-soft: var(--blue-soft); min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: .35rem .75rem; padding: .8rem; border: 1px solid var(--line); border-right: 3px solid var(--event-color); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.market-calendar-item.dividend { --event-color: var(--green); --event-soft: var(--green-soft); }
.market-calendar-item.important { --event-color: var(--red); --event-soft: var(--red-soft); }
.market-calendar-item time { width: 54px; height: 58px; display: grid; place-content: center; border-radius: 9px; background: var(--event-soft); color: var(--event-color); text-align: center; line-height: 1.2; }
.market-calendar-item time b { font-size: 1.15rem; }
.market-calendar-item time span { margin-top: .2rem; font-size: .55rem; }
.market-calendar-item > div { min-width: 0; }
.market-calendar-item header { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.market-calendar-item header a, .market-calendar-item header span, .market-calendar-item header small { padding: .08rem .35rem; border-radius: 4px; font-size: .58rem; font-weight: 700; text-decoration: none; }
.market-calendar-item header a { background: var(--navy); color: white; }
.market-calendar-item header span { background: var(--event-soft); color: var(--event-color); }
.market-calendar-item header small { color: var(--muted); }
.market-calendar-item p { display: -webkit-box; margin: .35rem 0 0; overflow: hidden; color: var(--ink); font-size: .68rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.market-calendar-source { min-height: 36px; display: inline-flex; grid-column: 2; align-items: center; justify-self: start; color: var(--event-color); font-size: .65rem; font-weight: 700; text-decoration: none; }
.market-calendar-source:hover { text-decoration: underline; }
.market-calendar-empty { min-height: 112px; display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: .75rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 11px; background: white; color: var(--muted); }
.market-calendar-empty > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-soft); }
.market-calendar-empty p, .market-calendar-empty small { margin: 0; }
.market-calendar-empty p { display: grid; }
.market-calendar-empty strong { color: var(--ink); font-size: .78rem; }
.market-calendar-empty small { font-size: .65rem; }
.tool-prompt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; border-radius: 12px; }
.tool-prompt h2 { margin: 0 0 .3rem; color: var(--navy); font-size: 1rem; }
.tool-prompt p { max-width: 70ch; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.85; }
.tool-prompt a { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 8px; background: white; color: var(--blue); font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tool-prompt a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tool-prompt > span { color: var(--muted); font-size: .73rem; }
.watchlist-prompt { margin-top: 1rem; background: var(--violet-soft); }
.technical-prompt { margin-top: .8rem; background: var(--blue-soft); }
.ownership-prompt { margin-top: .8rem; background: var(--teal-soft); }
@media (max-width: 700px) { .tool-prompt { grid-template-columns: 1fr; gap: .7rem; padding: 1rem; } .tool-prompt a { justify-self: start; white-space: normal; } }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.stat-card { min-height: 126px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .25rem .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; grid-row: span 2; border-radius: 11px; }
.stat-icon svg { width: 20px; height: 20px; fill: currentColor; }
.stat-card.blue .stat-icon { background: var(--blue-soft); color: var(--blue); }
.stat-card.teal .stat-icon { background: var(--teal-soft); color: var(--teal); }
.stat-card.green .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-card.amber .stat-icon { background: var(--amber-soft); color: var(--amber); }
.stat-card.violet .stat-icon { background: var(--violet-soft); color: var(--violet); }
.stat-card div { display: grid; }
.stat-card div span { color: var(--muted); font-size: .75rem; }
.stat-card strong { color: var(--navy); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.25; }
.stat-card small { grid-column: 1 / -1; color: #8793a5; font-size: .75rem; }

.panel { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2, .section-heading h3, .page-heading h1 { margin-bottom: 0; }
.panel-note { padding: .25rem .55rem; border-radius: 99px; background: var(--surface-soft); color: var(--muted); font-size: .75rem; white-space: nowrap; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); font-size: .75rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.chart-data { margin-top: .65rem; }
.chart-data summary { min-height: 44px; display: flex; align-items: center; color: var(--blue); cursor: pointer; font-size: .75rem; }

.insight-showcase { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: .8rem; }
.chart-explainer { max-width: 760px; margin: .55rem 0 0; color: var(--muted); font-size: .75rem; }

.ranking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.ranking-panel { min-width: 0; }
.analysis-chip { padding: .25rem .55rem; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; white-space: nowrap; }
.change-list { display: grid; gap: .28rem; margin-top: .9rem; }
.change-list > a { min-height: 48px; display: grid; grid-template-columns: 118px minmax(90px, 1fr) 72px; align-items: center; gap: .6rem; padding: .35rem .45rem; border-radius: 9px; text-decoration: none; transition: background 160ms; }
.change-list > a:hover { background: var(--surface-soft); }
.rank-symbol { min-width: 0; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 0 .4rem; }
.rank-symbol b { width: 22px; height: 22px; grid-row: span 2; display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.rank-symbol strong { color: var(--navy); font-size: .85rem; }
.rank-symbol small { color: var(--muted); font-size: .65rem; direction: ltr; }
.change-track { height: 6px; overflow: hidden; border-radius: 2px; background: #eef2f7; }
.change-track i { height: 100%; display: block; border-radius: inherit; }
.change-list em { direction: ltr; font-size: .75rem; font-style: normal; font-weight: 800; text-align: left; }
.positive-ranking .change-track i, .positive-change .change-track i { background: var(--green); }
.positive-ranking .change-list em, .positive-change em { color: var(--green); }
.negative-ranking .change-track i, .negative-change .change-track i { background: var(--red); }
.negative-ranking .change-list em, .negative-change em { color: var(--red); }
.method-note { margin: .75rem 0 0; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

.industry-benchmark-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.benchmark-lane { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.benchmark-lane > header { min-height: 66px; display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: white; }
.benchmark-lane > header > span { width: 9px; height: 36px; flex: 0 0 auto; border-radius: 99px; background: var(--green); }
.benchmark-lane.below-average > header > span { background: var(--red); }
.benchmark-lane > header div, .benchmark-list > a > span { min-width: 0; display: grid; }
.benchmark-lane > header strong { color: var(--navy); font-size: .76rem; }
.benchmark-lane > header small, .benchmark-list small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.benchmark-list { display: grid; padding: .35rem; }
.benchmark-list > a { min-height: 52px; display: grid; grid-template-columns: minmax(118px, 1fr) minmax(65px, 1.2fr) 68px; align-items: center; gap: .55rem; padding: .4rem .45rem; border-radius: 9px; text-decoration: none; }
.benchmark-list > a:hover { background: white; }
.benchmark-list strong { color: var(--navy); font-size: .75rem; }
.benchmark-list > a > i { height: 9px; overflow: hidden; border-radius: 99px; background: #e8edf3; }
.benchmark-list > a > i b { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.below-average .benchmark-list > a > i b { background: var(--red); }
.benchmark-list em { direction: ltr; color: var(--green); font-size: .75rem; font-style: normal; font-weight: 800; text-align: left; }
.below-average .benchmark-list em { color: var(--red); }
.benchmark-list .empty { margin: .8rem; }

.trend-panel { overflow: hidden; }
.trend-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.trend-lane { overflow: hidden; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: white; }
.trend-lane > header { min-height: 68px; display: flex; align-items: center; gap: .55rem; padding: .7rem; border-bottom: 1px solid var(--line); background: white; }
.trend-lane > header > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.trend-lane.rising > header > span { background: var(--green); }
.trend-lane.six_month_growth > header > span { background: var(--teal); }
.trend-lane > header div { display: grid; }
.trend-lane > header strong { color: var(--navy); font-size: .78rem; }
.trend-lane > header small { color: var(--muted); font-size: .75rem; }
.trend-lane > a { min-height: 64px; display: grid; grid-template-columns: 1fr 102px; align-items: center; gap: .5rem; padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 160ms; }
.trend-lane > a:last-of-type { border-bottom: 0; }
.trend-lane > a:hover { background: var(--surface-soft); }
.trend-lane > a > span:first-child { display: grid; }
.trend-lane > a strong { color: var(--navy); font-size: .75rem; }
.trend-lane > a small { color: var(--muted); font-size: .75rem; direction: ltr; }
.mini-spark { height: 38px; display: flex; align-items: end; justify-content: end; gap: 3px; direction: ltr; }
.mini-spark i { width: 8px; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--amber); }
.trend-lane.rising .mini-spark i { background: var(--green); }
.trend-lane.six_month_growth .mini-spark i { background: var(--teal); }
.trend-empty { min-height: 62px; margin: 0; padding: .8rem; color: var(--muted); font-size: .75rem; }

.divergence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.divergence-grid > .empty { grid-column: 1 / -1; }
.divergence-card { min-width: 0; padding: 1.05rem; border: 1px solid var(--line); border-radius: 11px; background: white; }
.divergence-card > header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .65rem; }
.divergence-card > header > div { min-width: 0; display: grid; }
.divergence-card > header a { color: var(--navy); font-size: .9rem; font-weight: 800; text-decoration: none; }
.divergence-card > header small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.divergence-signal { padding: .28rem .5rem; border-radius: 99px; background: #e8f7f3; color: #14725f; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.divergence-signal.price { background: #fff4dd; color: #8a5a00; }
.line-legend { display: flex; gap: 1rem; margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.line-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.line-legend span::before { width: 20px; height: 0; border-top: 3px solid var(--blue); content: ""; }
.line-legend .price-line::before { border-color: var(--amber); border-top-style: dashed; }
.divergence-chart { display: block; width: 100%; height: 160px; margin: 0; overflow: visible; }
.chart-gridline { fill: none; stroke: #e5eaf1; stroke-width: .45; vector-effect: non-scaling-stroke; }
.sales-series, .price-series { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.price-series { stroke: var(--amber); stroke-dasharray: 5 4; }
.sales-point { fill: white; stroke: var(--blue); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.price-point { fill: white; stroke: var(--amber); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.chart-months { position: relative; height: 22px; margin: .1rem 42px 0 0; color: var(--muted); direction: ltr; font-size: .68rem; }
.chart-months span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.indexed-plot { position: relative; padding-right: 42px; }
.chart-axis { position: absolute; inset: 0 0 0 auto; width: 35px; color: var(--muted); font-size: .75rem; direction: ltr; }
.chart-axis span { position: absolute; top: 13.043%; transform: translateY(-50%); }
.chart-axis span:nth-child(2) { top: 50%; }
.chart-axis span:nth-child(3) { top: 86.957%; }

.divergence-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: 1rem; padding: .75rem 0 0; border-top: 1px solid var(--line); }
.divergence-kpis p { display: grid; align-content: start; gap: .2rem; margin: 0; }
.divergence-kpis span { color: var(--muted); font-size: .75rem; }
.divergence-kpis strong { color: var(--navy); direction: ltr; font-size: .8rem; font-weight: 600; text-align: right; }
.latest-market-price { margin: .6rem 0 0; color: var(--muted); font-size: .75rem; }
.latest-market-price strong { color: var(--navy); }
.divergence-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.divergence-pagination > span:not(.button) { color: var(--muted); font-size: .75rem; }
.divergence-pagination .disabled { opacity: .45; cursor: default; }

.risk-panel { overflow: hidden; }
.risk-scale { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .8rem; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .75rem; text-align: center; }
.risk-scale span { padding: .35rem; background: var(--teal-soft); }
.risk-scale span:nth-child(2) { background: var(--amber-soft); }
.risk-scale span:nth-child(3) { background: var(--red-soft); }
.risk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .8rem; }
.risk-grid > .empty { grid-column: 1 / -1; }
.risk-card { padding: .8rem; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 10px; background: white; }
.risk-card.medium { border-top-color: var(--amber); }
.risk-card.high { border-top-color: var(--red); }
.risk-card > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.risk-card > header > div { min-width: 0; display: grid; }
.risk-card > header a { color: var(--navy); font-size: .88rem; font-weight: 800; text-decoration: none; }
.risk-card > header small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.risk-card > header > span { color: var(--teal); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.risk-card.medium > header > span { color: var(--amber); }
.risk-card.high > header > span { color: var(--red); }
.risk-summary { display: flex; align-items: center; gap: .8rem; margin-top: .75rem; }
.risk-summary > p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.8; }
.risk-ring { --risk-color: var(--teal); width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, white 57%, transparent 59%), conic-gradient(var(--risk-color) calc(var(--risk-score) * 1%), #e8edf3 0); text-align: center; }
.risk-card.medium .risk-ring { --risk-color: var(--amber); }
.risk-card.high .risk-ring { --risk-color: var(--red); }
.risk-ring strong { color: var(--navy); font-size: 1.18rem; line-height: 1; }
.risk-ring small { color: var(--muted); font-size: .75rem; }
.risk-factors { display: grid; gap: .5rem; margin-top: .75rem; }
.risk-factors > div > span { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.risk-factors b { color: var(--navy); }
.risk-factors i { height: 6px; display: block; margin-top: .18rem; overflow: hidden; border-radius: 99px; background: #e8edf3; }
.risk-factors em { height: 100%; display: block; border-radius: inherit; background: var(--blue); }

.portfolio-intro { margin-bottom: .8rem; }
.mock-badge { padding: .45rem .7rem; border: 1px dashed var(--amber); border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: .75rem; font-weight: 700; white-space: nowrap; }

.alerts-intro { overflow: hidden; background: transparent; }
.alert-flow { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.alert-data-health { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; padding: .65rem .8rem; border: 1px solid #b7e4d8; border-radius: 10px; background: #effcf8; color: #176b5b; font-size: .72rem; }
.alert-data-health strong { margin-inline-end: auto; }
.alert-data-health.warning { border-color: #f5d08a; background: #fff8e8; color: #8a5a00; }
.alert-flow > div { min-width: 0; min-height: 72px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: center; gap: 0 .6rem; padding: .75rem 1rem; border-left: 1px solid var(--line); }
.alert-flow > div:last-child { border-left: 0; }
.alert-flow span { width: 32px; height: 32px; grid-row: span 2; display: grid; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: .75rem; font-weight: 800; }
.alert-flow .done span { background: var(--teal-soft); color: var(--teal); }
.alert-flow strong { color: var(--navy); font-size: .76rem; }
.alert-flow small { color: var(--muted); font-size: .75rem; }
.alerts-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; gap: .8rem; }
.alert-builder { display: grid; gap: .45rem; }
.alert-builder .section-heading { margin-bottom: .65rem; }
.alert-builder label { margin-top: .35rem; color: var(--navy); font-size: .75rem; font-weight: 700; }
.alert-builder select { width: 100%; min-width: 0; max-width: 100%; }
.field-help, .form-disclosure { margin: 0; color: var(--muted); font-size: .75rem; }
.telegram-destination { min-height: 70px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: .6rem; margin: .65rem 0; padding: .65rem; border: 1px solid #c9e1f5; border-radius: 11px; background: #f0f8ff; }
.telegram-destination svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: #279bd7; fill: white; }
.telegram-destination div { min-width: 0; display: grid; }
.telegram-destination strong { color: var(--navy); font-size: .75rem; }
.telegram-destination small { color: var(--muted); font-size: .75rem; }
.telegram-destination > span { padding: .2rem .45rem; border-radius: 99px; background: white; color: #247ead; font-size: .75rem; font-weight: 700; }
.alerts-preview { display: grid; gap: .8rem; }
.telegram-preview { overflow: hidden; border: 1px solid #d9e3f2; border-radius: 15px; background: #eaf1f8; box-shadow: var(--shadow); }
.telegram-preview > header { min-height: 64px; display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; background: white; }
.telegram-preview > header > div { display: grid; }
.telegram-preview > header strong { color: var(--navy); font-size: .76rem; }
.telegram-preview > header small { color: var(--muted); font-size: .75rem; }
.bell-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.bell-mark svg { width: 19px; height: 19px; fill: currentColor; }
.preview-ready { margin-right: auto; padding: .25rem .55rem; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 800; }
.telegram-message { width: min(560px, calc(100% - 1.4rem)); margin: .7rem; padding: 1rem; border-radius: 10px 13px 4px 13px; background: white; box-shadow: 0 5px 18px rgb(35 49 77 / 10%); }
.telegram-message > p:first-child { margin-bottom: .3rem; color: var(--blue); font-size: .75rem; font-weight: 800; }
.telegram-message h2 { margin-bottom: .8rem; color: var(--navy); font-size: 1rem; }
.telegram-message > p:not(:first-child) { margin: .7rem 0; color: var(--muted); font-size: .75rem; }
.telegram-message.negative { border-right: 3px solid var(--red); }
.telegram-message.positive { border-right: 3px solid var(--green); }
.telegram-message.industry { border-right: 3px solid var(--teal); }
.message-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.message-metrics span { display: grid; padding: .55rem .65rem; border-radius: 9px; background: var(--surface-soft); }
.message-metrics small { color: var(--muted); font-size: .75rem; }
.message-metrics strong { color: var(--navy); font-size: .76rem; }
.message-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); font-size: .75rem; font-weight: 700; }
.preview-confirmation { margin: 0; padding: .55rem .8rem; border-top: 1px solid #cfe0ee; background: #f5fbf8; color: var(--green); font-size: .75rem; }
.alert-examples { box-shadow: none; }
.alert-type-list { display: grid; gap: .3rem; margin-top: .75rem; }
.alert-type-list a { min-height: 54px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .6rem; padding: .45rem .55rem; border: 1px solid transparent; border-radius: 10px; text-decoration: none; }
.alert-type-list a:hover { border-color: var(--line); background: var(--surface-soft); }
.alert-type-list a > span { min-width: 0; display: grid; grid-template-columns: 10px 1fr; gap: 0 .5rem; }
.alert-type-list i { width: 9px; height: 9px; grid-row: span 2; align-self: center; border-radius: 50%; background: var(--green); }
.alert-type-list .negative i { background: var(--red); }
.alert-type-list .industry i { background: var(--teal); }
.alert-type-list strong { color: var(--navy); font-size: .75rem; }
.alert-type-list small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.alert-type-list b { color: var(--blue); font-size: .75rem; }
.active-alert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .8rem; }
.active-alert-grid article { min-height: 70px; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.active-alert-grid article div { min-width: 0; display: grid; }
.active-alert-grid strong { color: var(--navy); font-size: .75rem; }
.active-alert-grid small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.active-alert-grid em { color: var(--green); font-size: .75rem; font-style: normal; font-weight: 800; }
.alert-status { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.alert-status.paused { background: var(--muted); box-shadow: 0 0 0 4px #e9edf2; }
.active-alert-grid article.paused em { color: var(--muted); }
.live-data-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem; border: 1px solid #075e52; border-radius: 99px; background: #073b35; color: #34d399; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.live-data-badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgb(52 211 153 / 12%); }
.alert-share-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; padding: .8rem; border-top: 1px solid var(--line); background: var(--surface-soft); }
.alert-share-box label { grid-column: 1 / -1; color: var(--ink); font-size: .72rem; font-weight: 800; }
.alert-share-box textarea { width: 100%; min-width: 0; min-height: 88px; resize: vertical; padding: .65rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--muted); font: inherit; font-size: .7rem; line-height: 1.9; }
.alert-share-box button { align-self: stretch; padding: 0 1rem; border: 0; border-radius: 9px; background: #194498; color: #fff; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; }
.alert-verdict { padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.alert-verdict.triggered { border-color: #075e52; background: #073b35; color: #a7f3d0 !important; }
.alert-quality-flags { margin: 0; padding: .55rem 1.5rem .55rem .65rem; border: 1px solid #f5d08a; border-radius: 8px; background: #fff8e8; color: #8a5a00; font-size: .72rem; }
.alert-evidence { display: grid; gap: .45rem; margin: 0; }
.alert-evidence > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: .6rem; padding-block: .4rem; border-bottom: 1px solid rgb(255 255 255 / 15%); }
.alert-evidence dt { color: #cbd5e1; font-size: .68rem; }
.alert-evidence dd { margin: 0; color: #fff; font-size: .72rem; }
.alert-evidence a { color: #67e8f9; }
.alert-empty { min-height: 180px; display: grid; place-content: center; gap: .35rem; padding: 1rem; color: var(--muted); text-align: center; }
.alert-empty strong { color: var(--ink); }
.alert-empty p { margin: 0; }
.sales-alert-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .8rem; }
.sales-alert-feed a { min-width: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: inherit; text-decoration: none; }
.sales-alert-feed .alert-feed-flag { grid-column: 2 / -1; color: #d69e2e; white-space: normal; }
.sales-alert-feed a:hover { border-color: #33445d; background: #142033; }
.sales-alert-feed a > span:nth-child(2) { min-width: 0; display: grid; }
.sales-alert-feed strong { color: var(--ink); font-size: .76rem; }
.sales-alert-feed small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.sales-alert-feed b { font-size: .76rem; }
.sales-alert-feed .positive { color: var(--green); }
.sales-alert-feed .negative { color: var(--red); }
.alert-status.negative { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.portfolio-builder { display: grid; grid-template-columns: 220px minmax(300px, 1fr); align-items: end; gap: .6rem 1rem; }
.portfolio-builder > div:first-child { display: grid; }
.portfolio-builder label { color: var(--navy); font-weight: 800; }
.portfolio-builder small, .portfolio-builder > p { color: var(--muted); font-size: .75rem; }
.portfolio-builder > p { grid-column: 1 / -1; margin: 0; }
.portfolio-input { display: flex; gap: .5rem; }
.portfolio-input input { min-width: 0; flex: 1; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.portfolio-input button { min-height: 46px; padding: 0 1rem; border: 0; border-radius: 9px; background: var(--blue); color: white; cursor: pointer; font: inherit; font-weight: 700; }
.portfolio-warning { color: var(--red) !important; }
.portfolio-overview { display: grid; grid-template-columns: 1fr 1.35fr; gap: .8rem; margin-top: .8rem; }
.portfolio-risk { display: grid; grid-template-columns: 1fr 94px; align-items: center; gap: .8rem; border-top: 3px solid var(--teal); }
.portfolio-risk.medium { border-top-color: var(--amber); }
.portfolio-risk.high { border-top-color: var(--red); }
.portfolio-risk h2 { margin: 0; }
.portfolio-risk p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }
.portfolio-risk-ring { --risk-color: var(--teal); width: 90px; height: 90px; display: grid; place-content: center; border-radius: 50%; background: radial-gradient(circle at center, white 57%, transparent 59%), conic-gradient(var(--risk-color) calc(var(--risk-score) * 1%), #e8edf3 0); text-align: center; }
.portfolio-risk.medium .portfolio-risk-ring { --risk-color: var(--amber); }
.portfolio-risk.high .portfolio-risk-ring { --risk-color: var(--red); }
.portfolio-risk-ring strong { color: var(--navy); font-size: 1.5rem; line-height: 1; }
.portfolio-risk-ring small { color: var(--muted); font-size: .75rem; }
.portfolio-risk-bars { grid-column: 1 / -1; display: grid; gap: .4rem; }
.portfolio-risk-bars span { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.portfolio-risk-bars i { height: 7px; display: block; overflow: hidden; border-radius: 99px; background: #e8edf3; }
.portfolio-risk-bars em { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.allocation-bar { height: 30px; display: flex; overflow: hidden; margin-top: 1rem; border-radius: 8px; background: #e8edf3; direction: rtl; }
.allocation-bar > i { display: block; }
.allocation-color-1 { background: var(--blue); }
.allocation-color-2 { background: #536c91; }
.allocation-color-3 { background: var(--amber); }
.allocation-color-4 { background: var(--violet); }
.allocation-color-5 { background: var(--red); }
.allocation-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .7rem; }
.allocation-legend span { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .75rem; }
.allocation-legend span > i { width: 9px; height: 9px; border-radius: 3px; }
.allocation-legend b { color: var(--navy); }
.portfolio-callout { margin: 1rem 0 0; padding: .6rem; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: .78rem; }
.portfolio-reports { margin-top: .8rem; }
.holding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.holding-card { padding: .8rem; border: 1px solid var(--line); border-right: 3px solid var(--teal); border-radius: 12px; background: var(--surface-soft); }
.holding-card.medium { border-right-color: var(--amber); }
.holding-card.high { border-right-color: var(--red); }
.holding-card > header { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.holding-card > header div { display: grid; }
.holding-card > header small { color: var(--muted); font-size: .75rem; }
.holding-card > header > span { color: var(--navy); font-size: .75rem; font-weight: 800; }
.holding-spark { height: 72px; display: flex; align-items: end; gap: .35rem; margin-top: .7rem; direction: ltr; }
.holding-spark i { min-height: 5px; flex: 1; border-radius: 4px 4px 0 0; background: var(--blue); }
.holding-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .6rem; }
.holding-metrics p { display: grid; margin: 0; }
.holding-metrics span { color: var(--muted); font-size: .75rem; }
.holding-summary { min-height: 50px; margin: .6rem 0; color: var(--muted); font-size: .76rem; }
.holding-card > a { color: var(--blue); font-size: .75rem; font-weight: 700; text-decoration: none; }
.portfolio-empty { margin-top: .8rem; text-align: center; }

.distance-panel .change-list { margin-top: .7rem; }
.product-bars { display: grid; gap: .58rem; margin-top: 1rem; }
.product-bars > a { min-height: 48px; display: grid; grid-template-columns: 120px minmax(80px, 1fr) minmax(130px, 145px); align-items: center; gap: .65rem; text-decoration: none; }
.product-bars > a > span { min-width: 0; display: grid; }
.product-bars strong { color: var(--navy); font-size: .75rem; }
.product-bars small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.product-bars > a > div { height: 10px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.product-bars i { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.product-bars em { min-width: 0; max-width: 100%; color: var(--navy); direction: rtl; overflow-wrap: anywhere; font-size: .75rem; font-style: normal; font-weight: 700; line-height: 1.45; text-align: right; }
.report-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.report-columns > section { min-width: 0; margin: 0; }
.report-columns > section + section { padding-right: 1rem; border-right: 1px solid var(--line); }
.report-columns h4 { margin: .45rem 0 0; color: var(--muted); font-size: .7rem; font-weight: 600; }

.report-list { display: grid; gap: .4rem; margin-top: .75rem; }
.report-list > a { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 160ms; }
.report-list > a:hover { background: var(--surface-soft); }
.report-list > a > span:first-child { min-width: 0; display: grid; }
.report-list > a strong { color: var(--navy); font-size: .76rem; }
.report-list > a small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.status { min-height: 24px; display: inline-flex; align-items: center; padding: .1rem .42rem; border-radius: 99px; background: #edf1f6; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.status.parsed, .status.completed, .status.success { background: var(--green-soft); color: var(--green); }
.status.running { background: var(--blue-soft); color: var(--blue); }
.status.queued, .status.partial { background: var(--amber-soft); color: var(--amber); }
.status.failed, .status.completed_with_errors, .status.cancel_requested, .status.cancelled, .status.rate_limited, .status.interrupted { background: var(--red-soft); color: var(--red); }

.industry-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin-top: .9rem; }
.industry-card { min-height: 72px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: .55rem; padding: .65rem; border: 1px solid var(--line); border-radius: 11px; background: white; text-decoration: none; transition: border-color 160ms, box-shadow 160ms, transform 160ms; }
.industry-card:hover { border-color: #b9c9df; box-shadow: 0 8px 20px rgb(35 49 77 / 7%); transform: translateY(-1px); }
.industry-rank { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; font-weight: 800; }
.industry-name { min-width: 0; display: grid; }
.industry-name strong { overflow: hidden; color: var(--navy); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.industry-name small { color: var(--muted); font-size: .75rem; }
.industry-name > i { height: 5px; display: block; margin-top: .4rem; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.industry-name > i b { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.industry-directory { position: relative; z-index: 10; margin-top: .7rem; }
.industry-directory summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; border: 1px dashed #cbd5e1; border-radius: 10px; color: var(--blue); cursor: pointer; font-size: .75rem; font-weight: 700; }
.industry-directory summary span { color: var(--muted); font-size: .75rem; font-weight: 500; }
.industry-directory[open] summary { border-style: solid; border-color: var(--blue); background: var(--blue-soft); }
.industry-directory > .cards { position: absolute; inset-inline: 0; bottom: calc(100% + .45rem); max-height: min(360px, 55vh); overflow: auto; overscroll-behavior: contain; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-raised); scrollbar-width: thin; }
.industry-ranking { display: grid; gap: .3rem; margin-top: .65rem; }
.industry-ranking > a { min-height: 44px; display: grid; grid-template-columns: minmax(110px, 1fr) minmax(60px, 1fr) 28px; align-items: center; gap: .55rem; padding: .25rem .35rem; border-radius: 7px; text-decoration: none; transition: background 160ms; }
.industry-ranking > a:hover { background: var(--surface-soft); }
.industry-ranking > a > span { min-width: 0; display: flex; align-items: center; gap: .45rem; }
.industry-ranking span > b { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: .68rem; }
.industry-ranking strong { overflow: hidden; color: var(--navy); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.industry-ranking > a > i { height: 6px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.industry-ranking > a > i b { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.industry-ranking em { color: var(--muted); font-size: .7rem; font-style: normal; font-variant-numeric: tabular-nums; text-align: left; }
.card strong { color: var(--navy); font-size: .78rem; }
.card span { font-size: .75rem; }

.crumb { margin-bottom: .9rem; color: var(--muted); font-size: .75rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.page-intro h1 { margin-bottom: .2rem; }
.count-badge, .analysis-period { padding: .3rem .65rem; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: .75rem; white-space: nowrap; }
.meta, .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.meta { margin-top: .65rem; }
.meta span, .meta strong { padding: .25rem .6rem; border-radius: 99px; background: var(--surface-soft); color: #526176; font-size: .75rem; }

.table-wrap { max-width: 100%; max-height: 640px; overflow: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 9px; background: white; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: .68rem .75rem; border-bottom: 1px solid var(--line); text-align: right; }
th { position: sticky; top: 0; z-index: 1; background: #f3f6fb; color: #54647b; font-size: .75rem; font-weight: 500; }
td { color: #465469; font-size: .75rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f1f5fd; }
td.positive { color: var(--green); }
td.negative, .error { color: var(--red); }
.summary, .empty, .error { padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.filters label { display: grid; gap: .25rem; color: var(--muted); font-size: .75rem; }

.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.admin-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stacked-form { display: grid; align-content: start; gap: .55rem; }
.stacked-form label { color: #526176; font-size: .75rem; font-weight: 600; }
.stacked-form button { margin-top: .35rem; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 400; }
.auth-card { width: min(430px, 100%); margin: 5rem auto; padding: 1.8rem; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.flash-stack { display: grid; gap: .45rem; margin-bottom: .9rem; }
.flash { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: white; }
.flash.success { border-color: #b8e0ca; color: var(--green); }
.flash.error { border-color: #f0c3c7; color: var(--red); }
.error-list { display: grid; gap: .55rem; }
.error-list details { border: 1px solid var(--line); border-radius: 10px; background: white; }
.error-list summary { min-height: 44px; display: flex; align-items: center; padding: .65rem .8rem; cursor: pointer; }
.error-list article { margin: 0 .65rem .65rem; padding: .8rem; border-right: 3px solid var(--red); border-radius: 8px; background: var(--red-soft); }
.error-list p { margin: .3rem 0; overflow-wrap: anywhere; color: #873640; }
.error-list small { color: var(--muted); }
.retry-form { margin: 0 .65rem .65rem; }
.counter-help { margin-top: .65rem; }
.status-detail { display: block; max-width: 260px; margin-top: .2rem; white-space: normal; }
.technical-error { display: block; margin-top: .3rem; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.live-progress progress { width: 100%; height: .7rem; accent-color: var(--blue); }

.signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.signal-card { display: grid; gap: .4rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.signal-card strong { color: var(--navy); font-size: 1.45rem; font-weight: 600; }
.signal-card small, .chart-heading small { color: var(--muted); }
.signal-card.positive { border-color: var(--line); }
.signal-card.negative { border-color: var(--line); }
.signal-card.neutral { border-color: var(--line); }
.sales-chart, .report-chart-card { margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.chart-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.average-key { color: var(--teal); font-size: .75rem; font-weight: 700; }
.chart-scroll { overflow-x: auto; padding-top: 1.8rem; }
.bar-chart { position: relative; min-width: 680px; height: 290px; display: flex; align-items: end; gap: .65rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); direction: ltr; }
.bar-column { position: relative; z-index: 1; height: 100%; min-width: 42px; flex: 1; display: block; direction: rtl; }
.bar { position: absolute; bottom: var(--bar-bottom, 0); left: 50%; transform: translateX(-50%); width: min(38px, 80%); border-radius: 3px 3px 0 0; background: #b5c9ed; }
.bar-column.latest .bar { background: var(--blue); }
.bar-value { position: absolute; bottom: calc(var(--bar-height) + .4rem); left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .75rem; white-space: nowrap; writing-mode: vertical-rl; }
.bar-column.latest .bar-value { color: var(--navy); font-weight: 800; }
.bar-label { position: absolute; bottom: -1.85rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .75rem; direction: ltr; }
.average-line { position: absolute; right: 0; left: 0; z-index: 2; border-top: 1px dashed var(--teal); pointer-events: none; }
.average-line span { position: absolute; top: -1.6rem; right: .4rem; padding: 0 .3rem; background: white; color: var(--teal); font-size: .75rem; }
.analysis-note { margin-top: .7rem; color: var(--muted); font-size: .75rem; }
.report-chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .9rem; color: var(--muted); font-size: .75rem; }
.report-chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.report-chart-legend i { width: 1rem; height: .48rem; border-radius: 99px; }
.report-chart-legend .primary, .report-bar-track .primary { background: var(--blue); }
.report-chart-legend .secondary, .report-bar-track .secondary { background: #536c91; }
.report-bar-chart { display: grid; gap: .8rem; }
.report-chart-row { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; align-items: center; gap: .9rem; }
.report-chart-row > strong { overflow-wrap: anywhere; font-size: .75rem; }
.report-chart-series { display: grid; gap: .3rem; }
.report-bar-line { display: grid; grid-template-columns: 88px minmax(120px, 1fr) 122px; align-items: center; gap: .5rem; }
.report-bar-line > span { color: var(--muted); font-size: .75rem; }
.report-bar-line > b { text-align: left; font-size: .75rem; font-variant-numeric: tabular-nums; }
.report-bar-track { height: .65rem; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.report-bar-track i { height: 100%; display: block; border-radius: inherit; }
.chart-limit-note { margin: .7rem 0 0; }


/* Shared workspace and progressive table controls. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:target { scroll-margin-top: 5rem; }
button:disabled { cursor: default; opacity: .5; }
input, select { max-width: 100%; font-size: .875rem; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
small { font-size: .75rem; }
.nav-group-label { margin: 1.4rem .8rem .35rem; color: #8295b1; font-size: .64rem; font-weight: 600; letter-spacing: .04em; }
.sidebar-plan { margin-top: auto; padding: 1.15rem .9rem .5rem; border: 1px solid rgb(127 161 210 / 22%); border-radius: 10px; background: linear-gradient(145deg, rgb(32 59 98 / 88%), rgb(20 37 63 / 88%)); box-shadow: 0 10px 24px rgb(3 12 26 / 18%); }
.sidebar-plan strong { display: block; margin: .45rem 0; color: #f2f6fc; font-size: .85rem; font-weight: 600; }
.sidebar-plan p { color: #a3b5d0; font-size: .75rem; }
.sidebar-plan a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid rgb(148 175 215 / 18%); color: #c8d9f5; font-size: .75rem; font-weight: 600; }
.sidebar-plan a:hover { color: white; }
.workspace-topbar { position: relative; z-index: 30; height: 72px; margin-right: 228px; padding: 0 2rem; display: flex; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); box-shadow: 0 4px 18px rgb(26 42 68 / 4%); }
@media (min-width: 901px) {
 .site-header, main, footer, .workspace-topbar { transition: width 200ms ease, margin-right 200ms ease; }
 .sidebar-toggle { position: absolute; top: 1.25rem; left: -22px; z-index: 2; width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #40597e; border-radius: 50%; background: #172b49; color: #dbe7f8; box-shadow: 0 6px 18px rgb(3 12 26 / 28%); }
 .sidebar-toggle:hover { border-color: #6d91c5; background: #203b62; }
 .sidebar-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform 200ms ease; }
 body.sidebar-collapsed .site-header { width: 76px; }
 body.sidebar-collapsed :is(main, footer, .workspace-topbar) { margin-right: 76px; }
 body.sidebar-collapsed .header-inner { padding-inline: .65rem; }
 body.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
 body.sidebar-collapsed .brand > span, body.sidebar-collapsed .nav-group-label, body.sidebar-collapsed .site-header nav a > span, body.sidebar-collapsed .nav-status, body.sidebar-collapsed .nav-active-dot, body.sidebar-collapsed .sidebar-plan, body.sidebar-collapsed .sidebar-meta { display: none; }
 body.sidebar-collapsed .site-header nav a { justify-content: center; padding-inline: 0; }
 body.sidebar-collapsed .site-header nav a svg { width: 21px; height: 21px; }
 body.sidebar-collapsed .site-header nav a.active { box-shadow: inset -3px 0 #67d4b3; }
 body.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
}
.workspace-label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.workspace-label span { padding: 0 .7rem; color: #9caaa4; }
.global-search { position: relative; display: flex; align-items: center; gap: .5rem; width: min(400px, 44%); margin-right: auto; padding: 0 .65rem 0 .2rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); transition: border-color 160ms, box-shadow 160ms, background 160ms; }
.global-search:focus-within { border-color: #8ba9df; background: white; box-shadow: 0 0 0 3px rgb(40 87 186 / 9%); }
.global-search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex-shrink: 0; }
.global-search input { border: 0; min-width: 0; width: 100%; background: transparent; }
.global-search button { width: 44px; padding: 0; background: transparent; color: var(--teal); font-size: 1.2rem; }
.search-suggestions { position: absolute; inset-inline: 0; top: calc(100% + .45rem); z-index: 40; max-height: min(360px, 60vh); overflow-y: auto; overscroll-behavior: contain; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-raised); scrollbar-width: thin; }
.search-suggestions a { min-height: 52px; display: grid; grid-template-columns: minmax(70px, auto) 1fr; align-items: center; gap: .75rem; padding: .45rem .65rem; border-radius: 7px; text-decoration: none; }
.search-suggestions a:hover, .search-suggestions a[aria-selected="true"] { background: var(--blue-soft); }
.search-suggestions strong { color: var(--navy); font-size: .8rem; }
.search-suggestions small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions-empty { margin: 0; padding: .7rem; color: var(--muted); font-size: .75rem; text-align: center; }
.topbar-action { min-height: 44px; display: flex; align-items: center; gap: .5rem; padding: 0 .7rem; border: 1px solid transparent; border-radius: 8px; color: var(--ink); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.topbar-action:hover { border-color: var(--line); background: var(--surface-soft); }
.intro-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 1.1rem; }
.page-intro p:last-child { margin-bottom: 0; }
.crumb { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; color: var(--muted); font-size: .8rem; }
.crumb a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--teal); }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8rem; color: var(--muted); }
.report-intro h1 { max-width: 950px; font-size: 1.55rem; }
.report-intro { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.positive, .delta.positive { color: var(--green); }
.negative, .delta.negative { color: var(--red); }
.neutral { color: var(--muted); }
.delta { display: inline-block; padding: .15rem .5rem; border-radius: 5px; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; font-weight: 500; }
.section-heading { margin-bottom: .75rem; }
.symbol-link { font-weight: 700; color: var(--navy); text-decoration: none; }
.evidence-label { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .5rem; border-radius: 4px; background: var(--teal-soft); color: var(--teal); font-size: .75rem; }
.evidence-label.calculated { background: var(--violet-soft); color: var(--violet); }
.notice { display: flex; gap: .6rem 1rem; align-items: baseline; padding: 1rem 1.25rem; border: 1px solid #e8dcc5; border-radius: 8px; background: #fcf8ef; color: #765622; font-size: .85rem; }
.notice strong { flex-shrink: 0; }
.chart-unit { display: block; margin-top: .65rem; color: var(--muted); font-size: .75rem; }
.table-controls { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin: 1rem 0 .65rem; }
.table-controls label { display: grid; gap: .3rem; color: var(--muted); font-size: .75rem; }
.table-controls input { width: min(340px, 100%); }
.table-count { margin: 0; color: var(--muted); font-size: .8rem; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .75rem 0 0; }
.table-pagination div { display: flex; gap: .5rem; align-items: center; }
.table-pagination p { margin: 0; color: var(--muted); font-size: .8rem; }
.table-page-numbers { display: flex; align-items: center; gap: .35rem; }
.table-pagination button, .table-page-numbers i { min-width: 36px; height: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: .65rem; font-style: normal; font-weight: 750; }
.table-pagination button { cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.table-pagination button:hover:not(:disabled):not(.active) { border-color: #7dd3fc; background: #eff6ff; color: #0284c7; }
.table-pagination button.active { border-color: #0284c7; background: #0284c7; color: #fff; box-shadow: 0 6px 14px rgb(2 132 199 / 24%); }
.table-pagination button:disabled { opacity: .42; cursor: default; }
.table-page-numbers i { min-width: 22px; border-color: transparent; background: transparent; color: var(--muted); }
.sort-button { min-height: 44px; justify-content: start; width: 100%; padding: .3rem 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; text-align: right; }
.sort-button::after { content: '↕'; margin-inline-start: auto; padding-inline-start: .6rem; color: var(--muted); }
.sort-button:hover { background: transparent; color: var(--teal); }
th[aria-sort=ascending] .sort-button::after { content: '↑'; color: var(--teal); }
th[aria-sort=descending] .sort-button::after { content: '↓'; color: var(--teal); }
th:has(.sort-button) { padding-block: .3rem; }
td { height: 55px; padding-block: .5rem; font-size: .825rem; line-height: 1.45; }
td small { font-size: .7rem; line-height: 1.45; }
td small, .comparison-table th small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 400; }
.comparison-table th small a { color: var(--blue); text-decoration: none; }
tbody tr:focus-within { background: var(--teal-soft); }
caption { padding: .8rem; color: var(--muted); font-size: .8rem; text-align: right; }
.comparison-table th:first-child { width: 240px; }
.comparison-table th[scope=row] { position: static; background: var(--surface-soft); }
.comparison-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.filters select { min-width: 0; width: 100%; }
.filters label { min-width: 0; }
.next-step, .premium-preview { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: #eef2fa; }
.next-step p, .premium-preview p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: .875rem; }
.premium-preview h2 { margin: .9rem 0 .5rem; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.plan { padding: 2rem; display: flex; flex-direction: column; align-items: start; }
.plan h2 { font-size: 1.5rem; margin: 1.5rem 0 .3rem; }
.plan p, .plan small { color: var(--muted); }
.plan-price { display: block; font-size: 1.4rem; margin: .8rem 0; }
.plan ul { list-style: none; padding: 0; margin-bottom: 2rem; flex: 1; }
.plan li { padding: .5rem 0; font-size: .875rem; }
.plan li::before { content: '✓'; padding-left: .6rem; color: var(--teal); }
.plan > small { margin-top: 1rem; }
.pro-plan { border: 1px solid #9cb4e1; background: #ffffff; }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.principles-grid h3 { margin-top: .8rem; }
.principles-grid p { color: var(--muted); font-size: .85rem; }
.watchlist-add { display: grid; gap: .6rem; margin-bottom: .75rem; }
.watchlist-add label { font-size: .875rem; font-weight: 600; }
.watchlist-add select { width: min(500px, 100%); }
.watch-method { margin: .75rem 0 1rem; color: var(--muted); font-size: .78rem; line-height: 1.9; }
.watch-method summary { width: fit-content; color: var(--blue); cursor: pointer; font-weight: 700; }
.watch-method p { margin: .5rem 0 0; }
.watchlist-table table { min-width: 900px; }
.watchlist-table td { vertical-align: top; }
.watchlist-table td:first-child small { display: block; color: var(--muted); font-size: .7rem; }
.watch-score { color: var(--blue); font-size: 1.1rem; white-space: nowrap; }
.watch-score small { display: block; color: var(--muted); font-size: .65rem; font-weight: 400; }
.watch-factors { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: .4rem .8rem; }
.watch-factors span { display: grid; color: var(--muted); font-size: .7rem; }
.watch-factors b { color: var(--navy); font-size: .72rem; }
.watch-factors small { color: var(--muted); font-size: .62rem; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state p { color: var(--muted); max-width: 550px; margin: 0 auto 1rem; }
.empty-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--teal); font-size: 2rem; background: var(--surface-soft); }
.empty { color: var(--muted); font-size: .85rem; line-height: 1.9; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.card { min-width: 0; display: grid; gap: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: white; text-decoration: none; }
.card:hover { border-color: #9cb4e1; background: #f7f9ff; }
.card span { font-size: .8rem; }
.interaction-status:empty { display: none; }
.interaction-status { position: fixed; bottom: 1.2rem; left: 1.2rem; z-index: 100; max-width: calc(100% - 2.4rem); margin: 0; padding: .8rem 1.1rem; border-radius: 8px; background: var(--navy); color: white; font-size: .85rem; box-shadow: var(--shadow-raised); }
form[aria-busy=true] button[type=submit], form[aria-busy=true] button:not([type]) { opacity: .65; cursor: progress; }
.chart-tooltip { position: fixed; z-index: 100; pointer-events: none; max-width: 280px; padding: .6rem .8rem; border-radius: 6px; background: var(--navy); color: white; font-size: .8rem; }
footer p { margin: 0; }

/* Research workspace. Chart colours are separate from gain/loss indicators. */
.nav-active-dot { display: none; width: 5px; height: 5px; margin-right: auto; border-radius: 50%; background: #93b8ff; }
.active .nav-active-dot { display: block; }
.sidebar-plan .eyebrow { color: #a9c7ff; }
.sidebar-meta .status-orb { background: #8cacdc; }
.site-header nav { margin-bottom: 2rem; }
.workspace-label b { color: var(--ink); font-weight: 500; }
.topbar-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.market-summary strong small { color: #aebed3; font-size: .7rem; font-weight: 400; }
.market-summary > div:last-child strong { font-size: 1.2rem; }
.section-jump a.current { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.scope-label { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.overview-workspace { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(260px, 1fr); gap: 1rem; align-items: stretch; scroll-margin-top: 4.5rem; }
.featured-chart { padding: 1.25rem 1.4rem .55rem; }
.feature-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.feature-heading h2 { margin: 0; font-size: 1rem; }
.feature-heading .text-link { min-height: 35px; flex-shrink: 0; }
.featured-chart > header { padding-top: .75rem; border-top: 1px solid var(--line); }
.featured-chart > header a { font-size: 1.15rem; }
.featured-chart > header small { display: inline; }
.featured-chart .divergence-chart { height: 190px; }
.featured-chart .divergence-kpis strong { font-size: .95rem; }
.indexed-chart { direction: ltr; }

.chart-gridline { stroke: #ccd5e3; stroke-dasharray: 3 4; stroke-width: 1; }
.featured-chart .line-legend { margin-top: .85rem; }
.divergence-card .chart-unit { font-size: .65rem; margin-top: .25rem; }
.featured-chart .chart-data summary { font-size: .7rem; }
.latest-market-price { font-size: .65rem; }
.market-breadth-panel h2 { font-size: .95rem; }
.breadth-visual { position: relative; width: 170px; height: 170px; margin: .5rem auto; flex: 0 0 auto; }
.breadth-visual svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.breadth-visual circle { fill: none; stroke-width: 8; }
.ring-track { stroke: #dce3ee; }
.ring-growth { stroke: var(--green); }
.ring-decline { stroke: var(--red); }
.breadth-visual > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.breadth-visual strong { font-size: 1.9rem; line-height: 1.5; font-weight: 500; color: var(--navy); }
.breadth-visual strong small { font-size: 1rem; }
.breadth-visual span { font-size: .75rem; color: var(--muted); }
.breadth-legend > div > strong { font-size: .8rem; font-weight: 500; color: var(--ink); }
.breadth-legend > div > small { grid-column: auto; text-align: left; font-size: .7rem; color: var(--muted); }
.breadth-legend strong small { color: var(--muted); font-size: .65rem; }
.breadth-legend .growth span::before { color: var(--green); }
.breadth-legend .decline span::before { color: var(--red); }
.breadth-legend .neutral span::before { color: #8e9bb0; }
.market-breadth-panel .method-note { border: 0; margin-top: .5rem; font-size: .7rem; }
.breadth-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; color: var(--blue); text-decoration: none; font-size: .75rem; }
.data-source b { color: var(--green); }
.data-source i.real { background: var(--green); }
.decision-card.positive { background: #f8fcfa; border-color: #dbeae2; }
.decision-card.negative { background: #fffafb; border-color: #efdee2; }
.decision-card.opportunity { background: #f8faff; border-color: #dce4f4; }
.trend-lane:last-child { border-left: 0; }
.delta.positive { background: var(--green-soft); }
.delta.negative { background: var(--red-soft); }
.signal-card > span { color: var(--muted); font-size: .8rem; }
.signal-card.positive strong { color: var(--green); }
.signal-card.negative strong { color: var(--red); }
.page-intro h1 { font-size: 1.8rem; }
.page-intro p { color: var(--muted); font-size: .85rem; }
.table-wrap:focus-visible, [data-chart-tip]:focus-visible { outline: 3px solid #247caa; outline-offset: 2px; }
.chart-latest { margin: .7rem 0 0; color: var(--muted); font-size: .85rem; }
.chart-latest strong { color: var(--blue); font-size: 1.15rem; }
.sales-gridline { position: absolute; inset-inline: 0; border-top: 1px solid var(--line); pointer-events: none; }
.bar-column:focus-visible .bar, .bar-column:hover .bar { background: var(--blue); }
.chart-zero { position: absolute; inset-inline: 0; border-top: 1px solid #8f9db2; pointer-events: none; }
.chart-zero span { position: absolute; right: -.7rem; top: -.7rem; color: var(--muted); font-size: .75rem; }
.bar-column.negative .bar { background: var(--red); border-radius: 0 0 3px 3px; }

.divergence-kpis strong.gap-metric { direction: rtl; }
.gap-metric small { margin-inline-start: .3rem; color: var(--muted); font-size: .7rem; font-weight: 400; }
.divergence-kpis strong.positive { color: var(--green); }
.divergence-kpis strong.negative { color: var(--red); }
.company-identity { display: flex; gap: 1rem; align-items: center; }
.company-mark { width: 62px; height: 62px; display: grid; place-items: center; flex-shrink: 0; border-radius: 13px; border: 1px solid #cdd9ef; background: white; color: var(--blue); font-size: 2rem; font-weight: 700; }
.company-intro { padding-bottom: .65rem; }
.company-analysis > .section-heading { align-items: center; margin-bottom: 1rem; }
.company-analysis > .section-heading h2 { font-size: 1rem; }
.company-analysis > .section-heading p { margin: .15rem 0 0; font-size: .75rem; }
.company-analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: stretch; gap: 1rem; }
.company-analysis-grid .sales-chart { min-width: 0; margin: 0; }
.company-analysis-grid .signal-grid { grid-template-columns: 1fr; }
.company-analysis-grid .signal-card { align-content: center; }
.company-analysis-grid .signal-card strong { font-size: 1.35rem; }
.screening-workspace .filters { margin: .85rem 0 0; padding: .8rem 0; border-width: 1px 0; border-radius: 0; }
.screening-workspace .table-controls { margin: .75rem 0; align-items: center; }
.screening-workspace .table-controls label { grid-template-columns: auto minmax(160px, 240px); align-items: center; gap: .75rem; }
.screening-workspace .section-heading { align-items: center; }
.screening-workspace .evidence-label { margin-bottom: .4rem; }
.screening-hero { margin: 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.screening-hero .button { flex: 0 0 auto; }
.screening-archive { overflow: hidden; padding: 1.1rem; }
.screening-heading { margin-bottom: .35rem; }
.screening-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .45fr) auto auto; align-items: end; gap: .7rem; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.screening-filters label { gap: .3rem; font-size: .68rem; font-weight: 650; }
.screening-filters :is(input, select) { width: 100%; }
.screening-filters .text-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-inline: .55rem; }
.screening-table-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--surface-soft); }
.screening-table-toolbar :is(p, span) { margin: 0; color: var(--muted); font-size: .67rem; }
.screening-table-toolbar p i { width: 4px; height: 4px; display: inline-block; margin-inline: .45rem; border-radius: 50%; background: #94a3b8; vertical-align: middle; }
.screening-table-toolbar strong { color: var(--ink); }
.screening-table-toolbar b { color: var(--blue); }
.screening-table-wrap { max-height: none; border-radius: 0; }
.screening-table { table-layout: fixed; }
.screening-table th { height: 50px; padding: .6rem .8rem; background: #f3f6fb; color: #526176; font-size: .68rem; font-weight: 750; }
.screening-table th:nth-child(1) { width: 21%; }
.screening-table th:nth-child(2) { width: 13%; }
.screening-table th:nth-child(3), .screening-table th:nth-child(4) { width: 17%; }
.screening-table th:nth-child(5) { width: 19%; }
.screening-table th:nth-child(6) { width: 13%; }
.screening-table td { height: 62px; padding: .65rem .8rem; color: #334155; font-size: .72rem; vertical-align: middle; }
.screening-table tbody tr:hover > td { background: #f3f8ff; }
.screening-table .symbol-link { color: #0284c7; font-size: .82rem; font-weight: 850; text-decoration: none; }
.screening-table .symbol-link:hover { text-decoration: underline; }
.screening-table td > small { display: block; max-width: 100%; overflow: hidden; margin-top: .15rem; color: #718096; text-overflow: ellipsis; white-space: nowrap; }
.screening-table td > strong { color: #0f172a; }
.screening-table .delta { min-width: 82px; padding: .3rem .55rem; border: 1px solid transparent; border-radius: 7px; text-align: center; }
.screening-table .delta.positive { border-color: #a7f3d0; background: #ecfdf5; color: #059669; }
.screening-table .delta.negative { border-color: #fecdd3; background: #fff1f2; color: #e11d48; }
.screening-table .delta.neutral { border-color: #dce5f0; background: #f8fafc; color: #64748b; }
.screening-row-action a { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .35rem .65rem; border: 1px solid #dce5f0; border-radius: 8px; background: #f8fafc; color: #0369a1; font-size: .65rem; font-weight: 750; text-decoration: none; }
.screening-row-action a:hover { border-color: #7dd3fc; background: #ecfeff; }
.screening-pagination { min-height: 70px; margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 11px 11px; background: var(--surface-soft); }
.screening-pagination > p { margin: 0; color: var(--muted); font-size: .66rem; }
.screening-pagination > p i { width: 4px; height: 4px; display: inline-block; margin-inline: .45rem; border-radius: 50%; background: #94a3b8; vertical-align: middle; }
.screening-pagination > p strong { color: var(--ink); }
.screening-empty { border: 1px dashed var(--line); border-radius: 11px; background: var(--surface-soft); }

html[data-market-theme="dark"] body[data-page="public.screening"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.screening"] .market-terminal,
html[data-market-theme="dark"] body[data-page="public.screening"] .market-terminal > main { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.screening"] :is(.screening-hero, .screening-archive) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-hero h1,
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-heading h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-hero .button.secondary { border-color: #29364a; background: #111b2b; color: #7dd3fc; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-hero .button.secondary:hover { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.screening"] .evidence-label.calculated { background: rgb(167 139 250 / 12%); color: #c4b5fd; }
html[data-market-theme="dark"] body[data-page="public.screening"] .panel-note { background: #111b2b; color: var(--muted); }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-filters { border-color: var(--line); background: #0b1321; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-filters :is(input, select) { border-color: #29364a; background: #080f1c; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-filters button { background: #194498; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-filters button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-filters .text-link { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table-toolbar,
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-pagination { border-color: var(--line); background: #111824; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table-wrap { border-color: var(--line); background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table th { border-color: var(--line); background: #0b1321; color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table td { border-color: var(--line); background: #0e1625; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table tbody tr:nth-child(even) td { background: #0d1523; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table tbody tr:hover > td { background: #142033; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table td > strong { color: #f2f6fc; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table td > small { color: #7f91aa; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table .symbol-link { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table .delta.positive { border-color: #075e52; background: #073b35; color: #34d399; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table .delta.negative { border-color: #713042; background: #351d29; color: #fb7185; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-table .delta.neutral { border-color: #29364a; background: #1c293c; color: #94a3b8; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-row-action a { border-color: #263247; background: #101725; color: #7dd3fc; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-row-action a:hover { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.screening"] .screening-empty { border-color: var(--line); background: #0b1321; }
html[data-market-theme="dark"] body[data-page="public.screening"] .method-note { border-color: var(--line); }
body[data-page="public.home"] .market-section .panel { box-shadow: inset 0 2px var(--section-soft), 0 7px 24px rgb(28 49 80 / 5%); }
@media (max-width: 1100px) {
 .company-analysis-grid { grid-template-columns: minmax(0, 1fr); }
 .company-analysis-grid .signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-row: 1; }
}
@media (max-width: 700px) {
 .company-analysis-grid .signal-grid { grid-template-columns: 1fr; }
 .company-mark { width: 52px; height: 52px; font-size: 1.7rem; }
 .screening-workspace .table-controls label { grid-template-columns: 1fr; gap: .3rem; }
 .screening-hero { align-items: stretch; padding: 1rem; }
 .screening-hero .button { width: 100%; }
 .screening-archive { padding: .75rem; }
 .screening-heading { align-items: flex-start; flex-direction: column; }
 .screening-filters { grid-template-columns: 1fr; padding: .75rem; }
 .screening-filters button, .screening-filters .text-link { width: 100%; }
 .screening-table-toolbar { align-items: flex-start; flex-direction: column; gap: .3rem; border-bottom: 1px solid var(--line); border-radius: 10px; }
 .screening-table-wrap { overflow: visible; border: 0; background: transparent; }
 .screening-table, .screening-table tbody { display: block; }
 .screening-table thead { display: none; }
 .screening-table tbody { display: grid; gap: .7rem; margin-top: .75rem; }
 .screening-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
 .screening-table td { min-width: 0; height: auto; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .65rem .75rem; border: 0; border-bottom: 1px solid var(--line); background: transparent !important; white-space: normal; text-align: left; }
 .screening-table td::before { color: var(--muted); content: attr(data-label); font-size: .62rem; text-align: right; }
 .screening-table td:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; justify-content: start; text-align: right; }
 .screening-table td:first-child::before { grid-column: 1 / -1; }
 .screening-table td:nth-last-child(-n+2) { border-bottom: 0; }
 .screening-table td:nth-child(odd):not(:first-child) { border-inline-start: 1px solid var(--line); }
 .screening-row-action { grid-column: 1 / -1; }
 .screening-row-action a { width: 100%; }
 .screening-pagination { margin-top: .75rem; border: 1px solid var(--line); border-radius: 10px; }
}

/* Compact account summary opened from the terminal header. */
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu[open] > summary { filter: brightness(1.12); box-shadow: 0 0 0 3px rgb(56 189 248 / 14%), 0 7px 18px rgb(37 99 235 / 22%); }
.account-menu-panel {
  position: absolute;
  z-index: 120;
  inset-inline-end: 0;
  top: calc(100% + .65rem);
  width: 290px;
  overflow: hidden;
  padding: .8rem;
  border: 1px solid #26354c;
  border-radius: 14px;
  background: #0c1422;
  color: #e5edf7;
  box-shadow: 0 20px 55px rgb(0 0 0 / 42%);
}
.account-menu-panel header { display: flex; align-items: center; gap: .7rem; padding: .15rem .1rem .75rem; border-bottom: 1px solid #1d2a3e; }
.account-menu-panel header div { min-width: 0; display: grid; gap: .18rem; }
.account-menu-panel header strong { overflow: hidden; color: #f8fafc; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-panel header small { color: #718096; font-size: .62rem; }
.account-menu-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid rgb(56 189 248 / 32%); border-radius: 11px; background: rgb(14 165 233 / 13%); color: #7dd3fc; font-size: .95rem; font-weight: 900; }
.account-menu-panel dl { margin: .55rem 0 .7rem; display: grid; }
.account-menu-panel dl div { min-width: 0; padding: .48rem .2rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.account-menu-panel dt { color: #718096; font-size: .62rem; }
.account-menu-panel dd { min-width: 0; margin: 0; overflow: hidden; color: #cbd5e1; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-panel form,
.account-menu-panel button { width: 100%; }
.account-menu-panel button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid #fb7185; border-radius: 9px; background: #e11d48; color: #fff; font: inherit; font-size: .7rem; font-weight: 850; cursor: pointer; }
.account-menu-panel button:hover { background: #be123c; }
.account-menu-panel button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
html[data-market-theme="light"] .account-menu-panel { border-color: #d7e0ec; background: #fff; color: #1e293b; box-shadow: 0 20px 55px rgb(15 23 42 / 16%); }
html[data-market-theme="light"] .account-menu-panel header { border-color: #e2e8f0; }
html[data-market-theme="light"] .account-menu-panel header strong { color: #0f172a; }
html[data-market-theme="light"] .account-menu-panel dd { color: #334155; }
@media (max-width: 700px) {
  .mobile-account-menu .account-menu-panel { position: fixed; inset: var(--mobile-market-header-height, 64px) 12px auto; width: auto; }
}

.mobile-tools { position: relative; display: none; z-index: 40; flex-shrink: 0; }
.mobile-tools summary { width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; list-style: none; }
.mobile-tools summary::-webkit-details-marker { display: none; }
.mobile-tools summary svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mobile-tools[open] summary { border-color: var(--blue); background: var(--blue-soft); }
.mobile-tools nav { position: absolute; top: calc(100% + .5rem); left: 0; width: 240px; display: grid; padding: .45rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-raised); }
.mobile-tools nav a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem; border-radius: 6px; color: var(--ink); font-size: .8rem; text-decoration: none; }
.mobile-tools nav a:hover, .mobile-tools nav a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.mobile-tools nav small { font-size: .65rem; color: var(--muted); }
@media (max-width: 900px) {
 .mobile-tools { display: block; }
 .workspace-topbar { gap: .6rem; }
 .comparison-table th:first-child { position: sticky; right: 0; z-index: 2; min-width: 125px; max-width: 145px; white-space: normal; }
 .comparison-table thead th:first-child { z-index: 3; }
}

@media (min-width: 1600px) { main { padding-inline: 3rem; } .featured-chart .divergence-chart { height: 250px; } }
@media (max-width: 1240px) {
 main { padding-inline: 1.25rem; }
 .workspace-topbar { padding-inline: 1.25rem; }
 .workspace-label { display: none; }
 .global-search { width: min(500px, 80%); margin-right: 0; }
 .topbar-action { margin-right: auto; }
 .dashboard-heading { flex-wrap: wrap; }
 .overview-workspace { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); }
 .feature-heading { display: block; }
 .feature-heading .text-link { display: none; }
 .featured-chart { padding-inline: 1rem; }
 .featured-chart .divergence-kpis strong { font-size: .875rem; }
 .divergence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .risk-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .market-calendar-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .ranking-grid, .insight-showcase, .reports-layout, .alerts-layout, .portfolio-overview { grid-template-columns: 1fr; }
 .industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .decision-card { grid-template-columns: 1fr; }
 .decision-card > strong { text-align: right; }
 .trend-lanes { grid-template-columns: 1fr; }
 .trend-lane { border: 0; }
}
@media (max-width: 900px) {
 .site-header { position: static; width: 100%; border: 0; box-shadow: 0 5px 18px rgb(10 25 47 / 10%); }
 .header-inner { height: auto; min-height: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 1.25rem; overflow: visible; }
 .brand { min-height: 44px; padding: 0; border: 0; font-size: 1.15rem; }
 .brand > img { width: 34px; height: 34px; }
 .brand small, .sidebar-meta, .sidebar-plan, .nav-group-label, .nav-status, .nav-active-dot { display: none; }
 .site-header nav { display: flex; gap: .3rem; margin: 0; overflow-x: auto; }
 .site-header nav a { min-width: 72px; min-height: 48px; display: grid; justify-items: center; align-content: center; gap: .15rem; padding: .4rem; font-size: .7rem; line-height: 1.4; }
 .site-header nav a.active { box-shadow: inset 0 -2px #67d4b3; }
 .site-header nav a svg { width: 18px; height: 18px; }
 .site-header nav a.nav-desktop-only, .site-header nav a.nav-mobile-hidden, .active .nav-active-dot { display: none; }
 .workspace-topbar { margin: 0; height: 64px; }
 .global-search { width: min(560px, 80%); }
 main { margin: 0; padding: 1.5rem 1.25rem 3rem; }
 footer { margin-right: 0; grid-template-columns: 1fr auto; }
 .footer-disclaimer { grid-column: 1 / -1; max-width: none; justify-self: stretch; padding-top: .8rem; border-top: 1px solid rgb(167 191 225 / 14%); text-align: right; }
 .dashboard-heading { flex-wrap: nowrap; }
 .market-summary { gap: .65rem; }
 .market-summary > div { padding: .8rem; }
 .decision-grid { gap: .65rem; }
 .admin-grid, .admin-grid.two-columns, .industry-benchmark-grid, .portfolio-builder { grid-template-columns: 1fr; }
 .portfolio-builder > p { grid-column: auto; }
 .comparison-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .plans-grid { gap: .8rem; }
 .plan { padding: 1.25rem; }
 .principles-grid { grid-template-columns: 1fr; gap: 1rem; }
 .signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .signal-card { padding: .85rem; }
 .signal-card strong { font-size: 1.2rem; }
}
@media (max-width: 700px) {
 .header-inner { display: block; padding: .8rem 1rem .6rem; }
 .brand { justify-content: center; gap: .55rem; }
 .site-header nav { justify-content: flex-start; margin-top: .8rem; }
 .site-header nav a { min-width: 72px; flex: 0 0 auto; padding: .4rem .7rem; }
 .workspace-topbar { padding-inline: 1rem; }
 .global-search { width: 100%; }
 .topbar-action { display: none; }
 main { padding: 1.15rem 1rem 2rem; }
 .dashboard-heading { align-items: stretch; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
 .dashboard-hero h1 { font-size: 1.6rem; }
 .insight-filter { flex-wrap: nowrap; }
 .insight-filter select { min-width: 0; flex: 1; max-width: none; }
 .insight-filter button { flex-shrink: 0; }
 .market-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
 .market-summary > div { min-height: 82px; }
 .market-summary strong { font-size: 1.35rem; }
 .market-summary > div:last-child strong { font-size: 1.08rem; }
 .market-summary span { font-size: .7rem; }
 .section-jump { gap: 0; }
 .section-jump a { padding-inline: .65rem; font-size: .75rem; }
 .scope-label { display: none; }
 .dashboard-command { margin: .65rem 0 1rem; }
 .overview-workspace { grid-template-columns: 1fr; }
 .featured-chart { padding: 1rem 1rem .35rem; }
 .featured-chart .divergence-chart { height: 180px; }
 .feature-heading h2 { font-size: .95rem; }
 .featured-chart .divergence-kpis strong { font-size: .85rem; }
 .featured-chart .line-legend { gap: .6rem; font-size: .7rem; }
 .divergence-kpis span { font-size: .65rem; }
 .divergence-signal { font-size: .65rem; }
 .data-trust { gap: .4rem .7rem; }
 .data-trust > span:last-child { width: 100%; }
 .decision-brief > header { align-items: start; }
 .decision-brief header > a { font-size: .7rem; max-width: 88px; }
 .decision-brief header p:last-child { font-size: .7rem; }
 .decision-grid { grid-template-columns: 1fr; }
 .decision-card { grid-template-columns: 1fr auto; min-height: 116px; }
 .decision-card > strong { text-align: left; }
 .market-calendar-events { grid-template-columns: 1fr; }
 .market-pulse > header { align-items: flex-start; flex-direction: column; gap: .35rem; }
 .market-tape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .market-tape article:nth-child(2) { border-left: 0; }
 .market-tape article:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 10%); }
 .market-tape article { min-height: 112px; padding: .65rem .75rem; }
 .market-breadth-panel { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: .4rem 1rem; }
 .market-breadth-panel .section-heading, .market-breadth-panel .method-note, .breadth-link { grid-column: 1 / -1; }
 .breadth-visual { width: 115px; height: 115px; align-self: center; }
 .breadth-visual strong { font-size: 1.35rem; }
 .breadth-visual span { font-size: .65rem; }
 .breadth-legend { margin: 0; align-self: center; }
 .breadth-legend > div { grid-template-columns: 1fr auto; gap: .15rem; }
 .breadth-legend > div > small { display: none; }
 .breadth-legend span, .breadth-legend > div > strong { font-size: .7rem; }
 .breadth-legend strong small { display: none; }
 .panel { padding: 1rem; }
 .divergence-grid, .risk-grid, .holding-grid, .plans-grid, .comparison-filters { grid-template-columns: 1fr; }
 .divergence-chart { height: 180px; }
 .section-titlebar { gap: .5rem; }
 .section-titlebar h2 { font-size: 1rem; }
 .section-titlebar > a, .section-titlebar > span { font-size: .7rem; }
 .change-list > a { grid-template-columns: 106px minmax(25px, 1fr) 78px; gap: .4rem; }
 .change-list em { font-size: .75rem; }
 .product-bars > a { grid-template-columns: 75px minmax(35px, 1fr) 105px; gap: .35rem; }
 .benchmark-list > a { grid-template-columns: minmax(100px, 1fr) minmax(25px, .5fr) 72px; }
 .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .report-columns { grid-template-columns: 1fr; gap: .5rem; }
 .report-columns > section + section { padding: .75rem 0 0; border-top: 1px solid var(--line); border-right: 0; }
 .report-list-grid { grid-template-columns: 1fr; }
 .page-intro, .chart-heading, .notice, .next-step, .premium-preview { flex-direction: column; align-items: start; gap: .85rem; }
 .intro-actions { width: 100%; }
 .intro-actions .button { flex: 1; }
 .section-heading, .page-heading { align-items: start; flex-wrap: wrap; gap: .6rem; }
 .mock-badge, .panel-note, .analysis-chip, .analysis-period { white-space: normal; }
 .signal-grid { grid-template-columns: 1fr; gap: .65rem; }
 .signal-card { grid-template-columns: 1fr auto; align-items: center; }
 .signal-card strong { font-size: 1.2rem; }
 .signal-card small { grid-column: 1 / -1; }
 .sales-chart, .report-chart-card { padding: 1rem; }
 .filters { align-items: stretch; flex-direction: column; }
 .table-controls, .table-controls label, .table-controls input { width: 100%; }
 .table-pagination { align-items: start; }
 .table-wrap { max-height: 540px; }
 .chart-months { font-size: .6rem; }
 .report-chart-row { grid-template-columns: 1fr; gap: .35rem; }
 .report-bar-line { grid-template-columns: 72px minmax(75px, 1fr) 88px; gap: .3rem; }
 .active-alert-grid { grid-template-columns: 1fr; }
 .alert-flow > div { min-height: 82px; grid-template-columns: 1fr; justify-items: center; gap: .4rem; padding: .65rem .25rem; text-align: center; }
 .alert-flow span { width: 26px; height: 26px; grid-row: auto; }
 .alert-flow strong { font-size: .7rem; }
 .alert-flow small { display: none; }
 .telegram-destination { grid-template-columns: 38px 1fr; }
 .telegram-destination > span { display: none; }
 .portfolio-input { align-items: stretch; flex-direction: column; }
 footer { grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem 1rem; }
 .footer-disclaimer { grid-column: auto; margin: 0; }
}
@media (max-width: 360px) {
 .site-header nav a { padding-inline: .5rem; }
 .market-breadth-panel { grid-template-columns: 95px minmax(0, 1fr); gap: .4rem .65rem; }
 .breadth-visual { width: 95px; height: 95px; }
 .breadth-visual strong { font-size: 1.15rem; }
 .industry-grid, .reports-layout .industry-grid { grid-template-columns: 1fr; }
 .decision-card { column-gap: .25rem; }
 .decision-card.opportunity > strong { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Financial statements workspace */
.financial-hero { position: relative; min-height: 176px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; margin: 0 0 1rem; padding: 1.6rem 1.8rem; border: 1px solid #263f65; border-radius: 16px; background: radial-gradient(circle at 8% 10%, rgb(69 119 192 / 32%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%); color: white; box-shadow: 0 14px 34px rgb(18 38 70 / 12%); }
.financial-hero::after { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px); background-size: 36px 36px; content: ""; mask-image: linear-gradient(to left, black, transparent 70%); pointer-events: none; }
.financial-hero > * { position: relative; z-index: 1; }
.financial-hero h1 { margin: 0 0 .25rem; font-size: clamp(1.8rem, 3vw, 2.35rem); }
.financial-hero p:last-child { max-width: 650px; margin: 0; color: #bac8dc; font-size: .85rem; }
.financial-hero .eyebrow { color: #82e0c4; font-weight: 700; }
.financial-hero-stats { min-width: 360px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.financial-hero-stats div { min-height: 84px; display: grid; align-content: center; justify-items: center; padding: .7rem; border: 1px solid rgb(167 191 225 / 18%); border-radius: 10px; background: rgb(255 255 255 / 7%); }
.financial-hero-stats dt { color: #aebed3; font-size: .68rem; }
.financial-hero-stats dd { margin: .2rem 0 0; color: white; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.financial-filters { margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 12px; }
.financial-filter-heading, .financial-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.financial-filter-heading { margin-bottom: .85rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.financial-filter-heading h2, .financial-list-heading h2 { margin: 0; font-size: 1rem; }
.financial-filter-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .72rem; }
.financial-filter-heading > a { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); font-size: .75rem; text-decoration: none; }
.financial-filter-heading > a:hover { text-decoration: underline; }
.financial-filter-grid { display: grid; grid-template-columns: 1.25fr 1.25fr repeat(4, minmax(120px, 1fr)); gap: .65rem; }
.financial-filter-grid label { min-width: 0; display: grid; gap: .3rem; color: #526176; font-size: .72rem; font-weight: 600; }
.financial-filter-grid input, .financial-filter-grid select { min-width: 0; width: 100%; background: var(--surface-soft); }
.financial-filter-grid input:focus, .financial-filter-grid select:focus { background: white; }
.financial-filter-actions { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.financial-filter-actions span { color: var(--muted); font-size: .72rem; }
.financial-report-panel { padding: 1rem 1.1rem; }
.financial-list-heading { margin-bottom: .75rem; }
.financial-list-heading .eyebrow { margin: 0; }
.financial-report-table-wrap { max-height: 690px; }
.financial-report-table { table-layout: auto; }
.financial-report-table th:nth-child(1) { width: 92px; }
.financial-report-table th:nth-child(2) { width: 130px; }
.financial-report-table th:nth-child(3) { width: 120px; }
.financial-report-table th:nth-child(4) { width: 130px; }
.financial-report-table th:nth-child(5) { width: 110px; }
.financial-report-table td { height: 66px; vertical-align: middle; }
.financial-report-table td > strong, .financial-report-table td > span { color: var(--ink); font-weight: 600; }
.financial-report-table .financial-symbol { color: var(--blue); font-size: .9rem; font-weight: 800; text-decoration: none; }
.financial-report-table .financial-symbol:hover, .financial-title-cell a:hover { text-decoration: underline; }
.financial-title-cell { min-width: 330px; white-space: normal; }
.financial-title-cell a { display: -webkit-box; overflow: hidden; color: var(--ink); font-weight: 600; line-height: 1.75; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.financial-title-cell small { color: var(--blue); }
.correction-label { color: var(--amber); }
.financial-pagination > div > span { min-width: 48px; color: var(--muted); font-size: .75rem; text-align: center; }
.financial-empty { display: grid; justify-items: center; padding: 3.5rem 1rem; text-align: center; }
.financial-empty h2 { margin-bottom: .25rem; }
.financial-empty p { margin-bottom: 1rem; color: var(--muted); font-size: .85rem; }

.statement-crumb { margin-bottom: .5rem; }
.statement-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.statement-identity { min-width: 0; }
.statement-title-line { display: flex; align-items: center; gap: .8rem; }
.statement-title-line > span { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cdd9ef; border-radius: 12px; background: white; color: var(--blue); font-size: 1.45rem; font-weight: 800; }
.statement-title-line h1 { margin: 0; font-size: 1.65rem; }
.statement-title-line p { margin: 0; color: var(--muted); font-size: .8rem; }
.statement-source-title { max-width: 760px; margin: .65rem 0 0; color: #526176; font-size: .78rem; line-height: 1.8; }
.statement-actions { max-width: 400px; display: flex; justify-content: end; gap: .45rem; flex-wrap: wrap; }
.statement-actions .button:first-child { flex-basis: 100%; }
.statement-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: white; }
.statement-facts div { min-height: 76px; display: grid; align-content: center; gap: .15rem; padding: .75rem 1rem; border-left: 1px solid var(--line); }
.statement-facts div:last-child { border-left: 0; }
.statement-facts dt { color: var(--muted); font-size: .68rem; }
.statement-facts dd { margin: 0; color: var(--ink); font-size: .82rem; font-weight: 700; }
.statement-warning { margin-bottom: 1rem; }
.statement-workspace.has-sheets { display: grid; grid-template-columns: 245px minmax(0, 1fr); align-items: start; gap: .85rem; }
.statement-sheet-picker { position: sticky; top: 1rem; min-width: 0; }
.statement-sheet-picker > summary { display: none; }
.sheet-tabs { max-height: calc(100vh - 2rem); display: grid; gap: .35rem; overflow-y: auto; margin: 0; padding: .55rem; border: 1px solid var(--line); border-radius: 11px; background: white; scrollbar-width: thin; }
.sheet-tabs a { min-height: 52px; display: grid; align-content: center; gap: .05rem; padding: .55rem .7rem; border: 1px solid transparent; border-radius: 7px; color: var(--ink); text-decoration: none; transition: background 160ms, border-color 160ms, color 160ms; }
.sheet-tabs a:hover { border-color: var(--line); background: var(--surface-soft); }
.sheet-tabs a.active { border-color: #b8c9ea; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.sheet-tabs a span { overflow: hidden; font-size: .75rem; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.sheet-tabs a small { color: var(--muted); font-size: .65rem; font-weight: 400; }
.statement-sheet { min-width: 0; margin: 0; padding: 1rem; }
.statement-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.statement-sheet-heading h2 { margin: 0; font-size: 1.1rem; }
.statement-sheet-heading .eyebrow { margin: 0; }
.statement-unit { padding: .3rem .6rem; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: .68rem; white-space: nowrap; }
.statement-description { margin-bottom: .5rem; font-size: .75rem; }
.financial-table-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; margin: .25rem 0 .65rem; color: var(--muted); font-size: .68rem; }
.financial-table-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.financial-table-legend i { width: 9px; height: 9px; display: inline-block; border: 1px solid transparent; border-radius: 3px; }
.legend-positive i { border-color: #a8dac6; background: #eaf7f1; }
.legend-negative i { border-color: #efb7b4; background: #fff0ef; }
.legend-neutral i { border-color: #d3d8df; background: #f1f3f5; }
.legend-total i { border-color: #e5c66c; background: #f8e7ad; }
.legend-section i { border-color: #c5cbd3; background: #dde0e3; }
.financial-table-wrap { max-height: 72vh; margin-top: 0; border-color: #bdc7d3; border-radius: 8px; }
.financial-table { min-width: 800px; }
.financial-table thead { position: sticky; top: 0; z-index: 3; }
.financial-table th { min-height: 50px; border-color: rgb(255 255 255 / 22%); background: linear-gradient(135deg, #286090, #1f5f85); color: white; font-weight: 700; text-align: center; }
.financial-table thead tr:first-child th:first-child, .financial-table td:first-child { position: sticky; right: 0; min-width: 240px; max-width: 330px; text-align: right; white-space: normal; }
.financial-table thead tr:first-child th:first-child { z-index: 1; background: linear-gradient(135deg, #286090, #1f5f85); }
.financial-table td:first-child { z-index: 1; background: #f7f9fb; box-shadow: -1px 0 #cbd3dc; }
.financial-table td { min-width: 130px; border-color: #d5dbe2; background: white; white-space: pre-line; }
.financial-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.financial-table tbody tr:nth-child(even) td:first-child { background: #f0f3f6; }
.financial-table tbody tr:hover td, .financial-table tbody tr:hover td:first-child { background: #eaf2f8; }
.financial-table .numeric { direction: ltr; font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; unicode-bidi: isolate; }
.financial-table .value-positive { background: #eaf7f1; color: #126746; }
.financial-table .value-negative { background: #fff0ef; color: #a23835; }
.financial-table .value-neutral { background: #f1f3f5; color: #667085; }
.financial-table .total-row td, .financial-table .total-row td:first-child { background: #f8e7ad; color: #514315; font-weight: 800; }
.financial-table .total-row .value-positive { color: #126746; }
.financial-table .total-row .value-negative { color: #942e2b; }
.financial-table .section-row td, .financial-table .section-row td:first-child { background: #dde0e3; color: #303b47; font-weight: 750; }

@media (min-width: 901px) {
 .statement-sheet-picker:not([open]) > .sheet-tabs { display: grid !important; }
}
@media (max-width: 1240px) {
 .financial-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .financial-hero-stats { min-width: 310px; }
 .statement-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .statement-facts div:nth-child(2n) { border-left: 0; }
 .statement-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
 .financial-hero { align-items: stretch; flex-direction: column; }
 .financial-hero-stats { width: 100%; min-width: 0; }
 .statement-workspace.has-sheets { grid-template-columns: 1fr; }
 .statement-sheet-picker { position: static; }
 .statement-sheet-picker > summary { min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .05rem .7rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; list-style-position: inside; }
 .statement-sheet-picker > summary span { color: var(--muted); font-size: .68rem; }
 .statement-sheet-picker > summary strong { grid-column: 1; overflow: hidden; color: var(--ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
 .statement-sheet-picker > summary small { grid-column: 2; grid-row: 1 / span 2; color: var(--blue); font-size: .7rem; }
 .statement-sheet-picker[open] > summary { border-color: #b8c9ea; border-radius: 10px 10px 0 0; background: var(--blue-soft); }
 .sheet-tabs { max-height: 360px; border-top: 0; border-radius: 0 0 10px 10px; }
}
@media (max-width: 700px) {
 .financial-hero { min-height: 0; padding: 1.2rem; }
 .financial-hero h1 { font-size: 1.65rem; }
 .financial-hero-stats div { min-height: 70px; padding: .5rem; }
 .financial-hero-stats dd { font-size: 1.1rem; }
 .financial-filter-heading { align-items: start; }
 .financial-filter-heading p { display: none; }
 .financial-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .financial-symbol-field { grid-column: 1 / -1; }
 .financial-filter-actions { align-items: stretch; flex-direction: column; }
 .financial-filter-actions button { width: 100%; }
 .financial-report-panel { padding: .85rem; }
 .financial-report-table-wrap { max-height: none; overflow: visible; border: 0; background: transparent; }
 .financial-report-table, .financial-report-table tbody { display: block; }
 .financial-report-table thead { display: none; }
 .financial-report-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: .75rem; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
 .financial-report-table td { min-width: 0; height: auto; display: grid; align-content: start; gap: .15rem; padding: .65rem .75rem; border-bottom: 1px solid var(--line); white-space: normal; }
 .financial-report-table td::before { color: var(--muted); content: attr(data-label); font-size: .62rem; }
 .financial-report-table td:nth-child(2n) { border-right: 1px solid var(--line); }
 .financial-report-table td:first-child, .financial-report-table .financial-title-cell { grid-column: 1 / -1; }
 .financial-report-table .financial-title-cell { min-width: 0; border-bottom: 0; }
 .financial-report-table .financial-title-cell a { -webkit-line-clamp: 3; }
 .financial-pagination { align-items: stretch; flex-direction: column; }
 .financial-pagination > div { justify-content: space-between; }
 .statement-hero { align-items: stretch; flex-direction: column; }
 .statement-actions { max-width: none; justify-content: stretch; }
 .statement-actions .button { flex: 1; }
 .statement-facts { grid-template-columns: 1fr 1fr; }
 .statement-facts div { min-height: 68px; padding: .65rem .75rem; }
 .statement-sheet-heading { align-items: start; }
 .statement-unit { white-space: normal; }
 .financial-table-wrap { max-height: 68vh; }
 .financial-table th:first-child, .financial-table td:first-child { min-width: 190px; max-width: 230px; }
}
@media (max-width: 390px) {
 .financial-hero-stats { grid-template-columns: 1fr 1fr; }
 .financial-hero-stats div:last-child { display: none; }
 .financial-filter-grid { grid-template-columns: 1fr; }
 .financial-symbol-field { grid-column: auto; }
 .statement-title-line > span { width: 44px; height: 44px; }
 .statement-facts { grid-template-columns: 1fr; }
 .statement-facts div, .statement-facts div:nth-child(2n) { border-left: 0; border-bottom: 1px solid var(--line); }
 .statement-facts div:last-child { border-bottom: 0; }
}

/* Smart Codal calendar */
.calendar-hero { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 0; padding: 1.35rem 1.5rem; border: 1px solid #263f65; border-radius: 16px; background: radial-gradient(circle at 8% 8%, rgb(69 119 192 / 30%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%); color: white; }
.calendar-hero h1 { color: white; }
.calendar-hero p:last-child { max-width: 700px; margin: 0; color: #bac8dc; font-size: .82rem; }
.calendar-hero .eyebrow { color: #82e0c4; }
.calendar-month-control { min-width: 300px; min-height: 62px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; overflow: hidden; border: 1px solid rgb(167 191 225 / 20%); border-radius: 11px; background: rgb(255 255 255 / 8%); }
.calendar-month-control a { min-height: 60px; display: grid; place-items: center; color: white; font-size: 1.25rem; text-decoration: none; transition: background 160ms; }
.calendar-month-control a:hover { background: rgb(255 255 255 / 10%); }
.calendar-month-control strong { text-align: center; }
.calendar-filters { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto; align-items: end; gap: .65rem; padding: .85rem; }
.calendar-filters label { display: grid; gap: .25rem; color: var(--muted); font-size: .68rem; font-weight: 650; }
.calendar-filters > a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: .55rem; color: var(--blue); font-size: .72rem; }
.calendar-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.calendar-stats article { min-height: 72px; display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); }
.calendar-stats article > span { width: 9px; height: 34px; border-radius: 9px; background: var(--blue); }
.calendar-stats .dividend > span { background: var(--green); }
.calendar-stats .important > span { background: var(--red); }
.calendar-stats .all > span { background: var(--navy); }
.calendar-stats article div { display: grid; }
.calendar-stats strong { color: var(--navy); font-size: 1.2rem; line-height: 1.2; }
.calendar-stats small { color: var(--muted); font-size: .68rem; }
.calendar-board { padding: 1rem; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-soft); }
.calendar-weekdays span { padding: .45rem; color: var(--muted); font-size: .65rem; font-weight: 650; text-align: center; }
.calendar-grid { overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--line); gap: 1px; }
.calendar-day { min-width: 0; min-height: 92px; display: grid; align-content: start; gap: .35rem; padding: .45rem; background: white; }
.calendar-day.blank { background: #f4f6f9; }
.calendar-day > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: .7rem; }
.calendar-day.today > b { background: var(--navy); color: white; }
.calendar-day.has-event { box-shadow: inset 0 3px var(--blue-soft); }
.calendar-day div { min-width: 0; display: grid; gap: .2rem; }
.calendar-day div span { overflow: hidden; padding: .1rem .3rem; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: .58rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day div span.dividend { background: var(--green-soft); color: var(--green); }
.calendar-day div span.important { background: var(--red-soft); color: var(--red); }
.calendar-day div small { color: var(--muted); font-size: .58rem; }
.calendar-event-list { display: grid; gap: .5rem; }
.calendar-event { min-height: 94px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .75rem .9rem; border: 1px solid var(--line); border-right: 4px solid var(--blue); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.calendar-event.dividend { border-right-color: var(--green); }
.calendar-event.important { border-right-color: var(--red); }
.calendar-event time { width: 58px; height: 58px; display: grid; align-content: center; justify-items: center; border-radius: 9px; background: var(--surface-soft); line-height: 1.25; }
.calendar-event time b { color: var(--navy); font-size: 1.15rem; }
.calendar-event time span { color: var(--muted); font-size: .6rem; }
.calendar-event-copy { min-width: 0; }
.calendar-event-copy header { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.calendar-event-copy header a, .calendar-event-copy header span, .calendar-event-copy header small { padding: .12rem .4rem; border-radius: 4px; font-size: .62rem; font-weight: 700; text-decoration: none; }
.calendar-event-copy header a { background: var(--navy); color: white; }
.calendar-event-copy header span { background: var(--blue-soft); color: var(--blue); }
.calendar-event-copy header small { background: var(--amber-soft); color: var(--amber); }
.calendar-event-copy h3 { margin: .35rem 0 .15rem; overflow: hidden; color: var(--ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-copy h3 a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.calendar-event-copy h3 a:hover { color: var(--blue); }
.calendar-event-copy p { margin: 0; color: var(--muted); font-size: .65rem; }
.calendar-event-copy .event-location { margin-top: .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-source { min-height: 44px; display: inline-flex; align-items: center; padding: .45rem .65rem; border-radius: 7px; color: var(--blue); font-size: .68rem; text-decoration: none; white-space: nowrap; }
.calendar-event-source:hover { background: var(--blue-soft); }
.calendar-empty { min-height: 220px; display: grid; align-content: center; justify-items: center; color: var(--muted); text-align: center; }
.calendar-empty svg { width: 42px; height: 42px; fill: none; stroke: #94a0b2; stroke-width: 1.5; }
.calendar-empty h3 { margin: .6rem 0 .15rem; color: var(--ink); }
.calendar-empty p { margin: 0; font-size: .72rem; }
.calendar-pagination { min-height: 70px; margin-top: .75rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.calendar-pagination > p { margin: 0; color: var(--muted); font-size: .66rem; }
.calendar-pagination > p i { width: 4px; height: 4px; display: inline-block; margin-inline: .45rem; border-radius: 50%; background: #94a3b8; vertical-align: middle; }
.calendar-pagination > p strong { color: var(--ink); }
.calendar-month-workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, .82fr); align-items: start; gap: .85rem; }
.calendar-month-workspace .calendar-board { min-width: 0; }
.calendar-board-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.calendar-board-heading h2 { margin: 0; color: var(--ink); font-size: 1rem; }
.calendar-board-heading .eyebrow { margin-bottom: .15rem; }
.calendar-board-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: .35rem .65rem; color: var(--muted); font-size: .62rem; }
.calendar-board-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.calendar-board-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.calendar-board-meta i.dividend { background: var(--green); }
.calendar-board-meta i.important { background: var(--red); }
.calendar-board-meta b { padding: .25rem .5rem; border-radius: 6px; background: var(--surface-soft); color: var(--blue); font-size: .62rem; }
.calendar-month-workspace .calendar-day { min-height: 72px; padding: .35rem; }
.calendar-month-workspace .calendar-day > b { width: 23px; height: 23px; font-size: .65rem; }
.calendar-month-workspace .calendar-day div { gap: .15rem; }
.calendar-month-workspace .calendar-day div span { padding-block: .07rem; font-size: .54rem; }
.calendar-side-panels { min-width: 0; display: grid; gap: .85rem; }
.calendar-side-panels > .panel { padding: 1rem; }
.calendar-side-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.calendar-side-heading h2 { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--ink); font-size: .8rem; }
.calendar-side-heading h2 svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.calendar-side-heading > span { padding: .2rem .4rem; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: .58rem; font-weight: 750; white-space: nowrap; }
.calendar-dividend-panel > p { margin: .65rem 0; color: var(--muted); font-size: .61rem; line-height: 1.8; }
.calendar-dividend-list { display: grid; gap: .45rem; }
.calendar-dividend-list > article { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .55rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.calendar-dividend-rank { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: .58rem; font-weight: 800; }
.calendar-dividend-list article > div { min-width: 0; display: grid; }
.calendar-dividend-list article > div strong { overflow: hidden; color: var(--ink); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-dividend-list article > div small { overflow: hidden; color: var(--muted); font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.calendar-dividend-list article > div i { height: 4px; margin-top: .35rem; overflow: hidden; border-radius: 9px; background: var(--line); direction: ltr; }
.calendar-dividend-list article > div i b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--green), #18b9d5); }
.calendar-dividend-list article > p { display: grid; justify-items: end; margin: 0; white-space: nowrap; }
.calendar-dividend-list article > p strong { color: var(--green); font-size: .6rem; }
.calendar-dividend-list article > p small { color: var(--muted); font-size: .5rem; }
.calendar-dividend-empty { min-height: 116px; display: grid; align-content: center; justify-items: center; padding: 1rem; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; }
.calendar-dividend-empty strong { color: var(--ink); font-size: .7rem; }
.calendar-dividend-empty span { max-width: 230px; margin-top: .3rem; font-size: .58rem; line-height: 1.8; }
.calendar-dividend-panel > a { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--blue); font-size: .62rem; font-weight: 750; text-decoration: none; }
.calendar-dividend-panel > a:hover { border-color: var(--blue); background: var(--blue-soft); }
.calendar-guide-list { display: grid; gap: .45rem; margin-top: .65rem; }
.calendar-guide-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: .55rem; padding: .6rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.calendar-guide-list article > svg { width: 28px; height: 28px; padding: 5px; border-radius: 7px; background: var(--blue-soft); fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.calendar-guide-list article:nth-child(2) > svg { background: var(--green-soft); stroke: var(--green); }
.calendar-guide-list article:nth-child(3) > svg { background: var(--amber-soft); stroke: var(--amber); }
.calendar-guide-list strong { display: block; color: var(--ink); font-size: .65rem; }
.calendar-guide-list p { margin: .2rem 0 0; color: var(--muted); font-size: .56rem; line-height: 1.75; }
.calendar-reminder-coming-soon { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .65rem; padding: .5rem .65rem; border: 1px solid rgb(34 211 238 / 25%); border-radius: 8px; background: linear-gradient(90deg, #168ee3, #12bcd0); color: #fff; font-family: inherit; font-size: .65rem; font-weight: 800; opacity: .78; cursor: not-allowed; }
.calendar-reminder-coming-soon svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.calendar-reminder-coming-soon b { padding: .15rem .35rem; border-radius: 5px; background: rgb(6 18 32 / 28%); font-size: .52rem; white-space: nowrap; }

html[data-market-theme="dark"] body[data-page="public.codal_calendar"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --amber: #fbbf24; --amber-soft: rgb(251 191 36 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .market-terminal,
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .market-terminal > main { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] :is(.calendar-filters, .calendar-board, .calendar-side-panels > .panel) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters label { color: var(--muted); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters :is(input, select) { border-color: #29364a; background: #0a1120; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters :is(input, select):focus { border-color: #168ee3; background: #0a1120; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters input::placeholder { color: #667892; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters > a { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters button { background: #194498; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-filters button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-stats article { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-stats strong,
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] :is(.calendar-board, .calendar-agenda) .section-heading h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-weekdays { border-color: var(--line); background: #0b1321; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-grid { border-color: var(--line); background: var(--line); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-day { background: #0e1625; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-day.blank { background: #0a111d; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-day.today > b { background: #168ee3; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-day.has-event { box-shadow: inset 0 3px rgb(34 211 238 / 28%); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event { border-color: var(--line); border-right-color: var(--blue); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event.dividend { border-right-color: var(--green); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event.important { border-right-color: var(--red); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event time { background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event time b,
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event-copy h3 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event-copy header a { background: #1c2a40; color: #7dd3fc; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event-copy h3 a:hover,
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event-source { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-event-source:hover { background: rgb(34 211 238 / 9%); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-pagination { border-color: var(--line); background: #111824; }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-pagination > p { color: var(--muted); }
html[data-market-theme="dark"] body[data-page="public.codal_calendar"] .calendar-pagination > p strong { color: var(--ink); }

/* Major ownership and position changes */
.ownership-hero { min-height: 156px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 0; padding: 1.4rem 1.5rem; border: 1px solid #263f65; border-radius: 16px; background: var(--feature-gradient); color: white; }
.ownership-hero h1 { margin-bottom: .25rem; color: white; }
.ownership-hero p:last-child { max-width: 680px; margin: 0; color: #bac8dc; font-size: .8rem; }
.ownership-hero .eyebrow { color: #82e0c4; }
.ownership-symbol-filter { width: min(380px, 100%); flex: 0 0 auto; padding: .7rem; border: 1px solid rgb(167 191 225 / 20%); border-radius: 11px; background: rgb(255 255 255 / 8%); }
.ownership-symbol-filter label { display: block; margin-bottom: .25rem; color: #c5d2e5; font-size: .68rem; }
.ownership-symbol-filter > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.ownership-symbol-filter .ownership-symbol-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; padding-top: .6rem; border-top: 1px solid rgb(167 191 225 / 14%); }
.ownership-symbol-suggestions span { color: #aebed3; font-size: .62rem; }
.ownership-symbol-suggestions a { padding: .2rem .5rem; border: 1px solid rgb(167 191 225 / 14%); border-radius: 6px; background: rgb(255 255 255 / 8%); color: #d4deec; font-size: .62rem; font-weight: 700; line-height: 1.5; text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.ownership-symbol-suggestions a:hover { border-color: rgb(34 211 238 / 35%); background: rgb(34 211 238 / 12%); color: #67e8f9; }
.ownership-section { padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.ownership-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.ownership-section-heading h2 { margin-bottom: .1rem; font-size: 1.05rem; }
.ownership-section-heading p:last-child { margin: 0; color: var(--muted); font-size: .7rem; }
.ownership-section-heading > span { padding: .35rem .6rem; border-radius: 7px; background: var(--surface-soft); color: var(--muted); font-size: .65rem; white-space: nowrap; }
.ownership-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .7rem; }
.ownership-summary article { min-width: 0; display: grid; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.ownership-summary small, .ownership-summary span { overflow: hidden; color: var(--muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.ownership-summary strong { color: var(--navy); font-size: 1.2rem; }
.owner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.owner-list > article { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem; border: 1px solid var(--line); border-radius: 9px; }
.owner-rank { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); font-size: .65rem; font-weight: 800; }
.owner-copy { min-width: 0; display: grid; }
.owner-copy strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.owner-copy span { color: var(--muted); font-size: .6rem; }
.owner-copy i { height: 4px; margin-top: .35rem; overflow: hidden; border-radius: 9px; background: #e7ebf1; direction: ltr; }
.owner-copy i b { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.owner-percent { display: grid; justify-items: end; }
.owner-percent strong { font-size: .82rem; }
.owner-percent small { color: var(--muted); font-size: .58rem; }
.ownership-rankings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.ownership-ranking { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.ownership-ranking > header { display: flex; align-items: center; justify-content: space-between; padding: .65rem .75rem; background: var(--green-soft); color: var(--green); }
.ownership-ranking.sell > header { background: var(--red-soft); color: var(--red); }
.ownership-ranking > header div { display: flex; align-items: center; gap: .4rem; }
.ownership-ranking > header span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: white; }
.ownership-ranking h3 { margin: 0; color: inherit; font-size: .78rem; }
.ownership-ranking > header small { font-size: .6rem; }
.ownership-ranking ol { margin: 0; padding: 0; list-style: none; }
.ownership-ranking li { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .55rem .7rem; border-top: 1px solid var(--line); }
.ownership-ranking li > div { min-width: 0; display: grid; }
.ownership-ranking li > div strong { overflow: hidden; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.ownership-ranking li a { width: fit-content; color: var(--blue); font-size: .6rem; text-decoration: none; }
.ownership-ranking li p { display: grid; justify-items: end; margin: 0; }
.ownership-ranking li p strong { color: var(--green); font-size: .72rem; }
.ownership-ranking.sell li p strong { color: var(--red); }
.ownership-ranking li p small { color: var(--muted); font-size: .55rem; }
.ranking-empty { min-height: 100px; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: .68rem; }
.ownership-activity-section { padding: 1.35rem; }
.ownership-activity-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.ownership-activity-header .eyebrow { margin-bottom: .2rem; color: var(--blue); font-weight: 700; }
.ownership-activity-header h2 { margin: 0; color: var(--ink); font-size: 1.25rem; }
.ownership-activity-header p:last-child { margin: .2rem 0 0; color: var(--muted); font-size: .7rem; }
.ownership-period-tabs { min-width: 278px; display: flex; align-items: center; gap: .2rem; padding: .25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); direction: rtl; }
.ownership-period-tabs a { min-height: 36px; display: inline-flex; flex: 1; align-items: center; justify-content: center; padding: .35rem .65rem; border-radius: 7px; color: var(--muted); font-size: .68rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease; }
.ownership-period-tabs a:hover { background: #e8eef7; color: var(--ink); }
.ownership-period-tabs a.active { background: #dce6f5; color: var(--ink); box-shadow: 0 2px 8px rgb(15 23 42 / 8%); }
.ownership-activity-section .ownership-rankings { margin-top: 1rem; }
.ownership-activity-empty { min-height: 330px; display: grid; align-content: center; justify-items: center; margin-top: 1rem; padding: 2rem; border: 1px dashed var(--line); border-radius: 12px; background: #fbfcfe; color: var(--muted); text-align: center; }
.ownership-empty-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); color: var(--blue); }
.ownership-empty-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.ownership-activity-empty h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.ownership-activity-empty p { margin: .35rem 0 1.25rem; font-size: .75rem; }
.ownership-activity-empty > a { min-height: 40px; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #e8eef7; color: #334155; font-size: .7rem; font-weight: 750; text-decoration: none; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.ownership-activity-empty > a:hover { border-color: #7dd3fc; background: #e0f2fe; color: #0369a1; }
.ownership-activity-empty > a svg { width: 18px; height: 18px; fill: none; stroke: #06b6d4; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.ownership-activity-note { min-height: 54px; display: flex; align-items: center; gap: .7rem; margin: 1rem 0 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: .68rem; }
.ownership-activity-note svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.ownership-empty { min-height: 130px; display: grid; place-content: center; color: var(--muted); text-align: center; }
.ownership-empty strong { color: var(--ink); }
.ownership-empty p { margin: .25rem 0 0; font-size: .7rem; }

html[data-market-theme="dark"] body[data-page="public.money_flow"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .market-terminal,
html[data-market-theme="dark"] body[data-page="public.money_flow"] .market-terminal > main { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-symbol-filter input { border-color: #29364a; background: #0a1120; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-symbol-filter input::placeholder { color: #667892; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-symbol-filter input:focus { border-color: #168ee3; background: #0a1120; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-symbol-filter button { background: #194498; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-symbol-filter button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-section { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-section-heading h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-section-heading > span { border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-summary article { border-color: var(--line); background: var(--surface-soft); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-summary strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .owner-list > article { border-color: var(--line); background: #0d1523; transition: border-color 140ms ease, background-color 140ms ease; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .owner-list > article:hover { border-color: #155e75; background: #10202d; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .owner-copy i { background: #263247; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-ranking { border-color: var(--line); background: #0d1523; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-ranking > header span { background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-ranking li { border-color: var(--line); transition: background-color 140ms ease; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-ranking li:hover { background: rgb(34 211 238 / 5%); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-ranking li > div strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-ranking li a { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .method-note { border-color: var(--line); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-activity-header { border-color: var(--line); }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-period-tabs { border-color: #1e2b3f; background: #070d1d; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-period-tabs a:hover { background: #152238; color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-period-tabs a.active { background: #1d2a3e; color: #f2f6fc; box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-activity-empty { border-color: #1e2b3f; background: #070d1d; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-empty-icon { border-color: #1e2b3f; background: #101a2c; color: #0891b2; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-activity-empty > a { border-color: #2a3a52; background: #223047; color: #d7e1ee; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-activity-empty > a:hover { border-color: #155e75; background: #123248; color: #67e8f9; }
html[data-market-theme="dark"] body[data-page="public.money_flow"] .ownership-activity-note { border-color: #1e2b3f; background: #070d1d; }

@media (max-width: 900px) {
 .ownership-hero { align-items: stretch; flex-direction: column; gap: 1rem; }
 .ownership-symbol-filter { width: 100%; }
 .owner-list { grid-template-columns: 1fr; }
 .calendar-hero { align-items: stretch; flex-direction: column; gap: 1rem; }
 .calendar-month-control { width: 100%; min-width: 0; }
 .calendar-filters { grid-template-columns: 1fr 1fr; }
 .calendar-stats { grid-template-columns: 1fr 1fr; }
 .calendar-month-workspace { grid-template-columns: 1fr; }
 .calendar-side-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
 .ownership-hero { min-height: 0; padding: 1rem; }
 .ownership-section-heading { align-items: start; flex-direction: column; }
 .ownership-summary, .ownership-rankings { grid-template-columns: 1fr; }
 .ownership-activity-section { padding: 1rem; }
 .ownership-activity-header { align-items: stretch; flex-direction: column; gap: .8rem; }
 .ownership-period-tabs { min-width: 0; width: 100%; }
 .ownership-period-tabs a { padding-inline: .35rem; font-size: .62rem; }
 .ownership-activity-empty { min-height: 280px; padding: 1.25rem; }
 .ownership-activity-note { align-items: flex-start; }
 .calendar-hero { min-height: 0; padding: 1.1rem; }
 .calendar-filters { grid-template-columns: 1fr; }
 .calendar-filters button { width: 100%; }
 .calendar-side-panels { grid-template-columns: 1fr; }
 .calendar-board-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
 .calendar-board-meta { justify-content: start; }
 .calendar-board { padding: .65rem; }
 .calendar-weekdays span { overflow: hidden; padding-inline: .1rem; font-size: .55rem; }
 .calendar-day { min-height: 50px; padding: .25rem; }
 .calendar-day > b { width: 22px; height: 22px; font-size: .62rem; }
 .calendar-day div { display: flex; gap: 2px; }
 .calendar-day div span { width: 7px; height: 7px; padding: 0; border-radius: 50%; font-size: 0; }
 .calendar-day div small { display: none; }
 .calendar-event { grid-template-columns: 52px minmax(0, 1fr); gap: .65rem; padding: .65rem; }
 .calendar-event time { width: 50px; height: 50px; }
 .calendar-event-source { grid-column: 2; justify-self: start; min-height: 36px; padding: .3rem 0; }
 .calendar-event-copy h3, .calendar-event-copy .event-location { white-space: normal; }
}

/* Symbol workspace */
.symbol-hero { position: relative; min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; padding: 1.6rem 1.8rem; border: 1px solid #263f65; border-radius: 16px 16px 0 0; background: radial-gradient(circle at 8% 10%, rgb(69 119 192 / 32%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%); color: white; }
.symbol-hero::after { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px); background-size: 36px 36px; content: ""; mask-image: linear-gradient(to left, black, transparent 70%); pointer-events: none; }
.symbol-hero > * { position: relative; z-index: 1; }
.symbol-hero .company-mark { border-color: rgb(255 255 255 / 16%); background: rgb(255 255 255 / 9%); color: white; }
.symbol-hero .eyebrow { color: #82e0c4; }
.symbol-hero h1 { margin: 0; color: white; font-size: clamp(2rem, 4vw, 2.8rem); }
.symbol-hero .company-identity p:last-child { margin: .1rem 0 0; color: #bac8dc; }
.symbol-hero-stats { min-width: 420px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.symbol-hero-stats div { min-height: 88px; display: grid; align-content: center; justify-items: center; padding: .7rem; border: 1px solid rgb(167 191 225 / 18%); border-radius: 10px; background: rgb(255 255 255 / 7%); text-align: center; }
.symbol-hero-stats dt { color: #aebed3; font-size: .67rem; }
.symbol-hero-stats dd { margin: .2rem 0 0; color: white; font-size: 1.18rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.symbol-nav { min-height: 54px; display: flex; align-items: center; gap: .25rem; padding: .3rem .65rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: white; box-shadow: 0 8px 24px rgb(18 38 70 / 6%); }
.symbol-nav > a, .symbol-nav > button { min-height: 42px; display: inline-flex; align-items: center; padding: .5rem .7rem; border: 0; border-radius: 7px; background: transparent; color: #526176; font: inherit; font-size: .73rem; text-decoration: none; }
.symbol-nav > a:hover, .symbol-nav > button:hover { background: var(--blue-soft); color: var(--blue); }
.symbol-nav .symbol-valuation-link { gap: .4rem; background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.symbol-valuation-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.symbol-nav > span { flex: 1; }
.symbol-source { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .75rem 0 1.4rem; color: var(--muted); font-size: .69rem; }
.technical-analysis { margin: 1.5rem 0; scroll-margin-top: 1rem; }
.price-range { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.price-range a { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); text-decoration: none; font-size: .75rem; }
.price-range a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: white; }
.price-range a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.technical-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: .8rem 0; }
.technical-summary > div { display: grid; gap: .25rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.technical-summary span, .technical-summary small { color: var(--muted); font-size: .7rem; }
.technical-summary strong { color: var(--navy); font-size: 1rem; }
.technical-summary strong.positive { color: var(--green); }
.technical-summary strong.negative { color: var(--red); }
.technical-chart-card { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.technical-chart-scroll { overflow-x: auto; direction: ltr; }
.technical-plot { min-width: 980px; display: flex; direction: ltr; gap: .6rem; }
.technical-scale { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 auto; padding: .35rem 0; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.technical-chart-card svg { display: block; width: 100%; height: 260px; }
.technical-plot svg { min-width: 0; flex: 1; }
.technical-chart-card polyline, .technical-grid { fill: none; vector-effect: non-scaling-stroke; }
.technical-grid { stroke: #e5eaf1; stroke-width: 1; }
.technical-chart-card polyline { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.technical-candle.up { color: var(--green); }
.technical-candle.down { color: var(--red); }
.technical-candle line { stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.technical-candle rect { fill: currentColor; }
.technical-ema.ema-9 { stroke: #c5364a; }
.technical-ema.ema-21 { stroke: #2857ba; }
.technical-ema.ema-50 { stroke: #c79a00; }
.technical-ema[hidden] { display: none; }
.technical-axis { min-width: 980px; display: flex; direction: ltr; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; }
.technical-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .7rem; color: var(--muted); font-size: .72rem; }
.ema-toggle { min-height: 36px; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.ema-toggle::before { display: inline-block; width: .9rem; margin-left: .35rem; border-top: 3px solid; vertical-align: middle; content: ""; }
.ema-toggle.ema-9::before { border-color: #c5364a; }
.ema-toggle.ema-21::before { border-color: #2857ba; }
.ema-toggle.ema-50::before { border-color: #c79a00; }
.ema-toggle[aria-pressed="false"], .ema-toggle:disabled { opacity: .45; }
.ema-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.technical-chart-card .analysis-note { margin: .8rem 0 0; font-size: .72rem; }
.symbol-financial { scroll-margin-top: 1rem; }
.symbol-financial .section-heading h2 { margin-bottom: .1rem; }
.symbol-financial-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: start; gap: 1rem; }
.profit-chart-card, .financial-report-stack { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.profit-chart-heading, .financial-stack-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.profit-chart-heading h3, .financial-stack-heading h3 { margin: 0; color: var(--navy); font-size: .95rem; }
.profit-chart-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .68rem; }
.profit-chart-heading > strong { direction: ltr; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profit-chart-heading > strong.positive { color: var(--green); }
.profit-chart-heading > strong.negative { color: var(--red); }
.profit-chart { position: relative; height: 280px; display: flex; direction: ltr; align-items: stretch; gap: clamp(.35rem, 2vw, 1.1rem); margin: .9rem 0 .5rem; padding-inline: .7rem; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #edf1f6 55px); }
.profit-zero { position: absolute; z-index: 1; top: 44%; right: 0; left: 0; border-top: 1px solid #8f9db2; }
.profit-zero span { position: absolute; top: -.8rem; right: 0; padding-left: .25rem; background: white; color: var(--muted); font-size: .62rem; }
.profit-column { position: relative; z-index: 2; min-width: 38px; flex: 1; color: var(--muted); text-align: center; text-decoration: none; }
.profit-column i { position: absolute; left: 20%; width: 60%; height: var(--profit-height); background: var(--green); border-radius: 4px 4px 1px 1px; transition: filter 150ms, transform 150ms; }
.profit-column.positive i { bottom: 56%; }
.profit-column.negative i { top: 44%; border-radius: 1px 1px 4px 4px; background: var(--red); }
.profit-column.neutral i { top: calc(44% - 1px); height: 2px; background: #8e9bb0; }
.profit-chart.all-positive .profit-zero { top: 78%; }
.profit-chart.all-positive .profit-column.positive i { bottom: 22%; }
.profit-chart.all-negative .profit-zero { top: 15%; }
.profit-chart.all-negative .profit-column.negative i { top: 15%; }
.profit-column:hover i, .profit-column:focus-visible i { filter: brightness(.9); transform: scaleX(1.08); }
.profit-column > span, .profit-column > small { position: absolute; right: -10px; left: -10px; direction: rtl; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profit-column > span { bottom: 1.2rem; color: var(--ink); font-size: .65rem; font-weight: 650; }
.profit-column > small { bottom: .2rem; font-size: .58rem; }
.profit-legend { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .65rem; }
.profit-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.profit-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.profit-legend i.negative { background: var(--red); }
.profit-legend b { margin-right: auto; color: var(--muted); font-weight: 500; }
.profit-note { margin: .7rem 0 0; color: var(--muted); font-size: .64rem; line-height: 1.8; }
.profit-empty { min-height: 280px; display: grid; align-content: center; justify-items: center; color: var(--muted); text-align: center; }
.profit-empty > span { color: #9eabc0; font-size: 3rem; }
.profit-empty strong { color: var(--ink); }
.profit-empty p { margin: .25rem 0 0; font-size: .72rem; }
.financial-stack-heading > span { color: var(--muted); font-size: .68rem; }
.financial-report-stack .report-list { margin-top: .2rem; }
.financial-report-stack .report-list > a { min-height: 67px; padding-inline: .45rem; border-radius: 7px; }
.more-financial-reports { margin-top: .5rem; }
.more-financial-reports > summary { min-height: 44px; display: grid; place-items: center; border-top: 1px solid var(--line); color: var(--blue); cursor: pointer; font-size: .72rem; }

@media (max-width: 1050px) {
 .technical-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .symbol-hero { align-items: stretch; flex-direction: column; }
 .symbol-hero-stats { width: 100%; min-width: 0; }
 .symbol-financial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
 .technical-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .technical-chart-card svg { height: 190px; }
 .symbol-hero { min-height: 0; padding: 1.1rem; }
 .symbol-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .symbol-hero-stats div:last-child { grid-column: 1 / -1; }
 .symbol-nav { overflow-x: auto; justify-content: start; white-space: nowrap; scrollbar-width: none; }
 .symbol-nav > span { display: none; }
 .symbol-source { align-items: start; flex-direction: column; gap: .4rem; }
 .profit-chart-card, .financial-report-stack { padding: .8rem; }
 .profit-chart { gap: .2rem; padding-inline: 0; }
 .profit-column { min-width: 32px; }
 .profit-column i { left: 16%; width: 68%; }
 .profit-column > span { font-size: .58rem; }
}

html[data-market-theme="dark"] body[data-page="public.company"] {
  --bg: #080d16;
  --surface: #0e1625;
  --surface-soft: #111b2b;
  --ink: #f2f6fc;
  --navy: #f2f6fc;
  --muted: #91a4bf;
  --line: #202d40;
  --blue: #22d3ee;
  --blue-soft: rgb(34 211 238 / 10%);
  --teal: #34d399;
  --teal-soft: rgb(52 211 153 / 10%);
  --green: #34d399;
  --green-soft: rgb(52 211 153 / 10%);
  --amber: #fbbf24;
  --amber-soft: rgb(251 191 36 / 10%);
  --violet: #c4b5fd;
  --violet-soft: rgb(167 139 250 / 10%);
  --red: #fb7185;
  --red-soft: rgb(251 113 133 / 10%);
  color-scheme: dark;
  background: var(--bg);
}
html[data-market-theme="dark"] body[data-page="public.company"] :is(.market-terminal, .market-terminal > main) { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.company"] .crumb a { color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.company"] .crumb a:hover { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] .symbol-nav { border-color: var(--line); background: #0e1625; box-shadow: 0 8px 24px rgb(0 0 0 / 20%); }
html[data-market-theme="dark"] body[data-page="public.company"] .symbol-nav > :is(a, button) { color: #a8b7cb; }
html[data-market-theme="dark"] body[data-page="public.company"] .symbol-nav > :is(a, button):hover { background: #142033; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] .symbol-nav .symbol-valuation-link { background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] .symbol-source .evidence-label { border: 1px solid #075e52; background: #073b35; color: #34d399; }
html[data-market-theme="dark"] body[data-page="public.company"] :is(.company-analysis, .symbol-financial, #reports) .section-heading h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.company"] .symbol-financial .section-heading > a { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] :is(.sales-chart, .signal-card, .technical-summary > div, .technical-chart-card, .profit-chart-card, .financial-report-stack, .empty-state.panel) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.company"] .signal-card strong:not(.positive):not(.negative) { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.company"] .bar { background: #365174; }
html[data-market-theme="dark"] body[data-page="public.company"] .bar-column.latest .bar,
html[data-market-theme="dark"] body[data-page="public.company"] .bar-column:hover .bar,
html[data-market-theme="dark"] body[data-page="public.company"] .bar-column:focus-visible .bar { background: #2f6de0; }
html[data-market-theme="dark"] body[data-page="public.company"] .bar-column.negative .bar { background: #e0526d; }
html[data-market-theme="dark"] body[data-page="public.company"] .average-line span { background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.company"] .price-range a { border-color: #29364a; background: #111b2b; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.company"] .price-range a:hover { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] .price-range a[aria-current="true"] { border-color: #0891b2; background: #0284c7; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.company"] .technical-summary strong { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.company"] .technical-grid { stroke: #263247; }
html[data-market-theme="dark"] body[data-page="public.company"] .ema-toggle { border-color: #29364a; background: #111b2b; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.company"] .ema-toggle:hover:not(:disabled) { border-color: #155e75; background: #0b2938; }
html[data-market-theme="dark"] body[data-page="public.company"] .profit-chart-heading h3,
html[data-market-theme="dark"] body[data-page="public.company"] .financial-stack-heading h3,
html[data-market-theme="dark"] body[data-page="public.company"] .profit-empty strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.company"] .profit-chart { background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #202d40 55px); }
html[data-market-theme="dark"] body[data-page="public.company"] .profit-zero span { background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.company"] .financial-report-stack .report-list > a { border-color: var(--line); }
html[data-market-theme="dark"] body[data-page="public.company"] .financial-report-stack .report-list > a:hover { background: #142033; }
html[data-market-theme="dark"] body[data-page="public.company"] .financial-report-stack .report-list strong { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.company"] .status:not(.parsed):not(.completed):not(.success):not(.running):not(.queued):not(.partial):not(.failed):not(.completed_with_errors):not(.cancel_requested):not(.cancelled):not(.rate_limited):not(.interrupted) { background: #1c293c; color: #94a3b8; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-wrap { border-color: var(--line); background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.company"] .table-wrap th { border-color: var(--line); background: #0b1321; color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-wrap td { border-color: var(--line); background: #0e1625; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-wrap tbody tr:nth-child(even) td { background: #0d1523; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-wrap tbody tr:hover td { background: #142033; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-wrap td a { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-controls input { border-color: #29364a; background: #080f1c; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.company"] .table-pagination { min-height: 68px; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #111824; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-pagination button { border-color: #263247; background: #101725; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-pagination button:hover:not(:disabled):not(.active) { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.company"] .table-pagination button.active { border-color: #0891b2; background: #0284c7; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.company"] :is(.chart-tooltip, .interaction-status) { border: 1px solid #155e75; background: #0b2938; color: #e5edf8; box-shadow: 0 12px 30px rgb(0 0 0 / 32%); }

@media (max-width: 700px) {
  body[data-page="public.company"] .table-pagination { align-items: stretch; flex-direction: column; }
  body[data-page="public.company"] .table-pagination > p { text-align: center; }
  body[data-page="public.company"] .table-pagination > div { width: 100%; justify-content: space-between; }
  body[data-page="public.company"] .table-page-numbers { min-width: 0; overflow-x: auto; }
}

/* Multi-ratio valuation */
.valuation-hero { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; }
.valuation-identity { display: flex; align-items: center; gap: .9rem; }
.valuation-identity h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); }
.valuation-identity p { margin: .15rem 0 0; color: var(--muted); font-size: .8rem; }
.valuation-actions { display: flex; gap: .5rem; }
.valuation-overview { overflow: hidden; margin-top: 0; padding: 1.25rem; border-radius: 15px; background: #101c32; color: white; box-shadow: 0 16px 36px rgb(18 38 70 / 14%); }
.valuation-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.valuation-section-heading h2 { margin: 0; font-size: 1.05rem; }
.valuation-section-heading p { margin: .15rem 0 0; color: var(--muted); font-size: .72rem; }
.valuation-overview .valuation-section-heading h2 { color: white; }
.valuation-overview .valuation-section-heading p { color: #aebed3; }
.valuation-overview .evidence-label { background: rgb(122 157 220 / 16%); color: #c5d7f8; }
.valuation-tape { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgb(167 191 225 / 18%); border-radius: 11px; background: rgb(255 255 255 / 5%); }
.ratio-cell { min-width: 0; padding: 1rem; border-left: 1px solid rgb(167 191 225 / 15%); }
.ratio-cell:last-child { border-left: 0; }
.ratio-cell > header { min-height: 43px; display: grid; align-content: start; }
.ratio-cell > header bdi { color: #9fc0ff; font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.ratio-cell > header span { color: #aebed3; font-size: .7rem; }
.ratio-cell > strong { min-height: 58px; display: flex; direction: ltr; align-items: baseline; gap: .35rem; color: white; font-size: clamp(1.65rem, 3vw, 2.2rem); font-variant-numeric: tabular-nums; line-height: 1.35; }
.ratio-cell > strong small { color: #91a1b8; font-size: .62rem; font-weight: 500; }
.ratio-cell > strong.ratio-unavailable { color: #8796ab; }
.ratio-gap { width: fit-content; margin: .15rem 0 .85rem; padding: .18rem .45rem; border-radius: 5px; font-size: .7rem; font-weight: 650; }
.ratio-gap.below { background: rgb(103 162 244 / 14%); color: #a9c9ff; }
.ratio-gap.above { background: rgb(239 190 104 / 13%); color: #f0cb8c; }
.ratio-gap.equal, .ratio-gap.unavailable { background: rgb(255 255 255 / 7%); color: #aebed3; }
.ratio-meta { display: grid; grid-template-columns: 1fr auto; gap: .12rem .5rem; padding-top: .7rem; border-top: 1px solid rgb(167 191 225 / 13%); color: #aebed3; font-size: .68rem; }
.ratio-meta > span:nth-child(2) { direction: rtl; text-align: left; }
.ratio-meta small { grid-column: 1 / -1; color: #aebed3; }
.valuation-reading-note { margin: .8rem 0 0; color: #aebed3; font-size: .67rem; line-height: 1.9; }
.valuation-jump { position: sticky; top: .5rem; z-index: 10; display: flex; gap: .25rem; margin: 1rem 0; padding: .3rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 96%); box-shadow: 0 7px 22px rgb(28 49 80 / 6%); scrollbar-width: none; }
.valuation-jump a { min-height: 40px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: .4rem .7rem; border-radius: 7px; color: var(--muted); font-size: .72rem; text-decoration: none; }
.valuation-jump a:hover, .valuation-jump a:focus-visible { background: var(--blue-soft); color: var(--blue); }
.valuation-panel { scroll-margin-top: 4.5rem; }
.valuation-table-wrap { max-height: none; }
.valuation-table { min-width: 690px; }
.valuation-table th, .valuation-table td { padding: .75rem .85rem; }
.valuation-table thead th { height: 64px; border-bottom: 2px solid #d8e1ee; color: #33445f; font-size: .78rem; font-weight: 700; vertical-align: middle; }
.valuation-table thead th small { display: block; margin-top: .12rem; color: #8793a5; font-size: .6rem; font-weight: 400; }
.valuation-table thead th bdi { display: block; }
.valuation-table td:not(:first-child), .valuation-table th:not(:first-child) { text-align: center; }
.valuation-table th:not(:first-child) .sort-button { position: relative; justify-content: center; padding-inline: 1.1rem; text-align: center; }
.valuation-table th:not(:first-child) .sort-button::after { position: absolute; left: 0; margin: 0; padding: 0; }
.valuation-table tbody td { height: 57px; border-bottom-color: #e3eaf3; }
.valuation-table tbody tr:nth-child(even):not(.current-period):not(.median-row) > :not([class^="ratio-"]) { background: #f7f9fc; }
.valuation-table .ratio-pe { background: #eef5ff; }
.valuation-table .ratio-ps { background: #edf8f5; }
.valuation-table .ratio-pb { background: #fbf6e9; }
.valuation-table .ratio-ev_ebitda { background: #f5f1fa; }
.valuation-table tbody tr:nth-child(even):not(.current-period):not(.median-row) > .ratio-pe { background: #e7f0fc; }
.valuation-table tbody tr:nth-child(even):not(.current-period):not(.median-row) > .ratio-ps { background: #e5f4ef; }
.valuation-table tbody tr:nth-child(even):not(.current-period):not(.median-row) > .ratio-pb { background: #f7f0df; }
.valuation-table tbody tr:nth-child(even):not(.current-period):not(.median-row) > .ratio-ev_ebitda { background: #eee8f7; }
.valuation-table td strong { color: var(--navy); font-size: 1rem; font-variant-numeric: tabular-nums; }
.valuation-table .ratio-pe strong, .valuation-table th.ratio-pe { color: #24518e; }
.valuation-table .ratio-ps strong, .valuation-table th.ratio-ps { color: #176b62; }
.valuation-table .ratio-pb strong, .valuation-table th.ratio-pb { color: #805e23; }
.valuation-table .ratio-ev_ebitda strong, .valuation-table th.ratio-ev_ebitda { color: #684d86; }
.valuation-table tbody td.ratio-pe { border-right: 2px solid #d7e2f1; }
.valuation-table tbody tr.current-period > td { background: #e8f0fc; }
.valuation-table tbody tr.current-period > td:first-child { border-right: 3px solid var(--blue); }
.valuation-table tbody tr.median-row > :is(th, td) { background: #e5f3ef; color: #174f48; }
.valuation-table:not(.valuation-history-table):not(.peer-valuation-table) tbody tr:is(:hover, :focus-within) > :is(th, td) { background: #dfeafa; }
.valuation-table td > small { color: var(--blue); font-size: .6rem; }
.ratio-na { color: #9da8b8; font-size: 1rem; }
.valuation-table thead th:first-child, .valuation-table tbody > tr > :first-child { position: sticky; right: 0; z-index: 2; }
.valuation-table thead th:first-child { z-index: 4; }
.valuation-method { scroll-margin-top: 4.5rem; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.valuation-method > summary { min-height: 68px; display: flex; flex-direction: column; justify-content: center; padding: .8rem 1rem; cursor: pointer; list-style-position: inside; }
.valuation-method > summary span { color: var(--navy); font-size: .85rem; font-weight: 700; }
.valuation-method > summary small { margin-right: 1.2rem; color: var(--muted); font-size: .65rem; }
.valuation-method > div { padding: 0 1rem 1rem; }
.valuation-method dl { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: .55rem 1rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.valuation-method dt { direction: ltr; color: var(--blue); font-size: .72rem; font-weight: 800; }
.valuation-method dd { margin: 0; color: #526176; font-size: .72rem; }
.valuation-method p { margin: 0; color: var(--muted); font-size: .7rem; }
.valuation-empty { text-align: center; }
.valuation-empty p { color: var(--muted); }
.valuation-entry { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 3rem; margin-top: 0; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 16px; background: #101c32; color: white; box-shadow: 0 18px 40px rgb(18 38 70 / 14%); }
.valuation-entry h1 { color: white; font-size: clamp(2rem, 4vw, 2.8rem); }
.valuation-entry > div > p { max-width: 650px; color: #b7c5d9; font-size: .86rem; }
.valuation-picker { margin-top: 1.5rem; }
.valuation-picker label { display: block; margin-bottom: .35rem; color: #c8d5e8; font-size: .72rem; font-weight: 650; }
.valuation-picker > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; max-width: 600px; padding: .45rem; border: 1px solid rgb(167 191 225 / 22%); border-radius: 11px; background: rgb(255 255 255 / 8%); }
.valuation-picker input { min-width: 0; border: 0; }
.valuation-picker button { white-space: nowrap; }
.valuation-entry .error { max-width: 600px; margin: .6rem 0 0; border-color: rgb(255 155 166 / 28%); background: rgb(189 62 82 / 14%); color: #ffd5db; }
.valuation-entry aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgb(167 191 225 / 18%); border-radius: 12px; background: rgb(255 255 255 / 5%); }
.valuation-entry aside span { min-height: 105px; display: grid; place-content: center; padding: .8rem; border-left: 1px solid rgb(167 191 225 / 14%); border-bottom: 1px solid rgb(167 191 225 / 14%); text-align: center; }
.valuation-entry aside span:nth-child(even) { border-left: 0; }
.valuation-entry aside span:nth-last-child(-n+2) { border-bottom: 0; }
.valuation-entry aside bdi { color: #9fc0ff; font-size: 1.05rem; font-weight: 800; }
.valuation-entry aside small { color: #9cacc2; font-size: .65rem; }
.valuation-entry-help { padding: 1.25rem 0; }
.valuation-entry-help > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.valuation-entry-help p { display: grid; gap: .2rem; margin: 0; padding: .75rem 0; border-top: 1px solid var(--line); }
.valuation-entry-help strong { color: var(--navy); font-size: .82rem; }
.valuation-entry-help span, .valuation-entry-help > small { color: var(--muted); font-size: .7rem; }

/* Valuation landing state */
.valuation-index-page { display: grid; gap: 1.4rem; }
.valuation-index-crumb { margin: 0; color: #7e91aa; }
.valuation-index-crumb a { color: #4f87b5; }
.valuation-index-entry {
  min-height: 520px;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, .78fr);
  gap: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  margin: 0;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid #1d2a3d;
  border-radius: 20px;
  background: radial-gradient(circle at 5% 45%, rgb(8 145 178 / 11%), transparent 34%), linear-gradient(110deg, #0b131f, #101a35);
  box-shadow: 0 24px 60px rgb(0 0 0 / 18%);
  direction: ltr;
}
.valuation-index-intro, .valuation-index-ratios { direction: rtl; }
.valuation-index-intro h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 5vw, 4.35rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.25; }
.valuation-index-intro > p { max-width: 760px; margin: .8rem 0 0; color: #91afd0; font-size: clamp(.9rem, 1.4vw, 1.12rem); line-height: 2; }
.valuation-index-picker { max-width: 800px; margin-top: 2.25rem; }
.valuation-index-picker label { margin-bottom: .55rem; color: #b7c8dc; font-size: .78rem; }
.valuation-index-picker > div { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; padding: 0; border: 0; background: transparent; direction: ltr; }
.valuation-symbol-input { position: relative; min-width: 0; min-height: 58px; display: block; overflow: hidden; border: 1px solid #26364d; border-radius: 13px; background: #070d20; direction: rtl; }
.valuation-symbol-input input { width: 100%; min-height: 56px; padding: .75rem 1.1rem .75rem 3.4rem; border: 0; background: transparent; color: #fff; font-size: .92rem; appearance: none; }
.valuation-symbol-input input::-webkit-calendar-picker-indicator { display: none !important; appearance: none; }
.valuation-symbol-input input::placeholder { color: #657a98; }
.valuation-symbol-trigger { position: absolute; top: 50%; left: .55rem; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #7187a5; cursor: pointer; transform: translateY(-50%); }
.valuation-symbol-trigger:hover, .valuation-symbol-trigger:focus-visible { background: rgb(113 135 165 / 12%); color: #a8bdd8; }
.valuation-symbol-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.valuation-index-picker > div > button[type="submit"] { min-height: 58px; padding-inline: 1.55rem; border: 0; border-radius: 13px; background: linear-gradient(135deg, #3278f2, #2563eb); color: #fff; font-size: .86rem; font-weight: 850; box-shadow: 0 10px 24px rgb(37 99 235 / 28%); cursor: pointer; direction: rtl; }
.valuation-index-picker > div > button[type="submit"]:hover { filter: brightness(1.08); }
.valuation-quick-links { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; color: #71839c; font-size: .69rem; }
.valuation-quick-links a { min-height: 34px; display: inline-flex; align-items: center; padding: .25rem .72rem; border: 1px solid #26364d; border-radius: 8px; background: #172236; color: #d7e2f1; font-size: .7rem; font-weight: 750; text-decoration: none; }
.valuation-quick-links a:hover { border-color: #3b82f6; background: #1e3150; color: #fff; }
.valuation-index-error { max-width: 800px; margin-top: .8rem !important; }
.valuation-index-ratios { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; padding: 1.65rem; border: 1px solid #1d2a3d !important; border-radius: 20px !important; background: rgb(16 25 46 / 70%) !important; }
.valuation-index-ratios span { min-height: 148px !important; display: grid !important; place-content: center !important; gap: .55rem; padding: 1rem !important; border: 1px solid #111b2e !important; border-radius: 14px; background: #070d20; text-align: center; }
.valuation-index-ratios bdi { color: #d8dfeb !important; font-size: clamp(1.35rem, 2.3vw, 1.75rem) !important; font-weight: 900 !important; }
.valuation-index-ratios small { color: #75839a !important; font-size: .76rem !important; font-weight: 650; }
.valuation-index-ratios small bdi { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }
.valuation-index-help { padding: 1.5rem 0 0; }
.valuation-index-help h2 { margin: 0 0 1.5rem; color: #fff; font-size: 1.35rem; }
.valuation-index-help > div { gap: 2rem; }
.valuation-index-help p { min-height: 150px; align-content: start; gap: .75rem; padding: 1.25rem 1.5rem; border: 1px solid #172337; border-radius: 14px; background: #0c1320; }
.valuation-index-help strong { color: #f0f5fb; font-size: .9rem; }
.valuation-index-help span, .valuation-index-help small { color: #6f85a4; font-size: .75rem; line-height: 2; }

html[data-market-theme="light"] .valuation-index-crumb { color: #64748b; }
html[data-market-theme="light"] .valuation-index-crumb a { color: #2563eb; }
html[data-market-theme="light"] .valuation-index-entry { border-color: #dce5f0; background: radial-gradient(circle at 5% 45%, rgb(37 99 235 / 7%), transparent 34%), linear-gradient(110deg, #fff, #f4f7fc); box-shadow: 0 16px 40px rgb(18 38 70 / 8%); }
html[data-market-theme="light"] .valuation-index-intro h1 { color: #0f172a; }
html[data-market-theme="light"] .valuation-index-intro > p { color: #64748b; }
html[data-market-theme="light"] .valuation-index-picker label { color: #475569; }
html[data-market-theme="light"] .valuation-symbol-input { border-color: #d8e1ec; background: #fff; }
html[data-market-theme="light"] .valuation-symbol-input input { color: #0f172a; }
html[data-market-theme="light"] .valuation-symbol-input input::placeholder { color: #94a3b8; }
html[data-market-theme="light"] .valuation-symbol-trigger { color: #64748b; }
html[data-market-theme="light"] .valuation-symbol-trigger:hover,
html[data-market-theme="light"] .valuation-symbol-trigger:focus-visible { background: #eff6ff; color: #2563eb; }
html[data-market-theme="light"] .valuation-quick-links { color: #64748b; }
html[data-market-theme="light"] .valuation-quick-links a { border-color: #d8e1ec; background: #f8fafc; color: #334155; }
html[data-market-theme="light"] .valuation-quick-links a:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
html[data-market-theme="light"] .valuation-index-ratios { border-color: #dce5f0 !important; background: #f8fafc !important; }
html[data-market-theme="light"] .valuation-index-ratios span { border-color: #e2e8f0 !important; background: #fff; box-shadow: 0 5px 16px rgb(15 23 42 / 4%); }
html[data-market-theme="light"] .valuation-index-ratios bdi { color: #1e3a5f !important; }
html[data-market-theme="light"] .valuation-index-ratios small { color: #64748b !important; }
html[data-market-theme="light"] .valuation-index-help h2 { color: #0f172a; }
html[data-market-theme="light"] .valuation-index-help p { border-color: #e2e8f0; background: #fff; box-shadow: 0 6px 18px rgb(15 23 42 / 4%); }
html[data-market-theme="light"] .valuation-index-help strong { color: #0f172a; }
html[data-market-theme="light"] .valuation-index-help span,
html[data-market-theme="light"] .valuation-index-help small { color: #64748b; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.row-actions a { min-height: 36px; display: inline-flex; align-items: center; padding: .25rem .55rem; border-radius: 6px; background: var(--surface-soft); color: var(--blue); font-size: .68rem; text-decoration: none; }
.row-actions a:hover { background: var(--blue-soft); }

@media (max-width: 1050px) {
 .valuation-tape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .ratio-cell:nth-child(2) { border-left: 0; }
 .ratio-cell:nth-child(-n+2) { border-bottom: 1px solid rgb(167 191 225 / 15%); }
 .valuation-entry { grid-template-columns: 1fr; gap: 1.5rem; }
 .valuation-entry aside { max-width: 620px; }
 .valuation-index-entry { grid-template-columns: 1fr; }
 .valuation-index-ratios { width: 100%; max-width: none !important; }
}
@media (max-width: 700px) {
 .valuation-hero { align-items: start; flex-direction: column; }
 .valuation-actions { width: 100%; }
 .valuation-actions .button { flex: 1; }
 .valuation-overview { padding: .85rem; }
 .valuation-section-heading { align-items: start; flex-direction: column; gap: .45rem; }
 .valuation-tape { grid-template-columns: 1fr 1fr; }
 .ratio-cell { padding: .75rem; }
 .ratio-cell > strong { font-size: 1.55rem; }
 .ratio-meta { grid-template-columns: 1fr; }
 .ratio-meta > span:nth-child(2) { text-align: right; }
 .valuation-table th, .valuation-table td { padding-inline: .65rem; }
 .valuation-method dl { grid-template-columns: max-content 1fr; }
 .valuation-entry { min-height: 0; padding: 1.2rem; }
 .valuation-entry h1 { font-size: 1.7rem; }
 .valuation-picker > div { grid-template-columns: 1fr; }
 .valuation-entry-help > div { grid-template-columns: 1fr; }
 .valuation-index-page { gap: .8rem; }
 .valuation-index-crumb { font-size: .68rem; }
 .valuation-index-entry { width: 100%; min-width: 0; gap: 1.25rem; padding: 1.1rem; border-radius: 15px; }
 .valuation-index-intro, .valuation-index-picker, .valuation-index-picker > div { width: 100%; min-width: 0; }
 .valuation-index-intro h1 { font-size: 2rem; }
 .valuation-index-intro > p { font-size: .78rem; }
 .valuation-index-picker { margin-top: 1.35rem; }
 .valuation-index-picker > div { grid-template-columns: 1fr; direction: rtl; }
 .valuation-index-picker button { width: 100%; }
 .valuation-quick-links { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: .5rem; }
 .valuation-quick-links > span { grid-column: 1 / -1; }
 .valuation-quick-links a { min-width: 0; justify-content: center; padding-inline: .3rem; white-space: nowrap; }
 .valuation-index-ratios { gap: .65rem; padding: .7rem; border-radius: 14px !important; }
 .valuation-index-ratios span { min-height: 105px !important; padding: .7rem !important; }
 .valuation-index-ratios bdi { font-size: 1.15rem !important; }
 .valuation-index-help { padding-top: .8rem; }
 .valuation-index-help h2 { margin-bottom: .8rem; font-size: 1.05rem; }
 .valuation-index-help > div { gap: .65rem; }
 .valuation-index-help p { min-height: 0; padding: 1rem; }
}

/* Home dashboard: separate workspaces, shared light surfaces. */
body[data-page="public.home"] {
 --dashboard-bg: var(--bg);
 --dashboard-surface: #fff;
 --dashboard-ink: #18263c;
 --dashboard-muted: #53647b;
 --dashboard-line: #ced9e7;
 --dashboard-accent: #2457b8;
 --dashboard-blue-soft: var(--blue-soft);
 --dashboard-teal-soft: #eaf3f4;
 --dashboard-positive-soft: #edf6f0;
 --dashboard-negative-soft: #fbeef0;
 --dashboard-amber-soft: #fbf2df;
 background: var(--dashboard-bg);
}
body[data-page="public.home"] main { max-width: 1440px; }
body[data-page="public.home"] :is(.dashboard-hero, .market-pulse, .valuation-home-card) {
 --dashboard-ink: #fff;
 --dashboard-muted: #bac8dc;
 --dashboard-line: rgb(167 191 225 / 22%);
 --dashboard-accent: #a9c9ff;
 color: var(--dashboard-ink);
}
body[data-page="public.home"] :is(.dashboard-hero, .market-pulse, .valuation-home-card) a:focus-visible { outline-color: #a9c9ff; }
body[data-page="public.home"] .panel { background-image: linear-gradient(145deg, rgb(237 243 252 / 50%), transparent 65%); }
body[data-page="public.home"] .tool-prompt { background-image: linear-gradient(115deg, rgb(255 255 255 / 65%), transparent); }
body[data-page="public.home"] .market-tape .pulse-mini-chart { border-color: var(--dashboard-line); }
body[data-page="public.home"] .dashboard-hero { padding: 1.25rem 1.5rem; border: 1px solid #263f65; border-radius: 16px; background: var(--feature-gradient); box-shadow: none; }
body[data-page="public.home"] .dashboard-heading { min-height: 0; align-items: center; margin-bottom: 1rem; }
body[data-page="public.home"] .dashboard-hero h1 { color: var(--dashboard-ink); font-size: 1.75rem; letter-spacing: 0; }
body[data-page="public.home"] .dashboard-hero .muted { color: var(--dashboard-muted); font-size: .875rem; line-height: 1.9; }
body[data-page="public.home"] .dashboard-hero .insight-filter { background: rgb(255 255 255 / 10%); border: 1px solid rgb(167 191 225 / 22%); padding: .75rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body[data-page="public.home"] .dashboard-hero .filter-label { color: var(--dashboard-muted); font-size: .75rem; }
body[data-page="public.home"] .dashboard-hero .insight-filter > a { color: var(--dashboard-accent); }
body[data-page="public.home"] .market-summary { gap: 0; padding-top: .8rem; border-top: 1px solid var(--dashboard-line); }
body[data-page="public.home"] .market-summary > div { min-height: 64px; display: flex; flex-direction: column; align-items: start; gap: .25rem; padding: .3rem 1rem; border: 0; border-inline-end: 1px solid var(--dashboard-line); border-radius: 0; background: none; backdrop-filter: none; }
body[data-page="public.home"] .market-summary > div:first-child { padding-inline-start: 0; }
body[data-page="public.home"] .market-summary > div:last-child { border: 0; }
body[data-page="public.home"] .market-summary strong { color: var(--dashboard-ink); font-size: 1.2rem; }
body[data-page="public.home"] .market-summary .summary-label, body[data-page="public.home"] .market-summary strong small { color: var(--dashboard-muted); font-size: .75rem; }
.hero-scope-note { margin: .8rem 0 0; color: var(--dashboard-muted); font-size: .75rem; }
body[data-page="public.home"] .dashboard-command { top: 0; margin-top: 1rem; padding: 0 1rem; min-height: 60px; border: 1px solid var(--dashboard-line); border-radius: 12px; background: rgb(255 255 255 / 88%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 5px 16px rgb(18 38 70 / 6%); }
body[data-page="public.home"] .section-jump { align-self: stretch; gap: .5rem; }
body[data-page="public.home"] .section-jump a { min-width: 100px; min-height: 56px; justify-content: center; padding: .75rem 1rem; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--dashboard-muted); background: none; font-size: .9rem; font-weight: 700; }
body[data-page="public.home"] .section-jump a.current { color: var(--dashboard-accent); border-bottom-color: var(--dashboard-accent); background: var(--dashboard-blue-soft); }
body[data-page="public.home"] .section-jump a:hover { background: var(--dashboard-bg); }
.dashboard-view[hidden] { display: none !important; }
.dashboard-view { scroll-margin-top: 5rem; }
.view-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 1.5rem 0 1rem; }
.view-heading h2 { margin: 0; color: var(--dashboard-ink); font-size: 1.15rem; }
.view-heading nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.view-heading nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .75rem; border-radius: 8px; color: var(--dashboard-muted); background: #e9eef5; font-size: .8rem; text-decoration: none; }
.view-heading nav a:hover { color: var(--dashboard-accent); background: #d4e3f8; }
body[data-page="public.home"] .view-heading h2 { color: #234c80; }
body[data-page="public.home"] .market-breadth-panel { background: #f0f7f5; }
body[data-page="public.home"] .market-pulse > header { background: rgb(255 255 255 / 5%); }
body[data-page="public.home"] .decision-card.positive { background: var(--dashboard-positive-soft); }
body[data-page="public.home"] .decision-card.negative { background: var(--dashboard-negative-soft); }
body[data-page="public.home"] .decision-card.opportunity { background: var(--dashboard-blue-soft); }
body[data-page="public.home"] .positive-ranking { background: #f3f9f5; }
body[data-page="public.home"] .negative-ranking { background: #fdf5f6; }
body[data-page="public.home"] .market-calendar-item { background: #fffaf0; border-inline-start-width: 1px; box-shadow: none; }
body[data-page="public.home"] .ownership-prompt { background: var(--dashboard-teal-soft); }
body[data-page="public.home"] .technical-prompt { background: var(--dashboard-amber-soft); }
body[data-page="public.home"] .reports-panel .report-columns > section { background: #f1f5fb; border-radius: 10px; padding: .75rem; }
body[data-page="public.home"] .industries-panel { background: #eef3fa; }
body[data-page="public.home"] ::selection { color: #fff; background: var(--dashboard-accent); }
body[data-page="public.home"] .market-section { margin-top: 2rem; }
body[data-page="public.home"] .section-titlebar { min-height: 44px; margin-bottom: .75rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body[data-page="public.home"] .section-titlebar h2 { font-size: 1.15rem; }
body[data-page="public.home"] .panel, body[data-page="public.home"] .divergence-card { border-color: var(--dashboard-line); border-radius: 12px; box-shadow: none; }
body[data-page="public.home"] .section-heading { align-items: start; flex-wrap: wrap; gap: .5rem; }
body[data-page="public.home"] .section-heading h3 { font-size: 1rem; line-height: 1.8; }
body[data-page="public.home"] .decision-brief { background: var(--dashboard-surface); border-color: var(--dashboard-line); box-shadow: none; }
body[data-page="public.home"] .decision-grid { gap: 0; }
body[data-page="public.home"] .decision-card { border: 0; border-inline-end: 1px solid var(--dashboard-line); border-radius: 0; background: none; }
body[data-page="public.home"] .decision-card:last-child { border: 0; }
body[data-page="public.home"] .market-pulse { background: var(--feature-gradient); color: var(--dashboard-ink); border: 1px solid var(--dashboard-line); box-shadow: none; }
body[data-page="public.home"] .market-pulse h2, body[data-page="public.home"] .market-tape strong { color: var(--dashboard-ink); }
body[data-page="public.home"] .market-pulse > header, body[data-page="public.home"] .market-tape article, body[data-page="public.home"] .market-pulse > p { border-color: var(--dashboard-line); }
body[data-page="public.home"] .market-tape article > span:first-child, body[data-page="public.home"] .market-tape small, body[data-page="public.home"] .market-pulse > p { color: var(--dashboard-muted); font-size: .75rem; }
body[data-page="public.home"] .market-tape em { color: #82e0bf; font-size: .75rem; }
body[data-page="public.home"] .market-tape em.negative { color: #ffc0ba; }
body[data-page="public.home"] .market-tape em.neutral { color: var(--dashboard-muted); }
body[data-page="public.home"] .market-pulse .development-badge { background: rgb(119 219 193 / 12%); border: 1px solid rgb(119 219 193 / 20%); color: #b9f1df; font-size: .7rem; white-space: normal; }
body[data-page="public.home"] .market-pulse > p { padding: .8rem 1rem; line-height: 1.9; }
body[data-page="public.home"] .valuation-home-card { background: var(--feature-gradient); color: var(--dashboard-ink); border: 1px solid var(--dashboard-line); box-shadow: none; }
body[data-page="public.home"] .valuation-home-intro h3, body[data-page="public.home"] .valuation-home-ratios strong, body[data-page="public.home"] .valuation-home-ratios strong bdi { color: var(--dashboard-ink); }
body[data-page="public.home"] .valuation-home-intro p, body[data-page="public.home"] .valuation-home-ratios span, body[data-page="public.home"] .valuation-home-ratios strong small { color: var(--dashboard-muted); font-size: .8rem; }
body[data-page="public.home"] .valuation-home-ratios { background: rgb(255 255 255 / 7%); border: 1px solid var(--dashboard-line); }
body[data-page="public.home"] .valuation-home-ratios > div { border-color: var(--dashboard-line); }
body[data-page="public.home"] .valuation-home-ratios bdi { color: var(--dashboard-accent); }
body[data-page="public.home"] .valuation-home-intro .valuation-home-date, body[data-page="public.home"] .valuation-home-intro .evidence-label { color: var(--dashboard-accent); border: 1px solid var(--dashboard-line); background: rgb(255 255 255 / 7%); }
body[data-page="public.home"] .tool-prompt { padding: 1rem 1.25rem; background: var(--dashboard-blue-soft); border: 0; border-radius: 12px; }
body[data-page="public.home"] .tool-prompt h2 { font-size: 1rem; }
body[data-page="public.home"] .tool-prompt p { font-size: .8rem; color: var(--dashboard-muted); }
.workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1rem 0; padding: .75rem 0; border-bottom: 1px solid var(--dashboard-line); }
.workflow-actions strong { color: var(--dashboard-muted); margin-inline-end: auto; font-size: .8rem; }
.workflow-actions a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--dashboard-accent); font-size: .8rem; text-decoration: none; }
body[data-page="public.home"] a:focus-visible { outline: 2px solid var(--dashboard-accent); outline-offset: 4px; }

/* Desktop market terminal */
body[data-page="public.home"] {
  overflow-x: auto;
  background: #090d16;
  color: #dce5f2;
}
body[data-page="public.home"] > :is(.site-header, .workspace-topbar, footer) { display: none; }
body[data-page="public.home"] > main {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #090d16;
}
body[data-page="public.home"] .market-terminal,
body[data-page="public.home"] .market-terminal *,
body[data-page="public.home"] .market-terminal *::before,
body[data-page="public.home"] .market-terminal *::after {
  font-family: Vazirmatn, sans-serif !important;
}
body[data-page="public.home"] .market-terminal {
  --terminal-bg: #090d16;
  --terminal-header: #0c1220;
  --terminal-card: #101827;
  --terminal-raised: #141f33;
  --terminal-hover: #19263d;
  --terminal-line: rgb(255 255 255 / 8%);
  --terminal-text: #dce5f2;
  --terminal-muted: #8e9cb2;
  --terminal-cyan: #36cce4;
  --terminal-cyan-soft: rgb(54 204 228 / 12%);
  --terminal-green: #32d296;
  --terminal-red: #fb7185;
  --terminal-amber: #fbbf67;
  min-width: 1120px;
  min-height: 100vh;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}
body[data-page="public.home"] .market-terminal ::selection { background: rgb(54 204 228 / 24%); color: #eaffff; }
body[data-page="public.home"] .market-terminal :is(a, button, input, select):focus-visible { outline: 2px solid var(--terminal-cyan); outline-offset: 3px; }
body[data-page="public.home"] .market-terminal a { color: inherit; text-decoration: none; text-underline-offset: .28em; }
body[data-page="public.home"] .market-terminal a:hover { color: #fff; }
body[data-page="public.home"] .positive { color: var(--terminal-green) !important; }
body[data-page="public.home"] .negative { color: var(--terminal-red) !important; }
body[data-page="public.home"] .warning { color: var(--terminal-amber) !important; }

.market-terminal-header {
  position: sticky;
  top: 0;
  z-index: 45;
  border-bottom: 1px solid var(--terminal-line);
  background: rgb(6 12 23 / 97%);
  box-shadow: 0 14px 36px rgb(0 0 0 / 22%);
  backdrop-filter: blur(18px);
}
.market-header-primary,
.market-module-nav { width: 100%; max-width: 1760px; margin-inline: auto; }
.market-statusbar { width: calc(100% - 3rem); max-width: 1712px; margin: .5rem auto 0; overflow: hidden; border: 1px solid var(--terminal-line); border-radius: 999px; background: #0b1322; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.market-statusbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .3rem .85rem; color: var(--terminal-muted); font-size: .68rem; }
.market-sync-status, .market-quick-actions { display: flex; align-items: center; gap: .75rem; }
.market-sync-status strong { color: #aab8cc; font-weight: 700; }
.market-live-badge { min-height: 25px; display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .7rem; border: 1px solid rgb(16 185 129 / 18%); border-radius: 999px; background: rgb(16 185 129 / 10%); color: #34d399; font-weight: 800; }
.market-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgb(16 185 129 / 12%); }
.market-status-divider { width: 1px; height: 16px; background: var(--terminal-line); }
.market-watchlist-link { min-height: 32px; display: inline-flex; align-items: center; gap: .4rem; padding: 0 .7rem; border: 1px solid var(--terminal-line); border-radius: 7px; background: #10192a; color: #9daac0 !important; font-weight: 700; }
.market-watchlist-link span { color: var(--terminal-cyan); }
.market-header-primary { min-height: 86px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(360px, 560px) minmax(320px, 1fr); align-items: center; gap: clamp(1rem, 2vw, 2rem); padding: .8rem 1.5rem; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.market-brand { justify-self: start; display: flex; align-items: center; gap: .75rem; }
.market-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(54 204 228 / 32%); border-radius: 12px; background: linear-gradient(145deg, #1d9be0, #146b9c); color: #fff; box-shadow: 0 8px 24px rgb(24 179 204 / 18%); }
.market-brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.market-brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.market-brand > span:last-child { display: grid; line-height: 1.25; }
.market-brand-title { display: flex; align-items: center; gap: .5rem; }
.market-brand strong { color: #fff; font-size: 1.18rem; font-weight: 900; }
.market-brand-title em { padding: .15rem .45rem; border: 1px solid rgb(54 204 228 / 25%); border-radius: 5px; background: rgb(54 204 228 / 8%); color: var(--terminal-cyan); font-size: .58rem; font-style: normal; font-weight: 900; direction: ltr; }
.market-brand small { margin-top: .22rem; color: var(--terminal-muted); font-size: .66rem; }
.market-header-filter { display: contents; }
.market-header-filter :is(input, select, button) { min-height: 40px; border-color: var(--terminal-line); border-radius: 9px; background: var(--terminal-raised); color: var(--terminal-text); font-size: .75rem; }
.market-filter-controls { justify-self: end; display: flex; align-items: center; gap: .65rem; }
.market-industry-filter { min-width: 200px; display: grid; grid-template-columns: auto minmax(130px, 1fr); align-items: center; gap: .45rem; color: var(--terminal-muted); font-size: .7rem; }
.market-industry-filter select { width: 100%; min-height: 40px; padding: .3rem .7rem; border: 1px solid var(--terminal-line); background: var(--terminal-raised); color: #f4f8ff; }
.market-search { position: relative; min-width: 0; width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; border: 1px solid var(--terminal-line); border-radius: 9px; background: var(--terminal-raised); }
.market-search svg { width: 17px; height: 17px; margin-inline: .7rem .2rem; fill: none; stroke: var(--terminal-muted); stroke-linecap: round; stroke-width: 1.8; }
.market-search input { min-width: 0; padding-inline: .4rem; border: 0; background: transparent; }
.market-search input::placeholder { color: #6f7d92; }
.market-search-suggestions { top: calc(100% + .5rem); z-index: 80; border-color: #29374d; background: #111a2a; box-shadow: 0 18px 38px rgb(0 0 0 / 42%); }
.market-search-suggestions a { grid-template-columns: minmax(72px, auto) 1fr; }
.market-search-suggestions a:hover, .market-search-suggestions a[aria-selected="true"] { background: rgb(54 204 228 / 10%); }
.market-search-suggestions strong { color: #f4f8ff; }
.market-search-suggestions small, .market-search-suggestions .search-suggestions-empty { color: #91a0b5; }
.market-advanced-search { padding-inline: 1rem; border: 0 !important; background: linear-gradient(135deg, #17b9d5, #2876e8) !important; color: #fff !important; font-weight: 850; box-shadow: 0 5px 16px rgb(25 177 213 / 20%); white-space: nowrap; cursor: pointer; }
.market-advanced-search:hover { filter: brightness(1.08); }
.market-header-status { justify-self: end; display: flex; align-items: center; gap: .65rem; color: var(--terminal-muted); font-size: .68rem; }
.market-header-status span { display: flex; align-items: center; gap: .4rem; }
.market-header-status i, .market-terminal-footer i { width: 7px; height: 7px; border-radius: 50%; background: var(--terminal-green); box-shadow: 0 0 0 4px rgb(50 210 150 / 10%); }
.market-header-status a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 .8rem; border: 1px solid rgb(54 204 228 / 25%); border-radius: 9px; background: var(--terminal-cyan-soft); color: #86e8f7; font-weight: 700; }
.market-module-nav { min-height: 48px; display: flex; align-items: stretch; justify-content: flex-start; gap: clamp(.15rem, .55vw, .55rem); padding: 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.market-module-nav::-webkit-scrollbar { display: none; }
.market-module-nav a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .85rem .58rem; border-bottom: 2px solid transparent; color: #8796ab; font-size: .71rem; font-weight: 650; white-space: nowrap; }
.market-module-nav a:hover { background: rgb(255 255 255 / 3%); color: #dbe7f7; }
.market-module-nav a.active { border-bottom-color: var(--terminal-cyan); background: rgb(54 204 228 / 5%); color: #50d9ee; }
.market-module-nav a.active i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.market-module-nav a.monthly { color: #fbbf24; }

.market-terminal-main { width: 100%; max-width: 1760px; margin: 0 auto; padding: 1.3rem 1.5rem 2rem; }
.market-terminal-main > section { margin-top: 1.25rem; }
.market-terminal-main > section:first-child { margin-top: 0; }
.terminal-section-heading, .terminal-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.terminal-section-heading { margin-bottom: .75rem; }
.terminal-section-heading h1, .terminal-panel-heading h2 { margin: 0; color: #f8fbff; font-size: .91rem; font-weight: 850; letter-spacing: -.015em; }
.terminal-section-heading p, .terminal-panel-heading p { margin: .18rem 0 0; color: var(--terminal-muted); font-size: .7rem; }
.terminal-freshness { display: flex; align-items: center; gap: .5rem; color: var(--terminal-muted); font-size: .68rem; }
.terminal-freshness strong { color: #bac6d8; font-weight: 600; }

.pulse-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.terminal-metric { min-height: 128px; display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--terminal-line); border-radius: 12px; background: var(--terminal-card); }
.terminal-metric:hover { border-color: rgb(54 204 228 / 24%); background: #111b2c; }
.terminal-metric > header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #b9c6d8; font-size: .7rem; }
.terminal-metric > header span { display: flex; align-items: center; gap: .35rem; font-weight: 700; }
.terminal-metric > header em { padding: .12rem .38rem; border-radius: 5px; background: rgb(255 255 255 / 4%); color: var(--terminal-muted); font-size: .64rem; font-style: normal; }
.terminal-metric > strong { align-self: end; color: #fff; font-size: 1.25rem; font-weight: 900; line-height: 1.25; }
.terminal-metric > small { align-self: end; color: var(--terminal-muted); font-size: .64rem; text-align: left; }
.terminal-metric.buyer-power { grid-template-rows: auto auto 22px; }
.metric-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.terminal-spark { grid-column: 1 / -1; height: 22px; display: flex; align-items: end; gap: 3px; padding-top: .2rem; overflow: hidden; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.terminal-spark i { width: 100%; height: var(--bar-height); min-height: 3px; border-radius: 2px 2px 0 0; background: #50627c; }
.terminal-spark i.up { background: rgb(50 210 150 / 72%); }
.terminal-spark i.down { background: rgb(251 113 133 / 72%); }
.terminal-metric-empty { grid-column: span 4; align-content: center; }
.terminal-metric-empty p { grid-column: 1 / -1; margin: 0; color: var(--terminal-muted); font-size: .72rem; }
.breadth-metric { grid-template-columns: 62px 1fr; align-items: center; }
.breadth-ring { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--terminal-card) 58%, transparent 60%), conic-gradient(var(--terminal-green) var(--growth), rgb(251 113 133 / 28%) 0); }
.breadth-ring strong { color: #fff; font-size: .76rem; }
.breadth-metric h2 { margin: 0 0 .3rem; color: #dce5f2; font-size: .72rem; }
.breadth-metric p { display: flex; justify-content: space-between; gap: .5rem; margin: 0; font-size: .65rem; }
.breadth-metric small { color: var(--terminal-muted); font-size: .61rem; }

.terminal-panel, .terminal-market-dollar { overflow: hidden; padding: 1.1rem 1.2rem; border: 1px solid var(--terminal-line); border-radius: 14px; background: var(--terminal-card); box-shadow: 0 16px 36px rgb(0 0 0 / 14%); }
.terminal-panel-heading { min-height: 54px; padding-bottom: .85rem; border-bottom: 1px solid var(--terminal-line); }
.terminal-panel-heading > a, .terminal-panel-heading nav a { min-height: 32px; display: inline-flex; align-items: center; padding: .25rem .65rem; border: 1px solid var(--terminal-line); border-radius: 8px; color: #92a2b8; font-size: .68rem; font-weight: 700; }
.terminal-panel-heading > a:hover, .terminal-panel-heading nav a.active { border-color: rgb(54 204 228 / 28%); background: var(--terminal-cyan-soft); color: #8aebf7; }
.divergence-heading { align-items: center; }
.divergence-heading-actions { display: flex; align-items: center; gap: .55rem; }
.divergence-heading-actions > a, .divergence-heading-actions > em, .divergence-leader-control { min-height: 34px; display: inline-flex; align-items: center; padding: .28rem .7rem; border: 1px solid var(--terminal-line); border-radius: 8px; background: var(--terminal-raised); color: #95a4b9; font-size: .66rem; white-space: nowrap; }
.divergence-heading-actions > a { color: #aebbd0; font-weight: 750; }
.divergence-heading-actions > a:hover { border-color: rgb(54 204 228 / 28%); background: var(--terminal-cyan-soft); color: #8aebf7; }
.divergence-heading-actions > em { border-color: rgb(50 210 150 / 35%); background: rgb(50 210 150 / 7%); font-style: normal; font-weight: 800; }
.divergence-leader-control { gap: .45rem; background: #0b1321; }
.divergence-leader-control a { display: inline-flex; align-items: baseline; gap: .35rem; color: #72e2f1 !important; font-weight: 750; }
.divergence-leader-control strong { font-size: .76rem; }
.terminal-panel-heading nav { display: flex; gap: .4rem; }
.divergence-symbol-strip { min-height: 52px; display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid rgb(255 255 255 / 5%); color: var(--terminal-muted); font-size: .7rem; }
.divergence-symbol-strip a { display: flex; align-items: baseline; gap: .5rem; padding: .3rem .65rem; border-radius: 7px; background: var(--terminal-cyan); color: #061018 !important; }
.divergence-symbol-strip a strong { font-size: .82rem; font-weight: 900; }
.divergence-symbol-strip em { margin-right: auto; padding: .22rem .55rem; border: 1px solid currentColor; border-radius: 7px; background: rgb(50 210 150 / 7%); font-size: .66rem; font-style: normal; font-weight: 700; }
.divergence-workspace { width: 100%; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 1rem; padding-top: 1rem; direction: ltr; }
.divergence-workspace > * { direction: rtl; }
.divergence-stats { display: grid; gap: .6rem; }
.divergence-stats article { min-height: 75px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: .15rem .7rem; padding: .72rem .85rem; border: 1px solid rgb(255 255 255 / 6%); border-radius: 10px; background: var(--terminal-raised); }
.divergence-stats article span { color: var(--terminal-muted); font-size: .68rem; }
.divergence-stats article strong { grid-row: span 2; align-self: center; color: #fff; font-size: 1rem; font-weight: 900; }
.divergence-stats article small { color: #75849a; font-size: .61rem; }
.divergence-stats article.highlight { border-color: rgb(54 204 228 / 28%); background: rgb(20 72 84 / 26%); }
.divergence-stats article.highlight span, .divergence-stats article.highlight strong { color: #8aebf7; }
.divergence-stats > p { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0; padding: .45rem .65rem; color: var(--terminal-muted); font-size: .65rem; }
.divergence-stats > p strong { color: #fff; }
.divergence-stats > p span { color: #7d8aa0; }
.terminal-chart { min-height: 312px; padding: .8rem 1rem .55rem; border: 1px solid rgb(255 255 255 / 6%); border-radius: 11px; background: #080d16; }
.terminal-chart > header { display: flex; align-items: center; gap: 1rem; min-height: 34px; padding-bottom: .55rem; border-bottom: 1px solid rgb(255 255 255 / 5%); color: #a9b7ca; font-size: .66rem; }
.terminal-chart > header span { display: flex; align-items: center; gap: .35rem; }
.terminal-chart > header i { width: 14px; height: 3px; border-radius: 4px; background: var(--terminal-cyan); }
.terminal-chart > header i.price { background: #60a5fa; }
.terminal-chart > header small { margin-right: auto; color: #6d7a90; }
.terminal-chart-canvas { position: relative; height: 225px; padding: .8rem 2.4rem 0 .2rem; }
.terminal-chart-canvas svg { width: 100%; height: 100%; overflow: visible; }
.terminal-chart .chart-grid { fill: none; stroke: rgb(255 255 255 / 6%); stroke-width: .3; }
.terminal-chart .sales-area { fill: url("#sales-area-gradient"); stroke: none; }
.terminal-chart polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.terminal-chart .sales-line { stroke: var(--terminal-cyan); stroke-width: 2.5; }
.terminal-chart .price-line { stroke: #60a5fa; stroke-width: 2; stroke-dasharray: 6 4; }
.terminal-chart .sales-point { fill: var(--terminal-cyan); }
.terminal-chart .sales-point.latest { stroke: #e8fbff; stroke-width: .45; }
.terminal-chart .price-point { fill: #60a5fa; }
.chart-scale { position: absolute; inset: 1rem 0 .3rem auto; display: flex; flex-direction: column; justify-content: space-between; color: #6f7e94; font-size: .58rem; direction: ltr; }
.terminal-chart-dates { display: flex; justify-content: space-between; gap: .4rem; padding: 0 2.4rem 0 .3rem; color: #7f8da2; direction: ltr; font-size: .6rem; }

.terminal-table-wrap { overflow-x: auto; }
.terminal-table { width: 100%; border-collapse: collapse; text-align: right; }
.terminal-table th { padding: .7rem .8rem; border-bottom: 1px solid var(--terminal-line); background: rgb(20 31 51 / 75%); color: #8f9db2; font-size: .65rem; font-weight: 600; white-space: nowrap; }
.terminal-table td { padding: .72rem .8rem; border-bottom: 1px solid rgb(255 255 255 / 5%); color: #aebbd0; font-size: .7rem; white-space: nowrap; }
.terminal-table tbody tr:hover { background: rgb(255 255 255 / 3%); }
.terminal-table td:first-child { color: #66758c; text-align: center; }
.symbol-cell { display: grid; }
.symbol-cell strong { color: #f7fbff; font-size: .8rem; }
.symbol-cell span { color: #7f8da1; font-size: .63rem; }
.sales-spark { width: 82px; height: 24px; display: flex; align-items: end; gap: 4px; }
.sales-spark i { width: 100%; min-height: 3px; border-radius: 2px 2px 0 0; background: rgb(50 210 150 / 70%); }
.table-action { padding: .25rem .55rem; border: 1px solid rgb(54 204 228 / 20%); border-radius: 6px; color: #74dce9 !important; }
.terminal-panel > footer { min-height: 46px; display: flex; align-items: end; justify-content: space-between; margin: 0; padding: .7rem 0 0; border: 0; background: none; color: var(--terminal-muted); font-size: .66rem; }
.terminal-panel > footer a { color: #77dce9; font-weight: 700; }

.terminal-market-dollar > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.terminal-market-dollar h2 { margin: 0; color: #f8fbff; font-size: .91rem; }
.terminal-market-dollar header p { margin: .15rem 0 0; color: var(--terminal-muted); font-size: .68rem; }
.terminal-market-dollar header > strong { color: var(--terminal-cyan); font-size: 1.15rem; }
.market-dollar-ranges { display: flex; align-items: center; gap: .25rem; padding: .2rem; border: 1px solid var(--terminal-line); border-radius: 8px; background: #0b111d; }
.market-dollar-ranges a { padding: .2rem .48rem; border-radius: 5px; color: var(--terminal-muted); font-size: .62rem; }
.market-dollar-ranges a[aria-current="true"] { background: var(--terminal-cyan-soft); color: #8aebf7; font-weight: 700; }
.market-dollar-terminal-chart { margin-top: .8rem; padding: .75rem .9rem .45rem; border: 1px solid rgb(255 255 255 / 6%); border-radius: 10px; background: #080d16; }
.market-dollar-terminal-chart svg { width: 100%; height: 220px; overflow: visible; }
.market-dollar-terminal-chart svg .grid { fill: none; stroke: rgb(255 255 255 / 5%); stroke-width: 1; }
.market-dollar-terminal-chart svg polyline { fill: none; stroke: var(--terminal-cyan); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.market-dollar-terminal-chart svg circle { fill: #080d16; stroke: var(--terminal-cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.market-dollar-terminal-chart > div { display: flex; justify-content: space-between; color: #708097; font-size: .62rem; }
.terminal-market-dollar > p { margin: .7rem 0 0; color: #738198; font-size: .64rem; }

.terminal-deep-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.terminal-deep-grid .feed-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.valuation-home-date { margin: .8rem 0; color: var(--terminal-muted); font-size: .68rem; }
.valuation-ratio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: .8rem 0; }
.valuation-ratio-grid > div { display: grid; gap: .15rem; padding: .75rem; border: 1px solid rgb(255 255 255 / 6%); border-radius: 9px; background: var(--terminal-raised); }
.valuation-ratio-grid span { color: var(--terminal-muted); font-size: .64rem; }
.valuation-ratio-grid strong { color: #fff; font-size: 1rem; }
.valuation-ratio-grid small { color: #6f7e94; font-size: .6rem; }
.terminal-primary-link { min-height: 34px; display: inline-flex; align-items: center; margin-top: .25rem; color: #7ee4f1 !important; font-size: .68rem; font-weight: 700; }
.feed-list { display: grid; gap: .5rem; margin-top: .75rem; }
.feed-list > a { min-height: 58px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: .7rem; padding: .45rem .55rem; border: 1px solid rgb(255 255 255 / 5%); border-radius: 9px; background: rgb(20 31 51 / 70%); }
.feed-list > a:hover { border-color: rgb(54 204 228 / 22%); background: var(--terminal-hover); }
.feed-list time { min-height: 42px; display: grid; place-content: center; border: 1px solid rgb(54 204 228 / 17%); border-radius: 7px; background: rgb(54 204 228 / 7%); text-align: center; }
.feed-list time strong { color: #87e9f5; font-size: .68rem; }
.feed-list time small { color: #738299; font-size: .56rem; }
.feed-list > a > span { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .5rem; }
.feed-list b { color: #f8fbff; font-size: .75rem; }
.feed-list em { justify-self: end; padding: .08rem .35rem; border-radius: 4px; background: var(--terminal-cyan-soft); color: #7fe5f1; font-size: .58rem; font-style: normal; }
.feed-list span small { grid-column: 1 / -1; overflow: hidden; color: #8998ad; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.terminal-empty { padding: 1rem; color: var(--terminal-muted); font-size: .72rem; text-align: center; }
.terminal-empty p { margin: .25rem 0 0; }
.terminal-method-note { margin: 1rem 0 0; color: #68768b; font-size: .64rem; text-align: center; }

.terminal-search-results { max-width: 1760px; margin: 1rem auto 0; padding: 0 1.5rem; }
.terminal-search-results > header { display: flex; align-items: center; justify-content: space-between; }
.terminal-search-results h1 { margin: 0; color: #fff; font-size: .9rem; }
.terminal-search-results header a { color: #77dce9; font-size: .68rem; }
.terminal-search-results > div { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.terminal-search-results > div > a { min-width: 180px; display: grid; padding: .55rem .7rem; border: 1px solid var(--terminal-line); border-radius: 9px; background: var(--terminal-card); }
.terminal-search-results strong { color: #fff; }
.terminal-search-results span { color: var(--terminal-muted); font-size: .65rem; }
.market-terminal-footer { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 0; padding: 1rem 1.5rem 1.35rem; border-top: 1px solid var(--terminal-line); background: var(--terminal-header); color: #75849a; font-size: .65rem; }
.market-terminal-footer span:first-child { display: flex; align-items: center; gap: .5rem; color: #aab7ca; font-weight: 700; }
.mobile-market-header, .mobile-market-nav, .mobile-tools-sheet { display: none; }

@media (max-width: 767px) {
  body[data-page="public.home"] { overflow-x: hidden; background: #0f131d; }
  body[data-page="public.home"] .market-terminal { min-width: 0; padding-bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
  body[data-page="public.home"] .market-terminal-header { display: none; }

  .mobile-market-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 45;
    width: 100%;
    display: block;
    padding: .7rem 1rem .55rem;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    background: rgb(15 19 29 / 94%);
    box-shadow: 0 12px 28px rgb(0 0 0 / 24%);
    backdrop-filter: blur(16px);
  }
  .mobile-market-bar { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
  .mobile-market-brand { min-width: 0; display: flex; align-items: center; gap: .55rem; }
  .mobile-market-brand .market-brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; }
  .mobile-market-brand > span:last-child { min-width: 0; display: grid; line-height: 1.25; }
  .mobile-market-brand strong { color: #fff; font-size: .9rem; font-weight: 900; }
  .mobile-market-brand small { overflow: hidden; margin-top: .12rem; color: #94a3b8; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-market-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; }
  .mobile-source-status { min-height: 32px; display: flex; align-items: center; gap: .35rem; padding: 0 .55rem; border: 1px solid rgb(255 255 255 / 8%); border-radius: 999px; background: #171b26; color: #cbd5e1; font-size: .61rem; direction: ltr; }
  .mobile-source-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--terminal-green); box-shadow: 0 0 0 3px rgb(50 210 150 / 12%); }
  .mobile-icon-link, .mobile-market-search > summary, .mobile-profile-placeholder { width: 38px; height: 38px; min-height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgb(255 255 255 / 8%); border-radius: 50%; background: #171b26; color: #cbd5e1; box-shadow: none; cursor: pointer; list-style: none; }
  .mobile-market-search > summary::-webkit-details-marker { display: none; }
  .mobile-icon-link svg, .mobile-market-search > summary svg, .mobile-profile-placeholder svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .mobile-market-search form { position: absolute; top: 3.8rem; inset-inline: 1rem; z-index: 2; padding: .8rem; border: 1px solid rgb(54 204 228 / 25%); border-radius: 12px; background: #171b26; box-shadow: 0 16px 34px rgb(0 0 0 / 45%); }
  .mobile-market-search form label { display: block; margin-bottom: .4rem; color: #cbd5e1; font-size: .72rem; font-weight: 700; }
  .mobile-market-search form div { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
  .mobile-market-search :is(input, button) { min-height: 44px; border: 1px solid var(--terminal-line); border-radius: 9px; background: #0f131d; color: #fff; font-size: .78rem; }
  .mobile-market-search input { min-width: 0; padding: .55rem .7rem; }
  .mobile-market-search button { padding-inline: .85rem; border-color: rgb(54 204 228 / 28%); background: var(--terminal-cyan-soft); color: #8aebf7; font-weight: 800; }
  .mobile-market-ribbon { display: flex; align-items: center; gap: .4rem; margin-top: .65rem; padding-top: .55rem; overflow-x: auto; border-top: 1px solid rgb(255 255 255 / 5%); scrollbar-width: none; }
  .mobile-market-ribbon::-webkit-scrollbar { display: none; }
  .mobile-market-ribbon > span { flex: 0 0 auto; color: #94a3b8; font-size: .62rem; }
  .mobile-market-ribbon a { flex: 0 0 auto; min-height: 28px; display: flex; align-items: center; gap: .35rem; padding: .2rem .5rem; border: 1px solid rgb(255 255 255 / 6%); border-radius: 8px; background: rgb(23 27 38 / 75%); }
  .mobile-market-ribbon strong { color: #fff; font-size: .67rem; }
  .mobile-market-ribbon em { color: var(--terminal-green); font-size: .63rem; font-style: normal; font-weight: 800; direction: ltr; }
  .mobile-market-ribbon small { color: #7f8da2; font-size: .62rem; }

  .market-terminal-main { padding: 1rem 1rem 1.2rem; }
  .market-terminal-main > section { margin-top: 1rem; scroll-margin-top: 8.5rem; }
  .terminal-section-heading, .terminal-panel-heading { min-width: 0; align-items: flex-start; gap: .65rem; }
  .terminal-section-heading > div, .terminal-panel-heading > div { min-width: 0; }
  .terminal-section-heading { margin-bottom: .65rem; }
  .terminal-section-heading h1, .terminal-panel-heading h2 { font-size: .78rem; line-height: 1.55; }
  .terminal-section-heading p, .terminal-panel-heading p { margin-top: .1rem; font-size: .62rem; line-height: 1.55; }
  .terminal-freshness { display: grid; justify-items: end; gap: .1rem; flex: 0 0 auto; font-size: .57rem; }
  .terminal-freshness strong { max-width: 8rem; overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }

  .pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .terminal-metric { min-height: 118px; padding: .72rem; border-radius: 12px; }
  .terminal-metric:hover { background: var(--terminal-card); }
  .terminal-metric > header { gap: .25rem; font-size: .62rem; }
  .terminal-metric > header em { max-width: 6.2rem; overflow: hidden; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
  .terminal-metric > strong, .terminal-metric > small { grid-column: 1 / -1; }
  .terminal-metric > strong { min-width: 0; font-size: clamp(.82rem, 4vw, .98rem); white-space: nowrap; }
  .terminal-metric > small { font-size: .56rem; text-align: right; }
  .terminal-spark { height: 18px; }
  .terminal-metric.buyer-power { display: none; }
  .terminal-metric-empty { grid-column: 1 / -1; }
  .breadth-metric { grid-template-columns: 46px minmax(0, 1fr); gap: .55rem; }
  .breadth-ring { width: 45px; height: 45px; }
  .breadth-ring strong, .breadth-metric h2 { font-size: .62rem; }
  .breadth-metric p { display: grid; justify-content: start; gap: .1rem; font-size: .57rem; }
  .breadth-metric small { font-size: .52rem; line-height: 1.4; }

  .terminal-panel { padding: .9rem; border-radius: 15px; }
  .terminal-panel-heading { min-height: 48px; padding-bottom: .65rem; }
  .terminal-panel-heading > a, .terminal-panel-heading nav a { min-height: 36px; padding-inline: .55rem; font-size: .59rem; }
  .divergence-heading { flex-wrap: wrap; }
  .divergence-heading-actions { width: 100%; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
  .divergence-heading-actions::-webkit-scrollbar { display: none; }
  .divergence-heading-actions > a, .divergence-heading-actions > em, .divergence-leader-control { min-height: 32px; padding-inline: .55rem; font-size: .56rem; }
  .divergence-symbol-strip { min-height: 46px; gap: .4rem; overflow-x: auto; font-size: .59rem; white-space: nowrap; scrollbar-width: none; }
  .divergence-symbol-strip > span { display: none; }
  .divergence-symbol-strip a { padding: .3rem .65rem; }
  .divergence-symbol-strip em { margin-right: 0; margin-left: auto; font-size: .56rem; }
  .divergence-workspace { grid-template-columns: 1fr; gap: .65rem; padding-top: .7rem; }
  .divergence-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .divergence-stats article { min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .5rem .25rem; text-align: center; }
  .divergence-stats article span { font-size: .55rem; }
  .divergence-stats article strong { font-size: .78rem; }
  .divergence-stats article small { font-size: .48rem; }
  .divergence-stats > p { grid-column: 1 / -1; min-height: 34px; font-size: .56rem; }
  .terminal-chart { min-height: 214px; padding: .65rem .7rem .45rem; }
  .terminal-chart > header { gap: .55rem; overflow-x: auto; font-size: .55rem; white-space: nowrap; }
  .terminal-chart > header small { display: none; }
  .terminal-chart-canvas { height: 150px; padding: .65rem 1.8rem 0 0; }
  .terminal-chart-dates { padding: 0 1.8rem 0 0; font-size: .5rem; }

  #company-analysis .terminal-panel-heading p, #company-analysis .terminal-panel-heading nav a:first-child { display: none; }
  #company-analysis .terminal-panel-heading nav { flex: 0 0 auto; }
  .terminal-table-wrap { overflow: visible; }
  .terminal-table, .terminal-table tbody { display: block; }
  .terminal-table thead { display: none; }
  .terminal-table tbody { display: grid; gap: .55rem; padding-top: .7rem; }
  .terminal-table tbody tr { min-height: 82px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: .1rem .55rem; padding: .65rem; border: 1px solid rgb(255 255 255 / 7%); border-radius: 12px; background: var(--terminal-raised); }
  .terminal-table td { padding: 0; border: 0; font-size: .61rem; white-space: normal; }
  .terminal-table td:first-child { grid-column: 1; grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgb(50 210 150 / 20%); border-radius: 8px; background: rgb(50 210 150 / 9%); color: var(--terminal-green); font-size: .66rem; font-weight: 900; }
  .terminal-table td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .terminal-table td:nth-child(3) { grid-column: 2; grid-row: 2; overflow: hidden; color: #7f8da2; text-overflow: ellipsis; white-space: nowrap; }
  .terminal-table td:nth-child(4) { grid-column: 3; grid-row: 1; text-align: left; direction: ltr; }
  .terminal-table td:nth-child(8) { grid-column: 3; grid-row: 2; text-align: left; }
  .terminal-table td:nth-child(5), .terminal-table td:nth-child(6), .terminal-table td:nth-child(7) { display: none; }
  .symbol-cell strong { font-size: .76rem; }
  .symbol-cell span { overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
  .table-action { min-height: 26px; display: inline-flex; align-items: center; padding: .15rem .4rem; font-size: .54rem; }
  #company-analysis > footer { min-height: 42px; align-items: center; font-size: .58rem; }

  .terminal-market-dollar, .valuation-home-card { display: none; }
  .terminal-deep-grid { display: block; }
  .terminal-deep-grid .feed-list { grid-template-columns: 1fr; }
  .codal-feed .terminal-panel-heading p { display: none; }
  .feed-list > a { min-height: 62px; grid-template-columns: 42px minmax(0, 1fr); padding: .45rem; }
  .feed-list time { min-height: 42px; }
  .feed-list b { font-size: .7rem; }
  .feed-list em { font-size: .52rem; }
  .feed-list span small { font-size: .6rem; }
  .terminal-primary-link { min-height: 40px; font-size: .62rem; }
  .terminal-method-note { margin-bottom: .5rem; padding-inline: .7rem; font-size: .57rem; line-height: 1.6; }
  .market-terminal-footer { min-height: 72px; display: grid; justify-items: center; gap: .25rem; padding: .8rem 1rem; text-align: center; font-size: .57rem; }
  .market-terminal-footer span:first-child { justify-content: center; }
  .terminal-search-results { margin-top: .8rem; padding: 0 1rem; }
  .terminal-search-results > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal-search-results > div > a { min-width: 0; }

  .mobile-market-nav {
    position: fixed;
    right: auto;
    left: 50%;
    bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    width: max-content;
    max-width: calc(100vw - 1.25rem);
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: .1rem;
    padding: .4rem;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 999px;
    background: rgb(23 27 38 / 92%);
    box-shadow: 0 16px 36px rgb(0 0 0 / 58%);
    transform: translate3d(-50%, 0, 0);
    backdrop-filter: blur(16px);
    will-change: transform;
  }
  .mobile-market-nav :is(a, button) { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .45rem; border: 0; border-radius: 999px; background: transparent; color: #94a3b8; cursor: pointer; }
  .mobile-market-nav :is(a, button):focus-visible { outline: 2px solid var(--terminal-cyan); outline-offset: 2px; }
  .mobile-market-nav .active { padding-inline: .72rem; border: 1px solid rgb(96 165 250 / 30%); background: rgb(37 99 235 / 24%); color: #77b5ff; }
  .mobile-market-nav button { padding-inline: .65rem; border: 1px solid rgb(255 255 255 / 9%); background: rgb(255 255 255 / 4%); color: #d5deeb; font: inherit; }
  .mobile-market-nav svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
  .mobile-market-nav span { font-size: .61rem; font-weight: 800; white-space: nowrap; }
  .mobile-market-nav a:not(.active) span { display: none; }

  .mobile-tools-sheet[open] {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    display: block;
    margin: 0;
    padding: .65rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 14%);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: #111827;
    color: var(--terminal-text);
    box-shadow: 0 -20px 50px rgb(0 0 0 / 70%);
  }
  .mobile-tools-sheet::backdrop { background: rgb(0 0 0 / 72%); backdrop-filter: blur(3px); }
  .mobile-sheet-handle { width: 46px; height: 5px; margin: 0 auto .65rem; border-radius: 999px; background: #526076; }
  .mobile-tools-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .35rem 0 .8rem; border-bottom: 1px solid rgb(255 255 255 / 8%); }
  .mobile-tools-sheet h2 { margin: 0; color: #fff; font-size: .88rem; }
  .mobile-tools-sheet header p { margin: .15rem 0 0; color: #94a3b8; font-size: .62rem; }
  .mobile-tools-sheet header button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; background: #1c2331; color: #cbd5e1; }
  .mobile-tools-sheet header svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
  .mobile-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding-top: .8rem; }
  .mobile-tools-grid a { min-height: 112px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-content: center; gap: .15rem .55rem; padding: .7rem; border: 1px solid rgb(255 255 255 / 7%); border-radius: 13px; background: #171b26; }
  .mobile-tools-grid a:active { border-color: rgb(54 204 228 / 35%); background: #1a2434; }
  .mobile-tools-grid svg { grid-row: 1 / 3; width: 34px; height: 34px; padding: .45rem; border: 1px solid rgb(54 204 228 / 20%); border-radius: 9px; background: rgb(54 204 228 / 8%); fill: none; stroke: var(--terminal-cyan); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
  .mobile-tools-grid strong { align-self: end; color: #fff; font-size: .7rem; }
  .mobile-tools-grid small { color: #94a3b8; font-size: .56rem; line-height: 1.55; }
}

@media (max-width: 370px) {
  .mobile-source-status { display: none; }
  .mobile-market-nav { gap: 0; padding: .32rem; }
  .mobile-market-nav :is(a, button) { min-width: 42px; min-height: 42px; padding: .4rem; }
  .mobile-market-nav .active, .mobile-market-nav button { padding-inline: .52rem; }
  .mobile-market-nav span { display: none; }
  .mobile-tools-grid a { min-height: 104px; grid-template-columns: 30px minmax(0, 1fr); padding: .6rem; }
  .mobile-tools-grid svg { width: 30px; height: 30px; }
}
@media (max-width: 350px) {
  .mobile-market-header { padding-inline: .75rem; }
  .mobile-market-brand small { display: none; }
  .pulse-grid { grid-template-columns: 1fr; }
  .terminal-metric { min-height: 108px; }
}
@media (max-width: 1000px) {
 body[data-page="public.home"] .dashboard-heading { flex-direction: column; align-items: stretch; }
 body[data-page="public.home"] .dashboard-hero .insight-filter { width: 100%; }
}
@media (max-width: 700px) {
 body[data-page="public.home"] .dashboard-hero { padding: 1rem; }
 body[data-page="public.home"] .dashboard-hero h1 { font-size: 1.5rem; }
 body[data-page="public.home"] .market-summary > div { padding: .6rem; }
 body[data-page="public.home"] .market-summary > div:first-child { padding-inline-start: .6rem; }
 body[data-page="public.home"] .market-summary > div:nth-child(even) { border-inline-end: 0; }
 body[data-page="public.home"] .dashboard-command { padding: 0 .4rem; }
 body[data-page="public.home"] .section-jump { width: 100%; gap: 0; }
 body[data-page="public.home"] .section-jump a { flex: 1; min-width: 0; font-size: .85rem; }
 .view-heading { align-items: start; flex-direction: column; }
 body[data-page="public.home"] .section-titlebar { flex-wrap: wrap; }
 body[data-page="public.home"] .decision-card { border: 0; border-bottom: 1px solid var(--dashboard-line); }
 body[data-page="public.home"] .tool-prompt { grid-template-columns: 1fr; }
 .workflow-actions strong { flex-basis: 100%; }
}

/* Shared light theme for the market terminal. */
.market-theme-toggle { min-height: 34px; display: inline-flex; align-items: center; gap: .4rem; padding: 0 .7rem; border: 1px solid var(--terminal-line); border-radius: 9px; background: var(--terminal-raised); color: #b9c6d8; font: inherit; font-size: .66rem; font-weight: 700; cursor: pointer; }
.market-theme-toggle:hover { border-color: rgb(54 204 228 / 25%); color: #fff; }
.market-theme-toggle .theme-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.market-theme-toggle .theme-icon-moon { display: none; }

@media (min-width: 0) {
  html[data-market-theme="light"] body[data-page="public.home"],
  html[data-market-theme="light"] body[data-page="public.home"] > main { background: #f3f5f9; color: #18263c; }
  html[data-market-theme="light"] body[data-page="public.home"] .market-terminal {
    --terminal-bg: #f3f5f9;
    --terminal-header: #ffffff;
    --terminal-card: #ffffff;
    --terminal-raised: #f7f9fc;
    --terminal-hover: #eef3fc;
    --terminal-line: #e0e6ef;
    --terminal-text: #18263c;
    --terminal-muted: #647086;
    --terminal-cyan: #2857ba;
    --terminal-cyan-soft: #edf2ff;
    --terminal-green: #147d58;
    --terminal-red: #bd3e52;
    --terminal-amber: #95621b;
    color-scheme: light;
  }
  html[data-market-theme="light"] body[data-page="public.home"] .market-terminal ::selection { background: rgb(40 87 186 / 16%); color: #173f93; }
  html[data-market-theme="light"] body[data-page="public.home"] .market-terminal a:hover { color: #2857ba; }
  html[data-market-theme="light"] .market-terminal-header { border-bottom-color: #d6dfeb; background: rgb(255 255 255 / 97%); box-shadow: 0 7px 24px rgb(18 38 70 / 8%); }
  html[data-market-theme="light"] .market-statusbar { border-color: #dbe3ee; background: #f7f9fc; color: #647086; box-shadow: 0 5px 16px rgb(18 38 70 / 6%); }
  html[data-market-theme="light"] .market-live-badge { border-color: #c7e7d9; background: #edf8f2; color: #147d58; }
  html[data-market-theme="light"] .market-live-badge i { background: #147d58; box-shadow: 0 0 0 4px rgb(20 125 88 / 12%); }
  html[data-market-theme="light"] .market-sync-status strong { color: #334155; }
  html[data-market-theme="light"] .market-status-divider { background: #e2e8f0; }
  html[data-market-theme="light"] .market-watchlist-link { border-color: #e2e8f0; background: #fff; color: #475569 !important; }
  html[data-market-theme="light"] .market-header-primary { border-bottom-color: #f1f5f9; }
  html[data-market-theme="light"] .market-brand-mark { border-color: #bfdbfe; background: #fff; color: #2563eb; box-shadow: 0 7px 18px rgb(37 99 235 / 10%); }
  html[data-market-theme="light"] .market-brand strong,
  html[data-market-theme="light"] .terminal-section-heading h1,
  html[data-market-theme="light"] .terminal-panel-heading h2,
  html[data-market-theme="light"] .terminal-market-dollar h2,
  html[data-market-theme="light"] .terminal-search-results h1 { color: #0f172a; }
  html[data-market-theme="light"] .market-brand small,
  html[data-market-theme="light"] .market-header-status,
  html[data-market-theme="light"] .terminal-section-heading p,
  html[data-market-theme="light"] .terminal-panel-heading p { color: #64748b; }
  html[data-market-theme="light"] .market-header-filter :is(input, select, button),
  html[data-market-theme="light"] .market-industry-filter,
  html[data-market-theme="light"] .market-search { background: #f8fafc; color: #334155; }
  html[data-market-theme="light"] .market-industry-filter select,
  html[data-market-theme="light"] .market-search input { color: #0f172a; }
  html[data-market-theme="light"] .market-search input::placeholder { color: #64748b; }
  html[data-market-theme="light"] .market-search svg { stroke: #64748b; }
  html[data-market-theme="light"] .market-search-suggestions { border-color: #dbe4ee; background: #fff; box-shadow: 0 18px 38px rgb(15 23 42 / 14%); }
  html[data-market-theme="light"] .market-search-suggestions a:hover,
  html[data-market-theme="light"] .market-search-suggestions a[aria-selected="true"] { background: #eff6ff; }
  html[data-market-theme="light"] .market-search-suggestions strong { color: #0f172a; }
  html[data-market-theme="light"] .market-search-suggestions small,
  html[data-market-theme="light"] .market-search-suggestions .search-suggestions-empty { color: #64748b; }
  html[data-market-theme="light"] .market-search button { color: #1d4ed8; }
  html[data-market-theme="light"] .market-search button:hover { background: #dbeafe; }
  html[data-market-theme="light"] .market-advanced-search { background: linear-gradient(135deg, #286090, #1f5f85) !important; box-shadow: 0 6px 16px rgb(31 95 133 / 18%); }
  html[data-market-theme="light"] .market-header-status a { border-color: #bfdbfe; color: #1d4ed8; }
  html[data-market-theme="light"] .market-theme-toggle { color: #475569; }
  html[data-market-theme="light"] .market-theme-toggle:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
  html[data-market-theme="light"] .market-theme-toggle .theme-icon-sun { display: none; }
  html[data-market-theme="light"] .market-theme-toggle .theme-icon-moon { display: block; }
  html[data-market-theme="light"] .market-module-nav a { color: #475569; }
  html[data-market-theme="light"] .market-module-nav a:hover { background: #f1f5f9; color: #0f172a; }
  html[data-market-theme="light"] .market-module-nav a.active { border-bottom-color: #2563eb; color: #1d4ed8; background: #eff6ff; }
  html[data-market-theme="light"] .market-module-nav a.monthly { color: #b45309; }

  html[data-market-theme="light"] .terminal-freshness,
  html[data-market-theme="light"] .terminal-metric > small,
  html[data-market-theme="light"] .breadth-metric small { color: #64748b; }
  html[data-market-theme="light"] .terminal-freshness strong { color: #334155; }
  html[data-market-theme="light"] .terminal-metric { background: linear-gradient(145deg, #fff, #f8fafc); box-shadow: 0 4px 14px rgb(18 38 70 / 5%); }
  html[data-market-theme="light"] .terminal-metric:has(> header .positive) { border-color: #dbeae2; background: linear-gradient(145deg, #fff, #f4faf7); }
  html[data-market-theme="light"] .terminal-metric:has(> header .negative) { border-color: #efdee2; background: linear-gradient(145deg, #fff, #fff7f8); }
  html[data-market-theme="light"] .terminal-metric:hover { border-color: #b8c9ea; background: #fff; }
  html[data-market-theme="light"] .terminal-metric > header { color: #334155; }
  html[data-market-theme="light"] .terminal-metric > header em { background: #eef3fc; color: #526176; }
  html[data-market-theme="light"] .terminal-metric > header em.positive { background: #edf8f2; }
  html[data-market-theme="light"] .terminal-metric > header em.negative { background: #fff0f2; }
  html[data-market-theme="light"] .terminal-metric > strong,
  html[data-market-theme="light"] .breadth-ring strong,
  html[data-market-theme="light"] .breadth-metric h2 { color: #0f172a; }
  html[data-market-theme="light"] .terminal-spark { border-bottom-color: #d9e1ec; }
  html[data-market-theme="light"] .terminal-spark i { background: #8e9bb0; }
  html[data-market-theme="light"] .terminal-spark i.up { background: #147d58; }
  html[data-market-theme="light"] .terminal-spark i.down { background: #bd3e52; }
  html[data-market-theme="light"] .breadth-ring { background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(#147d58 var(--growth), #bd3e52 0); }

  html[data-market-theme="light"] .terminal-panel,
  html[data-market-theme="light"] .terminal-market-dollar { background: radial-gradient(circle at 100% 0, rgb(40 87 186 / 4%), transparent 28%), #fff; box-shadow: 0 8px 24px rgb(18 38 70 / 6%); }
  html[data-market-theme="light"] .terminal-panel-heading > a,
  html[data-market-theme="light"] .terminal-panel-heading nav a { color: #475569; }
  html[data-market-theme="light"] .terminal-panel-heading > a:hover,
  html[data-market-theme="light"] .terminal-panel-heading nav a.active { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
  html[data-market-theme="light"] .divergence-heading-actions > a,
  html[data-market-theme="light"] .divergence-heading-actions > em,
  html[data-market-theme="light"] .divergence-leader-control { border-color: #e2e8f0; background: #f8fafc; color: #64748b; }
  html[data-market-theme="light"] .divergence-heading-actions > em { border-color: #a7f3d0; background: #ecfdf5; }
  html[data-market-theme="light"] .divergence-leader-control a { color: #1d4ed8 !important; }
  html[data-market-theme="light"] .divergence-symbol-strip { border-bottom-color: #f1f5f9; color: #64748b; }
  html[data-market-theme="light"] .divergence-symbol-strip a { background: #2563eb; color: #fff !important; }
  html[data-market-theme="light"] .divergence-symbol-strip em { background: #ecfdf5; }
  html[data-market-theme="light"] .divergence-stats article { border-color: #e0e6ef; background: #f7f9fc; }
  html[data-market-theme="light"] .divergence-stats article span,
  html[data-market-theme="light"] .divergence-stats article small,
  html[data-market-theme="light"] .divergence-stats > p { color: #64748b; }
  html[data-market-theme="light"] .divergence-stats article strong,
  html[data-market-theme="light"] .divergence-stats > p strong { color: #0f172a; }
  html[data-market-theme="light"] .divergence-stats article.highlight { border-color: #b8c9ea; background: #edf2ff; }
  html[data-market-theme="light"] .divergence-stats article.highlight :is(span, strong) { color: #2857ba; }
  html[data-market-theme="light"] .divergence-stats > p span { color: #64748b; }
  html[data-market-theme="light"] .terminal-chart,
  html[data-market-theme="light"] .market-dollar-terminal-chart { border-color: #d5dbe2; background: #fff; }
  html[data-market-theme="light"] .terminal-chart > header { border-bottom-color: #e2e8f0; color: #475569; }
  html[data-market-theme="light"] .terminal-chart > header small,
  html[data-market-theme="light"] .chart-scale,
  html[data-market-theme="light"] .terminal-chart-dates { color: #64748b; }
  html[data-market-theme="light"] .terminal-chart .chart-grid,
  html[data-market-theme="light"] .market-dollar-terminal-chart svg .grid { stroke: #e2e8f0; }
  html[data-market-theme="light"] .terminal-chart .sales-line { stroke: #147d58; }
  html[data-market-theme="light"] .terminal-chart .sales-point { fill: #147d58; }
  html[data-market-theme="light"] .terminal-chart .sales-point.latest { stroke: #eaf7f1; }
  html[data-market-theme="light"] .terminal-chart #sales-area-gradient stop:first-child { stop-color: #147d58; }
  html[data-market-theme="light"] .terminal-chart .price-line { stroke: #2857ba; }
  html[data-market-theme="light"] .terminal-chart .price-point { fill: #2857ba; }

  html[data-market-theme="light"] .terminal-table th { border-bottom-color: #d5dbe2; background: linear-gradient(135deg, #286090, #1f5f85); color: #fff; }
  html[data-market-theme="light"] .terminal-table td { border-bottom-color: #e7ebf0; color: #475569; }
  html[data-market-theme="light"] .terminal-table tbody tr:nth-child(even) { background: #f7f9fb; }
  html[data-market-theme="light"] .terminal-table tbody tr:hover { background: #eaf2f8; }
  html[data-market-theme="light"] .terminal-table td:first-child { color: #64748b; }
  html[data-market-theme="light"] .symbol-cell strong { color: #0f172a; }
  html[data-market-theme="light"] .symbol-cell span { color: #64748b; }
  html[data-market-theme="light"] .table-action { border-color: #bfdbfe; color: #1d4ed8 !important; }
  html[data-market-theme="light"] .sales-spark i { background: #147d58; }
  html[data-market-theme="light"] .terminal-panel > footer,
  html[data-market-theme="light"] .terminal-panel > footer a { color: #475569; }
  html[data-market-theme="light"] .terminal-market-dollar header > strong,
  html[data-market-theme="light"] .terminal-panel > footer a { color: #1d4ed8; }
  html[data-market-theme="light"] .market-dollar-ranges { background: #f8fafc; }
  html[data-market-theme="light"] .market-dollar-ranges a { color: #64748b; }
  html[data-market-theme="light"] .market-dollar-ranges a[aria-current="true"] { background: #2563eb; color: #fff; }
  html[data-market-theme="light"] .market-dollar-terminal-chart svg circle { fill: #f8fafc; }
  html[data-market-theme="light"] .market-dollar-terminal-chart > div,
  html[data-market-theme="light"] .terminal-market-dollar > p { color: #64748b; }

  html[data-market-theme="light"] .valuation-home-date,
  html[data-market-theme="light"] .valuation-ratio-grid span,
  html[data-market-theme="light"] .valuation-ratio-grid small { color: #64748b; }
  html[data-market-theme="light"] body[data-page="public.home"] .valuation-home-card {
    --dashboard-ink: #0f172a;
    --dashboard-muted: #64748b;
    --dashboard-line: #e2e8f0;
    --dashboard-accent: #1d4ed8;
    background: #fff;
  }
  html[data-market-theme="light"] body[data-page="public.home"] .valuation-home-intro :is(.valuation-home-date, .evidence-label),
  html[data-market-theme="light"] body[data-page="public.home"] .valuation-home-ratios { background: #f8fafc; }
  html[data-market-theme="light"] .valuation-ratio-grid > div { border-color: #e2e8f0; }
  html[data-market-theme="light"] .valuation-ratio-grid strong { color: #0f172a; }
  html[data-market-theme="light"] .terminal-primary-link { color: #1d4ed8 !important; }
  html[data-market-theme="light"] .feed-list > a { border-color: #e2e8f0; background: #f8fafc; }
  html[data-market-theme="light"] .feed-list > a:hover { border-color: #93c5fd; background: #fff; }
  html[data-market-theme="light"] .feed-list time { border-color: #bfdbfe; background: #eff6ff; }
  html[data-market-theme="light"] .feed-list time strong,
  html[data-market-theme="light"] .feed-list em { color: #1d4ed8; }
  html[data-market-theme="light"] .feed-list time small,
  html[data-market-theme="light"] .feed-list span small { color: #64748b; }
  html[data-market-theme="light"] .feed-list b { color: #0f172a; }
  html[data-market-theme="light"] .terminal-empty,
  html[data-market-theme="light"] .terminal-method-note { color: #64748b; }

  html[data-market-theme="light"] .terminal-search-results header a { color: #1d4ed8; }
  html[data-market-theme="light"] .terminal-search-results > div > a { background: #fff; }
  html[data-market-theme="light"] .terminal-search-results strong { color: #0f172a; }
  html[data-market-theme="light"] .terminal-search-results span { color: #64748b; }
  html[data-market-theme="light"] .market-terminal-footer { background: #fff; color: #64748b; }
  html[data-market-theme="light"] .market-terminal-footer span:first-child { color: #334155; }
}

@media (max-width: 767px) {
  .mobile-theme-toggle { width: 38px; height: 38px; min-height: 38px; justify-content: center; padding: 0; border-radius: 50%; }

  html[data-market-theme="light"] body[data-page="public.home"],
  html[data-market-theme="light"] body[data-page="public.home"] > main { background: #f3f5f9; }
  html[data-market-theme="light"] .mobile-market-header {
    border-bottom-color: #e2e8f0;
    background: rgb(255 255 255 / 95%);
    box-shadow: 0 1px 3px rgb(15 23 42 / 5%);
  }
  html[data-market-theme="light"] .mobile-market-brand .market-brand-mark { border-color: #bfdbfe; background: #fff; color: #1d4ed8; box-shadow: 0 6px 16px rgb(37 99 235 / 12%); }
  html[data-market-theme="light"] .mobile-market-brand strong { color: #0f172a; }
  html[data-market-theme="light"] .mobile-market-brand small,
  html[data-market-theme="light"] .mobile-market-ribbon > span,
  html[data-market-theme="light"] .mobile-market-ribbon small { color: #64748b; }
  html[data-market-theme="light"] .mobile-source-status,
  html[data-market-theme="light"] .mobile-icon-link,
  html[data-market-theme="light"] .mobile-market-search > summary,
  html[data-market-theme="light"] .mobile-profile-placeholder,
  html[data-market-theme="light"] .mobile-theme-toggle { border-color: #e2e8f0; background: #f8fafc; color: #475569; }
  html[data-market-theme="light"] .mobile-theme-toggle .theme-icon-sun { display: none; }
  html[data-market-theme="light"] .mobile-theme-toggle .theme-icon-moon { display: block; }
  html[data-market-theme="light"] .mobile-market-search form { border-color: #bfdbfe; background: #fff; box-shadow: 0 16px 34px rgb(15 23 42 / 14%); }
  html[data-market-theme="light"] .mobile-market-search form label { color: #334155; }
  html[data-market-theme="light"] .mobile-market-search :is(input, button) { background: #f8fafc; color: #0f172a; }
  html[data-market-theme="light"] .mobile-market-search button { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
  html[data-market-theme="light"] .mobile-market-ribbon { border-top-color: #f1f5f9; }
  html[data-market-theme="light"] .mobile-market-ribbon a { border-color: #e2e8f0; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
  html[data-market-theme="light"] .mobile-market-ribbon strong { color: #0f172a; }

  html[data-market-theme="light"] .terminal-table tbody tr { border-color: #e2e8f0; }
  html[data-market-theme="light"] .terminal-table td:nth-child(3) { color: #64748b; }
  html[data-market-theme="light"] .mobile-market-nav {
    border-color: rgb(226 232 240 / 90%);
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 12px 32px rgb(15 23 42 / 14%);
  }
  html[data-market-theme="light"] .mobile-market-nav :is(a, button) { color: #64748b; }
  html[data-market-theme="light"] .mobile-market-nav .active { border-color: #2563eb; background: #2563eb; color: #fff; }
  html[data-market-theme="light"] .mobile-market-nav button { border-color: #e2e8f0; background: #f1f5f9; color: #0f172a; }

  html[data-market-theme="light"] .mobile-tools-sheet[open] { border-color: #e2e8f0; background: #fff; color: #334155; box-shadow: 0 -20px 50px rgb(15 23 42 / 18%); }
  html[data-market-theme="light"] .mobile-tools-sheet::backdrop { background: rgb(15 23 42 / 40%); }
  html[data-market-theme="light"] .mobile-sheet-handle { background: #cbd5e1; }
  html[data-market-theme="light"] .mobile-tools-sheet > header { border-bottom-color: #f1f5f9; }
  html[data-market-theme="light"] .mobile-tools-sheet h2,
  html[data-market-theme="light"] .mobile-tools-grid strong { color: #0f172a; }
  html[data-market-theme="light"] .mobile-tools-sheet header p,
  html[data-market-theme="light"] .mobile-tools-grid small { color: #64748b; }
  html[data-market-theme="light"] .mobile-tools-sheet header button { border-color: #e2e8f0; background: #f1f5f9; color: #475569; }
  html[data-market-theme="light"] .mobile-tools-grid a { border-color: #e2e8f0; background: #fff; }
  html[data-market-theme="light"] .mobile-tools-grid a:active { border-color: #93c5fd; background: #eff6ff; }
html[data-market-theme="light"] .mobile-tools-grid svg { border-color: #bfdbfe; background: #eff6ff; stroke: #1d4ed8; }
}

/* Shared terminal shell: the market header and footer are the single layout source. */
body.terminal-layout {
  --terminal-bg: #090d16;
  --terminal-header: #0c1220;
  --terminal-card: #101827;
  --terminal-raised: #141f33;
  --terminal-hover: #19263d;
  --terminal-line: rgb(255 255 255 / 8%);
  --terminal-text: #dce5f2;
  --terminal-muted: #8e9cb2;
  --terminal-cyan: #36cce4;
  --terminal-cyan-soft: rgb(54 204 228 / 12%);
  --terminal-green: #32d296;
  --terminal-red: #fb7185;
  --terminal-amber: #fbbf67;
  overflow-x: auto;
  background: #090d16;
  color: #dce5f2;
}
html[data-market-theme="light"] body.terminal-layout {
  --terminal-bg: #f3f5f9;
  --terminal-header: #ffffff;
  --terminal-card: #ffffff;
  --terminal-raised: #f7f9fc;
  --terminal-hover: #eef3fc;
  --terminal-line: #e0e6ef;
  --terminal-text: #18263c;
  --terminal-muted: #647086;
  --terminal-cyan: #2857ba;
  --terminal-cyan-soft: #edf2ff;
  --terminal-green: #147d58;
  --terminal-red: #bd3e52;
  --terminal-amber: #95621b;
  background: #f3f5f9;
  color: #18263c;
}
body.terminal-layout .market-terminal {
  --terminal-bg: #090d16;
  --terminal-header: #0c1220;
  --terminal-card: #101827;
  --terminal-raised: #141f33;
  --terminal-hover: #19263d;
  --terminal-line: rgb(255 255 255 / 8%);
  --terminal-text: #dce5f2;
  --terminal-muted: #8e9cb2;
  --terminal-cyan: #36cce4;
  --terminal-cyan-soft: rgb(54 204 228 / 12%);
  --terminal-green: #32d296;
  --terminal-red: #fb7185;
  --terminal-amber: #fbbf67;
  min-width: 1120px;
  min-height: 100vh;
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
  color-scheme: dark;
}
html[data-market-theme="light"] body.terminal-layout .market-terminal {
  --terminal-bg: #f3f5f9;
  --terminal-header: #ffffff;
  --terminal-card: #ffffff;
  --terminal-raised: #f7f9fc;
  --terminal-hover: #eef3fc;
  --terminal-line: #e0e6ef;
  --terminal-text: #18263c;
  --terminal-muted: #647086;
  --terminal-cyan: #2857ba;
  --terminal-cyan-soft: #edf2ff;
  --terminal-green: #147d58;
  --terminal-red: #bd3e52;
  --terminal-amber: #95621b;
  color-scheme: light;
}
body.terminal-layout .market-terminal,
body.terminal-layout .market-terminal *,
body.terminal-layout .market-terminal *::before,
body.terminal-layout .market-terminal *::after { font-family: Vazirmatn, sans-serif; }
body.terminal-layout :is(.market-terminal-header, .mobile-market-header, .market-terminal-footer) a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: initial;
}
body.terminal-layout :is(.market-terminal-header, .mobile-market-header) :is(a, button, input, select) {
  font-family: Vazirmatn, sans-serif;
  line-height: 1.5;
}
body.terminal-layout .market-terminal-header :is(.market-brand, .market-live-badge, .market-search, .market-industry-filter, .market-header-actions) {
  font-size: 13px;
}
body.terminal-layout .market-terminal > main {
  width: 100%;
  max-width: 1760px;
  min-height: calc(100vh - 280px);
  margin: 0 auto;
  padding: 1.5rem;
}
body.terminal-layout .market-terminal > main.market-home-main {
  max-width: none;
  min-height: 0;
  padding: 0;
}
body.terminal-layout .market-terminal > .market-terminal-footer { margin-right: 0; }
body.terminal-layout .market-terminal > main :is(a, button, input, select):focus-visible { outline: 2px solid var(--terminal-cyan); outline-offset: 3px; }
body.terminal-layout .terminal-global-search { max-width: none; }
body.terminal-layout .terminal-mobile-nav { display: none; }

body.terminal-layout .market-header-primary {
  grid-template-columns: minmax(235px, auto) auto minmax(320px, 1fr) auto auto;
  gap: .75rem;
  min-height: 82px;
  padding-block: .65rem;
}
.market-header-primary > .market-live-badge { justify-self: center; white-space: nowrap; }
.market-header-primary .market-search { min-width: 320px; }
.market-search kbd { position: absolute; left: .65rem; padding: .12rem .4rem; border: 1px solid var(--terminal-line); border-radius: 5px; background: rgb(255 255 255 / 4%); color: var(--terminal-muted); font: 600 .58rem/1.4 ui-monospace, monospace; direction: ltr; }
.market-search input { padding-left: 4.6rem; }
.market-header-primary .market-industry-filter { min-width: 205px; grid-template-columns: 1fr; }
.market-header-actions { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.market-header-actions .market-watchlist-link { min-height: 42px; }
.market-header-actions .market-watchlist-link { height: 42px; padding: 0 .8rem; font-size: .72rem; line-height: 1; white-space: nowrap; box-sizing: border-box; }
.market-header-actions .market-watchlist-link svg { width: 17px; height: 17px; fill: none; stroke: var(--terminal-cyan); stroke-linejoin: round; stroke-width: 1.8; }
.market-header-actions .market-watchlist-link span { color: inherit; }
.market-header-actions .market-theme-toggle,
.market-profile-placeholder { width: 42px; height: 42px; min-height: 42px; justify-content: center; padding: 0; }
.market-profile-placeholder { display: grid; place-items: center; border: 0; border-radius: 10px; background: linear-gradient(145deg, #279ae8, #2563eb); color: #fff; box-shadow: 0 7px 18px rgb(37 99 235 / 22%); cursor: pointer; }
.market-profile-placeholder svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.market-profile-placeholder:hover { filter: brightness(1.08); }
html[data-market-theme="light"] .market-search kbd { background: #eef2f7; color: #64748b; }
html[data-market-theme="light"] .market-profile-placeholder { background: linear-gradient(145deg, #279ae8, #2563eb); color: #fff; }

/* Financial archive: light interpretation of the supplied dense terminal UI. */
.financial-archive { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.financial-archive > * { min-width: 0; max-width: 100%; }
.financial-archive .financial-hero {
  min-height: 0;
  margin: 0;
  padding: 1.4rem;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: radial-gradient(circle at 4% 0, rgb(37 99 235 / 8%), transparent 28%), linear-gradient(145deg, #fff, #f8fafc);
  color: #18263c;
  box-shadow: 0 8px 24px rgb(18 38 70 / 6%);
}
.financial-archive .financial-hero::after { opacity: .22; }
.financial-hero-copy { max-width: 720px; }
.financial-archive .financial-hero h1 { margin: .35rem 0; color: #0f172a; font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.financial-archive .financial-hero p:last-child { color: #64748b; line-height: 1.9; }
.financial-verified { display: flex; align-items: center; gap: .45rem; margin: 0; color: #1d4ed8; font-size: .72rem; font-weight: 800; }
.financial-verified span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #dbeafe; }
.financial-verified i { width: 4px; height: 4px; border-radius: 50%; background: #94a3b8; }
.financial-archive .financial-hero-stats { min-width: 570px; grid-template-columns: repeat(4, minmax(125px, 1fr)); }
.financial-archive .financial-hero-stats div { min-height: 100px; align-content: space-between; justify-items: stretch; border-color: #e2e8f0; background: rgb(255 255 255 / 86%); box-shadow: 0 3px 12px rgb(15 23 42 / 4%); }
.financial-archive .financial-hero-stats dt { display: flex; justify-content: space-between; color: #64748b; }
.financial-archive .financial-hero-stats dt span { color: #2563eb; }
.financial-archive .financial-hero-stats dd { color: #0f172a; font-size: 1.25rem; text-align: right; }
.financial-archive .financial-hero-stats small { color: #7c899c; font-size: .62rem; }
.financial-archive .financial-hero-stats .financial-sync-time { color: #147d58; font-size: .78rem; line-height: 1.6; }

.financial-archive .financial-filters,
.financial-archive .financial-report-panel { padding: 1.15rem; border: 1px solid #dce5f0; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgb(18 38 70 / 5%); }
.financial-archive .financial-filter-heading { align-items: flex-start; flex-wrap: wrap; }
.financial-filter-title { display: flex; align-items: center; gap: .7rem; }
.financial-filter-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; color: #2563eb; font-size: 1.1rem; }
.financial-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: -.15rem 0 .9rem; padding: .15rem 0 .85rem; border-bottom: 1px solid #e2e8f0; }
.financial-active-filters > span { margin-left: .15rem; color: #64748b; font-size: .69rem; }
.financial-active-filters a { min-height: 35px; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border: 1px solid #bae6fd; border-radius: 7px; background: #ecfeff; color: #0369a1; font-size: .67rem; font-weight: 750; text-decoration: none; }
.financial-active-filters a:hover { border-color: #38bdf8; background: #e0f7ff; }
.financial-active-filters a i { color: #0891b2; font-size: 1rem; font-style: normal; line-height: 1; }
.financial-active-filters .financial-clear-filters { margin-right: auto; border-color: transparent; background: transparent; color: #e11d48; }
.financial-active-filters .financial-clear-filters:hover { border-color: #fecdd3; background: #fff1f2; }
.financial-active-filters .financial-clear-filters svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.financial-presets { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.financial-presets > span { color: #64748b; font-size: .68rem; }
.financial-presets a { min-height: 32px; display: inline-flex; align-items: center; padding: .2rem .65rem; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; color: #475569; font-size: .67rem; font-weight: 650; text-decoration: none; }
.financial-presets a:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.financial-archive .financial-filter-grid label { color: #475569; }
.financial-archive .financial-filter-grid label > span { min-height: 22px; display: flex; align-items: center; gap: .4rem; color: #334155; }
.financial-archive .financial-filter-grid label > span svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #0891b2; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.financial-archive .financial-filter-grid :is(input, select) { min-height: 48px; border-color: #d8e1ec; border-radius: 8px; background: #f8fafc; }
.financial-archive .financial-filter-grid :is(input, select):focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 3px rgb(37 99 235 / 10%); }
.financial-archive .financial-filter-actions button { min-height: 42px; padding-inline: 1.1rem; border: 0; border-radius: 8px; background: linear-gradient(135deg, #286090, #1f5f85); color: #fff; font-weight: 800; cursor: pointer; }
.financial-filter-actions a { color: #64748b; font-size: .7rem; text-decoration: none; }
.financial-filter-actions a:hover { color: #1d4ed8; }

.financial-archive .financial-list-heading { margin-bottom: .8rem; }
.financial-archive .financial-list-heading .eyebrow { margin: 0; color: #2563eb; }
.financial-archive .financial-list-heading h2 { color: #0f172a; font-size: 1.05rem; }
.financial-archive .financial-list-heading p:last-child { margin: .2rem 0 0; color: #64748b; font-size: .68rem; }
.financial-page-badge { padding: .35rem .65rem; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: .68rem; font-weight: 750; }
.financial-archive .financial-report-table-wrap { max-height: 72vh; margin: 0; border-color: #dce5f0; border-radius: 10px; }
.financial-archive .financial-report-table { min-width: 1050px; }
.financial-archive .financial-report-table th { position: sticky; top: 0; z-index: 2; padding: .75rem; border-color: #e2e8f0; background: #f1f5f9; color: #475569; font-size: .68rem; text-align: right; }
.financial-archive .financial-report-table td { height: 72px; padding: .65rem .75rem; border-color: #edf1f5; background: #fff; color: #334155; }
.financial-archive .financial-report-table tbody tr:nth-child(even) td { background: #fafbfd; }
.financial-archive .financial-report-table tbody tr:hover td { background: #f1f6fd; }
.financial-archive .financial-report-table th:nth-child(1) { width: 130px; }
.financial-archive .financial-report-table th:nth-child(2) { width: 145px; }
.financial-archive .financial-report-table th:nth-child(3) { width: 140px; }
.financial-archive .financial-report-table th:nth-child(4) { width: 145px; }
.financial-archive .financial-report-table th:nth-child(5) { width: 130px; }
.financial-archive .financial-report-table th:last-child { width: 52px; }
.financial-archive .financial-symbol { color: #1d4ed8; }
.financial-audit-badge { display: inline-flex; padding: .25rem .55rem; border: 1px solid #dce5f0; border-radius: 6px; background: #f8fafc; color: #475569; font-size: .68rem; }
.financial-audit-badge.audited { border-color: #bfe3d2; background: #edf8f2; color: #147d58; }
.financial-archive .status { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.financial-archive .status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.financial-row-action { text-align: center; }
.financial-row-action a { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #dbe4ee; border-radius: 8px; background: #f8fafc; color: #2563eb; font-size: 1rem; text-decoration: none; }
.financial-row-action a:hover { border-color: #93c5fd; background: #eff6ff; }
.financial-action-label { display: none; }
.financial-archive .financial-pagination { margin-top: 0; padding: 1rem .2rem 0; border-top: 0; }
.financial-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid #dce5f0; border-radius: 14px; background: linear-gradient(110deg, #fff, #f5f8fc); }
.financial-note > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; color: #2563eb; font-size: 1.3rem; }
.financial-note strong { color: #0f172a; font-size: .78rem; }
.financial-note p { margin: .15rem 0 0; color: #64748b; font-size: .68rem; }
.financial-note a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 .8rem; border: 1px solid #bfdbfe; border-radius: 8px; color: #1d4ed8; font-size: .7rem; font-weight: 750; text-decoration: none; }

html[data-market-theme="dark"] .financial-archive .financial-hero {
  border-color: var(--terminal-line);
  background: radial-gradient(circle at 4% 0, rgb(54 204 228 / 10%), transparent 30%), linear-gradient(145deg, #121b2b, #0d1421);
  color: var(--terminal-text);
  box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
}
html[data-market-theme="dark"] .financial-archive .financial-hero h1,
html[data-market-theme="dark"] .financial-archive .financial-list-heading h2,
html[data-market-theme="dark"] .financial-note strong { color: #f8fafc; }
html[data-market-theme="dark"] .financial-archive .financial-hero p:last-child,
html[data-market-theme="dark"] .financial-archive .financial-list-heading p:last-child,
html[data-market-theme="dark"] .financial-note p { color: #94a3b8; }
html[data-market-theme="dark"] .financial-verified { color: var(--terminal-cyan); }
html[data-market-theme="dark"] .financial-verified span { background: var(--terminal-cyan-soft); }
html[data-market-theme="dark"] .financial-archive .financial-hero-stats div { border-color: var(--terminal-line); background: rgb(20 31 51 / 88%); box-shadow: none; }
html[data-market-theme="dark"] .financial-archive .financial-hero-stats dt,
html[data-market-theme="dark"] .financial-archive .financial-hero-stats small { color: #8e9cb2; }
html[data-market-theme="dark"] .financial-archive .financial-hero-stats dd { color: #f8fafc; }
html[data-market-theme="dark"] .financial-archive .financial-hero-stats .financial-sync-time { color: var(--terminal-green); }
html[data-market-theme="dark"] .financial-archive .financial-filters,
html[data-market-theme="dark"] .financial-archive .financial-report-panel,
html[data-market-theme="dark"] .financial-note { border-color: var(--terminal-line); background: var(--terminal-card); box-shadow: 0 10px 28px rgb(0 0 0 / 16%); }
html[data-market-theme="dark"] .financial-filter-icon,
html[data-market-theme="dark"] .financial-note > span { border-color: rgb(54 204 228 / 24%); background: var(--terminal-cyan-soft); color: var(--terminal-cyan); }
html[data-market-theme="dark"] .financial-active-filters { border-color: var(--terminal-line); }
html[data-market-theme="dark"] .financial-active-filters > span { color: #94a3b8; }
html[data-market-theme="dark"] .financial-active-filters a { border-color: #164e63; background: #083344; color: #67e8f9; }
html[data-market-theme="dark"] .financial-active-filters a:hover { border-color: #0891b2; background: #0c4a5a; }
html[data-market-theme="dark"] .financial-active-filters a i { color: #22d3ee; }
html[data-market-theme="dark"] .financial-active-filters .financial-clear-filters { border-color: transparent; background: transparent; color: #fb7185; }
html[data-market-theme="dark"] .financial-active-filters .financial-clear-filters:hover { border-color: #713042; background: #351d29; }
html[data-market-theme="dark"] .financial-presets > span,
html[data-market-theme="dark"] .financial-archive .financial-filter-grid label { color: #94a3b8; }
html[data-market-theme="dark"] .financial-archive .financial-filter-grid label > span { color: #dce5f2; }
html[data-market-theme="dark"] .financial-archive .financial-filter-grid label > span svg { stroke: #22d3ee; }
html[data-market-theme="dark"] .financial-presets a,
html[data-market-theme="dark"] .financial-archive .financial-filter-grid :is(input, select) { border-color: var(--terminal-line); background: var(--terminal-raised); color: #dce5f2; }
html[data-market-theme="dark"] .financial-presets a:hover { border-color: rgb(54 204 228 / 30%); background: var(--terminal-cyan-soft); color: var(--terminal-cyan); }
html[data-market-theme="dark"] .financial-archive .financial-filter-grid :is(input, select):focus { border-color: var(--terminal-cyan); background: #101827; }
html[data-market-theme="dark"] .financial-page-badge { border-color: rgb(54 204 228 / 28%); background: var(--terminal-cyan-soft); color: var(--terminal-cyan); }
html[data-market-theme="dark"] .financial-archive .financial-report-table-wrap { border-color: var(--terminal-line); }
html[data-market-theme="dark"] .financial-archive .financial-report-table th { border-color: var(--terminal-line); background: #0d1523; color: #94a3b8; }
html[data-market-theme="dark"] .financial-archive .financial-report-table td,
html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:nth-child(even) td { border-color: rgb(255 255 255 / 6%); background: var(--terminal-card); color: #cbd5e1; }
html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:nth-child(even) td { background: #111b2c; }
html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:hover td { background: var(--terminal-hover); }
html[data-market-theme="dark"] .financial-archive .financial-report-table td > :is(strong, span) { color: #dce5f2; }
html[data-market-theme="dark"] .financial-archive .financial-symbol,
html[data-market-theme="dark"] .financial-archive .financial-title-cell small { color: var(--terminal-cyan); }
html[data-market-theme="dark"] .financial-audit-badge { border-color: var(--terminal-line); background: var(--terminal-raised); color: #cbd5e1; }
html[data-market-theme="dark"] .financial-audit-badge.audited { border-color: rgb(50 210 150 / 24%); background: rgb(50 210 150 / 10%); color: var(--terminal-green); }
html[data-market-theme="dark"] .financial-row-action a,
html[data-market-theme="dark"] .financial-note a { border-color: rgb(54 204 228 / 24%); background: var(--terminal-cyan-soft); color: var(--terminal-cyan); }
html[data-market-theme="dark"] .financial-archive .financial-pagination { color: #94a3b8; }

/* Dense financial report grid */
.financial-archive .financial-report-panel { overflow: hidden; padding: 0; }
.financial-table-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.25rem; border-bottom: 1px solid #dce5f0; background: #f8fafc; }
.financial-result-summary, .financial-table-view { display: flex; align-items: center; gap: .65rem; color: #64748b; font-size: .69rem; }
.financial-result-summary strong { color: #334155; font-size: .74rem; }
.financial-result-summary strong bdi { color: #0284c7; font-size: 1rem; }
.financial-result-summary > i { width: 1px; height: 25px; margin-inline: .35rem; background: #dce5f0; }
.financial-result-summary b { display: inline-flex; align-items: center; gap: .35rem; color: #0f172a; font-size: .72rem; }
.financial-result-summary svg { width: 16px; height: 16px; fill: none; stroke: #0284c7; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.financial-table-view > span:first-child { color: #64748b; }
.financial-table-view bdi { color: #0f172a; font-weight: 800; }
.financial-view-buttons { height: 40px; display: flex; overflow: hidden; border: 1px solid #dce5f0; border-radius: 8px; background: #fff; }
.financial-view-buttons i { width: 34px; display: grid; place-items: center; color: #64748b; font-size: 1rem; font-style: normal; }
.financial-view-buttons i.active { border-right: 1px solid #dce5f0; background: #e9f7ff; color: #0284c7; }
.financial-archive .financial-report-table-wrap { max-height: 72vh; border: 0; border-radius: 0; background: transparent; }
.financial-archive .financial-report-table { min-width: 1120px; table-layout: fixed; }
.financial-archive .financial-report-table th { height: 52px; position: sticky; top: 0; z-index: 2; padding: .65rem 1rem; border-bottom: 1px solid #dce5f0; background: #eef2f7; color: #52637a; font-size: .67rem; font-weight: 750; text-align: right; }
.financial-sort-chevrons { display: inline-block; margin-right: .3rem; color: #708299; font-size: .55rem; line-height: .55; vertical-align: middle; }
.financial-sort-arrow { margin-right: .25rem; color: #0891b2; font-size: 1rem; }
.financial-archive .financial-report-table td { height: 81px; padding: .72rem 1rem; border-bottom: 1px solid #e5ebf2; background: #fff; color: #334155; vertical-align: middle; }
.financial-archive .financial-report-table tbody tr:nth-child(even) td { background: #f8fafc; }
.financial-archive .financial-report-table tbody tr:hover td { background: #eff6ff; }
.financial-archive .financial-report-table th:nth-child(1) { width: 175px; }
.financial-archive .financial-report-table th:nth-child(2) { width: 145px; }
.financial-archive .financial-report-table th:nth-child(3) { width: 150px; }
.financial-archive .financial-report-table th:nth-child(4) { width: 145px; }
.financial-archive .financial-report-table th:nth-child(5) { width: 135px; }
.financial-archive .financial-report-table th:nth-child(6) { width: 390px; }
.financial-archive .financial-report-table th:last-child { width: 72px; text-align: center; }
.financial-company-line { display: flex; align-items: center; gap: .4rem; }
.financial-company-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #10b981; }
.financial-archive .financial-symbol { color: #0284c7; font-size: .92rem; font-weight: 900; }
.financial-company-tag { padding: .12rem .4rem; border: 1px solid #bae6fd; border-radius: 4px; background: #ecfeff; color: #0369a1; font-size: .54rem; font-weight: 800; }
.financial-company-tag.consolidated { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.financial-archive .financial-report-table td > small { display: block; margin-top: .25rem; color: #708299; font-size: .61rem; }
.financial-archive .financial-report-table td:nth-child(2) > strong { display: block; color: #0f172a; font-size: .77rem; font-weight: 800; }
.financial-archive .financial-report-table td:nth-child(2) { text-align: center; }
.financial-archive .financial-report-table td:nth-child(2) > small { color: #52637a; }
.financial-archive .financial-report-table .annual-period { color: #0284c7; font-weight: 750; }
.financial-archive .financial-report-table td:nth-child(3) > span { color: #0f172a; font-size: .7rem; font-weight: 800; }
.financial-archive .financial-report-table td:nth-child(3) > span.consolidated-scope { color: #059669; }
.financial-audit-badge, .financial-archive .status { min-height: 32px; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 1px solid #d8e2ef; border-radius: 7px; background: #eef3f9; color: #52637a; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.financial-audit-badge i { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; }
.financial-audit-badge i::before { content: "•••"; font-size: .44rem; letter-spacing: -1px; line-height: 1; }
.financial-audit-badge.audited { border-color: #9de3cb; background: #eafaf4; color: #047857; }
.financial-audit-badge.audited i::before { content: "✓"; font-size: .58rem; font-weight: 900; }
.financial-archive .status { border-radius: 999px; }
.financial-archive .status i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.financial-archive .status.parsed { border-color: #a7f3d0; background: #ecfdf5; color: #059669; }
.financial-archive .status.partial { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.financial-archive .status.failed { border-color: #fecdd3; background: #fff1f2; color: #e11d48; }
.financial-title-cell { min-width: 0; }
.financial-archive .financial-title-cell a { display: block; overflow: hidden; color: #0f172a; font-size: .68rem; font-weight: 800; line-height: 1.8; text-overflow: ellipsis; white-space: nowrap; }
.financial-archive .financial-title-cell small { margin-top: .15rem; color: #0284c7; font-weight: 750; }
.financial-archive .financial-title-cell small span { font-size: .85rem; }
.financial-row-action { text-align: center; }
.financial-row-action a { width: 39px; height: 39px; display: inline-grid; place-items: center; border: 1px solid #dce5f0; border-radius: 9px; background: #f8fafc; color: #0369a1; }
.financial-row-action a:hover { border-color: #7dd3fc; background: #ecfeff; }
.financial-action-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.financial-archive .financial-pagination { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem 1.25rem; border-top: 1px solid #dce5f0; background: #f8fafc; }
.financial-archive .financial-pagination p { margin: 0; color: #64748b; font-size: .66rem; }
.financial-archive .financial-pagination p i { width: 4px; height: 4px; display: inline-block; margin-inline: .45rem; border-radius: 50%; background: #94a3b8; vertical-align: middle; }
.financial-archive .financial-pagination p strong { color: #334155; }
.financial-page-controls, .financial-page-numbers { display: flex; align-items: center; gap: .35rem; }
.financial-page-controls { direction: ltr; }
.financial-page-numbers { flex-direction: row-reverse; }
.financial-page-controls label { display: flex; align-items: center; gap: .35rem; color: #64748b; font-size: .64rem; }
.financial-page-controls label,
.financial-page-next,
.financial-page-prev { direction: rtl; }
.financial-page-controls input { width: 44px; height: 36px; padding: .2rem; border: 1px solid #dce5f0; border-radius: 7px; background: #fff; color: #334155; text-align: center; opacity: 1; }
.financial-page-controls > a, .financial-page-controls > span:not(.financial-page-numbers), .financial-page-numbers > :is(a, span) { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: .2rem .55rem; border: 1px solid #dce5f0; border-radius: 7px; background: #fff; color: #475569; font-size: .65rem; font-weight: 750; text-decoration: none; }
.financial-page-controls > a, .financial-page-controls > span:not(.financial-page-numbers) { gap: .35rem; }
.financial-page-numbers > a { transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.financial-page-numbers > a:not(.active):hover { border-color: #7dd3fc; background: #eff6ff; color: #0284c7; }
.financial-page-numbers a.active { border-color: #0284c7; background: #0284c7; color: #fff; box-shadow: 0 6px 14px rgb(2 132 199 / 24%); }
.financial-page-controls .disabled { opacity: .42; }

html[data-market-theme="dark"] .financial-table-toolbar,
html[data-market-theme="dark"] .financial-archive .financial-pagination { border-color: #202b3d; background: #171e2a; }
html[data-market-theme="dark"] .financial-result-summary,
html[data-market-theme="dark"] .financial-table-view,
html[data-market-theme="dark"] .financial-archive .financial-pagination p,
html[data-market-theme="dark"] .financial-page-controls label { color: #8494aa; }
html[data-market-theme="dark"] .financial-result-summary strong,
html[data-market-theme="dark"] .financial-result-summary b,
html[data-market-theme="dark"] .financial-table-view bdi,
html[data-market-theme="dark"] .financial-archive .financial-pagination p strong { color: #e5edf8; }
html[data-market-theme="dark"] .financial-result-summary strong bdi,
html[data-market-theme="dark"] .financial-result-summary svg { color: #22d3ee; stroke: #22d3ee; }
html[data-market-theme="dark"] .financial-result-summary > i { background: #263247; }
html[data-market-theme="dark"] .financial-view-buttons { border-color: #263247; background: #101725; }
html[data-market-theme="dark"] .financial-view-buttons i { color: #718198; }
html[data-market-theme="dark"] .financial-view-buttons i.active { border-color: #263247; background: #1c2a40; color: #22d3ee; }
html[data-market-theme="dark"] .financial-archive .financial-report-table th { border-color: #202b3d; background: #0d1421; color: #91a2ba; }
html[data-market-theme="dark"] .financial-archive .financial-report-table td,
html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:nth-child(even) td { border-color: #202b3d; background: #121b2b; color: #d5dfec; }
html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:nth-child(even) td { background: #111928; }
html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:hover td { background: #172337; }
html[data-market-theme="dark"] .financial-archive .financial-symbol,
html[data-market-theme="dark"] .financial-archive .financial-title-cell small { color: #18c7e8; }
html[data-market-theme="dark"] .financial-company-tag { border-color: #155e75; background: #07354a; color: #67e8f9; }
html[data-market-theme="dark"] .financial-company-tag.consolidated { border-color: #065f46; background: #063c32; color: #34d399; }
html[data-market-theme="dark"] .financial-archive .financial-report-table td > small { color: #75869d; }
html[data-market-theme="dark"] .financial-archive .financial-report-table td:nth-child(2) > strong,
html[data-market-theme="dark"] .financial-archive .financial-report-table td:nth-child(3) > span,
html[data-market-theme="dark"] .financial-archive .financial-title-cell a { color: #f2f6fc; }
html[data-market-theme="dark"] .financial-archive .financial-report-table .annual-period { color: #22d3ee; }
html[data-market-theme="dark"] .financial-audit-badge { border-color: #29364a; background: #1c293c; color: #c8d5e5; }
html[data-market-theme="dark"] .financial-audit-badge.audited { border-color: #075e52; background: #073b35; color: #22d3a0; }
html[data-market-theme="dark"] .financial-archive .status.parsed { border-color: #075e52; background: #073b35; color: #22d3a0; }
html[data-market-theme="dark"] .financial-archive .status.partial { border-color: #784f16; background: #382c16; color: #fbbf24; }
html[data-market-theme="dark"] .financial-archive .status.failed { border-color: #713042; background: #351d29; color: #fb7185; }
html[data-market-theme="dark"] .financial-row-action a { border-color: #202b3d; background: #0d1523; color: #7dd3fc; }
html[data-market-theme="dark"] .financial-row-action a:hover { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] .financial-page-controls input,
html[data-market-theme="dark"] .financial-page-controls > a,
html[data-market-theme="dark"] .financial-page-controls > span:not(.financial-page-numbers),
html[data-market-theme="dark"] .financial-page-numbers > :is(a, span) { border-color: #263247; background: #101725; color: #c8d5e5; }
html[data-market-theme="dark"] .financial-page-numbers > a:not(.active):hover { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] .financial-page-numbers a.active { border-color: #168ee3; background: #168ee3; color: #fff; box-shadow: 0 7px 17px rgb(22 142 227 / 35%); }

@media (max-width: 1240px) {
  .financial-archive .financial-hero { align-items: stretch; flex-direction: column; }
  .financial-archive .financial-hero-stats { width: 100%; min-width: 0; }
}
@media (max-width: 767px) {
  body.terminal-layout { overflow-x: hidden; }
  body.terminal-layout .market-terminal { min-width: 0; padding-top: var(--mobile-market-header-height, 60px); padding-bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
  body.terminal-layout .market-terminal-header { display: none; }
  body.terminal-layout .market-terminal > main { padding: .75rem; }
  body.terminal-layout .market-terminal > main.market-home-main { padding: 0; }
  body.terminal-layout .terminal-mobile-nav { display: flex; }
  .financial-archive { gap: .75rem; }
  .financial-archive .financial-hero { gap: 1rem; padding: 1rem; border-radius: 13px; }
  .financial-archive .financial-hero h1 { font-size: 1.35rem; line-height: 1.65; }
  .financial-archive .financial-hero p:last-child { font-size: .75rem; line-height: 1.85; }
  .financial-verified { flex-wrap: wrap; font-size: .66rem; }
  .financial-archive .financial-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .financial-archive .financial-hero-stats div { min-width: 0; min-height: 82px; padding: .65rem; }
  .financial-archive .financial-hero-stats dt { gap: .35rem; font-size: .62rem; }
  .financial-archive .financial-hero-stats dd { overflow-wrap: anywhere; font-size: 1rem; }
  .financial-archive .financial-hero-stats .financial-sync-time { font-size: .65rem; }
  .financial-archive .financial-filters { padding: .8rem; border-radius: 12px; }
  .financial-archive .financial-report-panel { padding: 0; border-radius: 12px; }
  .financial-table-toolbar { min-height: 0; align-items: flex-start; flex-direction: column; gap: .45rem; padding: .75rem .8rem; }
  .financial-result-summary { width: 100%; flex-wrap: wrap; gap: .35rem .55rem; }
  .financial-result-summary > i, .financial-table-view .financial-view-buttons { display: none; }
  .financial-table-view { width: 100%; justify-content: flex-end; }
  .financial-archive .financial-filter-heading { gap: .75rem; margin-bottom: .75rem; padding-bottom: .75rem; }
  .financial-filter-title { align-items: flex-start; }
  .financial-filter-title h2 { font-size: .9rem; }
  .financial-filter-title p { display: block; font-size: .65rem; line-height: 1.7; }
  .financial-filter-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .financial-active-filters { flex-wrap: nowrap; overflow-x: auto; margin-bottom: .75rem; scrollbar-width: none; }
  .financial-active-filters::-webkit-scrollbar { display: none; }
  .financial-active-filters > :is(span, a) { flex: 0 0 auto; }
  .financial-active-filters .financial-clear-filters { margin-right: 0; }
  .financial-presets { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .financial-presets a { white-space: nowrap; }
  .financial-archive .financial-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .financial-archive .financial-symbol-field { grid-column: 1 / -1; }
  .financial-archive .financial-filter-actions { align-items: stretch; gap: .5rem; }
  .financial-archive .financial-filter-actions button { width: 100%; }
  .financial-archive .financial-filter-actions a,
  .financial-archive .financial-filter-actions > span { text-align: center; }
  .financial-archive .financial-list-heading { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .financial-archive .financial-list-heading > div { width: 100%; }
  .financial-page-badge { align-self: flex-start; }
  .financial-archive .financial-report-table-wrap { max-height: none; overflow: visible; padding: .8rem; border: 0; background: transparent; }
  .financial-archive .financial-report-table,
  .financial-archive .financial-report-table tbody { min-width: 0; display: block; }
  .financial-archive .financial-report-table thead { display: none; }
  .financial-archive .financial-report-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "symbol period" "scope audit" "status status" "title title" "action action";
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgb(15 23 42 / 5%);
  }
  .financial-archive .financial-report-table td {
    min-width: 0;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .45rem;
    padding: .65rem .7rem;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
    white-space: normal;
  }
  .financial-archive .financial-report-table td::before { flex: 0 0 auto; color: #7c899c; content: attr(data-label); font-size: .58rem; font-weight: 650; }
  .financial-archive .financial-report-table td:nth-child(1) { grid-area: symbol; display: grid; justify-content: stretch; background: #f8fafc; }
  .financial-archive .financial-report-table td:nth-child(2) { grid-area: period; display: grid; justify-content: end; border-right: 1px solid #edf1f5; background: #f8fafc; text-align: left; }
  .financial-archive .financial-report-table td:nth-child(3) { grid-area: scope; display: grid; justify-content: stretch; }
  .financial-archive .financial-report-table td:nth-child(4) { grid-area: audit; display: grid; justify-content: stretch; border-right: 1px solid #edf1f5; }
  .financial-archive .financial-report-table td:nth-child(5) { grid-area: status; align-items: center; }
  .financial-archive .financial-report-table td:nth-child(6) { grid-area: title; display: grid; gap: .35rem; padding-block: .8rem; }
  .financial-archive .financial-report-table td:nth-child(7) { grid-area: action; display: block; padding: .55rem .7rem; border-bottom: 0; background: #f8fafc; }
  .financial-archive .financial-report-table td:nth-child(-n+2)::before { display: none; }
  .financial-archive .financial-report-table td > small { color: #7c899c; font-size: .61rem; }
  .financial-archive .financial-symbol { font-size: 1rem; }
  .financial-archive .financial-title-cell a { display: -webkit-box; overflow: hidden; color: #1e293b; font-size: .72rem; font-weight: 700; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .financial-archive .financial-title-cell small { color: #2563eb; }
  .financial-archive .financial-row-action a { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: .4rem; }
  .financial-action-label { display: inline; font-size: .68rem; font-weight: 750; }
  .financial-action-icon { font-size: .9rem; }
  html[data-market-theme="dark"] .financial-archive .financial-report-table tr { border-color: var(--terminal-line); background: var(--terminal-card); box-shadow: 0 8px 20px rgb(0 0 0 / 14%); }
  html[data-market-theme="dark"] .financial-archive .financial-report-table td,
  html[data-market-theme="dark"] .financial-archive .financial-report-table tbody tr:nth-child(even) td { border-color: var(--terminal-line); background: var(--terminal-card); }
  html[data-market-theme="dark"] .financial-archive .financial-report-table td:nth-child(1),
  html[data-market-theme="dark"] .financial-archive .financial-report-table td:nth-child(2),
  html[data-market-theme="dark"] .financial-archive .financial-report-table td:nth-child(7) { background: #0d1523; }
  html[data-market-theme="dark"] .financial-archive .financial-title-cell a { color: #e2e8f0; }
  .financial-archive .financial-pagination { min-height: 0; align-items: stretch; flex-direction: column; gap: .65rem; margin: 0; padding: .75rem .8rem; }
  .financial-archive .financial-pagination p { text-align: center; }
  .financial-archive .financial-pagination > div { width: 100%; }
  .financial-page-controls { justify-content: center; flex-wrap: wrap; }
  .financial-page-controls label { width: 100%; justify-content: center; }
  .financial-page-numbers { order: 2; }
  .financial-page-prev { order: 3; }
  .financial-note { grid-template-columns: auto 1fr; }
  .financial-note a { grid-column: 1 / -1; justify-content: center; }

  body[data-page="public.screening"] .screening-table-wrap { max-height: none; overflow: visible; }
  body[data-page="public.screening"] .screening-pagination { position: relative; clear: both; min-width: 0; align-items: stretch; flex-direction: column; gap: .65rem; padding: .75rem; }
  body[data-page="public.screening"] .screening-pagination > p { text-align: center; }
  body[data-page="public.screening"] .screening-pagination .financial-page-controls { width: 100%; min-width: 0; }
}

@media (max-width: 440px) {
  .financial-archive .financial-hero-stats div:last-child { display: grid; }
  .financial-archive .financial-filter-grid { grid-template-columns: 1fr; }
  .financial-archive .financial-symbol-field { grid-column: auto; }
  .financial-archive .financial-report-table tr { grid-template-areas: "symbol period" "scope scope" "audit audit" "status status" "title title" "action action"; }
  .financial-archive .financial-report-table td:nth-child(3),
  .financial-archive .financial-report-table td:nth-child(4) { display: flex; align-items: center; border-right: 0; }
  .financial-archive .financial-report-table td:nth-child(3)::before,
  .financial-archive .financial-report-table td:nth-child(4)::before { display: inline; }
  .financial-note { grid-template-columns: 1fr; text-align: center; }
  .financial-note > span { margin-inline: auto; }
  .financial-note a { grid-column: auto; }
}

/* Valuation detail terminal */
body[data-page="public.valuation"] > main { max-width: 1660px; }
.valuation-detail-page { --valuation-bg: #f6f8fc; --valuation-card: #fff; --valuation-card-soft: #f8fafc; --valuation-line: #dce5f0; --valuation-ink: #0f172a; --valuation-muted: #64748b; display: grid; gap: 1.8rem; }
.valuation-detail-crumb { margin: 0; color: var(--valuation-muted); }
.valuation-detail-crumb a { color: #0284c7; }
.valuation-detail-hero { min-height: 138px; margin: 0; padding: 1.7rem 1.8rem; border: 1px solid var(--valuation-line); border-radius: 20px; background: var(--valuation-card); box-shadow: none; }
.valuation-detail-hero .valuation-identity { min-width: 0; flex-direction: row; }
.valuation-detail-hero .company-mark { width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 18px; background: #fff; color: #1e3a8a; font-size: 2.35rem; font-weight: 950; box-shadow: 0 8px 24px rgb(15 23 42 / 8%); }
.valuation-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.valuation-title-line h1 { margin: 0; color: var(--valuation-ink); font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 950; letter-spacing: -.025em; }
.valuation-title-line > span { padding: .28rem .65rem; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: .68rem; font-weight: 750; }
.valuation-detail-hero .valuation-identity p { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: .35rem 0 0; color: var(--valuation-muted); font-size: .78rem; }
.valuation-detail-hero .valuation-identity p i { width: 4px; height: 4px; border-radius: 50%; background: #94a3b8; }
.valuation-detail-hero .valuation-identity p strong { color: #334155; }
.valuation-detail-hero .valuation-identity p b { padding: .18rem .45rem; border-radius: 5px; background: #e2e8f0; color: #475569; font-size: .62rem; }
.valuation-detail-hero .valuation-actions { flex: 0 0 auto; }
.valuation-detail-hero .valuation-actions .button { min-height: 44px; gap: .45rem; padding-inline: 1.15rem; border-radius: 10px; font-size: .75rem; font-weight: 800; }
.valuation-detail-hero .valuation-actions .button.secondary { border-color: #dce5f0; background: #fff; color: #0f172a; }
.valuation-detail-hero .valuation-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.valuation-current-panel { margin: 0; padding: 2rem; border: 1px solid var(--valuation-line); border-radius: 20px; background: var(--valuation-card); box-shadow: none; }
.valuation-current-panel .valuation-section-heading { align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--valuation-line); }
.valuation-current-panel .valuation-section-heading h2 { color: var(--valuation-ink); font-size: 1.25rem; font-weight: 900; }
.valuation-current-panel .valuation-section-heading p { margin-top: .25rem; color: var(--valuation-muted); font-size: .72rem; }
.valuation-current-panel .evidence-label { padding: .45rem .8rem; border: 1px solid var(--valuation-line); border-radius: 9px; background: var(--valuation-card-soft); color: #475569; font-size: .65rem; font-weight: 750; }
.valuation-current-panel .valuation-tape { direction: ltr; gap: 1.2rem; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.valuation-current-panel .ratio-cell { min-height: 286px; direction: rtl; display: flex; flex-direction: column; padding: 1.25rem 1.35rem; border: 1px solid var(--valuation-line) !important; border-radius: 15px; background: var(--valuation-card-soft); }
.valuation-current-panel .ratio-cell > header { min-height: 44px; display: flex; align-items: start; justify-content: space-between; gap: .6rem; }
.valuation-current-panel .ratio-cell > header bdi { font-size: .78rem; font-weight: 900; }
.valuation-current-panel .ratio-cell > header span { color: #475569; font-size: .67rem; font-weight: 700; }
.valuation-current-panel .ratio-cell > strong { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--valuation-ink); font-size: 2.25rem; font-weight: 950; }
.valuation-current-panel .ratio-cell > strong small { color: var(--valuation-muted); font-size: .64rem; font-weight: 600; }
.valuation-current-panel .ratio-unavailable { flex-direction: row; color: #8ea0b8 !important; }
.valuation-current-panel .ratio-unavailable small { font-size: .69rem !important; }
.valuation-current-panel .ratio-gap { width: fit-content; min-height: 29px; display: flex; align-items: center; align-self: center; margin: 0; padding: .3rem .7rem; border-radius: 7px; font-size: .63rem; font-weight: 800; }
.valuation-current-panel .ratio-gap.below { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.valuation-current-panel .ratio-gap.above { border: 1px solid #fecaca; background: #fef2f2; color: #be123c; }
.valuation-current-panel .ratio-gap.unavailable, .valuation-current-panel .ratio-gap.equal { background: #e9eef5; color: #64748b; }
.valuation-current-panel .ratio-meta { grid-template-columns: 1fr auto; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--valuation-line); color: var(--valuation-muted); }
.valuation-current-panel .ratio-meta > span:first-child { color: #475569; font-weight: 700; }
.valuation-current-panel .ratio-meta > span:nth-child(2) { font-weight: 800; }
.valuation-current-panel .ratio-meta small { line-height: 1.7; }
.valuation-current-panel .ratio-pe > header bdi { color: #3b82f6; }
.valuation-current-panel .ratio-ps > header bdi { color: #10b981; }
.valuation-current-panel .ratio-pb > header bdi, .valuation-current-panel .ratio-pb .ratio-meta > span:nth-child(2) { color: #d18a00; }
.valuation-current-panel .ratio-ev_ebitda > header bdi { color: #c45cff; }
.valuation-current-panel .valuation-reading-note { margin: 2rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--valuation-line); border-radius: 11px; background: var(--valuation-card-soft); color: var(--valuation-muted); font-size: .67rem; line-height: 1.9; }

html[data-market-theme="dark"] .valuation-detail-page { --valuation-bg: #080d16; --valuation-card: #0e1625; --valuation-card-soft: #111b2b; --valuation-line: #202d40; --valuation-ink: #f8fafc; --valuation-muted: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.valuation"] { background: var(--valuation-bg); }
html[data-market-theme="dark"] .valuation-detail-hero .company-mark { background: #f8fafc; color: #1e3a8a; box-shadow: none; }
html[data-market-theme="dark"] .valuation-title-line > span { border-color: rgb(59 130 246 / 28%); background: rgb(37 99 235 / 12%); color: #60a5fa; }
html[data-market-theme="dark"] .valuation-detail-hero .valuation-identity p strong { color: #dbe7f7; }
html[data-market-theme="dark"] .valuation-detail-hero .valuation-identity p b { background: #1e2b40; color: #9fb1ca; }
html[data-market-theme="dark"] .valuation-detail-hero .valuation-actions .button.secondary { border-color: #e2e8f0; background: #f8fafc; color: #0f172a; }
html[data-market-theme="dark"] .valuation-current-panel .evidence-label { color: #cbd5e1; }
html[data-market-theme="dark"] .valuation-current-panel .ratio-cell > header span,
html[data-market-theme="dark"] .valuation-current-panel .ratio-meta > span:first-child { color: #a9bad1; }
html[data-market-theme="dark"] .valuation-current-panel .ratio-gap.below { border-color: rgb(16 185 129 / 30%); background: rgb(16 185 129 / 15%); color: #34d399; }
html[data-market-theme="dark"] .valuation-current-panel .ratio-gap.above { border-color: rgb(244 63 94 / 30%); background: rgb(244 63 94 / 14%); color: #fb7185; }
html[data-market-theme="dark"] .valuation-current-panel .ratio-gap.unavailable,
html[data-market-theme="dark"] .valuation-current-panel .ratio-gap.equal { background: #1e2b40; color: #9fb1ca; }

@media (max-width: 1050px) {
  .valuation-detail-hero { align-items: flex-start; flex-direction: column; }
  .valuation-detail-hero .valuation-actions { width: 100%; }
  .valuation-current-panel .valuation-tape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .valuation-detail-page { gap: .9rem; }
  .valuation-detail-hero { gap: 1.1rem; padding: 1rem; border-radius: 15px; }
  .valuation-detail-hero .valuation-identity { align-items: flex-start; }
  .valuation-detail-hero .company-mark { width: 54px; height: 54px; border-radius: 13px; font-size: 1.65rem; }
  .valuation-title-line { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .valuation-title-line h1 { font-size: 1.55rem; }
  .valuation-detail-hero .valuation-actions .button { flex: 1; justify-content: center; }
  .valuation-current-panel { padding: .85rem; border-radius: 15px; }
  .valuation-current-panel .valuation-section-heading { align-items: flex-start; margin-bottom: .85rem; padding: .25rem .25rem .85rem; }
  .valuation-current-panel .valuation-tape { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .valuation-current-panel .ratio-cell { min-height: 220px; padding: .8rem; }
  .valuation-current-panel .ratio-cell > header { min-height: 52px; flex-direction: column; gap: .2rem; }
  .valuation-current-panel .ratio-cell > strong { min-height: 64px; font-size: 1.5rem; }
  .valuation-current-panel .ratio-gap { padding-inline: .45rem; font-size: .55rem; text-align: center; }
  .valuation-current-panel .ratio-meta { grid-template-columns: 1fr; gap: .3rem; }
  .valuation-current-panel .ratio-meta > span:nth-child(2) { text-align: right; }
  .valuation-current-panel .valuation-reading-note { margin-top: .85rem; padding: .8rem; }
}

.valuation-detail-tabs { position: static; min-height: 58px; justify-content: flex-start; gap: 1.8rem; margin: 0; padding: 0 1rem; overflow: visible; border: 0; border-bottom: 1px solid var(--valuation-line); border-radius: 0; background: transparent; box-shadow: none; }
.valuation-detail-tabs a { min-height: 58px; display: inline-flex; align-items: center; padding: .5rem 1rem; border-bottom: 2px solid transparent; border-radius: 0; color: var(--valuation-muted); font-size: .8rem; font-weight: 800; }
.valuation-detail-tabs a:hover, .valuation-detail-tabs a:focus-visible, .valuation-detail-tabs a.active { border-bottom-color: #06b6d4; background: rgb(6 182 212 / 5%); color: #0891b2; }
.valuation-detail-page .valuation-panel { margin: 0; padding: 2rem; overflow: hidden; border: 1px solid var(--valuation-line); border-radius: 20px; background: var(--valuation-card); box-shadow: none; }
.valuation-table-heading { margin: 0; }
.valuation-table-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: var(--valuation-ink); font-size: 1.12rem; font-weight: 900; }
.valuation-table-heading h2 span { padding: .25rem .55rem; border-radius: 999px; background: #e8eef6; color: #475569; font-size: .62rem; font-weight: 750; }
.valuation-table-heading h2 .valuation-data-badge { border: 1px solid rgb(6 182 212 / 22%); background: rgb(6 182 212 / 10%); color: #0891b2; }
.valuation-table-heading p { margin-top: .3rem; color: var(--valuation-muted); font-size: .7rem; }
.valuation-table-tools { min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin: -3.25rem 0 1.35rem; pointer-events: none; }
.valuation-table-tools label { pointer-events: auto; }
.valuation-table-tools select, .valuation-table-tools input { height: 40px; border: 1px solid var(--valuation-line); border-radius: 9px; background: var(--valuation-card-soft); color: var(--valuation-ink); font: inherit; font-size: .68rem; }
.valuation-order-field select { min-width: 165px; padding-inline: .8rem; }
.valuation-search-field { position: relative; width: min(350px, 34vw); }
.valuation-search-field svg { position: absolute; top: 50%; right: .8rem; width: 17px; height: 17px; fill: none; stroke: var(--valuation-muted); stroke-linecap: round; stroke-width: 1.8; transform: translateY(-50%); }
.valuation-search-field input { width: 100%; padding: .6rem 2.35rem .6rem .8rem; }
.valuation-search-field input::placeholder { color: #8292a8; }
.valuation-peer-tools .valuation-search-field { width: min(380px, 38vw); }
.valuation-detail-page .valuation-table-wrap { max-height: none; overflow: auto; border: 1px solid var(--valuation-line); border-radius: 14px; background: var(--valuation-card-soft); }
.valuation-detail-page .valuation-table { width: 100%; min-width: 860px; border-collapse: collapse; background: transparent; }
.valuation-detail-page .valuation-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.valuation-detail-page .valuation-table :is(th, td) { height: 60px; padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--valuation-line); color: var(--valuation-ink); font-size: .72rem; text-align: center; white-space: nowrap; }
.valuation-detail-page .valuation-table thead th { height: 55px; background: var(--valuation-card-soft); color: #8da1bc; font-size: .67rem; font-weight: 750; }
.valuation-detail-page .valuation-table tbody tr > :is(th, td) { background-color: var(--valuation-card); }
.valuation-detail-page .valuation-table thead th i { margin-inline-start: .25rem; color: #64748b; font-style: normal; font-size: .68rem; }
.valuation-detail-page .valuation-table tbody tr:last-child > * { border-bottom: 0; }
.valuation-detail-page .valuation-table td a { color: #38bdf8; font-weight: 850; text-decoration: none; }
.valuation-detail-page .valuation-table td small { display: inline-flex; margin-inline-start: .5rem; padding: .28rem .5rem; border: 1px solid rgb(6 182 212 / 22%); border-radius: 6px; background: rgb(6 182 212 / 10%); color: #0891b2; font-size: .58rem; }
.valuation-detail-page .valuation-table td strong { color: inherit; }
.valuation-detail-page .valuation-table .ratio-pe { background: rgb(37 99 235 / 5%); color: #2563eb; }
.valuation-detail-page .valuation-table .ratio-ps { background: rgb(16 185 129 / 5%); color: #059669; }
.valuation-detail-page .valuation-table .ratio-pb { background: rgb(217 119 6 / 6%); color: #d97706; }
.valuation-detail-page .valuation-table .ratio-ev_ebitda { background: rgb(124 58 237 / 5%); color: #7c3aed; }
.valuation-detail-page .valuation-table tbody tr.current-period > td { background-color: rgb(6 182 212 / 7%); }
.valuation-detail-page .valuation-table tbody tr.current-period > .ratio-pe { background-color: rgb(37 99 235 / 11%); }
.valuation-detail-page .valuation-table tbody tr.current-period > .ratio-ps { background-color: rgb(16 185 129 / 10%); }
.valuation-detail-page .valuation-table tbody tr.current-period > .ratio-pb { background-color: rgb(217 119 6 / 11%); }
.valuation-detail-page .valuation-table tbody tr.current-period > .ratio-ev_ebitda { background-color: rgb(124 58 237 / 10%); }
.valuation-detail-page .peer-valuation-table .median-row > :is(th, td) { border-top: 1px solid #0d9488; border-bottom: 1px solid #0d9488; background: rgb(13 148 136 / 8%); color: #0f766e; font-weight: 850; }
.valuation-detail-page .peer-valuation-table .median-row > th { text-align: right; }
.valuation-detail-page .peer-valuation-table .median-row > th span::before { width: 7px; height: 7px; display: inline-block; margin-inline-end: .45rem; border-radius: 50%; background: #10b981; content: ''; }
.valuation-detail-page .peer-valuation-table tbody td:first-child .symbol-link { color: var(--valuation-ink); }
.valuation-detail-page .peer-valuation-table tbody tr:not(.median-row) > :is(th, td):not([class^="ratio-"]) { background: var(--valuation-card) !important; }
.valuation-detail-page .peer-valuation-table .ratio-pe { background: #eef5ff !important; color: #2563eb; }
.valuation-detail-page .peer-valuation-table .ratio-ps { background: #edf8f5 !important; color: #059669; }
.valuation-detail-page .peer-valuation-table .ratio-pb { background: #fbf6e9 !important; color: #d97706; }
.valuation-detail-page .peer-valuation-table .ratio-ev_ebitda { background: #f5f1fa !important; color: #7c3aed; }
html[data-market-theme="dark"] .valuation-detail-page #valuation-peers { border-color: #1b2738; background: #0e1625; }
html[data-market-theme="dark"] .valuation-detail-page #valuation-peers .valuation-search-field input { border-color: #1b283a; background: #111b2b; }
html[data-market-theme="dark"] .valuation-detail-page #valuation-peers .peer-table-wrap { border-color: #1b283a; background: #0d1523; }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table thead th:not([class^="ratio-"]),
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table tbody tr:not(.median-row) > :is(th, td):not([class^="ratio-"]) { background: #0d1523 !important; }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table :is(th, td) { border-bottom-color: #1b2738; }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table .ratio-pe { background: #0f1c31 !important; color: #6ea8ff; }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table .ratio-ps { background: #0b2127 !important; color: #2bd9a3; }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table .ratio-pb { background: #1b1819 !important; color: #ffc01e; }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table .ratio-ev_ebitda { background: #17122d !important; color: #d6a0ff; }

@media (min-width: 701px) {
  .valuation-detail-page #valuation-peers { padding: 1.75rem; }
  #valuation-peers .valuation-table-heading h2 { font-size: 1.16rem; }
  #valuation-peers .valuation-table-heading p { margin-top: .2rem; line-height: 1.75; }
  #valuation-peers .valuation-peer-tools { min-height: 40px; margin: -2.95rem 0 1.25rem; }
  #valuation-peers .valuation-search-field { width: 380px; }
  #valuation-peers .peer-table-wrap { border-radius: 14px; }
  #valuation-peers .peer-valuation-table { min-width: 1050px; table-layout: fixed; }
  #valuation-peers .peer-valuation-table th:nth-child(1) { width: 16%; }
  #valuation-peers .peer-valuation-table th:nth-child(2),
  #valuation-peers .peer-valuation-table th:nth-child(3) { width: 16.5%; }
  #valuation-peers .peer-valuation-table th:nth-child(n+4) { width: 12.75%; }
  #valuation-peers .peer-valuation-table thead th { height: 54px; padding-block: .55rem; }
  #valuation-peers .peer-valuation-table tbody :is(th, td) { height: 48px; padding: .5rem .9rem; }
  #valuation-peers .peer-valuation-table tbody tr.median-row > :is(th, td) { height: 58px; }
  #valuation-peers .peer-valuation-table tbody td:first-child,
  #valuation-peers .peer-valuation-table tbody th:first-child { padding-inline: 1.15rem; text-align: right; }
  #valuation-peers .peer-valuation-table tbody tr:not(.median-row) td:first-child .symbol-link { font-size: .76rem; font-weight: 900; }
}
.valuation-table-empty { margin: 1rem 0 0; padding: 2rem; border: 1px dashed var(--valuation-line); border-radius: 12px; color: var(--valuation-muted); text-align: center; }
.valuation-pagination { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.valuation-pagination p { margin: 0; color: var(--valuation-muted); font-size: .66rem; }
.valuation-pagination > div { display: flex; align-items: center; gap: .5rem; }
.valuation-pagination a, .valuation-pagination span { min-width: 62px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--valuation-line); border-radius: 8px; background: var(--valuation-card-soft); color: #0284c7; font-size: .65rem; font-weight: 800; text-decoration: none; }
.valuation-pagination b { color: var(--valuation-muted); font-size: .65rem; }
.valuation-pagination .disabled { color: var(--valuation-muted); opacity: .45; }
.valuation-detail-page .valuation-method { margin: 0; overflow: hidden; border: 1px solid var(--valuation-line); border-radius: 15px; background: var(--valuation-card); }
.valuation-detail-page .valuation-method > summary { min-height: 68px; padding: .85rem 1.1rem; }
.valuation-detail-page .valuation-method > summary span { color: var(--valuation-ink); }
.valuation-detail-page .valuation-method > summary small,
.valuation-detail-page .valuation-method dd,
.valuation-detail-page .valuation-method p { color: var(--valuation-muted); }

html[data-market-theme="dark"] .valuation-table-heading h2 span { background: #1e2b40; color: #b6c5d9; }
html[data-market-theme="dark"] .valuation-table-heading h2 .valuation-data-badge { border-color: rgb(6 182 212 / 24%); background: rgb(6 182 212 / 12%); color: #22d3ee; }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table .ratio-pe { background: rgb(37 99 235 / 8%); color: #60a5fa; }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table .ratio-ps { background: rgb(16 185 129 / 7%); color: #34d399; }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table .ratio-pb { background: rgb(217 119 6 / 8%); color: #fbbf24; }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table .ratio-ev_ebitda { background: rgb(124 58 237 / 9%); color: #d8b4fe; }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table tbody tr.current-period > td { background-color: rgb(6 182 212 / 8%); }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table tbody tr.current-period > .ratio-pe { background-color: rgb(37 99 235 / 15%); }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table tbody tr.current-period > .ratio-ps { background-color: rgb(16 185 129 / 13%); }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table tbody tr.current-period > .ratio-pb { background-color: rgb(217 119 6 / 13%); }
html[data-market-theme="dark"] .valuation-detail-page .valuation-table tbody tr.current-period > .ratio-ev_ebitda { background-color: rgb(124 58 237 / 14%); }
html[data-market-theme="dark"] .valuation-detail-page .peer-valuation-table .median-row > :is(th, td) { border-color: #087f78; background: #0b2b32; color: #2bd9a3; }

@media (hover: hover) and (pointer: fine) {
  .valuation-detail-page .valuation-history-table tbody tr > td,
  .valuation-detail-page .peer-valuation-table tbody tr:not(.median-row) > td { transition: box-shadow 140ms ease, color 140ms ease; }
  .valuation-detail-page .valuation-history-table tbody tr:hover > td,
  .valuation-detail-page .peer-valuation-table tbody tr:not(.median-row):hover > td { box-shadow: inset 0 0 0 999px rgb(45 212 191 / 5%); }
  .valuation-detail-page .valuation-history-table tbody tr:hover > td:first-child,
  .valuation-detail-page .peer-valuation-table tbody tr:not(.median-row):hover > td:first-child { box-shadow: inset -3px 0 #2dd4bf, inset 0 0 0 999px rgb(45 212 191 / 5%); }
}

@media (max-width: 900px) {
  .valuation-table-tools { align-items: stretch; flex-direction: column; margin: .9rem 0 1rem; }
  .valuation-order-field select, .valuation-search-field { width: 100%; }
  .valuation-peer-tools .valuation-search-field { width: 100%; }
  .valuation-order-field select { min-width: 0; }
}
@media (max-width: 700px) {
  .valuation-detail-tabs { min-height: 50px; gap: .2rem; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .valuation-detail-tabs a { min-height: 50px; flex: 0 0 auto; padding-inline: .75rem; font-size: .68rem; }
  .valuation-detail-page .valuation-panel { padding: .8rem; border-radius: 15px; }
  .valuation-table-heading h2 { font-size: .95rem; }
  .valuation-detail-page .valuation-table-wrap { overflow: visible; border: 0; background: transparent; }
  .valuation-detail-page .valuation-table, .valuation-detail-page .valuation-table tbody { min-width: 0; display: block; }
  .valuation-detail-page .valuation-table thead { display: none; }
  .valuation-detail-page .valuation-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: .75rem; overflow: hidden; border: 1px solid var(--valuation-line); border-radius: 12px; background: var(--valuation-card-soft); }
  .valuation-detail-page .valuation-table tbody td { min-width: 0; height: auto; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .7rem; border-bottom: 1px solid var(--valuation-line); white-space: normal; }
  .valuation-detail-page .valuation-table tbody td::before { color: var(--valuation-muted); content: attr(data-label); font-size: .58rem; font-weight: 700; }
  .valuation-detail-page .valuation-table tbody td:nth-child(-n+2) { background: rgb(148 163 184 / 6%); }
  .valuation-detail-page .valuation-table tbody td:nth-child(odd) { border-inline-end: 1px solid var(--valuation-line); }
  .valuation-detail-page .valuation-table tbody td:nth-last-child(-n+2) { border-bottom: 0; }
  .valuation-detail-page .peer-valuation-table tbody tr:not(.median-row) td:first-child { grid-column: 1 / -1; background: rgb(148 163 184 / 6%); }
  .valuation-detail-page .peer-valuation-table tbody tr:not(.median-row) td:nth-last-child(-n+2) { border-bottom: 0; }
  .valuation-detail-page .valuation-table td small { margin: .3rem 0 0; }
  .valuation-pagination { align-items: stretch; flex-direction: column; padding: .65rem .2rem 0; }
  .valuation-pagination p { text-align: center; }
  .valuation-pagination > div { justify-content: space-between; }
  .valuation-detail-page .peer-valuation-table .median-row > :is(th, td) { text-align: right; }
}

/* Company comparison workspace */
.compare-hero { margin: 0; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare-hero > div { min-width: 0; }
.compare-hero .analysis-chip { flex: 0 0 auto; }
.compare-filter-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compare-filter-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.compare-filter-heading h2 { margin: .15rem 0 0; color: var(--ink); font-size: 1rem; }
.compare-filter-heading > p { margin: 0; color: var(--muted); font-size: .7rem; }
.compare-filter-panel .comparison-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: .7rem; }
.compare-filter-panel label { min-width: 0; display: grid; gap: .35rem; color: var(--muted); font-size: .68rem; font-weight: 750; }
.compare-filter-panel label > small { display: inline; margin: 0 .25rem 0 0; color: #94a3b8; font-size: .58rem; font-weight: 500; }
.compare-filter-panel select { width: 100%; min-width: 0; height: 44px; border-color: var(--line); background: var(--surface-soft); color: var(--ink); }
.compare-filter-panel button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding-inline: 1rem; white-space: nowrap; }
.compare-error { margin: 1rem 0 0; border-radius: 10px; }
.compare-notice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8rem; margin-top: 1rem; padding: .85rem 1rem; border: 1px solid #bae6fd; border-radius: 12px; background: #f0f9ff; }
.compare-notice-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #7dd3fc; border-radius: 50%; color: #0284c7; font-family: serif; font-weight: 800; }
.compare-notice strong { color: #0f172a; font-size: .76rem; }
.compare-notice p { margin: .15rem 0 0; color: #526176; font-size: .68rem; line-height: 1.8; }
.compare-results { overflow: hidden; margin-top: 1rem; padding: 0; }
.compare-table-toolbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.compare-table-toolbar h2 { margin: .15rem 0 0; color: var(--ink); font-size: 1rem; }
.compare-table-toolbar > p { margin: 0; color: var(--muted); font-size: .67rem; }
.compare-table-toolbar > p strong { color: var(--ink); }
.compare-table-toolbar > p i { width: 4px; height: 4px; display: inline-block; margin-inline: .45rem; border-radius: 50%; background: #94a3b8; vertical-align: middle; }
.compare-table-wrap { max-height: none; overflow: auto; border: 0; border-radius: 0; background: var(--surface); }
.compare-results .comparison-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.compare-results .comparison-table th,
.compare-results .comparison-table td { height: 64px; padding: .7rem .85rem; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); color: #334155; font-size: .72rem; text-align: center; vertical-align: middle; }
.compare-results .comparison-table tr > :first-child { border-inline-start: 0; }
.compare-results .comparison-table thead th { height: 66px; background: #f3f6fb; color: #64748b; font-size: .68rem; font-weight: 750; }
.compare-results .comparison-table thead th:not(:first-child) { border-top: 2px solid #22c3df; }
.compare-results .comparison-table th:first-child { width: 220px; text-align: right; }
.compare-results .comparison-table tbody th { background: #f8fafc; color: #334155; font-weight: 750; }
.compare-results .comparison-table tbody td { background: #fff; }
.compare-results .comparison-table tbody tr:last-child > * { border-bottom: 0; }
.compare-results .comparison-table tbody tr:hover > :is(th, td) { background: #f1f7ff; }
.compare-results .compare-symbol { color: #0284c7; font-size: .88rem; font-weight: 900; text-decoration: none; }
.compare-results .compare-symbol:hover { text-decoration: underline; }
.compare-results .comparison-table th small { margin-top: .25rem; color: #7c8ca3; font-size: .6rem; }
.compare-results .comparison-table th small i { width: 3px; height: 3px; display: inline-block; margin-inline: .3rem; border-radius: 50%; background: #94a3b8; vertical-align: middle; }
.compare-results .comparison-table td > strong { color: #0f172a; }
.compare-results .comparison-table td > small { color: #7c8ca3; }
.compare-results .comparison-table .delta { min-width: 84px; display: inline-flex; justify-content: center; padding: .32rem .55rem; border: 1px solid transparent; border-radius: 7px; font-weight: 800; }
.compare-results .comparison-table .delta.positive { border-color: #a7f3d0; background: #ecfdf5; color: #059669; }
.compare-results .comparison-table .delta.negative { border-color: #fecdd3; background: #fff1f2; color: #e11d48; }
.compare-results .comparison-table .delta.neutral { border-color: #dce5f0; background: #f8fafc; color: #64748b; }
.compare-results .method-note { margin: 0; border-width: 1px 0 0; border-radius: 0; }
.compare-empty { margin-top: 1rem; border-color: var(--line); background: var(--surface); }

html[data-market-theme="dark"] body[data-page="public.compare"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.compare"] :is(.market-terminal, .market-terminal > main) { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.compare"] :is(.compare-hero, .compare-filter-panel, .compare-results, .compare-empty) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.compare"] :is(.compare-filter-heading h2, .compare-table-toolbar h2, .compare-table-toolbar > p strong) { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-filter-panel select { border-color: #29364a; background: #080f1c; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-filter-panel button { background: #194498; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-filter-panel button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-notice { border-color: #164e63; background: #092333; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-notice-icon { border-color: #0e7490; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-notice strong { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-notice p { color: var(--muted); }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-table-toolbar { border-color: var(--line); background: #111824; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-table-wrap { background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table :is(th, td) { border-color: var(--line); color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table thead th { background: #0b1321; color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table tbody th { background: #111b2b; color: #e2e8f0; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table tbody td { background: #0e1625; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table tbody tr:hover > :is(th, td) { background: #142033; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .compare-symbol { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table td > strong { color: #f2f6fc; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table .delta.positive { border-color: #075e52; background: #073b35; color: #34d399; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table .delta.negative { border-color: #713042; background: #351d29; color: #fb7185; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .comparison-table .delta.neutral { border-color: #29364a; background: #1c293c; color: #94a3b8; }
html[data-market-theme="dark"] body[data-page="public.compare"] .compare-results .method-note { border-color: var(--line); }

@media (max-width: 900px) {
  .compare-filter-panel .comparison-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-filter-panel button { grid-column: 1 / -1; }
  .compare-results .comparison-table th:first-child { right: 0; z-index: 2; width: 160px; min-width: 160px; max-width: 160px; box-shadow: -1px 0 var(--line); }
  .compare-results .comparison-table thead th:first-child { z-index: 3; }
  .compare-results .comparison-table.compare-columns-1 { min-width: 500px; }
  .compare-results .comparison-table.compare-columns-2 { min-width: 640px; }
  .compare-results .comparison-table.compare-columns-3 { min-width: 780px; }
}
@media (max-width: 700px) {
  .compare-hero { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .compare-filter-heading, .compare-table-toolbar { align-items: flex-start; flex-direction: column; }
  .compare-filter-panel { padding: .8rem; }
  .compare-filter-panel .comparison-filters { grid-template-columns: 1fr; }
  .compare-filter-panel button { grid-column: auto; width: 100%; }
  .compare-notice { align-items: start; }
  .compare-results { padding: 0; }
  .compare-table-toolbar { min-height: 0; padding: .8rem; }
  .compare-table-wrap { max-height: none; }
  .compare-results .comparison-table th,
  .compare-results .comparison-table td { height: 60px; padding: .65rem .7rem; font-size: .68rem; }
  .compare-results .comparison-table th:first-child { width: 138px; min-width: 138px; max-width: 138px; }
  .compare-results .method-note { padding: .8rem; }
}

/* Personal portfolio preview */
.portfolio-intro { margin: 0 0 .8rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.portfolio-intro > div { min-width: 0; }

html[data-market-theme="dark"] body[data-page="public.portfolio"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --navy: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --teal: #34d399; --teal-soft: rgb(52 211 153 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --amber: #fbbf24; --amber-soft: rgb(251 191 36 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] :is(.market-terminal, .market-terminal > main) { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-intro { border-color: var(--line); background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .mock-badge { border-color: #8a6416; background: #302713; color: #fbbf24; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] > .market-terminal main > .notice { border-color: #604b18; background: #251f12; color: #dcbf73; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] > .market-terminal main > .notice strong { color: #fcd66f; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] :is(.portfolio-builder, .portfolio-risk, .allocation-panel, .portfolio-reports, .portfolio-empty) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-builder label,
html[data-market-theme="dark"] body[data-page="public.portfolio"] :is(.portfolio-risk, .allocation-panel, .portfolio-reports) h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-input input { border-color: #29364a; background: #080f1c; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-input input::placeholder { color: #64748b; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-input button { background: #194498; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-input button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .panel-note { border-color: #29364a; background: #111b2b; color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-risk-ring { background: radial-gradient(circle at center, #0e1625 57%, transparent 59%), conic-gradient(var(--risk-color) calc(var(--risk-score) * 1%), #263247 0); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-risk-ring strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-risk-bars i { background: #263247; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-risk-bars em { background: #2f6de0; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-bar { background: #263247; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-color-1 { background: #2f6de0; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-color-2 { background: #6681aa; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-color-3 { background: #b77a1d; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-color-4 { background: #8b5cf6; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-color-5 { background: #e0526d; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .allocation-legend b { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-callout { border: 1px solid #263247; background: #111b2b; color: var(--muted); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card { border-color: #263247; border-right-color: var(--teal); background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card.medium { border-right-color: var(--amber); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card.high { border-right-color: var(--red); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card > header > span { color: #d9e3f0; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card > header strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-spark i { background: #2f6de0; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-metrics strong:not(.positive):not(.negative) { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card > a { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .holding-card:hover { border-top-color: #33445d; border-bottom-color: #33445d; border-left-color: #33445d; background: #142033; }
html[data-market-theme="dark"] body[data-page="public.portfolio"] .portfolio-reports .method-note { border-color: var(--line); color: var(--muted); }

@media (max-width: 700px) {
  .portfolio-intro { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .portfolio-intro .mock-badge { white-space: normal; }
  html[data-market-theme="dark"] body[data-page="public.portfolio"] > .market-terminal main > .notice { align-items: flex-start; flex-direction: column; }
}

/* Fundamental alerts preview */
.alerts-intro { margin: 0 0 .8rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.alerts-intro > div { min-width: 0; }

html[data-market-theme="dark"] body[data-page="public.alerts"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --navy: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --teal: #34d399; --teal-soft: rgb(52 211 153 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --amber: #fbbf24; --amber-soft: rgb(251 191 36 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.alerts"] :is(.market-terminal, .market-terminal > main) { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alerts-intro { border-color: var(--line); background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .mock-badge { border-color: #8a6416; background: #302713; color: #fbbf24; }
html[data-market-theme="dark"] body[data-page="public.alerts"] > .market-terminal main > .notice { border-color: #604b18; background: #251f12; color: #dcbf73; }
html[data-market-theme="dark"] body[data-page="public.alerts"] > .market-terminal main > .notice strong { color: #fcd66f; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-flow { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-data-health { border-color: #145c4e; background: #0b2f2a; color: #a7f3d0; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-data-health.warning { border-color: #76561e; background: #30230c; color: #f8d785; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-flow > div { border-color: var(--line); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-flow span { background: #1c293c; color: #94a3b8; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-flow .done span { background: #073b35; color: #34d399; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-flow strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.alerts"] :is(.alert-builder, .alert-examples, .active-alerts) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.alerts"] :is(.alert-builder, .alert-examples, .active-alerts) h2,
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-builder label { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-builder select { border-color: #29364a; background: #080f1c; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-builder > button { background: #194498; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-builder > button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-destination { border-color: #155e75; background: #0b2938; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-destination svg { background: #168fc5; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-destination strong { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-destination > span { background: #12364a; color: #67e8f9; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-preview { border-color: var(--line); background: #0b1321; box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-preview > header { border-bottom: 1px solid var(--line); background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-preview > header strong { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .bell-mark { background: #12364a; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .preview-ready { border: 1px solid #075e52; background: #073b35; color: #34d399; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-message { background: #0e1625; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .telegram-message h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .message-metrics span { border: 1px solid #263247; background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .message-metrics strong { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .message-link { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .preview-confirmation { border-color: #075e52; background: #073b35; color: #34d399; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .panel-note { border-color: #29364a; background: #111b2b; color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-type-list a { border-color: transparent; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-type-list a:hover { border-color: #33445d; background: #142033; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-type-list strong,
html[data-market-theme="dark"] body[data-page="public.alerts"] .active-alert-grid strong { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-type-list b { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .active-alert-grid article { border-color: #263247; background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .active-alert-grid article:hover { border-color: #33445d; background: #142033; }
html[data-market-theme="dark"] body[data-page="public.alerts"] .alert-status.paused { background: #64748b; box-shadow: 0 0 0 4px rgb(100 116 139 / 14%); }
html[data-market-theme="dark"] body[data-page="public.alerts"] .active-alerts .method-note { border-color: var(--line); color: var(--muted); }

@media (max-width: 700px) {
  .alerts-intro { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .alerts-intro .mock-badge { white-space: normal; }
  html[data-market-theme="dark"] body[data-page="public.alerts"] > .market-terminal main > .notice { align-items: flex-start; flex-direction: column; }
  .alert-flow { grid-template-columns: 1fr; }
  .alert-flow > div { border-left: 0; border-bottom: 1px solid var(--line); }
  .alert-flow > div:last-child { border-bottom: 0; }
  .alert-share-box { grid-template-columns: 1fr; }
  .alert-share-box label { grid-column: auto; }
  .alert-share-box button { min-height: 44px; }
  .sales-alert-feed { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 86%); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; padding-bottom: .4rem; }
  .sales-alert-feed a { scroll-snap-align: start; }
  .alert-evidence > div { grid-template-columns: 82px minmax(0, 1fr); }
}

/* Personal watchlist */
.watchlist-hero { margin: 0 0 1rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.watchlist-hero > div { min-width: 0; }
.watchlist-workspace { overflow: hidden; }
.watchlist-add { padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); }
.watchlist-add label { color: var(--ink); }
.watchlist-add .actions { display: flex; align-items: stretch; gap: .6rem; }
.watchlist-add select { min-width: 0; flex: 1; }
.watchlist-add button { min-height: 44px; flex: 0 0 auto; }
.watch-method { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.watchlist-loading { min-height: 90px; display: grid; place-items: center; margin: .75rem 0 0; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-soft); text-align: center; }
.watchlist-empty { margin-top: .75rem; border: 1px dashed var(--line); border-radius: 11px; background: var(--surface-soft); }
.watchlist-table { max-height: none; margin-top: .85rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.watchlist-table table { width: 100%; min-width: 940px; table-layout: fixed; }
.watchlist-table th { height: 48px; padding: .6rem .75rem; background: #f3f6fb; color: #526176; font-size: .68rem; font-weight: 750; }
.watchlist-table th:nth-child(1) { width: 13%; }
.watchlist-table th:nth-child(2) { width: 13%; }
.watchlist-table th:nth-child(3) { width: 10%; }
.watchlist-table th:nth-child(4) { width: 51%; }
.watchlist-table th:nth-child(5) { width: 13%; }
.watchlist-table td { height: auto; min-height: 82px; padding: .75rem; color: #334155; vertical-align: middle; }
.watchlist-table tbody tr:hover > td { background: #f3f8ff; }
.watchlist-table .symbol-link { color: #0284c7; font-size: .84rem; font-weight: 900; text-decoration: none; }
.watchlist-table .symbol-link:hover { text-decoration: underline; }
.watchlist-table .watch-score { min-width: 58px; display: inline-grid; place-items: center; padding: .45rem .5rem; border: 1px solid #bae6fd; border-radius: 9px; background: #f0f9ff; color: #0284c7; }
.watchlist-table .watch-factors span { min-width: 0; padding: .45rem .55rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.watchlist-table td:last-child button { min-height: 38px; padding: .35rem .65rem; border-color: #fecdd3; background: #fff1f2; color: #e11d48; font-size: .65rem; white-space: normal; }
.watchlist-table td:last-child button:hover { border-color: #fb7185; background: #ffe4e6; }
.watchlist-pagination { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.watchlist-pagination[hidden] { display: none; }
.watchlist-pagination p { margin: 0; color: var(--muted); font-size: .68rem; }
.watchlist-pagination p strong { color: var(--ink); }
.watchlist-page-controls, .watchlist-page-numbers { display: flex; align-items: center; gap: .35rem; direction: rtl; }
.watchlist-page-controls button, .watchlist-page-numbers i { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: .65rem; font-style: normal; font-weight: 750; }
.watchlist-page-controls button { cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.watchlist-page-controls button:hover:not(:disabled):not(.active) { border-color: #7dd3fc; background: #eff6ff; color: #0284c7; }
.watchlist-page-controls button.active { border-color: #0284c7; background: #0284c7; color: #fff; box-shadow: 0 6px 14px rgb(2 132 199 / 24%); }
.watchlist-page-controls button:disabled { opacity: .42; cursor: default; }
.watchlist-page-numbers i { min-width: 22px; border-color: transparent; background: transparent; color: var(--muted); }
.watchlist-next-step { margin-top: 1rem; border: 1px solid var(--line); background: var(--surface-soft); }

html[data-market-theme="dark"] body[data-page="public.watchlist"] { --bg: #080d16; --surface: #0e1625; --surface-soft: #111b2b; --ink: #f2f6fc; --navy: #f2f6fc; --muted: #91a4bf; --line: #202d40; --blue: #22d3ee; --blue-soft: rgb(34 211 238 / 10%); --teal: #34d399; --teal-soft: rgb(52 211 153 / 10%); --green: #34d399; --green-soft: rgb(52 211 153 / 10%); --red: #fb7185; --red-soft: rgb(251 113 133 / 10%); color-scheme: dark; background: var(--bg); }
html[data-market-theme="dark"] body[data-page="public.watchlist"] :is(.market-terminal, .market-terminal > main) { background: var(--bg); color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.watchlist"] :is(.watchlist-hero, .watchlist-workspace) { border-color: var(--line); background: var(--surface); box-shadow: none; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .analysis-chip { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-add { border-color: var(--line); background: #0b1321; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-add label { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-add select { border-color: #29364a; background: #080f1c; color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-add button { background: #194498; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-add button:hover { background: #22d3ee; color: #07111f; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watch-method { border-color: #263247; background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watch-method summary { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] :is(.watchlist-loading, .watchlist-empty) { border-color: #29364a; background: #0b1321; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table { border-color: var(--line); background: var(--surface); }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table th { border-color: var(--line); background: #0b1321; color: #91a4bf; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table td { border-color: var(--line); background: #0e1625; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table tbody tr:nth-child(even) td { background: #0d1523; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table tbody tr:hover > td { background: #142033; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table .symbol-link { color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table .watch-score { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table .watch-factors span { border-color: #263247; background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table .watch-factors b { color: #e5edf8; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table td:last-child button { border-color: #713042; background: #351d29; color: #fb7185; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-table td:last-child button:hover { border-color: #9f3f59; background: #472131; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-pagination { border-color: var(--line); background: #111824; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-page-controls button { border-color: #263247; background: #101725; color: #cbd5e1; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-page-controls button:hover:not(:disabled):not(.active) { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-page-controls button.active { border-color: #0891b2; background: #0284c7; color: #fff; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-next-step { border-color: var(--line); background: #111b2b; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-next-step h2 { color: var(--ink); }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .watchlist-next-step .button { border-color: #155e75; background: #0b2938; color: #22d3ee; }
html[data-market-theme="dark"] body[data-page="public.watchlist"] .interaction-status {
  border: 1px solid #155e75;
  background: #0b2938;
  color: #e5edf8;
  box-shadow: 0 12px 30px rgb(0 0 0 / 32%);
}

@media (max-width: 700px) {
  .watchlist-hero { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .watchlist-add .actions { flex-direction: column; }
  .watchlist-add select, .watchlist-add button { width: 100%; }
  .watchlist-table { overflow: visible; border: 0; background: transparent; }
  .watchlist-table table, .watchlist-table tbody { min-width: 0; display: block; }
  .watchlist-table thead { display: none; }
  .watchlist-table tbody { display: grid; gap: .75rem; }
  .watchlist-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .watchlist-table td { min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .7rem; border: 0; border-bottom: 1px solid var(--line); background: transparent !important; white-space: normal; text-align: left; }
  .watchlist-table td::before { flex: 0 0 auto; color: var(--muted); content: attr(data-label); font-size: .6rem; font-weight: 650; text-align: right; }
  .watchlist-table td:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; text-align: right; }
  .watchlist-table td:first-child::before { grid-column: 1 / -1; }
  .watchlist-table td:nth-child(2) { border-inline-start: 1px solid var(--line); }
  .watchlist-table td:nth-child(4), .watchlist-table td:nth-child(5) { grid-column: 1 / -1; }
  .watchlist-table td:nth-child(4) { width: 100%; display: flex; align-items: stretch; flex-direction: column; }
  .watchlist-table td:nth-child(4)::before { margin-bottom: .25rem; }
  .watchlist-table td:last-child { border-bottom: 0; }
  .watchlist-table .watch-factors { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .watchlist-table .watch-factors span { width: 100%; text-align: right; }
  .watchlist-table td:last-child button { width: 100%; }
  .watchlist-pagination { align-items: stretch; flex-direction: column; }
  .watchlist-pagination p { text-align: center; }
  .watchlist-page-controls { width: 100%; justify-content: space-between; }
  .watchlist-page-numbers { min-width: 0; overflow-x: auto; }
  .watchlist-page-next, .watchlist-page-prev { flex: 0 0 auto; }
  .watchlist-next-step { align-items: stretch; flex-direction: column; gap: 1rem; }
  .watchlist-next-step .button { justify-content: center; }
}

/* Light-theme title areas share the Smart Codal calendar palette. */
html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading,
html[data-market-theme="light"] .valuation-index-entry,
html[data-market-theme="light"] .valuation-detail-hero,
html[data-market-theme="light"] .financial-archive .financial-hero {
  border-color: #263f65;
  background: radial-gradient(circle at 8% 8%, rgb(69 119 192 / 30%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%);
  color: #fff;
}

html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading :is(h1, .terminal-freshness strong),
html[data-market-theme="light"] .valuation-index-intro h1,
html[data-market-theme="light"] .valuation-title-line h1,
html[data-market-theme="light"] .financial-archive .financial-hero h1,
html[data-market-theme="light"] .financial-archive .financial-hero-stats dd {
  color: #fff;
}

html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading :is(p, .terminal-freshness),
html[data-market-theme="light"] .valuation-index-intro > p,
html[data-market-theme="light"] .valuation-detail-hero .valuation-identity p,
html[data-market-theme="light"] .financial-archive .financial-hero p:last-child,
html[data-market-theme="light"] .financial-archive .financial-hero-stats :is(dt, small) {
  color: #bac8dc;
}

html[data-market-theme="light"] .valuation-index-picker label,
html[data-market-theme="light"] .valuation-detail-hero .valuation-identity p strong {
  color: #dbe7f7;
}

html[data-market-theme="light"] .valuation-symbol-input {
  border-color: rgb(167 191 225 / 22%);
  background: rgb(7 13 32 / 82%);
}
html[data-market-theme="light"] .valuation-symbol-input input { color: #fff; }
html[data-market-theme="light"] .valuation-symbol-input input::placeholder { color: #91a4bf; }
html[data-market-theme="light"] .valuation-symbol-trigger { color: #a8bdd8; }
html[data-market-theme="light"] .valuation-quick-links { color: #91a4bf; }
html[data-market-theme="light"] .valuation-quick-links a {
  border-color: rgb(167 191 225 / 20%);
  background: rgb(255 255 255 / 8%);
  color: #dbe7f7;
}
html[data-market-theme="light"] .valuation-index-ratios {
  border-color: rgb(167 191 225 / 18%) !important;
  background: rgb(255 255 255 / 5%) !important;
}
html[data-market-theme="light"] .valuation-index-ratios span {
  border-color: rgb(167 191 225 / 14%) !important;
  background: rgb(7 13 32 / 62%);
}
html[data-market-theme="light"] .valuation-index-ratios bdi { color: #d8e5f7 !important; }
html[data-market-theme="light"] .valuation-index-ratios small { color: #aebed3 !important; }

html[data-market-theme="light"] .valuation-title-line > span {
  border-color: rgb(130 224 196 / 28%);
  background: rgb(130 224 196 / 10%);
  color: #82e0c4;
}
html[data-market-theme="light"] .valuation-detail-hero .valuation-identity p b {
  background: rgb(255 255 255 / 9%);
  color: #bac8dc;
}

html[data-market-theme="light"] .financial-verified { color: #82e0c4; }
html[data-market-theme="light"] .financial-verified span { background: rgb(130 224 196 / 12%); }
html[data-market-theme="light"] .financial-verified i { background: #91a4bf; }
html[data-market-theme="light"] .financial-archive .financial-hero-stats div {
  border-color: rgb(167 191 225 / 20%);
  background: rgb(255 255 255 / 8%);
}
html[data-market-theme="light"] .financial-archive .financial-hero-stats dt span,
html[data-market-theme="light"] .financial-archive .financial-hero-stats .financial-sync-time {
  color: #82e0c4;
}

html[data-market-theme="light"] body[data-page="public.compare"] .compare-hero,
html[data-market-theme="light"] body[data-page="public.portfolio"] .portfolio-intro,
html[data-market-theme="light"] body[data-page="public.alerts"] .alerts-intro,
html[data-market-theme="light"] body[data-page="public.watchlist"] .watchlist-hero {
  border-color: #263f65;
  background: radial-gradient(circle at 8% 8%, rgb(69 119 192 / 30%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%);
  color: #fff;
}

html[data-market-theme="light"] body[data-page="public.compare"] .compare-hero h1,
html[data-market-theme="light"] body[data-page="public.portfolio"] .portfolio-intro h1,
html[data-market-theme="light"] body[data-page="public.alerts"] .alerts-intro h1,
html[data-market-theme="light"] body[data-page="public.watchlist"] .watchlist-hero h1 {
  color: #fff;
}

html[data-market-theme="light"] body[data-page="public.compare"] .compare-hero .muted,
html[data-market-theme="light"] body[data-page="public.portfolio"] .portfolio-intro .muted,
html[data-market-theme="light"] body[data-page="public.alerts"] .alerts-intro .muted,
html[data-market-theme="light"] body[data-page="public.watchlist"] .watchlist-hero .muted {
  color: #bac8dc;
}

html[data-market-theme="light"] body[data-page="public.compare"] .compare-hero .eyebrow,
html[data-market-theme="light"] body[data-page="public.portfolio"] .portfolio-intro .eyebrow,
html[data-market-theme="light"] body[data-page="public.alerts"] .alerts-intro .eyebrow,
html[data-market-theme="light"] body[data-page="public.watchlist"] .watchlist-hero .eyebrow {
  color: #82e0c4;
}

html[data-market-theme="light"] body[data-page="public.compare"] .compare-hero .analysis-chip,
html[data-market-theme="light"] body[data-page="public.portfolio"] .portfolio-intro .mock-badge,
html[data-market-theme="light"] body[data-page="public.alerts"] .alerts-intro .mock-badge,
html[data-market-theme="light"] body[data-page="public.watchlist"] .watchlist-hero .analysis-chip {
  border-color: rgb(130 224 196 / 28%);
  background: rgb(130 224 196 / 10%);
  color: #82e0c4;
}

html[data-market-theme="light"] body[data-page="public.screening"] .screening-hero {
  border-color: #263f65;
  background: radial-gradient(circle at 8% 8%, rgb(69 119 192 / 30%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%);
  color: #fff;
}
html[data-market-theme="light"] body[data-page="public.screening"] .screening-hero h1 { color: #fff; }
html[data-market-theme="light"] body[data-page="public.screening"] .screening-hero .muted { color: #bac8dc; }
html[data-market-theme="light"] body[data-page="public.screening"] .screening-hero .eyebrow { color: #82e0c4; }
html[data-market-theme="light"] body[data-page="public.screening"] .screening-hero .button.secondary {
  border-color: rgb(167 191 225 / 28%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}
html[data-market-theme="light"] body[data-page="public.screening"] .screening-hero .button.secondary:hover {
  border-color: rgb(130 224 196 / 42%);
  background: rgb(255 255 255 / 13%);
  color: #82e0c4;
}

html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading {
  min-height: 96px;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #263f65;
  border-radius: 14px;
}
html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading h1 {
  font-size: 1.12rem;
  line-height: 1.55;
}
html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading p {
  margin-top: .25rem;
  font-size: .72rem;
  line-height: 1.7;
}
html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading .terminal-freshness {
  min-height: 48px;
  padding: .55rem .75rem;
  border: 1px solid rgb(167 191 225 / 20%);
  border-radius: 9px;
  background: rgb(255 255 255 / 8%);
}

html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading {
  min-height: 96px;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #202d40;
  border-radius: 14px;
  background: radial-gradient(circle at 8% 8%, rgb(54 204 228 / 10%), transparent 34%), linear-gradient(145deg, #121b2b, #0d1421 74%);
}
html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading h1 {
  font-size: 1.12rem;
  line-height: 1.55;
}
html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading p {
  margin-top: .25rem;
  font-size: .72rem;
  line-height: 1.7;
}
html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading .terminal-freshness {
  min-height: 48px;
  padding: .55rem .75rem;
  border: 1px solid rgb(167 191 225 / 14%);
  border-radius: 9px;
  background: rgb(255 255 255 / 5%);
}

@media (max-width: 700px) {
  html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading {
    min-height: 84px;
    margin-bottom: .75rem;
    padding: .8rem;
    border-radius: 12px;
  }
  html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading h1 { font-size: .88rem; }
  html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading p { font-size: .62rem; }
  html[data-market-theme="light"] body[data-page="public.home"] #market-context > .terminal-section-heading .terminal-freshness {
    min-height: 42px;
    padding: .4rem .55rem;
  }
  html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading {
    min-height: 84px;
    margin-bottom: .75rem;
    padding: .8rem;
    border-radius: 12px;
  }
  html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading h1 { font-size: .88rem; }
  html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading p { font-size: .62rem; }
  html[data-market-theme="dark"] body[data-page="public.home"] #market-context > .terminal-section-heading .terminal-freshness {
    min-height: 42px;
    padding: .4rem .55rem;
  }
}

/* Parsed disclosure detail */
.report-detail-main .report-intro {
  min-height: 150px;
  margin: 0 0 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid #263f65;
  border-radius: 16px;
}
.report-detail-main .report-intro h1 { margin: .3rem 0 .7rem; color: #fff; line-height: 1.75; }
.report-detail-main .report-intro .eyebrow { color: #82e0c4; }
.report-detail-main .report-intro .meta { color: #bac8dc; }
.report-detail-main .report-intro .meta :is(span, strong) {
  border: 1px solid rgb(167 191 225 / 18%);
  background: rgb(255 255 255 / 8%);
  color: #dbe7f7;
}
.report-detail-main .report-intro .meta strong {
  border-color: rgb(251 191 36 / 28%);
  background: rgb(251 191 36 / 10%);
  color: #fcd66f;
}

html[data-market-theme="light"] .report-detail-main .report-intro {
  background: radial-gradient(circle at 8% 8%, rgb(69 119 192 / 30%), transparent 34%), linear-gradient(145deg, #142a4b, #0d182b 74%);
}

html[data-market-theme="dark"] .market-terminal > main.report-detail-main {
  background: #080d16;
  color: #f2f6fc;
}
html[data-market-theme="dark"] .report-detail-main .crumb { color: #91a4bf; }
html[data-market-theme="dark"] .report-detail-main .crumb a { color: #22d3ee; }
html[data-market-theme="dark"] .report-detail-main .report-intro {
  border-color: #202d40;
  background: radial-gradient(circle at 8% 8%, rgb(54 204 228 / 10%), transparent 34%), linear-gradient(145deg, #121b2b, #0d1421 74%);
}
html[data-market-theme="dark"] .report-detail-main > .notice {
  border-color: #604b18;
  background: #251f12;
  color: #dcbf73;
}
html[data-market-theme="dark"] .report-detail-main > .notice strong { color: #fcd66f; }
html[data-market-theme="dark"] .report-detail-main > .actions .button.secondary {
  border-color: #29364a;
  background: #111b2b;
  color: #7dd3fc;
}
html[data-market-theme="dark"] .report-detail-main > .actions .button.secondary:hover {
  border-color: #155e75;
  background: #0b2938;
  color: #22d3ee;
}
html[data-market-theme="dark"] .report-detail-main .report-chart-card {
  border-color: #202d40;
  background: #0e1625;
  box-shadow: none;
}
html[data-market-theme="dark"] .report-detail-main :is(.chart-heading h2, .report-chart-row > strong, .report-bar-line > b, section > h2) {
  color: #f2f6fc;
}
html[data-market-theme="dark"] .report-detail-main :is(.chart-heading .muted, .report-chart-legend, .report-bar-line > span, .chart-limit-note) {
  color: #91a4bf;
}
html[data-market-theme="dark"] .report-detail-main .report-bar-track { background: #1e2b40; }
html[data-market-theme="dark"] .report-detail-main .report-chart-legend .secondary,
html[data-market-theme="dark"] .report-detail-main .report-bar-track .secondary { background: #64748b; }
html[data-market-theme="dark"] .report-detail-main .table-wrap {
  border-color: #202d40;
  background: #0e1625;
}
html[data-market-theme="dark"] .report-detail-main .table-controls :is(input, select) {
  border-color: #29364a;
  background: #111b2b;
  color: #e5edf8;
}
html[data-market-theme="dark"] .report-detail-main .table-controls input::placeholder { color: #91a4bf; }
html[data-market-theme="dark"] .report-detail-main table :is(th, td) { border-bottom-color: #202d40; }
html[data-market-theme="dark"] .report-detail-main table th {
  background: #111b2b;
  color: #91a4bf;
}
html[data-market-theme="dark"] .report-detail-main table td {
  background: #0e1625;
  color: #cbd5e1;
}
html[data-market-theme="dark"] .report-detail-main table tbody tr:is(:hover, :focus-within) td { background: #142238; }
html[data-market-theme="dark"] .report-detail-main :is(.summary, .empty, .error) {
  border-color: #202d40;
  background: #0e1625;
}
html[data-market-theme="dark"] .report-detail-main .summary { color: #cbd5e1; }
html[data-market-theme="dark"] .report-detail-main .summary strong { color: #34d399; }
html[data-market-theme="dark"] .report-detail-main .empty { color: #91a4bf; }
html[data-market-theme="dark"] .report-detail-main .error { color: #fb7185; }

@media (max-width: 700px) {
  .report-detail-main .report-intro {
    min-height: 0;
    padding: 1rem;
    border-radius: 13px;
  }
  .report-detail-main .report-intro h1 { font-size: 1.25rem; }
  .report-detail-main .report-intro .meta { gap: .4rem; }
  .report-detail-main .report-intro .meta :is(span, strong) { width: fit-content; }
  .report-detail-main .report-bar-line { grid-template-columns: 68px minmax(70px, 1fr) 82px; }
}

.symbol-nav { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.symbol-nav > a, .symbol-nav > button { flex: 0 0 auto; }
.symbol-nav > .symbol-watch { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; }
.symbol-watch small { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.search-clear { min-height: 36px; margin-inline-start: .35rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
.market-search .search-clear { position: absolute; z-index: 1; left: 4.8rem; top: 50%; transform: translateY(-50%); margin: 0; }
.mobile-market-search form div { grid-template-columns: 1fr auto auto; }
.mobile-market-search .search-suggestions { position: static; grid-column: 1 / -1; margin-top: .4rem; }
.symbol-nav > a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.symbol-more { margin: .8rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.symbol-more summary { cursor: pointer; font-weight: 700; }
.symbol-more dl { display: grid; gap: .35rem; margin: .8rem 0; }
.symbol-more div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem; }
.symbol-more dt { color: var(--muted); }
.symbol-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.symbol-glance a { color: var(--blue); font-weight: 700; }
.symbol-map { margin: 1rem 0 2rem; }
.symbol-map div { display: flex; flex-wrap: wrap; gap: .35rem; }
.symbol-map a { padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); text-decoration: none; font-size: .75rem; }
.symbol-group { margin: 1.2rem 0; }
.symbol-group h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.symbol-slot { scroll-margin-top: 6.5rem; }
.symbol-pending { display: grid; gap: .45rem; margin: .7rem 0; padding: 1rem; border: 1px dashed var(--line); border-radius: 12px; background: white; }
.symbol-pending h3 { margin: 0; font-size: .95rem; }
.symbol-pending p { margin: 0; color: var(--muted); }
.symbol-pending-status { color: var(--navy); font-weight: 750; }
.symbol-pending button:disabled { cursor: not-allowed; opacity: .65; }
.symbol-subnav, .symbol-jump-select { max-width: 100%; }
.symbol-jump-select { display: grid; gap: .35rem; margin: .8rem 0; font-size: .8rem; }
.symbol-jump-select select { width: min(100%, 24rem); }
@media (max-width: 900px) {
  .symbol-glance { grid-template-columns: 1fr; }
  .symbol-more div { grid-template-columns: 1fr; }
}
.symbol-sample { margin: 1rem 0; padding: 1rem; border: 1px solid #b45309; border-radius: 12px; background: var(--surface); color: var(--ink); }
.symbol-sample-banner { display: inline-block; margin: 0 0 .4rem; padding: .15rem .55rem; border-radius: 999px; background: #b45309; color: white; font-weight: 750; }
.symbol-sample-cases { display: flex; gap: .35rem; overflow-x: auto; margin: .6rem 0; }
.symbol-sample-cases a { flex: 0 0 auto; padding: .4rem .7rem; border: 1px solid #b45309; border-radius: 8px; background: transparent; color: var(--ink); text-decoration: none; }
.symbol-sample-cases a[aria-current="true"] { background: #b45309; color: white; }
.symbol-sample-lines { display: grid; gap: 0; margin: 0; }
.symbol-sample-lines div { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: .25rem .75rem; align-items: start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.symbol-sample-lines dt { color: var(--muted); font-weight: 750; }
.symbol-sample-lines dd { margin: 0; color: var(--ink); line-height: 1.7; }
.symbol-sample-lines small { display: block; margin-top: .15rem; color: var(--muted); }
.symbol-sample :is(th, td) { color: var(--ink); }
.symbol-sample-table { width: max-content; min-width: 100%; }
.symbol-chart-tool { display: grid; gap: .7rem; margin-top: 1rem; }
.symbol-chart-controls { display: flex; flex-wrap: wrap; gap: .55rem .7rem; align-items: end; }
.symbol-chart-controls label:has(select) { display: grid; gap: .2rem; min-width: 9rem; color: var(--muted); font-size: .75rem; }
.symbol-chart-controls label:has(input) { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; color: var(--ink); }
.symbol-chart-controls select, .symbol-chart-controls button { min-height: 36px; border: 1px solid #b45309; border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.symbol-chart-controls button[aria-pressed="true"] { background: #b45309; color: white; }
.pe-chart-svg { width: 100%; height: 280px; background: #f8fafc; border-radius: 10px; }
.pe-chart-svg polyline { fill: none; stroke: #1d4ed8; stroke-width: 3; }
.pe-chart-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0; }
.pe-chart-cards div { display: grid; gap: .15rem; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; }
.pe-chart-cards dt { color: var(--muted); font-size: .72rem; }
.pe-chart-cards dd { margin: 0; color: var(--ink); font-weight: 750; }
@media (max-width: 700px) { .pe-chart-cards { grid-template-columns: 1fr 1fr; } }
.symbol-sample, .symbol-chart-tool, .symbol-chart-controls, .symbol-chart-frame, .table-scroll { max-width: 100%; min-width: 0; }
.symbol-chart-frame { width: 100%; min-height: 280px; overflow: hidden; padding: .35rem; border-radius: 10px; background: #f8fafc; }
.table-scroll { overflow-x: auto; }
.symbol-chart-tip { padding: .45rem .6rem; border: 1px solid #b45309; border-radius: 8px; background: white; color: #7c2d12; }
@media (max-width: 700px) {
  .symbol-sample-lines div { grid-template-columns: 1fr; }
}
html[data-market-theme="dark"] body[data-page="public.company"] :is(.symbol-more, .symbol-pending, .symbol-map a),
html[data-market-theme="dark"] body[data-page="public.valuation"] :is(.symbol-more, .symbol-pending, .symbol-map a, .symbol-nav) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.view-chart { margin: 1rem 0; padding: .9rem 1rem 1rem; border: 1px solid #2a3142; border-radius: 12px; background: #171c27; color: #e8eef8; }
.view-chart-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.view-chart h2 { margin: 0; font-size: 1rem; font-weight: 650; }
.view-chart-note { margin: .35rem 0 .7rem; color: #91a0b5; font-size: .85rem; }
.view-sample { display: inline-block; margin: 0 0 .45rem; padding: .1rem .5rem; border-radius: 999px; background: #b45309; color: white; font-size: .78rem; }
.view-chart-body { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; gap: .8rem; align-items: start; }
.view-chart-body-single { grid-template-columns: 1fr; }
.view-plot { position: relative; height: 320px; min-width: 0; }
.view-plot-short { height: 220px; }
.view-volume-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(180px, .7fr); gap: .6rem; }
.view-side { display: flex; flex-direction: column; gap: .55rem; color: #d5deea; font-size: .85rem; }
.view-side label { display: flex; gap: .4rem; align-items: center; }
.view-segment { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: #10151e; }
.view-segment-stack { flex-direction: column; }
.view-segment button { border: 0; border-radius: 6px; background: transparent; color: #d5deea; padding: .35rem .65rem; cursor: pointer; }
.view-segment button[aria-pressed="true"] { background: #2563eb; color: white; }
.view-table { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .88rem; }
.view-table th, .view-table td { padding: .35rem .4rem; border-bottom: 1px solid #2a3142; text-align: right; }
.view-table th { color: #91a0b5; font-weight: 550; }
.view-flow-summary { margin: 0 0 .5rem; color: #d5deea; font-size: .85rem; }
.view-board { margin: 1rem 0; padding: .8rem; border: 1px solid #2a3142; border-radius: 14px; background: #141923; }
.view-board > .view-segment { margin-bottom: .7rem; }
.view-board .view-chart { margin: 0; border: 0; background: transparent; }
.view-board .view-chart + .view-chart { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #2a3142; }

/* Full-width valuation workspace, with one consistent spacing rhythm. */
body.terminal-layout .market-terminal > main.valuation-wide-main {
  max-width: none;
  padding: 20px 24px 28px;
}
.valuation-wide-main .valuation-detail-page { gap: 14px; min-width: 0; }
.valuation-wide-main .valuation-detail-hero { min-height: 100px; padding: 18px 24px; gap: 20px; }
.valuation-wide-main .valuation-detail-hero .company-mark { width: 56px; height: 56px; font-size: 1.8rem; border-radius: 14px; }
.valuation-wide-main .valuation-title-line h1 { font-size: 24px; }
.valuation-wide-main .valuation-detail-hero .valuation-actions { width: auto; }
.valuation-wide-main .symbol-nav { min-height: 48px; margin: 0; }
.valuation-wide-main .valuation-panel,
.valuation-wide-main .valuation-detail-tabs,
.valuation-wide-main .valuation-method { margin-block: 0; }
@media (max-width: 1050px) {
  .valuation-wide-main .valuation-detail-hero { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  body.terminal-layout .market-terminal > main.valuation-wide-main { padding: 14px 12px 20px; }
  .valuation-wide-main .valuation-detail-page { gap: 12px; }
  .valuation-wide-main .valuation-detail-hero { min-height: 0; padding: 16px; gap: 14px; }
  .valuation-wide-main .valuation-title-line h1 { font-size: 20px; }
  .valuation-wide-main .valuation-detail-hero .valuation-actions { width: 100%; }
}
.view-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr); gap: .8rem; align-items: center; }
@media (max-width: 800px) {
  .view-chart-body, .view-volume-grid, .view-split { grid-template-columns: 1fr; }
  .view-plot, .view-plot-short { height: 260px; }
}
/* One wide symbol workspace; sections share identity and navigation. */
body.terminal-layout .market-terminal > main.symbol-workspace-main:has(.symbol-analysis-shell) { padding: 0; background: #080c13; }
.symbol-analysis-shell :is(.panel, .valuation-method) { background: #0e1520; border-color: #202b3b; color: #e8eef8; }
.symbol-analysis-shell .valuation-method summary small { color: #8294ae; }
body.terminal-layout .market-terminal > main.symbol-workspace-main { max-width: none; padding: 20px 24px 28px; }
.symbol-workspace, .symbol-directory { display: grid; gap: 16px; min-width: 0; }
.symbol-workspace .symbol-hero { margin: 0; padding: 18px 24px; min-height: 100px; }
.symbol-workspace .symbol-hero h1 { font-size: 26px; }
.symbol-workspace-tabs { margin: 0; padding: 6px; gap: 6px; border: 1px solid var(--line, #222b3b); border-radius: 14px; }
.symbol-workspace-tabs a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; border-radius: 9px; }
.symbol-workspace-tabs a[aria-current="page"] { background: #1c2b43; color: #83b1ff; box-shadow: inset 0 0 0 1px #34507b; }
.symbol-overview { display: grid; gap: 18px; }
.symbol-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.symbol-overview-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.symbol-overview-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line, #222b3b); border-radius: 16px; background: var(--surface, #101722); }
.symbol-overview-card strong { font-size: clamp(20px, 1.7vw, 30px); color: var(--ink, #e8edf6); }
.symbol-overview-card small { color: var(--muted, #94a3b8); }
.symbol-overview-card b { margin-top: auto; padding-top: 8px; font-size: 13px; color: #83b1ff; }
.symbol-directory-search { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line, #222b3b); border-radius: 14px; }
.symbol-directory-search > div { display: flex; align-items: center; gap: 12px; }
.symbol-directory-search input { flex: 1; min-width: 0; }
.symbol-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.symbol-directory-card { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line, #222b3b); border-radius: 14px; background: var(--surface, #101722); }
.symbol-directory-card > div { display: grid; gap: 6px; min-width: 0; }
.symbol-directory-card strong { font-size: 20px; }
.symbol-directory-card small { color: var(--muted, #94a3b8); }
.symbol-directory-card b { margin-inline-start: auto; }
.symbol-directory-card:hover, .symbol-overview-card:hover { border-color: #42618b; }
@media (max-width: 1100px) { .symbol-overview-grid, .symbol-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  body.terminal-layout .market-terminal > main.symbol-workspace-main { padding: 14px 12px 20px; }
  .symbol-workspace .symbol-hero { padding: 16px; }
  .symbol-workspace-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .symbol-workspace-tabs > * { flex-shrink: 0; }
  .symbol-overview-grid, .symbol-directory-grid { grid-template-columns: 1fr; }
  .symbol-overview-card, .symbol-directory-card { padding: 18px; }
  .symbol-directory-search > div { flex-wrap: wrap; }
}
