:root {
  --bg: #efede9;
  --chrome: #fbfaf8;
  --chrome-strong: #101114;
  --panel: #fbfaf8;
  --panel-raised: #ffffff;
  --surface: #f4f1ec;
  --field: #ffffff;
  --ink: #101114;
  --heading: #101114;
  --muted: #66635e;
  --muted-dim: #8c8881;
  --line: #d8d4cd;
  --line-soft: #e5e1da;
  --line-strong: #b9b4ab;
  --accent: #ff4438;
  --accent-light: #ff6a61;
  --accent-soft: #ff4438;
  --green: #6f8d12;
  --red: #d92d20;
  --danger: #d92d20;
  --amber: #b96b11;
  --cyan: #2563c9;
  --shadow-sm: 0 5px 13px rgba(35, 31, 26, 0.08);
  --shadow-md: 0 16px 34px rgba(35, 31, 26, 0.1);
  --shadow-lg: 0 30px 80px rgba(35, 31, 26, 0.15);
  color: var(--ink);
  font-family:
    "Space Grotesk Variable", "Noto Sans KR Variable", "Apple SD Gothic Neo", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(91, 124, 250, 0.38);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  margin: 0;
}

.skip-link {
  background: var(--heading);
  clip-path: inset(50%);
  color: var(--bg);
  height: 1px;
  left: 16px;
  overflow: hidden;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  white-space: nowrap;
  width: 1px;
  z-index: 100;
}

.skip-link:focus-visible {
  clip-path: none;
  height: auto;
  overflow: visible;
  width: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
}

.nav {
  align-items: center;
  background: rgba(14, 16, 21, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(22px, 4vw, 30px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  color: var(--heading);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  gap: 11px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(150deg, var(--accent-light), var(--accent));
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(91, 124, 250, 0.4);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.brand-mark span {
  background: var(--bg);
  border-radius: 999px;
  display: block;
  height: 11px;
  width: 11px;
}

.brand-mark.small {
  border-radius: 8px;
  height: 26px;
  width: 26px;
}

.brand-mark.small span {
  height: 8px;
  width: 8px;
}

.brand-badge {
  background: #1a1e27;
  border: 1px solid #262b36;
  border-radius: 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 3px 7px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 2px;
  margin-left: 14px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions,
.hero-actions,
.recorder-panel-actions,
.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-menu {
  position: relative;
}

.language-menu > summary {
  align-items: center;
  background: var(--panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #c7cad3;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  user-select: none;
}

.language-menu > summary::-webkit-details-marker {
  display: none;
}

.language-menu > summary::marker {
  content: "";
}

.language-menu[open] > summary,
.language-menu > summary:hover {
  background: #1d212b;
  border-color: #384052;
  color: var(--ink);
}

.language-options {
  background: #12151c;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 3px;
  min-width: 176px;
  padding: 7px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
}

.language-options button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  width: 100%;
}

.language-options button[aria-current="true"] {
  background: rgba(91, 124, 250, 0.16);
  color: var(--heading);
}

.button,
button {
  align-items: center;
  background: var(--panel-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: none;
  color: #c7cad3;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  min-width: 0;
  padding: 0 15px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    opacity 140ms ease,
    transform 140ms ease;
}

.button:hover,
button:hover:not(:disabled) {
  background: #1d212b;
  border-color: #384052;
  color: var(--ink);
}

.button:active,
button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  color: #565c68;
  cursor: not-allowed;
  opacity: 0.58;
}

.button.primary,
button.primary,
.button.purple,
button.purple {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: #ffffff;
}

.button.primary:hover,
button.primary:hover:not(:disabled),
.button.purple:hover,
button.purple:hover:not(:disabled) {
  background: #6c87f7;
  border-color: var(--accent-light);
  color: #ffffff;
}

.button.dark,
button.dark {
  background: #15211c;
  border-color: #235641;
  color: #5de0a6;
}

.button.dark:hover,
button.dark:hover:not(:disabled) {
  background: #193126;
  border-color: #2e7354;
  color: #7bf0bd;
}

button.danger,
.button.danger {
  background: #241619;
  border-color: #3a2a2e;
  color: var(--danger);
}

.button.large,
button.large {
  font-size: 15px;
  min-height: 50px;
  padding: 0 26px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(91, 124, 250, 0.48);
  outline-offset: 2px;
}

input,
textarea {
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
  min-width: 0;
  padding: 10px 12px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #565c68;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #262b36;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  height: 5px;
  min-height: 5px;
  padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(91, 124, 250, 0.55);
  cursor: pointer;
  height: 16px;
  width: 16px;
}

input[type="range"]::-moz-range-thumb {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(91, 124, 250, 0.55);
  cursor: pointer;
  height: 16px;
  width: 16px;
}

@keyframes rec-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 124, 250, 0.5);
  }
  100% {
    box-shadow: 0 0 0 15px rgba(91, 124, 250, 0);
  }
}

.home-page {
  overflow: hidden;
}

.home-hero,
.recorder-workbench,
.studio-preview,
.feature-section,
.pricing-section,
.dashboard,
.auth-layout,
.legal-page,
.not-found {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(46px, 7vw, 76px) clamp(20px, 4vw, 30px);
}

.home-hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 54px);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: auto;
  padding-bottom: 40px;
  padding-top: 64px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-chip {
  align-items: center;
  background: var(--panel);
  border: 1px solid #262b36;
  border-radius: 999px;
  color: #c7cad3;
  display: inline-flex;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  gap: 8px;
  letter-spacing: 0;
  margin-bottom: 26px;
  padding: 6px 13px;
}

.hero-chip span,
.record-dot,
.recording-pill i {
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 0 8px var(--red);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.record-dot,
.recording-pill i {
  animation: rec-pulse 1s infinite;
}

.hero-copy h1,
.dashboard h1,
.auth-card h1 {
  color: var(--heading);
  font-size: clamp(46px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 22px;
}

.hero-copy mark {
  background: transparent;
  color: var(--accent-light);
}

.hero-copy p:not(.mono-note),
.dashboard-lead,
.section-heading > p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 560px;
}

.mono-note {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  margin: 22px 0 0;
}

.hero-demo {
  position: relative;
}

.browser-preview {
  background: var(--chrome);
  border: 1px solid #20242e;
  border-radius: 16px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(91, 124, 250, 0.05);
  overflow: hidden;
}

.browser-preview-bar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid #20242e;
  display: flex;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
}

.window-dot {
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.window-dot.red {
  background: var(--red);
}

.window-dot.amber {
  background: var(--amber);
}

.window-dot.lime {
  background: var(--green);
}

.address {
  align-items: center;
  background: var(--bg);
  border: 1px solid #262b36;
  border-radius: 6px;
  color: #7a8090;
  display: flex;
  flex: 1 1 220px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  height: 20px;
  margin-left: 8px;
  max-width: 240px;
  min-width: 0;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-pill {
  align-items: center;
  color: var(--red);
  display: inline-flex;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  gap: 5px;
  margin-left: auto;
}

.mock-product {
  background: #f4f6fb;
  height: 318px;
  overflow: hidden;
  position: relative;
}

.mock-topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f0;
  color: #1b2230;
  display: flex;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
}

.mock-logo {
  background: #2c5bff;
  border-radius: 5px;
  height: 18px;
  width: 18px;
}

.mock-avatar {
  background: #ffd27a;
  border-radius: 999px;
  height: 24px;
  margin-left: auto;
  width: 24px;
}

.mock-body {
  padding: 16px;
}

.mock-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
}

.mock-title-row strong {
  color: #1b2230;
  font-size: 16px;
}

