/* Whale Ledger - dark exchange-style theme */
:root {
  --bg: #0b0b0f;
  --card: #16171c;
  --card-2: #1e1f26;
  --line: #262730;
  --ink: #f5f5f7;
  --muted: #8b8d98;
  --faint: #5c5e69;
  --accent: #6e7bff;
  --up: #2fd07a;
  --down: #ff5a5f;
  --urgent: #ff5a5f;
  --action: #ffb547;
  --watch: #6ea8ff;
  --urgent-bg: rgba(255, 90, 95, .14);
  --action-bg: rgba(255, 181, 71, .14);
  --watch-bg: rgba(110, 168, 255, .14);
  --up-bg: rgba(47, 208, 122, .14);
  --chip: #23242c;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 0 calc(28px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .5; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }

/* header */
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px;
  position: sticky; top: env(safe-area-inset-top); z-index: 6; background: var(--bg); }
/* 17 Oct: the title stays pinned too; once you scroll it shrinks to one slim line to save room. */
body.scrolled header.top { padding: 6px 0 4px; }
body.scrolled h1 { font-size: 18px; }
body.scrolled .updated { font-size: 12px; margin-top: 0; }
body.scrolled .icon { width: 34px; height: 34px; }
body.scrolled .icon svg { width: 17px; height: 17px; }
h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.updated { font-size: 13px; color: var(--muted); margin-top: 2px; }
.icons { display: flex; gap: 10px; }
.icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--card-2);
  display: grid; place-items: center;
}
.icon svg { width: 20px; height: 20px; fill: var(--ink); }
.icon.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#privacy .eye-off { display: none; }
body.private #privacy .eye-on { display: none; }
body.private #privacy .eye-off { display: block; }
body.private .money { filter: blur(9px); user-select: none; }

/* tabs */
.tabs {
  position: sticky; top: calc(env(safe-area-inset-top) + var(--head-h, 0px)); z-index: 5; display: flex; gap: 4px;
  padding: 8px 0 12px; background: var(--bg); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain;
}
/* 17 Oct: overflow-x: auto also made the bar scroll up and down by a few pixels on iPhone, so a swipe
   that started on it could slide the buttons out of view while the bar itself stayed in place. */
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 1 auto; padding: 8px 6px; border-radius: 999px; background: var(--card);
  color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.tabs button.on { background: var(--ink); color: var(--bg); }
.badge {
  display: inline-block; min-width: 17px; margin-left: 2px; padding: 0 4px; border-radius: 999px;
  font-size: 11px; line-height: 18px; text-align: center; background: var(--chip); color: var(--ink);
}
.tabs button.on .badge { background: var(--bg); color: var(--ink); }

.banner { border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: var(--urgent-bg); color: var(--urgent); font-size: 14px; }

