:root {
  --bg: #16161d;
  --panel: #1e1e28;
  --panel-2: #262633;
  --line: #34344a;
  --text: #e8e8f0;
  --muted: #9a9ab0;
  --accent: #7c6cff;
  --accent-2: #5a4fcf;
  --danger: #e0556b;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select {
  font-family: inherit; font-size: 14px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 60px; }

.primary {
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 9px 14px; font-weight: 600;
}
.primary:hover { background: var(--accent-2); }
.ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
}
.ghost:hover { color: var(--text); border-color: var(--accent); }
.danger { color: var(--danger); background: transparent; border: 1px solid transparent; }
.danger:hover { border-color: var(--danger); border-radius: 6px; }

/* ---- sidebar ---- */
#sidebar {
  width: 280px; flex: 0 0 280px; height: 100vh;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px;
}
.brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.brand h1 { font-size: 16px; margin: 0; letter-spacing: .3px; }
.brand .primary { padding: 7px 10px; font-size: 13px; }
.nav { display: flex; gap: 4px; margin-bottom: 12px; }
.navbtn {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 0; border-radius: 8px; font-weight: 600; font-size: 13px;
}
.navbtn:hover { color: var(--text); }
.navbtn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
#search { width: 100%; margin-bottom: 12px; }
.kinari-list {
  list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.kinari-list::-webkit-scrollbar { width: 8px; }
.kinari-list::-webkit-scrollbar-track { background: transparent; }
.kinari-list::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 999px; border: 2px solid transparent; background-clip: content-box;
}
.kinari-list::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: content-box; }
.kinari-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 8px; margin-bottom: 4px; cursor: pointer;
}
.kinari-list li:hover { background: var(--panel-2); }
.kinari-list li.active { background: var(--accent); }
.kinari-list li.active .li-sub { color: #e6e2ff; }
.li-thumb {
  width: 38px; height: 38px; border-radius: 8px; flex: 0 0 38px;
  background: var(--panel-2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px;
}
.li-body { min-width: 0; flex: 1; }
.li-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hidden Kinari: always listed, but rendered ghosted / shadowy. */
.kinari-list li.hidden-kinari { position: relative; }
.kinari-list li.hidden-kinari .li-thumb { filter: grayscale(1) brightness(.62); }
.kinari-list li.hidden-kinari .li-name { color: var(--muted); font-style: italic; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.kinari-list li.hidden-kinari .li-sub,
.kinari-list li.hidden-kinari .dot { opacity: .55; }
.kinari-list li.hidden-kinari::after {
  content: ''; position: absolute; inset: 0; border-radius: 8px; pointer-events: none;
  box-shadow: inset 0 0 22px rgba(0,0,0,.6);
  background: linear-gradient(90deg, rgba(20,20,26,.35), rgba(20,20,26,0) 55%);
}
.kinari-list li.hidden-kinari.active .li-thumb { filter: none; }
.kinari-list li.hidden-kinari.active .li-name { color: #fff; font-style: normal; }
.kinari-list li.hidden-kinari.active::after { box-shadow: none; background: none; }
.li-sub { font-size: 11px; color: var(--muted); }
.li-dots { display: flex; gap: 3px; margin-top: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---- main ---- */
#main { flex: 1; height: 100vh; overflow-y: auto; }
.empty-state { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
#profile { padding: 28px 36px; max-width: 920px; margin: 0 auto; }

.p-header { display: flex; gap: 22px; margin-bottom: 22px; position: relative; }
.p-delete { position: absolute; top: 0; right: 0; }
.danger-solid {
  background: var(--danger); color: #fff; border: 1px solid var(--danger);
  border-radius: 8px; padding: 8px 14px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 2px 10px rgba(224,85,107,.35);
}
.danger-solid:hover { background: #c8394f; border-color: #c8394f; box-shadow: 0 3px 16px rgba(224,85,107,.55); }
.danger-solid:active { transform: translateY(1px); }
.p-image {
  width: 160px; height: 160px; flex: 0 0 160px; border-radius: var(--radius);
  background: var(--panel-2) center/cover no-repeat; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  cursor: pointer; position: relative; overflow: hidden; text-align: center; font-size: 12px;
}
.p-image:hover .img-hint { opacity: 1; }
.img-hint {
  position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: .15s;
  font-size: 13px; letter-spacing: .5px; pointer-events: none;
}
.img-edit {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: .15s;
}
.p-image:hover .img-edit { opacity: 1; }
.img-edit:hover { background: var(--accent); }
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.lightbox-img {
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.6);
}

/* ---- evolution line viewer ---- */
.evo-line-ov { cursor: default; }
.evo-line-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; max-width: 94vw; max-height: 90vh; overflow: auto;
  box-shadow: 0 18px 60px rgba(0,0,0,.5);
}
.evo-line-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.evo-line-head h3 { margin: 0; font-size: 16px; }
.evo-line-head button { padding: 4px 10px; }
.evo-line-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.evo-line-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-radius: 10px; padding: 8px; transition: transform .12s;
}
.evo-line-card:hover { transform: translateY(-2px); }
.evo-line-card.current { background: rgba(124,108,255,.12); box-shadow: 0 0 0 2px var(--accent) inset; }
.elc-img {
  width: 150px; height: 150px; object-fit: cover; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); display: block;
}
.elc-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 700; color: var(--muted);
}
.elc-name { font-size: 13px; font-weight: 600; text-align: center; max-width: 160px; }
.elc-arrow { color: var(--accent); font-size: 22px; font-weight: 700; display: flex; flex-direction: column; align-items: center; }
.elc-arrow-wrap { display: flex; flex-direction: column; align-items: center; }
.elc-method { color: var(--muted); font-size: 10px; font-weight: 600; }
.elc-branches { display: flex; flex-direction: column; gap: 16px; border-left: 2px solid var(--line); padding-left: 14px; }
.elc-branch { display: flex; align-items: center; gap: 12px; }
.p-head-main { flex: 1; min-width: 0; }
.p-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 110px; }
.p-name-row h2 { margin: 0; font-size: 26px; }
.dex { color: var(--muted); font-size: 14px; }
.region-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.region-chip::before { content: "◎"; font-size: 11px; color: var(--accent); }
.hidden-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  background: rgba(224,85,107,.14); color: var(--danger); border: 1px solid var(--danger);
}
.hidden-chip::before { content: "⦸"; font-size: 12px; }
.field-check .check-label {
  display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0;
  color: var(--text); cursor: pointer; font-size: 14px;
}
/* iOS-style toggle switch built from the bare checkbox */
.field-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  position: relative; flex: 0 0 auto; width: 44px; height: 26px; margin: 0; padding: 0;
  border: none; border-radius: 999px; background: var(--line);
  cursor: pointer; transition: background .2s ease;
}
.field-check input[type="checkbox"]::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.field-check input[type="checkbox"]:checked { background: var(--accent); }
.field-check input[type="checkbox"]:checked::after { transform: translateX(18px); }
.field-check input[type="checkbox"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(124,108,255,.3); }
.type-badges { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .4px; text-indent: .4px; text-transform: uppercase;
}
.p-desc { color: var(--muted); line-height: 1.55; white-space: pre-wrap; }
.header-actions { display: flex; gap: 8px; margin-top: 12px; }

