/* Portal TR4 — identidade: preto #11110E + amarelo #EAE33C (cores do logotipo) */
:root {
  --ground:#F4F4EF; --surface:#FFFFFF; --sunken:#ECECE5; --ink:#11110E; --ink-2:#45453D; --muted:#74746A; --line:#E1E1D8; --line-strong:#C9C9BE;
  --tape:#EAE33C; --tape-ink:#11110E; --tape-soft:#F6F2B4; --tape-edge:#CFC72A;
  --ok:#1C7A45; --ok-soft:#DCF0E2; --pend:#A94E0A; --pend-soft:#FBE7D6; --lost:#B3261E; --lost-soft:#F9E0DE; --done:#5E5E55; --done-soft:#E8E8E1;
  --bar:#11110E; --bar-future:#8B8B80;
  --logo-light:block; --logo-dark:none;
  --shadow:0 1px 0 rgba(17,17,14,.04), 0 1px 3px rgba(17,17,14,.06);
  --shadow-lg:0 14px 44px rgba(17,17,14,.22);
  --display:"Saira Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Saira",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground:#0E0E0B; --surface:#171713; --sunken:#1F1F1A; --ink:#EFEFE7; --ink-2:#C3C3B8; --muted:#8F8F83; --line:#2A2A24; --line-strong:#3B3B33;
    --tape:#EAE33C; --tape-ink:#11110E; --tape-soft:#34321A; --tape-edge:#EAE33C;
    --ok:#6FCF92; --ok-soft:#1B3224; --pend:#F2A65A; --pend-soft:#3A2814; --lost:#F08A82; --lost-soft:#3D1F1C; --done:#A8A89D; --done-soft:#2A2A24;
    --bar:#EFEFE7; --bar-future:#67675D;
    --logo-light:none; --logo-dark:block;
    --shadow:0 1px 0 rgba(0,0,0,.35); --shadow-lg:0 14px 44px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing:border-box }
html, body { margin:0; background:var(--ground); color:var(--ink) }
body { font-family:var(--body); font-size:14px; line-height:1.45; -webkit-font-smoothing:antialiased }
[hidden] { display:none !important }
img { max-width:100% }
button, input, select, textarea { font:inherit; color:inherit }
a { color:inherit }
:focus-visible { outline:2px solid var(--ink); outline-offset:2px; box-shadow:0 0 0 5px var(--tape) }
.num, .mono { font-family:var(--mono); font-variant-numeric:tabular-nums }
.muted { color:var(--muted) }
.small { font-size:12px }
.link { color:var(--ink); text-decoration:underline; text-decoration-color:var(--tape); text-decoration-thickness:2px; text-underline-offset:2px }
.eyebrow { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--muted) }
.boot { padding-top:40vh; text-align:center; color:var(--muted) }
.click { cursor:pointer }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none !important; transition:none !important } }

/* ---------- logotipo e cantos da marca ---------- */
.logo { height:40px; width:auto; flex:none }
.logo-l { display:var(--logo-light) }
.logo-d { display:var(--logo-dark) }
.frame { position:relative }
.frame::before, .frame::after { content:""; position:absolute; pointer-events:none; border:0 solid var(--tape) }
.frame::before { left:-8px; top:-8px; width:min(30%,132px); height:min(62%,70px); border-left-width:5px; border-top-width:5px }
.frame::after { right:-8px; bottom:-8px; width:min(18%,86px); height:min(46%,52px); border-right-width:3px; border-bottom-width:3px }

