:root {
  --navy: #071018;
  --navy-lift: #10202b;
  --cyan: #87ffee;
  --lime: #d6ff7a;
  --ink: #f4fbff;
  --muted: #8ea3b0;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --danger: #ffb4a8;
  --safe: env(safe-area-inset-bottom, 0px);
  --top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #05090d; color: var(--ink); }
body {
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  padding: calc(10px + var(--top)) 16px calc(92px + var(--safe));
  -webkit-tap-highlight-color: transparent;
}
body.is-stage { padding: 0 0 calc(72px + var(--safe)); }
.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 12px; background: var(--cyan); color: var(--navy); padding: 8px 12px; }
.shell { max-width: 430px; margin: 0 auto; }
.status, .muted { color: var(--muted); }
h1, h2, h3 { font-family: "SF Pro Display", ui-rounded, sans-serif; letter-spacing: -0.04em; margin: 0 0 8px; }
h1 { font-size: 30px; line-height: 1.08; }
h2 { font-size: 22px; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.nav {
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  align-items: center;
  min-height: 44px;
  margin: 0 -4px 14px;
}
.nav h1 { font-size: 17px; text-align: center; margin: 0; }
.back, .nav-quiet {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-weight: 650;
  padding: 8px 4px;
  text-align: left;
}
.card, .group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}
.group { padding: 0; overflow: hidden; }
.hero-card {
  background: linear-gradient(160deg, #0f6d62 0%, #10202b 70%);
  min-height: 148px;
}
.hero-card h2 { font-size: 26px; }
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.action {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  min-height: 76px;
  padding: 14px;
  text-align: left;
  font: inherit;
  font-weight: 750;
}
.action span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px;
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input[type="file"] { color: var(--muted); }
input[type="file"]::file-selector-button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--navy);
  font: inherit;
  font-weight: 750;
  padding: 8px 12px;
  margin-right: 10px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.button, button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 750;
  background: var(--cyan);
  color: var(--navy);
}
.button-quiet, button.quiet {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--line);
}
.button-wide { width: 100%; }
.button-danger, button.danger-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255, 180, 168, 0.3);
}
.provider-stack { display: grid; gap: 8px; margin-top: 16px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.check-row input { width: auto; margin-top: 3px; }
.check-row a { color: var(--cyan); }
.danger { color: var(--danger); }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(214, 255, 122, 0.16);
  color: var(--lime);
}
.cell {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.cell:last-child { border-bottom: 0; }
.cell strong { display: block; }
.cell small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.cell .chev { color: var(--muted); font-size: 22px; line-height: 1; }
.sticky-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 6px 6px calc(8px + var(--safe));
  background: rgba(5, 9, 13, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.tabs button {
  background: transparent;
  color: var(--muted);
  min-height: 52px;
  padding: 6px 2px 4px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  justify-items: center;
  gap: 3px;
}
.tabs button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.active { color: var(--cyan); }
.list { display: grid; gap: 10px; }
.notice {
  position: sticky;
  top: calc(6px + var(--top));
  z-index: 4;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 180, 168, 0.14);
  color: var(--danger);
  backdrop-filter: blur(12px);
}
.ok { background: rgba(214, 255, 122, 0.16); color: var(--lime); }
.preview {
  width: 100%;
  min-height: 64vh;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
img.preview-art { width: 100%; border-radius: 14px; display: block; margin: 8px 0; }

.canvas {
  position: relative;
  height: calc(100dvh - 72px - var(--safe));
  background: #fff;
}
.canvas iframe, .phone-screen {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 3;
}
.dock button {
  min-height: 46px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.hint {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(10px + var(--top));
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 16, 24, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  backdrop-filter: blur(10px);
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74%;
  overflow: auto;
  z-index: 5;
  background: #0c141a;
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(18px + var(--safe));
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.4);
}
.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 6px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.sheet-bar h2 { margin: 0; font-size: 18px; }
.phone {
  position: relative;
  overflow: hidden;
  background: #111;
  height: min(68dvh, 620px);
}
.cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background-color: #0b1c24;
  background-image:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72)),
    var(--cover, linear-gradient(160deg, #127066, #0b1c24));
  background-size: cover;
  background-position: center;
  color: #fff;
}
.cover h2 { font-size: 28px; margin: 0 0 6px; }
.stage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 8px;
}
.tile {
  position: relative;
  appearance: none;
  width: 100%;
  min-height: 168px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  padding: 18px;
  text-align: left;
  color: #fff;
  background: #14313a;
  font: inherit;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.tile-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 15%, rgba(0, 0, 0, 0.78));
}
.tile > * { position: relative; z-index: 1; }
.tile strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.tile small { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.78); font-weight: 500; }
.tile.picked { outline: 3px solid var(--cyan); }
.photo-well {
  display: block;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 0 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)),
    #16323c;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-weight: 750;
}
.photo-well img { display: none; }
.note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.note:last-child { border-bottom: 0; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(135, 255, 238, 0.16);
  color: var(--cyan);
  font-weight: 800;
}
.auth-hero {
  min-height: 168px;
  border-radius: 24px;
  padding: 22px 20px;
  margin-bottom: 16px;
  background: linear-gradient(165deg, #128377 0%, #0a1c24 72%);
}
.auth-hero h1 { font-size: 34px; }
