/* A reading surface, not a settings dashboard. */
.story-first #story-files[hidden]{display:none!important}
.story-first .cx-chat-header h1{font-size:17px;margin:4px 0 0}.story-first .cx-chat-header small{font-size:9px;letter-spacing:1.6px;color:#9399a3}.story-stage{padding:12px 24px;border-bottom:1px solid #eff0f3;font-size:12px;color:#67716e;flex:none}
.story-first .cx-chat-scroll{padding:24px}.story-welcome{max-width:410px;margin:7vh auto}.story-welcome>small{font-size:11px;color:#647c6d}.story-welcome h1{font-size:32px;line-height:1.5;letter-spacing:-1px;margin:18px 0}.story-welcome>p{font-size:14px;color:#7d8590;line-height:1.85}.story-welcome button{margin:12px 8px 0 0;border-radius:20px;font-size:12px;background:#fafbf9}.story-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.story-card{border:1px solid #e3e6e4;background:#fff;border-radius:14px;padding:18px;min-width:0;display:flex;flex-direction:column}.story-card>small{font-size:9px;letter-spacing:1px;color:#929c92}.story-card h3{font-size:16px;margin:10px 0;line-height:1.5}.story-card p{font-size:12px;line-height:1.85;color:#646e77;overflow-wrap:anywhere}.story-card details{margin:8px 0 16px}.story-card details summary{font-size:11px;color:#5c7868;cursor:pointer}.story-card details b{display:block;color:#31433b;font-size:10px;margin-bottom:2px}.story-card .story-pick{margin-top:auto;background:#f6f9f6;border-color:#cddcd2;color:#35654b;font-size:12px;border-radius:8px;text-align:left;padding:11px}
.story-manuscript{max-width:730px;background:white;margin:auto;padding:36px 36px 50px;border:1px solid #e8ebe8;border-radius:8px;overflow-wrap:anywhere}.story-manuscript>small{font-size:10px;color:#86918c}.story-manuscript h1{font-size:26px;line-height:1.6;margin:18px 0 36px;letter-spacing:-.8px}.story-manuscript h2{font-size:18px;line-height:1.7;margin:30px 0 20px}.story-manuscript section>p{white-space:pre-wrap;font-size:15px;line-height:2.2;color:#343e40}.story-manuscript section{margin-bottom:36px}.story-manuscript section>button{font-size:10px;background:transparent;color:#89978f;border:0;padding:4px 0}.story-outline p{font-size:14px;line-height:2;white-space:pre-wrap}.story-outline b{display:block;margin-top:22px;font-size:12px;color:#5b7466}.story-lead{color:#707b7d}.story-write-note{margin-top:32px;border-top:1px solid #eff0ee;padding-top:18px;font-size:11px;color:#819087}.story-empty-preview{text-align:center;margin:auto;padding:19vh 20px 0;color:#89918f}.story-empty-preview span{font-size:30px;color:#bdc9c1}.story-empty-preview h2{font-size:18px;margin-top:24px}.story-empty-preview p{font-size:13px;line-height:2}
.story-first .cx-composer small{font-size:10px;color:#909693}.story-attach{font-size:11px;border:0!important;padding:5px 8px;background:none!important}.story-context,.story-materials{font-size:11px;margin-bottom:9px;color:#5a7765;display:flex;gap:8px;flex-wrap:wrap}.story-context button,.story-materials button{border:0;padding:1px 5px;background:none}.story-materials>span{border-radius:7px;background:#f0f5f1;padding:4px 8px}.story-next-actions{display:flex;gap:8px;margin:22px 0;flex-wrap:wrap}.story-next-actions button{font-size:12px}.story-ready{border-left:3px solid #7ea88c;padding:8px 16px;margin-top:20px}.story-ready strong{font-size:14px}.story-ready p{font-size:12px;line-height:1.85;color:#79857e}
.story-view-switch{display:flex;gap:5px;padding:10px 24px;border-bottom:1px solid #e6e9e5}.story-view-switch button{background:none;border:0;font-size:12px;color:#929b96}.story-view-switch button.active{color:#325741;border-bottom:2px solid #477a58;border-radius:0}.story-reader{max-width:680px;margin:auto}.story-cut{position:relative;margin-bottom:30px;border:2px solid transparent;border-radius:8px;cursor:pointer}.story-cut.selected{border-color:#5d9874}.story-cut-label{position:absolute;left:10px;top:10px;background:#fff;font-size:10px;padding:4px 8px;border-radius:4px;box-shadow:0 2px 5px #0001}.story-cut .toon-panel{border-radius:6px;margin:0}.story-unillustrated{background:#fff;border:1px dashed #cfd9d1;min-height:320px;padding:45px 25px 24px}.story-unillustrated small{font-size:10px;color:#8e9991}.story-unillustrated h3{font-size:16px;color:#576c5f}.story-unillustrated p{font-size:13px;color:#6f7d74;line-height:1.8}.story-unillustrated blockquote{font-size:15px;padding:14px;background:#f8faf7;border-radius:15px}.story-caption{border-top:1px solid #edf0ea;padding-top:12px}.story-comic-summary{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7b897d;margin-bottom:16px}.story-comic-summary button{font-size:10px}.story-panel-tools{border:1px solid #dce6de;background:#f8fbf8;border-radius:12px;padding:16px;margin:18px 0}.story-panel-tools strong{display:block;font-size:13px}.story-panel-tools>div{display:flex;gap:8px;margin:14px 0}.story-panel-tools button{font-size:11px}.story-panel-tools small{font-size:10px;line-height:1.7;color:#7b8b7e;display:block}
.story-dialog{max-width:750px;width:92vw}.story-dialog>header{display:flex;justify-content:space-between}.story-dialog>header>h2{font-size:19px}.story-dialog>header>button{border:0;background:none}.story-dialog p{font-size:13px;line-height:1.8}.story-style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.story-style-grid button{padding:0 0 12px;overflow:hidden;background:#fff;display:flex;flex-direction:column}.story-style-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.story-style-grid strong{font-size:13px;padding:12px 8px 0}.story-small{color:#929a94;font-size:11px!important}.story-image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.story-image-grid img{width:100%;height:140px;object-fit:contain}.story-image-grid small{font-size:10px;word-break:break-all}.story-dialog textarea{min-height:150px}
@media(max-width:1200px){.story-cards{grid-template-columns:minmax(0,1fr)}.story-manuscript{padding:26px}.story-first .cx-chat-scroll{padding:20px}}
@media(max-width:760px){.story-manuscript{padding:22px 18px}.story-manuscript h1{font-size:23px}.story-manuscript section>p{font-size:15px}.story-welcome{margin:30px auto}.story-welcome h1{font-size:27px}.story-first .cx-composer textarea{font-size:16px}.story-cards{grid-template-columns:minmax(0,1fr)}.story-style-grid{grid-template-columns:1fr}.story-style-grid button{display:grid;grid-template-columns:110px 1fr;padding:0;align-items:center;text-align:left}.story-image-grid{grid-template-columns:repeat(2,1fr)}.story-stage{font-size:11px;padding:10px 16px}}
@media(prefers-reduced-motion:reduce){.story-first .motion-layer{animation:none!important}}
