/* ==========================================================================
   MNI OS — Bravos Command dark premium
   Fundo #0a0e17/#0d1220 · glass cards · acentos dourado/azul em gradiente
   ========================================================================== */

:root {
  --bg0: #0a0e17;
  --bg1: #0d1220;
  --card: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --txt: #e8ecf4;
  --txt-dim: #8b94a7;
  --gold: #f5c76a;
  --gold-deep: #d4941e;
  --blue: #4da3ff;
  --blue-deep: #2563eb;
  --amber: #f5a623;
  --red: #ff5d5d;
  --green: #3ddc97;
  --grad-gold: linear-gradient(135deg, #f5c76a 0%, #d4941e 100%);
  --grad-blue: linear-gradient(135deg, #4da3ff 0%, #2563eb 100%);
  --grad-bar: linear-gradient(90deg, #2563eb 0%, #4da3ff 55%, #f5c76a 100%);
}

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

body {
  background: radial-gradient(1200px 700px at 80% -10%, #131b31 0%, var(--bg1) 45%, var(--bg0) 100%);
  color: var(--txt);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* glows decorativos de fundo */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .16; pointer-events: none; z-index: 0; }
.bg-glow-1 { width: 480px; height: 480px; background: var(--blue-deep); top: -140px; left: -120px; }
.bg-glow-2 { width: 420px; height: 420px; background: var(--gold-deep); bottom: -160px; right: -100px; }

.shell { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }

/* ---------- glass ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 26px; margin-bottom: 16px; flex-wrap: wrap;
  animation: fadeIn .5s ease both;
}
.brand-mark {
  font-size: 30px; font-weight: 800; letter-spacing: 1px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-mark span { margin-left: 7px; -webkit-text-fill-color: var(--txt); font-weight: 600; opacity: .9; }
.brand-sub { font-size: 12px; color: var(--txt-dim); text-transform: uppercase; letter-spacing: 3px; margin-top: 2px; }

.edition-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--txt-dim);
  border-radius: 999px; padding: 7px 16px; font: 600 13px 'Inter', sans-serif; cursor: pointer;
  transition: all .2s ease;
}
.ed-btn:hover { color: var(--txt); border-color: rgba(255,255,255,.2); }
.ed-btn.on { background: var(--grad-blue); color: #fff; border-color: transparent; box-shadow: 0 4px 18px rgba(37,99,235,.4); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: 5px; animation: pulse 1.6s infinite; }

.countdown { text-align: right; }
.cd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--txt-dim); }
.cd-units { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.cd-unit { text-align: center; }
.cd-unit span {
  font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cd-unit small { display: block; font-size: 10px; color: var(--txt-dim); text-transform: uppercase; letter-spacing: 1px; }
.cd-sep { font-size: 26px; color: var(--txt-dim); font-weight: 300; }
.cd-sub { font-size: 12px; color: var(--txt-dim); margin-top: 2px; }

/* ---------- stepper ---------- */
.stepper-card { padding: 18px 28px; margin-bottom: 16px; animation: fadeIn .5s .05s ease both; }
.stepper { display: flex; align-items: center; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.step-dot {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--txt-dim);
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  transition: all .3s;
}
.step.now .step-dot {
  background: var(--grad-gold); color: #1a1206; border-color: transparent;
  box-shadow: 0 0 22px rgba(245,199,106,.45); animation: pulseGold 2.2s infinite;
}
.step.done .step-dot { background: rgba(61,220,151,.15); color: var(--green); border-color: rgba(61,220,151,.4); }
.step-label { font-size: 13px; font-weight: 600; color: var(--txt-dim); }
.step.now .step-label { color: var(--gold); }
.step.done .step-label { color: var(--green); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; min-width: 24px; }
.step-line.done { background: rgba(61,220,151,.4); }

/* ---------- grid ---------- */
.grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 16px; }
.grid-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 980px) { .grid-main, .grid-bottom { grid-template-columns: 1fr; } }

.card { padding: 22px 26px; animation: fadeIn .5s .1s ease both; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--txt); }
.card h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--txt-dim); margin-bottom: 12px; }
.funnel-turma-label { color: var(--gold); margin-left: 8px; }

.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }

/* ---------- funil ---------- */
.f-row { display: grid; grid-template-columns: 110px 1fr 190px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.f-row:last-child { border-bottom: 0; }
.f-label { font-size: 13px; font-weight: 600; color: var(--txt-dim); text-align: right; }
.f-track { position: relative; height: 34px; background: rgba(255,255,255,.04); border-radius: 9px; display: flex; align-items: center; overflow: hidden; }
.f-bar {
  height: 100%; border-radius: 9px; background: var(--grad-bar);
  box-shadow: 0 0 18px rgba(77,163,255,.25); transition: width 1s cubic-bezier(.2,.8,.25,1);
}
.f-bar.empty { background: transparent; box-shadow: none; }
.f-num { position: absolute; left: 14px; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.f-conv { position: absolute; right: 12px; font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 999px; }
.f-badge { position: absolute; left: 12px; }
.f-ref { font-size: 11.5px; color: var(--txt-dim); line-height: 1.4; }

/* ---------- badges/chips ---------- */
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .4px; }
.badge.amber { background: rgba(245,166,35,.14); color: var(--amber); border: 1px solid rgba(245,166,35,.35); }
.chip { font-size: 11px; color: var(--txt-dim); background: rgba(255,255,255,.06); padding: 3px 10px; border-radius: 999px; }

/* ---------- metas ---------- */
.meta-col { display: flex; flex-direction: column; gap: 16px; }
.meta-card { text-align: center; }
.big-num { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big-num.gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.big-num.dim { color: var(--txt-dim); }
.meta-sub { font-size: 12px; color: var(--txt-dim); margin-top: 6px; }
.mini-bar { height: 7px; background: rgba(255,255,255,.06); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--grad-gold); border-radius: 4px; transition: width 1s ease; }

.ring-wrap { position: relative; width: 150px; margin: 4px auto 10px; }
.ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 9; }
.ring-fg { fill: none; stroke: url(#no); stroke: var(--blue); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.25,1); filter: drop-shadow(0 0 8px rgba(77,163,255,.5)); }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring-num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-meta { font-size: 11px; color: var(--txt-dim); }

.spark-wrap { margin-top: 6px; }
.spark-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--txt-dim); margin-bottom: 6px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; justify-content: center; }
.spark-bar { width: 9px; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--grad-blue); opacity: .85; transition: height .6s ease; }
.spark-bar:hover { opacity: 1; background: var(--grad-gold); }
.dim-note { font-size: 11px; color: var(--txt-dim); }

/* ---------- comparativo ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--txt-dim); padding: 8px 10px; border-bottom: 1px solid var(--card-border); }
.cmp-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.cmp-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cmp-table tr.row-live td { background: rgba(245,199,106,.05); }
.cmp-table tr.row-live td:first-child { color: var(--gold); font-weight: 700; }
.cmp-table tbody tr:hover td { background: rgba(255,255,255,.03); }

/* ---------- alertas ---------- */
.alert-list { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--card-border); }
.alert-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.alert.sev-critical .alert-dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.2s infinite; }
.alert.sev-warning .alert-dot { background: var(--amber); box-shadow: 0 0 8px rgba(245,166,35,.6); }
.alert.sev-info .alert-dot { background: var(--blue); }
.alert.sev-critical { border-color: rgba(255,93,93,.3); }
.alert.sev-warning { border-color: rgba(245,166,35,.3); }
.alert-title { font-size: 13.5px; font-weight: 700; }
.alert-detail { font-size: 12.5px; color: var(--txt-dim); margin-top: 2px; line-height: 1.45; }
.alert-when { font-size: 10.5px; color: var(--txt-dim); opacity: .7; margin-top: 4px; }
.alert-empty { font-size: 13px; color: var(--txt-dim); padding: 18px; text-align: center; }

/* ---------- rodapé ---------- */
.foot { margin-top: 22px; text-align: center; font-size: 11.5px; color: var(--txt-dim); }
.foot code { background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 5px; font-size: 11px; }
.foot-sep { margin: 0 10px; opacity: .5; }

/* ==========================================================================
   F-B — navegação, spend card, tela LEADS, tela EDIÇÕES (aditivo)
   ========================================================================== */

