@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "C64 Keyboard";
  src: url("/static/fonts/C64Keyboard-Regular.ttf") format("truetype");
  font-display: swap;
}

/* Theme: light by default; dark follows the OS unless the user picked a
   theme (html[data-theme], set by theme.js before first paint). */
:root {
  color-scheme: light;
  --bg: #f8f9fb;
  --fg: #1c2433;
  --muted: #646d7b;
  --line: #e1e5eb;
  --card: #ffffff;
  --accent: #0b6cf2;          /* fills: primary buttons, highlights (logo blue) */
  --accent-hover: #0959cc;
  --accent-fg: #ffffff;       /* text on accent fills */
  --link: #0a5fd6;            /* accent-derived text color with AA contrast on light */
  --focus: #0b6cf2;
  --ok: #18794e;
  --warn: #9a5500;
  --bad: #c62828;
  --code: #eef1f5;
  --radius: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101318; --fg: #edf0f5; --muted: #a0a9b7; --line: #2a303a; --card: #181d25;
    --accent: #2f8fff; --accent-hover: #5aa7ff; --accent-fg: #0b1220;
    --link: #6cb2ff; --focus: #6cb2ff;
    --ok: #4cc38a; --warn: #f0a050; --bad: #ff6b6b; --code: #222a35;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101318; --fg: #edf0f5; --muted: #a0a9b7; --line: #2a303a; --card: #181d25;
  --accent: #2f8fff; --accent-hover: #5aa7ff; --accent-fg: #0b1220;
  --link: #6cb2ff; --focus: #6cb2ff;
  --ok: #4cc38a; --warn: #f0a050; --bad: #ff6b6b; --code: #222a35;
}
/* C64 theme: the boot-screen palette (light blue on blue, yellow accent) and
   the C64 keyboard font. Text is lightened from the stock palette for
   contrast; the font has one weight, so no synthetic bold, and it sets small,
   so the base size goes up a step. */
:root[data-theme="c64"] {
  color-scheme: dark;
  --bg: #40318d; --fg: #d2ccff; --muted: #a39ae8; --line: #6c5eb5; --card: #352879;
  --accent: #F7CA54; --accent-hover: #ffd76f; --accent-fg: #352879;
  --link: #F7CA54; --focus: #F7CA54;
  --ok: #9ad284; --warn: #e0a070; --bad: #ff9a90; --code: #2c2266;
  --sans: "C64 Keyboard", ui-monospace, monospace;
  --mono: "C64 Keyboard", ui-monospace, monospace;
}
:root[data-theme="c64"] body { font-size: 16px; line-height: 1.6; font-synthesis: none; }
:root[data-theme="c64"] * { letter-spacing: 0 !important; border-radius: 0 !important; }
/* Cassette futurism: ivory equipment housings, tactile keys, orange labels,
   and an amber phosphor console. Keep the palette independent of OS mode. */
