/* App shell for the dashboard and the tools (20 Nov 2026): a top bar, a left menu with every tool, and the page.
   Uses the brand tokens from site.css (colours, Source Serif 4, Public Sans, IBM Plex Mono). Nothing new is invented here. */
.app { background: var(--bg); }
.app body::before { display: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--accent); color: #0b1a18; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Top bar */
.apptop { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--night-line); }
.apptop .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; }
.apptop .brand img { display: block; border-radius: 6px; }
.apptop .brand .word { font: 500 21px/1 var(--display); }
.apptop .hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.apptop .signin { color: var(--night-ink2); text-decoration: none; font-size: 14px; padding: 0 6px; } .apptop .signin:hover { color: var(--night-ink); }
.apptop .pill { justify-self: auto; background: var(--night-accent); color: var(--night); }
.navtoggle { display: none; background: none; border: 1px solid var(--night-line); color: var(--night-ink); border-radius: 10px; width: 40px; height: 40px; padding: 0; cursor: pointer; align-items: center; justify-content: center; }
.navtoggle svg { width: 20px; height: 20px; }

/* Layout */
.appwrap { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 56px); background: linear-gradient(to right, var(--night) 248px, transparent 248px); }
.appnav { position: sticky; top: 56px; align-self: start; height: calc(100vh - 56px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px 18px; background: var(--night); border-right: 1px solid var(--night-line); color: var(--night-ink2); }
.navlbl { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); margin: 18px 10px 6px; }
.navitem { display: flex; align-items: center; gap: 11px; padding: 10px 10px; border-radius: 10px; color: var(--night-ink2); text-decoration: none; font-size: 15px; line-height: 1.2; }
.navitem svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.navitem:hover { background: color-mix(in srgb, var(--night-ink) 6%, transparent); color: var(--night-ink); }
.navitem[aria-current="page"] { background: var(--accent-soft); color: var(--night-ink); box-shadow: inset 2px 0 0 var(--accent); }
.navitem .lock { margin-left: auto; display: inline-flex; color: var(--night-muted); } .navitem .lock svg { width: 14px; height: 14px; }
.navcta { margin: 18px 4px 0; padding: 14px; border: 1px solid var(--night-line); border-radius: 12px; background: color-mix(in srgb, var(--night-ink) 4%, transparent); }
.navcta b { display: block; color: var(--night-ink); font: 500 15px/1.3 var(--body); margin-bottom: 6px; }
.navcta p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--night-ink2); }
.navcta .pill { display: inline-block; background: var(--night-accent); color: var(--night); padding: 9px 14px; font-size: 13.5px; }
.navfoot { margin-top: auto; padding: 16px 10px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.navfoot a { color: var(--night-muted); text-decoration: none; } .navfoot a:hover { color: var(--night-ink); }

/* Signed-in and signed-out pieces. Signed-out is the default until /api/me answers, so most visitors never see a flash. */
[data-show="in"] { display: none !important; }
html.signed-in [data-show="in"] { display: revert !important; }
html.signed-in a.navitem[data-show="in"] { display: flex !important; }
html.signed-in [data-show="out"] { display: none !important; }

/* Page area */
.appmain { min-width: 0; display: flex; flex-direction: column; }
.appmain > .tc { max-width: 1240px; width: 100%; margin: 0; padding: 32px clamp(16px, 4vw, 48px) 40px; }
.app .tc h1 { font-size: clamp(30px, 3.4vw, 42px); max-width: 22em; margin-bottom: 10px; }
.app .tc .dek { font-size: clamp(16px, 1.6vw, 19px); margin-bottom: 22px; }
.appbanner { margin: 20px clamp(16px, 4vw, 48px) 0; max-width: 1144px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); color: var(--ink); font-size: 14.5px; }
.appbanner[hidden] { display: none; }
.appbanner p { margin: 0; flex: 1 1 320px; }
.appbanner.gated { border: 1px solid var(--accent); border-left-width: 5px; border-radius: 0 14px 14px 0; padding: 18px 20px; font-size: 17px; gap: 12px 20px; box-shadow: 0 0 0 4px var(--accent-soft); }
.appbanner.gated b { font-size: 18px; }
.appbanner .tag { font: 500 12px/1 var(--mono, "IBM Plex Mono", monospace); letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: #0b1a18; padding: 6px 10px; border-radius: 999px; }
.appbanner.gated .pill { padding: 12px 22px; font-size: 16px; }
.appbanner .pill { display: inline-block; background: var(--accent); color: #0b1a18; padding: 9px 16px; font-size: 14px; }
.appfoot { margin-top: auto; padding: 22px clamp(16px, 4vw, 48px) 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.appfoot a { color: inherit; }

/* Phones and small tablets: the menu becomes a drawer */
@media (max-width: 900px) {
  .navtoggle { display: inline-flex; }
  .appwrap { grid-template-columns: minmax(0, 1fr); }
  .appnav { position: fixed; z-index: 50; top: 56px; left: 0; bottom: 0; height: auto; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
  html.nav-open .appnav { transform: none; }
  html.nav-open .navscrim { display: block; }
  .apptop .signin { display: none; }
}
.navscrim { display: none; position: fixed; inset: 56px 0 0; z-index: 45; background: rgba(4, 8, 11, .6); }
@media (prefers-reduced-motion: reduce) { .appnav { transition: none; } }

/* ================= Shared components for the app pages (from the Stitch layouts, in the brand tokens) ================= */
:root { --lv-strong: #86d4c7; --lv-good: var(--accent); --lv-fair: #B4BDC5; --lv-thin: var(--signal); --lv-weak: var(--signal); }

/* Trust meter coloured by level: teal holds, neutral is fair, orange does not hold. The label and the count stay. */
.tmeter.lv5 .segs i.on { background: var(--lv-strong); } .tmeter.lv4 .segs i.on { background: var(--lv-good); }
.tmeter.lv3 .segs i.on { background: var(--lv-fair); } .tmeter.lv2 .segs i.on, .tmeter.lv1 .segs i.on { background: var(--lv-thin); }
.tmeter.lv5 .tw, .tmeter.lv4 .tw { color: var(--accent); } .tmeter.lv3 .tw { color: var(--ink2); } .tmeter.lv2 .tw, .tmeter.lv1 .tw { color: var(--signal); }
.lvtxt5, .lvtxt4 { color: var(--accent); } .lvtxt3 { color: var(--ink2); } .lvtxt2, .lvtxt1 { color: var(--signal); }

/* Page head */
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.phead .meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.kicker { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.kpi { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.kpi .k { font: 500 10.5px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font: 400 30px/1.15 var(--display); color: var(--ink); margin: 6px 0 2px; }
.kpi span { color: var(--muted); font-size: 13px; }

/* Panels and the "what to know" block */
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px 20px; }
.know { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 16px 20px; margin: 0 0 18px; }
.know .kicker { margin-bottom: 8px; }
.know ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 26px; }
.know li { position: relative; padding-left: 16px; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.know li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.know li.warn::before { background: var(--signal); }

/* List and detail, side by side; the detail stays in view while you scroll the list */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.split > .side { position: sticky; top: 72px; }
.listhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.listhead h2 { font: 400 22px/1.2 var(--display); margin: 0; }
.listhead select { font: 400 13.5px/1 var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; }

/* Outcome card (trust check) */
.ocards { display: grid; gap: 10px; }
.ocard { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.ocard:hover { border-color: var(--line2); }
.ocard[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ocard .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ocard .q { font: 500 16px/1.35 var(--display); }
.ocard .px { font: 400 26px/1 var(--display); white-space: nowrap; }
.ocard .r2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ocard .r2 b { color: var(--ink2); font-weight: 500; }
.dbar { display: block; height: 4px; border-radius: 2px; background: #1d2831; margin-top: 10px; overflow: hidden; } .dbar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.dbar.lv2 i, .dbar.lv1 i { background: var(--signal); } .dbar.lv3 i { background: var(--lv-fair); }
.dtag { margin-left: 8px; }

/* Detail panel */
.side .detail { margin: 0; }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dactions { display: flex; gap: 8px; flex-wrap: wrap; }
.ladder { margin-top: 16px; }
.ladder .lbls { display: flex; justify-content: space-between; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ladder .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 6px 0; background: #1d2831; }
.ladder .bar .b { background: var(--accent); } .ladder .bar .a { background: var(--signal); opacity: .85; }
.ladder .vals { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* Score distribution (trust board) */
.dist .bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 0; background: #1d2831; }
.dist .bar span { display: block; height: 100%; }
.dist .legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dist .legend button { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; color: var(--ink2); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; text-align: left; }
.dist .legend button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.dist .legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dist .legend b { margin-left: auto; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.finding { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.finding b { color: var(--accent); font-weight: 500; }
.parts .prow.weakest span:first-child::after { content: "weakest"; margin-left: 8px; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal); border: 1px solid var(--signal); border-radius: 999px; padding: 2px 6px; }
.parts .prow.weakest .pbar i { background: var(--signal); }

/* Compact list table inside a card */
.listcard { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; }
.listcard .tctable th { background: var(--surface); }
.listcard .tctable td.name { max-width: none; min-width: 12em; }
.listcard .tctable td, .listcard .tctable th { padding-left: 14px; padding-right: 14px; }
.listcard .more { padding: 0 14px 14px; }
.vline { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* Day groups (rule changes, activity) */
.dayhead { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dayhead::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dayhead.old::before { background: var(--muted); }
ins.hl { text-decoration: none; background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1px 0 var(--accent); }
del.hl { text-decoration: line-through; background: var(--signal-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* Gap dumbbell (price gaps) */
.dumb { position: relative; height: 34px; margin: 6px 0 2px; }
.dumb .track { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line2); border-radius: 1px; }
.dumb .span { position: absolute; top: 15px; height: 4px; background: var(--ink2); opacity: .35; border-radius: 2px; }
.dumb .pt { position: absolute; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--surface); }
.dumb .pt.pm { background: var(--v-poly); } .dumb .pt.ka { background: var(--v-kalshi); }
.dumb .ax { position: absolute; top: 24px; font-size: 11px; color: var(--muted); } .dumb .ax.r { right: 0; }

/* Dashboard */
.dgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.secthead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.secthead h2 { font: 400 24px/1.2 var(--display); margin: 0; }
.secthead p { margin: 0; color: var(--muted); font-size: 13px; }
.wcard, .mcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.wcard .what, .mcard .what { min-width: 0; }
.wcard b, .mcard b { display: block; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.wcard small, .mcard small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mcard a { color: var(--ink); text-decoration: none; } .mcard a:hover { text-decoration: underline; }
.mcard .live { display: flex; align-items: center; gap: 12px; flex: none; }
.mcard .live .px { font: 400 24px/1 var(--display); }
.vbadge { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 3px 6px; margin-right: 6px; }
.vbadge.polymarket { color: #9cc3f2; background: rgba(57, 135, 229, .16); } .vbadge.kalshi { color: #f0a786; background: rgba(217, 89, 38, .16); }
.empty { border: 1px dashed var(--line2); border-radius: 14px; padding: 18px; color: var(--ink2); font-size: 14.5px; }
.empty b { color: var(--ink); }
.acts { display: flex; gap: 8px; flex: none; }
.timeline { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 4px 16px 12px; }
.timeline .dayhead { margin: 14px 0 6px; }
.tlrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tlrow:last-child { border-bottom: 0; }
.tlrow a { color: var(--ink); text-decoration: none; } .tlrow a:hover { text-decoration: underline; }
.tlrow small { color: var(--muted); white-space: nowrap; font-size: 12.5px; }

/* Tools overview */
.mini { margin: 6px 0 4px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink2); }
.mini .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mini .ex { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini .big { font: 400 24px/1.1 var(--display); color: var(--ink); }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.levels div { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.levels b { display: block; font-weight: 500; } .levels .rng { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; } .levels p { margin: 6px 0 0; color: var(--ink2); font-size: 13px; }

@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .split > .side { position: static; order: -1; } .dgrid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .kpi b { font-size: 24px; } .mcard, .wcard { flex-wrap: wrap; } }
.infield { font: 400 15px/1.2 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; width: 100%; }
.infield:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dgrid2 > section { min-width: 0; }
.pnlbar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: #1d2831; overflow: hidden; }
.pnlbar i { display: block; height: 100%; border-radius: 2px; } .pnlbar i.pos { background: var(--accent); } .pnlbar i.neg { background: var(--signal); margin-left: auto; }
.saveinline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .saveinline .infield { width: auto; flex: 1 1 180px; padding: 10px 12px; }
.app #out .phead { align-items: flex-start; }
.gtop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin: 8px 0 4px; }
.gbig .gnum { font: 400 30px/1.1 var(--display); color: var(--ink); display: block; }
.gwhy { border-left: 2px solid var(--line2); padding-left: 14px; font-size: 14.5px; color: var(--ink); }
.gpair { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .gtop { grid-template-columns: 1fr; } .gpair { grid-template-columns: 1fr; } }

.mcard { flex-wrap: wrap; } .mcard .what { flex: 1 1 240px; } .mcard .live { margin-left: auto; }
.acct { display: inline-flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; font-size: 14px; }
.acct .av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 14px/1 var(--body); border: 1px solid var(--accent); }
.acct .em { color: var(--night-ink2); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .appwrap { background: none; } .acct .em { display: none; } }

/* Desktop: the menu is a thin rail of icons that opens over the page on hover or keyboard focus (Ali, 20 Nov 2026). */
@media (min-width: 901px) {
  .appwrap { grid-template-columns: 64px minmax(0, 1fr); background: linear-gradient(to right, var(--night) 64px, transparent 64px); }
  .appnav { width: 64px; z-index: 45; padding: 16px 10px 14px; transition: width .18s ease, box-shadow .18s ease; overflow-x: hidden; }
  .appnav:hover, .appnav:focus-within { width: 252px; box-shadow: 16px 0 40px rgba(0, 0, 0, .45); }
  .appnav .navitem { padding: 11px 13px; white-space: nowrap; position: relative; }
  .appnav .navitem span:not(.lock) { opacity: 1; transition: opacity .12s ease; }
  .appnav:not(:hover):not(:focus-within) { overflow-y: hidden; }
  .appnav:not(:hover):not(:focus-within) .navitem span:not(.lock) { opacity: 0; }
  .appnav:not(:hover):not(:focus-within) .navcta,
  .appnav:not(:hover):not(:focus-within) .navfoot { display: none; }
  .appnav:not(:hover):not(:focus-within) .navlbl { height: 1px; margin: 10px 8px; padding: 0; overflow: hidden; color: transparent; background: var(--night-line); }
  .appnav .navlbl, .appnav .navcta, .appnav .navfoot { transition: opacity .12s ease; white-space: nowrap; }
  .appnav .navcta { white-space: normal; min-width: 210px; }
  .appnav .navitem .lock { position: absolute; left: 25px; top: 22px; display: inline-grid; place-items: center; width: 14px; height: 14px; background: var(--night); border-radius: 50%; }
  .appnav .navitem .lock svg { width: 10px; height: 10px; }
  .appnav:hover .navitem .lock, .appnav:focus-within .navitem .lock { position: static; margin: 0 0 0 auto; background: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .appnav, .appnav * { transition: none !important; } }

/* The detail panel scrolls on its own, so you can read it at any point in a long list. */
@media (min-width: 1101px) {
  .split > .side { max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; border-radius: 16px; }
}

/* Two-column list rows: the market, then price, trust and a week of depth stacked on the right. */
.listcard td.rt { text-align: right; white-space: nowrap; vertical-align: middle; }
.listcard td.rt .px { display: block; font: 400 24px/1 var(--display); color: var(--ink); margin-bottom: 6px; }
.listcard td.rt .tmeter { justify-content: flex-end; }
.listcard td.rt .spark { margin: 6px 0 0 auto; }
.chk { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; background: var(--surface); cursor: pointer; }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
html.signed-in .filters .chk[data-show="in"] { display: inline-flex !important; }

/* Recent activity: the latest few in view, the rest a scroll away. */
.timeline.scrollbox { max-height: 236px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.scrollhint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }

/* Wallet review: pick one of your saved wallets */
.savedpick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 760px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
.savedpick label { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.savedpick select { flex: 1 1 260px; font: 400 15px/1.2 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; }
.app .filters input { flex: 1 1 200px; }

/* Saved-wallet manager (wallet review) */
.wmanage { width: min(560px, 100%); }
.wmrow { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.wmrow:first-of-type { border-top: 0; }
.wmrow .two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; }
.wmrow .acts { display: flex; gap: 8px; align-items: center; }
.wmrow .msg { font-size: 13px; color: var(--muted); } .wmrow .msg.err { color: var(--signal); }
.wmlist { max-height: min(60vh, 520px); overflow-y: auto; margin: 6px -6px 0; padding: 4px 6px; }
@media (max-width: 520px) { .wmrow .two { grid-template-columns: 1fr; } }

/* Price gaps: how a pair was matched, and the report form */
.gfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.gfoot .linkbtn, .greport .linkbtn { background: none; border: 0; padding: 0; color: var(--ink2); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.greport { margin-top: 10px; }
.greport label { display: block; font-size: 14px; color: var(--ink2); }
.greport textarea { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 8px; font: 14px/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; resize: vertical; }
.greport .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
