/* Japan Stock Dojo — public landing page. Loads AFTER tokens.css.
   Public-data hygiene: NO kabu+ raw numbers here — only Dojo Score values and
   backtested % figures with disclaimers. */

/* ---- explicit RGB Dojo Score colors (theme-scoped; no color-mix/alias) ---- */
:root, [data-theme="light"] {
  --score-strong: rgb(24,121,78); --score-solid: rgb(47,95,196);
  --score-neutral: rgb(138,103,29); --score-weak: rgb(196,40,71);
  --score-strong-soft: rgba(24,121,78,0.13); --score-solid-soft: rgba(47,95,196,0.13);
  --score-neutral-soft: rgba(138,103,29,0.13); --score-weak-soft: rgba(196,40,71,0.13);
}
[data-theme="dark"] {
  --score-strong: rgb(52,194,140); --score-solid: rgb(122,162,242);
  --score-neutral: rgb(227,179,77); --score-weak: rgb(246,88,112);
  --score-strong-soft: rgba(52,194,140,0.16); --score-solid-soft: rgba(122,162,242,0.16);
  --score-neutral-soft: rgba(227,179,77,0.14); --score-weak-soft: rgba(246,88,112,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body), "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.block { margin: 64px auto; }
.fine { color: var(--muted); font-size: .8rem; line-height: 1.55; }
h1, h2, .logo-word { font-family: var(--font-display), serif; }

/* ---- header ---- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { height: 22px; width: auto; color: var(--text); display: block; }
.logo-word { font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.logo-word i { color: color-mix(in srgb, var(--gold) 55%, transparent); font-style: normal; padding: 0 .12em; }
.theme-seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.theme-seg button { border: 0; background: transparent; cursor: pointer; color: var(--muted);
  font: 600 12px var(--font-body); padding: 4px 12px; border-radius: 999px; }
.theme-seg button.active { background: var(--surface-2); color: var(--text); }

/* ---- hero ---- */
.hero { text-align: center; padding: 72px 20px 8px; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.hero .lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 640px; margin: 16px auto 28px; }
.cta { max-width: 460px; margin: 0 auto; }
.cta-row { display: flex; gap: 8px; }
.cta input {
  flex: 1; min-width: 0; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm, 6px); padding: 12px 14px; font-size: 1rem;
}
.cta input:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--accent); }
.cta button {
  flex: 0 0 auto; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer;
  border-radius: var(--r-sm, 6px); padding: 12px 18px; font-weight: 700; font-size: .95rem;
}
.cta button:hover { background: var(--accent-strong); }
.cta button:disabled { opacity: .6; cursor: default; }
.cf-turnstile { margin: 12px 0 6px; min-height: 0; }
.cta-msg { font-size: .85rem; min-height: 1.2em; font-weight: 600; }
.cta-msg.ok { color: var(--up); } .cta-msg.err { color: var(--down); }
.cta-fine { color: var(--faint); font-size: .74rem; }

/* ---- sections ---- */
.section-h { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; }
.section-h .sub { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .9rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 14px); padding: 18px 20px; }

/* ---- chart demo ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: var(--r-sm, 6px); padding: 6px 12px; font: 600 .85rem var(--font-body); cursor: pointer; }
.tabs button.active { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.chart-card { padding: 8px; }

/* ---- locked top-score table ---- */
.locked-card { position: relative; padding: 0; }
/* horizontal scroll on narrow screens; the lock overlay stays fixed over the card (LP-6) */
.locked-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg, 14px); }
.locked-scroll::-webkit-scrollbar { height: 6px; }
.locked-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
/* right-edge fade affordance: hints there's more to scroll */
.locked-card::after { content: ""; position: absolute; top: 0; right: 0; width: 28px; height: 100%;
  background: linear-gradient(90deg, transparent, var(--surface)); pointer-events: none; border-radius: 0 var(--r-lg,14px) var(--r-lg,14px) 0; }
table.locked { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .92rem; }
table.locked th, table.locked td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.locked th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
table.locked td.num, table.locked th.num { text-align: right; }
.blur { filter: blur(8px); user-select: none; color: var(--muted); }
.lock-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--surface) 35%, transparent); }
.lock-inner { text-align: center; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg, 14px); padding: 22px 26px; box-shadow: var(--shadow-2); }
.lock-ico { font-size: 1.6rem; }
.lock-txt { margin: 8px 0 14px; font-size: .92rem; line-height: 1.5; }
.lock-btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  border-radius: var(--r-sm, 6px); padding: 9px 16px; font-weight: 700; font-size: .9rem; }
.lock-btn:hover { background: var(--accent-strong); }

/* ---- score pill / market badge ---- */
.score-pill { display: inline-flex; align-items: center; font-weight: 700; font-size: 12px;
  border-radius: var(--r-sm, 6px); padding: 2px 10px; font-variant-numeric: tabular-nums; }