/* ---------- botões e formulários ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line-strong); background:var(--surface); padding:8px 14px; border-radius:6px; cursor:pointer; font-size:13px; font-weight:600; text-decoration:none; white-space:nowrap; line-height:1.2 }
.btn:hover { border-color:var(--ink) }
.btn.primary { background:var(--tape); border-color:var(--tape-edge); color:var(--tape-ink) }
.btn.primary:hover { border-color:var(--tape-ink) }
.btn.ghost { background:transparent }
.btn.danger { background:transparent; color:var(--lost); border-color:color-mix(in srgb, var(--lost) 45%, transparent) }
.btn.danger:hover { border-color:var(--lost) }
.btn.sm { padding:5px 10px; font-size:12px }
.btn.lg { padding:12px 18px; font-size:15px }
.btn[disabled] { opacity:.55; cursor:default }
.iconbtn { border:1px solid var(--line-strong); background:var(--surface); width:32px; height:32px; border-radius:6px; cursor:pointer; font-size:16px; line-height:1; flex:none }
.iconbtn:hover { border-color:var(--ink) }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.actions.end { justify-content:flex-end }

.form { display:grid; gap:12px }
.f { display:grid; gap:4px; min-width:0; align-content:start }
.f > span { font-size:12px; font-weight:600; color:var(--ink-2) }
.f small { color:var(--muted); font-size:11px }
.f input, .f select, .f textarea, .input, .filters input, .filters select, td select {
  width:100%; border:1px solid var(--line-strong); background:var(--surface); border-radius:6px; padding:8px 10px; font-size:14px; min-width:0
}
.f textarea { resize:vertical }
.f input:focus, .f select:focus, .f textarea:focus, .input:focus { border-color:var(--ink); outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--tape) 60%, transparent) }
fieldset { border:0; margin:0; padding:0; min-width:0 }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background:var(--sunken); color:var(--ink); opacity:1 }
.fgrid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px }
.f-2 { grid-column:span 2 }
.f-full { grid-column:1 / -1 }
.f-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px }
@media (max-width:720px) { .fgrid { grid-template-columns:1fr 1fr } .f-2 { grid-column:1 / -1 } }
@media (max-width:460px) { .fgrid { grid-template-columns:1fr } .f-pair { grid-column:1 / -1 } }
.form-erro { color:var(--lost); font-size:13px; margin:0 }
.calc { font-size:12px; color:var(--ink-2); font-family:var(--mono) }

/* ---------- telas de acesso ---------- */
.gate { min-height:100vh; display:grid; place-items:center; padding:40px 18px }
.gate-card { width:min(100%,480px); background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:28px 28px 24px; display:grid; gap:14px; box-shadow:var(--shadow) }
.gate-card h1 { font-family:var(--display); font-weight:600; font-size:32px; line-height:1; margin:0; text-transform:uppercase; letter-spacing:.03em; text-wrap:balance }
.gate-card p { margin:0 }
.gate-logo { display:flex; align-items:center; gap:14px; margin-bottom:6px }
.gate-logo span { font-family:var(--display); font-weight:600; letter-spacing:.16em; text-transform:uppercase; font-size:14px; color:var(--muted); padding-left:14px; border-left:1px solid var(--line-strong) }

/* ---------- estrutura ---------- */
.shell { min-height:100vh; display:grid; grid-template-rows:auto 1fr }
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:22px; padding:10px clamp(14px,3vw,32px); background:color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter:blur(6px); border-bottom:1px solid var(--line-strong) }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none }
.brand .logo { height:32px }
.brand-txt { font-family:var(--display); font-weight:600; letter-spacing:.16em; text-transform:uppercase; font-size:14px; padding-left:12px; border-left:1px solid var(--line-strong) }
.nav { display:flex; gap:4px; flex-wrap:wrap; flex:1 }
.nav a { display:inline-flex; align-items:center; text-decoration:none; font-weight:600; font-size:13px; padding:7px 12px; border-radius:6px; color:var(--ink-2) }
.nav a:hover { background:var(--sunken); color:var(--ink) }
.nav a[aria-current="page"] { background:var(--ink); color:var(--ground) }
.badge { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; margin-left:6px; border-radius:9px; background:var(--tape); color:var(--tape-ink); font-size:11px; font-weight:700 }
.me { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-2) }
@media (max-width:760px) { .topbar { flex-wrap:wrap; gap:8px 12px } .nav { order:3; flex-basis:100% } .brand-txt { display:none } }
.main { min-width:0 }
.page { max-width:1320px; margin:0 auto; padding:22px clamp(14px,3vw,32px) 56px; display:grid; gap:20px; min-width:0 }
.page-h { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:12px 24px }
.page-h h1 { font-family:var(--display); font-weight:600; font-size:34px; line-height:1; margin:2px 0 0; text-transform:uppercase; letter-spacing:.03em; text-wrap:balance }
.page-h .input { width:min(320px, 80vw) }
.sync { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); margin-top:8px }
.dot { width:8px; height:8px; border-radius:50%; background:var(--muted); display:inline-block; flex:none }
.dot.live { background:var(--ok) }
.dot.err { background:var(--lost) }
.dot.load { background:var(--tape); animation:pulse 1s ease-in-out infinite }
@keyframes pulse { 50% { opacity:.35 } }

