@font-face {
  font-family: Inter;
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #07090C;
  --surface: #10141A;
  --surface2: #161C24;
  --border: #232B36;
  --text: #E8EEF4;
  --muted: #8A94A3;
  --win: #3DDC97;
  --loss: #FF5C6A;
  --grey: #2A313C;
  --gold: #C9A227;
  --win-dim: rgba(61, 220, 151, 0.14);
  --loss-dim: rgba(255, 92, 106, 0.14);
  --gold-dim: rgba(201, 162, 39, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: auto;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* Visible scrollbars when content is taller or wider than the window. */
html, body, .main, .content, .table-wrap {
  scrollbar-width: thin;
  scrollbar-color: #4A5564 #10141A;
}
html {
  scrollbar-gutter: stable;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main::-webkit-scrollbar,
.content::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.main::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: #10141A;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: #4A5564;
  border-radius: 8px;
  border: 2px solid #10141A;
}

button, input, select { font: inherit; color: inherit; }

.num, .kpi-val, .pnl, .cell-pnl, .week-pnl, .stat-val,
table td, table th, .day-net, .exec td, .r, .qty, .pl-line {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

.app {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: var(--page);
}

/* ——— NAV ——— */
.nav {
  width: 220px;
  flex-shrink: 0;
  min-height: 100vh;
  height: auto;
  position: sticky;
  top: 0;
  align-self: stretch;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 12px;
}

.wordmark {
  display: block;
  padding: 4px 8px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.wordmark-mark, .wordmark-name { font: inherit; letter-spacing: inherit; }

.nav-sec {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px 6px;
}

.nav a.item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  margin-bottom: 2px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 520;
  border: 1px solid transparent;
}
.nav a.item svg { flex-shrink: 0; opacity: 0.85; }
.nav a.item:hover { background: var(--surface2); color: var(--text); }
.nav a.item.on {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
.nav a.item.on { box-shadow: inset 2px 0 0 var(--gold); }
.nav a.item.on svg { color: var(--gold); opacity: 1; }

.nav-foot {
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--border);
}
.acct-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 0;
}
.acct-av {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.acct-name { font-size: 12px; font-weight: 600; color: var(--text); }
.acct-sub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

/* ——— MAIN ——— */
.main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.topbar {
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--page);
}
.page-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.crumb { color: var(--muted); font-weight: 450; }
.topbar .spacer { flex: 1; }

.pill, .ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.pill.sample {
  background: var(--surface2);
  color: #D7B84A;
  border-color: #3A3320;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ctrl svg { opacity: 0.7; }
.range-ctrl {
  position: relative;
  cursor: pointer;
}
.range-ctrl summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.range-ctrl summary::-webkit-details-marker { display: none; }
.range-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 168px;
  max-height: 280px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 0;
}
.range-drop a {
  display: block;
  padding: 5px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.range-drop a:hover,
.range-drop a.on {
  background: var(--surface2);
}

.sample-bar {
  flex-shrink: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9A227;
  background: #12100A;
  border-bottom: 1px solid #2E2918;
}

.content {
  flex: 1;
  min-height: 0;
  padding: 10px 12px 10px;
  overflow: auto;
}

/* ——— KPI ——— */
.kpis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 8px;
  min-height: 64px;
}
.kpi-lbl {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.kpi-val {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.kpi-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi-rule {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.kpi.dim .kpi-val,
.kpi-val.dim,
.kpi.low-n .kpi-val,
.kpi-val.low-n { color: var(--muted); }
.win { color: var(--win); }
.loss { color: var(--loss); }

/* print / leak key line */
.pl-line {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}
.pl-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pl-k.print { color: var(--win); }
.pl-k.leak { color: var(--loss); }
.pl-keys { color: var(--text); font-weight: 520; }
.pl-sep { color: var(--border); margin: 0 4px; }
.pl-gap { width: 1px; height: 14px; background: var(--border); margin: 0 4px; }

/* Cash / transfers — not P&L, not calendar color */
.xfer-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 6px;
  margin-bottom: 10px;
  color: var(--muted);
}
.xfer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.xfer-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.xfer-sum {
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.xfer-list { display: flex; flex-direction: column; }
.xfer-row {
  display: grid;
  grid-template-columns: 92px 88px 110px 1fr;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.xfer-date, .xfer-type, .xfer-note { color: var(--muted); }
.xfer-amt {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.xfer-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }

/* ——— DASH CALENDAR ——— */
.hero {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 8px;
  height: 668px;
}
.cal-card, .week-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cal-card { padding: 8px 8px 6px; display: flex; flex-direction: column; }
.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 6px 8px;
}
.cal-title { font-size: 14px; font-weight: 650; letter-spacing: -0.02em; }
.cal-sub { font-size: 11.5px; color: var(--muted); }

.dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 0 4px;
}
.dow span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 4px;
  flex: 1;
}
.cell {
  position: relative;
  border-radius: 6px;
  background: #0C1016;
  border: 1px solid var(--border);
  padding: 4px 5px 4px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cell.empty { background: transparent; border-color: transparent; }
.cell.weekend { background: #0A0D11; }
.cell.future { background: #0A0D11; }
.cell.grey { background: var(--grey); }
.cell.win-d { background: var(--win-dim); border-color: #1E3D32; }
.cell.loss-d { background: var(--loss-dim); border-color: #3D2228; }
.cell.sel {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}
.dnum {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cell.win-d .dnum, .cell.loss-d .dnum, .cell.sel .dnum { color: var(--text); }
.note-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 11px;
  height: 11px;
  color: var(--muted);
}
.cell-pnl {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cell.win-d .cell-pnl { color: var(--win); }
.cell.loss-d .cell-pnl { color: var(--loss); }
.cell-meta {
  margin-top: auto;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.25;
}
.cell.grey .cell-meta { color: #6B7380; }
.cell.grey .mute { color: #6B7380; font-size: 11px; margin-top: 18px; }

.caption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 6px 2px;
  font-size: 11px;
  color: var(--muted);
}
.sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.sw.g { background: var(--win); }
.sw.r { background: var(--loss); }
.sw.z { background: var(--grey); border: 1px solid var(--border); }

.week-card { padding: 8px 8px 8px; display: flex; flex-direction: column; }
.week-h {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 4px 8px;
}
.week-row {
  flex: 1;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 8px 8px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.week-row:last-child { margin-bottom: 0; }
.week-k { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.week-pnl { font-size: 15px; font-weight: 650; letter-spacing: -0.03em; margin: 3px 0 2px; }
.week-d { font-size: 11px; color: var(--muted); }

.coach {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.coach-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 1px;
}
.coach p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.coach strong { color: var(--text); font-weight: 600; }

/* ——— DAY ——— */
.day-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 8px;
}
.day-head .mark-done-form { margin-left: auto; padding-bottom: 2px; }
.btn-done {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  margin-left: auto;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.btn-done.is-done {
  border-color: #3A3320;
  background: #1A160C;
  color: #C9A227;
}
.btn-done .check { margin: 0; }
.btn-done:focus { outline: none; }
.btn-done:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.digest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 6px;
  flex-shrink: 0;
}
.digest-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.digest-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.digest-cap { font-size: 10.5px; color: var(--muted); }
.digest-sec { padding: 5px 0 3px; border-top: 1px solid var(--border); }
.digest-sec:first-of-type { border-top: 0; padding-top: 2px; }
.digest-sec h3 {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.digest-sec p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--text); }
.leak-fields {
  display: flex;
  gap: 18px;
  margin-top: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.leak-fields b {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1px;
}
.day-date { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.day-net { font-size: 28px; font-weight: 680; letter-spacing: -0.04em; line-height: 1; }
.day-stats { display: flex; gap: 16px; padding-bottom: 3px; }
.ds { }
.ds-k { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ds-v { font-size: 14px; font-weight: 620; margin-top: 2px; font-variant-numeric: tabular-nums; }

.day-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.chart-card { padding: 8px 10px 6px; display: flex; flex-direction: column; }
.card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.card-h h2 { margin: 0; font-size: 12px; font-weight: 650; }
.card-h span { font-size: 11px; color: var(--muted); }

.notes { display: flex; flex-direction: column; gap: 8px; }
.note-card { padding: 10px 10px 8px; flex: 1; }
.note-card h3 {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-card p { margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.45; }
.note-card .who { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* ——— TABLES ——— */
.table-wrap { overflow: auto; display: flex; flex-direction: column; min-height: 0; }
.table-wrap thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.table-wrap table { width: max-content; min-width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 6px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }
th.r, td.r { text-align: right; }
.sym { font-weight: 620; }
.side-l { color: var(--win); font-weight: 600; }
.side-s { color: var(--loss); font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge.win { background: var(--win-dim); color: var(--win); }
.badge.loss { background: var(--loss-dim); color: var(--loss); }
.badge.open { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }

.chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text);
}
.tag {
  display: inline-flex;
  height: 16px;
  align-items: center;
  padding: 0 5px;
  border-radius: 4px;
  background: #1A2028;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
  margin-right: 3px;
}

.stars { color: var(--gold); letter-spacing: 1px; font-size: 11px; }
.stars .off { color: #3A4250; }

.check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: inline-grid;
  place-items: center;
}
.check.on { background: var(--gold); border-color: var(--gold); color: #1A1404; }

.filters {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.filters-form { display: contents; }
.filters button.ctrl { cursor: pointer; }
.filters .ctrl { height: 28px; padding: 0 8px; background: var(--surface); }
.filters select, .filters input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 0;
  min-width: 0;
}
.filters option { background: var(--surface); }

.tfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 0;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.tfoot b { color: var(--text); font-weight: 620; }
.pager { display: flex; gap: 10px; align-items: center; }
.pager a { color: var(--text); }
.pager-pos {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.pager-pos input {
  width: 2.8em;
  height: 20px;
  text-align: right;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  padding: 0 4px;
}
.pager-pos input:focus {
  outline: 0;
  border-color: var(--gold);
}

/* ——— TRADE DETAIL ——— */
.td-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.td-sym { font-size: 16px; font-weight: 680; letter-spacing: -0.03em; }
.td-meta { display: flex; gap: 8px; align-items: center; }
.td-head .spacer { flex: 1; }
.td-pnl { font-size: 22px; font-weight: 680; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.td-r { font-size: 14px; font-weight: 620; font-variant-numeric: tabular-nums; }
.td-head form { display: contents; }
.rev-lab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.td-top {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
  gap: 8px;
  width: 100%;
  align-items: stretch;
  margin-bottom: 8px;
}
.price-card {
  padding: 8px 10px 4px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.price-card .spark,
.price-card .spark.spark-dual {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}
.stats-card { padding: 8px 10px; width: 100%; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: 0; }
.stat-k { color: var(--muted); font-size: 12px; }
.stat-val { font-weight: 620; font-size: 12.5px; }

.td-mid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(240px, 280px);
  gap: 8px;
  width: 100%;
  align-items: stretch;
  margin-bottom: 8px;
}
.rules-card, .tags-card, .rate-card { padding: 8px 10px; }
.rules-card { overflow: visible; }
.rate-card { overflow: hidden; }
.strat-pick {
  margin: 0 0 8px;
  height: 28px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  color-scheme: dark;
  overflow: visible;
  position: relative;
  z-index: 4;
}
.strat-pick select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 0;
  min-width: 0;
  color-scheme: dark;
}
.strat-pick option {
  background: var(--surface);
  color: var(--text);
}
.tags-card { overflow: auto; }
.rule {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text);
}
button.rule {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.rule .box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-items: center;
}
.rule .box.on { background: var(--gold); border-color: var(--gold); color: #1A1404; }
.rule.off { color: var(--muted); }
.prog {
  height: 4px;
  background: var(--grey);
  border-radius: 99px;
  margin: 6px 0 4px;
  overflow: hidden;
}
.prog i { display: block; height: 100%; width: 33%; background: var(--win); border-radius: 99px; }

.tag-group { margin-bottom: 6px; }
.tag-group h4 {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag.on { border-color: #3A3320; color: #E6D08A; background: #1A160C; }

.stars-lg { font-size: 16px; letter-spacing: 3px; color: var(--gold); }
.stars-lg .off { color: #3A4250; }
.stars-lg button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  letter-spacing: inherit;
  line-height: 1;
}
.tag-chip-form { display: inline; }
button.tag { cursor: pointer; }
.tag-add {
  display: flex;
  gap: 4px;
  margin: 2px 0 4px;
}
.tag-add input {
  flex: 1;
  min-width: 0;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface2);
  outline: 0;
}
.tag-add button {
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
}
.drop {
  margin-top: 8px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: var(--surface2);
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.exec-card { padding: 6px 8px 4px; height: 188px; }

.link { color: var(--text); text-decoration: none; }
.link:hover { color: var(--gold); }

.muted { color: var(--muted); }


a.cell { text-decoration: none; color: inherit; }
a.cell:hover { filter: brightness(1.08); }
tr.trade-row { cursor: pointer; }
.chart-empty {
  flex: 1;
  min-height: 88px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface2);
  border-radius: 6px;
  border: 1px dashed var(--border);
  text-align: center;
  padding: 12px;
}
.empty-copy { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 0; }
.hero { min-height: 0; }
.content-col { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.placeholder-page { color: var(--muted); font-size: 13px; padding: 8px 2px; }
.placeholder-page h1 { margin: 0 0 8px; font-size: 18px; font-weight: 650; color: var(--text); }

.spark {
  flex: 1;
  width: 100%;
  min-height: 88px;
  display: block;
  background: var(--surface2);
  border-radius: 6px;
}
.spark-zero {
  stroke: var(--border);
  stroke-width: 1;
}
.spark-line {
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spark-line.win { stroke: var(--win); }
.spark-line.loss { stroke: var(--loss); }
.spark-line.flat { stroke: var(--muted); }
.spark-line.prem { stroke: var(--gold); }
.spark-mark {
  fill: var(--gold);
  stroke: var(--page);
  stroke-width: 1.2;
}
.spark.spark-dual {
  min-height: 156px;
}
.spark-axis {
  fill: var(--muted);
  font-size: 9.5px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.spark-line.prem {
  stroke-width: 1.05;
  opacity: 0.88;
}

/* ——— Group strategies (Nora) ——— */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}
.toggle.on {
  border-color: #3A3320;
  background: #1A160C;
  color: #E6D08A;
}
.toggle .knob {
  width: 28px;
  height: 16px;
  border-radius: 99px;
  background: var(--grey);
  position: relative;
  flex-shrink: 0;
}
.toggle.on .knob { background: var(--gold); }
.toggle .knob i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E8EEF4;
  top: 2px;
  left: 2px;
}
.toggle.on .knob i { left: 14px; background: #1A1404; }
.toggle-lab { font-size: 12px; font-weight: 600; }
.struct-name { font-weight: 620; }
.struct-legs {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 450;
  margin-top: 1px;
}
.filters { align-items: center; }
.filters .toggle { margin-left: auto; }
tr.struct-leg td {
  background: var(--surface2);
  color: var(--muted);
  font-size: 11.5px;
}
tr.structure-row td { vertical-align: top; }

/* ——— Reports (Nora chrome) ——— */
.rpt-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rpt-filters .ctrl { height: 26px; padding: 0 8px; background: var(--surface); }
.rpt-filters select,
.rpt-filters input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 0;
  min-width: 0;
}
.rpt-filters option { background: var(--surface); }
.rpt-filters .lab {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.rpt-filters button.ctrl { cursor: pointer; }

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0 0 8px;
  flex-wrap: wrap;
}
a.tab {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  margin-bottom: -1px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 520;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
a.tab:hover { color: var(--text); }
a.tab.on {
  color: var(--text);
  font-weight: 620;
  border-bottom-color: var(--gold);
}
a.tab:focus-visible,
.rpt-filters select:focus-visible,
.rpt-filters input:focus-visible,
.rpt-filters button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.kpis.rpt { margin-bottom: 8px; grid-template-columns: repeat(7, 1fr); }
.kpis.rpt .kpi { min-height: 58px; padding: 7px 10px 6px; }
.kpis.rpt .kpi-val { font-size: 18px; }
.kpis.rpt .kpi-val.split { font-size: 15px; letter-spacing: -0.02em; }
.kpis.rpt .kpi-val.split .sep { color: var(--muted); font-weight: 450; margin: 0 2px; }

.meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 140px;
}
.meta-k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-v { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.meta-s { font-size: 11px; color: var(--muted); margin-top: 2px; }

.rpt-table { padding: 8px 10px 6px; }
.rpt-table .card-h { padding: 0 2px; }
.rpt-stack { display: flex; flex-direction: column; gap: 8px; }
.rpt-empty { padding: 12px 12px; }

.rpt-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rpt-cal {
  height: auto;
  padding: 8px 8px 6px;
}
.rpt-cal .grid {
  flex: none;
  height: auto;
  grid-template-rows: repeat(6, 44px);
}
.rpt-cal .cell { padding: 3px 4px; }
.rpt-cal .dnum { top: 3px; right: 5px; font-size: 10.5px; }
.rpt-cal .cell-pnl {
  margin-top: 14px;
  font-size: 11.5px;
}
.rpt-cal .mute {
  color: #6B7380;
  font-size: 11px;
  margin-top: 16px;
}

/* ——— Notebook + Strategies (Nora) ——— */
.content:has(.nb-grid),
.content:has(.st-grid) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nb-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.rail-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 6px 5px;
}
.rail-h.gap { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.rail a.row, .rail .row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 520;
}
.rail a.row:hover { background: var(--surface2); }
.rail a.row.on, .rail .row.on {
  background: var(--surface2);
  border-color: var(--border);
  box-shadow: inset 2px 0 0 var(--gold);
}
.rail .n {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.rail .type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  width: 40px;
  flex-shrink: 0;
}
.rail a.row.on .type, .rail .row.on .type { color: #C9A227; }
.rail .nb-sym {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail .nb-sym:hover { color: var(--gold); }
.tpl {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.tpl:hover { background: var(--surface2); color: var(--text); }
.tpl:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 1px;
}
.tpl-cap {
  padding: 6px 7px 2px;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.35;
}
.nb-empty {
  padding: 6px 7px;
  font-size: 12px;
  color: var(--muted);
}
.nb-create, .st-create, .st-edit, .note-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 4px 4px;
}
.nb-create input, .nb-create select, .nb-create textarea,
.st-create input, .st-create textarea,
.st-edit input, .st-edit textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0C1016;
  color: var(--text);
  padding: 5px 7px;
  outline: 0;
}
.nb-create input:focus, .nb-create select:focus, .nb-create textarea:focus,
.st-create input:focus, .st-create textarea:focus,
.st-edit input:focus, .st-edit textarea:focus,
.note-body:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}
.nb-create select {
  font-size: 11.5px;
}
.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.nb-btn:hover { color: var(--text); background: #1A2028; }
.nb-btn:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.nb-btn:disabled { opacity: 0.45; cursor: default; }

.note-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.note-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.note-title { font-size: 16px; font-weight: 650; letter-spacing: -0.02em; }
.note-top .spacer { flex: 1; }
.note-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.type-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: #1A160C;
  border: 1px solid #3A3320;
  color: #E6D08A;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  text-decoration: none;
}
.link-chip:hover { color: var(--gold); border-color: #3A3320; }
.link-chip:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.note-edit { flex: 1; min-height: 0; padding: 0; }
.note-body {
  flex: 1;
  min-height: 240px;
  width: 100%;
  resize: none;
  background: #0C1016;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}
.note-save-row { display: flex; justify-content: flex-end; }

.st-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.st-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.st-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  margin-bottom: 4px;
}
.st-item:hover { background: var(--surface2); }
.rail a.row:focus-visible,
.rail a.type:focus-visible,
.rail a.nb-sym:focus-visible,
.st-item:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 1px;
}
.st-item.on {
  background: var(--surface2);
  border-color: var(--border);
  box-shadow: inset 2px 0 0 var(--gold);
}
.st-name { font-size: 13.5px; font-weight: 620; }
.st-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.st-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.st-title { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.st-sub { font-size: 12px; color: var(--muted); }
.st-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}
.rules-lead {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}
.st-detail .rule { padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.st-detail .rule:last-of-type { border-bottom: 0; }
.st-detail .box { width: 15px; height: 15px; margin-top: 2px; }
.st-cap {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.st-cap strong { color: var(--text); font-weight: 600; }
.st-edit { margin-top: 12px; padding: 0; }

.spark-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 4px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.spark-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 2px 4px;
}
.spark-h h2 { margin: 0; font-size: 11px; font-weight: 650; }
.spark-h span { font-size: 11px; color: var(--muted); }
.spark-card .spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 44px;
  padding: 0 2px;
  min-height: 44px;
  background: transparent;
}
.spark-card .spark b {
  flex: 1;
  display: block;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.spark-card .spark b.g { background: var(--win); }
.spark-card .spark b.r { background: var(--loss); }
.spark-card .spark b.z { background: var(--grey); height: 3px !important; }

.daily-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 4px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.daily-card h2 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
}
.daily-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  flex: 1;
  min-height: 0;
}
.drow {
  display: grid;
  grid-template-columns: 86px 1fr 28px;
  gap: 8px;
  padding: 2px 4px;
  border-bottom: 1px solid #1A212B;
  font-size: 11.5px;
  align-items: center;
}
.drow .dt { color: var(--muted); }
.drow.wknd .dt, .drow.wknd .pnl, .drow.wknd .n { color: #5C6570; }
.drow.grey-d { background: rgba(42,49,60,0.35); }
.drow.sel {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
  border-radius: 3px;
}

.cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 0;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.cap .gold { color: #C9A227; }
.cap b { color: var(--text); font-weight: 600; }

.groups {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.05fr;
  gap: 8px;
}
.groups .cap { grid-column: 1 / -1; padding-top: 0; }
.gcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 4px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.gcard h2 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
}
.gcard .sub {
  font-size: 10.5px;
  color: var(--muted);
  margin: -2px 0 4px;
}

.dense table { width: 100%; border-collapse: collapse; }
.dense th {
  text-align: left;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dense td {
  padding: 3px 5px;
  border-bottom: 1px solid #1A212B;
  font-size: 11.5px;
  white-space: nowrap;
  vertical-align: middle;
}
.dense tr:last-child td { border-bottom: none; }
.dense th.r, .dense td.r { text-align: right; }
.dense tr.empty td { color: #5C6570; }
.dense tr.hi td { background: rgba(201,162,39,0.06); }

.tbl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tbl-card h2 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 650;
}

.cat {
  display: inline-flex;
  height: 16px;
  align-items: center;
  padding: 0 5px;
  border-radius: 4px;
  background: #1A2028;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10.5px;
}

.rail a.type {
  text-decoration: none;
  color: var(--muted);
}
.rail .row.on a.type { color: #C9A227; }
.note-form, .note-edit { flex: 1; min-height: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
input.st-title {
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 0 4px;
  min-width: 0;
}
input.st-title:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}
.st-detail textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0C1016;
  color: var(--text);
  padding: 8px 10px;
  outline: 0;
  font: inherit;
  line-height: 1.4;
}
.st-detail textarea:focus {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}

.rail-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.st-list-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
}
.st-list-h .rail-h { padding-bottom: 0; }
.st-list-h .nb-btn { text-decoration: none; }
.nb-save {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.nb-save:hover { background: #1A160C; }
.st-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.st-rules-view { margin-bottom: 10px; }
.st-rules { min-height: 140px; }
.nb-grid :is(input, textarea, select, button, a):focus-visible,
.st-grid :is(input, textarea, select, button, a):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ——— IMPORT ——— */
.import-lead {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 10px;
  max-width: 36rem;
}
.import-form { max-width: 28rem; }
.import-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 28rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 18px 14px 16px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  position: relative;
}
.import-drop.on,
.import-drop:focus-within {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}
.import-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.import-drop-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.import-drop-sub { font-size: 11.5px; color: var(--muted); }
.import-err {
  margin-top: 10px;
  color: var(--loss);
  font-size: 12.5px;
}
.import-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--text);
  max-width: 28rem;
  overflow: visible;
  white-space: normal;
}
.import-result a { margin-left: 10px; }
.wiz-brokers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 36rem;
  margin: 0 0 16px;
}
.wiz-broker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.wiz-mark {
  width: 100%;
  aspect-ratio: 1;
  background: #0C1016;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.wiz-broker.on .wiz-mark,
.wiz-broker:hover .wiz-mark,
.wiz-broker:focus-visible .wiz-mark {
  border-color: var(--gold);
}
.wiz-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wiz-cap {
  font-size: 11.5px;
  color: var(--muted);
}
.wiz-broker.on .wiz-cap { color: var(--text); }
@media (max-width: 720px) {
  .wiz-brokers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— V2 What prints / Score ——— */
.wp {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wp .lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.wp .gcard h2 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wp .gcard h2 .mark {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.wp .gcard h2 .mark.print { color: var(--win); }
.wp .gcard h2 .mark.leak { color: var(--loss); }
.dense tr.gold-print td { background: rgba(61, 220, 151, 0.06); }
.dense tr.gold-leak td { background: rgba(255, 92, 106, 0.06); }
.dense .dim {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.dense .bkt { font-weight: 620; }

.xfer-panel {
  margin-top: 16px;
  max-width: 40rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 10px;
}
.xfer-panel .xfer-row.edit {
  grid-template-columns: 92px 88px 110px 1fr 64px;
  align-items: center;
}
.xfer-lock {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.xfer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.xfer-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.xfer-form input,
.xfer-form select {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0C1016;
  color: var(--text);
  font: inherit;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}
.xfer-form :is(input, select, button):focus-visible,
.xfer-del:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.xfer-form button,
.xfer-del {
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.xfer-form button {
  align-self: end;
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.xfer-del {
  font-size: 11px;
  color: var(--muted);
}
.xfer-del:hover { color: var(--loss); border-color: var(--loss); }

/* ——— V3 Account / Admin / Login ——— */
.nav a.acct-chip {
  text-decoration: none;
  color: inherit;
}
.nav a.acct-chip:hover .acct-name { color: var(--text); }

.login-card {
  max-width: 28rem;
  padding: 12px 12px 14px;
}
.login-form { margin-top: 12px; }
.content.clerk-auth {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.clerk-card .cl-rootBox,
.clerk-auth .cl-rootBox {
  margin-top: 10px;
}
button.logout {
  cursor: pointer;
  font: inherit;
}
.gold-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
}
.gold-btn:focus-visible,
.acct-page :is(button, input, a):focus-visible,
.admin-page :is(button, input, a):focus-visible,
.login-card :is(button, input, a):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.content.acct-page,
.content.admin-page {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acct-page .card,
.admin-page .card {
  padding: 10px 12px 10px;
  min-height: 0;
}
.acct-page .card-h,
.admin-page .card-h {
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.acct-page .card-h h2,
.admin-page .card-h h2 {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.acct-page .card-h span,
.admin-page .card-h span { font-size: 11px; color: var(--muted); }

.acct-page p.caption,
.admin-page p.caption {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin: 8px 0 0;
  padding: 0;
  gap: 0;
}

.acct-page .top {
  display: grid;
  grid-template-columns: 300px 1fr 260px;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .acct-page .top { grid-template-columns: 1fr; }
}

.acct-page .row,
.vendor .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.acct-page .row:last-child,
.vendor .row:last-child { border-bottom: 0; padding-bottom: 0; }
.acct-page .k, .vendor .k { color: var(--muted); font-size: 12px; }
.acct-page .v, .vendor .v { font-weight: 600; font-size: 12.5px; }

.logout {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 520;
  text-decoration: none;
}
.logout:hover { color: var(--text); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.sku {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 12px;
  font-weight: 560;
}
.sku .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}
.sku.off {
  color: var(--muted);
  background: var(--page);
}
.sku.off .dot { background: var(--grey); border: 1px solid var(--border); }
.sku .hint {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 520;
}
.btn.danger { color: var(--muted); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--muted);
}

.mfa {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.mfa-on {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.mfa .check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #1A1404;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.mfa .check.off {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--muted);
}

.acct-page .vault {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.vendors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.vendor {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.vendor-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vendor-name { font-size: 13.5px; font-weight: 650; letter-spacing: -0.02em; }
.vendor .st {
  font-size: 11px;
  font-weight: 620;
  color: var(--muted);
}
.vendor .st.ok { color: var(--text); }

.mask {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  margin: 10px 0 14px;
}
.acts { display: flex; gap: 6px; margin-top: auto; }

.field {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--page);
  margin: 10px 0 12px;
}
.field input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
}
.field input::placeholder { color: #5A6370; }

.pill.role {
  color: var(--muted);
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.stamp { color: var(--muted); font-size: 11px; }

.admin-page .kpis {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
}
.admin-page .kpi { min-height: 0; }
.admin-page .kpi-val { font-size: 18px; }

.table-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.admin-page table { width: 100%; border-collapse: collapse; }
.admin-page th { padding: 6px 8px; }
.admin-page td {
  padding: 10px 8px;
  font-size: 12.5px;
}
.email { font-weight: 620; }
.admin-page .note {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 450;
  margin-top: 1px;
}
.yn { color: var(--text); font-weight: 560; }
.yn.no { color: var(--muted); font-weight: 450; }
.use { color: var(--muted); font-size: 12px; }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px 0;
  margin-top: auto;
  gap: 16px;
}
.admin-page .foot p.caption { margin-top: 0; }

.tg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tg-row:last-of-type { border-bottom: 0; }
.tg-rename {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.tg-rename input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  outline: 0;
}
.tg-del { color: var(--muted); }
.admin-acts-card { flex-shrink: 0; overflow: auto; }
.admin-acts {
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--border);
}
.admin-acts:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-acts-who { margin-bottom: 6px; }
.admin-acts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.admin-pw {
  display: flex;
  gap: 6px;
  align-items: center;
}
.admin-pw input {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  outline: 0;
  min-width: 180px;
}

.tag-catalog {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.tag-catalog-bucket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
}
.tag-catalog-bucket .st-meta {
  width: 64px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}
.admin-page .admin-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 0 0;
  border-bottom: 0;
}
.admin-pass {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.admin-pass input {
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface2);
  outline: 0;
  min-width: 0;
  width: 120px;
}
.admin-page td .btn {
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
}


/* ——— Nora overnight: tags columns / admin actions / journals card ——— */
.nav-sec.gap { margin-top: 10px; padding-top: 10px; }
.wordmark.has-sub { padding-bottom: 4px; }
.wordmark .role {
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}
.wordmark-sub {
  padding: 0 8px 16px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.j-switch {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.j-switch select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  max-width: 260px;
}
.j-switch option { background: var(--surface); }

.content.tags-page {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tags-page .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.tags-page .col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.tags-page .col-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.tags-page .col-h h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.tags-page .locked {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tags-page .tag-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  min-height: 0;
}
.tags-page .tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.tags-page .tag-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 0;
}
.tags-page .tag-acts {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}
.tags-page .tg-rename-mini {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tags-page .tg-rename-mini input {
  width: 88px;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--page);
  outline: 0;
}
.tags-page .mini {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 520;
  cursor: pointer;
}
.tags-page .add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  margin-top: auto;
  border-radius: 6px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}
.tags-page .add input {
  flex: 1;
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
}
.tags-page .add button {
  height: 24px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.tags-page p.caption {
  display: block;
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  padding: 2px 2px 0;
  margin: 0;
  gap: 0;
}
.tags-page p.caption strong { color: var(--text); font-weight: 600; }
.tags-page :is(input, button, a):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-page .act {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
}
.admin-page .act.ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}
.admin-page .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0;
}
.admin-page td.acts-td {
  white-space: normal;
  padding-top: 8px;
  padding-bottom: 8px;
}
.admin-page .lock-no { color: var(--muted); font-weight: 450; }
.admin-page .lock-yes { color: var(--text); font-weight: 600; }
.admin-page th.jnl, .admin-page td.jnl { text-align: right; }
.admin-pass-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-pass-inline input {
  height: 22px;
  width: 88px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface2);
  outline: 0;
}

.acct-page .journal-card { flex-shrink: 0; }
.acct-page .journal-card .caption { margin-top: 7px; }
.acct-page .j-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 6px;
}
.acct-page .j-main { min-width: 0; flex: 1; }
.acct-page .j-name { font-size: 13.5px; font-weight: 650; letter-spacing: -0.02em; }
.acct-page .j-id { font-size: 11px; color: var(--muted); margin-top: 4px; }
.acct-page .j-meta {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.acct-page .j-on {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.acct-page .j-on.off { color: var(--muted); font-weight: 520; }
.acct-page .card-h .btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.acct-page .btn.quiet { color: var(--muted); background: transparent; font-weight: 520; }
.acct-page .j-create,
.acct-page .j-rename {
  display: flex;
  align-items: center;
  gap: 6px;
}
.acct-page .j-create input,
.acct-page .j-rename input {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--page);
  outline: 0;
  width: 140px;
}

/* ——— Import wizard ——— */
.wiz { max-width: 40rem; }
.wiz-back {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.wiz-back:hover { color: var(--text); }
.wiz-h {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.wiz-context { margin-bottom: 12px; }
.wiz-empty { font-size: 12.5px; color: var(--muted); }
.wiz-cards,
.wiz-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wiz-cards { grid-template-columns: 1fr; max-width: 28rem; }
.wiz-card,
.wiz-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px 14px;
  background: #0C1016;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.wiz-choice {
  align-items: center;
  text-align: center;
  font-size: 13.5px;
  font-weight: 620;
}
.wiz-card-name { font-size: 13.5px; font-weight: 650; letter-spacing: -0.02em; }
.wiz-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.wiz-card:hover,
.wiz-choice:hover { background: var(--surface2); }
.wiz-card:focus-visible,
.wiz-choice:focus-visible,
.wiz-broker:focus-visible,
.wiz-back:focus-visible {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: -1px;
}
.wiz-brokers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wiz-broker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.wiz-mark {
  width: 100%;
  aspect-ratio: 1;
  background: #0C1016;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.wiz-broker:hover .wiz-mark,
.wiz-broker:focus-visible .wiz-mark {
  border-color: var(--gold);
}
.wiz-mark img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}
.wiz-cap {
  font-size: 11.5px;
  color: var(--muted);
}
.wiz-api {
  max-width: 28rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.wiz-api .st {
  font-size: 11px;
  font-weight: 620;
  color: var(--muted);
  margin-bottom: 8px;
}
.wiz-api .st.ok { color: var(--text); }
.wiz-api .import-result { margin: 0 0 10px; }
.wiz-key {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiz-key label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wiz-key input {
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0C1016;
  color: var(--text);
  font: inherit;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}
.wiz-key input:focus,
.wiz-key button:focus-visible {
  border-color: var(--gold);
  outline: 1px solid var(--gold);
}
.wiz-key .gold-btn { align-self: start; }
.xfer-panel.solo { margin-top: 0; }
.wiz :is(a, button, input, select):focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 1px;
}
@media (max-width: 720px) {
  .wiz-brokers { grid-template-columns: repeat(2, 1fr); }
  .wiz-choices { grid-template-columns: 1fr; }
}
