/* LaunchLogic Enterprise — public site stylesheet (Phase 6 face,
   Nov 19, 2026). PHONE-FIRST: base rules are the phone layout
   (~360–430px): single column, full-width tap targets (>=48px),
   16px form text (prevents focus-zoom on phones). Wider layouts
   are layered on with min-width media queries only: >=720px
   relaxes spacing, >=1024px (desktop) goes two-column. No fixed
   pixel widths on layout containers — everything is fluid so
   nothing can overflow a phone viewport horizontally.

   Palette (CEO-approved, Nov 18, 2026): deep navy / space-blue
   base, bright cyan-blue glow accents, purple accents spread
   through (portfolio cards, step markers, featured pricing),
   dark premium presentation. Green/amber/red survive only as
   build-status colors (done / working / failed), never as the
   brand accent. */

:root {
  --bg: #0b1020;
  --bg-deep: #070b16;
  --panel: #0e1730;
  --panel-border: rgba(255, 255, 255, 0.1);
  --field-bg: #0b1020;
  --field-border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #d1d5db;
  --accent: #22d3ee;
  --accent-dark: #083344;
  --purple: #a78bfa;
  --violet: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.14);
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(34, 211, 238, 0.13), rgba(34, 211, 238, 0) 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(139, 92, 246, 0.07), rgba(139, 92, 246, 0) 65%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- header ---------- */
.header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--panel-border);
}
.brand { text-align: center; }
.brand-logo { line-height: 0; margin: 0; }
/* Legal-page header brand line (demoted from <h1> in the Nov 21, 2026
   SEO heading fix so each legal page carries exactly one H1 — the page
   title). Reproduces the previous h1 rendering exactly. */
.brand-name { font-size: 2rem; font-weight: 700; margin: 0.67em 0; }
.brand-logo img {
  width: min(430px, 88vw);
  height: auto;
}
.tagline { margin: 10px auto 0; color: var(--muted); max-width: 640px; font-size: 1.0625rem; }
.account-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--field-border);
  color: var(--text);
}
.pill-free { background: rgba(255, 255, 255, 0.06); }
.pill-pro { background: var(--accent); color: var(--accent-dark); border-color: var(--accent); }

/* ---------- layout ---------- */
.main { flex: 1; width: 100%; padding: 28px 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel h2 { margin: 0 0 12px; color: #fff; font-size: 1.25rem; }
.subheading { margin: 20px 0 10px; color: #fff; font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
code { overflow-wrap: anywhere; }

/* Section eyebrow: small caps label above a heading. Cyan by
   default; the purple variant carries the approved purple accent
   through the page's sections. */
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Studio stage subheads inside the design panel. */
.stage-head {
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.10), rgba(139, 92, 246, 0.08) 55%, rgba(139, 92, 246, 0) 90%);
  border-radius: 8px;
  padding-left: 10px;
  margin-left: -10px;
  padding-bottom: 6px;
}

/* ---------- forms (phone-first) ---------- */
.field-label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
}
textarea { min-height: 180px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; resize: vertical; }
input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--accent); }