.panel { background:var(--surface); border:1px solid var(--line); border-radius:8px; display:grid; min-width:0 }
.ph { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line); flex-wrap:wrap }
.ph h3 { font-family:var(--display); font-size:22px; font-weight:600; margin:0; text-transform:uppercase; letter-spacing:.02em }
.hint { font-size:12px; color:var(--muted) }
.empty { padding:28px 16px; color:var(--muted); text-align:center }
.empty-page { padding:28px; gap:6px }
.empty-page h2 { font-family:var(--display); font-weight:600; font-size:26px; margin:0; text-transform:uppercase }
.empty-page p { margin:0; color:var(--ink-2) }
.stack { display:grid; gap:20px; min-width:0 }
.notice { border:1px solid var(--line-strong); background:var(--surface); border-left:6px solid var(--tape); padding:14px 16px; border-radius:6px; display:grid; gap:4px }
.notice.err { border-left-color:var(--lost) }
.skeleton { height:14px; border-radius:4px; background:linear-gradient(90deg, var(--sunken), var(--line), var(--sunken)); background-size:200% 100%; animation:sh 1.2s linear infinite }
@keyframes sh { to { background-position:-200% 0 } }

/* ---------- início ---------- */
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px }
.mcard { display:grid; gap:8px; align-content:start; padding:18px 18px 16px; background:var(--surface); border:1px solid var(--line); border-radius:8px; text-decoration:none; box-shadow:var(--shadow); transition:border-color .15s }
.mcard:hover { border-color:var(--ink) }
.mcard h2 { font-family:var(--display); font-size:26px; font-weight:600; margin:0; text-transform:uppercase; letter-spacing:.02em; line-height:1.05 }
.mcard p { margin:0; color:var(--ink-2) }
.mcard .go { font-weight:600; font-size:13px; margin-top:4px; text-decoration:underline; text-decoration-color:var(--tape); text-decoration-thickness:2px; text-underline-offset:3px }

/* ---------- chips ---------- */
.chip { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; padding:2px 8px; border-radius:999px; border:1px solid transparent; white-space:nowrap; line-height:1.5 }
.st-Confirmado { background:var(--ok-soft); color:var(--ok); border-color:color-mix(in srgb, var(--ok) 35%, transparent) }
.st-A-confirmar { background:transparent; color:var(--pend); border:1px dashed var(--pend) }
.st-Realizado { background:var(--done-soft); color:var(--done) }
.st-Perdido { background:var(--lost-soft); color:var(--lost); text-decoration:line-through }
.chip.flag { background:var(--sunken); color:var(--ink-2) }
.chip.flag.yes { background:var(--tape-soft); color:var(--ink) }
.chip.miss { background:transparent; color:var(--muted); border:1px dashed var(--line-strong) }
.cd { font-family:var(--mono); font-size:12px; font-weight:600; padding:2px 7px; border-radius:4px; background:var(--sunken); color:var(--ink); white-space:nowrap }
.cd.soon { background:var(--tape); color:var(--tape-ink) }
.cd.now { background:var(--ok); color:var(--surface) }
.cd.past { background:transparent; color:var(--muted) }

/* ---------- agenda: números ---------- */
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:8px; overflow:hidden }
.kpi { background:var(--surface); padding:14px 16px 12px; display:grid; gap:2px; align-content:start }
.kpi .lab { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--muted) }
.kpi .val { font-family:var(--display); font-size:38px; font-weight:600; line-height:1; font-variant-numeric:tabular-nums }
.kpi .sub { font-size:12px; color:var(--ink-2) }
.kpi.alert .val { color:var(--pend) }

/* ---------- agenda: destaque de confirmados ---------- */
.nexts { display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(min(100%, 380px), 1fr)) }
.nexts:empty { display:none }
.nexts.multi .next .count { min-width:112px; padding:12px 14px }
.nexts.multi .next .count b { font-size:50px }
.nexts.multi .next h2 { font-size:24px }
.next { display:grid; grid-template-columns:auto 1fr; background:var(--surface); border:1px solid var(--line); border-radius:8px; overflow:hidden; box-shadow:var(--shadow); text-align:left }
.next:hover { border-color:var(--ink) }
.next .count { background:var(--tape); color:var(--tape-ink); padding:14px 22px; display:grid; place-content:center; text-align:center; min-width:150px }
.next .count b { font-family:var(--display); font-size:64px; line-height:.85; font-weight:700; font-variant-numeric:tabular-nums }
.next .count small { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em }
.next .info { padding:14px 20px; display:grid; gap:6px; align-content:center; min-width:0 }
.next h2 { font-family:var(--display); font-size:30px; font-weight:600; line-height:1; margin:0; text-wrap:balance }
.meta { display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--ink-2); font-size:13px }
.meta span { white-space:nowrap }
.flags { display:flex; flex-wrap:wrap; gap:6px }

