* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, dialog:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100svh; color: var(--text); background: radial-gradient(circle at 74% 5%, oklch(28% 0.06 45 / 0.27), transparent 28rem), var(--bg); }
.app-shell[data-theme="animation"] { background: radial-gradient(circle at 72% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 28rem), var(--bg); }
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  height: 4.6rem;
  padding: 0 2.4rem;
  border-bottom: 1px solid var(--line);
  background: oklch(13% 0.015 40 / 0.82);
  backdrop-filter: blur(18px);
}
.brand-lockup { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 8rem; }
.brand-mark { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-soft); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.brand-type { display: grid; font-family: var(--font-mono); font-size: 0.58rem; line-height: 1.1; letter-spacing: 0.12em; color: var(--text-soft); }
.brand-type span:last-child { color: var(--text-muted); }
.topbar-center { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; min-width: 0; transform: translate(-50%, -50%); }
.page-nav { display: flex; flex: 0 0 auto; gap: 0.2rem; padding: 0.24rem; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface-1) 92%, transparent); box-shadow: 0 0.6rem 2rem rgb(0 0 0 / 0.16); }
.page-nav-button { min-height: 2rem; padding: 0.35rem 0.85rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out); }
.page-nav-button:hover { background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.page-nav-button.is-active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--accent) 22%, transparent); }
.app-shell[data-view="moodboard"] .section-rail, .app-shell[data-view="moodboard"] .presentation-hud { display: none; }
.app-shell[data-view="moodboard"] .assistant-launcher { bottom: 1.4rem; }
.nav-pill, .icon-button, .hud-button, .studio-tab, .secondary-button, .primary-button, .close-button, .arrow-button, .mini-action, .toggle-button {
  border: 0;
  color: var(--text-soft);
  background: transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}
.nav-pill { flex: 0 0 auto; padding: 0.42rem 0.72rem; border: 1px solid transparent; border-radius: 999px; color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.nav-pill:hover, .nav-pill.is-active { border-color: var(--line-strong); background: var(--surface-1); color: var(--text); }
.nav-pill.is-active::before { display: inline-block; width: 0.32rem; height: 0.32rem; margin: 0 0.45rem 0.09rem 0; border-radius: 50%; background: var(--accent); content: ""; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; }
.save-state { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; white-space: nowrap; }
.save-state::before { display: inline-block; width: 0.36rem; height: 0.36rem; margin: 0 0.45rem 0.04rem 0; border-radius: 50%; background: var(--success); content: ""; }
.save-state.is-dirty::before { background: var(--accent); }
.icon-button { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.46rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.78rem; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.icon-button.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-1)); color: var(--text); }
.icon-bars { display: grid; gap: 0.16rem; width: 0.9rem; }
.icon-bars i { display: block; height: 1px; background: currentColor; }

