/* Fatty Panel — Fluent 2 inspired dark theme, black + purple. Contrast verified against WCAG 2.2 AA (see test/contrast.test.js). */
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  --bg: #0b0910;
  --layer-1: #14111c;
  --layer-2: #1c1827;
  --layer-3: #262033;
  --stroke-subtle: #2a2438;
  --stroke-control: #6e6688;      /* ≥3:1 against layers (WCAG 1.4.11) */
  --text: #f4f1fa;
  --text-2: #c3bbd6;
  --text-3: #a39bb8;
  --accent: #c4a5fb;               /* accent text/links on dark */
  --accent-strong-1: #6d28d9;
  --accent-strong-2: #8b2fe0;
  --accent-tint: rgba(167, 120, 246, 0.14);
  --focus: #e2ccff;
  --success: #5ee38f; --success-tint: rgba(94, 227, 143, 0.12);
  --warning: #fbc84a; --warning-tint: rgba(251, 200, 74, 0.12);
  --danger: #ff8a8a;  --danger-tint: rgba(255, 138, 138, 0.12);
  --danger-strong: #b4232a;
  --radius-s: 4px; --radius-m: 8px; --radius-l: 12px;
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 0 2px rgba(0,0,0,.3);
  --shadow-16: 0 8px 16px rgba(0,0,0,.45), 0 0 2px rgba(0,0,0,.35);
  --shadow-64: 0 32px 64px rgba(0,0,0,.6), 0 0 8px rgba(0,0,0,.4);
  --ease-decel: cubic-bezier(0.1, 0.9, 0.2, 1);   /* Fluent decelerate */
  --ease-std: cubic-bezier(0.33, 0, 0.67, 1);
  --dur-fast: 150ms; --dur-normal: 250ms; --dur-slow: 400ms;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Noto Sans", Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --sidebar-w: 268px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14px/20px var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { /* subtle Mica-like glow */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 600px at 85% -10%, rgba(124, 58, 237, .20), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(147, 51, 234, .12), transparent 60%);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--focus); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 28px; line-height: 36px; font-weight: 600; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; }
