/* Crypto Wire website (formerly Rebound). The calm layer at the end of this file sets the current look; the notes just below describe the base it restyles.
   Third look. Deep navy-black with one lavender accent and soft rounded cards (the fomo feel),
   and a dense live market table with coin badges, coloured mini charts and a slim status bar (the Axiom feel).
   Dark only by design, like the trading sites it follows. Up is green, down is red, always with an arrow beside it.
   Nothing is downloaded: system fonts, icons drawn in the page. */
:root {
  color-scheme: light dark;
  --bg: #F8F9FB; --side: #F3F4F8; --panel: #FFFFFF; --raise: #F1F2F7; --hover: #EFEEFC; --line: #E5E6EC; --line-2: #D3D5DF;
  --text: #20212B; --text-2: #565A6A; --text-3: #626676;
  --acc: #5651C8; --acc-2: #5651C8; --up: #26715F; --down: #B14552; --warn: #7D5A12; --sky: #5651C8; --gold: #7D5A12; --pink: #626676; --gray: #626676;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 10px; --pad: 24px; --max: 1248px; --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #111217; --side: #14151B; --panel: #191B22; --raise: #22242D; --hover: #25243D; --line: #30333E; --line-2: #3E424F;
  --text: #ECEEF4; --text-2: #A8ABB8; --text-3: #9195A3;
  --acc: #AAA6FF; --acc-2: #5651C8; --up: #7BC5AD; --down: #E3949B; --warn: #D8B568; --sky: #AAA6FF; --gold: #D8B568; --pink: #A8ABB8; --gray: #9195A3;
} }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { min-height: 100dvh; overflow-x: hidden; padding-bottom: 44px;
  background: radial-gradient(900px 420px at 85% -160px, rgba(91,95,232,.2), transparent 70%), radial-gradient(700px 380px at -5% -120px, rgba(165,168,255,.1), transparent 70%), var(--bg); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.num, .r, .px, .chg, time { font-variant-numeric: tabular-nums; }
small { font-size: 12px; color: var(--text-2); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(165,168,255,.35); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--raise); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7,6,13,.72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; height: 60px; padding: 0 var(--pad); display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.02em; flex: none; }
.brand img { width: 28px; height: 28px; }
#nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
#nav a { padding: 7px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; white-space: nowrap; transition: color .15s, background .15s; }
#nav a:hover { color: var(--text); }
#nav a.active { color: var(--acc); background: rgba(165,168,255,.12); }
.count { margin-left: 6px; font: 600 11px var(--mono); padding: 1px 6px; border-radius: 999px; background: var(--acc-2); color: #fff; }
.count:empty { display: none; }
.live { display: flex; align-items: center; gap: 8px; padding: 6px 13px 6px 11px; background: var(--raise); border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); flex: none; display: inline-block; }
.dot.on { background: var(--up); box-shadow: 0 0 0 0 rgba(47,224,162,.55); animation: ping 2.2s infinite; }
.dot.on.still { animation: none; box-shadow: none; }
.dot.idle { background: var(--warn); } .dot.off { background: var(--down); }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- page frame ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) 32px; }
.page:not(.hidden) { animation: in .28s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.page-h { padding: 8px 2px 16px; }
h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin: 28px 2px 10px; }
.hint { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--acc); opacity: .8; }
.foot { color: var(--text-3); font-size: 12.5px; margin: 12px 2px 0; max-width: 860px; }
.banner { margin-bottom: 14px; padding: 11px 16px; border-radius: 14px; background: rgba(92,184,255,.1); box-shadow: inset 0 0 0 1px rgba(92,184,255,.35); font-size: 13.5px; }
.banner.warn { background: rgba(255,181,71,.1); box-shadow: inset 0 0 0 1px rgba(255,181,71,.4); }
.banner::before { content: "ⓘ  "; } .banner.warn::before { content: "⚠︎  "; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel + .panel { margin-top: 14px; }
.panel-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.panel-h.pad { padding: 16px 18px 12px; margin: 0; }
.more { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--acc); white-space: nowrap; }
.more:hover { color: var(--text); }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack .panel { margin: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.label { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.sub { color: var(--text-2); margin-top: 4px; font-size: 13px; }

/* live strip: market mood, the next big event and every market, as one row of small cards */
.strip-wrap { position: relative; display: flex; gap: 10px; margin-bottom: 16px; }
.facts { display: flex; gap: 10px; flex: none; } .facts:empty { display: none; }
.strip { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-right: 130px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 170px), transparent calc(100% - 100px)); mask-image: linear-gradient(90deg, #000 calc(100% - 170px), transparent calc(100% - 100px)); }
.strip::-webkit-scrollbar { display: none; }
.strip-more { position: absolute; right: 2px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--acc); white-space: nowrap; }
.strip-more:hover { color: var(--text); }
.mini { flex: none; width: 178px; min-height: 78px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; }
.mini.info { width: 204px; } .mini .label, .mini .num, .mini .chg { white-space: nowrap; }
.mini.click { cursor: pointer; transition: border-color .15s, background .15s; }
.mini.click:hover { border-color: var(--line-2); background: var(--raise); }
.mini-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mini-top b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-top .chg, .mini-top .num { margin-left: auto; font-size: 12px; }
.mini-top b { font-size: 13.5px; }
.mini-top .num { font-weight: 700; }
.mini-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; }
.mini-bot .px { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.mini-bot b { font-size: 15px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bot .spark { width: 64px; height: 22px; flex: none; }
.mini-bot > svg:not(.spark) { flex: none; overflow: visible; margin: -8px 0 -1px; }
.mini .gv { font: 700 27px var(--sans); fill: var(--text); letter-spacing: -.03em; }
.arc { animation: arc 1s var(--ease) both; } @keyframes arc { from { stroke-dashoffset: var(--len); } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.stats small { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stats b.text { font-size: 16px; letter-spacing: -.015em; line-height: 1.3; }
.stats > div > span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 3px; }

/* badges */
.ci { display: inline-flex; flex: none; border-radius: 50%; overflow: hidden; }
.ci svg { display: block; }
.ci.glyph { align-items: center; justify-content: center; font: 700 14px var(--sans); color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--raise)); }
.mk { display: flex; align-items: center; gap: 11px; min-width: 0; }

/* rows */
.row { display: grid; align-items: center; gap: 12px; min-height: 54px; padding: 9px 18px; border-top: 1px solid var(--line); }
.row.head { min-height: 34px; padding-top: 7px; padding-bottom: 7px; font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); background: rgba(160,165,255,.035); }
.panel.flush > .row:first-child, .panel.flush > div > .row:first-child { border-top: 0; }
.panel-h.pad + div > .row:first-child { border-top: 1px solid var(--line); }
.panel:not(.flush) > div > .row, .panel:not(.flush) > .row { padding-left: 0; padding-right: 0; }
.row.click { cursor: pointer; transition: background .12s; }
.row.click:hover, .row.sel { background: var(--hover); }
.r { text-align: right; }
.px { font-weight: 600; }
.name { min-width: 0; } .name b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap b, .wrap small { white-space: normal; }
.hot { color: var(--warn); }
.group { padding: 16px 18px 8px; font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--acc); border-top: 1px solid var(--line); }
.note { font-size: 12.5px; color: var(--text-3); padding: 12px 18px; border-top: 1px solid var(--line); }
.panel:not(.flush) .note { padding-left: 0; padding-right: 0; }
.note.warn { color: var(--text); } .note.warn::before { content: "⚠︎ "; color: var(--warn); }
.empty { text-align: center; color: var(--text-2); padding: 36px 18px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.lrow { grid-template-columns: auto minmax(0, 1fr) auto; }
.qrow { grid-template-columns: minmax(0, 1fr) auto; }
.hrow { grid-template-columns: minmax(130px, 1.3fr) 92px minmax(90px, 1fr) 80px minmax(70px, .7fr); }
.mrow { grid-template-columns: minmax(150px, 1.3fr) 96px 84px 110px 90px 90px minmax(110px, 1fr) 136px; }
.xrow { grid-template-columns: 96px repeat(6, minmax(0, 1fr)) minmax(0, 2.1fr); }
.xrow > div:last-child { min-width: 0; } .xrow .tier.pill { white-space: normal; border-radius: 10px; }
.srow { grid-template-columns: minmax(0, 1.7fr) 78px 110px minmax(0, 1fr) 54px 96px; }
.erow { grid-template-columns: 150px minmax(0, 1fr) 150px 120px; }
.wrow { grid-template-columns: 84px minmax(0, 1fr) 124px; }
.frow { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); }
.trow { grid-template-columns: 84px minmax(0, 1fr) 80px 170px; }
.chg { white-space: nowrap; font-weight: 600; }
.chg i, .arrow { font-style: normal; font-size: 9px; margin-right: 4px; position: relative; top: -1px; }
.chg.up, .arrow.up { color: var(--up); } .chg.down, .arrow.down { color: var(--down); } .chg.flat { color: var(--text-3); }
.tag { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--raise); color: var(--text-2); white-space: nowrap; }
.cell { display: flex; align-items: center; gap: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.dim { color: var(--text-3); }
.spark { display: block; width: 100%; height: 30px; }
.meter { height: 5px; background: var(--raise); border-radius: 3px; position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--c, var(--acc)); min-width: 3px; transition: width .6s var(--ease); }
.split { height: 7px; display: flex; gap: 2px; }
.split i { background: var(--up); border-radius: 4px 0 0 4px; } .split b { background: var(--down); border-radius: 0 4px 4px 0; flex: 1; }
.dbar { height: 7px; position: relative; background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat; }
.dbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c); }