.presentation-scroll { padding: 4.6rem 2.4rem 5.5rem 7rem; }
.presentation-nav { position: sticky; z-index: 15; top: 5.2rem; display: flex; justify-content: center; gap: 0.28rem; width: fit-content; max-width: 100%; margin: 0 auto 1.4rem; padding: 0.28rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 84%, transparent); box-shadow: 0 0.9rem 2.4rem rgb(0 0 0 / 0.18); backdrop-filter: blur(16px); }
.presentation-nav .nav-pill { flex: 0 0 auto; padding: 0.48rem 0.78rem; border: 1px solid transparent; border-radius: 999px; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out); }
.presentation-nav .nav-pill:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); transform: translateY(-1px); }
.presentation-nav .nav-pill.is-active { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 15%, var(--surface-1)); color: var(--text); }
.presentation-nav .nav-pill.is-active::before { display: inline-block; width: 0.34rem; height: 0.34rem; margin: 0 0.42rem 0.08rem 0; border-radius: 50%; background: var(--accent); content: ""; }
.stage-section { position: relative; display: grid; align-items: center; min-height: var(--stage-height); padding: 3.4rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 4.6rem; }
.stage-section[data-height="short"] { --stage-height: min(39rem, calc(100svh - 6rem)); }
.stage-section[data-height="tall"] { --stage-height: min(58rem, calc(100svh - 6rem)); }
.stage-section[data-height="auto"] { --stage-height: auto; }
.stage-section[data-height="auto"] .stage-slide { min-height: 0; }
.stage-section::after { position: absolute; right: -2.4rem; bottom: 0; left: -7rem; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.25; content: ""; }
.stage-shell { position: relative; width: min(100%, 90rem); margin: 0 auto; }
.stage-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.eyebrow { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.stage-index { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.65rem; }
.stage-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84%, 1fr); gap: 1rem; overflow-x: auto; padding: 0 0 0.9rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stage-track::-webkit-scrollbar, .card-track::-webkit-scrollbar, .timeline-track::-webkit-scrollbar, .panel-nav::-webkit-scrollbar { display: none; }
.stage-track--single { grid-auto-columns: 100%; overflow-x: visible; }
.stage-track[data-snap="false"] { scroll-snap-type: none; }
.panel-nav { display: flex; gap: 0.4rem; overflow-x: auto; margin-bottom: 0.7rem; padding: 0.15rem 0 0.25rem; scrollbar-width: none; }
.panel-tab { display: inline-flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; min-height: 2.35rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms ease, transform 180ms var(--ease-out); }
.panel-tab:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text-soft); transform: translateY(-1px); }
.panel-tab.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface-1)); color: var(--text); }
.panel-tab-index { color: var(--accent-soft); }
.stage-slide { min-height: var(--stage-height); padding: clamp(1.4rem, 3vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, oklch(24% 0.027 42 / 0.95), oklch(17% 0.018 41 / 0.9)); box-shadow: var(--shadow-stage); scroll-snap-align: start; overflow: hidden; }
.stage-slide:not(.is-current) { cursor: pointer; }
.stage-slide:not(.is-current):hover { border-color: var(--line-strong); }
.inline-edit-target { border-radius: 0.2rem; outline: 0; transition: background 160ms ease, box-shadow 160ms ease; }
.app-shell[data-edit-mode="true"] .inline-edit-target { cursor: text; box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 75%, transparent); }
.app-shell[data-edit-mode="true"] .inline-edit-target:hover, .app-shell[data-edit-mode="true"] .inline-edit-target:focus { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.app-shell[data-theme="animation"] .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.app-shell[data-theme="animation"] .stage-slide { background: linear-gradient(145deg, color-mix(in srgb, var(--surface-3) 72%, var(--bg)), var(--surface-1)); }
.app-shell[data-theme="animation"] .stage-visual { background: var(--surface-2); }
.stage-slide > * { position: relative; z-index: 1; }
.stage-slide--split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); }
.stage-slide--copy-right .stage-copy { order: 2; }
.stage-slide--copy-right .stage-visual { order: 1; }
.stage-copy { min-width: 0; max-width: 38rem; }
.stage-copy h2 { max-width: 10ch; margin: 0.75rem 0 1.3rem; font-family: var(--font-display); font-size: clamp(3.2rem, 7vw, 7.7rem); line-height: 0.87; letter-spacing: -0.075em; }
.stage-copy p { max-width: 34rem; margin: 0; color: var(--text-soft); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; }
.stage-copy .note { margin-top: 2rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.08em; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.7rem; padding: 0.7rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.8rem; }
.primary-button { background: var(--accent); color: var(--accent-ink); }
.primary-button:hover { background: var(--accent-soft); transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface-1); color: var(--text); }
.secondary-button:hover { background: var(--surface-2); transform: translateY(-1px); }
.stage-visual { position: relative; min-height: min(32rem, 60vh); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #26201a; }
.stage-visual::before { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, oklch(100% 0 0 / 0.13), transparent 62%); transform: translateX(-100%); animation: light-sweep 8s var(--ease-in-out) infinite; content: ""; }
.visual-grain { position: absolute; inset: 0; opacity: 0.24; background-image: radial-gradient(oklch(100% 0 0 / 0.17) 0.6px, transparent 0.6px); background-size: 5px 5px; mix-blend-mode: screen; }
.visual-orbit { position: absolute; width: 36rem; height: 36rem; top: -13rem; right: -13rem; border: 1px solid oklch(100% 0 0 / 0.22); border-radius: 50%; box-shadow: 0 0 0 4rem oklch(100% 0 0 / 0.02), 0 0 0 8rem oklch(100% 0 0 / 0.02); }
.visual-orbit::after { position: absolute; top: 50%; left: -8rem; width: 19rem; height: 1px; background: var(--accent); transform: rotate(-35deg); transform-origin: right; content: ""; }
.visual-caption { position: absolute; right: 1.2rem; bottom: 1.1rem; left: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--text-soft); font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stage-slide--cards { display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 82% 17%, oklch(54% 0.11 43 / 0.25), transparent 18rem), var(--surface-1); }
.app-shell[data-theme="animation"] .stage-slide--cards { background: radial-gradient(circle at 82% 17%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 18rem), var(--surface-1); }
.stage-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.stage-heading-row h2 { max-width: 11ch; margin: 0.75rem 0 0; font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.9; letter-spacing: -0.07em; }
.stage-heading-row p { max-width: 19rem; margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.card-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 25%); gap: 0.8rem; overflow-x: auto; padding-top: 2.5rem; scrollbar-width: none; }
.content-card { min-height: 14rem; width: 100%; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: oklch(100% 0 0 / 0.035); color: var(--text); text-align: left; transition: transform 180ms var(--ease-out), background 180ms ease, border-color 180ms ease; }
.content-card:hover { border-color: var(--line-strong); background: oklch(100% 0 0 / 0.075); transform: translateY(-0.35rem); }
.card-number { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.65rem; }
.content-card h3 { margin: 2.5rem 0 0.7rem; font-family: var(--font-display); font-size: 1.6rem; line-height: 0.98; letter-spacing: -0.04em; }
.content-card p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }
.stage-slide--full { position: relative; display: grid; align-items: end; isolation: isolate; background: linear-gradient(135deg, #27201b 0%, #4b2d24 43%, #171312 100%); }
.app-shell[data-theme="animation"] .stage-slide--full { background: linear-gradient(135deg, var(--bg) 0%, var(--surface-3) 48%, var(--surface-pressed, var(--bg-soft)) 100%); }
.stage-slide--full::before { position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(122deg, transparent 0 4.7rem, oklch(100% 0 0 / 0.06) 4.75rem 4.8rem), radial-gradient(circle at 62% 38%, oklch(74% 0.16 45 / 0.34), transparent 20rem); content: ""; }
.stage-slide--full .stage-copy { max-width: 54rem; padding-bottom: 1rem; }
.stage-slide--full h2 { max-width: 8ch; margin-bottom: 1.2rem; font-size: clamp(3.5rem, 9vw, 9rem); }
.stage-slide--full .stage-copy p { max-width: 33rem; }
.evidence-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 2.6rem; }
.evidence-item { padding: 0.8rem 0; border-top: 1px solid oklch(100% 0 0 / 0.2); color: var(--text-soft); font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; }
.stage-slide--quote { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem; background: var(--surface-2); }
.stage-slide--editorial { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr); align-items: end; gap: clamp(2rem, 7vw, 8rem); background: linear-gradient(135deg, var(--surface-1), var(--bg-soft)); }
.editorial-lead h2 { max-width: 9ch; margin: 0.75rem 0 1.2rem; font-family: var(--font-display); font-size: clamp(3.2rem, 7vw, 7.3rem); line-height: 0.88; letter-spacing: -0.08em; }
.editorial-lead p { max-width: 34rem; margin: 0; color: var(--text-soft); font-size: 1.05rem; }
.editorial-reading { display: grid; gap: 0.6rem; align-self: stretch; align-content: end; }
.reading-item { padding: 1rem 0; border-top: 1px solid var(--line-strong); }
.reading-item span, .reading-item p { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; }
.reading-item strong { display: block; margin-top: 0.55rem; color: var(--text-soft); font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.04em; }
.reading-item p { margin: 0.4rem 0 0; }
.stage-slide--feature-grid { display: flex; flex-direction: column; justify-content: space-between; background: var(--surface-1); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin-top: 2rem; }
.feature-tile { min-height: 13rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface-3) 46%, transparent); }
.feature-tile h3 { margin: 2.6rem 0 0.65rem; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.05em; }
.feature-tile p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }
.stage-slide--stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr); align-items: center; gap: 4rem; background: radial-gradient(circle at 28% 42%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 22rem), var(--surface-1); }
.stat-value { margin-top: 0.7rem; font-family: var(--font-display); font-size: clamp(7rem, 18vw, 16rem); line-height: 0.8; letter-spacing: -0.1em; }
.stat-label { margin: 1.1rem 0 0; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; }
.proof-stack { display: grid; gap: 0.8rem; }
.proof-line { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 0.6rem; padding: 0.9rem 0; border-top: 1px solid var(--line-strong); }
.proof-line span, .proof-line small { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; }
.proof-line strong { color: var(--text-soft); font-family: var(--font-display); font-size: 1.15rem; }
.stage-slide--timeline { display: flex; flex-direction: column; justify-content: space-between; background: var(--surface-1); }
.timeline-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 1fr); gap: 0.65rem; overflow-x: auto; margin-top: 2.5rem; padding-bottom: 0.4rem; scrollbar-width: none; }
.timeline-item { min-height: 12rem; padding: 1rem; border-top: 1px solid var(--accent); background: color-mix(in srgb, var(--surface-3) 42%, transparent); }
.timeline-dot { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.6rem; }
.timeline-item h3 { margin: 2.4rem 0 0.55rem; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.05em; }
.timeline-item p { margin: 0; color: var(--text-muted); font-size: 0.8rem; }
.stage-slide--media { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; background: var(--bg-soft); }
.media-art { position: relative; min-height: 20rem; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: radial-gradient(circle at 68% 35%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 18rem), linear-gradient(130deg, var(--surface-3), var(--bg)); }
.media-art::before, .media-art::after { position: absolute; content: ""; }
.media-art::before { inset: 12% 15%; border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); border-radius: 50%; transform: rotate(-22deg); }
.media-art::after { top: 50%; left: 12%; width: 76%; height: 1px; background: var(--accent); transform: rotate(-14deg); transform-origin: center; }
.media-art-grid { position: absolute; inset: 0; opacity: 0.25; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 3rem 3rem; }
.media-art-label { position: absolute; right: 1rem; bottom: 1rem; color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; }
.media-caption { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.7fr) auto; align-items: end; gap: 2rem; }
.media-caption h2 { max-width: 10ch; margin: 0.6rem 0 0; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4.5rem); line-height: 0.9; letter-spacing: -0.07em; }
.media-caption p { margin: 0; color: var(--text-soft); font-size: 0.9rem; }
.media-caption-note { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; }
.quote-mark { color: var(--accent); font-family: var(--font-quote); font-size: 8rem; line-height: 0.3; }
.quote-text { max-width: 12ch; margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 7.5rem); line-height: 0.87; letter-spacing: -0.08em; }
.quote-meta { align-self: end; padding-left: 1rem; border-left: 1px solid var(--accent); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.quote-meta strong { display: block; margin-bottom: 0.45rem; color: var(--text-soft); font-weight: 500; }
.stage-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; }
.track-hint { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.61rem; text-transform: uppercase; letter-spacing: 0.08em; }
.slide-dots { display: flex; gap: 0.35rem; }
.slide-dot, .rail-dot { width: 0.5rem; height: 0.5rem; padding: 0; border: 1px solid var(--text-muted); border-radius: 50%; background: transparent; }
.slide-dot.is-active, .rail-dot.is-active { border-color: var(--accent); background: var(--accent); }
.arrow-group { display: flex; gap: 0.4rem; }
.arrow-button { width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--text-soft); }
.arrow-button:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.arrow-button:disabled { cursor: not-allowed; opacity: 0.35; }