/* ---------- agenda: grade, lista, calendário ---------- */
.grid2 { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:20px; align-items:start }
@media (max-width:980px) { .grid2 { grid-template-columns:1fr } }
.seg { display:inline-flex; border:1px solid var(--line-strong); border-radius:6px; overflow:hidden }
.seg button { border:0; background:transparent; padding:4px 10px; font-size:12px; font-weight:600; cursor:pointer; color:var(--ink-2) }
.seg button + button { border-left:1px solid var(--line-strong) }
.seg button[aria-pressed="true"] { background:var(--ink); color:var(--ground) }
.timeline { max-height:640px; overflow:auto }
.wk { position:sticky; top:0; background:var(--sunken); padding:5px 16px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--ink-2); display:flex; justify-content:space-between; gap:8px; z-index:1 }
.ev { display:grid; grid-template-columns:62px 1fr auto; gap:12px; padding:10px 16px; border-bottom:1px solid var(--line); align-items:start }
.ev:hover { background:color-mix(in srgb, var(--tape) 8%, var(--surface)) }
.ev:last-child { border-bottom:0 }
.ev .d { font-family:var(--mono); text-align:center; line-height:1.1; padding-top:2px }
.ev .d b { display:block; font-family:var(--display); font-size:26px; font-weight:600 }
.ev .d small { font-size:10.5px; text-transform:uppercase; color:var(--muted); letter-spacing:.04em }
.ev .t { display:grid; gap:4px; min-width:0 }
.ev .t .name { font-weight:700; font-size:15px; line-height:1.25 }
.ev .t .meta { font-size:12.5px }
.ev .r { display:grid; justify-items:end; gap:6px }
.ev.lost .name { color:var(--muted); text-decoration:line-through }

.cal { padding:10px 12px 14px }
.cal-nav { display:flex; align-items:center; gap:6px }
.cal-nav .m { font-family:var(--display); font-size:22px; font-weight:600; text-transform:uppercase; min-width:150px; text-align:center }
.cg { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:6px; overflow:hidden }
.cg .h { background:var(--sunken); font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding:5px 6px }
.cg .c { position:relative; background:var(--surface); min-height:92px; padding:4px 4px 6px; display:flex; flex-direction:column; gap:2px; min-width:0 }
.cg .c.out { background:var(--ground) }
.cg .c.out .n { color:var(--line-strong) }
.cg .c .n { font-family:var(--mono); font-size:11px; color:var(--muted); padding:0 3px; display:flex; justify-content:space-between; align-items:center }
.cg .c.today { background:color-mix(in srgb, var(--tape) 12%, var(--surface)) }
.cg .c.today .n b { color:var(--ink); font-weight:700; padding:1px 4px 0 }
.cg .c.today::before, .cg .c.today::after { content:""; position:absolute; pointer-events:none; border:0 solid var(--tape) }
.cg .c.today::before { left:1px; top:1px; width:20px; height:22px; border-left-width:3px; border-top-width:3px }
.cg .c.today::after { right:1px; bottom:1px; width:13px; height:15px; border-right-width:2px; border-bottom-width:2px }
.cg .c .staff { font-size:10px; color:var(--ink-2) }
.pill { font-size:11px; line-height:1.3; padding:1px 5px; border-radius:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border:1px solid transparent }
.pill.Confirmado { background:var(--ok-soft); color:var(--ok) }
.pill.A-confirmar { background:transparent; border:1px dashed var(--pend); color:var(--pend) }
.pill.Realizado { background:var(--done-soft); color:var(--done) }
.pill.Perdido { background:transparent; color:var(--muted); text-decoration:line-through }
.more { font-size:10.5px; color:var(--muted); padding:0 4px }
@media (max-width:640px) { .cg .c { min-height:64px } .pill { font-size:0; height:6px; padding:0 } }

