:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box;margin:0;padding:0}body{color:#f5f5f7;background:#09090d;font-family:Inter,Arial,sans-serif}button{cursor:pointer;font-family:inherit}.app{background:radial-gradient(circle at 80% 10%,#7846ff1f,#0000 30%),#09090d;min-height:100vh}.navbar{-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);z-index:10;background:#09090dd9;border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;height:78px;padding:0 7%;display:flex;position:sticky;top:0}.logo{letter-spacing:-1px;align-items:center;gap:10px;font-size:24px;font-weight:700;display:flex}.logo-icon{color:#a855f7;font-size:29px}.nav-links{gap:38px;display:flex}.nav-links a{color:#aaaab5;font-size:15px;text-decoration:none;transition:all .3s}.nav-links a:hover{color:#fff}.nav-actions{gap:12px;display:flex}.login-btn,.signup-btn{border:none;border-radius:9px;padding:11px 20px;font-size:14px}.login-btn{color:#fff;background:0 0}.signup-btn{color:#fff;background:#8b5cf6}.signup-btn:hover{background:#7c3aed}.logo-button{cursor:pointer;font:inherit;background:0 0;border:0}.nav-links button{color:#aaaab5;font:inherit;cursor:pointer;background:0 0;border:0;font-size:15px}.nav-links button:hover{color:#fff}button:focus-visible,input:focus-visible{outline-offset:2px;outline:2px solid #c4b5fd}.workspace-page,.admin-page,.admin-login{color:#f5f5f7;background:#09090d;min-height:100vh;padding:46px 7%}.workspace-header{justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:42px;display:flex}.workspace-header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.workspace-user{overflow-wrap:anywhere;color:#aaaab5;max-width:180px;font-size:13px}.eyebrow{color:#a855f7;letter-spacing:.14em;font-size:11px;font-weight:700}.workspace-header h1,.admin-login-card h1{color:#fff;margin:8px 0;font-size:46px}.workspace-header p,.admin-login-card p{color:#aaaab5}.workspace-primary,.quiet-button,.icon-button{cursor:pointer;border-radius:8px}.workspace-primary{color:#fff;background:#8b5cf6;border:0;align-items:center;gap:8px;padding:11px 16px;font-weight:700;display:inline-flex}.workspace-primary:hover{background:#7c3aed}.quiet-button{color:#d4d4dc;background:0 0;border:1px solid #373743;padding:10px 15px}.create-panel,.continue-section,.books-section,.admin-content{max-width:1180px;margin:0 auto 34px}.create-panel{background:#111118;border:1px solid #292933;border-radius:10px;padding:28px}.create-panel h2,.section-title h2,.admin-content h2{color:#fff;margin:8px 0 20px}.step-indicator{color:#a855f7;font-size:13px;font-weight:700}.choice-grid,.template-grid,.book-cards,.admin-stats{gap:14px;display:grid}.choice-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin-bottom:24px}.choice{color:#d5d5dd;cursor:pointer;background:#20202a;border:1px solid #292933;border-radius:7px;padding:13px}.choice.selected,.choice:hover{color:#fff;background:#252032;border-color:#8b5cf6}.template-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:24px}.template-card{color:#aaaab5;text-align:left;cursor:pointer;background:#181820;border:1px solid #292933;border-radius:8px;gap:7px;padding:10px;display:grid}.template-card b{color:#fff}.template-card.selected,.template-card:hover{border-color:#8b5cf6}.template-preview,.work-cover{color:#222;text-align:center;border-radius:5px;place-items:center;gap:5px;min-height:110px;display:grid}.template-preview small{font-size:10px}.preview-default{color:#fff;background:linear-gradient(135deg,#1b1530,#8b5cf6)}.preview-black-blue{color:#fff;background:linear-gradient(135deg,#111b27,#38bdf8)}.preview-paper{color:#74451f;background:#fffdf8}.preview-midnight-purple{color:#fff;background:linear-gradient(135deg,#211735,#a78bfa)}.preview-autumn{color:#a6531b;background:#fff4e5}.preview-night{color:#bae6fd;background:#0f1424}.preview-black-red{color:#fff;background:linear-gradient(135deg,#191214,#dc2626)}.preview-spring{color:#28613b;background:#e8f5e9}.preview-sunny{color:#856007;background:#fff8c7}.preview-rainy{color:#476c84;background:#e5eef2}.preview-winter{color:#2b6389;background:#eaf2f7}.form-actions,.card-actions,.section-title,.status-row{align-items:center;gap:10px;display:flex}.form-actions{justify-content:flex-end}.create-panel label{color:#aaaab5;gap:6px;max-width:520px;margin-bottom:16px;font-size:13px;display:grid}.create-panel input{color:#fff;background:#09090d;border:1px solid #373743;border-radius:6px;padding:12px}.section-title{justify-content:space-between;margin-bottom:16px}.section-title>span{color:#777785;font-size:13px}.book-cards{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.work-card{background:#111118;border:1px solid #292933;border-radius:9px;grid-template-columns:120px 1fr;gap:16px;padding:16px;display:grid}.featured-book{grid-template-columns:170px 1fr}.work-cover{min-height:175px;padding:12px;font-size:14px}.featured-book .work-cover{min-height:210px}.work-details{min-width:0}.work-details h3{color:#fff;overflow-wrap:anywhere;margin:14px 0 4px}.work-details p{color:#9999a7;overflow-wrap:anywhere;margin-bottom:15px}.status-row{color:#8b5cf6;justify-content:space-between;font-size:12px}.status-badge{color:#c4b5fd;background:#252032;border-radius:4px;padding:4px 7px}.book-meta{color:#777785;gap:5px;font-size:12px;display:grid}.card-actions{flex-wrap:wrap;align-items:center;margin-top:16px;display:flex}.icon-button{color:#d4d4dc;background:0 0;border:1px solid #373743;place-items:center;width:36px;height:36px;display:grid}.icon-button:hover{color:#fff;border-color:#8b5cf6}.icon-button.danger:hover{color:#f87171;border-color:#f87171}.empty-work{color:#888896;border:1px dashed #373743;border-radius:8px;padding:28px}.back-home{color:#9d9daa;cursor:pointer;background:0 0;border:0;margin:30px auto 0;display:block}.admin-login{place-items:center;display:grid}.admin-login-card{background:#111118;border:1px solid #292933;border-radius:10px;gap:12px;width:min(100%,420px);padding:30px;display:grid}.admin-login-card label{color:#aaaab5;gap:6px;font-size:13px;display:grid}.admin-login-card input{color:#fff;background:#09090d;border:1px solid #373743;border-radius:6px;padding:12px}.admin-layout{grid-template-columns:190px 1fr;gap:24px;max-width:1180px;margin:auto;display:grid}.admin-nav{align-content:start;gap:5px;display:grid}.admin-nav button{color:#9999a7;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:9px;padding:11px;display:flex}.admin-nav button.selected,.admin-nav button:hover{color:#fff;background:#252032}.admin-stats{grid-template-columns:repeat(3,1fr)}.admin-stats div{background:#111118;border:1px solid #292933;border-radius:8px;gap:5px;padding:20px;display:grid}.admin-stats strong{color:#c4b5fd;font-size:28px}.admin-stats span,.admin-row span,.admin-list span{color:#9999a7;font-size:13px}.admin-table,.admin-list{border:1px solid #292933;border-radius:8px;display:grid;overflow:hidden}.admin-row,.admin-list>div{background:#111118;border-bottom:1px solid #292933;grid-template-columns:1.3fr repeat(5,1fr);gap:12px;padding:13px;display:grid}.admin-list>div{grid-template-columns:1fr 2fr auto}.admin-row:last-child,.admin-list>div:last-child{border-bottom:0}.work-card strong,.featured-admin-row strong{overflow-wrap:anywhere}.auth-page,.profile-page{color:#f5f5f7;background:#09090d;min-height:100vh;padding:32px 7%}.auth-card,.profile-card{background:#111118;border:1px solid #292933;border-radius:10px;width:min(100%,500px);margin:40px auto;padding:34px}.auth-brand{margin-bottom:45px;font-size:24px;font-weight:700}.auth-card h1,.profile-card h1{color:#fff;overflow-wrap:anywhere;margin:10px 0;font-size:38px}.auth-intro{color:#aaaab5;margin-bottom:25px;line-height:1.6}.auth-card form,.profile-card form{gap:15px;display:grid}.auth-card label,.profile-card label{color:#aaaab5;text-align:left;gap:6px;font-size:13px;display:grid}.auth-card input,.profile-card input,.profile-card textarea{color:#fff;width:100%;font:inherit;background:#09090d;border:1px solid #373743;border-radius:6px;padding:12px}.input-with-icon{color:#777785;border:1px solid #373743;border-radius:6px;align-items:center;gap:8px;padding:0 11px;display:flex}.input-with-icon input{border:0;outline:0;padding:12px 0}.password-toggle{color:#9999a7;background:0 0;border:0;place-items:center;display:grid}.auth-submit{justify-content:center;margin-top:7px}.auth-link{color:#c4b5fd;cursor:pointer;background:0 0;border:0}.auth-switch{color:#9999a7;text-align:center;margin-top:18px}.form-error,.form-notice{border-radius:6px;padding:10px 12px;font-size:13px}.form-error{color:#fca5a5;background:#f871711a}.form-notice{color:#86efac;overflow-wrap:anywhere;background:#86efac1a}.profile-card{width:min(100%,700px)}.profile-heading{justify-content:space-between;align-items:start;gap:20px;margin-bottom:28px;display:flex}.profile-avatar{color:#ddd6fe;background:#252032;border-radius:50%;place-items:center;width:82px;height:82px;margin-bottom:20px;font-size:30px;display:grid;position:relative;overflow:hidden}.profile-avatar img{object-fit:cover;width:100%;height:100%}.avatar-picker{cursor:pointer;background:#8b5cf6;border-radius:50%;place-items:center;width:27px;height:27px;position:absolute;bottom:0;right:0;color:#fff!important;display:grid!important}.avatar-picker input{opacity:0;cursor:pointer;position:absolute;inset:0}.profile-facts{color:#aaaab5;border-top:1px solid #292933;border-bottom:1px solid #292933;flex-wrap:wrap;gap:30px;padding:17px 0;display:flex}.profile-facts span{gap:4px;display:grid}.profile-facts b{color:#fff;font-size:12px}@media (width<=700px){.workspace-page,.admin-page,.admin-login{padding:28px 16px}.workspace-header{flex-direction:column;align-items:flex-start;margin-bottom:28px}.workspace-header-actions{justify-content:flex-start;width:100%}.auth-page,.profile-page{padding:22px 16px}.auth-card,.profile-card{margin:25px auto;padding:24px 18px}.profile-heading{flex-direction:column}.workspace-header h1,.admin-login-card h1{font-size:36px}.book-info{flex-wrap:wrap}.author-name{width:min(150px,45vw)}.work-card,.featured-book{grid-template-columns:1fr}.work-cover,.featured-book .work-cover{min-height:150px}.admin-layout{grid-template-columns:1fr}.admin-nav{grid-template-columns:repeat(2,1fr)}.admin-row{grid-template-columns:1fr 1fr}.admin-list>div{grid-template-columns:1fr auto}.admin-list>div span{grid-area:2/1/auto/-1}.admin-stats{grid-template-columns:1fr}}.hero{justify-content:space-between;align-items:center;gap:80px;min-height:680px;padding:90px 8%;display:flex}.hero-content{max-width:650px}.badge{color:#c4b5fd;background:#8b5cf61f;border:1px solid #8b5cf64d;border-radius:30px;margin-bottom:25px;padding:9px 15px;font-size:14px;display:inline-block}.hero h1{letter-spacing:-4px;margin-bottom:28px;font-size:clamp(52px,6vw,82px);line-height:.98}.hero h1 span{background:linear-gradient(90deg,#a855f7,#6366f1);-webkit-text-fill-color:transparent;-webkit-background-clip:text}.hero p{color:#a1a1aa;max-width:580px;font-size:18px;line-height:1.7}.hero-buttons{gap:14px;margin-top:35px;display:flex}.primary-btn,.secondary-btn{border:none;border-radius:10px;padding:15px 24px;font-size:15px;font-weight:600}.primary-btn{color:#fff;background:#8b5cf6;box-shadow:0 10px 30px #8b5cf640}.secondary-btn{color:#fff;background:#18181f;border:1px solid #30303a}.hero-stats{gap:45px;margin-top:55px;display:flex}.hero-stats div{flex-direction:column;gap:5px;display:flex}.hero-stats strong{font-size:20px}.hero-stats span{color:#71717a;font-size:13px}.hero-book{justify-content:center;align-items:center;width:390px;height:480px;display:flex;position:relative}.book-glow{filter:blur(120px);opacity:.25;background:#7c3aed;width:300px;height:300px;position:absolute}.book{perspective:1000px;width:260px;height:360px;position:relative;transform:rotate(-6deg)}.book-cover{background:linear-gradient(135deg,#312e81,#7c3aed 50%,#111827);border-radius:5px 15px 15px 5px;flex-direction:column;justify-content:center;align-items:center;width:250px;height:350px;padding:40px 25px;display:flex;position:absolute;box-shadow:25px 25px 50px #0009,inset -5px 0 #ffffff14}.cover-symbol{color:#ddd6fe;margin-bottom:40px;font-size:55px}.cover-title{letter-spacing:5px;font-size:30px;font-weight:800}.cover-subtitle{letter-spacing:4px;color:#c4b5fd;margin-top:15px;font-size:11px}.book-page{background:#d4d4d8;border-radius:0 5px 5px 0;width:18px;height:335px;position:absolute;top:8px;right:-15px}.featured,.features{padding:100px 8%}.section-heading{justify-content:space-between;align-items:end;margin-bottom:45px;display:flex}.section-heading h2{letter-spacing:-1.5px;margin-top:8px;font-size:40px}.small-title{color:#a855f7;letter-spacing:3px;font-size:12px;font-weight:700}.view-btn{color:#c4b5fd;background:0 0;border:none;font-size:15px}.book-grid{grid-template-columns:repeat(4,1fr);gap:25px;display:grid}.story-card{cursor:pointer;transition:transform .3s}.story-card:hover{transform:translateY(-7px)}.story-cover{border-radius:12px;justify-content:center;align-items:center;height:330px;padding:25px;display:flex;box-shadow:0 20px 40px #0000004d}.cover-image{object-fit:cover;width:100%}.placeholder-cover{text-align:center;flex-direction:column;gap:14px}.story-info small{color:#858591;margin-top:10px;line-height:1.45;display:block}.empty-featured{color:#9999a7;text-align:center;border:1px dashed #373743;border-radius:10px;grid-column:1/-1;padding:42px}.public-page{color:#f5f5f7;background:#09090d;min-height:100vh;padding:42px 8%}.back-link{color:#aaaab5;background:0 0;border:0;align-items:center;gap:7px;display:inline-flex}.details-layout{grid-template-columns:minmax(240px,340px) 1fr;align-items:center;gap:70px;max-width:980px;margin:70px auto;display:grid}.details-cover{height:460px}.details-copy{max-width:580px}.details-copy h1,.explore-header h1,.reader-content h1{color:#fff;margin:12px 0;font-size:clamp(38px,5vw,68px)}.details-copy p{color:#aaaab5;margin:16px 0;line-height:1.7}.details-author{font-size:18px;color:#c4b5fd!important}.details-meta{color:#858591!important}.reader-content{max-width:760px;margin:70px auto;line-height:1.8}.reader-content section{margin-top:52px}.reader-content h2{color:#fff;margin-bottom:18px}.reader-content section div{color:#c7c7d0;text-align:left}.explore-header{justify-content:space-between;align-items:end;gap:24px;max-width:1180px;margin:55px auto 30px;display:flex}.search-control{color:#9999a7;border:1px solid #373743;border-radius:8px;align-items:center;gap:8px;min-width:260px;padding:11px 14px;display:flex}.search-control input{color:#fff;background:0 0;border:0;outline:0;width:100%}.explore-filters{gap:12px;max-width:1180px;margin:0 auto 35px;display:flex}.explore-filters select,.book-form select,.book-form input,.book-form textarea{color:#fff;font:inherit;background:#09090d;border:1px solid #373743;border-radius:6px;padding:11px}.explore-grid{max-width:1180px;margin:auto}.featured-admin-list{gap:10px;display:grid}.featured-admin-row{background:#111118;border:1px solid #292933;border-radius:8px;grid-template-columns:68px minmax(150px,1fr) 90px 45px auto;align-items:center;gap:15px;padding:12px;display:grid}.featured-admin-row>div:not(.card-actions){gap:4px;display:grid}.featured-admin-row span{color:#9999a7;font-size:12px}.admin-cover{object-fit:cover;border-radius:5px;width:68px;height:86px}.placeholder-cover.admin-cover{color:#fff;text-align:center;place-items:center;padding:6px;display:grid}.admin-status{text-transform:capitalize}.admin-status.published{color:#86efac!important}.admin-status.draft{color:#fbbf24!important}.modal-backdrop{z-index:20;background:#000000b8;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.book-form{background:#111118;border:1px solid #373743;border-radius:10px;gap:15px;width:min(100%,620px);max-height:92vh;padding:26px;display:grid;overflow:auto}.book-form label{color:#aaaab5;gap:6px;font-size:13px;display:grid}.form-heading{justify-content:space-between;align-items:center;display:flex}.form-heading h2{color:#fff}.form-two-column{grid-template-columns:1fr 1fr;gap:12px;display:grid}.cover-picker{color:#aaaab5;border:1px dashed #4a4a58;border-radius:7px;place-items:center;min-height:100px;display:grid;position:relative;overflow:hidden}.cover-picker img{object-fit:cover;width:100%;height:130px}.cover-picker input{opacity:0;cursor:pointer;position:absolute;inset:0}.checkbox-label{align-items:center;padding-top:28px;gap:8px!important;display:flex!important}.checkbox-label input{width:17px;height:17px}.story-cover span{text-align:center;letter-spacing:3px;font-size:28px;font-weight:800}.cover-one{background:linear-gradient(145deg,#1e1b4b,#4338ca)}.cover-two{background:linear-gradient(145deg,#172554,#0369a1)}.cover-three{background:linear-gradient(145deg,#3f1d38,#be185d)}.cover-four{background:linear-gradient(145deg,#292524,#b45309)}.story-info{padding:17px 3px}.story-info h3{font-size:17px}.story-info p{color:#a1a1aa;margin-top:6px;font-size:13px}.story-info span{color:#71717a;margin-top:7px;font-size:12px;display:block}.features{background:#0e0e14}.center{text-align:center;display:block}.center>p:last-child{color:#71717a;margin-top:15px}.feature-grid{grid-template-columns:repeat(4,1fr);gap:20px;margin-top:50px;display:grid}.feature-card{background:#14141b;border:1px solid #24242d;border-radius:14px;padding:30px;transition:all .3s}.feature-card:hover{border-color:#7c3aed;transform:translateY(-5px)}.feature-icon{margin-bottom:22px;font-size:30px}.feature-card h3{margin-bottom:12px}.feature-card p{color:#858591;font-size:14px;line-height:1.6}footer{text-align:center;padding:60px 8% 30px}.footer-logo{font-size:25px;font-weight:700}footer p{color:#71717a;margin-top:12px}.footer-bottom{color:#52525b;border-top:1px solid #22222a;margin-top:40px;padding-top:25px;font-size:13px}@media (width<=1000px){.hero{text-align:center;flex-direction:column}.hero-content{max-width:750px}.hero p{margin:auto}.hero-buttons,.hero-stats{justify-content:center}.book-grid,.feature-grid{grid-template-columns:repeat(2,1fr)}.nav-links{display:none}}@media (width<=600px){.navbar{padding:0 20px}.login-btn{display:none}.hero{padding:70px 25px}.hero h1{font-size:50px}.hero-book{transform:scale(.8)}.hero-buttons{flex-direction:column}.hero-stats{gap:20px}.featured,.features{padding:70px 25px}.section-heading h2{font-size:30px}.book-grid,.feature-grid,.details-layout,.form-two-column{grid-template-columns:1fr}.details-layout{gap:30px;margin-top:40px}.details-cover{height:360px}.explore-header{align-items:start;display:grid}.search-control{min-width:0}.explore-filters{flex-direction:column}.featured-admin-row{grid-template-columns:58px 1fr auto}.featured-admin-row>.admin-status,.featured-admin-row>span:nth-child(4){display:none}.featured-admin-row .card-actions{flex-wrap:wrap;grid-column:2/-1}.admin-cover{width:58px;height:74px}}.editor-page{color:#fff;background:#09090d;min-height:100vh}.editor-header{background:#0e0e14;border-bottom:1px solid #27272f;align-items:center;gap:30px;height:70px;padding:0 30px;display:flex}.novel-title-label{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.save-status{color:#8f8b9d;white-space:nowrap;font-size:12px}.editor-logo{color:#c4b5fd;font-size:22px;font-weight:700}.novel-title{color:#fff;background:0 0;border:none;outline:none;flex:1;max-width:450px;font-size:18px;font-weight:600}.save-button{color:#fff;cursor:pointer;background:#8b5cf6;border:none;border-radius:8px;padding:10px 20px}.editor-main{min-height:calc(100vh - 70px);display:flex}.chapter-sidebar{background:#0e0e14;border-right:1px solid #27272f;width:250px;padding:30px 20px}.chapter-sidebar h3{margin-bottom:20px}.add-chapter{color:#c4b5fd;cursor:pointer;background:0 0;border:1px dashed #555;border-radius:8px;width:100%;margin-bottom:20px;padding:11px}.chapter{color:#999;cursor:pointer;border-radius:7px;justify-content:space-between;align-items:center;gap:8px;margin-bottom:5px;padding:12px;display:flex}.chapter.active{color:#fff;background:#252032}.chapter-copy{gap:3px;min-width:0;display:grid}.chapter-number{color:#8f8b9d;letter-spacing:.08em;text-transform:uppercase;font-size:11px;font-weight:700}.chapter-name{color:inherit;text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.chapter-edit-button{color:#a7a0b7;opacity:0;background:0 0;border:0;border-radius:5px;flex:none;place-items:center;width:28px;height:28px;padding:0;display:grid}.chapter:hover .chapter-edit-button,.chapter:focus-within .chapter-edit-button,.chapter.active .chapter-edit-button{opacity:1}.chapter-edit-button:hover,.chapter-edit-button:focus-visible{color:#fff;background:#8b5cf6}.chapter-name-input{color:#fff;width:100%;min-width:0;font:inherit;background:#111118;border:1px solid #8b5cf6;border-radius:4px;outline:none;padding:3px 5px}.writing-area{flex:1;max-width:1000px;margin:auto;padding:50px}.chapter-title{color:#fff;background:0 0;border:none;outline:none;width:100%;margin-bottom:25px;font-size:36px;font-weight:700}.chapter-heading{gap:2px;margin-bottom:25px;display:grid}.chapter-heading>span{color:#a855f7;letter-spacing:.12em;text-transform:uppercase;font-size:13px;font-weight:700}.chapter-heading .chapter-title{margin-bottom:0}.toolbar{scrollbar-width:thin;background:#111118;border:1px solid #292933;border-radius:8px 8px 0 0;gap:6px;padding:10px;display:flex;overflow-x:auto}.toolbar button{color:#fff;cursor:pointer;background:#20202a;border:none;border-radius:5px;flex:0 0 38px;place-items:center;width:38px;height:36px;padding:0;display:grid}.toolbar button:hover{background:#8b5cf6}.toolbar button:disabled{cursor:not-allowed;opacity:.35}.toolbar button:focus-visible,.save-button:focus-visible,.add-chapter:focus-visible,.delete-chapter:focus-visible,.novel-title:focus-visible,.chapter-title:focus-visible{outline-offset:2px;outline:2px solid #c4b5fd}.heading-icon{font-size:12px;font-weight:700}.story-editor{resize:vertical;color:#e4e4e7;background:#111118;border:1px solid #292933;border-top:none;border-radius:0 0 8px 8px;outline:none;width:100%;min-height:550px;padding:30px;font-family:Georgia,serif;font-size:17px;line-height:1.9}.story-editor::placeholder{color:#555}.editor-stats{color:#71717a;gap:30px;padding:15px 5px;font-size:13px;display:flex}.editor-stats strong{color:#c4b5fd}@media (width<=700px){.editor-header{flex-wrap:wrap;gap:10px;height:auto;min-height:70px;padding:12px 16px}.editor-logo{flex:1 0 100%}.novel-title{min-width:0}.save-status{display:none}.chapter-sidebar{width:190px;padding:20px 12px}.writing-area{padding:25px}.chapter-title{font-size:28px}.writing-area{min-width:0;padding:25px 16px}.editor-stats{flex-wrap:wrap;gap:10px 16px}}.delete-chapter{color:#f87171;cursor:pointer;background:0 0;border:1px solid #3f2020;border-radius:8px;width:100%;margin-top:20px;padding:10px}.delete-chapter:hover{background:#2a1515}.rich-editor{color:#e4e4e7;background:#111118;border:1px solid #292933;border-top:none;border-radius:0 0 8px 8px;min-height:550px;padding:30px;font-family:Georgia,serif;font-size:17px;line-height:1.9}.rich-editor .ProseMirror{outline:none;min-height:490px}.rich-editor p{margin:0 0 15px}.rich-editor h1{margin:25px 0 15px;font-size:34px;line-height:1.2}.rich-editor h2{margin:20px 0 12px;font-size:26px;line-height:1.3}.rich-editor img{border-radius:10px;max-width:100%;height:auto;margin:25px auto;display:block}.rich-editor img.ProseMirror-selectednode{outline:3px solid #8b5cf6}.rich-editor .ProseMirror p.is-editor-empty:first-child:before{content:"Start writing your story here...";color:#555;float:left;pointer-events:none;height:0}.toolbar button.is-active{background:#8b5cf6}.editor-page{--theme-bg:#09090d;--theme-surface:#0e0e14;--theme-editor:#111118;--theme-control:#20202a;--theme-text:#fff;--theme-muted:#999;--theme-accent:#8b5cf6;--theme-soft:#252032;--theme-border:#292933;--theme-quote:#c4b5fd;background:var(--theme-bg);color:var(--theme-text)}.theme-black-silver{--theme-bg:#090a0d;--theme-surface:#101216;--theme-editor:#15171b;--theme-control:#25282e;--theme-accent:#cbd5e1;--theme-soft:#29303a;--theme-border:#39404a;--theme-quote:#d5d9df}.theme-black-red{--theme-bg:#0d090b;--theme-surface:#150d10;--theme-editor:#1b1115;--theme-control:#322027;--theme-accent:#ef4444;--theme-soft:#3a1d25;--theme-border:#4a2830;--theme-quote:#fca5a5}.theme-black-blue{--theme-bg:#080c13;--theme-surface:#0e151f;--theme-editor:#111b27;--theme-control:#1d2d40;--theme-accent:#38bdf8;--theme-soft:#16364c;--theme-border:#294158;--theme-quote:#bae6fd}.theme-spring{--theme-bg:#102016;--theme-surface:#17291d;--theme-editor:#1b3122;--theme-control:#28472f;--theme-accent:#86efac;--theme-soft:#235033;--theme-border:#376242;--theme-quote:#bbf7d0}.theme-autumn{--theme-bg:#21150d;--theme-surface:#2c1b10;--theme-editor:#382214;--theme-control:#51321a;--theme-accent:#f59e0b;--theme-soft:#55330f;--theme-border:#67431f;--theme-quote:#fcd34d}.theme-winter{--theme-bg:#0b1520;--theme-surface:#101f2d;--theme-editor:#142637;--theme-control:#203b52;--theme-accent:#bae6fd;--theme-soft:#21425b;--theme-border:#315873;--theme-quote:#e0f2fe}.theme-night{--theme-bg:#090b1b;--theme-surface:#10132b;--theme-editor:#15193a;--theme-control:#25275a;--theme-accent:#a78bfa;--theme-soft:#30265d;--theme-border:#3e3972;--theme-quote:#c4b5fd}.theme-sunny{--theme-bg:#241d08;--theme-surface:#302708;--theme-editor:#3a2f0b;--theme-control:#5a4910;--theme-accent:#facc15;--theme-soft:#57480d;--theme-border:#756019;--theme-quote:#fde68a}.theme-rainy{--theme-bg:#11171d;--theme-surface:#182128;--theme-editor:#1e2a33;--theme-control:#30414d;--theme-accent:#7dd3fc;--theme-soft:#244354;--theme-border:#3b5666;--theme-quote:#bae6fd}.editor-page .toolbar button,.editor-page .icon-action{background:var(--theme-control);color:var(--theme-text)}.editor-page .toolbar button:hover,.editor-page .toolbar button.is-active,.editor-page .icon-action:hover,.editor-page .save-button{background:var(--theme-accent);color:var(--theme-bg)}.editor-page .chapter-heading>span,.editor-page .editor-logo,.editor-page .editor-stats strong{color:var(--theme-accent)}.editor-page .chapter-author,.editor-page .save-status{color:var(--theme-muted)}.editor-page .chapter-title,.editor-page .author-name,.editor-page .novel-title{color:var(--theme-text)}.book-info{flex:1;align-items:center;gap:16px;min-width:0;display:flex}.author-name{border:0;border-left:1px solid var(--theme-border);color:#999;background:0 0;outline:none;width:150px;padding-left:16px;font-size:14px}.header-actions{align-items:center;gap:12px;display:flex}.theme-control{position:relative}.theme-popover{z-index:5;border:1px solid var(--theme-border);background:var(--theme-editor);border-radius:9px;width:290px;padding:14px;position:absolute;top:44px;right:0;box-shadow:0 16px 40px #00000059}.theme-popover>strong{margin-bottom:10px;display:block}.theme-grid{grid-template-columns:repeat(2,1fr);gap:7px;display:grid}.theme-option{color:var(--theme-muted);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:7px;display:flex}.theme-option:hover,.theme-option.selected{border-color:var(--theme-accent);color:var(--theme-text)}.theme-swatch{border-radius:50%;flex:0 0 20px;width:20px;height:20px}.chapter-author{color:#777;font-size:13px;font-style:italic}.add-quote{border:1px dashed var(--theme-border);color:var(--theme-accent);cursor:pointer;background:0 0;border-radius:7px;margin:32px auto;padding:9px 14px;display:block}.chapter-quote{text-align:center;max-width:620px;margin:70px auto 35px;padding:28px 52px;position:relative}.quote-divider{color:var(--theme-accent);letter-spacing:12px}.chapter-quote blockquote{color:var(--theme-quote);margin:18px 0 10px;font-family:Georgia,serif;font-size:23px;font-style:italic;line-height:1.5}.chapter-quote cite{color:var(--theme-muted);font-family:Georgia,serif;font-size:14px}.quote-actions{opacity:.45;justify-content:center;gap:7px;margin-top:15px;display:flex}.chapter-quote:hover .quote-actions,.quote-actions:focus-within{opacity:1}.quote-form{border:1px solid var(--theme-border);background:var(--theme-editor);border-radius:8px;max-width:620px;margin:34px auto;padding:20px}.quote-form h3{color:var(--theme-quote);margin:0 0 14px}.quote-form textarea,.quote-form input{border:1px solid var(--theme-border);background:var(--theme-bg);width:100%;color:var(--theme-text);font:inherit;border-radius:5px;outline:none;margin-bottom:10px;padding:10px}.quote-form textarea{resize:vertical;min-height:90px}.quote-form-actions{gap:8px;display:flex}.quote-cancel{border:1px solid var(--theme-border);color:var(--theme-text);cursor:pointer;background:0 0;border-radius:7px;padding:10px 16px}.editor-page{--bg-primary:#09090d;--bg-secondary:#0e0e14;--bg-editor:#111118;--surface:#20202a;--surface-hover:#252032;--text-primary:#fff;--text-secondary:#b8b8c2;--accent:#8b5cf6;--accent-hover:#a78bfa;--accent-soft:#252032;--border:#292933;--border-strong:#454553;--quote:#c4b5fd;--button-text:#fff;--danger:#f87171;background:var(--bg-primary);color:var(--text-primary)}.theme-black-silver{--bg-primary:#080808;--bg-secondary:#101010;--bg-editor:#111;--surface:#252525;--surface-hover:#343434;--text-primary:#f5f5f5;--text-secondary:#b8b8b8;--accent:#c4c7cc;--accent-hover:#f0f1f2;--accent-soft:#303030;--border:#404040;--border-strong:#626262;--quote:#d9dce0;--button-text:#111}.theme-black-red{--bg-primary:#0b090a;--bg-secondary:#140d0f;--bg-editor:#191214;--surface:#302024;--surface-hover:#48252d;--text-primary:#fff;--text-secondary:#c4b9bc;--accent:#dc2626;--accent-hover:#f87171;--accent-soft:#421d24;--border:#512830;--border-strong:#7f303b;--quote:#fca5a5;--button-text:#fff}.theme-black-blue{--bg-primary:#080c13;--bg-secondary:#0e151f;--bg-editor:#111b27;--surface:#1d2d40;--surface-hover:#29435c;--text-primary:#fff;--text-secondary:#b8c9d7;--accent:#38bdf8;--accent-hover:#7dd3fc;--accent-soft:#16364c;--border:#294158;--border-strong:#3d6483;--quote:#bae6fd;--button-text:#07121b}.theme-night{--bg-primary:#080b16;--bg-secondary:#0c1120;--bg-editor:#0f1424;--surface:#1b263d;--surface-hover:#273957;--text-primary:#f4f7fb;--text-secondary:#aab8cb;--accent:#93c5fd;--accent-hover:#bfdbfe;--accent-soft:#1b2c48;--border:#263752;--border-strong:#3d5677;--quote:#c4b5fd;--button-text:#09111f}.theme-midnight-purple{--bg-primary:#120d1f;--bg-secondary:#1a112b;--bg-editor:#211735;--surface:#352452;--surface-hover:#49316b;--text-primary:#fff;--text-secondary:#d2c4e5;--accent:#a78bfa;--accent-hover:#c4b5fd;--accent-soft:#39255d;--border:#513a70;--border-strong:#72549a;--quote:#ddd6fe;--button-text:#160f25}.theme-paper{--bg-primary:#f7f3ea;--bg-secondary:#eee8dc;--bg-editor:#fffdf8;--surface:#eee5d6;--surface-hover:#e3d5c1;--text-primary:#252525;--text-secondary:#6b6257;--accent:#9a6b3f;--accent-hover:#704a29;--accent-soft:#e9dccb;--border:#d9c9b5;--border-strong:#bca58b;--quote:#75431f;--button-text:#fffdf8;--danger:#b42318}.theme-spring{--bg-primary:#f1f8f1;--bg-secondary:#e6f1e7;--bg-editor:#fbfffb;--surface:#e4f0e5;--surface-hover:#d2e6d5;--text-primary:#24352a;--text-secondary:#587060;--accent:#3f8f5b;--accent-hover:#287345;--accent-soft:#dceede;--border:#c6ddca;--border-strong:#91bd9a;--quote:#28613b;--button-text:#fff;--danger:#b42318}.theme-autumn{--bg-primary:#fff4e5;--bg-secondary:#f8ead7;--bg-editor:#fff9f0;--surface:#f6e6d1;--surface-hover:#efd4b4;--text-primary:#3a2a20;--text-secondary:#806a5b;--accent:#c96a24;--accent-hover:#a6531b;--accent-soft:#f3dcc2;--border:#e4c9a8;--border-strong:#c99e70;--quote:#a6531b;--button-text:#fff;--danger:#b42318}.theme-winter{--bg-primary:#eef4f8;--bg-secondary:#e3edf3;--bg-editor:#fff;--surface:#e2edf4;--surface-hover:#d2e3ee;--text-primary:#182b3d;--text-secondary:#587083;--accent:#397ca8;--accent-hover:#225b82;--accent-soft:#d9eaf4;--border:#c5d7e2;--border-strong:#91b2c5;--quote:#2b6389;--button-text:#fff;--danger:#b42318}.theme-sunny{--bg-primary:#fffdf2;--bg-secondary:#faf5dd;--bg-editor:#fff;--surface:#f8f0c9;--surface-hover:#f1e4a4;--text-primary:#292817;--text-secondary:#776f50;--accent:#c28a08;--accent-hover:#946b05;--accent-soft:#f5ebba;--border:#e8d995;--border-strong:#cbb65f;--quote:#856007;--button-text:#fff;--danger:#b42318}.theme-rainy{--bg-primary:#f1f5f7;--bg-secondary:#e5ecef;--bg-editor:#fff;--surface:#e4edf1;--surface-hover:#d5e2e8;--text-primary:#263640;--text-secondary:#61737d;--accent:#52758d;--accent-hover:#375a70;--accent-soft:#dce8ed;--border:#c7d6dd;--border-strong:#96b0bd;--quote:#476c84;--button-text:#fff;--danger:#b42318}.editor-page .editor-header,.editor-page .chapter-sidebar{background:var(--bg-secondary);border-color:var(--border)}.editor-page .rich-editor,.editor-page .toolbar{background:var(--bg-editor);border-color:var(--border)}.editor-page .toolbar button{background:var(--surface);color:var(--text-primary)}.editor-page .toolbar button:hover,.editor-page .toolbar button.is-active,.editor-page .save-button{background:var(--accent);color:var(--button-text)}.editor-page .save-button:hover{background:var(--accent-hover)}.editor-page .chapter.active{background:var(--accent-soft)}.editor-page .chapter,.editor-page .chapter-name,.editor-page .chapter-title,.editor-page .novel-title{color:var(--text-primary)}.editor-page .chapter-number,.editor-page .save-status,.editor-page .editor-stats{color:var(--text-secondary)}.editor-page .editor-stats strong,.editor-page .chapter-heading>span,.editor-page .editor-logo{color:var(--accent)}.editor-page .author-name,.editor-page .chapter-author{color:var(--text-secondary);border-color:var(--border)}.editor-page .chapter-edit-button{color:var(--text-secondary)}.editor-page .chapter-edit-button:hover,.editor-page .chapter-edit-button:focus-visible{background:var(--accent);color:var(--button-text)}.editor-page .add-chapter,.editor-page .add-quote{color:var(--accent);border-color:var(--border-strong)}.editor-page .delete-chapter{color:var(--danger);border-color:var(--border)}.editor-page .delete-chapter:hover{background:var(--surface-hover)}.editor-page .rich-editor{color:var(--text-primary)}.editor-page .rich-editor .ProseMirror p.is-editor-empty:first-child:before{color:var(--text-secondary)}.editor-page .rich-editor img.ProseMirror-selectednode{outline-color:var(--accent)}.editor-page .chapter-quote blockquote{color:var(--quote)}.editor-page .quote-divider{color:var(--accent)}.editor-page .quote-form,.editor-page .theme-popover{background:var(--bg-editor);border-color:var(--border);color:var(--text-primary)}.editor-page .quote-form textarea,.editor-page .quote-form input{background:var(--bg-primary);border-color:var(--border);color:var(--text-primary)}.editor-page .quote-cancel{border-color:var(--border);color:var(--text-primary)}.editor-page .icon-action{background:var(--surface);border-color:var(--border);color:var(--text-primary)}.editor-page .theme-popover{background:var(--bg-editor);border-color:var(--border);color:var(--text-primary)}.editor-page .theme-popover>strong,.editor-page .theme-group h4{color:var(--text-primary)}.editor-page .theme-group h4{letter-spacing:.08em;text-transform:uppercase;margin:14px 0 8px;font-size:12px}.editor-page .theme-group:first-of-type h4{margin-top:0}.editor-page .theme-option{color:var(--text-secondary)}.editor-page .theme-option strong{color:inherit;font-size:12px;font-weight:600;display:block}.editor-page .theme-option small{color:var(--text-secondary);font-size:10px;display:block}.editor-page .theme-option:hover,.editor-page .theme-option.selected{border-color:var(--accent);color:var(--text-primary)}.editor-page .theme-option:hover small,.editor-page .theme-option.selected small{color:var(--text-secondary)}.editor-page .chapter-name-input{background:var(--bg-editor);border-color:var(--accent);color:var(--text-primary)}.editor-page .chapter-title:focus,.editor-page .novel-title:focus,.editor-page .author-name:focus{border-color:var(--accent)}.editor-page .toolbar button:focus-visible,.editor-page .icon-action:focus-visible,.editor-page .theme-option:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
