/* ---------- tokens (Linear-inspired) ---------- */
:root {
  --bg: #0f1011; --bg-2: #141516; --bg-3: #191a1c; --bg-4: #1f2023; --bg-hover: #202124;
  --border: #26272b; --border-2: #2f3035;
  --text: #ededef; --text-2: #b4b6bd; --muted: #8a8f98; --muted-2: #62666d;
  --accent: #5e6ad2; --accent-2: #6f7ae0; --accent-text: #fff;
  --ok: #4cb782; --ok-bg: rgba(76,183,130,.14);
  --ko: #eb5757; --ko-bg: rgba(235,87,87,.14);
  --doubt: #f2b84b; --doubt-bg: rgba(242,184,75,.16);
  --warn: #f2994a; --purple: #b57bee; --blue: #4ea7fc; --teal: #26b5ce;
  --shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 0 1px var(--border);
  --radius: 6px; --radius-lg: 10px;
  --kbd-bg: #1d1e21; --kbd-border: #34353a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  --bg: #fff; --bg-2: #fbfbfb; --bg-3: #f7f7f8; --bg-4: #f0f0f2; --bg-hover: #f2f2f4;
  --border: #e6e6e8; --border-2: #d9d9dd;
  --text: #282a30; --text-2: #4b4e55; --muted: #6b6f76; --muted-2: #9a9ea6;
  --accent: #5e6ad2; --accent-2: #4f5bc7;
  --ok: #2f9e6b; --ok-bg: rgba(47,158,107,.12);
  --ko: #d64545; --ko-bg: rgba(214,69,69,.12);
  --doubt: #c98a12; --doubt-bg: rgba(201,138,18,.12);
  --shadow: 0 8px 30px rgba(0,0,0,.12), 0 0 0 1px var(--border);
  --kbd-bg: #f3f3f5; --kbd-border: #d9d9dd;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent-2); text-decoration: none; }
::selection { background: rgba(94,106,210,.35); }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--kbd-bg); border: 1px solid var(--kbd-border); box-shadow: 0 1px 0 var(--kbd-border); font: 500 10.5px/1 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.hidden { display: none !important; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--bg-3); color: var(--text); font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--bg-hover); border-color: var(--muted-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn.danger { color: var(--ko); }
.btn kbd { margin-left: 2px; }
.input, textarea.input, select.input { height: 30px; padding: 0 9px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--bg); color: var(--text); outline: none; width: 100%; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(94,106,210,.25); }
textarea.input { height: auto; min-height: 64px; padding: 7px 9px; resize: vertical; }
select.input { appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- layout ---------- */
#app { display: flex; height: 100vh; }
.sidebar { width: 224px; flex: none; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--border); padding: 12px 10px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 12px; font-weight: 600; font-size: 13px; }
.brand .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--bg-hover); color: var(--text); }
.nav a.active { background: var(--bg-4); color: var(--text); }
.nav a svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.nav a.active svg { color: var(--accent-2); }
.nav a kbd { margin-left: auto; opacity: 0; }
.nav a:hover kbd { opacity: 1; }
.nav .section { margin: 14px 8px 4px; font-size: 11px; font-weight: 500; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.sidebar .spacer { flex: 1; }
.sidebar .progress-card { margin: 8px 4px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-3); }
.progress-card .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.progress-card .row b { color: var(--text); font-weight: 500; }
.bar { height: 4px; border-radius: 3px; background: var(--bg-4); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar i.ok { background: var(--ok); } .bar i.ko { background: var(--ko); } .bar i.doubt { background: var(--doubt); }
.userbox { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius); }
.userbox:hover { background: var(--bg-hover); }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; background: var(--accent); flex: none; }
.userbox .name { flex: 1; font-weight: 500; }
.userbox .name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.iconbtn { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; color: var(--muted); }
.iconbtn:hover { background: var(--bg-4); color: var(--text); }
.iconbtn svg { width: 15px; height: 15px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.topbar .crumb { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar .crumb .sep { color: var(--muted-2); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.content { flex: 1; min-height: 0; overflow: auto; }
.page { padding: 20px 24px 40px; max-width: 1280px; }
.page h1 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.page .sub { color: var(--muted); margin-bottom: 18px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--bg-3); font-size: 11.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chip.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.chip.ko { color: var(--ko); background: var(--ko-bg); border-color: transparent; }
.chip.doubt { color: var(--doubt); background: var(--doubt-bg); border-color: transparent; }
.chip.reason { border-color: transparent; background: var(--bg-4); }
.color { --rc: #f2994a; } .material { --rc: #b57bee; } .shape { --rc: #4ea7fc; } .label { --rc: #26b5ce; } .logo { --rc: #e05c9a; }
.pattern { --rc: #8bc34a; } .details { --rc: #5e6ad2; } .artifacts { --rc: #ef6a3d; } .other { --rc: #8a8f98; }
.chip.reason { color: var(--rc, var(--muted)); }
.hbar .track i.rc { background: var(--rc, var(--accent)); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ---------- login ---------- */
.login { margin: auto; width: 340px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 16px; margin: 0; }
.login .err { color: var(--ko); font-size: 12px; }
.center { display: grid; place-items: center; height: 100vh; width: 100%; }

/* ---------- review ---------- */
.review { display: flex; height: 100%; }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px; gap: 10px; }
.stage-head { display: flex; align-items: center; gap: 10px; }
.stage-head .title { font-weight: 600; font-size: 14px; }
.stage-head .seg { margin-left: auto; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.seg button { height: 28px; padding: 0 10px; color: var(--muted); font-weight: 500; border-right: 1px solid var(--border-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--bg-4); color: var(--text); }
.panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 10px; overflow: hidden; }
.pane { position: relative; min-height: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.pane .label { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; gap: 6px; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(15,16,17,.72); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); }
:root[data-theme="light"] .pane .label { background: rgba(255,255,255,.8); color: #282a30; box-shadow: 0 0 0 1px var(--border); }
.pane .imgwrap { flex: 1; min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; cursor: crosshair; overflow: hidden; }
.pane img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; border-radius: 3px; background: #fff; transition: transform .12s ease-out; will-change: transform; }
.pane .imgwrap { cursor: zoom-in; }
.panes.zoomed .imgwrap { cursor: zoom-out; }
.panes.zoomed .pane img { transition: none; }
.pane.missing .imgwrap { color: var(--muted); font-size: 12px; cursor: default; }
.pane .lens { position: absolute; pointer-events: none; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 6px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.4); background-repeat: no-repeat; background-color: #fff; display: none; z-index: 3; }
.pane .lens.on { display: block; }
/* overlay mode */
.panes.overlay { grid-template-columns: 1fr; }
.overlay .pane .imgwrap { cursor: ew-resize; }
.overlay .stack { position: relative; max-width: 100%; max-height: 100%; height: 100%; aspect-ratio: 1 / 1; }
.overlay .stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.overlay .stack .top { clip-path: inset(0 0 0 var(--split, 50%)); }
.overlay .stack .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--accent); transform: translateX(-1px); z-index: 2; }
.overlay .stack .handle::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--accent); color: #fff; font-size: 10px; padding: 3px 6px; border-radius: 10px; white-space: nowrap; }
.overlay .stack .tag { position: absolute; top: 8px; z-index: 2; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(15,16,17,.72); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.overlay .stack .tag.l { left: 8px; } .overlay .stack .tag.r { right: 8px; }
/* toggle mode */
.panes.toggle { grid-template-columns: 1fr; }
.toggle .pane .label { transition: background .1s; }
.toggle .pane .label.result { background: var(--accent); }

.stage-foot { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; min-height: 22px; flex-wrap: wrap; }
.stage-foot .hint { display: inline-flex; align-items: center; gap: 5px; }

/* right panel */
.panel { width: 300px; flex: none; border-left: 1px solid var(--border); background: var(--bg-2); display: flex; flex-direction: column; padding: 14px; gap: 14px; overflow: auto; }
.panel h3 { margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verdicts.three { grid-template-columns: 1fr 1fr 1fr; }
.vbtn { height: 44px; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: var(--bg-3); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; transition: all .12s; }
.vbtn kbd { margin-left: 2px; }
.vbtn:hover { border-color: var(--muted-2); }
.vbtn.ok.active { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.vbtn.ko.active { background: var(--ko-bg); border-color: var(--ko); color: var(--ko); }
.vbtn.doubt.active { background: var(--doubt-bg); border-color: var(--doubt); color: var(--doubt); }
.verdicts.three .vbtn { font-size: 13px; gap: 5px; padding: 0 4px; }
/* reason chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.disabled { opacity: .35; pointer-events: none; }
.rchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 10px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--bg-3); color: var(--text-2); font-weight: 500; font-size: 12.5px; transition: all .1s; }
.rchip:hover { border-color: var(--muted-2); color: var(--text); }
.rchip kbd { height: 15px; min-width: 15px; font-size: 9.5px; padding: 0 3px; }
.rchip.on { background: color-mix(in srgb, var(--rc, var(--accent)) 18%, transparent); border-color: var(--rc, var(--accent)); color: var(--rc, var(--accent)); }
.rchip.on kbd { color: inherit; border-color: color-mix(in srgb, var(--rc, var(--accent)) 40%, transparent); background: transparent; }
.reasons { display: flex; flex-direction: column; gap: 4px; }
.reason { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius); border: 1px solid transparent; color: var(--text-2); font-weight: 500; }
.reason:hover { background: var(--bg-hover); }
.reason .box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border-2); display: grid; place-items: center; background: var(--bg); flex: none; }
.reason .box svg { width: 10px; height: 10px; display: none; color: #fff; }
.reason.on .box { background: var(--accent); border-color: var(--accent); }
.reason.on .box svg { display: block; }
.reason.on { color: var(--text); }
.reason kbd { margin-left: auto; }
.reason small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.reasons.disabled { opacity: .35; pointer-events: none; }
.panel .actions { display: flex; flex-direction: column; gap: 6px; }
.panel .actions .btn { justify-content: space-between; height: 32px; }
.panel .meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: 12px; }
.panel .meta b { color: var(--text-2); font-weight: 500; }
.editing { padding: 8px 10px; border-radius: var(--radius); background: rgba(94,106,210,.12); border: 1px solid rgba(94,106,210,.35); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.editing .btn { margin-left: auto; }
.done-state { margin: auto; text-align: center; color: var(--muted); max-width: 380px; }
.done-state h2 { color: var(--text); font-size: 18px; margin: 0 0 8px; }
.done-state .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); }
.kpi .l { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 22px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.01em; }
.kpi .s { font-size: 11.5px; color: var(--muted); }
.kpi.ok .v { color: var(--ok); } .kpi.ko .v { color: var(--ko); } .kpi.doubt .v { color: var(--doubt); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); padding: 14px 16px; }
.card h2 { font-size: 13px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .right { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; margin: 6px 0; font-size: 12px; }
.hbar .track { height: 8px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 4px; }
.hbar .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar.link { cursor: pointer; border-radius: 4px; } .hbar.link:hover { background: var(--bg-hover); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.link { cursor: pointer; } .tbl tr.link:hover td { background: var(--bg-hover); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ok { color: var(--ok); } .tbl .ko { color: var(--ko); } .tbl .doubt { color: var(--doubt); }
.tbl .bar { width: 120px; height: 6px; }
.days { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.days .d { flex: 1; max-width: 36px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 6px; position: relative; }
.days .d i { display: block; } .days .d i.ok { background: var(--ok); border-radius: 2px 2px 0 0; } .days .d i.doubt { background: var(--doubt); } .days .d i.ko { background: var(--ko); }
.days .d:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-4); border: 1px solid var(--border-2); padding: 3px 6px; border-radius: 4px; white-space: nowrap; font-size: 11px; z-index: 5; }

/* gallery */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 150px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.gcard { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; cursor: pointer; transition: border-color .12s; }
.gcard:hover { border-color: var(--muted-2); }
.gcard .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); aspect-ratio: 2 / 1; }
.gcard .thumbs img { width: 100%; height: 100%; object-fit: cover; background: #fff; display: block; }
.gcard .thumbs .none { display: grid; place-items: center; font-size: 11px; color: var(--muted); background: var(--bg-3); }
.gcard .body { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.gcard .name { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .row { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.gcard .cmt { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* history list */
.hist .thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #fff; display: block; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; backdrop-filter: blur(2px); }
.modal { width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-2); border-radius: 12px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.modal.wide { width: min(1200px, calc(100vw - 32px)); height: calc(100vh - 48px); }
.modal h2 { font-size: 14px; margin: 0; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 12.5px; }
.shortcuts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--border); }
.shortcuts span kbd + kbd { margin-left: 3px; }

/* toasts */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 100; pointer-events: none; }
.toast { padding: 8px 12px; border-radius: 8px; background: var(--bg-4); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 12.5px; display: flex; align-items: center; gap: 8px; animation: pop .15s ease-out; }
.toast.err { border-color: var(--ko); color: var(--ko); }
.toast.ok { border-color: var(--ok); } .toast.ko { border-color: var(--ko); } .toast.doubt { border-color: var(--doubt); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* users */
.users-form { display: grid; grid-template-columns: 1fr 1fr 130px auto; gap: 8px; align-items: end; margin-bottom: 18px; }
