*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0f16;
  --panel:    #13161f;
  --surface:  #1a1d2a;
  --border:   #252836;
  --accent:   #4f8ef7;
  --accent2:  #3a6fd8;
  --success:  #22c55e;
  --danger:   #ef4444;
  --text:     #e2e8f0;
  --muted:    #8b90a0;
  --call:     #f87171;
  --put:      #4ade80;
  --radius:   8px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0;
  font-size: 13px;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
header h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}
header .badge {
  font-size: 11px;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 2px;
  padding: 12px 24px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.tab-bar button {
  padding: 8px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.tab-bar button:hover { color: var(--text); }
.tab-bar button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Portfolio sub-tabs ── */
.pfsub-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px; cursor: pointer; margin-bottom: -1px;
}
.pfsub-btn:hover { color: var(--text); }
.pfsub-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Main layout ── */
.tab-content { display: none; }
.tab-content.active { display: block; }

main { padding: 20px 24px; }

/* ── Filter panel ── */
.filters {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.filters input,
.filters select {
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.filters input:focus,
.filters select:focus { border-color: var(--accent); }
.filters input,
.filters select {
  width: 120px;
}
.filters select {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Stock multi-select ── */
.stock-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stock-select > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.stock-select select {
  height: 140px;
  min-width: 220px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  /* The `size` attribute on the element (not just this CSS height) is what
     actually matters here: without it, some browsers render a multi-select
     taller than its option count in a mode where mouse-wheel scroll inside
     the box doesn't work at all — only dragging the native scrollbar thumb
     does. Setting `size` puts it in the normal scrollable-listbox mode. */
  overflow-y: auto;
}
.stock-select select:focus { border-color: var(--accent); }

.btn-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Buttons ── */
button.sm {
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
button.sm:hover { background: var(--border); }

button.primary {
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  transition: background 0.15s;
}
button.primary:hover { background: var(--accent2); }

button.success {
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  background: var(--success);
  color: #fff;
  transition: opacity 0.15s;
}
button.success:hover { opacity: 0.85; }

/* ── Add-product form (warrant / TW option / US option) ── */
.add-product-form {
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}
.add-product-form input {
  padding: 5px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.add-product-form input:focus { border-color: var(--accent); }

/* ── Sort buttons ── */
.sort-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sort-btns button {
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.sort-btns button:hover { color: var(--text); border-color: var(--accent); }

/* ── Status ── */
#arb-status,
#opt-status,
#status, #iv-status {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  min-height: 18px;
}

/* ── Table ── */
#arb-tableContainer,
#opt-tableContainer,
#tableContainer {
  max-height: calc(100vh - 310px);
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
#tableContainer::-webkit-scrollbar { width: 6px; height: 6px; }
#tableContainer::-webkit-scrollbar-track { background: var(--bg); }
#tableContainer::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}
thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  color: var(--muted);
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  text-align: right;
  transition: color 0.15s;
}
thead th:first-child,
thead th:nth-child(2),
thead th:nth-child(3) { text-align: left; }
thead th:hover { color: var(--text); }

td {
  padding: 7px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
td:first-child, td:nth-child(2), td:nth-child(3) { text-align: left; }
tbody tr:hover { background: var(--surface); }
tbody tr[onclick]:hover { background: #1e2535; }
tbody tr:last-child td { border-bottom: none; }

/* Warrant-code search hit, floated to the top of the scanner table. */
tbody tr.row-pinned td { background: rgba(79, 142, 247, 0.16); }
tbody tr.row-pinned:hover td { background: rgba(79, 142, 247, 0.26); }
tbody tr.row-pinned td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

.call { color: var(--call); font-weight: 600; }
.put  { color: var(--put);  font-weight: 600; }

/* ── IV plot ── */
#iv-plot {
  width: 100%;
  height: 680px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Action buttons group ── */
.action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-basis: 100%;
  margin-top: 6px;
}
.action-group.compact {
  flex-basis: auto;
  margin-top: 0;
}

/* ── Market-session clock widget ── */
#market-clock{position:fixed;right:14px;bottom:14px;z-index:900;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:9px 11px;font-size:11px;color:var(--muted);box-shadow:0 4px 16px rgba(0,0,0,.35);min-width:190px;user-select:none}
#market-clock .mc-clocks{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;padding-bottom:6px;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}
#market-clock .mc-clocks b{color:var(--text);font-size:12px;font-weight:700}
#market-clock .mc-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0;cursor:default}
#market-clock .mc-lbl{color:var(--muted)}
#market-clock .mc-tip{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 10px;box-shadow:0 6px 20px rgba(0,0,0,.45);white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .12s;pointer-events:none;z-index:1000;min-width:158px}
#market-clock .mc-row:hover .mc-tip{opacity:1;visibility:visible}
#market-clock .mc-tip-h{color:var(--text);font-weight:700;font-size:11px;margin-bottom:5px}
#market-clock .mc-tip-r{display:flex;justify-content:space-between;gap:14px;padding:1px 0;font-size:11px;font-variant-numeric:tabular-nums}
#market-clock .mc-tip-k{color:var(--muted)}
#market-clock .mc-tip-v{color:var(--text)}
#market-clock .mc-badge{font-weight:700;font-size:10px;letter-spacing:.3px;text-transform:uppercase;padding:2px 7px;border-radius:10px;white-space:nowrap}
.mc-open{color:var(--put);background:rgba(74,222,128,.15)}
.mc-after{color:#fbbf24;background:rgba(251,191,36,.15)}
.mc-closed{color:var(--muted);background:rgba(139,144,160,.13)}

/* ── Home dashboard (landing tab) ───────────────────────────────────── */
#tab-home { --warn: #f5a524; }
#tab-home .home-dash { width: 100%; max-width: 1460px; margin: 0 auto; }
#tab-home .home-scanline { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--muted); margin:0 0 16px; }
#tab-home .home-dot { width:7px; height:7px; border-radius:50%; background:var(--put); display:inline-block; }
#tab-home .home-dot.idle { background:var(--muted); }

#tab-home .home-kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
#tab-home .home-kpi { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:13px 14px; position:relative; overflow:hidden; }
#tab-home .home-kpi::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--accent); opacity:.85; }
#tab-home .home-kpi.g::before { background:var(--put); }
#tab-home .home-kpi.a::before { background:var(--warn); }
#tab-home .home-kpi-lbl { font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); font-weight:600; }
#tab-home .home-kpi-val { font-size:22px; font-weight:600; margin-top:6px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
#tab-home .home-kpi-val.pos { color:var(--put); }
#tab-home .home-kpi-val.neg { color:var(--call); }
#tab-home .home-kpi-foot { font-size:11px; color:var(--muted); margin-top:4px; }
#tab-home .home-kpi-foot .warn { color:var(--warn); font-weight:600; }

#tab-home .home-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; align-items:start; margin-top:22px; }
#tab-home .home-sec { margin-top:0; }
#tab-home .home-col-main > .home-sec + .home-sec,
#tab-home .home-col-side > .home-sec + .home-sec { margin-top:20px; }
#tab-home .home-shead { display:flex; align-items:center; gap:9px; margin:0 0 11px; }
#tab-home .home-shead h2 { font-size:13px; font-weight:600; margin:0; }
#tab-home .home-shead .home-sub { font-size:11px; color:var(--muted); }
#tab-home .home-sp { flex:1; }
#tab-home .home-link { color:var(--accent); font-size:11px; font-weight:600; cursor:pointer; }
#tab-home .home-link:hover { text-decoration:underline; }
#tab-home .home-card { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:14px 15px; }
#tab-home .home-card-flush { padding:4px 6px; }
#tab-home .home-empty { padding:16px; text-align:center; color:var(--muted); font-size:11.5px; margin:0; }
#tab-home .home-muted { color:var(--muted); }
#tab-home .pos { color:var(--put); font-weight:600; }
#tab-home .neg { color:var(--call); font-weight:600; }

/* positions table */
#tab-home .home-tbl { width:100%; border-collapse:collapse; }
#tab-home .home-tbl th { font-size:10px; text-transform:uppercase; letter-spacing:.4px; color:var(--muted); font-weight:600; text-align:left; padding:6px 8px; border-bottom:1px solid var(--border); }
#tab-home .home-tbl th.r, #tab-home .home-tbl td.r { text-align:right; }
#tab-home .home-tbl td { padding:9px 8px; border-bottom:1px solid var(--border); font-size:12px; vertical-align:middle; font-variant-numeric:tabular-nums; }
#tab-home .home-tbl tr:last-child td { border-bottom:none; }
#tab-home .home-tbl tbody tr { cursor:pointer; }
#tab-home .home-tbl tbody tr:hover { background:var(--surface); }
#tab-home .home-name { font-weight:600; }
#tab-home .home-sub2 { font-size:10.5px; color:var(--muted); margin-top:1px; }
#tab-home .home-dte { font-weight:600; }
#tab-home .home-tag { font-size:9.5px; font-weight:700; padding:2px 6px; border-radius:5px; text-transform:uppercase; letter-spacing:.3px; }
#tab-home .home-tag.call { color:var(--call); background:rgba(248,113,113,.13); }
#tab-home .home-tag.put { color:var(--put); background:rgba(74,222,128,.13); }
#tab-home .home-chip { font-size:10px; font-weight:600; padding:2px 7px; border-radius:10px; white-space:nowrap; }
#tab-home .home-chip.soon { color:var(--warn); background:rgba(245,165,36,.14); }
#tab-home .home-chip.ok { color:var(--put); background:rgba(74,222,128,.13); }
#tab-home .home-fill-ok { color:var(--put); font-weight:700; }
#tab-home .home-fill-no { color:var(--call); font-weight:700; }

/* pnl chart footer */
#tab-home .home-cfoot { display:flex; gap:20px; margin-top:10px; font-size:11px; color:var(--muted); }
#tab-home .home-cfoot b { color:var(--text); }
#tab-home .home-cfoot b.pos { color:var(--put); }
#tab-home .home-cfoot b.neg { color:var(--call); }

/* suggestions list */
#tab-home .home-sugg { display:flex; flex-direction:column; gap:9px; }
#tab-home .home-srow { display:flex; align-items:center; gap:10px; padding:10px 11px; background:var(--surface); border:1px solid var(--border); border-radius:7px; cursor:pointer; }
#tab-home .home-srow:hover { border-color:var(--accent); }
#tab-home .home-leg { flex:1; min-width:0; }
#tab-home .home-leg-t { font-size:11.5px; font-weight:600; }
#tab-home .home-leg-l { font-size:10.5px; color:var(--muted); margin-top:2px; }
#tab-home .home-edge { text-align:right; font-variant-numeric:tabular-nums; }
#tab-home .home-e { color:var(--put); font-weight:700; font-size:13px; }
#tab-home .home-p { color:var(--muted); font-size:10px; }

/* direct-match launcher */
#tab-home .home-stocks { display:flex; flex-wrap:wrap; gap:6px; }
#tab-home .home-schip { font-size:11px; font-weight:600; padding:5px 10px; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--muted); cursor:pointer; user-select:none; }
#tab-home .home-schip:hover { color:var(--text); }
#tab-home .home-schip.on { background:rgba(79,142,247,.15); border-color:var(--accent); color:var(--accent); }
#tab-home .home-btn { background:var(--accent); color:#fff; border:none; font-family:inherit; font-size:11.5px; font-weight:600; padding:7px 12px; border-radius:6px; cursor:pointer; }
#tab-home .home-btn:hover { background:var(--accent2); }
#tab-home .home-btn:disabled { opacity:.55; cursor:default; }
#tab-home .home-btn.ghost { background:var(--surface); color:var(--text); border:1px solid var(--border); }
#tab-home .home-btn.ghost:hover { border-color:var(--accent); color:var(--accent); }

/* direct-match: full-width scan + scrollable results. margin-bottom clears the
   fixed bottom-right market clock so the controls/results never sit under it. */
#tab-home .home-sec-wide { margin-top:20px; margin-bottom:140px; }
#tab-home .home-dm-controls { display:flex; flex-direction:column; align-items:stretch; gap:12px; margin-bottom:12px; }
#tab-home .home-dm-thresh { display:flex; flex-wrap:wrap; align-items:center; gap:14px; font-size:11px; color:var(--muted); }
#tab-home .home-dm-thresh label { display:flex; align-items:center; gap:6px; white-space:nowrap; }
#tab-home .home-dm-thresh input { width:54px; background:var(--surface); border:1px solid var(--border); color:var(--text); font-family:inherit; border-radius:6px; padding:5px 8px; font-size:12px; }
#tab-home .home-arb-results { max-height:380px; overflow-y:auto; overflow-x:auto; border-top:1px solid var(--border); }
#tab-home .home-arb-results thead th { position:sticky; top:0; z-index:1; }

/* attention queue */
#tab-home .home-att { display:flex; flex-direction:column; gap:8px; }
#tab-home .home-arow { display:flex; gap:10px; align-items:flex-start; padding:9px 10px; background:var(--surface); border:1px solid var(--border); border-left-width:3px; border-radius:6px; }
#tab-home .home-arow.warn { border-left-color:var(--warn); }
#tab-home .home-arow.info { border-left-color:var(--accent); }
#tab-home .home-arow.neg { border-left-color:var(--call); }
#tab-home .home-ic { font-size:13px; line-height:1.3; }
#tab-home .home-atxt { font-size:11.5px; }
#tab-home .home-atxt b { font-weight:600; }
#tab-home .home-m { color:var(--muted); margin-top:1px; }

@media (max-width:900px) {
  #tab-home .home-kpis { grid-template-columns:repeat(2,1fr); }
  #tab-home .home-grid { grid-template-columns:1fr; }
}

/* ── User Dashboard tab ── */
/* Same card language as the Home dashboard, but scoped to #tab-dashboard and
   its modals so the two never fight over a selector. */
#tab-dashboard .dash-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
#tab-dashboard .dash-title{font-size:15px;font-weight:600;color:var(--text)}
#tab-dashboard .dash-status{font-size:12px;color:var(--muted)}
#tab-dashboard .dash-kpis{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
#tab-dashboard .dash-kpi{flex:1 1 150px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:4px}
#tab-dashboard .dash-kpi-k{font-size:10px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}
#tab-dashboard .dash-kpi b{font-size:17px;color:var(--text);font-variant-numeric:tabular-nums}
#tab-dashboard .dash-kpi-pct{font-size:12px;font-weight:500}
#tab-dashboard .dash-kpi-warn{border-color:#7c5b12}
#tab-dashboard .dash-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
@media (max-width:1100px){#tab-dashboard .dash-grid{grid-template-columns:1fr}}
#tab-dashboard .dash-sec{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;margin-bottom:16px}
#tab-dashboard .dash-sec h3{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);font-weight:600;margin-bottom:8px}
.dash-hint{font-size:12px;color:var(--muted);margin-bottom:10px}
.dash-empty{font-size:12px;color:var(--muted);padding:14px 0}
.dash-up{color:var(--put)}
.dash-down{color:var(--call)}
.dash-long{color:var(--put)}
.dash-short{color:var(--call)}
.dash-tag{font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:1px 6px}
.dash-table{width:100%;border-collapse:collapse;font-size:12px}
.dash-table th{text-align:left;font-weight:600;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:6px 8px;border-bottom:1px solid var(--border)}
.dash-table td{padding:8px;border-bottom:1px solid var(--border);color:var(--text);vertical-align:top}
.dash-table .num{text-align:right;font-variant-numeric:tabular-nums}
.dash-row{cursor:pointer}
.dash-row:hover{background:var(--surface)}
.dash-legs span{display:block;font-size:11px;font-variant-numeric:tabular-nums}
.dash-watch-row{border-bottom:1px solid var(--border);padding:8px 0}
.dash-watch-head{display:flex;align-items:center;gap:8px;font-size:12px}
.dash-watch-head b{color:var(--text)}
.dash-watch-head button{margin-left:auto}
.dash-watch-sub{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.3px}
.dash-watch-quotes{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted);margin:4px 0 6px;font-variant-numeric:tabular-nums}
.dash-watch-quotes b{color:var(--text)}
.dash-alert{border:1px solid var(--border);border-radius:6px;padding:8px 10px;margin-bottom:8px;font-size:12px}
.dash-alert-on{border-color:var(--danger);background:rgba(239,68,68,.08)}
.dash-alert-head{display:flex;align-items:center;gap:8px}
.dash-alert-head button{margin-left:auto}
.dash-alert-head span{color:var(--muted);font-size:11px}
.dash-alert-body{margin-top:4px;color:var(--muted);font-size:11px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dash-alert-body b{color:var(--text)}
.dash-alert-badge{color:var(--danger);font-weight:700;font-size:10px;letter-spacing:.4px}
.dash-alert-last{font-size:10px}
.dash-slider{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:12px;color:var(--muted)}
.dash-slider input[type=range]{flex:1}
.dash-slider b{color:var(--text)}
.dash-payoff-total{margin-top:10px;font-size:12px;color:var(--muted)}
.dash-payoff-total b{font-size:14px}
/* Star column in the scanner tables */
.star-cell{cursor:pointer;color:#fbbf24;text-align:center;user-select:none;font-size:14px}
/* New Position / Alert modal forms */
.np-meta{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.np-meta label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}
.np-meta input,.np-meta select{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:5px;padding:6px 8px;font-family:inherit;font-size:12px}
.np-legs{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.np-leg{display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:8px}
.np-leg input,.np-leg select{background:var(--panel);border:1px solid var(--border);color:var(--text);border-radius:5px;padding:6px 8px;font-family:inherit;font-size:12px;min-width:86px;flex:1 1 86px}
.np-leg select:disabled{opacity:.6}
.np-actions{display:flex;align-items:center;gap:10px}
.np-error{color:var(--danger);font-size:12px}
.dash-exp{font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:1px 6px;white-space:nowrap}
.dash-exp-soon{color:#fbbf24;border-color:#7c5b12}
.dash-exp-gone{color:var(--danger);border-color:var(--danger)}
.dash-alert-warn{border-color:#7c5b12;background:rgba(251,191,36,.08)}
.dash-alert-badge-warn{color:#fbbf24}
