:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #11141a;
  --panel-soft: #181d26;
  --panel-glass: rgb(255 255 255 / 0.045);
  --text: #f7f7f2;
  --muted: #9a9da7;
  --line: #282b33;
  --green: #64d98a;
  --yellow: #f6c64a;
  --blue: #48d7ff;
  --danger: #ff6868;
  --black: #050506;
  --focus: #e9c46a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(72 215 255 / 0.045), transparent 280px),
    #07090d;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.capture-mode {
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

body.is-guest:not(.capture-mode) .app {
  display: none;
}

.welcome-screen {
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 26%),
    #050608;
}

.welcome-screen[hidden] {
  display: none;
}

.welcome-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.welcome-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 10px 0 34px;
}

.welcome-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.welcome-links a {
  color: #aeb2be;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.welcome-links a:hover {
  color: #f7f4ea;
}

.welcome-nav p,
.eyebrow {
  margin: 0 0 7px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.welcome-nav strong {
  font-size: 18px;
}

.welcome-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 520px);
  gap: 56px;
  align-items: center;
  padding: 34px 0 20px;
}

.welcome-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.welcome-copy p {
  max-width: 610px;
  margin: 24px 0 0;
  color: #b8bcc8;
  font-size: 18px;
  line-height: 1.5;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.035);
  color: #d7dae2;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.welcome-actions button,
.welcome-nav button {
  padding: 0 18px;
}

.welcome-note {
  font-size: 13px !important;
}

.welcome-preview {
  display: grid;
  gap: 14px;
}

.preview-window {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: #020203;
  padding: 18px;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.48);
}

.mini-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.04), transparent 58%), #000;
}

.mini-ring {
  position: absolute;
  inset: 13%;
  border: 2px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  box-shadow: 0 0 16px rgb(255 255 255 / 0.32);
}

.mini-ball {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
}

.mini-ball::after {
  content: "";
  position: absolute;
  width: 118px;
  height: 1px;
  right: 9px;
  top: 8px;
  background: currentColor;
  opacity: 0.78;
  transform-origin: right center;
}

.mini-ball.b1 {
  left: 28%;
  top: 33%;
  color: #2f68ff;
}

.mini-ball.b1::after {
  transform: rotate(-42deg);
}

.mini-ball.b2 {
  right: 29%;
  top: 35%;
  color: #ffe246;
}

.mini-ball.b2::after {
  transform: rotate(28deg);
}

.mini-ball.b3 {
  left: 42%;
  bottom: 26%;
  color: #b620ff;
}

.mini-ball.b3::after {
  transform: rotate(94deg);
}

.mini-stage em {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  color: rgb(255 255 255 / 0.38);
  font-style: normal;
  font-size: 34px;
  font-weight: 900;
}

.preview-card,
.plan-grid article {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.028);
  padding: 18px;
}

.preview-card.active {
  border-color: rgb(246 198 74 / 0.55);
  background: rgb(246 198 74 / 0.08);
}

.preview-card span,
.plan-grid span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.preview-card strong,
.plan-grid h2 {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.preview-card p,
.plan-grid p {
  margin: 9px 0 0;
  color: #aeb2be;
  line-height: 1.45;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.plan-grid h2 {
  margin-bottom: 0;
}

.client-bar,
.product-section,
.pricing-section,
.welcome-links {
  display: none;
}

/*
.client-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.08);
  margin-top: 34px;
}

.client-bar span {
  background: #090a0d;
  color: #c8ccd6;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.product-section {
  margin-top: 38px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-top: 34px;
}

.pricing-section {
  margin-top: 38px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  padding-top: 34px;
}
*/

.section-heading {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recipe-grid article,
.workflow-list div {
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.028);
  padding: 16px;
}

.recipe-grid article:hover,
.workflow-list div:hover,
.plan-grid article:hover {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.045);
}

.recipe-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin-bottom: 16px;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor;
}

.recipe-dot.cyan {
  color: #22d7ff;
  background: #22d7ff;
}

.recipe-dot.yellow {
  color: #ffe246;
  background: #ffe246;
}

.recipe-dot.violet {
  color: #b620ff;
  background: #b620ff;
}

.recipe-dot.white {
  color: #f7f7f2;
  background: #f7f7f2;
}

.recipe-grid strong {
  display: block;
  font-size: 17px;
}

.recipe-grid p,
.workflow-list p {
  margin: 9px 0 0;
  color: #aeb2be;
  line-height: 1.45;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-list div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.workflow-list b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7f4ea;
  color: #050608;
  font-size: 14px;
}

.plan-grid article {
  position: relative;
  min-height: 246px;
  display: flex;
  flex-direction: column;
}

.plan-grid article small {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgb(246 198 74 / 0.45);
  border-radius: 999px;
  color: var(--yellow);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-plan {
  border-color: rgb(246 198 74 / 0.52) !important;
  background: rgb(246 198 74 / 0.075) !important;
}

.plan-button {
  margin-top: auto;
  width: 100%;
}

.primary-plan {
  background: #f7f4ea;
  border-color: #f7f4ea;
  color: #050608;
}

body.capture-mode .app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
  place-items: center;
}

body.capture-mode .welcome-screen {
  display: none;
}

body.capture-mode .toolbar,
body.capture-mode .inspector,
body.capture-mode .workspace-header {
  display: none;
}

body.capture-mode .stage {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

body.capture-mode .phone-frame {
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

body.capture-mode .phone-frame.wide-format {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
}

body.capture-mode .phone-frame.square-format {
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
}

body.capture-mode canvas {
  width: 100%;
  height: 100%;
}

button,
input,
select {
  font: inherit;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 430px) minmax(0, 1fr);
}

.toolbar {
  height: 100vh;
  border-right: 1px solid rgb(255 255 255 / 0.08);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.045), transparent 260px),
    #0b0d12;
  padding: 20px;
  overflow-y: auto;
  box-shadow: 24px 0 70px rgb(0 0 0 / 0.22);
}

.brand {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.brand p {
  margin: 0 0 7px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.studio-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.035);
}

.studio-steps span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #aeb5c2;
  font-size: 12px;
  font-weight: 900;
}

.studio-steps span.active {
  background: #f7f4ea;
  color: #07090d;
}

.control-group {
  border: 1px solid rgb(255 255 255 / 0.085);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.04), transparent),
    rgb(255 255 255 / 0.025);
  padding: 14px;
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.hero-controls {
  border-color: rgb(246 198 74 / 0.22);
  background:
    linear-gradient(180deg, rgb(246 198 74 / 0.09), transparent 150px),
    rgb(255 255 255 / 0.028);
}

.growth-builder {
  border-color: rgb(72 215 255 / 0.28);
  background:
    linear-gradient(180deg, rgb(72 215 255 / 0.1), transparent 155px),
    rgb(255 255 255 / 0.03);
}

.growth-builder .section-title span {
  width: 38px;
  color: #48d7ff;
}

.builder-copy {
  margin: 0;
  color: #c0cad8;
  font-size: 12px;
  line-height: 1.42;
}

.growth-packs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.growth-pack {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.095);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.035);
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.growth-pack:hover,
.growth-pack.active {
  border-color: rgb(72 215 255 / 0.5);
  background: rgb(72 215 255 / 0.11);
}

.growth-pack span {
  color: #48d7ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.growth-pack strong {
  font-size: 14px;
}

.growth-pack small {
  color: #aeb8c6;
  font-size: 11px;
  line-height: 1.3;
}

.growth-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 0.075);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.18);
  padding: 10px;
}

.growth-summary span {
  color: #dfe7f0;
  font-size: 12px;
  line-height: 1.35;
}

.growth-summary button {
  min-height: 34px;
  white-space: nowrap;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  background: #f7f4ea;
  color: #080b10;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.pro-control {
  display: none !important;
}

body.show-pro-controls .pro-control {
  display: grid !important;
}

.plan-status {
  border: 1px solid rgb(246 198 74 / 0.24);
  border-radius: 8px;
  background: rgb(246 198 74 / 0.065);
  padding: 12px;
}

.plan-status span,
.plan-status strong,
.plan-status small {
  display: block;
}

.plan-status span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-status strong {
  margin-top: 5px;
  font-size: 14px;
}

.plan-status small {
  margin-top: 6px;
  color: #c7bd91;
  font-size: 11px;
  line-height: 1.35;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.section-title.full {
  grid-column: 1 / -1;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}

.section-title strong {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retention-card {
  position: relative;
  border: 1px solid rgb(72 215 255 / 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(72 215 255 / 0.14), rgb(255 255 255 / 0.035)),
    #0c1118;
  padding: 14px;
}

.retention-card strong {
  display: block;
  font-size: 15px;
}

.retention-card p {
  margin: 6px 0 0;
  color: #b8c2cf;
  font-size: 12px;
  line-height: 1.35;
}

.proof-panel {
  border-color: rgb(46 255 166 / 0.22);
  background:
    linear-gradient(180deg, rgb(46 255 166 / 0.08), transparent 145px),
    rgb(255 255 255 / 0.025);
}

.proof-score {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(46 255 166 / 0.2);
  border-radius: 8px;
  background: rgb(46 255 166 / 0.07);
  padding: 12px;
}

.proof-score span {
  color: #bfffe2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-score strong {
  color: #2effa6;
  font-size: 22px;
}

.retention-checklist {
  display: grid;
  gap: 7px;
}

.retention-checklist span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 0.075);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.16);
  color: #d8e1ec;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.25;
}

.retention-checklist b {
  color: #2effa6;
  font-size: 11px;
  text-transform: uppercase;
}

.retention-checklist span.missing b {
  color: #f6c64a;
}

.export-confidence {
  margin: 0;
  color: #aeb8c6;
  font-size: 12px;
  line-height: 1.35;
}

.new-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  border: 1px solid rgb(72 215 255 / 0.55);
  border-radius: 999px;
  background: #07131a;
  color: #48d7ff;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.has-new {
  position: relative;
}

.has-new::after {
  content: "NEW";
  position: absolute;
  top: -11px;
  right: 0;
  border: 1px solid rgb(72 215 255 / 0.5);
  border-radius: 999px;
  background: #07131a;
  color: #48d7ff;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.field,
.range-field {
  display: grid;
  gap: 8px;
}

.mode-field.is-hidden {
  display: none;
}

.field span,
.range-field span,
.check span {
  color: #b6bbc7;
  font-size: 12px;
  font-weight: 850;
}

.recipe-hint {
  margin-top: -2px;
  color: #b6b9c3;
  font-size: 11px;
  line-height: 1.35;
}

.range-field span {
  display: flex;
  justify-content: space-between;
}

.range-field strong {
  color: var(--text);
  font-size: 13px;
}

select,
input[type="number"],
input[type="text"],
input[type="file"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 8px;
  background: #080b10;
  color: var(--text);
  padding: 10px 12px;
}

select:focus,
input:focus {
  outline: 1px solid var(--focus);
  outline-offset: 1px;
  border-color: rgb(246 198 74 / 0.72);
}

input[type="range"] {
  width: 100%;
  accent-color: #f2ca65;
}

input[type="color"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101114;
  padding: 4px;
}

.swatches {
  grid-template-columns: repeat(3, 1fr);
}

.swatches .field:first-of-type {
  grid-column: 1 / -1;
}

.compact-grid {
  grid-template-columns: 1fr 1fr;
  display: grid;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
}

.batch-panel {
  margin-top: 12px;
  border: 1px solid rgb(72 215 255 / 0.18);
  border-radius: 8px;
  background: rgb(72 215 255 / 0.055);
  padding: 12px;
}

.batch-panel[hidden] {
  display: none;
}

.batch-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.batch-panel span {
  color: #48d7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.batch-panel strong {
  font-size: 13px;
}

.batch-panel ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #c8d1dd;
  font-size: 12px;
}

.batch-panel li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.batch-panel li button {
  min-height: 28px;
  border-color: rgb(72 215 255 / 0.22);
  background: rgb(72 215 255 / 0.1);
  color: #dff7ff;
  padding: 0 9px;
  font-size: 11px;
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14161b;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

button:hover {
  border-color: rgb(255 255 255 / 0.36);
  transform: translateY(-1px);
}

button[hidden] {
  display: none;
}

button.primary {
  grid-column: 1 / -1;
  min-height: 54px;
  background: #f7f4ea;
  border-color: #f7f4ea;
  color: #08090b;
  box-shadow: 0 12px 34px rgb(247 244 234 / 0.14);
}

.export-progress {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.03);
  padding: 12px;
}

.export-progress[hidden] {
  display: none;
}

.export-progress div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.export-progress span,
.export-progress strong {
  font-size: 12px;
  font-weight: 900;
}

.export-progress span {
  color: var(--muted);
}

.export-progress strong {
  color: var(--text);
}

.export-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #08090b;
}

.export-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7f4ea, #48d7ff);
  transition: width 240ms ease;
}

.auth-chip {
  min-height: 34px;
  white-space: nowrap;
  border-color: rgb(255 204 61 / 0.35);
  background: rgb(255 204 61 / 0.1);
  color: var(--yellow);
  padding: 0 11px;
  font-size: 12px;
}

#record {
  display: none;
  grid-column: 1 / -1;
  color: var(--muted);
}

.advanced-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.025);
}

.advanced-panel summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advanced-panel summary::marker {
  color: var(--yellow);
}

.advanced-grid {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 12px;
}

button.recording {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

#cancelRecord:not([hidden]) {
  grid-column: 1 / -1;
  border-color: var(--danger);
  color: #fff;
}

.readout {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.025);
}

.readout div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.readout div:last-child {
  border-bottom: 0;
}

.readout span {
  color: var(--muted);
  font-size: 13px;
}

.readout strong {
  font-size: 13px;
}

.stage {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(260px, 360px);
  gap: 28px;
  align-items: start;
  align-content: start;
  justify-content: center;
  padding: 28px;
  min-width: 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at 52% 0%, rgb(72 215 255 / 0.11), transparent 32%),
    radial-gradient(circle at 88% 18%, rgb(246 198 74 / 0.07), transparent 28%),
    #07090d;
}

.workspace-header {
  grid-column: 1 / -1;
  width: min(888px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  gap: 24px;
  align-items: end;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.028);
  padding: 18px;
}

.workspace-header span {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-header h2 {
  margin: 7px 0 0;
  font-size: 28px;
  line-height: 1.08;
}

.workspace-header p {
  margin: 0;
  color: #aeb2be;
  font-size: 13px;
  line-height: 1.45;
}

.phone-frame {
  position: relative;
  position: sticky;
  top: 24px;
  width: min(100%, 54vh, 430px);
  aspect-ratio: 9 / 16;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: 8px;
  overflow: hidden;
  background: #050506;
  box-shadow:
    0 32px 90px rgb(0 0 0 / 0.55),
    0 0 0 8px rgb(255 255 255 / 0.018),
    0 0 70px rgb(72 215 255 / 0.08);
}

.phone-frame.wide-format {
  width: min(100%, 64vw, 760px);
  aspect-ratio: 16 / 9;
}

.phone-frame.square-format {
  width: min(100%, 58vh, 560px);
  aspect-ratio: 1 / 1;
}

.phone-frame.wide-format canvas,
.phone-frame.square-format canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #000;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.inspector {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.045), transparent),
    rgb(255 255 255 / 0.025);
  padding: 18px;
}

.inspector h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.launch-grid div {
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  background: rgb(0 0 0 / 0.18);
  padding: 10px;
}

.launch-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.25;
}

.launch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.launch-actions button {
  min-height: 36px;
  font-size: 12px;
}

.launch-center p {
  margin: 0;
  color: #b8c2cf;
  font-size: 12px;
  line-height: 1.4;
}

.owner-panel {
  display: grid;
  grid-template-columns: 1fr 82px 62px auto;
  gap: 6px;
}

.owner-panel[hidden] {
  display: none;
}

.owner-panel input,
.owner-panel select {
  min-height: 34px;
  font-size: 12px;
}

.owner-panel button {
  min-height: 34px;
  font-size: 12px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.content-kit {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.kit-block {
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 8px;
  background: transparent;
  padding: 12px;
}

.kit-block span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kit-block p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.kit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #18191d;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.46);
  padding: 24px;
}

.account-panel {
  width: min(560px, 100%);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.account-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.035);
  padding: 12px;
}

.account-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.account-grid small {
  display: block;
  margin-top: 5px;
  color: #aeb8c6;
  font-size: 11px;
  line-height: 1.35;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-panel h2 {
  margin: 0 34px 18px 0;
  font-size: 22px;
  line-height: 1.15;
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.google-auth {
  width: 100%;
  margin-bottom: 14px;
  background: #f7f4ea;
  color: #08090b;
  border-color: #f7f4ea;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-tabs button.active {
  border-color: var(--yellow);
  color: var(--yellow);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .app {
    grid-template-columns: 1fr;
  }

  .toolbar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stage {
    grid-template-columns: minmax(280px, 560px);
  }

  .workspace-header {
    grid-template-columns: 1fr;
  }

  .inspector {
    width: min(560px, 100%);
    justify-self: center;
  }

  .phone-frame {
    width: min(88vw, 430px);
    justify-self: center;
  }

  .phone-frame.square-format {
    width: min(88vw, 560px);
  }
}

@media (max-width: 980px) {
  .welcome-hero,
  .plan-grid,
  .recipe-grid,
  .split-section,
  .client-bar {
    grid-template-columns: 1fr;
  }

  .welcome-links {
    display: none;
  }

  .welcome-hero {
    gap: 26px;
    padding-top: 28px;
  }

  .welcome-copy h1 {
    font-size: 44px;
  }

}

@media (max-width: 560px) {
  .growth-summary {
    grid-template-columns: 1fr;
  }

  .growth-summary button {
    width: 100%;
  }
}
