/* themes.css */
[data-theme="light"] {
  --bg-0: #f8f8fa;
  --bg-1: #ffffff;
  --bg-2: #f0f0f4;
  --bg-3: #e4e4ec;
  --text-0: #121218;
  --text-1: #44445a;
  --text-2: #7a7a90;
  --border: rgba(0, 0, 0, 0.08);
  --accent-dim: rgba(50, 100, 220, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .screenplay-block:empty::before {
  color: var(--text-2);
}

@media (max-width: 900px) {
  .writer-body {
    grid-template-columns: 1fr;
  }
  .writer-sidebar {
    position: fixed;
    left: 0;
    top: var(--header-h);
    bottom: var(--status-h);
    width: var(--sidebar-w);
    z-index: 100;
    transform: translateX(0);
    transition: transform var(--transition);
  }
  .writer-app.sidebar-collapsed .writer-sidebar {
    transform: translateX(-100%);
  }
  .writer-rail {
    display: none;
  }
}

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