/* cards and lists */
.card { background: var(--card); border-radius: 20px; }
.list { padding: 4px 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.item + .item { border-top: 1px solid var(--line); }
.item .mid { flex: 1; min-width: 0; }
.item .rt { text-align: right; font-variant-numeric: tabular-nums; }
.sym { font-weight: 700; font-size: 16px; }
.sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.toggle { display: block; width: 100%; padding: 14px 16px; color: var(--accent); font-weight: 600; text-align: center; }

/* coin avatar */
.av {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: -0.02em; color: #fff;
}
.c0 { background: #5b5bd6; } .c1 { background: #0f9d8a; } .c2 { background: #d9534f; } .c3 { background: #e08a1e; }
.c4 { background: #2f80ed; } .c5 { background: #8e44ad; } .c6 { background: #16a34a; } .c7 { background: #c2185b; }

/* pills */
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--chip); color: var(--muted); }
.pill.buy, .pill.fill, .pill.active { background: var(--up-bg); color: var(--up); }
.pill.sell, .pill.outdated { background: var(--urgent-bg); color: var(--down); }
.pill.valid, .pill.far { background: var(--watch-bg); color: var(--watch); }
.pill.reassess { background: var(--action-bg); color: var(--action); }

/* action cards */
.alert { background: var(--card); border-radius: 20px; padding: 16px; margin-bottom: 10px; }
.alert .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.alert .top .av { flex-basis: 32px; width: 32px; height: 32px; font-size: 11px; }
.alert .t { margin-left: auto; font-size: 12px; color: var(--faint); }
.tag { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; letter-spacing: .01em; }
.alert .h { font-weight: 700; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.alert .do { margin: 10px 0 8px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.alert .rebuy { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: rgba(245, 158, 11, 0.12); color: #fbbf24; font-size: 13.5px; line-height: 1.4; }
.alert .r { font-size: 13.5px; color: var(--muted); }
.alert .r b { color: var(--ink); font-weight: 600; }
.alert .foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.alert .dismiss { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.alert.dismissed { opacity: .5; }
.tag.urgent, .alert.urgent .do { background: var(--urgent-bg); color: var(--urgent); }
.tag.action, .alert.action .do { background: var(--action-bg); color: var(--action); }
.tag.active, .alert.active .do { background: var(--up-bg); color: var(--up); }
.tag.watch, .alert.watch .do { background: var(--watch-bg); color: var(--watch); }
.tag.outdated, .alert.outdated .do { background: var(--urgent-bg); color: var(--urgent); }
.tag.info, .alert.info .do { background: var(--chip); color: var(--muted); }
.section-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 4px 10px; text-transform: uppercase; letter-spacing: .06em; }

/* portfolio */
.hero { padding: 18px 4px 20px; }
.hero .label { color: var(--muted); font-size: 14px; }
.balance { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.delta { font-weight: 600; font-size: 15px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: 18px; padding: 14px 16px; }
.tile .k { font-size: 13px; color: var(--muted); }
.tile .v { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }

footer { text-align: center; font-size: 12px; color: var(--faint); margin-top: 28px; }
.ghost { margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; }

/* login */
.login { max-width: 380px; margin: 16vh auto 0; padding: 0 20px; }
.login h1 { font-size: 32px; }
.login input {
  width: 100%; font: inherit; font-size: 17px; padding: 15px 16px; margin: 22px 0 12px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); outline: none;
}
.login input:focus { border-color: var(--accent); }
.login button.primary { width: 100%; padding: 15px; font-size: 16px; font-weight: 700; border-radius: 999px; background: var(--ink); color: var(--bg); }
.err { color: var(--down); min-height: 1.4em; margin-top: 12px; }

.section-label.first { margin-top: 4px; }
.tag.upcoming, .alert.upcoming .do { background: var(--watch-bg); color: var(--watch); }
.tag.done, .alert.done .do { background: var(--up-bg); color: var(--up); }

/* demo */
.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 12px; padding: 9px 12px 9px 14px; border-radius: 14px;
  background: var(--watch-bg); color: var(--watch); font-size: 13px; font-weight: 600;
}
.demo-banner button { padding: 5px 12px; border-radius: 999px; background: var(--watch); color: var(--bg); font-weight: 700; font-size: 12px; }
.primary-pill { margin-top: 12px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; }
footer .primary-pill { display: block; margin: 16px auto 0; }
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tour-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 26px; padding: 26px 22px 20px; }
.tour-slides section { display: none; text-align: center; min-height: 250px; }
.tour-slides section.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-card h2 { margin: 14px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.tour-card p { margin: 6px 0; font-size: 16px; }
.tour-card p.muted { font-size: 14.5px; line-height: 1.5; }
.tour-icon { width: 68px; height: 68px; margin: 6px auto 0; border-radius: 22px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; }
.t1 { background: linear-gradient(135deg, #3a40d2, #7e57ff); } .t2 { background: linear-gradient(135deg, #e08a1e, #ffb547); }
.t3 { background: linear-gradient(135deg, #2f80ed, #6ea8ff); } .t4 { background: linear-gradient(135deg, #0f9d8a, #2fd07a); }
.t5 { background: linear-gradient(135deg, #8e44ad, #c2185b); }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots span.on { background: var(--ink); width: 18px; border-radius: 4px; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; }
.tour-nav .ghost, .tour-nav .primary-pill { margin-top: 10px; }
.fb-card input, .fb-card textarea {
  width: 100%; font: inherit; font-size: 16px; margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--ink); outline: none; resize: vertical;
}
.fb-card input:focus, .fb-card textarea:focus { border-color: var(--accent); }
.fb-note { white-space: pre-wrap; }
.demo-banner .db-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.fb-float {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
body.demo .wrap { padding-bottom: 70px; }
.tag.feedback, .alert.feedback .do { background: rgba(142, 68, 173, .18); color: #c89bff; }
.item.reviewed { opacity: .5; }
.item .dismiss { margin-top: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--muted); }

/* score (replay + live scorecard) */
.score-head { padding: 16px; }
.score-head .k { font-size: 13px; color: var(--muted); }
.score-head .big { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.score-head .sub { white-space: normal; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.pill.good { background: var(--up-bg); color: var(--up); }
.pill.bad { background: var(--urgent-bg); color: var(--down); }
.pill.flat, .pill.pending { background: var(--chip); color: var(--muted); }
.pill.nofill { background: var(--watch-bg); color: var(--watch); }
.note { font-size: 13px; color: var(--muted); padding: 4px 4px 0; line-height: 1.45; }
.item .res { font-size: 13px; margin-top: 3px; }

/* related items bundled under a coin's card */
.alert .rel { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.alert .rel-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.alert .rel-i { font-size: 13.5px; color: var(--ink); padding: 3px 0; }
.alert .rel-t { color: var(--faint); font-variant-numeric: tabular-nums; margin-right: 8px; font-size: 12px; }

/* while you were away */
.away { background: var(--card-2); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; }
.away-top { display: flex; align-items: center; gap: 10px; }
.away-h { font-weight: 700; font-size: 15px; flex: 1; }
.away .dismiss { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.away-g { margin-top: 10px; }
.away-l { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.away-i { font-size: 13.5px; padding: 2px 0; }
.away-mv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.away-mv .mv-sym { font-weight: 700; min-width: 4.2em; }
.away-mv .mv-pct { font-weight: 700; }
.away-mv .mv-up { color: var(--up); }
.away-mv .mv-amb { color: var(--action); }
.away-mv .mv-red { color: var(--down); }
.away-mv .mv-note { color: var(--muted); font-size: 12.5px; }
.away > .away-i.muted { margin-top: 10px; font-size: 12.5px; }

.list-h { padding: 12px 16px 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.list-h + .item { border-top: none; }

/* coin pod under an order row */
.item { position: relative; }
.chev { width: 34px; height: 34px; border-radius: 50%; background: var(--chip); color: var(--ink); font-size: 14px; flex: none; }
.pod { padding: 4px 12px 16px; border-top: 1px solid var(--line); background: var(--card-2); }
.pod-msg { padding: 16px 4px; color: var(--muted); font-size: 14px; }
.pod-chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.pod-chart text { font-family: inherit; }
.c-title { font-size: 11px; font-weight: 700; fill: var(--ink); }
.c-leg { font-size: 9px; fill: var(--muted); }
.c-axis { font-size: 9px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-actual { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.c-pred { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 4 3; }
.c-bandfill { fill: var(--accent); fill-opacity: .14; stroke: none; }
.c-today { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.c-order { stroke-width: 1; stroke-dasharray: 1 3; }
.c-level { stroke: var(--muted, #888); stroke-width: 1; stroke-dasharray: 6 4; opacity: 0.45; }
.c-ltext { fill: var(--muted, #888); font-size: 8.5px; opacity: 0.8; }
.c-order.buy { stroke: var(--up); } .c-order.sell { stroke: var(--down); }
.c-otext { font-size: 8.5px; } .c-otext.buy { fill: var(--up); } .c-otext.sell { fill: var(--down); }
.c-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1 2; }
.hidden-svg { display: none; }
.c-ev { cursor: pointer; outline: none; }
.c-ev circle { stroke: var(--card-2); stroke-width: 1.5; }
.c-ev text { font-size: 8.5px; font-weight: 700; fill: #fff; pointer-events: none; }
.c-ev.future circle { fill-opacity: .55; }
.c-ev.on circle, .c-ev:focus circle { stroke: var(--ink); stroke-width: 2; r: 8.5; }
.ev-news circle { fill: var(--accent); } .ev-event circle { fill: #9b6bff; } .ev-risk circle { fill: var(--action); }
.ev-macro circle { fill: #7d8190; } .ev-buy circle { fill: var(--up); } .ev-sell circle { fill: var(--down); } .ev-move circle { fill: #5c5e69; }
.pod-detail { margin: 6px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--card); font-size: 13.5px; color: var(--muted); min-height: 20px; }
.pod-dh { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.pod-dt { margin-top: 3px; }
.pod-src { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; }
.pod-why { font-size: 12px; color: var(--faint); margin: 6px 2px 10px; line-height: 1.45; }
.pod-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .pod-grid { grid-template-columns: 1fr 1fr; } }
.pod-sugg, .pod-note { background: var(--card); border-radius: 14px; padding: 12px; }
.pod-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pod-sh { font-weight: 600; margin-top: 8px; }
.pod-sa { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.pod-ta { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 10px; font: inherit; font-size: 14px; resize: vertical; }
.pod-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pod-saved { font-size: 13px; color: var(--muted); }
.pod-notes { margin-top: 10px; }
.pod-n + .pod-n { border-top: 1px solid var(--line); }
.pod-n { padding: 8px 0; }
.pod-nt { font-size: 11.5px; color: var(--faint); }
.pod-nx { font-size: 13.5px; margin-top: 2px; white-space: pre-wrap; }
.pod-row .primary-pill { margin-top: 0; }

.news-card { padding: 14px 16px; }
.nc-h { font-weight: 600; margin-bottom: 4px; }
.nc-t { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.nc-err { font-size: 13px; color: var(--down); margin-top: 6px; }
.nc-row { margin-top: 10px; display: flex; align-items: center; gap: 6px; }

/* version 2 shadow */
.v2t { color: var(--muted); }
.alert.v2 { border: 1px dashed var(--line); background: var(--card-2); }
.alert.v2 .do { background: var(--chip); color: var(--ink); }
.tag.v2tag { background: var(--chip); color: var(--accent); }
.pod-v2h { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.ord-sugg { font-size: 11px; padding: 2px 8px; vertical-align: middle; }
.tag.hold { background: var(--chip); color: var(--muted); }

/* Orders grouped by coin: a small price ladder under each coin row */
.ladder { padding: 0 16px 10px 64px; }
.lad-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.lad-row .pill { font-size: 11px; }
.lad-what { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lad-gap { font-weight: 700; min-width: 52px; text-align: right; }
.lad-now { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 3px 0; }
.lad-now::before, .lad-now::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.ladder + .item { border-top: 1px solid var(--line); }
.lad-why { font-size: 13px; color: var(--muted); padding: 0 0 4px; line-height: 1.35; }

/* Coin panel: Next 6 months */
.ol { background: var(--card); border-radius: 14px; padding: 12px; margin: 0 0 10px; }
.ol-row { display: flex; gap: 10px; padding: 9px 0; }
.ol-row + .ol-row { border-top: 1px solid var(--line); }
.ol-when { flex: none; width: 64px; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ol-body { flex: 1; min-width: 0; }
.ol-t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ol-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ol-eff, .ol-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ol-eff.up { background: var(--up-bg); color: var(--up); }
.ol-eff.down { background: var(--urgent-bg); color: var(--urgent); }
.ol-eff.swing { background: var(--watch-bg); color: var(--watch); }
.ol-badge { background: var(--chip); color: var(--muted); }
.ol-badge.warn { background: var(--action-bg); color: var(--action); }
.ol-d { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.ol-re { font-size: 12.5px; color: var(--ink); margin-top: 5px; line-height: 1.4; padding: 6px 8px; border-radius: 10px; background: var(--card-2); }
.ol-src { text-decoration: none; display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.ol-sub { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ol-none { font-size: 13.5px; color: var(--muted); padding: 4px 0 6px; }
.ol-mkt { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.4; }
.ol-foot { margin-top: 8px; font-size: 11.5px; color: var(--faint); line-height: 1.4; }

/* Order review (top of Orders) */
.rv { margin: 12px 12px 4px; background: var(--card-2); border-radius: 16px; overflow: hidden; }
.rv-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; color: var(--ink); text-align: left; }
.rv-t { flex: 1; min-width: 0; }
.rv-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rv-s { font-weight: 600; font-size: 15px; margin-top: 3px; }
.chev.small { width: 28px; height: 28px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rv-sec { padding: 10px 14px 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line); }
.rv-row { padding: 8px 14px; }
.rv-row + .rv-row { border-top: 1px solid var(--line); }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-main { font-weight: 600; font-size: 14px; }
.rv-tag { font-size: 11px; padding: 2px 8px; white-space: nowrap; }
.rv-why { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.rv-note { padding: 10px 14px 12px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); line-height: 1.4; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rv-chip { font-size: 12.5px; padding: 3px 10px; }
.rv-row.u1 { box-shadow: inset 4px 0 0 var(--urgent); background: var(--urgent-bg); }
.rv-row.u2 { box-shadow: inset 4px 0 0 var(--action); }
.rv-row.u3 { box-shadow: inset 4px 0 0 var(--watch); }
.rv-fine { display: block; width: 100%; text-align: left; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border-top: 1px solid var(--line); }
.of-bar { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; }
.of-chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.of-chip.on { background: var(--ink); color: var(--bg); }
/* Version 3 engine block */
.v3 { background: var(--card); border-radius: 14px; padding: 12px; margin: 0 0 10px; }
.v3-sum { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 2px 0 8px; }
.v3-wrap { overflow-x: auto; margin: 0 -4px; }
.v3-t { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.v3-t th, .v3-t td { padding: 5px 3px; text-align: center; white-space: nowrap; }
.v3-t th:first-child { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; white-space: normal; }
.v3-t tr:first-child th { color: var(--muted); font-size: 11.5px; }
.v3-mid td { font-weight: 700; font-size: 12.5px; }
.v3-r { font-size: 11px; color: var(--muted); line-height: 1.25; }
.v3-sig { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 5px; border-radius: 8px; line-height: 1.2; white-space: normal; }
.v3-sig.up { background: var(--up-bg); color: var(--up); }
.v3-sig.down { background: var(--urgent-bg); color: var(--urgent); }
.v3-sig.flat { background: var(--chip); color: var(--muted); }
.v3-sep th, .v3-sep td { border-top: 1px solid var(--line); padding-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.v3-c { cursor: pointer; border-radius: 6px; font-weight: 600; color: var(--muted); }
.v3-c.up { color: var(--up); } .v3-c.down { color: var(--down); }
.v3-c.ov { box-shadow: inset 0 0 0 1.5px var(--accent); }
.v3-c.on { background: var(--card-2); }
.v3-ed { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--card-2); font-size: 13px; }
.v3-eh { font-weight: 700; margin-bottom: 4px; }
.v3-auto { font-weight: 600; margin-top: 2px; }
.v3-why { color: var(--muted); line-height: 1.4; margin-top: 3px; }
.v3-ov { margin-top: 6px; color: var(--accent); font-weight: 600; }
.v3-erow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.v3-erow .primary-pill, .v3-erow .ghost-pill { margin-top: 0; }
.v3-sel, .v3-note { font: inherit; font-size: 16px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.v3-note { width: 100%; box-sizing: border-box; margin-top: 8px; }
.v3-all { font-size: 13px; color: var(--muted); }
.ghost-pill { padding: 10px 16px; border-radius: 999px; background: var(--chip); color: var(--ink); font-weight: 600; font-size: 14px; }
.v3-hint { margin-top: 8px; font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.v3-warn { margin-top: 8px; font-size: 12.5px; color: var(--urgent); font-weight: 600; }
.v3-rec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink); line-height: 1.4; }
.c-v3 { fill: var(--accent); stroke: var(--card); stroke-width: 1; }
.c-v3t { font-size: 8px; fill: var(--accent); font-weight: 700; }
.toggle.v3t { color: var(--accent); font-weight: 700; }
.alert.v3card { border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.alert.v3card .do { background: var(--card-2); color: var(--ink); }
.tag.v3tag { background: var(--chip); color: var(--accent); }
.tag.v3tag.action { background: var(--accent); color: var(--bg); }
.v3go { margin-top: 10px; font-size: 13px; padding: 8px 14px; }
/* Demo invites (Portfolio) */
.inv-card { padding: 12px 0 4px; }
.inv-row { display: flex; gap: 8px; padding: 0 16px; }
.inv-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); }
.inv-row .primary-pill { margin-top: 0; padding: 9px 16px; }
.inv-msg { padding: 6px 16px 0; font-size: 13px; color: var(--muted); min-height: 1em; }
.inv-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.inv-btns .dismiss { margin-top: 0; }
/* Coins: nearest sell and buy per coin */
.cg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.cg-s { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); font-variant-numeric: tabular-nums; }
.cg-s.fill, .cg-s.active { background: var(--up-bg); color: var(--up); }
.cg-s.valid, .cg-s.far { background: var(--watch-bg); color: var(--watch); }
.cg-s.reassess { background: var(--action-bg); color: var(--action); }
.cg-s.outdated { background: var(--urgent-bg); color: var(--down); }
.cg-s.lead { box-shadow: inset 0 0 0 1.5px currentColor; }
#holdings .of-bar { padding-bottom: 6px; }
.act-bar { padding: 0 0 10px; }
.act-bar .of-chip { font-size: 14px; padding: 8px 14px; }
.note-sm { font-size: 12.5px; color: var(--faint); margin: 10px 4px; line-height: 1.4; }
/* Auto-recorded actions in the coin notes */
.pod-n.auto { border-left: 3px solid var(--accent); padding-left: 10px; }
.pod-na { font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.pod-nx.dflt { color: var(--muted); font-style: italic; }
.pod-edit { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent); padding: 4px 0; }

/* Whale labels */
.wl-item { cursor: pointer; }
.wl-prop { padding: 10px 14px 12px; background: var(--action-bg); border-radius: 12px; margin: 0 10px 10px; }
.wl-pt { font-size: 14px; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.wl-ed { padding: 0 14px 12px; }
.wl-ed .v3-erow { flex-wrap: wrap; }

/* Engine table: six windows scroll sideways with the row names held in place */
.v3-t th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }

/* One to-do list (8 Oct): This week tier, orders and the engine's view on every card */
.tag.week, .alert.week .do { background: var(--watch-bg); color: var(--watch); }
.inbox-sum { font-size: 15px; line-height: 1.4; color: var(--ink); margin: 2px 2px 4px; }
/* 28 Oct: market mood as weather (bright sun -> thunderstorm). */
.mood-wx { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; padding: 10px 14px; border-radius: 16px; position: relative; overflow: hidden; color: #fff; }
.mood-wx .wx-icon { width: 44px; height: 44px; flex: 0 0 44px; }
.mood-wx .wx-head { font-weight: 700; font-size: 15px; line-height: 1.25; }
.mood-wx .wx-sub { font-size: 12.5px; line-height: 1.35; opacity: .88; margin-top: 2px; }
.wx-sun { fill: #ffd34d; } .wx-sun.dim { fill: #f3c96a; opacity: .85; }
.wx-rays line { stroke: #ffd34d; stroke-width: 3; stroke-linecap: round; }
.wx-cloud { fill: #eef1f7; } .wx-cloud.back { fill: #c9cfdc; } .wx-cloud.dark { fill: #8c93a6; }
.wx-drops line { stroke: #9fd0ff; stroke-width: 2.4; stroke-linecap: round; }
.wx-bolt { fill: #ffe066; }
.mood-wx.wxk-sun { background: linear-gradient(135deg, #ff9f1c 0%, #ffcf4a 55%, #fff1a8 100%); color: #3b2500; }
.mood-wx.wxk-spells { background: linear-gradient(135deg, #2f80ed 0%, #56b4f5 60%, #ffd56a 130%); }
.mood-wx.wxk-clearing { background: linear-gradient(135deg, #4b5d7a 0%, #5f8fc0 60%, #9fc7ea 100%); }
.mood-wx.wxk-partly { background: linear-gradient(135deg, #4a6a90 0%, #6c8db3 100%); }
.mood-wx.wxk-overcast { background: linear-gradient(135deg, #4a5161 0%, #6b7282 100%); }
.mood-wx.wxk-rain { background: linear-gradient(135deg, #283244 0%, #3b4a63 100%); }
.mood-wx.wxk-storm { background: linear-gradient(135deg, #12141c 0%, #2a2240 60%, #3a2c55 100%); }
@media (prefers-reduced-motion: no-preference) {
  .wx-rays { transform-origin: 24px 24px; animation: wx-spin 24s linear infinite; }
  .wx-drops line { animation: wx-fall 1.1s linear infinite; }
  .wx-drops line:nth-child(2) { animation-delay: .35s; } .wx-drops line:nth-child(3) { animation-delay: .7s; }
  .mood-wx.wxk-storm::after { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; animation: wx-flash 7s infinite; pointer-events: none; }
}
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-fall { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
@keyframes wx-flash { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .22; } 94% { opacity: 0; } 95.5% { opacity: .14; } }
.card-ords { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.co-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.co-row .pill { font-size: 12px; padding: 2px 8px; }
.co-q { font-variant-numeric: tabular-nums; }
.co-g { margin-left: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.co-g.active, .co-g.fill { color: var(--up); }
.co-g.reassess { color: var(--action); }
.co-g.outdated { color: var(--down); }
.eng-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.eng-tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: #24244a; color: #a9aaff; }
.eng-line.differs span:last-child { color: var(--action); }
.alert .foot { gap: 8px; align-items: center; }
.alert .snz { margin-right: auto; font-size: 12.5px; color: var(--muted); }

/* Rule 2 news check on cards */
.news-line { margin-top: 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.news-tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--up-bg); color: var(--up); }
.news-line.caution .news-tag { background: var(--action-bg); color: var(--action); }
.news-line.stop .news-tag { background: var(--urgent-bg); color: var(--down); }
.news-line.caution span:nth-child(2) { color: var(--ink); }
.news-line.pending { font-size: 12.5px; }
.news-src { font-size: 13px; }

.alert ol.do.steps { margin: 0; padding: 12px 14px 12px 34px; display: flex; flex-direction: column; gap: 8px; }
.alert ol.do.steps li { padding-left: 2px; }

/* Themes and the new-coin bar */
.nc-checks { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.35; }
.nc-ck.ok { color: var(--up); }
.nc-ck.no { color: var(--down, #ff6b6b); } /* 1 Nov (Thomas): a ✗ points the other way, so red; • (not known) stays grey */
.tag.opportunity, .alert.opportunity .do { background: #24244a; color: #a9aaff; }
.why-box { background: var(--card-2, #23242c); border-radius: 14px; padding: 12px; margin: 0 0 10px; }
.why-t { font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
.why-th { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.why-st { font-size: 13px; margin-top: 6px; color: var(--muted); }
.why-st.weakening, .why-st.broken { color: var(--action); }
.why-st.strengthening { color: var(--up); }

.sub-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 10px; padding: 0; }
.sub-bar .of-chip { font-size: 13.5px; padding: 9px 4px; text-align: center; white-space: nowrap; margin: 0; }
.sub-bar .sub-n { display: inline-block; min-width: 1.4em; }
.sub-bar .sub-n.hot { background: var(--action); color: #111; border-radius: 999px; padding: 1px 6px; font-weight: 800; }

.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.card-links .ghost-pill, .foot .coin-go { font-size: 13px; padding: 8px 14px; }
.foot .coin-go { margin-right: auto; }
.why-sp { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.why-sp b { color: var(--ink); }
.swing-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 12px 0; }
.sw-row { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; padding: 4px 0; }
.sw-side { font-weight: 700; width: 2.6em; }
.sw-row.buy .sw-side { color: var(--up); }
.sw-row.sell .sw-side { color: var(--down); }
.sw-px { flex: 1; }
.sw-st { color: var(--muted); font-size: 12.5px; }
.sw-row.missing .sw-st { color: var(--action); font-weight: 600; }
.sw-row.covered .sw-st { color: var(--up); }
.sw-now { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 3px 0; margin: 4px 0; text-align: center; }
.sw-foot { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.wl-act { margin: 0 0 8px; flex-wrap: wrap; }
.news-why { display: block; margin-top: 4px; font-weight: 600; }
.tag.eng { background: #24244a; color: #a9aaff; }
.stick { position: sticky; top: calc(env(safe-area-inset-top) + var(--head-h, 0px) + var(--tabs-h, 56px)); z-index: 4; background: var(--bg); margin-left: -2px; margin-right: -2px; padding-top: 6px; padding-bottom: 8px; }
.ord-bar.stick { background: var(--card); }
/* Friends pilot: My portfolio editor and the simple forecast */
.mp-card { padding: 14px 16px; }
.mp-sum { font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-bottom: 10px; }
.mp-h { font-weight: 700; margin: 16px 0 4px; }
.mp-cap { font-size: 12.5px; color: var(--faint); margin-bottom: 6px; }
.mp-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.mp-end { justify-content: flex-end; margin-top: 14px; }
.mp-in { min-width: 0; flex: 1; font: inherit; font-size: 16px; padding: 8px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); }
.mp-in.sym { flex: 0 0 86px; text-transform: uppercase; }
.mp-in.sel { flex: 0 0 auto; padding: 8px 4px; }
.mp-in.wide { width: 100%; }
.mp-l { color: var(--muted); }
.mp-x { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 0; background: var(--chip); color: var(--muted); font-size: 18px; }
.mp-ta { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); margin-bottom: 6px; }
.mp-warn { font-size: 12.5px; color: var(--action); margin: -2px 0 6px; }
.fc-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.fc-w { flex: 0 0 96px; color: var(--muted); }
.fc-r { flex: 1 1 100%; color: var(--ink); font-variant-numeric: tabular-nums; }
.tour-card p.small { font-size: 12.5px; }
.mp-ord { flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mp-fill { flex: 1; }
.mp-br { flex-basis: 100%; height: 0; }
.mp-h.first { margin-top: 0; }
.mp-in.sym-big { text-transform: uppercase; font-size: 18px; font-weight: 700; }
.mp-coin { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mp-coin .mid { flex: 1; min-width: 0; }
.mp-coin .sym { font-weight: 700; }
.mp-coin .sub { font-size: 13px; color: var(--muted); }
.mp-coin .inv-btns .ghost-pill { margin-top: 0; padding: 6px 12px; font-size: 13px; }
.mp-ask { background: var(--card-2); border-radius: 14px; padding: 12px; margin: 2px 0 10px; }
.mp-ask .dismiss { margin-top: 4px; }
.mp-q { font-weight: 700; margin-bottom: 2px; }
.mp-cap.center { text-align: center; margin-top: 4px; }
.mp-ask .inv-msg { padding: 4px 0 0; min-height: 0; }
.mp-ask .mp-end { margin-top: 6px; }
.follow-box { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--watch-bg); }
.follow-t { font-size: 14px; line-height: 1.45; color: var(--ink); }
.follow-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.follow-btns .primary-pill, .follow-btns .ghost-pill { margin-top: 0; padding: 8px 14px; font-size: 14px; }
.alert.flash { animation: wl-flash 2s ease-out; }
@keyframes wl-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.alert { scroll-margin-top: calc(var(--tabs-h, 60px) + 64px); }
.sub.worth { margin-top: 2px; }
.mp-row > .primary-pill { margin-top: 0; align-self: stretch; padding-top: 0; padding-bottom: 0; }
.mp-reset { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }
.mp-reset .mp-ask { text-align: left; margin-top: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; padding: 6px; }
.danger-pill { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; background: var(--down); color: #fff; }
.follow-go { display: block; width: 100%; margin-top: 10px; padding: 12px 16px; font-size: 15px; }
.follow-btns .ghost-pill { flex: 1; }
.sub.coin-about { color: var(--faint); font-size: 12.5px; margin: 1px 0 1px; }
.about-box { padding: 12px 14px 4px; }
.sym .tag { white-space: nowrap; }
/* Coins filter row: one line on a phone (compact chips; scrolls sideways if a screen is very narrow) */
.ord-bar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: 4px; padding-left: 12px; padding-right: 12px; }
.ord-bar::-webkit-scrollbar { display: none; }
.ord-bar .of-chip { flex: 0 0 auto; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
.ord-bar .of-chip.sort { margin-left: auto; min-width: 38px; }
.mp-in.sel.cur { flex: 0 0 52px; padding: 8px 2px; text-align: center; }
/* Today's price between the sells above and the buys below on a card's order list */
.co-now { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.co-now::before, .co-now::after { content: ''; flex: 1; border-top: 1px dashed var(--faint); }
.co-now-l { color: var(--muted); font-weight: 600; }
.nc-ck-h { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
/* Coin chart: 1 or 3 months ahead, full view (stays on screen while the list below scrolls), signal strip */
.chart-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.chart-bar .of-chip { padding: 5px 10px; font-size: 12.5px; }
.chart-bar .full-btn { margin-left: auto; }
.pod-chartwrap.full { position: sticky; top: calc(env(safe-area-inset-top) + var(--head-h, 0px) + var(--tabs-h, 60px) + 4px); z-index: 6; background: var(--card); padding: 6px 4px 8px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.pod-chartwrap.full .pod-detail { max-height: 26vh; overflow-y: auto; }
.c-band2 { fill: var(--accent); opacity: .09; }
.c-engline { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 3; opacity: .8; }
.sig-strip { display: flex; gap: 4px; margin: 2px 0 6px; overflow-x: auto; }
.sig-cell { flex: 1 0 auto; text-align: center; background: var(--card-2); border-radius: 10px; padding: 5px 4px; }
.sig-w { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.sig-cell .v3-sig { font-size: 11px; }
/* Guide tab */
.g-intro { color: var(--muted); font-size: 14px; margin: 10px 4px 12px; line-height: 1.45; }
.g-sec { padding: 0; margin-bottom: 10px; overflow: hidden; }
.g-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; }
.g-icon { font-size: 20px; }
.g-name { font-weight: 700; font-size: 16px; }
.g-line { color: var(--muted); font-size: 13px; flex: 1; }
.g-chev { color: var(--muted); }
.g-card { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.g-h { font-weight: 700; margin-bottom: 4px; }
.g-t { font-size: 14px; line-height: 1.45; color: var(--ink); }
.g-b { font-size: 13px; color: var(--up); margin-top: 8px; }
.g-shot { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.g-shot img { display: block; width: 100%; height: auto; }
.g-ring { position: absolute; border: 2.5px solid var(--action); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); pointer-events: none; }
.g-layer { display: flex; align-items: baseline; gap: 10px; margin: 22px 4px 10px; flex-wrap: wrap; }
.g-ln { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 800; font-size: 13px; background: var(--line); color: var(--ink); align-self: center; }
.g-l-more .g-ln { background: #3b5bdb; color: #fff; }
.g-l-plus .g-ln { background: #f59f00; color: #111; }
.g-lname { font-weight: 800; font-size: 18px; }
.g-lline { color: var(--muted); font-size: 13px; }
/* Your last trades (coin view) */
.lt-box { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.lt-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 10px 0 4px; }
.lt-h.sell { color: var(--down); } .lt-h.buy { color: var(--up); }
.lt-row { display: grid; grid-template-columns: 4.6em 1fr 4.4em auto; gap: 8px; align-items: baseline; font-size: 14px; padding: 5px 0; border-top: 1px solid var(--line); }
.lt-row .lt-d { color: var(--muted); font-size: 13px; }
.lt-row .lt-p { font-weight: 600; }
.lt-row .lt-v { color: var(--muted); font-size: 13px; text-align: right; }
.lt-row .lt-u { color: var(--muted); font-size: 12px; text-align: right; }
.lt-tag { grid-column: 1 / -1; justify-self: start; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(245,159,0,.15); color: #f59f00; }
.lt-sug { background: rgba(245,159,0,.10); border: 1.5px solid #f59f00; border-radius: 10px; padding: 6px 8px; margin: 3px 0; }
.lt-sug .lt-d, .lt-sug .lt-u { color: #f59f00; font-weight: 700; }
.lt-now { font-size: 12px; color: var(--muted); text-align: center; border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); padding: 3px 0; margin: 3px 0; }
.lt-foot, .lt-empty { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.sw-float { font-size: 12px; color: var(--muted); margin: 2px 0 6px; line-height: 1.4; }
.rc-btn { display: inline-block; margin-top: 12px; }
/* Verdict line (coin view) */
.vd-box { margin: 4px 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-2); }
.vd-box.vd-buy-dip { border-color: rgba(48,209,88,.45); }
.vd-box.vd-stop, .vd-box.vd-hold-off { border-color: rgba(255,69,58,.5); }
.vd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.vd-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.vd-chip.good { color: var(--up); } .vd-chip.bad { color: var(--down); } .vd-chip.warn { color: #f59f00; }
.vd-act { font-size: 15px; font-weight: 600; line-height: 1.4; }
.sig-n { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* Track record (Score tab) */
.tr-box { margin-bottom: 12px; }
.tr-head { font-size: 18px; line-height: 1.35; margin: 6px 0 10px; }
.tr-sub { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.tr-gate { font-size: 13px; color: var(--muted); padding: 2px 0; }
.tr-gate.ok { color: var(--up); }
.tr-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.tr-t th { font-weight: 600; color: var(--muted); text-align: right; padding: 4px 4px; font-size: 11px; }
.tr-t td { text-align: right; padding: 5px 4px; border-top: 1px solid var(--line); }
.tr-t td.l, .tr-t th:first-child { text-align: left; }
.tr-more { margin-top: 12px; font-size: 13px; line-height: 1.5; display: grid; gap: 4px; }
.tr-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Key market moments banner (owner app, 14 Oct) */
.ke { background: var(--card); border-radius: 18px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid var(--line); }
.ke.live { border-color: var(--action); box-shadow: 0 0 0 1px var(--action-bg) inset; }
.ke-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ke-e + .ke-e { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.ke-top { display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left; padding: 2px 0; }
.ke-words { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.ke-when { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--watch-bg); color: var(--watch); white-space: nowrap; }
.ke-when.today, .ke-when.out { background: var(--action-bg); color: var(--action); }
.ke-when.after { background: var(--chip); color: var(--muted); }
.ke-t { font-weight: 700; flex: 1 1 auto; min-width: 0; }
.ke-lean { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ke-lean.up { color: var(--up); } .ke-lean.down { color: var(--down); }
.ke-m { font-size: 13px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ke-ml { color: var(--ink); margin-right: 4px; }
.ke-more { margin-top: 6px; }
.ke-p { font-size: 13.5px; margin-top: 5px; color: var(--ink); }
.ke-p.muted { color: var(--muted); font-size: 12.5px; }
.ke-take { color: var(--action); }
.ke-chev { color: var(--muted); font-size: 12px; flex: 0 0 auto; padding: 4px 0 0 4px; }

/* Position limits (Portfolio tab, owner) */
.lim-card { padding: 12px 14px; }
.lim-intro { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.lim-row { padding: 7px 0; }
.lim-row + .lim-row { border-top: 1px solid var(--line); }
.lim-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lim-sym { font-weight: 700; }
.lim-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lim-st { font-size: 12px; font-weight: 700; margin-left: auto; }
.lim-st.down { color: var(--down); } .lim-st.warn { color: var(--action); }
.lim-bar { height: 6px; border-radius: 999px; background: var(--chip); margin-top: 5px; overflow: hidden; }
.lim-fill { height: 100%; border-radius: 999px; background: var(--up); }
.lim-fill.near { background: var(--action); } .lim-fill.over, .lim-fill.cost { background: var(--down); }
.lim-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.lim-sub { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
.lim-foot { font-size: 13px; margin-top: 10px; color: var(--ink); }

/* Weekly review (Score tab, owner) */
.wk { padding: 14px 16px; margin-bottom: 12px; }
.wk-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wk-title { font-weight: 800; font-size: 16px; }
.wk-sec { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.wk-line { font-size: 13.5px; margin-top: 4px; }
.wk-line.muted { color: var(--muted); font-size: 12.5px; }
.wk-prob { margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.wk-p1 { font-size: 13.5px; }
.wk-p2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Long-range outlook (trial) */
.c-band3 { fill: var(--action); opacity: .08; }
.c-longline { fill: none; stroke: var(--action); stroke-width: 1.3; stroke-dasharray: 4 3; }
.c-lv { fill: var(--action); stroke: var(--card); stroke-width: 1; }
.lv-box { background: var(--card-2); border-radius: 14px; padding: 12px; margin: 10px 0; }
.lv-intro { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.lv-row { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.lv-w { width: 76px; font-weight: 700; font-size: 13.5px; }
.lv-pct { width: 48px; font-weight: 700; }
.lv-px { font-size: 12.5px; color: var(--muted); }
.lv-parts { margin-top: 6px; }
.lv-ph { font-size: 12px; font-weight: 700; color: var(--muted); }
.lv-part { font-size: 12.5px; margin-top: 2px; }
.lv-foot { font-size: 12px; color: var(--muted); margin-top: 8px; }
.gate { display: flex; gap: 8px; font-size: 13px; margin-top: 4px; }
.gate-ic { width: 16px; flex: 0 0 16px; text-align: center; font-weight: 800; color: var(--muted); }
.gate-ic.ok { color: var(--up); }
.wk-verdict { font-size: 12.5px; }
.ol-minor-h { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 8px 0 2px; }
.ol-row.minor .ol-body { font-size: 12.5px; color: var(--muted); }
.lim-money { font-size: 13px; margin: 0 0 8px; }
.pod-sugg-top { margin-bottom: 12px; }
.pod-grid:has(> .pod-note:only-child) { grid-template-columns: 1fr; }

/* 17 Oct: on the iPhone home-screen app the page runs under the status bar (black-translucent), so the
   pinned bars start below it, and a solid strip behind the clock hides content scrolling past. */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 20; pointer-events: none; }

/* 22 Oct: Portfolio and Score sub-tabs */
.subhide { display: none !important; }
.pane-subs .of-chip { font-size: 12.5px; padding: 9px 2px; }

/* 24 Oct: Ideas as four quarters (idea-card purple, each quarter tinted by its signal) */
.iq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.iq-tile { --q: #a9aaff; position: relative; overflow: hidden; text-align: left; font: inherit; cursor: pointer; color: #e6e6ff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--q) 16%, #191934) 0%, #16162c 70%); border: 1px solid color-mix(in srgb, var(--q) 35%, #2a2a50);
  border-radius: 20px; padding: 14px 13px 13px; display: flex; flex-direction: column; gap: 8px; min-height: 196px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.iq-tile::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--q); opacity: 0.85; }
.iq-tile:active { transform: scale(0.98); }
.iq-in { --q: #4fd18b; } .iq-out { --q: #ff7a7a; } .iq-review { --q: #f5b14c; } .iq-new { --q: #a9aaff; }
.iq-tile.iq-none { opacity: 0.5; }
.iq-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; }
.iq-title { white-space: nowrap; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--q); }
.iq-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; white-space: nowrap; flex-shrink: 0; color: #0d0d18; background: var(--q); }
.iq-names { display: flex; flex-direction: column; gap: 3px; }
.iq-line { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: #f2f2ff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iq-more { font-size: 11.5px; color: #8b8db0; }
.iq-act { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
.iq-label { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #c9caff; }
.iq-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.iq-chip { font-size: 11.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--q, #a9aaff) 28%, #22224a); border: 1px solid color-mix(in srgb, var(--q, #a9aaff) 45%, transparent); }
.iq-chip.iq-mixed { background: transparent; color: #f5b14c; border: 1px dashed #f5b14c; }
.iq-why { font-size: 11.5px; line-height: 1.3; color: #9b9cc8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iq-empty { margin-top: 6px; font-size: 13px; color: #8b8db0; }
.iq-stale .iq-tile { filter: saturate(0.6); opacity: 0.75; }
.iq-mixnote { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.35; color: #f5b14c; }
.iq-foot { margin: 8px 2px 4px; font-size: 12.5px; color: var(--muted); }
.iq-foot.iq-old { color: #f5b14c; }
.iq-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.iq-back { background: var(--card, #1a1b22); border: 0; color: #fff; font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.iq-htitle { font-weight: 800; font-size: 16px; color: var(--q); }
.iq-do { background: linear-gradient(160deg, color-mix(in srgb, var(--q, #a9aaff) 16%, #191934), #16162c); border: 1px solid color-mix(in srgb, var(--q, #a9aaff) 35%, #2a2a50); border-radius: 16px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.iq-note { font-size: 12.5px; line-height: 1.35; color: #f5b14c; }

/* 25 Oct: concise Why with More */
.why-more { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; padding: 0 0 0 4px; cursor: pointer; }
.why-src { color: #a9aaff; font-weight: 700; margin-left: 4px; }

/* 25 Oct: Ideas v2 - themes first, theme detail with chart and coin rows (lifecycle on trial). */
.iq-trows { display: flex; flex-direction: column; gap: 10px; }
.iq-trow { display: flex; flex-direction: column; gap: 5px; }
.iq-tname { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; font-weight: 700; color: #f2f2ff; line-height: 1.25; }
.iq-trow.big .iq-tname { font-size: 16px; }
.iq-wk { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--q); opacity: 0.9; white-space: nowrap; }
.iq-chip.iq-st-week { box-shadow: 0 0 0 1.5px #f5b14c inset; }
.iq-chip.iq-st-now { box-shadow: 0 0 0 1.5px #ff7a7a inset; }
.iq-lone { margin: 4px 2px 8px; }
.ttheme { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; border-left: 3px solid var(--q); cursor: pointer; font: inherit; color: inherit; }
.tt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: #a8aacb; }
.tt-open { margin-left: auto; color: var(--q); font-weight: 700; }
.tdetail { border-left: 3px solid var(--q); display: flex; flex-direction: column; gap: 8px; }
.td-sub { font-size: 12.5px; font-weight: 700; color: var(--q); }
.td-nums { font-size: 13px; color: #d6d7ee; }
.td-why { font-size: 13px; color: #a8aacb; line-height: 1.4; }
.td-trial { font-size: 11.5px; color: #8b8db0; line-height: 1.35; border-top: 1px solid #2a2b45; padding-top: 8px; }
.tchart-svg { width: 100%; height: auto; display: block; }
.tc-base { stroke: #4a4c70; stroke-dasharray: 3 3; stroke-width: 1; }
.tc-mark { stroke: #3a3c5c; stroke-width: 1; }
.tc-lab { fill: #8b8db0; font-size: 10px; }
.tc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tc-line.up { stroke: #4fd18b; } .tc-line.down { stroke: #ff7a7a; }
.tcoin { display: flex; flex-direction: column; gap: 8px; }
.tc-top { display: flex; align-items: center; gap: 8px; }
.tc-sym { font-size: 15px; }
.tspark { width: 72px; height: 26px; flex-shrink: 0; }
.tspark-none { color: #8b8db0; width: 72px; text-align: center; }
.tc-nums { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: #c7c8e4; gap: 1px; white-space: nowrap; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #23243d; color: #c7c8e4; }
.tc-tag.w-acc { color: #4fd18b; } .tc-tag.w-dist { color: #ff7a7a; }
.tc-tag.st-idea { color: #a9aaff; } .tc-tag.st-week { background: #3a2f17; color: #f5b14c; } .tc-tag.st-now { background: #3b1d24; color: #ff9a9a; }
.tc-act { font-size: 13.5px; color: #eeeefc; line-height: 1.35; }
.tc-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-go { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-none { font-size: 12px; color: #8b8db0; }
.ttheme, .tdetail, .tcoin { padding: 14px 16px; margin-bottom: 10px; box-sizing: border-box; }
.tcoin .avatar, .tc-top > :first-child { flex-shrink: 0; }
/* 25 Oct: tax year and whole-portfolio fall boxes on Portfolio > Profit */
.tx-box { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #1b1c2e; display: flex; flex-direction: column; gap: 6px; }
.tx-h { font-size: 13px; font-weight: 700; color: #e6e6ff; }
.tx-bar { height: 8px; border-radius: 999px; background: #2a2b45; overflow: hidden; }
.tx-fill { height: 100%; background: #4fd18b; } .tx-fill.hi { background: #f5b14c; }
.tx-l { font-size: 13px; color: #c7c8e4; line-height: 1.4; }
.tx-n { font-size: 12px; color: #8b8db0; line-height: 1.4; } .tx-n.now { color: #f5b14c; }
.tx-box.dd.hit { box-shadow: 0 0 0 1.5px #ff7a7a inset; } .tx-box.dd.hit .tx-n { color: #ff9a9a; }
/* 25 Oct: missed moves on Score */
.mx-box { margin-top: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mx-groups { display: flex; flex-direction: column; gap: 4px; }
.mx-g { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid #26273a; }
.mx-r { min-width: 0; } .mx-n { white-space: nowrap; color: #c7c8e4; font-variant-numeric: tabular-nums; }
.mx-det summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #a9aaff; padding: 6px 0; }
.mx-why { font-size: 12px; color: #a8aacb; }
.dp-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; padding: 5px 0; border-top: 1px solid #2a2b45; color: #c7c8e4; }
.dp-row.past { color: #8b8db0; } .dp-row.open .dp-v, .dp-row.next .dp-v { color: #4fd18b; font-weight: 600; }
.dp-v { font-variant-numeric: tabular-nums; }
/* 25 Oct: "Why did you do this?" form on the card */
.why-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.why-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.why-chip { font: inherit; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--ink); border: 0; cursor: pointer; }
.why-ta { font: inherit; font-size: 14px; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); resize: vertical; }
.why-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.why-item:first-child { border-top: 0; }
.why-h { font-weight: 700; font-size: 14.5px; } .why-l { font-size: 13.5px; } .why-a { font-size: 12.5px; color: var(--muted); }
.why-skip { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.why-msg { font-size: 12.5px; color: var(--muted); align-self: center; }
/* 25 Oct (Thomas): symmetric quarters that fit the screen; each theme a distinct block. */
.iq-grid { grid-template-rows: 1fr 1fr; }
.iq-tile { min-height: 0; height: clamp(268px, 37vh, 320px); gap: 7px; padding: 13px 12px 12px; }
.iq-tbs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.iq-tb { flex-shrink: 0; padding: 7px 8px; border-radius: 12px; background: color-mix(in srgb, var(--q) 9%, rgba(255,255,255,0.03)); border: 1px solid color-mix(in srgb, var(--q) 22%, transparent); display: flex; flex-direction: column; gap: 5px; }
.iq-tbh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.iq-tbn { min-width: 0; font-size: 12.5px; font-weight: 700; color: #f2f2ff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iq-tb .iq-wk { font-size: 9.5px; flex-shrink: 0; }
.iq-chips.sm { gap: 3px; flex-wrap: nowrap; overflow: hidden; }
.iq-chips.sm .iq-chip { font-size: 10.5px; padding: 2px 6px; flex-shrink: 0; }
.iq-chip.iq-plus { background: transparent; border-style: dotted; color: #c9caff; }
.iq-tile .iq-more { margin-top: auto; font-size: 11px; }
.iq-tile .iq-label { font-size: 10px; }
.iq-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; margin: 0; font-size: 12.5px; }
.iq-eicon { font-size: 26px; color: var(--q); opacity: 0.5; }
.iq-mixnote { font-size: 12px; }
.iq-top { flex-wrap: nowrap; }
.iq-tile .iq-n { min-width: 24px; height: 24px; padding: 0 6px; font-size: 12px; }
/* 25 Oct: market moments as a one-line ticker under the menu; tap for the full card */
.ke-tick { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; min-width: 0; }
.ke-tick.live { border-color: var(--action); }
.ke-dot { color: var(--action); font-size: 9px; flex-shrink: 0; }
.ke-slot { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ke-ti { white-space: nowrap; }
.ke-tick .ke-chev { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.ke-close { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }

/* 25 Oct (Thomas): the two menus lead the screen. Top menu: one dark track, the open tab lit in the
   app's accent with a soft glow. Sub-menu: a segmented track; each list keeps its own colour (Do now red,
   This week amber, Ideas violet, Watch blue), and the open one is tinted with it and underlined. */
.tabs { gap: 2px; padding: 8px 4px 10px; isolation: isolate; box-shadow: 0 10px 14px -12px rgba(0,0,0,0.9); }
.tabs::after { content: ''; position: absolute; inset: 6px 0 8px; border-radius: 18px; background: #15161f; border: 1px solid #262838; z-index: -1; }
.tabs > button { background: transparent; color: #b4b6c8; font-weight: 700; font-size: 13.5px; padding: 9px 6px; border: 1px solid transparent; border-radius: 14px; }
.tabs > button.on { background: linear-gradient(135deg, #6e7bff, #8f6bff); color: #fff; border-color: rgba(255,255,255,0.12); box-shadow: 0 4px 14px rgba(110,123,255,0.45); }
.tabs > button .badge { background: rgba(110,123,255,0.22); color: #d9dcff; }
.tabs > button.on .badge { background: #fff; color: #4b55d6; font-weight: 800; }

.sub-bar { gap: 0; padding: 4px; border-radius: 16px; background: #15161f; border: 1px solid #262838; margin: 2px 0 12px; }
.sub-bar .of-chip { background: transparent; color: #a3a5b8; border-radius: 12px; position: relative; font-weight: 700; }
.sub-bar .of-chip.on { background: color-mix(in srgb, var(--g, #6e7bff) 18%, #1d1e2a); color: #fff; }
.sub-bar .of-chip.on::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 2.5px; border-radius: 2px; background: var(--g, #6e7bff); }
.sub-bar .g-now { --g: var(--urgent); } .sub-bar .g-week { --g: var(--action); } .sub-bar .g-opp { --g: #a9aaff; } .sub-bar .g-watch { --g: var(--watch); }
.sub-bar .sub-n { color: var(--g, inherit); font-weight: 800; }
.sub-bar .sub-n.hot { background: var(--g, var(--action)); color: #111; }
.sub-bar .sub-n.zero { color: #6a6c80; font-weight: 600; }

/* 29 Oct: sell plan to December */
.plan-box { padding: 10px 14px; margin: 0 0 10px; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; background: none; border: 0; color: inherit; padding: 2px 0; font: inherit; text-align: left; cursor: pointer; }
.plan-t { font-weight: 700; font-size: 15px; }
.plan-s { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.plan-week { border-top: 1px solid rgba(255,255,255,.07); padding: 8px 0 4px; }
.plan-week.now .plan-wh { color: #ffcf4a; }
.plan-wh { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.plan-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; font-size: 13.5px; padding: 3px 0; align-items: baseline; }
.plan-row.muted { display: block; color: var(--muted); font-size: 12.5px; }
.plan-sym { font-weight: 700; }
.plan-st { font-size: 12px; white-space: nowrap; } .plan-st.up { color: #3ccf7a; } .plan-st.down { color: #ff6b6b; } .plan-st.muted { color: var(--muted); }
.plan-foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.plan-ev { font-size: 12.5px; padding: 3px 0 3px 10px; border-left: 2px solid rgba(255,207,74,.45); margin: 2px 0 4px; }
.plan-evd { font-weight: 700; margin-right: 6px; color: #ffcf4a; }
.plan-evt { color: var(--ink, #eef); }
.plan-up { color: #3ccf7a; font-size: 12px; margin-top: 1px; }
.plan-surge { font-size: 12.5px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(60,207,122,.10); color: #bff0d2; }
.nc-legend { font-size: 12.5px; color: var(--muted, #9aa3b8); margin-bottom: 6px; }
.nc-ck.na { color: var(--muted, #9aa3b8); }
.nc-t.budget-over { color: #ff6b6b; font-weight: 600; }
.nc-t.budget-near { color: #ffcf4a; }
.ke-time { font-size: 12.5px; color: #ffcf4a; margin: 2px 0; }
.fl-amber { color: #ffcf4a; }
.fl-red, .fl-storm { color: #ff6b6b; font-weight: 600; }
.fl-topic { font-family: ui-monospace, Menlo, monospace; user-select: all; -webkit-user-select: all; background: rgba(255,255,255,.06); padding: 6px 8px; border-radius: 8px; margin: 4px 0; word-break: break-all; }

.tp { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(124,108,255,.10); border: 1px solid rgba(124,108,255,.30); }
.tp-h { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #b9b0ff; }
.tp-o { font-size: 15px; font-weight: 600; margin: 4px 0 6px; }
.tp-n { font-size: 12.5px; color: var(--muted, #9aa3b8); margin-bottom: 6px; }
.tp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-form { display: grid; gap: 8px; margin-top: 8px; }
.tp-form input, .tp-form textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.06); color: inherit; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px; font: inherit; }
.tp-l { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted, #9aa3b8); }

.risk-warn { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; margin: 8px 0 4px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255,90,95,.35); background: rgba(255,90,95,.08); color: var(--ink, #eef); font: inherit; font-size: 12.5px; line-height: 1.35; cursor: pointer; }
.risk-warn u { color: #ffb3b5; }
.rw-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--down, #ff5a5f); margin-top: 5px; }
.risk-sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.risk-sheet { background: var(--card, #1b1d24); max-width: 560px; width: 100%; padding: 18px 18px 24px; border-radius: 18px 18px 0 0; font-size: 14px; line-height: 1.45; }
.risk-sheet h3 { margin: 0 0 8px; }
.risk-sheet p { margin: 0 0 10px; }
.pb-box .plan-head { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; } .pb-box .plan-t { white-space: normal; }

.why-lab { display: block; font-size: 12.5px; font-weight: 700; color: #b9b0ff; margin: 8px 0 4px; }
.why-form .why-ta { width: 100%; box-sizing: border-box; min-height: 64px; border: 1.5px solid rgba(124,108,255,.65); background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px; color: inherit; font: inherit; }
.why-form .why-ta:focus { outline: none; border-color: #9d8fff; box-shadow: 0 0 0 3px rgba(124,108,255,.25); }
.why-form .why-chips { margin-top: 8px; }
/* 1-2 Nov: score bar and cockpit Overview */
.sb{position:relative;height:12px;border-radius:999px;margin:10px 0 6px;background:linear-gradient(90deg,#ff5a5f,#f0a04b 35%,#ffcf4a 55%,#3ccf7a)}
.sb.sb-top{background:linear-gradient(90deg,#3ccf7a,#ffcf4a 45%,#f0a04b 65%,#ff5a5f)}
.sb i{position:absolute;top:-4px;width:6px;height:20px;margin-left:-3px;border-radius:3px;background:#fff;box-shadow:0 0 0 2px rgba(0,0,0,.45)}
.sb s{position:absolute;top:2px;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:rgba(255,255,255,.55)}
.sb.sb-s{height:7px;margin:5px 0 2px}.sb.sb-s i{top:-3px;height:13px;width:4px;margin-left:-2px}.sb.sb-s s{display:none}
.sb-row{display:flex;align-items:center;gap:8px;max-width:240px}.sb-row .sb{flex:1}.sb-n{font-size:12px;font-weight:600;min-width:38px}
.sb-n.red,.ov-big.red,.nb-ar.red{color:var(--down)}.sb-n.amber,.ov-big.amber,.nb-ar.amber{color:#f0a04b}.sb-n.green,.ov-big.green,.nb-ar.green{color:var(--up)}
.sb-spark{width:100%;height:44px;display:block;margin:6px 0}
.ov-todo{display:block;width:100%;text-align:left;font:inherit;font-weight:700;font-size:16px;color:var(--ink);background:rgba(124,108,255,.18);border:1.5px solid rgba(124,108,255,.6);border-radius:14px;padding:12px 16px;margin:4px 0 12px;cursor:pointer}
.ov-calm{color:var(--muted);margin:4px 2px 12px}
.ov-lbl,.nb-h{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.ov-head{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px}.ov-big{font-size:30px;font-weight:800}
.ov-sub{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:13px}.ov-link{color:var(--accent);cursor:pointer}
.ov-note,.nb-sub{color:var(--muted);font-size:13px;margin-top:4px}
.ov-since ul{margin:8px 0 0;padding-left:20px}.ov-since li{margin:3px 0}
.ov-rings{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center;margin-top:10px}.ov-ring{width:64px;height:64px}.ov-rl{color:var(--muted);font-size:12px}
.ov-more{margin:4px 0 16px}
.nearest .nb-row{display:grid;grid-template-columns:56px 1fr 18px;gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--line);cursor:pointer}
.nb-sym{font-size:15px}.nb-t{font-size:12.5px;color:var(--muted)}
.ov-score,.ov-plans,.ov-since,.nearest,.ov-notes{padding:14px 16px;margin-bottom:12px}
.ov-flip{color:var(--up);font-size:13px;margin-top:6px}
/* 1 Nov: user-journey quick wins */
.ov-hero{margin:4px 2px 10px}.ov-total{font-size:30px;font-weight:800}.ov-hsub{color:var(--muted);font-size:14px}
.ov-buy{border-radius:12px;padding:10px 14px;margin:0 0 10px;font-size:14px;cursor:pointer;background:var(--card)}.ov-buy.paused,.ov-buy.wait{color:#f0a04b}.ov-buy.ready{color:var(--up)}.ov-buy.mixed{color:var(--ink)}
.ov-book{font-size:14px;margin:0 2px 10px;color:var(--ink)}
.sb-acts{font-size:12px;color:var(--muted);margin-top:2px;max-width:280px}.sb-rec{font-size:12px;color:var(--up);margin-top:2px}
.cc-box{margin:0 0 12px}.cc-row{display:flex;gap:8px;align-items:stretch}.cc-row .primary-pill{margin:0;padding:0 18px;height:44px;flex-shrink:0}.cc-row input{flex:1;min-width:0;height:44px;box-sizing:border-box;background:var(--card);color:var(--ink);border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;text-transform:uppercase}
.cc-box{max-width:100%;overflow:hidden}.cc-res{background:var(--card);border-radius:14px;padding:12px 14px;margin-top:8px}.cc-hd{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.cc-dim{display:grid;grid-template-columns:96px minmax(0,1fr);overflow-wrap:anywhere;gap:8px;padding:7px 0;border-top:1px solid var(--line);font-size:13px}.cc-k{color:var(--muted)}.cc-signs{margin-top:8px;font-size:13px}.cc-note,.cc-err{color:var(--muted);font-size:12px;margin-top:6px}
.ov-next{font-size:13px;margin:0 2px 10px;color:var(--muted)}.ov-next b{color:var(--ink)}
.sb-risk{font-size:12px;color:var(--down);margin-top:2px}.sb-cause{font-size:12px;color:var(--muted);margin-top:2px;max-width:280px}
.sb-n,.ov-big,.sb-rec{cursor:pointer}.coin-plan{background:var(--card-2,#1b1e27);border-radius:12px;padding:10px 12px;margin:6px 0 10px;font-size:13px}.coin-plan ul{margin:6px 0 0;padding-left:18px}
.stake-box{padding:14px 16px;margin-top:12px}.stake-row{padding:4px 0;font-size:14px}
/* 1 Nov: smooth navigation */
.pane:not(.hidden){animation:wl-in .2s ease-out}
@keyframes wl-in{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
.back-chip{position:fixed;left:16px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:45;box-shadow:0 6px 20px rgba(0,0,0,.45);padding:10px 16px;border-radius:999px;border:0;background:#4b3fd0;color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.flash{animation:wl-flash 1.6s ease-out}
@keyframes wl-flash{0%{box-shadow:0 0 0 3px rgba(124,108,255,.85);border-radius:14px}100%{box-shadow:0 0 0 3px rgba(124,108,255,0);border-radius:14px}}
.five{margin:8px 0;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04);font-size:12.5px}.five-h{color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:3px}
.five-r{padding:1px 0}.five-r.ok{color:var(--up)}.five-r.no{color:#f0a04b}.five-r.nk{color:var(--muted)}
.rules-box{padding:14px 16px;margin-top:12px}.rules-form{display:grid;gap:10px;margin:10px 0}.rl{display:grid;gap:4px;font-size:13px;color:var(--muted)}
.rl input{background:var(--bg);color:var(--ink);border:1.5px solid var(--line);border-radius:10px;padding:9px 10px;font:inherit}.rl input[type=checkbox]{width:22px;height:22px;justify-self:start}.rh{font-size:11px}
html,body{overflow-x:hidden;max-width:100%}
/* 2 Nov: scenarios, ledger, prompt track line, guard */
.ov-scen{padding:14px 16px;margin-bottom:12px}.scen-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}.scen{text-align:center;background:rgba(255,255,255,.04);border-radius:10px;padding:8px 4px}
.scen-k{font-size:12px;color:var(--muted)}.scen-v{font-size:18px;font-weight:700}.scen-p{font-size:12px;color:var(--muted)}
.ledger-box{padding:14px 16px;margin-bottom:12px}.ledger-total{font-size:18px;font-weight:700;margin:6px 0}.ledger-row{font-size:13px;padding:3px 0}
.tp-track{font-size:12.5px;color:var(--muted);margin-bottom:6px}.tp-guard{color:#f0a04b;font-size:13px;margin-bottom:6px}
.sw-box{padding:14px 16px;margin:0 0 12px}.sw-row{padding:8px 0;border-top:1px solid var(--line);cursor:pointer}.sw-t{font-size:13px;color:var(--muted)}.sw-v{font-size:14px;font-weight:600}
.sw-row.ok .sw-v{color:var(--up)}.sw-row.mid .sw-v{color:#f0a04b}.sw-row.low .sw-v{color:var(--down)}

/* 2 Nov: limit sells as five columns */
.sw-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr) minmax(0,.8fr) minmax(0,.85fr) minmax(0,1.25fr);gap:6px;align-items:start}
.sw-hd{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:6px 0 4px}
.sw-r{padding:9px 0;border-top:1px solid var(--line);cursor:pointer;font-size:13px}
.sw-c{white-space:pre-line;line-height:1.35;min-width:0;overflow-wrap:anywhere}
.sw-c:first-child{font-weight:600}.sw-num{font-variant-numeric:tabular-nums}
.sw-act{font-weight:700}.sw-r.ok .sw-act{color:var(--up)}.sw-r.mid .sw-act{color:#f0a04b}.sw-r.low .sw-act{color:var(--down)}
.sw-num{white-space:nowrap}.sw-sub{color:var(--muted);font-size:11.5px;font-weight:400}.sw-sm{font-size:11px}.sw-coin>div:first-child{font-weight:600}.sw-c:first-child{font-weight:400}
.sw-r.none .sw-act{color:var(--muted)}.sw-act .sw-sub{font-weight:400}
.sw-hd>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rb-box .sw-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,.7fr) minmax(0,.95fr) minmax(0,1.3fr)}
.ob-clash{font-size:12.5px;line-height:1.4;padding:7px 10px;margin:6px 0;border-radius:8px;background:rgba(240,160,75,.12);color:#f0a04b}.ob-clash.bad{background:rgba(240,80,80,.12);color:var(--down)}
.ob-cont{border-top:1px dashed var(--line)}.ob-buy>div:first-child{color:#7fb3ff}.ob-sell>div:first-child{color:inherit}
.sw-r.deep .sw-act{color:#7fb3ff}.ob-pair{font-size:12px;color:var(--muted);padding:2px 0 8px}
.sw-box .sw-act .sw-sub{color:inherit;opacity:.85}.ob-buy .sw-sub{color:#7fb3ff}.ob-buy>div:first-child{color:inherit}
.sub-bar.sub5{justify-content:space-between}.sub-bar.sub5 .of-chip{font-size:12px;padding:9px 3px;min-width:0}.sub-bar.sub5{grid-template-columns:repeat(5,auto)!important;overflow:hidden}.sub-bar.sub5 .sub-n{min-width:1.1em}.sub-bar.sub5 .sub-n.hot{padding:1px 5px}.sub-bar .g-limits{--g:#7fb3ff}
.ov-weak{display:block;width:100%;text-align:left;background:transparent;border:0;padding:4px 0 8px;font-size:13.5px;font-weight:700;cursor:pointer;color:var(--muted)}
.ov-weak.wk-watch{color:#f0a04b}.ov-weak.wk-weakening{color:var(--down)}
.wk-list{margin:0 0 10px}.wk-c{font-size:13px;line-height:1.4;padding:3px 0}.wk-c.on{color:var(--down)}.wk-c.off{color:var(--muted)}.wk-c.unk{color:var(--muted)}
.sit-box{padding:14px 16px;margin:0 0 12px}.sit-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sit-stance{font-size:13px;font-weight:800;padding:4px 10px;border-radius:999px;background:#262838;color:#cfd2e6;white-space:nowrap}
.sit-stance.st-sell{background:rgba(240,80,80,.18);color:var(--down)}.sit-stance.st-act{background:rgba(240,160,75,.18);color:#f0a04b}.sit-stance.st-buy{background:rgba(60,200,120,.16);color:var(--up)}
.sit-event{font-size:13px;font-weight:700;color:#f0a04b;margin:8px 0 0}
.sit-driver{font-size:15px;font-weight:600;line-height:1.4;margin:8px 0}
.sit-k{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:10px 0 3px}
.sit-li{font-size:13.5px;line-height:1.4;padding:2px 0}.sit-why>div:last-child{font-size:13.5px;line-height:1.4}.sit-src{color:#8ea2ff;font-size:12px}
.ch-opts{display:grid;gap:8px;margin:10px 0 4px}.ch-opt{text-align:left;background:#1d1e2a;border:1px solid #2c2e40;border-radius:12px;padding:10px 12px;color:inherit;cursor:pointer}
.ch-opt.sug{border-color:#6e7bff;background:rgba(110,123,255,.12)}.ch-l{font-weight:800;font-size:14px;margin-bottom:3px}.ch-opt.sug .ch-l{color:#a9b2ff}.ch-t{font-size:13px;line-height:1.4;color:#c5c8da}.ch-opt.busy{opacity:.5}
.sit-choice{font-size:13.5px;margin-top:8px;font-weight:600}
.sit-gauges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 6px}.sit-g{background:#1d1e2a;border-radius:12px;padding:10px 8px;text-align:center}
.sit-gv{font-size:22px;font-weight:800;line-height:1.1}.sit-gl{font-size:11.5px;color:var(--muted);margin-top:3px}.sit-gs{font-size:11.5px;color:var(--muted)}
.sit-g.bad .sit-gv{color:var(--down)}.sit-g.mid .sit-gv{color:#f0a04b}.sit-g.good .sit-gv{color:var(--up)}
.sit-nx{font-size:13px;color:var(--muted);margin:4px 0}.sit-more{background:transparent;border:0;color:#8ea2ff;font-weight:700;font-size:13px;padding:6px 0 0;cursor:pointer}
.ch-opt:disabled{opacity:.45}.ch-opt.picked{opacity:1;border-color:var(--up);background:rgba(60,200,120,.12)}.ch-opt.busy.picked{opacity:1}.ch-wait{font-size:13px;color:var(--up);font-weight:700;padding:4px 2px}
.sit-stance{border:0;cursor:pointer}.sit-mean{font-size:12.5px;color:var(--muted);margin:4px 0 0}
.sit-mean.sit-next1{color:#e6e8f5;font-size:13.5px;line-height:1.45}
.plan-closed{font-size:13.5px;line-height:1.45;padding:12px 14px;color:var(--muted)}
:root{--cyc-line:#2a2c3d}.cyc{margin:10px 0 2px}.cyc svg{display:block;width:100%;max-width:340px;height:auto;margin:0 auto}.cyc-l{font-size:11.5px;color:var(--muted);text-align:center;margin-top:2px}
.cyc{cursor:zoom-in}
.cyc-full{position:fixed;inset:0;z-index:50;background:var(--bg,#0f1018);display:flex;flex-direction:column;justify-content:center;gap:10px;padding:calc(env(safe-area-inset-top,0px) + 12px) max(16px,env(safe-area-inset-right,0px)) calc(env(safe-area-inset-bottom,0px) + 12px) max(16px,env(safe-area-inset-left,0px));cursor:zoom-out}
.cyc-full svg{display:block;width:100%;height:auto;max-height:78vh;margin:0 auto}
.cyc-fh{display:flex;justify-content:space-between;align-items:center;font-size:15px}
.cyc-x{background:#262838;border:0;color:inherit;border-radius:999px;width:36px;height:36px;font-size:16px;cursor:pointer}
.cyc-full .cyc-l{font-size:12.5px}
.cyc-full{justify-content:flex-start;overflow-y:auto}
.cyc-full svg{max-height:52vh}
.cyc-fb{background:var(--card,#181a26);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;font-size:13px;cursor:default}
.cyc-sh{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#9aa1bd;margin-top:4px}
.cyc-dist{display:flex;align-items:center;gap:8px;line-height:1.3}
.cyc-bar{flex:0 0 48px;height:6px;border-radius:3px;background:#2a2d40;overflow:hidden}
.cyc-bar i{display:block;height:100%;background:#8ea2ff}
.cyc-rule{display:flex;flex-direction:column;gap:3px;border-top:1px solid #2a2d40;padding-top:8px}
.cyc-ch,.cyc-lap{color:#b8bdd6}
.cyc-near{font-weight:600}
.cl-badge{display:inline-block;font-size:10.5px;font-weight:600;padding:1px 6px;border-radius:999px;vertical-align:middle;background:#262838;color:#9aa1bd}
.cl-fall{background:rgba(255,92,92,.14);color:var(--down,#ff6b6b)}
.cl-surge{background:rgba(52,199,89,.14);color:var(--up,#34c759)}
.cl-centre{background:rgba(142,162,255,.14);color:#8ea2ff}
.cyc-coin{margin:4px 0 10px}
.cyc-ct{font-size:12.5px;color:#c9cde3;margin-bottom:2px}

.cg-list{display:flex;flex-direction:column;gap:6px;margin-top:8px;font-size:12.5px;color:#b8bdd6}
.cg-row{line-height:1.35}
.pe-m{display:inline-block;width:34px;height:6px;border-radius:3px;margin-right:6px;vertical-align:middle;background:linear-gradient(90deg,#8ea2ff var(--f),#2a2d40 var(--f))}
.pe-m.sell-into,.pe-m.fall-priced{background:linear-gradient(90deg,var(--up) var(--f),#2a2d40 var(--f))}
.cr-chart svg{display:block;width:100%;height:70px;margin-top:8px}
.ch-x{font-size:11.5px;color:#9aa1bd;margin-top:4px}
.sp-hd{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sp-refresh{font-size:12px;padding:6px 10px}
.sp-row{border-top:1px solid #2a2d40;padding:8px 0}
.sp-top{cursor:pointer;font-size:13.5px}
.sp-news.clear{color:var(--up)}.sp-news.caution{color:#f0b44c}.sp-news.stop{color:var(--down)}.sp-news.none{color:#9aa1bd}
.sp-det{margin-top:6px;display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:#b8bdd6}
.sp-k{color:#9aa1bd}.sp-order{color:inherit;font-weight:600;margin-top:4px}.sp-hold{color:#f0b44c}
.cyc-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}.cyc-links-sm{justify-content:center}.cyc-go{font-size:12px;padding:5px 10px}.cyc-none{font-size:12px;color:#9aa1bd}

/* 4 Nov (Thomas: landscape, the diagram vanished): flex items keep their size; landscape gives the loop most of the screen and the text scrolls under it. */
.cyc-full>*{flex-shrink:0}
@media (orientation:landscape){.cyc-full svg{width:auto;height:72vh;max-height:none;max-width:100%}}
.ot-dry{border-left:3px solid #8ea2ff;padding-left:8px}.ot-dry.ot-no{border-left-color:#f0a04b}
.cf-box{margin:8px 0 4px}.cf-t{width:100%}.cf-t th,.cf-t td{text-align:center}
.cyc-bar.up i{background:var(--up)}.cyc-bar.dn i{background:var(--down)}.cyc-up{color:#7fd6a0}.cyc-dn{color:#f08a8a}
.ol-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}.ol-row{display:flex;align-items:center;gap:8px;font-size:14px}.ol-row .ol-t{flex:1;min-width:0}.ol-mk{width:16px;text-align:center;color:var(--muted)}.ol-done{opacity:.55}.ol-done .ol-mk{color:var(--up)}.ol-cp{padding:4px 10px;font-size:12.5px}.ol-n{font-size:12.5px;color:var(--muted)}
.ot-place{display:block;width:100%;margin:10px 0 4px;padding:12px;border-radius:12px;border:0;background:#5b6cff;color:#fff;font-weight:600;font-size:15px}.ot-place.armed{background:#e0612f}.ot-place:disabled{opacity:.6}
.cyc-sec{font-weight:600}.cyc-sec.sell{color:#f08a8a}.cyc-sec.buy{color:#7fd6a0}
.pot-tag{background:#2b3360;color:#c9d0ff;font-size:11px;margin-left:4px}
/* 12 Nov: auto's stop window */
.au-wait { border-left: 3px solid #f0b45a; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(127,127,127,.15); }
.au-t { flex: 1; min-width: 0; }
.au-brk { color: #f0b45a; }
.au-all { margin-top: 8px; }
/* 13 Nov: 6 Dec review pack */
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rp-ask { font-weight: 600; margin: 4px 0 6px; }
.rp-chip { font-size: 12px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.rp-met { background: rgba(46,160,90,.18); color: var(--up); }
.rp-no { background: rgba(220,80,80,.15); color: var(--down); }
.rp-bld { background: rgba(127,127,127,.15); }
.rp-dec { background: rgba(240,180,90,.2); color: #d08a1a; }
/* 13 Nov: sector scorecard */
.sc-grid { grid-template-columns: 1.5fr 1fr 1fr .8fr; }
/* 14 Nov: market backdrop */
.bd-row { display: grid; grid-template-columns: 16px 1fr; gap: 2px 6px; padding: 5px 0; border-top: 1px solid rgba(127,127,127,.12); }
.bd-ic { font-size: 11px; line-height: 18px; }
.bd-nm { font-weight: 600; font-size: 13px; }
.bd-tx { grid-column: 2; font-size: 12px; opacity: .8; }
.bd-head .bd-ic { color: var(--down); } .bd-tail .bd-ic { color: var(--up); } .bd-na { opacity: .55; }
.bd-k2 { margin-top: 10px; }
.cf-box { margin-top: 12px; }
.cyc-nodown { opacity: .75; padding: 4px 0 2px; }
/* 15 Nov: which way next */
.way-card{padding:14px 16px;margin-bottom:12px}
.way-even{margin-top:10px}
.way-bar{display:flex;height:26px;border-radius:13px;overflow:hidden;margin:8px 0 6px;gap:2px}
.way-s{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;min-width:4px}
.way-s.dn{background:#c2524f}.way-s.nn{background:#5a6075}.way-s.up{background:#2f9e68}
.way-head{font-weight:600;font-size:14px}

/* 15 Nov: option D */
.ch-d{display:flex;flex-direction:column;gap:8px;margin-top:8px}.ch-in{background:var(--card);color:inherit;border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:10px 12px;font-size:16px}

/* 15 Nov (Thomas: "data away from edges and legible"): profit tables */
#profit-card{padding:14px 16px}
#profit-card .tr-t td,#profit-card .tr-t th{white-space:nowrap;padding:7px 5px}
#profit-card .tr-t td:first-child,#profit-card .tr-t th:first-child{padding-left:0}
#profit-card .tr-t td:last-child,#profit-card .tr-t th:last-child{padding-right:0}
.tr-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -2px}
.tr-sells{font-size:12.5px;font-variant-numeric:tabular-nums}
.tr-sells .tr-dim{font-size:11px;color:var(--muted);margin-top:2px}
.tr-sells td{vertical-align:top}

/* 15 Nov: Overview (one page: value, next step, three tiles, one panel) */
.ov2-top{display:flex;align-items:baseline;gap:10px}.ov2-today{font-weight:600;font-size:15px}
.ov2-line{font-size:13.5px;color:var(--muted);margin-top:3px}
.ov2-step{border:1px solid #3a3360;background:#1d1a2e;padding:14px 16px;border-radius:18px}
.ov2-panel{padding:14px 16px;border-radius:18px}.ov2-head{font-size:19px;font-weight:700;line-height:1.25;margin:4px 0 6px}
.ov2-why{font-size:13.5px;color:#c9c5e0;line-height:1.4;margin-bottom:6px}.ov2-go{margin-top:6px;width:100%}
.ov2-tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:8px;margin:12px 0 10px}
.ov2-tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;min-height:80px;padding:10px;border-radius:14px;background:var(--card);border:1px solid rgba(255,255,255,.08);color:inherit;cursor:pointer;font-family:inherit}
.ov2-tile.on{border:2px solid #8e7dff;background:#23202f}
.ov2-k{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.3px;text-transform:uppercase}
.ov2-v{font-size:19px;font-weight:800;line-height:1.15}.ov2-tile.wide .ov2-v{font-size:15px}
.ov2-v.bad,.ov2-v.red{color:#ef6b63}.ov2-v.mid,.ov2-v.amber{color:#f2a54a}.ov2-v.good,.ov2-v.green{color:#43c383}
.ov2-s{font-size:11px;color:#b4b4c2;line-height:1.3}
.ov2-ph{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.ov2-pt{font-size:16px;font-weight:700}
.ov2-i{width:30px;height:30px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:transparent;color:inherit;font-weight:700;cursor:pointer}
.ov2-tip{font-size:13px;line-height:1.45;background:rgba(255,255,255,.05);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.ov2-li{font-size:13.5px;line-height:1.45;margin:4px 0}.ov2-sub{font-size:13px;font-weight:700;margin:10px 0 2px}
.ov2-hrow{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px}.ov2-hk{font-size:12px;font-weight:700}
.ov2-hn{font-size:12px;color:var(--muted);margin:2px 0 6px 66px}
.ov2-foot{display:flex;justify-content:space-between;gap:12px;margin:14px 2px 4px;font-size:13px}

/* 15 Nov: colours on the value lines; a bigger figure 8 on the Overview */
.ov2-g{color:#43c383;font-weight:600}.ov2-r{color:#ef6b63;font-weight:600}.ov2-a{color:#f2a54a;font-weight:600}
.ov2-line{font-size:14px}
.ov2-panel .cyc{margin:6px -8px 4px}
.ov2-panel .cyc svg{max-width:none;width:100%}
.ov2-panel .cyc svg text{font-size:10.5px}
.ov2-panel .cyc-l{font-size:14px;line-height:1.4;margin-top:6px}
.ov2-panel .cyc-sec{font-size:17px;font-weight:700}

/* 16 Nov: Which way next tile: each label with its arrows underneath */
.ov2-cols{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:6px;width:100%}
.ov2-col{display:flex;flex-direction:column;gap:1px}
.ov2-cl{font-size:13px;font-weight:700}.ov2-ar{font-size:20px;font-weight:800;line-height:1.1;letter-spacing:2px}.ov2-cs{font-size:10.5px;color:var(--muted)}
.ov2-ar.mid{color:#f2a54a}.ov2-ar.good{color:#43c383}.ov2-ar.bad{color:#ef6b63}

/* 16 Nov: coin page in the Overview's shape */
.cg{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.cg-val{font-size:30px;font-weight:800;letter-spacing:-.5px}
.cg-note{font-size:11.5px;color:var(--muted);margin-top:2px}.cg-links{margin-top:6px}
.cg-trials{width:100%;margin:10px 0 4px;padding:12px 14px;border-radius:14px;border:1px dashed rgba(255,255,255,.2);background:transparent;color:var(--muted);font-weight:600;text-align:left;cursor:pointer;font-family:inherit}
.cg-trials-body{opacity:.85}

/* 16 Nov: split by Revolut account (Portfolio > Summary and Profit) */
.acct-box { padding: 14px 16px; }
.acct-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin: 10px 0 8px; }
.acct-box .acct-h { margin-top: 0; }
.acct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-col { background: rgba(127,127,127,.08); border-radius: 12px; padding: 12px; min-width: 0; }
.acct-n { font-weight: 600; font-size: 14px; }
.acct-v { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.acct-note { font-size: 11px; opacity: .65; margin-bottom: 8px; line-height: 1.3; }
.acct-r { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; padding: 3px 0; border-top: 1px solid rgba(127,127,127,.15); }
.acct-r span:first-child { opacity: .8; }
.acct-f { font-size: 12px; opacity: .7; margin-top: 10px; line-height: 1.35; }

/* 16 Nov: Check now / Place now */
.ot-when { opacity: .75; }
.ot-ck-h { font-weight: 600; margin-top: 6px; }
.ot-ck { font-size: 13px; margin: 4px 0; line-height: 1.35; }
.ot-ck.ok b { color: #3ccf7a; }
.ot-ck.no b, .ot-ck.no { color: #f0a040; }
.ot-place.hidden { display: none; }

/* 17 Nov (Thomas: "can the view show full along with the 8 cycle"): the full view always covers the whole screen
   (iPhone's dynamic viewport), starts at the top, and the loop is a little smaller in portrait so more of the panel
   shows with it; scrolling stays inside the panel. */
.cyc-full{top:0;right:0;bottom:0;left:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* 18 Nov (Thomas: the view opened scrolled up and could not be closed): the header with ✕ stays pinned at the top. */
.cyc-full .cyc-fh{position:sticky;top:calc(-1 * env(safe-area-inset-top,0px) - 12px);z-index:2;background:var(--bg,#0f1018);padding:calc(env(safe-area-inset-top,0px) + 8px) 0 8px;margin-top:calc(-1 * env(safe-area-inset-top,0px) - 12px)}
@media (orientation:portrait){.cyc-full svg{max-height:36vh}}

/* 18 Nov (Thomas, ARB card: Check now hidden under 'Back to Overview'): the chip sits under pop-ups, and the page leaves room for it at the bottom. */
body:has(#back-chip:not(.hidden)){padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.back-chip{transition:transform .2s ease,opacity .2s ease}
.back-chip.tuck{transform:translateY(140%);opacity:0;pointer-events:none}
.going{opacity:.45;transition:opacity .15s}
.tp-link{background:none!important;border:0!important;padding:6px 0!important;color:var(--muted,#9aa1bd);text-decoration:underline;font-size:14px}

/* 23 Nov: Overview figures as Today / 48 hours / 90 days; Your next step as labelled rows */
.ov2-mvl{color:var(--muted);font-weight:600}.ov2-row{margin-bottom:7px}.ov2-rl{color:#e8e6f5;font-weight:650}

/* 23 Nov: order watch lines under each limit order */
.ob-watch{font-size:12.5px;color:var(--muted);margin:2px 0 8px 2px}.ob-watch.cancel,.ob-watch.move{color:#f0b35a}.ob-watch.review{color:#c9c2ff}.ob-watch.ended{color:#8fd19e}

/* 23 Nov: Open threads */
.thr-row{padding:9px 2px;border-top:1px solid rgba(255,255,255,.06)}.thr-row.you .thr-t{color:#f0b35a}.thr-t{font-weight:650}.thr-w{color:var(--muted);font-size:13px}.thr-n{font-size:13px;margin-top:2px}

/* 23 Nov: the auto stop window says what and why */
.au-h{font-weight:650}.au-d{margin-top:3px}.au-w{color:var(--muted);font-size:13px;margin-top:3px}
