:root {
  --bg: #050a11;
  --bg-deep: #02060b;
  --panel: #0a1421;
  --panel-2: #0d1928;
  --panel-3: #111f31;
  --line: rgba(160, 183, 208, .16);
  --line-bright: rgba(226, 183, 99, .38);
  --gold: #e2b763;
  --gold-pale: #f4d694;
  --ink: #edf3f9;
  --ink-soft: #c5d0dc;
  --muted: #8d9bad;
  --dim: #647286;
  --green: #63d49d;
  --red: #ef7a7a;
  --blue: #73aee8;
  --purple: #b28aef;
  --shadow: 0 22px 70px rgba(0, 0, 0, .34);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; background:
  radial-gradient(circle at 12% -10%, rgba(226, 183, 99, .11), transparent 34rem),
  radial-gradient(circle at 92% 12%, rgba(80, 127, 184, .11), transparent 38rem),
  linear-gradient(145deg, var(--bg-deep), var(--bg) 45%, #07111e);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }

.boot {
  min-height: 100vh; display: grid; place-items: center; padding: 30px;
}
.boot-card {
  width: min(520px, 100%); padding: 38px; text-align: center; background: rgba(8, 17, 29, .92);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
.boot-card img { width: 68px; height: 68px; }
.boot-card h1 { margin: 18px 0 8px; font-size: 28px; }
.boot-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
}
.auth-story { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(34px, 6vw, 88px); }
.auth-story::before {
  content: ""; position: absolute; inset: 0; opacity: .58;
  background:
    linear-gradient(rgba(226,183,99,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,183,99,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, #000, transparent 84%);
}
.auth-story::after {
  content: ""; position: absolute; width: 540px; height: 540px; right: -120px; top: -120px;
  border: 1px solid rgba(226,183,99,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(226,183,99,.025), 0 0 0 140px rgba(226,183,99,.018);
}
.auth-story-copy { position: relative; z-index: 1; max-width: 700px; }
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.auth-brand img { width: 64px; height: 64px; }
.auth-brand strong { display: block; font-size: 23px; letter-spacing: .01em; }
.auth-brand span { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.auth-story h1 { max-width: 650px; margin: 0 0 16px; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; }
.auth-story p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.auth-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.auth-points span { padding: 8px 11px; color: var(--muted); background: rgba(5, 10, 17, .64); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: 28px; background: rgba(4, 9, 16, .72); border-left: 1px solid var(--line); backdrop-filter: blur(22px); }
.auth-card { width: min(440px, 100%); padding: 28px; background: linear-gradient(160deg, rgba(17,31,49,.96), rgba(7,15,25,.97)); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-card .eyebrow { margin-bottom: 8px; }
.auth-card h2 { margin: 0 0 8px; font-size: 25px; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.auth-credit { margin-top: 18px; color: var(--dim); text-align: center; font-size: 10px; }

.app { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px;
  background: rgba(4, 9, 16, .9); border-right: 1px solid var(--line); backdrop-filter: blur(16px);
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 10px 9px 24px; text-decoration: none; }
.side-brand img { width: 42px; height: 42px; }
.side-brand strong { display: block; font-size: 15px; }
.side-brand span { color: var(--gold); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 9px 11px; color: var(--muted); border: 1px solid transparent; border-radius: 10px; text-decoration: none; transition: .18s ease; }
.nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.nav a.active { color: var(--gold-pale); background: linear-gradient(90deg, rgba(226,183,99,.12), rgba(226,183,99,.035)); border-color: rgba(226,183,99,.2); }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #201705; background: var(--gold); border-radius: 10px; font-weight: 800; font-size: 11px; }
.side-user strong { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.side-user span { color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.side-actions { display: flex; gap: 6px; margin-top: 12px; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px;
  background: rgba(5, 11, 19, .78); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.topbar h1 { margin: 0; font-size: 14px; letter-spacing: .02em; }
.topbar p { margin: 4px 0 0; color: var(--dim); font-size: 9px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.live-pill, .version-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: var(--muted); background: rgba(8,17,29,.86); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; }
.live-pill::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px rgba(99,212,157,.7); }
.menu-button { display: none; }
.content { width: min(1540px, 100%); margin: 0 auto; padding: 28px clamp(18px, 3vw, 42px) 54px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head .eyebrow { margin-bottom: 7px; }
.page-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.025em; }
.page-head p { max-width: 780px; margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 13px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card {
  min-width: 0; padding: 18px; background: linear-gradient(155deg, rgba(14,26,42,.94), rgba(7,15,25,.97));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,0,0,.16);
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head h3 { margin: 4px 0 0; font-size: 17px; }
.card-head > span { color: var(--muted); font-size: 9px; }
.card p { color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small-copy { font-size: 11px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; min-height: 112px; padding: 17px; background: linear-gradient(145deg, rgba(16,31,49,.96), rgba(8,16,27,.95)); border: 1px solid var(--line); border-radius: 14px; }
.stat::after { content: ""; position: absolute; width: 110px; height: 110px; right: -55px; bottom: -65px; border: 1px solid rgba(226,183,99,.18); border-radius: 50%; }
.stat-label { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.stat-value { margin-top: 12px; font-size: 30px; font-weight: 720; letter-spacing: -.04em; }
.stat-note { margin-top: 5px; color: var(--dim); font-size: 9px; }

.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; color: var(--ink-soft); background: #0c1826; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; text-decoration: none; font-size: 10px; font-weight: 650; transition: .16s ease; }
.btn:hover { color: var(--ink); border-color: rgba(226,183,99,.28); transform: translateY(-1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn.primary { color: #211805; background: linear-gradient(135deg, var(--gold-pale), var(--gold)); border-color: transparent; }
.btn.danger { color: #ffd9d9; background: rgba(184,67,67,.14); border-color: rgba(239,122,122,.27); }
.btn.success { color: #d6ffeb; background: rgba(54,145,100,.13); border-color: rgba(99,212,157,.25); }
.btn.small { min-height: 31px; padding: 6px 9px; font-size: 8px; }
.btn.icon { width: 36px; padding: 0; }
.btn.full { width: 100%; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.field { display: grid; gap: 7px; }
.field label { color: var(--ink-soft); font-size: 10px; font-weight: 650; }
.field-help { color: var(--dim); font-size: 8px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink); background: rgba(3,9,16,.78); border: 1px solid var(--line); border-radius: 9px; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(226,183,99,.52); box-shadow: 0 0 0 3px rgba(226,183,99,.08); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.code-editor { min-height: 420px; tab-size: 2; white-space: pre; overflow: auto; }
.code-editor.compact { min-height: 150px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.checkbox input { margin-top: 2px; accent-color: var(--gold); }
.inline-form { display: flex; gap: 8px; align-items: end; }
.inline-form .field { flex: 1; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(4,10,17,.65); font-size: 8px; text-transform: capitalize; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.status.online::before, .status.active::before, .status.succeeded::before, .status.completed::before { background: var(--green); box-shadow: 0 0 8px rgba(99,212,157,.5); }
.status.pending::before, .status.queued::before, .status.executing::before, .status.draft::before { background: var(--gold); }
.status.error::before, .status.failed::before, .status.removed::before { background: var(--red); }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 780px; border-collapse: collapse; }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); background: rgba(4,10,17,.48); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
td { color: var(--ink-soft); font-size: 10px; }
tr:last-child td { border-bottom: 0; }
.row-sub { margin-top: 5px; color: var(--dim); font-size: 8px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

.server-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.server-card { display: grid; gap: 13px; min-width: 0; padding: 15px; color: inherit; background: linear-gradient(145deg, rgba(15,29,46,.96), rgba(7,15,24,.98)); border: 1px solid var(--line); border-radius: 13px; text-decoration: none; transition: .16s ease; }
.server-card:hover, .server-card.selected { border-color: rgba(226,183,99,.38); transform: translateY(-1px); }
.server-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.server-card .host { color: var(--muted); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 4px 6px; color: var(--dim); background: #07111c; border: 1px solid var(--line); border-radius: 6px; font-size: 7px; }
.chip.ready { color: var(--green); border-color: rgba(99,212,157,.2); }
.host-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.fact { min-width: 0; padding: 12px; background: rgba(4,10,17,.55); border: 1px solid var(--line); border-radius: 10px; }
.fact strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.fact span { display: block; margin-top: 5px; color: var(--dim); font-size: 8px; }

.lock-card.unlocked { border-color: rgba(99,212,157,.24); background: linear-gradient(155deg, rgba(15,45,39,.55), rgba(7,17,25,.98)); }
.agent-refresh.needs-update { border-color: rgba(226,183,99,.34); background: linear-gradient(155deg, rgba(67,48,17,.42), rgba(7,17,25,.98)); }
.secret-box { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0; padding: 12px; background: #03080e; border: 1px solid var(--line); border-radius: 9px; }
.secret-box code { color: var(--gold-pale); overflow-wrap: anywhere; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.flow span { padding: 7px 9px; color: var(--muted); background: #07111c; border: 1px solid var(--line); border-radius: 8px; font-size: 8px; }
.flow b { color: var(--gold); }
.recovery pre, .result pre { max-height: 520px; overflow: auto; margin: 0; padding: 14px; color: var(--ink-soft); background: #02060b; border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; line-height: 1.55; }
.probe { padding: 11px; color: var(--muted); background: #07111c; border: 1px dashed var(--line-bright); border-radius: 9px; font-size: 9px; line-height: 1.55; }
.probe code { color: var(--gold-pale); overflow-wrap: anywhere; }

.file-browser { display: grid; grid-template-columns: minmax(250px,.7fr) minmax(0,1.3fr); gap: 16px; }
.file-list { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.file-row { width: 100%; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 10px; color: var(--ink-soft); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: rgba(226,183,99,.05); }
.file-row small { color: var(--dim); }
.file-icon { color: var(--gold); }

.banner { padding: 13px 14px; color: var(--ink-soft); background: rgba(86,130,183,.1); border: 1px solid rgba(115,174,232,.22); border-radius: 11px; font-size: 10px; line-height: 1.55; }
.banner.error { background: rgba(184,67,67,.11); border-color: rgba(239,122,122,.26); }
.banner.success { background: rgba(54,145,100,.1); border-color: rgba(99,212,157,.24); }

.address-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 22px;
  margin-bottom: 16px; padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, rgba(17,34,54,.98), rgba(6,14,24,.98));
  border: 1px solid var(--line-bright); border-radius: 20px; box-shadow: var(--shadow);
}
.address-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -130px; border: 1px solid rgba(226,183,99,.2); border-radius: 50%; box-shadow: 0 0 0 44px rgba(226,183,99,.025), 0 0 0 88px rgba(226,183,99,.018); pointer-events: none; }
.address-hero > * { position: relative; z-index: 1; }
.address-hero p { max-width: 780px; color: var(--muted); line-height: 1.65; }
.protocol { display: inline-flex; margin-top: 11px; padding: 6px 9px; color: var(--muted); background: rgba(4,10,17,.64); border: 1px solid var(--line); border-radius: 999px; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.protocol.http { color: var(--gold-pale); border-color: rgba(226,183,99,.3); }
.protocol.https { color: var(--green); border-color: rgba(99,212,157,.3); }
.address-url { margin: 14px 0 0; overflow-wrap: anywhere; font-size: clamp(20px, 3vw, 34px); letter-spacing: -.035em; }
.address-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; align-content: start; }
.address-facts .fact strong { white-space: normal; overflow-wrap: anywhere; }
.setup-steps { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.auto-setup { border-color: rgba(205,163,73,.38); box-shadow: 0 18px 48px rgba(0,0,0,.2); }
details.card > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; font-weight: 700; color: var(--text); }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '▾'; color: var(--gold); transition: transform .18s ease; }
details.card[open] > summary { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
details.card[open] > summary::after { transform: rotate(180deg); }
.setup-step { min-width: 0; display: flex; gap: 10px; padding: 14px; background: rgba(8,17,29,.82); border: 1px solid var(--line); border-radius: 12px; }
.setup-step.active { border-color: rgba(226,183,99,.38); background: rgba(226,183,99,.07); }
.setup-step.done { border-color: rgba(99,212,157,.24); background: rgba(54,145,100,.07); }
.step-index { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; color: var(--dim); background: #07111c; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; font-weight: 800; }
.setup-step.active .step-index { color: #211805; background: var(--gold); border-color: transparent; }
.setup-step.done .step-index { color: #04140e; background: var(--green); border-color: transparent; }
.step-copy { min-width: 0; display: grid; gap: 5px; }
.step-copy strong { color: var(--ink-soft); font-size: 10px; }
.step-copy span { color: var(--dim); font-size: 8px; line-height: 1.5; }
.address-code { display: grid; gap: 7px; padding: 12px; background: rgba(3,9,16,.78); border: 1px solid var(--line); border-radius: 9px; }
.address-code span { color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.address-code code { color: var(--gold-pale); overflow-wrap: anywhere; }
.registrar-card { margin-top: 16px; }
.dns-instruction { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.dns-instruction > div { min-width: 0; display: grid; gap: 7px; padding: 12px; background: rgba(4,10,17,.55); border: 1px solid var(--line); border-radius: 10px; }
.dns-instruction strong { color: var(--dim); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.dns-instruction code { color: var(--ink-soft); overflow-wrap: anywhere; font-size: 9px; }
.dns-result { display: grid; gap: 6px; margin-top: 14px; padding: 12px; background: rgba(184,67,67,.08); border: 1px solid rgba(239,122,122,.22); border-radius: 10px; }
.dns-result.ready { background: rgba(54,145,100,.08); border-color: rgba(99,212,157,.22); }
.dns-result span { color: var(--ink-soft); overflow-wrap: anywhere; font-size: 9px; }
.dns-result small { color: var(--dim); line-height: 1.5; }
.empty { display: grid; place-items: center; gap: 7px; min-height: 150px; padding: 28px; color: var(--muted); text-align: center; }
.empty img { width: 38px; height: 38px; opacity: .75; }
.empty strong { color: var(--ink-soft); }
.empty span { max-width: 460px; font-size: 10px; line-height: 1.55; }

.toast-root { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; color: var(--ink-soft); background: rgba(10,20,33,.97); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); font-size: 10px; line-height: 1.45; }
.toast.success { border-color: rgba(99,212,157,.32); }
.toast.error { border-color: rgba(239,122,122,.36); }
.scrim { display: none; }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .server-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .host-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cols-3, .cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .setup-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .address-hero { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 42vh; padding: 42px 26px; }
  .auth-story h1 { font-size: 46px; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: min(286px, 88vw); transition: .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; z-index: 19; inset: 0; display: block; opacity: 0; visibility: hidden; background: rgba(0,0,0,.55); transition: .2s ease; }
  .scrim.open { opacity: 1; visibility: visible; }
  .menu-button { display: inline-flex; }
  .version-pill { display: none; }
  .topbar { padding: 0 14px; }
  .content { padding: 22px 14px 44px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .cols-2, .cols-3, .cols-4, .file-browser { grid-template-columns: 1fr; }
  .setup-steps { grid-template-columns: 1fr 1fr; }
  .dns-instruction { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .server-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .auth-story { min-height: 36vh; }
  .auth-story h1 { font-size: 38px; }
  .auth-panel { padding: 18px 12px 30px; }
  .auth-card { padding: 22px 18px; }
  .stats, .host-facts, .form-grid, .address-facts, .setup-steps, .dns-instruction { grid-template-columns: 1fr; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .card { padding: 15px; border-radius: 13px; }
  .topbar p { display: none; }
  .live-pill { padding: 6px 8px; }
}

.settings-section { display: grid; gap: 14px; margin: 18px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 4px 2px; }
.section-title h3 { margin: 4px 0 0; font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -.025em; }
.section-title p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 880px) {
  .section-title { align-items: flex-start; flex-direction: column; }
}