.score-strong { background: var(--score-strong-soft); color: var(--score-strong); }
.score-solid  { background: var(--score-solid-soft);  color: var(--score-solid); }
.score-neutral{ background: var(--score-neutral-soft); color: var(--score-neutral); }
.score-weak   { background: var(--score-weak-soft);   color: var(--score-weak); }
.seg-badge { display: inline-block; padding: 1px 8px; border-radius: var(--r-xs, 4px); font-size: .7rem;
  font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.seg-badge.prime { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.seg-badge.standard { color: var(--info); border-color: color-mix(in srgb, var(--info) 45%, transparent); }
.seg-badge.growth { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }

/* ---- how it works ---- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-k { font-family: var(--font-display), serif; font-weight: 600; font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.how p { color: var(--muted); font-size: .92rem; }

/* ---- evidence ---- */
.evidence { text-align: center; padding: 36px 24px; }
.ev-quote { font-family: var(--font-display), serif; font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.4; max-width: 760px; margin: 0 auto; }
.ev-quote b { color: var(--up); }
.ev-src { color: var(--muted); font-size: .82rem; margin-top: 14px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 20px 56px; color: var(--muted); }
.site-footer p { font-size: .84rem; line-height: 1.6; margin-bottom: 8px; max-width: 820px; }
.site-footer a { color: var(--info); }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--r-md, 10px); padding: 12px 18px; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; font-weight: 600; font-size: .9rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .grid3 { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
}

/* waitlist plan-interest field — radios (Task LP-2) */
.cta-plan { border: 0; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }
.cta-plan legend { float: left; width: 100%; font-size: .78rem; color: var(--faint); margin-bottom: 4px; text-align: center; }
.cta-plan label { font-size: .85rem; color: var(--text); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.cta-plan input[type="radio"] { accent-color: var(--accent); }

/* ---- pricing ---- */
.bill-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); margin-bottom: 22px; }
.bill-toggle button { border: 0; background: transparent; cursor: pointer; color: var(--muted);
  font: 600 .85rem var(--font-body); padding: 7px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.bill-toggle button.active { background: var(--surface-2); color: var(--text); }
.bill-toggle .save { font-size: .68rem; font-weight: 700; color: var(--up);
  background: var(--score-strong-soft); padding: 1px 6px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg, 14px); padding: 22px 20px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-family: var(--font-display), serif; font-size: 1.15rem; font-weight: 600; }
