/* User palette: Graphite / Stormy Teal / White / Dust Grey / Yale Blue.
   Neutral shades and teal tints provide elevation and accessible boundaries. */
@font-face {
  font-family: "Montserrat";
  src: url("/static/assets-4a7008bf7a1c81d3ccf7/assets/fonts/montserrat-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand-graphite: #353535;
  --brand-teal: #3c6e71;
  --brand-white: #ffffff;
  --brand-dust: #d9d9d9;
  --brand-blue: #284b63;
  --bg: #292929;
  --bg-elevated: #2d2d2d;
  --panel: var(--brand-graphite);
  --panel-2: #404040;
  --panel-3: #494949;
  --panel-glass: rgba(53, 53, 53, 0.96);
  --line: #626262;
  --line-strong: #929292;
  --control-line: #919191;
  --text: var(--brand-white);
  --muted: var(--brand-dust);
  --muted-strong: var(--brand-dust);
  --accent: var(--brand-teal);
  --accent-strong: var(--brand-white);
  --accent-dim: var(--brand-blue);
  --accent-line: #92b3b5;
  --focus: var(--brand-dust);
  --good: #8dd9b1;
  --bad: #ffabae;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body { background: var(--bg); }
body { color: var(--text); }
body::before,
.landing-shell::before,
.landing-shell::after,
.launch-panel::before { display: none; }

h1, h2, h3 {
  font-family: "Montserrat", ui-sans-serif, sans-serif;
  font-weight: 650;
  letter-spacing: -0.04em;
}
button, .text-button, .primary-button { font-weight: 600; }
.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: 0.14em; }
::selection { background: var(--brand-teal); color: var(--brand-white); }
:focus-visible { outline-color: var(--focus); }

.topbar {
  background: var(--bg-elevated);
  border-color: var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand { color: var(--text); }
.brand-mark {
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--brand-blue);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.brand-mark svg { stroke: currentColor; }
.brand-label strong { font-weight: 650; letter-spacing: -0.02em; text-transform: none; }
.brand-label small { color: var(--muted); font-weight: 500; letter-spacing: 0.13em; }
.topbar .utility-link,
.topbar .account-chip,
.topbar .text-button { background: var(--panel); color: var(--muted-strong); border-color: var(--line); }
.topbar .nav-link { background: transparent; color: var(--muted); box-shadow: none; }
.topbar .nav-link.active,
.topbar .nav-link:hover { background: var(--accent-dim); color: var(--accent-strong); border-color: var(--accent-line); }

.text-button, .tool, .chip, .icon-button, .viewer-icon-button {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.primary-button {
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--brand-teal);
  color: var(--brand-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 16px rgba(0, 0, 0, 0.2);
}
.primary-button:hover {
  border-color: var(--brand-dust);
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.text-button:hover, .viewer-icon-button:hover, .tool:hover, .chip:hover {
  background: var(--panel-3);
  color: var(--text);
  border-color: var(--line-strong);
}
.primary-button, .text-button, .launch-platform, .public-choice-card {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

/* Keep platform selection directly available over the scenic backdrop. */
.landing-shell.public-center {
  align-content: center;
  padding-block: clamp(28px, 6vh, 64px);
  background: var(--bg);
}
.landing-grid {
  width: min(100%, 960px);
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.public-center .landing-copy {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: none;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.landing-copy h1 {
  min-width: 0;
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.landing-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.landing-copy .eyebrow { margin: 0; font-size: 0.75rem; }
.launch-panel {
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.launch-panel-heading { align-items: center; }
.launch-panel-heading h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }
.launch-count { background: var(--panel-2); border-color: var(--line); border-radius: 6px; font-weight: 500; }
.launch-platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.launch-platform-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.launch-platform {
  min-height: 172px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #3c3c3c, var(--panel-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.launch-platform:hover,
.launch-platform:focus-visible {
  border-color: var(--brand-dust);
  background: linear-gradient(145deg, #3c3c3c, var(--panel-2));
  transform: none;
}
.platform-glyph {
  background: var(--brand-blue);
  border-color: var(--accent-line);
  color: var(--brand-white);
  border-radius: 10px;
  box-shadow: none;
}
.platform-artwork {
  position: relative;
  display: block;
  width: min(100%, 250px);
  aspect-ratio: 5 / 3;
  margin-inline: auto;
  pointer-events: none;
}
.platform-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.25);
}
.platform-artwork-p img { transform: scale(-1.24, 1.24); }
.launch-platform > .platform-glyph { grid-column: 1; width: 46px; height: 46px; }
.launch-platform > .platform-artwork { grid-column: 1; width: min(100%, 220px); margin-inline: 0; }
.launch-platform-copy { grid-column: 1; grid-row: 2; gap: 7px; }
.launch-platform-copy strong { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.launch-platform-copy small { white-space: normal; font-size: 0.875rem; line-height: 1.4; }
.launch-arrow { grid-column: 2; grid-row: 2; border: 1px solid var(--accent-line); border-radius: 8px; background: var(--brand-blue); color: var(--accent-strong); }
.landing-boundary {
  width: min(100%, 960px);
  margin-top: 24px;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
  text-align: center;
}

.public-step-shell, .auth-shell { background: var(--bg); color: var(--text); }
.public-step-shell {
  padding: clamp(32px, 6vh, 72px) max(var(--page-gutter), env(safe-area-inset-right), env(safe-area-inset-left));
}
.public-step-panel {
  width: min(100%, 960px);
  min-width: 0;
  gap: 32px;
  margin-inline: auto;
  background: transparent;
}
.setup-intro {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  text-align: center;
}
.setup-intro h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.setup-intro .eyebrow { margin: 0; font-size: 0.875rem; }
.setup-intro .public-step-copy {
  max-width: 36rem;
  margin: 0;
  text-wrap: pretty;
}
.public-step-panel .public-progress {
  width: min(100%, 28rem);
  max-width: none;
  margin: 0 auto 8px;
}
.public-progress::before { left: 16.6667%; right: 16.6667%; top: 18px; }
.public-progress li { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; gap: 10px; }
.public-progress li span { width: 37px; height: 37px; }
.public-progress li.active { font-weight: 650; }
.setup-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(100%, 28rem);
  margin-inline: auto;
  gap: 24px;
}
.scenic-hero > .public-back-button {
  position: relative;
  z-index: 1;
  justify-self: start;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding-inline: 16px;
  font-size: 0.875rem;
}
.public-step-panel .step-tools { justify-content: center; }
.public-step-panel .search-field { width: min(100%, 26rem); flex: 0 1 26rem; margin-inline: auto; }
.public-step-panel .search-field .text-input { min-height: 48px; border-radius: 12px; background: var(--bg-elevated); }
.public-choice-grid { gap: 20px; align-items: stretch; }
.platform-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-choice-grid > .public-choice-card:only-of-type { grid-column: 1 / -1; width: min(100%, 470px); justify-self: center; }
.public-choice-grid > .empty-state { grid-column: 1 / -1; justify-items: center; text-align: center; }
.step-heading h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 650; line-height: 1.15; }
.section-index { background: var(--brand-blue); color: var(--accent-strong); border-color: var(--accent-line); border-radius: 8px; }
.public-choice-card {
  position: relative;
  min-width: 0;
  min-height: 264px;
  padding: 28px;
  gap: 22px;
  grid-template-rows: auto 1fr auto;
  text-align: center;
  background: linear-gradient(155deg, #3b3b3b, var(--brand-graphite));
  border: 1px solid var(--control-line);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 10px 30px rgba(0, 0, 0, 0.1);
}
.public-choice-card:hover,
.public-choice-card:focus-visible {
  border-color: var(--brand-dust);
  background: linear-gradient(155deg, #3b3b3b, var(--brand-graphite));
  transform: none;
}
.public-choice-card.selected { background: var(--brand-blue); border-color: var(--brand-dust); }
.public-choice-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.public-choice-card .choice-card-top { justify-content: center; align-items: center; }
.public-choice-card .choice-number { position: absolute; right: 22px; top: 22px; font-weight: 500; }
.public-choice-card .platform-glyph { width: 56px; height: 56px; border-radius: 15px; font-size: 1.25rem; }
.public-choice-card .platform-artwork { width: min(100%, 270px); }
.public-choice-card .choice-card-copy { align-items: center; justify-content: center; gap: 8px; }
.public-choice-card .choice-card-copy strong { color: var(--text); font-weight: 600; font-size: 1.375rem; line-height: 1.3; overflow-wrap: anywhere; }
.public-choice-card .choice-card-copy small { font-size: 0.875rem; line-height: 1.5; }
.public-choice-card .choice-card-action { justify-content: center; gap: 12px; padding-top: 18px; font-size: 0.9375rem; font-weight: 550; }
.model-orbit-glyph::before, .model-orbit-glyph::after { border-color: var(--brand-dust); }
.public-progress li { min-width: 0; overflow-wrap: anywhere; }
.public-progress li span { background: var(--panel-2); border-color: var(--control-line); }
.public-progress li.active span,
.public-progress li.complete span,
.admin-flow-progress li.active span,
.admin-flow-progress li.complete span { background: var(--brand-teal); border-color: var(--brand-dust); color: var(--brand-white); box-shadow: none; }
.public-progress li.active { color: var(--text); }
.search-field { background: transparent; border: 0; }
.text-input, .select-input, .file-input, .transform-cell input, .adjustment-axis input {
  color: var(--text);
  background: var(--bg);
  border-color: var(--control-line);
}
.text-input::placeholder { color: var(--muted); opacity: 1; }
.text-input:focus, .select-input:focus, .file-input:focus,
.transform-cell input:focus, .adjustment-axis input:focus { border-color: var(--brand-dust); }
.auth-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-switch a { color: var(--brand-white); text-decoration: underline; text-underline-offset: 3px; }
.runtime-loader, .loading-spinner { border-top-color: var(--brand-dust); }

/* The model remains the brightest, most prominent object on the stage. */
.public-viewer-shell,
.workspace > .viewport-region {
  background: radial-gradient(ellipse at 43% 48%, var(--brand-graphite) 0, var(--bg) 42%, #202020 78%);
}
.public-viewer-shell::before, .viewport-region::before { opacity: 0.025; }
.public-viewer-shell::after, .viewport-region::after { display: none; }
.public-viewer-appbar { background: linear-gradient(#202020, rgba(32, 32, 32, 0)); }
.public-viewer-title span { color: var(--muted); letter-spacing: 0.1em; font-weight: 500; }
.public-viewer-title i { display: none; }
.public-viewer-title h1 { font-weight: 600; }
.viewer-icon-button { background: var(--panel); border-color: var(--control-line); border-radius: 12px; }
.public-parts-sheet, .public-parts-sheet[data-snap],
.workspace .admin-drawer { background: var(--panel); border-color: var(--line); box-shadow: -12px 0 48px rgba(0, 0, 0, 0.16); }
.public-viewer-guide { flex-wrap: wrap; }
.public-viewer-guide span { background: var(--bg-elevated); border-color: var(--control-line); border-radius: 6px; color: var(--muted-strong); font-weight: 450; }
.public-viewer-guide svg { stroke: var(--muted); }
.viewer-status-copy { min-width: 0; overflow-wrap: anywhere; }
.module-progress { background: var(--line); height: 2px; }
.module-progress span { background: var(--brand-dust); box-shadow: none; }
.parts-sheet-handle > span { width: 36px; background: var(--brand-dust); }
.parts-sheet-summary h2, .parts-sheet-header h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.part-slot-row, .part-option, .admin-template-card, .admin-base-card, .admin-asset-option, .admin-slot-row {
  background: var(--panel-2);
  border-color: var(--control-line);
  border-radius: 10px;
}
.part-slot-row:hover, .part-option:hover, .admin-template-card:hover,
.admin-base-card:hover, .admin-asset-option:hover, .admin-slot-row:hover { background: var(--brand-blue); border-color: var(--accent-line); }
.part-option.selected, .admin-slot-row.active, .admin-slot-row.selected,
.admin-base-card.selected, .admin-template-card.selected, .admin-asset-option.selected {
  background: var(--brand-blue);
  border-color: var(--brand-dust);
  box-shadow: inset 3px 0 0 var(--brand-dust);
}
.part-option-swatch { background: var(--brand-graphite); border-color: var(--accent-line); }
.part-option-swatch i { border-color: var(--brand-dust); }
.part-slot-action { color: var(--accent-strong); }
.part-slot-copy strong, .part-option-copy strong { font-weight: 600; }
.module-position-button { background: var(--bg-elevated); border-color: var(--control-line); border-radius: 8px; }
.module-position-button.active { background: var(--brand-blue); border-color: var(--brand-dust); color: var(--brand-white); }
.module-position-button.complete { border-bottom-color: var(--brand-dust); }
.module-restore-note { padding: 12px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-dim); }
.scene-toolbar { background: var(--bg-elevated); border-color: var(--control-line); border-radius: 12px; box-shadow: var(--shadow-soft); }
.scene-toolbar .tool { background: transparent; border-color: transparent; }
.scene-toolbar .tool.active,
.admin-tool-tab.active,
.adjustment-modes .active { background: var(--brand-blue); border-color: var(--accent-line); color: var(--brand-white); }
.scene-toolbar .tool.danger { color: var(--bad); }
.admin-drawer .admin-tool-tabs,
.admin-drawer .admin-tool-tabs[data-pinned="true"]::before { background: var(--panel); }
.adjustment-modes { background: var(--bg); }
.adjustment-resize { background: var(--brand-blue); border-color: var(--accent-line); }
.admin-current-base { background: var(--brand-blue); border-color: var(--accent-line); }
.transform-summary, .object-row, .object-state-controls, .toggle-control { background: var(--panel-2); border-color: var(--control-line); }
.object-row.selected { background: var(--brand-blue); border-color: var(--brand-dust); }
.public-viewer-shell > .viewport-hint,
.workspace .viewport-hint { background: rgba(45, 45, 45, 0.97); border-color: var(--control-line); color: var(--brand-dust); border-radius: 8px; }
.webgl-fallback-panel { background: var(--bg-elevated); }
.parts-trigger-count { color: var(--brand-white); opacity: 1; font-weight: 650; }
.admin-metric-grid article, .library-group, .about-principles article { background: var(--panel); }
.library-row { background: var(--panel-2); border-color: var(--control-line); }
.slot-position-marker { background: var(--brand-blue); border-color: var(--brand-dust); box-shadow: 0 0 0 6px rgba(60, 110, 113, 0.1), var(--shadow-soft); }
.workspace[data-drawer-state="collapsed"] .drawer-peek-toggle span { background: var(--brand-dust); }
.admin-position-button.active { background: var(--brand-blue); border-color: var(--brand-dust); color: var(--brand-white); }

/* Scenic headers occupy about one fifth of the viewport, with content-safe growth. */
.landing-shell.public-center.banner-layout,
.public-step-shell.banner-layout {
  --setup-content-gutter: max(var(--page-gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  display: block;
  /* Block containers also honor align-content; do not inherit hero centering. */
  align-content: start;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 0 40px;
  background: var(--bg);
}
.scenic-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
  justify-self: stretch;
  place-items: center;
  min-height: clamp(170px, 20vh, 260px);
  min-height: clamp(170px, 20svh, 260px);
  padding: 28px max(var(--page-gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background-color: var(--bg);
}
.scenic-hero > .landing-copy,
.scenic-hero > .setup-intro {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin: 0;
  gap: 12px;
}
.scenic-hero.scenic-hero-with-back {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  row-gap: 16px;
  padding-top: 16px;
}
.scenic-hero h1,
.scenic-hero p { margin: 0; }
.banner-layout > .landing-grid,
.banner-layout > .public-step-panel {
  width: min(960px, calc(100% - 2 * var(--setup-content-gutter)));
  margin: 24px auto 0;
}
.banner-layout > .landing-boundary {
  width: min(960px, calc(100% - 2 * var(--setup-content-gutter)));
  margin: 24px auto 0;
}
.scenic-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scenic-backdrop picture,
.scenic-backdrop img { display: block; width: 100%; height: 100%; }
.scenic-backdrop img { object-fit: cover; object-position: center 42%; }
.scenic-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 22, 24, 0.7), rgba(16, 22, 24, 0.76));
}
.scenic-hero h1 { text-shadow: 0 3px 24px rgba(0, 0, 0, 0.3); }
.scenic-woodland .scenic-backdrop img { object-position: center 68%; }
.scenic-desert .scenic-backdrop img { object-position: center 42%; }
.scenic-alpine .scenic-backdrop img { object-position: center 20%; }

@media (max-width: 767px) {
  .public-step-shell { padding-block: 28px 40px; }
  .public-step-panel { gap: 24px; }
  .public-step-panel .public-progress { margin-bottom: 4px; }
  .setup-intro { gap: 12px; }
  .setup-intro h1 { font-size: clamp(1.75rem, 6.5vw, 2.25rem); }
  .public-choice-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .public-choice-card { min-height: 220px; padding: 22px; gap: 16px; border-radius: 16px; }
  .public-choice-card .choice-card-action { padding-top: 14px; }
  .public-step-panel .search-field { flex-basis: auto; }
  .landing-shell.public-center { align-content: start; padding-top: 30px; }
  .landing-grid { gap: 26px; }
  .landing-copy h1 { font-size: clamp(1.875rem, 7vw, 2.5rem); line-height: 1.16; }
  .launch-panel { padding: 18px; gap: 18px; border-radius: 14px; }
  .launch-platform-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .launch-platform { min-height: 94px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 16px; }
  .launch-platform > .platform-glyph { grid-column: 1; grid-row: 1; }
  .launch-platform > .platform-artwork { grid-column: 1; grid-row: 1; width: 94px; }
  .launch-platform-copy { grid-column: 2; grid-row: 1; }
  .launch-arrow { grid-column: 3; grid-row: 1; }
  .launch-platform-copy strong { font-size: 1rem; }
  .launch-platform-copy small { font-size: 0.8125rem; }
  .launch-panel-heading { flex-wrap: wrap; gap: 10px; }
  .landing-boundary { font-size: 0.75rem; margin-top: 20px; }
}

@media (max-width: 360px) {
  .launch-platform { column-gap: 10px; padding: 14px 12px; }
  .launch-platform > .platform-glyph { width: 36px; height: 40px; border-radius: 8px; }
  .launch-arrow { width: 28px; height: 28px; }
}
@media (max-width: 1023px) and (min-height: 561px), (max-width: 560px) and (orientation: portrait) {
  .public-viewer-guide { display: flex; }
  .public-viewer-shell:has(.public-parts-sheet[data-snap="expanded"]) .public-viewer-guide { display: none; }
  .public-parts-sheet[data-snap="collapsed"] {
    height: calc(44px + env(safe-area-inset-bottom, 0px));
    padding: 0;
    border-top: 0;
  }
  .public-parts-sheet[data-snap="collapsed"] .public-parts-content { display: none; }
  .public-viewer-actions { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .primary-button, .text-button, .launch-platform, .public-choice-card { transition: none; }
}
@media (prefers-contrast: more) {
  .scenic-backdrop { display: none; }
  :root { --muted: var(--brand-white); --muted-strong: var(--brand-white); --line: var(--brand-dust); --line-strong: var(--brand-white); }
  .launch-platform, .public-choice-card, .part-slot-row, .part-option,
  .module-position-button, .text-button, .viewer-icon-button,
  .text-input, .select-input, .adjustment-axis input { border-color: var(--brand-dust); }
}
