/* The listening room's entry flow. Scoped to preserve the shared site shell. */
body.listening-room-page .storybeam-stage .storybeam-brand-block { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; min-height: 0; margin-block: 12px 0; padding-block: 0 20px; align-items: center; }
body.listening-room-page .storybeam-stage .storybeam-hero-photo { max-width: 160px; margin: 0; }
body.listening-room-page .storybeam-stage .storybeam-brand-copy .lede { max-width: 52ch; font-size: 1.08rem; }
body.listening-room-page .storybeam-stage .storybeam-brand-copy h1 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.1; white-space: normal; }
body.listening-room-page .storybeam-stage .parent-promise { margin-block: 12px; }
body.listening-room-page .storybeam-stage .launch-actions { margin-top: 16px; }
body.listening-room-page .storybeam-stage .storybeam-latest { margin-top: 24px; }
.storybeam-latest > summary { display: list-item; cursor: pointer; padding: 14px 2px; font-size: 1.05rem; font-weight: 600; min-height: 48px; }
.storybeam-latest > summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.story-start {
  --start-focus: #1b6fa8;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px);
  scroll-margin-top: 110px; text-align: left;
}
.story-start [hidden] { display: none !important; }
.story-start h2, .story-start h3, .story-start p { margin: 0; color: inherit; }
.story-start h2 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; }
.story-start h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 600; }
.story-start__heading { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; }
.story-start button, .story-start select, .story-start a { touch-action: manipulation; }
.story-start button, .story-start select { font: inherit; }
.story-start__text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; white-space: nowrap; }
.story-start__listener { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 20px; font-size: .9rem; color: var(--muted); }
.story-start select { min-height: 44px; max-width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 30px 8px 12px; background-color: var(--surface); color: var(--ink); }
.story-start__listener select { max-width: min(100%, 260px); }
.story-start__controls { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(180px, 1fr) minmax(100px, .65fr); gap: 20px; align-items: end; }
.story-start__budget { min-width: 0; margin: 0; padding: 0; border: 0; }
.story-start__budget legend, .story-start__filter { color: var(--ink); font-size: .9rem; font-weight: 500; }
.story-start__budget legend { padding: 0; margin-bottom: 8px; }
.story-start__times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.story-start__times label { position: relative; min-width: 0; cursor: pointer; }
.story-start__times input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.story-start__times span { display: grid; place-items: center; padding: 10px 6px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); font-size: .9rem; }
.story-start__times input:checked + span { background: var(--ink-strong); color: var(--surface); border-color: var(--ink-strong); font-weight: 600; }
.story-start__times input:focus-visible + span, .story-start :is(button, select, a):focus-visible { outline: 3px solid var(--start-focus); outline-offset: 3px; }
.story-start__filter { display: grid; gap: 8px; }
.story-start .story-start__status { font-size: .9rem; color: var(--muted); margin-top: 24px; }
.story-start__results { list-style: none; padding: 0; margin: 8px 0 0; }
.story-start__story { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.story-start__number { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.story-start__story-copy { min-width: 0; overflow-wrap: anywhere; }
.story-start .story-start__story-copy p { font-size: .85rem; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.story-start__play { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--ink-strong); border-radius: var(--radius-sm); background: var(--ink-strong); color: var(--surface); font-weight: 500; cursor: pointer; }
.story-start__play:hover { opacity: .86; }
.story-start .story-start__note { color: var(--muted); font-size: .8rem; line-height: 1.6; margin-top: 14px; max-width: 80ch; }
.story-start__paths { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; }
.story-start a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: .2em; }
.story-start__continuation { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-warm); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 24px; padding: 18px 20px; }
.story-start__continuation > div { min-width: 0; flex: 1; }
.story-start__continuation h3 { overflow-wrap: anywhere; }
.story-start__continuation p { font-size: .9rem; line-height: 1.5; margin-top: 4px; }
.story-start .story-start__resume-label { margin: 0 0 4px; color: var(--muted); font-size: .8rem; }
.story-start progress { display: block; width: 100%; max-width: 360px; height: 6px; accent-color: var(--ink-strong); margin-top: 12px; }
.story-start__empty { padding: 24px 0 12px; }
.story-start__empty p { margin-top: 6px; line-height: 1.6; max-width: 58ch; }
html[data-dark="on"] .story-start { --start-focus: var(--sky); }
@media (max-width: 900px) {
  .story-start__controls { grid-template-columns: 1fr 1fr; }
  .story-start__budget { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.listening-room-page .storybeam-stage .storybeam-brand-block { grid-template-columns: 1fr; gap: 0; }
  body.listening-room-page .storybeam-stage .storybeam-hero-photo,
  body.listening-room-page .storybeam-stage .parent-promise,
  body.listening-room-page .storybeam-stage .launch-actions { display: none; }
  body.listening-room-page .storybeam-stage .storybeam-brand-copy .lede { font-size: 1rem; }
  .story-start { padding: 20px 16px; }
  .story-start__heading { align-items: center; flex-direction: row; gap: 12px; }
  .story-start__heading h2 { max-width: 19ch; }
  .story-start__controls { gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
  .story-start__filter select { width: 100%; }
  .story-start__story { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; }
  .story-start__story > button { grid-column: 2; justify-self: start; }
  .story-start__continuation { align-items: start; flex-direction: column; }
}
@media (max-width: 400px) {
  .story-start__controls { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .story-start__times input:checked + span { outline: 3px solid Highlight; outline-offset: -4px; }
}

body.listening-room-page .storybeam-availability { margin-top: 12px; color: var(--stage-ink-soft); font-size: .9rem; line-height: 1.5; }

body.listening-room-page .storybeam-stage .app-preview-status { display: none; }
@media (max-width: 600px) {
  body.listening-room-page .storybeam-stage .storybeam-brand-block { margin-top: 0; padding-bottom: 0; }
  body.listening-room-page .storybeam-stage .storybeam-brand-copy h1 { margin-top: 0; }
  body.listening-room-page .storybeam-stage .storybeam-availability { margin-top: 8px; font-size: .8rem; }
}
