/* Scoped to the reviewed story wizard and completion page. */
.story-wizard {
  max-width:760px;margin:0 auto;padding:36px 44px 40px;
  .story-progress {margin:-12px -8px 30px;}
  .star-road {display:block;width:100%;height:auto;overflow:visible;}
  > a {display:inline-block;margin-bottom:24px;font-size:14px;}
  h1 {margin:0 0 24px;font:700 clamp(1.5rem,3vw,1.8rem)/1.25 Georgia,serif;letter-spacing:-.025em;}
  h1:focus {outline:none;}
  fieldset {min-width:0;}
  input,button,select,textarea {font:inherit;border:1.5px solid #829583;border-radius:4px;padding:12px 16px;}
  input,select,textarea {width:100%;color:#29332d;background:#fffdf7;}
  input,select {min-height:52px;}
  textarea {resize:vertical;}
  button {min-height:46px;color:#3f775e;background:#fffaf0;cursor:pointer;}
  button:hover {background:#f6efd9;}
  button.primary {min-height:52px;background:#3f775e;color:#fffaf0;border-color:#29332d;font-weight:750;box-shadow:4px 4px 0 #ce3e32;}
  button.primary:hover {background:#315f4a;}
  :is(button,input,select,textarea):focus-visible,.choice:has(:focus-visible) {outline:3px solid #ce3e32;outline-offset:3px;}
  .departure-time-row {display:flex;align-items:center;gap:10px;}
  .departure-time-row label {flex:1;min-width:0;margin:0;}
  .departure-time-row input {min-width:0;margin:0;}
  #suggest-start {display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;box-shadow:none;}
  .wizard-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:32px;padding:0;border:0;}
  .wizard-actions .primary {flex:1;width:auto;}
  #previous-step {border-color:transparent;padding-inline:8px;box-shadow:none;}
  #save-exit {box-shadow:3px 3px 0 #d08c55;}
  #save-status {font-size:12px;margin-bottom:0;}
  #save-status:empty {display:none;}
  .save-recovery {margin-top:20px;padding:16px;border:1.5px solid #c77b6b;border-radius:6px;background:#fff5ee;}
  .save-recovery h2 {margin:0 0 8px;font:700 17px/1.35 system-ui,sans-serif;}
  .save-recovery p {margin:0 0 12px;font-size:14px;}
  .save-recovery-actions {display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
  .save-recovery-actions button {padding:10px 12px;font-size:14px;min-height:44px;box-shadow:none;}
  .choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .choice {position:relative;display:flex;align-items:center;gap:10px;border:1.5px solid #cdd6c5;border-radius:6px;padding:14px;cursor:pointer;}
  .choice input {position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;}
  .choice:has(:checked) {border-color:#3f775e;background:#eef2e5;box-shadow:2px 2px 0 #3f775e;}
  .choice-mark {width:18px;height:18px;border:1.5px solid #829583;border-radius:50%;flex-shrink:0;}
  .choice:has(:checked) .choice-mark {border:5px solid #3f775e;background:#fffaf0;}
  .icon-picker > legend,.recipient-choice > legend {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
  .icon-options {grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
  .map-icon-option {padding:12px 6px;min-width:0;box-shadow:none;border:1.5px solid #cdd6c5;}
  .map-icon-option .icon-art {width:65px;height:65px;background:none;border:0;box-shadow:none;}
  .map-icon-option .icon-label {font:500 13px/1.3 system-ui,sans-serif;}
  .map-icon-option:has(:checked) {background:#eef2e5;border-color:#3f775e;box-shadow:2px 2px 0 #3f775e;}
  .map-icon-option .icon-selection {display:none;position:absolute;top:7px;right:7px;width:24px;height:24px;place-items:center;border:2px solid #fffaf0;border-radius:50%;background:#234436;color:#fffaf0;pointer-events:none;}
  .map-icon-option .icon-selection svg {display:block;width:16px;height:16px;}
  .map-icon-option:has(:checked) .icon-selection {display:grid;}
  .recipient-choice {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .recipient-choice label {display:flex;align-items:center;gap:8px;border:1.5px solid #cdd6c5;border-radius:6px;padding:14px;font-size:14px;}
  .recipient-choice label:has(:checked) {background:#eef2e5;border-color:#3f775e;box-shadow:2px 2px 0 #3f775e;}
  .recipient-choice input {width:18px;min-height:18px;margin:0;}
  .personal-preview {margin:24px 0 0;border-left:3px solid #b58a43;padding:12px 16px;background:#f5f2e6;font-size:14px;}
  .personal-preview p {margin:6px 0 0;}
  #picker {height:260px;}
  .check {display:flex;align-items:flex-start;gap:10px;margin-top:20px;font-size:14px;}
  .check input {width:18px;height:18px;min-height:0;margin-top:3px;padding:0;accent-color:#3f775e;}
  .summary {margin:0;}
  .summary-row {display:grid;grid-template-columns:135px minmax(0,1fr) auto;align-items:start;gap:12px;padding:16px 0;border-bottom:1px solid #dedfce;}
  .summary-row:first-child {padding-top:0;}
  .summary dt {color:#657260;font-size:13px;}
  .summary dd {margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere;}
  .edit-link {border:0;background:transparent;min-height:28px;padding:0;box-shadow:none;text-decoration:underline;text-underline-offset:3px;font-size:13px;}
  #timeline {border:0;padding:0;margin:0;}
  .timeline {list-style:none;padding:0 0 0 25.5px;margin:0 0 24px 8px;}
  .timeline > li {position:relative;padding:0 0 24px;}
  .timeline > li::before {content:'✧';position:absolute;left:-35px;top:0;width:20px;color:#b58a43;background:#fffaf0;text-align:center;font-size:22px;line-height:1;z-index:1;}
  .timeline > li::after {content:'';position:absolute;left:-25.75px;top:11px;bottom:-11px;width:1.5px;background:#cbb581;}
  .timeline > li:last-child::after {display:none;}
  .timeline > li:last-child {padding-bottom:0;}
  .timeline > .timeline-message::before {content:'·';color:#829583;}
  .milestone-title {font:700 18px Georgia,serif;margin:0 0 10px;}
  .milestone-time {display:block;color:#657260;font:13px system-ui,sans-serif;margin-bottom:4px;}
  .milestone-description {margin:0 0 12px;color:#56645a;font-size:14px;max-width:560px;}
  .milestone-description:empty {display:none;}
  .milestone-actions {display:flex;flex-wrap:wrap;gap:8px;}
  .milestone-actions button {padding:8px 12px;font-size:13px;min-height:42px;border-color:#c6ceb9;box-shadow:none;}
  .chapter {margin:0;padding:12px;border:1px solid #d9dccc;border-radius:8px;background:#fffdf7;box-shadow:0 3px 0 #d9dccc60;overflow:hidden;}
  .chapter-review {margin:-12px -12px 10px;padding:9px 12px;background:#f0f3e9;border-bottom:1px solid #d9dccc;}
  .chapter-title {display:flex;align-items:center;gap:8px;margin:0;font:700 18px/1.25 Georgia,serif;color:#293d31;}
  .chapter-title::before {content:'✓';font:18px system-ui,sans-serif;color:#3f775e;}
  .suggested-chapter {border-color:#cbb581;box-shadow:0 3px 0 #cbb58135;}
  .suggested-chapter .chapter-review {background:#f5efde;border-bottom-color:#e5d9bd;}
  .suggested-chapter .chapter-title::before {content:'✧';font-size:21px;color:#b58a43;}
  .chapter .message-copy {margin:0;}
  .chapter textarea {min-height:58px;height:58px;padding:7px 9px;font-size:14px;line-height:1.5;background:#fffefb;border-color:#cdd3c5;}
  .chapter-actions {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;}
  .chapter-actions .remove-message {display:inline-flex;align-items:center;justify-content:center;margin-left:auto;color:#657260;min-width:40px;min-height:40px;padding:10px;border-radius:4px;text-decoration:none;box-shadow:none;}
  .chapter-actions .remove-message:hover {color:#a53228;background:#f7eae1;}
  .confirm-message {display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:38px;margin:0;border-color:#315f4a;background:#3f775e;color:#fffaf0;padding:6px 10px;font-size:13px;font-weight:700;box-shadow:2px 2px 0 #d08c55;}
  .confirm-message:hover {background:#315f4a;}
  .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
  .message-time {margin:0 0 10px;padding:0;border:0;min-width:0;}
  .message-when-row {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
  .day-toggle {display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:7px 10px;font:500 14px/1.3 system-ui,sans-serif;color:#293d31;border-color:#cdd3c5;background:#fffefb;box-shadow:none;}
  .picker-chevron {display:block;flex-shrink:0;}
  .clock-fields {display:flex;align-items:center;gap:0;min-height:40px;padding:0 3px;border:1.5px solid #cdd3c5;border-radius:4px;background:#fffefb;}
  .chapter .clock-fields input {width:29px;min-height:36px;margin:0;padding:4px 2px;border:0;background:transparent;text-align:center;font:500 14px/1.3 system-ui,sans-serif;color:#293d31;font-variant-numeric:tabular-nums;border-radius:2px;}
  .clock-colon {font:500 14px/1.3 system-ui,sans-serif;color:#293d31;}
  .time-toggle {display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:34px;padding:0;border:0;border-left:1px solid #e3e5d9;background:transparent;margin-left:4px;box-shadow:none;}
  .picker-panel {margin-top:10px;padding:12px;border:1px solid #d6d9c8;border-radius:5px;background:#f6f5eb;}
  .message-days {display:flex;flex-wrap:wrap;gap:8px;}
  .message-days button {min-height:42px;padding:8px 12px;font-size:13px;border-color:#cdd3c5;box-shadow:none;}
  .clock-choice-group + .clock-choice-group {margin-top:12px;}
  .clock-choice-group p {margin:0 0 6px;font-size:12px;color:#657260;font-weight:650;}
  .clock-options {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;}
  .clock-options button {min-height:38px;padding:4px 0;border:1px solid transparent;background:#fffdf7;font-size:13px;font-variant-numeric:tabular-nums;box-shadow:none;}
  .clock-options button[aria-pressed=true],.message-days button[aria-pressed=true] {background:#3f775e;color:#fffaf0;border-color:#3f775e;}
  .clock-options button:disabled {opacity:.35;cursor:default;}
  .picker-done {display:block;min-height:36px;margin:10px 0 0 auto;padding:4px 12px;font-size:13px;border-color:#aebca5;box-shadow:none;}
  .setup-memory {margin-top:24px;font-size:13px;}
  .setup-memory p {font-size:13px;}
  .ready-story-title {margin:0 0 18px;font-size:18px;font-weight:650;}
  .ready-summary {margin:0 0 26px;}
  .ready-summary > div {display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:8px 0;border-bottom:1px solid #e3e3d4;}
  .ready-summary dt {font-size:13px;color:#657260;}
  .ready-summary dd {margin:0;font-size:14px;font-weight:550;}
  .ready-actions,.ready-secondary {display:flex;align-items:center;flex-wrap:wrap;gap:12px;}
  .ready-actions .primary {width:auto;flex:1;}
  .ready-actions > button:last-child {box-shadow:3px 3px 0 #d08c55;}
  #plan-story {position:relative;min-height:68px;padding:14px 104px 14px 16px;overflow:visible;isolation:isolate;}
  #plan-story:disabled {opacity:1;background:#647d6a;cursor:not-allowed;}
  .price-ribbon {position:absolute;top:-5px;bottom:-5px;right:18px;width:66px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;color:#fffaf0;background:linear-gradient(90deg,#9e3028,#b43b30 20%,#b43b30 80%,#9e3028);border-left:1px solid #c65b4b;border-right:1px solid #8e2e27;box-shadow:2px 0 2px #29332d18;font-size:10px;font-weight:500;line-height:1.2;pointer-events:none;}
  .price-ribbon::before {content:'';position:absolute;left:100%;top:0;width:5px;height:5px;background:#79271f;clip-path:polygon(0 0,100% 100%,0 100%);}
  .price-ribbon::after {content:'';position:absolute;top:100%;left:-1px;width:calc(100% + 2px);height:8px;background:linear-gradient(90deg,#9e3028,#b43b30 20%,#b43b30 80%,#9e3028);clip-path:polygon(0 0,100% 0,100% 100%,50% 30%,0 100%);}
  .ribbon-ornaments {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
  .price-ribbon strong {font-size:18px;font-weight:750;white-space:nowrap;}
  .plan-story-label {display:block;line-height:1.3;}
  .ready-secondary {margin-top:20px;justify-content:space-between;}
  #try-story {display:inline-flex;align-items:center;gap:8px;border-color:#c6ceb9;box-shadow:none;}
  .schedule-availability {font-size:13px;margin:16px 0 0;}
}
@media(max-width:600px){
 body:has(.story-wizard) main {padding:0;margin-top:24px;}
 .story-wizard {width:100%;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none;padding:24px max(12px,env(safe-area-inset-right)) 28px max(12px,env(safe-area-inset-left));
  .story-progress {margin:0 -2px 20px;}
  .wizard-actions .primary {order:-1;flex-basis:100%;}
  #previous-step {margin-right:auto;} #save-exit {margin-left:auto;}
  .icon-options {grid-template-columns:repeat(2,minmax(0,1fr));}
  .summary-row {grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;}
  .summary dt,.summary dd {grid-column:1;}
  .summary .edit-link {grid-column:2;grid-row:span 2;align-self:center;}
  .timeline {padding-left:20px;margin-left:0;}
  .timeline > li::before {left:-27.5px;}
  .timeline > li::after {left:-18.25px;}
  .clock-options {grid-template-columns:repeat(6,minmax(0,1fr));}
  .ready-actions {row-gap:20px;}
  .ready-actions .primary {flex-basis:100%;}
  .ready-actions > button:last-child {width:100%;}
  .ready-summary > div {display:block;}
  .ready-summary dd {margin-top:3px;}
 }
}
.rehearsal-controls .rehearsal-clock {display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;font-size:14px;margin-top:16px;}
.rehearsal-controls #rehearsal-seek {width:100%;min-height:32px;padding:0;accent-color:#3f775e;}
.rehearsal-controls .rehearsal-transport {display:flex;flex-wrap:wrap;gap:8px;}
.rehearsal-controls .rehearsal-transport button {min-height:42px;padding:8px 12px;font-size:14px;}
.rehearsal-controls .rehearsal-speed-label {display:flex;gap:8px;align-items:center;margin:0;font-size:13px;}
.rehearsal-controls #rehearsal-speed {width:82px;min-height:42px;margin:0;padding:6px;font-size:14px;}

/* The same compact date and clock controls in foundation questions and focused edits. */
.date-time-picker {display:block;min-width:0;font:500 14px/1.3 system-ui,sans-serif;color:#293d31;}
.date-time-picker .message-when-row {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.date-time-picker .day-toggle {display:inline-flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:8px 10px;border:1.5px solid #cdd3c5;border-radius:4px;background:#fffefb;color:inherit;font:inherit;box-shadow:none;}
.date-time-picker .picker-chevron {display:block;flex-shrink:0;}
.date-time-picker .clock-fields {display:flex;align-items:center;gap:0;min-height:44px;padding:0 3px;border:1.5px solid #cdd3c5;border-radius:4px;background:#fffefb;}
.date-time-picker .clock-fields input {display:block;width:29px;min-width:0;min-height:40px;height:40px;margin:0;padding:4px 2px;border:0;border-radius:2px;background:transparent;color:inherit;text-align:center;font:inherit;font-variant-numeric:tabular-nums;}
.date-time-picker .clock-colon {font:inherit;}
.date-time-picker .time-toggle {display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:34px;margin:0 0 0 4px;padding:0;border:0;border-left:1px solid #e3e5d9;border-radius:3px;background:transparent;box-shadow:none;}
.date-time-picker .picker-panel {display:block;width:min(100%,340px);margin-top:10px;padding:12px;border:1px solid #d6d9c8;border-radius:5px;background:#f6f5eb;}
.date-time-picker [hidden] {display:none;}
.date-time-picker .calendar-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.date-time-picker .calendar-heading strong {font:600 14px/1.3 system-ui,sans-serif;}
.date-time-picker .calendar-heading button {width:36px;min-height:36px;padding:0;font-size:22px;}
.date-time-picker .calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
.date-time-picker .calendar-grid button {min-width:0;min-height:36px;padding:4px 0;border:1px solid transparent;}
.date-time-picker .weekday {text-align:center;padding:4px 0;color:#657260;font-size:12px;}
.date-time-picker .clock-choice-group {display:block;}
.date-time-picker .clock-choice-group + .clock-choice-group {margin-top:12px;}
.date-time-picker .clock-choice-group > strong {display:block;margin-bottom:6px;font-size:12px;color:#657260;}
.date-time-picker .clock-options {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;}
.date-time-picker .picker-panel button {font:500 13px/1.3 system-ui,sans-serif;color:inherit;background:#fffdf7;border-radius:4px;box-shadow:none;}
.date-time-picker .clock-options button {min-width:0;min-height:40px;padding:4px 0;border:1px solid transparent;}
.date-time-picker .picker-panel button[aria-pressed=true] {background:#3f775e;color:#fffaf0;border-color:#3f775e;}
.date-time-picker .picker-panel button:hover {background:#edf1e5;}
.date-time-picker .picker-panel button[aria-pressed=true]:hover {background:#315f4a;}
.date-time-picker .picker-done {display:block;margin:10px 0 0 auto;min-height:36px;padding:6px 12px;border:1px solid #aebca5;}
.date-time-picker :is(button,input):focus-visible {outline:3px solid #ce3e32;outline-offset:2px;}
.story-wizard .departure-time-row {align-items:flex-start;}