.mock-title-row button,
.mini-title button {
  background: #2c5bff;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  min-height: 30px;
  padding: 0 12px;
}

.hotspot-ring,
.hotspot {
  animation: ring-pulse 1.6s ease-out infinite;
  background: rgba(91, 124, 250, 0.16);
  border: 2px solid var(--accent-light);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(91, 124, 250, 0.5);
}

.hotspot-ring {
  height: 62px;
  position: absolute;
  right: 8px;
  top: -17px;
  width: 62px;
}

.mock-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.mock-kpis span {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 9px;
  display: block;
  padding: 11px;
}

.mock-kpis small {
  color: #8a91a0;
  display: block;
  font-size: 9px;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mock-kpis strong {
  color: #1b2230;
  display: block;
  font-size: 19px;
}

.mock-activity {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 9px;
  display: grid;
  gap: 12px;
  height: 96px;
  padding: 16px;
}

.mock-activity span {
  background: #eef1f8;
  border-radius: 999px;
  height: 10px;
}

.mock-activity span:nth-child(2) {
  width: 78%;
}

.mock-activity span:nth-child(3) {
  width: 58%;
}

.demo-callout,
.stage-callout {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  color: #e7e9ef;
  display: grid;
  line-height: 1.3;
  padding: 10px 13px;
}

.demo-callout {
  bottom: 16px;
  max-width: 230px;
  position: absolute;
  right: 16px;
}

.demo-callout strong {
  font-size: 12px;
}

.demo-callout span {
  color: var(--accent-soft);
  font-size: 11px;
}

.render-tag {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  bottom: -20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  color: #c7cad3;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  left: -20px;
  padding: 8px 12px;
  position: absolute;
}

.preview-label {
  background: rgba(91, 124, 250, 0.12);
  border: 1px solid rgba(126, 151, 255, 0.32);
  border-radius: 6px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
}

.proof-strip {
  background: var(--chrome);
  border-bottom: 1px solid #1a1e26;
  border-top: 1px solid #1a1e26;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  gap: 30px;
  justify-content: space-between;
  padding: 17px clamp(20px, 6vw, 80px);
}

.proof-strip strong {
  color: var(--accent-light);
  font-weight: 600;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  color: var(--heading);
  font-size: clamp(34px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 760px;
}

.kicker {
  color: var(--accent-light);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.recorder-panel {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(190px, 0.56fr) minmax(420px, 1fr);
  margin: 16px 0 24px;
  padding: 14px 16px;
}

.recorder-panel[data-recorder-state="connected"] {
  border-color: rgba(52, 211, 153, 0.34);
}

.recorder-panel[data-recorder-state="missing"],
.recorder-panel[data-recorder-state="error"] {
  border-color: rgba(255, 92, 92, 0.42);
}

.recorder-panel[data-recorder-state="recording"],
.recorder-panel[data-recorder-state="starting"] {
  border-color: rgba(91, 124, 250, 0.5);
}

.recorder-panel-copy h3,
.recorder-panel-copy h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  margin: 0;
}

.recorder-panel-copy p:not(.kicker) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.recorder-panel-controls {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(250px, 1fr) auto;
}

.recorder-panel-controls label,
.inspector label {
  display: grid;
  gap: 7px;
}

.recorder-panel-controls label span,
.inspector label span,
.target-block small,
.viewport-block small,
.recorder-metrics small {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recorder-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 360px minmax(0, 1fr);
}

.recorder-popover,
.project-stack-preview {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.recorder-popover header {
  align-items: center;
  background: var(--surface-soft, #111319);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  gap: 10px;
  padding: 13px 15px;
}

.recorder-popover header div {
  display: grid;
  flex: 1;
}

.recorder-popover header small,
.target-block small,
.viewport-block small,
.recorder-metrics small {
  display: block;
}

.recorder-popover header small {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0;
}

.recorder-popover header em {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.target-block,
.viewport-block,
.recorder-metrics {
  border-bottom: 1px solid #1a1e26;
  padding: 13px 15px;
}

.target-block strong {
  color: var(--accent-light);
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewport-block > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.viewport-block strong {
  color: #c7cad3;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}

.viewport-options {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
}

.viewport-options button {
  align-items: flex-start;
  display: grid;
  font-size: 12px;
  justify-content: stretch;
  min-height: 56px;
  padding: 8px 10px;
  text-align: left;
}

.viewport-options button span {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  opacity: 0.7;
}

.viewport-options button.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(91, 124, 250, 0.25);
  color: #ffffff;
}

.recorder-metrics {
  border-bottom: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, 1fr);
}

.recorder-metrics span {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.recorder-metrics strong {
  color: var(--ink);
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.recorder-metrics span:nth-child(2) strong {
  color: var(--accent-light);
}

.recorder-metrics span:nth-child(4) strong {
  color: var(--green);
  font-size: 16px;
  margin-top: 4px;
}

.projects-header {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.projects-header.compact {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
  padding: 18px;
}

.projects-header h3,
.projects-header h1 {
  color: var(--heading);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
  margin: 0;
}

.projects-header p:not(.kicker) {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.project-stack {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.project-card,
.project-row,
.token-row,
.job-row {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: none;
  display: grid;
  gap: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 94px;
  overflow: hidden;
}

.project-count {
  align-items: center;
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-count strong {
  color: var(--accent-light);
  font-size: 30px;
  line-height: 1;
}

.project-card.blue .project-count strong {
  color: var(--green);
}

.project-count span,
.project-tags span,
.panel-heading,
.timeline-meta,
.scene-item small,
.summary-row {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.project-count span {
  color: var(--muted-dim);
  font-size: 9px;
  letter-spacing: 0;
}

.project-card-main {
  min-width: 0;
  padding: 18px 22px;
}

.project-card-title {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}

.project-card-title h4,
.project-card-title h2 {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-title span,
.step-type-tag {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 6px;
  color: #8a90a0;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  padding: 3px 9px;
}

.studio-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  min-height: 620px;
  overflow: hidden;
}

.scene-rail,
.inspector,
.stage-column {
  min-width: 0;
}

.scene-rail,
.inspector {
  background: var(--chrome);
}

.scene-rail {
  border-right: 1px solid var(--line);
}

.inspector {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.panel-heading {
  align-items: center;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  padding: 14px 16px;
}

.panel-heading strong {
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
}

.inspector-heading strong {
  background: rgba(91, 124, 250, 0.12);
  border: 1px solid rgba(91, 124, 250, 0.28);
  border-radius: 999px;
  color: var(--accent-light);
  padding: 3px 9px;
}

.inspector label {
  padding: 0 16px;
}

.inspector textarea {
  min-height: 90px;
}

.step-stats {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
}

.step-stats span {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 999px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  padding: 2px 9px;
}

.scene-list {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.scene-item {
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  display: grid;
  gap: 11px;
  grid-template-columns: 56px minmax(0, 1fr);
  height: auto;
  justify-content: stretch;
  justify-items: stretch;
  min-height: 66px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.scene-item.selected {
  background: #181c29;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scene-thumb {
  align-items: center;
  background: var(--bg);
  border: 1px solid #23262f;
  border-radius: 7px;
  color: #c7cad3;
  display: flex;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  width: 56px;
}

.scene-item strong,
.scene-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.scene-item small {
  color: var(--muted-dim);
  font-size: 10px;
  margin-top: 3px;
}

.stage-column {
  background: var(--bg);
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) 124px;
}

.stage-toolbar {
  align-items: center;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 0 16px;
}

.icon-button {
  min-width: 34px;
  padding: 0;
}

.status {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 26px;
}

.screenshot-frame {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid #23262f;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  max-width: 760px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.mini-app {
  background: #f4f6fb;
  color: #1b2230;
  display: grid;
  grid-template-rows: 46px 1fr;
  height: 100%;
}

.mini-app-top {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f0;
  display: flex;
  gap: 12px;
  padding: 0 16px;
}

.mini-app-top > span {
  background: #2c5bff;
  border-radius: 6px;
  height: 22px;
  width: 22px;
}

.mini-app-top em {
  color: #8a91a0;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-style: normal;
  margin-left: auto;
}

.mini-app-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 0;
}

.mini-app nav {
  align-content: start;
  background: #ffffff;
  border-right: 1px solid #e6e9f0;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.mini-app nav span {
  border-radius: 6px;
  color: #7a8295;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
}

.mini-app nav .active {
  background: #eef1f8;
  color: #1b2230;
}

.mini-app main {
  padding: 18px;
}

.mini-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-title strong {
  font-size: 19px;
}

.mini-title button {
  font-size: 12px;
  min-height: 34px;
}

.mini-card-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.mini-card-row span {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  height: 78px;
}

.mini-table {
  background: #ffffff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mini-table span {
  background: #eef1f8;
  border-radius: 999px;
  height: 10px;
}

.mini-table span:nth-child(2) {
  width: 78%;
}

.mini-table span:nth-child(3) {
  width: 64%;
}

.mini-table span:nth-child(4) {
  width: 42%;
}

.hotspot {
  height: 72px;
  left: 50%;
  position: absolute;
  top: 30%;
  transform: translate(-50%, -50%);
  width: 72px;
  z-index: 8;
}

.stage-callout {
  font-size: 13px;
  font-weight: 700;
  left: 50%;
  max-width: 240px;
  position: absolute;
  top: 30%;
  transform: translate(18px, 18px);
  z-index: 9;
}

.timeline {
  background: var(--chrome);
  border-top: 1px solid var(--line);
  padding: 11px 16px;
}

.timeline-meta {
  color: var(--muted-dim);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-bottom: 9px;
}

.timeline-meta strong {
  color: var(--muted);
  font-weight: 500;
}

.clips {
  display: flex;
  gap: 5px;
  height: 48px;
}

.clips button {
  align-items: stretch;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--muted);
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 7px;
}

.clips button.selected {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 4px 14px rgba(91, 124, 250, 0.3);
  color: #ffffff;
}

.clips strong,
.clips span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clips strong {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.clips span {
  font-size: 10px;
}

.feature-ledger {
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.feature-ledger article {
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: clamp(24px, 6vw, 90px);
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  padding: 28px 0 30px;
}

.feature-ledger article:last-child {
  border-bottom: 0;
}

.feature-ledger span {
  color: var(--accent-light);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-ledger h3 {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.feature-ledger p {
  color: #8a90a0;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

.pricing-section {
  align-items: end;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.pricing-copy h2 {
  color: var(--heading);
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0 0 18px;
}

.pricing-copy > p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
}

.pricing-includes {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
}

.pricing-includes strong {
  color: var(--heading);
}

.pricing-includes ul {
  color: var(--muted);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.pricing-includes li::before {
  color: var(--green);
  content: "✓";
  margin-right: 9px;
}

.pricing-section > .button {
  grid-column: 2;
  justify-self: start;
}

.final-cta {
  align-items: center;
  background: #536fe1;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(5, 9, 20, 0.42);
  color: #ffffff;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 20px auto 80px;
  max-width: calc(1180px - clamp(40px, 8vw, 60px));
  overflow: hidden;
  padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 44px);
}

.final-cta h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.final-cta .button {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.grid {
  display: grid;
  gap: 14px;
}

.dashboard section,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.dashboard section {
  margin-top: 22px;
  padding: 22px;
}

.dashboard h2 {
  color: var(--ink);
  margin: 0 0 14px;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  padding: 24px;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state p {
  margin: 7px 0 14px;
}

.connection-key {
  background: #101722;
  border: 1px solid #26354d;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 16px;
}

.connection-status {
  border-left: 3px solid var(--line-strong);
  margin: 14px 0 18px;
  padding: 8px 12px;
}

.connection-status[data-state="connected"] {
  border-left-color: var(--green);
  color: var(--green);
}

.connection-status[data-state="error"],
.connection-status[data-state="missing"] {
  border-left-color: var(--danger);
  color: var(--danger);
}

.dashboard-hero {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.dashboard-hero .dashboard-lead {
  margin-bottom: 0;
}

.dashboard-stats {
  border-bottom: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.dashboard-stats span {
  display: grid;
  gap: 3px;
  padding: 18px 20px;
}

.dashboard-stats span + span {
  border-left: 1px solid var(--line-soft);
}

.dashboard-stats strong {
  color: var(--heading);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.dashboard-stats small {
  color: var(--muted);
}

.workspace-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workspace-heading h2 {
  font-size: 26px;
  margin-bottom: 0;
}

.workspace-tabs {
  display: flex;
  gap: 6px;
}

.workspace-tabs a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 10px;
}

.workspace-tabs a[aria-current="page"] {
  background: var(--panel-raised);
  border-color: var(--line-strong);
  color: var(--ink);
}

.workspace-tabs span {
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.project-toolbar {
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.35fr) auto auto;
  margin-bottom: 14px;
  padding: 12px;
}

.project-toolbar label {
  display: grid;
  gap: 6px;
}

.project-toolbar label > span {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 600;
}

.project-toolbar select {
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  min-height: 40px;
  padding: 0 12px;
}

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

.dashboard-project-card {
  background: #11141b;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.dashboard-project-card:hover {
  background: #131720;
  border-color: #343b4a;
  transform: translateY(-1px);
}

.dashboard-project-card.is-archived {
  opacity: 0.78;
}

.project-card-header,
.project-title-line,
.project-actions,
.render-activity-row,
.render-activity-row > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.project-card-header {
  align-items: start;
  justify-content: space-between;
}

.project-title-line {
  flex-wrap: wrap;
}

.project-title-line h3 {
  color: var(--heading);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}

.project-source {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
  max-width: 680px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-badge,
.render-status {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
}

.render-status.completed {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.status-badge.published {
  background: rgba(91, 124, 250, 0.1);
  border-color: rgba(126, 151, 255, 0.35);
  color: var(--accent-soft);
}

.render-status.queued,
.render-status.running {
  background: rgba(91, 124, 250, 0.1);
  border-color: rgba(126, 151, 255, 0.35);
  color: var(--accent-soft);
}

.render-status.failed {
  background: rgba(255, 122, 116, 0.08);
  border-color: rgba(255, 122, 116, 0.35);
  color: var(--danger);
}

.project-facts {
  display: grid;
  gap: 0;
  grid-template-columns: 90px 90px minmax(150px, 0.5fr) minmax(150px, 1fr);
  margin: 18px 0;
}

.project-facts > div {
  border-left: 1px solid var(--line-soft);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 14px;
}

.project-facts > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.project-facts dt {
  color: var(--muted-dim);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.project-facts dd {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-actions {
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  padding-top: 14px;
}

.project-actions form:last-child {
  margin-left: auto;
}

.inline-error {
  background: rgba(255, 122, 116, 0.07);
  border-left: 3px solid var(--danger);
  color: #ffaaa5;
  font-size: 12px;
  line-height: 1.55;
  padding: 10px 12px;
}

.dashboard-empty {
  min-height: 180px;
}

.render-activity-list,
.connection-list {
  display: grid;
  gap: 8px;
}

.render-activity-row,
.token-row {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.render-activity-row time {
  color: var(--muted-dim);
  font-size: 12px;
  margin-left: auto;
}

.connection-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.connection-panel summary::-webkit-details-marker {
  display: none;
}

.connection-panel summary > span:first-child {
  display: grid;
  gap: 3px;
}

.connection-panel summary > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.connection-panel[open] summary {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.project-row,
.token-row,
.job-row {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 16px;
}

.muted {
  color: var(--muted);
}

code {
  background: var(--panel-raised);
  border: 1px solid #262b36;
  border-radius: 6px;
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 2px 6px;
}

.auth-layout {
  align-items: center;
  display: grid;
  gap: clamp(42px, 8vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  min-height: calc(100dvh - 66px);
}

.auth-intro h1,
.legal-page h1,
.not-found h1 {
  color: var(--heading);
  font-size: clamp(42px, 6vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 22px;
}

.auth-intro > p:not(.kicker),
.not-found > p:not(.kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 540px;
}

.auth-steps,
.auth-benefits {
  color: var(--muted);
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.auth-steps li,
.auth-benefits li {
  align-items: center;
  display: flex;
  gap: 13px;
}

.auth-steps span {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.auth-benefits li::before {
  color: var(--green);
  content: "✓";
}

.auth-card {
  max-width: none;
  padding: clamp(28px, 4vw, 42px);
  width: 100%;
}

.auth-heading {
  margin: 34px 0 26px;
}

.auth-heading h2 {
  color: var(--heading);
  font-size: 30px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}

.auth-heading > p:last-child,
.auth-switch,
.auth-consent {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.auth-switch,
.auth-consent {
  font-size: 13px;
  margin-top: 18px;
}

.auth-switch a,
.auth-consent a,
.back-link,
.site-footer a {
  color: var(--accent-soft);
}

.auth-submit {
  margin-top: 8px;
  min-height: 48px;
  width: 100%;
}

.social-login-form {
  margin-bottom: 18px;
}

.social-login-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6d9df;
  border-radius: 10px;
  color: #202124;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  gap: 11px;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.social-login-button:hover {
  border-color: #aeb4bf;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.social-login-button:focus-visible {
  outline: 3px solid rgba(126, 151, 255, 0.45);
  outline-offset: 2px;
}

.auth-divider {
  align-items: center;
  color: var(--muted-dim);
  display: grid;
  font-size: 11px;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 0 18px;
}

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

.profile-page {
  min-height: calc(100dvh - 66px);
  padding: clamp(46px, 7vw, 88px) 0 100px;
}

.profile-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.profile-heading h1 {
  color: var(--heading);
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 14px;
}

.profile-heading p:not(.kicker),
.profile-section-heading p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.profile-panel {
  align-content: start;
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
}

.profile-section-heading {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.profile-section-heading > span {
  color: var(--accent-soft);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  padding-top: 6px;
}

.profile-section-heading h2 {
  color: var(--heading);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 7px;
}

.profile-submit {
  justify-self: start;
  margin-top: 6px;
  min-height: 44px;
}

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

.form-stack > div {
  display: grid;
  gap: 7px;
}

.form-stack label {
  color: var(--muted-dim);
  font-size: 12px;
  font-weight: 600;
}

.field-help,
.field-errors,
.form-errors {
  font-size: 12px;
  line-height: 1.5;
}

.field-help,
.field-help ul {
  color: var(--muted-dim);
  margin: 0;
  padding-left: 16px;
}

.field-errors,
.form-errors,
.has-error label {
  color: var(--danger);
}

.field-errors ul,
.form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.has-error input {
  border-color: rgba(255, 122, 116, 0.7);
}

.messages {
  left: 50%;
  max-width: min(620px, calc(100% - 32px));
  position: fixed;
  top: 78px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 60;
}

.message {
  background: #15211c;
  border: 1px solid #2e7354;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  color: #7bf0bd;
  margin: 0;
  padding: 12px 15px;
}

.legal-page,
.not-found {
  min-height: 68dvh;
}

.legal-page {
  max-width: 880px;
}

.legal-page h1,
.not-found h1 {
  margin-top: 34px;
}

.legal-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.legal-page section {
  border-top: 1px solid var(--line-soft);
  margin-top: 34px;
  padding-top: 24px;
}

.legal-page h2 {
  color: var(--ink);
}

.legal-page section p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  display: grid;
  gap: 16px 28px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 30px clamp(20px, 4vw, 30px) 38px;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.footer-brand {
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.management-actions,
.analytics-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.management-actions form {
  display: flex;
  gap: 8px;
  grid-column: span 2;
}

.management-actions label,
.stack-form label,
.embed-snippet {
  display: grid;
  gap: 7px;
  font: 700 11px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.management-actions input { min-width: 0; width: 100%; }

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

.stack-form textarea,
.embed-snippet textarea {
  min-height: 94px;
  resize: vertical;
}

.analytics-detail > div {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  gap: 7px;
}

.analytics-detail span,
.management-list small {
  color: var(--muted);
  font: 700 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.analytics-detail strong { font-size: 24px; }

.management-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.management-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.management-list > div > span { display: grid; gap: 4px; }
.embed-snippet { margin-top: 18px; }
.settings-section { margin-top: 34px; }
.voice-settings {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr) minmax(240px, 1fr);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.voice-settings label { display: grid; gap: 7px; }
.voice-settings label > span { font: 700 11px/1.2 "JetBrains Mono Variable", monospace; letter-spacing: .06em; text-transform: uppercase; }
.voice-settings small { color: var(--muted); line-height: 1.4; }
.voice-character {
  min-height: 2.8em;
  padding: 10px 12px;
  border: 1px solid #d8d3ca;
  border-radius: 8px;
  background: #f4f1ec;
  color: #3f3d39;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.voice-settings .voice-toggle { align-content: center; display: flex; min-height: 44px; }
.voice-sample { grid-column: 1 / -1; display: grid; gap: 8px; }
.voice-sample audio { width: 100%; }
.narration-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.narration-progress { min-height: 22px; margin-top: 12px; color: var(--muted); font: 700 11px/1.5 "JetBrains Mono Variable", monospace; }
.narration-progress[data-state="error"] { color: var(--coral); }
.management-status { position: sticky; bottom: 16px; min-height: 20px; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.management-status:empty { display: none; }
.management-status[data-state="error"] { background: var(--coral); }

@media (max-width: 820px) {
  .management-actions,
  .analytics-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-settings { grid-template-columns: 1fr; }
  .voice-sample { grid-column: auto; }
}

@media (max-width: 560px) {
  .management-actions,
  .analytics-detail { grid-template-columns: 1fr; }
  .management-actions form { grid-column: auto; flex-direction: column; }
}

@media (max-width: 1080px) {
  .home-hero,
  .recorder-grid,
  .studio-frame {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .studio-frame {
    min-height: 0;
  }

  .scene-rail,
  .inspector {
    border-left: 0;
    border-right: 0;
  }

  .scene-rail {
    border-bottom: 1px solid var(--line);
  }

  .inspector {
    border-top: 1px solid var(--line);
  }

  .recorder-popover {
    max-width: 420px;
  }

  .auth-layout,
  .pricing-section {
    grid-template-columns: 1fr;
  }

  .pricing-section > .button {
    grid-column: auto;
  }

  .project-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) auto;
  }

  .project-toolbar > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .nav-links {
    flex: 1 0 100%;
    flex-wrap: wrap;
    margin-left: 0;
    order: 3;
  }

  .home-hero,
  .recorder-workbench,
  .studio-preview,
  .feature-section,
  .pricing-section,
  .dashboard,
  .auth-layout,
  .profile-page,
  .legal-page,
  .not-found {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-heading {
    align-items: start;
    flex-direction: column;
  }

  .home-hero {
    padding-top: 42px;
  }

  .hero-actions,
  .recorder-panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .recorder-panel-actions .button,
  .recorder-panel-actions button {
    width: 100%;
  }

  .recorder-panel,
  .recorder-panel-controls {
    grid-template-columns: 1fr;
  }

  .mock-product {
    height: 300px;
  }

  .address {
    display: none;
  }

  .project-card,
  .project-row,
  .token-row,
  .job-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .project-row,
  .token-row,
  .job-row {
    grid-template-columns: 1fr;
  }

  .project-tags span:nth-child(n + 3) {
    display: none;
  }

  .stage-column {
    grid-template-rows: auto minmax(300px, 1fr) auto;
  }

  .stage-toolbar,
  .timeline-meta,
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-stage {
    padding: 18px;
  }

  .mini-app-body {
    grid-template-columns: 1fr;
  }

  .mini-app nav {
    display: none;
  }

  .feature-ledger article {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .workspace-heading,
  .project-card-header,
  .render-activity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-toolbar > .button {
    grid-column: auto;
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 14px;
  }

  .project-facts > div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .render-activity-row time {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .hero-copy h1,
  .dashboard h1,
  .auth-card h1 {
    font-size: 42px;
  }

  .auth-intro h1,
  .legal-page h1,
  .not-found h1 {
    font-size: 38px;
  }

  .nav-actions {
    gap: 6px;
  }

  .language-current {
    display: none;
  }

  .nav-actions .button,
  .nav-actions button {
    font-size: 12px;
    min-height: 34px;
    padding: 0 10px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stats span + span {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .workspace-tabs {
    width: 100%;
  }

  .workspace-tabs a {
    flex: 1;
    text-align: center;
  }

  .project-actions,
  .project-actions form,
  .project-actions .button,
  .project-actions button {
    width: 100%;
  }

  .project-actions form:last-child {
    margin-left: 0;
  }

  .mock-kpis {
    grid-template-columns: 1fr;
  }

  .mock-kpis span:nth-child(n + 2) {
    display: none;
  }

  .recorder-metrics,
  .viewport-options,
  .mini-card-row {
    grid-template-columns: 1fr;
  }

  .project-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .clips {
    overflow-x: auto;
  }

  .clips button {
    flex-basis: 84px;
    flex-grow: 0;
  }
}

/* Design2 editorial light skin */
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(201, 242, 77, 0.14), transparent 26rem),
    var(--bg);
  color: var(--ink);
}

.nav {
  background: rgba(251, 250, 248, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark {
  background: var(--accent);
  border: 1px solid #101114;
  border-radius: 2px;
  box-shadow: 3px 3px 0 #101114;
}

.brand-mark span { background: #fbfaf8; border-radius: 0; }
.brand-badge,
.hero-chip,
.status-badge,
.render-status {
  border-radius: 2px;
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.language-menu > summary,
.language-options,
.button,
button,
input,
select,
textarea,
.workspace-panel,
.dashboard-project-card,
.auth-card,
.recorder-panel,
.recorder-popover,
.project-stack-preview {
  background: var(--panel-raised);
  border-color: var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
}

.button:hover,
button:hover { border-color: #101114; color: #101114; transform: translateY(-1px); }
.button:active,
button:active { transform: translateY(1px); }
.button.primary,
button.primary {
  background: var(--accent);
  border-color: #101114;
  box-shadow: 3px 3px 0 #101114;
  color: #fff;
}
.button.primary:hover,
button.primary:hover { background: #ee382f; color: #fff; box-shadow: 1px 1px 0 #101114; }

.kicker,
.mono-note,
.project-facts dt,
.render-tag,
.proof-strip,
.eyebrow {
  color: var(--muted);
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1,
.dashboard h1,
.auth-card h1,
.profile-page h1,
.legal-page h1,
.not-found h1 {
  color: #101114;
  font-family: "Space Grotesk Variable", "Noto Sans KR Variable", sans-serif;
  font-weight: 690;
  letter-spacing: -.055em;
  line-height: .94;
  text-wrap: balance;
}

.home-hero {
  min-height: min(820px, calc(100dvh - 66px));
  padding-bottom: clamp(80px, 10vw, 150px);
  padding-top: clamp(68px, 9vw, 132px);
}

.hero-demo,
.browser-preview,
.studio-frame {
  border-color: #101114;
  border-radius: 4px;
  box-shadow: 10px 10px 0 rgba(16, 17, 20, .9);
}

.browser-preview-bar,
.stage-toolbar,
.panel-heading,
.workspace-heading,
.project-card-header {
  background: #f4f1ec;
  border-color: var(--line);
  color: var(--ink);
}

.proof-strip {
  background: #101114;
  color: #fbfaf8;
}

.proof-strip strong { color: #c9f24d; }

.dashboard,
.profile-page,
.legal-page,
.auth-page,
.not-found {
  margin-inline: auto;
  max-width: 1440px;
}

.dashboard-stats,
.workspace-panel,
.profile-panel {
  box-shadow: none;
}

.dashboard-stats {
  background: #101114;
  border-radius: 4px;
  color: #fbfaf8;
}

.dashboard-stats strong { color: #c9f24d; font-family: "JetBrains Mono Variable", monospace; }
.dashboard-stats small { color: #c9c6bf; }
.dashboard-project-card { border-left: 5px solid var(--accent); box-shadow: 0 12px 30px rgba(35,31,26,.06); }
.dashboard-project-card:nth-child(3n + 2) { border-left-color: #2563c9; }
.dashboard-project-card:nth-child(3n) { border-left-color: #c9f24d; }
.project-source,
.muted,
.dashboard-lead,
.field-help { color: var(--muted); }

.site-footer {
  background: #101114;
  border-top: 0;
  color: #f2efe9;
}

.site-footer p,
.site-footer small { color: #aaa69e; }

:focus-visible { outline: 3px solid #2563c9; outline-offset: 3px; }

.management-tabs {
  display: flex;
  gap: 0;
  margin: 28px 0 0;
  overflow-x: auto;
}
.management-tabs a {
  border: 1px solid var(--line-strong);
  border-right: 0;
  font-family: "JetBrains Mono Variable", monospace;
  font-size: 12px;
  padding: 12px 18px;
  text-transform: uppercase;
}
.management-tabs a:last-child { border-right: 1px solid var(--line-strong); }
.management-tabs a[aria-current="page"] { background: #101114; color: #fff; }
.management-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); }
.metric-ledger { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--line); border: 1px solid var(--line); }
.metric-ledger > div { background: #fff; padding: 22px; }
.metric-ledger strong { display: block; font: 650 30px/1 "JetBrains Mono Variable", monospace; }
.activity-list { display: grid; gap: 0; }
.activity-list li { border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding: 13px 0; }

@media (max-width: 980px) {
  .management-grid { grid-template-columns: 1fr; }
  .metric-ledger { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Design2 fidelity correction — measured from docs/design2/VibeDemo Screens.dc.html */
body {
  background: #efede9;
  color: #101114;
}

.shell { background: #f6f4f0; }

.nav {
  min-height: 72px;
  padding: 16px 48px;
  background: rgba(246, 244, 240, .96);
  border-bottom: 1px solid #e3dfd8;
  backdrop-filter: blur(14px);
}

.brand { color: #101114; font-size: 17px; gap: 10px; }
.brand-mark,
.brand-mark.small {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background: url("./favicon.png?v=vd-border-edge-fill") center / contain no-repeat;
}
.brand-mark span,
.brand-mark.small span { display: none; }
.brand-badge { background: transparent; border: 1px solid #d8d4cd; border-radius: 4px; color: #66635e; }

.nav-links { gap: 2px; margin-left: 24px; margin-right: auto; }
.nav-links a { padding: 8px 12px; color: #5c5a56; font-size: 14px; font-weight: 400; }
.nav-actions { gap: 10px; }
.language-menu > summary {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #e3dfd8;
  border-radius: 8px;
  background: transparent;
  color: #5c5a56;
}
.language-menu[open] > summary,
.language-menu > summary:hover { background: #fff; border-color: #cfcabf; color: #101114; }
.language-options { background: #fff; border-color: #e1ddd6; border-radius: 10px; box-shadow: 0 16px 40px rgba(28,26,22,.12); }

.button,
button,
input,
select,
textarea {
  border-color: #cfcabf;
  border-radius: 9px;
  background: #fff;
  color: #101114;
}
.button:hover,
button:hover:not(:disabled) { background: #f4f1ec; border-color: #101114; color: #101114; transform: none; }
.button.primary,
button.primary,
.button.purple,
button.purple {
  border-color: #101114;
  border-radius: 9px;
  background: #101114;
  box-shadow: none;
  color: #f6f4f0;
}
.button.primary:hover,
button.primary:hover:not(:disabled),
.button.purple:hover,
button.purple:hover:not(:disabled) { background: #292a2d; border-color: #292a2d; box-shadow: none; }
.button.dark,
button.dark { background: #ff4438; border-color: #ff4438; color: #fff; }
.button.dark:hover,
button.dark:hover:not(:disabled) { background: #ea392f; border-color: #ea392f; color: #fff; }
button.danger,
.button.danger { background: transparent; border-color: #dfd9d0; color: #9b4a43; }

.home-hero,
.recorder-workbench,
.studio-preview,
.feature-section,
.pricing-section,
.dashboard,
.profile-page,
.legal-page,
.not-found { max-width: 1440px; }

.home-hero {
  min-height: 630px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  padding: 76px 48px 68px;
}
.hero-chip { padding: 7px 12px; border: 0; border-radius: 999px; background: #ede9e1; color: #5c5a56; }
.hero-chip > span { display: none; }
.hero-copy h1 {
  max-width: 620px;
  margin: 24px 0 26px;
  color: #101114;
  font-size: clamp(48px, 4.2vw, 60px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.04;
}
.hero-copy p:not(.mono-note) { margin-bottom: 26px; max-width: 510px; color: #5c5a56; font-size: 17px; line-height: 1.65; }
.hero-actions { gap: 12px; }
.hero-actions .button { min-height: 52px; padding-inline: 24px; }
.mono-note { margin-top: 28px; color: #8b857c; font-family: "JetBrains Mono Variable", monospace; letter-spacing: .03em; }

.hero-demo { box-shadow: none; }
.browser-preview {
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #e4e1db;
  box-shadow: 0 30px 60px rgba(16,17,20,.25);
}
.browser-preview-bar { height: 42px; padding: 0 8px 10px; border: 0; background: transparent; }
.window-dot { width: 9px; height: 9px; background: #cfcbc3 !important; }
.address { height: 24px; max-width: none; border: 0; border-radius: 6px; background: #191c21; color: #6e747b; }
.recording-pill { padding: 5px 9px; border-radius: 5px; background: #ff4438; color: #fff; }
.mock-product { height: 352px; border-radius: 8px; background: #f2f1ee; }
.mock-topbar { background: #e7e4de; }
.mock-title-row button,
.mini-title button { background: #101114; }
.hotspot-ring,
.hotspot { border-color: #ff4438; background: rgba(255,68,56,.16); box-shadow: none; }
.demo-callout,
.stage-callout { border-color: #e1ddd6; border-radius: 9px; background: #fff; box-shadow: none; color: #16181c; }
.demo-callout span { color: #5c626a; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  border-top: 1px solid #e3dfd8;
  border-bottom: 1px solid #e3dfd8;
  background: #f6f4f0;
  color: #6b6864;
}
.proof-strip span { min-height: 122px; padding: 30px 32px; border-right: 1px solid #e3dfd8; }
.proof-strip span:last-child { border-right: 0; }
.proof-strip strong { display: block; margin-bottom: 8px; color: #5c5a56; }
.proof-strip span:first-child strong { color: #ff4438; }

.recorder-workbench,
.studio-preview,
.feature-section,
.pricing-section { padding: 64px 48px; }
.studio-preview,
.feature-section { padding-top: 50px; padding-bottom: 50px; }
.section-heading h2 { color: #101114; font-size: clamp(28px, 3vw, 32px); letter-spacing: -.02em; }
.recorder-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 54px;
}
.recorder-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid #e1ddd6;
  border-radius: 12px;
  background: #fff;
}
.recorder-choice.desktop-choice { background: #f1eee8; }
.recorder-choice header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e3dfd8;
}
.recorder-choice h3,
.browser-recorder-heading h3 {
  margin: 0;
  color: #101114;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.platform-tag {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 5px;
  background: #ede9e1;
  color: #5c5a56;
  font: 10px/1.2 "JetBrains Mono Variable", monospace;
  letter-spacing: .04em;
}
.desktop-choice .platform-tag { background: #101114; color: #f6f4f0; }
.recorder-choice > p:not(.recorder-choice-note) {
  min-height: 68px;
  margin: 20px 0 10px;
  color: #5c5a56;
  font-size: 14px;
  line-height: 1.6;
}
.install-steps {
  display: grid;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.install-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #e3dfd8;
  color: #34363a;
  font-size: 13px;
  line-height: 1.5;
}
.install-steps li:first-child { border-top: 0; }
.install-steps li > span {
  color: #ff4438;
  font: 600 10px/1.6 "JetBrains Mono Variable", monospace;
}
.recorder-choice-action,
.recorder-availability {
  align-self: flex-start;
  margin-top: auto;
}
.recorder-availability {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #cfcabf;
  border-radius: 9px;
  background: #e5e1da;
  color: #5c5a56;
  font-size: 12px;
  font-weight: 600;
}
.recorder-choice-note {
  margin: 12px 0 0;
  color: #77736d;
  font-size: 11px;
  line-height: 1.55;
}
.browser-recorder-heading {
  max-width: 720px;
  margin: 0 0 18px;
  padding-top: 38px;
  border-top: 1px solid #e3dfd8;
}
.browser-recorder-heading > p:last-child {
  margin: 9px 0 0;
  color: #66635e;
  font-size: 14px;
  line-height: 1.6;
}

.nav-links a[aria-current="page"] {
  color: #101114;
  font-weight: 600;
}

.download-page {
  min-height: calc(100vh - 72px);
  background: #f6f4f0;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  padding: 88px 48px 72px;
  border-bottom: 1px solid #e3dfd8;
}

.download-hero h1 {
  max-width: 760px;
  margin: 10px 0 0;
  color: #101114;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94;
  word-break: keep-all;
}

.download-hero > p {
  max-width: 580px;
  margin: 0 0 2px;
  color: #5c5a56;
  font-size: 17px;
  line-height: 1.7;
}

.download-products {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  border-bottom: 1px solid #e3dfd8;
}

.download-product {
  min-width: 0;
  padding: 48px;
  background: #fff;
}

.download-product + .download-product {
  border-left: 1px solid #e3dfd8;
}

.download-product-desktop {
  background: #f1eee8;
}

.download-product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.download-product-heading h2 {
  margin: 7px 0 0;
  color: #101114;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.download-product-lead {
  max-width: 660px;
  min-height: 78px;
  margin: 26px 0 22px;
  color: #5c5a56;
  font-size: 15px;
  line-height: 1.65;
}

.download-action-row {
  display: flex;
  min-height: 60px;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d9d4cc;
}

.download-file-note {
  color: #77736d;
  font: 10px/1.4 "JetBrains Mono Variable", monospace;
  letter-spacing: .03em;
}

.download-installation {
  padding-top: 28px;
}

.download-section-label {
  margin: 0 0 8px;
  color: #77736d;
  font: 600 10px/1.4 "JetBrains Mono Variable", monospace;
  letter-spacing: .1em;
}

.download-installation .install-steps {
  margin-bottom: 0;
}

.download-installation .install-steps li {
  padding: 16px 0;
}

.download-privacy-note {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid #ddd8d0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .58);
  color: #66635e;
  font-size: 11px;
  line-height: 1.55;
}

.download-privacy-note strong {
  color: #101114;
  font: 600 9px/1.5 "JetBrains Mono Variable", monospace;
  letter-spacing: .07em;
}

.download-next-step {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 48px;
  background: #101114;
  color: #f6f4f0;
}

.download-next-step .kicker {
  color: #c9f24d;
}

.download-next-step h2 {
  max-width: 720px;
  margin: 0;
  color: #f6f4f0;
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.download-next-step .button {
  border-color: #f6f4f0;
  background: #f6f4f0;
  color: #101114;
}
.recorder-panel,
.recorder-popover,
.project-stack-preview,
.studio-frame,
.workspace-panel,
.dashboard-project-card,
.profile-panel,
.auth-card { border-color: #e1ddd6; border-radius: 12px; background: #fff; box-shadow: none; }
.recorder-panel { padding: 14px; }
.recorder-panel-controls input { background: #faf9f6; }
.recorder-popover { background: #f2f0ec; }
.recorder-popover header { border-color: #e1ddd6; background: #f2f0ec; color: #101114; }
.recorder-popover header strong { color: #101114; }
.recorder-popover header em { border: 0; border-radius: 4px; background: #c9f24d; color: #101114; }
.target-block,
.viewport-block,
.recorder-metrics span { border-color: #e1ddd6; background: #fbfaf8; }
.project-stack-preview { background: #fff; }
.recorder-grid > .recorder-popover,
.recorder-grid > .project-stack-preview { height: 270px; overflow: hidden; }
.recorder-grid > .recorder-popover header { padding: 9px 12px; }
.recorder-grid > .recorder-popover .target-block,
.recorder-grid > .recorder-popover .viewport-block { padding: 8px 12px; }
.recorder-grid > .recorder-popover .viewport-block > div:first-child { margin-bottom: 5px; }
.recorder-grid > .recorder-popover .viewport-options { gap: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recorder-grid > .recorder-popover .viewport-options button {
  align-content: center;
  font-size: 10px;
  min-height: 42px;
  padding: 5px;
  text-align: center;
}
.recorder-grid .project-card { min-height: 70px; }
.recorder-preview-start { width: calc(100% - 28px); min-height: 40px; margin: 0 14px; border: 0; border-radius: 8px; background: #ff4438; color: #fff; }
.recorder-preview-note { display: block; margin-top: 8px; color: #8b857c; font: 10px/1.2 "JetBrains Mono Variable", monospace; text-align: center; }
.project-stack-preview .projects-header.compact { min-height: 0; padding: 10px 14px; }
.project-stack-preview .projects-header.compact .kicker,
.project-stack-preview .projects-header.compact p:not(.kicker) { display: none; }
.project-stack-preview .projects-header.compact h3 { font-size: 15px; line-height: 1.2; }
.project-stack-preview .projects-header.compact .button { min-height: 32px; padding: 6px 12px; }
.project-stack-preview .project-stack { gap: 8px; }
.project-stack-preview .project-card { min-height: 52px; }
.project-stack-preview .project-count { width: 76px; }
.project-stack-preview .project-card-main { padding-block: 8px; }
.project-stack-preview .project-tags { display: none; }
.viewport-options button.selected,
.scene-item.selected { border-color: #ff4438; border-radius: 8px; background: #edeae5; color: #101114; }
.studio-preview { background: #f1eee8; }
.studio-frame {
  height: 390px;
  min-height: 0;
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  padding: 14px;
  overflow: hidden;
}
.studio-frame .stage-column { grid-template-rows: 44px minmax(0, 1fr) 92px; }
.studio-frame .scene-item { min-height: 58px; }
.scene-rail,
.inspector { border-color: #e1ddd6; background: #fbfaf8; }
.preview-stage { background: #efede9; }
.timeline { background: #fbfaf8; }
.clips button.selected { border-color: #ff4438; background: #ff4438; color: #fff; }

.feature-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 0;
}
.feature-ledger article {
  display: block;
  padding: 22px 24px 4px 0;
  border-bottom: 0;
  border-color: #e3dfd8;
}
.feature-ledger article + article { padding-left: 28px; border-left: 1px solid #e3dfd8; }
.feature-ledger h3 { margin-top: 16px; font-size: 18px; line-height: 1.22; }
.feature-ledger p { font-size: 12px; line-height: 1.55; }
.feature-ledger article > span { color: #ff4438; }
.pricing-section {
  align-items: center;
  margin-bottom: 64px;
  padding: 32px 48px;
  border: 0;
  border-radius: 14px;
  background: #ede9e1;
}
.pricing-copy h2 { font-size: 38px; }
.pricing-signup { display: grid; gap: 10px; padding: 22px; border-radius: 12px; background: #fff; }
.pricing-signup strong { font-size: 16px; }
.pricing-signup input { min-height: 46px; background: #faf9f6; }
.pricing-signup small { color: #8b857c; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.dashboard { padding: 42px 40px 72px; }
.dashboard-hero { margin-bottom: 22px; }
.dashboard h1 { font-size: 34px; line-height: 1.08; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; background: transparent; color: #101114; }
.dashboard-stats span { min-height: 118px; padding: 20px; border: 1px solid #ddd8d0; border-radius: 12px; background: #fff; }
.dashboard-stats strong { color: #101114; font-family: "Space Grotesk Variable", sans-serif; font-size: 30px; }
.dashboard-stats small { color: #66635e; }
.workspace-panel { padding: 0; background: transparent; border: 0; }
.workspace-heading { padding: 0 0 18px; border: 0; background: transparent; }
.project-toolbar { margin-bottom: 18px; }
.dashboard-project-card { border-left: 1px solid #e1ddd6; padding: 20px 22px; }
.dashboard-project-card:nth-child(n) { border-left-color: #e1ddd6; }
.dashboard-project-card:hover,
.dashboard-project-card:focus-within {
  background: #fff;
  border-color: #cfc9c0;
  box-shadow: 0 10px 26px rgba(35, 31, 26, .08);
  transform: translateY(-1px);
}
.dashboard-project-card + .dashboard-project-card { margin-top: 12px; }
.project-facts { border-color: #ece8e1; }
.render-activity-list { overflow: hidden; border: 1px solid #e1ddd6; border-radius: 12px; background: #fff; }
.render-activity-row { padding: 14px 20px; }
.connection-panel { margin-top: 32px; padding: 24px 30px; border-radius: 14px; background: #f1eee8; }

.site-footer {
  max-width: none;
  padding: 26px 48px 30px;
  border-top: 1px solid #e3dfd8;
  background: #f6f4f0;
  color: #66635e;
}
.site-footer p,
.site-footer small { color: #77736d; }
.site-footer a { color: #101114; }

body:has(.auth-layout) .nav,
body:has(.auth-layout) .site-footer,
body:has(.auth-page) .nav,
body:has(.auth-page) .site-footer,
body:has(.legal-page) .nav,
body:has(.legal-page) .site-footer,
body:has(.not-found) .nav,
body:has(.not-found) .site-footer { display: none; }
body:has(.auth-layout),
body:has(.auth-page),
body:has(.legal-page),
body:has(.not-found) {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.92), transparent 32%),
    radial-gradient(circle at 82% 86%, rgba(220,215,205,.46), transparent 34%),
    #efede9;
}
body:has(.auth-layout) .shell,
body:has(.auth-page) .shell,
body:has(.legal-page) .shell,
body:has(.not-found) .shell { width: 100%; min-height: 0; overflow: visible; background: transparent; }

.auth-layout {
  width: min(860px, 100%);
  min-height: 640px;
  align-items: stretch;
  grid-template-columns: minmax(0, .94fr) minmax(400px, 1.06fr);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1ddd6;
  border-radius: 22px;
  background: #f6f4f0;
  box-shadow: 0 32px 86px rgba(45,40,32,.14);
}
.auth-intro { position: relative; padding: 46px 44px; border-right: 1px solid #e3dfd8; background: #f1eee8; }
.auth-intro h1 { max-width: 330px; margin: 62px 0 18px; color: #101114; font-size: 34px; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.auth-intro > p:not(.auth-meta) { color: #66635e; font-size: 14px; line-height: 1.6; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: #101114; font-size: 15px; }
.auth-brand-dot { display: inline-block; width: 21px; height: 21px; background: url("./favicon.png?v=vd-border-edge-fill") center / contain no-repeat; }
.auth-brand-dot::after { display: none; }
.auth-steps,
.auth-benefits { gap: 16px; margin-top: 28px; color: #34363a; font-size: 13px; }
.auth-steps li { align-items: flex-start; }
.auth-steps span { color: #ff4438; }
.auth-benefits li::before { color: #4e7a12; }
.auth-meta { position: absolute; left: 44px; bottom: 38px; margin: 0; color: #8b857c; font: 10px/1.3 "JetBrains Mono Variable", monospace; letter-spacing: .11em; white-space: nowrap; }
.auth-card { align-self: stretch; padding: 40px 48px; border: 0; border-radius: 0; background: #f6f4f0; }
.auth-heading { margin: 32px 0 24px; }
.auth-heading h2 { margin-bottom: 10px; font-size: 30px; }
.auth-heading > p:last-child { max-width: 36ch; font-size: 13px; text-wrap: pretty; }
.auth-card .back-link { color: #77736d; }
.auth-card .form-stack { gap: 11px; }
.auth-card input { min-height: 46px; border-color: #d7d1c8; background: #fff; }
.auth-card input:focus { border-color: #101114; }
.auth-submit { min-height: 50px; margin-top: 4px; }
.auth-card .auth-switch,
.auth-card .auth-consent { text-align: center; }
.auth-card .field-help { font-size: 10px; line-height: 1.35; }
.auth-card .field-help ul { margin-top: 0; }
.auth-card .field-help li:nth-child(n + 2) { display: none; }
.auth-layout:has(#signup-title) .field-help { display: none; }
.auth-card a { color: #101114; text-decoration: underline; text-underline-offset: 3px; }
.social-login-button { min-height: 50px; border-color: #d5d0c7; border-radius: 10px; box-shadow: 0 1px 0 rgba(16,17,20,.04); }

html[lang="ko"] .auth-intro h1,
html[lang="ko"] .auth-intro > p,
html[lang="ko"] .auth-heading,
html[lang="ko"] .auth-consent,
html[lang="ko"] .auth-switch { word-break: keep-all; }
html[lang="ko"] .auth-layout .kicker { letter-spacing: .02em; }

.auth-page,
.legal-page,
.not-found { width: min(651px, 100%); padding: 36px 40px; border: 1px solid #e1ddd6; border-radius: 16px; background: #f6f4f0; box-shadow: 0 24px 64px rgba(28,26,22,.08); }
.auth-page .auth-card { padding: 0; background: transparent; }
.legal-page { max-width: 651px; max-height: min(760px, calc(100dvh - 48px)); overflow: auto; }
.legal-page h1 { margin-top: 18px; font-size: 34px; line-height: 1.1; }
.legal-lead { font-size: 15px; }
.legal-page section { margin-top: 26px; padding-top: 20px; }
.legal-page h2 { font-size: 21px; }
.legal-page section p { font-size: 14px; line-height: 1.7; }
.not-found { min-height: 387px; display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found-code { margin: 0 0 22px; color: #ff4438; font: 700 62px/1 "JetBrains Mono Variable", monospace; letter-spacing: -.06em; }
.not-found h1 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; }
.not-found > p:not(.not-found-code) { max-width: 430px; margin: 0 0 24px; color: #77736d; font-size: 14px; }

@media (max-width: 1080px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 760px; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-strip span:nth-child(2) { border-right: 0; }
  .proof-strip span:nth-child(-n+2) { border-bottom: 1px solid #e3dfd8; }
  .studio-frame { height: auto; grid-template-columns: 1fr; }
  .feature-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-ledger article:nth-child(3) { border-left: 0; }
  .download-products { grid-template-columns: 1fr; }
  .download-product + .download-product { border-top: 1px solid #e3dfd8; border-left: 0; }
  .download-next-step { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { padding: 13px 18px; }
  .home-hero,
  .recorder-workbench,
  .studio-preview,
  .feature-section,
  .pricing-section,
  .dashboard { padding-left: 20px; padding-right: 20px; }
  .download-hero,
  .download-product,
  .download-next-step { padding-left: 20px; padding-right: 20px; }
  .download-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 62px; padding-bottom: 50px; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .recorder-choices { grid-template-columns: 1fr; }
  .feature-ledger { grid-template-columns: 1fr; }
  .feature-ledger article + article { padding-left: 0; border-left: 0; border-top: 1px solid #e3dfd8; }
}

@media (max-width: 760px) {
  body:has(.auth-layout) { padding: 18px; }
  .auth-layout { width: min(520px, 100%); min-height: 0; grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .auth-card { padding: 38px 42px 42px; }
}

@media (max-width: 560px) {
  body:has(.auth-layout),
  body:has(.auth-page),
  body:has(.legal-page),
  body:has(.not-found) { display: block; padding: 0; }
  .auth-layout { width: 100%; min-height: 100dvh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-intro { display: none; }
  .auth-card { padding: 30px 24px 36px; }
  .auth-page,
  .legal-page,
  .not-found { width: 100%; max-height: none; min-height: 100dvh; border: 0; border-radius: 0; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip span { border-right: 0; border-bottom: 1px solid #e3dfd8; }
  .home-hero { padding-top: 48px; }
  .hero-copy h1 { font-size: 43px; }
  .download-hero h1 { font-size: 48px; }
  .download-product { padding-top: 36px; padding-bottom: 36px; }
  .download-product-heading { display: grid; }
  .download-product-heading .platform-tag { justify-self: start; }
  .download-product-lead { min-height: 0; }
  .download-privacy-note { grid-template-columns: 1fr; }
  .download-next-step { gap: 18px; }
  .recorder-choice { padding: 22px 20px; }
  .recorder-choice > p:not(.recorder-choice-note) { min-height: 0; }
}
