@font-face{font-family:ThaiSans;src:url(/assets/thai-sans.ttf)}@font-face{font-family:ThaiSans;src:url(/assets/thai-bold.ttf);font-weight:700}@font-face{font-family:ThaiSerif;src:url(/assets/thai-serif.ttf)}:root{--navy:#101c2b;--night:#0c1726;--gold:#e6c88e;--bronze:#785b32;--ivory:#f7f3eb;--paper:#fffcf6;--ink:#1c2735;--muted:#625e58;--line:#e3d9ca;--serif:Georgia,ThaiSerif,serif;--sans:ThaiSans,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--ivory);color:var(--ink);font:15px/1.65 var(--sans)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #aa7941;outline-offset:4px}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.3}h1{font-size:clamp(35px,4.2vw,58px)}h2{font-size:clamp(27px,3.2vw,44px)}h3{font-size:25px}small,.small{font-size:13px}.muted{color:var(--muted)}.eyebrow{color:var(--bronze);font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:700}.wrap{width:min(1296px,calc(100% - 112px));margin:auto}.top{background:var(--night);color:var(--ivory);border-bottom:1px solid #ffffff20}.bar{display:flex;align-items:center;justify-content:space-between;min-height:76px;gap:20px}.brand{display:inline-flex;align-items:center;gap:12px;line-height:1.12;white-space:nowrap}.mark{width:37px;height:37px;display:grid;place-items:center;border:1px solid #b59561;border-radius:4px;color:var(--gold);font:22px Georgia}.brand strong{font:18px Georgia;letter-spacing:.15em}.brand small{display:block;margin-top:5px;font-size:9px;letter-spacing:.16em;color:#ddd0ba}.topnav,.actions,.chips{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.topnav{gap:30px;font-size:14px;color:#ddd6cc}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 17px;border-radius:5px;border:1px solid transparent;background:var(--navy);color:#fff;font-weight:700;font-size:14px;text-align:center;transition:transform .18s,background .18s}.btn:hover{transform:translateY(-2px);filter:brightness(1.08)}.gold{background:var(--gold);color:#192231}.ghost{border-color:var(--line);background:transparent;color:inherit}.top .ghost,.hero .ghost{border-color:#ffffff3d}.quiet{border:0;background:none;color:inherit;padding:8px;min-height:40px}.ico{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none;stroke:currentColor;fill:none;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.hero{position:relative;overflow:hidden;color:var(--ivory);background:radial-gradient(ellipse at 74% 45%,#293a50 0%,var(--navy) 49%,#0c1726 100%)}.hero:before{position:absolute;top:0;right:0;bottom:0;left:0;content:"";background:repeating-linear-gradient(117deg,transparent 0 101px,#d3b5810d 102px 103px,transparent 104px 180px);pointer-events:none}.hero-inner{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:32px;min-height:566px;padding:55px 0}.hero .eyebrow{color:var(--gold);display:flex;align-items:center;gap:12px}.hero .eyebrow:before{content:"";width:27px;height:1px;background:var(--gold)}.hero h1{font-size:clamp(42px,5vw,74px);margin:18px 0 17px;line-height:1.19}.hero h1 em{display:block;font-style:normal;color:var(--gold)}.hero p{max-width:445px;color:#ded6cb;font-size:16px;margin-bottom:26px}.hero .footnote{color:#d2c3ac;margin-top:20px}.stage{position:relative;min-height:443px;isolation:isolate}.orbit{position:absolute;top:8%;right:2%;bottom:6%;left:2%;border:1px solid #dfbe814a;border-radius:50%;transform:rotate(-16deg);z-index:-1}.orbit:after{position:absolute;content:"";top:15px;right:15px;bottom:15px;left:15px;border:1px solid #dfbe8120;border-radius:50%}.stage .cover{position:absolute;box-shadow:8px 22px 42px #0009,inset 5px 0 8px #0006;width:42%;max-width:248px;border-radius:3px 7px 7px 3px}.stage .cover:nth-of-type(2){top:17%;left:10%;transform:rotate(-15deg)}.stage .cover:nth-of-type(3){top:22%;right:6%;transform:rotate(14deg)}.stage .cover:nth-of-type(4){top:4%;left:30%;width:47%;max-width:285px;transform:rotate(-4deg)}.stage-label{position:absolute;bottom:0;right:3%;color:#f1d6a3;letter-spacing:.15em;font-size:10px}.cover{aspect-ratio:2/3;position:relative;isolation:isolate;overflow:hidden;background-color:#253247;background-position:center;background-size:cover;color:#fff;border-radius:3px;box-shadow:0 8px 18px #1e25252c}.cover:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(170deg,#06111a80,transparent 68%,#0007),linear-gradient(90deg,#0005,transparent 5%);z-index:-1}.cover-copy{position:absolute;top:9%;right:8%;bottom:9%;left:8%;text-align:center;display:flex;align-items:center;flex-direction:column}.cover-copy i{font-style:normal;font-size:clamp(6px,1vw,10px);letter-spacing:.2em;color:#ffe0a8}.cover-copy b{font:400 clamp(13px,2.1vw,34px)/1.08 var(--serif);margin-top:7%;white-space:pre-line}.cover-copy span{margin-top:auto;letter-spacing:.18em;font-size:clamp(6px,.8vw,9px)}.cover.c0{background-color:#544a35}.cover.c1{background-color:#293b52}.cover.c2{background-color:#5a5940}.cover.c3{background-color:#72634e}.cover.c4{background-color:#27463f}.cover.c5{background-color:#663c37}.cover.c0 .cover-copy b{color:#ffe1ac}.strip{border-bottom:1px solid var(--line);background:#eee6d9}.strip .wrap{display:flex;justify-content:space-between;gap:16px;padding:14px 0;color:#614e3a;font-size:13px}.strip span{display:flex;align-items:center;gap:8px}.collection{padding:54px 0 70px}.head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:24px}.head h1,.head h2{margin:7px 0}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.book-grid.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.book-card{padding:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);overflow:hidden;text-align:left;min-width:0;color:var(--ink);transition:transform .2s,box-shadow .2s}.book-card:hover{transform:translateY(-4px);box-shadow:0 11px 30px #35291414}.book-frame{display:grid;place-items:center;padding:22px;background:#ebe2d3}.book-card:nth-child(3n+2) .book-frame{background:#dce0e2}.book-card:nth-child(3n+3) .book-frame{background:#e3e6da}.book-frame .cover{width:min(70%,190px)}.book-meta{display:block;padding:14px 16px}.book-meta strong{display:block;font-size:17px}.landing-end{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:31px 40px;background:var(--navy);color:var(--ivory);border-radius:8px;margin-bottom:50px}footer{border-top:1px solid var(--line);padding:20px 0;color:var(--muted)}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:calc(100dvh - 76px)}.sidebar{padding:29px 16px;background:#eee8dc;border-right:1px solid var(--line)}.sidebar .eyebrow{padding-left:12px;margin-bottom:13px}.sidebar nav{display:grid;gap:4px}.navitem{display:flex;align-items:center;gap:11px;min-height:44px;padding:7px 10px;border-radius:5px;font-size:14px}.navitem:hover,.navitem.active{background:#ded4c1}.navitem.active{font-weight:700;color:#392e21}.content{padding:34px clamp(20px,4vw,56px) 55px;min-width:0}.app-hero{background:linear-gradient(115deg,#101d2d,#26354a);color:var(--ivory);padding:30px clamp(20px,4vw,43px);border-radius:9px;margin-bottom:30px;display:flex;justify-content:space-between;align-items:center;gap:20px}.app-hero p{margin:8px 0 17px;color:#e4d8c9}.app-hero .eyebrow{color:var(--gold)}.app-hero .cover{width:112px;flex:none;transform:rotate(8deg);box-shadow:7px 12px 20px #0005}.app-hero .cover b{font-size:17px}.chip{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:20px;padding:6px 14px;min-height:40px}.chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}.panel{padding:23px;background:var(--paper);border:1px solid var(--line);border-radius:8px;min-width:0}.form-grid,.studio-grid,.export-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px;align-items:start}.field{display:grid;gap:5px;margin:0 0 15px;font-weight:700}.field :is(input,textarea,select){width:100%;background:#fff;color:var(--ink);border:1px solid #cfc2b1;padding:9px 11px;border-radius:4px;font-weight:400;min-height:43px}textarea{resize:vertical}.steps{margin-bottom:19px}.steps .chip{cursor:default}.outline{padding-left:22px}.outline li{padding:6px 0}.editor{display:grid;grid-template-columns:minmax(130px,.64fr) minmax(200px,1.9fr) minmax(178px,.9fr);gap:10px;align-items:start}.editor .panel{padding:13px}.pages{display:grid;gap:6px;margin:12px 0}.pages button{text-align:left;border:1px solid var(--line);background:var(--ivory);padding:8px;border-radius:4px;color:var(--ink);min-height:44px}.pages button.active{background:#eadeca;border-color:#a78a60}.canvas{padding:clamp(10px,3vw,33px);background:#e8dfd2;border-radius:6px;display:grid;justify-items:center;gap:12px}.canvas .cover,.preview-stage .cover{width:min(100%,380px)}.paper{width:min(100%,380px);aspect-ratio:2/3;background:#fffdf8;padding:10%;box-shadow:0 6px 20px #0002;overflow-wrap:anywhere;color:#202c34;display:flex;flex-direction:column}.editor .paper{max-height:570px;overflow:auto}.paper h3{margin:14% 0 11%;font-size:clamp(17px,2.4vw,32px)}.paper p{white-space:pre-wrap}.paper .page-no{margin-top:auto;padding-top:18px}.preview-stage{display:grid;place-items:center;background:#172536;padding:24px;border-radius:7px;min-height:420px}.preview-stage.phone :is(.cover,.paper){width:min(100%,240px)}.preview-stage .cover b,.canvas .cover b,.studio-visual .cover b{font-size:clamp(22px,4vw,42px)}.studio-visual{display:grid;place-items:center;background:#eae2d3;padding:25px;border-radius:7px}.studio-visual .cover{width:min(100%,290px)}.swatches{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.swatch{height:42px;width:42px;border:2px solid white;box-shadow:0 0 0 1px #9b8b77;border-radius:4px}.swatch[aria-pressed=true]{outline:2px solid #795d32;outline-offset:2px}.formats{display:grid;gap:9px;margin:16px 0}.formats label{display:flex;gap:12px;align-items:center;border:1px solid var(--line);padding:12px;border-radius:5px}.formats input{accent-color:var(--navy)}.status{padding:10px 12px;background:#e8efdf;color:#34462f;border-radius:4px}.mobile-nav{display:none}#toast{position:fixed;bottom:20px;right:20px;z-index:4;background:var(--night);color:#fff;padding:11px 17px;border-radius:5px;box-shadow:0 6px 16px #0003;display:none}#toast.show{display:block}.empty{padding:18px 0}.section-title{margin-bottom:12px}@media (max-width:1100px){.wrap{width:calc(100% - 60px)}.workspace{grid-template-columns:185px minmax(0,1fr)}.editor{grid-template-columns:130px minmax(160px,1fr) 170px}.stage{min-height:390px}}@media (max-width:880px){.workspace{display:block}.sidebar{display:none}.mobile-nav{display:block;padding:8px 16px;border-bottom:1px solid var(--line);background:#eee8dc}.mobile-nav select{width:100%;min-height:44px;padding:6px 10px;border:1px solid #c9bda9;border-radius:4px;background:var(--paper);color:var(--ink)}.hero-inner{min-height:0}.stage{min-height:340px}.topnav{display:none}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:650px){.wrap{width:calc(100% - 36px)}.bar{min-height:65px;gap:8px}.bar .actions{gap:3px}.bar .btn{padding:6px 9px;font-size:12px;min-height:40px}.brand{gap:7px}.mark{width:31px;height:31px;font-size:19px}.brand strong{font-size:15px}.brand small{font-size:7px}.hero-inner{grid-template-columns:1fr;gap:8px;padding:33px 0 23px}.hero h1{font-size:clamp(36px,10vw,55px);margin:12px 0}.hero p{margin-bottom:18px;font-size:14px}.hero .footnote{margin-top:10px}.stage{width:min(100%,390px);margin:auto;min-height:0;aspect-ratio:1.2}.stage .cover b{font-size:clamp(14px,5vw,23px)}.strip .wrap{justify-content:center;flex-wrap:wrap;gap:5px 15px}.strip span{font-size:11px}.collection{padding:35px 0}.head{align-items:start;flex-wrap:wrap;margin-bottom:16px}.book-grid,.book-grid.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.book-frame{padding:13px 7px}.book-frame .cover{width:78%}.book-meta{padding:9px 10px}.book-meta strong{font-size:14px}.landing-end{padding:18px;flex-wrap:wrap;margin-bottom:32px}.content{padding:20px 15px 38px}.app-hero{padding:18px}.app-hero .cover{width:70px}.app-hero .cover b{font-size:11px}.form-grid,.studio-grid,.export-grid,.editor{grid-template-columns:minmax(0,1fr)}.editor .pages{display:flex;flex-wrap:wrap}.editor .canvas{grid-row:2}.panel{padding:16px}.preview-stage{padding:15px;min-height:0}.cover-copy b{font-size:clamp(14px,4.1vw,22px)}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}.ed-toc{width:100%;display:flex;flex-direction:column;gap:14px}.ed-toc-list{display:flex;flex-direction:column;gap:10px;margin-top:8px}.ed-toc-item{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:14px}.ed-toc-title{flex-shrink:0;max-width:76%;font-weight:600}.ed-toc-dots{flex-grow:1;border-bottom:1px dotted currentColor;opacity:.45;margin:0 4px;min-width:16px}.ed-toc-num{font-family:var(--serif);font-weight:700;font-size:14px;flex-shrink:0}.ed-quote-box{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;height:100%;padding:24px 16px;margin:auto 0}.ed-quote-mark{font-size:64px;font-family:Georgia,serif;line-height:.7;opacity:.35;color:var(--ed-accent,#8b622c)}.ed-quote-text{font-size:18px;font-family:var(--serif);font-style:italic;line-height:1.6;margin:14px 0 16px}.ed-quote-author{font-size:13px;letter-spacing:.12em;opacity:.8;font-style:normal}.ed-colophon-box{display:flex;flex-direction:column;gap:8px;font-size:12px;opacity:.85;margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}@media print{@page{margin:0;size:auto}html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.top,.sidebar,.mobile-nav,.head,.actions,#toast,.workspace,main{display:none!important}#app{display:block!important;padding:0!important;margin:0!important;background:transparent!important}.print-book{display:block!important;width:100%!important}.print-book section{page-break-after:always!important;break-after:page!important;width:100vw!important;height:100vh!important;min-height:100vh!important;max-height:100vh!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;box-sizing:border-box!important}.print-book section:last-child{page-break-after:auto!important;break-after:auto!important}.print-book :is(.cover,.paper,.ed-page){width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;box-shadow:none!important;border-radius:0!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.print-book .ed-page{aspect-ratio:auto!important}.print-book .paper{padding:clamp(16mm,5vw,25mm)!important}}.print-book{display:none}.canvas,.preview-stage,.canvas #art{grid-template-columns:minmax(0,1fr);min-width:0}.paper{min-width:0;padding:clamp(18px,4vw,45px)}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;background:var(--paper);border:1px solid var(--line);padding:10px 16px;border-radius:8px;margin-bottom:16px}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn-sm{min-height:36px!important;padding:6px 12px!important;font-size:13px!important}.save-status-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:5px 12px;border-radius:20px;transition:all .2s ease}.save-status-pill.saved{background:#edf7ee;color:#2e6930;border:1px solid #c3e6cb}.save-status-pill.saving{background:#fdf6e7;color:#8b622c;border:1px solid #f2e2be}.save-status-pill.error{background:#fde8e8;color:#a82323;border:1px solid #f5c2c2}.page-row{display:flex;align-items:center;gap:4px;background:var(--ivory);border:1px solid var(--line);border-radius:5px;padding:2px 4px 2px 8px;min-height:44px;transition:all .15s ease}.page-row.active{background:#eadeca;border-color:#a78a60}.page-row-select{flex:1;text-align:left;background:none;border:none;padding:6px 4px;font-size:13px;color:var(--ink);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.page-row-actions{display:flex;align-items:center;gap:2px}.page-action-btn{background:none;border:none;padding:4px;color:#635b50;cursor:pointer;border-radius:3px;display:flex;align-items:center;justify-content:center;min-height:28px;min-width:28px}.page-action-btn:hover:not(:disabled){background:#00000014;color:var(--ink)}.page-action-btn:disabled{opacity:.25;cursor:not-allowed}.page-action-btn.delete:hover:not(:disabled){background:#fae8e8;color:#c92a2a}.overflow-warning-banner{width:min(100%,460px);background:#fdf3d8;border:1px solid #e6c88e;border-left:4px solid #b58129;border-radius:6px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 2px 8px #0000000f}.overflow-text{font-size:13px;color:#6d4b14;display:flex;align-items:center;gap:6px}.btn-split-auto{background:#101c2b;color:#f7f3eb;border:none;font-size:12px;font-weight:600;padding:6px 12px;border-radius:4px;cursor:pointer;white-space:nowrap;transition:background .15s ease}.btn-split-auto:hover{background:#8b622c}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0c1726a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;z-index:1000;padding:20px}.modal-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;width:min(100%,420px);padding:28px;box-shadow:0 16px 40px #00000040}.user-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:20px;background:#ffffff1a;color:var(--ivory);font-size:13px;cursor:pointer}.user-badge:hover{background:#ffffff2e}@font-face{font-family:ThaiLoop;src:url(/assets/editorial/looped-thai.ttf)}.ed-filter{max-width:330px;margin-bottom:22px}.ed-original{margin-top:37px}.editorial-gallery .book-frame{padding:17px}.ed-thumb{width:min(100%,190px);box-shadow:0 9px 18px #18223330}.ed-thumb .ed-page{width:100%}.ed-gallery-detail{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(235px,1fr);gap:20px;align-items:start}.ed-gallery-canvas{padding:clamp(14px,3vw,34px);background:#e6dfd2;border:1px solid var(--line);border-radius:7px;display:grid;justify-items:center}.ed-sheet{width:min(100%,448px);min-width:0}.ed-details h2{margin:7px 0 15px;font-size:clamp(26px,3.5vw,42px)}.ed-details .pages{margin:15px 0}.ed-details .small{margin:8px 0 17px}.ed-palette{display:flex;gap:6px}.ed-palette span{width:29px;height:24px;border:1px solid #1c273525;border-radius:4px}.ed-color-inputs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.ed-color-inputs label{display:grid;font-size:12px}.ed-color-inputs input{width:100%;height:34px;border:1px solid var(--line);background:#fff;border-radius:4px}.ed-toggle{display:flex;align-items:center;min-height:38px;gap:8px;font-size:13px}.field input[type=file]{font-size:11px;min-width:0;padding:4px}.ed-page{container-type:inline-size;display:flex;flex-direction:column;width:min(100%,448px);min-width:0;min-height:0;aspect-ratio:2/3;background:var(--ed-paper);color:var(--ed-ink);position:relative;isolation:isolate;box-shadow:0 9px 24px #11182728;overflow:hidden;text-align:start;overflow-wrap:anywhere;--ed-heading:var(--serif);--ed-copy:var(--sans);--ed-pad:8cqw}.ed-size-a4{aspect-ratio:210/297;--ed-pad:7.8cqw}.ed-size-a5{aspect-ratio:148/210;--ed-pad:8.6cqw}.ed-font-sans{--ed-heading:var(--sans)}.ed-font-loop{--ed-heading:Georgia,ThaiLoop,serif;--ed-copy:ThaiLoop,Arial,sans-serif}.ed-header,.ed-foot{display:flex;justify-content:space-between;align-items:center;gap:2cqw;margin-inline:var(--ed-pad);font:700 clamp(7px,2.7cqw,12px)/1.4 var(--ed-copy);letter-spacing:.045em;z-index:1}.ed-header{margin-top:6cqw;padding-bottom:2.5cqw;border-bottom:1px solid currentColor}.ed-header span:last-child{font-size:4.5cqw}.ed-foot{margin-top:auto;padding:2.3cqw 0 4cqw;font-size:clamp(6px,2.3cqw,10px)}.ed-foot span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ed-main{min-width:0;min-height:0;display:flex;flex:1;flex-direction:column;gap:4cqw;padding:6cqw var(--ed-pad) 2cqw}.ed-copy{min-width:0}.ed-kicker{font:700 clamp(7px,2.8cqw,12px)/1.4 var(--ed-copy);color:var(--ed-accent);margin-bottom:2cqw}.ed-page h3{font:400 clamp(15px,8.1cqw,39px)/1.21 var(--ed-heading);margin:0;color:inherit}.ed-text,.ed-feature{font:400 clamp(10px,calc(3.45cqw * var(--ed-body) / 16),21px)/1.58 var(--ed-copy);white-space:pre-wrap}.ed-text{margin-top:3cqw}.ed-image{position:relative;overflow:hidden;min-height:0;flex:none;height:36cqw;background:var(--ed-ink)}.ed-image img{display:block;width:100%;height:100%;object-fit:cover}.ed-image span{position:absolute;top:0;right:0;bottom:0;left:0}.ed-main .ed-image{order:1}.ed-cover{color:#fff9ee;background:var(--ed-ink)}.ed-cover .ed-main{justify-content:flex-start;padding-top:13cqw}.ed-cover .ed-image{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;z-index:-1}.ed-cover .ed-image:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#080f1ed9 0%,#080f1e68 43%,transparent 63%,#080f1eb8 100%)}.ed-cover .ed-kicker{color:var(--ed-bright)}.ed-cover h3{font-size:clamp(13px,11cqw,54px);text-wrap:balance}.ed-cover .ed-copy{max-width:95%}.ed-opening .ed-image{flex:1;min-height:22cqw;max-height:54cqw}.ed-body h3,.ed-special h3{font-size:clamp(15px,7cqw,33px)}.ed-body .ed-image{height:27cqw}.ed-body .ed-text{margin-top:3.5cqw}.ed-feature{display:grid;gap:3cqw}.ed-feature .ed-image{height:32cqw;order:0}.special-content{display:grid;gap:2.5cqw}.special-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:3cqw;padding:2.3cqw;border:1px solid color-mix(in srgb,var(--ed-accent),transparent 65%)}.special-row b{font-weight:700}.special-row p{margin-top:1cqw}.row-marker{background:var(--ed-accent);color:#fff;min-width:5.8cqw;padding:.2cqw .75cqw;text-align:center;font-weight:700}.ed-page blockquote{font-family:var(--ed-heading);font-size:clamp(14px,7.4cqw,35px);line-height:1.4;margin:0;padding:4cqw 0;border-block:1px solid var(--ed-accent)}.budget-row>div{display:flex;justify-content:space-between;gap:3cqw}.budget-track{display:block;background:var(--ed-bright);height:2.8cqw;margin:1cqw 0 3cqw}.budget-track i{display:block;height:100%;background:var(--ed-accent)}.ed-layout-decision.ed-opening .ed-main{border-inline-start:1cqw solid var(--ed-accent);margin-inline-start:4cqw;padding-inline-start:4cqw}.ed-layout-decision.ed-body .ed-copy{border-top:2px solid var(--ed-accent);padding-top:3cqw}.ed-layout-decision .special-row{border:0;border-bottom:1px solid var(--ed-accent);grid-template-columns:10cqw 1fr}.ed-layout-flow.ed-opening .ed-main{flex-direction:column-reverse}.ed-layout-flow.ed-body .ed-text{border-left:3px solid var(--ed-accent);padding-left:4cqw}.ed-layout-flow .special-row{background:var(--ed-bright);color:var(--ed-ink);border-radius:3cqw}.ed-layout-flow .special-content{gap:4cqw}.ed-layout-quote.ed-opening .ed-main{text-align:center}.ed-layout-quote.ed-opening .ed-image{border-radius:60% 60% 4% 4%}.ed-layout-quote.ed-body .ed-image{order:-1;border-radius:50%;height:37cqw;width:37cqw;align-self:center}.ed-layout-quote .ed-feature{padding-top:7cqw}.ed-layout-budget.ed-opening .ed-main{display:grid;grid-template-rows:auto minmax(0,1fr)}.ed-layout-budget.ed-opening .ed-image{align-self:center;height:41cqw;border:1.5cqw solid var(--ed-bright)}.ed-layout-budget.ed-body .ed-copy{background:color-mix(in srgb,var(--ed-bright),white 64%);padding:4cqw}.ed-layout-budget .budget-row span{font-weight:700}.ed-layout-story.ed-opening .ed-main,.ed-layout-story.ed-body .ed-main{flex-direction:column-reverse;text-align:center}.ed-layout-story.ed-opening .ed-image,.ed-layout-story.ed-body .ed-image{border-radius:4cqw;height:45cqw}.ed-layout-story .special-row{background:#fff8ec;border-radius:3cqw;border-style:dashed}.ed-layout-story .ed-feature .ed-image{border-radius:4cqw}.ed-layout-map.ed-opening{background:var(--ed-ink);color:#f6f4e7}.ed-layout-map.ed-opening .ed-kicker{color:var(--ed-bright)}.ed-layout-map.ed-opening .ed-main{text-align:center}.ed-layout-map.ed-body .ed-copy{border-block:1px solid var(--ed-accent);padding-block:3cqw}.ed-layout-map .special-row{border:0;border-left:2px solid var(--ed-accent)}.ed-layout-letter.ed-opening .ed-main{align-items:center;text-align:center}.ed-layout-letter.ed-opening .ed-image{width:64%;border-radius:50% 50% 2cqw 2cqw}.ed-layout-letter.ed-body .ed-image{order:-1;border-block:2px solid var(--ed-accent)}.ed-layout-letter .special-content{padding:5cqw;border:1px solid var(--ed-accent);font-family:var(--ed-heading);background:#fff8f5}.ed-layout-recipe.ed-opening .ed-main,.ed-layout-recipe.ed-body .ed-main{display:grid;align-content:start}.ed-layout-recipe.ed-opening .ed-image,.ed-layout-recipe.ed-body .ed-image{order:-1;height:38cqw}.ed-layout-recipe .special-row{border:none;border-top:1px solid var(--ed-accent);padding:1.4cqw 0}.ed-layout-recipe .ed-feature .ed-image{height:24cqw}.ed-layout-timeline.ed-opening .ed-image{order:-1;height:48cqw}.ed-layout-timeline.ed-body .ed-copy{border-top:6px solid var(--ed-accent);padding-top:3cqw}.ed-layout-timeline .special-row{grid-template-columns:7cqw 1fr;border:0;border-left:2px solid var(--ed-accent);padding:4cqw 2cqw}.ed-layout-check.ed-opening .ed-image{border-radius:45cqw 45cqw 0 0}.ed-layout-check.ed-body .ed-main{gap:6cqw}.ed-layout-check.ed-body .ed-image{border-radius:0 20cqw 20cqw 0}.ed-layout-check .special-row{border:0;border-bottom:1px solid var(--ed-accent);padding-block:4cqw}.ed-layout-reflection.ed-opening .ed-main{text-align:center}.ed-layout-reflection.ed-opening .ed-image{border-radius:50%;width:55%;height:47cqw;align-self:center}.ed-layout-reflection.ed-body .ed-text{border-inline:1px solid var(--ed-accent);padding-inline:4cqw}.ed-layout-reflection .special-row,.ed-layout-workbook .special-row{padding-bottom:12cqw;background:repeating-linear-gradient(transparent 0 7cqw,color-mix(in srgb,var(--ed-accent),transparent 78%) 7cqw,color-mix(in srgb,var(--ed-accent),transparent 78%) calc(7cqw + 1px))}.ed-layout-workbook.ed-opening .ed-main{border-left:6px solid var(--ed-accent)}.ed-layout-workbook.ed-opening .ed-image{border-radius:0 0 10cqw}.ed-layout-workbook.ed-body .ed-copy{border:2px solid var(--ed-accent);padding:4cqw}.ed-layout-workbook .special-row{border:2px solid var(--ed-accent)}.canvas .ed-page,.preview-stage .ed-page,.studio-visual .ed-page{width:min(100%,405px)}.preview-stage.phone .ed-page{width:min(100%,275px)}.ed-page.ed-extended .ed-main{overflow:auto}@media (max-width:650px){.ed-gallery-detail{grid-template-columns:minmax(0,1fr)}.ed-details .pages{display:grid;grid-template-columns:1fr 1fr}.editorial-gallery .book-frame{padding:9px}.ed-page .ed-text,.ed-page .ed-feature{font-size:clamp(9px,calc(3.7cqw * var(--ed-body) / 16),19px)}}.ed-current{width:112px;flex:none}.ed-current .ed-page{width:100%}.ed-current .ed-page h3{font-size:14px}.editor .ed-main,.preview-stage .ed-main{overflow:auto;scrollbar-width:thin}.ed-layout-budget.ed-no-image.ed-opening .ed-main{display:flex}@media (max-width:650px){.ed-current{width:70px}.ed-current .ed-page h3{font-size:10px}}.ed-cover:is(.ed-layout-quote,.ed-layout-story,.ed-layout-letter,.ed-layout-reflection){color:var(--ed-ink);background:var(--ed-paper)}.ed-cover:is(.ed-layout-quote,.ed-layout-story,.ed-layout-letter,.ed-layout-reflection) .ed-kicker{color:var(--ed-accent)}.ed-cover:is(.ed-layout-quote,.ed-layout-story,.ed-layout-letter,.ed-layout-reflection) .ed-main{padding-top:8cqw;text-align:center;align-items:center}.ed-cover:is(.ed-layout-quote,.ed-layout-story,.ed-layout-letter,.ed-layout-reflection) .ed-image{position:relative;inset:auto;width:100%;height:auto;flex:1;z-index:auto;margin-top:3cqw}.ed-cover:is(.ed-layout-quote,.ed-layout-story,.ed-layout-letter,.ed-layout-reflection) .ed-image:after{background:none}.ed-cover.ed-layout-quote .ed-image{border-radius:45% 45% 0 0}.ed-cover.ed-layout-story .ed-image{border-radius:10cqw 10cqw 2cqw 2cqw}.ed-cover.ed-layout-letter .ed-image{width:77%;border:1.5cqw double var(--ed-accent)}.ed-cover.ed-layout-reflection .ed-image{width:75%;border-radius:50% 50% 6% 6%}.ed-cover:is(.ed-layout-budget,.ed-layout-workbook) .ed-copy{background:var(--ed-paper);color:var(--ed-ink);padding:4cqw;max-width:100%;border-left:2cqw solid var(--ed-bright)}.ed-cover:is(.ed-layout-budget,.ed-layout-workbook) .ed-kicker{color:var(--ed-accent)}.ed-cover.ed-layout-timeline .ed-copy{margin-top:24cqw;border-top:3px solid var(--ed-bright);padding-top:4cqw}.ed-cover.ed-layout-map .ed-copy{text-align:center;margin-inline:auto}.ed-cover.ed-layout-check .ed-copy{border:1px solid var(--ed-bright);padding:5cqw}.ed-cover.ed-layout-flow .ed-header{border-bottom:1.5cqw solid var(--ed-bright)}.ed-cover.ed-layout-recipe .ed-copy{border-bottom:2px solid var(--ed-bright);padding-bottom:4cqw}.ed-thumb .ed-cover h3{font-size:clamp(11px,9.5cqw,22px)}.ed-thumb .ed-cover .ed-main{gap:2cqw}.ed-special .ed-main{gap:3cqw}@media (max-width:650px){.ed-gallery-detail{display:flex;flex-direction:column}.ed-gallery-detail>*{width:100%}.ed-gallery-detail .ed-details{order:-1}.ed-gallery-detail .ed-details h2{margin:2px 0 8px}.ed-gallery-detail .ed-details .pages{margin:8px 0}.ed-gallery-detail .ed-details .field{margin-bottom:6px}}.ai-wizard-header{margin-bottom:20px}.ai-wizard-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:#e6c88e26;border:1px solid var(--gold);color:#795d32;border-radius:20px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.ai-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;margin-bottom:12px}.ai-suggest-chip{background:var(--ivory);border:1px dashed #cfc2b1;border-radius:14px;padding:3px 10px;font-size:12px;color:var(--ink);cursor:pointer;transition:all .2s ease}.ai-suggest-chip:hover{background:var(--paper);border-color:var(--gold);color:#795d32}.ai-provider-box{background:#fdfbf7;border:1px solid var(--line);border-radius:6px;padding:14px;margin:16px 0}.ai-provider-toggle{display:flex;gap:8px;margin-bottom:12px}.ai-provider-toggle button{flex:1;padding:8px 12px;font-size:13px;font-weight:600;border-radius:4px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer}.ai-provider-toggle button.active{background:var(--navy);color:#fff;border-color:var(--navy)}.ai-cost-banner{display:flex;justify-content:space-between;align-items:center;background:#e6c88e1f;border-left:3px solid var(--gold);padding:8px 12px;border-radius:0 4px 4px 0;font-size:12px;color:#493b26}.ai-cost-banner strong{color:#795d32}.ai-outline-list{display:flex;flex-direction:column;gap:12px;margin:16px 0}.ai-chapter-card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:14px;box-shadow:0 2px 6px #00000005;transition:border-color .2s}.ai-chapter-card:hover{border-color:#bfa57d}.ai-chapter-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.ai-chapter-num{font-weight:700;color:#795d32;font-size:13px;text-transform:uppercase}.ai-chapter-tools{display:flex;gap:4px}.ai-icon-btn{background:transparent;border:1px solid transparent;border-radius:4px;padding:4px 8px;cursor:pointer;font-size:13px;color:#666}.ai-icon-btn:hover:not(:disabled){background:var(--ivory);border-color:var(--line);color:var(--ink)}.ai-icon-btn:disabled{opacity:.35;cursor:not-allowed}.ai-progress-container{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:20px}.ai-progress-track{width:100%;height:10px;background:#eee8dc;border-radius:5px;overflow:hidden;margin:10px 0 6px}.ai-progress-fill{height:100%;background:linear-gradient(90deg,#101c2b,#a78a60,#e6c88e);transition:width .4s cubic-bezier(.4,0,.2,1)}.ai-progress-stats{display:flex;justify-content:space-between;font-size:12px;color:#6b6357}.ai-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:12px;font-size:11px;font-weight:600}.ai-status-badge.completed{background:#e6f4ea;color:#137333}.ai-status-badge.generating{background:#fef7e0;color:#b06000;animation:pulseGlow 1.5s infinite}.ai-status-badge.pending{background:#f1f3f4;color:#5f6368}.ai-status-badge.error{background:#fce8e6;color:#c5221f}@keyframes pulseGlow{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.ai-stream-preview{background:#fffdf9;border:1px solid #e0d7c7;border-radius:6px;padding:16px;margin-top:14px;font-size:14px;line-height:1.7;max-height:240px;overflow-y:auto}.ai-stream-preview h4{margin:0 0 8px;color:#101c2b}.ai-stream-quote{border-left:3px solid var(--gold);padding-left:12px;font-style:italic;color:#594d3c;margin:10px 0}.ai-resume-banner{background:#fff8e1;border:1px solid #ffe082;border-radius:6px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-size:13px}.ai-art-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#101c2bbf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.ai-art-modal{background:var(--paper);border:1px solid var(--gold);border-radius:8px;width:min(920px,96vw);max-height:90vh;display:flex;flex-direction:column;box-shadow:0 16px 40px #00000059;overflow:hidden}.ai-art-modal-header{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#fdfbf7}.ai-art-modal-body{padding:20px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.4fr);gap:20px;overflow-y:auto}@media (max-width: 768px){.ai-art-modal-body{grid-template-columns:1fr}}.ai-art-modal-footer{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fdfbf7}.ai-art-variations-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.ai-art-variation-card{background:#fff;border:1.5px solid var(--line);border-radius:6px;overflow:hidden;cursor:pointer;transition:all .2s ease;display:flex;flex-direction:column}.ai-art-variation-card:hover{border-color:#bfa57d;transform:translateY(-2px);box-shadow:0 4px 10px #0000000f}.ai-art-variation-card.selected{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold);background:#fffefb}.ai-art-thumb-wrapper{position:relative;width:100%;aspect-ratio:16/9;background:#eee8dc;overflow:hidden}.ai-art-thumb-wrapper img{width:100%;height:100%;object-fit:cover;display:block}.ai-art-card-badge{position:absolute;top:6px;left:6px;background:#101c2bd9;color:#fff;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.ai-art-card-meta{padding:8px 10px;display:flex;flex-direction:column;gap:2px}.ai-art-card-meta strong{font-size:12px;color:#101c2b}.ai-art-card-meta small{font-size:11px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ai-art-large-preview{margin-top:14px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:6px}
