.story-editor-page,.story-thanks{--ink:#211927;--muted:#706578;--violet:#785198;--line:#ded4e1;color:var(--ink);background:#f6f3f0;font-family:Inter,system-ui,sans-serif;min-width:0}
.story-other[hidden],.story-form-error[hidden]{display:none}
.story-editor-page *,.story-thanks *{box-sizing:border-box}
.story-editor-page{background:radial-gradient(circle at 10% 1%,#e8dced 0,transparent 32%),radial-gradient(circle at 90% 42%,#dce7e7 0,transparent 32%),#f6f3f0;padding:clamp(2rem,6vw,5.5rem) max(16px,env(safe-area-inset-left)) 7rem}
.story-editor-shell{max-width:1520px;margin:auto}.story-editor-intro{max-width:910px;margin:0 auto clamp(2.5rem,5vw,5rem);text-align:center}.story-back{display:inline-flex;padding:.8rem 1.1rem;border:1px solid #c9b7d1;background:#fff9;border-radius:999px;color:#654879;font-size:.78rem;font-weight:700;margin-bottom:2.2rem;box-shadow:0 5px 15px #4b2d5710}.story-kicker{display:block;color:#845997;letter-spacing:.19em;font-size:.68rem;font-weight:800}.story-editor-intro h1,.story-thanks h1{font:400 clamp(2.8rem,6.2vw,6.8rem)/1.06 Georgia,serif;letter-spacing:-.055em;text-wrap:balance;margin:.8rem 0 1.3rem}.story-editor-intro h1 em,.story-thanks h1 em{color:#9766ad}.story-editor-intro>p{font-size:clamp(.96rem,1.25vw,1.08rem);line-height:1.8;color:var(--muted);max-width:66ch;margin:auto}.story-steps{display:flex;justify-content:center;gap:clamp(.6rem,3vw,2.5rem);margin-top:2.1rem;color:#745f7d;font-size:.72rem;font-weight:700;letter-spacing:.06em}.story-steps span{border-bottom:1px solid #cbbace;padding-bottom:.8rem}
.story-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.8fr);gap:clamp(1rem,3vw,3.2rem);align-items:start}.story-form,.story-preview-inner{min-width:0;border:1px solid #ded4df;border-radius:28px;background:linear-gradient(150deg,#fffc,#fdfaf8 56%,#f3eff5);box-shadow:inset 0 1px 0 #fff,0 25px 80px #30203e12}.story-form{padding:clamp(1.1rem,3vw,3.2rem)}.story-form-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}.story-save-state,#story-save-state{color:#7d7282;font-size:.7rem}.story-form label{display:block;min-width:0;margin-bottom:1.35rem;color:#34263c;font-size:.84rem;font-weight:700}.story-form label small{display:block;color:#897d8e;font-size:.68rem;font-weight:500;margin:.3rem 0 .55rem}.story-form input:not([type=checkbox]),.story-form textarea,.story-form select{display:block;width:100%;min-width:0;max-width:100%;margin-top:.55rem;padding:.9rem 1rem;border:1px solid #d8cddd;border-radius:13px;background:#fffdfc;color:#261e2b;font:400 .92rem/1.55 Inter,system-ui,sans-serif;outline:none;transition:border-color .2s,box-shadow .2s}.story-form textarea{resize:vertical;min-height:94px}.story-form input:focus,.story-form textarea:focus,.story-form select:focus{border-color:#9665b1;box-shadow:0 0 0 4px #a77cb522}.story-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.story-section{position:relative;padding:1.25rem;border:1px solid #dfd4e4;border-radius:18px;background:#fff9;margin:1rem 0}.story-section-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.story-section-top strong{font:400 1.35rem Georgia,serif;color:#623d78}.story-section-top button{border:1px solid #e0d2e4;border-radius:999px;padding:.45rem .7rem;background:#fbf6fc;color:#765785;font-size:.7rem;cursor:pointer}.story-section textarea{min-height:210px;font:400 1rem/1.85 Georgia,serif}.story-sections-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin:2rem 0 1rem}.story-sections-head h2{font:400 clamp(1.8rem,3vw,2.5rem)/1.15 Georgia,serif;margin:.35rem 0}.story-sections-head p{color:var(--muted);font-size:.75rem;line-height:1.65;margin:0;max-width:44ch}.story-sections-head>span{font-size:.68rem;white-space:nowrap;color:#846c91}.story-add{border:1px dashed #b69cc3;background:#f8f1fa;border-radius:12px;padding:.9rem 1.1rem;color:#694479;font-weight:700;cursor:pointer}.story-consent{border:1px solid #dbcee0;border-radius:18px;margin:2.3rem 0 1.2rem;padding:1.4rem;background:#f6f0f8}.story-consent legend{padding:0 .5rem;font:400 1.6rem Georgia,serif;color:#482e58}.story-consent>p{font-size:.78rem;line-height:1.7;color:#75687b;margin:0 0 1.3rem}.story-consent label{display:flex;align-items:start;gap:.8rem;font-size:.78rem;line-height:1.6;font-weight:500;margin:.75rem 0}.story-consent input{margin:.25rem 0 0;accent-color:#785198;flex:none;width:18px;height:18px}.story-auth{padding:1.4rem;border-radius:18px;background:linear-gradient(125deg,#21182e,#3c284e);color:#faf3ff}.story-auth strong{font:400 1.45rem Georgia,serif}.story-auth p{font-size:.76rem;line-height:1.7;color:#d4c3dd}.story-auth label{color:#f6eff8}.story-auth a{display:inline-flex;border-bottom:1px solid #b692cc;color:#e7cef1;font-size:.78rem;font-weight:700;padding-bottom:.3rem}.story-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}.story-actions button{min-height:48px;border-radius:999px;border:1px solid #9d7cae;padding:.78rem 1.25rem;background:transparent;color:#563868;font-weight:800;font-size:.76rem;cursor:pointer}.story-actions .story-submit{background:linear-gradient(100deg,#653c82,#9b68af);border-color:#7d5796;color:#fff;box-shadow:0 12px 25px #60417527}.story-actions button:disabled{opacity:.6;cursor:wait}.story-form-error{padding:1rem;border-radius:12px;background:#f9e9eb;color:#8e2c4a;font-size:.78rem;line-height:1.5}.story-form-note{font-size:.68rem;line-height:1.6;color:#8a7f8f}
.story-preview{position:sticky;top:calc(var(--community-header-height,82px) + 22px);max-height:calc(100dvh - var(--community-header-height,82px) - 42px);overflow:auto}.story-preview-inner{padding:clamp(1.5rem,3vw,3.2rem);background:linear-gradient(160deg,#fff,#f5f0f2);min-height:640px}.story-preview-tradition{display:block;color:#93709e;font-size:.75rem;letter-spacing:.08em;margin-top:2.8rem}.story-preview h2{font:400 clamp(2.2rem,4vw,4.4rem)/1.09 Georgia,serif;letter-spacing:-.05em;text-wrap:balance;overflow-wrap:anywhere;margin:.5rem 0}.story-preview-summary{font-size:1rem;line-height:1.8;color:#655b68;margin:1.3rem 0 2rem}.story-preview-byline{border-top:1px solid #d8cddc;border-bottom:1px solid #d8cddc;padding:1rem 0;color:#7c6587;font-size:.74rem}.story-preview-sections{color:#352c36}.story-preview-sections h3{font:400 1.8rem Georgia,serif;line-height:1.2;margin:2rem 0 .8rem}.story-preview-sections p{white-space:pre-wrap;overflow-wrap:anywhere;font:400 1.07rem/1.9 Georgia,serif;margin:0 0 1.5rem}
.story-thanks{min-height:76vh;display:grid;place-items:center;padding:6rem 1.2rem;background:radial-gradient(circle at 50% 28%,#42235d,#110d1d 72%);color:#f5eef7;text-align:center}.story-thanks-inner{max-width:760px}.story-thanks .story-kicker{color:#9ee9df}.story-thanks-symbol{display:block;font-size:4rem;color:#c6a0d9;margin:1rem}.story-thanks h1{font-size:clamp(3rem,7vw,6rem)}.story-thanks>div>p{color:#d7cadd;line-height:1.8;font-size:1rem;max-width:60ch;margin:auto}.story-thanks-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:.8rem;margin:2.5rem 0}.story-thanks-actions a{padding:1rem 1.4rem;border-radius:999px;background:#f7eff8;color:#4c2d60;font-weight:800;font-size:.78rem}.story-thanks-actions a+a{color:#eedff2;background:transparent;border:1px solid #9875ab}.story-thanks small{color:#bfaecc;line-height:1.7}
@media(max-width:1000px){.story-workspace{grid-template-columns:1fr}.story-preview{position:static;max-height:none}.story-preview-inner{min-height:300px}.story-editor-intro{text-align:left}.story-steps{justify-content:flex-start}}
@media(max-width:620px){.story-editor-page{padding-top:2rem}.story-editor-intro h1{font-size:clamp(2.7rem,12vw,4rem)}.story-steps{gap:.45rem;flex-wrap:wrap;font-size:.58rem}.story-form,.story-preview-inner{border-radius:20px}.story-field-grid{grid-template-columns:1fr;gap:0}.story-sections-head{display:block}.story-sections-head>span{display:block;margin-top:.8rem}.story-section{padding:1rem}.story-section textarea{min-height:260px}.story-actions{display:grid}.story-actions button{width:100%}.story-thanks-actions{display:grid}.story-thanks h1{font-size:clamp(2.8rem,12vw,4rem)}}
@media(prefers-reduced-motion:reduce){.story-editor-page *{scroll-behavior:auto!important;transition:none!important}}
