.story-wizard{max-width:880px;margin:24px auto 60px;padding:24px;background:#fffaf0;border-radius:22px;color:#304533}.story-wizard h1{font-size:clamp(26px,4vw,36px);line-height:1.2}.story-wizard h2{font-size:24px;line-height:1.3}.story-wizard p,.story-wizard label,.story-wizard summary{font-size:18px;line-height:1.5}.story-wizard .sw-note{font-size:16px;color:#59654f}.story-wizard label{display:block;font-weight:600;margin:16px 0 8px}.story-wizard label span,.story-wizard summary span{font-size:15px;font-weight:400;color:#65705d}.story-wizard textarea,.story-wizard input:not([type=radio]):not([type=hidden]),.story-wizard select{box-sizing:border-box;width:100%;min-height:52px;padding:14px;background:#fffef9;border:1px solid #98a389;border-radius:12px;color:#243c2b;font:inherit;font-size:18px}.story-wizard textarea{resize:vertical;line-height:1.6}.story-wizard button{min-height:56px;border-radius:12px;padding:14px 20px;font:inherit;font-size:19px;font-weight:600;cursor:pointer}.story-wizard button:disabled{opacity:.55;cursor:wait}.sw-primary,.sw-voice{background:#456643;color:white;border:2px solid #456643}.story-wizard .sw-voice{display:block;width:100%;min-height:80px;font-size:24px;margin:20px 0 8px}.story-wizard .sw-voice[aria-pressed=true]{background:#a34532;border-color:#a34532}.sw-secondary{background:#f2eedf;color:#304533;border:1px solid #a8b298}.sw-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.sw-actions .sw-primary{flex:1}.sw-progress{color:#60744d}.sw-versions{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sw-version{border:2px solid #d7ddc7;border-radius:16px;padding:16px}.sw-version:has(input:checked){border-color:#456643;background:#f2f5e8}.story-wizard .sw-choice{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 0 12px}.sw-choice input{width:24px;height:24px;accent-color:#456643;flex-shrink:0}.story-wizard details{border:1px solid #bcc6ae;border-radius:12px;margin:24px 0;padding:14px}.story-wizard summary{cursor:pointer;padding:6px;min-height:44px}.sw-years{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sw-errors,.story-wizard .errorlist{color:#963b29}.sw-back{display:inline-block;min-height:44px;padding:8px 0;color:#456643}.story-wizard :focus-visible{outline:3px solid #c69344;outline-offset:3px}.story-wizard [hidden]{display:none!important}.sw-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#photo-preview{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}#photo-preview img{width:90px;height:90px;object-fit:contain;background:#eee8d8;border-radius:8px}
@media(max-width:640px){.story-wizard{margin:12px auto;padding:18px}.sw-versions{grid-template-columns:1fr}.sw-years{grid-template-columns:1fr}.story-wizard button{width:100%}.sw-actions{flex-direction:column}.story-wizard .sw-voice{font-size:22px}.story-wizard h2{font-size:23px}}

/* Compact, one-screen writing step. Normal document flow remains as a no-JS fallback. */
body:has(.sw-enhanced)>.site-header,body:has(.sw-enhanced)>.footer{display:none}
body:has(.sw-enhanced)>main.wrap{width:100%;max-width:none;margin:0;padding:0}
.story-wizard.sw-enhanced{box-sizing:border-box;position:relative;display:flex;flex-direction:column;max-width:900px;margin:0 auto;padding:12px 22px max(12px,env(safe-area-inset-bottom));min-height:100dvh;border-radius:0}
.sw-enhanced .sw-back{margin:0;padding:8px 0;min-height:36px;font-size:16px;box-sizing:border-box}
.sw-enhanced h1{font-size:26px;margin:4px 0 12px;line-height:1.2}
.sw-enhanced .sw-progress{position:absolute;top:20px;right:22px;margin:0;font-size:15px;line-height:20px}
.sw-enhanced label.sw-photo-label,.sw-enhanced #guest-photos{display:none}
.sw-enhanced #attach-photos{width:100%;min-height:48px;padding:10px 14px;font-size:18px;margin:0}
.sw-enhanced .sw-photo-note{margin:4px 0;text-align:center;font-size:14px}
.sw-enhanced #photo-status:empty,.sw-enhanced #voice-status:empty,.sw-enhanced #photo-preview:empty{display:none}
.sw-enhanced #photo-preview{flex-wrap:nowrap;overflow-x:auto;margin:4px 0;flex-shrink:0}
.sw-enhanced #photo-preview img{width:48px;height:48px;flex-shrink:0}
.sw-enhanced #photo-status{margin:2px 0;font-size:14px}
.sw-enhanced #voice-status{font-size:16px;line-height:1.3;margin:4px 0}
.sw-enhanced[data-current-step="1"]{height:100dvh;min-height:560px}
.sw-enhanced[data-current-step="1"] form{display:flex;flex-direction:column;flex:1;min-height:0}
.sw-enhanced[data-current-step="1"] [data-step="1"]{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}
.sw-enhanced [data-step="1"] #write-title,.sw-enhanced [data-step="1"] label[for="id_original_text"]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0}
.sw-enhanced [data-step="1"]>.sw-note:not(.sw-photo-note){display:none}
.sw-enhanced [data-step="1"] .sw-voice{flex-shrink:0;min-height:72px;font-size:23px;margin:0;padding:12px}
.sw-enhanced [data-step="1"] textarea{flex:1;min-height:100px;height:100px;margin:0;resize:none;font-size:18px;line-height:1.5}
.sw-enhanced #step-next{flex-shrink:0;min-height:56px;margin:0}
@media(min-width:700px){.sw-enhanced[data-current-step="1"]{max-height:900px;min-height:560px}.sw-enhanced[data-current-step="1"] textarea{font-size:20px}}
@media(max-width:480px){.story-wizard.sw-enhanced{padding-left:16px;padding-right:16px}.sw-enhanced .sw-progress{right:16px}.sw-enhanced h1{font-size:24px}.sw-enhanced [data-step="1"] .sw-voice{font-size:22px}}
