/* ============================================================
   CRAQUE MANAGER — tema ESCURO (estilo pôster esportivo / 7a0)
   ============================================================ */
:root {
  --bg: #101216;
  --bg-top: #171a21;
  --bg-bot: #0b0c10;
  --panel: #1b1e26;
  --panel-2: #242834;
  --paper: #f4efe4;      /* texto claro */
  --muted: #99a1b2;
  --line: #efe7d6;       /* borda clara (moldura) */
  --line-soft: #363b48;  /* divisórias sutis */
  --ink: #14120e;        /* texto escuro sobre dourado/vermelho */
  --red: #ef4b2b;
  --red-dark: #cf3c20;
  --gold: #e0b03f;
  --gold-2: #f0c458;
  --pitch-a: #2c9350;
  --pitch-b: #237c43;
  --shadow: 4px 4px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
}

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

html, body { background: var(--bg); }
body {
  color: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-top) 0%, var(--bg) 55%, var(--bg-bot) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.display {
  font-family: Impact, "Haettenschweiler", "Franklin Gothic Bold", "Arial Narrow Bold", "Arial Narrow", sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

button { font-family: inherit; cursor: pointer; border: none; color: inherit; }
input, select, button { font-size: 15px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2.5px solid var(--line); border-radius: 10px;
  padding: 13px 20px; font-weight: 800;
  box-shadow: var(--shadow); transition: transform .05s, box-shadow .05s, background .12s;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--panel-2); color: var(--paper); }
.btn-dark:hover { background: #2c313f; }
.btn:disabled { opacity: 0.4; cursor: default; box-shadow: var(--shadow); }
.btn:disabled:active { transform: none; }
.btn-lg { font-size: 20px; padding: 16px 24px; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-width: 2px; box-shadow: var(--shadow-sm); border-radius: 8px; }

.field {
  width: 100%; background: var(--panel);
  border: 2.5px solid var(--line); border-radius: 10px;
  padding: 13px; color: var(--paper); outline: none; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--red); }
select.field { appearance: none; -webkit-appearance: none; }

/* ---------- topo ---------- */
.topbar {
  border-bottom: 2px solid var(--line-soft);
  background: rgba(16,18,22,0.92); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 30;
}
.topbar-inner {
  max-width: 720px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { font-size: 22px; line-height: 1; }
.logo .a0 { color: var(--red); }
.top-team { text-align: right; }
.top-team .tn { font-size: 15px; font-weight: 900; line-height: 1; }
.top-team .rec { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.record-button { display: block; width: 100%; border: 0; background: none; cursor: pointer; text-align: inherit; }
.record-button:hover { color: var(--gold-2); text-decoration: underline; }
.pill {
  border: 2px solid var(--line); border-radius: 999px; padding: 5px 11px;
  font-size: 13px; font-weight: 800; background: var(--panel-2); box-shadow: var(--shadow-sm);
}

/* ---------- setup / hero ---------- */
.hero { padding: 36px 20px 24px; text-align: center; }
.logo-badge { display: inline-block; filter: drop-shadow(3px 4px 0 #000); margin-bottom: 6px; }
.logo-badge svg { display: block; }
.hero h1 { font-size: clamp(26px, 7vw, 40px); line-height: 0.98; margin: 6px 0 12px; }
.hero h1 .accent { color: var(--red); }
.hero p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; font-weight: 500; line-height: 1.5; }
.setup-card { max-width: 380px; margin: 0 auto; text-align: left; }
.setup-card label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; }
.stack > * + * { margin-top: 12px; }

/* ---------- campo ---------- */
.section-title { font-size: 22px; margin: 18px 0 4px; }
.subtle { color: var(--muted); font-size: 13px; font-weight: 600; }

.pitch-frame {
  border: 2.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; margin: 14px 0;
}
.squad-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(230px, 1fr); gap: 16px; align-items: stretch; margin: 14px 0; }
.squad-layout .pitch-frame { margin: 0; }
.bench-panel { min-height: 0; max-height: 960px; overflow: hidden; display: flex; flex-direction: column; border: 2.5px solid var(--line); border-radius: 14px; padding: 13px; background: var(--panel); box-shadow: var(--shadow); }
.bench-panel h3 { font-size: 18px; color: var(--gold-2); }
.bench-counter { color: var(--muted); font-size: 11px; font-weight: 800; margin: 3px 0 10px; }
.bench-list { overflow-y: auto; padding: 2px 4px 4px 1px; }
.bench-card { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 7px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel-2); cursor: grab; touch-action: none; }
.bench-card:active { cursor: grabbing; }
.bench-rating { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
.bench-info { min-width: 0; flex: 1; }
.bench-info .nm { font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-info .tm { color: var(--muted); font-size: 10px; font-weight: 700; }
.bench-empty { color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; padding: 20px 5px; }
.team-badge { width: 34px; height: 39px; flex: 0 0 auto; display: block; overflow: visible; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); }
.header-badge { width: 30px; height: 35px; }
.badge-preview { min-height: 104px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel-2); }
.badge-large { width: 78px; height: 90px; }
.settings-label { font-weight: 800; font-size: 12px; text-transform: uppercase; }
.badge-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-editor label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-editor input[type="color"] { width: 100%; height: 43px; padding: 3px; border: 2px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.credentials-box { display: grid; gap: 9px; margin-top: 4px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel-2); }
.drag-ghost { position: fixed; z-index: 100; transform: translate(-50%, -115%); pointer-events: none; display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 900; }
.pitch {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  background: repeating-linear-gradient(0deg, var(--pitch-a) 0 10%, var(--pitch-b) 10% 20%);
}
.pitch .line { position: absolute; border: 2px solid rgba(255,255,255,0.5); }
.pitch .midline { left: 0; right: 0; top: 50%; border-width: 0; border-top: 2px solid rgba(255,255,255,0.5); }
.pitch .circle { width: 26%; aspect-ratio: 1; border-radius: 50%; left: 37%; top: 42%; }
.pitch .box-top { left: 22%; right: 22%; top: 0; height: 14%; border-top: none; }
.pitch .box-bot { left: 22%; right: 22%; bottom: 0; height: 14%; border-bottom: none; }

