/* ARBR web — house theme ported from Sell Scan. Desktop-first split-pane. */
:root {
  --bg: #0B0B0D; --surface: #161719; --surface-alt: #202229; --border: #2A2C33;
  --text: #F5F6F8; --muted: #9A9DA6; --accent: #E6A817; --green: #3BB273; --red: #E5534B;
  --purple: #9b6cf0; --blue: #4a90e2;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.app-root { height: 100vh; display: flex; flex-direction: column; }

/* ---- top bar + nav ---- */
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 2px 6px; border-radius: 10px; transition: background 0.15s; }
.brand:hover { background: var(--surface-alt); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand small { color: var(--muted); font-weight: 800; font-size: 14px; letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; }
.nav a.active { color: var(--text); background: var(--surface-alt); }
.nav a:hover { color: var(--text); }
.spacer { flex: 1; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.user-chip b { color: var(--text); }
.role-tag { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--accent); }

/* ---- buttons ---- */
button { font-family: inherit; cursor: pointer; }
.btn { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 12px; }
.btn:hover { border-color: var(--muted); }
.btn-accent { background: var(--accent); color: #1A1206; border: none; }
.btn-accent:focus { outline: 3px solid rgba(230,168,23,0.4); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-ghost { background: transparent; border: none; color: var(--muted); font-weight: 700; }
.btn:disabled, .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }

/* ---- content + split-pane ---- */
.content { flex: 1; min-height: 0; overflow: hidden; }
/* a standalone pane (admin/activity/exceptions/…) must scroll on its own —
   without an explicit height it grew past .content and couldn't scroll */
.content > .pane { height: 100%; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; height: 100%; }
.pane { min-height: 0; overflow-y: auto; padding: 20px; }
.pane.left { border-right: 1px solid var(--border); }
.pane.right { background: var(--surface); }
.pane-title { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* ---- capture / inputs ---- */
.capture { width: 100%; background: var(--bg); border: 2px solid var(--accent); color: var(--text); font-size: 20px; font-family: var(--mono); padding: 16px; border-radius: 14px; outline: none; }
.input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 16px; padding: 12px 14px; border-radius: 12px; outline: none; }
.input:focus, .capture:focus { border-color: var(--accent); }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ---- product card ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-top: 16px; }
.card-name { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.card-price { color: var(--accent); font-size: 24px; font-weight: 900; margin: 0 0 14px; }
.card-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.card-grid .k { color: var(--muted); font-weight: 700; }
.card-grid .v { word-break: break-word; }
.card-photo { width: 100%; max-width: 320px; border-radius: 12px; margin-bottom: 14px; background: var(--surface-alt); }
.card-photo.no-photo { display: flex; align-items: center; justify-content: center; height: 160px; color: var(--muted); font-weight: 700; }

/* ---- routing line ---- */
.routing { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--border); font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.routing.bad { border-color: var(--red); color: var(--red); }
.routing.ok { border-color: var(--green); }
.size-toggle { display: inline-flex; gap: 6px; }
.size-toggle button { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-weight: 700; font-size: 12px; }
.size-toggle button.on { background: var(--accent); color: #1A1206; border-color: var(--accent); }

/* ---- alias / banners ---- */
.banner { padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; margin-top: 12px; }
.banner.alias { background: rgba(155,108,240,0.15); color: var(--purple); border: 1px solid var(--purple); }
.banner.warn { background: rgba(230,168,23,0.12); color: var(--accent); border: 1px solid var(--accent); }

/* ---- actions ---- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* A6 convert visual refresh: distinct session bar + clearer sectioning */
.session-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 8px 0 14px; background: var(--surface-alt); border-radius: 10px; font-size: 13px; }
.session-bar .spacer { flex: 1; }
.pane.left .card { margin-top: 6px; }
/* left state accents on log rows */
.log-row { border-left: 3px solid transparent; padding-left: 10px; }
.log-row:has(.state.verified) { border-left-color: #1fb062; }
.log-row:has(.state.failed) { border-left-color: #c0392b; }
.log-row:has(.state.queued), .log-row:has(.state.sent) { border-left-color: #b7791f; }

/* ---- chips ---- */
.chip { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-alt); padding: 3px 9px; border-radius: 999px; }
/* plain-language status tones (owner feedback) */
.chip.active, .chip.on { color: #6fe0a1; background: rgba(59,178,115,0.16); border: 1px solid rgba(59,178,115,0.35); }
.chip.removed, .chip.neutral { color: var(--muted); background: var(--surface-alt); border: 1px solid var(--border); }
.chip.replaced { color: #8ab8ec; background: rgba(74,144,226,0.16); border: 1px solid rgba(74,144,226,0.35); }
.chip.failed, .chip.warn { color: #ff8d85; background: rgba(229,83,75,0.16); border: 1px solid rgba(229,83,75,0.35); }
.chip.doubt, .chip.pending { color: #f0c063; background: rgba(230,168,23,0.16); border: 1px solid rgba(230,168,23,0.35); }
.data-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-grid th, .data-grid td { padding: 6px 10px; border-bottom: 1px solid var(--surface-alt); vertical-align: top; }
.data-grid th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-grid tr:hover td { background: var(--surface-alt); }
.copy-history { padding-left: 18px; }
.list-row.sub { font-size: 12px; color: var(--muted); padding: 4px 0; }

/* ---- live log / lists ---- */
.log-row, .list-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
.log-row .grow, .list-row .grow { flex: 1; min-width: 0; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.state { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 999px; }
.state.queued { color: var(--muted); background: var(--surface-alt); }
.state.sent { color: var(--blue); background: rgba(74,144,226,0.15); }
.state.verified { color: var(--green); background: rgba(59,178,115,0.15); }
.state.voided, .state.void { color: var(--red); background: rgba(229,83,75,0.12); }
.state.failed { color: var(--accent); background: rgba(230,168,23,0.12); }
.state.active { color: var(--green); }
.state.suspect { color: var(--accent); }
.state.retired, .state.destroyed { color: var(--muted); }

/* ---- stepper (multi-copy §6.6) ---- */
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; }
.stepper .num { font-size: 28px; font-weight: 900; min-width: 48px; text-align: center; font-family: var(--mono); }
.stepper button { width: 46px; height: 46px; border-radius: 12px; font-size: 24px; font-weight: 800; flex: none; }
.qty-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 0; }
.qty-chips button { width: auto; height: auto; padding: 6px 12px; border-radius: 999px; font-size: 14px; }

/* ---- exception overlay (§6.4) ---- */
.exception { position: fixed; inset: 0; background: rgba(150,20,15,0.96); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
/* popup cards never exceed the viewport; long content scrolls inside them */
.exception .card { width: min(440px, 92vw); max-width: 92vw; max-height: 88vh; overflow-y: auto; text-align: left; }
.exception .card .stepper, .exception .card .btn { max-width: 100%; }
.exception h1 { font-size: 40px; margin: 0; letter-spacing: 1px; }
.exception .code { font-family: var(--mono); font-size: 22px; }

/* Notice bar — the latest failure/message, DETACHED from the session log with a
   clear gap so it reads as an alert, not a log row. */
.notice-bar { min-height: 0; margin-bottom: 16px; }
.notice-bar:empty { margin-bottom: 0; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 600; border: 1px solid transparent; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.notice.warn { background: rgba(229,83,75,0.14); border-color: rgba(229,83,75,0.5); color: #ff8b83; }
.notice.ok { background: rgba(59,178,115,0.14); border-color: rgba(59,178,115,0.45); color: #57d199; }
.notice-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; box-shadow: 0 0 8px currentColor; }
.notice-time { color: var(--muted); font-size: 12px; }
.notice-x { background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 14px; padding: 0 2px; }
.notice-x:hover { opacity: 1; }

/* ---- login ---- */
.login { max-width: 360px; margin: 12vh auto; padding: 32px; }
.login-logo { height: 52px; width: auto; display: block; margin: 0 0 10px; }
.login h1 { color: var(--accent); font-size: 34px; margin: 0 0 6px; }
.login p { color: var(--muted); margin: 0 0 24px; }
.login .input { margin-bottom: 12px; }
.login .err { color: var(--red); font-size: 13px; font-weight: 700; min-height: 18px; margin-top: 6px; }

/* ---- homescreen (§6.10) ---- */
.home { padding: 40px 32px; max-width: 1100px; margin: 0 auto; }
.home-head { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.logo-slot { height: 64px; border-radius: 18px; display: flex; align-items: center; flex: none; }
.logo-img { height: 56px; width: auto; }
.home-title { font-size: 30px; font-weight: 900; margin: 0; }
.home-sub { color: var(--muted); margin: 0; font-size: 16px; }
.home-footer { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.thg-logo { height: 30px; width: auto; opacity: 0.85; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: border-color 0.1s, transform 0.05s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile-icon { font-size: 30px; color: var(--accent); }
.tile-label { font-size: 19px; font-weight: 800; }
.tile-hint { font-size: 13px; color: var(--muted); }
.tile-disabled { opacity: 0.4; cursor: not-allowed; }
.tile-disabled:hover { border-color: var(--border); transform: none; }

/* ---- admin matrix ---- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
table.grid { border-collapse: collapse; }
table.grid th, table.grid td { border: 1px solid var(--border); padding: 8px 12px; font-size: 13px; }
table.grid th { color: var(--muted); font-weight: 700; }
table.grid td.mono { white-space: nowrap; }

.group-head { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); padding: 12px 4px 6px; border-bottom: 1px solid var(--border); }

/* ---- dashboards (§7.8) ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.stat-value { font-size: 30px; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 13px; font-weight: 700; margin-top: 4px; }
/* compact stat tiles (Diagnostics → Server resources) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat-tile { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.stat-tile .stat-value { font-size: 22px; }
.stat-tile .stat-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.conv-row { display: grid; grid-template-columns: 1fr 200px auto; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.conv-name { font-size: 13px; }
.conv-pct { font-size: 12px; color: var(--muted); text-align: right; }
.bar { height: 10px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green); }
.serial-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; }
.serial-pick { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.serial-pick:last-child { border-bottom: none; }
.serial-pick .mono { color: var(--muted); font-size: 11px; }

.empty { color: var(--muted); text-align: center; padding: 40px 10px; font-size: 14px; }
.section { margin-bottom: 26px; }
.section h3 { font-size: 15px; margin: 0 0 10px; }
.disabled-panel { opacity: 0.55; border: 1px dashed var(--border); border-radius: 14px; padding: 18px; }
.coming { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* iScan-RFID — its own mobile-first app surface (decision #12) */
.iscan { max-width: 640px; margin: 0 auto; min-height: calc(100dvh - 120px); display: flex; flex-direction: column; }
.iscan-page { flex: 1; padding: 8px 14px 80px; }
.iscan-tabs { position: sticky; bottom: 0; display: flex; gap: 6px; padding: 8px; background: var(--surface); border-top: 1px solid var(--border); }
.iscan-tab { flex: 1; padding: 12px; border-radius: 10px; border: 0; background: var(--surface-alt); color: var(--muted); font-weight: 700; font-size: 14px; }
.iscan-tab.on { background: var(--accent); color: #1a1a1a; }
.iscan-head { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.iscan-head .spacer { flex: 1; }
.iscan-big { text-align: center; margin: 24px 0; }
.iscan-count { font-size: 88px; font-weight: 800; line-height: 1; }
.iscan-stats { display: flex; gap: 8px; margin: 16px 0; }
.iscan-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.iscan-passes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.iscan-buckets { display: flex; gap: 8px; margin: 12px 0; }
.iscan-bucket { flex: 1; text-align: center; padding: 10px; border-radius: 10px; background: var(--surface-alt); }
.iscan-reader { padding: 12px; border-radius: 10px; background: var(--surface-alt); margin: 8px 0; }
.iscan-reader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* ================= UI overhaul (owner test round) =================
   Less clutter, more color: consistent sections, hover states, colored
   accents; new components: company cards, design rows, job rows, toasts,
   the menu-bar server status. */

/* buttons feel alive */
.btn { transition: transform 0.06s ease, border-color 0.12s ease, background 0.12s ease; }
.btn:active { transform: scale(0.97); }
.btn-accent { background: linear-gradient(180deg, #F2B62B, #DE9E0E); }
.btn-accent:hover { filter: brightness(1.06); }

/* section headers get an accent tick */
.section { margin-top: 22px; }
.section > h3, .section h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.section > h3::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }

/* pane titles */
.pane-title { display: flex; align-items: center; gap: 8px; }

/* rows hover */
.list-row:hover, .job-row:hover, .design-row:hover { background: rgba(255,255,255,0.025); }

/* nav active pill */
.nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }

/* home tiles: colored icons per position, lift on hover */
.tile { transition: transform 0.1s ease, border-color 0.12s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile .tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; background: rgba(230,168,23,0.14); color: var(--accent); }
.tile:nth-child(2) .tile-icon { background: rgba(59,178,115,0.14); color: var(--green); }
.tile:nth-child(3) .tile-icon { background: rgba(74,144,226,0.14); color: var(--blue); }
.tile:nth-child(4) .tile-icon { background: rgba(155,108,240,0.14); color: var(--purple); }
.tile:nth-child(5) .tile-icon { background: rgba(229,83,75,0.14); color: var(--red); }
.tile:nth-child(6) .tile-icon { background: rgba(59,178,115,0.14); color: var(--green); }
.tile:nth-child(7) .tile-icon { background: rgba(74,144,226,0.14); color: var(--blue); }
.tile:nth-child(8) .tile-icon { background: rgba(155,108,240,0.14); color: var(--purple); }
.tile:nth-child(9) .tile-icon { background: rgba(230,168,23,0.14); color: var(--accent); }

/* stat tiles: colored top edge, bigger numbers */
.stat { border-top: 3px solid var(--accent); border-radius: 12px; }
.stat:nth-child(2) { border-top-color: var(--blue); }
.stat:nth-child(3) { border-top-color: var(--purple); }
.stat:nth-child(4) { border-top-color: var(--red); }
.stat:nth-child(5) { border-top-color: var(--green); }
.stat:nth-child(6) { border-top-color: var(--blue); }
.stat:nth-child(7) { border-top-color: var(--purple); }

/* admin subnav pills */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.subnav .btn { border-radius: 999px; }
.subnav .btn.btn-accent { box-shadow: 0 2px 10px rgba(230,168,23,0.25); }

/* banners get an ok tone too */
.banner.ok { background: rgba(59,178,115,0.12); color: var(--green); border: 1px solid var(--green); }

/* ---- menu-bar server status ---- */
.server-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface-alt); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.server-status.online .status-dot { background: var(--green); box-shadow: 0 0 6px rgba(59,178,115,0.8); }
.server-status.online { color: var(--green); }
.server-status.offline .status-dot { background: var(--red); animation: statusPulse 1.2s infinite; }
.server-status.offline { color: var(--red); }
/* blue "offline mode" pill — prints are being queued locally, not lost */
.server-status.offline-mode { color: #2b6cff; background: rgba(43,108,255,0.12); }
.server-status.offline-mode .status-dot { background: #2b6cff; animation: statusPulse 1.2s infinite; }
@keyframes statusPulse { 50% { opacity: 0.4; } }

/* ---- Templates: company cards + design rows ---- */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.company-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform 0.1s ease, border-color 0.12s ease; }
.company-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.company-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.company-logo { height: 34px; width: auto; border-radius: 8px; }
.company-name { font-size: 16px; font-weight: 800; }
.company-designs { display: flex; flex-wrap: wrap; gap: 6px; }
.design-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
.design-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.design-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.design-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

/* ---- Convert: session-print job rows ---- */
.job-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--surface); border-left: 3px solid var(--border); }
.job-row:has(.state.verified) { border-left-color: var(--green); }
.job-row:has(.state.voided), .job-row:has(.state.failed) { border-left-color: var(--red); }
.job-row:has(.state.queued), .job-row:has(.state.sent) { border-left-color: var(--accent); }
/* per-copy EPC detail, expanded from a job row */
.copy-detail { margin: -4px 0 10px 14px; padding: 6px 10px; border-left: 2px solid var(--border); }
.copy-line { display: flex; gap: 10px; align-items: center; font-size: 12px; padding: 3px 0; }
.copy-line .mono { color: var(--muted); }
.job-row .epc { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); word-break: break-all; }
.job-row b.mono { color: var(--text); font-size: 13px; }

/* ---- toasts ---- */
.toast-host { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,0.45); animation: toastIn 0.15s ease; }
.toast.good { background: #123524; color: #7ee2a8; border: 1px solid var(--green); }
.toast.bad { background: #3a1512; color: #ff9d96; border: 1px solid var(--red); }
@keyframes toastIn { from { transform: translateY(6px); opacity: 0; } }

/* subtle scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-alt); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }
