.story-tool { padding-bottom: 64px; }
.story-intro { max-width: 760px; padding: 58px 0 32px; }
.story-intro h1 { margin-bottom: 24px; max-width: 700px; }
.story-intro .lead { max-width: 690px; }
.story-intro-note { max-width: 640px; color: var(--muted, #606964); font-size: 15px; }
.story-local-note { display: flex; align-items: flex-start; gap: 14px; border: 1px solid #c6d0c3; background: #f0f4ec; padding: 18px 22px; margin: 0 0 28px; border-radius: 5px; }
.story-local-note p { margin: 0; font-size: 14px; max-width: 990px; }
.story-note-mark { display: flex; justify-content: center; align-items: center; flex: 0 0 23px; width: 23px; height: 23px; border: 1px solid var(--forest, #234b3e); border-radius: 50%; font-size: 14px; font-weight: 650; }
.story-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.story-workflow { min-width: 0; }
.story-card { padding: 28px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line, #d9ddd6); border-radius: 6px; }
.story-section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.story-section-heading h2 { font-size: 23px; line-height: 1.3; padding-top: 2px; }
.story-step { display: flex; flex: 0 0 32px; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--sage, #edf1ea); color: var(--forest, #234b3e); font-size: 14px; font-weight: 650; }
.story-help { color: var(--muted, #606964); font-size: 14px; }
.story-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.story-field { margin: 18px 0; min-width: 0; }
.story-field label { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.story-field label span { font-weight: 400; color: var(--muted, #606964); }
.story-field input, .story-field select, .story-field textarea { width: 100%; min-height: 48px; border: 1px solid #a4afa3; border-radius: 4px; background: var(--paper, #fbfaf7); color: var(--ink, #202d28); padding: 12px; font: inherit; font-size: 16px; line-height: 1.5; }
.story-field textarea { display: block; resize: vertical; }
.story-field textarea:focus-visible, .story-field input:focus-visible, .story-field select:focus-visible, .story-tool button:focus-visible, .story-tool summary:focus-visible, .story-tool input[type="checkbox"]:focus-visible { outline: 3px solid var(--clay, #995237); outline-offset: 3px; }
.story-field input::placeholder, .story-field textarea::placeholder { color: #72776f; opacity: 1; }
.story-small { color: var(--muted, #606964); font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.story-picker { border-block: 1px solid var(--line, #d9ddd6); padding: 5px 0; }
.story-picker summary, .story-export-more summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-size: 14px; line-height: 1.4; }
.story-picker summary > span { float: right; margin-left: 12px; color: var(--muted, #606964); font-size: 12px; }
.story-picker > .story-small { padding-bottom: 12px; }
.story-choices { border: 0; padding: 0; margin: 0; }
.story-question-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 14px; line-height: 1.5; }
.story-question-choice + .story-question-choice { border-top: 1px solid #ecefe8; }
.story-question-choice input { flex: 0 0 19px; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--forest, #234b3e); }
.story-choice-description { display: block; }
.story-choice-description small { display: block; color: var(--muted, #606964); margin-bottom: 4px; font-size: 11px; }
.story-question-choice:has(input:disabled) { color: #737a72; cursor: default; }
.story-order-heading { padding-top: 25px; }
.story-order-heading h3 { font-size: 16px; }
.story-order-heading p { color: var(--muted, #606964); font-size: 12px; margin: 6px 0 0; }
.story-selected-list { list-style: none; padding: 0; margin: 12px 0 26px; counter-reset: story-question; }
.story-selected-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line, #d9ddd6); }
.story-selected-item::before { counter-increment: story-question; content: counter(story-question, decimal-leading-zero); font-size: 11px; color: var(--muted, #606964); }
.story-select-question { display: block; border: 0; text-align: left; background: transparent; padding: 8px 6px; min-height: 44px; font: inherit; font-size: 13px; line-height: 1.45; border-radius: 3px; }
.story-select-question[aria-current="step"] { background: var(--sage, #edf1ea); color: var(--forest, #234b3e); font-weight: 600; }
.story-select-question:hover { text-decoration: underline; text-underline-offset: .2em; }
.story-reorder { display: flex; gap: 2px; }
.story-reorder button { display: flex; justify-content: center; align-items: center; min-width: 38px; min-height: 44px; border: 1px solid transparent; background: transparent; font-size: 19px; line-height: 1; border-radius: 3px; }
.story-reorder button:hover:not(:disabled) { background: var(--sage, #edf1ea); border-color: var(--line, #d9ddd6); }
.story-reorder button:disabled { opacity: .28; }
.story-answer-panel { padding: 24px; background: #f2f5ee; border-radius: 5px; }
.story-answer-panel .eyebrow { font-size: 12px; margin-bottom: 12px; }
.story-answer-panel h3 { font-size: 22px; line-height: 1.4; letter-spacing: -.35px; }
.story-answer-panel h3:focus { outline: none; }
.story-answer-panel textarea { background: #fff; }
.story-question-navigation { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.story-question-navigation .button { gap: 12px; padding: 11px 14px; font-size: 12px; }
.story-tool .button:disabled { cursor: not-allowed; opacity: .42; }
.story-sidebar { min-width: 0; position: sticky; top: 24px; }
.story-preview-card { border: 1px solid #bec9ba; border-top: 3px solid var(--forest, #234b3e); background: #fff; border-radius: 4px; padding: 25px; }
.story-preview-card > .eyebrow { margin-bottom: 8px; }
.story-preview-card > h2 { font-size: 25px; margin-bottom: 12px; }
.story-preview { font-size: 13px; overflow-wrap: anywhere; }
.story-preview-meta { margin: 20px 0; }
.story-preview-meta > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line, #d9ddd6); padding: 10px 0; }
.story-preview-meta dt { color: var(--muted, #606964); font-size: 11px; }
.story-preview-meta dd { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.story-preview-question { border-top: 1px solid var(--line, #d9ddd6); padding: 14px 0; }
.story-preview-question h3 { font-size: 13px; font-weight: 600; line-height: 1.5; }
.story-preview-question p { font-size: 13px; margin: 8px 0 0; white-space: pre-wrap; }
.story-preview-question .story-unanswered { color: var(--muted, #606964); font-style: italic; font-size: 12px; }
.story-preview-extra { margin-top: 12px; }
.story-preview-extra summary { cursor: pointer; min-height: 44px; padding-block: 10px; color: var(--muted, #606964); font-size: 12px; }
.story-export-actions { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line, #d9ddd6); }
.story-export-actions > .button { width: 100%; gap: 8px; }
.story-text-button { display: block; border: 0; background: transparent; color: var(--forest, #234b3e); min-height: 44px; padding: 10px 0; text-align: left; text-decoration: underline; text-underline-offset: .25em; font: inherit; font-size: 13px; line-height: 1.5; }
.story-export-more .story-text-button { font-size: 12px; }
.story-clear-area { margin-top: 18px; border-top: 1px solid var(--line, #d9ddd6); padding-top: 8px; }
.story-clear-area > .story-text-button { color: var(--muted, #606964); }
.story-clear-confirm { padding: 16px; background: var(--paper, #fbfaf7); border: 1px solid var(--line, #d9ddd6); border-radius: 4px; }
.story-clear-confirm h3 { font-size: 16px; line-height: 1.4; }
.story-clear-confirm p { font-size: 13px; margin: 10px 0; }
.story-clear-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.story-clear-buttons .button { font-size: 12px; padding: 10px 12px; }
.story-status { padding: 10px 0; min-height: 40px; font-size: 13px; color: var(--forest, #234b3e); }
.story-closing { border-top: 1px solid var(--line, #d9ddd6); max-width: 780px; padding-top: 32px; margin-top: 22px; }
.story-closing h2 { font-size: 27px; margin-bottom: 14px; }
.story-closing p { font-size: 15px; max-width: 650px; color: var(--muted, #606964); }
.story-notice { padding: 24px; margin-block: 24px; background: var(--sage, #edf1ea); }
.story-notice h2 { font-size: 24px; margin-bottom: 18px; }
.story-notice li { line-height: 1.6; margin-bottom: 12px; }
.story-print-output { display: none; }
@media (max-width: 1000px) {
  .story-workspace { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; }
  .story-card, .story-preview-card { padding: 22px; }
  .story-field-row { grid-template-columns: 1fr; gap: 0; }
  .story-field-row .story-field + .story-field { margin-top: 0; }
  .story-answer-panel { padding: 20px; }
}
@media (max-width: 760px) {
  .story-tool.wrap { width: calc(100% - 36px); }
  .story-intro { padding-top: 38px; }
  .story-intro h1 { font-size: 42px; }
  .story-workspace { display: block; }
  .story-sidebar { position: static; }
  .story-local-note { padding: 16px; }
  .story-local-note p { font-size: 13px; }
  .story-card, .story-preview-card { padding: 20px; }
  .story-section-heading h2 { font-size: 21px; }
  .story-answer-panel { padding: 18px; }
  .story-answer-panel h3 { font-size: 20px; }
  .story-reorder button { min-width: 34px; }
  .story-question-navigation .button { flex: 1 1 130px; }
  .story-preview-card { margin-top: 24px; }
}
@media print {
  body[data-story-print] { background: #fff !important; color: #111 !important; }
  body[data-story-print] .site-header, body[data-story-print] .site-footer, body[data-story-print] .skip-link { display: none !important; }
  body[data-story-print] .story-tool { width: 100%; max-width: none; padding: 0; margin: 0; }
  body[data-story-print] .story-tool > :not(.story-print-output) { display: none !important; }
  body[data-story-print] .story-print-output { display: block !important; font-size: 11pt; }
  .story-print-output h1 { font-size: 24pt; margin-bottom: 8pt; }
  .story-print-output h2 { font-size: 14pt; margin: 18pt 0 8pt; }
  .story-print-output h3 { font-size: 12pt; line-height: 1.4; margin: 15pt 0 8pt; }
  .story-print-output p { font-size: 11pt; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
  .story-print-output .story-print-question { break-inside: avoid; padding-bottom: 9pt; }
  .story-print-output .story-print-answer { min-height: 44pt; border-bottom: 1px solid #aaa; }
  .story-print-output .story-print-label { font-size: 9pt; color: #444; }
  .story-print-output .story-print-footer { margin-top: 20pt; border-top: 1px solid #aaa; padding-top: 10pt; font-size: 9pt; }
}