.slot {
  position: absolute; transform: translate(-50%, -50%);
  width: 68px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
}
.slot.filled { touch-action: none; }
.slot.drag-target .token { transform: scale(1.18); background: var(--red); color: #fff; }
.token {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; background: var(--paper); color: var(--ink);
}
.slot.empty .token { background: rgba(20,18,14,0.4); color: var(--paper); border-color: var(--line); border-style: dashed; }
.slot.filled .token { background: var(--gold); }
.slot .lbl {
  font-size: 10.5px; font-weight: 800; color: var(--paper);
  background: #14120e; padding: 1px 6px; border-radius: 5px;
  max-width: 78px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.slot .lbl.pos { background: rgba(0,0,0,0.6); }

.formrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.chip {
  border: 2px solid var(--line); border-radius: 8px; padding: 6px 12px;
  font-weight: 800; font-size: 13px; background: var(--panel-2); color: var(--muted);
  box-shadow: var(--shadow-sm); text-transform: uppercase;
}
.chip.active { background: var(--gold); color: var(--ink); }

.team-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 2px; }
.stat-box {
  border: 2px solid var(--line); border-radius: 8px; padding: 6px 12px; background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.stat-box .k { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.stat-box .v { font-size: 20px; font-weight: 900; line-height: 1; }
.stat-box .v.value { font-size: 17px; }
.stat-box.money { flex: 1 1 145px; }
.stat-box.money .v { color: var(--gold-2); }
.stat-box.money.negative { border-color: var(--red); }
.stat-box.money.negative .v { color: var(--red); }

/* ---------- picker (bottom sheet) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 720px; max-height: 82vh; overflow-y: auto;
  background: var(--bg); border: 2.5px solid var(--line);
  border-bottom: none; border-radius: 16px 16px 0 0; padding: 16px;
}
.picker-sheet {
  height: calc(100vh - 24px); height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin-bottom: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  border-bottom: 2.5px solid var(--line); border-radius: 16px;
}
.picker-sheet .sheet-head, .picker-sheet .picker-search, .picker-sheet .picker-sort { position: static; flex: 0 0 auto; }
.picker-sheet .picker-sort { margin-top: 8px; }
.picker-sheet .player-areas { flex: 1 1 auto; min-height: 0; overflow: hidden; align-items: stretch; }
.picker-sheet .player-area { min-height: 0; display: flex; flex-direction: column; }
.picker-sheet .pick-list { min-height: 0; overflow-y: auto; padding-right: 5px; }
.settings-overlay { align-items: center; padding: 16px; }
.settings-sheet {
  width: min(100%, 620px); max-height: calc(100vh - 32px);
  border-bottom: 2.5px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: sticky; top: -16px; background: var(--bg); padding: 6px 0; }
.sheet-head h3 { font-size: 20px; }
.picker-search { margin-bottom: 8px; position: sticky; top: 44px; z-index: 2; }
.picker-count { color: var(--muted); font-size: 12px; font-weight: 700; margin: 2px 2px 10px; }
.picker-budget { color: var(--gold-2); font-size: 12px; font-weight: 800; margin: 2px 2px 5px; }
.picker-empty { color: var(--muted); text-align: center; padding: 24px 12px; font-weight: 700; }
.picker-empty.compact { padding: 16px 8px; font-size: 12px; }
/* Uma aba por vez (Banco / Comprar jogador), em qualquer tamanho de tela. */
.player-areas { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.player-areas.show-owned .market-area, .player-areas.show-market .owned-area { display: none; }
.mobile-picker-tabs { display: flex; gap: 8px; margin: 0 0 10px; }
.mobile-picker-tabs .chip { flex: 1 1 0; }
.player-area { min-width: 0; }
.player-area h4 { display: none; }
.owned-area { border-right: 0; padding-right: 0; }
.owned-pick { border-color: var(--gold); }
.owned-pick.current { opacity: .65; }
.owned-label { color: var(--gold-2); font-size: 11px; font-weight: 800; margin-top: 3px; }
.owned-actions { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 auto; }
.sell-player { background: var(--red); color: #fff; border-radius: 6px; padding: 4px 7px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.sell-player:hover { background: var(--red-dark); }
.squad-limit { color: var(--muted); font-size: 12px; font-weight: 800; margin: 2px 2px 5px; }
.squad-limit.full { color: var(--red); }
@media (max-width: 620px) {
  .picker-sheet { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin-bottom: 0; border-radius: 0; border-width: 0; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 850px) {
  .squad-layout { grid-template-columns: 1fr; }
  .bench-panel { display: none; }
}
.pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; font: inherit; color: inherit;
  border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  background: var(--panel-2); box-shadow: var(--shadow-sm); cursor: pointer;
}
.pick:hover { background: #2c313f; }
.pick.used { opacity: 0.4; cursor: default; }
.pick-info { min-width: 0; }
.pick .nm { font-weight: 800; }
.pick .tm { font-size: 12px; color: var(--muted); font-weight: 600; }
.pick .market-value { color: var(--gold-2); font-size: 12px; font-weight: 800; margin-top: 3px; }
.rating-wrap { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.rating-label { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.pick .ovr {
  font-family: Impact, sans-serif; font-size: 26px; line-height: 1; color: var(--ink);
  background: var(--gold); border: 2px solid var(--ink); border-radius: 8px;
  min-width: 46px; text-align: center; padding: 2px 4px;
}

.footer-cta { padding: 16px 16px 40px; }
.random-team-btn { margin-top: 14px; }
.opponent-btn { margin-top: 14px; }
.opponent-sheet { height: min(720px, calc(100vh - 32px)); display: flex; flex-direction: column; }
.opponent-tabs { flex: 0 0 auto; }
.opponent-list { overflow-y: auto; padding: 2px 4px 8px 0; }
.opponent-card {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 2px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px;
  background: var(--panel-2); box-shadow: var(--shadow-sm); text-align: left;
}
.opponent-card:hover { background: #2c313f; }
.opponent-info { min-width: 0; }
.opponent-info .nm { font-weight: 900; }
.opponent-info .tm { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
.opponent-rating {
  flex: 0 0 auto; min-width: 46px; padding: 3px 5px; text-align: center; font-size: 25px;
  color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 8px;
}
.opponent-list-badge { width: 34px; height: 34px; font-size: 11px; }
.note {
  border: 2px solid var(--ink); border-radius: 10px; padding: 12px; background: var(--gold);
  color: var(--ink); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); margin: 10px 0;
}
.prize-range { margin: -2px 0 10px; color: var(--gold-2); }
.linkbtn { background: none; text-decoration: underline; font-weight: 700; font-size: 13px; color: var(--muted); }

/* ============================================================
   TELA DE PARTIDA (ao vivo, lance a lance)
   ============================================================ */
.match {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-top) 0%, var(--bg) 60%, var(--bg-bot) 100%);
  display: flex; flex-direction: column;
}
.match-top {
  border-bottom: 2px solid var(--line-soft); padding: 16px 16px 14px;
  max-width: 720px; margin: 0 auto; width: 100%;
}
.match-clock {
  display: inline-block; font-family: Impact, sans-serif; font-size: 15px;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 8px; padding: 2px 10px; box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.match-speed { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px 9px; color: var(--muted); font-size: 11px; font-weight: 800; }
.match-speed-btn { min-width: 38px; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--text); font-size: 11px; font-weight: 900; cursor: pointer; }
.match-speed-btn.active { background: var(--gold); color: var(--ink); border-color: var(--ink); }
@media (max-width: 480px) {
  .match-clock { margin-bottom: 7px; }
  .match-speed { display: flex; margin: 0 0 9px; }
  .match-speed > span { margin-right: auto; }
}
.match-prize { color: var(--gold-2); font-size: 12px; font-weight: 800; margin: 0 0 10px; }
.match-payout { color: var(--gold-2); font-weight: 800; text-align: center; margin: 8px 0 14px; }
.match-scoreline {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.match-team { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; }
.match-team.home { text-align: right; }
.match-team.away { text-align: left; color: var(--muted); }
.match-team.home { justify-content: flex-end; }
.match-team.away .match-badge { order: -1; }
.match-badge { width: 30px; height: 35px; }
.match-score { font-family: Impact, sans-serif; font-size: 46px; line-height: 0.9; white-space: nowrap; }
.match-score .sc { display: inline-block; min-width: 0.7em; text-align: center; transition: transform .2s; }
.match-score .sc.flash { color: var(--gold); transform: scale(1.35); }
.match-score .dash { color: var(--gold); margin: 0 6px; }

.feed { flex: 1; overflow-y: auto; padding: 14px 16px; max-width: 720px; margin: 0 auto; width: 100%; }
.ev {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); animation: evin .25s ease-out;
}
.ev .min {
  font-family: Impact, sans-serif; font-size: 14px; color: var(--muted);
  min-width: 34px; text-align: right; padding-top: 1px;
}
.ev .txt { font-weight: 600; font-size: 15px; line-height: 1.35; flex: 1 1 auto; min-width: 0; }
/* Lance do time da direita (rival): minuto à direita e texto alinhado à direita. */
.ev.side-b { flex-direction: row-reverse; }
.ev.side-b .txt { text-align: right; }
.ev.side-b .min { text-align: left; }
.ev.goal .txt { font-weight: 800; }
.ev.goal .min { color: var(--gold); }
.ev .tag {
  display: inline-block; font-family: Impact, sans-serif; font-size: 12px; letter-spacing: 0.05em;
  background: var(--red); color: #fff; border-radius: 5px; padding: 0 7px; margin-right: 6px;
  vertical-align: middle;
}
.ev.info .txt { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.05em; }
@keyframes evin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.match-bottom { border-top: 2px solid var(--line-soft); padding: 14px 16px 30px; max-width: 720px; margin: 0 auto; width: 100%; }
.final-block { text-align: center; }
.final-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.bigscore { font-family: Impact, sans-serif; text-transform: uppercase; font-size: clamp(56px, 18vw, 96px); line-height: 0.85; margin: 2px 0; }
.bigscore .dash { color: var(--gold); margin: 0 0.1em; }
.verdict { font-size: clamp(26px, 8vw, 40px); line-height: 1; margin: 2px 0 12px; }
.verdict.win { color: var(--red); }
.verdict.loss { color: var(--muted); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.history-sheet { height: min(720px, calc(100vh - 32px)); display: flex; flex-direction: column; }
.history-summary { color: var(--gold-2); font-weight: 900; margin: 0 0 12px; }
.history-list { min-height: 0; overflow-y: auto; padding-right: 5px; }
.history-card { display: flex; align-items: center; gap: 10px; padding: 11px; margin-bottom: 9px; border: 2px solid var(--line-soft); border-left-width: 6px; border-radius: 10px; background: var(--panel-2); }
.history-card.win { border-left-color: #4ecb71; }
.history-card.loss { border-left-color: var(--red); }
.history-badge { width: 38px; height: 38px; font-size: 12px; }
.history-info { min-width: 0; flex: 1; }
.history-info .nm { font-weight: 900; }
.history-info .tm { color: var(--muted); font-size: 11px; margin-top: 2px; }
.history-reward { color: var(--gold-2); font-size: 11px; font-weight: 800; margin-top: 3px; }
.history-result { flex: 0 0 auto; display: grid; justify-items: center; }
.history-result strong { font-size: 25px; }
.history-result span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }

/* ---------- auth ---------- */
.card {
  width: 100%; max-width: 380px; margin: 4px auto 0; text-align: left;
  background: var(--panel); border: 2.5px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow);
}
.divider { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin: 14px 0; }
.divider .line { height: 2px; flex: 1; background: var(--line-soft); }
.err { color: #fca5a5; font-size: 13px; font-weight: 600; min-height: 2px; }

/* ---------- toast ---------- */
#toast-host { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: 92vw; }
.toast { padding: 11px 16px; border-radius: 10px; font-size: 13px; font-weight: 800; border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.toast.ok { background: var(--gold); color: var(--ink); }
.toast.error { background: var(--red); color: #fff; }
.toast.info { background: var(--panel-2); color: var(--paper); border-color: var(--line); }
