@charset "UTF-8";:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2937;background:#f7f7f5}*{box-sizing:border-box}html,body{margin:0;min-height:100%}button,input,textarea{font:inherit}.app-shell .writing-topbar{margin:8px 14px 0;padding:14px 18px 11px;background:linear-gradient(105deg,#15151d,#191626 54%,#21172f);border:1px solid rgba(255,255,255,.045);border-radius:15px;box-shadow:0 9px 26px #1a12282b}.app-shell .writing-topbar-mainline{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center}.app-shell .writing-topbar-title{display:flex;align-items:center;gap:12px;min-width:0}.app-shell .writing-feather{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:11px;background:linear-gradient(145deg,#673cae,#8658d7);color:#fff;box-shadow:0 6px 16px #6f46be40;font-size:1.05rem}.app-shell .writing-topbar-title>div>span{display:block;color:#b9b1c5;font-size:.65rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase}.app-shell .writing-topbar-title>div>strong{display:block;margin-top:4px;color:#fff;font-family:Georgia,Times New Roman,serif;font-size:1.12rem;font-weight:700;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-shell .writing-topbar-metrics{display:flex;align-items:center;gap:20px}.app-shell .writing-topbar-metrics>span:nth-child(-n+4){display:none}.app-shell .writing-topbar-metrics>span{align-items:center;white-space:nowrap;font-size:0;color:transparent}.app-shell .writing-topbar-metrics strong{display:inline-flex;align-items:center;margin:0;font-size:.73rem;font-weight:700;line-height:1}.app-shell .writing-save-state strong{color:#a5e6a2}.app-shell .writing-save-state strong:before{content:"\2713";margin-right:5px;font-weight:900}.app-shell .writing-save-state strong:after{content:" local";margin-left:3px;color:#bfe7bd;font-weight:550}.app-shell .writing-cloud-state strong{color:#b99af5}.app-shell .writing-cloud-state strong:before{content:"\2601";margin-right:6px;font-weight:500}.app-shell .writing-topbar-actions>button:first-child:not(:last-child){display:none}.app-shell .writing-topbar-actions{display:flex;gap:8px}.app-shell .writing-topbar-actions button{min-height:38px;border:1px solid rgba(255,255,255,.15);background:#ffffff0b;color:#f1eef5;border-radius:10px;padding:8px 14px;cursor:pointer}.app-shell .writing-topbar-actions button:hover{background:#ffffff16}.app-shell .writing-topbar-actions button.active{background:#6844b5;border-color:#7a58c4}.app-shell .writing-chapter-progress{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:10px;align-items:center;margin-top:11px;padding-top:10px;border-top:1px solid rgba(255,255,255,.075);color:#aaa3b2;font-size:.62rem}.app-shell .writing-chapter-progress>div{height:4px;background:#ffffff13;border-radius:999px;overflow:hidden}.app-shell .writing-chapter-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7549ce,#a978f0)}.app-shell .writing-chapter-progress strong{color:#e4dced}.app-shell .writing-topbar+.scene-panel{position:relative;align-self:start;min-height:calc(100vh - 118px);margin:18px 10px 24px 14px;padding:20px 16px 26px;overflow:hidden;background:linear-gradient(180deg,#fbf8f2,#f6f0e7);border:1px solid #e7ddd0;border-radius:20px;box-shadow:0 10px 28px #58412112}.app-shell .writing-topbar+.scene-panel:after{content:"\2712";position:absolute;right:24px;bottom:24px;z-index:0;color:#7e674c14;font-family:Georgia,serif;font-size:5.5rem;transform:rotate(-16deg);pointer-events:none}.app-shell .writing-topbar+.scene-panel>*{position:relative;z-index:1}.app-shell .chapter-switcher{margin:0 0 20px;padding:0 2px 18px;border-bottom:1px solid #e4d9ca}.app-shell .chapter-switcher-label{margin:0 0 10px;color:#81735f;font-family:Georgia,Times New Roman,serif;font-size:.72rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.app-shell .chapter-switcher-card{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:8px;align-items:center;padding:10px;background:#fffcf7f5;border:1px solid #e4dacd;border-radius:14px;box-shadow:0 6px 15px #49361f11}.app-shell .chapter-switcher-current{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;min-width:0}.app-shell .chapter-switcher-number{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#7045bd,#8b61db);color:#fff;font-size:.82rem;font-weight:800;box-shadow:0 4px 10px #5f469633}.app-shell .chapter-switcher-select{width:100%;min-width:0;border:0;background:transparent;color:#332a22;padding:0 18px 0 0;outline:none;font-family:Georgia,Times New Roman,serif;font-size:.88rem;font-weight:700}.app-shell .chapter-switcher-copy small{display:block;margin-top:3px;color:#91816d;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-shell .chapter-nav-arrow{width:32px;height:34px;border:0;border-radius:9px;background:transparent;color:#66548d;cursor:pointer;font-size:1.05rem}.app-shell .chapter-nav-arrow:hover:not(:disabled){background:#f1ebf8}.app-shell .chapter-nav-arrow:disabled{opacity:.25;cursor:not-allowed}.app-shell .scene-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px 12px}.app-shell .scene-heading>div{display:grid;gap:2px}.app-shell .scene-heading small{color:#8b7c67;font-size:.63rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.app-shell .scene-heading strong{color:#2d2721;font-family:Georgia,Times New Roman,serif;font-size:1rem}.app-shell .scene-heading button{width:32px;height:32px;border:1px solid #e4dacd;border-radius:9px;background:#fffaf4;color:#684f99;cursor:pointer}.app-shell .scene-list{display:grid;gap:10px;counter-reset:manuscript-scene}.app-shell .scene-row{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:stretch;counter-increment:manuscript-scene}.app-shell .scene-drag{align-self:center;width:18px;border:0;background:transparent;color:#9c8f7e;padding:0;cursor:grab;font-size:.9rem}.app-shell .scene-item{position:relative;min-height:68px;display:block;width:100%;padding:13px 13px 13px 60px;text-align:left;border:1px solid #e5dccf;border-radius:13px;background:#fffdf9f2;color:#2e2823;box-shadow:0 4px 12px #4836200b;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}.app-shell .scene-item:before{content:counter(manuscript-scene);position:absolute;left:13px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border:1px solid #ddd2c3;border-radius:50%;background:#fbf7f0;color:#5b5044;font-size:.72rem;font-weight:800}.app-shell .scene-item span{display:block;color:#2b2520;font-size:.82rem;font-weight:700}.app-shell .scene-item small{display:block;margin-top:4px;color:#928573;font-size:.66rem;opacity:1}.app-shell .scene-item:hover{transform:translateY(-1px);border-color:#d6c8b7;box-shadow:0 7px 16px #48362012}.app-shell .scene-item.active{background:linear-gradient(180deg,#f5effb,#f0e9f8);border-color:#d5c3ed;box-shadow:inset 3px 0 #7750bd,0 7px 16px #5e468f12}.app-shell .scene-item.active:before{background:#fff;border-color:#d4c3e9;color:#60478f}.app-shell .scene-structure-link{width:100%;margin-top:14px;border:0;background:transparent;color:#5d4b87;text-align:left;padding:8px 3px;cursor:pointer;font-family:Georgia,Times New Roman,serif;font-size:.73rem;font-weight:700}.app-shell .scene-structure-link:hover{text-decoration:underline}.app-shell .writing-topbar~.editor{background:#f7f3ec}.app-shell .writing-topbar~.editor .editor-header{position:relative;padding-top:2px}.app-shell .writing-topbar~.editor .manuscript-back-button{margin-bottom:14px;color:#5c5187;font-weight:680}.app-shell .writing-topbar~.editor .chapter-manage-row{position:absolute;top:0;right:0;margin:0;z-index:4}.app-shell .writing-topbar~.editor .chapter-manage-context{display:none}.app-shell .writing-topbar~.editor .chapter-manage-menu summary{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #ddd4e4;border-radius:9px;background:#ffffffb3;color:#5c5187;font-size:0;text-decoration:none}.app-shell .writing-topbar~.editor .chapter-manage-menu summary:before{content:"\2022\2022\2022";font-size:.86rem;letter-spacing:.08em}.app-shell .writing-topbar~.editor .chapter-manage-menu summary:hover{background:#f1edf8;border-color:#cfc5e3}.app-shell .writing-topbar~.editor .breadcrumb{margin-bottom:8px;color:#8b7da4;font-size:.68rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.app-shell .writing-topbar~.editor .title-row{align-items:center;gap:14px}.app-shell .writing-topbar~.editor .title-input{min-width:0;font-family:Georgia,Times New Roman,serif;color:#211d1a}.app-shell .writing-topbar~.editor .scene-title-actions{gap:7px}.app-shell .writing-topbar~.editor .scene-info-toggle,.app-shell .writing-topbar~.editor .delete-button{display:grid;place-items:center;width:35px;min-width:35px;height:35px;padding:0;border-radius:9px;font-size:0}.app-shell .writing-topbar~.editor .scene-info-toggle:before{content:"\24d8";font-size:1rem}.app-shell .writing-topbar~.editor .delete-button:before{content:"\1f5d1";font-size:.9rem;filter:grayscale(1)}.app-shell .writing-topbar~.editor .scene-info-toggle{border-color:#ddd8e7;background:#ffffffad;color:#5c5187}.app-shell .writing-topbar~.editor .scene-info-toggle:hover,.app-shell .writing-topbar~.editor .scene-info-toggle.active{background:#f1edf8;border-color:#cfc5e3}.app-shell .writing-topbar~.editor .delete-button:not(:disabled){border-color:#eadcdc;background:#ffffffad}.app-shell .writing-topbar~.editor .delete-button:not(:disabled):hover{background:#fbefef;border-color:#dfc6c6}.app-shell .writing-topbar~.editor .meta{margin-top:7px;color:#746d80;font-size:.75rem}.app-shell .writing-topbar~.editor .meta>span:nth-child(6),.app-shell .writing-topbar~.editor .meta>span:nth-child(7){display:none}.app-shell .writing-topbar~.editor .editor-toolbar,.app-shell .writing-topbar~.editor .advanced-editor-bar{border-color:#e5ded3;background:#faf7f1f2;box-shadow:0 5px 14px #47351e0a}.app-shell .writing-topbar~.editor .editor-toolbar button.active{background:#403444;border-color:#403444}.app-shell .writing-topbar~.editor .manuscript{border-color:#e4d9c8;box-shadow:0 12px 32px #4c381d14}.app-shell .writing-topbar~.editor .tiptap-host .tiptap-manuscript{background:linear-gradient(180deg,#fbf7ec,#f7f0df)}.app-shell .advanced-editor-bar button[hidden]{display:none!important}@media(max-width:1120px){.app-shell .writing-topbar-mainline{grid-template-columns:1fr;gap:10px}.app-shell .writing-topbar-metrics{flex-wrap:wrap;gap:12px}}@media(max-width:850px){.app-shell .writing-topbar{margin:12px}.app-shell .writing-topbar+.scene-panel{margin:12px;min-height:auto}.app-shell .writing-topbar~.editor .chapter-manage-row{position:static;justify-content:flex-end;margin-bottom:5px}}@media(min-width:1181px){.app-shell{grid-template-columns:260px 300px minmax(0,1fr)}}.app-shell .writing-topbar{margin:8px 14px 0;padding:12px 18px 9px;border-radius:14px}.app-shell .writing-topbar-mainline{grid-template-columns:minmax(260px,1fr) auto auto;gap:18px}.app-shell .writing-topbar-title>div>strong{font-size:1.08rem;max-width:min(38vw,520px)}.app-shell .writing-topbar-metrics{gap:16px}.app-shell .writing-topbar-metrics>span{display:inline-flex!important}.app-shell .writing-topbar-actions{align-items:center;gap:8px}.app-shell .writing-topbar-actions .writing-new-chapter{background:#7a51cd38;border-color:#ad8bef57;color:#efe7ff;font-weight:700}.app-shell .writing-topbar-actions .writing-new-chapter:hover{background:#7a51cd57}.app-shell .writing-chapter-progress{margin-top:9px;padding-top:8px;opacity:.9}.app-shell .writing-chapter-progress>div{height:3px}.app-shell .writing-topbar+.scene-panel{margin:14px 10px 24px 14px;padding:18px 18px 28px;border-radius:18px}.app-shell .chapter-switcher{padding:0 0 17px;margin-bottom:17px}.app-shell .chapter-switcher-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 10px}.app-shell .chapter-switcher-label{margin:0}.app-shell .chapter-manage-menu-sidebar{position:relative}.app-shell .chapter-manage-menu-sidebar>summary,.app-shell .scene-actions-menu>summary{list-style:none;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ddd2e8;border-radius:10px;background:#ffffffb8;color:#625083;cursor:pointer;font-size:.84rem;letter-spacing:.08em;-webkit-user-select:none;user-select:none}.app-shell .chapter-manage-menu-sidebar>summary::-webkit-details-marker,.app-shell .scene-actions-menu>summary::-webkit-details-marker{display:none}.app-shell .chapter-manage-menu-sidebar>summary:hover,.app-shell .scene-actions-menu>summary:hover{background:#f1ebf8;border-color:#cdbde4}.app-shell .chapter-manage-menu-sidebar .chapter-manage-popover{position:absolute;top:40px;right:0;z-index:30;width:245px;padding:14px;border:1px solid #dfd5e9;border-radius:13px;background:#fffdf9;box-shadow:0 16px 38px #2d203d29}.app-shell .chapter-manage-menu-sidebar .chapter-manage-popover label{display:grid;gap:7px;color:#6f617c;font-size:.72rem;font-weight:700}.app-shell .chapter-manage-menu-sidebar .chapter-manage-input{width:100%;border:1px solid #ddd3e5;border-radius:9px;padding:9px 10px;background:#fff;color:#302a35}.app-shell .chapter-manage-menu-sidebar .chapter-delete-button{width:100%;margin-top:11px;justify-content:flex-start;gap:8px;border:1px solid #ead7d7;border-radius:9px;background:#fff9f8;color:#925151;padding:9px 10px}.app-shell .chapter-switcher-card{grid-template-columns:34px minmax(0,1fr) 34px;gap:10px;padding:12px}.app-shell .chapter-switcher-copy{min-width:0}.app-shell .chapter-switcher-copy small{display:block;max-width:100%;margin-top:5px;overflow:visible;white-space:normal;line-height:1.25;color:#897965;font-size:.69rem}.app-shell .chapter-switcher-select{font-size:.91rem;line-height:1.25}.app-shell .scene-heading{padding:0 2px 12px}.app-shell .scene-list{gap:11px}.app-shell .scene-row{grid-template-columns:18px minmax(0,1fr);gap:9px}.app-shell .scene-item{min-height:72px;padding:14px 16px 14px 64px;border-radius:14px}.app-shell .scene-item span{font-size:.88rem}.app-shell .scene-item small{margin-top:5px;font-size:.69rem}.app-shell .scene-structure-link{margin-top:17px;font-size:.78rem}.app-shell .writing-topbar~.editor{background:#f7f2ea;padding:28px clamp(28px,4vw,64px) 64px}.app-shell .writing-topbar~.editor .editor-header{width:min(100%,820px);max-width:820px;margin:0 auto 14px;padding-top:0}.app-shell .writing-topbar~.editor .manuscript-back-button{margin-bottom:16px;font-size:.87rem}.app-shell .writing-topbar~.editor .breadcrumb{margin-bottom:9px;font-size:.65rem;letter-spacing:.1em;color:#9385a6}.app-shell .writing-topbar~.editor .title-row{align-items:center;gap:18px}.app-shell .writing-topbar~.editor .title-input{font-size:clamp(2rem,3vw,2.75rem);line-height:1.06}.app-shell .writing-topbar~.editor .scene-title-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.app-shell .writing-topbar~.editor .scene-info-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:auto;height:36px;padding:0 11px;border:1px solid #dcd2e5;border-radius:10px;background:#ffffffb8;color:#625083;font-size:.75rem;font-weight:700}.app-shell .writing-topbar~.editor .scene-info-toggle:before{content:none}.app-shell .writing-topbar~.editor .scene-info-toggle:hover,.app-shell .writing-topbar~.editor .scene-info-toggle.active{background:#f1ebf8;border-color:#cdbde4}.app-shell .scene-actions-menu{position:relative}.app-shell .scene-actions-popover{position:absolute;top:42px;right:0;z-index:30;min-width:205px;padding:8px;border:1px solid #e1d8e8;border-radius:12px;background:#fffdf9;box-shadow:0 16px 38px #2d203d26}.app-shell .scene-actions-popover .scene-delete-menu-action{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-width:0;height:auto;padding:10px 11px;border-color:transparent;background:transparent;color:#925151;font-size:.76rem;font-weight:700}.app-shell .scene-actions-popover .scene-delete-menu-action:before{content:none}.app-shell .scene-actions-popover .scene-delete-menu-action:hover:not(:disabled){background:#fbefef;border-color:#efdede}.app-shell .writing-topbar~.editor .meta{margin-top:9px;display:flex;align-items:center;gap:7px;color:#82798a;font-size:.75rem}.app-shell .writing-topbar~.editor .meta .scene-status-primary{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border:1px solid #d9cce8;border-radius:999px;background:#f0e9f8;color:#5e4787;font-weight:800}.app-shell .writing-topbar~.editor .meta .scene-status-primary[data-status=draft]{background:#f0e9f8;color:#5e4787}.app-shell .writing-topbar~.editor .meta .scene-status-primary[data-status=reviewed]{background:#e9f5ec;border-color:#c9e3d0;color:#3f7450}.app-shell .writing-topbar~.editor .meta .scene-status-primary[data-status=locked],.app-shell .writing-topbar~.editor .meta .scene-status-primary[data-status=final]{background:#eeeef0;border-color:#d8d8dd;color:#5e5e66}.app-shell .editor-tools-shell{position:sticky;top:8px;z-index:7;width:min(100%,820px);margin:0 auto 16px;overflow:visible;border:1px solid #e1d9cf;border-radius:14px;background:#fffdf9f5;box-shadow:0 8px 22px #503c2211;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.app-shell .editor-tools-shell .editor-toolbar{position:static;width:100%;margin:0;padding:8px 10px;border:0;border-radius:14px 14px 0 0;background:transparent;box-shadow:none}.app-shell .editor-tools-shell .editor-toolbar button{height:31px;min-width:31px;border-radius:8px}.app-shell .editor-tools-shell .editor-toolbar button:hover{background:#f3eee7}.app-shell .editor-tools-shell .advanced-editor-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;width:100%;margin:0;padding:8px 10px 9px;border:0;border-top:1px solid #ebe3d9;border-radius:0 0 14px 14px;background:linear-gradient(180deg,#f7f2fa73,#faf7f2b8)}.app-shell .editor-tools-shell .advanced-editor-bar button,.app-shell .editor-tools-shell .advanced-editor-bar select{min-height:31px;width:auto;margin:0;border:1px solid #ded5e5;border-radius:8px;background:#ffffffb8;color:#5c4e68;padding:5px 9px;font-size:.72rem}.app-shell .editor-tools-shell .advanced-editor-bar select{max-width:165px}.app-shell .editor-tools-shell .advanced-editor-bar button:hover:not(:disabled){background:#f1eaf7;border-color:#d0c1df}.app-shell .editor-tools-shell .advanced-editor-bar button:disabled{opacity:.38;background:transparent;border-color:transparent;padding-inline:5px}.app-shell .editor-tools-shell .advanced-editor-bar select:disabled{opacity:.45;background:transparent}.app-shell .editor-tools-shell .advanced-editor-bar .toolbar-separator{height:20px;background:#ddd2e5}.app-shell .editor-tools-shell .advanced-editor-bar .toolbar-spacer{flex:1 1 18px}.app-shell .writing-topbar~.editor .manuscript{width:min(100%,820px);min-height:calc(100vh - 220px);margin:0 auto;border:1px solid rgba(222,213,201,.72);border-radius:18px;background:#fffdf8;box-shadow:0 14px 42px #47361f13}.app-shell .writing-topbar~.editor .tiptap-host .tiptap-manuscript{padding:48px 58px 72px;font-size:1.07rem;line-height:1.84}@media(max-width:1180px)and (min-width:851px){.app-shell{grid-template-columns:240px 270px minmax(0,1fr)}.app-shell .writing-topbar-mainline{grid-template-columns:minmax(220px,1fr) auto}.app-shell .writing-topbar-metrics{display:none}}@media(max-width:850px){.app-shell .writing-topbar{margin:8px 10px 0}.app-shell .writing-topbar-mainline{grid-template-columns:1fr}.app-shell .writing-topbar-actions{justify-content:flex-start}.app-shell .writing-topbar+.scene-panel{margin:12px;min-height:auto}.app-shell .writing-topbar~.editor{padding:22px 16px 48px}.app-shell .writing-topbar~.editor .title-row{align-items:flex-start}.app-shell .writing-topbar~.editor .scene-title-actions{margin-top:3px}.app-shell .editor-tools-shell{position:static}.app-shell .writing-topbar~.editor .tiptap-host .tiptap-manuscript{padding:34px 28px 54px}}.app-shell .writing-topbar-actions>.writing-new-chapter{display:inline-flex!important;align-items:center;justify-content:center}.app-shell.manuscript-detail-layout{grid-template-columns:260px minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr);background:#f7f3ec}.app-shell.manuscript-detail-layout>.sidebar{grid-column:1;grid-row:1/4}.app-shell.manuscript-detail-layout>.writing-topbar{grid-column:2;grid-row:1;width:auto;margin:14px 16px 0}.app-shell.manuscript-detail-layout>.writing-subnav{grid-column:2;grid-row:2}.app-shell.manuscript-detail-layout>.editor{grid-column:2;grid-row:3}.app-shell.manuscript-detail-layout .sidebar-context{display:none}.app-shell .writing-subnav{position:relative;z-index:12;display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr) auto;align-items:center;gap:20px;min-height:72px;margin:0;padding:12px 28px;border-bottom:1px solid #e5ddd3;background:#fffcf7f5;box-shadow:0 4px 14px #412d1c09}.app-shell .writing-subnav-chapter{min-width:0}.app-shell .writing-chapter-select{width:100%;min-height:42px;border:1px solid #ddd4c8;border-radius:11px;background:#fffdf9;color:#3a332d;padding:8px 36px 8px 14px;font-family:Georgia,Times New Roman,serif;font-size:.92rem;font-weight:700;box-shadow:0 3px 10px #4f3a2109}.app-shell .writing-subnav-scenes{display:flex;justify-content:center;align-items:center;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:2px 4px}.app-shell .writing-scene-tab,.app-shell .writing-add-scene{flex:0 0 auto;min-height:42px;border:1px solid #e3dbd2;background:#fffdf9d1;color:#4a423a;padding:9px 18px;cursor:pointer;font-family:Georgia,Times New Roman,serif;transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}.app-shell .writing-scene-tab+.writing-scene-tab{margin-left:-1px}.app-shell .writing-scene-tab:first-child{border-radius:11px 0 0 11px}.app-shell .writing-scene-tab:last-of-type{border-radius:0 11px 11px 0}.app-shell .writing-scene-tab:hover,.app-shell .writing-add-scene:hover{background:#f5effa;border-color:#d4c6e4}.app-shell .writing-scene-tab.active{position:relative;z-index:1;background:linear-gradient(180deg,#f1eafa,#ece4f7);border-color:#d6c7e9;color:#684d98;box-shadow:inset 0 -2px #7b58bd;font-weight:700}.app-shell .writing-add-scene{width:42px;margin-left:10px;padding:0;border-radius:11px;color:#6b5596;font-family:inherit;font-size:1.12rem}.app-shell .writing-structure-menu{position:relative}.app-shell .writing-structure-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid #ddd4c8;border-radius:11px;background:#fffdf9;color:#4f4657;cursor:pointer;font-weight:700;font-size:.82rem;box-shadow:0 3px 10px #4f3a2109}.app-shell .writing-structure-menu>summary::-webkit-details-marker{display:none}.app-shell .writing-structure-menu[open]>summary,.app-shell .writing-structure-menu>summary:hover{background:#f3edf8;border-color:#d1c2e1;color:#624d8d}.app-shell .writing-structure-drawer{position:fixed;top:0;right:0;z-index:90;width:min(390px,92vw);height:100vh;overflow-y:auto;padding:24px 20px 32px;border-left:1px solid #ded5e5;background:linear-gradient(180deg,#fffdf9,#f8f2ea);box-shadow:-18px 0 48px #1f16282e}.app-shell .writing-structure-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e7dfd6}.app-shell .writing-structure-head>div{display:grid;gap:4px}.app-shell .writing-structure-head span{color:#918599;font-size:.66rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.app-shell .writing-structure-head strong{color:#2d2632;font-family:Georgia,Times New Roman,serif;font-size:1.35rem}.app-shell .writing-structure-head small{color:#8b7e88;font-size:.72rem}.app-shell .writing-structure-new-chapter{width:100%;min-height:40px;margin-bottom:16px;border:1px solid #d5c5e8;border-radius:10px;background:#f0e9f8;color:#604a8b;cursor:pointer;font-weight:800}.app-shell .writing-structure-chapters{display:grid;gap:10px}.app-shell .writing-structure-chapter{border:1px solid #e5ddd4;border-radius:13px;background:#ffffffb8;overflow:hidden}.app-shell .writing-structure-chapter.active{border-color:#d6c7e7;box-shadow:inset 3px 0 #7b58bd}.app-shell .writing-structure-chapter-button{width:100%;border:0;background:transparent;padding:12px 14px;text-align:left;cursor:pointer}.app-shell .writing-structure-chapter-button span,.app-shell .writing-structure-chapter-button small{display:block}.app-shell .writing-structure-chapter-button span{color:#332d35;font-family:Georgia,Times New Roman,serif;font-weight:700}.app-shell .writing-structure-chapter-button small{margin-top:4px;color:#958997;font-size:.69rem}.app-shell .writing-structure-scenes{display:grid;gap:6px;padding:0 10px 10px}.app-shell .writing-structure-scene-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px}.app-shell .writing-structure-drag{border:0;background:transparent;color:#a2959c;cursor:grab}.app-shell .writing-structure-scene{border:1px solid transparent;border-radius:9px;background:transparent;padding:9px 10px;text-align:left;cursor:pointer}.app-shell .writing-structure-scene:hover,.app-shell .writing-structure-scene.active{border-color:#ddd0eb;background:#f2ebf8}.app-shell .writing-structure-scene span,.app-shell .writing-structure-scene small{display:block}.app-shell .writing-structure-scene span{color:#403747;font-weight:700}.app-shell .writing-structure-scene small{margin-top:3px;color:#958997;font-size:.66rem}.app-shell .structure-chapter-manage{margin-top:16px;border-top:1px solid #e6ddd4;padding-top:14px}.app-shell .structure-chapter-manage>summary{cursor:pointer;color:#675478;font-weight:700;font-size:.78rem}.app-shell .structure-chapter-manage-panel{display:grid;gap:10px;margin-top:10px}.app-shell .structure-chapter-manage-panel label{display:grid;gap:6px;color:#7a6e7f;font-size:.72rem;font-weight:700}.app-shell .structure-chapter-manage-panel input{width:100%;border:1px solid #ddd2e4;border-radius:9px;background:#fff;padding:9px 10px}.app-shell .structure-delete-chapter{border:1px solid #ead8d8;border-radius:9px;background:#fff8f7;color:#955252;padding:9px 10px;cursor:pointer}.app-shell.manuscript-detail-layout .editor{min-width:0;width:100%;padding:28px clamp(32px,6vw,96px) 70px;background:#f8f4ed}.app-shell.manuscript-detail-layout .editor .editor-header,.app-shell.manuscript-detail-layout .editor .editor-tools-shell,.app-shell.manuscript-detail-layout .editor .search-replace-panel,.app-shell.manuscript-detail-layout .editor .manuscript{width:min(100%,1060px);max-width:1060px;margin-left:auto;margin-right:auto}.app-shell.manuscript-detail-layout .editor .editor-header{margin-bottom:18px}.app-shell.manuscript-detail-layout .editor .title-input{font-size:clamp(2.2rem,3.6vw,3rem)}.app-shell.manuscript-detail-layout .editor .meta .scene-status-primary[data-status=draft]{border-color:#efdca4;background:#fff2c9;color:#7b5d16}.app-shell.manuscript-detail-layout .editor .editor-tools-shell{position:sticky;top:8px;z-index:8;margin-bottom:18px;border:1px solid #e3dbd0;border-radius:13px;background:#fffdf9f7;box-shadow:0 8px 22px #4c371f0e}.app-shell.manuscript-detail-layout .editor .editor-toolbar{position:static;width:100%;margin:0;padding:9px 12px;border:0;border-radius:13px;background:transparent;box-shadow:none}.app-shell.manuscript-detail-layout .editor .manuscript{min-height:calc(100vh - 300px);border:1px solid #e3d8c9;border-radius:16px;background:#fffdf8;box-shadow:0 16px 42px #49371f13}.app-shell.manuscript-detail-layout .editor .tiptap-host .tiptap-manuscript{min-height:calc(100vh - 300px);padding:54px clamp(44px,7vw,82px) 78px;background:linear-gradient(180deg,#fffdf8,#fcf7eb);font-size:1.06rem;line-height:1.86}.app-shell .scene-actions-popover-rich{width:285px;padding:12px}.app-shell .scene-actions-popover-rich .scene-menu-label{display:block;margin:1px 3px 8px;color:#8c7e94;font-size:.65rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.app-shell .scene-actions-popover-rich>button:not(.scene-delete-menu-action),.app-shell .scene-actions-popover-rich .scene-menu-inline-actions button{width:100%;min-height:34px;margin:3px 0;border:1px solid #e1d8e7;border-radius:8px;background:#fff;color:#5c5064;padding:7px 9px;text-align:left;cursor:pointer}.app-shell .scene-actions-popover-rich .scene-menu-field{display:grid;gap:5px;margin-top:8px;color:#86798b;font-size:.67rem;font-weight:700}.app-shell .scene-actions-popover-rich .scene-menu-field select{width:100%;border:1px solid #ded4e3;border-radius:8px;background:#fff;padding:8px 9px;color:#4e4653}.app-shell .scene-actions-popover-rich .scene-menu-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.app-shell .scene-actions-popover-rich .scene-menu-inline-actions button{text-align:center}.app-shell .scene-actions-popover-rich .scene-menu-divider{height:1px;margin:9px 0;background:#ebe3ed}.app-shell.manuscript-detail-layout .scene-info-panel{position:fixed!important;top:0;right:0;z-index:95;width:min(390px,92vw);height:100vh;grid-column:auto!important;box-shadow:-18px 0 48px #1f16282b}@media(max-width:1000px){.app-shell.manuscript-detail-layout{grid-template-columns:220px minmax(0,1fr)!important}.app-shell .writing-subnav{grid-template-columns:minmax(150px,210px) minmax(0,1fr) auto;gap:12px;padding-inline:18px}.app-shell.manuscript-detail-layout .editor{padding-inline:28px}}@media(max-width:850px){.app-shell.manuscript-detail-layout{grid-template-columns:1fr!important;grid-template-rows:auto auto auto 1fr}.app-shell.manuscript-detail-layout>.sidebar,.app-shell.manuscript-detail-layout>.writing-topbar,.app-shell.manuscript-detail-layout>.writing-subnav,.app-shell.manuscript-detail-layout>.editor{grid-column:1}.app-shell.manuscript-detail-layout>.sidebar{grid-row:1}.app-shell.manuscript-detail-layout>.writing-topbar{grid-row:2;margin:10px 10px 0}.app-shell.manuscript-detail-layout>.writing-subnav{grid-row:3}.app-shell.manuscript-detail-layout>.editor{grid-row:4}.app-shell .writing-subnav{grid-template-columns:1fr auto;gap:10px;padding:10px 12px}.app-shell .writing-subnav-scenes{grid-column:1/-1;grid-row:2;justify-content:flex-start}.app-shell .writing-structure-menu{grid-column:2;grid-row:1}.app-shell.manuscript-detail-layout .editor{padding:22px 16px 48px}.app-shell.manuscript-detail-layout .editor .tiptap-host .tiptap-manuscript{padding:38px 28px 58px}}.app-shell.manuscript-detail-layout{grid-template-columns:260px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch;background:#f7f3ec}.app-shell.manuscript-detail-layout.scene-info-open{grid-template-columns:260px minmax(0,1fr)!important}.app-shell.manuscript-detail-layout>.sidebar{grid-column:1!important;grid-row:1!important}.app-shell.manuscript-detail-layout>.writing-workspace{grid-column:2/-1!important;grid-row:1!important;display:flex;flex-direction:column;min-width:0;min-height:100vh;background:#f7f3ec}.app-shell .writing-workspace>.writing-topbar{flex:0 0 auto;width:auto!important;min-width:0;margin:14px 16px 0!important;padding:14px 18px 10px!important}.app-shell .writing-workspace .writing-topbar-mainline{display:grid!important;grid-template-columns:minmax(240px,1fr) auto auto!important;align-items:center;gap:20px!important;min-width:0}.app-shell .writing-workspace .writing-topbar-title,.app-shell .writing-workspace .writing-topbar-title>div{min-width:0}.app-shell .writing-workspace .writing-topbar-title>div>strong{max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-shell .writing-workspace .writing-topbar-metrics{display:flex!important;align-items:center;gap:16px!important}.app-shell .writing-workspace .writing-topbar-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:8px!important;white-space:nowrap}.app-shell .writing-workspace .writing-topbar-actions>.writing-new-chapter{display:inline-flex!important}.app-shell .writing-workspace>.writing-subnav{flex:0 0 auto;width:100%!important;min-width:0;margin:0!important;padding:12px 28px!important;display:grid!important;grid-template-columns:minmax(190px,260px) minmax(0,1fr) auto!important;align-items:center;gap:20px;background:#fffcf7fa;border-bottom:1px solid #e5ddd3;box-shadow:0 4px 14px #412d1c09}.app-shell .writing-workspace .writing-subnav-scenes{display:flex!important;justify-content:center;align-items:center;min-width:0;max-width:100%;overflow-x:auto;padding:2px 4px}.app-shell .writing-workspace .writing-chapter-select{width:100%!important;max-width:none!important}.app-shell .writing-workspace .writing-structure-menu{justify-self:end}.app-shell .writing-workspace>.editor{flex:1 1 auto;width:100%!important;min-width:0;margin:0!important;padding:32px clamp(28px,4vw,68px) 72px!important;background:#f7f3ec!important}.app-shell .writing-workspace>.editor .editor-header,.app-shell .writing-workspace>.editor .editor-tools-shell,.app-shell .writing-workspace>.editor .search-replace-panel,.app-shell .writing-workspace>.editor .manuscript{width:min(100%,1120px)!important;max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}.app-shell .writing-workspace>.editor .editor-header{margin-bottom:16px!important}.app-shell .writing-workspace>.editor .title-input{font-size:clamp(2.2rem,3.1vw,3.05rem)!important}.app-shell .writing-workspace>.editor .editor-tools-shell{position:sticky;top:8px;z-index:15;margin-bottom:18px!important}.app-shell .writing-workspace>.editor .manuscript{min-height:calc(100vh - 300px)!important;border-radius:18px!important}.app-shell .writing-workspace>.editor .tiptap-host .tiptap-manuscript{padding:52px clamp(38px,5vw,76px) 76px!important;font-size:1.08rem;line-height:1.86}.app-shell .writing-workspace .writing-structure-drawer{position:fixed!important;inset:0 0 0 auto!important;z-index:120!important;width:min(390px,92vw)!important;height:100vh!important;overflow-y:auto!important}.app-shell .writing-workspace>.scene-info-panel{position:fixed!important;top:0!important;right:0!important;z-index:125!important;width:min(360px,92vw)!important;height:100vh!important;min-height:0!important;overflow-y:auto!important;grid-column:auto!important;grid-row:auto!important;box-shadow:-18px 0 48px #1f16282e}@media(max-width:1120px){.app-shell.manuscript-detail-layout{grid-template-columns:240px minmax(0,1fr)!important}.app-shell .writing-workspace .writing-topbar-mainline{grid-template-columns:minmax(220px,1fr) auto!important}.app-shell .writing-workspace .writing-topbar-metrics{display:none!important}.app-shell .writing-workspace>.writing-subnav{grid-template-columns:210px minmax(0,1fr) auto!important;padding-inline:20px!important;gap:12px}}@media(max-width:850px){.app-shell.manuscript-detail-layout,.app-shell.manuscript-detail-layout.sidebar-collapsed,.app-shell.manuscript-detail-layout.scene-info-open{grid-template-columns:1fr!important}.app-shell.manuscript-detail-layout>.sidebar,.app-shell.manuscript-detail-layout>.writing-workspace{grid-column:1!important;grid-row:auto!important}.app-shell .writing-workspace>.writing-topbar{margin:10px 10px 0!important}.app-shell .writing-workspace .writing-topbar-mainline{grid-template-columns:1fr!important;gap:10px!important}.app-shell .writing-workspace .writing-topbar-actions{justify-content:flex-start}.app-shell .writing-workspace>.writing-subnav{grid-template-columns:1fr auto!important;padding:10px 12px!important}.app-shell .writing-workspace .writing-subnav-scenes{grid-column:1/-1;grid-row:2;justify-content:flex-start}.app-shell .writing-workspace>.editor{padding:24px 16px 48px!important}}.app-shell .writing-workspace>.writing-subnav{min-height:64px!important;grid-template-columns:220px minmax(0,1fr) auto!important;gap:16px!important;padding:10px 24px!important}.app-shell .writing-workspace .writing-subnav-scenes{justify-content:flex-start!important;gap:8px!important;overflow-x:auto}.app-shell .writing-workspace .writing-scene-tab,.app-shell .writing-workspace .writing-add-scene{margin:0!important;border-radius:10px!important}.app-shell .writing-workspace .writing-scene-tab{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:16px!important}.app-shell .writing-workspace .writing-scene-tab.active{background:#eee6f8!important;border-color:#cab7e5!important;color:#65488f!important;box-shadow:inset 0 -2px #7651b2!important}.app-shell .writing-workspace .writing-structure-menu{justify-self:end;position:relative}.app-shell .writing-workspace .writing-structure-backdrop{display:none;position:fixed;inset:0 0 0 260px;z-index:110;padding:0;border:0;border-radius:0;background:#1f182729;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);cursor:pointer}.app-shell .writing-workspace .writing-structure-menu[open]>.writing-structure-backdrop{display:block}.app-shell .writing-workspace .writing-structure-drawer{position:fixed!important;inset:0 0 0 auto!important;z-index:120!important;width:min(350px,88vw)!important;height:100vh!important;padding:22px 18px 30px!important;overflow-y:auto!important;border-left:1px solid #e2d8e9!important;background:linear-gradient(180deg,#fffdf9,#faf6f0)!important;box-shadow:-16px 0 40px #1c142629!important;animation:writerStructureDrawerIn .18s ease-out}@keyframes writerStructureDrawerIn{0%{transform:translate(18px);opacity:.72}to{transform:translate(0);opacity:1}}.app-shell .writing-workspace .writing-structure-head{align-items:center!important;margin-bottom:14px!important;padding-bottom:14px!important}.app-shell .writing-workspace .writing-structure-head-actions{display:flex;align-items:center;gap:10px}.app-shell .writing-workspace .writing-structure-head-actions small{white-space:nowrap}.app-shell .writing-workspace .writing-structure-close{display:grid;place-items:center;width:34px;min-width:34px;height:34px;padding:0;border:1px solid #ded4e6;border-radius:10px;background:#fff;color:#665575;cursor:pointer;font-size:1.2rem;line-height:1}.app-shell .writing-workspace .writing-structure-close:hover{background:#f2ebf7;border-color:#cfc0dc}.app-shell .writing-workspace .writing-structure-new-chapter{display:none!important}.app-shell .writing-workspace .writing-structure-chapters{gap:8px!important}.app-shell .writing-workspace .writing-structure-chapter{border-radius:12px!important;box-shadow:none!important}.app-shell .writing-workspace .writing-structure-chapter-button{padding:11px 12px!important}.app-shell .writing-workspace .writing-structure-scenes{margin-top:6px!important}@media(max-width:1120px){.app-shell .writing-workspace .writing-structure-backdrop{left:240px}.app-shell .writing-workspace>.writing-subnav{grid-template-columns:200px minmax(0,1fr) auto!important;padding-inline:18px!important}}@media(max-width:850px){.app-shell .writing-workspace .writing-structure-backdrop{left:0}.app-shell .writing-workspace>.writing-subnav{grid-template-columns:minmax(0,1fr) auto!important}.app-shell .writing-workspace .writing-subnav-scenes{grid-column:1/-1}}.app-shell .writing-workspace>.writing-topbar{align-self:stretch!important;width:calc(100% - 32px)!important;max-width:none!important;margin:14px 16px 0!important;box-sizing:border-box}.app-shell .writing-workspace>.writing-subnav{z-index:30!important}.app-shell .writing-workspace>.writing-subnav:has(.writing-structure-menu[open]){z-index:400!important}.app-shell .writing-workspace .writing-structure-backdrop{z-index:410!important;background:#1f18271a!important;-webkit-backdrop-filter:blur(.6px)!important;backdrop-filter:blur(.6px)!important}.app-shell .writing-workspace .writing-structure-drawer{z-index:420!important;width:min(350px,88vw)!important}body:has(.writing-structure-menu[open]){overflow:hidden!important}@media(max-width:850px){.app-shell .writing-workspace>.writing-topbar{width:calc(100% - 20px)!important;margin:10px 10px 0!important}}