h3 { font-size: 16px; line-height: 22px; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--text-2); }
.caption { font-size: 12px; line-height: 16px; color: var(--text-2); }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-s); }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--layer-3); padding: 8px 12px; border-radius: var(--radius-m); }
.skip-link:focus { top: 8px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 1fr var(--sidebar-w); min-height: 100vh; }
.shell.left { grid-template-columns: var(--sidebar-w) 1fr; }
.main { padding: 32px 40px 64px; min-width: 0; max-width: 1240px; width: 100%; margin: 0 auto; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 12px;
  background: rgba(20, 17, 28, .82); backdrop-filter: blur(30px) saturate(140%); border-left: 1px solid var(--stroke-subtle);
}
.shell.left .sidebar { border-left: 0; border-right: 1px solid var(--stroke-subtle); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 20px; font: 600 16px/22px var(--font-display); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-strong-1), #a855f7); box-shadow: 0 4px 16px rgba(124,58,237,.45); }
.brand small { display: block; font: 12px/16px var(--font); color: var(--text-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: var(--radius-m);
  color: var(--text-2); text-decoration: none; transition: background var(--dur-fast) var(--ease-std), color var(--dur-fast);
}
.nav a:hover { background: var(--layer-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--layer-3); color: var(--text); font-weight: 600; }
.nav a[aria-current="page"]::before { /* Fluent selection pill */
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px;
  background: linear-gradient(180deg, #a78bfa, #c084fc); animation: pill var(--dur-normal) var(--ease-decel);
}
@keyframes pill { from { height: 0; margin-top: 0; } }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--stroke-subtle); display: flex; flex-direction: column; gap: 8px; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.spacer { flex: 1; }

/* ---------- surfaces ---------- */
.card { background: var(--layer-1); border: 1px solid var(--stroke-subtle); border-radius: var(--radius-l); padding: 20px; box-shadow: var(--shadow-2); }
.card.interactive { cursor: pointer; transition: transform var(--dur-fast) var(--ease-decel), border-color var(--dur-fast), background var(--dur-fast); text-align: left; color: inherit; font: inherit; width: 100%; }
.card.interactive:hover { background: var(--layer-2); border-color: #3d3452; transform: translateY(-1px); }
.card.interactive:active { transform: translateY(0) scale(.995); }
.card h3 + * { margin-top: 12px; }
.card-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.hero { background: linear-gradient(135deg, rgba(109,40,217,.38), rgba(147,51,234,.16) 60%, transparent), var(--layer-1); border-color: #3b2c5c; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric b { font: 600 28px/36px var(--font-display); }
.bar { height: 6px; border-radius: 3px; background: var(--layer-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7c3aed, #c084fc); transition: width var(--dur-slow) var(--ease-decel); }
.bar.warn > i { background: var(--warning); } .bar.crit > i { background: var(--danger); }
.divider { height: 1px; background: var(--stroke-subtle); margin: 16px 0; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 16px;
  border-radius: var(--radius-m); border: 1px solid var(--stroke-control); background: var(--layer-2); color: var(--text);
  font: 600 14px/20px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-std), border-color var(--dur-fast), transform 80ms var(--ease-std), box-shadow var(--dur-fast);
}
.btn:hover { background: var(--layer-3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--accent-strong-1), var(--accent-strong-2)); box-shadow: 0 2px 10px rgba(124,58,237,.35); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 4px 18px rgba(124,58,237,.5); }
.btn.danger { border-color: transparent; background: var(--danger-strong); color: #fff; }
.btn.danger:hover { filter: brightness(1.1); }
.btn.subtle { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.subtle:hover { background: var(--layer-2); color: var(--text); }
.btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn.icon { padding: 6px; min-width: 36px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 13px; color: var(--text); }
.field .hint { font-size: 12px; line-height: 16px; color: var(--text-2); }
.field .error { font-size: 12px; color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; min-height: 36px; padding: 7px 11px; border-radius: var(--radius-m); background: var(--layer-2); color: var(--text);
  border: 1px solid var(--stroke-control); border-bottom-color: #8d84a8; font: 14px/20px var(--font);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
textarea.input { min-height: 120px; font-family: var(--mono); font-size: 12px; resize: vertical; }
.input::placeholder { color: var(--text-3); }
.input:hover { background: var(--layer-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-m); background: var(--layer-2); border: 1px solid var(--stroke-subtle); }
.seg button { border: 0; background: transparent; color: var(--text-2); padding: 6px 14px; border-radius: 6px; font: 600 13px/18px var(--font); cursor: pointer; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--layer-3); color: var(--text); box-shadow: var(--shadow-2); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 20px; border-radius: 10px; border: 1px solid var(--stroke-control); background: var(--layer-2); position: relative; cursor: pointer; transition: background var(--dur-fast); flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform var(--dur-normal) var(--ease-decel), background var(--dur-fast); }
.switch input:checked { background: linear-gradient(135deg, var(--accent-strong-1), var(--accent-strong-2)); border-color: transparent; }
.switch input:checked::after { transform: translateX(20px); background: #fff; }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 600; background: var(--layer-3); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--success-tint); color: var(--success); }
.badge.warn { background: var(--warning-tint); color: var(--warning); }
.badge.bad { background: var(--danger-tint); color: var(--danger); }
.badge.accent { background: var(--accent-tint); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.pulse { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s var(--ease-std) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-l); border: 1px solid var(--stroke-subtle); background: var(--layer-1); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--stroke-subtle); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--layer-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--dur-fast); }
tbody tr:hover { background: rgba(255,255,255,.025); }

/* ---------- message bars / empty ---------- */
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-m); background: var(--layer-2); border: 1px solid var(--stroke-subtle); }
.msg.warn { background: var(--warning-tint); border-color: rgba(251,200,74,.35); }
.msg.bad { background: var(--danger-tint); border-color: rgba(255,138,138,.35); }
.msg.ok { background: var(--success-tint); border-color: rgba(94,227,143,.35); }
.msg.info { background: var(--accent-tint); border-color: rgba(196,165,251,.35); }
.msg svg { flex: none; margin-top: 2px; }
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .art { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.skeleton { background: linear-gradient(90deg, var(--layer-2), var(--layer-3), var(--layer-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-m); min-height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- dialogs & toasts ---------- */
dialog { border: 1px solid var(--stroke-subtle); border-radius: var(--radius-l); background: var(--layer-1); color: var(--text); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-64); }
dialog::backdrop { background: rgba(5, 3, 10, .65); backdrop-filter: blur(4px); }
dialog[open] { animation: dlg var(--dur-normal) var(--ease-decel); }
@keyframes dlg { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dlg-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.dlg-foot { padding: 16px 24px; background: var(--layer-2); display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--stroke-subtle); }
dialog.wide { width: min(1100px, calc(100vw - 32px)); }
.toasts { position: fixed; left: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { min-width: 280px; max-width: 420px; padding: 12px 16px; border-radius: var(--radius-m); background: var(--layer-3); border: 1px solid #3d3452; box-shadow: var(--shadow-16); display: flex; gap: 10px; align-items: flex-start; animation: toast var(--dur-normal) var(--ease-decel); }
.toast.bad { border-color: rgba(255,138,138,.5); } .toast.ok { border-color: rgba(94,227,143,.45); }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }
.secret-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--layer-2); border: 1px dashed var(--stroke-control); border-radius: var(--radius-m); }
.secret-box code { flex: 1; font: 600 16px/22px var(--mono); letter-spacing: .02em; word-break: break-all; }

/* ---------- auth screen ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .card { width: min(420px, 100%); padding: 32px; box-shadow: var(--shadow-64); animation: dlg var(--dur-slow) var(--ease-decel); }
.auth .brand { padding: 0 0 24px; }

/* ---------- terminal ---------- */
.term-wrap { background: #07060b; border-radius: var(--radius-m); padding: 8px; height: min(70vh, 640px); border: 1px solid var(--stroke-subtle); }
.term-wrap .xterm { height: 100%; }
.term-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--stroke-subtle); }

/* ---------- misc ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--stroke-subtle); margin-bottom: 20px; overflow-x: auto; }
.tabs button { position: relative; border: 0; background: none; color: var(--text-2); padding: 10px 14px; font: 600 14px/20px var(--font); cursor: pointer; border-radius: var(--radius-m) var(--radius-m) 0 0; min-height: 44px; }
.tabs button:hover { color: var(--text); background: var(--layer-1); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #8b5cf6, #c084fc); animation: tabin var(--dur-normal) var(--ease-decel); }
@keyframes tabin { from { transform: scaleX(.3); opacity: 0; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.kv dt { color: var(--text-2); } .kv dd { margin: 0; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 8px; }
.chart .ok { background: linear-gradient(180deg, #a78bfa, #6d28d9); border-radius: 3px 3px 0 0; transition: height var(--dur-slow) var(--ease-decel); }
.chart .bad { background: var(--danger); border-radius: 3px 3px 0 0; opacity: .85; }
.view { animation: viewin var(--dur-normal) var(--ease-decel); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
.menu-section { display: flex; flex-direction: column; gap: 8px; }
.ms-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--layer-2); border: 1px solid transparent; cursor: pointer; color: var(--text); font: inherit; text-align: left; width: 100%; min-height: 44px; transition: border-color var(--dur-fast), background var(--dur-fast); }
.ms-item:hover { border-color: #4a3d66; background: var(--layer-3); }
.ms-item .num { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font: 600 12px/1 var(--mono); flex: none; }

@media (max-width: 900px) {
  .shell, .shell.left { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 48px; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 20; background: rgba(11,9,16,.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--stroke-subtle); }
  .sidebar { position: fixed; right: 0; top: 0; z-index: 50; width: min(300px, 86vw); transform: translateX(100%); transition: transform var(--dur-normal) var(--ease-decel); box-shadow: var(--shadow-64); }
  .shell.left .sidebar { right: auto; left: 0; transform: translateX(-100%); }
  .sidebar.open, .shell.left .sidebar.open { transform: none; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .input, .card, .badge { border: 1px solid CanvasText; }
  .nav a[aria-current="page"] { outline: 2px solid Highlight; }
}

/* ---------- command output ---------- */
pre.out { margin: 0; max-height: 480px; overflow: auto; padding: 14px 16px; background: #07060b; border: 1px solid var(--stroke-subtle); border-radius: var(--radius-m);
  font: 12.5px/1.55 var(--mono); color: #ece8f5; white-space: pre-wrap; word-break: break-word; }
details > summary { list-style-position: inside; }
a.card.interactive { color: inherit; }
.users-table td .row { flex-wrap: nowrap; }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- v2: plans, bulk, monitoring, passkeys ---------- */
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 4px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke-subtle); }
.list-row { padding: 10px 0; border-bottom: 1px solid var(--stroke-subtle); flex-wrap: nowrap; }
.list-row:last-child { border-bottom: 0; }
.brand-mark.subtle { background: var(--accent-tint); color: var(--accent); box-shadow: none; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.feature-list li > svg { flex: none; color: var(--success); }
.feature-list li > b { margin-left: auto; font-weight: 600; color: var(--text-2); text-align: right; }
.feature-list li.off { color: var(--text-3); }
.feature-list li.off > svg { color: var(--text-3); }
.feature-list li.off > span { text-decoration: line-through; text-decoration-color: rgba(163,155,184,.5); }
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.plan-card { display: flex; flex-direction: column; }
.plan-card > .row:last-child { margin-top: auto !important; padding-top: 12px; }
.card.hero.plan-card { background: linear-gradient(160deg, rgba(109,40,217,.22), rgba(20,17,28,1) 55%); border-color: #4a3470; }
.bulk-bar { position: sticky; top: 8px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px;
  background: rgba(28,24,39,.92); backdrop-filter: blur(16px); border: 1px solid #4a3470; border-radius: var(--radius-l); box-shadow: var(--shadow-16); animation: dlg var(--dur-normal) var(--ease-decel); }
.bulk-bar select.input { width: auto; min-width: 200px; }
.bulk-bar label { cursor: pointer; }
input.check { width: 18px; height: 18px; margin: 0; accent-color: #8b5cf6; cursor: pointer; flex: none; }
.sel-col { width: 44px; }
tbody tr.selected { background: var(--accent-tint); }
tbody tr.selected:hover { background: rgba(167,120,246,.2); }
.server-card { position: relative; }
.server-card .sel-box { display: none; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--stroke-control);
  background: var(--layer-2); place-items: center; color: transparent; transition: background var(--dur-fast), border-color var(--dur-fast); }
.selecting .server-card .sel-box { display: grid; }
.selecting .server-card { cursor: pointer; }
.server-card.selected { outline: 2px solid var(--accent); outline-offset: -1px; background: linear-gradient(160deg, rgba(109,40,217,.16), var(--layer-1) 60%); }
.server-card.selected .sel-box { background: linear-gradient(135deg, var(--accent-strong-1), var(--accent-strong-2)); border-color: transparent; color: #fff; }
.selecting .server-card .card-head { padding-right: 36px; }
.uptime { display: flex; gap: 2px; align-items: stretch; height: 28px; margin-top: 8px; }
.uptime i { flex: 1; min-width: 3px; border-radius: 2px; background: var(--layer-3); }
.uptime i.ok { background: var(--success); }
.uptime i.warn { background: var(--warning); }
.uptime i.bad { background: var(--danger); }
.uptime i:hover { filter: brightness(1.25); }
details.result { border: 1px solid var(--stroke-subtle); border-radius: var(--radius-m); background: var(--layer-2); }
details.result + details.result { margin-top: 8px; }
details.result > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; min-height: 44px; }
details.result > summary::-webkit-details-marker { display: none; }
details.result > summary::after { content: "▾"; margin-left: auto; color: var(--text-3); transition: transform var(--dur-fast); }
details.result[open] > summary::after { transform: rotate(180deg); }
details.result > pre.out { margin: 0 12px 12px; max-height: 280px; }
details.result > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-m); }
.fieldset { border: 1px solid var(--stroke-subtle); border-radius: var(--radius-m); padding: 12px 16px 16px; margin: 0; min-width: 0; }
.fieldset legend { padding: 0 6px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.card.bad-edge { border-color: rgba(255,138,138,.55); box-shadow: inset 3px 0 0 var(--danger), var(--shadow-2); }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.steps-list li::marker { color: var(--accent); font-weight: 700; }
.steps-list code, .feature-list code { font-family: var(--mono); font-size: 12px; background: var(--layer-3); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.btn[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--text); }
@media (forced-colors: active) {
  .server-card.selected, tbody tr.selected { outline: 3px solid Highlight; }
  .uptime i { forced-color-adjust: none; }
}
@media (max-width: 900px) { .bulk-bar { top: 64px; } .bulk-bar select.input { flex: 1 1 180px; min-width: 0; } }

/* ---- one-click node install ---- */
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); border: 1px solid var(--stroke-control);
  background: var(--layer-2); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.choice:hover { background: var(--layer-3); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input[type="radio"] { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 50%; border: 1px solid var(--stroke-control); background: var(--layer-1); display: grid; place-content: center; cursor: pointer; }
.choice input[type="radio"]:checked { border-color: var(--accent); }
.choice input[type="radio"]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.choice input[type="radio"]:focus-visible { outline: none; }
.job-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.job-step { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 14px; border-radius: var(--radius-m); background: var(--layer-2); border-left: 3px solid var(--stroke-control); }
.job-step.run { border-left-color: var(--accent); background: var(--accent-tint); }
.job-step.ok { border-left-color: var(--success); }
.job-step.bad { border-left-color: var(--danger); background: var(--danger-tint); }
.job-step.warn { border-left-color: var(--warning); }
.job-step.skip, .job-step.wait { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .choice { transition: none; } }
/* SSH public keys list (Настройки → Информация) */
.key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.key-list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: var(--radius-m); background: var(--layer-2); border: 1px solid var(--stroke-subtle); }
.key-list li > svg { flex: none; color: var(--accent-text, var(--text-2)); }
.key-list code { word-break: break-all; }
.secret-box code.caption { font: 500 12px/18px var(--mono); letter-spacing: 0; }
h4 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
