:root {
  --bg: #07070a;
  --bg-2: #0b0b10;
  --panel: #101015;
  --panel-2: #15151b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f4f4f7;
  --dim: #8a8a94;
  --dim-2: #61616b;
  --accent: #0a84ff;
  --ok: #34d399;
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { background: var(--bg); }

body {
  min-height: 100vh;
  color: var(--ink);
  font: 15px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- top ---------- */

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: 16px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(150deg, #fff, #b9b9c4);
  position: relative;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .25);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 4px auto 4px;
  height: 7px;
  border-radius: 2px;
  background: #07070a;
}

.brand-text .dim { color: var(--dim-2); font-weight: 500; }

.ghost {
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .18s ease;
}

.ghost:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- shell ---------- */

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  padding: 8px clamp(20px, 5vw, 64px) 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ---------- stage ---------- */

.stage-inner {
  position: sticky;
  top: 28px;
  padding-top: 8px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 14px;
}

.headline {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 800;
  margin-bottom: 16px;
}

.headline .muted { color: var(--dim-2); }

.lede {
  color: var(--dim);
  max-width: 42ch;
  font-size: 15.5px;
  margin-bottom: 38px;
}

/* ---------- phone ---------- */

.phone {
  width: min(320px, 74vw);
  margin: 0 auto 34px;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2a31, #101014 40%, #1c1c22);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .09);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 21px;
  background: #050507;
  border-radius: 999px;
  z-index: 4;
}

.phone-screen {
  border-radius: 34px;
  background: radial-gradient(120% 80% at 50% 0%, #1b1b22 0%, #0a0a0e 55%, #050507 100%);
  padding: 14px 14px 18px;
  min-height: 470px;
  overflow: hidden;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 2px 8px 12px;
  letter-spacing: 0;
}

.sb-icons { display: inline-flex; gap: 4px; align-items: center; }
.sb-icons i { display: block; background: #fff; border-radius: 1px; opacity: .9; }
.sb-signal { width: 13px; height: 8px; clip-path: polygon(0 100%, 22% 100%, 22% 60%, 0 60%, 0 100%, 30% 100%, 30% 40%, 52% 40%, 52% 100%, 60% 100%, 60% 20%, 82% 20%, 82% 100%, 90% 100%, 90% 0, 100% 0, 100% 100%); }
.sb-wifi { width: 12px; height: 9px; clip-path: polygon(50% 100%, 0 34%, 12% 24%, 50% 60%, 88% 24%, 100% 34%); }
.sb-batt { width: 18px; height: 9px; border-radius: 2.5px; position: relative; }
.sb-batt::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #fff; border-radius: 1px; }

.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 12px;
}

.wh-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

.wh-plus {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  line-height: 1;
}

/* ---------- the card ---------- */

.card {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: var(--card-bg, #0b0b0f);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateZ(0);
}

.card-strip {
  aspect-ratio: 375 / 123;
  background-color: var(--card-bg, #0b0b0f);
  background-size: cover;
  background-position: center;
  transition: background-image .25s ease;
}

.card-shade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 52%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .32), transparent 72%);
  pointer-events: none;
}

.card-logo {
  position: absolute;
  top: 11px;
  left: 14px;
  right: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--card-fg, #fff);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body {
  aspect-ratio: 375 / 123;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  background: var(--card-bg, #0b0b0f);
}

.card-primary {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--card-fg, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 11px;
}

.card-row {
  display: flex;
  gap: 22px;
  color: var(--card-fg, #fff);
}

.cf { min-width: 0; }
.cf span {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--card-label, #9aa0aa);
  margin-bottom: 2px;
}
.cf b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-barcode {
  background: #fff;
  margin: 0 14px 14px;
  border-radius: 6px;
  padding: 9px 10px;
  display: flex;
  gap: 2px;
  height: 40px;
  align-items: stretch;
  overflow: hidden;
}

.card-barcode i {
  flex: 1;
  background: #000;
  border-radius: .5px;
}
.card-barcode i:nth-child(3n) { flex: .45; }
.card-barcode i:nth-child(4n) { flex: .7; }
.card-barcode i:nth-child(7n) { flex: .3; }

.wallet-hint {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, .28);
  margin-top: 16px;
}

/* ---------- facts ---------- */

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.facts li {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.facts b { display: block; font-size: 12.5px; font-weight: 600; }
.facts span { display: block; font-size: 11.5px; color: var(--dim-2); margin-top: 2px; }

/* ---------- panel ---------- */

.panel-inner {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 8px 22px 22px;
  box-shadow: 0 40px 90px -50px #000;
}

.block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: 0; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.block-head h2 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.link {
  background: none;
  border: 0;
  color: var(--dim-2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}
.link:hover { color: var(--ink); }

/* art */

.art-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: .16s ease;
  white-space: nowrap;
}

.upload:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.upload svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gradients { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }

.grad {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  padding: 0;
  transition: .16s ease;
  position: relative;
}

.grad:hover { transform: translateY(-1px); }
.grad[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #fff; }

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: .16s ease;
  white-space: nowrap;
}

.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: #fff; color: #08080b; border-color: #fff; }

.designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
  gap: 7px;
  max-height: 196px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.14) transparent;
}

.designs::-webkit-scrollbar { width: 6px; }
.designs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }

.design {
  aspect-ratio: 375 / 123;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: .16s ease;
  position: relative;
  overflow: hidden;
}

.design:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .3); }
.design[aria-selected="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px #fff; }

/* fields */

.fields { display: grid; gap: 9px; }

.field { display: grid; gap: 6px; }

.field span {
  font-size: 11.5px;
  color: var(--dim-2);
  font-weight: 500;
  letter-spacing: .01em;
}

.field input,
.barcode-input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: .16s ease;
  outline: none;
}

.field input:focus,
.barcode-input:focus {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
}

.field input::placeholder, .barcode-input::placeholder { color: var(--dim-2); }

/* color */

.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  padding: 0;
  transition: .16s ease;
}

.swatch:hover { transform: translateY(-1px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px #fff; }

.color-row { display: flex; gap: 10px; }

.color-pick {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, .03);
}

.color-pick input {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.color-pick input::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick input::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.2); border-radius: 6px; }

.color-pick span { font-size: 12.5px; color: var(--dim); }

/* switch */

.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }

.track {
  width: 42px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  position: relative;
  transition: .2s ease;
  flex: none;
}

.knob {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: .2s cubic-bezier(.3, 1.4, .5, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track .knob { transform: translateX(17px); }

.switch-text { font-size: 13px; color: var(--dim); }

.barcode-input { margin-top: 11px; }

/* submit */

.submit { padding-top: 20px; }

.primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #08080b;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: .18s ease;
}

.primary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(255, 255, 255, .5); }
.primary:active { transform: translateY(0); }
.primary:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.primary.is-busy span::after { content: "…"; }

.submit-note {
  text-align: center;
  font-size: 12px;
  color: var(--dim-2);
  margin-top: 11px;
}

.submit-error {
  text-align: center;
  font-size: 12.5px;
  color: #ff8a80;
  margin-top: 10px;
  line-height: 1.45;
}

/* foot */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 40px;
  font-size: 12px;
  color: var(--dim-2);
}

.dot { width: 3px; height: 3px; border-radius: 99px; background: var(--dim-2); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 60px; }
  .stage, .panel { min-width: 0; }
  .stage-inner { position: static; }
  .headline { font-size: clamp(32px, 9vw, 44px); }
  .lede { margin-bottom: 26px; }
  .phone { width: min(300px, 78vw); margin-bottom: 26px; }
  .phone-screen { min-height: 430px; }
  .facts { max-width: none; }
  .panel-inner { border-radius: 22px; padding: 6px 16px 18px; }
  .designs { max-height: 168px; }

  /* iOS zooms the whole page when a focused input is under 16px. */
  .field input,
  .barcode-input,
  .admin-card textarea { font-size: 16px; }
}

