/* Story Lab. Uses the site tokens from /styles.css. */
.sl-body { background: var(--ivory); }
.sl-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap;
  padding: 0.9rem 16px; border-bottom: 1px solid var(--line); background: var(--ivory);
}
.sl-header .logo { font-size: 1.35rem; }
.sl-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--sky-soft); color: var(--sky-ink); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.sl-main { max-width: 980px; margin: 0 auto; padding: var(--space-3) 16px var(--space-5); }

.sl-card {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-3) clamp(16px, 4vw, 2rem); margin-bottom: var(--space-2);
}
.sl-narrow { max-width: 460px; margin: var(--space-4) auto; }
.sl-h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 500; }
.sl-h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.sl-h3 { font-size: 1.2rem; margin-top: var(--space-2); }
.sl-meta { font-size: 0.88rem; color: var(--ink-soft); }
.sl-label { display: block; font-weight: 600; margin: var(--space-2) 0 0.35rem; color: var(--ink); }

.sl-form { display: grid; gap: 0.5rem; max-width: 520px; }
.sl-form label, .sl-name label, .sl-fact label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.sl-main input:not([type=checkbox]):not([type=radio]):not([type=file]), .sl-main textarea, .sl-main select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #9C8491; border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
}
.sl-main textarea { line-height: 1.55; resize: vertical; }
.sl-form .btn { justify-self: start; margin-top: 0.5rem; }
/* The passcode box on the way-in screen: for testers, under the family's instructions (Nov 11, 2026). */
.sl-tester { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sl-tester .sl-meta { margin: 0; }
.sl-check { display: flex; gap: 0.5rem; align-items: center; font-weight: 500 !important; }
.sl-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--clay); }