/* ---------- navegação principal ---------- */
.mainnav { display: flex; gap: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--card-border); border-radius: 999px; padding: 5px; }
.nav-link {
  text-decoration: none; color: var(--txt-dim); font: 600 13px 'Inter', sans-serif;
  padding: 8px 18px; border-radius: 999px; transition: all .2s ease; white-space: nowrap;
}
.nav-link:hover { color: var(--txt); }
.nav-link.on { background: var(--grad-gold); color: #1a1206; box-shadow: 0 4px 16px rgba(245,199,106,.35); }

/* ---------- card de spend ---------- */
.big-num.ok-green { background: linear-gradient(135deg, #3ddc97, #19b877); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.big-num.over-red { background: linear-gradient(135deg, #ff8a8a, #ff5d5d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.spend-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.spend-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--txt-dim); padding: 4px 6px; border-bottom: 1px dashed rgba(255,255,255,.06); }
.spend-line b { color: var(--txt); font-variant-numeric: tabular-nums; }
.spend-note { margin-top: 10px; font-size: 10.5px; color: var(--txt-dim); opacity: .8; line-height: 1.5; text-align: left; }
.decl-chip { color: var(--red); background: rgba(255,93,93,.1); margin-top: 3px; display: inline-block; }
.badge.green { background: rgba(61,220,151,.14); color: var(--green); border: 1px solid rgba(61,220,151,.35); }
.badge.red { background: rgba(255,93,93,.14); color: var(--red); border: 1px solid rgba(255,93,93,.35); }

/* ---------- tela LEADS ---------- */
.leads-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 240px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 11px 16px; color: var(--txt); font: 500 14px 'Inter', sans-serif; outline: none;
  transition: border-color .2s ease;
}
.search-input:focus { border-color: rgba(77,163,255,.5); box-shadow: 0 0 0 3px rgba(77,163,255,.12); }
.search-input::placeholder { color: var(--txt-dim); }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.chip-red { color: var(--red); background: rgba(255,93,93,.12); border: 1px solid rgba(255,93,93,.3); }

.leads-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.leads-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--txt-dim); padding: 8px 10px; border-bottom: 1px solid var(--card-border); }
.leads-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.lead-row { cursor: pointer; transition: background .15s ease; }
.lead-row:hover td { background: rgba(255,255,255,.03); }
.lead-row.row-orphan td { background: rgba(255,93,93,.04); }
.expand-cell { color: var(--txt-dim); width: 22px; font-size: 11px; }
.mono { font-variant-numeric: tabular-nums; font-family: 'Inter', monospace; }
.dim2 { color: var(--txt-dim); font-size: 12px; }
.tbl-loading { text-align: center; color: var(--txt-dim); padding: 26px !important; }

.st { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.06); color: var(--txt-dim); }
.st-green { background: rgba(61,220,151,.12); color: var(--green); }
.st-blue { background: rgba(77,163,255,.12); color: var(--blue); }
.st-amber { background: rgba(245,166,35,.12); color: var(--amber); }
.st-red { background: rgba(255,93,93,.12); color: var(--red); }

.pills-cell { white-space: nowrap; }
.pill {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 10.5px; font-weight: 800; margin-right: 4px;
  background: rgba(255,255,255,.05); color: var(--txt-dim); border: 1px solid var(--card-border);
}
.pill-on { background: rgba(61,220,151,.16); color: var(--green); border-color: rgba(61,220,151,.45); }

.lead-expand td { background: rgba(255,255,255,.02); padding: 16px 14px; }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.tl-item { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; position: relative; top: -1px; }
.tl-at { color: var(--txt-dim); font-variant-numeric: tabular-nums; min-width: 96px; }
.tl-label { color: var(--txt); }
.tl-meta { margin-top: 10px; font-size: 11.5px; color: var(--txt-dim); }
.txt-red { color: var(--red); }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.pg-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: var(--txt);
  border-radius: 10px; padding: 8px 18px; font: 600 13px 'Inter', sans-serif; cursor: pointer; transition: all .2s ease;
}
.pg-btn:hover:not(:disabled) { border-color: rgba(255,255,255,.25); }
.pg-btn:disabled { opacity: .35; cursor: default; }
.pg-primary { background: var(--grad-blue); border-color: transparent; }
.pg-primary:hover { box-shadow: 0 4px 18px rgba(37,99,235,.4); }

/* ---------- tela EDIÇÕES ---------- */
.ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-bottom: 16px; }
.ed-card { display: flex; flex-direction: column; gap: 10px; }
.ed-card.ed-live { border-color: rgba(245,199,106,.35); box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 24px rgba(245,199,106,.08); }
.ed-head { display: flex; align-items: center; justify-content: space-between; }
.ed-head h2 { font-size: 16px; }
.ed-card.ed-live .ed-head h2 { color: var(--gold); }
.ed-sub { font-size: 12px; color: var(--txt-dim); }
.ed-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.ed-m { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); border-radius: 10px; padding: 10px 8px; text-align: center; }
.ed-m b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.ed-m span { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt-dim); }
.ed-conf { font-size: 11.5px; color: var(--txt-dim); }

