/* Pressonaut Server: connection manager.
   Minimal on purpose: one calm type scale, flat solid colours (navy from the symbol, mint from its dot),
   hairline borders, no decoration that does not carry information. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Brand, taken from the symbol: the navy square is the main colour, the dot is the secondary. */
  --navy: #1f4e79;
  --navy-deep: #0f2f4d;
  --mint: #7fd1ae;
  --on-mint: #0b2540;
  --primary: var(--navy);
  --on-primary: #ffffff;
  --card-navy: var(--navy);
  /* Used only for states. */
  --mustard: #e3b52c;
  --coral: #d63b3b;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e3eaf1;
  --ink: #0b1f33;
  --text: #0b1f33;
  --text-2: #4a5b6c;
  --text-3: #7d8d9c;
  --border: rgba(11, 31, 51, 0.09);
  --border-strong: rgba(11, 31, 51, 0.2);
  --pill-bg: var(--primary);
  --pill-fg: var(--on-primary);
  --pill-hover: #173d62;

  --ok: #166a49;
  --ok-soft: rgba(127, 209, 174, 0.3);
  --warn: #8a5f00;
  --warn-soft: rgba(227, 181, 44, 0.26);
  --bad: var(--coral);
  --bad-soft: rgba(214, 59, 59, 0.1);
  --info: var(--navy);
  --info-soft: rgba(31, 78, 121, 0.1);
  --prod: var(--coral);
  --staging: #8a5f00;
  --dev: #166a49;

  --shadow: none;
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 51, 0.4);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

/* Dark mode: the page is the symbol's own navy; the dot colour takes over as the accent. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f4e79;
    --surface: #25588a;
    --surface-2: #19426a;
    --surface-3: #123655;
    --ink: #f3f8fc;
    --text: #f3f8fc;
    --text-2: #d8e5ef;
    --text-3: #b9cfe0;
    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.34);
    --primary: var(--mint);
    --on-primary: #0b2540;
    --pill-hover: #a3e1c6;
    --card-navy: #2f6ea3;
    --ok: var(--mint);
    --ok-soft: rgba(127, 209, 174, 0.2);
    --warn: #f0c24d;
    --warn-soft: rgba(240, 194, 77, 0.2);
    --bad: #ff9a9a;
    --bad-soft: rgba(255, 122, 122, 0.2);
    --info: #9ccbf0;
    --info-soft: rgba(156, 203, 240, 0.18);
    --prod: #ff9a9a;
    --staging: #f0c24d;
    --dev: var(--mint);
    --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); letter-spacing: -0.011em; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(127, 209, 174, 0.45); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 999px; }
.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(--primary); outline-offset: 3px; }
svg.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.icon.sm { width: 15px; height: 15px; }
svg.icon.lg { width: 22px; height: 22px; stroke-width: 1.6; }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { letter-spacing: -0.04em; }
h2 { font-size: 18px; font-weight: 650; margin: 32px 0 12px; }
h3 { font-size: 16px; font-weight: 650; margin: 20px 0 10px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
.hint { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Shell ---------- */

