@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #d8d3c9;
  --paper-light: #ebe7dd;
  --ink: #171917;
  --muted: #6c6d67;
  --floppy: #2d302e;
  --floppy-hi: #414541;
  --label: #e7e0c8;
  --red: #e34b3f;
  --green: #9de15a;
  --shadow: 0 1px 1px rgb(24 25 23 / .08), 0 12px 32px rgb(24 25 23 / .1), 0 36px 72px rgb(24 25 23 / .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 14%, rgb(255 255 255 / .28), transparent 28rem),
    linear-gradient(135deg, #d5d0c6, #ded9ce 58%, #ccc7bd);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 30px 38px;
  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.06em;
}
.brand a { text-decoration: none; }
.brand-dot { color: var(--red); font-size: .58em; margin-left: 3px; vertical-align: top; }

main { min-height: 100vh; }
.view { min-height: 100vh; }
.login-view {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(430px, 1.12fr);
  align-items: center;
  gap: clamp(32px, 7vw, 120px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px clamp(36px, 7vw, 110px) 72px;
}

.intro { align-self: center; max-width: 620px; }
.eyebrow {
  margin: 0 0 24px;
  font: 600 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .17em;
}
.intro h1 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 600;
}
.intro h1 em {
  position: relative;
  color: var(--red);
  font-style: normal;
}
.intro h1 em::after {
  content: "";
  position: absolute;
  left: 2%; right: -3%; bottom: .06em;
  height: .08em;
  background: currentColor;
  transform: rotate(-1.4deg);
}
.lede {
  max-width: 500px;
  margin: 30px 0 0;
  color: #4e504c;
  font-size: 17px;
  line-height: 1.65;
}

.auth-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 38px; max-width: 510px; }
.auth-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 2px 4px rgb(0 0 0 / .08);
  transition-property: transform, box-shadow, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.auth-button svg { width: 19px; height: 19px; flex: 0 0 auto; }
.auth-button.github { background: #202220; color: white; }
.auth-button.google { background: #f3f0e8; }
.auth-button:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 5px 12px rgb(0 0 0 / .12); }
.auth-button:active { transform: scale(.96); }
.auth-button:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid rgb(227 75 63 / .42); outline-offset: 3px; }
.auth-button.disabled { opacity: .46; cursor: not-allowed; transform: none; }
.preview-link { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; justify-content: center; font: 500 12px/1 "IBM Plex Mono", monospace; }

