@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:34px 0 35px;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:30px 0 28px}.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:24px 0 25px;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}}

/* v4 · streamlined exports, swipeable report deck, and near-finished books. */
[hidden]{display:none!important}
.data-actions #importBtn,.data-actions #sampleJsonBtn{display:none!important}
.near-rules{margin:17px 0 15px;border:1px solid #e4dfd7;border-radius:12px;background:#faf7f0;padding:15px;color:#554a48}
.near-rules-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.near-rules-head strong{font-size:13px;color:#5e484f}.near-rules-head span{font-size:10px;color:#a59a94}
.near-toggle{font-size:12px;display:flex;align-items:center;gap:9px;margin-bottom:12px;cursor:pointer}
.near-toggle input{accent-color:#c07e9b;width:16px;height:16px}
.near-threshold-label{width:100%;max-width:none}.near-rules p{font-size:11px;line-height:1.75;color:#968b84;margin:10px 0 0}
.preview-panel>.panel-bottom{background:#fffdfa;padding:16px 24px 12px;display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #ebe5e3}
.preview-panel>.panel-bottom .primary-button{margin:0;min-width:0}
.preview-panel>.panel-bottom button:only-of-type{grid-column:1/-1}
.preview-panel>.panel-bottom #downloadAllBtn{background:#29232a}
.preview-panel>.panel-bottom #downloadBtn{background:#efe5e8;color:#6b4455}
.preview-panel>.panel-bottom #downloadBtn:hover{background:#ead7df}
.preview-panel>.panel-bottom #downloadBtn .button-arrow{color:#9e687f}
.preview-panel>.panel-bottom p{grid-column:1/-1;margin:1px 0 3px;text-align:center;color:#978b8d;font-size:11px}
.poster-frame.deck-stacked{isolation:isolate;cursor:grab;touch-action:pan-y}
.poster-frame.deck-stacked:active{cursor:grabbing}
.poster-frame.deck-stacked:before,.poster-frame.deck-stacked:after{content:"";position:absolute;inset:0;background:#cfc6d1;box-shadow:0 15px 40px rgba(42,31,41,.13);transition:transform .26s;z-index:-1}
.poster-frame.deck-stacked:before{transform:translate(12px,11px) rotate(2deg)}
.poster-frame.deck-stacked:after{background:#e0d2d4;transform:translate(-10px,19px) rotate(-2deg);z-index:-2}
.deck-arrow{position:absolute;z-index:5;top:49%;transform:translateY(-50%);width:38px;height:52px;border:1px solid #e9dce0;background:rgba(255,253,250,.95);border-radius:22px;color:#806073;font-size:30px;line-height:1;box-shadow:0 6px 20px rgba(0,0,0,.1);display:grid;place-items:center}
.deck-arrow-prev{left:14px}.deck-arrow-next{right:14px}
.deck-arrow:disabled{opacity:.25;box-shadow:none}
.deck-navigation{background:#fffdfa;padding:16px 23px 7px;border-top:1px solid #e8e1de}
.deck-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:11px}
.deck-caption>div{display:flex;align-items:baseline;gap:12px;min-width:0}
.deck-caption strong{font-family:'Songti SC','STSong',serif;font-size:18px;color:#48333d}
.deck-caption span{font-size:11px;color:#a49b9c}
#deckCounter{font:600 12px Georgia,serif;color:#9d7085;white-space:nowrap}
.deck-rail{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x proximity;padding-bottom:11px;scrollbar-width:thin;scrollbar-color:#d7b8c7 transparent}
.deck-chip{scroll-snap-align:start;flex-shrink:0;border:1px solid #e7e1df;background:#fffdfa;color:#8e8082;border-radius:9px;padding:9px 13px;font-size:12px;min-width:54px}
.deck-chip.active{background:#f7e7ee;border-color:#bb839e;color:#704458;font-weight:700}
@media(max-width:850px){.preview-panel>.panel-bottom{padding:12px 16px 14px}.deck-navigation{padding:14px 16px 5px}}
.legacy-type-panel[hidden]{display:none!important}
.cache-actions{display:flex;gap:9px;margin-top:12px;flex-wrap:wrap}
.cache-actions button{border:1px solid #ccd4c7;border-radius:8px;padding:8px 11px;background:#fdfefb;color:#3b5c45;font-size:11px;cursor:pointer}
.cache-actions button:hover{background:#edf3e8}
.cache-actions button:disabled{opacity:.55;cursor:not-allowed}
.cache-actions #clearLocalBtn{color:#8c6470;background:#fffdfb;border-color:#e6d8dd}
.cache-status{font-size:10.5px;color:#66766a;line-height:1.7;margin:8px 0 0}
.cache-consent{display:flex;align-items:center;gap:7px;font-size:12px;color:#536b55;margin:10px 0}
.cache-consent input{accent-color:#315b43}
@media(max-width:620px){.preview-stage{padding:19px 36px 38px}.deck-arrow{width:28px;height:43px;font-size:25px}.deck-arrow-prev{left:3px}.deck-arrow-next{right:3px}.poster-frame.deck-stacked:before{transform:translate(6px,9px) rotate(2deg)}.poster-frame.deck-stacked:after{transform:translate(-6px,14px) rotate(-2deg)}.preview-panel>.panel-bottom{gap:8px}.preview-panel>.panel-bottom .primary-button{font-size:11px;padding:0 8px;height:44px;gap:5px}.preview-panel>.panel-bottom p{font-size:10px}.deck-caption>div{gap:8px}.deck-caption strong{font-size:15px}.deck-caption span{font-size:10px}}

/* Support contact: visible on mobile and desktop; keep the footer understated. */
.bottom-note{align-items:center;flex-wrap:wrap;row-gap:9px}
.bottom-note .support-email{color:#936f82;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.bottom-note .support-email:hover,.bottom-note .support-email:focus-visible{color:#6c4059}
@media(max-width:620px){.bottom-note .support-email{flex-basis:100%;margin-left:19px}}

/* Quiet acknowledgements in the existing footer, below the main actions. */
.inspiration-credit{flex-basis:100%;margin:5px 0 0;font-size:11px;line-height:1.75;color:#8f8587}
.inspiration-credit a{color:#855b70;text-underline-offset:3px;text-decoration:underline;text-decoration-color:#c9a5b5}
.inspiration-credit a:hover,.inspiration-credit a:focus-visible{color:#5e384d;text-decoration-color:currentColor}
.inspiration-credit-note{margin-left:9px;color:#a49a9a}
@media(max-width:620px){.inspiration-credit{font-size:10.5px}.inspiration-credit-note{display:block;margin:3px 0 0}}

/* Only show the app walkthrough on narrow screens; desktop retains the web method. */
.weread-mobile-guide{display:none}
@media(max-width:620px){
  .weread-desktop-guide{display:none}
  .weread-mobile-guide{display:block;background:#f8f6f3;border:1px solid #e8dfdc;border-radius:10px;padding:14px 15px;margin:2px 0 17px}
  .weread-mobile-guide h3{margin:0 0 9px;font-size:13px;color:#4e4047}
  .weread-mobile-guide ol{margin:0;padding-left:21px;font-size:12px;color:#514b4a;line-height:1.7}
  .weread-mobile-guide li{padding:0 0 6px 2px}
  .weread-mobile-guide li:last-child{padding-bottom:0}
  .weread-mobile-guide strong{font-weight:700}
  .weread-mobile-guide code{font-size:11px}
  .weread-mobile-guide p{font-size:11px;color:#776f6c;margin:10px 0 0;line-height:1.65}
  .weread-mobile-guide a{color:#315b43;text-decoration:underline;text-underline-offset:3px}
  .weread-lead{margin-bottom:11px}
}

/* ReadPoster UX and readability pass: simplify the chrome, keep the posters as the artwork. */
.skip-link{position:fixed;top:-120px;left:10px;z-index:60;transform:none;background:#2c2929;color:#fff;border-radius:8px;padding:12px 15px;font-size:14px;text-decoration:none}
.skip-link:focus-visible{top:8px;transform:none}
.hero-sub{color:#61595a}
.panel-head p:last-child{color:#5d5755;font-size:13px}
.section-hint{color:#625b5d;font-size:12px}
.section-index{color:#875669}
.field-label{font-size:12px;color:#554e4f}
.sample-note span:last-child{font-size:12px;color:#605957;line-height:1.6}
.data-pill{color:#71425a;font-size:12px}
.weread-connection-state{font-size:12px;color:#566255}
.source-tip{font-size:12px;color:#605b59}
.cache-status{font-size:12px;color:#515e50}
.weread-privacy{font-size:12px;color:#485449}
.deck-caption span{font-size:12px;color:#675d61}
.deck-chip{min-height:44px}
.cache-actions button{min-height:44px;font-size:12px}
.dialog-close{min-width:44px;height:44px}
.dialog-save,.secondary-button{min-height:44px}
.icon-button{width:44px;height:44px}
a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #784050;outline-offset:2px}
.preview-panel>.panel-bottom p{font-size:12px;color:#5f585a}
@media(max-width:850px){
  .control-panel{display:block}
  .mobile-dock button{min-height:46px}
}
@media(max-width:620px){
  .hero-sub{font-size:13px;max-width:330px}
  .panel-head h2{font-size:24px}
  .weread-mobile-guide p{font-size:12px}
}

/* Consistent select affordance for year and reading-progress dropdowns. */
select.field{appearance:none;-webkit-appearance:none;min-height:44px;cursor:pointer;padding-right:38px;background-color:#fffefd;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7 5 5 5-5' stroke='%236b5f63' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:18px 18px}
select.field option{color:#332e30;background-color:#fffefd}
select.field:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:620px){select.field{font-size:16px}}


/* Reading Magazine: restrained print-like swatch, not another color filter. */
.themes{grid-template-columns:repeat(4,minmax(0,1fr))}
.theme-option{min-width:0;min-height:86px;gap:8px}
.theme-paper{border-radius:5px;background:#f5f0e6;border-color:#c9bead}
.theme-paper i{width:21px;height:3px;border-radius:0;background:#b24e36;box-shadow:0 -8px 0 #25382f,0 8px 0 #c9bead}
.theme-option[data-theme="paper"].selected{background:#f8f5ef;border-color:#768879;box-shadow:inset 0 0 0 1px #a6b5a8}
.theme-option[data-theme="paper"]{color:#37483f}
.theme-option[data-theme="paper"] .theme-color{width:34px;height:38px}
@media(max-width:420px){
  .themes{gap:5px}
  .theme-option{font-size:10px;min-height:82px}
  .theme-option .theme-color{width:30px;height:30px}
  .theme-option[data-theme="paper"] .theme-color{height:34px;width:30px}
}


/* Reading Magazine cover editing follows the same quiet editorial system as the print layout. */
.paper-cover-controls[hidden]{display:none}
.paper-cover-controls{margin:0 0 19px;padding:14px 15px 13px;background:#f6f3eb;border:1px solid #d8d0c4;border-radius:8px}
.paper-cover-controls-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.paper-cover-controls-top>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.paper-cover-controls strong{font-size:13px;color:#273c33;font-weight:650}
.paper-cover-controls-top span{color:#777668;font-size:11px;line-height:1.5}
.paper-cover-edit{border:1px solid #9b9d8c;color:#284535;background:#fffdf7;border-radius:6px;min-height:44px;padding:0 12px;white-space:nowrap;font-size:12px;font-weight:600}
.paper-cover-edit:hover{background:#ece8dc;border-color:#516b56}
.paper-cover-edit:active{transform:translateY(1px)}
.paper-cover-summary{font-size:11px;line-height:1.65;color:#625f55;margin:11px 0 0;overflow-wrap:anywhere}
.paper-cover-dialog{max-width:600px;max-height:90dvh;overflow-y:auto}
.paper-cover-picker-list{display:grid;grid-template-columns:1fr 1fr;gap:15px 14px}
.paper-cover-field{min-width:0}
.paper-cover-field .field{width:100%;min-width:0}
@media(max-width:620px){
  .paper-cover-picker-list{grid-template-columns:1fr}
  .paper-cover-controls-top{align-items:flex-start}
}


/* A plain, visible way back to the creator's Xiaohongshu feedback channel. */
.header-feedback-link{color:#86586b;font-size:12px;font-weight:600;text-underline-offset:5px;white-space:nowrap;border-bottom:1px solid #d9bdc8;padding-bottom:5px}
.header-feedback-link:hover,.header-feedback-link:focus-visible{color:#60364b;border-color:currentColor}
.bottom-note .support-xhs{color:#85566b;text-decoration:underline;text-decoration-color:#c9a5b5;text-underline-offset:3px;font-weight:600;white-space:nowrap}
.bottom-note .support-xhs:hover,.bottom-note .support-xhs:focus-visible{color:#63384e;text-decoration-color:currentColor}
@media(max-width:620px){
  .header-feedback-link{font-size:11px;padding-bottom:5px}
  .header-feedback-detail{display:none}
  .bottom-note .support-xhs{margin-left:19px}
}


/* Keep the privacy note readable but unobtrusive on narrow screens. */
.analytics-disclosure{flex-basis:100%;margin:2px 0 0;font-size:11px;color:#817b80;line-height:1.7}
@media(max-width:620px){.analytics-disclosure{font-size:10.5px}}

/* SEO-readable help content: below the studio so first-screen creation stays primary. */
.seo-info{border-top:1px solid #e7dfd9;margin:0 0 18px;padding:36px 0 32px;color:#3b3438}
.seo-info-head{max-width:760px}
.seo-kicker{font-size:10px;letter-spacing:1.8px;color:#936879;font-weight:700;margin:0 0 11px}
.seo-info h2,.guide-page h1,.guide-page h2{font-family:'Songti SC','STSong','Noto Serif CJK SC',serif;letter-spacing:.1px}
.seo-info h2{font-size:clamp(22px,3vw,32px);line-height:1.4;margin:0 0 12px}
.seo-info-head>p:last-child{font-size:13px;line-height:1.95;color:#6b6063;margin:0}
.seo-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;list-style:none;counter-reset:seo-step;margin:24px 0 24px;padding:0}
.seo-steps li{background:#fffdfa;border:1px solid #e9e2dd;border-radius:11px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:9px;counter-increment:seo-step}
.seo-steps li:before{content:counter(seo-step,decimal-leading-zero);font:600 14px Georgia,serif;color:#ad718d}
.seo-steps strong{font-size:14px;color:#383237}
.seo-steps span{font-size:12px;line-height:1.85;color:#625a5e;overflow-wrap:anywhere}
.seo-faq{max-width:900px}
.seo-faq h3{font-size:17px;margin:0 0 10px;font-weight:650}
.seo-faq details{border-bottom:1px solid #e9e1dd;padding:0 2px}
.seo-faq summary{cursor:pointer;padding:15px 24px 15px 0;font-size:13px;font-weight:600;line-height:1.6;min-height:46px}
.seo-faq details p{font-size:12px;line-height:1.95;color:#635a5e;margin:0 0 17px;max-width:760px}
.seo-info-more{margin:18px 0 0;font-size:13px}
.seo-info-more a,.guide-page a:not(.brand):not(.guide-cta){color:#804b64;text-decoration:underline;text-underline-offset:4px}
.seo-info-more a:hover,.guide-page a:hover{color:#582f43}
.seo-info code,.guide-page code{background:#f2ebe7;border-radius:3px;padding:1px 4px;overflow-wrap:anywhere}
.guide-page{max-width:950px;padding-top:42px;padding-bottom:76px;line-height:1.9}
.guide-page .guide-eyebrow{font-size:11px;letter-spacing:2px;color:#956b7d;font-weight:700;margin:0 0 14px}
.guide-page h1{font-size:clamp(30px,5vw,46px);line-height:1.35;margin:0 0 18px}
.guide-page .guide-lead{font-size:16px;color:#665e60;max-width:760px;margin:0 0 26px}
.guide-card{border:1px solid #e7dfd9;background:#fffdfa;border-radius:13px;padding:26px 30px;margin:19px 0}
.guide-page h2{font-size:24px;margin:0 0 15px}
.guide-page h3{font-size:16px;margin:20px 0 7px}
.guide-page p,.guide-page li{font-size:14px;color:#524a4f}
.guide-page ul,.guide-page ol{padding-left:25px}
.guide-page li{margin-bottom:14px}
.guide-page .guide-cta{display:inline-block;background:#392a33;color:white;border-radius:8px;padding:11px 20px;text-decoration:none;font-size:14px;font-weight:600;min-height:44px}
.guide-page .guide-foot{font-size:12px;color:#71686c}
.guide-page .guide-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
@media(max-width:850px){.seo-steps{grid-template-columns:1fr}.seo-steps li{padding:16px}.seo-info{padding-top:30px}.guide-card{padding:23px}}
@media(max-width:620px){.seo-info{padding-top:26px}.seo-info h2{font-size:24px}.seo-info-head>p:last-child{font-size:13px}.guide-page{padding-top:26px;padding-bottom:85px}.guide-card{padding:20px 18px}.guide-page h2{font-size:22px}}

/* Hero SEO + original reading-magazine visual identity. Keep the primary tool visible on mobile. */
.hero-label{margin:0 0 12px;font-size:10px;font-weight:700;letter-spacing:1.5px;color:#916d7f}
.hero h1 span{display:block;color:#b97894}
.hero h1{max-width:100%;text-wrap:pretty}
.hero-sub{max-width:750px;line-height:1.85}
@media(max-width:620px){
  .hero-label{font-size:9px;letter-spacing:1.1px;margin-bottom:8px}
  .hero h1{font-size:clamp(27px,7.7vw,42px);letter-spacing:-1.2px;line-height:1.32}
  .hero-sub{max-width:100%;font-size:12px;line-height:1.75;margin-top:11px}
}


/* Local-only opt-out notice: rendered only after an admin enables test mode. */
.test-mode-notice[hidden]{display:none!important}
.test-mode-notice{position:fixed;z-index:90;right:18px;bottom:24px;max-width:min(440px,calc(100vw - 28px));
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:#263f32;border:1px solid #62806c;box-shadow:0 10px 32px #142b2133;
  color:#fff;padding:12px 15px;border-radius:12px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.test-mode-notice>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.test-mode-notice strong{font-size:13px;line-height:1.4;font-weight:650}
.test-mode-notice span{font-size:11px;color:#e2eadf;line-height:1.45}
.test-mode-notice button{flex-shrink:0;padding:9px 12px;min-height:44px;border-radius:8px;
  border:1px solid #cad9c8;background:#fffdf7;color:#2a4937;cursor:pointer;font-size:12px;font-weight:600}
.test-mode-notice button:focus-visible{outline:3px solid #dae9c2;outline-offset:3px}
@media(max-width:650px){.test-mode-notice{bottom:87px;left:12px;right:12px;max-width:none;padding:10px 12px;gap:7px}
  .test-mode-notice strong{font-size:12px}.test-mode-notice span{font-size:10px}
  .test-mode-notice button{padding:8px 10px;font-size:11px}}

/* Clear WeRead API Key help without adding steps to the connection flow. */
.weread-key-field{width:100%;box-sizing:border-box}
.weread-key-hint{font-size:11px;line-height:1.7;color:#687568;margin:6px 0 14px;min-height:19px}
.weread-key-hint.is-error{color:#a63f44;font-weight:600}
.weread-key-field[aria-invalid="true"]{border-color:#b94d53!important;outline:2px solid rgba(185,77,83,.13);outline-offset:1px}

/* Book inclusion selector: excludes only from report view, not original data. */
.report-book-filter-controls{display:flex;gap:12px;align-items:center;justify-content:space-between;border:1px solid #e8e0da;border-radius:9px;background:#fffaf5;padding:12px 14px;margin:13px 0}
.report-book-filter-controls[hidden]{display:none!important}
.report-book-filter-controls>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.report-book-filter-controls strong{font-size:12px;color:#4c3941}
.report-book-filter-controls span{font-size:11px;color:#7d7177;line-height:1.5}
.report-book-filter-controls button{white-space:nowrap;flex-shrink:0}
.report-book-filter-dialog .dialog-body{max-height:min(62vh,600px);overflow-y:auto}
.report-book-filter-list{display:flex;flex-direction:column;gap:5px;margin-top:10px}
.report-book-filter-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #eee5e1;border-radius:7px;background:#fffdfa;font-size:12px;color:#514448;line-height:1.5;cursor:pointer}
.report-book-filter-row input{width:17px;height:17px;accent-color:#9e637b;flex-shrink:0}
.report-book-filter-row span{overflow-wrap:anywhere}
.report-book-filter-row[hidden]{display:none!important}

/* Opt-in ID-based imported-book filter; no API requests or permanent deletion. */
.report-import-toggle{display:inline-flex;align-items:center;gap:7px;margin-top:9px;font-size:12px;font-weight:600;color:#584750;cursor:pointer;width:fit-content}
.report-import-toggle input{width:16px;height:16px;accent-color:#a46e84;flex:0 0 auto}
.report-import-toggle span{font-size:12px;color:#584750}
.report-import-toggle input:focus-visible{outline:2px solid #b07590;outline-offset:3px}

/* Strict completion-year reporting. Active-year statistics remain platform-wide. */
.report-filter-note{font-size:11px;line-height:1.7;margin:6px 0 3px;color:#85727a;max-width:34rem}
.report-book-filter-row:has(input:disabled):not(:has(.finish-year-book-button)){opacity:.64;cursor:not-allowed}
.report-book-filter-row input:disabled{cursor:not-allowed}


/* The book-cover picker can replace a jacket without editing the WeRead record. */
.paper-cover-picker-item{min-width:0;display:flex;flex-direction:column;gap:7px;padding:4px 0}
.paper-cover-picker-item .paper-cover-field{margin:0;min-width:0}
.paper-cover-image-actions{display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center}
.paper-cover-image-actions .text-button{font-size:11px;line-height:1.4;padding:5px 2px;min-height:29px}
.paper-cover-image-actions input[type=file][hidden]{display:none!important}
.paper-cover-image-actions button:focus-visible{outline:2px solid #a46e84;outline-offset:2px}

/* ReadPoster verified-finish reconciliation, compact even on phones. */
.finish-year-confirm-box{border:1px solid #ddcdb8;border-radius:9px;background:#fbf7ef;padding:11px 12px;margin:10px 0 15px}
.finish-year-confirm-box[hidden]{display:none!important}
.finish-year-confirm-box>p:first-child{font-size:12px;font-weight:650;color:#644e41;margin:1px 0 10px;line-height:1.6}
.finish-year-confirm-box .dialog-hint{font-size:11px;color:#8d7b71;margin:9px 0 0}
.finish-year-confirm-box .secondary-button{white-space:normal;font-size:11px;padding:9px 12px}
.report-book-filter-row{flex-wrap:wrap}
.report-book-include-label{display:flex;align-items:center;gap:10px;flex:1 1 140px;min-width:0;cursor:pointer}
.report-book-include-label>span{flex:1;min-width:0;overflow-wrap:anywhere}
.report-book-include-label:has(input:disabled){cursor:not-allowed}
.report-book-filter-row input:disabled{cursor:not-allowed}
.report-book-filter-row .finish-year-book-button{font-size:11px;white-space:nowrap;border:1px solid #d6bdac;background:#fffaf3;border-radius:7px;padding:6px 9px}
.report-book-filter-row .finish-year-book-button:hover{background:#f2e6d8}
@media(max-width:460px){
 .report-book-filter-row .finish-year-book-button{flex:1 0 100%;text-align:center}
 .report-book-filter-controls{align-items:flex-start}
 .report-book-filter-controls>button{white-space:normal;font-size:11px;max-width:110px}
}

/* Opt-in diagnostic copy; never sends book-level data to server. */
.report-diagnostic-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 10px}
.report-diagnostic-controls .text-button{font-size:12px;border-radius:7px;padding:7px 10px;border:1px solid #d5c6bd}
.report-diagnostic-controls .dialog-hint{flex:1 1 190px;font-size:11px;line-height:1.6}
.report-diagnostic-text{width:100%;min-height:165px;box-sizing:border-box;padding:10px;font-size:11px;line-height:1.7;border:1px solid #ddcfc5;border-radius:8px;background:#fffaf6;color:#614956;resize:vertical}
.report-diagnostic-text[hidden]{display:none!important}
