:root {
  color-scheme: dark;
  --bg: #080b0e;
  --panel: #10151a;
  --panel-2: #161c22;
  --line: #27313a;
  --text: #eef4f7;
  --muted: #95a5af;
  --accent: #7cf29a;
  --accent-dark: #143c22;
  --warning: #ffc857;
  --danger: #ff6b6b;
  --focus: #71b7ff;
  --radius: 14px;
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

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

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.loading-screen,
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 70% 20%, #173926 0, transparent 28rem),
    linear-gradient(140deg, #080b0e, #0d1515);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-content: center;
  gap: 1rem;
}

.spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-card {
  width: min(100%, 430px);
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 30px 90px #0009;
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
}

.brand-mark {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid #4c7660;
  border-radius: 15px;
  color: var(--accent);
  background: #0e2116;
  font:
    700 1.35rem 'IBM Plex Mono',
    monospace;
}

.brand-mark.small {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  border-radius: 9px;
  font-size: 0.9rem;
}

.stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: #ced8dd;
  font-size: 0.87rem;
  font-weight: 600;
}

input,
textarea,
select {
  min-height: 2.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #0c1115;
}

textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.55;
}

.form-error {
  margin: 0;
  padding: 0.8rem;
  border-left: 3px solid var(--danger);
  color: #ffd0d0;
  background: #351719;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  background: #0d1115;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

#main-navigation {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.nav-button {
  width: 100%;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  text-align: left;
  background: transparent;
}

.nav-button:hover,
.nav-button.active {
  color: var(--text);
  background: var(--panel-2);
}

.nav-button.active {
  box-shadow: inset 3px 0 var(--accent);
}

.account-summary {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  padding: 1rem 0.5rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
}

.workspace {
  width: 100%;
  max-width: 1650px;
  margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}

.mobile-header {
  display: none;
}

.page-header,
.editor-header,
.scene-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.button-row,
.editor-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.button,
.icon-button {
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  font-weight: 700;
  background: var(--panel-2);
}

.button:hover,
.icon-button:hover {
  filter: brightness(1.12);
}

.button.primary {
  color: #061009;
  background: var(--accent);
}

.button.secondary {
  border-color: #3d5e4b;
  color: #bff8ce;
  background: var(--accent-dark);
}

.button.ghost {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.button.danger {
  color: white;
  background: #a82e35;
}

.button.small,
.button.ghost.small {
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

.icon-button {
  width: 2.65rem;
  padding: 0;
  font-size: 1.25rem;
}

.stats-strip,
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.stat {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  font:
    700 1.2rem 'IBM Plex Mono',
    monospace;
}

.stat span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.script-card {
  display: grid;
  min-height: 220px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}

.script-card h2 {
  margin: 0.55rem 0;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.script-card footer {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status-badge {
  width: fit-content;
  padding: 0.3rem 0.5rem;
  border: 1px solid #355943;
  border-radius: 999px;
  color: var(--accent);
  font:
    600 0.68rem 'IBM Plex Mono',
    monospace;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.editor-header {
  align-items: end;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.title-field {
  flex: 1 1 350px;
}

.title-field input {
  width: 100%;
  min-height: 3.5rem;
  padding-left: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  background: transparent;
}

.compact-field {
  min-width: 190px;
}

.editor-actions {
  justify-content: flex-end;
}

.save-status {
  min-width: 8rem;
  color: var(--muted);
  font:
    600 0.75rem 'IBM Plex Mono',
    monospace;
  text-align: right;
}

.save-status[data-state='error'] {
  color: var(--danger);
}

.save-status[data-state='pending'],
.save-status[data-state='saving'] {
  color: var(--warning);
}

.recovery-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #66531f;
  border-radius: 9px;
  background: #2b2614;
}

.scene-toolbar {
  margin: 2rem 0 1rem;
}

.scene-list {
  display: grid;
  gap: 1rem;
}

.scene-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: clip;
}

.scene-card.dragging {
  opacity: 0.55;
  outline: 2px dashed var(--accent);
}

.scene-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.drag-handle {
  padding: 0.4rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: grab;
}

.scene-number {
  min-width: 5rem;
  font:
    700 0.8rem 'IBM Plex Mono',
    monospace;
}

.scene-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}

.scene-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 1rem;
  padding: 1rem;
}

.format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.format-toolbar button {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #0d1216;
}

.scene-options,
.timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.timing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.7rem;
}

.media-panel {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.media-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed #42515b;
  border-radius: 10px;
  background: #090d10;
  overflow: hidden;
}

.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.media-preview span {
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.upload-progress {
  width: 100%;
}

.settings-card {
  max-width: 650px;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.check-field input {
  min-height: 0;
  width: 1.05rem;
  height: 1.05rem;
}

.presentation {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 1rem;
  background: #000e;
}

.presentation-stage {
  position: relative;
  width: min(100%, calc((100vh - 7rem) * 16 / 9));
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 4px;
  border: 1px solid var(--theme-border);
  color: var(--theme-foreground);
  background: var(--theme-background);
  box-shadow: 0 20px 80px #000;
  overflow: hidden;
  font-family: var(--theme-font);
}

.presentation-titlebar {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--theme-border);
  color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-background) 76%, var(--theme-accent));
  font-size: clamp(0.55rem, 1vw, 0.85rem);
  letter-spacing: 0.08em;
}

.presentation-content {
  position: relative;
  min-height: 0;
  display: grid;
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: clamp(1rem, 4vw, 4rem);
  overflow: hidden;
}

.presentation-text {
  z-index: 2;
  align-self: center;
  overflow: auto;
  color: var(--theme-foreground);
  font-size: clamp(1.1rem, 3.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.18;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.presentation-text .fmt-bold {
  font-weight: 800;
}
.presentation-text .fmt-italic {
  font-style: italic;
}
.presentation-text .fmt-highlight,
.presentation-text .fmt-statistic,
.presentation-text .fmt-big-number {
  color: var(--theme-accent);
}
.presentation-text .fmt-highlight {
  padding: 0 0.12em;
  color: var(--theme-background);
  background: var(--theme-accent);
}
.presentation-text .fmt-command {
  color: var(--theme-accent);
  font-family: 'IBM Plex Mono', monospace;
}
.presentation-text .fmt-result,
.presentation-text .fmt-muted {
  color: var(--theme-muted);
}
.presentation-text .fmt-alert {
  color: var(--theme-warning);
}
.presentation-text .fmt-quote {
  font-style: italic;
}
.presentation-text .fmt-statistic {
  font-size: 1.25em;
  font-weight: 800;
}
.presentation-text .fmt-big-number {
  font-size: 1.65em;
  font-weight: 800;
}
.presentation-text .fmt-success {
  color: #62e89b;
}
.presentation-text .fmt-small {
  font-size: 0.75em;
}
.presentation-text .fmt-large {
  font-size: 1.25em;
}

.presentation-media {
  z-index: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.presentation-media img,
.presentation-media video,
.presentation-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.presentation-content[data-layout='text-only'] {
  grid-template-columns: 1fr;
}
.presentation-content[data-layout='text-only'] .presentation-media {
  display: none;
}
.presentation-content[data-layout='media-only'] .presentation-text {
  display: none;
}
.presentation-content[data-layout='media-left'] {
  grid-template-columns: 1.15fr 0.85fr;
}
.presentation-content[data-layout='media-left'] .presentation-media {
  order: -1;
}
.presentation-content[data-layout='media-right'] {
  grid-template-columns: 0.85fr 1.15fr;
}
.presentation-content[data-layout='media-top'] {
  grid-template-rows: 1.2fr 0.8fr;
}
.presentation-content[data-layout='text-over-media'] {
  grid-template-columns: 1fr;
}
.presentation-content[data-layout='text-over-media'] > * {
  grid-area: 1 / 1;
}
.presentation-content[data-layout='text-over-media'] .presentation-media::after {
  position: absolute;
  inset: 0;
  content: '';
  background: #0008;
}
.presentation-content[data-layout='statistic'],
.presentation-content[data-layout='quote'],
.presentation-content[data-layout='document'] {
  grid-template-columns: 1fr;
}
.presentation-content[data-layout='statistic'] .presentation-text {
  color: var(--theme-accent);
  font-size: clamp(2rem, 7vw, 8rem);
  text-align: center;
}
.presentation-content[data-layout='quote'] .presentation-text {
  padding-left: 0.6em;
  border-left: 0.12em solid var(--theme-accent);
  font-style: italic;
}
.presentation-content[data-layout='comparison'] {
  grid-template-columns: 1fr 1fr;
}
.presentation-content[data-layout='video-focus'],
.presentation-content[data-layout='embed-focus'] {
  grid-template-rows: minmax(0, 1fr) auto;
}
.presentation-content[data-layout='video-focus'] .presentation-media,
.presentation-content[data-layout='embed-focus'] .presentation-media {
  order: -1;
}

.presentation-stage[data-theme='terminal-green'] {
  --theme-background: #020805;
  --theme-foreground: #c4ffd2;
  --theme-accent: #52f27d;
  --theme-warning: #ffd166;
  --theme-muted: #75a781;
  --theme-border: #2e6c3e;
  --theme-font: 'IBM Plex Mono', monospace;
}
.presentation-stage[data-theme='terminal-amber'] {
  --theme-background: #100b00;
  --theme-foreground: #ffe6ad;
  --theme-accent: #ffbd3d;
  --theme-warning: #ff7452;
  --theme-muted: #ad8951;
  --theme-border: #765522;
  --theme-font: 'IBM Plex Mono', monospace;
}
.presentation-stage[data-theme='modern-blue'] {
  --theme-background: #07111f;
  --theme-foreground: #eaf4ff;
  --theme-accent: #62b5ff;
  --theme-warning: #ffc857;
  --theme-muted: #88a3bc;
  --theme-border: #285984;
  --theme-font: Inter, sans-serif;
}
.presentation-stage[data-theme='confidential'] {
  --theme-background: #e7dfce;
  --theme-foreground: #211d18;
  --theme-accent: #a62424;
  --theme-warning: #a62424;
  --theme-muted: #62594e;
  --theme-border: #7b6e5c;
  --theme-font: 'IBM Plex Mono', monospace;
}
.presentation-stage[data-theme='error-screen'] {
  --theme-background: #140204;
  --theme-foreground: #ffe8e8;
  --theme-accent: #ff4d58;
  --theme-warning: #ffcb69;
  --theme-muted: #b78084;
  --theme-border: #8e1d27;
  --theme-font: 'IBM Plex Mono', monospace;
}
.presentation-stage[data-theme='system-report'] {
  --theme-background: #f2f5f7;
  --theme-foreground: #172027;
  --theme-accent: #006da8;
  --theme-warning: #b46504;
  --theme-muted: #687983;
  --theme-border: #9fb2bd;
  --theme-font: Inter, sans-serif;
}
.presentation-stage[data-theme='classified'] {
  --theme-background: #161510;
  --theme-foreground: #eee8d6;
  --theme-accent: #e6c24f;
  --theme-warning: #df674b;
  --theme-muted: #9d9787;
  --theme-border: #72642f;
  --theme-font: 'IBM Plex Mono', monospace;
}
.presentation-stage[data-theme='minimal-dark'] {
  --theme-background: #0c0d0f;
  --theme-foreground: #f5f5f5;
  --theme-accent: #ffffff;
  --theme-warning: #ffb454;
  --theme-muted: #91959b;
  --theme-border: #31343a;
  --theme-font: Inter, sans-serif;
}

.transition-fade {
  animation: scene-fade 0.35s ease-out;
}
.transition-slide-left {
  animation: scene-slide-left 0.35s ease-out;
}
.transition-slide-right {
  animation: scene-slide-right 0.35s ease-out;
}
.transition-slide-up {
  animation: scene-slide-up 0.35s ease-out;
}
.transition-zoom {
  animation: scene-zoom 0.35s ease-out;
}
.transition-glitch {
  animation: scene-glitch 0.25s steps(2);
}
.transition-terminal-clear {
  animation: terminal-clear 0.25s ease-out;
}
@keyframes scene-fade {
  from {
    opacity: 0;
  }
}
@keyframes scene-slide-left {
  from {
    opacity: 0;
    transform: translateX(5%);
  }
}
@keyframes scene-slide-right {
  from {
    opacity: 0;
    transform: translateX(-5%);
  }
}
@keyframes scene-slide-up {
  from {
    opacity: 0;
    transform: translateY(5%);
  }
}
@keyframes scene-zoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes scene-glitch {
  25% {
    transform: translateX(2px);
    filter: hue-rotate(45deg);
  }
  75% {
    transform: translateX(-2px);
  }
}
@keyframes terminal-clear {
  from {
    clip-path: inset(0 0 100% 0);
  }
}

.safe-area-guide {
  position: absolute;
  z-index: 5;
  inset: 5%;
  border: 1px dashed #fff9;
  pointer-events: none;
}

.safe-area-guide span {
  padding: 0.2rem;
  color: #fff;
  background: #0009;
  font-size: clamp(0.45rem, 0.8vw, 0.7rem);
}

.caption-area {
  position: absolute;
  right: 5%;
  bottom: 5%;
  left: 5%;
  height: 18%;
  display: grid;
  place-items: center;
  border: 1px dashed #ffd166aa;
  color: #ffd166;
  background: #0003;
  font-size: clamp(0.45rem, 0.8vw, 0.7rem);
}

.scene-progress-track,
.script-progress-track {
  background: #ffffff20;
  overflow: hidden;
}

.scene-progress-bar,
.script-progress-bar {
  width: 0;
  height: 100%;
  background: var(--theme-accent, var(--accent));
}

.presentation-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.8rem;
}

.control-check {
  padding: 0 0.4rem;
  font-size: 0.75rem;
}

.script-progress-track {
  width: min(200px, 25vw);
  height: 5px;
}

.script-progress-bar {
  background: var(--accent);
}

.dialog {
  width: min(92vw, 700px);
  max-height: 85vh;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
}

.dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(3px);
}

.compact-dialog {
  max-width: 500px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 0 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
}

.version-list,
.export-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.version-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}

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

.dialog-actions {
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.6rem;
  width: min(90vw, 390px);
}

.toast {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  background: #151c21;
  box-shadow: 0 10px 35px #0009;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.small-text {
  font-size: 0.78rem;
}

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

  .sidebar {
    position: fixed;
    z-index: 100;
    left: 0;
    width: 250px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

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

@media (max-width: 760px) {
  .workspace {
    padding: 1rem 1rem 4rem;
  }

  .page-header,
  .editor-header,
  .scene-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-actions {
    justify-content: flex-start;
  }

  .save-status {
    text-align: left;
  }

  .stats-strip,
  .metrics-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .scene-card-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .scene-header-actions {
    width: 100%;
    margin-left: 0;
  }

  .presentation {
    padding: 0;
  }

  .presentation-stage {
    width: 100%;
  }

  .presentation-content[data-layout] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .presentation-controls {
    padding: 0.6rem;
    background: #080b0e;
  }

  .control-check {
    display: none;
  }
}

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