.plan-price { margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.plan-price .amt { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.plan-price .per { color: var(--muted); font-size: .9rem; font-weight: 600; }
.plan-billing { color: var(--muted); font-size: .76rem; min-height: 1.1em; }
.plan-tag { color: var(--muted); font-size: .86rem; margin: 12px 0 18px; flex: 1; }
.plan-cta { display: block; text-align: center; text-decoration: none; border-radius: var(--r-sm, 6px);
  padding: 10px 14px; font-weight: 700; font-size: .9rem; border: 1px solid var(--border-strong); color: var(--text); }
.plan-cta:hover { background: var(--surface-2); }
.plan-cta.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.plan-cta.primary:hover { background: var(--accent-strong); }
.feature-card { margin-top: 22px; overflow-x: auto; }
table.features { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.features th, table.features td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
table.features th:first-child, table.features td:first-child { text-align: left; color: var(--text); }
table.features th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.features td { color: var(--muted); }
table.features tr:last-child td { border-bottom: 0; }
.indep { text-align: center; color: var(--text); font-size: .92rem; max-width: 680px;
  margin: 22px auto 6px; line-height: 1.55; }
.indep em { font-style: italic; color: var(--muted); }

/* ---- illustrative preview chart (synthetic) ---- */
.prev-host { position: relative; height: 380px; width: 100%; }
.prev-svg { width: 100%; height: 100%; display: block; }
.prev-badge { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border); color: var(--muted); font-size: .72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.chart-card { position: relative; }
.prev-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .prev-host { height: 300px; }
}

/* donation support line (LP-5) — footer, value-tone */
.site-footer .support a { color: var(--accent); font-weight: 600; }

/* ---- Founding Member banner (LP-4) ---- */
.founding { margin-top: 18px; display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; border-color: var(--accent); }
.founding-text { flex: 1 1 320px; }
.founding-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.founding-copy { font-size: .9rem; color: var(--text); margin: 0; }
.founding-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.founding-msg { width: 100%; font-size: .76rem; color: var(--muted); min-height: 1em; }
.founding-msg.err { color: var(--down); }

/* ---- product preview (LP-8) — synthetic sample only ---- */
.preview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pv-name { font-weight: 700; }
.pv-code { color: var(--muted); font-size: .82rem; margin-left: 8px; }
.pv-shape { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; }
.pv-shape.up { color: var(--up); } .pv-shape.down { color: var(--down); } .pv-shape.flat { color: var(--muted); }
.pv-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.pv-row { display: flex; align-items: center; justify-content: space-between; }
.pv-score { margin: 14px 0; }
.pv-brief { margin: 8px 0 14px; }
.pv-brief ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--text); }
.pv-brief li { margin: 3px 0; }
.pv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pv-mini { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pv-mini td, .pv-mini th { padding: 5px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.pv-mini th { font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.pv-mini .muted { color: var(--muted); font-size: .76rem; text-align: right; }
.pv-mini .up { color: var(--up); font-weight: 600; } .pv-mini .down { color: var(--down); font-weight: 600; }
.sample-tag { font-size: .62rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 6px; margin-left: 6px; text-transform: none; letter-spacing: 0; }
@media (max-width: 760px) { .preview-grid { grid-template-columns: 1fr; } .pv-cols { grid-template-columns: 1fr; } }

/* ===== Product preview — rich synthetic twin (LP-8 rich) ===== */
.preview-banner { text-align: center; color: var(--muted); font-size: .9rem; max-width: 760px; margin: -4px auto 22px; }
.pv-section-label { font-family: var(--font-display), serif; font-weight: 600; font-size: 1.05rem;
  color: var(--text); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
/* dashboard */
.pv-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pv-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
.pv-stats-2 { grid-template-columns: 1fr 1fr; }
.pv-stat-k { font-size: .7rem; color: var(--muted); }
.pv-stat-v { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.pv-stat-v small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.pv-fine, .pv-prof { color: var(--muted); font-size: .78rem; margin-top: 10px; line-height: 1.5; }
.pv-cov-row { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.pv-cov-row:last-child { border-bottom: 0; }
.pv-en { font-size: .64rem; font-weight: 700; border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.pv-en.en-none { color: var(--down); } .pv-en.en-thin { color: var(--gold); }
.pv-en.en-partial { color: var(--info); } .pv-en.en-full { color: var(--up); }
/* ranking table */
.pv-rank-card { margin-top: 14px; }
.pv-rank-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.pv-rank-scroll::-webkit-scrollbar { height: 6px; }
.pv-rank-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
table.pv-rank { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .86rem; }
table.pv-rank th, table.pv-rank td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.pv-rank th { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
/* stock detail */
.pv-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; grid-auto-flow: dense; }
.pv-span2 { grid-column: span 2; }
.pv-host { height: 300px; width: 100%; margin: 8px 0; }
.pv-svg { width: 100%; height: 100%; display: block; }
.pv-stk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pv-price-line { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pv-px { font-size: 1.5rem; font-weight: 700; }
.pv-donut-wrap { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.pv-donut { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.pv-donut::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.pv-donut span { position: relative; z-index: 1; font-weight: 700; font-size: 1.2rem; }
.pv-bars { display: flex; flex-direction: column; gap: 7px; }
.pv-bar { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 8px; font-size: .78rem; }
.pv-bar i { display: block; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pv-bar i b { display: block; height: 100%; border-radius: 999px; }
.pv-bar span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pv-tag { font-size: .72rem; border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.pv-briefs { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; }
.pv-briefs li { margin: 4px 0; }
@media (max-width: 860px) {
  .pv-dash { grid-template-columns: 1fr; }
  .pv-detail-grid { grid-template-columns: 1fr; }
  .pv-span2 { grid-column: span 1; }
}

/* hero heading: break by meaning, not mid-phrase (diff 3) */
.hero h1 { text-wrap: balance; }
.hero h1 span { display: inline-block; }

/* ===== Stock-detail addendum: AI brief promoted, similar, financials ===== */
.pv-headbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg,14px);
  padding: 14px 18px; margin-bottom: 14px; }
.ai-brief-card { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.pv-discl { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pv-discl:last-of-type { border-bottom: 0; }
.pv-discl-meta { display: flex; align-items: center; gap: 8px; font-size: .76rem; flex-wrap: wrap; }
.pv-evt-badge { font-size: .68rem; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 999px; padding: 1px 9px; }
.pv-src { color: var(--info); margin-left: auto; font-weight: 600; }
.pv-discl ul { margin: 6px 0; padding-left: 18px; font-size: .88rem; }
.pv-discl li { margin: 3px 0; }
.pv-figs { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-fig { font-size: .74rem; font-variant-numeric: tabular-nums; background: var(--surface-2);
  border-radius: 6px; padding: 2px 8px; color: var(--text); }
.pv-sim-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .84rem; }
.pv-sim-row:last-child { border-bottom: 0; }
.pv-sim-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-fin-chart { display: flex; align-items: flex-end; gap: 14px; height: 96px; margin: 10px 0 4px; padding: 0 4px; }
.pv-fin-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.pv-fin-bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.pv-fin-bars i { width: 12px; border-radius: 2px 2px 0 0; }
.pv-fin-bars i.rev { background: var(--info); } .pv-fin-bars i.op { background: var(--up); }
.pv-fin-col span { font-size: .68rem; color: var(--muted); }
.pv-fin-legend { display: flex; gap: 14px; font-size: .7rem; color: var(--muted); margin-bottom: 8px; }
.pv-fin-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.pv-fin-legend i.rev { background: var(--info); } .pv-fin-legend i.op { background: var(--up); }

/* mobile hardening (320px): prevent flex/grid children from overflowing/collapsing */
.card, .pv-dash > *, .pv-detail-grid > *, .plans > *, .preview-grid > * { min-width: 0; }
@media (max-width: 480px) {
  .pv-stats, .pv-stats-2 { grid-template-columns: 1fr 1fr; }
  .pv-bar { grid-template-columns: 72px 1fr 26px; }
  .bill-toggle, .plans, .pv-dash, .pv-detail-grid { width: 100%; }
}