.section-rail { position: fixed; z-index: 12; top: 4.6rem; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 4.6rem; padding: 2rem 0 6.4rem; border-right: 1px solid var(--line); background: oklch(13% 0.015 40 / 0.58); }
.rail-label, .rail-foot { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.11em; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-dots { display: grid; gap: 0.9rem; }
.rail-dot { width: 0.6rem; height: 0.6rem; transition: transform 180ms var(--ease-out); }
.rail-dot.is-active { transform: scale(1.35); }
.presentation-hud { position: fixed; z-index: 13; right: 2.4rem; bottom: 1.4rem; left: 7rem; display: flex; align-items: center; gap: 0.9rem; pointer-events: none; }
.presentation-hud > * { pointer-events: auto; }
.hud-index, .hud-title { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hud-title { color: var(--text-soft); }
.hud-rule { width: min(10rem, 18vw); height: 1px; background: var(--line-strong); }
.hud-actions { display: flex; gap: 0.45rem; margin-left: auto; }
.hud-button { padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: oklch(13% 0.015 40 / 0.75); font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; }
.hud-button:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }

.moodboard-view { min-height: 100svh; padding: 7rem 3rem 4rem; background: radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 30rem), var(--bg); }
.moodboard-shell { width: min(100%, 110rem); margin: 0 auto; }
.moodboard-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.moodboard-header h1 { max-width: 10ch; margin: 0.6rem 0 0; font-family: var(--font-display); font-size: clamp(3rem, 7vw, 7rem); line-height: 0.84; letter-spacing: -0.09em; }
.moodboard-header p { max-width: 34rem; margin: 1rem 0 0; color: var(--text-soft); font-size: 1rem; }
.moodboard-header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.8rem; }
.moodboard-count, .moodboard-footer { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.moodboard-board { display: grid; grid-auto-flow: dense; grid-auto-rows: 10rem; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.8rem; min-height: 32rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-1) 76%, transparent); box-shadow: var(--shadow-stage); }
.moodboard-item { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, color-mix(in srgb, var(--surface-3) 58%, var(--bg)), var(--surface-1)); color: var(--text); transition: border-color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease; }
.moodboard-item:hover { border-color: var(--line-strong); box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 0.2); transform: translateY(-2px); }
.moodboard-item.is-dragging { opacity: 0.45; transform: rotate(1deg) scale(0.98); }
.moodboard-item--small { grid-column: span 3; grid-row: span 1; }
.moodboard-item--wide { grid-column: span 6; grid-row: span 1; }
.moodboard-item--tall { grid-column: span 3; grid-row: span 2; }
.moodboard-item--large { grid-column: span 6; grid-row: span 2; }
.moodboard-item-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.moodboard-item-type { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.moodboard-item-actions { display: flex; align-items: center; gap: 0.25rem; }
.moodboard-item-actions select { max-width: 4.4rem; border: 0; background: transparent; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.55rem; text-transform: uppercase; }
.moodboard-delete { width: 1.5rem; height: 1.5rem; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--text-muted); }
.moodboard-delete:hover { border-color: var(--danger); color: var(--danger); }
.moodboard-item-copy { display: flex; flex: 1; flex-direction: column; justify-content: end; min-height: 0; }
.moodboard-item-copy p { margin: 0.65rem 0 0; color: var(--text-muted); font-size: 0.72rem; line-height: 1.4; }
.moodboard-bookmark, .moodboard-file { display: flex; flex: 1; flex-direction: column; justify-content: end; gap: 0.45rem; min-width: 0; color: var(--text); }
.moodboard-bookmark:hover strong, .moodboard-file:hover strong { color: var(--accent-soft); }
.moodboard-bookmark strong, .moodboard-file strong { font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 2.6rem); line-height: 0.95; letter-spacing: -0.06em; }
.moodboard-bookmark > span:last-child, .moodboard-file > span:last-child { overflow: hidden; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.moodboard-bookmark-mark, .moodboard-file-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
.moodboard-image, .moodboard-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.moodboard-item--image::after, .moodboard-item--video::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.64)); pointer-events: none; content: ""; }
.moodboard-item--image .moodboard-item-top, .moodboard-item--video .moodboard-item-top { text-shadow: 0 1px 1rem rgb(0 0 0 / 0.8); }
.moodboard-media-placeholder { display: flex; flex: 1; flex-direction: column; justify-content: end; gap: 0.4rem; padding-top: 2rem; background: radial-gradient(circle at 65% 34%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 10rem), repeating-linear-gradient(135deg, transparent 0 1.2rem, color-mix(in srgb, var(--line) 55%, transparent) 1.2rem 1.25rem); }
.moodboard-media-placeholder span { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; }
.moodboard-media-placeholder strong { max-width: 12ch; font-family: var(--font-display); font-size: 1.8rem; line-height: 0.95; letter-spacing: -0.06em; }
.moodboard-note-body { display: flex; flex: 1; flex-direction: column; justify-content: end; }
.moodboard-note-mark { margin-bottom: auto; color: var(--accent); font-size: 1.3rem; }
.moodboard-note-body strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 0.95; letter-spacing: -0.06em; }
.moodboard-note-body p { margin: 0.65rem 0 0; color: var(--text-soft); font-size: 0.72rem; }
.moodboard-empty { grid-column: 1 / -1; display: grid; place-items: center; align-content: center; min-height: 28rem; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); text-align: center; }
.moodboard-empty-mark { color: var(--accent); font-size: 2.4rem; }
.moodboard-empty h2 { margin: 0.6rem 0 0; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 4rem); line-height: 0.9; letter-spacing: -0.07em; }
.moodboard-empty p { max-width: 25rem; margin: 0.8rem 0 1.2rem; color: var(--text-muted); font-size: 0.8rem; }
.moodboard-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; }
.moodboard-dialog { width: min(92vw, 42rem); max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); box-shadow: 0 2rem 8rem rgb(0 0 0 / 0.55); }
.moodboard-dialog::backdrop { background: rgb(0 0 0 / 0.78); backdrop-filter: blur(8px); }
.moodboard-dialog-inner { padding: 1.3rem; }
.moodboard-dialog .assistant-head { margin-bottom: 1.2rem; }

