/* mod-launch.css — soft-launch surfaces: trading thresholds panel, launch
   readiness checklist, trading-status strip, broker connect wizard.
   Semantic classes on the theme's own tokens (--bg/--panel/--line/--fg/--dim/
   --pos/--neg/--warn/--accent) so every theme renders them; no style="" and
   no new u-* utilities (the utility sheet is generated and gate-checked).
   Breakpoints only from the published scale (640). */

/* ── Trading thresholds (Admin → Trading) ──────────────────────────────── */
.th-wrap { display:flex; flex-direction:column; gap:14px; }
.th-preset-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:10px 12px;
  border:1px solid var(--line); background:var(--panel); }
.th-preset-bar .th-preset-note { color:var(--dim); font-size:11px; margin-left:auto; }
.th-group { border:1px solid var(--line); background:var(--bg); }
.th-group-head { padding:8px 12px; border-bottom:1px solid var(--line); background:var(--panel);
  font-size:10px; letter-spacing:1.3px; text-transform:uppercase; color:var(--dim); font-weight:700; }
.th-row { display:grid; grid-template-columns: minmax(220px, 1.4fr) minmax(260px, 1fr) 150px;
  gap:14px; align-items:center; padding:12px; border-bottom:1px solid var(--line); }
.th-row:last-child { border-bottom:none; }
.th-label { font-size:12px; font-weight:700; color:var(--fg); }
.th-desc { font-size:11px; color:var(--dim); margin-top:3px; line-height:1.45; }
.th-gates { font-size:10px; color:var(--dim); margin-top:4px; letter-spacing:.2px; }
.th-gates::before { content:'gates · '; color:var(--dim); }
.th-ctl { display:flex; align-items:center; gap:10px; }
.th-ctl input[type=range] { flex:1; min-width:120px; accent-color:var(--accent); }
.th-ctl input[type=number] { width:92px; padding:6px 8px; background:var(--bg); border:1px solid var(--line);
  color:var(--fg); font-family:inherit; font-size:12px; font-variant-numeric:tabular-nums; }
.th-ctl .th-unit { font-size:10px; color:var(--dim); min-width:34px; }
.th-meta { display:flex; flex-direction:column; gap:5px; align-items:flex-start; font-size:10px; }
.th-src { display:inline-block; padding:1px 6px; border:1px solid var(--dim2); color:var(--dim);
  letter-spacing:1px; text-transform:uppercase; font-size:9px; }
.th-src.db { border-color:var(--accent); color:var(--accent); }
.th-src.env, .th-src.legacy_db { border-color:var(--warn); color:var(--warn); }
.th-below80 { color:var(--pos); }
.th-above80 { color:var(--warn); }
.th-presets { color:var(--dim); }
.th-presets b { color:var(--fg); font-weight:600; }
.th-dirty .th-label::after { content:' · unsaved'; color:var(--warn); font-weight:400; font-size:10px; }
.th-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.th-actions .th-status { font-size:11px; color:var(--dim); }
/* Settings → Auto-trade readout of the effective values */
.th-effective { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:10px; color:var(--dim);
  padding:8px 10px; border:1px dashed var(--line); }
.th-effective b { color:var(--fg); font-weight:600; }
.th-effective .ovr { color:var(--accent); }

@media (max-width: 640px) {
  .th-row { grid-template-columns: 1fr; gap:8px; }
  .th-ctl input[type=number] { width:80px; }
}

/* ── Broker connect wizard (Accounts & Brokers) ────────────────────────── */
.bk-live-ack { display:flex; gap:8px; align-items:flex-start; padding:8px 10px; margin:4px 0 8px;
  border:1px solid var(--neg); font-size:11px; color:var(--fg); line-height:1.4; cursor:pointer; }
.bk-live-ack input { margin-top:2px; }
.bk-test { font-size:11px; min-height:1em; }
.bk-test-ok { color:var(--pos); }
.bk-test-bad { color:var(--neg); }
/* Per-broker help block: where the keys come from, the broker's own API-keys
   page, capability badges, and the live-only / policy note from the catalog. */
.bk-help { margin:0 0 10px; padding:8px 10px; border:1px dashed var(--line); font-size:11px; color:var(--dim); line-height:1.45; }
.bk-help-text { color:var(--fg); }
.bk-help-row { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin-top:6px; }
.bk-help-link { color:var(--accent); text-decoration:none; white-space:nowrap; }
.bk-help-link:hover { text-decoration:underline; }
.bk-supports { display:inline-flex; flex-wrap:wrap; gap:4px; align-items:center; }
.bk-supports .badge { font-size:9px; }
.bk-asset { display:inline-block; padding:1px 6px; border:1px solid var(--accent); color:var(--accent);
  font-size:9px; letter-spacing:1px; text-transform:uppercase; }
.bk-mode-note { margin-top:6px; padding:6px 8px; border:1px solid var(--neg); color:var(--fg); }
.bk-note { margin-top:6px; color:var(--dim); }