/* ---------- buttons: >=48px tall, rounded-2xl (16px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
}
.btn:hover { opacity: 0.95; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-dark); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--field-border); }
.btn-block { width: 100%; margin-top: 16px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.actions .btn { width: 100%; }

/* ---------- status / subscription ---------- */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
}
.status-label { color: var(--muted); }
.status-value { font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.message { min-height: 1.5em; margin: 12px 0 0; overflow-wrap: anywhere; }
.message-error { color: #fca5a5; }

/* Black Friday 2026 deal banner (Your Plan). Shown only while the
   server says the deal is active — app.js fills it from
   /api/billing/check and hides it otherwise, so the page can never
   show deal prices outside the window. */
.deal-banner {
  border: 1px solid var(--green);
  background: rgba(34, 197, 94, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.deal-banner strong { color: #fff; }

/* ---------- model editor ---------- */
.models { display: flex; flex-direction: column; gap: 14px; }
.model-card {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.model-head { display: flex; flex-direction: column; gap: 8px; }
.model-head .actions { margin-top: 4px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed var(--panel-border);
}
.field-row .req-label { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; }

.spec-details { margin-top: 20px; }
.spec-details summary { cursor: pointer; font-weight: 700; padding: 10px 0; }

/* ---------- jobs ---------- */
.jobs-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job-item {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.job-item .job-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.job-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8125rem; overflow-wrap: anywhere; }
.job-status { font-weight: 800; }
.job-status-completed { color: var(--green); }
.job-status-failed { color: var(--red); }
.job-status-pending, .job-status-generating { color: var(--amber); }
.current-job { margin-bottom: 8px; }

.footer { padding: 20px 0 28px; border-top: 1px solid var(--panel-border); color: #9ca3af; font-size: 0.875rem; }

.hidden { display: none !important; }

/* ---------- >=720px: breathing room, horizontal action rows ---------- */
@media (min-width: 720px) {
  .shell { padding: 0 24px; }
  .panel { padding: 28px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; flex: 1 1 auto; }
  .model-head { flex-direction: row; align-items: flex-end; }
  .model-head > * { flex: 1; }
  .field-row { grid-template-columns: 2fr 1fr auto auto; align-items: end; }
}

/* ---------- >=1024px: desktop two-column ---------- */
@media (min-width: 1024px) {
  .header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .brand { text-align: left; }
  .tagline { margin: 10px 0 0; }
  .account-bar { justify-content: flex-start; }
}

/* ---------- journey steps (studio map + progress styles) ---------- */
.steps { margin-bottom: 20px; }
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  min-width: 0;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  flex: 0 0 auto;
}
.step-current { color: #fff; border-color: var(--accent); background: rgba(34, 211, 238, 0.12); }
.step-current .step-num { background: var(--accent); color: var(--accent-dark); }
.step-done { color: var(--text); border-color: var(--green); }
.step-done .step-num { background: var(--green); color: #052e12; }
/* The studio map numbers carry the cyan-to-purple gradient. */
.studio-map .step-num { background: linear-gradient(135deg, var(--accent), var(--violet)); color: #0b1020; }
.steps-six { grid-template-columns: 1fr 1fr; }

.helper { color: var(--muted); font-size: 0.9375rem; margin: 10px 0 0; }

.check-group { display: flex; flex-direction: column; gap: 8px; }
.check-group .req-label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9375rem; }
.models-intro { margin-top: 0; }

@media (min-width: 720px) {
  .steps-list { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .steps-six { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .steps-six { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- starting-point gallery + options ---------- */
.layout-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.layout-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 48px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
}
.layout-card:hover { opacity: 0.95; }
.layout-card-title { font-weight: 800; color: #fff; }
.layout-card-tag { color: var(--muted); font-size: 0.9375rem; }
.layout-selected { border-color: var(--accent); background: rgba(34, 211, 238, 0.1); }

/* ---------- preset gallery ---------- */
.preset-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.preset-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
}
.preset-card:hover { opacity: 0.95; }
.preset-selected { border-color: var(--violet); background: var(--purple-dim); }
/* Preset merging (Nov 20, 2026): a combined preset that is not
   the lead pick keeps a quieter applied tint than the selected
   card, and every combined card carries a small tag naming its
   place in the combination. */
.preset-added { border-color: var(--accent); background: rgba(34, 211, 238, 0.08); }
.preset-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--field-border);
  color: var(--text);
}
.preset-combo-line { margin-top: 10px; }
.preset-card-title { font-weight: 800; color: #fff; }
.preset-card-base { font-size: 0.875rem; }

@media (min-width: 720px) {
  .preset-gallery { grid-template-columns: 1fr 1fr; }
  .layout-gallery { grid-template-columns: 1fr 1fr; }
}
.layout-options { display: flex; flex-direction: column; }
.option-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 48px;
  padding: 10px 0;
  cursor: pointer;
  border-top: 1px dashed var(--panel-border);
}
.option-row strong { display: block; }
.option-help { display: block; color: var(--muted); font-size: 0.9375rem; }

/* ---------- hero + public sections ---------- */
.panel a:not(.btn), .footer a { color: var(--accent); }
.hero {
  background-image: radial-gradient(ellipse 85% 60% at 50% -15%, rgba(34, 211, 238, 0.10), rgba(34, 211, 238, 0) 60%), radial-gradient(ellipse 55% 45% at 90% 110%, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0) 65%);
}
.hero h2 { font-size: 1.9rem; line-height: 1.22; color: #fff; }
/* The hero headline became the page H1 in the Nov 21, 2026 SEO heading
   fix; this rule reproduces its previous h2 rendering exactly (size and
   leading from .hero h2, margin from .panel h2). */
.hero h1 { margin: 0 0 12px; font-size: 1.9rem; line-height: 1.22; color: #fff; }
.hero .actions { margin-top: 20px; }
#firstRunNote {
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--text);
}
.legal h1 { font-size: 1.75rem; margin: 0 0 6px; }
.legal h2 { font-size: 1.125rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul, .legal ol { margin: 8px 0 8px 20px; padding: 0; }
.legal li { margin: 6px 0; }
.legal .backlink { display: inline-block; margin-bottom: 16px; }

/* Framed product visual (browser chrome over a real screenshot). */
.preview-frame {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(34, 211, 238, 0.06), 0 0 34px rgba(34, 211, 238, 0.10);
}
.preview-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--panel-border);
}
.preview-url { margin-left: 8px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-frame img { display: block; width: 100%; height: auto; }

.hero-visual { margin: 26px 0 6px; }
.hero-visual figcaption {
  color: var(--muted); font-size: 0.875rem; line-height: 1.5;
}
.hero-visual figcaption { margin-top: 10px; text-align: center; }

/* Trust chips in the hero pitch: two verifiable platform facts. */
.trust-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.trust-chips li {
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: var(--purple-dim);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- dashboard surfaces ---------- */
#dashboardPanel h3 { margin: 22px 0 8px; font-size: 17px; }
/* (.runtime-card retired Nov 19, 2026: the dashboard's separate
   applications list folded into the builds list — entries are
   .job-item cards now, titled by .job-title.) */
.job-item .job-title { font-weight: 700; }
.p7-activity { list-style: none; margin: 0; padding: 0; }
.p7-activity li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
}
.p7-activity li:last-child { border-bottom: none; }

/* ---------- "Make it yours" appearance controls ---------- */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.bundle-card {
  text-align: left; cursor: pointer; color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 12px 14px; font: inherit;
}
.bundle-card:hover { border-color: var(--accent); }
.bundle-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bundle-card-title { display: block; font-weight: 700; margin-bottom: 4px; }
.bundle-card-help { display: block; font-size: 13.5px; opacity: 0.75; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.25); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.swatch:hover { border-color: var(--accent); }
.swatch-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mode-row { display: flex; gap: 10px; margin: 8px 0 18px; }
.mode-btn {
  cursor: pointer; color: inherit; font: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border); border-radius: 999px;
  padding: 8px 18px;
}
.mode-btn:hover { border-color: var(--accent); }
.mode-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---------- owner return bar ----------
   Slim strip at the very top of the page, revealed by app.js ONLY
   when the signed-in session belongs to the owner (the
   /api/billing/check ownerAccount field). It is the way back from
   viewing the live site to the private owner dashboard. Hidden by
   default in the markup; customers and logged-out visitors never
   see it, and their layout never shifts. */
.owner-bar {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  justify-content: space-between;
  background: #0e1730; border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 8px 14px; margin-bottom: 14px;
  font-size: 0.875rem; color: var(--muted);
}
.owner-bar-link {
  color: #0b1020; background: var(--accent); font-weight: bold;
  text-decoration: none; padding: 6px 14px; border-radius: 999px;
  white-space: nowrap;
}

/* ---------- desktop width ---------- */
@media (min-width: 1024px) {
  .shell { max-width: 1320px; }
  .demo-visual { max-width: 1120px; margin-left: auto; margin-right: auto; }
}

/* ---------- live preview (the Your Plan preview panel) ----------
   A faithful miniature of the generated application's home screen.
   The panel lives in the Your Plan view, above the subscription
   options (moved from the Studio, Nov 19, 2026) — the wider stage
   the miniature always needed. The miniature paints with the same
   tokens the generator emits (build/server/hosted/appearance.cjs),
   carried in on the --pv-* custom properties that app.js sets from
   the resolved appearance — no colors are invented here. */
.preview-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.preview-panel h2 { margin: 0 0 12px; color: #fff; font-size: 1.25rem; }
@media (min-width: 720px) {
  .preview-panel { padding: 28px; }
}
.pv-frame {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  background: #0b1020;
}
.pv-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--panel-border);
}
.pv-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); flex-shrink: 0; }
.pv-url {
  margin-left: 8px; font-size: 0.75rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-app {
  background: var(--pv-bg, #ffffff);
  color: var(--pv-text, #111827);
  font-family: var(--pv-font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 13px;
  line-height: 1.45;
}
.pv-banner {
  background: var(--pv-accent, #475569);
  color: var(--pv-accent-fg, #ffffff);
  padding: 12px 14px;
}
.pv-eyebrow {
  margin: 0 0 2px;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
}
.pv-banner .pv-eyebrow { color: var(--pv-accent-fg, #ffffff); opacity: 0.85; }
.pv-side .pv-eyebrow { color: var(--pv-muted, #4b5563); }
.pv-name {
  margin: 0;
  font-family: var(--pv-heading-font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 17px; line-height: 1.2;
  text-transform: var(--pv-name-transform, none);
  overflow-wrap: break-word;
}
.pv-side .pv-name { color: var(--pv-text, #111827); font-size: 15px; }
.pv-body { display: flex; align-items: stretch; }
.pv-side {
  width: 34%; flex-shrink: 0; min-width: 0;
  background: var(--pv-surface, #f8fafc);
  border-right: 1px solid var(--pv-border, #d1d5db);
  padding: 12px 10px;
}
.pv-nav { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-side .pv-nav:first-child { margin-top: 0; }
.pv-nav li {
  padding: 4px 8px;
  border-radius: var(--pv-radius, 6px);
  color: var(--pv-muted, #4b5563);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-nav li.pv-nav-active {
  background: var(--pv-accent, #475569);
  color: var(--pv-accent-fg, #ffffff);
  font-weight: 700;
}
.pv-logout {
  margin-top: 12px; display: inline-block;
  font-size: 11px;
  border: 1px solid var(--pv-border, #d1d5db);
  border-radius: var(--pv-radius, 6px);
  padding: 4px 10px;
  color: var(--pv-text, #111827);
}
.pv-main { flex: 1; min-width: 0; padding: 12px; }
.pv-card {
  background: var(--pv-surface, #f8fafc);
  border: 1px solid var(--pv-border, #d1d5db);
  border-radius: var(--pv-radius, 6px);
  box-shadow: var(--pv-shadow, none);
  padding: 12px;
}
.pv-card h3 {
  margin: 0 0 10px;
  font-family: var(--pv-heading-font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-size: 14px;
}
.pv-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pv-count {
  flex: 1 1 0; min-width: 58px;
  border: 1px solid var(--pv-border, #d1d5db);
  border-radius: var(--pv-radius, 6px);
  padding: 8px;
  background: var(--pv-bg, #ffffff);
}
.pv-count-num { font-size: 19px; font-weight: 700; line-height: 1.1; }
.pv-count-label { font-size: 10px; color: var(--pv-muted, #4b5563); }
.pv-list-title {
  margin: 0 0 2px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--pv-muted, #4b5563);
}
.pv-rows { list-style: none; margin: 0; padding: 0; }
.pv-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--pv-border, #d1d5db);
}
.pv-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-chip {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--pv-accent, #475569);
  color: var(--pv-accent-fg, #ffffff);
}

/* ---------- Studio console (rebuild, Nov 19, 2026) ----------
   The signed-in workspace is a console in the shape of the owner's
   Enterprise Control Plane direction: a left rail (Studio / Your
   Plan / Your Dashboard / Support) switching views, so
   the Studio itself stays compact — roughly a screen and a half at
   desktop widths — instead of one long stacked page. On phones the
   rail becomes a horizontal strip above the view. Palette stays
   the Phase 6 scheme (navy / cyan / purple) throughout. */
.console { display: flex; flex-direction: column; gap: 16px; }
.rail {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.rail-item {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--muted);
  font: inherit; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.rail-item:hover { color: var(--text); }
.rail-active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
}
.rail-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.console-main { min-width: 0; }
.console-view .panel { margin-bottom: 0; }

.studio-layout { display: flex; flex-direction: column; gap: 20px; }
.studio-layout .panel { margin-bottom: 0; }

@media (min-width: 1024px) {
  .console {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .rail {
    flex-direction: column;
    overflow: visible;
    position: sticky; top: 16px;
  }
  .rail-item { justify-content: flex-start; border-radius: 14px; }
  .studio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
}

/* Compact Choose tiles: icon, name, one line of description. */
.layout-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
.layout-card { padding: 12px; gap: 3px; border-radius: 14px; }
.layout-card-icon { color: var(--accent); line-height: 0; margin-bottom: 4px; }
.layout-card-icon svg { width: 22px; height: 22px; }
.layout-card-title { font-size: 0.95rem; }
.layout-card-tag {
  font-size: 0.8rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 720px) {
  .layout-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Presets: filter tabs + search, compact cards in an open grid.
   (Nov 20, 2026 de-congestion: the cards used to sit in a
   fixed-height scrollable region — the CEO ruled the nested
   scroll boxes out; the page scrolls once, like a normal
   website. See STUDIO-FLOW-REPORT-2026-11-20.md.) */
.preset-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 20px;
}
.preset-head .subheading { margin: 0; }
.preset-head input { flex: 0 1 230px; min-height: 44px; }
.preset-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.preset-tab {
  min-height: 40px; padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--muted);
  font: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
}
.preset-tab:hover { color: var(--text); }
.preset-tab-active {
  color: #fff;
  border-color: var(--violet);
  background: var(--purple-dim);
}
.preset-gallery {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  padding: 2px 4px 2px 2px;
}
.preset-card { padding: 10px 12px; gap: 2px; border-radius: 12px; }
.preset-card-title { font-size: 0.9rem; line-height: 1.3; }
.preset-card-base { font-size: 0.75rem; color: var(--muted); }
.preset-empty { grid-column: 1 / -1; margin: 8px 0; }

/* Configure groups: collapsible rows in the console's shape. */
.cfg-group {
  border-top: 1px solid var(--panel-border);
  margin-top: 16px;
  padding-bottom: 6px;
}
.cfg-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0 8px;
  list-style: none;
}
.cfg-summary::-webkit-details-marker { display: none; }
.cfg-chev { color: var(--accent); transition: transform 0.15s ease; flex: 0 0 auto; }
details[open ] > .cfg-summary .cfg-chev { transform: rotate(180deg); }
.cfg-group .subheading:first-of-type { margin-top: 8px; }

/* Tighter look-picker tiles inside "Make it yours". */
.bundle-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.bundle-card-help {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- preview surfaces (repaint, Nov 19, 2026) ----------
   The miniature's frame follows the resolved shell, and its main
   area paints the starting point's signature home surface: boards
   as mini column grids, the schedule / directory / activity feed
   as day- or department-grouped rows, and the blank starter's
   records index. Everything paints from the --pv-* tokens. */
.pv-name {
  font-weight: var(--pv-heading-weight, 600);
  letter-spacing: var(--pv-letter-spacing, 0em);
}
.pv-main { padding: var(--pv-pad, 12px); }
.pv-count-num { font-family: var(--pv-data-font, ui-monospace, monospace); }
.pv-topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--pv-surface, #f8fafc);
  border-bottom: 1px solid var(--pv-border, #d1d5db);
}
.pv-topbar .pv-name { font-size: 14px; }
.pv-topbar .pv-logout { margin-top: 0; }
.pv-nav-h { flex-direction: row; flex-wrap: wrap; margin: 0; flex: 1 1 auto; min-width: 0; }
.pv-on-accent { background: var(--pv-accent, #475569); color: var(--pv-accent-fg, #ffffff); }
.pv-on-accent .pv-eyebrow { color: var(--pv-accent-fg, #ffffff); opacity: 0.85; }
.pv-on-accent .pv-name { color: var(--pv-accent-fg, #ffffff); }
.pv-on-accent .pv-nav li { color: var(--pv-accent-fg, #ffffff); }
.pv-on-accent .pv-nav li.pv-nav-active { background: rgba(0, 0, 0, 0.22); color: var(--pv-accent-fg, #ffffff); }
.pv-on-accent .pv-logout { border-color: var(--pv-accent-fg, #ffffff); color: var(--pv-accent-fg, #ffffff); }
.pv-shell-compact .pv-side { width: 27%; padding: 10px 8px; }
.pv-shell-compact .pv-name { font-size: 13px; }
.pv-shell-compact .pv-nav li { padding: 3px 6px; font-size: 12px; }
.pv-hero {
  background: linear-gradient(135deg, var(--pv-hero-from, #475569), var(--pv-hero-to, #374151));
  color: var(--pv-hero-fg, #ffffff);
  border-radius: var(--pv-radius, 6px);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.pv-hero-title {
  margin: 0 0 8px;
  font-family: var(--pv-heading-font, system-ui, sans-serif);
  font-weight: var(--pv-heading-weight, 600);
  letter-spacing: var(--pv-letter-spacing, 0em);
  font-size: 13px;
}
.pv-hero .pv-counts { margin-bottom: 0; }
.pv-hero .pv-count {
  background: rgba(0, 0, 0, 0.14);
  border-color: transparent;
  color: inherit;
}
.pv-hero .pv-count-label { color: inherit; opacity: 0.85; }
.pv-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
}
.pv-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-col-head {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--pv-muted, #4b5563);
}
.pv-col-count {
  background: var(--pv-accent, #475569);
  color: var(--pv-accent-fg, #ffffff);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1.5;
}
.pv-mini-card {
  border: 1px solid var(--pv-border, #d1d5db);
  border-left: 3px solid var(--pv-accent, #475569);
  border-radius: var(--pv-radius, 6px);
  background: var(--pv-bg, #ffffff);
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.pv-mini-title { font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.pv-mini-sub {
  font-size: 10.5px;
  color: var(--pv-muted, #4b5563);
  font-family: var(--pv-data-font, ui-monospace, monospace);
}
.pv-group { margin-bottom: 10px; }
.pv-group:last-child { margin-bottom: 0; }
.pv-group-head {
  margin: 0 0 2px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--pv-muted, #4b5563);
}
.pv-index { list-style: none; margin: 0; padding: 0; }
.pv-index li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--pv-border, #d1d5db);
}
.pv-clean { text-align: center; padding: 14px 8px; }
.pv-clean-title { margin: 0 0 4px; font-weight: 700; }
.pv-clean-sub { margin: 0; color: var(--pv-muted, #4b5563); font-size: 11.5px; }

/* ---------- compactness pass (Nov 19, 2026) ----------
   The Studio view must stay near a screen and a half at desktop
   widths: horizontal Choose tiles, paired fields, and every
   Configure group closed until opened.
   (Nov 20, 2026: this pass's single-row scrolling tab strip and
   shortened preset region are RETIRED — the CEO ruled the nested
   scroll boxes out as congestion. The tabs wrap under the base
   rule and the preset cards flow in the open page grid; the page
   is longer and scrolls once. STUDIO-FLOW-REPORT-2026-11-20.md.) */
.layout-card { flex-direction: row; align-items: center; gap: 10px; }
.layout-card-icon { margin-bottom: 0; flex: 0 0 auto; }
.layout-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.preset-tab { flex: 0 0 auto; }
.field-pair { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.field-pair .field-label { margin-top: 12px; }
@media (min-width: 720px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
}
#designPanel .subheading { margin-top: 14px; }
.pv-mini-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layout-card-tag { -webkit-line-clamp: 1; }
@media (min-width: 1024px) {
  .layout-gallery { grid-template-columns: repeat(4, 1fr); }
}
.steps.studio-map { margin-bottom: 12px; }
.studio-layout .panel { padding-top: 22px; padding-bottom: 22px; }
#designPanel .stage-head { padding-top: 10px; margin-top: 10px; }
#designPanel .cfg-summary { padding: 9px 0 6px; }
#designPanel .preset-head { margin-top: 12px; }
#presetHelp { font-size: 0.875rem; line-height: 1.4; }

/* ---------- signed-in workspace width (Nov 19, 2026) ----------
   Desktop is the primary design surface (CEO priority ruling,
   Nov 19, 2026: web page first, phone secondary). While signed
   in, the workspace shell spans the full browser width with
   modest side padding instead of the public page's centered
   column, so the console uses the whole screen edge to edge.
   app.js carries the signed-in class on the body exactly while
   the console is shown; the signed-out homepage keeps its
   centered shell and is untouched by every rule here. The
   center panel takes the extra room: the Choose tiles gain a
   column at wider screens, and the preset grid (auto-fill)
   widens with the panel on its own. The preview rail grows
   modestly so the miniature keeps its proportion. Below
   desktop widths nothing in this section applies, so the
   phone layout is exactly as it was. */
@media (min-width: 1024px) {
  body.signed-in .shell { max-width: none; padding: 0 28px; }
  body.signed-in .studio-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1500px) {
  body.signed-in .layout-gallery { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1850px) {
  body.signed-in .layout-gallery { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- futuristic restyle, signed-in workspace (Nov 19, 2026) ----------
   A finish pass over the console, in the approved palette family
   (deep navy base, cyan light, purple accents; the logo's green
   stays in the logo only). Presentation only: structure, layout,
   ids, copy and function do not move, and every rule is scoped to
   body.signed-in, so the signed-out homepage renders exactly as
   before. Four moves:
   1. Ambient light: the page background gains stronger pooled
      light behind the header and behind the preview rail, plus a
      faint dot-matrix texture (pure CSS gradients, no images).
   2. Glass panels: the console panels turn subtly translucent
      with a backdrop blur, the deep navy showing through like
      dark glass. The tint is kept deep so text contrast does not
      move (see the contrast notes in the build report).
   3. Lit edges: panel borders become a thin cyan-to-purple
      gradient; the active rail item, the selected tiles and the
      primary button carry a soft neon glow on their edges.
   4. Type details: the small labels the design system already
      has go sleeker — small caps and wider letter spacing.
   Transitions touch only border, shadow and filter on hover:
   nothing moves, blinks or animates on its own. */

body.signed-in {
  background-image:
    radial-gradient(ellipse 58% 36% at 16% -6%, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0) 62%),
    radial-gradient(ellipse 44% 48% at 97% 24%, rgba(139, 92, 246, 0.17), rgba(139, 92, 246, 0) 66%),
    radial-gradient(ellipse 46% 34% at 88% 108%, rgba(34, 211, 238, 0.07), rgba(34, 211, 238, 0) 65%),
    radial-gradient(rgba(168, 216, 255, 0.05) 1px, rgba(168, 216, 255, 0) 1.6px),
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(34, 211, 238, 0.13), rgba(34, 211, 238, 0) 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(139, 92, 246, 0.07), rgba(139, 92, 246, 0) 65%);
  background-size: auto, auto, auto, 26px 26px, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat, no-repeat;
}

/* Ambient light spilling under the header rule. */
body.signed-in .header {
  border-bottom: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 26px 36px -32px rgba(34, 211, 238, 0.55);
}

/* Glass panels with a lit gradient edge. The first background
   layer is the glass tint (deep navy, mostly opaque, so text
   contrast holds); the second paints the gradient border ring
   through the transparent border. */
body.signed-in .panel,
body.signed-in .preview-panel,
body.signed-in .owner-bar {
  background:
    linear-gradient(165deg, rgba(22, 34, 68, 0.88), rgba(11, 18, 40, 0.92)) padding-box,
    linear-gradient(140deg, rgba(34, 211, 238, 0.4), rgba(255, 255, 255, 0.07) 34%, rgba(139, 92, 246, 0.36)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Rail: glass pills; the active view is lit cyan into purple. */
body.signed-in .rail-item {
  background: linear-gradient(160deg, rgba(22, 34, 68, 0.85), rgba(11, 18, 40, 0.88));
  border-color: rgba(168, 216, 255, 0.14);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
body.signed-in .rail-item:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 16px -6px rgba(34, 211, 238, 0.5);
}
body.signed-in .rail-active {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.16));
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 20px -4px rgba(34, 211, 238, 0.55), inset 0 0 14px rgba(34, 211, 238, 0.1);
}

/* Journey steps: the current step glows; the numbered markers
   (already a cyan-to-purple gradient) pick up a soft halo. */
body.signed-in .step {
  background: linear-gradient(160deg, rgba(22, 34, 68, 0.82), rgba(11, 18, 40, 0.86));
  border-color: rgba(168, 216, 255, 0.13);
}
body.signed-in .step-current {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.1));
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.55);
}
body.signed-in .studio-map .step-num {
  box-shadow: 0 0 12px -2px rgba(139, 92, 246, 0.55);
}

/* Selectable cards: frosted tint, a lit edge on hover, and a
   neon ring on the selected tile (cyan for starting points,
   purple for presets, matching the existing selection colors). */
body.signed-in .layout-card,
body.signed-in .preset-card {
  background: linear-gradient(160deg, rgba(148, 197, 255, 0.07), rgba(148, 197, 255, 0.02));
  border-color: rgba(168, 216, 255, 0.16);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
body.signed-in .layout-card:hover,
body.signed-in .preset-card:hover {
  opacity: 1;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, 0.45);
}
body.signed-in .layout-selected {
  border-color: rgba(34, 211, 238, 0.85);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.1));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55), 0 0 24px -6px rgba(34, 211, 238, 0.55);
}
body.signed-in .preset-selected {
  border-color: rgba(167, 139, 250, 0.9);
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.07));
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.55), 0 0 24px -6px rgba(139, 92, 246, 0.6);
}
body.signed-in .preset-tab { transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease; }
body.signed-in .preset-tab:hover { border-color: rgba(34, 211, 238, 0.45); }
body.signed-in .preset-tab-active {
  border-color: rgba(167, 139, 250, 0.85);
  box-shadow: 0 0 16px -4px rgba(139, 92, 246, 0.6);
}
body.signed-in .bundle-card,
body.signed-in .mode-btn { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
body.signed-in .bundle-selected,
body.signed-in .mode-selected {
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px -4px rgba(34, 211, 238, 0.55);
}
body.signed-in .swatch-selected {
  box-shadow: 0 0 0 2px var(--accent), 0 0 16px -2px rgba(34, 211, 238, 0.6);
}

/* The preview frame gets a lit edge of its own, so the rail
   reads as one lit instrument beside the design panel. */
body.signed-in .pv-frame {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 28px -8px rgba(34, 211, 238, 0.35), inset 0 0 0 1px rgba(139, 92, 246, 0.12);
}

/* Primary action: a cyan gradient face (kept in the cyan family
   so the dark label keeps its contrast) with a cyan-to-purple
   halo behind it. */
body.signed-in .btn-primary {
  background: linear-gradient(120deg, #22d3ee 0%, #2fb9ec 55%, #29a8e0 100%);
  box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.65), 0 0 44px -8px rgba(139, 92, 246, 0.45);
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}
body.signed-in .btn-primary:hover {
  opacity: 1;
  filter: brightness(1.07);
  box-shadow: 0 0 28px -2px rgba(34, 211, 238, 0.75), 0 0 54px -8px rgba(139, 92, 246, 0.55);
}

/* Fields: a lit focus ring so the keyboard place is visible. */
body.signed-in input:focus,
body.signed-in select:focus,
body.signed-in textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18), 0 0 18px -6px rgba(34, 211, 238, 0.5);
}

/* Type details: sleeker labels where the design system already
   has them — the summary rows go small caps with wide spacing,
   form labels and group titles gain a little air. */
body.signed-in .status-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 700;
}
body.signed-in .field-label { letter-spacing: 0.05em; }
body.signed-in .cfg-title { letter-spacing: 0.03em; }
body.signed-in .eyebrow { letter-spacing: 0.2em; }
body.signed-in .panel h2,
body.signed-in .preview-panel h2 { letter-spacing: 0.015em; }

@media (prefers-reduced-motion: reduce) {
  body.signed-in .rail-item,
  body.signed-in .layout-card,
  body.signed-in .preset-card,
  body.signed-in .preset-tab,
  body.signed-in .bundle-card,
  body.signed-in .mode-btn,
  body.signed-in .btn-primary { transition: none; }
}

/* ---------- Earth backdrop, signed-in workspace (Nov 19, 2026) ----------
   The CEO's Enterprise Control Plane direction, applied to the
   backdrop: Earth seen from orbit across the top of the page —
   the glowing atmosphere arc — falling off into deep space
   blue-black behind the working panels, with the futuristic
   pass's glass floating over it. The artwork is one same-origin
   image (img/earth-horizon.webp, 2560px wide, its lower falloff
   baked into the page base color so the seam can never show).
   Two gradient veils sit over the art: a shade under the header
   band, and a space falloff that deepens with depth so panel
   text keeps the futuristic pass's contrast (see the build
   report's computed ratios). The dot-matrix texture retires —
   the art carries real stars now. Every rule stays scoped to
   body.signed-in; the signed-out homepage is untouched.
   The futuristic pass's purple accents are re-tuned here to
   the concept's own blues (electric blue beside the cyan);
   purple leaves the signed-in workspace. */

body.signed-in {
  background-image:
    linear-gradient(180deg, rgba(3, 6, 14, 0.52) 0, rgba(3, 6, 14, 0.16) 140px, rgba(3, 6, 14, 0) 250px),
    linear-gradient(180deg, rgba(5, 8, 17, 0) 280px, rgba(5, 8, 17, 0.3) 600px, rgba(5, 8, 17, 0.66) 900px, rgba(5, 8, 17, 0.9) 1250px, rgba(5, 8, 17, 0.96) 1500px),
    url("/img/earth-horizon.webp"),
    radial-gradient(ellipse 60% 30% at 85% 100%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 65%);
  background-size: auto, auto, 100% auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 50% 0, 0 0;
}

/* The header carries a deep glass wash of its own: the arc's
   bright cloud band crosses the header's lower edge, and the
   wash holds the logo, tagline and account pills at full
   contrast (see the build report's computed ratios) while the
   art still glows through it. The wash ends at the header's
   existing border line; below it the art runs at full strength. */
body.signed-in .header {
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.84), rgba(4, 7, 15, 0.76) 120px, rgba(4, 7, 15, 0.7) 200px);
}

/* Lit edges re-tuned: the gradient border's far stop goes
   electric blue instead of purple. */
body.signed-in .panel,
body.signed-in .preview-panel,
body.signed-in .owner-bar {
  background:
    linear-gradient(165deg, rgba(22, 34, 68, 0.88), rgba(11, 18, 40, 0.92)) padding-box,
    linear-gradient(140deg, rgba(56, 189, 248, 0.42), rgba(255, 255, 255, 0.07) 34%, rgba(59, 130, 246, 0.4)) border-box;
}

/* Active states in the concept's blues. */
body.signed-in .rail-active {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.18));
}
body.signed-in .step-current {
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.12));
}
body.signed-in .studio-map .step-num {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 0 12px -2px rgba(59, 130, 246, 0.6);
}
body.signed-in .layout-selected {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.1));
}
body.signed-in .preset-selected {
  border-color: rgba(96, 165, 250, 0.92);
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.24), rgba(34, 211, 238, 0.07));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55), 0 0 24px -6px rgba(59, 130, 246, 0.6);
}
body.signed-in .preset-tab-active {
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 16px -4px rgba(59, 130, 246, 0.6);
}
body.signed-in .pv-frame {
  box-shadow: 0 0 28px -8px rgba(34, 211, 238, 0.35), inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}
body.signed-in .btn-primary {
  box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.65), 0 0 44px -8px rgba(37, 99, 235, 0.5);
}
body.signed-in .btn-primary:hover {
  box-shadow: 0 0 28px -2px rgba(34, 211, 238, 0.75), 0 0 54px -8px rgba(37, 99, 235, 0.55);
}

/* ---------- preview richness pass (Nov 19, 2026) ----------
   The miniature's painting raised to the generated apps' own
   level, over the repaint's structure. Board columns become the
   real boards' panels: a tone medallion and count badge in the
   generator's status language (the .pv-tone-* classes, painted
   from the same semantic tokens — accent, success, warning,
   error, the deep neutral text color, muted — with the badge
   foreground tokensFor itself carries), a totals line summed
   from the painted cards on money boards, and cards with the
   real anatomy: title, record lines, a bold data-font amount,
   and date lines, floating on the elevation shadow the tokens
   specify. Group surfaces paint as the real ones do: schedule
   rows as time-block cards with status pills, directory rows
   with initials medallions, activity rows as feed cards. The
   hero gains a lit sheen and the surface's own description
   line. Layering follows the generated apps: in light mode the
   cards are the background color on tinted panels; in dark
   mode they are the surface color on the deeper background.
   Everything still paints only from the --pv-* tokens. */
.pv-chrome {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  padding: 7px 10px;
}
.pv-frame .pv-dot:nth-child(2) { opacity: 0.72; }
.pv-frame .pv-dot:nth-child(3) { opacity: 0.45; }
.pv-url {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 10px;
}
.pv-hero {
  background-image:
    radial-gradient(130% 170% at 88% -30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, var(--pv-hero-from, #475569), var(--pv-hero-to, #374151));
}
.pv-hero-title { margin-bottom: 2px; }
.pv-hero-desc { margin: 0 0 8px; font-size: 10.5px; line-height: 1.4; opacity: 0.88; }
.pv-count-num { font-size: 20px; }
.pv-count-label { letter-spacing: 0.04em; text-transform: uppercase; }
.pv-nav li { padding: 5px 8px; }
.pv-nav li.pv-nav-active { box-shadow: var(--pv-shadow, none); }

.pv-col {
  background: var(--pv-bg, #ffffff);
  border: 1px solid var(--pv-border, #d1d5db);
  border-radius: var(--pv-radius, 6px);
  padding: 7px;
  gap: 6px;
}
.pv-col-head {
  font-family: var(--pv-heading-font, system-ui, sans-serif);
  font-weight: var(--pv-heading-weight, 600);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--pv-text, #111827);
}
.pv-col-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.pv-col-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-col-count { padding: 0 7px; line-height: 1.6; flex-shrink: 0; }
.pv-col-total {
  margin: -2px 0 0;
  font-family: var(--pv-data-font, ui-monospace, monospace);
  font-size: 10.5px;
  color: var(--pv-muted, #4b5563);
}
.pv-col-sub { margin: -2px 0 0; font-size: 10.5px; color: var(--pv-muted, #4b5563); }
.pv-col-alert { margin: 0; font-size: 10.5px; font-weight: 600; color: var(--pv-error, #b91c1c); }
.pv-head-pill { border-radius: 999px; padding: 2px 9px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.pv-col-req { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--pv-muted, #4b5563); white-space: nowrap; }

.pv-tone-accent .pv-col-dot, .pv-tone-accent .pv-col-count, .pv-tone-accent .pv-head-pill { background: var(--pv-accent, #475569); color: var(--pv-accent-fg, #ffffff); }
.pv-tone-success .pv-col-dot, .pv-tone-success .pv-col-count, .pv-tone-success .pv-head-pill { background: var(--pv-success, #15803d); color: var(--pv-on-tone, #ffffff); }
.pv-tone-warning .pv-col-dot, .pv-tone-warning .pv-col-count, .pv-tone-warning .pv-head-pill { background: var(--pv-warning, #b45309); color: var(--pv-on-tone, #ffffff); }
.pv-tone-error .pv-col-dot, .pv-tone-error .pv-col-count, .pv-tone-error .pv-head-pill { background: var(--pv-error, #b91c1c); color: var(--pv-on-tone, #ffffff); }
.pv-tone-neutral .pv-col-dot, .pv-tone-neutral .pv-col-count, .pv-tone-neutral .pv-head-pill { background: var(--pv-text, #111827); color: var(--pv-bg, #ffffff); }
.pv-tone-muted .pv-col-dot, .pv-tone-muted .pv-col-count, .pv-tone-muted .pv-head-pill { background: var(--pv-muted, #4b5563); color: var(--pv-bg, #ffffff); }
.pv-tone-accent .pv-mini-card { border-left-color: var(--pv-accent, #475569); }
.pv-tone-success .pv-mini-card { border-left-color: var(--pv-success, #15803d); }
.pv-tone-warning .pv-mini-card { border-left-color: var(--pv-warning, #b45309); }
.pv-tone-error .pv-mini-card { border-left-color: var(--pv-error, #b91c1c); }
.pv-tone-neutral .pv-mini-card { border-left-color: var(--pv-text, #111827); }
.pv-tone-muted .pv-mini-card { border-left-color: var(--pv-muted, #4b5563); }

.pv-mini-card { box-shadow: var(--pv-shadow, none); padding: 7px 8px; gap: 3px; }
.pv-mode-dark .pv-mini-card { background: var(--pv-surface, #1e293b); }
.pv-mini-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.pv-mini-title {
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pv-mini-meta, .pv-mini-foot { font-size: 10.5px; line-height: 1.35; color: var(--pv-muted, #4b5563); overflow-wrap: anywhere; }
.pv-mini-amount {
  font-family: var(--pv-data-font, ui-monospace, monospace);
  font-size: 12px; font-weight: 700; color: var(--pv-text, #111827);
}

.pv-tchip {
  flex-shrink: 0;
  font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.pv-tchip-accent { background: var(--pv-accent, #475569); color: var(--pv-accent-fg, #ffffff); }
.pv-tchip-success { background: var(--pv-success, #15803d); color: var(--pv-on-tone, #ffffff); }
.pv-tchip-warning { background: var(--pv-warning, #b45309); color: var(--pv-on-tone, #ffffff); }
.pv-tchip-error { background: var(--pv-error, #b91c1c); color: var(--pv-on-tone, #ffffff); }
.pv-tchip-neutral { background: var(--pv-text, #111827); color: var(--pv-bg, #ffffff); }
.pv-tchip-muted { background: var(--pv-muted, #4b5563); color: var(--pv-bg, #ffffff); }

.pv-group { margin-bottom: 12px; }
.pv-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 0 4px;
  font-family: var(--pv-heading-font, system-ui, sans-serif);
  font-weight: var(--pv-heading-weight, 600);
  font-size: 12px; letter-spacing: 0.01em; text-transform: none;
  color: var(--pv-text, #111827);
}
.pv-group-count { font-size: 10.5px; font-weight: 600; color: var(--pv-muted, #4b5563); white-space: nowrap; }
.pv-group-sub { margin: 0 0 6px; font-size: 10.5px; color: var(--pv-muted, #4b5563); }
.pv-rows { display: flex; flex-direction: column; gap: 6px; }
.pv-rows li.pv-row-card {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--pv-border, #d1d5db);
  border-radius: var(--pv-radius, 6px);
  background: var(--pv-bg, #ffffff);
  box-shadow: var(--pv-shadow, none);
  padding: 7px 8px;
}
.pv-mode-dark .pv-rows li.pv-row-card { background: var(--pv-surface, #1e293b); }
.pv-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pv-row-name { white-space: normal; overflow: visible; text-overflow: clip; font-weight: 600; font-size: 11.5px; line-height: 1.3; }
.pv-row-sub { font-size: 10.5px; line-height: 1.35; color: var(--pv-muted, #4b5563); }
.pv-row-time {
  font-family: var(--pv-data-font, ui-monospace, monospace);
  font-size: 10.5px; font-weight: 700; color: var(--pv-text, #111827);
  white-space: nowrap; min-width: 54px;
}
.pv-row-time-end { min-width: 0; font-weight: 600; color: var(--pv-muted, #4b5563); }
.pv-medal {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pv-accent, #475569); color: var(--pv-accent-fg, #ffffff);
  font-size: 9.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- homepage vision — the SIMPLE SIGNUP PAGE
   (Nov 19, 2026) ----------
   CEO rulings, Nov 19, 2026: first a slim signup page, then —
   rejecting even that as too much — "just a simple sign up
   page luring them to sign up", refined to "no prices, no
   stripe.. simple" and "just a get started free". The
   signed-out homepage is now ONE composition in the Studio's
   established vision language (the same Earth-from-orbit
   backdrop — img/earth-horizon.webp, the signed-in pass's
   artwork and veil stack — the header's glass wash, and a
   glass panel with lit gradient edges): the pitch (headline,
   one paragraph, two honesty chips, the page's single call to
   action), the create-account form inside the same panel, and
   the real generated application below. No portfolio, no
   pricing, no mission panel, no prices or payment names
   anywhere on the page — pricing lives in Your Plan and the
   Terms/Refunds pages, untouched. The form defaults to
   signup; one quiet text link under it toggles the same form
   to login for returning customers.
   Every rule is scoped to body:not(.signed-in): the signed-in
   Studio's rendering cannot be touched by anything here (its
   own body.signed-in sections above carry the same language). */

/* The backdrop: shade veil, space falloff, the Earth art
   top-anchored, and a faint electric-blue pool for the page's
   foot — the signed-in stack, verbatim. */
body:not(.signed-in) {
  background-image:
    linear-gradient(180deg, rgba(3, 6, 14, 0.52) 0, rgba(3, 6, 14, 0.16) 140px, rgba(3, 6, 14, 0) 250px),
    linear-gradient(180deg, rgba(5, 8, 17, 0) 280px, rgba(5, 8, 17, 0.3) 600px, rgba(5, 8, 17, 0.66) 900px, rgba(5, 8, 17, 0.9) 1250px, rgba(5, 8, 17, 0.96) 1500px),
    url("/img/earth-horizon.webp"),
    radial-gradient(ellipse 60% 30% at 85% 100%, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 65%);
  background-size: auto, auto, 100% auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 50% 0, 0 0;
}

/* The header's deep glass wash — the same measured wash the
   signed-in header carries: the arc's bright cloud band crosses
   the header's lower edge, and the wash holds the logo, tagline
   and account pill at full contrast while the art glows through
   it. The lit rule and light spill under it come from the
   futuristic pass's header treatment. The footer answers it
   with the same lit rule, inverted.
   CEO refinement (voice call, Nov 19, 2026, ~11:02–11:04 PM
   CST): the wash goes MORE OPAQUE — a darker, more solid box
   (0.84/0.76/0.70 → 0.96/0.94/0.92; the art still shows around
   the box, just barely through it) — and the box's corners are
   ROUNDED at the same 16px radius as the panel underneath it,
   so the header reads as part of the same family instead of
   square-cornered. His correction in the same call: the box's
   LENGTH is right as it is — no width change. */
body:not(.signed-in) .header {
  background: linear-gradient(180deg, rgba(4, 7, 15, 0.96), rgba(4, 7, 15, 0.94) 120px, rgba(4, 7, 15, 0.92) 200px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 16px;
  box-shadow: 0 26px 36px -32px rgba(34, 211, 238, 0.55);
}
body:not(.signed-in) .footer {
  border-top: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 -26px 36px -32px rgba(34, 211, 238, 0.55);
}

/* The one panel on the page is glass: deep-navy translucent
   tint (kept deep so text contrast holds over the art), a thin
   cyan-to-electric-blue gradient border ring, backdrop blur,
   and the system's soft drop shadow with a lit top edge. */
body:not(.signed-in) .hero {
  background:
    linear-gradient(165deg, rgba(22, 34, 68, 0.88), rgba(11, 18, 40, 0.92)) padding-box,
    linear-gradient(140deg, rgba(56, 189, 248, 0.42), rgba(255, 255, 255, 0.07) 34%, rgba(59, 130, 246, 0.4)) border-box;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* The composition: pitch, form, showcase in one panel. On
   phones they stack in that order — the form is the second
   thing on the page, nothing to scroll past. On desktop the
   pitch and the form sit side by side and the real generated
   application spans the panel beneath them. The form is an
   inner card: a lighter frosted tint and its own lit edge,
   so it reads as the one place to act. */
body:not(.signed-in) #authPanel {
  margin-top: 26px;
  background: linear-gradient(170deg, rgba(148, 197, 255, 0.07), rgba(148, 197, 255, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  padding: 22px 20px;
}
@media (min-width: 1024px) {
  body:not(.signed-in) .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    grid-template-areas: "pitch form" "visual visual";
    column-gap: 36px;
    align-items: start;
  }
  body:not(.signed-in) .hero-pitch { grid-area: pitch; }
  body:not(.signed-in) #authPanel { grid-area: form; margin-top: 6px; }
  body:not(.signed-in) .hero-visual { grid-area: visual; margin: 22px 0 0; }
}

/* The returning customer's door: a quiet text link under the
   form — no button treatment, nothing that competes with the
   page's one call to action. */
body:not(.signed-in) .auth-toggle-row { margin: 14px 0 0; }

/* Every primary action on the signed-out page takes the lit
   treatment: a cyan gradient face (kept in the cyan family so
   the dark label keeps its contrast) with a cyan-to-electric-
   blue halo. On this page that is the form's own submit —
   "Launch my account" in both modes (CEO fix, Nov 19, 2026:
   the hero's separate CTA anchor was removed; the form is
   already on screen, so the submit itself is the call to
   action). */
body:not(.signed-in) .btn-primary {
  background: linear-gradient(120deg, #22d3ee 0%, #2fb9ec 55%, #29a8e0 100%);
  box-shadow: 0 0 22px -4px rgba(34, 211, 238, 0.65), 0 0 44px -8px rgba(37, 99, 235, 0.5);
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}
body:not(.signed-in) .btn-primary:hover {
  opacity: 1;
  filter: brightness(1.07);
  box-shadow: 0 0 28px -2px rgba(34, 211, 238, 0.75), 0 0 54px -8px rgba(37, 99, 235, 0.55);
}

/* The framed real application inside the hero gets the lit
   edge the Studio's preview frame carries. */
body:not(.signed-in) .hero .preview-frame {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 28px -8px rgba(34, 211, 238, 0.35), inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}

/* The hero showcase rotates through the ten real generated
   applications (CEO direction, Nov 19, 2026): the slides stack
   in one stage inside the frame and crossfade — app.js moves
   the .active class and updates the caption under the frame.
   The stage holds one fixed aspect so the frame never changes
   height mid-rotation; slides are contained, never cropped —
   a real screenshot is shown whole or not at all. Rotation
   pauses on hover/focus (app.js) and never starts for
   reduced-motion visitors (app.js checks the media query;
   the fade itself is also stilled here). */
body:not(.signed-in) .hero-rotator {
  position: relative;
  aspect-ratio: 1000 / 520;
  background: #0f172a;
}
body:not(.signed-in) .hero-rotator img.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
  pointer-events: none;
}
body:not(.signed-in) .hero-rotator img.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  body:not(.signed-in) .btn-primary { transition: none; }
  body:not(.signed-in) .hero-rotator img.hero-slide { transition: none; }
}

/* ---------- Studio preview spacing pass (Nov 19, 2026, late) ----------
   CEO direction (voice call, ~11:05 PM CST): the Studio's live
   preview box "is long, narrow, just looks out of place and it's
   really scrunching up the rest of it — let's see if we can't
   work on the spacing here." A spacing/placement pass on the
   signed-in console only; the miniature's painting is untouched
   (the fidelity battery's assertions stand unmodified), and the
   signed-out homepage cannot be reached by any rule here.

   What the measurements said (local harness, all eleven starting
   points, fresh state): at the width fix's 440px rail and the
   preview panel's 28px padding, the frame painted 370px wide
   and — for the board surfaces — over 1,100px tall, an aspect
   near 1:3, and the rail hid ~840px of itself in its internal
   scroll. The frame's height is set by how the miniature's own
   board columns pack, so it falls in steps as the frame widens;
   the width was chosen per breakpoint band from the probe table
   in STUDIO-PREVIEW-SPACING-REPORT-2026-11-19.md, not by taste:

   1. The rail widens: 440 → 480px at desktop widths, and to
      600px on very wide screens (≥1850px), where the main
      column still keeps ~1,000px. Between 1500–1849px the rail
      stays at 480px so the five-across Choose tiles keep their
      room — the preview takes more only where the screen has
      more to give.
   2. The preview panel's padding tightens 28 → 20px, handing
      its hoarded margin to the frame itself (+16px of frame
      width at every rail width).
   3. The gaps breathe: the Studio grid gap and the rail's own
      card gap go 20 → 24px, so Preview / Generation Summary
      read as composed cards, not a squeezed stack.

   Deliberately NOT done: the frame is never cropped or
   height-capped (the miniature stays whole and faithful), the
   rail keeps its sticky, internally scrolling placement (the
   Launch button stays reachable; uncapping it would stretch
   the page by the rail's hidden length), and below 1024px
   nothing in this section applies — the phone layout is
   exactly as it was.

   AMENDED the same night (preview move, Nov 19, 2026): the
   preview left the Studio entirely for the Your Plan view, so
   this section's preview sizing retired with it — the 480/600px
   rail widths and the panel's tightened 20px padding existed
   only to feed the miniature. The rail now carries the
   Generation Summary alone and returns to the Studio rebuild's
   400px, which hands the design column back the room the CEO
   asked for; the 24px gaps stay (they were never the problem).
   On Your Plan the panel takes the standard panel padding
   (28px at >=720px) — the wide stage needs no concession. */
@media (min-width: 1024px) {
  body.signed-in .studio-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Studio summary band (Nov 20, 2026) ----------
   CEO ruling, Nov 20, 2026 (~12:51 AM): "If we move the
   generation summary to the bottom, we can stretch out the
   panels huh." The Generation Summary left the Studio's
   right rail — the rail element is gone from the page, its
   sticky safety-valve rules are retired with it, and every
   .studio-layout rule above is single-column now — and runs
   as a full-width band below the Configure section, still
   inside the Studio view. The design column takes the whole
   width beside the view rail, so the Choose tiles and the
   preset grid breathe at their natural auto-fill widths.
   Same panel, same ids, same four lines, same help text,
   same Launch button: app.js updates the summary in place
   exactly as before; only its shape on the page changed.
   Inside the band the four lines group to the left as
   label-over-value fields, and the help text + Launch
   button sit at the right end. Nothing is sticky anymore —
   the band sits at the natural end of the Studio flow. */
.summary-panel { margin-top: 20px; }
.summary-band { display: flex; flex-direction: column; gap: 16px; }
.summary-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; min-width: 0; }
.summary-panel .status-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-bottom: none;
  padding: 6px 0;
}
.summary-panel .status-value { text-align: left; }
.summary-action { min-width: 0; }
.summary-action .btn-block { margin-top: 12px; }

@media (min-width: 1024px) {
  .summary-panel { margin-top: 24px; }
  .summary-band { flex-direction: row; align-items: center; gap: 32px; }
  .summary-fields { flex: 1 1 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .summary-action { flex: 0 0 320px; }
}

/* ---------- preset merging (Nov 20, 2026) ----------
   Combined presets in the signed-in console's concept blues:
   the lead pick keeps the selected ring above; a combined
   preset that is not the lead wears a lighter cyan tint — in
   the mix, not in charge — and the tags read as small glass
   pills. The status line under the gallery carries the same
   helper voice as the rest of the Studio copy. */
body.signed-in .preset-added {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.05));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}
body.signed-in .preset-card-tag {
  border-color: rgba(168, 216, 255, 0.35);
  background: rgba(11, 16, 32, 0.35);
  color: #bae6fd;
}
body.signed-in .preset-selected .preset-card-tag {
  border-color: rgba(147, 197, 253, 0.6);
  color: #dbeafe;
}