.evo-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 22px;
}
.evo-bar .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.evo-chip {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer;
}
.evo-chip .x { color: var(--muted); cursor: pointer; }
.evo-chip .x:hover { color: var(--danger); }
.arrow { color: var(--accent); font-weight: 700; }
.evo-cell {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer;
}
.evo-cell:hover { border-color: var(--accent); }
.evo-cell.current {
  background: var(--accent); color: #fff; border-color: var(--accent);
  font-weight: 700; cursor: default; box-shadow: 0 0 0 3px rgba(124,108,255,.25);
}
.evo-empty { color: var(--muted); font-style: italic; }
.evo-chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evo-branches {
  display: flex; flex-direction: column; gap: 8px;
  border-left: 2px solid var(--line); padding-left: 12px;
}
.evo-branch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evo-method { color: var(--muted); font-size: 11px; }
.evo-note {
  font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; margin-left: 4px;
}
.evo-links {
  display: flex; gap: 6px; flex-wrap: wrap; width: 100%;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}

/* ---- tabs ---- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  background: transparent; border: none; color: var(--muted);
  padding: 10px 18px; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---- sections ---- */
.section { margin-bottom: 26px; }
.section h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px;
}
.section h3 button { font-size: 12px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px;
}
.card .row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card .name { font-weight: 600; }
.card .meta { color: var(--muted); font-size: 12px; }
.card .body { color: var(--muted); margin-top: 6px; line-height: 1.5; white-space: pre-wrap; }
.row-actions { display: flex; gap: 4px; }
.empty-line { color: var(--muted); font-style: italic; font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; text-align: center;
}
.stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 2px; }