:root[data-theme="cassette"] {
  color-scheme: light;
  --bg: #ded8c8; --fg: #292c28; --muted: #5e6055; --line: #939181; --card: #f2eddf;
  --accent: #ad3e1d; --accent-hover: #913116; --accent-fg: #fff7e8;
  --link: #963718; --focus: #17646b;
  --ok: #34633f; --warn: #805414; --bad: #a32e29; --code: #e3ddcc;
  --radius: 3px;
  --sans: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
/* Column layout keeps the footer at the bottom of short pages. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body { font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
input, select, textarea, button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--code); padding: .1em .35em; border-radius: 4px; }

.top { display: flex; align-items: center; gap: 1.5rem; padding: 1rem max(1.5rem, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line);
  flex-wrap: wrap; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand-row { display: flex; align-items: center; gap: .6rem; }
.logo { display: block; height: 1.5rem; width: auto; border-radius: 4px; }
.brand { white-space: nowrap; font-size: 1rem; font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
.brand span { background: var(--accent); color: var(--accent-fg); margin-left: .3em; padding: .05em .4em; border-radius: 5px; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; flex: 1; }
nav a { color: var(--muted); }
nav a.active { color: var(--link); background: color-mix(in srgb, var(--accent) 9%, transparent); font-weight: 600; }
nav > a:not(.btn) { padding: .45rem .55rem; border-radius: 6px; }
nav a.active:hover { text-decoration: none; }
nav .spacer { flex: 1; }

#account { flex: none; margin-left: auto; }
#account:empty { display: none; }
#account:not(:empty) ~ .theme-picker { margin-left: 0; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; justify-content: center; gap: .35rem; width: 3.5rem; height: 2.625rem; padding: 0; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { border-color: var(--muted); }
.account-icon { display: block; width: 1.25rem; height: 1.25rem; }
.account-chevron { color: var(--muted); }
.account-options { position: absolute; top: calc(100% + .5rem); right: 0; width: min(18rem, calc(100vw - 2rem));
  padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 8px 24px #0002; }
.account-identity { display: grid; gap: .2rem; padding: .65rem .6rem; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.account-balance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; color: var(--fg); }
.account-balance strong { font-variant-numeric: tabular-nums; }
.account-options a, .account-options button { width: 100%; padding: .65rem .6rem; border: 0; border-radius: 6px;
  background: transparent; text-align: left; font-size: .875rem; }
.account-options a:hover, .account-options button:hover, .account-options :focus-visible { background: var(--code); text-decoration: none; }

main { max-width: 1120px; margin: 0 auto; padding: 2.75rem 1.5rem 5rem; min-width: 0; }
main.narrow { max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.withbutton { margin-bottom: 10px; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; padding-bottom: .75rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.8rem; font-weight: 600; margin-top: .5rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.btn, button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  padding: .6rem 1rem; border-radius: 8px; display: inline-block; line-height: 1.4; text-align: center; transition: background-color .15s, border-color .15s; }
.btn:hover, button:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.btn.primary:hover, button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
button:disabled:hover { border-color: var(--line); }
button.link { border: 0; background: none; color: var(--link); padding: 0; }
button.link.danger { color: var(--bad); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0; }
thead { background: color-mix(in srgb, var(--line) 22%, var(--card)); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, var(--card)); }

form.stack { display: grid; gap: .9rem; max-width: 520px; }
.form-section { display: grid; gap: .9rem; min-width: 0; margin: 0; padding: .9rem 1rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); }
.form-section > legend { padding: 0 .35rem; font-size: 1rem; font-weight: 600; }
label { display: grid; gap: .3rem; font-size: .9rem; }
label .hint { color: var(--muted); font-size: .8rem; }
input, select, textarea { font: inherit; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--fg); width: 100%; }
form[data-form="createVM"] :is(input:not([type=checkbox]), select),
form[data-form="upload"] :is(input:not([type=checkbox]), select, button),
.vm-page :is(input:not([type=checkbox]), select, button) { height: 2.75rem; padding-block: .5rem; }
form[data-form="upload"] input[type=file] { padding-block: .25rem; }
.vm-page button { display: inline-flex; align-items: center; justify-content: center; }
.vm-page button.copy-button { width: 1.75rem; height: 1.75rem; padding: 0; flex: none; vertical-align: middle; border-radius: 5px; }
.vm-page h1 { display: flex; align-items: center; gap: .5rem; }
.vm-page h1 .badge { font-weight: 400; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=file] { max-width: 100%; }
input::file-selector-button { font: inherit; color: var(--fg); background: var(--code); border: 0; border-radius: 4px; padding: .3rem .55rem; margin-right: .75rem; cursor: pointer; }
.inline { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
textarea.mono { font-size: .82rem; resize: vertical; }
.key-picks { display: grid; gap: .4rem; font-size: .9rem; }
.key-picks .hint { color: var(--muted); font-size: .8rem; }
.fp { overflow-wrap: anywhere; }
.inline label { flex: 1; min-width: 120px; }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; line-height: 1.5; letter-spacing: normal; border: 1px solid var(--line);
  color: var(--muted); white-space: nowrap; }
.badge.running, .badge.active, .badge.paid { color: var(--ok); border-color: color-mix(in srgb, currentColor 25%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--card)); }
.badge.paused, .badge.draining, .badge.pending, .badge.creating, .badge.starting, .badge.stopping,
.badge.provisioning, .badge.registered, .badge.deleting, .badge.restoring, .badge.terminating { color: var(--warn); border-color: color-mix(in srgb, currentColor 25%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--card)); }
.badge.error, .badge.disabled { color: var(--bad); border-color: color-mix(in srgb, currentColor 25%, transparent); background: color-mix(in srgb, var(--bad) 7%, var(--card)); }

/* Console: always a dark terminal. ANSI colors 0-15 (app.js renderTerminal); 16-255 and
   24-bit colors are set per element. */
pre.console { background: var(--console-bg); color: var(--console-fg); padding: .9rem; border-radius: var(--radius); height: 420px;
  min-height: 120px; resize: vertical; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 0;
  --console-fg: #d9d9d2; --console-bg: #0f0f0e;
  --ansi-0: #3b3b38; --ansi-1: #e5534b; --ansi-2: #57ab5a; --ansi-3: #c69026; --ansi-4: #539bf5; --ansi-5: #b083f0; --ansi-6: #39c5cf; --ansi-7: #c8c8c0;
  --ansi-8: #76766f; --ansi-9: #ff7b72; --ansi-10: #7ee787; --ansi-11: #e3b341; --ansi-12: #79c0ff; --ansi-13: #d2a8ff; --ansi-14: #56d4dd; --ansi-15: #ffffff;
}
.ansi-fg-0 { color: var(--ansi-0); } .ansi-fg-1 { color: var(--ansi-1); } .ansi-fg-2 { color: var(--ansi-2); } .ansi-fg-3 { color: var(--ansi-3); }
.ansi-fg-4 { color: var(--ansi-4); } .ansi-fg-5 { color: var(--ansi-5); } .ansi-fg-6 { color: var(--ansi-6); } .ansi-fg-7 { color: var(--ansi-7); }
.ansi-fg-8 { color: var(--ansi-8); } .ansi-fg-9 { color: var(--ansi-9); } .ansi-fg-10 { color: var(--ansi-10); } .ansi-fg-11 { color: var(--ansi-11); }
.ansi-fg-12 { color: var(--ansi-12); } .ansi-fg-13 { color: var(--ansi-13); } .ansi-fg-14 { color: var(--ansi-14); } .ansi-fg-15 { color: var(--ansi-15); }
.ansi-bg-0 { background: var(--ansi-0); } .ansi-bg-1 { background: var(--ansi-1); } .ansi-bg-2 { background: var(--ansi-2); } .ansi-bg-3 { background: var(--ansi-3); }
.ansi-bg-4 { background: var(--ansi-4); } .ansi-bg-5 { background: var(--ansi-5); } .ansi-bg-6 { background: var(--ansi-6); } .ansi-bg-7 { background: var(--ansi-7); }
.ansi-bg-8 { background: var(--ansi-8); } .ansi-bg-9 { background: var(--ansi-9); } .ansi-bg-10 { background: var(--ansi-10); } .ansi-bg-11 { background: var(--ansi-11); }
.ansi-bg-12 { background: var(--ansi-12); } .ansi-bg-13 { background: var(--ansi-13); } .ansi-bg-14 { background: var(--ansi-14); } .ansi-bg-15 { background: var(--ansi-15); }
.ansi-fg-inv { color: var(--console-bg); } .ansi-bg-inv { background: var(--console-fg); }
.ansi-bold { font-weight: 700; } .ansi-dim { opacity: .6; } .ansi-italic { font-style: italic; }
.ansi-underline { text-decoration: underline; } .ansi-strike { text-decoration: line-through; }
.ansi-underline-strike { text-decoration: underline line-through; } .ansi-hidden { visibility: hidden; }
form.console-input { margin-top: .5rem; }
form.console-input input { font-family: var(--mono); }
pre.script { background: var(--code); padding: .9rem; border-radius: var(--radius); overflow-x: auto; }
.error-box { border: 1px solid var(--bad); color: var(--bad); border-radius: var(--radius); padding: .6rem .8rem; margin: .5rem 0; }
.note { border-left: 3px solid var(--accent); padding: .3rem .8rem; color: var(--muted); margin: .75rem 0; }

.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero { padding: 3.5rem 0 3.75rem; max-width: 940px; }
.hero .eyebrow { color: var(--link); margin: 0 0 1.5rem; }
.hero h1 { font-size: clamp(2.25rem, 4.5vw, 3.65rem); line-height: 1.12; font-weight: 600; letter-spacing: -.05em; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--muted); }
.hero-lead { font-size: 1.1rem; line-height: 1.75; color: var(--muted); max-width: 780px; }
.hero-actions { margin-top: 2rem; }
.hero-actions .btn { padding: .75rem 1.1rem; }
.hero-actions .btn span { margin-left: .75rem; }
.hero-note { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 1.75rem 0; border-block: 1px solid var(--line); }
.workflow > div { display: flex; gap: .9rem; }
.step { font: .75rem/1.8 var(--mono); color: var(--link); }
.workflow h2 { font-size: .9rem; margin: 0 0 .3rem; font-weight: 600; }
.workflow p { color: var(--muted); font-size: .8rem; margin: 0; line-height: 1.65; }
.landing-details { padding-top: 3.5rem; }
.section-heading { max-width: 780px; margin-bottom: 1.75rem; }
.section-heading h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.025em; margin: 0 0 .65rem; }
.section-heading p { font-size: .9rem; margin: 0; }
.section-heading .eyebrow { font-size: .7rem; color: var(--link); margin-bottom: .65rem; }
.landing-details .card { display: flex; flex-direction: column; align-items: start; padding: 1.4rem; }
.landing-details h3 { margin: .7rem 0 0; font-weight: 600; }
.landing-details .card p { line-height: 1.75; flex: 1; margin-bottom: 1.25rem; }
.landing-details .card > a { font-weight: 500; }
.linux-apps { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.linux-apps h3 { margin: 0; }
.linux-apps .card p { margin-bottom: 0; }
#linux-title { scroll-margin-top: 7rem; }
.unikernel-apps { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.unikernel-apps h3 { margin: 0; }
.unikernel-apps .card p { margin-bottom: 1rem; }
unikernel-title { scroll-margin-top: 7rem; }
#pricing-title { scroll-margin-top: 7rem; }
.pricing-rates tbody th { color: var(--fg); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.pricing-rates td { font-size: .85rem; }
.pricing-rates td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.trial-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 3.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.trial-copy { min-width: 0; }
.trial-copy .eyebrow { color: var(--link); margin: 0 0 .75rem; }
.trial-copy h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; margin: 0; }
.trial-copy > .muted { max-width: 440px; font-size: .9rem; line-height: 1.75; margin: .75rem 0 0; }
.trial-actions { display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0; text-align: center; }
.trial-actions .btn { padding: .75rem 1.1rem; }
.trial-actions .btn span { margin-left: .75rem; }
.trial-actions p { margin: 0; }
.page-heading { margin-bottom: 1.25rem; }
.page-heading .eyebrow { margin: 0 0 .5rem; }
.page-heading h1, .row.between > h1 { margin-bottom: 0; }
.empty-state { text-align: center; padding: 4rem 1.5rem; margin-top: 1.75rem; }
.empty-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 1.25rem; border: 1px solid var(--line); border-radius: 10px; color: var(--link); font-size: 1.5rem; }
.empty-state h2 { font-size: 1.2rem; margin: 0; letter-spacing: -.025em; }
.empty-state p { font-size: .9rem; line-height: 1.75; margin: .75rem 0 1.5rem; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; background: var(--card); padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 6px; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
.plans-wrap { width: fit-content; max-width: 100%; }
table.plans { width: auto; max-width: 760px; }
table.plans tbody th { text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--muted); font-weight: 400; }
table.plans tr.group th { color: var(--fg); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 1.1rem; }
table.plans thead th:not(:first-child) { color: var(--fg); font-weight: 650; font-size: .95rem; text-transform: none; letter-spacing: 0; }
table.plans td.shared { text-align: center; }
table.plans .current { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg);
  padding: .6rem 1rem; border-radius: 6px; max-width: calc(100% - 2rem); z-index: 10; }