/* ---------- agenda: gráfico ---------- */
.chartbox { padding:12px 16px 14px; display:grid; gap:8px }
.chart { position:relative }
.chart svg { display:block; width:100%; height:auto; overflow:visible }
.chart text { fill:var(--muted); font-family:var(--mono); font-size:10px }
.chart .grid line { stroke:var(--line); stroke-width:1 }
.chart .axis { stroke:var(--line-strong) }
.chart rect.hit { fill:transparent }
.chart text.v { fill:var(--ink); font-weight:600 }
.chart-note { font-size:12px; color:var(--muted) }
.tip { position:absolute; pointer-events:none; background:var(--ink); color:var(--ground); font-size:12px; padding:8px 10px; border-radius:6px; min-width:180px; max-width:280px; transform:translate(-50%, -100%); z-index:5; display:grid; gap:2px; box-shadow:0 4px 14px rgba(0,0,0,.18) }
.tip b { font-weight:700 }
.tip .row { display:flex; justify-content:space-between; gap:12px }
.tip .tip-ev { opacity:.8 }

/* ---------- agenda: pendências e tabela ---------- */
.todo .it { display:grid; grid-template-columns:1fr auto; gap:8px; padding:9px 16px; border-bottom:1px solid var(--line); align-items:center }
.todo .it:hover { background:color-mix(in srgb, var(--tape) 8%, var(--surface)) }
.todo .it:last-child { border-bottom:0 }
.todo .it .name { font-weight:600 }
.todo .it .miss { display:flex; flex-wrap:wrap; gap:4px; margin-top:3px }
.filters { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); align-items:center }
.filters input[type=search] { flex:1 1 220px; width:auto }
.filters select { width:auto; font-size:13px; padding:6px 9px }
.filters .count { margin-left:auto; font-size:12px; color:var(--muted) }
.tablewrap { overflow-x:auto }
table { border-collapse:collapse; width:100%; font-size:13px }
th { position:sticky; top:0; background:var(--sunken); text-align:left; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-2); padding:8px 10px; white-space:nowrap; border-bottom:1px solid var(--line-strong) }
th[data-k] { cursor:pointer; user-select:none }
th[aria-sort="ascending"]::after { content:" ↑" }
th[aria-sort="descending"]::after { content:" ↓" }
td { padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top }
td.n { text-align:right; font-family:var(--mono); font-variant-numeric:tabular-nums }
td.dt { font-family:var(--mono); white-space:nowrap; font-size:12.5px }
td select { width:auto; padding:4px 6px; font-size:13px }
tr.lost td { color:var(--muted) }
tbody tr:hover td { background:color-mix(in srgb, var(--tape) 8%, var(--surface)) }
.obs { color:var(--ink-2); font-size:12px; max-width:280px }

/* ---------- janela de edição ---------- */
.dlg { border:0; padding:0; border-radius:10px; width:min(780px, calc(100vw - 24px)); max-height:calc(100vh - 24px); background:var(--surface); color:var(--ink); box-shadow:var(--shadow-lg) }
.dlg::backdrop { background:rgba(17,17,14,.5) }
.dlg .form { padding:18px 20px 16px }
.dlg-h { display:flex; justify-content:space-between; align-items:flex-start; gap:12px }
.dlg-h h2 { font-family:var(--display); font-size:28px; font-weight:600; margin:2px 0 0; line-height:1.05; text-wrap:balance }
.dlg-f { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:12px }

/* ---------- usuários ---------- */
.pend { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 20px; padding:14px 16px; border-bottom:1px solid var(--line); align-items:center }
.pend:last-child { border-bottom:0 }
.pend-info { display:grid; gap:2px }
.pend-acc { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; justify-content:flex-end }
.pend-acc .f { min-width:150px }
@media (max-width:720px) { .pend { grid-template-columns:1fr } .pend-acc { justify-content:flex-start } }
.convite-form { display:flex; flex-wrap:wrap; gap:10px 12px; align-items:flex-end; padding:14px 16px; border-bottom:1px solid var(--line) }
.convite-form .f { min-width:150px }
.convite-form .f-email { flex:1 1 260px }
.f-check { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--ink-2); padding:9px 4px }
.f-check input { width:16px; height:16px; accent-color:var(--ink) }
.convite-erro { padding:8px 16px 0 }
.legend { padding:12px 16px; font-size:13px; color:var(--ink-2) }
.legend ul { margin:6px 0 0; padding-left:18px; display:grid; gap:2px }

/* ---------- avisos ---------- */
.toasts { position:fixed; right:16px; bottom:16px; display:grid; gap:8px; z-index:100 }
.toast { background:var(--ink); color:var(--ground); padding:10px 14px; border-radius:6px; font-size:13px; box-shadow:var(--shadow-lg); max-width:360px }
.toast.err { background:var(--lost); color:#fff }