.tcg-card-img {
  width: 70px; height: 96px; border-radius: 6px; flex: 0 0 70px;
  background: var(--panel-2) center/cover no-repeat; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; cursor: pointer;
}
.tcg-row { display: flex; gap: 14px; }
.tcg-attacks { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.tcg-attack { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.tcg-attack .eff { color: var(--muted); font-size: 12px; }

/* ---- metrics ---- */
.metrics-wrap { padding: 28px 36px; max-width: 920px; margin: 0 auto; }
.metrics-title { margin: 0 0 18px; font-size: 22px; }
.metric-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.bar-row {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; margin-bottom: 8px;
}
.bar-label { font-size: 13px; text-align: right; color: var(--text); }
.bar-track { background: var(--panel-2); border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; min-width: 2px; transition: width .3s; }
.bar-cap { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---- artwork tab ---- */
.art-wrap { }
.art-approved-row { display: flex; gap: 14px; flex-wrap: wrap; }
.art-approved { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.art-approved-img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 12px;
  border: 2px solid var(--accent); cursor: zoom-in; background: var(--panel-2);
}
.art-cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.art-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 22px; }
.art-busy { color: var(--muted); font-size: 12px; font-style: italic; }
.art-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.art-cand {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.art-cand.approved { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.art-cand.rejected { opacity: .5; }
.art-cand-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; cursor: zoom-in; background: var(--panel-2); }
.art-cand-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.art-cand-acts button { padding: 5px 10px; font-size: 12px; }
.art-att-title { font-size: 13px; font-weight: 600; color: var(--text); }
.art-credit { font-size: 12px; color: var(--muted); font-weight: 600; }
.art-source { font-size: 11px; color: var(--accent); text-decoration: none; }
.art-source:hover { text-decoration: underline; }
.art-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--accent); padding: 3px 8px; border: 1px solid var(--accent); border-radius: 999px;
}
.art-badge.rej { color: var(--danger); border-color: var(--danger); }
.art-prompt-box {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap;
  max-height: 220px; overflow-y: auto; color: var(--text);
}

/* ---- modal ---- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: 24px;
}
.modal h3 { margin: 0 0 8px; }
.modal-intro { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.field input, .field textarea, .field select { width: 100%; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---- auth screen ---- */
.auth-screen {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #23233400, var(--bg)); padding: 20px; z-index: 40;
}
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 380px; padding: 30px 28px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.auth-card h1 { margin: 0 0 4px; font-size: 22px; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.auth-card .field input { width: 100%; }
.auth-btn { width: 100%; margin-top: 6px; padding: 11px; }
.auth-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }

/* ---- user chip (sidebar footer) ---- */
.user-chip {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.user-chip:empty { display: none; }
.uc-info { min-width: 0; }
.uc-email { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-role { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; margin-top: 2px; }
.role-admin { color: #f3b64a; }
.role-modify { color: #6fc98a; }
.role-read { color: var(--muted); }
.user-chip button { padding: 5px 9px; font-size: 12px; flex: 0 0 auto; }

/* ---- request badge on Admin nav ---- */
.navbtn { position: relative; }
.req-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700;
}

/* ---- completeness meter ---- */
.li-complete { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.lc-track { flex: 1; height: 4px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.kinari-list li.active .lc-track { background: rgba(255,255,255,.25); }
.lc-fill { height: 100%; border-radius: 3px; }
.li-complete.ok  .lc-fill { background: #56c06e; }
.li-complete.mid .lc-fill { background: #e8b64a; }
.li-complete.low .lc-fill { background: #e0556b; }
.lc-pct { font-size: 10px; color: var(--muted); flex: 0 0 auto; width: 30px; text-align: right; }
.kinari-list li.active .lc-pct { color: #e6e2ff; }
.header-actions .li-complete { width: 160px; margin-top: 0; margin-left: 4px; }
.header-actions .lc-pct { color: var(--muted); }

/* ---- combination rows ---- */
.combo-label { display: flex; align-items: center; gap: 7px; justify-content: flex-end; text-align: right; }
.combo-swatches { display: inline-flex; gap: 2px; }
.combo-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bar-row.combo-row { grid-template-columns: 160px 1fr auto; }
.bar-row.combo-row.zero { opacity: .45; }
.bar-row.combo-row.zero .combo-dot { filter: grayscale(.5); }
.bar-row.combo-row.zero .bar-cap { color: var(--muted); }
.combo-group {
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700;
  color: var(--accent); margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
.combo-group:first-child { margin-top: 0; }

/* ---- admin portal ---- */
.admin-wrap { padding: 28px 36px; max-width: 920px; margin: 0 auto; }
.admin-wrap .card .row-top { align-items: center; }
.admin-wrap select { padding: 5px 8px; }
.pill {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.pill.you { color: var(--accent); border-color: var(--accent); }
.admin-wrap textarea { width: 100%; min-height: 54px; }
.tpl-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---- toast ---- */
.toast-host {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center;
}
.toast {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 16px; font-size: 13px; box-shadow: 0 8px 28px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { border-color: var(--danger); color: #ffd7de; }