.toast.bad { background: var(--bad); color: #fff; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  main { padding: 1.75rem 1rem 3rem; }
  .hero { padding: 2rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.7rem); }
  .hero-lead { font-size: 1rem; }
  .workflow { grid-template-columns: 1fr; gap: 1.4rem; }
  .landing-details { padding-top: 2.5rem; }
  .landing-details .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-details .card { padding: 1rem; }
  .trial-cta { flex-direction: column; align-items: stretch; gap: 1.5rem; margin-top: 2.5rem; }
  .empty-state { padding: 2.5rem 1rem; }
  th, td { padding: .75rem; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .kv dd { margin-bottom: .65rem; }
  /* Account navigation stays beside the brand; app navigation gets its own row. */
  .top { gap: .5rem 1rem; padding: .75rem 1rem 0; }
  .brand-row { gap: .45rem; }
  .account-menu summary { width: 3.25rem; height: 2.5rem; }
  .account-options { right: -3.25rem; }
  nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; gap: .35rem; overflow-x: auto; padding: .35rem 0 .6rem; white-space: nowrap; }
  nav .spacer { flex: 1 0 0; }
  .top:has(.public-nav) { flex-wrap: nowrap; gap: .375rem; padding: .75rem; }
  .top:has(.public-nav) .brand { font-size: .875rem; }
  nav.public-nav { order: initial; flex: 1; justify-content: flex-end; padding: 0; overflow: visible; }
  .public-nav .spacer { display: none; }
  .public-nav .btn { font-size: .85rem; padding: .6rem .5rem; white-space: nowrap; }
}
.mt { margin-top: 1rem; }
.my { margin: 1rem 0; }
.bad { color: var(--bad); }