.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 64px; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; color: var(--ink); }
.brand img { border-radius: 9px; }
.wordmark { display: inline-flex; align-items: flex-end; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: -0.035em; line-height: 1; text-transform: lowercase; color: var(--ink); }
.wm-dot { width: 6px; height: 6px; margin: 0 0 3px 2px; border-radius: 50%; background: var(--mint); flex: none; }
.nav { display: flex; gap: 2px; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.nav-item svg { display: none; }
.nav-item:hover, .nav-item[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-item .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-size: 11px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.account { position: relative; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--border-strong); border-radius: 50%; background: none; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.15s; }
.avatar:hover, .avatar[aria-expanded="true"] { background: var(--surface-2); }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 230px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.account-who { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account-who span { font-size: 12.5px; color: var(--text-3); }
.account-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; }
a.account-item { text-decoration: none; }
.account-item:hover, .account-item:focus-visible { background: var(--surface-2); }

.servers-bar { padding: 0 var(--gutter); }
.servers-bar:has(.server-list:empty) { display: none; }
.server-list { list-style: none; margin: 0; padding: 12px 0 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.server-list::-webkit-scrollbar { display: none; }
.server-link { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px 0 12px; border: 1px solid var(--border); border-radius: 999px; background: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s; }
.server-link:hover { background: var(--surface-2); }
.server-link[aria-current="page"] { background: var(--surface-2); border-color: var(--border-strong); }
.server-link .name { font-size: 13.5px; font-weight: 600; }
.server-link .meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { display: block; min-width: 0; max-width: 1080px; margin: 0 auto; padding: 8px var(--gutter) 96px; outline: none; }
main:focus, main:focus-visible { outline: none; }
.page { animation: fade 0.2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.loading-page { display: flex; align-items: center; gap: 10px; color: var(--text-3); padding: 28px; }
.foot { padding: 0 var(--gutter) 40px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.foot > div { display: inline; }
.foot > div + div::before { content: " · "; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--pill-bg); color: var(--pill-fg); }
.btn.primary:hover { background: var(--pill-hover); }
.btn.ring { background: none; border-color: var(--border-strong); }
.btn.ring:hover { background: var(--surface-2); }
.btn.ghost { background: none; color: var(--text-2); padding: 0 14px; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 18%, transparent); }
.btn.danger.solid { background: var(--coral); color: #fff; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn svg { flex: none; }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards, chips, notices ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card + .card { margin-top: 16px; }
.grid > .card, .stack > .card, .stack > details.card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 650; }
.card-head h2 > svg, .card-head h3 > svg { display: none; }
.card-head .hint { margin-top: 2px; }
.card-body { padding: 22px; }
.card-body > :first-child { margin-top: 0; }
.card.full-access.on { border-color: var(--bad); background: var(--bad-soft); }
.card.full-access.on .card-head { border-bottom-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.card.full-access.on .card-head h2 { color: var(--bad); }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-foot.spread { justify-content: space-between; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.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)); }

.env, .chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.env::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.env.production { color: var(--prod); background: var(--bad-soft); }
.env.staging { color: var(--staging); background: var(--warn-soft); }
.env.development { color: var(--dev); background: var(--ok-soft); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.solid.ok { background: var(--mint); color: var(--on-mint); }
.chip.solid.warn { background: var(--mustard); color: #1a1300; }
.chip.solid.bad { background: var(--coral); color: #fff; }
.chip.solid .dot { background: currentColor; box-shadow: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--mint); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.warn { background: var(--mustard); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.bad { background: var(--coral); box-shadow: 0 0 0 3px var(--bad-soft); }
.dot.off { background: var(--border-strong); }
.chip .dot { box-shadow: none; }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.state.ok { color: var(--ok); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.state.off { color: var(--text-3); }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--info-soft); }
.notice > svg { margin-top: 2px; color: var(--info); }
.notice.ok { background: var(--ok-soft); }
.notice.ok > svg { color: var(--ok); }
.notice.warn { background: var(--warn-soft); }
.notice.warn > svg { color: var(--warn); }
.notice.bad { background: var(--bad-soft); }
.notice.bad > svg { color: var(--bad); }
.notice .title { font-weight: 650; margin-bottom: 2px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice .actions { margin-top: 10px; }

/* ---------- Page headings: one calm size ---------- */
.page-head, .band { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 20px 0 24px; }
.band { align-items: flex-start; }
.band-title h1, .page-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.page-head h1 { margin-top: 10px; }
.band-sub, .page-head .sub { margin: 8px 0 0; max-width: 620px; font-size: 15px; color: var(--text-2); }
.page-head .sub.mono { font-size: 13px; color: var(--text-3); }
.sp-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sp-sub .mono { color: var(--text-3); }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hint.nomargin { margin: 0; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0; padding: 0; border: 0; background: none; color: var(--text-2); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.crumb:hover { color: var(--ink); }
.band .crumb { margin: 0; }

/* ---------- Overview ---------- */
.overview { padding-top: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.server-card {
  --card: var(--card-navy); --card-ink: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 148px; padding: 20px 22px; border: 0; border-radius: var(--r-xl); background: var(--card); color: var(--card-ink); text-align: left; cursor: pointer;
}
/* Connected servers are green (the dot's mint); everything else is blue (the symbol's navy). */
.server-card.off { filter: saturate(0.55) brightness(0.94); }
.sc-top { display: flex; flex-direction: column; gap: 2px; }
.sc-name { font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -0.03em; text-wrap: balance; }
.server-card.choice .sc-name { display: inline-flex; align-items: center; gap: 10px; }
.server-card.choice .sc-conn { max-width: 34ch; font-size: 14px; line-height: 1.45; word-break: normal; overflow-wrap: break-word; }
.sc-conn { font-size: 13px; opacity: 0.8; word-break: break-all; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; }
.sc-status { display: inline-flex; align-items: center; gap: 8px; }
.sc-status .dot { box-shadow: none; }
.server-card .dot.off { background: rgba(255, 255, 255, 0.55); }
.sc-foot > svg { transition: transform 0.15s; }
.server-card:hover .sc-foot > svg { transform: translateX(3px); }
.add-card { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; min-height: 56px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-xl); background: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.add-card:hover { border-color: var(--primary); color: var(--ink); background: var(--surface-2); }

/* First run */
.first-run { max-width: 620px; padding-top: 48px; }
.first-run h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.lead { margin: 14px 0 28px; font-size: 17px; color: var(--text-2); }
.start-list { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--border); }
.start-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.start-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.start-list strong { display: block; font-size: 15.5px; font-weight: 650; }
.start-list span:not(.start-n) { font-size: 14px; color: var(--text-2); }

/* ---------- The preflight list: one bar per check ---------- */

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 24px; margin: 0 0 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.tab svg { display: none; }

/* ---------- Server overview ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist > li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); }
.checklist .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border-strong); font-weight: 700; font-size: 13px; color: var(--text-2); }
.checklist li.done { background: none; }
.checklist li.done .mark { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.checklist li.done .t { color: var(--text-2); }
.checklist li.next { box-shadow: inset 0 0 0 2px var(--primary); }
.checklist li.next .mark { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-fg); }
.checklist .t { font-size: 15px; font-weight: 650; }
.checklist .d { font-size: 13px; color: var(--text-2); }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 9px 0; }
.layers li::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -6px; width: 2px; background: var(--border); }
.layers li:last-child::before { display: none; }
.layers .ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; z-index: 1; }
.layers .ic.ok { background: var(--mint); color: var(--on-mint); }
.layers .ic.bad { background: var(--coral); color: #fff; }
.layers .ic.warn { background: var(--mustard); color: #1a1300; }
.layers .ic.skip { background: var(--surface-3); color: var(--text-3); }
.layers .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; }
.layers .d { font-size: 13.5px; color: var(--text-2); word-break: break-word; }
.layers .n { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.danger-row { margin-top: 8px; padding-top: 16px !important; border-top: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.danger-row .t { color: var(--bad); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field > label, .label { font-size: 13.5px; font-weight: 650; }
.field .opt { font-weight: 500; color: var(--text-3); }
.input { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid transparent; border-radius: var(--r); background: var(--surface-2); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--primary); background: var(--surface); }
textarea.input { height: auto; min-height: 96px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; resize: vertical; letter-spacing: 0; }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 13px; }
.row-fields { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.row-fields.even { grid-template-columns: 1fr 1fr; }
.options { display: grid; gap: 12px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color 0.15s; }
.option:hover { border-color: var(--border-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .o-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); flex: none; }
.option .o-title { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.option .o-desc { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.option > span:last-child { flex: 1; min-width: 0; }
.option:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.option:has(input:checked) .o-icon { background: var(--pill-bg); color: var(--pill-fg); }
.option:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.option.env-production:has(input:checked) .o-icon { background: var(--coral); color: #fff; }
.option.env-staging:has(input:checked) .o-icon { background: var(--mustard); color: #14100a; }
.option.env-development:has(input:checked) .o-icon { background: var(--mint); color: var(--on-mint); }
.option:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.segmented label { position: relative; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--text-2); }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.switch-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; padding-bottom: 0; }
.switch-row:first-child { padding-top: 0; }
.switch-row .t { font-weight: 650; }
.switch-row .d { font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
.switch-row.locked .t, .switch-row.locked .d { color: var(--text-3); }
.switch { appearance: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background 0.15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: 0.4; cursor: not-allowed; }
.form-section { padding: 22px 0; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section:last-child { padding-bottom: 0; }
.form-section h3 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
details.advanced { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); }
details.advanced > summary { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 650; color: var(--text-2); cursor: pointer; list-style: none; }
details.advanced > summary::before { content: "›"; display: inline-block; transition: transform 0.15s; }
details.advanced[open] > summary::before { transform: rotate(90deg); }
details summary::-webkit-details-marker { display: none; }
.card details.advanced { margin: 0; padding: 14px 22px 4px; border-top: 1px solid var(--border); }
.card details.advanced[open] { padding-bottom: 14px; }
.card details.advanced > summary { margin-bottom: 12px; }
.card details.advanced:not([open]) > summary { margin-bottom: 10px; }

/* ---------- Wizard ---------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 8px; color: var(--text-3); font-size: 13px; font-weight: 650; }
.steps li::before { content: ""; height: 6px; border-radius: 999px; background: var(--surface-3); }
.steps li.current::before { background: var(--primary); }
.steps li.done::before { background: var(--mint); }
.steps li.current { color: var(--ink); }
.steps li.done { color: var(--text-2); }
.steps .num { display: none; }
.wizard-panel .card-body { padding: clamp(20px, 3vw, 32px); }
.wizard-panel h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.04em; }
.wizard-panel .lead { margin: 0 0 24px; font-size: 15px; }

/* ---------- Details: key/values, tables, tiles, code ---------- */
.kv { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 10px 28px; margin: 0; }
.kv dt { color: var(--text-3); font-size: 13.5px; }
.kv dd { margin: 0; word-break: break-word; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 12px 22px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); }
td { padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.tile { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.tile .label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tile .value { margin-top: 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.tile .sub { margin: 0; font-size: 13px; color: var(--text-2); }
.fingerprint { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0; word-break: break-all; }
.fingerprint .type { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-family: var(--font); font-size: 11px; font-weight: 700; }
.fp-text { min-width: 0; }
.fingerprint.new { box-shadow: inset 0 0 0 2px var(--primary); background: var(--surface); }
.fingerprint.old { opacity: 0.55; text-decoration: line-through; }
pre { margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 440px; }
.code-row { display: flex; gap: 10px; align-items: flex-start; }
.code-row pre { flex: 1; }
.help-block { margin-top: 16px; }
.connect-card pre { background: #0b2238; color: #eaf2f8; }
pre.diff { padding: 10px 0; }
.diff .ln { display: block; padding: 0 16px; }
.diff .add { background: var(--ok-soft); color: var(--ok); }
.diff .del { background: var(--bad-soft); color: var(--bad); }
.diff .hunk { color: var(--info); }
.diff .meta { color: var(--text-3); }

/* Sites: what Claude may touch */
.perm-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.perm-col { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--surface-2); }
.perm-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.perm-items { display: flex; flex-wrap: wrap; gap: 6px; }
.path-chip { max-width: 100%; padding: 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-col.write .path-chip { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.perm-col.store .path-chip { background: var(--ok-soft); color: var(--ok); box-shadow: none; }

/* Capabilities */
.cap-grid { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.cap { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r); }
.cap-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.cap.ok .cap-ic { background: var(--mint); color: var(--on-mint); }
.cap.no .cap-ic { background: var(--surface-3); color: var(--text-3); }
.cap-t { font-weight: 650; }
.cap.no .cap-t { color: var(--text-2); }
.cap-d { font-size: 13px; color: var(--text-3); }


/* Activity: one plain list */
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pill-btn { height: 36px; padding: 0 16px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: none; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.pill-btn:hover { background: var(--surface-2); }
.pill-btn[aria-pressed="true"] { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-fg); }
.select-sm { width: auto; min-width: 160px; height: 36px; padding: 0 34px 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.act-day h3 { margin: 0; padding: 18px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.act-day:first-child h3 { padding-top: 16px; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 22px; }
.act + .act { border-top: 1px solid var(--border); }
.act-ic { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--surface-3); }
.act-ic svg { width: 13px; height: 13px; stroke-width: 2.4; }
.act.plain .act-ic::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.act.ok .act-ic { background: var(--mint); color: var(--on-mint); }
.act.wait .act-ic { background: none; box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.act.bad .act-ic { background: var(--coral); color: #fff; }
.act.warn .act-ic { background: var(--mustard); color: #1a1300; }
.act-title { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.act-meta { font-size: 13px; color: var(--text-3); }
.act-note { margin-top: 4px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.act-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 1px; }
.act-status { font-size: 13px; font-weight: 650; white-space: nowrap; }
.act-status.ok { color: var(--ok); }
.act-status.wait { color: var(--ink); }
.act-status.bad { color: var(--bad); }
.act-status.warn { color: var(--warn); }
.act-status.plain { color: var(--text-3); }
.more-row { display: flex; justify-content: center; }
.more-row:empty { display: none; }

/* Recovery */
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 22px; }
.rp + .rp { border-top: 1px solid var(--border); }
.rp-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--on-mint); }
.rp:not(.available) .rp-ic { background: var(--surface-3); color: var(--text-3); }
.rp-t { font-weight: 650; }
.rp-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- Approvals: one plan, one column ---------- */
.plan { --edge: var(--primary); border: 1px solid var(--border); border-top: 4px solid var(--edge); border-radius: var(--r-lg); background: var(--surface); }
.plan.env-production { --edge: var(--coral); }
.plan.env-development { --edge: var(--mint); }
.plan > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; }
.plan > summary > svg { margin-top: 28px; flex: none; color: var(--text-3); transition: transform 0.15s; }
.plan[open] > summary > svg { transform: rotate(90deg); }
.plan-where { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.plan-head h2 { margin: 10px 0 6px; font-size: 19px; line-height: 1.3; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.plan-meta2 { font-size: 13px; color: var(--text-3); }
.plan-body { display: flex; flex-direction: column; gap: 18px; padding: 4px 22px 22px; }
.plan-sec h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.plan-sec ul, .plan-body details ul { margin: 0; padding-left: 18px; }
.plan-sec li + li, .plan-body details li + li { margin-top: 6px; }
.plan-body li { overflow-wrap: anywhere; }
.plan-kv { padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); gap: 8px 20px; }
.plan-kv dt { font-weight: 650; color: var(--text-2); }
.plan .advanced { margin: 0; padding: 0; border: 0; }
.plan .advanced > summary { margin-bottom: 10px; }
.plan .advanced:not([open]) > summary { margin-bottom: 0; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 22px; }
.recent-list li + li { border-top: 1px solid var(--border); }
.recent-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Help ---------- */
.faq { overflow: hidden; }
.faq details { padding: 0 22px; border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface-2); font-size: 17px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 16px; margin: 0; color: var(--text-2); max-width: 70ch; }
details.advanced-card > summary { list-style: none; cursor: pointer; border-bottom: 0; }
details.advanced-card[open] > summary { border-bottom: 1px solid var(--border); }
details.advanced-card > summary h2::after, details.advanced-card > summary h3::after { content: "›"; margin-left: 4px; color: var(--text-3); display: inline-block; transition: transform 0.15s; }
details.advanced-card[open] > summary h2::after, details.advanced-card[open] > summary h3::after { transform: rotate(90deg); }

/* ---------- Empty states, toasts, dialogs, sign-in ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty .ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.empty strong { color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -0.03em; }
.empty > div:not(.ic) { max-width: 400px; font-size: 14px; }
.empty .btn { margin-top: 12px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--navy-deep); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); }
.toast.ok > svg { color: var(--mint); }
.toast.bad > svg { color: #ff8a8a; }
@media (prefers-color-scheme: dark) { .toast { background: var(--mint); color: var(--on-mint); } .toast.ok > svg { color: var(--on-mint); } .toast.bad > svg { color: #a31f1f; } }
dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog::backdrop { background: rgba(11, 31, 51, 0.45); }
dialog:has(.btn.danger) { box-shadow: inset 0 4px 0 var(--coral), var(--shadow-lg); }
dialog ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.signin-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin { max-width: 420px; padding: 40px 32px; text-align: center; }
.signin img { margin-bottom: 18px; border-radius: 13px; }
.signin h1 { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: 20px; font-weight: 650; }
.signin .wordmark { font-size: 30px; }
.signin p { margin: 0; color: var(--text-2); }
.signin-form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; text-align: left; }
.signin-form label { font-size: 13.5px; font-weight: 650; }
.signin-form .btn { margin-top: 6px; }
.signin-form .hint { margin: 4px 0 0; }
.auth .auth-title { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
.auth .signin-form { margin-top: 16px; }
.auth-note { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--info-soft); text-align: left; font-size: 14px; }
.auth-note.ok { background: var(--ok-soft); }
.auth-note.bad { background: var(--bad-soft); }
.auth-links { margin: 18px 0 0; font-size: 13.5px; color: var(--text-3); }
.auth-links a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.auth p { margin: 10px 0 0; }
.auth .auth-sub { margin: 26px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); text-align: left; }
.auth code, .auth .secret { display: block; margin: 10px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font: 13px var(--mono); letter-spacing: 0; word-break: break-all; text-align: left; user-select: all; }
.auth.wide { max-width: 560px; }
.auth ul.codes { list-style: none; margin: 12px 0 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; border-radius: var(--r); background: var(--surface-2); font: 13.5px var(--mono); text-align: left; }
.auth .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; text-align: left; }
/* On the navy page the symbol's own square would vanish, so it gets a light edge. */
@media (prefers-color-scheme: dark) { .brand img, .signin img { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.4); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perm-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { grid-template-columns: auto 1fr auto; }
  .nav { justify-self: center; }
}
@media (max-width: 860px) {
  .grid.cols-2, .grid.cols-3, .options.cols-2, .options.cols-3, .cap-grid, .perm-map { grid-template-columns: 1fr; }
  .row-fields, .row-fields.even { grid-template-columns: 1fr; }
  .card-head, .card-body, .recent-list li, .rp { padding-left: 18px; padding-right: 18px; }
  .card-foot { padding-left: 18px; }
  .act { grid-template-columns: 24px minmax(0, 1fr); padding: 12px 18px; }
  .act-end { grid-column: 2; justify-content: flex-start; }
  .act-day h3 { padding-left: 18px; padding-right: 18px; }
  .rp { grid-template-columns: 40px minmax(0, 1fr); }
  .rp-meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .recent-list li { grid-template-columns: 10px minmax(0, 1fr); }
  .recent-list .chip, .recent-list .faint { grid-column: 2; justify-self: start; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 12px; }
  .steps li { font-size: 0; }
  .steps li.current { font-size: 13px; }
}
/* Phones: a floating, rounded tab bar at the bottom, kept low and tight: little padding, icon close over its label. */
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; height: 60px; }
  .wordmark { font-size: 22px; }
  #add-server-mini { width: 40px; padding: 0; font-size: 0; gap: 0; }
  .nav { position: fixed; left: 14px; right: 14px; justify-self: stretch; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; justify-content: space-around; gap: 2px; padding: 4px; border-radius: 16px; background: var(--navy-deep); box-shadow: var(--shadow-lg); }
  .nav-item { flex: 1; flex-direction: column; justify-content: center; gap: 1px; height: 42px; padding: 0 4px; color: rgba(255, 255, 255, 0.7); font-size: 10px; font-weight: 600; line-height: 1.1; border-radius: 12px; }
  .nav-item svg { display: block; width: 20px; height: 20px; }
  .nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .nav-item[aria-current="page"] { background: var(--mint); color: var(--on-mint); }
  .nav-item .count { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  main { padding-bottom: 40px; }
  .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .toasts { left: 14px; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .page-head, .band { margin: 8px 0 20px; }
  .first-run { padding-top: 24px; }
  .plan > summary, .plan-body { padding-left: 18px; padding-right: 18px; }
  .plan-foot .actions { width: 100%; }
  .plan-foot .actions .btn { flex: 1; }
  .first-run .actions .btn { flex: 1; }
  .tabs { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Connect a server (one line) ---------- */
.quick-card { max-width: 720px; overflow: hidden; }
.quick-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.quick-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--text-3); font-weight: 600; font-size: 13px; }
.quick-steps .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 12px; }
.quick-steps li.current { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.quick-steps li.current .num { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.quick-steps li.done { color: var(--text-2); }
.quick-steps li.done .num { background: var(--mint); color: var(--on-mint); box-shadow: none; }
.quick-card .card-body h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.input.input-lg { height: 52px; font-size: 16px; font-family: var(--mono); padding: 0 16px; border-radius: var(--r); }
.parsed { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; min-height: 4px; }
.parsed .chip .faint { font-weight: 500; }
.quick-actions { display: flex; justify-content: flex-end; gap: 10px; max-width: 720px; margin-top: 16px; }
.quick-actions.inline { max-width: none; margin-top: 4px; justify-content: space-between; }
button.link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-picks { display: flex; flex-direction: column; gap: 8px; }
.site-pick { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.site-pick:hover { border-color: var(--primary); }
.site-pick:has(input:checked) { border-color: var(--primary); background: var(--info-soft); }
.site-pick.added { cursor: default; opacity: 0.7; }
.site-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.sp-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-title { font-weight: 700; color: var(--ink); }
.sp-url { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-path { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .quick-steps li span:last-child { display: none; } .site-pick { grid-template-columns: 20px 1fr; } .sp-side { grid-column: 2; justify-content: flex-start; } }
.quick-card .field > .segmented { align-self: flex-start; }

/* ---------- Add: choices and the run-a-command step ---------- */
.section-title { margin: 28px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.band + .section-title { margin-top: 8px; }
.server-card.choice.featured { --card: var(--mint); --card-ink: var(--on-mint); }
.server-card.choice .chip { margin-left: 4px; background: rgba(255, 255, 255, 0.7); color: var(--on-mint); box-shadow: none; font-size: 11.5px; }
.cmd-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cmd-box .cmd-text { width: 100%; max-height: 6.4em; margin: 0; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; line-height: 1.55; background: #0b2238; color: #eaf2f8; border-radius: var(--r); padding: 12px 14px; }
textarea.input.mono { font-family: var(--mono); font-size: 13px; }
button.provider-row { width: 100%; text-align: left; background: none; font: inherit; color: inherit; }
button.provider-row .sp-side { color: var(--text-3); }

/* ---------- Dashboard: servers and plugin sites in their own sections, blue cards with green inside ---------- */
.dash-section + .dash-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.dash-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.dash-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.dash-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-size: 12px; font-weight: 700; align-self: center; }
.dash-hint { flex: 1 1 260px; color: var(--text-2); font-size: 14px; }
.dash-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dash-add:hover { border-color: var(--primary); background: var(--surface-2); }
.dash-section .add-card { margin-top: 0; }
.sc-kind { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.85; }
.sc-kind .icon { color: var(--mint); }
.server-card { position: relative; overflow: hidden; background-image: radial-gradient(90% 80% at 100% 100%, rgba(127, 209, 174, 0.10), transparent 62%); }
.server-card.ok { background-image: radial-gradient(90% 85% at 100% 100%, rgba(127, 209, 174, 0.34), transparent 64%); }
.server-card.ok .sc-status .dot { background: var(--mint); box-shadow: 0 0 0 3px rgba(127, 209, 174, 0.3); }
.server-card.ok .sc-foot > svg { box-sizing: content-box; width: 14px; height: 14px; padding: 6px; border-radius: 50%; background: var(--mint); color: var(--on-mint); }
.server-card.warn .sc-status .dot { background: var(--mustard); box-shadow: 0 0 0 3px rgba(240, 190, 80, 0.3); }
.server-card.bad .sc-status .dot { background: var(--coral); box-shadow: 0 0 0 3px rgba(235, 110, 100, 0.3); }