.sl-packs { border: 0; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.6rem; }
.sl-packs legend { font-weight: 600; margin-bottom: 0.4rem; }
.sl-pack { display: flex; gap: 0.7rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem; cursor: pointer; }
.sl-pack:has(input:checked) { border-color: var(--clay); background: #FFF7F7; }
.sl-pack input { margin-top: 0.3rem; accent-color: var(--clay); }

.sl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.sl-list li { border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.sl-list .sl-meta { display: block; }
.sl-plain { padding-left: 1.1rem; }
.sl-plain li { margin-bottom: 0.4rem; }

.sl-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--clay); text-decoration: underline; cursor: pointer; text-align: left; }
.sl-small {
  background: #fff; color: var(--clay); border: 1.5px solid var(--clay); border-radius: 999px;
  font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.9rem; cursor: pointer; margin: 0.25rem 0.4rem 0.25rem 0;
}
.sl-small:hover { background: var(--clay); color: #fff; }
/* Disabled controls keep readable text (the contrast audit checks them too). */
.btn:disabled, .sl-small:disabled, .sl-rec:disabled {
  background: #fff; color: var(--ink-soft); border: 1.5px dashed #9C8491; box-shadow: none; cursor: not-allowed; transform: none;
}
.sl-rec:disabled .sl-rec-dot { background: var(--ink-soft); }

.sl-top { margin-bottom: var(--space-2); }
.sl-title { margin: 0.4rem 0 0.6rem; }
.sl-usage { font-size: 0.9rem; color: var(--ink); }
.sl-usage summary { cursor: pointer; font-weight: 600; color: var(--clay); }
.sl-usage p { color: var(--ink); margin-top: 0.4rem; }

.sl-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: var(--space-2); }
.sl-tab {
  flex: 0 0 auto; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.5rem 1rem; cursor: pointer;
}
.sl-tab[aria-current="step"], .sl-tab[aria-selected="true"] { background: var(--clay); border-color: var(--clay); color: #fff; }
.sl-subtabs { margin-bottom: 0.6rem; }

.sl-notice { background: var(--butter); color: var(--ink); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; }
.sl-error { color: #9B1C1C; font-weight: 600; }
.sl-working { color: var(--sky-ink); background: var(--sky-soft); border-radius: var(--radius-sm); padding: 0.6rem 0.9rem; font-weight: 600; }

/* Chapters */
.sl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 var(--space-2); }
.sl-chip {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid #9C8491; background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.sl-chip.is-done { background: var(--rose-soft); border-color: var(--clay); }
.sl-chip.is-skipped { background: var(--sand); color: var(--ink); border-style: dashed; }
.sl-chip[aria-current="true"] { outline: 3px solid var(--clay); outline-offset: 2px; }
.sl-prompt { font-family: var(--font-display); font-size: clamp(1.3rem, 3.4vw, 1.75rem); line-height: 1.3; color: var(--ink) !important; margin: 0.4rem 0 0.6rem; }

.sl-recorder { display: flex; flex-direction: column; align-items: center; margin: var(--space-3) 0 var(--space-2); }
.sl-rec {
  width: min(62vw, 210px); height: min(62vw, 210px); border-radius: 50%; border: 0; cursor: pointer;
  background: var(--clay); color: #fff; font: inherit; font-size: 1.35rem; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(142, 59, 82, 0.28); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sl-rec:active { transform: scale(0.97); }
.sl-rec-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.sl-rec.is-on { background: var(--clay-dark); }
.sl-rec.is-on .sl-rec-dot { border-radius: 5px; animation: sl-pulse 1.2s ease-in-out infinite; }
@keyframes sl-pulse { 50% { opacity: 0.45; } }
.sl-timer { font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 600; color: var(--ink) !important; margin-top: 0.8rem; }
.sl-upload { display: inline-flex; flex-direction: column; gap: 0.3rem; font-weight: 600; color: var(--ink); }
.sl-upload input { font-size: 0.9rem; max-width: 100%; }
.sl-player { width: 100%; margin: 0.6rem 0; }
.sl-nav { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: var(--space-3); flex-wrap: wrap; }

/* Event map */
.sl-events { padding-left: 1.3rem; }
.sl-events li { margin-bottom: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.sl-event-what { color: var(--ink) !important; font-weight: 600; margin-bottom: 0.3rem; }
.sl-main blockquote { margin: 0.4rem 0; padding-left: 0.9rem; border-left: 3px solid var(--rose-soft); color: var(--ink); font-style: italic; }
.sl-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--sand); color: var(--ink); }
.sl-badge.sl-low, .sl-badge.sl-unknown { background: var(--butter); }
.sl-badge.sl-high, .sl-badge.sl-exact { background: var(--sky-soft); color: var(--sky-ink); }

/* Names and facts */
.sl-names, .sl-facts { display: grid; gap: var(--space-2); }
.sl-name, .sl-fact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; display: grid; gap: 0.5rem; }
@media (min-width: 760px) { .sl-name { grid-template-columns: 1fr 1fr 1fr; } .sl-name .sl-meta { grid-column: 1 / -1; } }

/* Drafts */
.sl-draft-text { font-size: 1.05rem; }
.sl-draft-text p { color: var(--ink); max-width: 68ch; }
.sl-draft-title { font-size: 1.5rem; }
.sl-draft-tools { margin-bottom: 0.6rem; }
.sl-voice { display: grid; gap: 0.3rem; font-weight: 600; max-width: 360px; margin-top: 0.6rem; }
.sl-wide-only { margin-top: var(--space-2); }
@media (max-width: 1099px) { .sl-wide-only { display: none !important; } }
@media (min-width: 1100px) {
  .sl-main:has(.sl-sbs) { max-width: 1400px; }
  .sl-sbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .sl-sbs .sl-draft-text { font-size: 0.97rem; }
}
.sl-main input::placeholder, .sl-main textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.sl-live { min-height: 3em; max-height: 9em; overflow-y: auto; width: 100%; margin-top: 0.8rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); background: var(--sand); color: var(--ink) !important; font-size: 0.95rem; }
.sl-photos { margin-top: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-1); }
.sl-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin-bottom: 0.6rem; }
.sl-photo { margin: 0; display: grid; gap: 0.35rem; }
.sl-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--butter); }
.sl-photo label { font-size: 0.85rem; font-weight: 600; color: var(--ink); display: grid; gap: 0.2rem; }
.sl-fb-link { margin-top: var(--space-2); text-align: center; }
.sl-foot { max-width: 760px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 1.75rem) calc(var(--space-4) + env(safe-area-inset-bottom)); text-align: center; font-size: 0.95rem; }
.sl-main { padding-bottom: var(--space-3); }
.sl-fb { border: 0; border-radius: var(--radius-md); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--cream-card); color: var(--ink); }
.sl-fb::backdrop { background: rgba(59, 38, 48, 0.45); }
.sl-fb-form { padding: var(--space-3) clamp(16px, 4vw, 1.75rem); display: grid; gap: 0.4rem; }
.sl-fb-form textarea, .sl-fb-form input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #9C8491; border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; }
.sl-fb-form .sl-label { margin-top: 0.6rem; }
.sl-fb-rec { display: flex; flex-direction: column; align-items: center; margin: 0.6rem 0; }
.sl-rec-sm { width: 120px; height: 120px; font-size: 1rem; }
.sl-rec-sm .sl-rec-dot { width: 18px; height: 18px; }
/* Intake (story details) */
.sl-intake .sl-q { margin-bottom: var(--space-2); }
.sl-intake .sl-label { margin-top: 0; }
.sl-field { border: 0; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.sl-field legend { padding: 0; margin-bottom: 0.35rem; }
.sl-opts { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.sl-opt { display: inline-flex; align-items: center; gap: 0.45rem; border: 1.5px solid #9C8491; border-radius: 999px; padding: 0.45rem 0.85rem; background: #fff; color: var(--ink); font-size: 0.95rem; cursor: pointer; }
.sl-opt:has(input:checked) { border-color: var(--clay); background: #FFF7F7; }
.sl-opt input { accent-color: var(--clay); width: 1.05rem; height: 1.05rem; margin: 0; }
.sl-rows { display: grid; gap: 0.45rem; }
.sl-person { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.45rem; }
@media (max-width: 520px) { .sl-person { grid-template-columns: 1fr; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); } }
/* Record */
.sl-status-row { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.6rem; }
.sl-followups { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.sl-followups .sl-h3 { margin-top: 0; }
.sl-heard summary { cursor: pointer; font-weight: 600; color: var(--clay); margin-top: 0.4rem; }
.sl-heard ol { padding-left: 1.3rem; color: var(--ink); }
.sl-approve { margin-top: 0.6rem; font-weight: 600 !important; }
/* Birth plan import */
.sl-plan-group { margin-bottom: var(--space-2); }
.sl-plan-item { display: grid; gap: 0.35rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.sl-plan-item .sl-check { align-items: flex-start; }
.sl-plan-item .sl-check input { margin-top: 0.25rem; flex: none; }
/* Add to this answer (Nov 8, 2026). */
.sl-redo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0.6rem 0 0.9rem; }
.sl-replace { font-weight: 400; font-size: 0.9rem; }
.sl-extras { margin: 0.4rem 0 0.8rem; }
.sl-extras summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sl-extra p { margin: 0.3rem 0 0; }

/* Phone layout and moving between questions (Jeff, Nov 8, 2026: "hard to even find the question"). */
.sl-chapter { border: 1.5px solid var(--clay); border-top-width: 5px; }
.sl-chapter > .eyebrow { color: var(--clay); margin-bottom: 0; }
.sl-prompt:focus { outline: none; }
.sl-chapter.sl-fresh { animation: sl-fresh 0.9s ease-out; }
@keyframes sl-fresh { from { background: #FFF1F1; box-shadow: 0 0 0 5px var(--rose-soft); } to { background: var(--cream-card); box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .sl-chapter.sl-fresh { animation: none; } }
@media (max-width: 759px) {
  .sl-header { padding: 0.5rem 16px; }
  .sl-header .logo { font-size: 1.12rem; }
  .sl-tag { font-size: 0.62rem; padding: 0.2rem 0.55rem; }
  .sl-main { padding-top: 0.75rem; }
  .sl-top { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.15rem 0.8rem; margin-bottom: 0.6rem; }
  .sl-top #back { grid-row: 1; grid-column: 1; font-size: 0.92rem; }
  .sl-top .sl-usage { grid-row: 1; grid-column: 2; font-size: 0.82rem; }
  .sl-top .sl-usage[open] { grid-row: 3; grid-column: 1 / -1; }
  .sl-top .sl-title { grid-row: 2; grid-column: 1 / -1; font-size: 1.3rem; margin: 0; }
  /* Steps and draft tabs wrap instead of scrolling (run 7, Nov 10, 2026: Together, Export and Birth details
     sat past the right edge with no sign the row scrolled). */
  .sl-tabs { margin-bottom: 0.5rem; padding-bottom: 0.2rem; flex-wrap: wrap; overflow-x: visible; }
  .sl-tab { font-size: 0.82rem; padding: 0.35rem 0.75rem; }
  /* One scrolling row of question chips instead of a block of rows. */
  .sl-chips { position: relative; flex-wrap: nowrap; overflow-x: auto; padding: 6px 4px; margin: 0 -4px 0.5rem; scrollbar-width: thin; }
  .sl-chips li { flex: none; }
  .sl-chip { width: 2.3rem; height: 2.3rem; font-size: 0.85rem; }
  .sl-chapter { padding-top: 0.9rem; }
  .sl-recorder { margin: var(--space-2) 0; }
  .sl-rec { width: min(48vw, 170px); height: min(48vw, 170px); font-size: 1.2rem; }
}

/* Export: Send your story to TandemBirth (story store v1, Nov 9, 2026). */
.sl-consent { align-items: flex-start; margin-top: 0.4rem; }
.sl-consent input { margin-top: 0.2rem; flex: none; }
.sl-send-again { margin-top: var(--space-2); }
.sl-send-again summary { font-weight: 600; color: var(--clay); cursor: pointer; }
.sl-send-again[open] summary { margin-bottom: 0.5rem; }
#sendCard .btn { margin-right: 0.5rem; }
/* Where your photos go: the review list in the Send form. */
#photoPlaces:empty { display: none; }
#photoPlaces .sl-h3 { margin: 0.8rem 0 0.2rem; }
.sl-places { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: grid; gap: 0.8rem; }
.sl-place { display: grid; grid-template-columns: 76px 1fr; gap: 0.8rem; align-items: start; padding: 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.sl-place img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; background: var(--butter); }
.sl-place p { margin: 0 0 0.3rem; }
.sl-place-cap { font-weight: 600; color: var(--ink); }
.sl-place-after { font-size: 0.9rem; color: var(--ink-soft); }

/* Together (Nov 9, 2026): share parts of a story, get the partner's, put both voices side by side. */
.sl-paras { list-style: none; padding: 0; margin: 0.6rem 0 1rem; display: grid; gap: 0.5rem; }
.sl-para { align-items: flex-start !important; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.75rem; background: #fff; }
.sl-para input { margin-top: 0.25rem; flex: 0 0 auto; }
.sl-para:has(input:not(:checked)) { background: transparent; color: var(--ink-soft); }
.sl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0.6rem 0; }
.sl-code-form { align-items: flex-end; }
.sl-code-form input { max-width: 12rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sl-code { font-size: 1.3rem; letter-spacing: 0.08em; }
.sl-their summary, .sl-diffs summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.sl-passage { border-left: 3px solid var(--line); padding: 0.2rem 0 0.2rem 0.8rem; margin: 0.7rem 0; }
.sl-passage.is-off p:not(.sl-who) { color: var(--ink-soft); text-decoration: line-through; }
.sl-passage p { margin: 0.2rem 0; max-width: 68ch; }
.sl-who { font-weight: 700; color: var(--clay); font-size: 0.9rem; }
.sl-leave { font-size: 0.88rem; }
.sl-approve { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.4rem; }
.sl-ok { font-weight: 600; color: var(--ink); margin: 0; }
/* Event map: every line can be fixed where it stands (Nov 9, 2026). */
.sl-events label { display: grid; gap: 0.25rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 0.5rem; }
.sl-event-fields { display: grid; gap: 0 0.8rem; }
@media (min-width: 760px) { .sl-event-fields { grid-template-columns: 1fr 2fr; } }
.sl-event-out p { margin: 0 0 0.3rem; }
.sl-events blockquote .sl-linkbtn { font-style: normal; font-size: inherit; }

/* Started from a partner's code (Nov 9, 2026): the shared details to check, and the start-page option. */
.sl-partner-start { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sl-partner-start + .sl-meta { margin-top: 1.4rem; }
.sl-given { display: grid; gap: 0.55rem; margin: 0.8rem 0; }
.sl-given div { display: grid; gap: 0.1rem; }
.sl-given dt { font-weight: 600; color: var(--ink); }
.sl-given dd { margin: 0; color: var(--ink); }

/* Together as one story (Nov 9, 2026, late): story paragraphs read as prose, each question in its own box. */
.sl-passage.sl-onestory { border-left: 0; padding-left: 0; }
.sl-passage.sl-onestory p { color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.sl-ask { background: var(--sand); border-radius: 10px; padding: 0.8rem 0.9rem; margin: 0.9rem 0 1.2rem; }
.sl-ask .sl-label { color: var(--ink); }
.sl-ask textarea { width: 100%; background: #fff; }
.sl-rewrite { margin: 1.2rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Together, editing (Nov 10, 2026): an Edit button per section, the spelling check before saving, and Add more. */
.sl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.sl-sec-head .sl-small { flex: none; }
.sl-edit { display: grid; gap: 0.45rem; margin: 0.6rem 0 1rem; }
.sl-edit textarea { width: 100%; min-height: 12rem; font-size: 1rem; line-height: 1.55; }
.sl-check-panel { background: var(--butter); border-radius: 10px; padding: 0.8rem 0.9rem; }
.sl-diff p { margin: 0.4rem 0; color: var(--ink); }
.sl-diff ins { text-decoration: underline; text-decoration-thickness: 2px; color: var(--clay-dark); background: none; }
.sl-diff del { color: var(--ink-soft); }
.sl-addmore { margin: 1.4rem 0 0.4rem; padding: 1rem 0.9rem; border: 2px dashed var(--line); border-radius: 12px; display: grid; gap: 0.5rem; }
.sl-addmore textarea { width: 100%; }
.sl-added { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.sl-added li span { white-space: pre-wrap; }
.sl-diff del { margin-right: 0.2em; }

/* The notice while the story made together is being written (Nov 10, 2026). */
.sl-writing { background: var(--butter); border-left: 4px solid var(--clay); border-radius: 10px; padding: 0.9rem 1rem; margin: 0.8rem 0; scroll-margin-top: 1rem; }
.sl-writing p { margin: 0.2rem 0; color: var(--ink); }
.sl-writing-title { font-weight: 700; font-size: 1.1rem; }
.sl-writing:focus { outline: 3px solid var(--clay); outline-offset: 2px; }
#resultCard { scroll-margin-top: 1rem; }

/* Plan import (Nov 10, 2026, after run 6): answers grow with their text, and the partner's own answers sit
   in a folded group with a clear header. */
.sl-plan-item textarea { width: 100%; font: inherit; resize: vertical; }
.sl-plan-theirs { margin: var(--space-2) 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.2rem 0.9rem; background: #fff; }
.sl-plan-theirs > summary { cursor: pointer; font-weight: 600; color: var(--clay); min-height: 44px; display: flex; align-items: center; }
.sl-plan-theirs[open] > summary { margin-bottom: 0.4rem; }
.sl-offer .sl-check { align-items: flex-start; margin: 0.3rem 0; }
.sl-offer .sl-check input { margin-top: 0.25rem; flex: none; }
/* Together (Nov 10, 2026): one after the other or woven, and the keep-out check before approval. */
.sl-mode .sl-check, .sl-stack-opts .sl-check { align-items: flex-start; margin: 0.35rem 0; }
.sl-mode .sl-check input, .sl-stack-opts .sl-check input { margin-top: 0.25rem; flex: none; }
.sl-stack-opts input[data-stitle] { width: 100%; margin-bottom: 0.6rem; font: inherit; }
.sl-keepout { background: var(--butter); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin: var(--space-2) 0; }
.sl-keepout .sl-h3 { margin-top: 0; }
.sl-keepout .sl-check { align-items: flex-start; }
.sl-keepout .sl-check input { margin-top: 0.25rem; flex: none; }
.sl-touch { color: var(--clay-dark); font-weight: 600; }
/* The language button (Español or English), on the right of the top bar. */
.sl-header .sl-tag { margin-left: auto; }
.sl-header .lang-btn { margin-left: 0; font-family: inherit; cursor: pointer; }
@media (max-width: 760px) { .sl-header .lang-btn { min-height: 32px; padding: 0.15rem 0.6rem; font-size: 0.78rem; } }

/* Hidden cards stay hidden (the cost card for a certificate holder, Nov 17, 2026). */
.sl-card[hidden]{display:none}
.sl-tip{border:1px solid var(--line,#F0D3D2);border-radius:12px;padding:10px 14px;margin:10px 0;background:#FFF8E5}.sl-tip h2{margin:0 0 4px}
/* Install card and the paste-the-email-link box (Nov 20, 2026). */
.sl-steps{margin:.4rem 0 .6rem;padding-left:1.3rem}.sl-steps li{margin:.35rem 0;line-height:1.45}
.sl-ios-steps{margin-top:8px}
.sl-paste{margin:12px 0;border:1px solid var(--line,#F0D3D2);border-radius:12px;padding:10px 14px;background:#fff}
.sl-paste summary{cursor:pointer;font-weight:600;color:var(--clay,#8E3B52)}
.sl-paste .sl-form{margin-top:8px}

/* The free, short Birth Story (Nov 20, 2026): the upgrade card, and printing one version of the story. */
.sl-upgrade { background: var(--butter); border-color: #E6D69A; }
.sl-upgrade .eyebrow { color: var(--clay-dark); }
.sl-upgrade ul.sl-plain { margin: 0.25rem 0 1rem; padding-left: 1.2rem; list-style: disc; }
.sl-upgrade ul.sl-plain li { margin: 0.3rem 0; }
.sl-print { display: none; }
@media print {
  body.sl-printing > *:not(.sl-print) { display: none !important; }
  body.sl-printing { background: #fff; }
  body.sl-printing .sl-print { display: block; max-width: 6.5in; margin: 0 auto; color: #000; font-family: Georgia, "Times New Roman", serif; font-size: 12pt; line-height: 1.6; }
  body.sl-printing .sl-print h1 { font-size: 22pt; margin: 0 0 0.2in; }
  body.sl-printing .sl-print h3, body.sl-printing .sl-print h4 { font-size: 14pt; margin: 0.25in 0 0.1in; }
  body.sl-printing .sl-print .sl-print-by { font-style: italic; margin: 0 0 0.3in; }
  body.sl-printing .sl-print p { margin: 0 0 0.16in; orphans: 2; widows: 2; }
}

/* The question card, tightened (Jeff, Nov 20, 2026: "why are storylab cards for each recording sooo big? so much
   whitespace"). The record button sits in a row with its status line, the file choosers are one line each, the
   answer box starts four lines tall and grows with the words (app.js), the photos are a fold that opens once
   there is a photo, and the gaps between the lines are about half what they were. */
.sl-chapter { padding-bottom: 1rem; }
.sl-chapter > p { margin-top: 0; margin-bottom: 0.45rem; }
.sl-chapter > .sl-prompt { margin: 0.3rem 0 0.4rem; }
.sl-chapter .sl-recorder { flex-direction: row; justify-content: flex-start; align-items: center; gap: 1rem; margin: 0.8rem 0 0.7rem; }
.sl-chapter .sl-rec { flex: none; width: 112px; height: 112px; font-size: 1rem; line-height: 1.15; gap: 0.35rem; text-align: center; box-shadow: 0 6px 16px rgba(142, 59, 82, 0.25); }
.sl-chapter .sl-rec-dot { width: 18px; height: 18px; }
.sl-chapter .sl-timer { margin: 0; font-size: 1.05rem; }
.sl-chapter .sl-upload { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; font-size: 0.92rem; }
.sl-chapter .sl-upload input { font-size: 0.82rem; }
.sl-chapter > .sl-label { margin-top: 0.7rem; }
.sl-chapter #transcript { min-height: 6.4rem; }
.sl-chapter .sl-player { margin: 0.4rem 0; }
.sl-chapter .sl-redo { margin: 0.4rem 0 0.5rem; }
.sl-chapter .sl-status-row { margin-top: 0.4rem; }
.sl-chapter .sl-photos { margin-top: 0.9rem; padding-top: 0; }
.sl-photos > summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); padding: 0.65rem 0; }
.sl-photos > summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.sl-photos[open] > summary { padding-bottom: 0.4rem; }
.sl-photos p { margin: 0 0 0.45rem; }
.sl-chapter .sl-nav { margin-top: 1rem; }
.sl-chapter .sl-fb-link { margin: 0.6rem 0 0; }


/* The header menu (Nov 26, 2026): feedback lives here, out of the way. */
.sl-menu { position: relative; margin-left: 0.5rem; }
.sl-menu > summary { list-style: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--clay); padding: 0.5rem 0.6rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.sl-menu > summary::-webkit-details-marker { display: none; }
.sl-menu > summary:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.sl-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(59, 38, 48, 0.12); padding: 0.4rem 0.8rem; white-space: nowrap; }
.sl-menu-list .sl-linkbtn { min-height: 44px; }