/* Moodboard refinement: compact editorial header, explicit containers, and content-sized boards. */
.moodboard-view { padding-top: 5.35rem; }
.moodboard-header { align-items: center; gap: 1.5rem; margin-bottom: 1rem; padding: 0.55rem 0 0.75rem; border-bottom: 1px solid var(--line); }
.moodboard-header h1 { max-width: none; margin: 0.35rem 0 0; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.moodboard-header p { max-width: 42rem; margin: 0.45rem 0 0; color: var(--text-muted); font-size: 0.72rem; }
.moodboard-header-actions { gap: 0.55rem; }
.moodboard-containers { display: grid; gap: 1rem; }
.moodboard-container { padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-1) 68%, transparent); box-shadow: 0 1.1rem 3rem rgb(0 0 0 / 0.12); }
.moodboard-container-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.2rem 0.25rem 0.7rem; }
.moodboard-container-index { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; }
.moodboard-container-header h2 { margin: 0.25rem 0 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1; letter-spacing: -0.04em; }
.moodboard-container-header p { margin: 0.28rem 0 0; color: var(--text-muted); font-size: 0.68rem; }
.moodboard-container-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.moodboard-container-actions .secondary-button { min-height: 2.2rem; padding: 0.45rem 0.7rem; font-size: 0.68rem; }
.moodboard-container-actions .moodboard-delete { width: 2rem; height: 2rem; border: 1px solid var(--line); }
.moodboard-container-actions .moodboard-delete:disabled { cursor: not-allowed; opacity: 0.35; }
.moodboard-container .moodboard-board { min-height: 0; grid-auto-rows: 8.5rem; padding: 0.55rem; border: 1px dashed var(--line); border-radius: var(--radius-md); background: color-mix(in srgb, var(--bg) 68%, transparent); box-shadow: none; }
.moodboard-container-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6rem; padding: 0.8rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--text-muted); }
.moodboard-container-empty p { margin: 0; font-size: 0.72rem; }
.moodboard-container-empty .moodboard-empty-mark { font-size: 1.2rem; }
.moodboard-container-empty .secondary-button { min-height: 2rem; padding: 0.4rem 0.65rem; font-size: 0.64rem; }
.moodboard-media-shell { position: relative; flex: 1; min-height: 0; margin: 0.35rem -0.2rem -0.2rem; overflow: hidden; border-radius: calc(var(--radius-md) - 0.15rem); background: var(--surface-2); }
.moodboard-media-shell .moodboard-image, .moodboard-media-shell .moodboard-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.moodboard-media-overlay { position: absolute; z-index: 1; right: 0.75rem; bottom: 0.65rem; left: 0.75rem; color: var(--text); text-shadow: 0 1px 1rem rgb(0 0 0 / 0.9); }
.moodboard-media-overlay span { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; }
.moodboard-media-overlay strong { display: block; margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.1rem; line-height: 1; }
.moodboard-media-overlay p { margin: 0.3rem 0 0; color: var(--text-soft); font-size: 0.62rem; }
.moodboard-item--image::after, .moodboard-item--video::after { display: none; }
.moodboard-media-placeholder { min-height: 0; padding: 0.9rem; border-radius: calc(var(--radius-md) - 0.15rem); }
.moodboard-media-placeholder p { margin: 0.45rem 0 0; color: var(--text-muted); font-size: 0.64rem; }
.moodboard-container .moodboard-board { grid-auto-rows: minmax(8.5rem, max-content); }
.moodboard-item { height: auto; min-height: 8.5rem; overflow: visible; }
.moodboard-item-top { flex: 0 0 auto; }
.moodboard-item-copy { flex: 1 1 auto; }
.moodboard-bookmark, .moodboard-file { flex: 0 0 auto; margin-top: auto; }
.moodboard-note-body { flex: 1 1 auto; min-height: 0; }