.hero-floppy { justify-self: center; width: min(100%, 570px); perspective: 1000px; }
.hero-floppy > p { margin: 24px 0 0; text-align: center; font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .17em; color: #777871; }
.floppy-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px 14px 18px 18px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(255 255 255 / .025) 50%, transparent 50.3%),
    linear-gradient(145deg, var(--floppy-hi), var(--floppy) 36%, #242624);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .05), inset 0 -20px 40px rgb(0 0 0 / .16), var(--shadow);
  transform: rotate(2.4deg);
}
.floppy-shell::before {
  content: "";
  position: absolute;
  top: 2%; left: 3%; right: 3%;
  height: 1px;
  background: rgb(255 255 255 / .12);
}
.metal-shutter {
  position: absolute;
  top: 0; left: 20%;
  width: 52%; height: 31%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #aeb1ae, #d7d8d5 48%, #9a9e9a);
  box-shadow: inset 0 -2px 3px rgb(0 0 0 / .25), 0 2px 5px rgb(0 0 0 / .25);
}
.metal-shutter::after { content: ""; position: absolute; right: 13%; top: 0; width: 23%; height: 75%; background: #262826; box-shadow: inset 0 0 5px #0e0f0e; }
.metal-shutter i { position: absolute; left: 10%; top: 17%; width: 24%; height: 7%; background: rgb(255 255 255 / .48); border-radius: 4px; }
.metal-shutter span { position: absolute; left: 10%; bottom: 15%; width: 37%; height: 4%; background: rgb(0 0 0 / .17); }
.label {
  position: absolute;
  left: 15%; right: 15%; top: 35%; bottom: 10%;
  padding: 7% 8%;
  border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgb(53 82 101 / .17) 26px 27px),
    linear-gradient(110deg, #ede8d8, var(--label));
  color: #262b29;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .12), inset 0 0 18px rgb(120 90 40 / .08);
  transform: rotate(-.65deg);
}
.label-brand { display: block; font: 600 clamp(9px, 1vw, 13px)/1 "IBM Plex Mono", monospace; letter-spacing: .13em; }
.label strong { display: block; margin-top: 5%; color: var(--red); font: 600 clamp(44px, 6vw, 86px)/.9 "Unbounded", sans-serif; letter-spacing: -.08em; }
.label small { position: absolute; right: 7%; bottom: 6%; text-align: right; font: 600 clamp(7px, .8vw, 11px)/1.2 "IBM Plex Mono", monospace; letter-spacing: .06em; }
.hub { position: absolute; left: 4%; bottom: 4%; width: 17%; height: 17%; border-radius: 50%; background: #1a1c1a; box-shadow: inset 0 0 0 8px #252725, inset 0 0 0 10px rgb(255 255 255 / .04); }
.hub span { position: absolute; left: 38%; top: 11%; width: 24%; height: 45%; border-radius: 3px; background: #0d0e0d; }
.write-lock { position: absolute; right: 4%; bottom: 4%; width: 9%; height: 13%; border-radius: 3px; background: #171917; box-shadow: inset 0 0 0 4px #353835; }

.disk-view { display: grid; place-content: center; padding: 92px 24px 72px; }
.disk-card {
  width: min(880px, calc(100vw - 40px));
  border-radius: 16px;
  overflow: hidden;
  background: var(--floppy);
  color: #f0eee6;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07), inset 0 -12px 30px rgb(0 0 0 / .22), var(--shadow);
}
.disk-topline { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.disk-topline > div { display: flex; align-items: center; gap: 9px; }
.status-led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgb(157 225 90 / .7); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; transition-property: background-color, transform; transition-duration: 150ms; }
.icon-button:hover { background: rgb(255 255 255 / .08); }
.icon-button:active { transform: scale(.96); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }

.disk-label {
  margin: 0 22px;
  min-height: 250px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding: 42px 44px 36px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgb(45 72 88 / .14) 35px 36px),
    linear-gradient(110deg, #eee8d6, #ded7bf);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .18), inset 0 0 30px rgb(120 90 40 / .08);
}
.disk-kind { font: 600 9px/1 "IBM Plex Mono", monospace; letter-spacing: .15em; }
.identity h1 { margin: 18px 0 20px; font: 600 clamp(42px, 6vw, 67px)/.93 "Unbounded", sans-serif; letter-spacing: -.065em; }
.identity h1 span { color: var(--red); }
.identity > a { font: 500 13px/1 "IBM Plex Mono", monospace; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.capacity-stamp { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end; column-gap: 7px; flex: 0 0 auto; }
.capacity-stamp span { grid-row: 1 / 3; align-self: stretch; display: grid; place-items: center; padding: 0 8px; background: var(--ink); color: var(--label); font: 600 18px/1 "IBM Plex Mono", monospace; }
.capacity-stamp strong { color: var(--red); font: 600 58px/.78 "Unbounded", sans-serif; letter-spacing: -.08em; }
.capacity-stamp small { justify-self: end; font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; }

.storage-panel { padding: 34px 44px 28px; }
.storage-heading, .panel-title { display: flex; justify-content: space-between; align-items: center; font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .15em; color: #b8bbb5; }
.storage-heading strong { color: #f0eee6; font-size: 12px; font-variant-numeric: tabular-nums; }
.meter { height: 10px; margin-top: 14px; padding: 2px; border-radius: 5px; background: #181a18; box-shadow: inset 0 1px 4px rgb(0 0 0 / .45); }
.meter i { display: block; width: 0%; height: 100%; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 10px); transition-property: width; transition-duration: 600ms; transition-timing-function: cubic-bezier(.2,0,0,1); }
.storage-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.storage-numbers div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.storage-numbers span { font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; color: #888d87; }
.storage-numbers strong { font: 500 14px/1 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

.access-panel { margin: 0 22px 22px; padding: 22px; border-radius: 8px; background: #1c1e1c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04), 0 2px 8px rgb(0 0 0 / .14); }
.key-status { color: #f1a29a; }
.key-status.ready { color: var(--green); }
.command-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-top: 12px; }
.command-row code { min-width: 0; min-height: 48px; display: flex; align-items: center; padding: 0 14px; overflow: auto; border-radius: 6px; background: #111311; color: #d9ddd5; white-space: nowrap; font: 500 12px/1 "IBM Plex Mono", monospace; }
.copy-button { position: relative; width: 44px; height: 48px; border: 0; border-radius: 6px; background: #333733; color: white; cursor: pointer; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); transition-property: background-color, transform; transition-duration: 150ms; }
.copy-button:hover { background: #414641; }
.copy-button:active { transform: scale(.96); }
.copy-button span { position: absolute; inset: 0; display: grid; place-items: center; transition-property: opacity, scale, filter; transition-duration: 300ms; transition-timing-function: cubic-bezier(.2,0,0,1); }
.copy-button .done-icon { opacity: 0; scale: .25; filter: blur(4px); color: var(--green); }
.copy-button.copied .copy-icon { opacity: 0; scale: .25; filter: blur(4px); }
.copy-button.copied .done-icon { opacity: 1; scale: 1; filter: blur(0); }
.connect-row { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 10px; }
.connect-row p { max-width: 360px; margin: 0; color: #858a84; font-size: 11px; line-height: 1.5; }
.connect-button { min-height: 44px; flex: 0 0 auto; display: flex; align-items: center; gap: 18px; padding: 0 13px 0 16px; border: 0; border-radius: 6px; background: var(--label); color: var(--ink); box-shadow: 0 0 0 1px rgb(255 255 255 / .05), 0 3px 8px rgb(0 0 0 / .2); cursor: pointer; font-size: 12px; font-weight: 750; transition-property: background-color, box-shadow, scale; transition-duration: 150ms; transition-timing-function: ease-out; }
.connect-button:hover { background: white; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 5px 14px rgb(0 0 0 / .24); }
.connect-button:active { scale: .96; }
.connect-arrow { font: 500 17px/1 "IBM Plex Mono", monospace; transform: translateY(-1px); }
.manual-method { margin-top: 20px; }
.manual-method summary { min-height: 44px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; color: #656861; font-size: 12px; }
.manual-method summary::-webkit-details-marker { display: none; }
.manual-method summary span { font: 400 20px/1 "IBM Plex Mono", monospace; transition-property: transform; transition-duration: 180ms; }
.manual-method[open] summary span { transform: rotate(45deg); }
#key-form { padding: 10px 0 4px; }
#key-form label { display: block; margin-bottom: 8px; font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; color: #777a74; }
#ssh-key { width: 100%; min-height: 86px; resize: vertical; padding: 12px; border: 1px solid rgb(23 25 23 / .23); border-radius: 6px; background: rgb(255 255 255 / .38); color: var(--ink); font: 11px/1.5 "IBM Plex Mono", monospace; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.form-actions small { color: #777a74; font-size: 10px; }
.form-actions button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--ink); color: white; font-size: 12px; font-weight: 700; cursor: pointer; transition-property: scale, background-color; transition-duration: 150ms; }
.form-actions button:hover { background: #303330; }
.form-actions button:active { scale: .96; }

.connect-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: auto;
  background: transparent;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  filter: blur(4px);
  transition-property: opacity, transform, filter;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.connect-dialog[open] { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.connect-dialog.is-closing { opacity: 0; transform: translateY(-12px) scale(.99); filter: blur(4px); transition-duration: 150ms; transition-timing-function: ease-in; }
.connect-dialog::backdrop { background: rgb(16 18 16 / .68); backdrop-filter: blur(7px); }
.connect-sheet { position: relative; min-height: 520px; padding: 40px; border-radius: 18px; overflow: hidden; background: linear-gradient(125deg, #eee9df, #d7d1c5 68%, #cbc5b9); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 32px 90px rgb(0 0 0 / .36); }
.connect-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 9px; background: repeating-linear-gradient(0deg, var(--red) 0 13px, #b43a32 13px 15px); }
.dialog-close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 3px; border: 0; border-radius: 8px; background: rgb(23 25 23 / .07); color: #555852; cursor: pointer; font: 400 24px/1 "IBM Plex Mono", monospace; transition-property: background-color, scale; transition-duration: 150ms; }
.dialog-close:hover { background: rgb(23 25 23 / .12); }
.dialog-close:active { scale: .96; }
.setup-state { transition-property: opacity, transform, filter; transition-duration: 180ms; transition-timing-function: cubic-bezier(.2,0,0,1); }
.setup-state.is-leaving { opacity: 0; transform: translateY(-12px); filter: blur(4px); transition-duration: 150ms; transition-timing-function: ease-in; }
.setup-state.is-entering { opacity: 0; transform: translateY(12px); filter: blur(4px); }
.setup-heading { max-width: 560px; }
.setup-heading > p:first-child, .ready-heading > p:first-of-type { margin: 0 0 20px; font: 600 9px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; }
.setup-heading h2, .ready-heading h2 { margin: 0; font: 600 clamp(34px, 5vw, 50px)/1.02 "Unbounded", sans-serif; letter-spacing: -.065em; }
.setup-heading > p:last-child, .ready-heading > p:last-child { max-width: 510px; margin: 22px 0 0; color: #555852; font-size: 14px; line-height: 1.65; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 32px 0 20px; padding: 1px; border-radius: 11px; overflow: hidden; background: rgb(23 25 23 / .12); list-style: none; box-shadow: 0 1px 2px rgb(23 25 23 / .04); }
.setup-steps li { min-height: 92px; display: flex; align-items: flex-start; gap: 12px; padding: 17px 15px; background: rgb(235 231 221 / .88); }
.setup-steps li:first-child { border-radius: 10px 0 0 10px; }
.setup-steps li:last-child { border-radius: 0 10px 10px 0; }
.setup-steps li > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font: 500 9px/1 "IBM Plex Mono", monospace; }
.setup-steps strong, .setup-steps small { display: block; }
.setup-steps strong { margin-top: 2px; font-size: 11px; }
.setup-steps small { margin-top: 7px; color: #747770; font-size: 9px; line-height: 1.4; }
.generate-button { position: relative; width: 100%; min-height: 56px; border: 0; border-radius: 8px; overflow: hidden; background: var(--ink); color: white; box-shadow: 0 1px 1px rgb(23 25 23 / .18), 0 7px 18px rgb(23 25 23 / .16); cursor: pointer; font-size: 13px; font-weight: 750; transition-property: background-color, box-shadow, scale; transition-duration: 150ms; }
.generate-button:hover { background: #303330; box-shadow: 0 1px 1px rgb(23 25 23 / .2), 0 9px 24px rgb(23 25 23 / .2); }
.generate-button:active { scale: .96; }
.generate-button:disabled { cursor: wait; }
.generate-button > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; transition-property: opacity, scale, filter; transition-duration: 300ms; transition-timing-function: cubic-bezier(.2,0,0,1); }
.generate-button i { font: 500 17px/1 "IBM Plex Mono", monospace; font-style: normal; }
.generate-busy { opacity: 0; scale: .25; filter: blur(4px); }
.generate-button.is-busy .generate-idle { opacity: 0; scale: .25; filter: blur(4px); }
.generate-button.is-busy .generate-busy { opacity: 1; scale: 1; filter: blur(0); }
.local-note { margin: 13px 0 0; text-align: center; color: #666a64; font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; }
.local-note span { margin-right: 6px; color: #68a839; }
.ready-heading { max-width: 580px; }
.ready-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--ink); color: var(--green); box-shadow: 0 0 0 7px rgb(23 25 23 / .07); }
.ready-icon span { font: 500 24px/1 "IBM Plex Mono", monospace; }
.download-button { width: 100%; min-height: 72px; display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 8px; border: 0; border-radius: 16px; background: #f4f0e7; color: var(--ink); box-shadow: 0 0 0 1px rgb(23 25 23 / .08), 0 5px 16px rgb(23 25 23 / .1); cursor: pointer; text-align: left; transition-property: box-shadow, scale; transition-duration: 150ms; }
.download-button:hover { box-shadow: 0 0 0 1px rgb(23 25 23 / .12), 0 8px 22px rgb(23 25 23 / .14); }
.download-button:active { scale: .96; }
.download-button > span { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--red); color: white; font: 500 24px/1 "IBM Plex Mono", monospace; }
.download-button strong, .download-button small { display: block; }
.download-button strong { font-size: 13px; }
.download-button small { margin-top: 7px; color: #777a74; font: 500 9px/1 "IBM Plex Mono", monospace; }
.download-button.downloaded > span { background: #5d9635; }
.command-setup { margin-top: 18px; padding: 14px; border-radius: 14px; background: #292c29; color: white; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05), 0 8px 24px rgb(23 25 23 / .14); }
.command-setup-head { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 2px 10px; }
.command-setup-head > span { color: #aeb2ac; font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.command-setup-head button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 6px; background: rgb(255 255 255 / .08); color: #e9ebe6; cursor: pointer; font-size: 10px; transition-property: background-color, scale; transition-duration: 150ms; }
.command-setup-head button:hover { background: rgb(255 255 255 / .14); }
.command-setup-head button:active { scale: .96; }
.command-setup pre { max-height: 160px; margin: 0; padding: 14px; border-radius: 8px; overflow: auto; background: #121412; color: #dce3d8; white-space: pre-wrap; word-break: break-word; }
.command-setup code { font: 500 11px/1.65 "IBM Plex Mono", monospace; }
.command-setup > p { margin: 12px 3px 1px; color: #959a94; font-size: 10px; line-height: 1.5; }
.command-setup > p strong { color: var(--green); }
.finish-button { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 8px; background: var(--ink); color: white; cursor: pointer; font-weight: 750; transition-property: background-color, scale; transition-duration: 150ms; }
.finish-button:hover { background: #303330; }
.finish-button:active { scale: .96; }
.disk-footnote { margin: 18px 0 0; text-align: center; color: #777a74; font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; }

footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-between; padding: 22px 38px; color: #777870; font: 500 8px/1 "IBM Plex Mono", monospace; letter-spacing: .15em; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 30; padding: 11px 15px; border-radius: 7px; background: var(--ink); color: white; box-shadow: var(--shadow); font: 500 11px/1 "IBM Plex Mono", monospace; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition-property: opacity, transform; transition-duration: 180ms; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.enter { opacity: 0; transform: translateY(12px); filter: blur(4px); animation: enter 480ms cubic-bezier(.2,0,0,1) forwards; }
.intro .enter:nth-child(2) { animation-delay: 80ms; }
.intro .enter:nth-child(3) { animation-delay: 160ms; }
.intro .enter:nth-child(4) { animation-delay: 240ms; }
.hero-floppy.enter { animation-delay: 130ms; }
@keyframes enter { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

@media (max-width: 900px) {
  .brand { position: absolute; padding: 24px; }
  .login-view { grid-template-columns: 1fr; padding: 110px 24px 80px; gap: 70px; }
  .intro { max-width: 680px; }
  .hero-floppy { width: min(84vw, 510px); }
  footer { position: absolute; padding: 22px 24px; }
}

@media (max-height: 850px) and (min-width: 581px) {
  .disk-view { padding: 68px 24px 48px; }
  .disk-card { width: min(820px, calc(100vw - 40px)); }
  .disk-topline { height: 48px; }
  .disk-label { min-height: 210px; padding: 28px 44px 26px; }
  .identity h1 { margin: 12px 0 14px; font-size: 54px; }
  .capacity-stamp strong { font-size: 50px; }
  .storage-panel { padding: 22px 44px 18px; }
  .storage-numbers { margin-top: 15px; }
  .access-panel { margin-bottom: 14px; padding: 15px 22px; }
  .command-row { margin-top: 9px; }
  .manual-method { margin-top: 5px; }
  .manual-method summary { min-height: 36px; }
  .disk-footnote { margin-top: 12px; }
}

@media (max-width: 580px) {
  .intro h1 { font-size: clamp(36px, 11vw, 52px); }
  .auth-stack { grid-template-columns: 1fr; }
  .preview-link { grid-column: auto; }
  .hero-floppy { width: 92vw; }
  .disk-view { padding: 76px 12px 66px; place-content: start center; }
  .disk-card { width: 100%; border-radius: 12px; }
  .disk-label { margin: 0 12px; min-height: 220px; padding: 30px 24px 28px; align-items: flex-start; }
  .identity h1 { margin: 18px 0; font-size: 40px; }
  .capacity-stamp { align-self: flex-end; }
  .capacity-stamp strong { font-size: 38px; }
  .capacity-stamp span { font-size: 13px; padding: 0 5px; }
  .storage-panel { padding: 28px 24px 24px; }
  .storage-numbers { grid-template-columns: 1fr; gap: 12px; }
  .access-panel { margin: 0 12px 12px; padding: 18px; }
  .connect-row { align-items: stretch; flex-direction: column; gap: 12px; }
  .connect-row p { max-width: none; }
  .connect-button { width: 100%; justify-content: space-between; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-actions button { width: 100%; }
  .connect-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 13px; }
  .connect-sheet { min-height: 0; padding: 34px 20px 24px 27px; border-radius: 13px; }
  .dialog-close { top: 10px; right: 10px; }
  .setup-heading { padding-right: 32px; }
  .setup-heading h2, .ready-heading h2 { font-size: 34px; }
  .setup-steps { grid-template-columns: 1fr; }
  .setup-steps li { min-height: 66px; align-items: center; }
  .setup-steps li:first-child { border-radius: 10px 10px 0 0; }
  .setup-steps li:last-child { border-radius: 0 0 10px 10px; }
  .download-button strong { font-size: 12px; }
  .command-setup { padding: 10px; }
  footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
