:root { color-scheme: light; font-family: system-ui, sans-serif; color: #24362f; background: #f5f2e9; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
main { max-width: 820px; margin: auto; padding: 24px 20px 48px; }
a { color: #25654b; }
header h1 { margin: 4px 0 8px; font-size: clamp(30px, 5vw, 42px); line-height: 1.18; }
header > p:last-child { margin: 0 0 20px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; color: #547464; }
.test-controls { padding: 16px 20px; background: #fffdf7; border: 1px solid #dfdfd3; border-radius: 18px; margin-bottom: 20px; }
.test-controls p { margin: 0 0 12px; }
.test-controls .note { margin: 12px 0; }
.demo-selector { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.demo-selector select { min-height: 44px; min-width: 190px; max-width: 100%; border: 1px solid #afc7ae; border-radius: 10px; padding: 8px 12px; color: #24362f; background: #fff; font: inherit; }
.enable-test { display: flex; align-items: center; min-height: 44px; gap: 9px; font-weight: 600; }
input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; accent-color: #25654b; }
button { min-height: 46px; border: 0; border-radius: 12px; background: #25654b; color: #fff; padding: 12px 18px; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #c27531; outline-offset: 3px; }
.story-preview { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 22px; align-items: start; }
.video-frame { width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: #243b32; box-shadow: 0 12px 30px #23382d16; }
.video-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-preview[data-format="landscape"] { grid-template-columns: 1fr; }
.story-preview[data-format="landscape"] .video-frame { aspect-ratio: 16 / 9; }
.preview-info { min-width: 0; }
h2 { margin: 0 0 12px; font-size: 24px; }
#story-status { min-height: 24px; overflow-wrap: anywhere; }
.note { font-size: 13px; color: #67746b; }
details { border-top: 1px solid #dfdfd3; padding-top: 12px; }
summary { cursor: pointer; font-size: 14px; }
code { display: block; font-size: 12px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  main { padding: 18px 16px 36px; }
  .story-preview { grid-template-columns: 1fr; gap: 12px; }
  .video-frame { max-width: 230px; margin: auto; }
  .story-preview[data-format="landscape"] .video-frame { max-width: 100%; }
  .test-controls { padding: 14px 16px; }
  .demo-selector { flex-wrap: wrap; }
  .demo-selector select { flex: 1; }
  #story-start { width: 100%; }
}