@media (max-width: 560px) {
  .top { padding: 16px 18px; }
  .brand { font-size: 15px; }
  .shell { padding: 4px 16px 48px; gap: 26px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .headline { font-size: clamp(30px, 10.5vw, 40px); margin-bottom: 12px; }
  .lede { font-size: 14.5px; margin-bottom: 20px; }
  .phone { width: min(272px, 74vw); border-radius: 38px; padding: 9px; margin-bottom: 22px; }
  .phone::before { width: 66px; height: 18px; top: 17px; }
  .phone-screen { min-height: 0; border-radius: 30px; padding: 12px 12px 16px; }
  .wallet-hint { margin-top: 13px; font-size: 10.5px; }
  .facts { gap: 8px; }
  .facts b { font-size: 11.5px; }
  .facts span { font-size: 10.5px; }

  .panel-inner { border-radius: 20px; padding: 4px 14px 16px; }
  .block { padding: 16px 0; }
  .block-head { margin-bottom: 11px; gap: 8px; flex-wrap: wrap; }
  .block-head h2 { font-size: 11.5px; letter-spacing: .08em; }
  .chips { mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%); }
  .chips::-webkit-scrollbar { display: none; }
  .device-state { font-size: 10.5px; padding: 3px 8px; }

  .art-actions { gap: 8px; }
  .upload { padding: 9px 13px; font-size: 12.5px; }
  .gradients { gap: 4px; }
  .grad { width: 24px; height: 24px; border-radius: 8px; }

  .designs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); max-height: 208px; gap: 6px; }
  .chip { padding: 5px 11px; font-size: 11.5px; }

  .swatch { width: 30px; height: 30px; border-radius: 9px; }
  .color-row { gap: 8px; }
  .color-pick { padding: 8px 10px; }

  .primary { padding: 14px 16px; font-size: 14.5px; }
  .secondary { padding: 13px 16px; font-size: 13.5px; }
  .device-actions .secondary { font-size: 13px; }
  .device-card { padding: 9px 11px; }
  .device-apply { font-size: 12px; padding: 6px 11px; }

  .submit { padding-top: 16px; }
  .submit-note { font-size: 11.5px; }
  .foot { padding: 0 16px calc(28px + env(safe-area-inset-bottom)); font-size: 11.5px; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); font-size: 12.5px; padding: 10px 15px; }
}

@media (max-width: 360px) {
  .facts b { font-size: 11px; }
  .facts span { font-size: 10px; }
  .designs { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- device bridge ---------- */

.device { padding-top: 22px; }

.device-state {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--dim-2);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.device-state[data-tone="ok"] {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, .35);
  background: rgba(52, 211, 153, .08);
}

.device-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim-2);
  margin-bottom: 12px;
}

.device-actions { display: flex; gap: 9px; }
.device-actions .secondary { margin-top: 0; }

.device-cards { display: grid; gap: 8px; margin-top: 12px; }

.device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .03);
}

.device-card-id {
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--dim);
  letter-spacing: .01em;
}

.device-apply {
  flex: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #08080b;
  background: #fff;
  border: 0;
  border-radius: 9px;
  padding: 7px 13px;
  cursor: pointer;
  transition: .16s ease;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-apply:disabled { opacity: .5; cursor: default; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  background: #fff;
  color: #08080b;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- admin ---------- */

.admin {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 20px 80px;
}

.admin-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 8px;
}

.admin-lede {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 26px;
  max-width: 52ch;
}

.admin-lede code, .admin-note code {
  background: rgba(255, 255, 255, .07);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .92em;
}

.admin-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
}

.admin-card h2 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

.admin-card .field { margin-bottom: 10px; }

.admin-card textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--ink);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
  outline: none;
  word-break: break-all;
}

.admin-card textarea:focus { border-color: rgba(255, 255, 255, .3); }
.admin-card .primary { margin-top: 12px; }

.status {
  border: 1px solid rgba(255, 138, 128, .28);
  background: rgba(255, 138, 128, .07);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 20px;
  display: grid;
  gap: 3px;
}

.status.is-ready {
  border-color: rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .07);
}

.status b { font-size: 13.5px; }
.status span { font-size: 12px; color: var(--dim); line-height: 1.5; }

.steps {
  margin: 0 0 16px 18px;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}
.steps b { color: var(--ink); font-weight: 600; }

.code {
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font: 11.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #b8c4d6;
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 12px;
}

.admin-note { font-size: 12.5px; color: var(--dim-2); }

.secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 9px;
  padding: 14px 20px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: .18s ease;
}

.secondary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); }
.secondary:disabled { opacity: .5; cursor: default; }