.studio-shell { position: fixed; z-index: 30; inset: 0; display: grid; grid-template-columns: 17rem minmax(0, 1fr); background: var(--bg); animation: studio-in 300ms var(--ease-out) both; }
.studio-sidebar { display: flex; flex-direction: column; padding: 2.1rem 1.5rem; border-right: 1px solid var(--line); background: var(--surface-1); }
.studio-sidebar-head { display: flex; justify-content: space-between; gap: 1rem; }
.studio-sidebar h2 { margin: 0.35rem 0 0; font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.06em; }
.close-button, .dialog-close { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); font-size: 1.35rem; line-height: 1; }
.close-button:hover, .dialog-close:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.studio-tabs { display: grid; gap: 0.25rem; margin-top: 3rem; }
.studio-tab { padding: 0.72rem 0.8rem; border-radius: var(--radius-sm); text-align: left; color: var(--text-muted); font-size: 0.82rem; }
.studio-tab:hover, .studio-tab.is-active { background: var(--surface-2); color: var(--text); }
.studio-tab.is-active::before { display: inline-block; width: 0.4rem; height: 0.4rem; margin: 0 0.55rem 0.05rem 0; border-radius: 50%; background: var(--accent); content: ""; }
.studio-sidebar-note { max-width: 13rem; margin-top: auto; color: var(--text-muted); font-size: 0.75rem; }
.studio-workspace { overflow: auto; padding: clamp(1.5rem, 4vw, 4rem); }
.studio-workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: 76rem; margin: 0 auto 2.5rem; }
.studio-workspace h1 { margin: 0.5rem 0 0; font-family: var(--font-display); font-size: clamp(2.7rem, 6vw, 5rem); line-height: 0.9; letter-spacing: -0.08em; }
.studio-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.studio-content { max-width: 76rem; margin: 0 auto; }
.studio-section-grid { display: grid; grid-template-columns: minmax(13rem, 0.65fr) minmax(18rem, 1.35fr); gap: 1rem; }
.panel { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.panel + .panel { margin-top: 1rem; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.04em; }
.panel p { margin: 0.4rem 0 0; color: var(--text-muted); font-size: 0.78rem; }
.section-list { display: grid; gap: 0.45rem; }
.section-row { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem; align-items: center; padding: 0.7rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: oklch(100% 0 0 / 0.025); }
.section-row.is-selected { border-color: var(--accent); background: oklch(100% 0 0 / 0.055); }
.section-row-button { min-width: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.section-row-title { display: block; overflow: hidden; font-size: 0.85rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.section-row-meta { display: block; margin-top: 0.18rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.59rem; text-transform: uppercase; }
.row-actions { display: flex; gap: 0.2rem; }
.mini-action { width: 1.8rem; height: 1.8rem; border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); font-size: 0.75rem; }
.mini-action:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.mini-action:disabled { cursor: not-allowed; opacity: 0.3; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--text-soft); font-size: 0.76rem; font-weight: 600; }
.field small, .helper-text { color: var(--text-muted); font-size: 0.68rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; background: var(--bg-soft); color: var(--text); padding: 0.7rem; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px oklch(85% 0.13 78 / 0.12); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-copy strong { display: block; color: var(--text-soft); font-size: 0.8rem; }
.toggle-copy span { display: block; margin-top: 0.15rem; color: var(--text-muted); font-size: 0.68rem; }
.toggle-button { position: relative; width: 2.55rem; height: 1.45rem; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-soft); }
.toggle-button::after { position: absolute; top: 0.2rem; left: 0.2rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--text-muted); transition: transform 180ms var(--ease-out), background 180ms ease; content: ""; }
.toggle-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); }
.toggle-button[aria-pressed="true"]::after { background: var(--accent-ink); transform: translateX(1.1rem); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.swatch { width: 2.1rem; height: 2.1rem; border: 2px solid transparent; border-radius: 50%; }
.swatch.is-selected { outline: 2px solid var(--focus); outline-offset: 3px; }
.swatch--ember { background: oklch(70% 0.18 46); }
.swatch--cobalt { background: oklch(70% 0.18 250); }
.swatch--moss { background: oklch(70% 0.15 135); }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.theme-option { position: relative; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; width: 100%; padding: 0.65rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-soft); color: var(--text); text-align: left; transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), transform 180ms var(--ease-out); }
.theme-option:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.theme-option.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-1)); }
.theme-preview { display: flex; align-items: end; gap: 0.2rem; height: 3rem; padding: 0.45rem; border: 1px solid oklch(100% 0 0 / 0.12); border-radius: 0.7rem; background: #17120f; }
.theme-preview i { display: block; width: 0.46rem; border-radius: 999px; background: var(--preview-accent, #f4773c); }
.theme-preview i:nth-child(1) { height: 55%; opacity: 0.42; }
.theme-preview i:nth-child(2) { height: 78%; opacity: 0.7; }
.theme-preview i:nth-child(3) { height: 36%; }
.theme-preview--ember { --preview-accent: #f4773c; background: #241713; }
.theme-preview--cobalt { --preview-accent: #709cf4; background: #111827; }
.theme-preview--moss { --preview-accent: #79b879; background: #142018; }
.theme-preview--animation { --preview-accent: #c6a4ef; background: #0e0912; }
.theme-option-copy { min-width: 0; }
.theme-option-copy strong, .theme-option-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-option-copy strong { font-size: 0.78rem; }
.theme-option-copy small { margin-top: 0.18rem; color: var(--text-muted); font-size: 0.64rem; }
.theme-check { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: 0.7rem; }
.template-library { margin-bottom: 1rem; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.template-card { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.55rem; min-width: 0; padding: 0.55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text); text-align: left; transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease-out); }
.template-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
.template-card-mark { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 0.16rem; height: 2rem; padding: 0.3rem; border-radius: 0.45rem; background: var(--surface-3); }
.template-card-mark i { display: block; border-radius: 999px; background: var(--accent); opacity: 0.72; }
.template-card-mark i:nth-child(1) { height: 42%; }
.template-card-mark i:nth-child(2) { height: 72%; }
.template-card-mark i:nth-child(3) { height: 54%; }
.template-card-mark--full i:nth-child(2) { height: 92%; }
.template-card-mark--quote i:nth-child(1) { height: 25%; }
.template-card-mark--quote i:nth-child(2) { height: 92%; }
.template-card-copy { min-width: 0; }
.template-card-copy strong, .template-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-card-copy strong { font-size: 0.68rem; }
.template-card-copy small { margin-top: 0.12rem; color: var(--text-muted); font-size: 0.56rem; }
.template-card-add { color: var(--accent-soft); font-size: 1rem; }
.empty-state { display: grid; place-items: center; min-height: 18rem; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--text-muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 0.4rem; color: var(--text-soft); font-family: var(--font-display); font-size: 1.6rem; }
.studio-callout { padding: 0.9rem 1rem; border-left: 2px solid var(--accent); background: oklch(100% 0 0 / 0.035); color: var(--text-soft); font-size: 0.78rem; }
.studio-callout strong { color: var(--accent-soft); }
.add-section-form { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.add-section-form.is-open { display: block; }
.danger-button { border: 1px solid oklch(70% 0.17 25 / 0.5); color: var(--danger); background: transparent; }
.danger-button:hover { background: oklch(70% 0.17 25 / 0.1); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.button-row .primary-button, .button-row .secondary-button { min-height: 2.35rem; padding: 0.55rem 0.8rem; }

.preview-dialog { width: min(94vw, 94rem); max-width: none; height: min(92svh, 58rem); max-height: none; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg); color: var(--text); scrollbar-width: none; box-shadow: 0 3rem 12rem oklch(0% 0 0 / 0.65); }
.preview-dialog::-webkit-scrollbar, .preview-dialog-inner::-webkit-scrollbar { display: none; }
.preview-dialog::backdrop { background: oklch(0% 0 0 / 0.8); backdrop-filter: blur(8px); }
.preview-dialog-inner { height: 100%; padding: 2.4rem; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.dialog-close { position: absolute; z-index: 2; top: 1rem; right: 1rem; background: var(--bg-soft); }
.preview-dialog .stage-slide { min-height: calc(min(92svh, 58rem) - 4.8rem); }
.assistant-launcher { position: fixed; z-index: 24; right: 2.4rem; bottom: 5.6rem; display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.85rem 0.65rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface-1) 90%, transparent); color: var(--text); box-shadow: var(--shadow-stage); text-align: left; backdrop-filter: blur(16px); transition: border-color 180ms ease, transform 180ms var(--ease-out), background 180ms ease; }
.assistant-launcher:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.assistant-launcher-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
.assistant-launcher strong, .assistant-launcher small { display: block; }
.assistant-launcher strong { font-size: 0.75rem; }
.assistant-launcher small { margin-top: 0.12rem; color: var(--text-muted); font-size: 0.62rem; }
.assistant-panel { position: fixed; z-index: 50; right: 1.2rem; bottom: 1.2rem; display: grid; grid-template-rows: auto minmax(12rem, 1fr) auto; width: min(29rem, calc(100vw - 2.4rem)); height: min(42rem, calc(100svh - 2.4rem)); padding: 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 2rem 7rem rgb(0 0 0 / 0.46); backdrop-filter: blur(22px); }
.assistant-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.assistant-head h2 { margin: 0.35rem 0 0; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.06em; }
.assistant-head p { max-width: 19rem; margin: 0.4rem 0 0; color: var(--text-muted); font-size: 0.72rem; }
.assistant-messages { display: grid; align-content: start; gap: 0.65rem; overflow: auto; padding: 1rem 0.2rem; scrollbar-width: none; }
.assistant-messages::-webkit-scrollbar { display: none; }
.assistant-message { max-width: 92%; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.assistant-message--user { justify-self: end; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--surface-1)); }
.assistant-message-role { color: var(--accent-soft); font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; }
.assistant-message p { margin: 0.35rem 0 0; color: var(--text-soft); font-size: 0.78rem; line-height: 1.45; white-space: pre-wrap; }
.assistant-empty { align-self: center; padding: 1rem; color: var(--text-muted); text-align: center; }
.assistant-empty-mark { color: var(--accent); font-size: 2rem; }
.assistant-empty p { margin: 0.6rem auto 1rem; max-width: 19rem; font-size: 0.78rem; }
.assistant-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.assistant-suggestions button { padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-1); color: var(--text-soft); font-size: 0.66rem; }
.assistant-suggestions button:hover { border-color: var(--accent); color: var(--text); }
.assistant-form { padding-top: 0.8rem; border-top: 1px solid var(--line); }
.assistant-form textarea { width: 100%; min-height: 5rem; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius-md); outline: 0; background: var(--bg-soft); color: var(--text); padding: 0.75rem; font-size: 0.8rem; }
.assistant-form textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.assistant-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.55rem; }
.assistant-form-foot .primary-button:disabled { cursor: wait; opacity: 0.6; }
.toast { position: fixed; z-index: 60; right: 1.2rem; bottom: 1.2rem; max-width: 20rem; padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-stage); font-size: 0.78rem; opacity: 0; pointer-events: none; transform: translateY(0.6rem); transition: opacity 180ms ease, transform 180ms var(--ease-out); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes light-sweep { 0%, 55% { transform: translateX(-100%); } 75%, 100% { transform: translateX(100%); } }
@keyframes studio-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .topbar { gap: 0.8rem; padding: 0 1.1rem; }
  .topbar-center { gap: 0.5rem; }
  .brand-lockup { min-width: auto; }
  .brand-type { display: none; }
  .presentation-scroll { padding: 4.6rem 1.1rem 5.5rem; }
  .presentation-nav { max-width: calc(100vw - 2.2rem); overflow-x: auto; justify-content: flex-start; }
  .moodboard-view { padding: 6rem 1.1rem 4rem; }
  .stage-section::after { right: -1.1rem; left: -1.1rem; }
  .section-rail { display: none; }
  .presentation-hud { right: 1.1rem; bottom: 1rem; left: 1.1rem; }
  .stage-slide--split { gap: 2rem; }
  .studio-shell { grid-template-columns: 13rem minmax(0, 1fr); }
}

@media (max-width: 680px) {
  :root { --stage-height: auto; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; height: 4rem; }
  .topbar-center { min-width: 0; }
  .page-nav-button { padding-inline: 0.5rem; font-size: 0.52rem; }
  .topbar-actions { gap: 0; }
  .save-state, .button-label { display: none; }
  .icon-button { padding: 0.55rem; }
  .presentation-scroll { padding-top: 4rem; }
  .presentation-nav { top: 4.5rem; margin-bottom: 1rem; }
  .stage-section { min-height: calc(100svh - 4rem); padding: 2.2rem 0 4rem; }
  .stage-shell, .stage-track { width: 100%; }
  .stage-slide { min-height: calc(100svh - 10rem); padding: 1.25rem; border-radius: var(--radius-md); }
  .stage-slide--split, .stage-slide--quote { grid-template-columns: 1fr; align-content: center; }
  .stage-slide--editorial, .stage-slide--stat { grid-template-columns: 1fr; align-content: center; }
  .stage-copy h2 { max-width: none; overflow-wrap: anywhere; word-break: break-word; font-size: clamp(2.5rem, 13vw, 4.6rem); }
  .stage-copy p { max-width: 100%; overflow-wrap: anywhere; }
  .stage-visual { min-height: 15rem; }
  .stage-heading-row { display: block; }
  .stage-heading-row p { margin-top: 1rem; }
  .editorial-lead h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .editorial-reading { margin-top: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-tile { min-height: 10rem; }
  .proof-stack { margin-top: 2rem; }
  .timeline-track { grid-auto-columns: minmax(15rem, 78%); }
  .media-caption { grid-template-columns: 1fr; gap: 0.8rem; }
  .media-caption h2 { max-width: none; }
  .media-art { min-height: 16rem; }
  .card-track { grid-auto-columns: minmax(15rem, 75%); }
  .evidence-list { grid-template-columns: 1fr; gap: 0.4rem; }
  .evidence-item { padding: 0.6rem 0; }
  .quote-mark { font-size: 5rem; }
  .quote-text { font-size: clamp(3rem, 15vw, 5rem); }
  .hud-rule { flex: 1; width: auto; }
  .hud-button { padding: 0.5rem; font-size: 0.56rem; }
  .assistant-launcher { right: 1.1rem; bottom: 5.2rem; }
  .assistant-panel { right: 0.7rem; bottom: 0.7rem; width: calc(100vw - 1.4rem); height: calc(100svh - 1.4rem); }
  .studio-shell { display: block; overflow: auto; }
  .moodboard-header { display: block; }
  .moodboard-header h1 { max-width: none; font-size: 1rem; letter-spacing: 0.05em; }
  .moodboard-header-actions { justify-content: flex-start; margin-top: 1.3rem; }
  .moodboard-board { grid-auto-rows: 10rem; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 26rem; padding: 0.55rem; }
  .moodboard-item--small, .moodboard-item--wide, .moodboard-item--tall, .moodboard-item--large { grid-column: span 1; }
  .moodboard-item--wide, .moodboard-item--large { grid-column: span 2; }
  .moodboard-item--tall, .moodboard-item--large { grid-row: span 2; }
  .moodboard-footer { display: block; line-height: 1.8; }
  .moodboard-container-header { display: block; }
  .moodboard-container-actions { justify-content: flex-start; margin-top: 0.7rem; }
  .moodboard-container .moodboard-board { min-height: 0; grid-auto-rows: minmax(8.5rem, max-content); }
  .studio-sidebar { display: block; padding: 1.25rem 1.1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-sidebar-note { display: none; }
  .studio-tabs { display: flex; overflow-x: auto; margin-top: 1rem; padding-bottom: 0.7rem; }
  .studio-tab { flex: 0 0 auto; padding: 0.55rem 0.7rem; white-space: nowrap; }
  .studio-workspace { overflow: visible; padding: 1.4rem 1.1rem 3rem; }
  .studio-workspace-head { display: block; margin-bottom: 1.5rem; }
  .studio-workspace h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .studio-head-actions { margin-top: 1.3rem; }
  .studio-section-grid, .form-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .preview-dialog { width: 100vw; height: 100svh; border-radius: 0; }
  .preview-dialog-inner { padding: 1rem; padding-top: 3.5rem; }
  .preview-dialog .stage-slide { min-height: calc(100svh - 5rem); }
}

@media (pointer: coarse) {
  .nav-pill, .hud-button, .studio-tab { min-height: 2.6rem; }
  .arrow-button { width: 2.5rem; height: 2.5rem; }
  .slide-dot, .rail-dot { width: 0.7rem; height: 0.7rem; }
}

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