:root {
  color-scheme: dark;
  --bg: #111312;
  --bg-soft: #191c1a;
  --panel: #191c1a;
  --panel-strong: #222623;
  --text: #edf1ee;
  --muted: #a3aea7;
  --line: #343b36;
  --line-strong: #5b7364;
  --blue: #78dba7;
  --blue-strong: #9be7bf;
  --cyan: #83d4e8;
  --accent: #78dba7;
  --danger: #f198a3;
  --warn: #efd080;
  --shadow: none;
}
* { letter-spacing: 0; }
body { background: var(--bg); color: var(--text); font-size: 14px; }
body::before, .brand span::before, .brand span::after { display: none; }
.shell { max-width: 1320px; width: calc(100% - 48px); padding: 0; margin: 0 auto; }
header { padding: 22px 0; border-bottom: 1px solid var(--line); gap: 24px; }
header, main, .card, .metric, .server-card { animation: none; }
.brand { font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand span { background: var(--accent); width: 12px; height: 12px; border-radius: 3px; box-shadow: none; animation: none; }
nav { gap: 6px; flex-wrap: wrap; align-items: center; }
nav a { font-size: 13px; padding: 8px 10px; border-radius: 5px; background: transparent; color: var(--muted); text-decoration: none; border: 0; }
nav a:hover { background: var(--panel-strong); color: var(--text); }
nav button { background: var(--panel); color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
main { padding: 24px 0 48px; min-width: 0; }
.card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 18px 0; overflow-x: auto; }
.card h2 { font-size: 24px; line-height: 1.25; margin: 0 0 24px; }
h1 { font-size: 30px; line-height: 1.25; }
h3 { font-size: 17px; margin: 6px 0 16px; }
.hero { background: none; border: 0; box-shadow: none; padding: 8px 0 24px; }
.hero::before, .hero::after { display: none; }
.metrics { gap: 16px; }
.metric, .server-card { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: none; }
.metric strong { color: var(--text); font-size: 28px; }
.metric span, .muted { color: var(--muted); }
button, .button { background: var(--panel-strong); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 9px 13px; font-weight: 600; box-shadow: none; min-height: 38px; }
button:hover, .button:hover { transform: none; background: #2c342e; box-shadow: none; }
.primary { background: var(--accent); border-color: var(--accent); color: #102319; box-shadow: none; }
.primary:hover { background: #9be7bf; border-color: #9be7bf; }
.danger { color: var(--danger); background: #352328; border-color: #71424c; }
input, select, textarea { width: 100%; min-width: 0; background: #121513; color: var(--text); border: 1px solid #465149; border-radius: 5px; padding: 10px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: #121513; box-shadow: 0 0 0 3px #78dba71a; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline-color: var(--accent); }
label { color: #ced7d0; font-size: 13px; font-weight: 600; }
.form-grid { gap: 16px; min-width: 0; }
.form-grid.inline { align-items: end; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form { margin: 0; }
.row-actions button { white-space: nowrap; }
table { background: var(--panel); font-size: 13px; border: 1px solid var(--line); border-radius: 5px; }
th { background: var(--panel-strong); color: #c0ccc3; text-transform: none; font-weight: 600; letter-spacing: 0; }
td, th { padding: 13px 14px; border-color: var(--line); }
tr:hover td { background: #212722; }
code { color: #9be7bf; background: #232e27; border-radius: 4px; overflow-wrap: anywhere; font-size: 12px; padding: 3px 6px; }
.badge { border-radius: 4px; font-size: 11px; background: #252b27; color: #b1beb5; border: 1px solid #455149; }
.badge.approved, .badge.active { background: #203b2c; color: #91e4b5; border-color: #41634e; }
.badge.pending, .badge.conflict { background: #393122; color: #efd080; border-color: #75613c; }
.badge.rejected, .badge.disabled, .badge.deleted, .badge.detached { background: #352328; color: #f198a3; border-color: #71424c; }
.notice { background: #203128; color: #c4e3d0; border: 1px solid #415f4c; border-radius: 6px; box-shadow: none; }
.qr { display: block; width: 256px; max-width: 100%; height: auto; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 6px; margin: 0 auto 16px; box-shadow: none; }
.public main > .card { max-width: 450px; margin: 48px auto; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; }
.public .card h2 { margin-bottom: 10px; }
.auth-step { margin: 0 0 26px; overflow-wrap: anywhere; }
.auth-back { color: var(--muted); text-align: center; padding: 5px; font-size: 13px; }
.auth-enrollment { padding: 0 0 24px; }
.auth-enrollment details { margin-top: 16px; color: var(--muted); font-size: 13px; }
.auth-enrollment summary { cursor: pointer; }
.auth-enrollment code { display: block; margin-top: 12px; padding: 12px; word-break: break-all; }
.auth-error { background: #352328; border-color: #71424c; color: #f5b5bd; margin-bottom: 20px; }
.public .notice .qr { margin-top: 20px; }
.status-band { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.status-band p { margin: 3px 0 0; color: var(--muted); }
.status-band .badge { margin-left: auto; }
.status-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.security-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.security-summary span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.security-summary strong { font-size: 15px; }
.security-form { max-width: 510px; padding-top: 24px; }
.enrollment { display: grid; grid-template-columns: 288px minmax(0, 430px); gap: 40px; padding-top: 30px; align-items: start; }
.qr-panel { text-align: center; }
.qr-panel code { display: block; padding: 12px; word-break: break-all; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; gap: 10px; margin: 24px 0; }
.recovery-codes code { padding: 12px; text-align: center; }
.steps { max-width: 860px; padding-left: 24px; }
.steps li { padding: 0 0 22px 8px; line-height: 1.8; }
.steps strong { display: block; color: var(--accent); }
.modal { background: var(--panel); border-color: var(--line); border-radius: 7px; box-shadow: 0 24px 80px #00000066; }
.modal-tools { background: var(--bg); }
.mini-metric, .server-details, .server-log, .server-avatar { background: var(--bg); border-color: var(--line); box-shadow: none; }
.server-card::before { display: none; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 28px); }
  header { gap: 14px; padding: 18px 0; }
  nav { width: 100%; gap: 2px; }
  nav a { padding: 7px; }
  .form-grid.inline, .security-summary, .enrollment { grid-template-columns: 1fr; }
  .security-summary { gap: 18px; }
  .enrollment { gap: 24px; }
  .qr-panel { max-width: 288px; }
  .public main > .card { margin: 18px auto; padding: 22px; }
  .row-actions button { white-space: normal; }
  .recovery-codes { grid-template-columns: 1fr; }
  .card h2 { font-size: 22px; }
}
