:root{font-family:Inter,ui-sans-serif,system-ui,Segoe UI,sans-serif;color:#1b382d;background:#f7f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}h1,h2,h3,h4{font-family:Georgia,Cambria,serif;font-weight:500}h1{font-size:clamp(28px,3.6vw,43px);margin:0}h2{font-size:26px;margin:0 0 16px}p{line-height:1.65}.muted,.small{color:#6a7a70}.small{font-size:12px}.eyebrow{font:700 11px ui-sans-serif,system-ui;letter-spacing:.2em;color:#b28f57;text-transform:uppercase}.center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:#f4f1e8}.login{max-width:470px;width:100%;background:#fff;border:1px solid #e7e3d8;padding:42px;border-radius:18px;box-shadow:0 18px 65px #1e342811}.login h1{margin:10px 0 17px}.login p{color:#617064}.brand{font:700 29px Georgia;letter-spacing:.19em;color:#eadbb9}.login .brand{color:#244934}.brand small{display:block;font:9px system-ui;letter-spacing:.25em}.primary,button.primary{background:#20553d;border:1px solid #20553d;color:#fff;border-radius:9px;padding:12px 20px;font-weight:650}.primary:hover{background:#173c2d}.layout{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;flex:0 0 245px;background:#193b2e;color:#e7ede7;padding:30px 18px}.sidebar .brand{padding:0 14px 35px}.navlabel{font-size:11px;color:#a9bdae;margin:0 14px 12px}.sidebar button{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#cadbcf;width:100%;text-align:left;padding:13px 14px;border-radius:9px;font-size:14px}.sidebar button.active,.sidebar button:hover{background:#315944;color:#fff}.sidebottom{margin-top:auto;border-top:1px solid #476255;padding-top:15px}.sidebottom p{padding-left:12px;color:#b2c8b7}.workspace{flex:1;min-width:0;padding:36px clamp(18px,3vw,45px) 22px;max-width:calc(100vw - 245px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:26px}.topbar .eyebrow{margin:0 0 9px}.pill{display:flex;align-items:center;gap:8px;font-size:12px;background:#e7f1e6;padding:9px 12px;border-radius:30px;color:#3b7251}.notice{margin:0 0 18px;padding:13px 17px;background:#f3ecdc;border-left:3px solid #b58f54;border-radius:4px;font-size:13px;line-height:1.6}.panel{background:#fffefa;border:1px solid #e8e4db;border-radius:15px;padding:24px;box-shadow:0 5px 24px #3048350a}.dashboard{display:grid;grid-template-columns:minmax(270px,360px) minmax(0,1fr);gap:22px;align-items:start}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.sectionhead h2,.sectionhead h3{margin:0}.secondary{border:1px solid #aec3b5;background:#fff;color:#265943;border-radius:7px;padding:8px 12px;display:flex;align-items:center;gap:6px;font-size:12px}.bookentry{width:100%;display:flex;align-items:center;gap:13px;text-align:left;border:1px solid #e1e8df;background:#f9fbf6;color:#244535;border-radius:10px;padding:15px 12px;margin:8px 0}.bookentry:hover,.bookentry.chosen{border-color:#639b79;background:#eaf5eb}.bookentry span:nth-child(2){flex:1;min-width:0}.bookentry strong{font-size:13px;display:block;line-height:1.4}.bookentry small{display:block;font-size:11px;color:#6a786e;margin-top:5px}.draftpill{background:#e2ecdf;color:#416e49;padding:5px 7px;border-radius:20px;font-size:10px}.empty{text-align:center;padding:55px 15px;color:#819187}.empty h2{margin-top:12px}.reading{min-height:480px}.bookintro{display:flex;gap:23px;align-items:start}.bookintro>img{width:110px;height:148px;object-fit:cover;border-radius:8px;background:#e4e7e1}.bookintro h2{margin:5px 0}.bookintro p{margin:7px 0}.metaform{display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(150px,1fr) auto;align-items:end;gap:12px;margin:24px 0;padding:15px;background:#f5f7f2;border-radius:10px}.metaform label,.filegrid label{display:grid;gap:7px;font-size:12px;font-weight:700}.metaform input,.filegrid input{width:100%;min-width:0;border:1px solid #bdcbbd;border-radius:7px;padding:11px;background:#fff}.metaform button{background:#28563f;color:#fff;border:0;padding:12px;border-radius:7px}.readingpage,.previewpage{display:grid;grid-template-columns:130px 1fr;gap:20px;border-top:1px solid #e6e9e1;padding:20px 0}.readingpage img,.previewpage img{width:130px;height:175px;object-fit:cover;border-radius:7px;background:#e3e7e2}.readingpage h4,.previewpage h4{margin:0 0 10px;font:700 13px system-ui}.story{white-space:pre-wrap;font:16px/1.8 Georgia,Cambria,serif;color:#354b3e;margin:0;overflow-wrap:anywhere}.filegrid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0}.preview{margin-top:32px;padding-top:22px;border-top:1px solid #e2e6dc}.previewcards{max-height:650px;overflow:auto;margin:15px 0}.delete{display:flex;gap:5px;align-items:center;background:#fff;border:1px solid #cfa9a9;color:#a44343;padding:8px;border-radius:7px;font-size:12px}footer{margin-top:35px;color:#8a988f;font-size:11px}@media (max-width:1080px){.dashboard{grid-template-columns:1fr}}@media (max-width:700px){.layout{display:block}.sidebar{height:auto;position:static;padding:12px;display:flex;flex-direction:row;align-items:center;gap:5px;flex-wrap:wrap}.sidebar .brand{padding:3px 10px;font-size:20px}.navlabel,.sidebottom p{display:none}.sidebar button{width:auto;font-size:12px}.sidebottom{margin:0;padding:0;border:0}.workspace{max-width:100%;padding:22px 15px}.topbar{align-items:start}.pill{font-size:10px}.filegrid,.metaform{grid-template-columns:1fr}.readingpage,.previewpage{grid-template-columns:100px 1fr}.readingpage img,.previewpage img{width:100px;height:133px}.panel{padding:17px}.bookintro img{width:84px;height:110px}}@media (max-width:430px){.readingpage,.previewpage{display:block}.readingpage img,.previewpage img{margin-bottom:15px}.topbar{display:block}.pill{width:max-content;margin-top:10px}}.page-editor-toolbar{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:16px 0;padding:12px;background:#f0f4ee;border-radius:9px}.page-editor-toolbar button{padding:9px 13px}.page-editor-toolbar strong{font:600 14px Georgia,serif}.page-editor-pages{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.page-editor-pages button{padding:8px 11px;border:1px solid #b7c7ba;border-radius:8px;background:#fff;color:#28533c}.page-editor-pages button.selected{background:#20553d;color:#fff}.scene-editor{padding:12px 0 24px;border-top:1px solid #dce4da}.scene-editor-stage{width:100%;max-width:620px;aspect-ratio:2 / 1;position:relative;overflow:hidden;background:#e3e6df;border:2px solid #becdbf;border-radius:7px;touch-action:pan-y}.scene-editor-stage img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.scene-editor-caption{position:absolute;z-index:2;background:#fffdf6f5;color:#253a2c;border:1px solid #fff;border-radius:9px;padding:5px 7px;line-height:1.25;max-height:94%;overflow:auto;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;box-shadow:0 2px 12px #0003;overflow-wrap:anywhere;font-family:Georgia,serif}.scene-editor-caption:active{cursor:grabbing}.drag-label{display:block;font:600 9px/1.1 system-ui,sans-serif;color:#50745c;border-bottom:1px solid #d5e2d6;margin-bottom:4px;padding-bottom:3px}.scene-editor-text{white-space:pre-wrap}.scene-editor-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:10px 0}.scene-editor-tools label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.scene-editor-tools input[type=range]{max-width:105px;accent-color:#20553d}.scene-editor-tools span{min-width:28px;font-size:11px}.scene-editor-story{display:grid;gap:6px;max-width:620px;font-size:12px;font-weight:700}.scene-editor-story textarea{width:100%;padding:11px;border:1px solid #b9c8b9;border-radius:8px;resize:vertical;font:15px/1.5 Georgia,serif;color:#244534}@media (max-width:700px){.scene-editor-stage{max-width:100%}.scene-editor-caption{padding:4px 6px}.scene-editor-tools{gap:9px}.scene-editor-tools label{flex:1 1 130px}.page-editor-toolbar{gap:6px}}.editor-book-page{width:min(100%,430px);height:min(85dvh,670px);aspect-ratio:.64;margin:14px auto 20px;display:flex;flex-direction:column;overflow:hidden;background:#e7e1d4;border:1px solid #e1d9c9;border-radius:4px;box-shadow:0 8px 26px #0002}.editor-book-chapter{flex:0 0 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;padding:5px 8px;text-align:center;background:#f7f1e5;color:#254034;font:600 14px/1.2 Georgia,serif}.editor-book-page .scene-editor-stage{position:relative;flex:1 1 0;height:0;min-height:0;max-width:none;width:100%;aspect-ratio:auto;border:0;border-bottom:3px solid #fff;border-radius:0;touch-action:pan-y}.editor-book-page .scene-editor-stage:last-child{border-bottom:0}.editor-book-page .scene-editor-stage img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.editor-book-page .scene-editor-caption{position:absolute;max-width:none;max-height:calc(100% - 6px);overflow-y:auto;overflow-x:hidden;padding:7px 9px;border:0;border-radius:9px;background:#fffdf6f2;color:#27392e;box-shadow:0 3px 12px #0002;font-family:Georgia,serif;font-weight:400;line-height:1.27;white-space:pre-wrap;overflow-wrap:anywhere;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.editor-book-page .scene-editor-stage.editing .scene-editor-caption{outline:1px dashed #4c9a6d;outline-offset:-1px}.editor-page-properties{max-width:620px;margin:0 auto 24px;padding:15px;border:1px solid #dce4da;border-radius:10px;background:#f9fbf7}.editor-page-properties .sectionhead h3{font-size:18px}.editor-page-properties .scene-editor-tools{margin:12px 0 18px}@media (max-width:700px){.editor-book-page{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;height:min(calc(100dvh - 170px),750px);max-height:none;max-width:none}.editor-page-properties{margin-left:-8px;margin-right:-8px;padding:12px}}
