:root {
  --ink: #1d2230; --muted: #6f7687; --line: rgba(120, 128, 160, .18);
  --glass: rgba(255, 255, 255, .58); --glass-strong: rgba(255, 255, 255, .82);
  --accent: #6c63d9; --accent-soft: #ebe9fb; --green: #1f8a4c; --green-bg: #dff3e6; --red: #c0392b; --red-bg: #fbe3e0;
  --amber: #9a6b00; --amber-bg: #fdf0cc; --grey-bg: #eceef4;
  --shadow: 0 10px 30px rgba(60, 60, 110, .10), 0 1px 0 rgba(255, 255, 255, .7) inset;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; color: var(--ink); font-size: 14px; line-height: 1.45;
  background: #e9eaef; min-height: 100vh; padding: 22px;
}
a { color: inherit; text-decoration: none; }
h1 { font-size: 34px; font-weight: 500; margin: 6px 0 18px; letter-spacing: -.5px; }
h2 { font-size: 19px; font-weight: 500; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.shell {
  max-width: 1500px; margin: 0 auto; min-height: calc(100vh - 44px); display: grid; grid-template-columns: 210px 1fr; gap: 22px;
  padding: 22px; border-radius: 34px;
  background:
    radial-gradient(900px 600px at 100% 100%, rgba(203, 178, 226, .75), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(240, 226, 196, .7), transparent 60%),
    linear-gradient(160deg, #cfd9e6 0%, #d5dbe8 45%, #dcd6ea 100%);
  box-shadow: 0 30px 60px rgba(70, 70, 120, .18);
}
.glass { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .75); border-radius: 22px; box-shadow: var(--shadow); }
.card { padding: 18px 20px; }

/* sidebar */
.side { display: flex; flex-direction: column; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 6px 10px 22px; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(160deg, #8f86e8 0 50%, #9fb8b0 50% 100%); box-shadow: var(--shadow); }
nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; color: var(--ink2); margin-bottom: 4px; font-size: 13.5px; }
nav a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
nav a:hover { background: rgba(255, 255, 255, .4); }
nav a.on { background: var(--glass-strong); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.side-foot { margin-top: auto; padding: 10px; }
.side-foot p { font-size: 11px; color: var(--muted); margin: 10px 2px 0; }

/* buttons, inputs */
.btn { border: 0; border-radius: 14px; padding: 9px 16px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: var(--glass-strong); color: var(--ink); width: 100%; box-shadow: var(--shadow); }
input, select { font: inherit; color: inherit; border: 1px solid rgba(255, 255, 255, .8); background: var(--glass-strong); border-radius: 14px; padding: 9px 13px; outline: none; }
input:focus, select:focus { border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.filters input[type=number] { width: 90px; }

/* layout pieces */
.home { display: grid; grid-template-columns: 1fr 310px; gap: 22px; }
.hero { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(120deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45)); }
.hero small { color: var(--muted); }
.hero .big { font-size: 24px; font-weight: 500; max-width: 560px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: rgba(60, 60, 90, .55); color: #fff; border-radius: 12px; padding: 7px 12px; font-size: 12px; }
.actions { display: flex; gap: 22px; margin: 20px 4px; flex-wrap: wrap; }
.action { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink2); }
.action span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); box-shadow: var(--shadow); font-size: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item b { font-weight: 600; }
.row-item small, .sub { color: var(--muted); font-size: 12px; }
.right { padding: 18px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.tile { background: var(--glass-strong); border-radius: 14px; padding: 12px 6px; text-align: center; font-size: 11px; color: var(--ink2); box-shadow: var(--shadow); cursor: pointer; }
.tile b { display: block; font-size: 15px; color: var(--ink); }
.search { position: relative; }
.search input { width: 100%; }
.suggest { position: absolute; left: 0; right: 0; top: 44px; z-index: 5; max-height: 300px; overflow: auto; padding: 6px; }
.suggest a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; }
.suggest a:hover, .suggest a.sel { background: var(--accent-soft); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--glass-strong); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-size: 11.5px; display: block; }
.stat b { font-size: 20px; font-weight: 600; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* tables */
.tablewrap { overflow: auto; border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: rgba(245, 245, 251, .95); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.link { cursor: pointer; }
tr.link:hover td { background: rgba(255, 255, 255, .55); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--grey-bg); color: var(--ink2); }
.badge.buy, .badge.high, .badge.hit { background: var(--green-bg); color: var(--green); }
.badge.sell, .badge.low, .badge.stop { background: var(--red-bg); color: var(--red); }
.badge.medium, .badge.exp { background: var(--amber-bg); color: var(--amber); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; background: var(--glass-strong); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); }
.seg button { border: 0; background: none; font: inherit; padding: 5px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--accent); color: #fff; }
canvas { width: 100%; height: 380px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.loading { padding: 40px; color: var(--muted); }
.tip { position: fixed; z-index: 20; background: rgba(30, 32, 48, .92); color: #fff; padding: 7px 10px; border-radius: 10px; font-size: 12px; pointer-events: none; }
.modal { position: fixed; inset: 0; background: rgba(40, 40, 70, .35); display: grid; place-items: center; z-index: 30; }
.modal[hidden] { display: none; }
.modal-card { padding: 24px; max-width: 380px; background: rgba(255, 255, 255, .92); }
.prose { max-width: 760px; } .prose li { margin-bottom: 6px; }

@media (max-width: 1100px) { .home, .two { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  body { padding: 0; } .shell { grid-template-columns: 1fr; border-radius: 0; padding: 14px; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; } nav { display: flex; flex-wrap: wrap; } .side-foot { display: none; }
  h1 { font-size: 26px; }
}

main { min-width: 0; }
.home > div { min-width: 0; }

/* business profile */
.biz-tag { font-size: 11.5px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.biz-one { font-size: 21px; font-weight: 500; margin: 6px 0 10px; max-width: 820px; }
.biz-plain { margin: 0 0 16px; padding-left: 18px; max-width: 860px; color: var(--ink2); } .biz-plain li { margin-bottom: 5px; }
.flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.flow-step { flex: 1 1 170px; background: var(--glass-strong); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.flow-step b { display: block; margin-bottom: 4px; } .flow-step span { font-size: 12.5px; color: var(--ink2); }
.arrow { align-self: center; color: var(--accent); font-size: 20px; }
.biz-note { background: var(--accent-soft); border-radius: 14px; padding: 10px 14px; margin: 12px 0 0; font-size: 13px; }
.sharebar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--grey-bg); margin: 4px 0; } .sharebar span { display: block; }
.seg-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.seg-row i { width: 11px; height: 11px; border-radius: 3px; margin-top: 5px; flex: none; } .seg-row > div:nth-child(2) { flex: 1; }
.seg-num { text-align: right; white-space: nowrap; }
.geo-row { display: grid; grid-template-columns: 150px 1fr 64px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.geo-row b { text-align: right; font-variant-numeric: tabular-nums; } .geo-bar { background: var(--grey-bg); border-radius: 6px; height: 10px; }
.geo-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8f86e8, #6c63d9); }

/* broker colours, chart tools, performance */
.bdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.chart-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-layers { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink2); margin: 4px 0 10px; }
.chart-layers label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.chart-layers input { margin: 0; accent-color: var(--accent); }
.tgroups { display: grid; gap: 6px; margin: 4px 0 10px; font-size: 12.5px; color: var(--ink2); }
.tgroups > div { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tgroups b { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); min-width: 108px; }
.tgroups label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.tgroups input { margin: 0; accent-color: var(--accent); }
.tgroups .ln.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; color: #64748b; }
.tlower-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.seg-sm { flex-wrap: wrap; } .seg-sm button { padding: 4px 9px; font-size: 12px; }
.tchart-wrap { position: relative; }
.tchart { height: 420px; width: 100%; }
.trsi { height: 120px; width: 100%; margin-top: 4px; border-top: 1px dashed var(--line); }
.tlegend { position: absolute; left: 8px; top: 4px; z-index: 3; font-size: 12px; color: var(--ink2); pointer-events: none; }
#tcalls tr.pick { cursor: pointer; } #tcalls tr.pick:hover td { background: var(--glass-strong); } #tcalls tr.pick.on td { background: rgba(59,130,246,.10); }
@media (max-width: 700px) { .tchart { height: 320px; } .trsi { height: 100px; } }
.chart-layers .ln { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.chart-layers .ln.dash { background: repeating-linear-gradient(90deg, #9aa0b4 0 4px, transparent 4px 7px); }
canvas.chart { height: 470px; cursor: crosshair; touch-action: pan-y; } canvas.chart.grab { cursor: grabbing; }
.perf { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.perf-cell { background: var(--glass-strong); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.perf-cell small { display: block; color: var(--muted); font-size: 11.5px; } .perf-cell b { font-size: 17px; }
.yearbars { max-width: 640px; }
.yb { display: grid; grid-template-columns: 80px 1fr 70px; gap: 10px; align-items: center; padding: 3px 0; font-size: 13px; }
.yb b { text-align: right; } .yb-track { position: relative; height: 12px; background: var(--grey-bg); border-radius: 6px; }
.yb-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; } .yb-track i.up { background: #4cb27a; } .yb-track i.dn { background: #e0675a; }
.yb-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #9aa0b4; }

/* flow icons, photos and video */
.ficon { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: var(--accent-soft); border-radius: 10px; padding: 5px; margin-bottom: 8px; display: block; }
.media { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.media figure { margin: 0; background: var(--glass-strong); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.media figcaption { padding: 9px 12px 11px; font-size: 12.5px; } .media figcaption small { color: var(--muted); font-size: 11px; }
.media figcaption a { text-decoration: underline; }
.vframe { position: relative; aspect-ratio: 16 / 9; background: #111; } .vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media .video { grid-column: span 2; } @media (max-width: 800px) { .media .video { grid-column: auto; } }

.illus { margin: 4px 0 18px; } .illus img { width: 100%; display: block; border-radius: 18px; box-shadow: var(--shadow); background: #f7f3ee; }
.illus figcaption { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* AI-generated illustrations */
.aigal { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 4px; }
.aigal figure { margin: 0; } .aiwrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.aiwrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.aibadge { position: absolute; left: 10px; top: 10px; background: rgba(30, 32, 48, .78); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px); }
.aigal figcaption { font-size: 12.5px; color: var(--ink2); margin-top: 7px; }

/* financials */
.fin-formula { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.fin-formula > div { background: var(--glass-strong); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.fin-formula .wide { grid-column: span 2; background: var(--accent-soft); } .fin-formula small { display: block; color: var(--muted); font-size: 11.5px; } .fin-formula b { font-size: 14px; }
.rm100, .bsbar { display: flex; height: 26px; border-radius: 10px; overflow: hidden; margin: 8px 0; } .rm100 span, .bsbar span { display: block; }
.rm100-legend, .bs-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; font-size: 12.5px; }
.rm100-legend div, .bs-legend div { display: flex; align-items: center; gap: 7px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.rm100-legend i, .bs-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; } .rm100-legend span { flex: 1; } .rm100-legend b, .bs-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
table.fin-t td, table.fin-t th { padding: 6px 9px; } table.fin-t tr.tot td { font-weight: 600; background: rgba(255,255,255,.45); }
.fy { display: grid; grid-template-columns: 44px 1fr 120px; gap: 8px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.fy-bars i { display: block; height: 8px; border-radius: 4px; margin: 2px 0; } .fy-bars i.r { background: #8f86e8; } .fy-bars i.p { background: #2b9a66; }
.fy-n { display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; }
table.drv td { white-space: normal; vertical-align: top; font-size: 12.5px; min-width: 110px; } table.drv td:nth-child(4), table.drv td:nth-child(5) { min-width: 260px; }

/* ===== tabbed stock page ===== */
.pricebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pricebar > div { background: var(--glass-strong); border-radius: 16px; padding: 11px 14px; box-shadow: var(--shadow); }
.pricebar small { display: block; color: var(--muted); font-size: 11.5px; } .pricebar b { font-size: 20px; }
.range52 { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 6px; }
.r-track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e0675a, #f2c94c, #4cb27a); }
.r-track i { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); transform: translateX(-50%); box-shadow: var(--shadow); }
.tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin: 0 -4px 16px; border-radius: 18px;
  background: rgba(240, 240, 248, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; font: inherit; font-size: 13.5px; padding: 8px 15px; border-radius: 12px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.tabs button:hover { background: rgba(255, 255, 255, .6); } .tabs button.on { background: var(--accent); color: #fff; font-weight: 600; }
.panel.enter > * { animation: rise .45s ease both; } .panel.enter > *:nth-child(2) { animation-delay: .06s; } .panel.enter > *:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .chips .badge { font-size: 12.5px; padding: 6px 12px; }
.btn.sm { padding: 5px 14px; width: auto; }
.stories { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.story { scroll-snap-align: start; position: relative; min-height: 330px; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; background: linear-gradient(160deg, #6c63d9, #34326b); background-size: cover; background-position: center; box-shadow: 0 14px 30px rgba(50, 50, 100, .22); overflow: hidden; }
.story.s2 { background: linear-gradient(160deg, #1c7ed6, #1b3a6b); } .story.s3 { background: linear-gradient(160deg, #2b9a66, #145238); } .story.s4 { background: linear-gradient(160deg, #e0913a, #8a4a12); }
.story.s5 { background: linear-gradient(160deg, #0c8599, #0a4a56); } .story.s6 { background: linear-gradient(160deg, #c08ad6, #5d2f73); } .story.s7 { background: linear-gradient(160deg, #d6336c, #6b1838); }
.s-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: rgba(255, 255, 255, .22); padding: 5px 10px; border-radius: 999px; }
.s-body { display: flex; flex-direction: column; gap: 6px; } .s-body b { font-size: 15px; font-weight: 600; line-height: 1.35; } .s-body small { opacity: .85; font-size: 12.5px; line-height: 1.4; }
.s-head { font-size: 18px !important; } .s-num { font-size: 44px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; } .s-num.sm { font-size: 30px; margin-top: 10px; }
.s-num.up { color: #bff2d3; } .s-num.dn { color: #ffd0cb; } .s-ai { font-size: 10.5px !important; opacity: .75 !important; }
.story-nav { display: flex; align-items: center; justify-content: center; gap: 12px; } .story-nav .btn { width: auto; }
.next-hint { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); }
.next-hint a { background: var(--glass-strong); padding: 8px 14px; border-radius: 12px; color: var(--accent); font-weight: 600; box-shadow: var(--shadow); }
.rm100-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; }
.donut { width: 100%; max-width: 280px; } .donut path { cursor: pointer; transition: opacity .2s, transform .2s; transform-origin: 100px 100px; outline: none; }
.donut path:hover, .donut path:focus { transform: scale(1.04); } .donut path.dim { opacity: .28; }
.d-big { font-size: 22px; font-weight: 700; fill: var(--ink); } .d-small { font-size: 11px; fill: var(--muted); }
.rm100-list { display: grid; gap: 4px; } .rm-item { display: flex; align-items: center; gap: 9px; border: 0; background: none; font: inherit; text-align: left; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.rm-item:hover, .rm-item.on { background: var(--accent-soft); } .rm-item i { width: 12px; height: 12px; border-radius: 4px; flex: none; } .rm-item span { flex: 1; } .rm-item b { font-variant-numeric: tabular-nums; }
.rm-tip { margin-top: 8px; background: var(--glass-strong); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; min-height: 74px; }
.fy.big { grid-template-columns: 50px 1fr 150px; padding: 7px 0; } .fy.big .fy-bars i { height: 12px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.wf { display: grid; gap: 8px; margin: 8px 0; } .wf-row { display: grid; grid-template-columns: 230px 1fr 80px; gap: 12px; align-items: center; font-size: 13px; }
.wf-row b { text-align: right; font-variant-numeric: tabular-nums; } .wf-track { position: relative; height: 22px; background: var(--grey-bg); border-radius: 7px; }
.wf-track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.wf-track i.tot { background: linear-gradient(90deg, #8f86e8, #6c63d9); } .wf-track i.up { background: #4cb27a; } .wf-track i.dn { background: #e0675a; }
details.more { margin-top: 10px; } details.more summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.owe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .owe-h { font-size: 14px; margin-bottom: 2px; }
.bsbar span { transition: width 1s cubic-bezier(.2,.8,.2,1); }
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.mcard { border: 0; font: inherit; text-align: left; cursor: pointer; background: var(--glass-strong); border-radius: 16px; padding: 13px 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; transition: transform .15s; }
.mcard:hover { transform: translateY(-2px); } .mcard small { color: var(--muted); font-size: 11.5px; } .mcard b { font-size: 21px; }
.m-plain { font-size: 12.5px; color: var(--ink2); max-height: 0; overflow: hidden; transition: max-height .35s ease; } .mcard.open .m-plain { max-height: 160px; margin-top: 4px; }
.mcard::after { content: "What does this mean? \25BE"; font-size: 11px; color: var(--accent); margin-top: 4px; } .mcard.open::after { content: "Hide \25B4"; }
.chipsel button { border: 0; font: inherit; background: var(--glass-strong); padding: 7px 13px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
.chipsel button.on { background: var(--accent); color: #fff; }
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.flip { perspective: 1000px; height: 230px; cursor: pointer; outline: none; } .flip[hidden] { display: none; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.flip-f { background: var(--glass-strong); } .flip-f b { font-size: 16px; } .flip-f .badge { align-self: flex-start; margin-top: auto; }
.flip.pos .flip-f { border-top: 4px solid #4cb27a; } .flip.neg .flip-f { border-top: 4px solid #e0675a; } .flip.watch .flip-f { border-top: 4px solid #f2c94c; }
.flip-b { transform: rotateY(180deg); background: linear-gradient(160deg, #34326b, #4b46a0); color: #fff; overflow: auto; } .flip-b p { margin: 0; font-size: 13.5px; } .flip-b small { opacity: .75; font-size: 11.5px; }
.flip .ficon { width: 38px; height: 38px; }
@media (max-width: 800px) {
  .stories { grid-auto-columns: 82%; } .rm100-wrap, .owe-grid { grid-template-columns: 1fr; } .donut { margin: 0 auto; display: block; }
  .wf-row { grid-template-columns: 1fr 70px; } .wf-row .wf-l { grid-column: 1 / -1; }
  .pricebar b { font-size: 17px; }
}

.tabs { flex-wrap: nowrap !important; }

/* ===================== theme v2: light / dark (monochrome + copper-orange) ===================== */
:root, :root[data-theme="light"] {
  --bg: #e7e7e5; --shell: #f4f4f2; --card: #ffffff; --ink: #121212; --ink2: #4b4b4b; --muted: #8b8b8b;
  --line: rgba(0, 0, 0, .08); --glass: #ffffff; --glass-strong: #f4f4f2; --grey-bg: #ececea;
  --accent: #e5622a; --accent-2: #a9461c; --accent-soft: #fbe8de; --solid: #121212; --on-solid: #ffffff;
  --green: #1d8a4f; --green-bg: #e1f3e8; --red: #c83a2b; --red-bg: #fbe4e0; --amber: #96690a; --amber-bg: #fbf0d3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --tabs-bg: rgba(244, 244, 242, .86); --th-bg: #f7f7f5; --tip-bg: rgba(18, 18, 18, .92);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #050505; --shell: #0e0e0f; --card: #18181a; --ink: #f3f3f3; --ink2: #c3c3c6; --muted: #8a8a90;
  --line: rgba(255, 255, 255, .08); --glass: #18181a; --glass-strong: #222225; --grey-bg: #2a2a2d;
  --accent: #ff6a2b; --accent-2: #ff8a50; --accent-soft: rgba(255, 106, 43, .14); --solid: #ff6a2b; --on-solid: #111111;
  --green: #44d18a; --green-bg: rgba(68, 209, 138, .13); --red: #ff6e60; --red-bg: rgba(255, 110, 96, .14); --amber: #f3c55a; --amber-bg: rgba(243, 197, 90, .14);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px rgba(0, 0, 0, .45);
  --tabs-bg: rgba(14, 14, 15, .86); --th-bg: #1d1d20; --tip-bg: rgba(40, 40, 44, .96);
  color-scheme: dark;
}
body { background: var(--bg); font-family: "Inter", "Segoe UI", system-ui, sans-serif; transition: background .3s; }
.shell { background: var(--shell); box-shadow: none; border: 1px solid var(--line); }
.glass { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--line); border-radius: 26px; }
h1 { font-weight: 700; letter-spacing: -1.2px; font-size: 40px; }
h2 { font-weight: 600; letter-spacing: -.3px; }
.logo { background: conic-gradient(from 200deg, var(--accent), var(--accent-2), #111 70%, var(--accent)); border-radius: 50%; }
nav a { color: var(--ink2); } nav a:hover { background: var(--grey-bg); }
nav a.on { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.btn { background: var(--solid); color: var(--on-solid); border-radius: 999px; }
.btn.ghost { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
input, select { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 16px; }
input:focus, select:focus { border-color: var(--accent); }
th { background: var(--th-bg); } tr.link:hover td { background: var(--grey-bg); }
.tile { color: var(--ink2); border: 1px solid var(--line); box-shadow: none; }
.stat, .perf-cell, .pricebar > div, .flow-step, .fin-formula > div, .mcard, .rm-tip { box-shadow: none; border: 1px solid var(--line); }
.pricebar > div { background: var(--card); border-radius: 20px; }
.hero { background: var(--card); }
.pill { background: var(--solid); color: var(--on-solid); }
.modal-card { background: var(--card); }
.tip { background: var(--tip-bg); }
.seg { box-shadow: none; border: 1px solid var(--line); } .seg button.on { background: var(--solid); color: var(--on-solid); }
.badge { color: var(--ink2); }
.biz-tag { color: var(--accent); }
.geo-bar i, .wf-track i.tot { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.arrow, .ficon { color: var(--accent); } .ficon { stroke: var(--accent); }
.tabs { background: var(--tabs-bg); border: 1px solid var(--line); box-shadow: none; border-radius: 999px; padding: 6px; }
.tabs button { border-radius: 999px; color: var(--ink2); } .tabs button:hover { background: var(--grey-bg); }
.tabs button.on { background: var(--solid); color: var(--on-solid); }
.chipsel button { background: var(--card); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.chipsel button.on { background: var(--solid); color: var(--on-solid); }
.next-hint a { background: var(--solid); color: var(--on-solid); border-radius: 999px; box-shadow: none; }
.r-track i { background: var(--card); border-color: var(--ink); }
.flip-f { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.flip-b { background: linear-gradient(160deg, #1b1b1d, #2b1a12); }
.d-big { fill: var(--ink); } .d-small { fill: var(--muted); }
.yb-track::after { background: var(--muted); }
.aibadge { background: rgba(0, 0, 0, .7); }
.story { box-shadow: none; }
.story.s2, .story.s3, .story.s4, .story.s5, .story.s6, .story.s7, .story { background-color: #1a1a1a; }

/* theme switch */
.theme-sw { display: flex; gap: 4px; padding: 4px; margin: 14px 4px 0; border-radius: 999px; background: var(--grey-bg); }
.theme-sw button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 12.5px;
  color: var(--ink2); padding: 7px 8px; border-radius: 999px; cursor: pointer; }
.theme-sw svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-sw button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
@media (max-width: 800px) { .theme-sw { margin: 8px 0 0; width: 100%; } h1 { font-size: 28px; } }

/* stock header: keep the search box clear of the price cards */
.stock-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.stock-head h1 { margin: 6px 0 0; } .stock-head .search { width: 300px; max-width: 100%; }
@media (max-width: 800px) { .stock-head .search { width: 100%; } }

/* story cards with pictures */
.story { isolation: isolate; background: #161616; min-height: 360px; border-radius: 26px; }
.story .s-pic { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.story:not(.photo) .s-pic { background-size: 78%; background-position: center 12%; background-repeat: no-repeat; background-color: #e9e9e7; }
.story:hover .s-pic { transform: scale(1.05); }
.story .s-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,.72) 58%, rgba(10,10,10,.94) 100%); }
.story .s-tag { background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.s-aib { position: absolute; right: 14px; top: 52px; font-size: 10px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 999px; }
.s-num { color: #fff; } .s-num.up { color: #7fe3a8; } .s-num.dn { color: #ff9c90; }
.story .s-body b { color: #fff; }
:root[data-theme="dark"] .story:not(.photo) .s-pic { background-color: #d9d9d6; }

/* valuation: ranked hero gauges + grouped rows */
.heroes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.hero-m { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.hm-top { position: relative; height: 140px; border-radius: 16px; overflow: hidden; background: #e9e9e7; }
.hm-pic { position: absolute; inset: 0; background-size: 70%; background-position: center 35%; background-repeat: no-repeat; }
.hm-no { position: absolute; left: 12px; top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -1px; color: #121212; opacity: .85; }
.hm-q { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }
.hm-g { position: relative; margin: 6px auto 0; width: 100%; max-width: 230px; }
.gauge { width: 100%; display: block; overflow: visible; }
.gauge .gz { fill: none; stroke-width: 14; stroke-linecap: butt; } .gz.good { stroke: #4cb27a; } .gz.mid { stroke: #f2c94c; } .gz.warn { stroke: var(--accent); }
.gneedle { transform-origin: 90px 86px; transform: rotate(0deg); transition: transform 1.2s cubic-bezier(.2,.9,.25,1.2); }
.panel.enter .gneedle { transform: rotate(var(--deg)); }
.gneedle line { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; } .ghub { fill: var(--ink); }
.hm-v { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: -4px; }
.hero-m .badge { align-self: center; } .hm-l { text-align: center; color: var(--muted); font-size: 11.5px; }
.hero-m p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }
.vgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.vgroup { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.vg-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.vg-pic { width: 64px; height: 64px; flex: none; border-radius: 16px; background-color: #e9e9e7; background-size: 82%; background-position: center; background-repeat: no-repeat; }
.vg-head b { display: block; font-size: 15px; } .vg-head small { color: var(--muted); font-size: 12px; }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 9px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.mrow:hover { background: var(--grey-bg); } .mr-l { font-size: 13px; color: var(--ink2); } .mrow b { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.mrow .m-plain { grid-column: 1 / -1; } .mrow.open .m-plain { max-height: 160px; margin-top: 4px; }
.m-plain { color: var(--ink2); }

/* what moves it: picture cards */
.flip { height: 300px; }
.flip-f { padding: 10px; gap: 0; }
.flip-pic { position: relative; height: 150px; border-radius: 14px; background-color: #e9e9e7; background-size: 64%; background-position: center 40%; background-repeat: no-repeat; flex: none; }
.flip-pic .badge { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.flip-pic .badge.high { background: #e1f3e8; color: #1d8a4f; } .flip-pic .badge.low { background: #fbe4e0; color: #c83a2b; } .flip-pic .badge.medium { background: #fbf0d3; color: #96690a; }
.flip-t { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 2px; flex: 1; } .flip-t b { font-size: 15.5px; line-height: 1.3; }
.flip-hint { margin-top: auto; color: var(--muted); font-size: 11.5px; }
.flip.pos .flip-f, .flip.neg .flip-f, .flip.watch .flip-f { border-top: 1px solid var(--line); }
.flip.pos .flip-pic { box-shadow: inset 0 -4px 0 #4cb27a; } .flip.neg .flip-pic { box-shadow: inset 0 -4px 0 #e0675a; } .flip.watch .flip-pic { box-shadow: inset 0 -4px 0 #f2c94c; }

/* management outlook tone */
.tone-meter { border-radius: 18px; padding: 12px 14px; background: var(--glass-strong); border: 1px solid var(--line); margin-bottom: 12px; }
.tone-meter small { color: var(--muted); font-size: 11.5px; }
.tm-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0; }
.tm-scale span { text-align: center; padding: 7px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--grey-bg); color: var(--muted); }
.tone-meter.pos .tm-scale span.on { background: #1d8a4f; color: #fff; } .tone-meter.neg .tm-scale span.on { background: #c83a2b; color: #fff; } .tone-meter.neu .tm-scale span.on { background: #c99a1a; color: #fff; }
.tone-meter p { margin: 4px 0 0; font-size: 13px; }
.ol-list { display: grid; gap: 8px; }
.ol-item { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; border-left: 4px solid; background: var(--glass-strong); }
.ol-item p { margin: 0; font-size: 13px; color: var(--ink2); } .ol-tone { font-size: 12px; font-weight: 700; }
.ol-item.pos { border-color: #4cb27a; } .ol-item.pos .ol-tone { color: var(--green); }
.ol-item.neg { border-color: #e0675a; } .ol-item.neg .ol-tone { color: var(--red); }
.ol-item.neu { border-color: #f2c94c; } .ol-item.neu .ol-tone { color: var(--amber); }
@media (max-width: 900px) { .heroes { grid-template-columns: 1fr; } .ol-item { grid-template-columns: 1fr; gap: 4px; } }

/* ===================== theme v3: fintech navy + gold, frosted glass on grey / navy gradients ===================== */
:root, :root[data-theme="light"] {
  --bg: #c7ccd4; --card: rgba(255, 255, 255, .56); --glass: rgba(255, 255, 255, .56); --glass-strong: rgba(255, 255, 255, .66); --grey-bg: rgba(15, 23, 42, .06);
  --ink: #0d1424; --ink2: #3b4456; --muted: #6a7284; --line: rgba(15, 23, 42, .09);
  --accent: #a87b22; --accent-2: #d9ab4a; --accent-soft: rgba(201, 152, 54, .15); --solid: #0d1424; --on-solid: #ffffff;
  --blue: #2f6fd6; --pink: #c2477c; --teal: #0f8f88;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 30px rgba(30, 40, 60, .10);
  --tabs-bg: rgba(255, 255, 255, .5); --th-bg: rgba(240, 242, 246, .92); --tip-bg: rgba(13, 20, 36, .92);
  --shell-bg: radial-gradient(900px 600px at 100% 0%, rgba(255, 255, 255, .75), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(173, 186, 210, .55), transparent 60%), linear-gradient(160deg, #eceef2 0%, #dadee5 50%, #cdd2da 100%);
  --pic-shade: linear-gradient(180deg, rgba(8, 12, 22, 0) 25%, rgba(8, 12, 22, .7) 58%, rgba(8, 12, 22, .95) 100%);
}
:root[data-theme="dark"] {
  --bg: #03060c; --card: rgba(15, 22, 38, .62); --glass: rgba(15, 22, 38, .62); --glass-strong: rgba(25, 34, 54, .62); --grey-bg: rgba(148, 163, 184, .1);
  --ink: #eef2f8; --ink2: #b4bfd0; --muted: #7c879a; --line: rgba(148, 163, 184, .15);
  --accent: #e9b949; --accent-2: #f6d27a; --accent-soft: rgba(233, 185, 73, .13); --solid: #e9b949; --on-solid: #0a0f1c;
  --blue: #5aa2ff; --pink: #f0679f; --teal: #35c7bd;
  --green: #4ad295; --red: #ff7a6b; --amber: #f3c55a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 14px 34px rgba(0, 0, 0, .45);
  --tabs-bg: rgba(10, 16, 30, .7); --th-bg: rgba(16, 24, 40, .96); --tip-bg: rgba(20, 28, 46, .96);
  --shell-bg: radial-gradient(700px 520px at 0% 100%, rgba(139, 77, 255, .30), transparent 62%), radial-gradient(600px 420px at 18% 108%, rgba(236, 72, 153, .20), transparent 60%), radial-gradient(800px 500px at 100% 0%, rgba(37, 99, 235, .16), transparent 60%), linear-gradient(180deg, #0a1122 0%, #060a15 100%);
  --pic-shade: linear-gradient(180deg, rgba(4, 7, 14, 0) 25%, rgba(4, 7, 14, .72) 58%, rgba(4, 7, 14, .96) 100%);
}
body { background: var(--bg); }
.shell { background: var(--shell-bg); border: 1px solid var(--line); background-attachment: local; }
.glass, .pricebar > div, .hero-m, .vgroup, .tone-meter, .ol-item, .flip-f, .stat, .perf-cell, .mcard, .flow-step, .fin-formula > div, .rm-tip, .theme-sw {
  background: var(--card); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); }
:root[data-theme="light"] .glass, :root[data-theme="light"] .pricebar > div { border-color: rgba(255, 255, 255, .8); }
.hero-m, .vgroup, .ol-item, .tone-meter { background: var(--glass-strong); }
.logo { background: linear-gradient(135deg, var(--accent-2), var(--accent) 45%, #3a3a3d 100%); border-radius: 9px; }
nav a.on { background: var(--solid); color: var(--on-solid); }
:root[data-theme="dark"] nav a.on { background: linear-gradient(90deg, rgba(233, 185, 73, .18), rgba(233, 185, 73, .04)); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); border-radius: 12px; }
:root[data-theme="dark"] .tabs button.on, :root[data-theme="dark"] .chipsel button.on, :root[data-theme="dark"] .seg button.on { background: rgba(233, 185, 73, .14); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .55); }
:root[data-theme="dark"] .next-hint a, :root[data-theme="dark"] .btn { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(233, 185, 73, .6); }
:root[data-theme="dark"] .btn.ghost { color: var(--ink); box-shadow: none; }
.biz-tag { color: var(--accent); }
.story { background: #141414; } .story .s-shade { background: var(--pic-shade); }
.story .s-pic, .story:not(.photo) .s-pic { background-size: cover; background-position: center; background-color: #141414; }
.s-num.up { color: #7fe3b0; } .s-num { font-variant-numeric: tabular-nums; }
.gz.warn { stroke: #e0675a; } .gz.mid { stroke: #e9b949; } .gz.good { stroke: #3fbf85; }
.hm-top, .vg-pic, .flip-pic { background-color: #141414; }
.hm-pic { background-size: cover; background-position: center; }
.hm-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 14, .15), rgba(4, 7, 14, .55)); }
.hm-no { color: #fff; opacity: .95; z-index: 1; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); } .hm-q { z-index: 1; }
.vg-pic { background-size: cover; background-position: center; border-radius: 14px; }
.flip-pic { background-size: cover; background-position: center; }
.flip-b { background: linear-gradient(160deg, #262628, #1a1a1b 60%, #2b2416); }
.r-track i { border-color: var(--accent); }
.geo-bar i, .wf-track i.tot { background: linear-gradient(90deg, #3a3a3d, var(--accent)); }
.tone-meter.neu .tm-scale span.on { background: #c99a1a; }

/* header cards: outlined circular line icons */
.pricebar > div { display: flex; align-items: center; gap: 12px; border-radius: 18px; }
.pricebar > div > .pb-body { flex: 1; min-width: 0; }
.ring { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ring.blue { color: var(--blue); } .ring.pink { color: var(--pink); } .ring.gold { color: var(--accent); } .ring.teal { color: var(--teal); }
.pricebar > div.c-blue { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 35%, transparent); }
.pricebar > div.c-pink { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pink) 35%, transparent); }
.pricebar > div.c-gold { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.pricebar > div.c-teal { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 35%, transparent); }
/* light theme: neutral grey only (no blue), graphite + gold accents */
:root, :root[data-theme="light"] {
  --blue: #2a2d33; --pink: #a87b22; --teal: #2a2d33;
  --shell-bg: radial-gradient(900px 600px at 100% 0%, rgba(255, 255, 255, .8), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(150, 150, 150, .35), transparent 60%), linear-gradient(160deg, #efefef 0%, #dcdcdc 50%, #cbcbcb 100%);
  --bg: #c4c4c4; --ink: #121314; --ink2: #3e4044; --muted: #6e7075; --line: rgba(0, 0, 0, .08); --solid: #121314;
  --pic-shade: linear-gradient(180deg, rgba(10, 10, 10, 0) 25%, rgba(10, 10, 10, .7) 58%, rgba(10, 10, 10, .95) 100%);
}
:root[data-theme="light"] .geo-bar i, :root[data-theme="light"] .wf-track i.tot { background: linear-gradient(90deg, #3a3c40, var(--accent)); }
.story, .hm-top, .vg-pic, .flip-pic { background-color: #141414; }
.s-num { font-size: 38px; white-space: nowrap; } .s-num.sm { font-size: 28px; }
/* dark theme: neutral dark grey (no blue), gold accent */
:root[data-theme="dark"] {
  --bg: #0b0b0c; --card: rgba(38, 38, 40, .58); --glass: rgba(38, 38, 40, .58); --glass-strong: rgba(48, 48, 51, .6); --grey-bg: rgba(255, 255, 255, .07);
  --ink: #f2f2f2; --ink2: #c2c2c4; --muted: #8c8c90; --line: rgba(255, 255, 255, .09);
  --blue: #d8d8da; --pink: #e9b949; --teal: #d8d8da;
  --tabs-bg: rgba(28, 28, 30, .72); --th-bg: rgba(36, 36, 38, .96); --tip-bg: rgba(40, 40, 42, .96);
  --shell-bg: radial-gradient(800px 560px at 100% 0%, rgba(255, 255, 255, .07), transparent 60%), radial-gradient(700px 520px at 0% 100%, rgba(233, 185, 73, .08), transparent 62%), linear-gradient(160deg, #2a2a2c 0%, #1c1c1e 50%, #141415 100%);
  --pic-shade: linear-gradient(180deg, rgba(12, 12, 12, 0) 25%, rgba(12, 12, 12, .72) 58%, rgba(12, 12, 12, .96) 100%);
}
:root[data-theme="dark"] .flip-b { background: linear-gradient(160deg, #262628, #1a1a1b 60%, #2b2416); }
:root[data-theme="dark"] .geo-bar i, :root[data-theme="dark"] .wf-track i.tot { background: linear-gradient(90deg, #5a5a5e, var(--accent)); }
:root[data-theme="dark"] .logo, :root[data-theme="light"] .logo { background: linear-gradient(135deg, #f6d27a, #b8862b 55%, #2a2a2c 100%); }
/* segments + waterfall zero line */
.segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.seg-card { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.seg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .seg-top i { width: 12px; height: 12px; border-radius: 4px; } .seg-top b { font-size: 15px; }
.seg-bars { display: grid; grid-template-columns: 58px 1fr auto; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.seg-bars span { color: var(--muted); } .sb { height: 10px; border-radius: 6px; background: var(--grey-bg); overflow: hidden; } .sb i { display: block; height: 100%; border-radius: 6px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.seg-card p { margin: 10px 0 0; font-size: 13px; color: var(--ink2); }
.wf-track em { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.fy-bars i.r { background: linear-gradient(90deg, #a87b22, #e2b553); } .fy-bars i.p { background: #3fbf85; }
/* supply chain */
.sc-flow { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 12px; align-items: stretch; margin-top: 10px; }
.sc-col { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sc-h { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; } .sc-h b { display: block; font-size: 15px; } .sc-h small { color: var(--muted); font-size: 12px; }
.sc-row { display: grid; gap: 2px; padding: 9px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.sc-row b { font-size: 13.5px; } .sc-row span { font-size: 13px; color: var(--ink2); } .sc-row small { font-size: 11px; color: var(--muted); }
.sc-mid { display: grid; place-items: center; color: var(--accent); font-size: 24px; }
@media (max-width: 800px) { .sc-flow { grid-template-columns: 1fr; } .sc-mid span { display: inline-block; transform: rotate(90deg); } }

/* financial sector page */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.sbox { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sbox > small:first-child { color: var(--muted); font-size: 11.5px; } .sbox b { font-size: 20px; }
.spark { display: block; max-width: 100%; height: auto; }
.sbar { position: relative; height: 18px; border-radius: 999px; background: var(--grey-bg); overflow: hidden; min-width: 80px; }
.sbar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); opacity: .75; border-radius: 999px; }
.sbar span { position: relative; font-size: 11.5px; font-weight: 600; padding-left: 8px; line-height: 18px; }

.lchart svg { width: 100%; height: 260px; display: block; } .lchart .ax { font-size: 10.5px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink2); margin-top: 6px; } .legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.corr { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) calc(var(--a) * 22%), transparent); }
.niche { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.nbox { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nhead { display: flex; flex-direction: column; } .nlead { font-size: 13px; }
.nrow { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; font-size: 12.5px; }
.pill.on { outline: 2px solid var(--accent); }
/* technical chart: indicator settings */
.tset-btn { padding: 5px 12px; font-size: 13px; }
.tset { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 12px; padding: 12px; border-radius: 14px; background: var(--glass-strong); box-shadow: var(--shadow); }
.tset[hidden] { display: none; }
.tset fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; margin: 0; display: grid; gap: 6px; align-content: start; }
.tset legend { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 0 4px; }
.tset label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.tset input, .tset select { width: 84px; font: inherit; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); text-align: right; }
.tset select { width: 110px; text-align: left; }
.tset-actions { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* laptop and desktop: use the whole screen (YS, 22 Nov 2026) */
@media (min-width: 801px) {
  body { padding: 10px; }
  .shell { max-width: none; width: auto; min-height: calc(100vh - 20px); border-radius: 22px; grid-template-columns: 200px minmax(0, 1fr); }
}
@media (min-width: 1300px) { .tchart { height: 520px; } .trsi { height: 150px; } }
/* stock page: broker calls controls */
.cl-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.cl-sel select { font: inherit; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); }
/* Alpha Search logo (brand/icon.svg, 22 Nov 2026) */
.logo.logo-img { width: 28px; height: 28px; background: none; border-radius: 8px; box-shadow: var(--shadow); flex: none; display: block; }
.tbrok { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
/* technical chart: volume profile overlay */
.tvp { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; }

/* news on the chart: lanes, timeline strip, story card, list */
#newsbox .head { flex-wrap: wrap; gap: 8px; }
.nw-lanes { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--ink2); }
.nw-lanes label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.nw-lanes input { margin: 0; accent-color: var(--accent); }
.nw-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: #7b8394; flex: none; margin-right: 6px; vertical-align: middle; }
.nw-key.nw-co, .nw-dot.nw-co { background: #7b8394; } .nw-key.nw-men, .nw-dot.nw-men { background: transparent; border: 2px solid #7b8394; }
.nw-key.nw-macro, .nw-dot.nw-macro { background: #3b82f6; border-radius: 50%; } .nw-key.nw-flag, .nw-dot.nw-flag { background: #d97706; }
.nw-key.nw-call, .nw-dot.nw-call { background: var(--accent); border-radius: 50%; }
.nw-key.t-pos, .nw-dot.t-pos { background: #1f8a4c; border-color: #1f8a4c; } .nw-key.t-neg, .nw-dot.t-neg { background: #c0392b; border-color: #c0392b; }
.nw-key.nw-men.t-pos, .nw-dot.nw-men.t-pos, .nw-key.nw-men.t-neg, .nw-dot.nw-men.t-neg, .nw-key.nw-men.t-neu, .nw-dot.nw-men.t-neu { background: transparent; }
.nw-dot.nw-macro.t-pos, .nw-dot.nw-macro.t-neg, .nw-dot.nw-macro.t-neu { background: #3b82f6; border-color: #3b82f6; }
.nw-strip { position: relative; margin: 4px 0 14px; border-top: 1px solid var(--line); }
.nw-row { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.nw-row.off { opacity: .35; }
.nw-lab { position: absolute; left: 0; top: 3px; font-size: 11px; color: var(--muted); background: var(--card, #fff); padding-right: 6px; z-index: 1; pointer-events: none; }
.nw-dot { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; cursor: pointer; box-sizing: border-box; }
.nw-dot:hover { transform: scale(1.35); } .nw-dot.on { outline: 2px solid var(--ink); outline-offset: 1px; }
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .nw-grid { grid-template-columns: minmax(0, 1fr); } }
.nw-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--glass-strong); }
.nw-card h3 { font-size: 15px; margin: 4px 0 8px; line-height: 1.35; overflow-wrap: anywhere; } .nw-card h3 a { color: inherit; text-decoration: none; } .nw-card h3 a:hover { text-decoration: underline; }
.nw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 10px; }
@media (max-width: 480px) { .nw-stats { grid-template-columns: repeat(2, 1fr); } }
.nw-stat { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--card, #fff); }
.nw-stat b { display: block; font-size: 14px; } .nw-stat span { font-size: 10.5px; color: var(--muted); }
.nw-verdict { border-left: 3px solid var(--muted); padding: 6px 10px; border-radius: 0 8px 8px 0; background: var(--grey-bg); font-size: 13px; font-weight: 600; }
.nw-verdict.hit { border-color: var(--green); background: var(--green-bg); } .nw-verdict.stop { border-color: var(--red); background: var(--red-bg); } .nw-verdict.exp { border-color: var(--amber); background: var(--amber-bg); }
.nw-filt { margin-bottom: 6px; }
.nw-list { max-height: 520px; overflow: auto; }
.nw-list table { width: 100%; font-size: 12.5px; } .nw-list td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; min-width: 180px; }
.nw-list td { vertical-align: top; } .nw-d { white-space: nowrap; color: var(--muted); }
.nw-t { font-weight: 500; } .nw-src { font-size: 11px; margin-left: 15px; }
.nw-v { font-size: 12px; white-space: nowrap; } .nw-v.hit { color: var(--green); } .nw-v.stop { color: var(--red); } .nw-v.exp { color: var(--amber); }
.nw-list tr.pick { cursor: pointer; } .nw-list tr.pick.on td { background: var(--accent-soft); }

.nchart { height: 380px; width: 100%; }
@media (max-width: 600px) { .nchart { height: 300px; } }
#newsbox .nw-lanes { margin: 2px 0 8px; }

/* technical chart: date and prices beside the cursor; the lower panel shrinks to its date axis when no indicator is picked */
.ttip { position: absolute; z-index: 4; pointer-events: none; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 9px; font-size: 11.5px; line-height: 1.45; color: var(--ink2); box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: nowrap; }
.ttip b { color: var(--ink); } .ttip-c { font-size: 14px; font-weight: 700; color: var(--ink); }
.trsi.flat { height: 1px !important; opacity: 0; border: 0; margin: 0; overflow: hidden; }

/* screener */
.scr th { padding: 0; }
.scr th button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 9px 10px; white-space: nowrap; }
.scr th button i { font-style: normal; }
.scr td { white-space: nowrap; }

/* phones: How it works sits at the top, so the dock keeps seven icons */
.top-help { display: none; }
@media (max-width: 800px) { #nav a[data-r="method"] { display: none; }
  .top-help { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; color: var(--ink2); }
  .top-help svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } }
.btn[hidden] { display: none; }

/* watchlist and compare */
.star { border: 0; background: none; padding: 5px; margin: -5px 0; cursor: pointer; vertical-align: middle; line-height: 0; border-radius: 10px; }
.star svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.star:hover svg { stroke: var(--accent); } .star.on svg { fill: var(--accent); stroke: var(--accent); }
.star:focus-visible { outline: 2px solid var(--accent); }
.stock-head .star svg { width: 26px; height: 26px; } .cmp-btn { font-size: 13px; letter-spacing: 0; vertical-align: middle; margin-left: 6px; display: inline-block; }
.wl input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.filters .search { min-width: 240px; }
.cchip { display: inline-flex; align-items: center; gap: 7px; } .cchip i, .cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cdot { margin-right: 6px; } .cchip button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; padding: 4px 6px; }
.ctab th[scope=row] { text-align: left; white-space: nowrap; position: static; background: none; } .ctab td, .ctab thead th { min-width: 110px; }
@media (max-width: 800px) {
  .head:has(#c-per) { flex-wrap: wrap; } #c-per { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } #c-per button { white-space: nowrap; flex: none; }
  .side { flex-wrap: nowrap; } .side .theme-sw button { font-size: 0; gap: 0; padding: 9px 13px; } .brand { white-space: nowrap; }
}
@media (max-width: 360px) { .brand { font-size: 15.5px; padding-left: 2px; gap: 7px; } .side .theme-sw button { padding: 9px 8px; } .stock-head h1 { overflow-wrap: anywhere; } .stock-head .search, .filters .search { min-width: 0; width: 100%; } }
