:root {
  --ink: #0B1220;
  --panel: #121A2B;
  --raise: #19233A;
  --line: #26324D;
  --gold: #E0A82E;
  --gold-soft: rgba(224, 168, 46, 0.12);
  --text: #EEE9DC;
  --muted: #8E98B0;
  --danger: #E26D5A;
  --ok: #5DBB8A;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Calibri, Carlito, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
body { min-height: 100vh; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; margin: 0; }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.wrap { max-width: 900px; margin: 0 auto; padding: 20px; }
.narrow { max-width: 420px; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.quiet { border-color: var(--line); background: transparent; color: var(--text); }
.btn.danger { border-color: var(--danger); background: transparent; color: var(--danger); }
.btn.sm { padding: 6px 13px; font-size: 0.9rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: wait; }

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.msg { padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; font-size: 0.95rem; }
.msg.err { background: rgba(226, 109, 90, 0.12); color: #F2A396; }
.msg.ok { background: rgba(93, 187, 138, 0.12); color: #9BDDB9; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.badge { background: var(--gold); color: var(--ink); border-radius: 999px; font-size: 0.75rem; padding: 1px 7px; margin-left: 6px; font-weight: 700; }

/* Login hero */
.hero { text-align: center; padding: 56px 20px 28px; }
.hero h1 { font-size: 2.6rem; color: var(--gold); letter-spacing: 0.01em; }
.motto { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 10px 0 0; }

/* The batch seal: the one bold element */
.seal {
  width: 136px; height: 136px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 7px var(--ink), inset 0 0 0 8px rgba(224, 168, 46, 0.45);
  background: radial-gradient(circle at 50% 35%, rgba(224, 168, 46, 0.10), transparent 65%);
  font-family: var(--serif); color: var(--gold); font-size: 3.5rem; line-height: 1;
}
.batch-head { text-align: center; padding: 28px 0 8px; }
.batch-head h1 { margin-top: 16px; font-size: 1.9rem; }
.batch-head p { margin: 6px 0 0; }

/* Class list (a real sequence, so it's numbered) */
.lessons { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.lesson { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 16px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.lesson:hover .lesson-title { color: var(--gold); }
.lesson.current { background: var(--gold-soft); }
.lesson-num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); text-align: center; }
.lesson-title { display: block; font-size: 1.05rem; }
.lesson-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; color: var(--muted); }

.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Admin */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 170px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 12px; }
@media (min-width: 760px) { .row { grid-template-columns: 1.5fr 1fr auto; align-items: center; } }
.row select { width: 100%; }
.pill { display: inline-block; font-size: 0.78rem; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; margin-left: 6px; }
.pill.pending { border-color: var(--gold); color: var(--gold); }
.pill.approved { border-color: var(--ok); color: var(--ok); }
.pill.blocked { border-color: var(--danger); color: var(--danger); }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.empty { text-align: center; padding: 28px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--raise); border: 1px solid var(--gold); padding: 10px 18px; border-radius: 999px; z-index: 10; max-width: 90vw; }

@media (prefers-reduced-motion: no-preference) {
  .seal { animation: seal-in 0.6s ease-out both; }
  @keyframes seal-in { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: transparent; padding: 0; object-fit: contain; }
.hero-logo { display: block; width: min(170px, 46vw); height: auto; margin: 0 auto; border-radius: 50%; box-shadow: 0 10px 40px rgba(224,168,46,.18); }
.logo-badge { width: 136px; height: 136px; margin: 0 auto; border-radius: 50%; background: #11161D; border: 0; display: grid; place-items: center; overflow: hidden; }
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }

/* Market analysis */
.post-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.post h2 { font-size: 1.45rem; margin-top: 4px; }
.post h4 { font-family: var(--serif); font-weight: normal; color: var(--gold); font-size: 1.05rem; margin: 20px 0 6px; }
.pre { white-space: pre-line; margin: 0; line-height: 1.6; }
.bias { display: inline-block; flex: none; font-size: 0.82rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.bias.bullish { color: var(--ok); border-color: var(--ok); background: rgba(93,187,138,.1); }
.bias.bearish { color: var(--danger); border-color: var(--danger); background: rgba(226,109,90,.1); }
.bias.sideways { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.lvl { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--ink); }
.lvl span { display: block; font-size: 0.82rem; color: var(--muted); }
.lvl strong { font-family: var(--serif); font-weight: normal; font-size: 1.15rem; }
.lvl.sup { border-left: 3px solid var(--ok); }
.lvl.res { border-left: 3px solid var(--danger); }
.disclaimer { margin: 18px 0 0; }
.post-old { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.post-old summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-old[open] summary { margin-bottom: 8px; }

/* Live market widgets */
.sec-title { margin: 28px 0 12px; font-size: 1.25rem; }
.tv-ticker { min-height: 46px; margin: 4px -20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.tv-box { width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }

.dext-card { margin-top: 24px; display: grid; gap: 14px; border-color: var(--gold); background: linear-gradient(135deg, rgba(224,168,46,.10), transparent 60%), var(--panel); }
@media (min-width: 640px) { .dext-card { grid-template-columns: 1fr auto; align-items: center; } }

/* Welcome / approval overlay */
.welcome-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5,9,18,.78); display: grid; place-items: center; padding: 20px; }
.welcome-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--gold); border-radius: 20px; padding: 28px 24px; text-align: center; }
.welcome-card h1 { font-size: 1.9rem; margin: 18px 0 8px; }
.welcome-card p { margin: 0 0 12px; }
.welcome-card .logo-badge { width: 110px; height: 110px; }
@media (prefers-reduced-motion: no-preference) {
  .welcome-card { animation: pop .35s ease-out both; }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* News */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-src { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 32px 14px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.news-src:hover { border-color: var(--gold); }
.news-go { position: absolute; top: 12px; right: 12px; color: var(--gold); }

/* Start here */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }
.step-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; }
.msg.warn { background: var(--gold-soft); color: var(--gold); }
.msg a { color: inherit; font-weight: 700; }

/* Insights */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--serif); font-weight: normal; font-size: 1.6rem; color: var(--gold); }
.stat strong.up { color: var(--ok); } .stat strong.down { color: var(--danger); }
.chart-card { margin-bottom: 14px; padding: 18px 16px; }
.chart-card h3 { font-size: 1.15rem; }
.chart-src { margin: 10px 0 0; }

/* Formulas */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (min-width: 760px) { .calc-grid { grid-template-columns: repeat(3, 1fr); } }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.calc-out div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.calc-out strong { font-family: var(--serif); font-weight: normal; font-size: 1.15rem; color: var(--gold); }
.formula { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.formula summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.formula summary::-webkit-details-marker { display: none; }
.formula[open] { border-color: var(--gold); }
.fx { margin: 12px 0 0; padding: 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; overflow-x: auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92rem; color: var(--gold); line-height: 1.6; }
.ex-label { font-weight: 700; color: var(--text); }
.tip { margin: 10px 0 0; color: var(--muted); }

/* News list */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.chip { flex: none; background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: 0.9rem; }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.news-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.news-item:hover { border-color: var(--gold); }
.news-item strong { font-weight: 600; line-height: 1.4; }
.news-tags .pill { margin: 0 6px 0 0; }

/* Progress, doubts, journal */
.progress-wrap { max-width: 360px; margin: 14px auto 0; }
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.progress-wrap p { margin: 6px 0 0; }
.done-tick { color: var(--ok); font-weight: 700; }
.doubt { padding: 14px 16px; }
.reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--line); background: var(--ink); border-radius: 8px; }
.reply.admin { border-left-color: var(--gold); }
.pnl-up { color: var(--ok); } .pnl-down { color: var(--danger); }
.mini-bar { display: inline-block; width: 70px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.mini-bar span { display: block; height: 100%; background: var(--gold); }

/* Quizzes & library */
.quiz-score { text-align: center; flex: none; }
.quiz-score strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.5rem; color: var(--gold); }
.quiz-big { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); margin: 4px 0; }
.qfs { border: 1px solid var(--line); margin: 0; }
.qfs legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.qopt { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: var(--ink); clear: both; }
.qopt.pick { cursor: pointer; }
.qopt.pick:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.qopt input { margin-right: 8px; accent-color: var(--gold); }
.qopt.right { border-color: var(--ok); color: var(--ok); }
.qopt.wrong { border-color: var(--danger); color: var(--danger); }
.board { list-style: none; padding: 0; margin: 0; }
.board li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.res-item { flex-direction: row; align-items: center; gap: 12px; position: relative; padding-right: 34px; }
.res-icon { font-size: 1.6rem; flex: none; }

/* Plans */
.plans { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; background: var(--ink); }
.plan.current { border-color: var(--gold); background: var(--gold-soft); }
.plan-price { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); margin-top: 4px; }

.pay-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 14px; align-items: start; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 10px 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.copy-row strong { font-family: var(--serif); font-weight: normal; font-size: 1.3rem; color: var(--gold); letter-spacing: .02em; }

/* Class timings */
.sched { margin: 18px auto 0; max-width: 560px; padding: 14px 16px; text-align: left; }
.sched ul { list-style: none; padding: 0; margin: 0; }
.sched li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "time status" "name mode"; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sched li:last-child { border-bottom: 0; }
.sched-time { grid-area: time; font-size: 0.85rem; color: var(--muted); }
.sched-name { grid-area: name; font-family: var(--serif); font-size: 1.05rem; }
.sched .pill { grid-area: mode; justify-self: end; margin: 0; }
.sched-live, .sched-next, .sched li > .muted { grid-area: status; justify-self: end; font-size: 0.8rem; font-weight: 700; }
.sched-live { color: var(--ok); }
.sched-next { color: var(--gold); }

