@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
:root {font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; color:#25232a; background:#f8f6f2; font-synthesis:none; -webkit-font-smoothing:antialiased;}
* {box-sizing:border-box;} html{scroll-behavior:smooth;}body{margin:0;min-width:320px;}button,input,select,textarea{font:inherit;}button{cursor:pointer;}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c7849d;outline-offset:3px;}a{color:inherit;text-decoration:none;}button:disabled{opacity:.55;cursor:wait;}::selection{background:#e9acc5;color:#241b24;}
.background-glow{z-index:-1;position:absolute;top:0;left:0;right:0;height:880px;background:radial-gradient(ellipse at 86% 16%,rgba(235,207,214,.47),transparent 38%),radial-gradient(ellipse at 10% 0%,rgba(228,229,215,.34),transparent 40%);pointer-events:none;}
.site-header{height:86px;max-width:1450px;padding:0 54px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(49,43,44,.11);}
.brand{display:flex;gap:11px;align-items:center;white-space:nowrap}.brand-mark{display:flex;gap:3px;align-items:center;transform:rotate(-13deg)}.brand-mark span{width:5px;background:#c67d9e;height:25px;border-radius:5px}.brand-mark span:nth-child(2){height:17px}.brand-mark span:nth-child(3){height:11px}.brand-name{font-family:'Songti SC','STSong','Noto Serif CJK SC',serif;font-size:25px;font-weight:700;letter-spacing:1px}.brand-latin{font:600 9px 'DM Sans',sans-serif;margin-left:8px;letter-spacing:1.7px;color:#817e7c;vertical-align:middle}.header-actions{display:flex;align-items:center;gap:36px}.header-state{font-size:12px;color:#7b7776}.status-dot,.live-dot{display:inline-block;width:7px;height:7px;border-radius:100%;background:#9ba98d;margin-right:8px;box-shadow:0 0 0 4px rgba(155,169,141,.12)}.header-link{border-bottom:1px solid #383437;padding-bottom:5px;font-size:13px;font-weight:700}.header-link span{margin-left:9px;color:#c47c96}
main{max-width:1450px;margin:0 auto;padding:0 54px}.hero{padding:71px 0 56px;display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.eyebrow,.panel-kicker{font-size:11px;font-weight:700;letter-spacing:2.2px;color:#be7c95;margin:0 0 23px;display:flex;align-items:center;gap:11px}.eyebrow-line{display:inline-block;width:24px;height:1px;background:currentColor}.eyebrow-num{color:#aba19e}.hero h1{font-family:'Songti SC','STSong','Noto Serif CJK SC',serif;font-size:clamp(42px,5.2vw,72px);line-height:1.31;letter-spacing:-2.5px;font-weight:600;margin:0}.hero h1 span{color:#b97894}.hero-sub{margin:21px 0 0;color:#868180;font-size:15px;letter-spacing:.5px}.hero-stamp{flex-shrink:0;width:133px;height:133px;border:1px solid #b7aaa9;border-radius:50%;transform:rotate(12deg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:10px;letter-spacing:1.6px;color:#8b8181}.hero-stamp strong{font:600 18px 'Playfair Display','Georgia',serif;color:#b77994;letter-spacing:1px}
.studio{display:grid;grid-template-columns:minmax(360px,440px) minmax(0,1fr);gap:24px;align-items:start;padding-bottom:36px}.control-panel,.preview-panel{border:1px solid #e8e4df;background:#fffdfa;border-radius:14px;box-shadow:0 10px 34px rgba(71,47,54,.035);overflow:hidden}.control-panel{padding:28px 30px 20px}.panel-head{border-bottom:1px solid #ebe7e3;padding-bottom:24px}.panel-kicker{font-size:10px;margin:0 0 12px;letter-spacing:1.5px;justify-content:space-between}.panel-kicker span{color:#a7a09d}.panel-head h2{font-family:'Songti SC','STSong',serif;font-size:26px;margin:0;letter-spacing:.4px;font-weight:600}.tiny-star{color:#cf9bb0;font-size:18px;vertical-align:super;margin-left:10px}.panel-head p:last-child{font-size:13px;color:#96908e;margin:11px 0 0}.panel-section{padding:26px 0 25px;border-bottom:1px solid #eeebe8}.section-head{display:flex;align-items:center;gap:10px;margin-bottom:17px}.section-index{font-size:11px;color:#c68da2;font-weight:600}.section-head h3{font-size:14px;font-weight:700;margin:0}.section-hint{margin-left:auto;font-size:11px;color:#a8a19e}.poster-type-list{display:flex;flex-direction:column;gap:8px}.type-option{min-height:73px;border-radius:9px;padding:12px;text-align:left;display:flex;align-items:center;gap:15px;border:1px solid #ece8e5;background:#fffdfa;color:#3c373a;transition:border-color .22s,background .22s,transform .22s,box-shadow .22s}.type-option:hover{border-color:#d6bec7;transform:translateY(-1px)}.type-option.active{border-color:#ca8fa7;background:#fdf4f6;box-shadow:inset 0 0 0 1px rgba(202,143,167,.1)}.type-icon{height:44px;width:41px;flex:0 0 41px;display:flex;align-items:center;justify-content:center;background:#eee8e7;border-radius:4px;font:400 22px 'Playfair Display',Georgia,serif;color:#c38aa4}.type-icon-month{background:#ede9eb}.type-icon-wall{display:grid;grid-template-columns:repeat(2,8px);gap:3px;place-content:center}.type-icon-wall i{display:block;width:8px;height:12px;background:#ba8da2}.type-icon-wall i:nth-child(2){background:#bbb09f}.type-icon-wall i:nth-child(3){background:#b3c3bc}.type-icon-wall i:nth-child(4){background:#ded0bc}.type-copy{flex:1;display:flex;flex-direction:column;gap:6px}.type-copy strong{font-size:13px;font-weight:700}.type-copy small{font-size:11px;color:#95908e}.type-check{font-size:11px;border:1px solid #d9d5d2;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:transparent}.type-option.active .type-check{background:#bf7d98;color:#fff;border-color:#bf7d98}
.themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:20px}.theme-option{border:1px solid #eae6e2;border-radius:8px;background:#fffdfa;min-height:82px;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;font-size:11px;white-space:nowrap;color:#77706e;transition:.2s}.theme-option:hover{border-color:#c6a6b2}.theme-option.selected{border-color:#c488a1;color:#403137;background:#fdf8f9}.theme-color{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1px solid rgba(0,0,0,.13)}.theme-color i{width:12px;height:12px;display:block;border-radius:50%}.theme-rose{background:#1c1a20}.theme-rose i{background:#e9a1c1}.theme-cream{background:#f0e8dc}.theme-cream i{background:#a96c5e}.theme-indigo{background:#102236}.theme-indigo i{background:#a7c9dd}.input-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-label{font-size:11px;font-weight:600;color:#7c7774;display:flex;flex-direction:column;gap:9px;min-width:0}.field-top{margin-top:15px}.field{border:1px solid #e7e2de;border-radius:7px;background:#fffefd;color:#332e30;font-size:13px;font-weight:500;width:100%;min-width:0;height:42px;padding:9px 11px;outline-offset:1px}.field:hover{border-color:#d1c4c3}.field:focus{border-color:#bc829c;outline:2px solid rgba(188,130,156,.1)}.field-textarea{height:auto;min-height:86px;resize:vertical;line-height:1.7}.field-file{padding-top:9px;height:auto;max-width:100%}
.panel-section-data{border-bottom:0;padding-bottom:16px}.data-pill{margin-left:auto;font-size:11px;padding:4px 8px;background:#f1e5eb;color:#b57892;border-radius:20px}.sample-note{background:#f9f5ef;border-radius:8px;display:flex;align-items:start;gap:10px;padding:13px;margin-bottom:14px}.sample-dot{color:#c3879f;font-size:15px}.sample-note div{display:flex;flex-direction:column;gap:4px}.sample-note strong{font-size:12px}.sample-note span:last-child{font-size:10px;line-height:1.5;color:#958b83}.data-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:3px 0}.book-thumb{border:1px solid transparent;border-radius:3px;background:transparent;padding:0;aspect-ratio:3/4;overflow:hidden;position:relative;box-shadow:0 2px 5px rgba(0,0,0,.1);transition:transform .2s}.book-thumb:hover{transform:translateY(-3px);border-color:#b88aa2}.book-thumb canvas{width:100%;height:100%;display:block}.empty-preview{grid-column:1/-1;color:#98908e;font-size:12px;padding:19px 0}.data-actions{display:flex;gap:17px;align-items:center;flex-wrap:wrap;margin-top:17px}.text-button{border:0;background:transparent;padding:1px 0;color:#b27890;font-size:11px;font-weight:700}.text-button:hover{text-decoration:underline}.text-button.muted{color:#aaa3a0}.source-tip{display:flex;gap:8px;border-top:1px solid #eeeae7;padding-top:14px;margin-top:18px;font-size:10px;line-height:1.8;color:#9a918f}.lock-icon{font-size:17px;line-height:1.1;color:#bb9ba9}.panel-bottom{padding-top:14px}.primary-button{background:#262126;color:#fff;border:0;border-radius:8px;padding:0 15px;height:49px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:700;transition:transform .2s,background .2s,box-shadow .2s}.primary-button:hover{transform:translateY(-2px);background:#48313f;box-shadow:0 8px 22px rgba(35,25,32,.13)}.primary-button-icon{font-size:19px;font-weight:300}.button-arrow{margin-left:auto;font-size:18px;color:#d8abc0}.panel-bottom .primary-button{width:100%}.panel-bottom p{margin:11px 0 0;text-align:center;font-size:10px;color:#aaa19d}
.preview-panel{background:#f2efec}.preview-toolbar{height:60px;border-bottom:1px solid #e7e0dc;padding:0 24px;display:flex;align-items:center;justify-content:space-between;background:#fffdfa}.preview-heading,.preview-toolbar-right{display:flex;align-items:center;gap:10px;font-size:12px}.preview-heading strong{font-size:13px}.preview-heading>span:last-child,.preview-separator{color:#afa7a2}.preview-ratio{color:#99918b;font-size:11px}.icon-button{width:32px;height:32px;border:1px solid #e7e1dd;background:transparent;border-radius:7px;display:grid;place-items:center;color:#61595c}.icon-button:hover{background:#f6e9ef}.icon-button svg{width:16px;height:16px}.preview-stage{background:radial-gradient(ellipse at 50% 44%,#e5ded9 0%,#ede9e5 52%,#f2efec 88%);display:flex;align-items:center;justify-content:center;position:relative;padding:35px 70px 43px;min-height:820px;overflow:hidden}.poster-frame{width:min(100%,516px);max-width:516px;aspect-ratio:3/4;background:#1c1a20;box-shadow:0 34px 55px rgba(50,35,42,.2),0 4px 12px rgba(30,26,30,.1);transition:transform .35s ease,box-shadow .35s;position:relative}.poster-frame:hover{transform:translateY(-3px);box-shadow:0 38px 65px rgba(50,35,42,.23)}.poster-frame canvas{width:100%;height:100%;display:block}.stage-deco{position:absolute;font:600 10px 'DM Sans',sans-serif;letter-spacing:1.4px;color:#ada6a0}.stage-deco-left{transform:rotate(-90deg);left:-13px;top:50%}.stage-deco-bottom{bottom:16px;right:30px}.preview-footer{padding:20px 26px 23px;background:#fffdfa;display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-footer>div{display:flex;gap:11px;align-items:flex-start}.made-label{font-size:22px;color:#ba8497}.preview-footer strong{font-size:12px}.preview-footer p{font-size:11px;color:#aaa29f;margin:6px 0 0}.footer-quality{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#9c908f;white-space:nowrap}.footer-quality span{color:#ca90a4}.bottom-note{display:flex;gap:8px;padding:20px 0 45px;border-top:1px solid #e8e1db;font-size:11px;color:#aca19b}.bottom-note>span:first-child{color:#c087a1}.bottom-note-right{margin-left:auto;font-size:10px;letter-spacing:1px}
.book-dialog,.fullscreen-dialog{border:1px solid #e9dfdf;border-radius:13px;background:#fffcf9;color:#383039;padding:0;max-width:560px;width:calc(100% - 28px);box-shadow:0 25px 100px rgba(31,24,26,.27)}dialog::backdrop{background:rgba(24,18,22,.54);backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:start;justify-content:space-between;padding:25px 26px 19px;border-bottom:1px solid #eee6e5}.dialog-head p{font-size:10px;letter-spacing:1.4px;color:#bd829a;margin:0 0 7px}.dialog-head h2{font-size:23px;font-family:'Songti SC','STSong',serif;margin:0}.dialog-close{border:0;background:transparent;font-size:18px;color:#888;min-width:35px;height:35px}.dialog-body{padding:22px 26px;display:flex;flex-direction:column;gap:17px}.dialog-hint{font-size:11px;color:#9b918f;line-height:1.5;margin:0}.dialog-actions{display:flex;gap:10px;align-items:center;padding:18px 26px 24px;border-top:1px solid #eee6e5}.dialog-spacer{flex:1}.secondary-button{border:1px solid #ddd2d2;background:#fff;height:40px;border-radius:7px;padding:0 20px;font-size:12px}.dialog-save{height:40px;padding:0 25px}.danger-button{color:#b75d6d;border:0;background:none;font-size:12px}.fullscreen-dialog{width:min(94vw,880px);max-width:880px;max-height:94vh;background:#211b23;overflow:auto}.fullscreen-dialog canvas{display:block;width:min(100%,690px);height:auto;margin:12px auto 22px}.fullscreen-bar{color:#f1dce6;padding:14px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #4f414d;font-size:12px}.fullscreen-bar button{border:1px solid #5a4e55;border-radius:7px;background:#322933;color:#eee;padding:7px 11px}.toast{position:fixed;z-index:25;bottom:26px;left:50%;transform:translate(-50%,30px);pointer-events:none;background:#292329;color:#fff;padding:13px 20px;border-radius:9px;box-shadow:0 12px 35px rgba(0,0,0,.2);font-size:12px;opacity:0;transition:opacity .2s,transform .2s;min-width:220px;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media (max-width:1140px){.site-header,main{padding-left:28px;padding-right:28px}.studio{grid-template-columns:minmax(330px,390px) minmax(0,1fr);gap:17px}.control-panel{padding:24px 23px}.preview-stage{padding:28px 38px 38px;min-height:640px}.stage-deco-left{display:none}.hero h1{font-size:clamp(41px,5vw,60px)}.footer-quality{display:none}}
@media (max-width:850px){.site-header{height:70px}.header-state{display:none}.hero{padding:53px 0 42px}.hero-stamp{width:96px;height:96px;font-size:8px}.hero-stamp strong{font-size:14px}.studio{grid-template-columns:1fr;gap:16px}.preview-panel{grid-row:1}.control-panel{grid-row:2}.preview-stage{min-height:unset;padding:30px 52px 38px}.poster-frame{width:min(100%,450px)}.control-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.panel-head{grid-column:1/-1}.control-panel .panel-section-data{grid-column:1/-1}.control-panel .panel-bottom{grid-column:1/-1}.panel-section{border-bottom:1px solid #eee8e5}.bottom-note{padding-bottom:35px}}
@media (max-width:620px){.site-header,main{padding-left:17px;padding-right:17px}.site-header{height:64px}.brand-name{font-size:21px}.brand-latin{font-size:8px}.header-actions{gap:8px}.header-link{font-size:11px}.hero{padding:36px 0 31px;align-items:start}.hero h1{font-size:clamp(33px,8.5vw,47px);letter-spacing:-1.5px;line-height:1.4}.hero h1 span{display:block}.hero-sub{font-size:12px;line-height:1.8;margin-top:12px;max-width:280px}.eyebrow{font-size:9px;margin-bottom:16px}.hero-stamp{display:none}.control-panel{display:block;padding:22px 19px}.panel-section{padding-top:23px;padding-bottom:23px}.panel-head h2{font-size:24px}.preview-toolbar{height:51px;padding:0 16px}.preview-stage{padding:20px 30px 38px}.poster-frame{width:min(100%,410px)}.stage-deco-bottom{font-size:7px;right:15px;bottom:12px}.preview-footer{padding:16px}.preview-footer strong{font-size:11px}.preview-footer p{font-size:10px;line-height:1.5}.themes{gap:6px}.data-preview{gap:6px}.bottom-note{font-size:10px}.bottom-note-right{display:none}.book-dialog{max-height:90vh;overflow:auto}.dialog-body{padding:18px}.dialog-head,.dialog-actions{padding-left:18px;padding-right:18px}.dialog-body .input-pair{gap:9px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.mobile-dock{display:none}
@media (max-width:850px){
 .mobile-dock{display:flex;position:fixed;left:14px;right:14px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:20;background:rgba(38,33,39,.96);border:1px solid rgba(255,255,255,.13);border-radius:13px;padding:7px;gap:4px;box-shadow:0 12px 32px rgba(36,25,35,.28);backdrop-filter:blur(12px)}
 .mobile-dock button{border:0;background:transparent;color:#eee1e5;font-size:12px;font-weight:600;min-height:42px;border-radius:8px;flex:1;display:flex;gap:5px;align-items:center;justify-content:center}
 .mobile-dock button span{font-size:17px;font-weight:400}
 .mobile-dock button:active{background:rgba(255,255,255,.12)}
 .mobile-dock .mobile-dock-primary{background:#e9aac5;color:#36212f;flex:.7}
 .mobile-dock .mobile-dock-primary:active{background:#f1c6da}
 .bottom-note{padding-bottom:105px}
 .toast{bottom:calc(90px + env(safe-area-inset-bottom))}
 #studioControlsAnchor,#previewStageAnchor{scroll-margin-top:12px}
}

/* WeRead gated developer sync, matches the existing editorial design system. */
.weread-connect-card{margin:16px 0 16px;padding:16px;border:1px solid #d9dccf;background:linear-gradient(140deg,#f1f4ea 0%,#faf9f4 95%);border-radius:15px}
.weread-connect-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.weread-glyph{display:grid;place-items:center;flex:none;width:40px;height:40px;background:#30583e;color:#eaf4db;border-radius:13px;font-family:"Songti SC",serif;font-size:24px}
.weread-connect-top strong{display:block;color:#314c36;font-size:15px;letter-spacing:.01em}
.weread-connect-top span:not(.weread-glyph){display:block;color:#69776a;font-size:12px;margin-top:3px}
.weread-connect-button{width:100%;min-height:43px;padding:10px 15px;border:0;border-radius:10px;background:#315b43;color:#fff;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s ease,transform .15s ease}
.weread-connect-button:hover{background:#204832;transform:translateY(-1px)}
.weread-connection-state{font-size:11px;line-height:1.6;color:#7c8478;margin-top:10px}
.weread-dialog{width:min(550px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:auto}
.weread-dialog-body{padding:22px 25px 28px}
.weread-lead{margin:0 0 18px;color:#77716d;font-size:14px;line-height:1.75}
.weread-step{display:flex;align-items:flex-start;gap:13px;padding:10px 0;font-size:13px;line-height:1.7;color:#443d3b}
.weread-step>span{font-family:Georgia,serif;color:#a36d61;font-size:18px;flex:none}
.weread-step a{color:#315b43;text-underline-offset:3px;font-weight:600}
.weread-dialog input{width:100%;box-sizing:border-box}
.weread-privacy{border-left:2px solid #b6c3ab;padding:7px 12px;margin:19px 0 12px;background:#f3f5ee;color:#6c7265;font-size:11px;line-height:1.8}
.weread-sync-status{min-height:18px;color:#406e4f;font-size:12px;line-height:1.7;margin-bottom:8px}
.weread-progress-track{height:5px;overflow:hidden;border-radius:8px;background:#e4e8df;margin:12px 0}
.weread-progress-track>span{height:100%;width:0%;background:#446e4d;display:block;transition:width .2s ease}
.weread-dialog-actions{padding-top:12px;flex-wrap:wrap}
@media(max-width:600px){.weread-dialog-body{padding:16px 18px 25px}.weread-dialog-actions{gap:8px}}