.cfg-card { margin-bottom: 16px; }
.cfg-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cfg-field { display: flex; flex-direction: column; gap: 6px; }
.cfg-field span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--txt-dim); }
.cfg-field input {
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 10px 14px; color: var(--txt); font: 500 13.5px 'Inter', sans-serif; outline: none; transition: border-color .2s ease;
}
.cfg-field input:focus { border-color: rgba(245,199,106,.5); box-shadow: 0 0 0 3px rgba(245,199,106,.1); }
.cfg-actions { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.cfg-status { font-size: 12.5px; color: var(--txt-dim); }
.cfg-status.ok { color: var(--green); }
.cfg-status.err { color: var(--red); }

/* ---------- animações ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 22px rgba(245,199,106,.45); }
  50% { box-shadow: 0 0 34px rgba(245,199,106,.75); }
}

/* ==========================================================================
   F-C — tela CAMPANHA (aditivo): motor badge, checklist, lotes, cadência, log
   ========================================================================== */

.motor-pill { font: 700 12px 'Inter', sans-serif; padding: 8px 16px; border-radius: 999px; letter-spacing: .5px; white-space: nowrap; }
.motor-pill.disarmed { background: rgba(255,93,93,.12); color: var(--red); border: 1px solid rgba(255,93,93,.4); }
.motor-pill.armed { background: rgba(61,220,151,.14); color: var(--green); border: 1px solid rgba(61,220,151,.45); box-shadow: 0 0 18px rgba(61,220,151,.25); }

.step-click { cursor: pointer; }
.step-click:hover .step-dot { border-color: rgba(245,199,106,.5); }
.phase-confirm { margin-top: 14px; font-size: 13px; color: var(--txt); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.check-col { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; padding: 14px; }
.check-col-now { border-color: rgba(245,199,106,.35); box-shadow: 0 0 18px rgba(245,199,106,.07); }
.check-item { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; padding: 6px 2px; cursor: pointer; color: var(--txt); line-height: 1.4; }
.check-item input { accent-color: var(--gold); cursor: pointer; }
.check-item.done span { color: var(--txt-dim); text-decoration: line-through; }
.check-when { font-size: 10px; color: var(--txt-dim); font-style: normal; margin-left: auto; white-space: nowrap; }

.prev-box { margin-bottom: 14px; }
.prev-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.prev-sub { font-size: 12.5px; color: var(--txt); line-height: 1.5; }
.prev-amostra { font-size: 11.5px; color: var(--txt-dim); margin: 8px 0 12px; line-height: 1.6; }

.lote { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.lote-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.lote-sub { font-size: 11.5px; color: var(--txt-dim); margin: 6px 0; line-height: 1.5; }
.lote-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.motor-note { font-size: 11px; color: var(--txt-dim); line-height: 1.6; margin-top: 12px; border-top: 1px dashed rgba(255,255,255,.08); padding-top: 10px; }
.motor-note code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 4px; }

.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: rgba(255,255,255,.1); border-radius: 999px; transition: .25s; cursor: pointer; }
.slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--txt-dim); border-radius: 50%; transition: .25s; }
.switch input:checked + .slider { background: rgba(61,220,151,.35); }
.switch input:checked + .slider:before { transform: translateX(20px); background: var(--green); }

.cad-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cad-queue { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.cad-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 12px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.04); color: var(--txt-dim); }
.cad-item.next { border-color: rgba(245,199,106,.4); color: var(--txt); background: rgba(245,199,106,.05); }
.cad-item.sent { opacity: .55; }
.cad-item.skipped { opacity: .4; text-decoration: line-through; }
.cad-ord { font-weight: 800; color: var(--gold); text-align: center; }
.cad-st { font-size: 10.5px; white-space: nowrap; color: var(--txt-dim); }
.cad-item.next .cad-st { color: var(--gold); font-weight: 700; }

.mlog { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; font-size: 12px; }
.mlog-item { display: grid; grid-template-columns: 78px 22px minmax(90px, auto) 1fr; gap: 8px; padding: 6px 8px; border-radius: 8px; align-items: baseline; }
.mlog-item:nth-child(odd) { background: rgba(255,255,255,.02); }
.mlog-at { color: var(--txt-dim); font-variant-numeric: tabular-nums; }
.mlog-ref { color: var(--blue); font-size: 11px; white-space: nowrap; }
.mlog-det { color: var(--txt); line-height: 1.45; word-break: break-word; }