/* Market sessions */
.sessions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sess-head { margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sess-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(93,187,138,.6); flex: none; }
.sess-dot.off { background: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .sess-dot:not(.off) { animation: pulse 1.8s infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(93,187,138,.55); } 70% { box-shadow: 0 0 0 8px rgba(93,187,138,0); } 100% { box-shadow: 0 0 0 0 rgba(93,187,138,0); } } }
.sess-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sess-chip { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.sess-chip small { font-size: 0.72rem; }
.sess-chip.on { border-color: var(--ok); color: var(--ok); background: rgba(93,187,138,.08); }

/* ===== Bottom navigation & Home ===== */
body.has-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(11,18,32,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav button { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.72rem; padding: 6px 2px; cursor: pointer; border-radius: 10px; }
.bottom-nav button span { font-size: 1.25rem; filter: grayscale(1); opacity: .75; }
.bottom-nav button.on { color: var(--gold); }
.bottom-nav button.on span { filter: none; opacity: 1; }
.icon-btn { padding: 6px 11px; min-width: 40px; }
.subtabs { margin-bottom: 16px; }
.greet { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 12px; }
.search-bar { width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; color: var(--muted); cursor: pointer; margin-bottom: 14px; }
.home-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-grid { grid-template-columns: 1fr 1fr; } }
.nse-state { font-family: var(--serif); font-size: 1.35rem; margin: 6px 0 4px; display: flex; align-items: center; gap: 8px; }
.nse-state.on { color: var(--ok); } .nse-state.pre { color: var(--gold); } .nse-state.off { color: var(--text); }
.exp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.exp-row:last-child { border-bottom: 0; }
.exp-date { text-align: right; display: flex; flex-direction: column; }
.exp-today { color: var(--gold); font-weight: 700; }
.home .sched { max-width: none; }
.home-view { margin-top: 14px; }
.fy { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.fy:last-child { border-bottom: 0; }
.fy strong { color: var(--gold); }
.table-wrap { overflow-x: auto; }
.ctable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ctable th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feed li.past { opacity: .5; }
.exp-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.exp-li.monthly strong { color: var(--gold); }

/* Install card */
.install-card { border-color: var(--gold); background: linear-gradient(135deg, rgba(224,168,46,.12), transparent 60%), var(--panel); margin-bottom: 14px; }
.install-row { display: flex; align-items: center; gap: 12px; }
.install-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }

/* ===================== PANCH: elite members' section ===================== */
/* Peacock grading: a mor-pankh teal instead of navy, champagne instead of saffron gold */
body.panch {
  --ink: #06181A; --panel: #0B2427; --raise: #10302F; --line: #1D4542;
  --gold: #E7CB8C; --gold-soft: rgba(231, 203, 140, 0.12);
  --text: #EAF3EF; --muted: #8DAAA5; --peacock: #2FB3A4; --peacock-deep: #12515C;
  background: var(--ink);
}
body.panch .topbar { border-bottom-color: var(--line); background: linear-gradient(180deg, rgba(30,32,40,.35), transparent); }
body.panch .bottom-nav { background: rgba(11,12,16,.96); }
body.panch .card, body.panch .row { background: var(--panel); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bottom-nav { grid-template-columns: repeat(6, 1fr); }
.bottom-nav button.pz-nav span { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25rem; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #E7CB8C; filter: none; opacity: 1;
  background: radial-gradient(circle at 50% 50%, #12515C 0 42%, #0B2A2E 43% 100%); box-shadow: 0 0 0 1px #E7CB8C55; }
.bottom-nav button.pz-nav { color: #C9B27A; }
.bottom-nav button.pz-nav.on { color: #D9BC85; }
.bottom-nav button.pz-nav.on span { box-shadow: 0 0 0 2px #D9BC85; }

/* The one memorable thing: the peacock-feather eye with ५ */
.pz-eye { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 46%, #0A3D57 0 26%, #1C7C8C 27% 40%, #2FB3A4 41% 52%, #C7B26A 53% 60%, #12515C 61% 100%);
  box-shadow: 0 0 0 1px #E7CB8C66, 0 10px 30px -12px #2FB3A4; }
.pz-eye span { font-family: var(--serif); color: #F6E6BC; font-size: 1.7rem; line-height: 1; text-shadow: 0 1px 4px #0008; transform: translateY(-1px); }
.pz-eye.big { width: 104px; height: 104px; margin: 0 auto 18px; }
.pz-eye.big span { font-size: 2.8rem; }
@media (prefers-reduced-motion: no-preference) {
  .pz-head .pz-eye { animation: pzBloom .9s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes pzBloom { from { transform: scale(.6) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

.pz-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.pz-head h1 { font-size: 2rem; color: var(--gold); letter-spacing: .01em; }
.pz-head p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.pz-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 12px; }
.pz-chip { flex: none; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: .9rem; cursor: pointer; }
.pz-chip[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: #0B0C10; font-weight: 700; }
.pz-chip.quiet[aria-checked="true"] { background: rgba(217,188,133,.16); border-color: var(--peacock); color: #8FE3D8; }

.pz-compose { background: var(--raise); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 18px; }
.pz-compose textarea { min-height: 70px; background: var(--ink); }
.pz-opt { margin-bottom: 8px; }
.pz-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pz-filter { margin-bottom: 14px; }
.pz-newpill { display: block; margin: 0 auto 12px; border: 0; border-radius: 999px; padding: 8px 16px; background: var(--peacock); color: #04201D; font-weight: 700; cursor: pointer; }

.pz-post { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.pz-post.pinned { border-color: #E7CB8C88; }
.pz-post.k-announce { background: linear-gradient(160deg, rgba(217,188,133,.12), var(--panel) 55%); border-color: #E7CB8C66; }
.pz-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pz-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pz-who strong { font-size: .98rem; }
.pz-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--peacock-deep); color: #BDEBE4; }
.pz-av.mentor { background: var(--gold); color: #0B0C10; }
.pz-av.sm { width: 28px; height: 28px; font-size: .8rem; }
.pz-tag { display: inline-block; margin-left: 6px; font-size: .72rem; padding: 0 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); vertical-align: 2px; }
.pz-kind { font-size: .78rem; color: var(--gold); border: 1px solid #E7CB8C55; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.pz-body { margin-bottom: 10px; }
.pz-idea { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pz-idea strong { font-family: var(--serif); font-size: 1.15rem; }

.pz-poll { margin: 4px 0 10px; }
.pz-vote { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; isolation: isolate; }
.pz-vote::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: rgba(217,188,133,.22); z-index: -1; transition: width .5s ease; }
.pz-vote.mine { border-color: var(--peacock); }
.pz-vote.mine::before { background: rgba(217,188,133,.38); }

.pz-post footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pz-reacts { display: flex; gap: 6px; }
.pz-react { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: .95rem; color: var(--text); }
.pz-react span { margin-left: 4px; font-size: .82rem; color: var(--muted); }
.pz-react.on { border-color: var(--peacock); background: rgba(217,188,133,.14); }
.pz-react.on span { color: #8FE3D8; }
.pz-link { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 4px 2px; font-size: .9rem; }
.pz-link.danger { color: var(--danger); }
.pz-admin { display: flex; gap: 14px; justify-content: flex-end; margin-top: 4px; }
.pz-replies { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.pz-reply { display: flex; gap: 10px; margin-bottom: 10px; }
.pz-reply p { margin: 2px 0 0; }
.pz-replyform { display: flex; gap: 8px; }
.pz-replyform input { flex: 1; padding: 8px 12px; }
.pz-empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line); border-radius: 16px; }

/* Vault */
.pz-addvid { background: var(--raise); border: 1px solid #E7CB8C55; border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; }
.pz-addvid summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.pz-addvid form { margin-top: 14px; }
.pz-stage { margin-bottom: 18px; }
.pz-stage h2 { margin: 14px 0 6px; font-size: 1.35rem; }
.pz-stage .actions { margin-top: 12px; }
.pz-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pz-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pz-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--peacock), var(--gold)); }
.pz-vids { display: flex; flex-direction: column; gap: 8px; }
.pz-vid { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding-right: 10px; }
.pz-vid.playing { border-color: var(--gold); }
.pz-vid-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); text-align: left; padding: 12px 14px; cursor: pointer; }
.pz-vid-text { display: flex; flex-direction: column; min-width: 0; }
.pz-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--peacock-deep); color: var(--gold); font-size: .9rem; }
.pz-vid.done .pz-play { background: rgba(217,188,133,.2); color: #8FE3D8; }
.pz-play { font-family: var(--mono, ui-monospace, monospace); font-weight: 600; }
.pz-vid.playing .pz-play { background: var(--gold); color: #0B0C10; }
@media (hover: hover) and (pointer: fine) { .pz-vid:hover { border-color: #E7CB8C55; } }
.pz-vid-main { touch-action: manipulation; }
.pz-vid-main:active .pz-play { transform: scale(.94); }
.pz-play { transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.pz-vid-text strong { line-height: 1.3; }
.pz-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.pz-badges .pk-tag, .pz-meta .pk-tag { margin-left: 0; }
.pz-score { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 600 12px/1.5 var(--mono, ui-monospace, monospace); color: #0B0C10; background: var(--gold); }
.pz-todo { font-size: .78rem; color: var(--gold); }
.pz-pbar { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; max-width: 220px; }
.pz-pbar i { display: block; height: 100%; background: var(--gold); }
.pz-group { display: flex; flex-direction: column; gap: 2px; margin: 18px 4px 4px; }
.pz-group:first-child { margin-top: 2px; }
.pz-group b { font-family: var(--serif); font-size: 1.12rem; color: var(--gold); font-weight: 600; }
.pz-group small { color: var(--muted); font-size: .82rem; }
.pz-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pz-continue { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; cursor: pointer; touch-action: manipulation;
  border: 1px solid #E7CB8C66; color: var(--text); background: radial-gradient(120% 120% at 100% 0%, rgba(47,179,164,.18), transparent 60%), var(--panel); transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.pz-continue:active { transform: scale(.985); }
.pz-continue-k { font: 600 11px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pz-continue strong { font-size: 1.05rem; line-height: 1.3; }
.pz-continue .pz-pbar { max-width: none; }
.pz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font: 500 12.5px/1.4 var(--mono, ui-monospace, monospace); color: var(--muted); }
.pz-stage h2 { margin-top: 8px; line-height: 1.25; }
.pz-sum { margin: 0 0 4px; color: var(--text); font-size: 1rem; line-height: 1.55; }
.pz-stagenav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 16px; }
.pz-stagenav #pzPrev { justify-self: start; } .pz-stagenav #pzNext { justify-self: end; }
.pz-stagenav .btn[disabled] { opacity: .35; }
.pz-stagenav .btn { white-space: nowrap; }
.pz-close { display: block; margin: 10px auto 0; }
@media (max-width: 380px) { .pz-stagenav { grid-template-columns: 1fr 1fr; } .pz-stagenav #pzMark { grid-column: 1 / -1; order: -1; } }

/* Live */
.pz-livecard { background: radial-gradient(120% 90% at 100% 0%, rgba(217,188,133,.18), transparent 60%), var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 20px; }
.pz-count { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.pz-live-on { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.8rem; color: #8FE3D8; margin: 0; }
.pz-livecard .muted { margin-bottom: 16px; }
.pz-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 4px rgba(255,90,78,.25); }
@media (prefers-reduced-motion: no-preference) { .pz-dot { animation: pzPulse 1.6s ease-in-out infinite; } @keyframes pzPulse { 50% { box-shadow: 0 0 0 9px rgba(255,90,78,0); } } }
.pz-h3 { font-size: 1.15rem; margin: 0 0 10px; }
.pz-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 8px; }
.pz-day { border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; font-size: .88rem; }
.pz-day small { color: var(--muted); }
.pz-day.today { border-color: var(--gold); color: var(--gold); }
.pz-adminform { margin-top: 20px; }

/* Members */
.pz-membercount { font-size: 1.05rem; margin: 0 0 12px; }
.pz-membercount strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin-right: 4px; }
.pz-members { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .pz-members { grid-template-columns: 1fr 1fr; } }
.pz-member { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.pz-member div { display: flex; flex-direction: column; }
.pz-member.me { border-color: var(--peacock); }

/* Locked preview */
.pz-locked { max-width: 460px; margin: 18px auto 0; text-align: center; }
.pz-locked h1 { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.pz-perks { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.pz-perks li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pz-perks strong { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.pz-perks span { font-size: .88rem; color: var(--muted); }
.pz-teaser { text-align: left; margin-bottom: 18px; }
.pz-blur { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; color: var(--muted); filter: blur(.6px); user-select: none; }
.pz-price { font-family: var(--serif); font-size: 2.2rem; color: var(--text); margin: 6px 0 14px; }
.pz-price span { font-family: var(--sans); font-size: 1rem; color: var(--muted); }

/* ===== Live Nifty 50 card ===== */
.nf { margin-bottom: 14px; padding: 18px 16px 14px; }
.nf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nf-price { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; margin: 2px 0; font-variant-numeric: tabular-nums; }
.nf-chg { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.up { color: var(--ok); } .down { color: var(--danger); }
.nf-state { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.nf-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; }
.nf-closed { color: var(--gold); font-weight: 700; }
.nf-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0 6px; }
.nf-ranges { display: flex; gap: 2px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.nf-ranges button { border: 0; background: none; color: var(--muted); border-radius: 999px; padding: 4px 11px; font-size: .85rem; cursor: pointer; }
.nf-ranges button[aria-checked="true"] { background: var(--raise); color: var(--gold); font-weight: 700; }
.nf-type { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: .85rem; cursor: pointer; }
.nf-chart { height: 260px; margin: 0 -6px; }
.nf-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.nf-sub strong { color: var(--text); font-variant-numeric: tabular-nums; }
.nf-src { flex-basis: 100%; }
.nf-read { margin-bottom: 14px; }
.nf-read-h { font-size: 1.25rem; color: var(--gold); }
.nf-points { display: flex; flex-direction: column; }
.nf-point { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); }
.nf-point strong { font-size: .95rem; }
.nf-point p { margin: 3px 0 0; font-size: .93rem; line-height: 1.55; color: var(--text); opacity: .9; }
.nf-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nf-levels div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.nf-levels span { display: block; font-size: .78rem; color: var(--muted); }
.nf-levels strong { font-family: var(--serif); font-weight: normal; font-size: 1.1rem; }

/* ===== Weekly 10% better countdown (minimal) ===== */
.grow { margin: 4px 0 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--panel); }
.grow-tag { margin: 0 0 2px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grow-title { margin: 0 0 10px; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); line-height: 1.3; }
.grow-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.grow-time { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: .01em; }
.grow-left { font-size: .82rem; color: var(--muted); }
.grow-bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.grow-bar i { display: block; height: 100%; background: var(--gold); }
.grow-why { margin: 10px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* Free-writing journal */
.jnote { margin-bottom: 10px; }
.jnote-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.jnote-head > strong:last-child:not(:first-child) { margin-left: auto; }
.jnote-body { white-space: pre-wrap; word-break: break-word; margin: 0 0 10px; line-height: 1.55; }

/* Update 2 */
.streak-strip { margin: 0 0 14px; padding: 9px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 0 0 14px; background: var(--ink); }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--gold); color: #1a1406; font-weight: 600; }
.jnote-lbl { margin: 0 0 2px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.jref { border-left: 3px solid var(--gold); }
.pill.gold { border-color: var(--gold); color: var(--gold); margin-left: 0; }
.jreply { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(212,169,74,.08); border: 1px solid rgba(212,169,74,.35); }
.jreply-who { font-size: .78rem; color: var(--gold); }
.jreply p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.grow-btn { margin-top: 12px; }
.grow-done { margin: 10px 0 0; font-size: .84rem; color: var(--ok, #5DBB8A); }
.next-class { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.next-class > span { display: flex; flex-direction: column; gap: 2px; }
.next-class.live { border-color: var(--ok, #5DBB8A); }
.push-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.push-on { margin: 14px 0 0; text-align: center; }
.push-card .btn, .next-class .btn { white-space: nowrap; flex-shrink: 0; }

/* Mandali AI */
.ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ai-log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ai-msg { padding: 10px 13px; border-radius: 14px; max-width: 92%; line-height: 1.55; word-break: break-word; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul { margin: 4px 0 8px; padding-left: 20px; } .ai-msg li { margin: 2px 0; }
.ai-msg em { color: var(--muted); font-size: .85em; }
.ai-msg.user { align-self: flex-end; background: rgba(212,169,74,.14); border: 1px solid rgba(212,169,74,.35); border-bottom-right-radius: 4px; }
.ai-msg.assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ai-empty .btn { text-align: left; white-space: normal; height: auto; padding: 8px 12px; }
.ai-box textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.ai-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ai-typing { display: flex; gap: 5px; padding: 14px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: aiDot 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ai-typing span { animation: none; opacity: .6; } }
.ai-head .pill { white-space: nowrap; flex-shrink: 0; }

/* Market board */
.mb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mb-title { margin: 0; font-size: 1rem; }
.mb-sub { margin: 14px 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mb-list { display: flex; flex-direction: column; }
.mb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mb-row:last-child { border-bottom: 0; }
.mb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mb-num.up { color: var(--ok); } .mb-num.down { color: var(--danger); }

/* ---- Weekly goal: steps ---- */
.grow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.grow-reset { font-size: .72rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.grow-steps-head { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; }
.grow-score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold); font-size: .9rem; }
.grow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.grow-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.grow-step input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grow-step:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.grow-num { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--muted); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.grow-step.done { border-color: rgba(93,187,138,.5); background: rgba(93,187,138,.07); }
.grow-step.done .grow-num { background: var(--ok); border-color: var(--ok); color: #0b1410; font-size: 0; }
.grow-step.done .grow-num::after { content: "✓"; font-size: .85rem; }
.grow-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.grow-txt strong { font-size: .92rem; font-weight: 600; }
.grow-txt span { font-size: .78rem; color: var(--muted); }
.grow-step.done .grow-txt strong { color: var(--muted); }

/* ---- Key terms ---- */
.kt { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.kt-g { color: var(--muted); font-size: .86em; }

/* ---- Advanced read ---- */
.rd-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rd-chip { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.rd-chip.up { color: var(--ok); border-color: rgba(93,187,138,.55); }
.rd-chip.down { color: var(--danger); border-color: rgba(226,109,90,.55); }
.rd-chip.warn { color: var(--gold); border-color: rgba(212,169,74,.55); }
ol.nf-points { list-style: none; margin: 0; padding: 0; }
.rd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rd-head .rd-chip { margin-left: auto; }
.rd-n { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.rd-lbl, .post-lbl { margin: 18px 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---- Nifty view post ---- */
.post-date { margin: 0; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.post .post-title { font-family: inherit; font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin: 4px 0 0; }
.ladders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lad { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 6px; background: var(--ink); }
.lad.sup { border-top: 2px solid var(--ok); } .lad.res { border-top: 2px solid var(--danger); }
.lad-h { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lad-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); }
.lad-row:last-child { border-bottom: 0; }
.lad-row span { font-size: .75rem; color: var(--muted); font-weight: 600; }
.lad-row strong { font-variant-numeric: tabular-nums; font-size: .98rem; font-weight: 600; }
.lad.sup .lad-row strong { color: var(--ok); } .lad.res .lad-row strong { color: var(--danger); }
.post-body { line-height: 1.6; font-size: .95rem; }
.post-body p { margin: 0 0 10px; } .post-body p:last-child { margin-bottom: 0; }
.post-body ul { margin: 0 0 10px; padding-left: 20px; } .post-body li { margin: 3px 0; }


/* =================================================================
   TERMINAL THEME (overrides) — near-black, thin lines, mono numbers
   ================================================================= */
:root {
  --ink: #0A0D12; --panel: #11151C; --raise: #161C26; --line: #1F2631;
  --text: #E9E7E2; --muted: #9AA3B2; --ok: #2FC48D; --danger: #F2646F;
  --gold: #E0A82E; --gold-soft: rgba(224, 168, 46, 0.10);
  --sans: "IBM Plex Sans", "Noto Sans Devanagari", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Fraunces", "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", Georgia, serif;
}
html, body { font-size: 16px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
.brand { font-family: var(--serif); font-weight: 600; }
.card { border-radius: 8px; padding: 18px; }
.btn { border-radius: 6px; }
.pill, .bias, .rd-chip { border-radius: 4px; }
input, select, textarea { border-radius: 6px !important; }
.greet { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; }
.sec-title { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.grow { border-radius: 8px; }
.grow-title { font-family: var(--sans); font-weight: 600; }
.nf-read-h { font-family: var(--sans); font-weight: 600; color: var(--gold); }

/* numbers in mono */
.nf-price, .nf-chg, .nf-levels strong, .mb-num, .grow-time, .grow-score, .lad-row strong, .stat strong,
.calc-out strong, .tk-v, .mkt-strip, .sched-time, .streak-strip strong { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.nf-price { font-weight: 500; }

/* bottom nav: line icons */
.bottom-nav { background: rgba(10,13,18,.97); border-top: 1px solid var(--line); }
.bottom-nav button span { filter: none; opacity: 1; display: flex; align-items: center; justify-content: center; height: 24px; }
.bottom-nav button span svg { display: block; }
.bottom-nav button.on { color: var(--gold); }

/* status line + ticker */
.mkt-strip { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); padding: 2px 0 8px; border-bottom: 1px solid var(--line); margin: -8px 0 0; }
.mkt-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mkt-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mkt-st.open { color: var(--ok); } .mkt-st.open i { background: var(--ok); }
.mkt-st.pre { color: var(--gold); } .mkt-st.pre i { background: var(--gold); }
.tick-strip { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tick-strip::-webkit-scrollbar { display: none; }
.tick-strip:empty { display: none; }
.tk { flex: none; display: flex; flex-direction: column; gap: 1px; padding: 0 14px; border-right: 1px solid var(--line); }
.tk:first-child { padding-left: 20px; }
.tk-n { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.tk-v { font-size: 12.5px; white-space: nowrap; }
.tk-v b { font-weight: 500; } .tk-v b.up { color: var(--ok); } .tk-v b.down { color: var(--danger); }

/* Mentor overview */
.ov-status { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ov-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (min-width: 720px) { .ov-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ov-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.ov-kpi strong { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; }
.ov-kpi small { font-size: .8rem; color: var(--muted); }
.ov-l { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ov-sub { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ov-sub.up { color: var(--ok); } .ov-sub.down { color: var(--danger); } .ov-sub.warn { color: var(--gold); }
.ov-card { margin-bottom: 12px; }
.ov-flush { padding: 0; }
.ov-pad { padding: 14px; }
.ov-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ov-bars { display: flex; gap: 4px; align-items: flex-end; height: 64px; margin-top: 12px; }
.ov-bars > div { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.ov-bars i { display: block; width: 100%; min-height: 2px; background: #3A4352; border-radius: 2px 2px 0 0; }
.ov-bars i.now { background: var(--gold); }
.ov-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.ov-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ov-col { flex-direction: column; align-items: stretch; gap: 6px; }
.ov-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--raise); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.ov-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ov-who span { font-size: .78rem; color: var(--muted); }
.ov-who span:first-of-type { font-family: var(--mono); font-size: .72rem; color: var(--danger); text-transform: uppercase; }
.ov-kind { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--gold); }
.ov-topic { display: grid; grid-template-columns: minmax(0, 1fr) 90px 28px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.ov-topic:first-child { border-top: 0; }
.ov-topic > div { height: 6px; background: var(--line); border-radius: 3px; }
.ov-topic i { display: block; height: 6px; background: var(--gold); border-radius: 3px; }
.ov-topic b { font-family: var(--mono); font-weight: 500; text-align: right; }
.ov-suggest { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: var(--gold-soft); border: 1px solid rgba(224,168,46,.35); display: flex; flex-direction: column; gap: 3px; }
.ov-lead { display: grid; grid-template-columns: 22px minmax(0, 1fr) 64px 36px; gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.ov-lead > span { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: right; }
.ov-lead > span:first-child { text-align: left; } .ov-lead > span.gold { color: var(--gold); }

.ov-h .btn { white-space: nowrap; flex: none; }

/* GIFT Nifty in status line */
.gift { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gift-n { color: var(--muted); font-weight: 600; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 5px; }
.gift-v { color: var(--text); }
.gift-v b { font-weight: 500; } .gift-v b.up { color: var(--ok); } .gift-v b.down { color: var(--danger); }
.gift-m { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.gift-m.up { color: var(--ok); border-color: rgba(47,196,141,.5); } .gift-m.down { color: var(--danger); border-color: rgba(242,100,111,.5); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: livePulse 2s infinite ease-in-out; }
@keyframes livePulse { 50% { opacity: .3; } }
.mkt-strip { align-items: center; flex-wrap: wrap; row-gap: 4px; }

/* moving ticker */
.tick-strip { overflow: hidden; cursor: pointer; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; width: max-content; animation: tkMove var(--tk-dur, 40s) linear infinite; }
.tk-set { display: flex; flex: none; }
.tk-set .tk:first-child { padding-left: 14px; }
.tick-strip.paused .tk-track, .tick-strip:hover .tk-track { animation-play-state: paused; }
@keyframes tkMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .tick-strip { overflow-x: auto; } .tk-set[aria-hidden] { display: none; } .live-dot { animation: none; } }

/* the quiet question */
#why { position: fixed; inset: 0; z-index: 9999; background: radial-gradient(ellipse at 50% 35%, #121722 0%, #07090C 70%); display: flex; align-items: center; justify-content: center; padding: 32px 28px calc(32px + env(safe-area-inset-bottom, 0px)); opacity: 0; transition: opacity .6s ease; }
#why.on { opacity: 1; }
.why-in { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.why-breath { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(224,168,46,.45); margin-bottom: 40px; animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1.15); opacity: .9; } }
.why-q { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.35; color: var(--text); margin: 0; opacity: 0; animation: whyIn 1.6s .3s ease forwards; letter-spacing: .005em; }
.why-t { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); margin: 18px 0 30px; opacity: 0; animation: whyIn 1.6s 1.4s ease forwards; }
@keyframes whyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#whyA { width: 100%; box-sizing: border-box; background: transparent; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; text-align: center; resize: none; padding: 8px 4px; opacity: 0; animation: whyIn 1.2s 2.2s ease forwards; }
#whyA:focus { outline: none; border-bottom-color: var(--gold) !important; }
.why-act { display: flex; gap: 28px; margin-top: 26px; opacity: 0; animation: whyIn 1.2s 2.6s ease forwards; }
.why-act button { background: none; border: 0; font-family: var(--sans); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 6px; min-height: 44px; cursor: pointer; }
.why-act .why-keep { color: var(--gold); }
.why-note { margin: 18px 0 0; font-size: .8rem; color: var(--muted); opacity: 0; animation: whyIn 1.2s 3s ease forwards; }
@media (prefers-reduced-motion: reduce) { .why-breath { animation: none; opacity: .6; } .why-q, .why-t, #whyA, .why-act, .why-note { animation: none; opacity: 1; } #why { transition: none; } }
.gift-asof { font-size: 10px; color: var(--muted); }

/* ===== Update 4: icons, greeting row, call the day, path, OI ===== */
.ico { display: inline-block; vertical-align: -3px; flex: none; }
.fy span .ico { margin-right: 6px; color: var(--gold); }
#searchBtn .ico { vertical-align: middle; }
.greet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 14px 0 12px; }
.greet-row .greet { margin: 0; }
.lvl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .78rem; color: var(--text); text-decoration: none; background: var(--panel); min-height: 32px; box-sizing: border-box; }
.lvl-chip .ico { color: var(--gold); }
.lvl-chip b { font-family: var(--mono); font-weight: 600; color: var(--gold); }

.call-card { margin-bottom: 14px; }
.call-head, .oi-head, .path-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.call-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.call-timer { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.call-q { margin: 0 0 10px; font-weight: 600; }
.call-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.call-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; min-height: 64px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.call-opt .ico { width: 22px; height: 22px; }
.call-opt.up.on { border-color: var(--ok); color: var(--ok); background: rgba(47,196,141,.08); }
.call-opt.down.on { border-color: var(--danger); color: var(--danger); background: rgba(242,100,111,.08); }
.call-opt.side.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.call-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.call-range { margin: 10px 0 0; }
.call-range summary { font-size: .82rem; color: var(--muted); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.call-range-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.call-range-in label { display: flex; flex-direction: column; gap: 3px; font-size: .75rem; color: var(--muted); }
.call-range-in input { font-family: var(--mono); }
.call-lock { width: 100%; margin-top: 12px; }
.call-res { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.call-res strong { font-family: var(--mono); font-weight: 600; }
.call-res strong.up { color: var(--ok); } .call-res strong.down { color: var(--danger); }
.call-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.call-stats strong { font-family: var(--mono); color: var(--text); font-weight: 600; }
.call-stats a { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--gold); text-decoration: none; min-height: 32px; }
.call-board { list-style: none; margin: 10px 0 0; padding: 0; }
.call-board li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 54px 44px; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.call-board li > span, .call-board b { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: right; font-weight: 500; }
.call-board li > span:first-child { text-align: left; } .call-board .gold { color: var(--gold); } .call-board b { color: var(--text); }

.grow-alldone { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 10px 12px; min-height: 44px; background: rgba(47,196,141,.07); border: 1px solid rgba(47,196,141,.45); border-radius: 8px; color: var(--ok); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left; }
.grow-alldone span:nth-child(2) { flex: 1; }

.path-card { margin-bottom: 16px; }
.path-now { font-family: var(--mono); font-size: .8rem; color: var(--gold); }
.path-levels { list-style: none; margin: 0; padding: 0; }
.path-levels > li { padding: 10px 0; border-top: 1px solid var(--line); }
.path-levels > li:first-child { border-top: 0; }
.path-row { display: flex; align-items: center; gap: 10px; }
.path-row strong { flex: 1; }
.path-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.path-levels li.done .path-dot { background: var(--ok); border-color: var(--ok); color: #0b1410; }
.path-levels li.next .path-dot { border-color: var(--gold); color: var(--gold); }
.path-levels li:not(.done):not(.next) { opacity: .55; }
.path-reqs { margin: 10px 0 0 36px; display: flex; flex-direction: column; gap: 8px; }
.path-req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: .84rem; }
.path-req b { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.path-req.ok b { color: var(--ok); }
.path-req i { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.path-req em { display: block; height: 4px; background: var(--gold); }
.path-req.ok em { background: var(--ok); }

.oi-card { margin: 4px 0 18px; }
.oi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oi-grid > div { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.oi-grid span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.oi-grid strong { font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.oi-grid em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.oi-grid .res { border-top: 2px solid var(--danger); } .oi-grid .sup { border-top: 2px solid var(--ok); }
.oi-read { margin: 12px 0 0; line-height: 1.6; font-size: .93rem; }

.oi-head { flex-wrap: wrap; row-gap: 4px; }
.oi-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.path-now { white-space: nowrap; }
.path-head .call-tag { white-space: nowrap; }

/* Minimal goal card */
.grow { padding: 14px 16px; }
.grow-title { font-size: 1rem; margin: 4px 0 6px; }
.grow-time { font-size: 1.45rem; }
.grow-mini { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 8px 0 0; min-height: 40px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.grow-mini > span:first-child { flex: 1; letter-spacing: .04em; }
.grow-mini b { font-family: var(--mono); color: var(--gold); font-weight: 600; }
.grow-dots { display: inline-flex; gap: 4px; }
.grow-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); }
.grow-dots i.on { background: var(--ok); border-color: var(--ok); }
.grow-hide { background: none; border: 0; color: var(--muted); font: inherit; font-size: .78rem; padding: 6px 4px; cursor: pointer; }
.grow-btn { margin-top: 10px; }

/* Show-more folds */
details.fold { margin-top: 10px; border-top: 1px solid var(--line); }
details.fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 4px 0; cursor: pointer; color: var(--gold); font-size: .88rem; font-weight: 600; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s ease; }
details.fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.fold[open] > summary span::after { content: ""; }
details.fold.fold-top { margin-top: 0; border-top: 0; }
details.fold.fold-top > summary { color: var(--text); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { details.fold > summary::after { transition: none; } }

.kt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.kt-tip { position: absolute; z-index: 9000; background: var(--raise); border: 1px solid var(--gold); border-radius: 8px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 3px; font-size: .86rem; line-height: 1.45; animation: tipIn .15s ease; }
.kt-tip strong { color: var(--gold); font-size: .8rem; letter-spacing: .04em; }
@keyframes tipIn { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .kt-tip { animation: none; } }

/* Now box */
.now-card { margin: 0 0 14px; }
.now-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.now-time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.now-line { margin: 0 0 8px; }
.now-line b { font-family: var(--mono); font-weight: 600; } .now-line b.up { color: var(--ok); } .now-line b.down { color: var(--danger); }
.now-lv, .now-gauge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 8px; }
.now-lv > div, .now-gauge > div { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.now-lv span, .now-gauge span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-lv strong, .now-gauge strong { font-family: var(--mono); font-weight: 600; font-size: .95rem; }
.now-gauge em { font-style: normal; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.now-gauge .mid { border-color: var(--gold); }
.now-gauge > div:first-child strong { color: var(--ok); } .now-gauge > div:last-child strong { color: var(--danger); }
.now-alert { margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; background: var(--gold-soft); border: 1px solid rgba(224,168,46,.45); font-size: .9rem; }
.now-alert b { font-family: var(--mono); color: var(--gold); }
.now-evs { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.now-ev { border-left: 2px solid var(--gold); padding: 2px 0 2px 10px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.now-ev span { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.now-done { font-size: .82rem; color: var(--ok); }

/* Patterns + glossary */
.pat-card { margin-bottom: 12px; }
.pat-line { margin: 8px 0 0; line-height: 1.55; }
.pat-line b { color: var(--gold); font-weight: 600; }
.gl-list { padding: 4px 16px; }
.gl-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.gl-row:first-child { border-top: 0; }
.gl-row strong { color: var(--gold); }
.gl-row span { color: var(--muted); font-size: .9rem; }

/* ===== Smoothness, back/forward, sheets, tappable dashboard ===== */
html { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"], .tab, .chip { touch-action: manipulation; }
.btn, .tab, .chip, .lesson, .bottom-nav button { transition: transform .08s ease, background-color .15s ease, border-color .15s ease; }
.btn:active, .chip:active, .lesson:active, .bottom-nav button:active, .tap:active { transform: scale(.97); }
.gl-row { content-visibility: auto; contain-intrinsic-size: auto 72px; }

.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); box-shadow: 0 calc(-1 * env(safe-area-inset-top, 0px)) 0 var(--ink); } /* full screen: stays clear of the notch, strip above painted */
.navbtns { display: flex; gap: 4px; margin-left: auto; margin-right: 2px; }
.navbtns button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; padding: 0; }
.navbtns button:disabled { opacity: .3; cursor: default; }
.navbtns button:not(:disabled):active { background: var(--raise); }
@media (max-width: 380px) { .navbtns button { width: 30px; height: 30px; } }

/* Screen transitions (Chrome / Android): short slide that follows the direction you moved */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
  ::view-transition-old(root) { animation-name: vtOut; }
  ::view-transition-new(root) { animation-name: vtIn; }
  html[data-nav-dir="back"]::view-transition-old(root) { animation-name: vtOutBack; }
  html[data-nav-dir="back"]::view-transition-new(root) { animation-name: vtInBack; }
  @keyframes vtOut { to { opacity: 0; transform: translateX(-14px); } }
  @keyframes vtIn { from { opacity: 0; transform: translateX(14px); } }
  @keyframes vtOutBack { to { opacity: 0; transform: translateX(14px); } }
  @keyframes vtInBack { from { opacity: 0; transform: translateX(-14px); } }
}
.topbar { view-transition-name: topbar; }
.bottom-nav { view-transition-name: bottomnav; }

/* Bottom sheet */
.sheet-ov { position: fixed; inset: 0; z-index: 60; background: rgba(5,9,18,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s ease; }
.sheet-ov.on { background: rgba(5,9,18,.72); }
.sheet { width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 6px 18px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.sheet-ov.on .sheet { transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-ov { transition: none; } }
.sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 8px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.sheet-head h2 { font-size: 1.35rem; }
.sheet-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.sheet-sub { margin: 2px 0 0; color: var(--muted); font-size: .88rem; flex: none; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; margin-top: 12px; -webkit-overflow-scrolling: touch; }
body.sheet-open { overflow: hidden; }
.sh-sec { margin: 16px 0 6px; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.sh-sec:first-child { margin-top: 0; }
.sh-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; text-align: left; font: inherit; }
button.sh-row { cursor: pointer; }
.sh-row:first-of-type { border-top: 0; }
.sh-row .sh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sh-row .sh-main span { color: var(--muted); font-size: .84rem; }
.sh-row .sh-end { font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: right; white-space: nowrap; }
.sh-chev { color: var(--muted); flex: none; }
.sh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .sh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sh-stats > div { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.sh-stats strong { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; }
.sh-stats span { font-size: .78rem; color: var(--muted); }
.sh-note { padding: 10px 12px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); margin-bottom: 8px; }
.sh-note p { margin: 4px 0 0; font-size: .9rem; white-space: pre-wrap; }
.sh-when { font-family: var(--mono); font-size: .76rem; color: var(--gold); }
.sh-empty { color: var(--muted); font-size: .9rem; margin: 4px 0 10px; }
.sh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Tappable overview pieces */
button.ov-kpi { text-align: left; cursor: pointer; color: inherit; font: inherit; position: relative; }
button.ov-kpi::after { content: ""; position: absolute; right: 12px; top: 14px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
button.ov-kpi:active { background: var(--raise); }
.ov-bars > button { flex: 1; display: flex; align-items: flex-end; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; }
.ov-bars > button:active i, .ov-bars > button:focus-visible i { background: var(--text); }
.ov-bars-hint { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
button.ov-lead { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.ov-lead:active { background: var(--raise); }
.ov-name { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.ov-when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right; }
.ov-when.old { color: var(--danger); }
.ov-for { font-size: .78rem; color: var(--muted); }

/* Batch card on Classes */
.batch-tap { display: block; width: 100%; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; border-radius: 16px; }
.batch-tap:active { background: var(--raise); }
.batch-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; color: var(--gold); border: 1px solid rgba(224,168,46,.4); border-radius: 999px; padding: 4px 12px; }

/* Glossary */
.gl-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.gl-tools .chips { margin: 0; }
.gl-count { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.gl-row { cursor: default; }
.gl-row .gl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gl-lv { flex: none; font-size: .7rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.gl-lv.b { color: var(--ok); border-color: rgba(93,187,138,.4); }
.gl-lv.i { color: var(--gold); border-color: rgba(224,168,46,.4); }
.gl-lv.a { color: var(--danger); border-color: rgba(226,109,90,.4); }
.gl-row mark { background: var(--gold-soft); color: var(--text); border-radius: 3px; padding: 0 1px; }
.gl-row .gl-aka { font-size: .78rem; color: var(--muted); opacity: .8; }
.gl-letter { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; padding: 8px 0 4px; border-top: 1px solid var(--line); z-index: 1; }
.gl-letter:first-child { border-top: 0; }

body.panch .topbar { background: linear-gradient(180deg, rgba(30,32,40,.35), transparent), var(--ink); }
.welcome-overlay { z-index: 70; }
.sh-note .ov-h { flex-wrap: wrap; gap: 2px 10px; }
.sh-note .ov-kind { white-space: nowrap; }
.sh-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Notifications */
.push-on { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 14px 0 0; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; text-align: left; }
.push-on span { color: var(--gold); font-size: .85rem; }
.nt-entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; margin-bottom: 14px; }
.nt-ok, .nt-bad { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.nt-ok { background: rgba(93,187,138,.15); color: var(--ok); }
.nt-bad { background: rgba(226,109,90,.15); color: var(--danger); }
.nt-steps { margin: 4px 0 0; padding-left: 20px; font-size: .9rem; line-height: 1.6; }
.nt-pref { cursor: pointer; }
.nt-sw { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.nt-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.nt-sw:checked { background: var(--gold); }
.nt-sw:checked::after { transform: translateX(18px); background: var(--ink); }
.nt-entry .sh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

/* ===================== Light theme + text size ===================== */
html, body { font-size: var(--fs, 16px); }
html[data-theme="light"] {
  /* warm beige / parchment */
  --ink: #F2EBDF; --panel: #FBF7F0; --raise: #EAE1D2; --line: #DFD3C0;
  --text: #2A2219; --muted: #6E6152; --ok: #2E7D57; --danger: #B8433A;
  --gold: #976712; --gold-soft: rgba(151, 103, 18, 0.10);
}
html[data-theme="light"] .btn:not(.ghost):not(.quiet):not(.danger) { color: #fff; }
html[data-theme="light"] .bottom-nav { background: rgba(251,247,240,.97); }
html[data-theme="light"] .ov-bars i { background: #D6C9B4; }
html[data-theme="light"] .ov-bars i.now { background: var(--gold); }
html[data-theme="light"] .msg.err { color: #A8303A; }
html[data-theme="light"] .msg.ok { color: #126B49; }
html[data-theme="light"] .sheet-ov.on, html[data-theme="light"] .welcome-overlay { background: rgba(42,34,25,.42); }
html[data-theme="light"] .card, html[data-theme="light"] .ov-kpi { box-shadow: 0 1px 2px rgba(80,60,30,.07); }
html[data-theme="light"] .brand-mark { box-shadow: 0 0 0 1px var(--line); border-radius: 50%; }
html[data-theme="light"] .kt-tip { box-shadow: 0 10px 30px rgba(80,60,30,.16); }
html[data-theme="light"] .install-card { background: linear-gradient(135deg, rgba(169,117,15,.10), transparent 60%), var(--panel); }

/* ===================== Profile hub ===================== */
.pf-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.pf-av { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 1.25rem; border: 1px solid rgba(224,168,46,.35); }
.pf-head h1 { font-size: 1.45rem; margin: 0; }
.pf-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.pf-group { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.pf-gl { font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 4px 6px; }
.pf-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.pf-row:first-child { border-top: 0; }
.pf-row:active { background: var(--raise); }
.pf-ic { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--raise); display: grid; place-items: center; color: var(--muted); }
.pf-row .pf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-row .pf-t span { color: var(--muted); font-size: .82rem; }
.pf-row .pf-v { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pf-row .pf-v.good { color: var(--ok); } .pf-row .pf-v.warn { color: var(--gold); } .pf-row .pf-v.bad { color: var(--danger); }
.pf-sub-h { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.pf-sub-h h1 { font-size: 1.4rem; margin: 0; }
.pf-ver { text-align: center; color: var(--muted); font-size: .78rem; margin: 18px 0 6px; }

/* Appearance controls */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--raise); border-radius: 10px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; padding: 9px 6px; border-radius: 7px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.th-prev { width: 100%; max-width: 74px; height: 46px; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: 9px 1fr; }
.th-prev.dark { background: #0A0D12; } .th-prev.dark i { background: #161C26; }
.th-prev.light { background: #F2EBDF; } .th-prev.light i { background: #FBF7F0; border-bottom: 1px solid #DFD3C0; }
.th-prev.system { background: linear-gradient(90deg, #F2EBDF 50%, #0A0D12 50%); } .th-prev.system i { background: linear-gradient(90deg, #FBF7F0 50%, #161C26 50%); }
.th-prev b { display: block; margin: 7px 8px 0; height: 6px; width: 60%; border-radius: 3px; background: #E0A82E; }
.font-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.font-opt { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 12px; text-align: left; color: var(--text); cursor: pointer; }
.font-opt[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.font-opt big { display: block; font-size: 1.5rem; line-height: 1.1; }
.font-opt span { font-size: .8rem; color: var(--muted); }
.ap-sec { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 18px 0 8px; }
.ap-prev { margin-top: 18px; }
.ap-prev p { margin: 6px 0 0; }

/* ===== Header toolbar: one tidy row ===== */
.topbar { flex-wrap: nowrap; padding: 10px 14px; gap: 8px; }
.topbar .brand { flex: none; min-width: 0; }
.topbar .actions { flex-wrap: nowrap; gap: 6px; }
.navbtns { margin-left: auto; gap: 2px; }
.navbtns button, .tb-btn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: .9rem; flex: none; }
.navbtns button { border-color: transparent; }
.tb-btn:active, .navbtns button:not(:disabled):active { background: var(--raise); }
.tb-lang { font-weight: 600; }
.tb-admin { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-weight: 600; font-size: .85rem; flex: none; }
.tb-admin:active { background: var(--gold-soft); }
@media (max-width: 400px) {
  .brand { font-size: 1.15rem; gap: 8px; } .brand-mark { width: 32px; height: 32px; }
  .navbtns button, .tb-btn { width: 32px; height: 32px; }
  .tb-admin { height: 32px; padding: 0 9px; } 
}
@media (max-width: 360px) { .tb-admin:has(svg) { font-size: 0; gap: 0; width: 32px; padding: 0; justify-content: center; } }

/* Refresh next to the greeting */
.greet-row { flex-wrap: wrap; }
.greet-row #levelChip { flex-basis: 100%; }
.greet-row .greet { flex: 1; min-width: 0; }
.rf-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px 0 10px; border-radius: 17px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.rf-btn svg { color: var(--gold); }
.rf-btn:active { background: var(--raise); }
.rf-btn.spin svg { animation: rfSpin .8s linear infinite; }
@keyframes rfSpin { to { transform: rotate(360deg); } }
.greet-row #levelChip:empty { display: none; }
.rf-btn { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
.brand-tag { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 2px; align-self: center; }
@media (max-width: 620px) { .tb-admin.tb-compact { font-size: 0; gap: 0; width: 34px; height: 34px; padding: 0; justify-content: center; } }

/* ===== Trade log (multi-leg) ===== */
.tl-form { display: block; }
.tl-sec { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 14px; }
.tl-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.tl-view { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-view button { border: 1px solid var(--line); background: var(--ink); color: var(--text); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: .88rem; cursor: pointer; }
.tl-view button.on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.tl-help { font-size: .8rem; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.tl-legs-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tl-lot { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.tl-lot input { width: 92px; padding: 7px 10px; }
.tl-leg { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: var(--ink); }
.tl-leg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tl-leg-n { font-size: .78rem; font-weight: 600; color: var(--muted); flex: none; }
.tl-side { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.tl-side button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.tl-side button.on.buy { background: rgba(47,196,141,.16); color: var(--ok); }
.tl-side button.on.sell { background: rgba(242,100,111,.14); color: var(--danger); }
.tl-leg-top select { flex: 1; min-width: 0; padding: 7px 8px; }
.tl-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.tl-leg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .tl-leg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-leg-grid label span { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.tl-leg-grid input { padding: 9px 10px; }
.tl-leg-pnl { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.tl-leg-pnl:empty { display: none; }
.tl-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.tl-sum > div { flex: 1; min-width: 140px; background: var(--raise); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tl-sum span { font-size: .78rem; color: var(--muted); }
.tl-sum strong { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; }
.tl-sum .up { color: var(--ok); } .tl-sum .down { color: var(--danger); }
.tl-leg-pnl .up { color: var(--ok); } .tl-leg-pnl .down { color: var(--danger); }
.tl-warn { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--gold); }
.tl-more { border-bottom: 0; }
.tl-more summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 3px; }
.tl-chip { font-family: var(--mono); font-size: .72rem; padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); }
.tl-chip.buy { color: var(--ok); border-color: rgba(47,196,141,.35); }
.tl-chip.sell { color: var(--danger); border-color: rgba(242,100,111,.35); }

/* TradingView widgets: match the embed's colour scheme so Chrome keeps them transparent
   (a dark page + non-dark iframe makes Chrome paint a white backdrop) */
.tradingview-widget-container, .tradingview-widget-container iframe { color-scheme: normal; background: transparent !important; }

/* ===== Payments ===== */
.pay-step { display: flex; gap: 12px; margin-bottom: 16px; }
.step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-family: var(--mono); }
.pay-qr { margin: 10px 0; background: #fff; border-radius: 12px; padding: 8px; text-align: center; }
.pay-qr img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.pay-qr p { color: #5C6678; }
.pay-alt { margin: -4px 0 16px 38px; font-size: .9rem; }
.pay-alt summary { cursor: pointer; color: var(--gold); }
.pay-plans { display: flex; flex-direction: column; gap: 8px; }
.pay-plan { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; margin: 0; }
.pay-plan .pf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-plan .pf-t span { color: var(--muted); font-size: .82rem; }
.pay-plan.cur { border-color: var(--gold); }
.pay-price { display: flex; flex-direction: column; align-items: flex-end; }
.pay-price strong { color: var(--gold); font-family: var(--mono); font-size: 1.1rem; }
.pay-price span { color: var(--muted); font-size: .75rem; }
.pay-status { border-color: var(--gold); }
.pay-status.bad { border-color: var(--danger); }
.mp-top { display: flex; gap: 12px; align-items: flex-start; }
.mp-shot { flex: none; width: 76px; height: 110px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.mp-shot img { width: 100%; height: 100%; object-fit: cover; }
.mono { font-family: var(--mono); }
.mp-qrset img { width: 160px; height: auto; border-radius: 8px; background: #fff; padding: 6px; display: block; margin-bottom: 8px; }
.ov-paybar { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0 0 12px; color: var(--text); font: inherit; text-align: left; border-color: var(--gold); cursor: pointer; }

/* ===== Terms ===== */
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gl-more { font-size: .82rem; margin-top: 4px; align-self: flex-start; }
.tm-today { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; margin: 4px 0 12px; border-color: rgba(224,168,46,.45); background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--panel); }
.tm-kick { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--gold); }
.tm-today strong { font-size: 1.3rem; }
.tm-today span { color: var(--muted); font-size: .92rem; }
.tm-today .tm-more { color: var(--gold); font-size: .85rem; margin-top: 2px; }
.tm-list { padding-top: 4px; padding-bottom: 4px; }
.tm-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tm-list > .tm-row:first-child, .tm-list .gl-letter + .tm-row { border-top: 0; }
.tm-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-row-t strong { color: var(--gold); }
.tm-row-t > span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tm-row mark, .tm-list mark { background: var(--gold-soft); color: var(--text); border-radius: 3px; }
.tm-star { color: var(--gold); font-size: .8rem; }
.tm-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tm-steps li { position: relative; padding-left: 14px; border-left: 2px solid var(--line); }
.tm-steps li:nth-child(1) { border-left-color: var(--ok); }
.tm-steps li:nth-child(2) { border-left-color: var(--gold); }
.tm-steps li:nth-child(3) { border-left-color: var(--danger); }
.tm-steps p { margin: 4px 0 0; line-height: 1.6; font-size: .98rem; }
.tm-lv { font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tm-lv.b { color: var(--ok); } .tm-lv.i { color: var(--gold); } .tm-lv.a { color: var(--danger); }
.tm-news { margin-top: 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tm-news span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tm-news p { margin: 6px 0 0; font-family: var(--serif); font-style: italic; line-height: 1.5; }
.tm-rel { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-rel .chip small { color: var(--muted); font-size: .7rem; }
.tm-acts { display: flex; gap: 8px; margin-top: 16px; }
.tm-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.tm-nav .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-back { background: none; border: 0; color: var(--gold); font: inherit; font-size: .88rem; padding: 0 0 10px; cursor: pointer; }

/* ===== Images on doubts / journal ===== */
.md-pick { margin: 2px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-thumbs { display: contents; }
.md-th { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); flex: none; }
.md-th img { width: 100%; height: 100%; object-fit: cover; }
.md-th button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; cursor: pointer; padding: 0; }
.md-add { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px dashed var(--line); border-radius: 18px; color: var(--gold); font-size: .86rem; cursor: pointer; background: var(--ink); }
.md-add:active { background: var(--raise); }
.md-hint { flex-basis: 100%; font-size: .75rem; color: var(--muted); }
.md-grid { display: grid; gap: 6px; margin: 8px 0 2px; max-width: 420px; }
.md-grid.n1 { grid-template-columns: 1fr; } .md-grid.n2 { grid-template-columns: 1fr 1fr; } .md-grid.n3 { grid-template-columns: 1fr 1fr 1fr; }
.md-img { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--ink); cursor: zoom-in; aspect-ratio: 4 / 3; display: block; }
.md-grid.n1 .md-img { aspect-ratio: auto; max-height: 260px; }
.md-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 60px; }
.md-grid.n1 .md-img img { object-fit: contain; max-height: 260px; }
.md-broken { display: none; }
.md-keep { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; font-size: .85rem; }
.md-view { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0); display: flex; flex-direction: column; transition: background .18s; }
.md-view.on { background: rgba(0,0,0,.94); }
.md-stage { flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.md-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .05s linear; user-select: none; -webkit-user-drag: none; }
.md-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: linear-gradient(rgba(0,0,0,.6), transparent); color: #fff; }
.md-count { font-family: var(--mono); font-size: .85rem; }
.md-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 1rem; cursor: pointer; }
.md-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; }
.md-nav.prev { left: 10px; } .md-nav.next { right: 10px; }
@media (hover: none) { .md-nav { display: none; } }
.rp-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rp-form textarea { width: 100%; }
.rp-form > .btn { align-self: flex-start; }
.rp-form .md-pick { margin: 0; }
.qr-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.qr-row::-webkit-scrollbar { display: none; }
.qr { flex: none; border: 1px solid var(--line); background: var(--ink); color: var(--text); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .8rem; cursor: pointer; white-space: nowrap; -webkit-user-select: none; user-select: none; }
.qr:active { background: var(--raise); }
.qr-add { color: var(--gold); border-style: dashed; }

/* Pull to refresh + offline */
html { overscroll-behavior-y: contain; }
.ptr { position: fixed; top: 64px; left: 50%; z-index: 40; width: 40px; height: 40px; margin-top: -48px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--muted); box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; transform: translate(-50%, 0); transition: opacity .12s; pointer-events: none; }
.ptr.show { opacity: 1; }
.ptr.armed { color: var(--gold); border-color: var(--gold); }
.ptr.spin svg { animation: rfSpin .8s linear infinite; }
#offlineBar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 55; background: #3a2a10; color: #f5d9a0; border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; font-size: .88rem; text-align: center; }
#offlineBar.ok { background: #0f3324; color: #a6e8c6; border-color: var(--ok); }

/* ===== Essentials deep-dives ===== */
.ess-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ess-row:active { opacity: .7; }
.ess-end { display: flex; align-items: center; gap: 6px; flex: none; }
button.exp-row { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 10px 0; display: flex; align-items: center; gap: 8px; }
button.exp-row:first-of-type { border-top: 0; }
button.exp-row > span:first-child { flex: 1; }
button.exp-row:active { opacity: .7; }
.tap-row { cursor: pointer; }
.tap-row:active td { background: var(--raise); }
.tap-row td .muted.small { color: var(--gold); }
.ess-hero { background: linear-gradient(135deg, var(--gold-soft), transparent 75%), var(--ink); border: 1px solid rgba(224,168,46,.35); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ess-hero > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ess-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--gold); }
.ess-hero strong { font-size: 1.25rem; }
.ess-note { font-size: .84rem; color: var(--muted); }
.ess-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.ess-stats b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.ess-call { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.ess-call.warn { border-color: rgba(226,109,90,.5); }
.ess-tl { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.ess-tl li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0 8px; position: relative; }
.ess-tl li::before { content: ""; position: absolute; left: 96px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ess-tl li::after { content: ""; position: absolute; left: 100px; top: 24px; bottom: -8px; width: 1px; background: var(--line); }
.ess-tl li:last-child::after { display: none; }
.ess-tl li.hi::before { background: var(--gold); }
.ess-tl li.end::before { background: var(--ok); }
.ess-d { font-family: var(--mono); font-size: .76rem; color: var(--muted); padding-top: 2px; }
.ess-e { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; line-height: 1.45; }
.ess-e small { color: var(--muted); font-size: .82rem; }
.ess-tag { font-style: normal; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(226,109,90,.15); color: var(--danger); margin-left: 4px; white-space: nowrap; }
.ess-tag.up { background: rgba(93,187,138,.15); color: var(--ok); }
.ess-tag.down { background: rgba(226,109,90,.15); color: var(--danger); }
.ess-tips { list-style: none; margin: 0; padding: 0; }
.ess-tips li { padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.ess-tips li:first-child { border-top: 0; }
.sheet-body > p { line-height: 1.6; margin: 4px 0 0; }
.bias.long_unwinding { color: var(--danger); border: 1px dashed var(--danger); background: transparent; }
.bias.short_unwinding { color: var(--ok); border: 1px dashed var(--ok); background: transparent; }
.bias-hint { margin: 8px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--line); }
.bias-hint.long_unwinding { border-left-color: var(--danger); }
.bias-hint.short_unwinding { border-left-color: var(--ok); }

/* ===================== Public website ===================== */
.pb-hero { position: relative; text-align: left; padding: 34px 20px 30px; max-width: 900px; margin: 0 auto; overflow: hidden; }
.pb-hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(224,168,46,.16), transparent 70%); pointer-events: none; }
.pb-mark { width: 56px; height: 56px; border-radius: 50%; background: transparent; padding: 0; box-shadow: 0 0 0 1.5px var(--gold); }
.pb-kick { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 18px 0 8px; }
.pb-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 8.5vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em; margin: 0; color: var(--text); }
.pb-lede { font-size: 1.05rem; line-height: 1.6; color: var(--muted); max-width: 34em; margin: 16px 0 0; }
.pb-motto { font-family: var(--serif); font-style: italic; color: var(--gold); margin: 14px 0 0; }
.pb-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pb-cta.big { justify-content: center; }
.pb-live { display: grid; gap: 12px; margin-top: 4px; }
@media (min-width: 720px) { .pb-live { grid-template-columns: 1fr 1fr; } }
.pb-sec { margin: 40px 0 0; }
.pb-eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.pb-sec h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 0 0 12px; letter-spacing: -.005em; }
.pb-h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; }
.pb-day { list-style: none; margin: 0 0 10px; padding: 0; border-left: 2px solid var(--line); }
.pb-day li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 10px 0 10px 14px; position: relative; }
.pb-day li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--ink); }
.pb-time { font-family: var(--mono); font-size: .86rem; color: var(--gold); padding-top: 1px; }
.pb-day strong { display: block; }
.pb-day span:not(.pb-time) { color: var(--muted); font-size: .88rem; }
.pb-free { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .pb-free { grid-template-columns: repeat(3, 1fr); } }
.pb-fc { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; color: var(--text); font: inherit; cursor: pointer; margin: 0; border-color: rgba(224,168,46,.3); }
.pb-fc svg { color: var(--gold); }
.pb-fc strong { font-size: 1.05rem; }
.pb-fc span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pb-fc:active { background: var(--raise); }
.pb-feat { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 720px) { .pb-feat { grid-template-columns: 1fr 1fr; } }
.pb-f { display: flex; gap: 12px; align-items: flex-start; }
.pb-fi { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.pb-f strong { display: block; margin-bottom: 2px; }
.pb-f span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pb-principles .pb-pr { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 720px) { .pb-principles .pb-pr { grid-template-columns: repeat(3, 1fr); } }
.pb-pr > div { background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.pb-pr svg { color: var(--gold); }
.pb-pr span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pb-final { text-align: center; padding: 28px 16px; border: 1px solid rgba(224,168,46,.35); border-radius: 14px; background: linear-gradient(160deg, var(--gold-soft), transparent 70%); }
.pb-final h2 { margin-bottom: 6px; }
.pb-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.pb-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.pb-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.pb-steps span { color: var(--muted); font-size: .9rem; }
.pb-rhythm { display: grid; gap: 10px; }
@media (min-width: 720px) { .pb-rhythm { grid-template-columns: repeat(3, 1fr); } }
.pb-rhythm ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; font-size: .93rem; }
.pb-tag { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pb-plans { display: grid; gap: 12px; margin-bottom: 10px; }
@media (min-width: 720px) { .pb-plans { grid-template-columns: repeat(3, 1fr); } }
.pb-plan { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pb-plan.hl { border-color: var(--gold); background: linear-gradient(160deg, var(--gold-soft), transparent 60%), var(--panel); }
.pb-badge { position: absolute; top: -10px; right: 14px; background: var(--gold); color: #0B1220; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pb-price { font-family: var(--mono); font-size: 1.6rem; color: var(--gold); margin: 4px 0 0; }
.pb-price span { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.pb-plan ul { margin: 8px 0 14px; padding-left: 18px; line-height: 1.6; font-size: .92rem; flex: 1; }
.pb-foot { margin: 40px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.pb-fmark { width: 40px; height: 40px; border-radius: 50%; }
.pb-flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 12px 0; font-size: .9rem; }
.pb-disc { max-width: 40em; margin: 8px auto 0; line-height: 1.5; }
.bottom-nav.pub { grid-template-columns: repeat(4, 1fr); }
html[data-theme="light"] .pb-badge { color: #fff; }

/* ===== Freemium locks ===== */
.lk-wrap { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; min-height: 170px; }
.lk-wrap.short { min-height: 120px; }
.lk-blur { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; -webkit-user-select: none; max-height: 340px; overflow: hidden; }
.lk-blur .card, .lk-blur article { margin: 0; }
.lk-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(10,13,18,.15), rgba(10,13,18,.75)); }
html[data-theme="light"] .lk-over { background: linear-gradient(180deg, rgba(242,235,223,.2), rgba(242,235,223,.88)); }
.lk-over strong { font-size: 1.05rem; }
.lk-over > span:not(.btn):not(.lk-ic) { color: var(--muted); font-size: .86rem; max-width: 26em; }
.lk-over .btn { margin-top: 6px; pointer-events: none; }
.lk-ic { font-size: 1.5rem; line-height: 1; }
.lk-wrap:focus-visible { outline: 2px solid var(--gold); }
.lk-text { filter: blur(4.5px); opacity: .6; user-select: none; -webkit-user-select: none; color: var(--muted); font-size: .9rem; }
.lk-row { cursor: pointer; }
.lk-row:active { background: var(--raise); }
.lk-chip { font-size: .72rem; color: var(--gold); border: 1px solid rgba(224,168,46,.4); border-radius: 999px; padding: 1px 8px; white-space: nowrap; font-weight: 600; }
.lk-head { margin-top: 6px; }
.lk-badge { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(224,168,46,.4); border-radius: 999px; padding: 3px 10px; }
.lk-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text); font: inherit; cursor: pointer; margin: 4px 0 14px; border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--panel); }
.lk-banner .pf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-banner .pf-t span { color: var(--muted); font-size: .86rem; }
.lk-banner .btn { flex: none; pointer-events: none; }
.lk-lede { margin: 0 0 6px; }
.lk-list { margin: 0 0 6px; padding-left: 20px; line-height: 1.7; }
.lk-list li::marker { content: "✓  "; color: var(--ok); }
.lk-login { text-align: center; margin-bottom: 14px; }
.lk-login .lk-ic { font-size: 2rem; display: block; margin-bottom: 6px; }

/* ---- Advanced read: breadth, sectors, moving averages ---- */
.br-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 10px 0 6px; background: var(--ink); border: 1px solid var(--line); }
.br-bar i { display: block; height: 100%; }
.br-bar i.up { background: var(--ok); } .br-bar i.down { background: var(--danger); } .br-bar i.flat { background: var(--muted); opacity: .5; }
.br-leg { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; }
.br-stk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.br-stk > div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.br-stk p { display: flex; justify-content: space-between; gap: 6px; margin: 4px 0 0; font-size: .85rem; font-variant-numeric: tabular-nums; }
.br-stk b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-bars { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.sec-bar { display: grid; grid-template-columns: minmax(84px, 34%) 1fr 58px; align-items: center; gap: 8px; font-size: .82rem; }
.sb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.sb-t { position: relative; height: 8px; background: var(--ink); border-radius: 4px; }
.sb-t::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.sb-t i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.sb-t i.up { background: var(--ok); } .sb-t i.down { background: var(--danger); }
.sb-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.why-list { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; line-height: 1.5; }
.why-list strong { font-weight: 700; }
.why-news { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.ma-tbl { display: flex; flex-direction: column; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ma-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: baseline; padding: 7px 10px; font-size: .85rem; border-bottom: 1px solid var(--line); background: var(--ink); }
.ma-row:last-child { border-bottom: 0; }
.ma-row span:first-child { color: var(--muted); font-weight: 600; }
.ma-row strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.ma-row span:last-child { font-size: .78rem; font-weight: 600; text-align: right; }
.ma-more { margin-top: 8px; } .ma-more summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.nf-point .up { color: var(--ok); } .nf-point .down { color: var(--danger); }

/* beige light theme: warm brand mark */
html[data-theme="light"] .brand-mark { background: transparent; }
/* ---- Bottom line box ---- */
.rd-bottom { border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; background: var(--ink); }
.rd-bottom.lean-up { border-left-color: var(--ok); } .rd-bottom.lean-down { border-left-color: var(--danger); }
.rdb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rdb-k { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rdb-l { margin: 0 0 6px; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.rdb-r { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; }
.rdb-n { margin: 8px 0 0; font-size: .76rem; color: var(--muted); }

/* ---- Global troika: US 10Y · USD/INR · Brent ---- */
.gt { margin-top: 12px; padding: 16px 16px 14px; position: relative; overflow: hidden; }
.gt::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.gt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.gt-k { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gt-sub { margin: 3px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.gt-when { white-space: nowrap; padding-top: 1px; }
.gt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gt-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 10px 9px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); color: var(--muted); transition: transform .15s ease, border-color .15s ease; }
.gt-tile:active { transform: scale(.97); }
.gt-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gt-tile.sk .gt-v { opacity: .4; }
.gt-n { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-v { font-family: var(--serif, Georgia, serif); font-size: 1.22rem; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.gt-c { font-size: .74rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-spark { display: block; width: 100%; height: 30px; margin: 6px 0 4px; overflow: visible; }
.gt-im { align-self: flex-start; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; opacity: .9; }
.gt-tile.im-1, .gt-sh-top.im-1 { color: var(--danger); } .gt-tile.im1, .gt-sh-top.im1 { color: var(--ok); } .gt-tile.im0, .gt-sh-top.im0 { color: var(--gold); }
.gt-tile.im-1 { border-color: rgba(226,109,90,.35); } .gt-tile.im1 { border-color: rgba(93,187,138,.35); }
.gt-verdict { margin: 12px 0 0; font-size: .86rem; line-height: 1.5; color: var(--text); }
.gt-verdict b { font-weight: 700; }
.gt-sh-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.gt-sh-v { font-family: var(--serif, Georgia, serif); font-size: 2rem; color: var(--text); font-variant-numeric: tabular-nums; }
.gt-sh-c { font-weight: 600; font-size: .9rem; }
.gt-sh-chart { margin-top: 12px; color: var(--gold); }
.gt-sh-chart .gt-spark.big { height: 90px; }
.gt-sh-ax { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 360px) { .gt-v { font-size: 1.05rem; } .gt-grid { gap: 6px; } .gt-tile { padding: 9px 8px; } }

/* ---- Option strategies ---- */
.st-intro { margin-bottom: 12px; padding: 12px 14px; }
.st-intro summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.st-intro summary::-webkit-details-marker { display: none; }
.st-finder { padding: 12px 14px; }
.st-q { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-finder .chips + .st-q { margin-top: 12px; }
.st-row { align-items: center; }
.st-mini-w { flex: none; width: 64px; height: 30px; margin-right: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); padding: 2px; display: flex; }
.st-mini { width: 100%; height: 100%; }
.st-tags { display: flex; gap: 6px; margin-top: 3px; }
.st-lv { font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.st-lv.l1 { color: var(--ok); border-color: rgba(93,187,138,.5); } .st-lv.l2 { color: var(--gold); border-color: rgba(212,169,74,.5); } .st-lv.l3 { color: var(--danger); border-color: rgba(226,109,90,.5); }
.pf-up { fill: var(--ok); opacity: .16; } .pf-dn { fill: var(--danger); opacity: .16; }
.pf-zero { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.pf-line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.st-mini .pf-line { stroke-width: 1.3; }
.pf-now { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pf-spot { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.pf-be { fill: var(--panel); stroke: var(--gold); stroke-width: 2; }
.pf-tx { font-size: 10px; fill: var(--muted); font-family: inherit; } .pf-tx.up { fill: var(--ok); } .pf-tx.dn { fill: var(--danger); }
.st-chart { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 6px; }
.st-pf { display: block; width: 100%; height: auto; }
.st-leg { display: flex; gap: 14px; justify-content: center; font-size: .74rem; color: var(--muted); margin-top: 2px; }
.pf-k { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--text); vertical-align: middle; margin-right: 5px; }
.pf-k.now { border-top: 2px dashed var(--gold); } .pf-k.be { width: 8px; height: 8px; border: 2px solid var(--gold); border-radius: 50%; }
.st-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.st-stats div { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.st-stats span { display: block; font-size: .74rem; color: var(--muted); }
.st-stats strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; margin-top: 1px; }
.st-stats em { display: block; font-style: normal; font-size: .74rem; color: var(--muted); }
.st-view { border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; }
.st-view span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.st-view strong { display: block; margin-top: 2px; font-size: 1rem; line-height: 1.4; }
.st-legs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.st-legs li.buy::marker { color: var(--ok); font-weight: 700; } .st-legs li.sell::marker { color: var(--danger); font-weight: 700; }
.st-ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.st-ul li { position: relative; padding-left: 22px; }
.st-ul.ok li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.st-ul.bad li::before { content: "✗"; position: absolute; left: 2px; color: var(--danger); font-weight: 700; }
.st-evs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.st-ev { display: flex; gap: 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; line-height: 1.5; }
.st-ev.ok { border-left: 3px solid var(--ok); } .st-ev.bad { border-left: 3px solid var(--danger); }
.st-ev-ic { flex: none; font-weight: 700; } .st-ev.ok .st-ev-ic { color: var(--ok); } .st-ev.bad .st-ev-ic { color: var(--danger); }
.st-tip { margin-top: 16px; border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; }
.st-tip span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.st-tip p { margin: 4px 0 0; line-height: 1.6; }

/* ---- Saved analysis ---- */
.ar-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; margin-bottom: 12px; }
.ar-score span, .ar-top span { display: block; font-size: .72rem; color: var(--muted); }
.ar-score strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.ar-score em, .ar-top em { display: block; font-style: normal; font-size: .76rem; color: var(--muted); }
.ar-row { align-items: center; }
.ar-date { flex: none; width: 46px; margin-right: 10px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; background: var(--ink); }
.ar-date b { font-family: var(--serif); font-weight: normal; font-size: 1.25rem; line-height: 1.1; }
.ar-date i { font-style: normal; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ar-chips em { font-style: normal; }
.ar-nx { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ar-nx.ok { color: var(--ok); border-color: rgba(93,187,138,.5); } .ar-nx.bad { color: var(--danger); border-color: rgba(226,109,90,.5); }
.ar-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ar-top > div { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ar-top strong { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.ar-next { border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; margin: 4px 0 6px; line-height: 1.55; }
.nf-levels div.hit { border-color: var(--ok); }
.nf-levels div.hit span { color: var(--ok); font-weight: 600; }

/* ---- Top 5 news right now ---- */
.np { margin: 4px 0 12px; padding: 14px 14px 8px; }
.np-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.np-k { margin: 0; display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.np-live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(226,109,90,.5); animation: npPulse 2s infinite; }
@keyframes npPulse { 0% { box-shadow: 0 0 0 0 rgba(226,109,90,.45); } 70% { box-shadow: 0 0 0 8px rgba(226,109,90,0); } 100% { box-shadow: 0 0 0 0 rgba(226,109,90,0); } }
.np-sub { margin: 3px 0 0; font-size: .78rem; color: var(--muted); }
.np-list { list-style: none; margin: 0; padding: 0; }
.np-list > li + li { border-top: 1px solid var(--line); }
.np-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 0; }
.np-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.np-row:active { opacity: .7; }
.np-n { flex: none; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; color: var(--gold); width: 18px; text-align: center; }
.np-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.np-t strong { font-size: .93rem; font-weight: 600; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .72rem; color: var(--muted); }
.np-meta em { font-style: normal; }
.np-th { padding: 1px 7px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); color: var(--text); }
.np-tone { font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.np-tone.up { color: var(--ok); } .np-tone.down { color: var(--danger); } .np-tone.flat { color: var(--gold); }
.np-imp { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 34px; }
.np-imp b { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--text); }
.np-imp i { display: block; width: 30px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--v), var(--line) var(--v)); }
.np-row.sk .np-t i { display: block; height: 10px; border-radius: 5px; background: var(--line); opacity: .6; }
.np-row.sk .np-t i + i { width: 60%; }
.np-empty { padding: 10px 0; }
/* deep-dive */
.nd-hero { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.nd-hl { min-width: 0; }
.nd-hl h3 { margin: 0; font-family: inherit; font-size: 1.08rem; font-weight: 700; line-height: 1.4; text-wrap: balance; }
.nd-src { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--gold); }
.nd-g { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; }
.ch-gauge { width: 104px; height: auto; display: block; }
.g-bg { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; }
.g-fg { fill: none; stroke-width: 9; stroke-linecap: round; stroke: var(--gold); }
.g-fg.up { stroke: var(--ok); } .g-fg.down { stroke: var(--danger); }
.g-v { font-size: 20px; font-weight: 700; fill: var(--text); font-family: inherit; } .g-l { font-size: 8.5px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-family: inherit; }
.nd-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.nd-h { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.nd-sec p { margin: 0; line-height: 1.6; }
.nd-cap { font-size: .8rem; color: var(--muted); margin-top: 6px !important; line-height: 1.5 !important; }
.nd-now { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.nd-now > div:first-child span { display: block; font-size: .74rem; color: var(--muted); }
.nd-now b { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.nd-now em { font-style: normal; font-weight: 700; font-size: .9rem; }
.nd-spark { min-width: 0; }
.nd-big { display: flex; gap: 14px; align-items: center; } .nd-big b { font-family: var(--serif); font-weight: normal; font-size: 2.2rem; color: var(--gold); } .nd-big span { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.nd-tl { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nd-tl li { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.nd-d { font-size: .78rem; font-weight: 700; color: var(--gold); padding-top: 2px; }
.nd-tl em { font-style: normal; font-weight: 700; font-size: .82rem; }
.nd-tl p { margin: 2px 0 0 !important; font-size: .88rem; }
.nd-ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; line-height: 1.55; }
.nd-dev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nd-dev a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: inherit; text-decoration: none; }
.nd-dev strong { font-size: .88rem; font-weight: 600; line-height: 1.4; } .nd-dev span { font-size: .74rem; color: var(--muted); }
/* charts */
.ch-line, .ch-bars, .ch-cols, .ch-iso { display: block; width: 100%; height: auto; overflow: visible; }
.ch-line { color: var(--gold); } .ch-line.up { color: var(--ok); } .ch-line.down { color: var(--danger); } .ch-line.gold { color: var(--gold); }
.c-ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; } .c-dot { fill: currentColor; stroke: var(--panel); stroke-width: 1.5; }
.c-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; } .c-axis { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.c-tx, .c-lb, .c-vl, .c-vs { font-family: inherit; font-size: 10px; fill: var(--muted); }
.c-lb { font-size: 10.5px; fill: var(--text); } .c-lb.hl, .c-tx.hl, .c-vs.hl { fill: var(--gold); font-weight: 700; }
.c-vl { font-weight: 600; font-variant-numeric: tabular-nums; } .c-vl.up { fill: var(--ok); } .c-vl.down { fill: var(--danger); }
.c-bar { fill: var(--muted); transform-box: fill-box; transform-origin: left; animation: barIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.ch-cols .c-bar { transform-origin: bottom; animation-name: colIn; }
.c-bar.up { fill: var(--ok); } .c-bar.down { fill: var(--danger); } .c-bar.mono { fill: var(--gold); opacity: .55; } .c-bar.mono.hl { opacity: 1; }
.c-bar.soft { opacity: .45; } .c-bar.hl { stroke: var(--gold); stroke-width: 1.5; } .c-bar.today { fill: var(--gold); opacity: 1; }
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes colIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.iso-floor { fill: var(--ink); stroke: var(--line); }
.iso-b { transform-box: fill-box; transform-origin: bottom; animation: colIn .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.iso-b .f-front { fill: var(--muted); } .iso-b .f-side { fill: var(--muted); opacity: .7; } .iso-b .f-top { fill: var(--muted); opacity: .45; }
.iso-b.up .f-front, .iso-b.up .f-side, .iso-b.up .f-top { fill: var(--ok); } .iso-b.down .f-front, .iso-b.down .f-side, .iso-b.down .f-top { fill: var(--danger); }
.iso-b .f-side { filter: brightness(.78); } .iso-b .f-top { filter: brightness(1.18); }
.ch-donut { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.ch-donut svg { width: 120px; height: 120px; }
.d-bg { fill: none; stroke: var(--line); stroke-width: 14; } .d-seg { fill: none; stroke-width: 14; }
.ch-donut ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .82rem; min-width: 0; }
.ch-donut li { display: flex; align-items: center; gap: 7px; } .ch-donut li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ch-donut li i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.s0 { stroke: var(--gold); background: var(--gold); } .s1 { stroke: var(--ok); background: var(--ok); } .s2 { stroke: var(--danger); background: var(--danger); }
.s3 { stroke: #5B8DEF; background: #5B8DEF; } .s4 { stroke: #A77BD6; background: #A77BD6; } .s5 { stroke: var(--muted); background: var(--muted); }
@media (prefers-reduced-motion: reduce) { .c-bar, .iso-b, .np-live { animation: none; } }
.np-head .linkbtn { white-space: nowrap; flex: none; }
.nd-sec .ch-cols, .nd-sec .ch-bars, .nd-sec .ch-line, .nd-sec .ch-iso { margin-top: 6px; }
/* Top 5 → "All about it" right below */
.np-row.on { background: var(--gold-soft); border-radius: 10px; margin: 0 -8px; padding: 10px 8px; width: calc(100% + 16px); }
.np-about { margin: 0 0 12px; padding: 14px; scroll-margin-top: 70px; }
.npa-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.npa-tabs { display: flex; gap: 6px; }
.npa-tab { appearance: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--muted); font: 700 .85rem var(--serif, Georgia, serif); cursor: pointer; }
.npa-tab.on { background: var(--gold); border-color: var(--gold); color: var(--panel); }
.npa-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.npa-theme { margin: 0 0 12px; font-size: .78rem; color: var(--muted); }
.j-edited { color: var(--gold); }

/* ===== Home folds ===== */
.hf { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 10px; overflow: hidden; }
.hf-s { list-style: none; display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.hf-s::-webkit-details-marker { display: none; }
.hf-s:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 16px; }
.hf-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line); font-size: 1.05rem; }
.hf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hf-t > b { font-size: .98rem; font-weight: 700; color: var(--text); }
.hf-sum { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-sum .num { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.hf-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 5px; vertical-align: 1px; }
.hf-dot.live { background: var(--danger); animation: npPulse 2s infinite; }
.hf-chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease; }
.hf[open] > .hf-s .hf-chev { transform: rotate(225deg) translate(-2px, -2px); }
.hf[open] > .hf-s { border-bottom: 1px solid var(--line); }
.hf-b { padding: 6px 12px 12px; animation: hfIn .28s ease both; }
@keyframes hfIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hf-b > .card, .hf-b > section.card, .hf-b > div > .card:only-child { border: 0; background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; margin: 0; }
.hf-b .np-head .np-k, .hf-b .gt-k, .hf-b .mb-title { display: none; }
.hf-b .np-about { border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { .hf-b { animation: none; } .hf-chev { transition: none; } }

/* ===== News deep-dive v2 designs ===== */
.nb { margin-top: 16px; }
.nb-h { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nb-why p { margin: 0; line-height: 1.6; }
/* big-number tiles */
.kp { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.kp-t { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); min-width: 0; position: relative; overflow: hidden; }
.kp-t::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.kp-t.up::before { background: var(--ok); } .kp-t.down::before { background: var(--danger); }
.kp-t span { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.kp-t b { font-family: var(--serif); font-weight: normal; font-size: clamp(1.1rem, 5.2vw, 1.5rem); line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-t em { font-style: normal; font-size: .72rem; color: var(--muted); }
.kp-t.up em { color: var(--ok); } .kp-t.down em { color: var(--danger); }
.kp-t:active, .kp-t.ix-on { border-color: var(--gold); }
/* scrub chart (terminal-style readout) */
.sc { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 8px; color: var(--gold); touch-action: pan-y; }
.sc.down { color: var(--danger); } .sc.up { color: var(--ok); }
.sc-read { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k ch" "v ch" "d ch"; column-gap: 10px; color: var(--text); border-left: 3px solid currentColor; padding-left: 10px; margin-bottom: 6px; }
.sc-read { border-left-color: var(--gold); }
.sc-k { grid-area: k; font-size: .74rem; color: var(--muted); } .sc-v { grid-area: v; font-family: var(--serif); font-weight: normal; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-d { grid-area: d; font-size: .74rem; color: var(--muted); } .sc-ch { grid-area: ch; align-self: center; font-size: .78rem; font-weight: 700; text-align: right; max-width: 130px; }
.sc-svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.sc-rule { stroke: var(--text); stroke-width: 1.2; opacity: .55; } .sc-dot { fill: currentColor; stroke: var(--panel); stroke-width: 2; }
.sc.scrubbing .sc-rule { opacity: .9; }
.sc-band { fill: var(--ok); opacity: .08; } .sc-ref { stroke: var(--ok); stroke-dasharray: 4 4; stroke-width: 1; opacity: .7; }
.sc-hint { margin: 2px 0 0; font-size: .7rem; color: var(--muted); text-align: center; }
/* 3-month range meter */
.rm { margin-top: 10px; cursor: pointer; } .rm-bar { position: relative; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--ok), var(--gold), var(--danger)); opacity: .85; }
.rm-bar i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--text); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--panel); }
.rm-lb { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--muted); margin-top: 6px; } .rm-lb b { color: var(--text); font-size: .82rem; } .rm-lb em { font-style: normal; font-size: .66rem; } .rm-lb span:last-child { text-align: right; }
/* long/short bar */
.ls { margin-top: 12px; cursor: pointer; } .ls-bar { display: flex; height: 12px; border-radius: 7px; overflow: hidden; } .ls-bar i.up { background: var(--ok); } .ls-bar i.down { background: var(--danger); }
.ls-lb { display: flex; justify-content: space-between; font-size: .76rem; margin-top: 5px; font-weight: 600; } .ls-lb span:nth-child(2) { color: var(--muted); font-weight: 400; }
/* cause → effect chain */
.fc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.fc li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 18px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.fc li:not(:last-child)::after { content: "↓"; position: absolute; left: 22px; bottom: -18px; font-size: .8rem; color: var(--gold); line-height: 18px; }
.fc li:last-child { margin-bottom: 0; border-color: var(--gold); background: var(--gold-soft); }
.fc.fc-down li:last-child { border-color: var(--danger); } .fc.fc-up li:last-child { border-color: var(--ok); }
.fc-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--panel); border: 1px solid var(--line); color: var(--gold); }
.fc-t { font-size: .88rem; line-height: 1.4; } .fc li.ix-on { border-color: var(--gold); }
.fc-more { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--gold); font-size: .86rem; line-height: 1.5; }
/* sector impact list */
.si { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.si-r { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr 64px 62px 58px; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--ink); }
.si-r:last-child { border-bottom: 0; } .si-r.ix-on { background: var(--gold-soft); }
.si-n { font-weight: 600; font-size: .9rem; } .si-m { display: flex; gap: 3px; } .si-m i { flex: 1; height: 8px; border-radius: 2px; background: var(--line); }
.si-r.up .si-m i.on { background: var(--ok); } .si-r.down .si-m i.on { background: var(--danger); } .si-r.flat .si-m i.on { background: var(--muted); }
.si-d { font-size: .74rem; font-weight: 700; } .si-r.up .si-d { color: var(--ok); } .si-r.down .si-d { color: var(--danger); } .si-r.flat .si-d { color: var(--muted); }
.si-l { font-size: .78rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
/* scenarios */
.scn { display: flex; flex-direction: column; gap: 8px; }
.scn-r { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); position: relative; font-size: .85rem; line-height: 1.35; }
.scn-r.sc-up { background: linear-gradient(90deg, rgba(93,187,138,.12), transparent 70%); } .scn-r.sc-down { background: linear-gradient(90deg, rgba(226,109,90,.12), transparent 70%); } .scn-r.sc-flat { background: linear-gradient(90deg, rgba(212,169,74,.10), transparent 70%); }
.scn-if { font-weight: 700; } .scn-arrow { color: var(--muted); } .scn-then { color: var(--text); }
.scn-r.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.scn-r em { position: absolute; top: -8px; right: 10px; font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--panel); padding: 1px 7px; border-radius: 999px; }
/* expandable timeline */
.tl2 { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.tl2-i { position: relative; padding: 0 0 12px 16px; }
.tl2-i::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--gold); }
.tl2-i summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.tl2-i summary::-webkit-details-marker { display: none; }
.tl2-d { grid-column: 1; font-size: .74rem; font-weight: 700; color: var(--gold); } .tl2-e { grid-column: 1; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.tl2-i summary b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .95rem; font-variant-numeric: tabular-nums; } .tl2-i summary b.flat { color: var(--muted); }
.tl2-i p { margin: 6px 0 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.tl2-i[open]::before { background: var(--gold); }
/* two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .two > div { min-width: 0; }
.nd-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; line-height: 1.5; font-size: .9rem; }
.two .nd-ul { font-size: .9rem; }
@media (max-width: 380px) { .two { grid-template-columns: 1fr; } .si-r { grid-template-columns: 1fr 54px 54px 52px; } }
/* twin columns legend */
.tw-leg { display: flex; gap: 14px; font-size: .74rem; margin-top: 4px; } .tw-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tw-leg i.down { background: var(--danger); } .tw-leg i.gold2, .c-bar.gold2 { background: var(--gold); fill: var(--gold); } .tw-leg .muted { margin-left: auto; }
.tw-g { cursor: pointer; } .tw-g.ix-on .c-bar { stroke: var(--text); stroke-width: 1.2; }
.ix g[data-tip-v] { cursor: pointer; } .ix g.ix-on .c-bar { stroke: var(--text); stroke-width: 1.4; }
/* tooltip */
.ix-tip { position: fixed; z-index: 9999; max-width: 240px; padding: 8px 10px; border-radius: 10px; background: var(--text); color: var(--panel); font-size: .8rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; animation: tipIn .15s ease both; }
.ix-tip b { font-weight: 700; }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* market context: heat tiles, seasonality stats, ring, mix bar */
.hm { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.hm-c { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 9px; border-radius: 10px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); }
.hm-c::before { content: ""; position: absolute; inset: 0; opacity: var(--a); z-index: 0; }
.hm-c[data-c="up"]::before { background: var(--ok); } .hm-c[data-c="down"]::before { background: var(--danger); }
.hm-c span, .hm-c b { position: relative; z-index: 1; } .hm-c span { font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hm-c b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.hm-c[data-c] span, .hm-c[data-c] b { color: var(--text); } .hm-c.ix-on { outline: 2px solid var(--gold); }
.sea-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; } .sea-k div { text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.sea-k b { display: block; font-family: var(--serif); font-weight: normal; font-size: 1.35rem; } .sea-k span { font-size: .7rem; color: var(--muted); }
.pct-ring { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; cursor: pointer; } .pct-ring svg { width: 110px; height: 110px; } .pct-ring p { margin: 0; line-height: 1.55; font-size: .9rem; }
.mixbar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; }
.mixbar button { all: unset; cursor: pointer; display: grid; place-items: center; min-width: 22px; font-size: .9rem; }
.mixbar button.s0 { background: var(--gold); } .mixbar button.s1 { background: var(--ok); } .mixbar button.s2 { background: var(--danger); } .mixbar button.s3 { background: #5B8DEF; } .mixbar button.s4 { background: #A77BD6; } .mixbar button.s5 { background: var(--muted); }
.mixbar button.ix-on { filter: brightness(1.15); outline: 2px solid var(--text); outline-offset: -2px; }
.mix-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .78rem; }
.mix-l li { display: flex; align-items: center; gap: 6px; min-width: 0; } .mix-l li b { margin-left: auto; } .mix-l i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.npctx .nb:first-child { margin-top: 4px; }

/* ===== Mind maps ===== */
.mm { --mt: var(--gold); position: relative; margin: 4px 0 2px; border-radius: 18px; padding: 10px 6px 8px;
  background: radial-gradient(120% 80% at 50% 45%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 70%), var(--ink); border: 1px solid var(--line); overflow: hidden; }
.mm-skel { height: 340px; border-radius: 14px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 8%, transparent), transparent); background-size: 200% 100%; animation: mmSk 1.4s linear infinite; }
@keyframes mmSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mm-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 6px 4px; }
.mm-crumb { all: unset; cursor: pointer; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); transition: background .2s, color .2s; }
.mm-crumb.on { color: var(--text); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 14%, var(--panel)); }
.mm-sep { color: var(--muted); font-size: .8rem; opacity: .6; }
.mm-svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; height: auto; overflow: visible; touch-action: manipulation; }
.mm-aura { color: var(--gold); } .mm-aura.up { color: var(--ok); } .mm-aura.down { color: var(--danger); }
.mm-orbit { fill: none; stroke: var(--line); stroke-dasharray: 2 6; animation: mmSpin 60s linear infinite; transform-origin: 50% 51.8%; transform-box: view-box; }
@keyframes mmSpin { to { transform: rotate(360deg); } }
.mm-ln { fill: none; stroke: color-mix(in srgb, var(--gold) 55%, transparent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: mmDraw .7s cubic-bezier(.2,.8,.2,1) var(--d, 0ms) forwards; }
.mm-ln.up { stroke: color-mix(in srgb, var(--ok) 60%, transparent); } .mm-ln.down { stroke: color-mix(in srgb, var(--danger) 60%, transparent); } .mm-ln.flat { stroke: color-mix(in srgb, var(--muted) 55%, transparent); }
@keyframes mmDraw { to { stroke-dashoffset: 0; } }
.mm-n { --tc: var(--gold); cursor: pointer; outline: none; opacity: 0; transform-origin: var(--x) var(--y); transform-box: view-box; animation: mmPop .5s cubic-bezier(.3,1.4,.5,1) var(--d, 0ms) forwards; -webkit-tap-highlight-color: transparent; }
.mm-n.up { --tc: var(--ok); } .mm-n.down { --tc: var(--danger); } .mm-n.flat { --tc: var(--muted); }
@keyframes mmPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.mm-box { fill: color-mix(in srgb, var(--tc) 13%, var(--panel)); stroke: color-mix(in srgb, var(--tc) 50%, var(--line)); stroke-width: 1.2; transition: fill .2s, stroke-width .2s; filter: drop-shadow(0 3px 8px rgba(0,0,0,.18)); }
.mm-n.has .mm-box { stroke-width: 1.6; }
.mm-n:hover .mm-box, .mm-n:focus-visible .mm-box { fill: color-mix(in srgb, var(--tc) 24%, var(--panel)); stroke-width: 2.2; }
.mm-n:active { transform: scale(.94); transition: transform .08s; }
.mm-t { fill: var(--text); font-size: 10.5px; font-weight: 700; pointer-events: none; font-family: inherit; }
.mm-s { fill: var(--tc); font-size: 9.5px; font-weight: 600; pointer-events: none; font-variant-numeric: tabular-nums; }
.mm-badge { fill: var(--tc); stroke: var(--ink); stroke-width: 2; }
.mm-bt { fill: var(--ink); font-size: 9px; font-weight: 800; pointer-events: none; }
.mm-c { --tc: var(--gold); animation: mmC .45s cubic-bezier(.3,1.3,.5,1) both; transform-origin: 50% 51.8%; transform-box: view-box; }
.mm-c.up { --tc: var(--ok); } .mm-c.down { --tc: var(--danger); } .mm-c.flat { --tc: var(--muted); }
@keyframes mmC { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.mm-halo { fill: color-mix(in srgb, var(--tc) 10%, transparent); stroke: color-mix(in srgb, var(--tc) 30%, transparent); stroke-width: 1; animation: mmBreath 3.2s ease-in-out infinite; transform-origin: 50% 51.8%; transform-box: view-box; }
@keyframes mmBreath { 50% { transform: scale(1.06); opacity: .7; } }
.mm-cbox { fill: color-mix(in srgb, var(--tc) 22%, var(--panel)); stroke: var(--tc); stroke-width: 1.6; filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--tc) 30%, transparent)); }
.mm-ct { fill: var(--text); font-family: var(--serif, inherit); font-size: 13.5px; font-weight: 600; }
.mm-cs { fill: var(--tc); font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-note { --tc: var(--gold); margin: 4px 6px 0; padding: 10px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.5; color: var(--text);
  background: color-mix(in srgb, var(--tc) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--tc) 28%, var(--line)); border-left: 3px solid var(--tc); animation: hfIn .25s ease both; }
.mm-note.up { --tc: var(--ok); } .mm-note.down { --tc: var(--danger); } .mm-note.flat { --tc: var(--muted); }
.mm-note b { color: var(--text); } .mm-note span { color: var(--tc); font-weight: 600; font-size: .8rem; } .mm-note p { margin: 4px 0 0; } .mm-note .btn { margin-top: 8px; }
.mm-note.up b, .mm-note.down b { color: var(--text); }
html[data-theme="light"] .mm-box { filter: drop-shadow(0 2px 5px rgba(80,60,30,.12)); }
@media (prefers-reduced-motion: reduce) { .mm-ln, .mm-n, .mm-c, .mm-halo, .mm-orbit, .mm-skel { animation: none; opacity: 1; stroke-dashoffset: 0; } }

/* ===== Home sections: quiet, minimal, precise ===== */
.hf { --tint: var(--gold); position: relative; border-radius: 14px; margin: 0 0 8px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; transition: border-color .2s ease, box-shadow .2s ease; }
.hf[data-hf="news"] { --tint: #D0675E; } .hf[data-hf="map"] { --tint: #9479C4; } .hf[data-hf="ctx"] { --tint: #5F86D6; }
.hf[data-hf="nifty"] { --tint: var(--gold); } .hf[data-hf="troika"] { --tint: #3A9C93; } .hf[data-hf="board"] { --tint: #4CA27A; }
.hf[data-hf="exp"] { --tint: #5F86D6; } .hf[data-hf="upc"] { --tint: #C98C3E; } .hf[data-hf="grow"] { --tint: #C47896; }
.hf[data-hf="now"] { --tint: #4CA27A; } .hf[data-hf="next"] { --tint: #8577CC; } .hf[data-hf="sched"] { --tint: #4E95B5; } .hf[data-hf="view"] { --tint: #B08D46; }
.hf-s { gap: 14px; padding: 14px 16px; }
.hf-ic { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 9%, transparent); border: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 18%, transparent); }
.hf-ic svg { display: block; }
.hf-t { gap: 3px; }
.hf-t > b { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.hf-sum { font-size: .78rem; letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.hf-chev { width: 7px; height: 7px; border-width: 0 1.5px 1.5px 0; opacity: .7; }
.hf:hover { border-color: color-mix(in srgb, var(--text) 14%, var(--line)); }
.hf[open] { border-color: color-mix(in srgb, var(--text) 16%, var(--line)); box-shadow: 0 18px 40px -28px rgba(0,0,0,.55); }
.hf[open] > .hf-s { border-bottom: 1px solid var(--line); }
.hf[open] > .hf-s .hf-chev { opacity: 1; }
.hf[open] > .hf-s::after { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tint) 70%, transparent), transparent); }
.hf-b { padding: 8px 14px 14px; }
.hf-s:active { background: color-mix(in srgb, var(--text) 3%, transparent); }
html[data-theme="light"] .hf { box-shadow: 0 1px 2px rgba(60,45,25,.05); }
html[data-theme="light"] .hf[open] { box-shadow: 0 18px 36px -26px rgba(60,45,25,.35); }
/* quiet, tactile press feedback */
.btn:active, .chip:active, .tab:active, .np-row:active, .kp-t:active, .mm-crumb:active, .tm-row:active { transform: scale(.98); transition: transform .08s; }
@media (prefers-reduced-motion: reduce) { .hf, .btn:active, .chip:active { transition: none; transform: none; } }
/* mind map: calmer surface */
.mm { background: radial-gradient(90% 70% at 50% 48%, color-mix(in srgb, var(--gold) 4%, transparent), transparent 70%), var(--ink); border-color: var(--line); }
.mm-box { filter: none; }
.mm-cbox { filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--tc) 18%, transparent)); }
.mm-halo { fill: color-mix(in srgb, var(--tc) 6%, transparent); stroke: color-mix(in srgb, var(--tc) 18%, transparent); }
/* news rows: quieter tags */
.np-th { background: transparent; border: 0; padding: 0; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.np-tone { border: 0; padding: 1px 8px; font-weight: 600; font-size: .7rem; letter-spacing: .02em; background: color-mix(in srgb, currentColor 11%, transparent); }

/* ===== Admin trade desk ===== */
.td { --tdr: 14px; }
.td-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 2px; }
.td-title { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.td-intro { margin: 0 0 12px; }
.td-views, .td-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.td-views button, .td-seg button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.td-views button[aria-selected="true"], .td-seg button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.18), inset 0 0 0 1px var(--line); }
.td-seg { display: flex; margin: 14px 0 8px; } .td-seg button { flex: 1; text-align: center; padding: 9px 10px; font-size: .88rem; }
.td-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--tdr); background: var(--panel); }
.td-k { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.td-live { display: inline-flex; align-items: center; gap: 5px; color: var(--danger); letter-spacing: .06em; } .td-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: npPulse 2s infinite; }
.td-off { color: var(--muted); letter-spacing: .06em; }
.td-px { margin: 4px 0 2px; font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .td-px span { font-size: .9rem; font-weight: 600; margin-left: 6px; }
.td-meta { margin: 0; font-size: .76rem; color: var(--muted); line-height: 1.5; font-variant-numeric: tabular-nums; } .td-meta b { color: var(--danger); }
.td-upd { margin: 0; font-size: .72rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-note, .td-event { margin: 8px 0 0; padding: 9px 12px; border-radius: 10px; font-size: .8rem; background: color-mix(in srgb, var(--gold) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--line)); }
.td-event { background: color-mix(in srgb, var(--danger) 7%, var(--panel)); border-color: color-mix(in srgb, var(--danger) 22%, var(--line)); }
.td-bias { margin-top: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--tdr); background: var(--panel); }
.td-bias-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.td-bias-h b { font-size: 1.1rem; color: var(--text); font-variant-numeric: tabular-nums; margin-right: auto; } .td-bias-h b.up { color: var(--ok); } .td-bias-h b.down { color: var(--danger); }
.td-chip { padding: 3px 9px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--text); }
.td-bias-track { position: relative; height: 6px; margin: 12px 0 4px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--danger) 70%, transparent), color-mix(in srgb, var(--muted) 30%, transparent) 50%, color-mix(in srgb, var(--ok) 70%, transparent)); }
.td-bias-track i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--text); transform: translate(-50%, -50%); transition: left .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.td-bias-ax { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
.td-more { margin-top: 8px; } .td-more > summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--gold); list-style: none; } .td-more > summary::-webkit-details-marker { display: none; } .td-more > summary::after { content: " ›"; } .td-more[open] > summary::after { content: " ⌄"; }
.td-fac { list-style: none; margin: 8px 0 0; padding: 0; } .td-fac li { display: grid; grid-template-columns: 1fr auto 44px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .8rem; align-items: baseline; }
.td-fac em { font-style: normal; color: var(--muted); font-size: .74rem; text-align: right; } .td-fac b { text-align: right; font-variant-numeric: tabular-nums; }
.td-slot-l { margin: 4px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.td-ticket { --tk: var(--gold); position: relative; padding: 14px 16px; border-radius: var(--tdr); background: var(--panel); border: 1px solid color-mix(in srgb, var(--tk) 28%, var(--line)); overflow: hidden; }
.td-ticket::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tk), transparent); opacity: .8; }
.td-ticket.bull { --tk: var(--ok); } .td-ticket.bear { --tk: var(--danger); } .td-ticket.flat { --tk: #8C7BE0; } .td-ticket.mute { --tk: var(--muted); }
.td-tk-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.td-tk-mode { margin-left: auto; font-size: .74rem; color: var(--muted); font-weight: 600; }
.td-pill { padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.td-pill.good { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); } .td-pill.warn { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); } .td-pill.gold { background: var(--gold); color: var(--ink); }
.td-tk-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 4px; }
.td-inst { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.td-sub { margin: 3px 0 0; font-size: .74rem; color: var(--muted); }
.td-ring { width: 56px; height: 56px; flex: none; } .td-ring-bg { fill: none; stroke: var(--line); stroke-width: 4; } .td-ring-t { fill: var(--text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.td-legs p { margin: 0 0 3px; display: grid; grid-template-columns: 38px auto 1fr; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.td-legs span { font-size: .66rem; font-weight: 800; letter-spacing: .06em; } .td-legs .s span { color: var(--danger); } .td-legs .b span { color: var(--ok); }
.td-legs b { font-size: 1rem; } .td-legs em { font-style: normal; font-size: .76rem; color: var(--muted); }
.td-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 1px; margin: 12px 0 10px; border-radius: 10px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.td-grid > div { background: var(--ink); padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.td-grid span { font-size: .66rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.td-grid b { font-size: 1.02rem; font-variant-numeric: tabular-nums; } .td-grid em { font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-grid .good b { color: var(--ok); } .td-grid .bad b { color: var(--danger); }
.td-why { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--text); }
.td-chk { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; } .td-chk li { display: flex; gap: 8px; font-size: .8rem; align-items: baseline; }
.td-chk i { font-style: normal; width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .66rem; font-weight: 800; }
.td-chk .ok i { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .td-chk .no { color: var(--muted); } .td-chk .no i { background: color-mix(in srgb, var(--muted) 14%, transparent); }
.td-pos { margin: 8px 0 0; padding: 9px 12px; border-radius: 10px; font-size: .8rem; background: var(--panel); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.td-pos.up { border-left: 3px solid var(--ok); } .td-pos.down { border-left: 3px solid var(--danger); } .td-pos.warn { border-left: 3px solid var(--gold); }
.td-sec { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--tdr); background: var(--panel); overflow: hidden; }
.td-sec > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.td-sec > summary::-webkit-details-marker { display: none; } .td-sec > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.td-sec[open] > summary::after { transform: rotate(225deg); } .td-sec[open] > summary { border-bottom: 1px solid var(--line); }
.td-sec-b { padding: 10px 14px 14px; }
.td-hours { list-style: none; margin: 0; padding: 0; }
.td-h { border-bottom: 1px solid var(--line); } .td-h:last-child { border-bottom: 0; }
.td-h > details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; }
.td-h > details > summary::-webkit-details-marker { display: none; }
.td-h-t { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.td-h-n { display: flex; flex-direction: column; font-size: .86rem; font-weight: 600; min-width: 0; } .td-h-n em { font-style: normal; font-weight: 500; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-h.now .td-h-t { color: var(--gold); } .td-h.now { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent); }
.td-now, .td-next, .td-done { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.td-now { background: var(--gold); color: var(--ink); } .td-next { color: var(--muted); border: 1px solid var(--line); } .td-done { color: var(--muted); background: var(--ink); }
.td-h-b { padding: 0 2px 12px 88px; font-size: .8rem; line-height: 1.55; } .td-h-b p { margin: 0 0 6px; }
.td-hstats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; font-size: .72rem; color: var(--muted); } .td-hstats b { color: var(--text); font-variant-numeric: tabular-nums; }
.td-fav b, .td-snap b { color: var(--text); } .td-snap { color: var(--muted); }
.td-trs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; } .td-trs li { font-size: .78rem; padding: 6px 10px; border-radius: 8px; background: var(--ink); border-left: 3px solid var(--muted); font-variant-numeric: tabular-nums; }
.td-trs li.up { border-left-color: var(--ok); } .td-trs li.down { border-left-color: var(--danger); } .td-trs time { color: var(--muted); margin-right: 8px; font-size: .72rem; }
.td-ocs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: var(--muted); margin-bottom: 10px; } .td-ocs b { color: var(--text); font-variant-numeric: tabular-nums; } .td-ocs b.up { color: var(--ok); } .td-ocs b.down { color: var(--danger); }
.td-oc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.td-oc-h, .td-oc-r { display: grid; grid-template-columns: 1fr 68px 1fr; }
.td-oc-h { font-size: .6rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; background: var(--ink); padding: 6px 8px; } .td-oc-h span:nth-child(2) { text-align: center; } .td-oc-h span:last-child { text-align: right; }
.td-oc-r { border-top: 1px solid var(--line); font-size: .76rem; }
.td-oc-r > span { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 8px; min-width: 0; }
.td-oc-r .ce { justify-content: flex-end; } .td-oc-r .pe { justify-content: flex-start; }
.td-oc-r i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; opacity: .16; } .td-oc-r .ce i { right: 0; background: var(--danger); } .td-oc-r .pe i { left: 0; background: var(--ok); }
.td-oc-r em { font-style: normal; font-size: .66rem; position: relative; } .td-oc-r em.add { color: var(--ok); } .td-oc-r em.cut { color: var(--danger); } .td-oc-r b { position: relative; font-weight: 600; }
.td-oc-r .k { justify-content: center; flex-direction: column; gap: 0; font-weight: 700; background: var(--ink); } .td-oc-r .k small { font-size: .56rem; color: var(--gold); letter-spacing: .06em; }
.td-oc-r.atm .k { background: color-mix(in srgb, var(--gold) 18%, var(--ink)); color: var(--text); }
.td-oc-r.itmc .ce { background: color-mix(in srgb, var(--gold) 5%, transparent); } .td-oc-r.otmc .pe { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.td-lv { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; } .td-lv li { display: grid; grid-template-columns: 1fr auto 56px; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.td-lv li em { font-style: normal; text-align: right; color: var(--muted); font-size: .74rem; } .td-lv li.res b { color: var(--danger); } .td-lv li.sup b { color: var(--ok); }
.td-lv li.spot { background: color-mix(in srgb, var(--gold) 12%, transparent); border-radius: 6px; font-weight: 700; padding: 7px 8px; border: 0; } .td-lv li.spot b { color: var(--text); }
.td-log { list-style: none; margin: 0; padding: 0; } .td-log li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .8rem; line-height: 1.45; }
.td-log time { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.td-log li.trade span, .td-log li.arm span { font-weight: 600; } .td-log li.good span { color: var(--ok); } .td-log li.bad span { color: var(--danger); } .td-log li.warn span { color: var(--gold); }
.td-rec-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.td-rec-k span { background: var(--ink); padding: 8px 10px; font-size: .68rem; color: var(--muted); display: flex; flex-direction: column; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.td-rec-k b { font-size: 1rem; color: var(--text); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; } .td-rec-k b.up { color: var(--ok); } .td-rec-k b.down { color: var(--danger); }
.td-save { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.td-foot { margin: 14px 2px 0; }
.td-days { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--tdr); overflow: hidden; background: var(--panel); }
.td-days li + li { border-top: 1px solid var(--line); }
.td-days button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-variant-numeric: tabular-nums; }
.td-days button span { display: flex; flex-direction: column; } .td-days em { font-style: normal; font-size: .74rem; color: var(--muted); } .td-days b.up { color: var(--ok); } .td-days b.down { color: var(--danger); }
.td-sd-h { margin: 10px 0 2px; } .td-sd-s { margin: 14px 0 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 380px) { .td-h-b { padding-left: 2px; } .td-h > details > summary { grid-template-columns: 70px 1fr auto; } }
.td-grid.g2 { grid-template-columns: 1fr 1fr; }
.td-px span { white-space: nowrap; display: inline-block; }
.td-size { display: inline-block; margin: 6px 0 0; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: var(--ink); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.td-size-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; font-size: .78rem; color: var(--muted); }
.td-size-row > span:first-child { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.td-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); overflow: hidden; }
.td-step button { all: unset; cursor: pointer; width: 30px; text-align: center; font-size: 1rem; color: var(--text); padding: 4px 0; }
.td-step button:active { background: var(--ink); }
.td-step b { padding: 0 8px; font-size: .84rem; color: var(--text); font-variant-numeric: tabular-nums; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.td-why b { color: var(--text); }
.td-grid em { white-space: normal; overflow: visible; }
.td-mtm { text-align: right; display: flex; flex-direction: column; gap: 1px; } .td-mtm span { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.td-mtm b { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .td-mtm.up b { color: var(--ok); } .td-mtm.down b { color: var(--danger); } .td-mtm em { font-style: normal; font-size: .72rem; color: var(--muted); }
/* accuracy meter */
.td-acc { --ac: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; color: var(--ac); background: color-mix(in srgb, var(--ac) 11%, transparent); vertical-align: middle; font-variant-numeric: tabular-nums; }
.td-acc-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.td-acc-bars i { width: 3px; border-radius: 1px; background: color-mix(in srgb, var(--ac) 25%, transparent); }
.td-acc-bars i:nth-child(1) { height: 4px; } .td-acc-bars i:nth-child(2) { height: 6px; } .td-acc-bars i:nth-child(3) { height: 8px; } .td-acc-bars i:nth-child(4) { height: 10px; } .td-acc-bars i:nth-child(5) { height: 11px; }
.td-acc-bars i.on { background: var(--ac); }
.td-acc.big { font-size: .72rem; padding: 4px 10px 4px 8px; } .td-acc.big .td-acc-bars { height: 13px; } .td-acc.big .td-acc-bars i { width: 3.5px; } .td-acc.big .td-acc-bars i:nth-child(5) { height: 13px; } .td-acc.big .td-acc-bars i:nth-child(4) { height: 11px; }
.acc-vs { --ac: #1F9D63; } .acc-s { --ac: var(--ok); } .acc-m { --ac: var(--gold); } .acc-w { --ac: #D9822B; } .acc-vw { --ac: var(--danger); }
html[data-theme="light"] .acc-vs { --ac: #137A4A; }
.td-acc.none { --ac: var(--muted); padding: 3px 8px; }
.td-ring-w { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.td-ring-w > span { font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.td-ring-w > span.acc-vs, .td-ring-w > span.acc-s, .td-ring-w > span.acc-m, .td-ring-w > span.acc-w, .td-ring-w > span.acc-vw { color: var(--ac); }
.td-plan { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.td-plan-h { margin: 0 0 6px !important; font-size: .7rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.td-plan-r { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: .78rem; font-variant-numeric: tabular-nums; }
.td-plan-r + .td-plan-r { border-top: 1px dashed var(--line); }
.td-plan-k { font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; } .td-plan-k.buy { color: var(--ok); } .td-plan-k.sell { color: var(--danger); }
.td-plan-x { min-width: 0; }
.td-trs li .td-acc { margin-right: 4px; padding: 1px 6px 1px 4px; }
.td-plan-r { grid-template-columns: 34px 1fr; row-gap: 4px; align-items: start; }
.td-plan-r > .td-plan-k { padding-top: 2px; }
.td-plan-r > .td-acc { grid-column: 2; justify-self: start; }
.td-h-acc { display: block; margin-top: 4px; }
/* ===== Trader's journal ===== */
.tj-sum { margin: 0 0 10px; font-size: .78rem; color: var(--muted); } .tj-sum b { color: var(--text); }
.tj-e { border: 1px solid var(--line); border-radius: 12px; background: var(--ink); margin-bottom: 8px; overflow: hidden; }
.tj-e > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.tj-e > summary::-webkit-details-marker { display: none; }
.tj-e > summary time { font-size: .78rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.tj-h { display: flex; flex-direction: column; min-width: 0; } .tj-h b { font-size: .86rem; } .tj-h em { font-style: normal; font-size: .72rem; color: var(--muted); }
.tj-e.break > summary time { color: var(--danger); } .tj-e.open > summary time { color: var(--ok); }
.tj-e[open] > summary { border-bottom: 1px solid var(--line); }
.tj-b { padding: 10px 12px 12px; font-size: .82rem; line-height: 1.55; }
.tj-k { margin: 12px 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tj-rev { padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 8%, var(--panel)); border-left: 3px solid var(--gold); }
.tj-rev span { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; } .tj-rev p { margin: 0; }
.tj-acts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; } .tj-acts li { font-size: .76rem; padding: 6px 9px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.tj-see { margin: 0; padding-left: 16px; display: grid; gap: 4px; } .tj-see li::marker { color: var(--muted); }
.tj-z { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-variant-numeric: tabular-nums; }
.tj-z li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; font-size: .78rem; border-top: 1px solid var(--line); background: var(--panel); }
.tj-z li:first-child { border-top: 0; } .tj-z li span { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tj-z .res2 b, .tj-z .res b { color: var(--danger); } .tj-z .sup b, .tj-z .sup2 b { color: var(--ok); } .tj-z .res2, .tj-z .sup2 { opacity: .75; }
.tj-z .now { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); font-weight: 700; } .tj-z .now span { color: var(--text); }
.tj-sc { padding: 10px 11px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 6px; border-left: 3px solid var(--muted); }
.tj-sc.up { border-left-color: var(--ok); } .tj-sc.down { border-left-color: var(--danger); } .tj-sc.range { border-left-color: #8C7BE0; }
.tj-sc-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .tj-sc-h b { font-size: .82rem; }
.tj-p { font-size: .72rem; color: var(--muted); white-space: nowrap; } .tj-p b { color: var(--text); font-size: .86rem; }
.tj-sc-r { margin: 4px 0 0; font-size: .76rem; color: var(--muted); } .tj-sc-r b { color: var(--text); }
.tj-sc-t { margin: 6px 0 6px; font-size: .8rem; }
.tj-call { margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, var(--panel)); border: 1px solid var(--line); }
.tj-call > b { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); } .tj-call p { margin: 3px 0 6px; font-weight: 600; }
.tj-tmr { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); position: relative; overflow: hidden; }
.tj-tmr::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.tj-tmr-h { margin: 2px 0 6px; font-size: 1.1rem; } .tj-tmr-p { margin: 0 0 6px; font-size: .82rem; line-height: 1.55; } .tj-tmr-p b { color: var(--text); }
.td-exp { color: var(--danger); }
.tj-mini { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; font-size: .78rem; background: color-mix(in srgb, var(--ok) 9%, var(--ink)); border: 1px solid color-mix(in srgb, var(--ok) 28%, var(--line)); }
.tj-mini time { font-weight: 800; color: var(--ok); font-variant-numeric: tabular-nums; } .tj-mini b { color: var(--ok); }
.tj-sum b.up { color: var(--ok); } .tj-sum b.down { color: var(--danger); }

/* ===== Markets: watchlist + symbol detail ===== */
.wl-wrap { max-width: 1180px; }
.wl-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) { .wl-grid { grid-template-columns: minmax(380px, 440px) 1fr; align-items: start; } .wl-side { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 16px; } }
@media (max-width: 959px) { .wl-side { display: none; } }
.sd-empty { color: var(--muted); font-size: .86rem; padding: 30px 10px; text-align: center; }
.wl-top { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.wl-title { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.wl-act { display: flex; gap: 6px; }
.wl-ib { all: unset; cursor: pointer; min-width: 36px; height: 36px; padding: 0 8px; box-sizing: border-box; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; font-size: .84rem; }
.wl-ib.on { background: var(--text); color: var(--ink); border-color: var(--text); }
.wl-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; } .wl-chips::-webkit-scrollbar { display: none; }
.wl-chips button { all: unset; cursor: pointer; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: var(--panel); }
.wl-chips button[aria-selected="true"] { color: var(--ink); background: var(--text); border-color: var(--text); }
.wl-breadth { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .74rem; margin: 0 2px 10px; font-variant-numeric: tabular-nums; }
.wl-breadth i { height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 55%, transparent); overflow: hidden; } .wl-breadth i b { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .4s; }
.wl-breadth b.up { color: var(--ok); } .wl-breadth b.dn { color: var(--danger); }
.wl-seg { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.wl-sh { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 6px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.wl-seg.col .wl-sh { border-bottom: 0; } .wl-seg.col .wl-rows { display: none; }
.wl-st { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex: 1; min-width: 0; }
.wl-st i { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 4px 3px 6px; transition: transform .2s; } .wl-seg.col .wl-st i { transform: rotate(-45deg); margin-bottom: 0; }
.wl-st small { font-size: .62rem; padding: 1px 6px; border-radius: 999px; background: var(--ink); letter-spacing: 0; }
.wl-sa { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; } .wl-sa.up { color: var(--ok); } .wl-sa.dn { color: var(--danger); } .wl-sa em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .68rem; margin-left: 4px; }
.wl-add1, .wl-ged button { all: unset; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 1rem; }
.wl-add1:hover, .wl-ged button:hover { background: var(--ink); color: var(--text); }
.wl-ged { display: flex; gap: 2px; }
.wl-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) 58px auto 74px; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); cursor: pointer; transition: background .15s; position: relative; -webkit-tap-highlight-color: transparent; }
.wl-rows .wl-r:first-child { border-top: 0; }
.wl-r:hover { background: color-mix(in srgb, var(--text) 3%, transparent); } .wl-r.sel { background: color-mix(in srgb, var(--gold) 10%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.wl-r:active { transform: scale(.995); }
.wl-r.fu { animation: wlFu .9s ease; } .wl-r.fd { animation: wlFd .9s ease; }
@keyframes wlFu { 0% { background: color-mix(in srgb, var(--ok) 22%, transparent); } 100% { background: transparent; } }
@keyframes wlFd { 0% { background: color-mix(in srgb, var(--danger) 20%, transparent); } 100% { background: transparent; } }
.wl-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 800; letter-spacing: -.02em; color: #fff; background: #4E5B7A; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.wl-ic.big { width: 44px; height: 44px; font-size: .8rem; }
.wl-ic.c-idx { background: linear-gradient(135deg, #2F4C9C, #1C2E66); } .wl-ic.c-stk { background: linear-gradient(135deg, #B8434A, #7E2531); } .wl-ic.c-glb { background: linear-gradient(135deg, #3E7FA8, #22506E); }
.wl-ic.c-cmd { background: linear-gradient(135deg, #C79A2B, #8A6512); } .wl-ic.c-fx { background: linear-gradient(135deg, #2E8C6F, #18584A); } .wl-ic.c-cry { background: linear-gradient(135deg, #E08A1E, #A2560B); }
.wl-nm { display: flex; flex-direction: column; min-width: 0; } .wl-nm b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wl-nm em { font-style: normal; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-sp { width: 58px; height: 22px; } .wl-sp.up polyline { stroke: var(--ok); } .wl-sp.dn polyline { stroke: var(--danger); }
.wl-px { text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; } .wl-px b { font-size: .86rem; font-weight: 600; } .wl-px em { font-style: normal; font-size: .68rem; } .wl-px em.up { color: var(--ok); } .wl-px em.dn { color: var(--danger); }
.wl-ch { justify-self: end; min-width: 66px; text-align: center; padding: 5px 6px; border-radius: 7px; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--ink); color: var(--muted); }
.wl-ch.up { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); } .wl-ch.dn { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.wl-ed { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; background: var(--panel); padding: 2px; border-radius: 9px; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.wl-ed button { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; font-size: .86rem; } .wl-ed button:hover { background: var(--ink); } .wl-ed [data-rm] { color: var(--danger); }
.wl-empty { margin: 0; padding: 14px; font-size: .8rem; color: var(--muted); }
.wl-newseg { margin-top: 4px; }
@media (max-width: 380px) { .wl-r { grid-template-columns: 30px minmax(0, 1fr) auto 66px; } .wl-sp { display: none; } }
/* add sheet */
.wa-seg { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 10px; } .wa-seg select { flex: 1; }
#waQ { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font: inherit; font-size: .95rem; margin-bottom: 10px; }
.wa-h { margin: 12px 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-c { all: unset; cursor: pointer; padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.wa-c.in { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok); }
.wa-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wa-r { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 32px 1fr 24px; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
.wa-r:first-child { border-top: 0; } .wa-r span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; } .wa-r b { font-size: .86rem; } .wa-r em { font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-r i { font-style: normal; font-weight: 800; text-align: center; color: var(--gold); } .wa-r.in i { color: var(--ok); }
/* symbol detail */
.sd-sheet .sheet { max-height: 94vh; }
.sd-head { padding-bottom: 6px; }
.sd-id { display: flex; align-items: center; gap: 12px; } .sd-id > div { flex: 1; min-width: 0; } .sd-id h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; } .sd-id p { margin: 2px 0 0; font-size: .74rem; color: var(--muted); }
.sd-star { all: unset; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-size: 1.1rem; color: var(--muted); } .sd-star.on { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.sd-px { margin: 12px 0 0; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .sd-px span { font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-left: 6px; white-space: nowrap; }
.sd-px .up, .sd-perf .up b, .sd-tt .up { color: var(--ok); } .sd-px .dn, .sd-perf .dn b, .sd-tt .dn { color: var(--danger); }
.sd-meta { margin: 2px 0 10px; font-size: .72rem; color: var(--muted); }
.sd-rng { margin: 10px 0; } .sd-rng-h { display: flex; justify-content: space-between; font-size: .74rem; font-variant-numeric: tabular-nums; margin-bottom: 6px; } .sd-rng-h em { font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sd-rng-t { position: relative; height: 4px; border-radius: 999px; background: var(--line); }
.sd-rng-t b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--danger) 70%, transparent), color-mix(in srgb, var(--ok) 80%, transparent)); }
.sd-rng-t i { position: absolute; top: 7px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--text); transform: translateX(-50%); }
.sd-k { margin: 20px 0 8px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sd-rgs, .sd-tfs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); margin: 12px 0 8px; overflow-x: auto; }
.sd-rgs button, .sd-tfs button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 6px 8px; border-radius: 7px; font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sd-rgs button[aria-selected="true"], .sd-tfs button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.sd-ch { position: relative; touch-action: pan-y; } .sd-ch-svg { width: 100%; height: 190px; display: block; } .sd-ch-svg.up { color: var(--ok); } .sd-ch-svg.dn { color: var(--danger); }
.sd-x { stroke: var(--muted); stroke-dasharray: 3 3; } .sd-dot { fill: var(--panel); stroke: currentColor; stroke-width: 2; }
.sd-tip { position: absolute; top: -4px; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--ink); font-size: .74rem; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.sd-tip em { font-style: normal; opacity: .7; margin-left: 6px; } .sd-tip .up { color: #2FC48D; } .sd-tip .dn { color: #F2646F; }
html[data-theme="light"] .sd-tip .up { color: #8BE3BE; } html[data-theme="light"] .sd-tip .dn { color: #FFB1B6; }
.sd-ax { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); margin-top: -12px; }
.sd-read { margin: 0; font-size: .84rem; line-height: 1.6; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 7%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 20%, var(--line)); }
.sd-perf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sd-perf > div { --h: .2; padding: 10px 6px; border-radius: 10px; text-align: center; background: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.sd-perf > div.up { background: color-mix(in srgb, var(--ok) calc(var(--h) * 34%), var(--ink)); } .sd-perf > div.dn { background: color-mix(in srgb, var(--danger) calc(var(--h) * 34%), var(--ink)); }
.sd-perf b { font-size: .86rem; font-variant-numeric: tabular-nums; } .sd-perf span { font-size: .66rem; color: var(--muted); font-weight: 700; }
.sd-sea-l { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sd-sea-l button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--ink); border: 1px solid var(--line); }
.sd-sea-l button.off { opacity: .4; } .sd-sea-l i { width: 10px; height: 3px; border-radius: 2px; background: currentColor; }
.sd-sea-l .s-cur { color: #5B8DEF; } .sd-sea-l .s-1 { color: #4CA27A; } .sd-sea-l .s-2 { color: #D9A23B; } .sd-sea-l .s-avg { color: var(--muted); }
.sd-sea { width: 100%; height: 190px; display: block; }
.sd-sea .s-cur { stroke: #5B8DEF; stroke-width: 2.2; } .sd-sea .s-1 { stroke: #4CA27A; stroke-width: 1.3; opacity: .85; } .sd-sea .s-2 { stroke: #D9A23B; stroke-width: 1.3; opacity: .85; } .sd-sea .s-avg { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 3; }
.sd-sea .s-cur-dot { fill: #5B8DEF; stroke: var(--panel); stroke-width: 2; }
.sd-grid { stroke: var(--line); stroke-dasharray: 2 4; } .sd-zero { stroke: color-mix(in srgb, var(--text) 35%, transparent); stroke-width: 1; } .sd-axt { fill: var(--muted); font-size: 9px; }
.sd-mr { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
.sd-mr table { width: 100%; border-collapse: collapse; font-size: .66rem; font-variant-numeric: tabular-nums; }
.sd-mr th, .sd-mr td { padding: 5px 2px; text-align: center; border-top: 1px solid var(--line); }
.sd-mr thead th { border-top: 0; color: var(--muted); font-weight: 700; } .sd-mr tbody th { color: var(--muted); font-weight: 700; padding-left: 6px; text-align: left; }
.sd-mr td { --h: .2; } .sd-mr td.up { background: color-mix(in srgb, var(--ok) calc(var(--h) * 40%), transparent); } .sd-mr td.dn { background: color-mix(in srgb, var(--danger) calc(var(--h) * 40%), transparent); }
.sd-mr .now { box-shadow: inset 1px 0 0 var(--gold), inset -1px 0 0 var(--gold); } .sd-mr thead th.now { color: var(--gold); }
.sd-mr .avgr td, .sd-mr .avgr th { font-weight: 700; background: var(--ink); } .sd-mr .avgr td.up { color: var(--ok); } .sd-mr .avgr td.dn { color: var(--danger); }
.sd-g { display: flex; flex-direction: column; align-items: center; } .sd-g svg { width: 140px; } .sd-g.big svg { width: 230px; }
.sd-g b { margin-top: -2px; font-size: .86rem; } .sd-g.big b { font-size: 1.25rem; letter-spacing: -.01em; }
.g-ss { stroke: #C8484A; } .g-s { stroke: color-mix(in srgb, #C8484A 45%, var(--line)); } .g-n { stroke: color-mix(in srgb, var(--muted) 55%, var(--line)); } .g-b { stroke: color-mix(in srgb, #4F7DE0 45%, var(--line)); } .g-sb { stroke: #4F7DE0; }
.g-needle { stroke: var(--text); } .g-hub { fill: var(--text); }
.v-ss, .v-s { color: #D9534F; } .v-sb, .v-b { color: #4F7DE0; } .v-n { color: var(--muted); }
.sd-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sd-g2l { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; font-size: .72rem; font-weight: 700; } .sd-g2l em { display: block; font-style: normal; font-weight: 500; color: var(--muted); font-size: .66rem; }
.sd-more { margin-top: 10px; } .sd-more summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--gold); }
.sd-tt { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .76rem; font-variant-numeric: tabular-nums; } .sd-tt td { padding: 6px 4px; border-top: 1px solid var(--line); } .sd-tt td:nth-child(2), .sd-tt td:nth-child(3) { text-align: right; }
.sd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sd-stats > div { background: var(--ink); padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; } .sd-stats span { font-size: .62rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .sd-stats b { font-size: .92rem; font-variant-numeric: tabular-nums; } .sd-stats em { font-style: normal; font-size: .66rem; color: var(--muted); }
.sd-smile { width: 100%; height: 150px; } .sd-smile polyline { stroke: #8C7BE0; stroke-width: 2; }
.sd-news { list-style: none; margin: 0; padding: 0; } .sd-news li + li { border-top: 1px solid var(--line); }
.sd-news a { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px; color: var(--text); text-decoration: none; } .sd-news b { font-size: .84rem; font-weight: 600; line-height: 1.4; } .sd-news em { font-style: normal; font-size: .7rem; color: var(--muted); }
.sd-src { margin-top: 16px; }
@media (max-width: 380px) { .sd-stats { grid-template-columns: 1fr 1fr; } .sd-perf { grid-template-columns: repeat(4, 1fr); } }
.wl-grid > *, .wl-col { min-width: 0; }
.sd-sheet .sheet-head h2 { visibility: hidden; }
.sd-mr thead th { font-size: .58rem; }
.wl-note { margin: -2px 0 12px; padding: 10px 12px; border-radius: 12px; font-size: .78rem; line-height: 1.5; background: color-mix(in srgb, var(--gold) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); }
.wl-note code { font-size: .74rem; padding: 1px 5px; border-radius: 5px; background: var(--ink); }

/* ===== Payoff builder ===== */
.po-title, .xp-head h2 { margin: 6px 0 2px; font-size: 1.3rem; letter-spacing: -.02em; } .po-sub { margin: 0 0 12px; }
.po-pre { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .po-pre::-webkit-scrollbar { display: none; }
.po-pre button { all: unset; cursor: pointer; white-space: nowrap; padding: 7px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.po-pre button:active { transform: scale(.97); }
.po-meta { margin: 8px 0; font-size: .76rem; color: var(--muted); } .po-meta b { color: var(--text); }
.po-est { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); font-weight: 700; font-size: .66rem; }
.po-legs { display: grid; gap: 6px; margin-bottom: 10px; }
.po-l { display: grid; grid-template-columns: 48px 38px 1fr 64px 76px 26px; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ok); }
.po-l.sell { border-left-color: var(--danger); }
.po-side, .po-type { all: unset; cursor: pointer; text-align: center; padding: 6px 0; border-radius: 8px; font-size: .7rem; font-weight: 800; background: var(--ink); }
.po-l.buy .po-side { color: var(--ok); } .po-l.sell .po-side { color: var(--danger); }
.po-k { display: flex; align-items: center; gap: 2px; min-width: 0; } .po-k button { all: unset; cursor: pointer; width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.po-k select { flex: 1; min-width: 0; padding: 6px 2px; font-size: .8rem; }
.po-n, .po-p { display: flex; flex-direction: column; font-size: .58rem; color: var(--muted); font-weight: 700; text-transform: uppercase; position: relative; }
.po-n input, .po-p input { width: 100%; box-sizing: border-box; padding: 5px 6px; font-size: .8rem; border-radius: 7px; border: 1px solid var(--line); background: var(--ink); color: var(--text); }
.po-p em { position: absolute; right: 4px; top: 0; font-style: normal; color: var(--ok); text-transform: none; }
.po-rm { all: unset; cursor: pointer; text-align: center; color: var(--muted); }
@media (max-width: 420px) { .po-l { grid-template-columns: 44px 36px 1fr 26px; } .po-n, .po-p { grid-column: span 1; } .po-l .po-n { grid-column: 1 / 3; } .po-l .po-p { grid-column: 3 / 4; } }
.po-ch { position: relative; margin: 6px 0; touch-action: pan-y; } .po-ch svg { width: 100%; height: 220px; display: block; }
.po-pos { fill: color-mix(in srgb, var(--ok) 18%, transparent); } .po-neg { fill: color-mix(in srgb, var(--danger) 16%, transparent); }
.po-e { fill: none; stroke: var(--text); stroke-width: 2; } .po-t { fill: none; stroke: #8C7BE0; stroke-width: 1.6; stroke-dasharray: 5 4; }
.po-zero { stroke: var(--muted); stroke-width: 1; } .po-spot { stroke: var(--gold); stroke-dasharray: 3 3; } .po-sd { fill: color-mix(in srgb, var(--gold) 7%, transparent); }
.po-be { fill: var(--panel); stroke: var(--text); stroke-width: 2; } .po-x { stroke: var(--muted); stroke-dasharray: 2 3; }
.po-tip { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 8px; background: var(--text); color: var(--ink); font-size: .74rem; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.po-tip .up { color: #2FC48D; } .po-tip .dn { color: #F2646F; }
.po-ax { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); margin-top: -14px; }
.po-leg, .xp-leg { margin: 6px 0 0; font-size: .7rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.po-leg i, .xp-leg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 6px; } .po-leg .e { background: var(--text); } .po-leg .t { background: #8C7BE0; } .po-leg .sd { background: color-mix(in srgb, var(--gold) 35%, transparent); height: 8px; }
.po-stats, .xp-tiles, .pp-q, .pp-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.po-stats > div, .xp-tiles > div, .pp-q > div, .pp-st > div { background: var(--panel); padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.po-stats span, .xp-tiles span, .pp-q span, .pp-st span { font-size: .6rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.po-stats b, .xp-tiles b, .pp-q b, .pp-st b { font-size: .92rem; font-variant-numeric: tabular-nums; } .po-stats em, .xp-tiles em, .pp-q em { font-style: normal; font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-stats .up, .xp-tiles .up, .pp-st .up, .pp-eq .up, .pp-p .up, .pp-lb .up { color: var(--ok); } .po-stats .dn, .xp-tiles .dn, .pp-st .dn, .pp-eq .dn, .pp-p .dn, .pp-lb .dn { color: var(--danger); }
/* ===== Expiry ===== */
.xp-head { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin: 6px 0 10px; position: relative; overflow: hidden; }
.xp-head.today { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--danger) 9%, transparent), transparent 60%), var(--panel); }
.xp-tag { margin: 0; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .xp-head.today .xp-tag { color: var(--danger); }
.xp-cd { margin: 4px 0 0; font-size: .84rem; color: var(--muted); } .xp-cd span { font-size: 1.5rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-right: 6px; }
.xp-phase { padding: 12px 14px; border-radius: 14px; margin-bottom: 10px; background: color-mix(in srgb, var(--gold) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line)); }
.xp-phase b { font-size: .9rem; } .xp-phase p { margin: 2px 0 8px; font-size: .8rem; }
.xp-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .xp-ph i { height: 4px; border-radius: 999px; background: var(--line); } .xp-ph i.done { background: color-mix(in srgb, var(--gold) 45%, var(--line)); } .xp-ph i.on { background: var(--gold); }
.xp-bar { margin: 14px 0 4px; } .xp-tr { position: relative; height: 26px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); }
.xp-tr .be { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; background: color-mix(in srgb, #8C7BE0 22%, transparent); }
.xp-tr b { position: absolute; top: -3px; bottom: -3px; width: 3px; border-radius: 2px; transform: translateX(-50%); } .xp-tr .pw { background: var(--ok); } .xp-tr .cw { background: var(--danger); } .xp-tr .mp { background: var(--gold); } .xp-tr .sp { background: var(--text); width: 4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent); }
.xp-bl { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.xp-k { margin: 18px 0 8px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.xp-ch svg { width: 100%; height: 180px; display: block; } .xp-theo { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; } .xp-act { fill: none; stroke: #8C7BE0; stroke-width: 2.2; }
.xp-now { fill: #8C7BE0; stroke: var(--panel); stroke-width: 2; } .xp-ax { fill: var(--muted); font-size: 9px; } .xp-ax.b { fill: var(--text); font-weight: 700; font-size: 10px; }
.xp-leg .t { background: var(--muted); } .xp-leg .a { background: #8C7BE0; }
.xp-oi { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.xp-oi > div { display: grid; grid-template-columns: 1fr 64px 1fr; border-top: 1px solid var(--line); font-size: .74rem; } .xp-oi > div:first-child { border-top: 0; }
.xp-oi > div > b { text-align: center; padding: 6px 0; background: var(--ink); } .xp-oi > div.atm > b { background: color-mix(in srgb, var(--gold) 18%, var(--ink)); }
.xp-oi span { position: relative; display: flex; align-items: center; padding: 6px 8px; } .xp-oi .c { justify-content: flex-start; } .xp-oi .p { justify-content: flex-end; }
.xp-oi i { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; opacity: .18; } .xp-oi .c i { right: 0; background: var(--danger); } .xp-oi .p i { left: 0; background: var(--ok); }
.xp-oi em { font-style: normal; position: relative; font-size: .68rem; } .xp-oi em.a { color: var(--ok); } .xp-oi em.u { color: var(--danger); }
.xp-read { margin: 0; font-size: .84rem; line-height: 1.6; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.xp-pl { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; } .xp-pl li { font-size: .8rem; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); } .xp-pl b { color: var(--gold); margin-right: 4px; }
/* ===== Paper trading ===== */
.pp-eq { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 6px 0 10px; }
.pp-eq > div { background: var(--panel); padding: 12px; display: flex; flex-direction: column; } .pp-eq span { font-size: .6rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pp-eq b { font-size: 1rem; font-variant-numeric: tabular-nums; } .pp-eq > div:first-child b { font-size: 1.3rem; } .pp-eq em { font-style: normal; font-size: .72rem; font-weight: 600; }
.pp-tabs, .pp-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); margin-bottom: 10px; }
.pp-tabs button, .pp-seg button { all: unset; cursor: pointer; flex: 1; text-align: center; padding: 8px 6px; border-radius: 7px; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pp-tabs button[aria-selected="true"], .pp-seg button[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pp-seg.side button.buy[aria-selected="true"] { background: var(--ok); color: #fff; box-shadow: none; } .pp-seg.side button.sell[aria-selected="true"] { background: var(--danger); color: #fff; box-shadow: none; }
.pp-tk { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.pp-mkt { margin: 0 0 10px; font-size: .76rem; color: var(--muted); } .pp-mkt b { color: var(--text); }
.pp-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; animation: npPulse 2s infinite; }
.pp-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pp-k { display: flex; align-items: center; gap: 4px; } .pp-k button { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-weight: 700; }
.pp-k select, .pp-k input { width: 130px; padding: 7px; font-size: .86rem; border-radius: 8px; border: 1px solid var(--line); background: var(--ink); color: var(--text); text-align: center; } .pp-k input { width: 60px; }
.pp-q { margin: 12px 0; } .pp-go { margin-top: 4px; } .pp-go.buy { background: var(--ok); border-color: var(--ok); color: #fff; } .pp-go.sell { background: var(--danger); border-color: var(--danger); color: #fff; }
.pp-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.pp-p { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); } .pp-p:first-child { border-top: 0; }
.pp-p > div { display: flex; flex-direction: column; min-width: 0; } .pp-p b { font-size: .82rem; } .pp-p em { font-style: normal; font-size: .7rem; color: var(--muted); }
.pp-p > span { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .86rem; }
.pp-st { grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; }
.pp-empty { padding: 20px 4px; text-align: center; }
.pp-lb { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.pp-lb li { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 10px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; } .pp-lb li:first-child { border-top: 0; }
.pp-lb li.me { background: color-mix(in srgb, var(--gold) 10%, transparent); } .pp-lb .n { grid-row: span 2; font-weight: 800; color: var(--muted); } .pp-lb li:nth-child(-n+3) .n { color: var(--gold); }
.pp-lb b { font-size: .86rem; } .pp-lb em { font-style: normal; font-size: .7rem; color: var(--muted); grid-column: 2; } .pp-lb span:last-child { grid-row: 1 / 3; grid-column: 3; font-weight: 700; font-variant-numeric: tabular-nums; }
/* ===== Discipline coach ===== */
.cc-h { display: flex; gap: 14px; align-items: center; } .cc-h h3 { margin: 2px 0; }
.cc-ring { --v: 50; flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--panel) 78%, transparent 80% 100%), conic-gradient(var(--cc) calc(var(--v) * 1%), var(--line) 0); }
.cc-ring b { font-size: 1.2rem; line-height: 1; } .cc-ring span { font-size: .6rem; color: var(--muted); }
.cc.good { --cc: var(--ok); } .cc.mid { --cc: var(--gold); } .cc.bad { --cc: var(--danger); }
.cc-l { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; } .cc-l li { padding: 10px 12px; border-radius: 10px; background: var(--ink); border-left: 3px solid var(--danger); }
.cc-l b { font-size: .86rem; } .cc-l em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); } .cc-l p { margin: 4px 0 0; font-size: .8rem; }
.cc-ok { margin: 12px 0 0; font-size: .84rem; }
.cc-nudge { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; font-size: .82rem; background: color-mix(in srgb, var(--danger) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); }
/* ===== Referrals ===== */
.rf-link { display: flex; gap: 8px; align-items: center; } .rf-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 10px; border-radius: 9px; background: var(--ink); border: 1px solid var(--line); font-size: .76rem; }
.rf-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; } .rf-st b { display: block; font-size: 1.2rem; } .rf-st span { font-size: .68rem; color: var(--muted); }
/* ===== Admin health ===== */
.hl-top { display: flex; justify-content: space-between; align-items: center; } .hl-top h2 { margin: 0; }
.hl-h { margin: 20px 0 8px; font-size: .95rem; }
.hl-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.hl-r { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); } .hl-r:first-child { border-top: 0; }
.hl-r b { font-size: .86rem; } .hl-r em { display: block; font-style: normal; font-size: .74rem; color: var(--muted); } .hl-fix { margin: 4px 0 0; font-size: .76rem; color: var(--gold); }
.hl-d { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--muted); } .hl-d.s1 { background: var(--ok); } .hl-d.s0 { background: var(--danger); } .hl-d.s2 { background: var(--gold); } .hl-d.s9 { animation: npPulse 1.2s infinite; }
.hl-card { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.hl-push { padding: 10px 12px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); margin-bottom: 8px; } .hl-push p { margin: 3px 0 0; font-size: .82rem; }
.hl-log { margin: 6px 0 10px; padding-left: 16px; font-size: .76rem; color: var(--muted); }
.hl-t { width: 100%; border-collapse: collapse; font-size: .8rem; } .hl-t th, .hl-t td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; } .hl-t th { color: var(--muted); font-size: .68rem; border-top: 0; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; } .pp-two .btn { width: 100%; }
.pp-two:has(> :only-child) { grid-template-columns: 1fr; }
.pp-bk { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--ink); border: 1px dashed var(--line); }
.pp-bpre { display: flex; gap: 6px; overflow-x: auto; align-items: center; scrollbar-width: none; } .pp-bpre::-webkit-scrollbar { display: none; }
.pp-bpre span { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pp-bpre button { all: unset; cursor: pointer; white-space: nowrap; padding: 6px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid var(--line); background: var(--panel); }
.pp-bh { margin: 10px 0 6px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pp-bl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pp-bl li { display: grid; grid-template-columns: 1fr auto 24px; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--panel); border-left: 3px solid var(--ok); font-size: .8rem; font-variant-numeric: tabular-nums; }
.pp-bl li.sell { border-left-color: var(--danger); } .pp-bl button { all: unset; cursor: pointer; color: var(--muted); text-align: center; }
.pp-bs { display: flex; justify-content: space-between; gap: 8px; margin: 8px 2px 0; font-size: .76rem; color: var(--muted); } .pp-bs b { color: var(--text); }

/* ===== Admin brief ===== */
.bf { max-width: 860px; margin: 0 auto; }
.bf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.bf-pick { display: flex; flex-direction: column; } .bf-date { font-weight: 700; font-size: .9rem; }
.bf-act { display: flex; gap: 6px; }
.bf-title { margin: 6px 0 8px; font-family: var(--serif, inherit); font-size: 1.55rem; line-height: 1.25; letter-spacing: -.02em; }
.bf-mood { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--ink); border: 1px solid var(--line); }
.bf-mood i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); } .bf-mood.down i { background: var(--danger); } .bf-mood.up i { background: var(--ok); }
.bf-live { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.bf-lv-k { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--danger); margin-right: 4px; }
.bf-lv { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); font-size: .76rem; font-variant-numeric: tabular-nums; }
.bf-lv em { font-style: normal; color: var(--muted); font-size: .68rem; } .bf-lv i { font-style: normal; font-size: .68rem; } .bf-lv i.up { color: var(--ok); } .bf-lv i.dn { color: var(--danger); }
.bf-card { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.bf-k { margin: 0 0 10px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.bf-tldr ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; } .bf-tldr li { font-size: .9rem; line-height: 1.55; }
.bf-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bf-node { padding: 6px 10px; border-radius: 9px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--danger) 9%, var(--ink)); border: 1px solid color-mix(in srgb, var(--danger) 25%, var(--line)); }
.bf-arr { font-style: normal; color: var(--muted); }
.bf-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; overflow: hidden; }
.bf-sec > summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; flex-direction: column; gap: 3px; } .bf-sec > summary::-webkit-details-marker { display: none; }
.bf-sec[open] > summary { border-bottom: 1px solid var(--line); }
.bf-tag { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .bf-sec b { font-size: 1rem; }
.bf-sb { padding: 6px 16px 14px; }
.bf-it { padding: 10px 0; border-top: 1px dashed var(--line); } .bf-it:first-child { border-top: 0; }
.bf-it h4 { margin: 0 0 4px; font-size: .86rem; color: var(--text); } .bf-it p { margin: 0; font-size: .86rem; line-height: 1.65; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.bf-scen { display: grid; gap: 8px; } .bf-sc { padding: 10px 12px; border-radius: 10px; background: var(--ink); border-left: 3px solid var(--muted); }
.bf-sc.up { border-left-color: var(--ok); } .bf-sc.down { border-left-color: var(--danger); } .bf-sc.flat { border-left-color: #8C7BE0; }
.bf-sc > div { display: flex; justify-content: space-between; } .bf-sc span { font-weight: 800; font-variant-numeric: tabular-nums; } .bf-sc p { margin: 4px 0 0; font-size: .84rem; line-height: 1.55; }
.bf-watch { list-style: none; margin: 0; padding: 0; } .bf-watch li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .84rem; } .bf-watch li:first-child { border-top: 0; }
@media (max-width: 520px) { .bf-watch li { grid-template-columns: 1fr; gap: 2px; } }
.bf-q { padding: 10px 0; border-top: 1px solid var(--line); } .bf-q:first-of-type { border-top: 0; }
.bf-q summary { cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; line-height: 1.5; } .bf-q summary::-webkit-details-marker { display: none; }
.bf-q summary span { display: inline-block; min-width: 30px; color: var(--gold); font-weight: 800; }
.bf-q p { margin: 6px 0 0 30px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 8%, var(--ink)); font-size: .84rem; line-height: 1.55; }
.bf-terms { margin: 0; display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; font-size: .84rem; } .bf-terms dt { font-weight: 700; } .bf-terms dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .bf-terms { grid-template-columns: 1fr; gap: 2px; } .bf-terms dd { margin-bottom: 8px; } }
.bf-src { margin: 0; padding-left: 20px; font-size: .78rem; display: grid; gap: 4px; } .bf-src a { color: var(--text); }
.bf.big .bf-title { font-size: 2.1rem; } .bf.big .bf-tldr li, .bf.big .bf-it p, .bf.big .bf-sc p, .bf.big .bf-q summary { font-size: 1.12rem; } .bf.big .bf-it h4 { font-size: 1.08rem; } .bf.big .bf-node { font-size: .95rem; }

/* ---------- Admin Reader ---------- */
.rd { max-width: 860px; margin: 0 auto; }
.rd-head h2 { margin: 0 0 4px; }
.rd-up { display: grid; gap: 12px; margin: 14px 0 6px; padding: 18px; }
.rd-up .field { margin: 0; }
.rd-kind { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; }
.rd-kind button { background: transparent; border: 0; padding: 8px 18px; cursor: pointer; color: var(--muted); font-weight: 600; }
.rd-kind button.on { background: var(--gold-soft); color: var(--gold); }
.rd-list { display: grid; gap: 8px; }
.rd-doc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.rd-doc:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.rd-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--raise); color: var(--gold); flex: none; }
.rd-ic.book { color: var(--ok); }
.rd-dt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rd-dt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rd-dt em { font-style: normal; font-size: .78rem; color: var(--muted); }
.rd-st { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--raise); color: var(--muted); } .rd-st.ok { color: var(--ok); }
.rd-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .rd-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-run .small { margin: 8px 0; } .rd-err { color: var(--danger); font-size: .84rem; margin: 6px 0 10px; }
.rd-pbar { height: 6px; border-radius: 99px; background: var(--raise); overflow: hidden; } .rd-pbar i { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }
.rd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.rd-cats button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 5px 12px; font-size: .78rem; cursor: pointer; color: var(--muted); }
.rd-cats button.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.rd-art > summary b { line-height: 1.35; }
.rd-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; } .rd-meta em { font-style: normal; font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.rd-imp { width: 70px; height: 4px; border-radius: 99px; background: var(--raise); overflow: hidden; display: inline-block; } .rd-imp i { display: block; height: 100%; background: var(--gold); }
.rd-impn { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-one { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.rd-sum { font-size: .95rem; line-height: 1.6; margin: 0 0 12px; }
.rd-lvl { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 12px 0; }
.rd-lvl h4, .rd-mi h4, .rd-h4 { margin: 0 0 4px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rd-h4 { margin: 16px 0 6px; }
.rd-lvl p { margin: 0; font-size: .9rem; line-height: 1.6; }
.rd-lvl.b1 { border-color: var(--ok); } .rd-lvl.b1 h4 { color: var(--ok); }
.rd-lvl.b2 { border-color: #6FA3E0; } .rd-lvl.b2 h4 { color: #6FA3E0; }
.rd-lvl.b3 { border-color: #B98AE0; } .rd-lvl.b3 h4 { color: #B98AE0; }
.rd-lvl.b4 { border-color: var(--gold); } .rd-lvl.b4 h4 { color: var(--gold); }
.rd-mi { margin: 14px 0; padding: 12px; border-radius: 10px; background: var(--raise); } .rd-mi p { margin: 0 0 8px; font-size: .88rem; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rd-chip { font-size: .74rem; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); }
.rd-chip.up { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.rd-chip.dn { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.rd-chip.mx { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.rd-chip.st { font-weight: 700; }
.rd-ul { margin: 4px 0; padding-left: 18px; font-size: .88rem; line-height: 1.55; } .rd-ul li { margin: 3px 0; }
.rd-ul.warn li::marker { color: var(--danger); }
.rd-ol { margin: 0; padding-left: 20px; } .rd-ol li { margin: 5px 0; font-size: .92rem; }
.rd-nums { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .rd-nums span { font-family: "JetBrains Mono", monospace; font-size: .74rem; padding: 4px 8px; border-radius: 6px; background: var(--raise); }
.rd-plan { list-style: none; margin: 0; padding: 0; } .rd-plan li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); } .rd-plan li:first-child { border-top: 0; }
.rd-plan span { flex: none; min-width: 62px; font-size: .74rem; font-weight: 700; color: var(--gold); padding-top: 2px; } .rd-plan p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.rd-ex { font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
.rd-fw { margin: 8px 0; } .rd-fw ol { margin: 4px 0 0; padding-left: 20px; font-size: .88rem; }
.rd-oth { padding: 8px 0; border-top: 1px solid var(--line); } .rd-oth:first-child { border-top: 0; } .rd-oth em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); } .rd-oth p { margin: 3px 0 0; font-size: .85rem; }
.bf.big .rd-lvl p, .bf.big .rd-sum { font-size: 1.1rem; }

/* Paper trading: your own price */
.pp-px-row { display: grid; gap: 6px; margin: 12px 0 0; }
.pp-pxl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pp-pxl > span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
input.pp-px { width: 130px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1rem; padding: 8px 10px; border-radius: 9px; }
input.pp-px.sm { width: 86px; font-size: .8rem; padding: 5px 7px; font-weight: 600; }
input.pp-px:focus { border-color: var(--gold); }
.pp-pxi { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: var(--muted); padding: 0 2px; } .pp-pxi b { color: var(--text); }
.pp-pxr { all: unset; cursor: pointer; color: var(--gold); font-weight: 700; }
.pp-p > .pp-ex { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 10px 0 2px; border-top: 1px dashed var(--line); margin-top: 4px; }
.pp-ex label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }

/* ---------- Admin Edge ---------- */
.eg { max-width: 900px; margin: 0 auto; }
.eg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .eg-top h2 { margin: 0 0 2px; }
.eg-subs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -2px 14px; padding: 2px; } .eg-subs::-webkit-scrollbar { display: none; }
.eg-subs button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 7px 13px; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.eg-subs button.on { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.eg-load { padding: 20px 0; }
.eg-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; min-width: 0; }
.eg-k { margin: 0 0 10px; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eg-note { margin: 8px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.eg-ts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.eg-card .eg-ts { margin-bottom: 0; }
.eg-t { background: var(--panel); box-shadow: 0 0 0 1px var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eg-t span { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.eg-t b { font-size: 1.05rem; font-variant-numeric: tabular-nums; } .eg-t em { font-style: normal; font-size: .7rem; color: var(--muted); line-height: 1.35; }
.eg-t.up b, .eg .up { color: var(--ok); } .eg-t.dn b, .eg .dn { color: var(--danger); }
.eg-v { border-radius: 14px; padding: 13px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--panel); }
.eg-v.up { border-left-color: var(--ok); } .eg-v.dn { border-left-color: var(--danger); }
.eg-v b { font-size: 1rem; } .eg-v p { margin: 4px 0 0; font-size: .86rem; line-height: 1.55; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.eg-ch { position: relative; width: 100%; } .eg-ch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eg-ln { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke: var(--gold); }
.eg-ln.b { stroke: #6FA3E0; } .eg-ln.up { stroke: var(--ok); } .eg-ln.dn { stroke: var(--danger); } .eg-ln.st { stroke-dasharray: 4 3; stroke-width: 1.4; }
.eg-mk { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; } .eg-mk.z { stroke: var(--muted); }
.eg-mk.lo { stroke: color-mix(in srgb, var(--ok) 60%, transparent); } .eg-mk.hi { stroke: color-mix(in srgb, var(--danger) 60%, transparent); }
.eg-ml { position: absolute; right: 0; transform: translateY(-110%); font-size: .62rem; color: var(--muted); }
.eg-yt, .eg-yb { position: absolute; left: 0; font-size: .62rem; color: var(--muted); font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--panel) 80%, transparent); padding: 0 3px; border-radius: 3px; }
.eg-yt { top: 0; } .eg-yb { bottom: 0; }
.eg-x { display: flex; justify-content: space-between; font-size: .64rem; color: var(--muted); margin-top: 4px; }
.eg-lg { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: .72rem; color: var(--muted); } .eg-lg i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; background: var(--gold); margin-right: 5px; vertical-align: middle; }
.eg-lg .b i { background: #6FA3E0; } .eg-lg .up i { background: var(--ok); } .eg-lg .dn i { background: var(--danger); }
.eg-db, .eg-hb { display: grid; gap: 5px; }
.eg-dr { display: grid; grid-template-columns: minmax(70px, 30%) 1fr 74px; gap: 8px; align-items: center; font-size: .78rem; font-variant-numeric: tabular-nums; }
.eg-dr.hl .eg-dl { color: var(--gold); font-weight: 700; }
.eg-dl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-dt { position: relative; height: 10px; background: color-mix(in srgb, var(--line) 40%, transparent); border-radius: 3px; }
.eg-dt::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.eg-dt i { position: absolute; top: 0; bottom: 0; border-radius: 3px; } .eg-dt i.p { left: 50%; background: var(--ok); } .eg-dt i.n { right: 50%; background: var(--danger); }
.eg-dv { text-align: right; font-weight: 700; white-space: nowrap; } .eg-dv small, .eg-hr small { font-weight: 400; color: var(--muted); font-size: .68rem; }
.eg-hr { display: grid; grid-template-columns: minmax(80px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: .78rem; }
.eg-hr > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-ht { height: 8px; background: color-mix(in srgb, var(--line) 40%, transparent); border-radius: 3px; overflow: hidden; }
.eg-ht i { display: block; height: 100%; background: var(--gold); border-radius: 3px; } .eg-ht i.a { background: var(--ok); } .eg-ht i.b { background: var(--danger); }
.eg-hr b { font-variant-numeric: tabular-nums; font-size: .78rem; }
.eg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .eg-two > .eg-card { margin-bottom: 12px; }
@media (max-width: 640px) { .eg-two { grid-template-columns: 1fr; gap: 0; } }
.eg-tw { overflow-x: auto; }
.eg-tb { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; }
.eg-tb th { text-align: left; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.eg-tb td { padding: 7px 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; } .eg-tb tr:last-child td { border-bottom: 0; }
.eg-tb td em { font-style: normal; font-size: .68rem; margin-left: 5px; }
.eg-big { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; } .eg-big b { font-size: 1.6rem; font-variant-numeric: tabular-nums; } .eg-big span { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.eg-read { font-size: .88rem; line-height: 1.6; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); }
.eg-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .eg-day label { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); } .eg-day input { width: auto; padding: 6px 8px; }
.eg-ol, .eg-log, .eg-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.eg-ol li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); } .eg-ol li:last-child { border: 0; }
.eg-ol li span { color: var(--danger); font-weight: 700; } .eg-ol.up li span { color: var(--ok); }
.eg-log li span { display: inline-block; min-width: 64px; color: var(--muted); }
.eg-pl li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); } .eg-pl li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .eg-pl li span { color: var(--muted); font-size: .74rem; }
.eg-pl a { font-size: .74rem; font-weight: 700; }
.eg-cols { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 18px; position: relative; }
.eg-cols > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.eg-cols i { display: block; width: 100%; max-width: 28px; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 2px; }
.eg-cols span { position: absolute; bottom: -17px; font-size: .58rem; color: var(--muted); white-space: nowrap; }
.hl-er { border-top: 1px solid var(--line); padding: 8px 0; } .hl-er:first-of-type { border-top: 0; }
.hl-er summary { cursor: pointer; font-size: .82rem; line-height: 1.45; word-break: break-word; } .hl-er summary b { color: var(--danger); margin-right: 4px; }
.hl-er pre { white-space: pre-wrap; word-break: break-all; font-size: .68rem; background: var(--ink); border-radius: 8px; padding: 8px; margin: 6px 0 0; max-height: 200px; overflow: auto; }
.hl-card .dn { color: var(--danger); } .hl-card .up { color: var(--ok); }

/* ---------- Admin Social Studio ---------- */
.sc { max-width: 1100px; margin: 0 auto; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .sc-top h2 { margin: 0 0 2px; }
.sc-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 14px; scrollbar-width: none; } .sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs button, .sc-fmt button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 99px; padding: 7px 13px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.sc-tabs button.on, .sc-fmt button.on { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.sc-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .sc-grid { grid-template-columns: 1fr; } }
.sc-prev { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px; position: sticky; top: 10px; }
.sc-prev canvas { width: 100%; height: auto; display: block; border-radius: 10px; }
.sc-fmt { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sc-btns { display: flex; gap: 8px; margin: 12px 0 14px; flex-wrap: wrap; } .sc-btns .btn { flex: 1; }
#scExtra select { width: 100%; }
.sc textarea { font-size: .84rem; line-height: 1.5; }
/* story-specific "why it matters": topic background tucked away */
.npa-bg { margin-top: 10px; }
.npa-bg summary { cursor: pointer; font-size: .82rem; color: var(--muted); list-style: none; }
.npa-bg summary::before { content: "＋ "; color: var(--gold); }
.npa-bg[open] summary::before { content: "－ "; }
.npa-bg p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }
/* Admin → Paper trades */
.pa-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.pa-bar select { width: auto; min-width: 0; flex: 1 1 140px; }
.pa-bar .eg-subs { margin: 0; }
.pa-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pa-flag { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 85%, transparent); }
.pa-flag b { font-size: .9rem; } .pa-flag span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .pa-flag em { font-style: normal; font-size: .76rem; color: var(--muted); }
.pa-flag.dn span { color: var(--down, #E26D5A); } .pa-flag.up span { color: var(--up, #2BB673); } .pa-flag.mx span { color: var(--gold); }
.pa-st tr[data-who] { cursor: pointer; } .pa-st tr.on td { background: var(--gold-soft); }
.pa-list { display: flex; flex-direction: column; }
.pa-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pa-row:last-child { border-bottom: 0; }
.pa-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pa-l b { font-size: .88rem; font-variant-numeric: tabular-nums; } .pa-l span { font-size: .78rem; } .pa-l em { font-style: normal; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pa-r { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.pa-r.up, .pa-st .up, .pa-l .up { color: var(--up, #2BB673); } .pa-r.dn, .pa-st .dn { color: var(--down, #E26D5A); }
.pa-open { font-style: normal; font-weight: 700; color: var(--gold); font-size: .68rem; letter-spacing: .04em; }
.pa-own { font-style: normal; font-size: .68rem; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
/* ===== Market Compass ===== */
.cp-title { margin: 6px 0 2px; }
.cp-k { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.cp-note { font-size: .86rem; line-height: 1.55; color: var(--muted); margin: 10px 0 0; } .cp-note b { color: var(--text); }
.cp-hero { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; margin: 14px 0; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, var(--panel)), var(--panel)); --c: var(--muted); }
.cp-hero.green { --c: #2BB673; } .cp-hero.amber { --c: #E0A82E; } .cp-hero.red { --c: #E26D5A; } .cp-hero.grey { --c: #8E98B0; }
.cp-hero h3 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.3; } .cp-hero p { margin: 0; font-size: .88rem; line-height: 1.5; } .cp-hero .cp-k { margin-bottom: 4px; }
.cp-ts { margin-top: 8px !important; font-size: .74rem !important; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-light { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.cp-light i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: 0 0 22px var(--c); animation: cpPulse 2.4s ease-in-out infinite; }
@keyframes cpPulse { 50% { box-shadow: 0 0 6px var(--c); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .cp-light i { animation: none; } }
.cp-sec { margin-bottom: 12px; }
.cp-type { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; } .cp-type b { font-size: 1.4rem; font-family: var(--serif, Georgia, serif); } .cp-type span { font-size: .85rem; color: var(--muted); }
.cp-type.up b, .cp-sv.up { color: var(--up, #2BB673); } .cp-type.dn b, .cp-sv.dn { color: var(--down, #E26D5A); } .cp-type.sw b { color: var(--gold); } .cp-type.mx b { color: #8EA6D8; }
.cp-sv { font-size: .9rem; margin-left: 6px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cp-strack { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #E26D5A, #3A4256 50%, #2BB673); }
.cp-strack i { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--text); border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
.cp-slbl { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 6px; }
.cp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cp-side { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.cp-side span { font-size: .72rem; font-weight: 700; color: var(--muted); } .cp-side b { font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1.1; } .cp-side em { font-style: normal; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.cp-side.fav { border-color: var(--gold); background: var(--gold-soft); } .cp-side.fav span { color: var(--gold); }
.cp-lv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cp-lv > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cp-lv span { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .cp-lv b { font-size: 1.3rem; font-variant-numeric: tabular-nums; } .cp-lv em { font-style: normal; font-size: .72rem; color: var(--muted); }
.cp-lv .up b { color: var(--up, #2BB673); } .cp-lv .dn b { color: var(--down, #E26D5A); }
.cp-lad { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.cp-lr { display: grid; grid-template-columns: 1fr 112px 1fr; align-items: center; gap: 8px; font-size: .78rem; padding: 2px 0; border-radius: 6px; }
.cp-lr b { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; } .cp-lr b em { font-style: normal; font-size: .64rem; font-weight: 700; text-transform: uppercase; }
.cp-lr b em.up { color: var(--up, #2BB673); } .cp-lr b em.dn { color: var(--down, #E26D5A); }
.cp-pe, .cp-ce { height: 10px; display: flex; } .cp-pe { justify-content: flex-end; }
.cp-pe i, .cp-ce i { display: block; height: 100%; border-radius: 3px; } .cp-pe i { background: #3FA7E0; } .cp-ce i { background: #E8833A; }
.cp-lr.spot { background: var(--gold-soft); } .cp-lr.spot b { color: var(--gold); }
.cp-lr.most b::after { content: " ★"; color: var(--gold); }
.cp-lk { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); margin-top: 4px; }
.cp-tl { list-style: none; margin: 0; padding: 0; } .cp-tl li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); } .cp-tl li:last-child { border-bottom: 0; }
.cp-t { font-size: .78rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; } .cp-tl b { display: block; font-size: .9rem; } .cp-tl em { font-style: normal; font-size: .76rem; color: var(--muted); }
.cp-rec-top b { font-size: 2rem; display: block; color: var(--gold); } .cp-rec-top span { font-size: .78rem; color: var(--muted); }
.cp-days { margin-top: 10px; } .cp-day { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.cp-day b { display: block; font-size: .86rem; } .cp-day span { font-size: .74rem; color: var(--muted); } .cp-day em { font-style: normal; font-size: .76rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-tl li.now b { color: var(--gold); }
.cp-sub { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; color: var(--muted); }
.cp-sub.up { color: var(--up, #2BB673); } .cp-sub.dn { color: var(--down, #E26D5A); }
.cp-tl li.dn .cp-t { color: var(--down, #E26D5A); } .cp-tl li.up .cp-t { color: var(--up, #2BB673); }
.cp-mvs > div { min-width: 0; }
.cp-mv { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 6px; font-size: .78rem; padding: 3px 0; }
.cp-mv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cp-mv i { height: 8px; border-radius: 4px; display: block; } .cp-mv b { text-align: right; font-variant-numeric: tabular-nums; }
.cp-mv.up i { background: var(--up, #2BB673); } .cp-mv.dn i { background: var(--down, #E26D5A); } .cp-mv.up b { color: var(--up, #2BB673); } .cp-mv.dn b { color: var(--down, #E26D5A); }
.cp-scan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.cp-hz { display: flex; gap: 4px; background: var(--panel2, rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.cp-hz button { all: unset; cursor: pointer; font-size: .72rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.cp-hz button.on { background: var(--gold-soft); color: var(--gold); }
.cp-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cp-pick { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.cp-pick span { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; } .cp-pick b { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp-pick em { font-style: normal; font-size: .72rem; color: var(--muted); } .cp-pick p { margin: 4px 0 0; font-size: .74rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.cp-pick.sell { border-color: color-mix(in srgb, #3FA7E0 50%, var(--line)); } .cp-pick.sell span { color: #3FA7E0; }
.cp-pick.buy { border-color: color-mix(in srgb, #E8833A 50%, var(--line)); } .cp-pick.buy span { color: #E8833A; }
.cp-chain { width: 100%; border-collapse: collapse; font-size: .74rem; font-variant-numeric: tabular-nums; margin-top: 12px; }
.cp-chain th, .cp-chain td { padding: 5px 4px; text-align: center; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.cp-chain tr:first-child th { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cp-chain tr.atm th, .cp-chain tr.atm td { background: var(--gold-soft); }
.cp-chain td.pos { color: var(--up, #2BB673); } .cp-chain td.hot { background: var(--gold); color: #111; font-weight: 700; border-radius: 4px; }
.cp-chain tr.atm td.hot, .cp-chain td.hot { background: var(--gold) !important; color: #111 !important; }
.motto-sa { font-family: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif; font-size: 1.2rem; color: var(--gold); margin: 10px 0 0; letter-spacing: .01em; }
.motto-en { font-size: .78rem; color: var(--muted); margin: 2px 0 0; font-style: italic; }
.cp-picks.one { grid-template-columns: 1fr; }
.cp-plan { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 8%, transparent); border-left: 3px solid var(--gold); }
.cp-plan p { margin: 0; font-size: .78rem; line-height: 1.5; } .cp-plan p + p { margin-top: 6px; }
.cp-pl-h b { color: var(--gold); font-size: .9rem; } .cp-pl-h em { font-style: normal; color: var(--muted); }
.cp-pick .cp-plan b { font-size: inherit; line-height: inherit; color: var(--text); } .cp-pick .cp-plan .cp-pl-h b { color: var(--gold); font-size: .9rem; }

.sloka { font-family: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif; color: var(--gold); font-size: 1.05em; letter-spacing: .01em; }

/* ---- Feels-native-on-phone baseline (Emil Kowalski's mobile-native rules) ---- */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, a, [role="button"], .tab, .chip { touch-action: manipulation; }
button, [role="button"], .tab, .chip, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (pointer: coarse) { input, textarea, select { font-size: 16px !important; } }
@media (hover: none) { .tick-strip:not(.paused):hover .tk-track { animation-play-state: running; } }

/* online payments (Cashfree) */
.pay-online { margin: 2px 0 14px; }
.pay-on-btn { min-height: 52px; font-size: 1.02rem; }
.pay-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 18px 0 6px; text-align: center; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gw-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.gw-row:last-child { border-bottom: 0; }
.gw-st { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; border: 1px solid var(--line); color: var(--muted); }
.gw-st.paid { color: var(--ok); border-color: var(--ok); }

/* ===================== Student content protection (index.html → protectContent) ===================== */
body.protect { -webkit-touch-callout: none; }
body.protect #app, body.protect #app * { -webkit-user-select: none; user-select: none; }
body.protect #app input, body.protect #app textarea, body.protect #app [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
body.protect img, body.protect video { -webkit-user-drag: none; pointer-events: auto; }
#wmark { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
#wmark .wm-in { position: absolute; inset: -40%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 64px 90px; padding: 20px; transform: rotate(-24deg); animation: wmDrift 46s linear infinite alternate; }
#wmark span { font: 600 13px/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .04em; color: rgba(238, 233, 220, .07); white-space: nowrap; }
html[data-theme="light"] #wmark span { color: rgba(42, 34, 25, .07); }
@keyframes wmDrift { from { transform: rotate(-24deg) translate3d(0, 0, 0); } to { transform: rotate(-24deg) translate3d(-120px, 80px, 0); } }
@media (prefers-reduced-motion: reduce) { #wmark .wm-in { animation: none; } }
body.priv-blur #app, body.priv-blur .sheet-ov, body.priv-blur .bottom-nav { filter: blur(22px); }
@media print { body.protect * { display: none !important; } body.protect::after { content: "Printing is turned off in Mandali."; display: block; padding: 40px; font: 16px sans-serif; } }

/* GIFT strip: gap vs Nifty close, plus GIFT's own session move */
.gift-k { font-size: 11px; color: var(--muted); }
.gift-s { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.gift-s b { font-weight: 600; } .gift-s b.up { color: var(--ok); } .gift-s b.down { color: var(--danger); }

/* Night: warm and dim, for late study and dark rooms (admin theme switch: Dark → Night → Light) */
html.night {
  --ink: #0F0C09; --panel: #17120D; --raise: #1E1812; --line: #2E251B;
  --text: #DCCCB0; --muted: #9C8A70; --ok: #7FB38A; --danger: #D9826E;
  --gold: #C9954A; --gold-soft: rgba(201, 149, 74, 0.10);
}
html.night img, html.night video { filter: brightness(.9); }
html.night .btn:not(.ghost):not(.quiet):not(.danger) { color: #1A120A; }

/* Class player header, per-class progress (v198) */
.pl-head { margin: 16px 0 4px; }
.pl-k { margin: 0 0 6px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pl-done { color: var(--ok); }
.pl-t { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 4.6vw, 1.85rem); line-height: 1.2; text-wrap: balance; }
.lesson-prog { display: block; height: 3px; margin-top: 8px; max-width: 240px; border-radius: 3px; background: var(--raise); overflow: hidden; }
.lesson-prog i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.lesson-left { display: block; margin-top: 4px; font: 500 12px var(--mono); color: var(--muted); }
.cw-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; width: 100%; margin: 12px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; cursor: pointer; transition: transform .16s cubic-bezier(.23,1,.32,1), border-color .2s; }
.cw-card:active { transform: scale(.985); }
.cw-card:hover { border-color: var(--gold); }
.cw-ring { width: 56px; height: 56px; }
.cw-k { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.cw-t { display: block; font: 600 16px/1.3 var(--serif); }
.cw-s { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.cw-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0B1220; }

/* Payment due screen */
.due-wrap { padding-top: 40px; padding-bottom: 40px; text-align: center; max-width: 440px; }
.due-wrap .logo-badge { width: 96px; height: 96px; }
.due-kicker { margin: 22px 0 4px; color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.due-amt { font-size: 2.6rem; margin: 0; font-variant-numeric: tabular-nums; }
.due-amt span { font-family: var(--sans); font-size: .95rem; color: var(--muted, #9aa3ad); margin-left: 8px; }
.due-lead { margin: 12px auto 0; max-width: 34ch; color: var(--muted, #9aa3ad); text-wrap: pretty; }
.due-note { margin: 14px auto 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(224,168,46,.08); border-radius: 8px; text-align: left; font-size: .95rem; }
.due-actions { display: grid; gap: 10px; margin-top: 24px; }
.due-actions .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; }
.pill.due-pill { border-color: var(--danger); color: #fff; background: var(--danger); }
.due-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; background: rgba(255,255,255,.02); }
.due-preview strong { color: var(--gold); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.due-preview-amt { font-family: var(--serif); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.due-preview-amt span { font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* Weekly report card (journal) */
.rc-card { margin: 0 0 14px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.rc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rc-head h3 { font-size: 1.2rem; margin: 2px 0 12px; text-wrap: balance; }
.rc-kick { margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.rc-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.rc-x:active { transform: scale(.94); }
.rc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rc-t { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.rc-t strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rc-t span { display: block; margin-top: 3px; font-size: .72rem; color: var(--muted); }
.rc-line { margin: 12px 0 0; font-size: .92rem; }
.rc-rev { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rc-rev ul { margin: 8px 0 0; padding-left: 18px; }
.rc-rev li { margin: 0 0 7px; line-height: 1.5; font-size: .95rem; }
.ai-esc { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--gold); font: 600 .85rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ai-esc-done { margin: 8px 0 0 !important; font-size: .85rem; color: var(--ok); }
@media (max-width: 380px) { .rc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- performance (13 Nov 2026) ----------
   Glowing "pulse" dots animated box-shadow, which repaints every frame; they now pulse with opacity only (GPU, no repaint).
   The protection watermark no longer drifts: a moving full-screen layer over the whole app was the biggest cost on phones. */
.sess-dot:not(.off), .pz-dot, .np-live, .hf-dot.live, .pp-live, .hx-st.open i, .cp-light i, .pf-live i, .live-dot { animation-name: calmPulse !important; box-shadow: none !important; }
@keyframes calmPulse { 50% { opacity: .4; } }
#wmark .wm-in { animation: none !important; will-change: auto; }
@media (pointer: coarse) {
  .hx-orb, .why-breath, .mm-orbit, .mm-halo { animation: none !important; }
  .tier::after { animation: none !important; display: none; }
}
.lz-wait { display: grid; gap: 12px; padding: 8px 0; } .lz-wait i { display: block; height: 88px; border-radius: 14px; background: color-mix(in srgb, var(--panel, #0E1626) 80%, var(--line, #26324D)); opacity: .7; }

/* Paper trading ground rules: one lot, no primary trades, deep-loss alarm */
.pp-rule1 b { color: var(--text); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82rem; margin-left: auto; }
.pp-rule1 em { flex-basis: 100%; font-style: normal; font-size: .68rem; color: var(--muted); font-weight: 500; text-align: right; margin-top: -4px; }
.pp-rule1 { flex-wrap: wrap; }
.pp-warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; font-size: .78rem; line-height: 1.45; color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.pp-rnote { margin: -4px 0 8px; text-align: right; font-size: .68rem; color: var(--muted); }
.pp-alarm { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; padding: 11px 13px; border-radius: 12px; font-size: .8rem; line-height: 1.45; background: color-mix(in srgb, var(--down, #E26D5A) 12%, transparent); border: 1px solid color-mix(in srgb, var(--down, #E26D5A) 45%, transparent); }
.pp-alarm b { color: var(--down, #E26D5A); } .pp-alarm span { color: var(--text); }
.pp-p.deep { background: color-mix(in srgb, var(--down, #E26D5A) 8%, transparent); box-shadow: inset 3px 0 0 var(--down, #E26D5A); }
.pa-rules { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pa-rules > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; background: var(--panel); font-size: .8rem; }
.pa-rules > div > span:first-child { flex: 1 1 200px; color: var(--muted); }
.pa-rules b { font-family: "JetBrains Mono", ui-monospace, monospace; } .pa-rules b.up { color: var(--up, #2BB673); } .pa-rules b.dn { color: var(--down, #E26D5A); }
.pa-rules em { flex-basis: 100%; font-style: normal; font-size: .7rem; color: var(--muted); }
.pa-rk { display: inline-flex; gap: 4px; }
/* Paper: sync notice + week-by-week history */
.pp-sync { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 12px; font-size: .82rem; line-height: 1.45;
  background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent); color: var(--text); }
.pp-sync.top { margin-bottom: 12px; } .pp-sync p { margin: 0; flex: 1 1 220px; }
.pp-keep { margin: 10px 2px; }
.pp-wk { border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; overflow: hidden; background: var(--panel); }
.pp-wk > summary { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t p" "e p"; gap: 1px 12px; padding: 10px 12px; cursor: pointer; list-style: none; touch-action: manipulation; }
.pp-wk > summary::-webkit-details-marker { display: none; }
.pp-wk > summary b { grid-area: t; color: var(--text); font-size: .9rem; } .pp-wk > summary em { grid-area: e; font-style: normal; font-size: .74rem; color: var(--muted); }
.pp-wk > summary span { grid-area: p; align-self: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; }
.pp-wk[open] > summary { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--gold) 5%, transparent); }
.pp-wk .pp-list { border: 0; border-radius: 0; }
.pp-st { grid-template-columns: repeat(3, 1fr); }

/* Trade Desk · exit watch (open buy) — PRISM option 1, Operate mode: no motion, tabular figures */
.td-tele { margin: 0 0 10px; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); font-variant-numeric: tabular-nums; }
.td-tele-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.td-tele-h > span:first-child { font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.td-cd { font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.td-cd.warn { color: var(--gold); border-color: var(--gold); }
.td-cd.bad { color: var(--danger); border-color: var(--danger); }
.td-cd.ok { color: var(--ok); border-color: var(--ok); }
.td-tele-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.td-tele-g > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.td-tele-g span { font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-tele-g b { font: 600 13px/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--text); }
.td-tele-g em { font: 400 10px/1.2 "JetBrains Mono", ui-monospace, monospace; font-style: normal; color: var(--muted); }
.td-tele-g .up em { color: var(--ok); } .td-tele-g .down em { color: var(--danger); }
.td-tele-g .arm span, .td-tele-g .arm b { color: var(--gold); }
.td-lad { position: relative; height: 6px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); overflow: visible; }
.td-lad i { position: absolute; top: 0; bottom: 0; left: 0; display: block; border-radius: 3px; }
.td-lad .pk { background: var(--ok); opacity: .25; }
.td-lad .nw { background: var(--ok); } .td-lad .nw.dn { background: var(--danger); width: 3px !important; }
.td-lad .t1 { width: 1px; top: -3px; bottom: -3px; background: var(--muted); border-radius: 0; }
.td-lad .lk { width: 2px; top: -4px; bottom: -4px; background: var(--gold); border-radius: 1px; }
.td-lad-l { position: relative; display: flex; justify-content: space-between; margin-top: 6px; height: 12px; font: 400 10px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); }
.td-lad-l span:nth-child(2) { position: absolute; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 380px) { .td-tele-g b { font-size: 12px; } }
.td-lad.sell .nw { background: var(--ok); } .td-lad.sell .nw.dn2 { background: var(--danger); width: auto; }
.td-lad.sell .bk { position: absolute; width: 2px; top: -4px; bottom: -4px; background: var(--ok); border-radius: 1px; }
.td-lad.sell .cur { position: absolute; width: 2px; top: -4px; bottom: -4px; background: var(--text); border-radius: 1px; }
.td-lad.sell::before { content: ""; position: absolute; left: 0; top: -4px; bottom: -4px; width: 2px; background: var(--danger); border-radius: 1px; }
.td-tele-g .down b { color: var(--danger); } .td-tele-g .up b { color: var(--ok); }

/* Admin → Equinox (Operate mode: calm, tabular numbers, no decorative motion) */
.eq { max-width: 880px; display: grid; gap: 14px; }
.eq-h { padding: 4px 2px 6px; }
.eq-kick { margin: 0 0 4px; font: 600 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.eq-h h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.eq-h h2 em { color: var(--gold); font-style: italic; }
.eq-sub { margin: 6px 0 0; color: var(--text); max-width: 60ch; }
.eq-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.eq-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.eq-note { margin: 6px 0 10px; color: var(--muted); font-size: .9rem; }
.eq-life { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.eq-life li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.eq-life li:first-child { border-top: 0; }
.eq-life li.key b { color: var(--gold); }
.eq-life p { margin: 2px 0 0; color: var(--text); font-size: .95rem; }
.eq-when { font: 600 12px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); padding-top: 2px; }
.eq-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eq-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.eq-t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.eq-t td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
.eq .up { color: var(--ok); } .eq .dn { color: var(--danger); }
.eq-risk { margin: 0; padding-left: 18px; } .eq-risk li { margin: 6px 0; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 10px 0; }
.eq-s { background: var(--ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eq-s span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.eq-s b { font: 600 15px/1.2 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.eq-weeks { list-style: none; margin: 0; padding: 0; }
.eq-weeks li { border-top: 1px solid var(--line); }
.eq-weeks button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 2px; background: none; border: 0; text-align: left; cursor: pointer; touch-action: manipulation; }
.eq-weeks button:active { transform: scale(0.99); }
.eq-weeks em { font-style: normal; font-size: 12px; color: var(--gold); margin-left: 6px; }
.eq-weeks b { font: 600 14px/1.2 "JetBrains Mono", ui-monospace, monospace; }
.eq-legs { padding: 0 2px 10px; } .eq-legs p { margin: 4px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.eq-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .eq-plan li { font-size: .95rem; }
.eq-tag { display: inline-block; font: 600 10px/1 "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); margin-right: 6px; vertical-align: 1px; }
.eq-tag.done { color: var(--ok); border-color: var(--ok); } .eq-tag.running, .eq-tag.owner { color: var(--gold); border-color: var(--gold); } .eq-tag.proposed { color: var(--text); }
.eq-rules { margin: 0; display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; }
.eq-rules dt { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.eq-rules dd { margin: 0; font-size: .95rem; }
.eq-hash { font: 400 11px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--muted); margin-left: 6px; }
@media (max-width: 560px) { .eq-rules { grid-template-columns: 1fr; gap: 2px 0; } .eq-rules dd { margin-bottom: 10px; } .eq-life li { grid-template-columns: 1fr; gap: 2px; } .eq-card { padding: 14px 12px; } }
.eq-live-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.eq-big { display: block; font: 600 clamp(2rem, 9vw, 2.6rem)/1.1 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; margin: 8px 0 2px; }
.eq-next { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); font-size: .95rem; }
.eq-next b { color: var(--gold); font-weight: 600; }
.eq-t td em { display: block; font-style: normal; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.eq-t tr.eq-closed td { opacity: .78; }
.eq-nw { white-space: nowrap; }
.eq-live .eq-t th, .eq-live .eq-t td { padding-left: 4px; padding-right: 4px; } @media (max-width: 420px) { .eq-live .eq-t td { font-size: 12px; } }

/* one-tap install bar (student app) */
.ibar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  background: var(--raise); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(12px); transition: opacity .22s cubic-bezier(0.23, 1, 0.32, 1), transform .3s cubic-bezier(0.23, 1, 0.32, 1); max-width: 560px; margin: 0 auto; }
.ibar.in { opacity: 1; transform: none; }
body.has-nav .ibar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.ibar img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.ibar div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ibar b { font-size: .95rem; } .ibar span { font-size: .8rem; color: var(--muted); }
.ibar-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 6px 8px; cursor: pointer; touch-action: manipulation; }