/* tier mark: a coloured dot beside a word */
.tier { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px var(--mono); letter-spacing: .06em; white-space: nowrap; color: var(--c); }
.tier i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.tier.pill { padding: 3px 10px 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.t-insane { --c: var(--down); } .t-proven { --c: var(--up); } .t-leaning { --c: var(--warn); } .t-news { --c: var(--sky); } .t-candle { --c: var(--gold); } .t-memecoin { --c: var(--pink); }
.t-unproven, .t-event, .t-info, .t-scorecard, .t-weak { --c: var(--gray); }

/* chips */
.chips { display: flex; gap: 6px; margin: 16px 0 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { display: inline-flex; align-items: center; gap: 7px; }
.chips button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; } .chips button.active i { background: #fff; }
.chips button small { font: 600 11px var(--mono); color: inherit; opacity: .6; }
.chips button, .seg button { border: 0; background: var(--raise); color: var(--text-2); padding: 7px 14px; border-radius: 999px; white-space: nowrap; cursor: pointer; font-size: 13px; font-weight: 600; transition: color .15s, background .15s; }
.chips button:hover, .seg button:hover { color: var(--text); }
.chips button.active, .seg button.active { background: var(--acc-2); color: #fff; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { padding: 5px 12px; font-size: 12.5px; }

/* alert timeline */
.day { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 20px 2px 8px; }
.day:first-child { margin-top: 4px; }
.feed .panel { margin: 0 0 8px; }
.alert { position: relative; display: flex; gap: 14px; padding: 14px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.alert::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.alert:hover { background: var(--raise); }
.alert-body { flex: 1; min-width: 0; }
.alert-top { display: flex; align-items: center; gap: 10px; }
.alert-top time { margin-left: auto; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.alert-title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-top: 4px; text-wrap: pretty; }
.alert-why { color: var(--text-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alert-nums { display: flex; gap: 8px 26px; margin-top: 12px; flex-wrap: wrap; align-items: center; font-weight: 600; }
.alert-nums small { display: block; font-size: 11.5px; font-weight: 400; }
.result { margin-left: auto; font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--raise); white-space: nowrap; }
.result.target { background: rgba(47,224,162,.14); color: var(--up); } .result.stop { background: rgba(255,92,122,.14); color: var(--down); }
.alert-note { margin-top: 9px; font-size: 12px; color: var(--text-3); }
.alert-note .bad { color: var(--warn); }
/* a card with somewhere to go is one big link; the button row says where */
.alert.linked:hover { border-color: var(--line-2); }
a.alert-title { display: block; }
.go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.alert-acts { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; font-weight: 600; }
.open-pill { padding: 5px 13px; border-radius: 999px; background: rgba(165,168,255,.13); color: var(--acc); white-space: nowrap; transition: background .15s, color .15s; }
.alert.linked:hover .open-pill, .go:focus-visible ~ .alert-acts .open-pill { background: var(--acc-2); color: #fff; }
.alert-acts .alt, .alert-acts .det { position: relative; z-index: 1; border: 0; background: none; padding: 5px 0; font: inherit; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.alert-acts .alt:hover, .alert-acts .det:hover { color: var(--text); }
.alert-acts .det { margin-left: auto; color: var(--text-3); }
.tk { color: var(--text-3); font-weight: 500; margin-left: 7px; }
.alert-stats { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.alert-stats small { color: var(--text-3); }
.stat { font-weight: 700; padding: 3px 10px; border-radius: 8px; background: rgba(165,168,255,.13); color: var(--acc); white-space: nowrap; }
.stat.up { background: rgba(47,224,162,.13); color: var(--up); } .stat.down { background: rgba(255,92,122,.13); color: var(--down); } .stat.mile { background: rgba(242,207,91,.13); color: var(--gold); }
.alert-flag { margin-top: 7px; font-size: 12.5px; color: var(--warn); }
.ci.av { color: hsl(var(--h) 85% 80%); background: hsl(var(--h) 42% 21%); font-size: 12.5px; letter-spacing: -.02em; }
.alert-full { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

/* market detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head .nm { font-size: 17px; font-weight: 700; }
.detail-head .px { font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.detail-head .seg { margin-left: auto; }
#chart { height: 330px; margin-top: 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; } .kv span { color: var(--text-2); } .kv b { font-weight: 600; text-align: right; }

/* settings */
.set { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 18px; border-top: 1px solid var(--line); }
.set:first-child { border-top: 0; }
.set > div { flex: 1; min-width: 0; } .set b { font-weight: 600; } .set small { display: block; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--raise); border: 0; position: relative; flex: none; cursor: pointer; transition: background .2s; box-shadow: inset 0 0 0 1px var(--line-2); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: left .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--acc-2); box-shadow: none; } .switch[aria-checked="true"]::after { left: 21px; }
.state { font: 700 11px var(--mono); letter-spacing: .06em; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); } .state.on i { background: var(--up); } .state.on { color: var(--up); }
select { background: var(--raise); border: 0; border-radius: 10px; padding: 7px 10px; }
.btn { background: var(--acc-2); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.12); } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .5; cursor: default; }
.lock { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 14px; border-radius: var(--r); background: rgba(165,168,255,.08); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.lock b { color: var(--text); } .lock a { margin-left: auto; }
.src { display: flex; flex-wrap: wrap; gap: 6px; }
.src span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 11px; background: var(--raise); border-radius: 999px; color: var(--text-2); }
.src i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); } .src .bad i { background: var(--down); } .src .bad { color: var(--text); }

.tip { position: fixed; z-index: 40; background: var(--hover); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; max-width: min(320px, calc(100vw - 24px)); pointer-events: none; box-shadow: 0 14px 36px rgba(0,0,0,.5); }

/* slim status bar */
.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: 34px; padding: 0 var(--pad); display: flex; align-items: center; gap: 18px; background: rgba(10,9,18,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.sb { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.sb.dim { color: var(--text-3); } .sb.right { margin-left: auto; }
.sb .dot { width: 7px; height: 7px; }

/* phone tab bar */
.tabbar, .sheet { display: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #markets, #matrix, #setups { overflow-x: auto; }
  .mrow { min-width: 880px; } .xrow { min-width: 940px; } .srow { min-width: 780px; }
}
@media (max-width: 820px) {
  :root { --pad: 14px; --r: 16px; }
  #nav { display: none; }
  .top-in { height: 54px; } .live { margin-left: auto; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .statusbar { display: none; }
  .tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(10,9,18,.9); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; border-radius: 12px; font-size: 11px; font-weight: 600; color: var(--text-3); cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar button svg circle { fill: currentColor; stroke: none; }
  .tabbar .active { color: var(--acc); }
  .sheet:not(.hidden) { display: flex; flex-direction: column; position: fixed; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 31; min-width: 180px; background: var(--hover); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
  .sheet a { padding: 12px 14px; border-radius: 10px; font-weight: 600; } .sheet a:active, .sheet a.active { background: var(--line); }
  main { padding-top: 14px; }
  .stats { gap: 10px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .hide-s { display: none !important; }
  .hrow { grid-template-columns: minmax(0, 1fr) 92px 76px; }
  .mrow { min-width: 0; grid-template-columns: minmax(0, 1.2fr) 86px 72px minmax(50px, .7fr); }
  .erow { grid-template-columns: 104px minmax(0, 1fr) auto; }
  .trow { grid-template-columns: 70px minmax(0, 1fr) 64px; }
  .alert-nums { gap: 8px 18px; } .result { margin-left: 0; }
  .set { flex-wrap: wrap; }
  #chart { height: 260px; }
  .detail-head .seg { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .dot.on, .page:not(.hidden), .arc { animation: none; } * { transition: none !important; } }

/* ---------- the simple tracker page ---------- */
#nav a.quiet { font-weight: 500; padding: 7px 10px; }
.nav-sep { align-self: center; margin: 0 6px 0 14px; padding-left: 16px; border-left: 1px solid var(--line-2); font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.chips { margin-top: 12px; }
.btn.ghost { display: block; width: 100%; margin-top: 6px; background: var(--raise); color: var(--text-2); }
#feeds { font-size: 12px; } #feeds.warn { color: var(--text-2); }
/* notification toggles: the badge is the same one the feed uses for that kind of alert */
#settings .set { gap: 12px; min-height: 56px; padding: 9px 18px; border-top: 1px solid var(--line); }
#settings .set .ci { width: 30px; height: 30px; font-size: 13px; }
#settings .set b { display: block; }
.pills, .hours { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.hours span { color: var(--text-3); font-size: 12.5px; } .hours select { padding: 5px 8px; }
.pill { border: 0; font: 600 12px var(--sans); padding: 4px 11px; border-radius: 999px; background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.pill.on { color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: none; }
button.pill { cursor: pointer; } button.pill:hover { filter: brightness(1.2); }
#notify .lock { margin: 0 14px 12px; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; box-shadow: none; }
#notify .lock a { color: var(--acc); font-weight: 600; white-space: nowrap; }
@media (min-width: 821px) {
  .cols { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); }
  .stack.side { position: sticky; top: min(78px, calc(100dvh - var(--side-h, 99999px) - 50px)); }
}
@media (min-width: 1101px) { .cols { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); } }
@media (max-width: 820px) {
  h1 { font-size: 22px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tabbar { grid-template-columns: repeat(3, 1fr); }
  /* phone: mood and next event side by side, then the prices as a row to swipe */
  .strip-wrap { display: block; margin-bottom: 14px; }
  .facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; } .facts .mini { width: auto; min-height: 70px; }
  .strip { margin: 0 calc(var(--pad) * -1); padding: 0 84px 0 var(--pad); gap: 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 100px), transparent calc(100% - 50px)); mask-image: linear-gradient(90deg, #000 calc(100% - 100px), transparent calc(100% - 50px)); }
  .strip-more { top: auto; bottom: 0; height: 78px; right: 0; font-size: 0; } .strip-more::after { content: "All →"; font-size: 12.5px; }
  .panel-h { flex-wrap: wrap; row-gap: 2px; }
  .facts .mini-bot b { font-size: 14px; } .facts .mini-bot > svg { width: 40px; }
  .alert-acts { font-size: 12px; gap: 4px 11px; } .open-pill { padding: 5px 11px; }
  .alert-acts .det { margin-left: 0; }
  .alert { gap: 10px; padding: 12px 14px; } .alert > .ci { width: 30px !important; height: 30px !important; }
  .alert-top { flex-wrap: wrap; } .alert-title { font-size: 14px; }
  #settings .set { flex-wrap: nowrap; }
  /* Tracker and Notify are two tabs of the same page */
}

/* =====================================================================================================
   Calm layer (2026-11-30). The look follows Mercury's dashboard: a light, quiet page, one indigo accent,
   hairline dividers, regular-weight type and plenty of space. Colours come from the tokens at the top
   (light, with a matching dark set). Everything below restyles the parts above; nothing is downloaded.
   ===================================================================================================== */
body { background: var(--bg); padding-bottom: 0; font-size: 14.5px; line-height: 1.5; }
h1 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
b, .px, .chg, .name b, .set b, .kv b, .alert-nums { font-weight: 500; }
small { font-size: 12.5px; }
::selection { background: var(--hover); }
.hint, .label, .group, .row.head, .day, .stats small { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; color: var(--text-2); opacity: 1; }
.banner { background: var(--hover); box-shadow: none; border-radius: 12px; color: var(--text); }
.banner.warn { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 35%, transparent); }
.panel, .stats > div { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.panel { padding: 24px; } .panel.flush { padding: 0; }
.panel-h.pad { padding: 20px 24px 14px; }
.row { padding: 12px 24px; min-height: 56px; } .row.head { background: none; min-height: 40px; }
.row.click:hover, .row.sel { background: var(--raise); }
.note, .group { padding-left: 24px; padding-right: 24px; }
.stats b { font-weight: 500; }
.ci.glyph { color: var(--text-2); background: var(--raise); font-weight: 500; }
.tier { font: 400 13px var(--sans); letter-spacing: 0; color: var(--text-2); text-transform: none; }
.tier i { display: none; }
.tier.pill { padding: 2px 10px; background: var(--raise); color: var(--text); }
.dot.on { animation: none; box-shadow: none; }
.btn { background: var(--acc); font-weight: 500; border-radius: 10px; padding: 9px 16px; }
.btn.ghost { background: none; color: var(--acc); margin-top: 0; padding: 16px; border-top: 1px solid var(--line); border-radius: 0; }
.btn.quiet { background: none; color: var(--acc); box-shadow: inset 0 0 0 1px var(--line-2); }
select { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 8px; }
.switch { background: var(--line-2); box-shadow: none; } .switch[aria-checked="true"] { background: var(--acc); }
.switch::after { box-shadow: 0 1px 2px rgba(20,22,40,.25); }
.state { font: 500 13px var(--sans); letter-spacing: 0; } .state i { display: none; } .state.on { color: var(--text); }
.tip { background: var(--text); color: var(--bg); border: 0; border-radius: 8px; box-shadow: 0 6px 20px rgba(20,22,40,.18); }
.chips button, .seg button { font-weight: 400; }
.seg button { background: none; border-radius: 8px; } .seg button.active { background: var(--hover); color: var(--acc); }
.detail-head .px { font-weight: 500; font-size: 34px; } .detail-head .nm { font-weight: 500; }
.result { background: var(--raise); color: var(--text-2); font-weight: 400; }
.result.target { background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); } .result.stop { background: color-mix(in srgb, var(--down) 12%, transparent); color: var(--down); }
.meter { background: var(--raise); }

/* ---------- frame: a quiet sidebar on wide screens ---------- */
.top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { font-size: 16px; font-weight: 500; letter-spacing: .01em; gap: 10px; } .brand b { font-weight: 500; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
#nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; font-weight: 400; color: var(--text); }
#nav a svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#nav a:hover { background: var(--raise); }
#nav a.active { background: var(--hover); color: var(--text); font-weight: 500; } #nav a.active svg { stroke: var(--acc); }
.nav-sep { border: 0; margin: 18px 0 4px; padding: 0 12px; font: 400 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.count { margin-left: auto; background: none; color: var(--text-2); font: 400 13px var(--sans); padding: 0; }
.health { position: relative; flex: none; font-size: 13px; }
.health summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); }
.health summary::-webkit-details-marker { display: none; }
.health summary:hover { background: var(--raise); }
.live { background: none; padding: 0; font-size: 13px; font-weight: 400; color: var(--text); gap: 9px; }
.statusbar { position: static; height: auto; display: grid; gap: 8px; padding: 10px 12px 4px; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 12.5px; white-space: normal; overflow: visible; }
.sb.right { margin: 4px 0 0; color: var(--text-3); }
main { max-width: 1180px; padding: 40px 40px 64px; }
.page-h { padding: 0 0 24px; }
.sec-h { margin: 32px 0 12px; }
@media (min-width: 1101px) {
  .top { position: fixed; left: 0; top: 0; bottom: 0; width: 216px; border: 0; border-right: 1px solid var(--line); background: var(--side); }
  .top-in { height: 100%; max-width: none; flex-direction: column; align-items: stretch; gap: 0; padding: 26px 12px 14px; }
  .brand { padding: 0 12px 26px; }
  #nav { flex-direction: column; gap: 2px; flex: 1; }
  main { margin: 0 auto; } body { padding-left: 216px; }
}
@media (max-width: 1100px) {
  .top { border-bottom: 1px solid var(--line); }
  #nav a svg, .nav-sep { display: none; } #nav { gap: 2px; } #nav a { padding: 7px 11px; } .count { margin-left: 6px; }
  .health .statusbar { position: absolute; right: 0; top: 40px; width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px rgba(20,22,40,.12); z-index: 30; }
  main { padding: 28px 24px 56px; }
}

/* ---------- tracker ---------- */
.lede { color: var(--text-2); margin: 6px 0 0; }
.sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 28px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sum-i { padding: 18px 20px 18px 0; min-width: 0; } .sum-i + .sum-i { padding-left: 20px; border-left: 1px solid var(--line); }
.sum-i.click { cursor: pointer; } .sum-i.click:hover .sum-v { color: var(--acc); }
.sum-k { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.sum-v { font-size: 25px; font-weight: 400; letter-spacing: -.02em; line-height: 1.25; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; transition: color .15s; }
.sum-s { font-size: 13px; margin-top: 2px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.stack.side { position: static; gap: 24px; }
/* filters are quiet text tabs with an underline, not pills */
.chips { gap: 22px; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--line); }
.chips button { background: none; border-radius: 0; padding: 10px 0 11px; color: var(--text-2); font-size: 14px; box-shadow: inset 0 -2px 0 transparent; }
.chips button i { display: none; } .chips button small { font: 400 12.5px var(--sans); opacity: 1; color: var(--text-3); }
.chips button.active { background: none; color: var(--text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--acc); }
/* the feed is one surface per day, entries split by hairlines */
.daygroup { margin-bottom: 16px; }
.day { margin: 0; padding: 14px 24px 12px; border-bottom: 1px solid var(--line); }
.alert { display: flex; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--line); border-radius: 0; transition: background .12s; }
.day + .alert { border-top: 0; }
.alert::before { display: none; }
.alert:hover { background: var(--raise); }
.alert > .ci { margin-top: 2px; }
.alert-top { gap: 8px; font-size: 13px; color: var(--text-2); }
.alert-top time { font-size: 13px; color: var(--text-3); }
.alert-title { font-size: 16px; font-weight: 500; letter-spacing: -.005em; margin-top: 3px; color: var(--text); }
.alert-why { font-size: 14.5px; margin-top: 4px; }
.alert-nums { gap: 8px 32px; margin-top: 14px; font-weight: 400; font-size: 15px; } .alert-nums small { font-size: 12.5px; }
.alert-cap { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.alert-note { font-size: 12.5px; }
.alert-acts { margin-top: 12px; font-size: 13.5px; font-weight: 400; gap: 4px 20px; }
.open-pill { background: none !important; padding: 0; color: var(--acc) !important; font-weight: 500; border-radius: 0; }
.alert.linked:hover .open-pill { text-decoration: underline; text-underline-offset: 3px; }
.alert-acts .alt { color: var(--acc); } .alert-acts .det { color: var(--text-2); }
.tk { font-weight: 400; }
.alert-stats { font-size: 13.5px; gap: 4px 18px; color: var(--text); }
.stat, .stat.up, .stat.down, .stat.mile { background: none; padding: 0; border-radius: 0; font-weight: 500; color: var(--text); font-size: 14.5px; }
.stat.up { color: var(--up); } .stat.down { color: var(--down); }
.alert-flag { color: var(--warn); font-size: 13px; }
.ci.av { color: var(--text-2); background: var(--raise); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.alert-full { border-top: 1px solid var(--line); font-size: 14px; }
/* upcoming */
#events .row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 20px; min-height: 0; align-items: start; }
#events .ci { display: none; } #events .name b { white-space: normal; font-weight: 400; } #events .r { color: var(--text-2); font-size: 13px; white-space: nowrap; padding-top: 1px; }
.side .panel-h.pad { padding: 18px 20px 12px; } .side .note { padding: 12px 20px; }

/* ---------- notifications: one plain settings surface ---------- */
.narrow { max-width: 680px; }
#notify .lock { margin: 0 24px 8px; padding: 12px 14px; border-radius: 10px; background: var(--raise); box-shadow: none; font-size: 13.5px; }
#notify .lock a { color: var(--acc); font-weight: 500; }
#settings .set { min-height: 68px; padding: 14px 24px; gap: 16px; }
#settings .set .ci { display: none; }
#settings .set b { font-size: 15px; } #settings .set small { font-size: 13.5px; margin-top: 1px; }
.set-h { padding: 22px 24px 8px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); }
.pill { font: 400 13px var(--sans); padding: 5px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); background: none; }
.pill.on { background: var(--hover); color: var(--acc); box-shadow: inset 0 0 0 1px transparent; font-weight: 500; }
#feeds { padding: 14px 24px; font-size: 13px; }

/* ---------- phone ---------- */
@media (max-width: 820px) {
  :root { --pad: 16px; }
  main { padding: 20px 16px 40px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  h1 { font-size: 24px; }
  .top-in { padding: 0 16px; } .health { margin-left: auto; }
  .tabbar { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .tabbar a, .tabbar button { font-weight: 400; min-height: 44px; color: var(--text-2); } .tabbar .active { color: var(--acc); }
  .sheet:not(.hidden) { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20,22,40,.14); border-radius: 12px; }
  .sheet a { font-weight: 400; } .sheet a:active { background: var(--raise); }
  .sum { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0 24px; }
  .sum-i, .sum-i + .sum-i { padding: 14px 12px 14px 0; border-left: 0; } .sum-i:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .sum-i:nth-child(n+3) { border-top: 1px solid var(--line); } .sum-i:nth-child(n+5) { display: none; }
  .sum-v { font-size: 22px; }
  .cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .chips { gap: 20px; }
  .day { padding: 12px 16px 10px; } .alert { padding: 16px; gap: 12px; }
  .alert-title { font-size: 15.5px; } .alert-nums { gap: 10px 24px; display: grid; grid-template-columns: 1fr 1fr; }
  .panel-h.pad, .side .panel-h.pad { padding: 16px 16px 10px; } #events .row, .side .note { padding-left: 16px; padding-right: 16px; }
  #settings .set { padding: 14px 16px; } .set-h { padding: 18px 16px 6px; } #notify .lock { margin: 0 16px 8px; } #feeds { padding: 14px 16px; }
  .row { padding-left: 16px; padding-right: 16px; } .panel { padding: 16px; } .panel.flush { padding: 0; }
}
.set-h:first-child { border-top: 0; }
@media (prefers-color-scheme: dark) { .btn, .switch[aria-checked="true"] { background: var(--acc-2); } .btn { color: #fff; } }

/* polish from Astra's review of the live site (2026-11-30): shorter rows, phone feed higher, four phone tabs */
.alert { padding: 20px 24px; } .alert-title { line-height: 24px; } .alert-why { font-size: 15px; line-height: 22px; }
.panel, .stats > div { border-radius: 10px; }
@media (max-width: 820px) {
  .top-in { height: 52px; }
  .lede { font-size: 14px; }
  .sum { margin: 14px 0 16px; } .sum-i, .sum-i + .sum-i { padding-top: 10px; padding-bottom: 10px; } .sum-v { font-size: 22px; margin-top: 2px; } .sum-s { margin-top: 0; }
  .chips { margin-bottom: 12px; }
  .alert { padding: 16px; }
  .tabbar { grid-template-columns: repeat(4, 1fr); } .tabbar a, .tabbar button { font-size: 10.5px; }
}

/* search, new-alerts button, shared alert, About page, slimmer market table (2026-11-30) */
.toolbar { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.toolbar .chips { flex: 1; min-width: 0; margin: 0; border: 0; }
.search { flex: none; display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.search input { width: 150px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; padding: 8px 0; outline: none; transition: width .2s var(--ease); }
.search input::placeholder { color: var(--text-3); } .search:focus-within { color: var(--acc); } .search input:focus { width: 200px; }
.newbtn { display: block; margin: 0 auto 12px; border: 0; cursor: pointer; background: var(--acc-2); color: #fff; font: 500 13.5px var(--sans); padding: 8px 16px; border-radius: 999px; position: sticky; top: 16px; z-index: 5; box-shadow: 0 6px 18px rgba(20,22,40,.18); }
.alert.pinned { background: var(--hover); }
.prose { max-width: 680px; } .prose h2 { margin: 28px 0 8px; } .prose h2:first-child { margin-top: 0; } .prose p { margin: 0 0 12px; color: var(--text-2); font-size: 15px; line-height: 1.6; } .prose p b { color: var(--text); }
.mrow { grid-template-columns: minmax(160px, 1.4fr) 110px 96px minmax(110px, 1fr) minmax(150px, 1fr); }
@media (max-width: 1100px) { .mrow { min-width: 0; } }
@media (max-width: 820px) {
  .toolbar { display: block; border: 0; margin-bottom: 12px; } .toolbar .chips { border-bottom: 1px solid var(--line); }
  .search { border-bottom: 1px solid var(--line); } .search input, .search input:focus { width: 100%; flex: 1; padding: 11px 0; font-size: 16px; }
  .mrow { grid-template-columns: minmax(0, 1.3fr) 84px 70px minmax(64px, .8fr); }
  .newbtn { top: 62px; }
}

/* fixes from Astra's acceptance check */
.alert-full { position: relative; z-index: 1; cursor: text; user-select: text; }
#events .name small { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 820px) { .toolbar .chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 28px; } }

/* round 3: the rest of Astra's review (type, calendar, setup status, sidebar disclosure, quote time) */
main { max-width: 1248px; }
h1 { font-weight: 600; font-size: 30px; line-height: 36px; } h2 { font-weight: 600; line-height: 26px; }
.alert-title { font-weight: 600; } .sum-v { font-size: 28px; line-height: 34px; }
.sum { margin-bottom: 8px; } .quote-note { margin: 0 0 24px; font-size: 12.5px; color: var(--text-3); } .quote-note.warn { color: var(--warn); }
.chips button { min-height: 44px; padding: 0 12px; } .chips { gap: 8px; } .chips button:first-child { padding-left: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.btn, select, .pill, .seg button { border-radius: 6px; }
* { transition-property: color, background-color, border-color; }
.cols { grid-template-columns: minmax(0, 1fr) 288px; }
/* setup levels: status first, quiet numbers, plain caption */
.alert-status { margin-top: 10px; } .result { margin: 0; display: inline-block; font-size: 12.5px; border-radius: 6px; padding: 3px 9px; }
.alert-nums { margin-top: 10px; font-size: 14px; line-height: 20px; gap: 6px 28px; } .alert-nums small { font-size: 12px; }
.alert-cap { margin-top: 8px; }
/* calendar */
.cal summary { list-style: none; cursor: default; } .cal summary::-webkit-details-marker { display: none; }
.cal summary h2 { font-size: 16px; } .cal .hint { color: var(--warn); } .cal-next { display: none; }
.ev { padding: 14px 20px; border-top: 1px solid var(--line); }
.ev-t { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 20px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-t span:last-child { color: var(--text-3); white-space: nowrap; }
.ev-n { font-size: 14px; line-height: 20px; margin-top: 4px; } .ev-n small { display: block; color: var(--text-3); }
/* sidebar "More" is a real disclosure */
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; margin-top: 12px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.more summary::-webkit-details-marker { display: none; } .more summary::after { content: "›"; transition: transform .15s; font-size: 16px; } .more[open] summary::after { transform: rotate(90deg); }
.more summary:hover { background: var(--raise); } .more a { margin-top: 2px; }
.ro { font-size: 13.5px; color: var(--text-2); margin-right: 14px; } .ro b { color: var(--text); }
#chart { height: 270px; }
@media (max-width: 1100px) {
  /* the calendar becomes one compact row above the feed that opens into the list */
  .cols { grid-template-columns: minmax(0, 1fr); gap: 16px; } .stack.side { order: -1; }
  .cal summary { cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; }
  .cal summary h2 { font-size: 14.5px; white-space: nowrap; } .cal:not([open]) .cal-next { display: block; flex: 1; min-width: 0; text-align: right; color: var(--text-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal summary::after { content: "⌄"; color: var(--text-3); margin-left: auto; } .cal:not([open]) summary::after { margin-left: 0; }
}
@media (max-width: 820px) {
  h1 { font-size: 24px; line-height: 30px; } .sum-v { font-size: 22px; line-height: 28px; } .quote-note { margin-bottom: 14px; }
  #chart { height: 200px; } .mrow > :nth-child(5) { display: none; } .mrow { grid-template-columns: minmax(0, 1.3fr) 84px 70px; }
  .cal summary { padding: 12px 16px; } .ev { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.more { width: 100%; } .more summary { width: 100%; box-sizing: border-box; }
#settings .set .ro b { display: inline; } #notify .lock { margin-top: 16px; }
@media (max-width: 820px) { .cal summary { flex-wrap: wrap; row-gap: 2px; } .cal:not([open]) .cal-next { flex: 1 0 100%; order: 3; text-align: left; } .cal summary::after { margin-left: auto !important; } }

/* fixes from Astra's second check */
.xrow { grid-template-columns: 96px repeat(5, minmax(0, 1fr)) 132px minmax(140px, 1.7fr); }
#matrix .cell { white-space: normal; overflow: visible; }
#setups .name small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 18px; }
.detail-change { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.cal[open] summary::after { transform: rotate(180deg); display: inline-block; }
.gdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.gdot.t-proven { --c: var(--up); } .gdot.t-leaning { --c: var(--warn); }
.ev-c { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.more-list { display: grid; gap: 2px; }
@media (max-width: 1100px) {
  .more { position: relative; width: auto; } .more summary { margin: 0; padding: 7px 11px; gap: 6px; font-size: inherit; color: var(--text); width: auto; }
  .more.has-active summary { background: var(--hover); font-weight: 500; }
  .more-list { position: absolute; left: 0; top: 40px; z-index: 30; min-width: 180px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,22,40,.12); }
  .more-list a { margin: 0; }
}
.more-list a { font-size: 14.5px; }
@media (max-width: 1100px) { #nav { flex: 0 1 auto; } .health { margin-left: auto; } .more summary { justify-content: flex-start; } }

/* Astra's check of the live site: phone feed starts higher, system notes out of the tabs */
.sb.link { border: 0; background: none; padding: 0; font: inherit; color: var(--acc); cursor: pointer; text-align: left; }
.cal .hint { white-space: nowrap; }
@media (max-width: 820px) {
  .lede { margin-top: 4px; } .sum { margin: 12px 0 6px; } .sum-i, .sum-i + .sum-i { padding-top: 8px; padding-bottom: 8px; } .quote-note { margin-bottom: 12px; }
  .cols { gap: 12px; }
  .cal summary { flex-wrap: nowrap; min-height: 44px; padding: 0 16px; align-items: center; } .cal summary h2 { font-size: 14px; }
  .cal:not([open]) .hint { display: none; } .cal:not([open]) .cal-next { flex: 1 1 auto; order: 0; text-align: right; }
  /* search is a 44px icon at the end of the filter row that opens into a field */
  .toolbar { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; position: relative; }
  .toolbar .chips { border: 0; flex: 1; min-width: 0; }
  .search { border: 0; flex: none; width: 44px; height: 44px; justify-content: center; }
  .search input { width: 0; padding: 0; opacity: 0; position: absolute; }
  .search:focus-within, .search.has { position: absolute; inset: 0; width: auto; background: var(--bg); justify-content: flex-start; gap: 10px; z-index: 2; }
  .search:focus-within input, .search.has input { position: static; width: 100%; flex: 1; opacity: 1; padding: 10px 0; font-size: 16px; }
}

/* the scalp read: one clear line under the title, colour always paired with an arrow and words */
.alert-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font-size: 14.5px; line-height: 22px; }
.alert-read b { font-weight: 600; padding: 1px 9px; border-radius: 6px; background: var(--raise); color: var(--text-2); white-space: nowrap; }
.alert-read.v-scalp.up b { background: color-mix(in srgb, var(--up) 13%, transparent); color: var(--up); }
.alert-read.v-scalp.down b { background: color-mix(in srgb, var(--down) 13%, transparent); color: var(--down); }
.alert-read.v-lean b { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.alert-read span { color: var(--text-2); }
.t-bounce { --c: var(--acc); }
