/* Stories use the same panel, palette and type scale as the saved wheels. */
#sparkContent .story-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--panel-copy, var(--ink)); font-size: 14px; line-height: 1.85; margin: 18px 0; }
#sparkContent .story-status { color: var(--ice); font-size: 11px; letter-spacing: .04em; line-height: 1.6; margin: 10px 0 4px; }
#sparkContent .story-clock { color: var(--subtle); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.6; min-height: 18px; margin: 0 0 12px; }
#sparkContent .story-choices { display: grid; gap: 8px; }
#sparkContent .story-choice { display: flex; flex-direction: column; gap: 7px; text-align: left; margin: 0; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
#sparkContent .story-choice.is-selected { border-color: var(--ice); background: color-mix(in srgb, var(--ice) 10%, transparent); }
#sparkContent .story-choice-count { font-size: 10px; color: var(--subtle); }
#sparkContent .story-choice:disabled { opacity: .72; }
#sparkContent .story-choice.is-selected:disabled { opacity: 1; }
#sparkContent .story-history,
#sparkContent .story-rules,
#sparkContent .story-settings { border-top: 1px solid var(--line); margin: 18px 0; padding: 12px 0 0; }
#sparkContent .story-history summary,
#sparkContent .story-rules summary,
#sparkContent .story-settings summary { cursor: pointer; font-size: 12px; color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }
#sparkContent .story-history-round { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
#sparkContent .story-history-round .story-text { font-size: 12px; line-height: 1.8; }
#sparkContent .story-history-counts { padding-left: 16px; color: var(--subtle); font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
#sparkContent .story-owner { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 8px; }
#sparkContent .story-owner:empty { display: none; }
#sparkContent .story-owner h3,
#sparkContent .story-scene-editor h3,
#sparkContent .story-preview h3 { font-size: 12px; font-weight: 500; line-height: 1.7; color: var(--ink); }
#sparkContent .story-editor-fields { display: block; min-width: 0; padding: 0; margin: 0; border: 0; }
#sparkContent .story-field { display: block; margin: 14px 0; color: var(--subtle); font-size: 11px; line-height: 1.7; }
#sparkContent .story-field > span { display: block; margin-bottom: 6px; }
#sparkContent .story-field input,
#sparkContent .story-field textarea,
#sparkContent .story-field select { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--input, var(--bg)); font: inherit; font-size: 12px; line-height: 1.7; }
#sparkContent .story-field textarea { resize: vertical; }
#sparkContent .story-field input:focus-visible,
#sparkContent .story-field textarea:focus-visible,
#sparkContent .story-field select:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
#sparkContent .story-scene-editor { border-block: 1px solid var(--line); margin: 22px 0; padding: 10px 0 18px; }
#sparkContent .story-choice-edit { padding: 0 12px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
#sparkContent .story-choice-edit .action { font-size: 10px; padding-block: 8px; }
#sparkContent .story-preview { margin-top: 20px; padding: 14px; border: 1px solid var(--ice); border-radius: 12px; }
#sparkContent .story-preview[hidden],
#sparkContent .story-history[hidden] { display: none; }
#sparkContent .story-library > label { display: block; margin-top: 20px; color: var(--subtle); font-size: 11px; }
#sparkContent .story-file { box-sizing: border-box; width: 100%; color: var(--subtle); font: inherit; font-size: 11px; line-height: 1.6; padding: 10px 0; }
#sparkContent .story-file::file-selector-button { border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--input, var(--bg)); padding: 8px; margin-right: 8px; cursor: pointer; }
#sparkContent .story-summary { font-size: 12px; line-height: 1.8; color: var(--subtle); overflow-wrap: anywhere; }
@media(max-width: 360px) {
  #sparkContent .story-text { font-size: 13px; }
  #sparkContent .story-choice-edit { padding-inline: 9px; }
}