/* Theme switcher */
.theme-symbols { position: absolute; pointer-events: none; }
.theme-picker { position: relative; flex: none; margin-left: auto; }
.theme-picker summary { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.625rem;
  list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); }
.theme-picker summary::-webkit-details-marker { display: none; }
.theme-picker summary:hover, .theme-picker[open] summary { border-color: var(--muted); }
.theme-icon { display: block; flex: none; width: 1.25rem; height: 1.25rem; }
.theme-options { position: absolute; top: calc(100% + .5rem); right: 0; width: min(16rem, calc(100vw - 2rem)); padding: .35rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 8px 24px #0002; }
.theme-options button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem .6rem;
  border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: .875rem; }
.theme-options button:hover, .theme-options button:focus-visible { background: var(--code); }
.theme-options button[aria-pressed="true"] { color: var(--link); }
.theme-check { margin-left: auto; visibility: hidden; }
[aria-pressed="true"] > .theme-check { visibility: visible; }
@media (max-width: 640px) { .theme-picker summary { width: 2.25rem; height: 2.5rem; } }

/* Footer */
.foot { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.foot a { color: var(--muted); }
.foot .flag { height: .85em; width: auto; }
.badge.beta { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 650;
  text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; padding: .1rem .55rem; }
.card.new-key { border: 2px solid var(--accent); }
.card.domain { margin: .5rem 0; }
.card.domain details { margin-top: .5rem; }
.dns-records { margin: .5rem 0 0; }
.dns-records dd { word-break: normal; }
.dns-records code { word-break: break-all; }

/* Equipment panels and keycaps; scoped so other themes retain their shape. */
:root[data-theme="cassette"] .top {
  background: var(--card); border-bottom: 4px solid var(--accent);
  box-shadow: inset 0 3px #fff9, 0 2px 0 #292c28;
}
:root[data-theme="cassette"] :is(.brand, h1, h2, h3) { letter-spacing: -.025em; }
:root[data-theme="cassette"] :is(.eyebrow, .stat .label, th) { font-weight: 700; letter-spacing: .08em; }
:root[data-theme="cassette"] :is(.btn, button, input, select, textarea, summary, .badge, .brand span, nav > a, .account-options, .theme-options, .empty-icon) { border-radius: 3px; }
:root[data-theme="cassette"] :is(.btn, button:not(.link), .theme-picker summary) {
  box-shadow: inset 0 1px 0 #fff5, 0 2px 0 #292c2866;
}
:root[data-theme="cassette"] :is(.btn, button:not(.link)):active { box-shadow: inset 0 2px 3px #292c2833; }
:root[data-theme="cassette"] :is(.theme-options, .account-options) button { box-shadow: none; }
:root[data-theme="cassette"] :is(input, select, textarea) { box-shadow: inset 0 2px 3px #292c2818; }
:root[data-theme="cassette"] :is(.card, .table-wrap, .trial-cta) {
  box-shadow: inset 0 1px 0 #fff9, 2px 3px 0 #292c2826;
}
:root[data-theme="cassette"] .card {
  background-image: radial-gradient(circle at calc(100% - 9px) 9px, var(--muted) 1.5px, transparent 2px);
}
:root[data-theme="cassette"] .hero > .eyebrow {
  display: inline-block; padding: .35rem .65rem; background: var(--fg); color: var(--card);
  border-left: 5px solid var(--accent);
}
:root[data-theme="cassette"] .workflow { border-top: 3px double var(--muted); border-bottom: 3px double var(--muted); }
:root[data-theme="cassette"] .step { font-weight: 700; }
:root[data-theme="cassette"] pre.console {
  --console-bg: #20251f; --console-fg: #f0be70;
  border: 3px solid #55594d; box-shadow: inset 0 0 18px #0006, 0 1px 0 #fff9;
}
:root[data-theme="cassette"] .foot { background: var(--card); border-top: 3px double var(--muted); }
@media (max-width: 640px) {
  :root[data-theme="cassette"] .public-nav .btn { padding-inline: .3rem; }
}

/* Help page */
.help { max-width: 780px; }
.help h2, #ssh { scroll-margin-top: 4.5rem; }
.help li { margin: .3rem 0; }
.help .kv { margin-bottom: 1rem; }
.help .kv dd { word-break: normal; }
.toc { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .help h2, #ssh { scroll-margin-top: 6.5rem; } .help .kv { grid-template-columns: 1fr; gap: .1rem; } .help .kv dd { margin-bottom: .5rem; } }

@media (min-width: 641px) and (max-width: 1000px) {
  .top { gap: .75rem; }
}
@media (max-width: 480px) {
  .landing-details .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, button { transition: none; }
}
