/* BackupXo design system */
:root {
  --bg: #0d1117;
  --bg-side: #0a0e14;
  --panel: #111722;
  --panel-2: #10161f;
  --panel-3: #141b26;
  --hover: #1a2331;
  --chip: #1a2231;
  --track: #1e2634;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.1);
  --border-row: rgba(255, 255, 255, 0.05);
  --text: #e6e9ef;
  --text-2: #c8cfdb;
  --muted: #8a93a3;
  --muted-2: #7d879a;
  --dim: #5c6577;
  --nav: #a3abbb;
  --accent: #6d8cff;
  --accent-2: #83a0ff;
  --accent-text: #8fa6ff;
  --accent-text-2: #b3c2ff;
  --accent-soft: rgba(109, 140, 255, 0.14);
  --accent-border: rgba(109, 140, 255, 0.4);
  --ok: #3ecf8e;
  --ok-soft: rgba(62, 207, 142, 0.12);
  --warn: #f5b544;
  --warn-soft: rgba(245, 181, 68, 0.12);
  --err: #f0616d;
  --err-soft: rgba(240, 97, 109, 0.12);
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
code, pre, .mono { font-family: var(--mono); font-size: 12px; }
code { color: var(--text-2); }
small, .small { font-size: 11.5px; }
.muted { color: var(--muted-2); }
.muted-2 { color: var(--dim); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.hidden { display: none !important; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3140; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- layout ---------- */
.shell { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 228px; flex: none; display: flex; flex-direction: column; background: var(--bg-side); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, #6d8cff, #4a5fd6); display: grid; place-items: center; flex: none; box-shadow: 0 4px 14px rgba(109, 140, 255, 0.25); }
.brand-mark i { position: relative; width: 18px; height: 18px; display: block; }
.brand-mark i::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, 0.55); }
.brand-mark i::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px #5670e6; }
.brand-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; line-height: 1.1; }
.brand-name span { color: var(--accent-text); }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); }
.nav-section { padding: 0 20px 6px; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.nav-section + .nav-section, .nav + .nav-section { margin-top: 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--nav); font-weight: 400; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: #fff; font-weight: 600; }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #2a3140; flex: none; margin: 0; }
.nav-item.active .dot { background: var(--accent); }
.nav-item span { flex: 1; }
.nav-item .count { flex: none; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.sidebar-spacer { flex: 1; }
.side-card { margin: 0 12px 12px; padding: 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.06); }
.side-card .row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.side-card .row-top b { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--text-2); }
.side-card .track { height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.side-card .track div { height: 100%; background: var(--accent); }
.side-card .foot { margin-top: 7px; font-size: 11px; color: var(--dim); }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--border); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #1c2536; color: var(--accent-text); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.user-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.link-btn { background: none; border: 0; color: var(--muted-2); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
.link-btn:hover { color: var(--text); }
.link-btn.accent { color: var(--accent-text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--border); background: var(--bg); flex: none; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title .h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title { font-size: 18px; font-weight: 600; }
.subtitle { color: var(--muted-2); font-size: 12px; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 34px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--border-2); color: var(--muted-2); width: 220px; font-size: 12px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; outline: none; padding: 0; }
.search input::placeholder { color: var(--muted-2); }
.search kbd { font-family: var(--mono); font-size: 10px; border: 1px solid var(--border-2); padding: 1px 5px; border-radius: 4px; color: var(--muted-2); }
.search .q { color: var(--dim); }
.content { flex: 1; overflow: auto; padding: 24px 28px 40px; }
.content > * { max-width: 1500px; }
.health { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.health::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.health.ok { background: var(--ok-soft); color: var(--ok); }
.health.warn { background: var(--warn-soft); color: var(--warn); }
.health.err { background: var(--err-soft); color: var(--err); }
.health.muted { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

@media (max-width: 860px) {
  .shell { height: auto; overflow: visible; flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-section, .side-card, .sidebar-spacer { display: none; }
  .main { overflow: visible; }
  .content { overflow: visible; padding: 16px; }
  .topbar { padding: 14px 16px; }
  .search { display: none; }
}

/* ---------- cards / grids ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-h h2 { font-size: 14px; }
.card-h .small { font-size: 12px; }
.card-b { padding: 16px 18px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.grid.split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.stat { padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.stat .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.stat .value { display: flex; align-items: baseline; gap: 8px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat .value .sub, .stat .sub { font-size: 12px; font-weight: 400; color: var(--muted-2); letter-spacing: 0; }
.stat .value .good { font-size: 12px; font-weight: 500; color: var(--ok); letter-spacing: 0; }
.stat .value .bad { font-size: 12px; font-weight: 500; color: var(--err); letter-spacing: 0; }
.stat.ok .value { color: var(--ok); }
.stat.err .value { color: var(--err); }
.strip { display: flex; gap: 3px; }
.strip i { flex: 1; height: 6px; border-radius: 2px; background: #2a3140; display: block; }
.strip i.ok { background: var(--ok); } .strip i.err { background: var(--err); } .strip i.warn { background: var(--warn); } .strip i.muted { background: #2a3140; }
.bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.bars i { flex: 1; border-radius: 1px; background: var(--ok); display: block; min-height: 3px; }
.bars i.err { background: var(--err); } .bars i.warn { background: var(--warn); } .bars i.muted { background: #2a3140; }
.usage { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.usage div { height: 100%; background: var(--accent); }

/* server cards */
.server-card { padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.server-card:hover { border-color: var(--accent-border); color: var(--text); }
.server-card .t { display: flex; align-items: center; gap: 8px; }
.server-card .t b { flex: 1; font-weight: 600; }
.server-card .t .v { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.server-card .host { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.server-card .f { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }
.server-card .f span:last-child { color: var(--text-2); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2a3140; margin-right: 6px; flex: none; }
.dot.ok { background: var(--ok); } .dot.err { background: var(--err); } .dot.warn { background: var(--warn); } .dot.run { background: var(--accent); }

/* timeline */
.timeline { position: relative; height: 62px; margin: 0 12px; }
.timeline .axis { position: absolute; left: 0; right: 0; top: 26px; height: 1px; background: var(--border-2); }
.timeline .tick { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; color: var(--dim); }
.timeline .now { position: absolute; left: 0; top: 18px; width: 2px; height: 18px; background: var(--warn); border-radius: 1px; }
.timeline .ev { position: absolute; top: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-2); }
.timeline .ev.edge-l { transform: translateX(-6px); align-items: flex-start; }
.timeline .ev.edge-l .l { text-align: left; }
.timeline .ev.edge-r { transform: translateX(calc(-100% + 6px)); align-items: flex-end; }
.timeline .ev.edge-r .l { text-align: right; }
.timeline .ev:hover { color: #fff; }
.timeline .ev i { width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); display: block; }
.timeline .ev .l { font-size: 11px; white-space: nowrap; text-align: center; line-height: 1.3; }
.timeline .ev .l div { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 18px; text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 500; border-bottom: 1px solid var(--border-row); white-space: nowrap; }
.table td { padding: 11px 18px; text-align: left; border-top: 1px solid var(--border-row); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num { font-family: var(--mono); font-size: 12px; }
.table .actions { text-align: right; white-space: nowrap; }
.table tr.expandable { cursor: pointer; }
.table tr.sub td { background: rgba(0, 0, 0, 0.18); padding: 0; }
.table .sub-inner { padding: 10px 18px 14px 48px; }
.table .sub-inner table.table th, .table .sub-inner table.table td { padding: 6px 10px; font-size: 12px; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted-2); }
.empty strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 14px; }
.table a.name, a.name { font-weight: 600; color: var(--accent-text); }

/* ---------- status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a4356; flex: none; }
.badge.ok { color: var(--ok); } .badge.ok::before { background: var(--ok); }
.badge.err { color: var(--err); } .badge.err::before { background: var(--err); }
.badge.warn { color: var(--warn); } .badge.warn::before { background: var(--warn); }
.badge.run { color: var(--accent-text); } .badge.run::before { background: var(--accent); animation: pulse 1.2s infinite ease-in-out; }
.badge.muted { color: var(--muted-2); }
.badge.accent { color: var(--accent-text); } .badge.accent::before { background: var(--accent); }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.pill { display: inline-block; padding: 1px 6px; border-radius: 3px; background: var(--chip); font-family: var(--mono); font-size: 10px; color: var(--muted-2); vertical-align: middle; }
.chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--muted-2); border: 1px solid transparent; }
.chip:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.chip.active { background: var(--hover); color: var(--text); font-weight: 500; }
.chip.ok { color: var(--ok); } .chip.warn { color: var(--warn); } .chip.err { color: var(--err); }
.chip .n { font-family: var(--mono); color: var(--dim); }
.tag { font-family: var(--mono); font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--chip); color: var(--text-2); }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.btn:hover { background: var(--hover); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.secondary { background: var(--panel-3); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--bg-side); font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); color: var(--bg-side); }
.btn.soft { background: rgba(109, 140, 255, 0.1); border-color: var(--accent-border); color: var(--accent-text-2); }
.btn.soft:hover { background: rgba(109, 140, 255, 0.18); color: #fff; }
.btn.danger { border-color: rgba(240, 97, 109, 0.4); color: var(--err); }
.btn.danger:hover { background: var(--err-soft); color: var(--err); }
.btn.danger.solid { background: var(--err); border-color: transparent; color: #0a0e14; }
.btn.ghost { border-color: transparent; color: var(--muted-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn.xs { padding: 4px 9px; font-size: 11px; border-radius: 5px; font-weight: 500; }
.btn .spinner { width: 11px; height: 11px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.switch { position: relative; display: inline-block; width: 30px; height: 17px; border-radius: 9px; background: #2a3140; border: 0; cursor: pointer; padding: 0; transition: background 0.15s; vertical-align: middle; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 15px; }

/* ---------- forms ---------- */
.form { max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; color: var(--muted-2); }
.field .help { color: var(--dim); font-size: 11.5px; }
.input, select, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-size: 13px; outline: none; transition: border-color 0.12s, box-shadow 0.12s; }
.input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.mono { font-family: var(--mono); font-size: 12.5px; }
textarea { min-height: 80px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 14px; height: 14px; }
.check .t { font-weight: 500; }
.check .d { color: var(--muted-2); font-size: 11.5px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .row, .row.three { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-error { background: var(--err-soft); border: 1px solid rgba(240, 97, 109, 0.4); color: #ffb4ba; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.result-box { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--bg); font-size: 12.5px; }
.result-box.ok { border-color: rgba(62, 207, 142, 0.4); }
.result-box.err { border-color: rgba(240, 97, 109, 0.4); color: #ffb4ba; }
.result-box ul { margin: 6px 0 0 16px; padding: 0; }
.checkbox-list { border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg); max-height: 380px; overflow: auto; }
.checkbox-list .item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border-row); cursor: pointer; }
.checkbox-list .item:last-child { border-bottom: 0; }
.checkbox-list .item:hover { background: rgba(255, 255, 255, 0.03); }
.checkbox-list .item input { accent-color: var(--accent); }
.checkbox-list .item .n { flex: 1; font-weight: 500; font-family: var(--mono); font-size: 12px; }
.checkbox-list .item .s { color: var(--text-2); font-family: var(--mono); font-size: 12px; min-width: 80px; text-align: right; }
.checkbox-list .item .m { color: var(--dim); font-size: 11px; min-width: 70px; text-align: right; }
.list-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.list-toolbar .input { max-width: 260px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.step i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--bg-side); font-size: 11px; font-weight: 700; font-style: normal; display: inline-grid; place-items: center; }

/* ---------- flash / toasts / modal ---------- */
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid var(--border-2); background: var(--panel-3); font-size: 12.5px; }
.flash.success { border-color: rgba(62, 207, 142, 0.35); background: var(--ok-soft); color: #9fe9c8; }
.flash.error { border-color: rgba(240, 97, 109, 0.4); background: var(--err-soft); color: #ffb4ba; }
.flash.warning { border-color: rgba(245, 181, 68, 0.4); background: var(--warn-soft); color: #ffd98a; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: 380px; }
.toast { background: var(--panel-3); border: 1px solid var(--border-2); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: toast-in 0.18s ease-out; font-size: 12.5px; }
.toast.ok { border-color: rgba(62, 207, 142, 0.5); }
.toast.err { border-color: rgba(240, 97, 109, 0.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 6, 12, 0.7); display: grid; place-items: center; z-index: 90; animation: toast-in 0.12s ease-out; }
.modal { width: min(480px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.modal h3 { font-size: 15px; margin-bottom: 8px; }
.modal p { margin: 0 0 12px; color: var(--muted); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------- progress / logs / kv ---------- */
.progress { height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--accent); width: 0; transition: width 0.4s ease; }
.progress .bar.indeterminate { width: 40%; animation: indet 1.4s infinite ease-in-out; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.log { background: var(--bg-side); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; max-height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: var(--text-2); font-family: var(--mono); font-size: 12px; line-height: 1.55; margin: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 18px; }
.kv .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.kv .v { font-weight: 500; word-break: break-word; color: var(--text); }
.kv .v.mono { font-size: 12px; font-weight: 400; }
.meter { display: flex; align-items: center; gap: 8px; }
.meter .track { flex: 1; height: 5px; background: var(--track); border-radius: 3px; overflow: hidden; min-width: 60px; }
.meter .fill { height: 100%; background: var(--accent); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 18px; color: var(--muted-2); font-size: 12px; border-top: 1px solid var(--border-row); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.filters .field { margin-bottom: 0; min-width: 150px; }
.warn-box { background: var(--warn-soft); border: 1px solid rgba(245, 181, 68, 0.4); color: #ffd98a; padding: 12px 14px; border-radius: var(--radius-sm); }
.danger-box { background: var(--err-soft); border: 1px solid rgba(240, 97, 109, 0.45); color: #ffb4ba; padding: 12px 14px; border-radius: var(--radius-sm); }
.info-box { background: var(--accent-soft); border: 1px solid var(--accent-border); color: #cfdaff; padding: 12px 14px; border-radius: var(--radius-sm); }
.info-box code, .warn-box code, .danger-box code { color: inherit; }

/* ---------- data browser ---------- */
body[data-page="data-browser"] .content { display: flex; flex-direction: column; padding-bottom: 16px; }
body[data-page="data-browser"] .content > .dbw { max-width: none; flex: 1; min-height: 0; }
.dbw { display: flex; gap: 12px; height: calc(100vh - 118px); min-height: 420px; }
.dbw .card { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.dbw-side { width: 240px; flex: none; }
.dbw-side-h { padding: 10px; border-bottom: 1px solid var(--border); }
.dbw-side-f { padding: 8px 12px; border-top: 1px solid var(--border); }
.dbw-tables { flex: 1; overflow: auto; padding: 6px; }
.tbl-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--nav); font-family: var(--mono); font-size: 12px; }
.tbl-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.tbl-item.active { background: var(--accent-soft); color: #fff; }
.tbl-item .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-item .c { color: var(--dim); font-size: 11px; }
.dbw-main { flex: 1; min-width: 0; }
.dbw-toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dbw-tabs { display: flex; gap: 2px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 7px; padding: 2px; }
.dbw-tabs .tab { border: 0; background: transparent; color: var(--muted-2); font: inherit; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.dbw-tabs .tab.active { background: var(--hover); color: var(--text); }
.dbw-title { font-weight: 600; color: var(--text); font-size: 13px; }
.dbw-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.dbw-tools .input { padding: 6px 10px; font-size: 12px; }
.dbw-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dbw-actions { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dbw-flex { flex: 1; }
.pager-mini { display: flex; align-items: center; gap: 6px; }
.dbw-grid { flex: 1; overflow: auto; min-height: 0; }
.dbw-status { padding: 6px 12px; border-top: 1px solid var(--border); }
.dbw-sql { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.dbw-sql textarea { border: 0; border-radius: 0; min-height: 120px; resize: vertical; background: var(--bg-side); }
.dbw-sql textarea:focus { box-shadow: none; }
table.dg { border-collapse: separate; border-spacing: 0; font-family: var(--mono); font-size: 12px; min-width: 100%; }
.dg th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border-2); border-right: 1px solid var(--border-row); font-weight: 600; color: var(--text-2); white-space: nowrap; cursor: pointer; user-select: none; vertical-align: top; }
.dg th:hover { background: var(--hover); }
.dg th .ty { font-weight: 400; font-size: 10px; color: var(--dim); }
.dg th .key { color: var(--warn); margin-right: 4px; }
.dg th .arrow { margin-left: 6px; color: var(--accent-text); font-size: 10px; }
.dg th.sel, .dg td.sel { width: 32px; text-align: center; cursor: default; position: sticky; left: 0; z-index: 1; background: var(--panel); }
.dg th.sel { z-index: 3; background: var(--panel-2); }
.dg td { padding: 4px 10px; border-bottom: 1px solid var(--border-row); border-right: 1px solid var(--border-row); white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; color: var(--text); vertical-align: top; }
.dg td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dg td.null { color: var(--dim); font-style: italic; }
.dg td.bin { color: var(--muted-2); }
.dg tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.dg tbody tr:has(.row-sel:checked) td { background: var(--accent-soft); }
.dg td.editing { padding: 2px; overflow: visible; white-space: normal; max-width: none; min-width: 240px; background: var(--bg); }
.dg td.saved { background: var(--ok-soft) !important; transition: background 0.6s; }
.edit-wrap { display: flex; flex-direction: column; gap: 4px; }
.edit-in { width: 100%; min-width: 220px; background: var(--bg-side); color: var(--text); border: 1px solid var(--accent); border-radius: 4px; padding: 4px 8px; font: inherit; outline: none; }
.edit-btns { display: flex; gap: 4px; }
.dg td.empty { text-align: center; padding: 30px; color: var(--muted-2); font-family: var(--font); }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 10px; }
.add-f { display: flex; flex-direction: column; gap: 4px; }
.add-f .input { padding: 6px 10px; font-size: 12px; }
.db-actions { display: flex; gap: 4px; justify-content: flex-end; }
@media (max-width: 860px) { .dbw { flex-direction: column; height: auto; } .dbw-side { width: 100%; max-height: 220px; } .dbw-grid { max-height: 60vh; } }

/* ---------- landing page ---------- */
body.lp { background: var(--bg-side); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 10; background: rgba(10, 14, 20, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav-in { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.lp-brand .brand-mark { width: 30px; height: 30px; }
.lp-brand em { font-style: normal; color: var(--accent-text); }
.lp-links { display: flex; gap: 22px; font-size: 14px; margin-left: auto; }
.lp-links a { color: var(--nav); } .lp-links a:hover { color: var(--text); }
.lp-cta { display: flex; align-items: center; gap: 8px; }
.lp-signin { padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.lp-hero { position: relative; padding-top: 88px; padding-bottom: 40px; text-align: center; }
.lp-glow { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 720px; height: 420px; background: radial-gradient(ellipse at center, rgba(109, 140, 255, 0.16), transparent 65%); pointer-events: none; }
.lp-badge { position: relative; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(62, 207, 142, 0.3); background: rgba(62, 207, 142, 0.08); color: var(--ok); font-size: 12px; font-weight: 500; font-family: var(--mono); letter-spacing: 0.04em; }
.lp-hero h1 { position: relative; margin: 22px auto 0; max-width: 800px; font-size: clamp(36px, 6vw, 62px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lp-lead { position: relative; margin: 20px auto 0; max-width: 620px; color: var(--nav); font-size: 18px; text-wrap: pretty; }
.lp-lead2 { margin: 14px 0 0; color: var(--nav); font-size: 16px; text-wrap: pretty; }
.lp-actions { position: relative; display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.btn.lp-big { padding: 12px 22px; font-size: 15px; border-radius: 8px; }
.btn.lp-ghost { background: var(--panel); border-color: rgba(255, 255, 255, 0.12); color: var(--text); }
.lp-note { position: relative; margin-top: 14px; font-size: 13px; color: var(--dim); }
.lp-mock { position: relative; margin: 56px auto 0; max-width: 1000px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--bg); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(109, 140, 255, 0.08); overflow: hidden; text-align: left; }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-side); }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3140; }
.lp-mock-bar em { margin-left: 12px; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.lp-mock-body { display: flex; min-height: 420px; }
.lp-mock-side { width: 170px; flex: none; border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.lp-mock-sec { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--dim); padding: 4px 10px 6px; }
.lp-mock-nav { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--nav); }
.lp-mock-nav i { width: 5px; height: 5px; border-radius: 50%; background: #2a3140; }
.lp-mock-nav span { flex: 1; } .lp-mock-nav em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.lp-mock-nav.on { background: var(--accent-soft); color: #fff; } .lp-mock-nav.on i { background: var(--accent); }
.lp-mock-main { flex: 1; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.lp-mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-mock-stat { padding: 12px 14px; border-radius: 9px; background: var(--panel); border: 1px solid var(--border); }
.lp-mock-stat .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted-2); }
.lp-mock-stat .v { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.lp-mock-stat .v.ok { color: var(--ok); } .lp-mock-stat .v span { font-size: 11px; font-weight: 400; color: var(--muted-2); }
.lp-mock-table { border-radius: 9px; background: var(--panel); border: 1px solid var(--border); overflow: hidden; font-size: 12px; }
.lp-mock-th { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; }
.lp-mock-th a { color: var(--accent-text); font-size: 11px; font-weight: 400; }
.lp-mock-row { display: grid; grid-template-columns: 50px 1fr 90px 70px 70px; gap: 8px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--border-row); }
.lp-mock-row .id { font-family: var(--mono); color: var(--accent-text); font-size: 11px; } .lp-mock-row .j { font-weight: 500; }
.lp-mock-row .s { text-align: right; font-family: var(--mono); font-size: 11px; } .lp-mock-row .w { text-align: right; color: var(--muted-2); font-size: 11px; }
.lp-compat { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; padding-top: 40px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.06em; }
.lp-section { padding-top: 96px; }
.lp-head { max-width: 560px; } .lp-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.lp-head-split > div { max-width: 560px; }
.lp-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); }
.lp-section h2 { margin: 12px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 40px; }
.lp-card { padding: 24px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.lp-glyph { width: 38px; height: 38px; border-radius: 9px; background: rgba(109, 140, 255, 0.12); color: var(--accent-text); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.lp-card-t { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.lp-card-b { color: var(--nav); font-size: 14px; text-wrap: pretty; }
.lp-card-tag { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: auto; padding-top: 6px; }
.lp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.lp-panel { padding: 32px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.lp-panel h3 { margin: 10px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lp-panel p { margin: 10px 0 0; color: var(--nav); font-size: 14px; }
.lp-chat { border-radius: 12px; background: var(--bg-side); border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.lp-msg { display: flex; gap: 10px; }
.lp-msg i { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); flex: none; display: grid; place-items: center; color: var(--bg-side); font-weight: 700; font-size: 12px; font-style: normal; }
.lp-msg > div { background: var(--chip); border-radius: 0 12px 12px 12px; padding: 10px 12px; max-width: 340px; }
.lp-msg b { display: block; font-weight: 600; } .lp-msg b.err { color: var(--err); } .lp-msg b.ok { color: var(--ok); }
.lp-msg > div > div { color: var(--text-2); margin-top: 4px; } .lp-msg a { display: block; color: var(--accent-text); margin-top: 6px; font-size: 12px; }
.lp-code { margin: 0; border-radius: 12px; background: var(--bg-side); border: 1px solid var(--border); padding: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; }
.lp-code span { color: var(--dim); } .lp-code b { color: var(--ok); font-weight: 400; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 12px; color: var(--text-2); }
.lp-checks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.lp-checks li::before { content: "✓"; color: var(--ok); margin-right: 10px; }
.lp-mock-db { margin-top: 36px; max-width: none; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lp-mock-db .lp-mock-body { min-height: 340px; }
.lp-mock-tables { width: 200px; padding: 12px 10px; }
.lp-mock-filter { padding: 7px 10px; border-radius: 6px; background: var(--bg-side); border: 1px solid var(--border-2); color: var(--dim); font-size: 12px; margin-bottom: 8px; }
.lp-mock-dbmain { padding: 0; gap: 0; overflow: auto; }
.lp-mock-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; min-width: 640px; }
.lp-tabs { display: flex; border-radius: 6px; border: 1px solid var(--border-2); overflow: hidden; }
.lp-tabs b, .lp-tabs span { padding: 5px 10px; } .lp-tabs b { background: var(--hover); } .lp-tabs span { color: var(--nav); }
.lp-where { margin-left: auto; padding: 5px 10px; border-radius: 6px; background: var(--bg-side); border: 1px solid var(--border-2); font-family: var(--mono); color: var(--text-2); }
.lp-where i { font-style: normal; color: var(--dim); }
.lp-apply { padding: 5px 10px; border-radius: 6px; background: var(--accent); color: var(--bg-side); font-weight: 600; }
.lp-dg { min-width: 640px; } .lp-dg th { cursor: default; } .lp-dg td { padding: 8px 10px; }
.lp-cb { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.2); }
.lp-id { color: var(--accent-text); }
.lp-edit { background: rgba(109, 140, 255, 0.12); box-shadow: inset 0 0 0 1px var(--accent); }
.lp-steps .lp-card { background: transparent; }
.lp-n { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
.lp-code-line { margin-top: auto; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.lp-pricing { border-radius: 16px; border: 1px solid rgba(109, 140, 255, 0.3); background: linear-gradient(180deg, rgba(109, 140, 255, 0.1), rgba(17, 23, 34, 0.6)); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center; }
.lp-price { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; }
.lp-price span { font-size: clamp(48px, 8vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.lp-price em { font-style: normal; color: var(--nav); font-size: 18px; }
.lp-pricing p { margin: 14px 0 0; color: var(--nav); font-size: 16px; max-width: 440px; }
.lp-pricing .btn { margin-top: 24px; }
.lp-included { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0; }
.lp-signup { padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; }
.lp-signup h2 { margin: 0; }
.lp-signup-card { border-radius: 14px; background: var(--panel); border: 1px solid var(--border-2); padding: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 440px; justify-self: end; width: 100%; }
.lp-signup-card .btn { justify-content: center; }
.lp-or { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.lp-or span { flex: 1; height: 1px; background: var(--border); }
.lp-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.lp-footer-in { padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted-2); }
.lp-footer nav { display: flex; gap: 20px; } .lp-footer nav a { color: var(--nav); }
@media (max-width: 760px) { .lp-links { display: none; } .lp-mock-side { display: none; } .lp-mock-stats { grid-template-columns: 1fr 1fr; } .lp-included { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.legal { padding-top: 56px; padding-bottom: 48px; max-width: 820px; }
.legal-head h1 { margin: 10px 0 6px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.025em; line-height: 1.1; }
.legal-head p { margin: 0; font-size: 13px; }
.legal-body { margin-top: 28px; font-size: 15px; color: var(--text-2); }
.legal-body h2 { margin: 30px 0 10px; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.legal-body p { margin: 0 0 12px; text-wrap: pretty; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; } .legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--text); }
.legal-table { margin: 6px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.legal-table th, .legal-table td { padding: 10px 12px; font-size: 13px; vertical-align: top; }
.legal-table td:first-child { color: var(--text); }
.lp-consent { font-size: 11.5px; color: var(--muted-2); margin: 10px 0 0; text-align: center; }
.auth-foot { display: flex; justify-content: center; gap: 14px; margin-top: 18px; font-size: 11.5px; }
.auth-foot a { color: var(--muted-2); } .auth-foot a:hover { color: var(--text); }
.danger-zone { border-color: rgba(240, 97, 109, 0.35); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 20% -10%, rgba(109, 140, 255, 0.14), transparent), var(--bg); }
.auth-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.auth-card .brand { padding: 0 0 18px; }
.auth-card h2 { font-size: 16px; margin-bottom: 4px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 10px; }
