:root{--bg-cream:#faf8f4;--bg-card:#fff;--ink:#1a1814;--muted:#7a7570;--accent:#c97d5a;--accent-light:#f5ece5;--accent-hover:#b36846;--rule:#1a18141f;--font-serif:"Lora", Georgia, serif;--font-sans:"DM Sans", sans-serif;--shadow:0 4px 20px #0000000a;--btn-active-bg:#c97d5a;--btn-active-text:#fff}[data-theme=dark]{--bg-cream:#12110f;--bg-card:#1c1a17;--ink:#eadecc;--muted:#969089;--accent:#e0926d;--accent-light:#2c241c;--accent-hover:#f0a581;--rule:#eadecc26;--shadow:0 4px 20px #0000004d;--btn-active-bg:#e0926d;--btn-active-text:#12110f}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}body{background-color:var(--bg-cream);color:var(--ink);font-family:var(--font-sans);flex-direction:column;min-height:100vh;line-height:1.6;transition:background-color .3s,color .3s;display:flex}*{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea,[contenteditable=true],[contenteditable=true] *,.studio-allow-select,.studio-allow-select *{-webkit-user-select:text!important;user-select:text!important;-webkit-touch-callout:default!important}::selection{color:inherit;background:0 0!important}::selection{color:inherit;background:0 0!important}header{background:var(--bg-card);border-bottom:1px solid var(--rule);z-index:100;box-shadow:var(--shadow);transition:background-color .3s,border-color .3s;position:sticky;top:0}.header-container{justify-content:space-between;align-items:center;max-width:720px;margin:0 auto;padding:.8rem 1rem;display:flex}.header-left-group{flex:1;align-items:center;gap:.65rem;min-width:0;margin-right:.5rem;display:flex}.header-back-home{border:1px solid var(--rule);color:var(--muted);background:0 0;border-radius:8px;flex-shrink:0;align-items:center;gap:.32rem;padding:.34rem .62rem;font-size:.78rem;font-weight:500;text-decoration:none;transition:border-color .2s,color .2s,background-color .2s;display:inline-flex}.header-back-home:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}@media (width<=520px){.header-back-label{display:none}}.brand{font-family:var(--font-serif);color:var(--accent);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:1.05rem;font-style:italic;font-weight:600;text-decoration:none;overflow:hidden}.controls-right{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.control-btn{border:1px solid var(--rule);width:38px;height:38px;color:var(--ink);cursor:pointer;background:0 0;border-radius:50%;justify-content:center;align-items:center;transition:all .2s;display:flex}.control-btn:hover{background:var(--accent-light);border-color:var(--accent)}.bottom-nav{background:var(--bg-card);border-top:1px solid var(--rule);z-index:99;justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 20px #00000014}.bottom-container{justify-content:space-between;align-items:center;width:100%;max-width:720px;margin:0 auto;display:flex}.nav-btn{font-family:var(--font-sans);border:1px solid var(--rule);background:var(--bg-card);color:var(--ink);cursor:pointer;border-radius:20px;align-items:center;gap:4px;padding:.5rem 1rem;font-size:.85rem;font-weight:500;text-decoration:none;transition:all .2s;display:flex}.nav-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.nav-btn:disabled{opacity:.3;cursor:not-allowed}.progress-indicator-text{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:.78rem;font-weight:600}.reader-single-footer{border-top:1px solid var(--rule);text-align:center;margin-top:3rem;padding-top:1.5rem}.reader-return-beranda{color:var(--accent);align-items:center;gap:.4rem;font-size:.88rem;font-weight:600;text-decoration:none;display:inline-flex}.reader-return-beranda:hover{text-decoration:underline}.reader-state-shell{background:var(--bg-cream);min-height:100vh;color:var(--ink);place-items:center;padding:1.5rem;display:grid}.reader-state-card{background:var(--bg-card);border:1px solid var(--rule);text-align:center;width:100%;max-width:460px;box-shadow:var(--shadow);border-radius:12px;padding:2rem}.reader-state-card h2{font-family:var(--font-serif);margin-bottom:.5rem;font-size:1.3rem;font-style:italic}.reader-state-card p{color:var(--muted);margin-bottom:1.25rem;font-size:.88rem;line-height:1.6}main{flex:1;width:100%;max-width:680px;margin:0 auto;padding:1.5rem 1rem 6rem}.book-meta{text-align:center;border-bottom:1px solid var(--rule);margin-bottom:2rem;padding:1.5rem 0 2rem;transition:all .8s cubic-bezier(.25,1,.5,1);position:relative}.book-meta:before{content:"";z-index:-1;opacity:0;filter:blur(24px);border-radius:20px;transition:opacity 1.2s cubic-bezier(.25,1,.5,1),background-image 1.2s cubic-bezier(.25,1,.5,1);position:absolute;inset:0}.book-meta.theme-prologue:before{opacity:1;background-image:radial-gradient(circle,#c97d5a17 0%,#c97d5a00 70%)}.book-meta.theme-main:before{opacity:1;background-image:radial-gradient(circle,#e0926d17 0%,#e0926d00 70%)}.book-title{font-family:var(--font-serif);color:var(--ink);margin-bottom:.5rem;font-size:1.8rem;font-style:italic;font-weight:500;line-height:1.3;transition:color .8s cubic-bezier(.25,1,.5,1)}.book-meta.theme-prologue .book-title{color:var(--accent)}.book-subtitle{letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:.5rem;font-size:.75rem;transition:opacity .4s cubic-bezier(.25,1,.5,1),transform .4s cubic-bezier(.25,1,.5,1),letter-spacing .8s cubic-bezier(.25,1,.5,1),color .8s;display:inline-block}.book-subtitle.transitioning{opacity:0;letter-spacing:.25em;transform:translateY(-8px)scale(.95)}.book-meta.theme-prologue .book-subtitle{color:#b36846;font-weight:600}.book-meta.theme-main .book-subtitle{color:var(--accent);font-weight:500}.ornament{color:var(--accent);margin:.5rem 0;font-size:1.2rem;transition:transform .8s cubic-bezier(.34,1.56,.64,1),color .8s;display:inline-block}.book-meta.theme-prologue .ornament{color:#b36846;transform:rotate(180deg)scale(1.15)}.book-meta.theme-main .ornament{color:var(--accent);transform:rotate(0)scale(1)}.settings-panel{background:var(--bg-card);border:1px solid var(--rule);z-index:101;opacity:0;pointer-events:none;border-radius:14px;flex-direction:column;gap:.7rem;min-width:230px;padding:.9rem 1.2rem;transition:opacity .2s,transform .2s;display:flex;position:fixed;bottom:60px;left:50%;transform:translate(-50%);box-shadow:0 4px 24px #0000001f}.settings-panel.visible{opacity:1;pointer-events:auto;transform:translate(-50%)translateY(-5px)}.settings-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.settings-row+.settings-row{border-top:1px solid var(--rule);padding-top:.6rem}.settings-row-controls{align-items:center;gap:.6rem;display:flex}.settings-label{color:var(--muted);white-space:nowrap;font-size:.8rem;font-weight:500}.font-size-btn{border:1px solid var(--rule);color:var(--ink);cursor:pointer;background:0 0;border-radius:6px;padding:.3rem .6rem;font-size:.8rem}.font-size-btn:hover{border-color:var(--accent)}.settings-toggle{flex-shrink:0;width:38px;height:22px;display:inline-block;position:relative}.settings-toggle input{opacity:0;width:0;height:0}.settings-toggle-slider{cursor:pointer;background:var(--rule);border-radius:22px;transition:background .25s;position:absolute;inset:0}.settings-toggle-slider:before{content:"";background:var(--bg-card);border-radius:50%;width:16px;height:16px;transition:transform .25s;position:absolute;bottom:3px;left:3px;box-shadow:0 1px 3px #0003}.settings-toggle input:checked+.settings-toggle-slider{background:var(--accent)}.settings-toggle input:checked+.settings-toggle-slider:before{transform:translate(16px)}.settings-toggle input:focus-visible+.settings-toggle-slider{outline:2px solid var(--accent);outline-offset:2px}.quick-action-buttons{gap:.4rem;display:flex}.quick-action-btn{background:var(--accent-light);border:1px solid var(--rule);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:.95rem;transition:all .2s;display:flex}.quick-action-btn:hover{border-color:var(--accent);transform:translateY(-1px)}.quick-action-btn.active-state{background:var(--accent)}.toast{background:var(--ink);color:var(--bg-cream);z-index:999;opacity:0;border-radius:20px;padding:.6rem 1.2rem;font-size:.8rem;font-weight:500;transition:all .3s cubic-bezier(.16,1,.3,1);position:fixed;top:20px;left:50%;transform:translate(-50%)translateY(-50px)}.toast.show{opacity:.95;transform:translate(-50%)translateY(0)}.bottom-hint{bottom:max(24px, env(safe-area-inset-bottom));background:var(--ink);color:var(--bg-cream);text-align:center;z-index:998;opacity:0;pointer-events:none;border-radius:20px;max-width:86%;padding:.65rem 1.1rem;font-size:.78rem;font-weight:500;transition:all .3s cubic-bezier(.16,1,.3,1);position:fixed;left:50%;transform:translate(-50%)translateY(20px)}.bottom-hint.show{opacity:.95;transform:translate(-50%)translateY(0)}.divider{border:none;border-top:1px solid var(--rule);margin:1.5rem 0}.audio-fab{background:var(--bg-card);border:1px solid var(--rule);cursor:pointer;z-index:102;width:40px;height:40px;color:var(--muted);border-radius:50%;justify-content:center;align-items:center;padding:0;transition:all .2s;display:flex;position:fixed;bottom:76px;right:16px;box-shadow:0 2px 14px #00000021}.audio-fab:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent);transform:scale(1.08)}.audio-fab.muted{opacity:.45}.audio-fab svg{pointer-events:none}.beranda-shell{background-color:var(--bg-cream);min-height:100vh;color:var(--ink);flex-direction:column;transition:background-color .3s,color .3s;display:flex}.beranda-topbar{z-index:60;background:var(--bg-card);border-bottom:1px solid var(--rule);box-shadow:var(--shadow);position:sticky;top:0}.beranda-topbar-inner{justify-content:space-between;align-items:center;gap:1rem;max-width:1120px;margin:0 auto;padding:.78rem 1.25rem;display:flex}.beranda-brand{color:var(--accent);font-family:var(--font-serif);letter-spacing:-.01em;flex-shrink:0;align-items:center;gap:.5rem;font-size:1.18rem;font-style:italic;font-weight:600;text-decoration:none;display:inline-flex}.beranda-brand-ornament{font-size:1rem;font-style:normal}.beranda-top-nav{align-items:center;gap:1.25rem;display:flex}.beranda-nav-tab{font-family:var(--font-sans);color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:.35rem .1rem;font-size:.86rem;font-weight:500;transition:color .18s;position:relative}.beranda-nav-tab:hover{color:var(--ink)}.beranda-nav-tab.is-active{color:var(--accent);font-weight:600}.beranda-nav-tab.is-active:after{content:"";background:var(--accent);border-radius:2px;height:2px;position:absolute;bottom:-4px;left:0;right:0}.beranda-top-actions{flex-shrink:0;align-items:center;gap:.6rem;display:flex}.beranda-theme-btn{border:1px solid var(--rule);width:36px;height:36px;color:var(--ink);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;transition:border-color .18s,background-color .18s,color .18s;display:inline-flex}.beranda-theme-btn:hover{border-color:var(--accent);background:var(--accent-light);color:var(--accent)}.beranda-main{flex:1;width:100%;max-width:1120px;margin:0 auto;padding:2.5rem 1.25rem 4.5rem}.beranda-hero{border-bottom:1px solid var(--rule);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:1.75rem;padding-bottom:1.75rem;display:flex}.beranda-hero-copy{max-width:600px}.beranda-eyebrow{letter-spacing:.15em;text-transform:uppercase;color:var(--accent);margin-bottom:.55rem;font-size:.72rem;font-weight:600}.beranda-hero-title{font-family:var(--font-serif);color:var(--ink);margin-bottom:.6rem;font-size:clamp(1.9rem,3.4vw,2.75rem);font-style:italic;font-weight:600;line-height:1.18}.beranda-hero-desc{color:var(--muted);font-size:.94rem;line-height:1.6}.beranda-search-wrap{width:100%;max-width:320px;position:relative}.beranda-search-icon{color:var(--muted);pointer-events:none;position:absolute;top:50%;left:.85rem;transform:translateY(-50%)}.beranda-search-input{border:1px solid var(--rule);background:var(--bg-card);width:100%;color:var(--ink);font-family:var(--font-sans);border-radius:8px;padding:.62rem 2.2rem .62rem 2.35rem;font-size:.86rem;transition:border-color .18s,box-shadow .18s}.beranda-search-input::placeholder{color:var(--muted)}.beranda-search-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light);outline:none}.beranda-search-clear{color:var(--muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:.2rem;display:inline-flex;position:absolute;top:50%;right:.6rem;transform:translateY(-50%)}.beranda-search-clear:hover{color:var(--accent)}.beranda-filter-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.75rem;display:flex}.beranda-filter-tabs{flex-wrap:wrap;gap:.4rem;display:flex}.beranda-filter-btn{border:1px solid var(--rule);background:var(--bg-card);color:var(--muted);font-family:var(--font-sans);cursor:pointer;border-radius:7px;align-items:center;gap:.45rem;padding:.42rem .85rem;font-size:.82rem;font-weight:500;transition:border-color .16s,color .16s,background-color .16s;display:inline-flex}.beranda-filter-btn:hover{border-color:var(--accent);color:var(--ink)}.beranda-filter-btn.is-active{background:var(--accent-light);border-color:var(--accent);color:var(--accent);font-weight:600}.beranda-filter-count{opacity:.82;font-size:.74rem}.beranda-summary-meta{color:var(--muted);font-size:.8rem}.beranda-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem;display:grid}@media (width<=960px){.beranda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.beranda-topbar-inner{padding:.7rem .95rem}.beranda-top-nav{display:none}.beranda-main{padding:1.6rem 1rem 3.5rem}.beranda-grid{grid-template-columns:1fr;gap:1.25rem}}.beranda-card{color:inherit;background:var(--bg-card);border:1px solid var(--rule);box-shadow:var(--shadow);border-radius:12px;flex-direction:column;text-decoration:none;transition:transform .22s,border-color .22s,box-shadow .22s;display:flex;overflow:hidden}.beranda-card:hover{border-color:var(--accent);transform:translateY(-3px);box-shadow:0 14px 32px #0000001f}.beranda-card-cover-wrap{aspect-ratio:16/10;border-bottom:1px solid var(--rule);background:var(--accent-light);width:100%;position:relative;overflow:hidden}.beranda-card-cover-img{object-fit:cover;width:100%;height:100%;transition:transform .35s;display:block}.beranda-card:hover .beranda-card-cover-img{transform:scale(1.03)}.beranda-cover-fallback{background:radial-gradient(circle at 85% 15%, var(--accent-light) 0%, var(--bg-card) 75%);flex-direction:column;justify-content:space-between;width:100%;height:100%;padding:1.25rem 1.35rem;display:flex;position:relative}.beranda-cover-fallback:after{content:"";border:1px solid var(--rule);pointer-events:none;border-radius:6px;position:absolute;inset:10px}.beranda-cover-type{letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-size:.68rem;font-weight:700}.beranda-cover-title{font-family:var(--font-serif);color:var(--ink);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:1.22rem;font-style:italic;font-weight:600;line-height:1.28;display:-webkit-box;overflow:hidden}.beranda-cover-ornament{color:var(--muted);justify-content:space-between;align-items:center;font-size:.8rem;display:flex}.beranda-card-body{flex-direction:column;flex:1;gap:.5rem;padding:1.15rem 1.25rem 1.2rem;display:flex}.beranda-card-meta{letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-size:.72rem;font-weight:600}.beranda-card-title{font-family:var(--font-serif);color:var(--ink);font-size:1.2rem;font-weight:600;line-height:1.32}.beranda-card-subtitle{color:var(--muted);font-size:.84rem;font-style:italic}.beranda-card-synopsis{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-top:.15rem;font-size:.86rem;line-height:1.55;display:-webkit-box;overflow:hidden}.beranda-card-footer{border-top:1px solid var(--rule);justify-content:space-between;align-items:center;gap:.75rem;margin-top:auto;padding-top:.85rem;font-size:.8rem;display:flex}.beranda-card-author{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.beranda-card-cta{color:var(--accent);white-space:nowrap;align-items:center;gap:.3rem;font-weight:600;display:inline-flex}.beranda-state-card{background:var(--bg-card);border:1px solid var(--rule);text-align:center;max-width:540px;box-shadow:var(--shadow);border-radius:12px;margin:3.5rem auto;padding:2.25rem 2rem}.beranda-state-ornament{color:var(--accent);margin-bottom:.8rem;font-size:1.5rem;display:inline-block}.beranda-state-card h2{font-family:var(--font-serif);color:var(--ink);margin-bottom:.55rem;font-size:1.35rem;font-style:italic;font-weight:600}.beranda-state-card p{color:var(--muted);margin-bottom:1.35rem;font-size:.9rem;line-height:1.6}.beranda-state-actions{flex-wrap:wrap;justify-content:center;gap:.75rem;display:flex}.beranda-primary-btn{border:1px solid var(--accent);background:var(--accent);color:var(--btn-active-text);font-family:var(--font-sans);cursor:pointer;border-radius:8px;align-items:center;gap:.45rem;padding:.6rem 1.25rem;font-size:.86rem;font-weight:600;text-decoration:none;transition:background-color .18s,border-color .18s;display:inline-flex}.beranda-primary-btn:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.beranda-secondary-btn{border:1px solid var(--rule);color:var(--ink);font-family:var(--font-sans);cursor:pointer;background:0 0;border-radius:8px;align-items:center;gap:.45rem;padding:.6rem 1.15rem;font-size:.86rem;font-weight:500;text-decoration:none;display:inline-flex}.beranda-secondary-btn:hover{border-color:var(--accent);color:var(--accent)}.beranda-card-skeleton{background:var(--bg-card);border:1px solid var(--rule);opacity:.65;border-radius:12px;height:330px;animation:1.5s ease-in-out infinite berandaPulse}@keyframes berandaPulse{0%,to{opacity:.45}50%{opacity:.85}}.beranda-footer{border-top:1px solid var(--rule);text-align:center;color:var(--muted);padding:1.35rem 1.25rem;font-size:.78rem}.beranda-footer a{color:var(--accent);font-weight:500;text-decoration:none}.beranda-footer a:hover{text-decoration:underline}.chapter-drawer{background:var(--bg-card);z-index:200;flex-direction:column;width:85%;max-width:320px;height:100%;transition:left .3s ease-in-out;display:flex;position:fixed;top:0;left:-100%;box-shadow:4px 0 24px #00000026}.chapter-drawer.open{left:0}.drawer-overlay{z-index:150;background:#00000080;width:100%;height:100%;display:none;position:fixed;top:0;left:0}.drawer-overlay.visible{display:block}.drawer-header{border-bottom:1px solid var(--rule);justify-content:space-between;align-items:center;padding:1.2rem 1rem;display:flex}.drawer-title{font-family:var(--font-serif);color:var(--accent);font-style:italic;font-weight:600}.drawer-close{color:var(--muted);cursor:pointer;background:0 0;border:none;font-size:1.5rem}.drawer-list{flex:1;padding:1rem .5rem;overflow-y:auto}.drawer-controls{border-bottom:1px solid var(--rule);background:var(--bg-card);flex-direction:column;gap:.8rem;padding:.8rem 1rem .5rem;display:flex}.drawer-search-wrap{background:var(--bg-cream);border:1px solid var(--rule);border-radius:20px;align-items:center;padding:.4rem .8rem;transition:all .3s;display:flex;position:relative}.drawer-search-wrap:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}.drawer-search-wrap .search-icon{color:var(--muted);margin-right:.5rem;transition:color .3s}.drawer-search-wrap:focus-within .search-icon{color:var(--accent)}.drawer-search-wrap input{color:var(--ink);font-family:var(--font-sans);background:0 0;border:none;outline:none;flex:1;width:100%;font-size:.82rem}.drawer-search-wrap input::placeholder{color:var(--muted);opacity:.85}#drawer-search-clear{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:0 .2rem;font-size:1.1rem;transition:color .2s}#drawer-search-clear:hover{color:var(--accent)}.drawer-tabs{background:var(--bg-cream);border-radius:12px;gap:.4rem;padding:.25rem;display:flex}.drawer-tabs .tab-btn{cursor:pointer;font-family:var(--font-sans);color:var(--muted);background:0 0;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:.3rem;padding:.4rem .6rem;font-size:.78rem;font-weight:600;transition:all .25s cubic-bezier(.25,.8,.25,1);display:flex}.drawer-tabs .tab-btn:hover{color:var(--ink);background:#00000008}[data-theme=dark] .drawer-tabs .tab-btn:hover{background:#ffffff08}.drawer-tabs .tab-btn.active{background:var(--bg-card);color:var(--accent);box-shadow:0 2px 8px #0000000a}[data-theme=dark] .drawer-tabs .tab-btn.active{box-shadow:0 2px 8px #0003}.fav-count-badge{background:var(--accent-light);color:var(--accent);text-align:center;border-radius:8px;min-width:14px;padding:.05rem .35rem;font-size:.65rem;font-weight:700;transition:all .3s}.drawer-tabs .tab-btn.active .fav-count-badge{background:var(--accent);color:var(--btn-active-text)}.drawer-item{text-align:left;cursor:pointer;width:100%;color:var(--ink);-webkit-user-select:none;user-select:none;background:0 0;border:none;border-radius:8px;flex-direction:column;margin-bottom:.25rem;padding:.75rem .8rem;transition:transform .2s cubic-bezier(.175,.885,.32,1.275),background .2s,border-color .2s;display:flex;position:relative;overflow:hidden}.drawer-item:active:not(.active){transform:scale(.97)}.drawer-item:hover{background:var(--accent-light)}.drawer-item.active{background:var(--accent);color:var(--btn-active-text)}.drawer-item .ch-num-lbl{text-transform:uppercase;letter-spacing:.05em;opacity:.8;margin-bottom:.15rem;font-size:.65rem}.drawer-item .ch-title-lbl{font-family:var(--font-serif);font-size:.9rem;font-weight:500}.drawer-item .fav-indicator{color:#ff4b72;opacity:0;pointer-events:none;transition:all .3s cubic-bezier(.175,.885,.32,1.275);position:absolute;top:50%;right:.8rem;transform:translateY(-50%)scale(0)}.drawer-item.is-fav .fav-indicator{opacity:1;transform:translateY(-50%)scale(1)}.drawer-item.is-fav{padding-right:2.2rem}.drawer-item .press-progress{pointer-events:none;background:linear-gradient(90deg,#ff6f91,#ff4b72);width:0%;height:3px;transition:width .8s linear;position:absolute;bottom:0;left:0}.drawer-item.pressing .press-progress{width:100%}.drawer-empty-state{text-align:center;font-family:var(--font-sans);color:var(--muted);flex-direction:column;align-items:center;gap:.6rem;padding:2.5rem 1rem;font-size:.85rem;animation:.4s fadeIn;display:flex}.drawer-empty-state svg{color:var(--muted);opacity:.5}.drawer-list::-webkit-scrollbar{width:4px}.drawer-list::-webkit-scrollbar-thumb{background:var(--rule);border-radius:4px}.search-snippet{font-family:var(--font-serif);color:var(--muted);margin-top:.3rem;font-size:.76rem;font-style:italic;line-height:1.55;display:block}.search-snippet mark{background:var(--accent-light);color:var(--accent);border-radius:3px;padding:0 2px;font-style:normal;font-weight:700}.drawer-header-actions{align-items:center;gap:.5rem;display:flex}.drawer-header-btn{cursor:pointer;color:var(--muted);background:0 0;border:none;font-size:1.05rem;line-height:1;transition:color .2s,transform .2s}.drawer-header-btn:hover{color:var(--accent);transform:scale(1.1)}#ending-cinematic{z-index:9000;opacity:0;pointer-events:none;background:#0a0806;flex-direction:column;justify-content:center;align-items:center;padding:2rem;transition:opacity .8s;display:flex;position:fixed;inset:0}#ending-cinematic.active{opacity:1;pointer-events:all}#ending-cinematic.fade-out-ending{opacity:0;transition:opacity 1.5s}.ending-cin-particles{pointer-events:none;position:absolute;inset:0;overflow:hidden}.ending-cin-star{width:2px;height:2px;animation:starFloat var(--dur,4s) var(--delay,0s) ease-in-out infinite alternate;opacity:0;background:#e0926d;border-radius:50%;position:absolute}@keyframes starFloat{0%{opacity:0;transform:translateY(0)scale(1)}30%{opacity:var(--op,.7)}70%{opacity:var(--op,.7)}to{opacity:0;transform:translateY(-40px)scale(.5)}}.ending-cin-line{background:linear-gradient(#0000,#e0926d99,#0000);width:1px;height:0;margin:0 auto 2.5rem;animation:1.2s cubic-bezier(.16,1,.3,1) .4s forwards lineGrow}@keyframes lineGrow{0%{opacity:0;height:0}to{opacity:1;height:80px}}.ending-cin-label{font-family:var(--font-sans);letter-spacing:.3em;text-transform:uppercase;color:#e0926db3;opacity:0;margin-bottom:1.2rem;font-size:.65rem;animation:.8s .8s forwards endFadeUp}.ending-cin-title{font-family:var(--font-serif);color:#faf8f4;text-align:center;opacity:0;margin-bottom:1rem;font-size:clamp(1.6rem,5vw,2.6rem);font-style:italic;font-weight:500;line-height:1.3;animation:.9s cubic-bezier(.16,1,.3,1) 1.2s forwards endFadeUp}.ending-cin-subtitle{font-family:var(--font-serif);color:#e0926dd9;text-align:center;opacity:0;margin-bottom:2.5rem;font-size:.9rem;font-style:italic;animation:.9s cubic-bezier(.16,1,.3,1) 1.6s forwards endFadeUp}.ending-cin-ornament{color:#e0926d99;opacity:0;margin-bottom:2rem;font-size:1.5rem;animation:.9s 2s forwards endFadeUp,3s ease-in-out 2.9s infinite ornamentPulse}@keyframes ornamentPulse{0%,to{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.12)}}.ending-cin-btn{font-family:var(--font-serif);color:#e0926d;cursor:pointer;opacity:0;letter-spacing:.04em;background:0 0;border:1px solid #e0926d80;border-radius:40px;padding:.75rem 2.2rem;font-size:.95rem;font-style:italic;transition:all .3s;animation:.9s 2.4s forwards endFadeUp}.ending-cin-btn:hover{background:#e0926d26;border-color:#e0926d;transform:translateY(-2px);box-shadow:0 8px 28px #e0926d33}@keyframes endFadeUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.ending-chapter-wrapper{position:relative}.ending-bg-glow{pointer-events:none;z-index:-1;background:radial-gradient(at 50% 30%,#e0926d0f 0%,#0000 70%);animation:6s ease-in-out infinite endingGlowPulse;position:fixed;inset:0}@keyframes endingGlowPulse{0%,to{opacity:.6}50%{opacity:1}}.ending-header-special{text-align:center;padding:3rem 1rem 2rem;position:relative}.ending-badge{font-family:var(--font-sans);letter-spacing:.25em;text-transform:uppercase;color:var(--accent);border:1px solid var(--accent);border-radius:20px;margin-bottom:1.5rem;padding:.3rem .9rem;font-size:.62rem;animation:2.5s ease-in-out infinite badgePulse;display:inline-block}@keyframes badgePulse{0%,to{box-shadow:0 0 #e0926d00}50%{box-shadow:0 0 0 6px #e0926d1f}}.ending-main-title{font-family:var(--font-serif);color:var(--ink);margin-bottom:.8rem;font-size:clamp(1.5rem,5vw,2.2rem);font-style:italic;font-weight:500;line-height:1.3}.ending-ornament-row{color:var(--accent);opacity:.7;justify-content:center;align-items:center;gap:.8rem;margin:1.2rem 0;display:flex}.ending-ornament-row:before,.ending-ornament-row:after{content:"";background:linear-gradient(to right, transparent, var(--accent));flex:1;max-width:80px;height:1px}.ending-ornament-row:after{background:linear-gradient(to left, transparent, var(--accent))}.ending-quote-block{text-align:center;border:1px solid var(--rule);background:var(--accent-light);border-radius:12px;max-width:520px;margin:2.5rem auto;padding:2rem 1.5rem;position:relative}.ending-quote-block:before{content:"“";color:var(--accent);opacity:.4;font-family:Georgia,serif;font-size:3rem;line-height:1;position:absolute;top:-.5rem;left:1.2rem}.ending-quote-text{font-family:var(--font-serif);color:var(--ink);font-size:1.05rem;font-style:italic;line-height:1.85}.ending-quote-attr{font-family:var(--font-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-top:.8rem;font-size:.72rem;font-weight:600}.ending-contact-section{text-align:center;max-width:520px;margin:3rem auto}.ending-contact-title{font-family:var(--font-sans);letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:1.5rem;font-size:.72rem;font-weight:600}.ending-contact-cards{flex-wrap:wrap;justify-content:center;gap:1rem;display:flex}.ending-contact-card{border:1px solid var(--rule);color:var(--ink);font-family:var(--font-sans);background:var(--bg-card);border-radius:40px;align-items:center;gap:.6rem;padding:.7rem 1.2rem;font-size:.82rem;font-weight:500;text-decoration:none;transition:all .25s;display:flex}.ending-contact-card:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-2px);box-shadow:0 6px 20px #e0926d26}.ending-contact-card svg{flex-shrink:0}.ending-to-be-continued{text-align:center;border-top:1px solid var(--rule);margin-top:2rem;padding:2.5rem 1rem}.ending-tbc-text{font-family:var(--font-serif);color:var(--accent);margin-bottom:.5rem;font-size:1.1rem;font-style:italic;animation:3s ease-in-out infinite tbcPulse}@keyframes tbcPulse{0%,to{opacity:.7}50%{opacity:1}}.ending-tbc-sub{font-family:var(--font-sans);letter-spacing:.1em;color:var(--muted);text-transform:uppercase;font-size:.72rem}@keyframes petalFall{0%{transform:translateY(-20px) rotate(var(--rot-s)) translateX(0);opacity:0}10%{opacity:var(--op)}90%{opacity:var(--op)}to{transform:translateY(110vh) rotate(var(--rot-e)) translateX(var(--drift));opacity:0}}@keyframes shimmerText{0%{background-position:-200%}to{background-position:200%}}.shimmer-text{background:linear-gradient(90deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%);-webkit-text-fill-color:transparent;background-size:200%;-webkit-background-clip:text;background-clip:text;animation:4s linear infinite shimmerText}#vfx-layer{pointer-events:none;z-index:500;opacity:0;width:100%;height:100%;transition:opacity 1.8s cubic-bezier(.25,1,.5,1);position:fixed;top:0;left:0;overflow:hidden}#vfx-layer.active{opacity:1}@keyframes vfxWingFlapL{0%,to{transform:scaleX(1)skewY(-4deg)}50%{transform:scaleX(.1)skewY(4deg)}}@keyframes vfxWingFlapR{0%,to{transform:scaleX(1)skewY(4deg)}50%{transform:scaleX(.1)skewY(-4deg)}}.vfx-wing-l{transform-origin:100%;animation:.38s ease-in-out infinite alternate vfxWingFlapL}.vfx-wing-r{transform-origin:0;animation:.38s ease-in-out infinite alternate vfxWingFlapR}@keyframes vfxParticleFall{0%{opacity:0;transform:translateY(-20px)translate(0)rotate(0)}8%{opacity:1}88%{opacity:.75}to{opacity:0;transform:translateY(105vh)translate(30px)rotate(200deg)}}@keyframes vfxDustFloat{0%{opacity:0;transform:translate(0)scale(1)}20%{opacity:.55}50%{opacity:.38;transform:translate(10px,-18px)scale(1.15)}80%{opacity:.5}to{opacity:0;transform:translate(-6px,-34px)scale(.8)}}@keyframes vfxHeartbeatRed{0%{background-color:#dc1e1e00}12%{background-color:#dc1e1e29}22%{background-color:#dc1e1e0a}32%{background-color:#dc1e1e29}50%{background-color:#dc1e1e00}to{background-color:#dc1e1e00}}@keyframes vfxIceRise{0%{opacity:0;transform:translateY(0)scale(1)}10%{opacity:.8}90%{opacity:.8}to{opacity:0;transform:translateY(-110vh)scale(.6)}}@keyframes vfxSketchDraw{0%{stroke-dashoffset:1200px;opacity:.7}75%{stroke-dashoffset:0;opacity:.45}to{stroke-dashoffset:0;opacity:0}}@keyframes vfxLovePopAnim{0%{opacity:0;transform:translateY(0)scale(0)rotate(0)}15%{transform:translateY(-20vh) translateX(var(--drift-x)) scale(1.3) rotate(var(--rot-start));opacity:.95}to{transform:translateY(-115vh) translateX(calc(var(--drift-x) * 2.2)) scale(.5) rotate(var(--rot-end));opacity:0}}.chapter-content{opacity:1;transition:opacity .4s cubic-bezier(.25,1,.5,1),transform .4s cubic-bezier(.25,1,.5,1);transform:translateY(0)}.chapter-content.fade-out{opacity:0;transform:translateY(-15px)}.chapter-content.fade-in{animation:.6s cubic-bezier(.16,1,.3,1) forwards professionalFadeIn}@keyframes professionalFadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.ch-header{margin-bottom:1.8rem}.ch-num{letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:.3rem;font-size:.75rem;font-weight:600}.ch-title{font-family:var(--font-serif);color:var(--ink);font-size:1.5rem;font-style:italic;font-weight:500;line-height:1.3}.ch-setting{color:var(--muted);letter-spacing:.04em;margin-top:.4rem;font-size:.75rem}.prose{font-family:var(--font-serif);color:var(--ink);font-size:1.05rem;line-height:1.9}.prose p{text-align:justify;margin-bottom:1.25rem}.prose.has-dropcap p:first-child:first-letter{float:left;color:var(--accent);font-size:3em;line-height:.8;font-family:var(--font-serif);margin:.05em .1em 0 0;font-weight:500}.dialogue{border-left:3px solid var(--accent);font-family:var(--font-serif);color:var(--ink);background:var(--accent-light);border-radius:0 8px 8px 0;margin:1.5rem 0;padding:.9rem 1.1rem;font-size:.98rem;font-style:italic;line-height:1.8}.dialogue .speaker{font-style:normal;font-family:var(--font-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:.25rem;font-size:.68rem;font-weight:700;display:block}.feeling-badge{background:var(--accent-light);color:var(--accent);border:1px dashed var(--accent);border-radius:6px;margin-bottom:.8rem;padding:.25rem .6rem;font-size:.75rem;font-weight:600;display:inline-block}.inner-thought{font-family:var(--font-serif);color:var(--muted);border-left:1px dotted var(--rule);margin:1.2rem 0;padding:0 1rem;font-size:.95rem;font-style:italic;line-height:1.8}.scene-break{text-align:center;color:var(--accent);letter-spacing:.4em;margin:2rem 0;font-size:1.1rem}.flashback-wrap{background:var(--accent-light);border:.5px solid var(--rule);border-radius:8px;margin:1.5rem 0;padding:1.1rem 1.3rem}.flashback-label{font-family:var(--font-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:.6rem;font-size:.68rem;font-weight:700}body:not(.studio-mode):not(.story-revealed):not(.story-revealing) header,body:not(.studio-mode):not(.story-revealed):not(.story-revealing) .book-meta,body:not(.studio-mode):not(.story-revealed):not(.story-revealing) .chapter-content,body:not(.studio-mode):not(.story-revealed):not(.story-revealing) .bottom-nav,body:not(.studio-mode):not(.story-revealed):not(.story-revealing) #audio-fab{opacity:0!important}body:not(.studio-mode):not(.story-revealed):not(.story-revealing) header{transform:translateY(-100%)!important}body:not(.studio-mode):not(.story-revealed):not(.story-revealing) .book-meta{transform:translateY(30px)!important}body:not(.studio-mode):not(.story-revealed):not(.story-revealing) .chapter-content{transform:translateY(55px)!important}body:not(.studio-mode):not(.story-revealed):not(.story-revealing) .bottom-nav{transform:translateY(100%)!important}body:not(.studio-mode):not(.story-revealed):not(.story-revealing) #audio-fab{transform:scale(0)!important}body.story-revealing header,body.story-revealing .book-meta,body.story-revealing .chapter-content,body.story-revealing .bottom-nav,body.story-revealing #audio-fab{opacity:1!important;transform:none!important}body.story-revealing header{transition:transform 1s cubic-bezier(.16,1,.3,1) .1s,opacity 1s .1s!important}body.story-revealing .book-meta{transition:transform 1.4s cubic-bezier(.16,1,.3,1) .35s,opacity 1.4s .35s!important}body.story-revealing .chapter-content{transition:transform 1.6s cubic-bezier(.16,1,.3,1) .6s,opacity 1.6s .6s!important}body.story-revealing .bottom-nav{transition:transform 1.2s cubic-bezier(.16,1,.3,1) .85s,opacity 1.2s .85s!important}body.story-revealing #audio-fab{transition:transform .8s cubic-bezier(.34,1.56,.64,1) 1.1s,opacity .8s 1.1s!important}body.focus-mode header,body.focus-mode .bottom-nav,body.focus-mode #audio-fab,body.focus-mode .settings-panel,body.focus-mode .progress-pill{opacity:0;pointer-events:none;transition:opacity .35s,transform .35s}body.focus-mode header{transform:translateY(-100%)}body.focus-mode .bottom-nav{transform:translateY(100%)}body.focus-mode #audio-fab{transform:scale(.5)}body.focus-mode.focus-ui-visible header,body.focus-mode.focus-ui-visible .bottom-nav,body.focus-mode.focus-ui-visible #audio-fab{opacity:1;pointer-events:auto;transform:none}body.focus-mode main{padding-top:1.5rem;transition:padding .35s}.focus-icon-active{display:none}.focus-icon-inactive,body.focus-mode .focus-icon-active{display:block}body.focus-mode .focus-icon-inactive{display:none}body.reduce-motion #vfx-layer,body.reduce-motion .ending-cin-particles{display:none!important}body.reduce-motion .shimmer-text{-webkit-text-fill-color:var(--ink);background:0 0!important;animation:none!important}body.reduce-motion .ending-badge,body.reduce-motion .ending-tbc-text,body.reduce-motion .ending-bg-glow,body.reduce-motion .loading-ornament{animation:none!important}body.reduce-motion .chapter-content.fade-in{opacity:1!important;animation:none!important;transform:none!important}body.reduce-motion .chapter-content,body.reduce-motion .chapter-content.fade-out{transition:opacity .25s!important;transform:none!important}body.reduce-motion .drawer-item,body.reduce-motion .control-btn,body.reduce-motion .nav-btn,body.reduce-motion .ending-contact-card{transition:background .15s,color .15s,border-color .15s!important;transform:none!important}@media (prefers-reduced-motion:reduce){#vfx-layer,.ending-cin-particles{display:none!important}.chapter-content.fade-in{opacity:1!important;animation:none!important}*,:before,:after{transition-duration:.15s!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.para-highlight-flash{animation:1.8s paraHighlightFlash}@keyframes paraHighlightFlash{0%{background:var(--accent-light)}to{background:0 0}}body.reduce-motion .para-highlight-flash{background:var(--accent-light);animation:none}.reader-page-break{border-top:1px dashed var(--rule);width:45%;height:1px;margin:2.2rem auto}.novel-image-block{text-align:center;margin:1.75rem 0}.novel-image-block[data-align=left]{text-align:left}.novel-image-block[data-align=right]{text-align:right}.novel-image-block img{border:1px solid var(--rule);border-radius:8px;max-width:100%;height:auto;display:inline-block}.novel-image-block[data-width=normal] img{max-width:min(100%,460px)}.novel-image-block[data-width=wide] img{max-width:min(100%,600px)}.novel-image-block[data-width=full] img{width:100%;max-width:100%}.novel-image-block figcaption{font-family:var(--font-sans);color:var(--muted);margin-top:.5rem;font-size:.78rem;font-style:italic}.novel-narrative-card,.chat-box{background:var(--accent-light);border:1px solid var(--rule);border-radius:10px;margin:1.5rem 0;padding:1.1rem 1.3rem}.novel-narrative-card[data-variant=letter]{font-family:var(--font-serif);background:var(--bg-card);border-color:var(--accent);font-style:italic}.novel-narrative-card[data-variant=timestamp]{text-align:center;background:0 0;border-style:dashed;padding:.75rem 1rem}.novel-narrative-card[data-variant=note]{background:var(--bg-card)}.novel-narrative-card-label{font-family:var(--font-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:.6rem;font-size:.68rem;font-weight:700}.novel-narrative-card p:last-child,.chat-box p:last-child,.flashback-wrap p:last-child{margin-bottom:0}.chat-box p{font-family:var(--font-sans);margin-bottom:.65rem;font-size:.92rem;line-height:1.55}.novel-chapter-marker{border-top:1px solid var(--rule);margin:2rem 0 1.4rem;padding-top:1.2rem}.novel-sfx-cue,.novel-vfx-cue,.novel-bgm-cue{visibility:hidden;pointer-events:none;width:100%;height:1px;margin:0;padding:0;display:block;overflow:hidden}.notes-sheet-overlay{z-index:700;opacity:0;pointer-events:none;background:#00000080;transition:opacity .3s;position:fixed;inset:0}.notes-sheet-overlay.visible{opacity:1;pointer-events:auto}.notes-sheet{background:var(--bg-card);z-index:701;border-radius:18px 18px 0 0;flex-direction:column;max-width:720px;max-height:80vh;margin:0 auto;transition:transform .35s cubic-bezier(.16,1,.3,1);display:flex;position:fixed;bottom:0;left:0;right:0;transform:translateY(100%);box-shadow:0 -8px 32px #0003}.notes-sheet.visible{transform:translateY(0)}.notes-sheet-handle{background:var(--rule);border-radius:4px;width:36px;height:4px;margin:.7rem auto .5rem}.notes-sheet-header{border-bottom:1px solid var(--rule);justify-content:space-between;align-items:center;padding:.5rem 1.2rem .8rem;display:flex}.notes-sheet-title{font-family:var(--font-serif);color:var(--accent);font-size:1rem;font-style:italic;font-weight:600}.notes-sheet-close{color:var(--muted);cursor:pointer;background:0 0;border:none;font-size:1.4rem}.notes-sheet-body{flex-direction:column;flex:1;padding:1rem 1.2rem;display:flex;overflow-y:auto}#notes-textarea{resize:vertical;border:1px solid var(--rule);width:100%;min-height:140px;font-family:var(--font-sans);background:var(--bg-cream);color:var(--ink);border-radius:10px;outline:none;padding:.8rem;font-size:.9rem;line-height:1.6;transition:border-color .2s}#notes-textarea:focus{border-color:var(--accent)}.notes-sheet-footer{color:var(--muted);justify-content:space-between;align-items:center;margin-top:.6rem;font-size:.72rem;display:flex}.notes-btn{background:var(--accent-light);border:1px solid var(--rule);border-radius:50%;width:38px;height:38px}.notes-has-indicator{position:relative}.notes-has-indicator:after{content:"📝";font-size:.6rem;position:absolute;top:2px;right:2px}.panel-empty-state{text-align:center;font-family:var(--font-sans);color:var(--muted);flex-direction:column;align-items:center;gap:.6rem;padding:2.5rem 1rem;font-size:.85rem;display:flex}.relmap-overlay{z-index:800;opacity:0;pointer-events:none;background:#0009;transition:opacity .3s;position:fixed;inset:0}.relmap-overlay.visible{opacity:1;pointer-events:auto}.relmap-modal{z-index:801;background:var(--bg-cream);opacity:0;pointer-events:none;flex-direction:column;transition:opacity .28s,transform .28s;display:flex;position:fixed;inset:0;transform:scale(.97)}.relmap-modal.visible{opacity:1;pointer-events:auto;transform:scale(1)}.relmap-header{border-bottom:1px solid var(--rule);background:var(--bg-card);justify-content:space-between;align-items:center;padding:1rem 1.2rem;display:flex}.relmap-title{font-family:var(--font-serif);color:var(--accent);font-size:1rem;font-style:italic;font-weight:600}.relmap-close{color:var(--muted);cursor:pointer;background:0 0;border:none;font-size:1.6rem}.relmap-graph-wrap{flex:1;justify-content:center;align-items:center;min-height:0;padding:.5rem;display:flex;overflow:auto}.relmap-graph-wrap svg{width:100%;max-width:560px;height:100%}.relmap-node-circle{fill:var(--bg-card);stroke:var(--accent);stroke-width:2px;cursor:pointer;transition:fill .2s,stroke-width .2s}.relmap-node-main .relmap-node-circle{fill:var(--accent);stroke:var(--accent)}.relmap-node.is-active .relmap-node-circle{stroke-width:4px}.relmap-node-label{font-family:var(--font-sans);fill:var(--ink);text-anchor:middle;pointer-events:none;-webkit-user-select:none;user-select:none;font-size:11px;font-weight:600}.relmap-edge{stroke:var(--rule);stroke-width:1.5px;fill:none}.relmap-edge-main{stroke:var(--accent);stroke-width:2.5px}.relmap-detail{border-top:1px solid var(--rule);background:var(--bg-card);max-height:38vh;padding:1rem 1.2rem 1.4rem;overflow-y:auto}.relmap-detail-empty{text-align:center;color:var(--muted);padding:.6rem 0;font-size:.82rem}.relmap-detail-name{font-family:var(--font-serif);color:var(--accent);margin-bottom:.15rem;font-size:1.05rem;font-style:italic;font-weight:700}.relmap-detail-role{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:.6rem;font-size:.72rem}.relmap-detail-desc{color:var(--ink);margin-bottom:.7rem;font-size:.86rem;line-height:1.65}.relmap-detail-rel-title{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:.4rem;font-size:.72rem}.relmap-detail-rel-item{color:var(--ink);border-top:1px solid var(--rule);padding:.45rem 0;font-size:.82rem;line-height:1.5}.relmap-detail-rel-item:first-of-type{border-top:none}.relmap-detail-rel-item strong{color:var(--accent)}@media (width>=600px){.relmap-detail{max-height:30vh}}.install-app-btn{background:var(--accent);width:100%;color:var(--btn-active-text);font-family:var(--font-sans);cursor:pointer;border:none;border-radius:10px;padding:.65rem 1rem;font-size:.82rem;font-weight:600;transition:opacity .2s}.install-app-btn:hover{opacity:.9}.update-banner{background:var(--bg-card);border:1px solid var(--rule);box-shadow:var(--shadow);color:var(--ink);z-index:950;opacity:0;pointer-events:none;border-radius:14px;align-items:center;gap:.7rem;max-width:90%;padding:.7rem .9rem;font-size:.8rem;transition:opacity .3s,transform .3s;display:flex;position:fixed;bottom:90px;left:50%;transform:translate(-50%)translateY(20px)}.update-banner.show{opacity:1;pointer-events:auto;transform:translate(-50%)translateY(0)}.update-banner button{background:var(--accent);color:var(--btn-active-text);cursor:pointer;white-space:nowrap;border:none;border-radius:8px;padding:.4rem .7rem;font-size:.76rem;font-weight:600}.studio-theme-dark,body.studio-mode.studio-theme-dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--studio-bg:#12110f;--studio-surface:#1c1a17;--studio-surface-2:#171512;--studio-surface-hover:#25221d;--studio-paper:#1c1a17;--studio-ink:#eadecc;--studio-ink-strong:#f5ede0;--studio-muted:#969089;--studio-accent:#e0926d;--studio-accent-hover:#f0a581;--studio-accent-soft:#2c241c;--studio-accent-ink:#12110f;--studio-border:#eadecc26;--studio-border-strong:#eadecc47;--studio-selection-bg:#e0926d57;--studio-selection-ink:#f5ede0;--studio-glow:#e0926d1c;--studio-shadow:0 4px 20px #00000052;--studio-shadow-lg:0 18px 46px #0000008f;--studio-info-bg:#2c241c;--studio-info-text:#f0a581;--studio-info-border:#e0926d52;--studio-warn-bg:#b453092e;--studio-warn-text:#fbbf24;--studio-warn-border:#fbbf2452;--studio-err-bg:#991b1b40;--studio-err-text:#fca5a5;--studio-err-border:#f871715c;--studio-ok-bg:#1665343d;--studio-ok-text:#86efac;--studio-ok-border:#4ade8052;--studio-published:#4ade80;--studio-draft:#e0926d;--studio-archived:#969089;--studio-danger:#dc2626;--studio-danger-hover:#ef4444;--studio-backdrop:#0a0908b8}.studio-theme-light,body.studio-mode.studio-theme-light{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--studio-bg:#faf8f4;--studio-surface:#fff;--studio-surface-2:#f4efe8;--studio-surface-hover:#f5ece5;--studio-paper:#fff;--studio-ink:#1a1814;--studio-ink-strong:#12110f;--studio-muted:#7a7570;--studio-accent:#c97d5a;--studio-accent-hover:#b36846;--studio-accent-soft:#f5ece5;--studio-accent-ink:#fff;--studio-border:#1a18141f;--studio-border-strong:#1a18143d;--studio-selection-bg:#c97d5a42;--studio-selection-ink:#1a1814;--studio-glow:#c97d5a17;--studio-shadow:0 4px 20px #0000000d;--studio-shadow-lg:0 18px 42px #1a181429;--studio-info-bg:#f5ece5;--studio-info-text:#9c5334;--studio-info-border:#c97d5a52;--studio-warn-bg:#fffbeb;--studio-warn-text:#92400e;--studio-warn-border:#fde68a;--studio-err-bg:#fef2f2;--studio-err-text:#991b1b;--studio-err-border:#fecaca;--studio-ok-bg:#f0fdf4;--studio-ok-text:#166534;--studio-ok-border:#bbf7d0;--studio-published:#16a34a;--studio-draft:#c97d5a;--studio-archived:#7a7570;--studio-danger:#dc2626;--studio-danger-hover:#b91c1c;--studio-backdrop:#12110f85}body.studio-mode{background-color:var(--studio-bg,#12110f);color:var(--studio-ink,#eadecc);font-family:var(--font-sans,"DM Sans", -apple-system, BlinkMacSystemFont, sans-serif);height:100dvh;display:block;overflow:hidden}body.studio-mode header{z-index:auto;box-shadow:none;background:0 0;border-bottom:none;position:static}body.studio-mode main{flex:none;width:auto;max-width:none;margin:0;padding:0}body.studio-mode .studio-allow-select ::selection{background:var(--studio-selection-bg)!important;color:var(--studio-selection-ink)!important}body.studio-mode .studio-allow-select ::selection{background:var(--studio-selection-bg)!important;color:var(--studio-selection-ink)!important}.studio-btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:6px;padding:7px 13px;font-family:inherit;font-size:.8125rem;font-weight:500;text-decoration:none;transition:background-color .16s,border-color .16s,color .16s;display:inline-flex}.studio-btn:disabled{opacity:.5;cursor:not-allowed}.studio-btn-sm{padding:5px 10px;font-size:.78rem}.studio-btn-xs{padding:3px 8px;font-size:.72rem}.studio-btn-primary{background:var(--studio-accent);color:var(--studio-accent-ink);border-color:var(--studio-accent);font-weight:600}.studio-btn-primary:hover:not(:disabled){background:var(--studio-accent-hover);border-color:var(--studio-accent-hover)}.studio-btn-secondary{background:var(--studio-surface-2);color:var(--studio-ink);border-color:var(--studio-border)}.studio-btn-secondary:hover:not(:disabled){background:var(--studio-accent-soft);border-color:var(--studio-accent);color:var(--studio-accent)}.studio-btn-danger{background:var(--studio-danger);color:#fff;border-color:var(--studio-danger)}.studio-btn-danger:hover:not(:disabled){background:var(--studio-danger-hover)}.studio-icon-btn{width:30px;height:30px;color:var(--studio-muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;transition:background-color .15s,color .15s,border-color .15s;display:inline-flex}.studio-icon-btn:hover{background:var(--studio-accent-soft);border-color:var(--studio-border);color:var(--studio-accent)}.studio-mini-btn{width:24px;height:24px;color:var(--studio-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;display:inline-flex}.studio-mini-btn:hover{background:var(--studio-surface-hover);color:var(--studio-ink-strong)}.studio-mini-btn.danger:hover{background:var(--studio-err-bg);color:var(--studio-err-text)}.studio-field{flex-direction:column;gap:5px;margin-bottom:12px;display:flex}.studio-field label{color:var(--studio-muted);font-size:.75rem;font-weight:600}.studio-field input[type=text],.studio-field input[type=email],.studio-field input[type=password],.studio-field input[type=url],.studio-field input[type=number],.studio-field select,.studio-field textarea{border:1px solid var(--studio-border);width:100%;color:var(--studio-ink-strong);background:var(--studio-bg);border-radius:7px;padding:8px 11px;font-family:inherit;font-size:.845rem}.studio-field input::placeholder,.studio-field textarea::placeholder{color:var(--studio-muted);opacity:.75}.studio-field input:focus,.studio-field select:focus,.studio-field textarea:focus{outline:2px solid var(--studio-selection-bg);border-color:var(--studio-accent)}.studio-check-row{color:var(--studio-ink);cursor:pointer;align-items:center;gap:8px;font-size:.8rem;display:flex}.studio-check-row input[type=checkbox]{accent-color:var(--studio-accent)}.studio-spin{animation:.9s linear infinite studioSpin}@keyframes studioSpin{to{transform:rotate(360deg)}}.studio-auth-shell{background-color:var(--studio-bg);background-image:radial-gradient(circle at 50% 34%, var(--studio-glow) 0%, transparent 62%);min-height:100vh;color:var(--studio-ink);flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:24px 16px;display:flex;overflow-y:auto}.studio-auth-topbar{justify-content:space-between;align-items:center;gap:8px;width:100%;max-width:430px;display:flex}.studio-auth-back-link,.studio-auth-theme-btn{color:var(--studio-muted);background:var(--studio-surface);border:1px solid var(--studio-border);cursor:pointer;border-radius:20px;align-items:center;gap:6px;padding:6px 11px;font-family:inherit;font-size:.8rem;font-weight:500;text-decoration:none;transition:border-color .16s,color .16s,background-color .16s;display:inline-flex}.studio-auth-back-link:hover,.studio-auth-theme-btn:hover{color:var(--studio-accent);border-color:var(--studio-accent);background:var(--studio-accent-soft)}body.studio-mode main.studio-auth-card,.studio-auth-card{background:var(--studio-surface);border:1px solid var(--studio-border);width:100%;max-width:430px;box-shadow:var(--studio-shadow);border-radius:16px;flex:none;padding:28px}.studio-auth-brand{align-items:center;gap:13px;margin-bottom:14px;display:flex}.studio-auth-logo{background:var(--studio-accent-soft);border:1px solid var(--studio-border);width:42px;height:42px;color:var(--studio-accent);border-radius:11px;flex-shrink:0;place-items:center;font-size:1.25rem;display:grid}.studio-auth-eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--studio-accent);margin-bottom:2px;font-size:.7rem;font-weight:600}.studio-auth-title{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink-strong);font-size:1.48rem;font-style:italic;font-weight:600;line-height:1.2}.studio-auth-desc{color:var(--studio-muted);margin-bottom:18px;font-size:.84rem;line-height:1.55}.studio-auth-notice{border-radius:8px;align-items:flex-start;gap:9px;margin-bottom:14px;padding:10px 12px;font-size:.8rem;line-height:1.45;display:flex}.studio-auth-notice svg{flex-shrink:0;margin-top:2px}.studio-auth-notice.info{background:var(--studio-info-bg);color:var(--studio-info-text);border:1px solid var(--studio-info-border)}.studio-auth-notice.warn{background:var(--studio-warn-bg);color:var(--studio-warn-text);border:1px solid var(--studio-warn-border)}.studio-auth-notice.error{background:var(--studio-err-bg);color:var(--studio-err-text);border:1px solid var(--studio-err-border)}.studio-auth-notice.ok{background:var(--studio-ok-bg);color:var(--studio-ok-text);border:1px solid var(--studio-ok-border)}.studio-auth-notice code{background:#80808029;border-radius:3px;padding:1px 4px;font-size:.75rem}.studio-auth-submit{width:100%;margin-top:6px;padding:10px 14px}.studio-auth-unauthorized{color:var(--studio-ink);flex-direction:column;gap:12px;font-size:.85rem;display:flex}.studio-root{background:var(--studio-bg);height:100dvh;color:var(--studio-ink);flex-direction:column;display:flex}.studio-header{background:var(--studio-surface);border-bottom:1px solid var(--studio-border);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:6px 14px;display:flex}.studio-header-left{align-items:center;gap:10px;min-width:0;display:flex}.studio-brand-mark{background:var(--studio-accent-soft);border:1px solid var(--studio-border);width:32px;height:32px;color:var(--studio-accent);border-radius:8px;flex-shrink:0;place-items:center;font-size:1rem;display:grid}.studio-doc-heading{min-width:0}.studio-doc-title-row{color:var(--studio-ink-strong);white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:6px;font-size:.88rem;font-weight:600;display:flex;overflow:hidden}.studio-app-name{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-accent);font-style:italic}.studio-sep-dot{color:var(--studio-muted)}.studio-doc-active-name{text-overflow:ellipsis;overflow:hidden}.studio-save-status{color:var(--studio-muted);align-items:center;gap:5px;font-size:.72rem;display:flex}.studio-header-right{flex-shrink:0;align-items:center;gap:6px;display:flex}.studio-menubar-wrap{background:var(--studio-surface);border-bottom:1px solid var(--studio-border);z-index:30;flex-shrink:0;position:relative}.studio-menubar{flex-wrap:wrap;align-items:center;gap:2px;padding:3px 12px;display:flex}.studio-menu-item-wrap{position:relative}.studio-menu-trigger{color:var(--studio-ink);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:5px;padding:5px 10px;font-family:inherit;font-size:.8rem;font-weight:500;transition:background-color .14s,color .14s}.studio-menu-trigger:hover,.studio-menu-trigger.is-open{background:var(--studio-accent-soft);color:var(--studio-accent)}.studio-menu-dropdown{background:var(--studio-surface);border:1px solid var(--studio-border-strong);min-width:256px;box-shadow:var(--studio-shadow-lg);z-index:95;border-radius:9px;flex-direction:column;padding:5px;display:flex;position:absolute;top:calc(100% + 4px);left:0}.studio-menu-dropdown-fixed{z-index:110;max-height:calc(100vh - 70px);position:fixed;overflow-y:auto}.studio-menu-dropdown button{color:var(--studio-ink);text-align:left;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;padding:7px 10px;font-family:inherit;font-size:.8rem;display:flex}.studio-menu-dropdown button:hover:not(:disabled){background:var(--studio-accent-soft);color:var(--studio-accent)}.studio-menu-dropdown button:disabled{opacity:.42;cursor:not-allowed}.studio-menu-dropdown kbd{color:var(--studio-muted);font-family:inherit;font-size:.7rem}.studio-menu-sep{background:var(--studio-border);height:1px;margin:4px 6px}.studio-find-bar{background:var(--studio-surface-2);border-top:1px solid var(--studio-border);flex-wrap:wrap;align-items:center;gap:8px;padding:7px 14px;display:flex}.studio-find-icon{color:var(--studio-muted)}.studio-find-input{border:1px solid var(--studio-border);color:var(--studio-ink-strong);background:var(--studio-bg);border-radius:5px;width:170px;padding:4px 8px;font-size:.8rem}.studio-find-input:focus{outline:2px solid var(--studio-selection-bg);border-color:var(--studio-accent)}.studio-find-btn{border:1px solid var(--studio-border);background:var(--studio-surface);color:var(--studio-ink);cursor:pointer;border-radius:5px;padding:4px 9px;font-size:.76rem}.studio-find-btn:hover{background:var(--studio-accent-soft);border-color:var(--studio-accent);color:var(--studio-accent)}.studio-find-status{color:var(--studio-muted);font-variant-numeric:tabular-nums;font-size:.75rem}.studio-toolbar{background:var(--studio-surface-2);border-bottom:1px solid var(--studio-border);z-index:25;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:4px;padding:5px 12px;display:flex;position:relative}.studio-tb-group{align-items:center;gap:2px;display:inline-flex}.studio-tb-sep{background:var(--studio-border);width:1px;height:20px;margin:0 4px}.studio-tb-btn{width:28px;height:28px;color:var(--studio-ink);cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;display:inline-flex}.studio-tb-btn:hover:not(:disabled){background:var(--studio-surface-hover);color:var(--studio-accent)}.studio-tb-btn.is-active{background:var(--studio-accent-soft);color:var(--studio-accent)}.studio-tb-btn:disabled{opacity:.38;cursor:not-allowed}.studio-tb-select{height:28px;color:var(--studio-ink);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;padding:0 6px;font-family:inherit;font-size:.78rem;font-weight:500}.studio-tb-select option,.studio-tb-color-select option{background:var(--studio-surface);color:var(--studio-ink)}.studio-tb-select:hover,.studio-tb-select:focus{background:var(--studio-surface);border-color:var(--studio-border);outline:none}.studio-tb-font{max-width:138px}.studio-tb-color-wrap{cursor:pointer;height:28px;color:var(--studio-ink);border-radius:5px;align-items:center;gap:3px;padding:0 5px;display:inline-flex}.studio-tb-color-wrap:hover{background:var(--studio-surface-hover)}.studio-tb-color-letter{border-bottom:3px solid var(--studio-accent);padding-bottom:1px;font-size:.84rem;font-weight:700;line-height:1}.studio-tb-color-select{color:var(--studio-ink);cursor:pointer;background:0 0;border:none;max-width:78px;font-size:.72rem}.studio-tb-blocks-wrap{position:relative}.studio-tb-insert-btn{border:1px solid var(--studio-border);background:var(--studio-accent-soft);height:28px;color:var(--studio-accent);cursor:pointer;white-space:nowrap;border-radius:6px;align-items:center;gap:5px;padding:0 10px;font-family:inherit;font-size:.78rem;font-weight:600;display:inline-flex}.studio-tb-insert-btn:hover{border-color:var(--studio-accent);background:var(--studio-surface-hover)}.studio-blocks-dropdown{min-width:274px;left:auto;right:0}.studio-conflict-banner{background:var(--studio-warn-bg);border-bottom:1px solid var(--studio-warn-border);color:var(--studio-warn-text);justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;font-size:.8rem;display:flex}.studio-conflict-info{align-items:center;gap:8px;display:flex}.studio-conflict-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.studio-workspace{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.studio-sidebar{background:var(--studio-surface);border-right:1px solid var(--studio-border);flex-direction:column;flex-shrink:0;width:284px;min-height:0;display:flex}.studio-novel-bar{border-bottom:1px solid var(--studio-border);padding:10px}.studio-novel-select-row{align-items:center;gap:6px;margin-bottom:8px;display:flex}.studio-novel-select{border:1px solid var(--studio-border);min-width:0;color:var(--studio-ink-strong);background:var(--studio-bg);border-radius:6px;flex:1;padding:6px 8px;font-family:inherit;font-size:.8rem;font-weight:600}.studio-sidebar-tabs{background:var(--studio-bg);border:1px solid var(--studio-border);border-radius:7px;grid-template-columns:1fr 1fr;gap:4px;padding:3px;display:grid}.studio-side-tab{color:var(--studio-muted);cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;gap:5px;padding:5px 8px;font-family:inherit;font-size:.76rem;font-weight:500;display:inline-flex}.studio-side-tab.is-active{background:var(--studio-accent-soft);color:var(--studio-accent);font-weight:600}.studio-side-pane{flex-direction:column;flex:1;min-height:0;display:flex}.studio-side-controls{border-bottom:1px solid var(--studio-border);flex-direction:column;gap:8px;padding:10px;display:flex}.studio-side-search{border:1px solid var(--studio-border);color:var(--studio-muted);background:var(--studio-bg);border-radius:6px;align-items:center;gap:6px;padding:5px 8px;display:flex}.studio-side-search input{width:100%;color:var(--studio-ink-strong);background:0 0;border:none;outline:none;font-family:inherit;font-size:.79rem}.studio-side-archive-toggle{color:var(--studio-muted);border-bottom:1px solid var(--studio-border);cursor:pointer;align-items:center;gap:6px;padding:6px 10px;font-size:.74rem;display:flex}.studio-side-archive-toggle input{accent-color:var(--studio-accent)}.studio-chapter-list,.studio-outline-list{flex:1;padding:6px;overflow-y:auto}.studio-side-empty{color:var(--studio-muted);text-align:center;padding:20px 14px;font-size:.79rem;line-height:1.5}.studio-chapter-item{background:0 0;border:1px solid #0000;border-radius:7px;align-items:flex-start;gap:4px;margin-bottom:3px;padding:7px 6px;transition:background-color .12s,border-color .12s;display:flex}.studio-chapter-item:hover{background:var(--studio-surface-hover)}.studio-chapter-item.is-active{background:var(--studio-accent-soft);border-color:var(--studio-accent)}.studio-chapter-item.is-drag-over{border-top:2px solid var(--studio-accent)}.studio-chapter-item.is-archived{opacity:.58}.studio-chapter-drag{color:var(--studio-muted);cursor:grab;flex-shrink:0;padding-top:2px}.studio-chapter-main{text-align:left;cursor:pointer;background:0 0;border:none;flex:1;min-width:0;padding:0;font-family:inherit}.studio-chapter-top{justify-content:space-between;align-items:center;gap:6px;display:flex}.studio-chapter-num{text-transform:uppercase;letter-spacing:.05em;color:var(--studio-accent);font-size:.7rem;font-weight:700}.studio-status-dot{border-radius:50%;flex-shrink:0;width:7px;height:7px}.studio-status-dot.status-published{background:var(--studio-published)}.studio-status-dot.status-draft{background:var(--studio-draft)}.studio-status-dot.status-archived{background:var(--studio-archived)}.studio-chapter-title{color:var(--studio-ink-strong);white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:.81rem;font-weight:600;overflow:hidden}.studio-chapter-meta{color:var(--studio-muted);font-size:.7rem}.studio-chapter-actions{align-items:center;gap:1px;display:none}.studio-chapter-item:hover .studio-chapter-actions,.studio-chapter-item.is-active .studio-chapter-actions{display:flex}.studio-outline-item{text-align:left;cursor:pointer;width:100%;color:var(--studio-ink);background:0 0;border:none;border-radius:5px;align-items:center;gap:7px;padding:6px 8px;font-family:inherit;font-size:.78rem;display:flex}.studio-outline-item:hover{background:var(--studio-accent-soft);color:var(--studio-accent)}.studio-outline-item.level-2{padding-left:16px}.studio-outline-item.level-3{padding-left:24px}.studio-outline-badge{color:var(--studio-accent);min-width:28px;font-size:.65rem;font-weight:700}.studio-outline-label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.studio-canvas-scroll{background:var(--studio-bg);flex-direction:column;flex:1;align-items:center;min-width:0;display:flex;position:relative;overflow:auto}.studio-canvas-empty{text-align:center;background:var(--studio-surface);border:1px solid var(--studio-border);border-radius:12px;max-width:420px;margin:auto;padding:32px}.studio-canvas-empty h2{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink-strong);margin-bottom:6px;font-size:1.1rem}.studio-canvas-empty p{color:var(--studio-muted);font-size:.84rem}.studio-ruler-sticky{z-index:15;background:var(--studio-surface-2);border-bottom:1px solid var(--studio-border);flex-shrink:0;justify-content:center;width:100%;height:22px;display:flex;position:sticky;top:0}.studio-ruler-track{background:var(--studio-paper);border-left:1px solid var(--studio-border);border-right:1px solid var(--studio-border);height:100%;position:relative;overflow:hidden}.studio-ruler-margin{background:var(--studio-accent-soft);opacity:.72;position:absolute;top:0;bottom:0}.studio-ruler-margin.left{border-right:1px solid var(--studio-accent);left:0}.studio-ruler-margin.right{border-left:1px solid var(--studio-accent);right:0}.studio-ruler-ticks{z-index:1;grid-template-columns:repeat(9,1fr);height:100%;display:grid;position:relative}.studio-ruler-unit{border-left:1px solid var(--studio-border);padding-left:3px;position:relative}.studio-ruler-num{color:var(--studio-muted);font-size:.62rem;line-height:1}.studio-ruler-subticks{justify-content:space-evenly;display:flex;position:absolute;bottom:0;left:0;right:0}.studio-ruler-subticks span{background:var(--studio-border);width:1px;height:5px}.studio-paper-stage{justify-content:center;width:100%;padding:26px 24px 72px;display:flex}.studio-paper-scaler{position:relative}.studio-paper-page{background:var(--studio-paper);border:1px solid var(--studio-border);min-height:1056px;box-shadow:var(--studio-shadow);color:var(--studio-ink);border-radius:6px;padding-top:64px;padding-bottom:84px}.studio-page-chapter-head{border-bottom:1px solid var(--studio-border);margin-bottom:28px;padding-bottom:20px}.studio-page-head-row{align-items:center;gap:8px;margin-bottom:4px;display:flex}.studio-doc-num-input{font-family:var(--font-sans,"DM Sans", sans-serif);letter-spacing:.14em;text-transform:uppercase;color:var(--studio-accent);background:0 0;border:none;outline:none;width:240px;font-size:.78rem;font-weight:700}.studio-doc-flag{background:var(--studio-accent-soft);color:var(--studio-accent);border:1px solid var(--studio-border);border-radius:5px;padding:2px 7px;font-size:.7rem;font-weight:600}.studio-doc-title-input{width:100%;font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink-strong);background:0 0;border:none;outline:none;margin-bottom:8px;font-size:2rem;font-style:italic;font-weight:600;line-height:1.25}.studio-doc-meta-inputs{flex-wrap:wrap;gap:12px;display:flex}.studio-doc-setting-input,.studio-doc-feeling-input{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-muted);background:0 0;border:none;outline:none;flex:1;min-width:200px;font-size:.86rem;font-style:italic}.studio-editor-surface .tiptap{min-height:700px;font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink);outline:none;font-size:17px;line-height:1.85}.studio-editor-surface .tiptap p{margin-bottom:1.2em}.studio-editor-surface .tiptap h1{color:var(--studio-ink-strong);margin:1.4em 0 .55em;font-size:1.75rem;font-weight:700;line-height:1.3}.studio-editor-surface .tiptap h2{color:var(--studio-ink-strong);margin:1.3em 0 .5em;font-size:1.38rem;font-weight:700;line-height:1.35}.studio-editor-surface .tiptap h3{color:var(--studio-ink-strong);margin:1.15em 0 .45em;font-size:1.15rem;font-weight:700;line-height:1.4}.studio-editor-surface .tiptap ul,.studio-editor-surface .tiptap ol{margin-bottom:1.1em;padding-left:1.5rem}.studio-editor-surface .tiptap a{color:var(--studio-accent);text-decoration:underline}.studio-editor-surface .tiptap p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--studio-muted);opacity:.7;pointer-events:none;height:0}.studio-block{border:1px solid var(--studio-border);background:var(--studio-surface-2);border-radius:8px;margin:14px 0;padding:8px 12px}.studio-block.is-selected{border-color:var(--studio-accent);box-shadow:0 0 0 2px var(--studio-selection-bg)}.studio-block-bar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px;display:flex}.studio-block-kind{font-family:var(--font-sans,"DM Sans", sans-serif);letter-spacing:.07em;text-transform:uppercase;color:var(--studio-accent);align-items:center;gap:4px;font-size:.68rem;font-weight:700;display:inline-flex}.studio-block-inline-input,.studio-block-inline-select{border:1px solid var(--studio-border);background:var(--studio-bg);color:var(--studio-ink);font-family:var(--font-sans,"DM Sans", sans-serif);border-radius:5px;padding:3px 8px;font-size:.76rem}.studio-input-sm{width:90px}.studio-input-xs{width:64px}.studio-block-remove{color:var(--studio-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;margin-left:auto;padding:3px}.studio-block-remove:hover{background:var(--studio-err-bg);color:var(--studio-err-text)}.studio-block-dialogue{background:var(--studio-accent-soft);border-color:var(--studio-border);border-left:3px solid var(--studio-accent)}.studio-dialogue-speaker-preview{font-family:var(--font-sans,"DM Sans", sans-serif);letter-spacing:.08em;text-transform:uppercase;color:var(--studio-accent);margin-bottom:3px;font-size:.7rem;font-weight:700}.studio-block-thought{background:var(--studio-surface-2);border-left:2px dotted var(--studio-border-strong);color:var(--studio-muted);font-style:italic}.studio-atom-row,.studio-cue-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.studio-scene-preview{text-align:center;color:var(--studio-accent);letter-spacing:.25em;flex:1;font-size:.95rem}.studio-page-break{align-items:center;gap:10px;margin:22px 0;display:flex}.studio-page-break-line{border-top:2px dashed var(--studio-border-strong);flex:1}.studio-page-break-badge{background:var(--studio-surface-2);border:1px solid var(--studio-border);color:var(--studio-muted);border-radius:5px;align-items:center;gap:4px;padding:2px 8px;display:inline-flex}.studio-page-break-input{font-family:var(--font-sans,"DM Sans", sans-serif);color:var(--studio-muted);text-align:center;background:0 0;border:none;outline:none;width:96px;font-size:.7rem;font-weight:600}.studio-cue-icon{color:var(--studio-accent)}.studio-cue-check{font-family:var(--font-sans,"DM Sans", sans-serif);color:var(--studio-ink);align-items:center;gap:4px;font-size:.75rem;display:inline-flex}.studio-cue-check input{accent-color:var(--studio-accent)}.studio-cue-btn{border:1px solid var(--studio-border);background:var(--studio-bg);width:24px;height:24px;color:var(--studio-accent);cursor:pointer;border-radius:5px;justify-content:center;align-items:center;display:inline-flex}.studio-cue-btn:hover{background:var(--studio-accent-soft);border-color:var(--studio-accent)}.studio-block-upload-label{width:auto;font-family:var(--font-sans,"DM Sans", sans-serif);gap:4px;padding:0 8px;font-size:.72rem;font-weight:600}.studio-ch-marker-grid{gap:6px;display:grid}.studio-ch-marker-num,.studio-ch-marker-title,.studio-ch-marker-setting{border:1px solid var(--studio-border);background:var(--studio-bg);color:var(--studio-ink-strong);border-radius:5px;padding:5px 8px;font-family:inherit}.studio-ch-marker-title{font-size:1rem;font-weight:700}.studio-image-preview{text-align:center}.studio-image-preview img{border:1px solid var(--studio-border);border-radius:6px;max-width:100%}.studio-image-preview.width-normal img{max-width:72%}.studio-image-preview.width-wide img{max-width:90%}.studio-image-preview.width-full img{max-width:100%}.studio-image-fallback{border:1px dashed var(--studio-border-strong);color:var(--studio-muted);font-family:var(--font-sans,"DM Sans", sans-serif);border-radius:6px;flex-direction:column;align-items:center;gap:6px;padding:24px;font-size:.8rem;display:flex}.studio-image-caption-input{border:none;border-bottom:1px solid var(--studio-border);text-align:center;width:100%;font-family:var(--font-sans,"DM Sans", sans-serif);color:var(--studio-muted);background:0 0;outline:none;margin-top:6px;padding:3px;font-size:.78rem}.studio-block-narrative{background:var(--studio-accent-soft);border-color:var(--studio-border)}.studio-narrative-body .tiptap p:last-child{margin-bottom:0}.studio-slash-menu{z-index:115;background:var(--studio-surface);border:1px solid var(--studio-border-strong);width:312px;max-height:320px;box-shadow:var(--studio-shadow-lg);border-radius:10px;flex-direction:column;display:flex;position:fixed;overflow:hidden}.studio-slash-head{border-bottom:1px solid var(--studio-border);background:var(--studio-surface-2);color:var(--studio-muted);justify-content:space-between;align-items:center;padding:7px 11px;font-size:.72rem;font-weight:600;display:flex}.studio-slash-head code{color:var(--studio-accent);background:var(--studio-accent-soft);border-radius:4px;padding:1px 6px;font-size:.72rem}.studio-slash-list{flex:1;padding:5px;overflow-y:auto}.studio-slash-category{letter-spacing:.08em;text-transform:uppercase;color:var(--studio-accent);padding:6px 8px 3px;font-size:.65rem;font-weight:700}.studio-slash-item{text-align:left;cursor:pointer;width:100%;color:var(--studio-ink);background:0 0;border:none;border-radius:7px;align-items:flex-start;gap:9px;padding:7px 8px;font-family:inherit;display:flex}.studio-slash-item.is-active,.studio-slash-item:hover{background:var(--studio-accent-soft)}.studio-slash-icon{background:var(--studio-bg);border:1px solid var(--studio-border);width:28px;height:28px;color:var(--studio-accent);border-radius:6px;flex-shrink:0;place-items:center;margin-top:1px;display:grid}.studio-slash-item.is-active .studio-slash-icon{border-color:var(--studio-accent)}.studio-slash-text{flex-direction:column;min-width:0;display:flex}.studio-slash-text strong{color:var(--studio-ink-strong);font-size:.8rem;font-weight:600;line-height:1.25}.studio-slash-item.is-active .studio-slash-text strong{color:var(--studio-accent)}.studio-slash-text small{color:var(--studio-muted);margin-top:1px;font-size:.71rem;line-height:1.3}.studio-slash-empty{text-align:center;color:var(--studio-muted);padding:18px 14px;font-size:.78rem}.studio-slash-foot{border-top:1px solid var(--studio-border);background:var(--studio-surface-2);color:var(--studio-muted);justify-content:space-between;align-items:center;padding:5px 10px;font-size:.67rem;display:flex}.studio-inspector{background:var(--studio-surface);border-left:1px solid var(--studio-border);flex-direction:column;flex-shrink:0;width:312px;min-height:0;display:flex}.studio-inspector-empty{color:var(--studio-muted);padding:24px;font-size:.82rem}.studio-inspector-tabs{border-bottom:1px solid var(--studio-border);background:var(--studio-surface-2);grid-template-columns:repeat(3,1fr);display:grid}.studio-ins-tab{color:var(--studio-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;justify-content:center;align-items:center;gap:5px;padding:10px 6px;font-family:inherit;font-size:.75rem;font-weight:500;display:inline-flex}.studio-ins-tab.is-active{background:var(--studio-surface);color:var(--studio-accent);border-bottom-color:var(--studio-accent);font-weight:600}.studio-inspector-body{flex:1;padding:14px;overflow-y:auto}.studio-ins-pub-card{background:var(--studio-surface-2);border:1px solid var(--studio-border);border-radius:8px;margin-bottom:14px;padding:12px}.studio-ins-pub-row{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.studio-ins-label{color:var(--studio-muted);font-size:.74rem;font-weight:600}.studio-status-label{font-size:.74rem;font-weight:700}.studio-status-label.status-published{color:var(--studio-published)}.studio-status-label.status-draft{color:var(--studio-draft)}.studio-status-label.status-archived{color:var(--studio-archived)}.studio-ins-subtext{color:var(--studio-muted);margin-bottom:6px;font-size:.74rem;line-height:1.4}.studio-ins-warn{color:var(--studio-accent);margin-bottom:8px;font-size:.75rem;font-weight:500}.studio-ins-btn-row{flex-wrap:wrap;gap:6px;display:flex}.studio-ins-checks{flex-direction:column;gap:8px;margin:12px 0;display:flex}.studio-ins-tech-meta{border-top:1px solid var(--studio-border);flex-direction:column;gap:6px;padding-top:12px;display:flex}.studio-ins-tech-meta>div{color:var(--studio-muted);justify-content:space-between;align-items:center;gap:8px;font-size:.72rem;display:flex}.studio-ins-tech-meta code{color:var(--studio-ink);text-overflow:ellipsis;max-width:165px;font-size:.68rem;overflow:hidden}.studio-ins-heading{color:var(--studio-ink-strong);align-items:center;gap:6px;margin-bottom:10px;font-size:.82rem;font-weight:700;display:flex}.studio-ins-head-row{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.studio-ins-head-row .studio-ins-heading{margin-bottom:0}.studio-ins-divider{background:var(--studio-border);height:1px;margin:16px 0}.studio-audio-preview-row{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.studio-revision-list,.studio-asset-list{flex-direction:column;gap:8px;list-style:none;display:flex}.studio-revision-item,.studio-asset-item{border:1px solid var(--studio-border);background:var(--studio-surface-2);border-radius:7px;padding:8px 10px}.studio-revision-top{color:var(--studio-muted);justify-content:space-between;margin-bottom:3px;font-size:.7rem;display:flex}.studio-rev-num{color:var(--studio-accent);font-weight:700}.studio-revision-title{color:var(--studio-ink-strong);margin-bottom:6px;font-size:.78rem;font-weight:600}.studio-asset-form{flex-direction:column;gap:7px;margin-bottom:12px;display:flex}.studio-asset-form select,.studio-asset-form input{border:1px solid var(--studio-border);background:var(--studio-bg);color:var(--studio-ink-strong);border-radius:6px;padding:6px 8px;font-size:.78rem}.studio-asset-item{justify-content:space-between;align-items:center;gap:8px;display:flex}.studio-asset-info{flex-direction:column;min-width:0;display:flex}.studio-asset-info strong{color:var(--studio-ink-strong);font-size:.78rem}.studio-asset-info span{color:var(--studio-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.7rem;overflow:hidden}.studio-asset-btns{gap:3px;display:flex}.studio-status-bar{background:var(--studio-surface);border-top:1px solid var(--studio-border);height:28px;color:var(--studio-muted);flex-shrink:0;justify-content:space-between;align-items:center;padding:0 14px;font-size:.73rem;display:flex}.studio-status-left,.studio-status-right{align-items:center;gap:7px;display:flex}.studio-loading-pane,.studio-empty-onboarding{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:32px;display:flex}.studio-empty-onboarding h2{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink-strong);font-size:1.35rem;font-style:italic}.studio-empty-onboarding p{max-width:480px;color:var(--studio-muted);font-size:.88rem;line-height:1.5}.studio-empty-actions{flex-wrap:wrap;gap:10px;display:flex}.studio-preview-shell{flex-direction:column;flex:1;min-height:0;display:flex}.studio-preview-bar{background:var(--studio-surface);border-bottom:1px solid var(--studio-border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:8px 16px;display:flex}.studio-preview-modes,.studio-preview-actions,.studio-preview-pager{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.studio-preview-pill{border:1px solid var(--studio-border);background:var(--studio-surface-2);color:var(--studio-ink);cursor:pointer;border-radius:6px;padding:5px 11px;font-family:inherit;font-size:.78rem;font-weight:500}.studio-preview-pill.is-active{background:var(--studio-accent);border-color:var(--studio-accent);color:var(--studio-accent-ink);font-weight:600}.studio-preview-index{color:var(--studio-muted);padding:0 4px;font-size:.78rem}.studio-preview-stage{background:var(--bg-cream);color:var(--ink);flex:1;position:relative;overflow-y:auto}body.studio-mode main.studio-preview-reader,.studio-preview-reader{width:100%;max-width:680px;margin:0 auto;padding:40px 1rem 72px!important}.studio-preview-unpublished{background:var(--bg-card);border:1px solid var(--rule);text-align:center;border-radius:12px;max-width:440px;margin:72px auto;padding:28px}.studio-preview-unpublished h2{margin-bottom:8px;font-size:1.1rem}.studio-preview-unpublished p{color:var(--muted);margin-bottom:16px;font-size:.85rem;line-height:1.5}.studio-modal-backdrop{background:var(--studio-backdrop);z-index:120;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.studio-modal-card{background:var(--studio-surface);border:1px solid var(--studio-border-strong);width:100%;max-width:520px;box-shadow:var(--studio-shadow-lg);color:var(--studio-ink);border-radius:12px;overflow:hidden}.studio-modal-sm{max-width:400px}.studio-modal-scroll{flex-direction:column;max-height:calc(100vh - 32px);display:flex}.studio-modal-scroll form{flex-direction:column;min-height:0;display:flex;overflow:hidden}.studio-modal-scroll .studio-modal-body{overflow-y:auto}.studio-type-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.studio-type-btn{border:1px solid var(--studio-border);background:var(--studio-bg);color:var(--studio-ink);text-align:left;cursor:pointer;border-radius:8px;flex-direction:column;align-items:flex-start;gap:2px;padding:9px 10px;font-family:inherit;transition:border-color .16s,background-color .16s;display:flex}.studio-type-btn strong{color:var(--studio-ink-strong);font-size:.82rem}.studio-type-btn small{color:var(--studio-muted);font-size:.69rem;line-height:1.3}.studio-type-btn:hover{border-color:var(--studio-accent)}.studio-type-btn.is-active{background:var(--studio-accent-soft);border-color:var(--studio-accent)}.studio-type-btn.is-active strong{color:var(--studio-accent)}.studio-cover-picker{align-items:flex-start;gap:12px;display:flex}.studio-cover-thumb{object-fit:cover;border:1px solid var(--studio-border);border-radius:6px;flex-shrink:0;width:68px;height:86px}.studio-cover-controls{flex-direction:column;flex:1;gap:7px;min-width:0;display:flex}.studio-file-label{width:fit-content}.studio-upload-box{background:var(--studio-surface-2);border:1px dashed var(--studio-border-strong);border-radius:8px;flex-direction:column;gap:6px;margin-bottom:12px;padding:10px;display:flex}.studio-custom-bgm-banner{background:var(--studio-accent-soft);border:1px solid var(--studio-accent);color:var(--studio-ink-strong);border-radius:7px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;padding:7px 9px;font-size:.75rem;display:flex}.studio-inline-error{color:var(--studio-err-text);margin-top:4px;font-size:.74rem}.studio-danger-zone{border:1px solid var(--studio-err-border);background:var(--studio-err-bg);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;padding:11px 12px;display:flex}.studio-danger-zone strong{color:var(--studio-err-text);font-size:.8rem;display:block}.studio-danger-zone p{color:var(--studio-muted);font-size:.73rem}.studio-modal-head{border-bottom:1px solid var(--studio-border);justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.studio-modal-head h2{color:var(--studio-ink-strong);align-items:center;gap:8px;font-size:.96rem;font-weight:700;display:flex}.studio-modal-body{padding:16px 18px}.studio-modal-lead{color:var(--studio-ink-strong);margin-bottom:8px;font-size:.94rem}.studio-modal-sub{color:var(--studio-muted);margin-bottom:12px;font-size:.83rem;line-height:1.55}.studio-modal-err-list{margin-top:4px;margin-left:16px}.studio-modal-foot{background:var(--studio-surface-2);border-top:1px solid var(--studio-border);justify-content:flex-end;gap:8px;padding:12px 18px;display:flex}.studio-stats-grid{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.studio-stats-grid div{background:var(--studio-surface-2);border:1px solid var(--studio-border);border-radius:7px;padding:10px}.studio-stats-grid dt{color:var(--studio-muted);margin-bottom:2px;font-size:.72rem}.studio-stats-grid dd{color:var(--studio-ink-strong);font-size:1.15rem;font-weight:700}.studio-shortcuts-table{border-collapse:collapse;width:100%;font-size:.81rem}.studio-shortcuts-table td{border-bottom:1px solid var(--studio-border);padding:7px 6px}.studio-shortcuts-table kbd{background:var(--studio-bg);border:1px solid var(--studio-border);color:var(--studio-accent);border-radius:4px;padding:2px 6px;font-size:.75rem}.studio-toast{background:var(--studio-accent);color:var(--studio-accent-ink);box-shadow:var(--studio-shadow-lg);z-index:150;border-radius:20px;padding:8px 16px;font-size:.8rem;font-weight:600;position:fixed;bottom:40px;left:50%;transform:translate(-50%)}body.studio-mode main.studio-hub-main,.studio-hub-main{background:var(--studio-bg);flex:1;min-height:0;padding:28px 20px 56px;overflow-y:auto}.studio-hub-container{flex-direction:column;gap:22px;max-width:1120px;margin:0 auto;display:flex}.studio-hub-intro{border-bottom:1px solid var(--studio-border);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;padding-bottom:18px;display:flex}.studio-hub-eyebrow{letter-spacing:.14em;text-transform:uppercase;color:var(--studio-accent);margin-bottom:4px;font-size:.72rem;font-weight:700}.studio-hub-title{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink-strong);font-size:1.75rem;font-style:italic;font-weight:600;line-height:1.25}.studio-hub-lead{max-width:440px;color:var(--studio-muted);font-size:.86rem;line-height:1.55}.studio-hub-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.studio-hub-stat-card{background:var(--studio-surface);border:1px solid var(--studio-border);border-radius:12px;flex-direction:column;gap:6px;padding:14px 16px;display:flex}.studio-hub-stat-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.studio-hub-stat-label{color:var(--studio-muted);font-size:.74rem;font-weight:600}.studio-hub-stat-value{color:var(--studio-ink-strong);font-size:1.45rem;font-weight:700;line-height:1.2}.studio-hub-stat-unit{color:var(--studio-muted);font-size:.84rem;font-weight:500}.studio-hub-stat-sub{color:var(--studio-muted);font-size:.76rem;line-height:1.4}.studio-hub-target-btn{border:1px solid var(--studio-border);background:var(--studio-surface-2);color:var(--studio-ink);cursor:pointer;border-radius:6px;align-items:center;gap:4px;padding:3px 8px;font-family:inherit;font-size:.72rem;font-weight:500;transition:border-color .15s,color .15s;display:inline-flex}.studio-hub-target-btn:hover{border-color:var(--studio-accent);color:var(--studio-accent)}.studio-hub-progress-track{background:var(--studio-surface-2);border:1px solid var(--studio-border);border-radius:999px;width:100%;height:6px;margin-top:2px;overflow:hidden}.studio-hub-progress-fill{background:var(--studio-accent);border-radius:999px;height:100%;transition:width .2s}.studio-hub-progress-fill.is-complete{background:var(--studio-published)}.studio-hub-target-form{flex-direction:column;gap:8px;margin-top:2px;display:flex}.studio-hub-target-input-wrap{border:1px solid var(--studio-border-strong);background:var(--studio-bg);border-radius:8px;align-items:center;gap:8px;padding:6px 10px;display:flex}.studio-hub-target-input-wrap input{width:100%;min-width:0;color:var(--studio-ink-strong);font-variant-numeric:tabular-nums;background:0 0;border:none;outline:none;font-family:inherit;font-size:.95rem;font-weight:600}.studio-hub-target-input-wrap span{color:var(--studio-muted);white-space:nowrap;font-size:.75rem}.studio-hub-target-form-actions{align-items:center;gap:6px;display:flex}.studio-hub-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.studio-hub-type-tabs{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.studio-hub-tab{border:1px solid var(--studio-border);background:var(--studio-surface);min-height:36px;color:var(--studio-ink);cursor:pointer;border-radius:8px;padding:6px 14px;font-family:inherit;font-size:.82rem;font-weight:500;transition:background-color .15s,border-color .15s,color .15s}.studio-hub-tab:hover{border-color:var(--studio-accent);color:var(--studio-accent)}.studio-hub-tab.is-active{background:var(--studio-accent);border-color:var(--studio-accent);color:var(--studio-accent-ink);font-weight:600}.studio-hub-right-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.studio-hub-search{border:1px solid var(--studio-border);background:var(--studio-surface);min-height:36px;color:var(--studio-muted);border-radius:8px;align-items:center;gap:7px;padding:0 11px;display:flex}.studio-hub-search input{color:var(--studio-ink-strong);background:0 0;border:none;outline:none;min-width:190px;font-family:inherit;font-size:.83rem}.studio-hub-status-select{border:1px solid var(--studio-border);background:var(--studio-surface);min-height:36px;color:var(--studio-ink-strong);cursor:pointer;border-radius:8px;padding:0 11px;font-family:inherit;font-size:.82rem}.studio-hub-grid{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px;display:grid}.studio-hub-card{background:var(--studio-surface);border:1px solid var(--studio-border);border-radius:12px;flex-direction:column;gap:12px;padding:16px;transition:border-color .16s,box-shadow .16s;display:flex}.studio-hub-card:hover{border-color:var(--studio-border-strong);box-shadow:var(--studio-shadow)}.studio-hub-card-top{align-items:flex-start;gap:14px;display:flex}.studio-hub-cover-btn{cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:0}.studio-hub-cover-img,.studio-hub-cover-fallback{border:1px solid var(--studio-border);border-radius:7px;width:68px;height:92px}.studio-hub-cover-img{object-fit:cover;display:block}.studio-hub-cover-fallback{background:var(--studio-accent-soft);color:var(--studio-accent);font-family:var(--font-serif,"Lora", Georgia, serif);place-items:center;font-size:1.65rem;font-style:italic;font-weight:700;display:grid}.studio-hub-card-info{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.studio-hub-card-meta{color:var(--studio-muted);letter-spacing:.03em;flex-wrap:wrap;align-items:center;gap:5px;font-size:.72rem;font-weight:600;display:flex}.studio-hub-status.status-published{color:var(--studio-published)}.studio-hub-status.status-draft{color:var(--studio-draft)}.studio-hub-status.status-archived{color:var(--studio-archived)}.studio-hub-card-title{font-family:var(--font-serif,"Lora", Georgia, serif);margin:0;font-size:1.15rem;font-weight:600;line-height:1.3}.studio-hub-title-btn{text-align:left;font:inherit;color:var(--studio-ink-strong);cursor:pointer;background:0 0;border:none;padding:0}.studio-hub-title-btn:hover{color:var(--studio-accent)}.studio-hub-card-subtitle{color:var(--studio-muted);font-size:.8rem;font-style:italic}.studio-hub-card-activity{color:var(--studio-muted);margin-top:2px;font-size:.76rem}.studio-hub-card-activity strong{color:var(--studio-ink);font-weight:600}.studio-hub-card-synopsis{color:var(--studio-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.82rem;line-height:1.5;display:-webkit-box;overflow:hidden}.studio-hub-card-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:4px;display:flex}.studio-hub-action-primary{flex:1;min-width:120px}.studio-hub-empty{background:var(--studio-surface);border:1px dashed var(--studio-border-strong);text-align:center;border-radius:14px;flex-direction:column;align-items:center;gap:10px;padding:44px 24px;display:flex}.studio-hub-empty-ornament{color:var(--studio-accent);font-size:1.3rem}.studio-hub-empty h2{font-family:var(--font-serif,"Lora", Georgia, serif);color:var(--studio-ink-strong);font-size:1.25rem;font-style:italic}.studio-hub-empty p{max-width:420px;color:var(--studio-muted);font-size:.85rem;line-height:1.55}.studio-mobile-dock{left:10px;right:10px;bottom:max(10px, env(safe-area-inset-bottom));z-index:90;background:var(--studio-surface);border:1px solid var(--studio-border-strong);box-shadow:var(--studio-shadow-lg);border-radius:14px;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:5px;display:grid;position:fixed}.studio-mobile-dock-btn{min-height:46px;color:var(--studio-ink);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:4px 2px;font-family:inherit;font-size:.69rem;font-weight:600;transition:background-color .15s,color .15s,border-color .15s;display:flex}.studio-mobile-dock-btn:disabled{opacity:.4;cursor:not-allowed}.studio-mobile-dock-btn.is-active{background:var(--studio-accent-soft);border-color:var(--studio-accent);color:var(--studio-accent)}.studio-mobile-dock-btn.is-save{background:var(--studio-accent);color:var(--studio-accent-ink)}.studio-mobile-dock-btn.is-save.has-alert{background:var(--studio-warn-bg);border-color:var(--studio-warn-border);color:var(--studio-warn-text)}.studio-mobile-sheet-backdrop{z-index:105;background:var(--studio-backdrop);justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.studio-mobile-sheet{background:var(--studio-surface);border-top:1px solid var(--studio-border-strong);width:100%;max-height:78dvh;box-shadow:var(--studio-shadow-lg);padding-bottom:env(safe-area-inset-bottom);border-radius:16px 16px 0 0;flex-direction:column;display:flex;overflow:hidden}.studio-mobile-sheet-panel{flex-direction:column;min-height:0;max-height:78dvh;display:flex}.studio-mobile-sheet-head{border-bottom:1px solid var(--studio-border);background:var(--studio-surface-2);flex-shrink:0;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.studio-mobile-sheet-head h3{color:var(--studio-ink-strong);font-size:.92rem;font-weight:700}.studio-mobile-close-btn{width:36px;height:36px}.studio-mobile-sheet-body{flex-direction:column;flex:1;gap:16px;padding:14px 16px 20px;display:flex;overflow-y:auto}.studio-mobile-format-section{flex-direction:column;gap:8px;display:flex}.studio-mobile-sec-label{text-transform:uppercase;letter-spacing:.08em;color:var(--studio-accent);font-size:.72rem;font-weight:700}.studio-mobile-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.studio-mobile-tool-btn{border:1px solid var(--studio-border);background:var(--studio-surface-2);min-height:44px;color:var(--studio-ink);cursor:pointer;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:6px 4px;font-family:inherit;font-size:.74rem;font-weight:500;display:flex}.studio-mobile-tool-btn.is-active{background:var(--studio-accent-soft);border-color:var(--studio-accent);color:var(--studio-accent);font-weight:600}.studio-mobile-tool-btn:disabled{opacity:.4}.studio-mobile-block-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.studio-mobile-block-btn{border:1px solid var(--studio-border);background:var(--studio-bg);min-height:44px;color:var(--studio-ink-strong);cursor:pointer;text-align:left;border-radius:9px;align-items:center;gap:8px;padding:8px 11px;font-family:inherit;font-size:.8rem;font-weight:500;display:flex}.studio-mobile-block-btn svg{color:var(--studio-accent);flex-shrink:0}.studio-mobile-more-list{flex-direction:column;gap:7px;display:flex}.studio-mobile-more-btn{border:1px solid var(--studio-border);background:var(--studio-surface-2);width:100%;min-height:44px;color:var(--studio-ink-strong);cursor:pointer;text-align:left;border-radius:9px;align-items:center;gap:10px;padding:9px 13px;font-family:inherit;font-size:.86rem;font-weight:500;text-decoration:none;display:flex}.studio-mobile-more-btn.is-primary{background:var(--studio-accent);border-color:var(--studio-accent);color:var(--studio-accent-ink);font-weight:600}.studio-mobile-more-btn.is-danger{color:var(--studio-err-text);border-color:var(--studio-err-border);background:var(--studio-err-bg)}@media (hover:none),(width<=768px){.studio-chapter-actions{display:flex}}@media (width<=1024px){.studio-sidebar,.studio-inspector{z-index:45;box-shadow:var(--studio-shadow-lg);position:absolute;top:0;bottom:0}.studio-sidebar{left:0}.studio-inspector{right:0}}@media (width<=768px){.studio-header{gap:8px;min-height:48px;padding:6px 10px}.studio-header-left{gap:8px}.studio-hub-back-btn span,.studio-app-name,.studio-sep-dot,.studio-hide-xs,.studio-menubar{display:none}.studio-find-bar{padding:8px 10px}.studio-find-input{flex:130px;width:auto}.studio-ruler-sticky{display:none}.studio-paper-stage{padding:10px 8px 104px}.studio-paper-scaler{width:100%!important}.studio-paper-page{min-height:calc(100dvh - 150px);padding-top:24px;padding-bottom:48px;width:100%!important;padding-left:16px!important;padding-right:16px!important;transform:none!important}.studio-doc-num-input{width:100%}.studio-doc-title-input{font-size:1.5rem}.studio-doc-setting-input,.studio-doc-feeling-input{flex:100%;min-width:0}.studio-mobile-sheet-panel .studio-sidebar,.studio-mobile-sheet-panel .studio-inspector{width:100%;height:auto;min-height:0;box-shadow:none;border:none;flex:1;position:static}.studio-mobile-sheet-panel .studio-mini-btn{width:34px;height:34px}.studio-preview-bar{padding:8px 10px}.studio-preview-modes,.studio-preview-actions{justify-content:flex-start;width:100%}.studio-toast{text-align:center;max-width:calc(100vw - 24px);bottom:84px}.studio-hub-main{padding:18px 14px 40px}.studio-hub-title{font-size:1.4rem}.studio-hub-stats{grid-template-columns:1fr;gap:10px}.studio-hub-target-btn{min-height:32px;padding:4px 10px}.studio-hub-grid{grid-template-columns:1fr}.studio-hub-search{flex:1}.studio-hub-search input{width:100%;min-width:0}.studio-hub-card-actions .studio-btn{min-height:44px}}@media print{body.studio-mode{color:#1a1814!important;background:#fff!important;height:auto!important;overflow:visible!important}.studio-header,.studio-menubar-wrap,.studio-toolbar,.studio-sidebar,.studio-inspector,.studio-ruler-sticky,.studio-status-bar,.studio-mobile-dock,.studio-mobile-sheet-backdrop,.studio-conflict-banner,.studio-block-bar,.studio-slash-menu,.studio-toast{display:none!important}.studio-workspace,.studio-canvas-scroll,.studio-paper-stage,.studio-paper-scaler{background:#fff!important;width:100%!important;padding:0!important;display:block!important;overflow:visible!important}.studio-paper-page{color:#1a1814!important;box-shadow:none!important;background:#fff!important;border:none!important;width:100%!important;padding:0!important;transform:none!important}.studio-editor-surface .tiptap,.studio-doc-title-input{color:#1a1814!important}.studio-page-break{page-break-after:always;break-after:page;visibility:hidden;height:0;margin:0}}
