body.stories-page{background:#f5f3fb;color:#29245f}.stories-main{max-width:1080px;margin:0 auto;padding:30px 22px 76px}.stories-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 16px;color:#42377f;font-weight:800;text-decoration:none}.stories-back:hover{text-decoration:underline}.stories-card,.stories-library{background:#fff;border:1px solid #e7e4f0;border-radius:32px;padding:clamp(24px,5vw,50px);box-shadow:0 16px 44px #29245f0a}.stories-heading{text-align:center;max-width:790px;margin:0 auto 32px}.stories-kicker{display:inline-block;color:#6758a4;font-size:.9rem;font-weight:900;letter-spacing:.12em}.stories-heading h1{font-size:clamp(2.2rem,5.8vw,3.7rem);line-height:1.05;margin:12px 0;color:#29245f}.stories-heading p{font-size:1.1rem;line-height:1.55;color:#5c5a70;margin:0}.stories-form-row{max-width:850px;margin:0 auto 30px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.stories-form-row label{display:grid;gap:9px;font-weight:800}.stories-form-row select,.stories-form-row input{width:100%;min-height:54px;border:1.5px solid #cbc4e8;border-radius:15px;padding:12px 16px;font:inherit;font-size:1rem;color:#29245f;background:#fff}.stories-form-row input:focus-visible,.stories-form-row select:focus-visible,.story-button:focus-visible,.story-add:focus-visible,.page-remove:focus-visible,.page-order:focus-visible,.page-media-button:focus-visible,.page-pictogram:focus-visible,.saved-action:focus-visible{outline:3px solid #9a83d2;outline-offset:3px}.stories-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.stories-editor-heading h2{font-size:clamp(1.55rem,3vw,2.1rem);margin:0;color:#29245f}.stories-editor-heading p{color:#666278;margin:6px 0 0;line-height:1.45}.story-add{min-height:48px;border:1.5px solid #bcb4de;border-radius:14px;background:#f2effb;padding:10px 16px;font:inherit;font-weight:800;color:#33296e;cursor:pointer;flex:none}.story-pages{display:grid;gap:14px}.story-page-card{border:1.5px solid #ded9ec;border-radius:22px;padding:18px;display:grid;grid-template-columns:minmax(220px,42%) 1fr;gap:18px;align-items:center;background:#fff}.story-page-visual{min-height:190px;border-radius:17px;background:linear-gradient(135deg,#f8f6fd,#eff8f2);display:grid;place-items:center;position:relative;overflow:hidden}.story-page-visual img{width:100%;height:100%;min-height:190px;object-fit:cover;position:absolute;inset:0}.story-page-emoji{font-size:4.3rem;line-height:1;filter:drop-shadow(0 4px 12px #29245f14)}.story-page-editor{display:grid;gap:12px}.story-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.story-page-label{font-weight:900;color:#5d5593;letter-spacing:.08em;font-size:.9rem}.page-tools{display:flex;gap:6px}.page-order,.page-remove{min-width:40px;min-height:40px;border:1px solid #ded9ec;border-radius:11px;background:#faf9fd;color:#39316c;font-size:1.05rem;font-weight:800;cursor:pointer}.page-remove{color:#8d4852}.story-page-text{width:100%;min-height:105px;resize:vertical;border:1.5px solid #ded9ec;border-radius:14px;padding:13px 15px;font:inherit;font-size:1.08rem;line-height:1.5;color:#29245f;background:#fff}.story-page-text:focus{outline:3px solid #9a83d2;outline-offset:2px}.story-media-actions{display:flex;flex-wrap:wrap;gap:8px}.page-media-button,.page-pictogram{min-height:42px;border:1.2px solid #d8d2eb;border-radius:12px;padding:8px 12px;background:#f7f5fc;color:#33296e;font:inherit;font-size:.95rem;font-weight:750;cursor:pointer}.page-pictogram{max-width:170px}.story-page-audio{width:100%;max-width:420px;height:42px}.story-page-status{margin:0;color:#6b6680;font-size:.9rem;line-height:1.4}.stories-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:24px 0 10px}.story-button{min-height:54px;border:1.5px solid #cfc9e2;border-radius:15px;padding:12px 20px;font:inherit;font-size:1rem;font-weight:850;cursor:pointer}.story-button.primary{background:#382b78;color:#fff;border-color:#382b78}.story-button.secondary{background:#faf9fd;color:#302763}.story-status{min-height:1.5em;text-align:center;color:#4b8060;font-weight:750}.stories-note{max-width:850px;margin:20px auto 14px;text-align:left;background:#f0ecfa;border-left:5px solid #8068b3;border-radius:0 20px 20px 0;padding:20px 22px}.stories-note strong{font-size:1.05rem}.stories-note p{margin:6px 0 0;line-height:1.55;color:#474365}.stories-privacy{max-width:850px;margin:0 auto;color:#686579;font-size:.93rem;line-height:1.5}.stories-library{margin-top:24px}.stories-library .stories-editor-heading{margin-bottom:12px}.saved-stories{display:grid;gap:10px}.saved-story{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e7e4f0;padding:14px 0}.saved-story-title{font-weight:850;color:#29245f}.saved-story-date{display:block;margin-top:4px;color:#706d80;font-size:.9rem}.saved-story-actions{display:flex;gap:8px}.saved-action{min-height:42px;border:1px solid #d8d2eb;border-radius:12px;background:#f7f5fc;padding:8px 13px;color:#33296e;font:inherit;font-weight:800;cursor:pointer}.saved-action.delete{color:#8d4852}.library-empty{color:#706d80;margin:0}.story-preview{width:min(780px,calc(100vw - 28px));max-width:none;max-height:calc(100vh - 28px);padding:0;border:0;border-radius:26px;box-shadow:0 24px 90px #20194c33;color:#29245f}.story-preview::backdrop{background:#211a4db0}.preview-inner{padding:clamp(20px,4vw,38px)}.preview-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.preview-top h2{font-size:clamp(1.5rem,4vw,2.2rem);margin:8px 0 18px}.preview-close{width:46px;height:46px;border:1px solid #ded9ec;border-radius:50%;background:#faf9fd;font-size:1.8rem;color:#29245f;cursor:pointer}.preview-visual{height:clamp(190px,36vh,310px);border-radius:19px;background:linear-gradient(135deg,#f8f6fd,#eff8f2);display:grid;place-items:center;overflow:hidden}.preview-visual img{width:100%;height:100%;object-fit:contain}.preview-visual span{font-size:5rem}.preview-text{font-size:clamp(1.25rem,3vw,1.7rem);line-height:1.5;text-align:center;margin:20px auto;max-width:650px;white-space:pre-wrap}.preview-audio{text-align:center;margin:0 auto 12px}.preview-audio audio{max-width:100%}.preview-controls,.preview-footer{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}.preview-controls span{min-width:80px;text-align:center;color:#666278;font-weight:800}.preview-footer{padding-top:8px}@media(max-width:700px){.stories-main{padding:20px 14px 52px}.stories-card,.stories-library{border-radius:24px;padding:22px 16px}.stories-form-row{grid-template-columns:1fr;gap:14px}.stories-editor-heading{align-items:flex-start;flex-direction:column}.story-add{width:100%}.story-page-card{grid-template-columns:1fr;padding:12px}.story-page-visual,.story-page-visual img{min-height:170px}.stories-actions{display:grid;grid-template-columns:1fr}.story-button{width:100%}.saved-story{align-items:flex-start;flex-direction:column}.saved-story-actions{width:100%}.saved-action{flex:1}.preview-controls,.preview-footer{gap:7px}.preview-controls .story-button,.preview-footer .story-button{padding:10px 8px;font-size:.95rem}}
@media print{@page{margin:1.5cm}.topbar,.site-menu,.stories-back,.stories-form-row,.stories-editor-heading,.stories-actions,.stories-status,.stories-note,.stories-privacy,.stories-library,footer,.preview-close,.preview-controls,.preview-footer{display:none!important}.story-preview:not([open]){display:none!important}.story-preview[open]{position:static;display:block;width:100%;max-height:none;box-shadow:none;border:0}.story-preview::backdrop{display:none}.preview-inner{padding:0}.preview-visual{height:8cm}.preview-text{font-size:18pt}.story-page-card{display:none}}
