#assemblyApp{--ink:#1c3540;--muted:#77858a;--blue:#2e617a;--paper:#fafbf8;--line:#e1e7e5;--soft:#edf2ef;--green:#42715f}
#assemblyApp *{box-sizing:border-box}
#assemblyApp{margin:0;background:#e9eeeb;color:var(--ink);font:14px/1.5 Manrope,Arial,sans-serif}
#assemblyApp button,#assemblyApp input,#assemblyApp select,#assemblyApp textarea{font:inherit}
#assemblyApp button,#assemblyApp a,#assemblyApp input,#assemblyApp select,#assemblyApp textarea{-webkit-tap-highlight-color:transparent}
#assemblyApp button,#assemblyApp a{touch-action:manipulation}
#assemblyApp button{cursor:pointer;border:0;color:inherit;background:transparent}
#assemblyApp button:disabled{opacity:.4;cursor:default}
#assemblyApp a{color:inherit;text-decoration:none}
#assemblyApp button:focus-visible,#assemblyApp a:focus-visible{outline:3px solid #72a8bd;outline-offset:4px}
#assemblyApp button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#assemblyApp [hidden]{display:none!important}
#assemblyApp{max-width:430px;margin:28px auto 40px;background:var(--paper);min-height:850px;box-shadow:0 18px 70px #183a3b13;position:relative;border:1px solid #d7e0db;border-radius:22px;overflow:clip}
#assemblyApp .demo-strip{height:26px;display:grid;place-items:center;background:#e4eae6;color:#73827b;font-size:8px;letter-spacing:1.3px}
#assemblyApp .topbar{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid var(--line)}
#assemblyApp #brand{font-size:19px;font-weight:bold;letter-spacing:-1px}
#assemblyApp .icon{width:42px;height:42px;display:grid;place-items:center;font-size:24px;border-radius:50%}
#assemblyApp .icon:hover{background:var(--soft)}
#assemblyApp .steps{display:flex;padding:17px 22px 15px;gap:7px}
#assemblyApp .step{flex:1;color:#94a19e;font-size:10px;letter-spacing:.1px}
#assemblyApp .step:before{content:'';display:block;height:2px;background:#dce5df;margin-bottom:9px}
#assemblyApp .step.active{color:var(--blue);font-weight:bold}
#assemblyApp .step.active:before{background:var(--blue)}
#assemblyApp .step.done:before{background:#92afa0}
#assemblyApp .step.done{color:#6c8777}
#assemblyApp main{padding:10px 22px 24px;min-height:620px}
#assemblyApp h1,#assemblyApp h2,#assemblyApp h3,#assemblyApp p{margin:0}
#assemblyApp h2{font-size:29px;line-height:1.18;font-weight:600;letter-spacing:-1.2px;margin:8px 0 10px}
#assemblyApp h2 em{font-family:Editorial,Georgia,serif;font-size:1.2em;font-style:italic;font-weight:500}
#assemblyApp h3{font-size:16px;letter-spacing:-.5px}
#assemblyApp .subtitle{font-size:12px;line-height:1.65;color:var(--muted);margin-bottom:23px}
#assemblyApp .eyebrow{font-size:9px;letter-spacing:1.6px;color:#759083;text-transform:uppercase}
#assemblyApp .section-label{display:flex;align-items:center;justify-content:space-between;margin:23px 0 12px;font-size:12px;font-weight:600}
#assemblyApp .section-label span{color:var(--muted);font-size:10px;font-weight:400}
#assemblyApp .upload-card{height:237px;border:1px dashed #b5c6bb;border-radius:16px;background:linear-gradient(135deg,#f2f5ef,#eaf0eb);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
#assemblyApp .upload-card input,#assemblyApp .file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
#assemblyApp .upload-card label{position:absolute;inset:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#assemblyApp .photo-mark{font-family:Editorial,Georgia;font-size:65px;line-height:1;color:#627f6e}
#assemblyApp .upload-card b{font-size:15px}
#assemblyApp .upload-card small{font-size:10px;color:var(--muted)}
#assemblyApp .upload-card.has-photo{height:245px;background:#e7ece7;border:0}
#assemblyApp .upload-card.has-photo>img{width:100%;height:100%;object-fit:cover;object-position:50% 33%}
#assemblyApp .upload-card.has-photo label{inset:auto 12px 12px auto;background:#fffefbf0;border-radius:30px;padding:8px 14px;display:block;font-size:10px}
#assemblyApp .upload-ok{display:flex;align-items:center;gap:7px;color:var(--green);font-size:11px;margin:10px 0}
#assemblyApp .check{background:#e6eee7;border-radius:50%;height:18px;width:18px;display:inline-grid;place-items:center;font-size:10px;flex:none}
#assemblyApp .themes{display:flex;flex-wrap:wrap;gap:8px}
#assemblyApp .chip{border:1px solid #dce4df;border-radius:8px;padding:10px 12px;font-size:11px;background:#fff}
#assemblyApp .chip.active{background:var(--ink);border-color:var(--ink);color:white}
#assemblyApp .link{font-size:11px;text-decoration:underline;text-underline-offset:4px}
#assemblyApp .sample-link{display:block;margin:16px auto;color:var(--muted)}
#assemblyApp .dock{position:sticky;bottom:0;padding:14px 22px max(17px,env(safe-area-inset-bottom));background:#fafbf8f5;backdrop-filter:blur(16px);border-top:1px solid var(--line);z-index:10}
#assemblyApp .primary{width:100%;display:flex;align-items:center;justify-content:center;gap:15px;background:var(--blue);color:white;border:1px solid var(--blue);min-height:53px;padding:13px 16px;border-radius:11px;font-size:13px;font-weight:600;letter-spacing:.1px}
#assemblyApp .primary .arrow{margin-left:auto;font-size:20px;font-weight:400}
#assemblyApp .primary span:first-child{margin-right:auto}
#assemblyApp .primary:hover{background:#234f65}
#assemblyApp .secondary{min-height:46px;border:1px solid #d5dfd8;border-radius:9px;width:100%;background:transparent;font-size:12px}
#assemblyApp .dock-note{text-align:center;font-size:9px;color:var(--muted);margin-top:9px}
#assemblyApp .dock-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:11px}
#assemblyApp .dock-top strong{font-size:22px;letter-spacing:-.5px}
#assemblyApp .cover-stage{margin:0 auto;position:relative;width:86%;padding-top:7px;padding-bottom:14px;perspective:1000px}
#assemblyApp .cover-paper{aspect-ratio:3/4;position:relative;box-shadow:4px 5px 0 #d6dcd2,8px 17px 26px #1d3b3522;transform:rotate(-2deg);overflow:hidden;background:#dfe7e2}
#assemblyApp .cover-paper img{width:100%;height:100%;object-fit:cover}
#assemblyApp .cover-stamp{position:absolute;bottom:0;left:-6px;background:#fffdf8;border:1px solid #e0e6dc;border-radius:25px;padding:7px 12px;display:flex;gap:5px;align-items:center;font-size:9px;box-shadow:0 4px 12px #1e3e2810}
#assemblyApp .cover-stamp i{height:5px;width:5px;background:#6d9777;border-radius:50%}
#assemblyApp .cover-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px}
#assemblyApp .cover-actions .secondary{font-size:10px}
#assemblyApp .tiny{text-align:center;color:var(--muted);font-size:9px;margin-top:11px}
#assemblyApp .custom-cover{position:relative;overflow:hidden}
#assemblyApp .custom-title{position:absolute;top:5%;left:6%;right:6%;text-align:center;font-family:Editorial,Georgia;font-size:47px;line-height:.9;font-weight:bold;color:white;text-shadow:0 1px 4px #0003;overflow-wrap:anywhere}
#assemblyApp .custom-subtitle{position:absolute;bottom:7%;left:7%;right:7%;font-size:16px;color:white;line-height:1.1;text-shadow:0 1px 3px #0005}
#assemblyApp .form-label{display:block;font-size:11px;margin:16px 0 6px}
#assemblyApp .field{display:block;background:white;border:1px solid #d8e1da;border-radius:9px;min-height:48px;width:100%;padding:12px;font-size:14px;color:var(--ink)}
#assemblyApp .manual-preview{width:68%;margin:17px auto}
#assemblyApp .manual-preview .custom-title{font-size:37px}
#assemblyApp .manual-preview .custom-subtitle{font-size:14px}
#assemblyApp .swatches{display:flex;gap:12px;padding:10px 0}
#assemblyApp .swatch{height:27px;width:27px;border-radius:50%;border:2px solid var(--paper);outline:1px solid #c7d4cc}
#assemblyApp .swatch.active{outline:2px solid var(--ink)}
#assemblyApp .loading-art{height:285px;display:grid;place-items:center;position:relative;margin:10px 0}
#assemblyApp .loading-art img{height:235px;width:176px;object-fit:cover;transform:rotate(-7deg);filter:saturate(.75);border:6px solid white;box-shadow:0 14px 30px #193d3320}
#assemblyApp .orbit{position:absolute;width:275px;height:275px;border:1px solid #d7e3d8;border-radius:50%;animation:turn 12s linear infinite}
#assemblyApp .orbit:before{content:'✦';position:absolute;left:12px;top:44px;font-size:29px;color:#a5b49a}
#assemblyApp .loading-copy{text-align:center;margin:12px 0 24px}
#assemblyApp .loading-copy h3{font:32px/1 Editorial,Georgia;margin-bottom:14px}
#assemblyApp .activity{height:3px;background:#dde6de;overflow:hidden;border-radius:2px;width:65%;margin:20px auto}
#assemblyApp .activity:before{content:'';display:block;height:100%;width:40%;background:var(--blue);animation:loading 1.8s ease-in-out infinite}
#assemblyApp .loading-copy small{color:var(--muted);font-size:10px}
#assemblyApp .progress-line{height:4px;border-radius:3px;background:#e1e8e2;overflow:hidden;margin:12px 0 18px}
#assemblyApp .progress-line i{display:block;height:100%;background:#7a9b83;transition:width .3s}
#assemblyApp .photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#assemblyApp .photo-tile{aspect-ratio:1;position:relative;border-radius:7px;overflow:hidden;background:#e1e7df}
#assemblyApp .photo-tile img{width:100%;height:100%;object-fit:cover}
#assemblyApp .photo-tile .remove{position:absolute;right:4px;top:4px;background:#162d3880;color:white;height:23px;width:23px;border-radius:50%;font-size:17px}
#assemblyApp .add-tile{display:grid;place-items:center;border:1px dashed #b4c5b7;background:transparent;cursor:pointer;color:#78917e;font-size:34px}
#assemblyApp .count-pill{background:#e5eee6;color:#55745b;border-radius:20px;font-size:10px;padding:5px 9px}
#assemblyApp .small-cover{display:flex;gap:13px;align-items:center;padding:12px;background:#edf1ec;border-radius:10px;margin:20px 0}
#assemblyApp .small-cover img{width:35px;height:46px;object-fit:cover}
#assemblyApp .small-cover b{font-size:11px;display:block}
#assemblyApp .small-cover p{font-size:10px;color:var(--muted);margin-top:3px}
#assemblyApp .photo-tools{display:flex;justify-content:space-between;margin:17px 0}
#assemblyApp .reader-top{display:flex;justify-content:space-between;align-items:center;margin:3px 0 15px}
#assemblyApp .reader-top h2{font-size:27px;margin:0}
#assemblyApp .save-label{color:#72917b;font-size:9px}
#assemblyApp .page-stage{position:relative;background:#dde5df;border-radius:12px;padding:17px 22px 20px;touch-action:pan-y}
#assemblyApp .page-art{aspect-ratio:210/297;position:relative;overflow:hidden;box-shadow:0 7px 17px #183d2a21;background:white}
#assemblyApp .page-art>img{width:100%;height:100%;object-fit:cover}
#assemblyApp .page-folio{position:absolute;bottom:4%;left:6%;font:italic 19px Georgia;color:white}
#assemblyApp .page-annotation{position:absolute;left:8%;top:12%;max-width:84%;white-space:pre-wrap;overflow-wrap:break-word;color:white;font:28px/1.1 Editorial,Georgia;text-shadow:0 1px 3px #0004}
#assemblyApp .page-annotation.dark-label{background:#1b3449a8;border-radius:4px;padding:4px 9px;width:max-content}
#assemblyApp .reader-pager{display:flex;justify-content:space-between;align-items:center;margin:10px 0;font-size:10px;color:var(--muted)}
#assemblyApp .reader-pager button{width:40px;height:32px;font-size:19px}
#assemblyApp .page-strip{display:flex;gap:6px;overflow:auto;margin:10px 0 18px;padding:2px 0 7px;scrollbar-width:none}
#assemblyApp .page-thumb{width:35px;height:47px;padding:0;position:relative;flex:none;opacity:.55;border:2px solid transparent;border-radius:4px;overflow:hidden}
#assemblyApp .page-thumb img{width:100%;height:100%;object-fit:cover}
#assemblyApp .page-thumb.active{opacity:1;border-color:var(--blue)}
#assemblyApp .page-thumb span{position:absolute;bottom:0;left:0;right:0;background:#193c4e8a;color:white;font-size:8px}
#assemblyApp .reader-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#assemblyApp .reader-tools button{border:1px solid #d6e0d8;min-height:47px;border-radius:8px;font-size:12px}
#assemblyApp .reader-tools b{font-size:19px;margin-right:5px;font-family:Georgia}
#assemblyApp .subnav{display:flex;justify-content:space-between;margin-top:18px}
#assemblyApp .order-card{display:flex;gap:15px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:13px;margin:19px 0}
#assemblyApp .order-card img{width:69px;height:92px;object-fit:cover;box-shadow:3px 3px 0 #d7ded3}
#assemblyApp .order-card b{font-size:14px}
#assemblyApp .order-card p{font-size:10px;color:var(--muted);margin-top:6px}
#assemblyApp .price-breakdown{border-top:1px solid var(--line);margin-top:21px;padding-top:13px}
#assemblyApp .price-row{display:flex;justify-content:space-between;padding:5px 0;font-size:11px}
#assemblyApp .price-row.discount{color:var(--green)}
#assemblyApp .price-row.total{font-size:16px;font-weight:bold;margin-top:7px;padding-top:12px;border-top:1px solid var(--line)}
#assemblyApp details{margin-top:18px}
#assemblyApp summary{font-size:11px;cursor:pointer;color:#657d70}
#assemblyApp .promo-line{display:flex;gap:7px;margin-top:12px}
#assemblyApp .promo-line input{min-width:0}
#assemblyApp .promo-line button{border:1px solid #d3ddd5;border-radius:8px;padding:0 12px;font-size:11px}
#assemblyApp .promo-status{font-size:10px;margin-top:8px;color:var(--green)}
#assemblyApp .delivery{padding:16px;border:1px solid var(--line);border-radius:10px;margin-top:21px}
#assemblyApp .delivery-head{display:flex;justify-content:space-between;font-size:11px}
#assemblyApp .delivery-head b{color:#65896b}
#assemblyApp .delivery p{font-size:10px;color:var(--muted);margin:8px 0}
#assemblyApp .delivery .link{font-size:10px}
#assemblyApp .order-contact{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#assemblyApp .order-contact .wide{grid-column:1/-1}
#assemblyApp .order-contact label{font-size:10px}
#assemblyApp .order-contact input{margin-top:6px}
#assemblyApp .legal{font-size:9px;color:#8a9690;line-height:1.6;margin:17px 0}
#assemblyApp .success-mark{height:67px;width:67px;margin:25px auto 20px;display:grid;place-items:center;border-radius:50%;background:#e5eee3;color:#63835d;font-size:28px}
#assemblyApp .receipt-title{text-align:center}
#assemblyApp .receipt-title h2{font-size:32px}
#assemblyApp .receipt-title p{font-size:11px;color:var(--muted);margin-top:10px}
#assemblyApp .timeline{margin:30px 7px 24px}
#assemblyApp .timeline-item{position:relative;padding:0 0 24px 30px;border-left:1px solid #d6e1d6;margin-left:8px}
#assemblyApp .timeline-item:before{content:'';height:11px;width:11px;background:#e6ede4;border:3px solid var(--paper);outline:1px solid #cddacb;position:absolute;left:-6px;top:3px;border-radius:50%}
#assemblyApp .timeline-item.active:before{background:#6c9270}
#assemblyApp .timeline-item:last-child{border-left-color:transparent}
#assemblyApp .timeline-item b{font-size:12px;font-weight:600}
#assemblyApp .timeline-item p{font-size:10px;color:var(--muted);margin-top:5px}
#assemblyApp .receipt-mail{font-size:10px;text-align:center;color:var(--muted);padding:13px;background:#edf2eb;border-radius:9px}
#assemblyApp .review{position:fixed;top:65px;left:max(28px,calc(50% - 570px));width:245px}
#assemblyApp .review-brand{font-size:23px;font-weight:bold;letter-spacing:-1px}
#assemblyApp .review-brand span{display:block;font-size:8px;letter-spacing:1.9px;color:#88968e;margin-top:9px;font-weight:400}
#assemblyApp .review h1{font:37px/1.05 Editorial,Georgia;letter-spacing:-.9px;margin:54px 0 18px}
#assemblyApp .review>p{font-size:11px;line-height:1.8;color:#7c8c81;max-width:180px}
#assemblyApp .review nav{display:flex;flex-direction:column;gap:5px;margin:30px 0}
#assemblyApp .review nav button{text-align:left;padding:10px 12px;border-radius:7px;font-size:11px;color:#7f8e83;display:flex;gap:12px}
#assemblyApp .review nav button.active{background:#dce6dc;color:#254a3a}
#assemblyApp .review-note{font-size:10px;margin-top:45px;color:#68816f;max-width:190px}
#assemblyApp .review-note p{font-size:10px;color:#91a093;line-height:1.7;margin-top:9px}
#assemblyApp .dot{display:inline-block;height:5px;width:5px;background:#6f9274;border-radius:50%;margin-right:7px}
#assemblyApp dialog{border:0;padding:22px;background:var(--paper);color:var(--ink);width:min(430px,100%);max-height:90dvh;border-radius:20px 20px 0 0;position:fixed;margin:auto auto 0;overscroll-behavior:contain}
#assemblyApp dialog::backdrop{background:#122a38aa;backdrop-filter:blur(3px)}
#assemblyApp .sheet-handle{width:32px;height:3px;background:#cfdbd1;border-radius:2px;margin:-9px auto 20px}
#assemblyApp #sheet h3{font-size:21px;margin-bottom:16px}
#assemblyApp #sheet p{font-size:11px;color:var(--muted);margin-bottom:20px}
#assemblyApp #sheet .primary{margin-top:17px}
#assemblyApp #sheet .secondary{margin-top:8px}
#assemblyApp #viewer{inset:0;margin:auto;max-width:none;max-height:none;width:100%;height:100dvh;border-radius:0;background:#1b303b;color:#f6f5ea;overflow:auto}
#assemblyApp .viewer-head{display:flex;justify-content:space-between;align-items:center;font-size:11px}
#assemblyApp .view-stage{height:65dvh;display:grid;place-items:center;perspective:1400px;touch-action:none}
#assemblyApp .volume{height:min(49dvh,500px);aspect-ratio:3/4;position:relative;transform-style:preserve-3d;transform:rotateX(-7deg) rotateY(-25deg);will-change:transform}
#assemblyApp .volume>img{width:100%;height:100%;object-fit:cover;position:relative;box-shadow:10px 15px 40px #0005}
#assemblyApp .volume-pages{position:absolute;inset:3px -7px 3px 0;background:repeating-linear-gradient(90deg,#f5f4e8 0,#f5f4e8 1px,#ccd0c4 1px,#ccd0c4 2px);transform:translateZ(-3px)}
#assemblyApp .viewer-hint{font-size:10px;text-align:center;color:#a1b4b8}
#assemblyApp .viewer-actions{display:flex;border:1px solid #526670;border-radius:24px;max-width:260px;margin:25px auto 8px;padding:4px}
#assemblyApp .viewer-actions button{color:#c0d0d3;border-radius:20px;font-size:11px;flex:1;padding:11px}
#assemblyApp .viewer-actions .selected{background:#f0f0e7;color:#243e49}
#assemblyApp .viewer-turn{display:flex;justify-content:center;align-items:center;gap:35px;font-size:11px}
#assemblyApp .viewer-turn button{color:white;width:40px;height:40px;font-size:24px}
#assemblyApp #toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#1c3540ed;color:white;padding:12px 18px;border-radius:9px;font-size:11px;z-index:1000;max-width:85%;display:none;box-shadow:0 7px 25px #0002}
#assemblyApp .edit-sample{aspect-ratio:210/297;max-height:55dvh;position:relative;overflow:hidden;background:#d5e1d9}
#assemblyApp .edit-sample img{width:100%;height:100%;object-fit:cover}
#assemblyApp .edit-sample .page-annotation{touch-action:none;cursor:move}
#assemblyApp .editor-type-bar{display:flex;justify-content:space-between;padding:12px 0}
#assemblyApp .editor-type-bar button{border:1px solid #d0ddd2;border-radius:7px;padding:8px 13px}
#assemblyApp .range-label{font-size:10px;display:flex;gap:10px;align-items:center;margin:12px 0}
#assemblyApp .range-label input{flex:1}
#assemblyApp input[type=range]{accent-color:var(--blue)}
@keyframes turn{to{transform:rotate(360deg)}}
@keyframes loading{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}
@media(min-width:1050px){#assemblyApp{margin-left:calc(50% - 105px)}}
@media(max-width:1049px){#assemblyApp .review{display:none}}
@media(max-width:520px){#assemblyApp{background:var(--paper)}
#assemblyApp{max-width:none;margin:0;border:0;border-radius:0;min-height:100dvh;box-shadow:none}
#assemblyApp main{min-height:calc(100dvh - 248px)}
#assemblyApp .demo-strip{height:20px;font-size:7px}
#assemblyApp .topbar{height:56px}
#assemblyApp .steps{padding-top:15px}
#assemblyApp .dock{padding-bottom:max(16px,env(safe-area-inset-bottom))}
#assemblyApp .cover-stage{width:82%;max-width:300px}
#assemblyApp dialog{width:100%}}
@media(orientation:landscape) and (max-height:550px){#assemblyApp #viewer .view-stage{height:75dvh}
#assemblyApp .volume{height:65dvh}
#assemblyApp .viewer-head{position:absolute;left:22px;right:22px}
#assemblyApp .viewer-actions{position:absolute;bottom:10px;right:20px;width:190px}
#assemblyApp .viewer-hint{display:none}}
@media(prefers-reduced-motion:reduce){#assemblyApp *,#assemblyApp *:before{animation:none!important;scroll-behavior:auto!important}}
#assemblyApp .upload-card{height:180px}
#assemblyApp .upload-card.has-photo{height:190px}
#assemblyApp .cover-stage{width:clamp(190px,calc((100dvh - 420px)*.75),280px)}
#assemblyApp .page-stage .page-art{width:clamp(190px,calc((100dvh - 400px)*.707),310px);max-width:100%;margin:auto}
#assemblyApp main{min-height:520px}
@media(max-width:520px){#assemblyApp main{min-height:calc(100dvh - 248px)}
#assemblyApp .cover-stage{width:clamp(180px,calc((100dvh - 370px)*.75),300px)}}
#assemblyApp .volume>.page-art{width:100%;height:100%;box-shadow:10px 15px 40px #0005}
#assemblyApp .cover-stage{width:clamp(170px,calc((100dvh - 490px)*.75),280px)}
#assemblyApp .cover-actions{margin-top:16px}
#assemblyApp .cover-actions{display:block}
#assemblyApp .cover-actions button{width:100%}
#assemblyApp .custom-cover{position:relative;overflow:hidden}
#assemblyApp #sheet.stories-editor{height:100dvh;max-height:100dvh;border-radius:0;background:#192d38;color:white}
#assemblyApp #sheet.stories-editor .edit-sample{height:45dvh;margin:auto;width:auto}
#assemblyApp #sheet.stories-editor .field{color:#1c3540}
#assemblyApp #sheet.stories-editor .sheet-handle{display:none}
#assemblyApp #waitingDetail{font-size:12px;line-height:1.6;margin:14px 0;color:#61757b}
#assemblyApp #waitingSource{font-size:10px;text-decoration:underline}
#assemblyApp .loading-copy{min-height:220px}
#assemblyApp .page-stage{position:relative}
#assemblyApp .photo-text-action{position:absolute;right:12px;top:12px;z-index:4;display:flex;align-items:center;justify-content:center;gap:2px;min-width:48px;height:44px;border-radius:13px;background:#17333ce8;color:#fff;border:1px solid #ffffffaa;box-shadow:0 3px 12px #0003;font-size:22px;backdrop-filter:blur(8px)}
#assemblyApp .photo-text-action sup{font-size:16px;align-self:flex-start;margin-top:5px}
#assemblyApp .reader-tools{grid-template-columns:1fr}
#assemblyApp .reader-tools>button{width:100%}
#assemblyApp button.step{padding:0;text-align:left;background:none;border:0;border-radius:0}
#assemblyApp button.step:not(:disabled){cursor:pointer}
#assemblyApp button.step:disabled{opacity:1}
#assemblyApp .photo-composition{position:absolute;inset:0;display:grid;gap:3px;background:#fff;overflow:hidden}
#assemblyApp .photo-composition img{width:100%;height:100%;min-height:0;min-width:0;object-fit:cover}
#assemblyApp .photo-composition.pair-stack{grid-template-rows:1fr 1fr}
#assemblyApp .photo-composition.pair-side{grid-template-columns:1fr 1fr}
#assemblyApp .photo-composition.trio{grid-template:1fr 1fr / 1fr 1fr}
#assemblyApp .photo-composition.trio img:first-child{grid-column:1/3}
#assemblyApp .cover-paper,#assemblyApp .custom-cover{aspect-ratio:210/297;container-type:inline-size}
#assemblyApp .cover-paper>.custom-cover{width:100%;height:100%;position:absolute;inset:0}
#assemblyApp .custom-cover>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
#assemblyApp .custom-cover .custom-title,#assemblyApp .manual-preview .custom-title{font-size:14cqw;line-height:1;overflow-wrap:normal;word-break:normal;top:6%}
#assemblyApp .custom-cover .custom-subtitle,#assemblyApp .manual-preview .custom-subtitle{font-size:5cqw;top:32%;line-height:1.2}
#assemblyApp .waiting-lettering{position:absolute;width:176px;height:235px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-7deg);pointer-events:none;color:white;text-shadow:0 1px 5px #0007;overflow:hidden}
#assemblyApp .waiting-lettering b,#assemblyApp .waiting-lettering span,#assemblyApp .waiting-lettering i{position:absolute;display:block;clip-path:inset(0 100% 0 0);animation:lettering-reveal 12s infinite}
#assemblyApp .waiting-lettering b{top:10px;left:10px;font:700 25px/1 Georgia}
#assemblyApp .waiting-lettering span{left:10px;top:118px;font:700 12px/1.2 Manrope;animation-delay:2s}
#assemblyApp .waiting-lettering i{bottom:15px;right:10px;font:italic 13px/1.2 Georgia;text-align:right;animation-delay:4s}
#assemblyApp .waiting-demo-note{display:block;text-align:center;font-size:9px;color:var(--muted);margin-top:-10px}
@keyframes lettering-reveal{0%,7%{clip-path:inset(0 100% 0 0);opacity:0}18%,65%{clip-path:inset(0);opacity:1}85%,100%{clip-path:inset(0);opacity:0}}
@media(prefers-reduced-motion:reduce){#assemblyApp .waiting-lettering b,#assemblyApp .waiting-lettering span,#assemblyApp .waiting-lettering i{animation:none;clip-path:none;opacity:1}}
#assemblyApp .selected-cover-preview{width:69px;aspect-ratio:210/297;flex:0 0 69px;position:relative;overflow:hidden;box-shadow:2px 3px 5px #17333c25}
#assemblyApp .selected-cover-preview>.custom-cover{width:100%;height:100%;position:relative}
#assemblyApp .order-card .selected-cover-preview img,#assemblyApp .small-cover .selected-cover-preview img{width:100%;height:100%;object-fit:cover;box-shadow:none}
#assemblyApp img.ai-cover-source{object-fit:contain!important;object-position:center!important;background:#17333c}
/* Live bridge: the original DOM remains available to the proven API/editor code. */
#studio{max-width:none;padding:0;background:#e9eeeb;min-height:100vh}
#studio>.studio-top,#studio>#wizard,#studio>#editor,#studio>.storage-note{display:none!important}
#assemblyApp{--ink:#1c3540;--muted:#77858a;--blue:#2e617a;--paper:#fafbf8;--line:#e1e7e5;--soft:#edf2ef;--green:#42715f;font:14px/1.5 Manrope,Arial,sans-serif;color:var(--ink);width:100%;max-width:600px;margin:0 auto;min-height:100dvh;border-radius:0;overflow:visible;background:var(--paper)}
#assemblyScreen{padding:10px 22px 24px;min-height:55vh}
#assemblyApp .topbar b{font-size:21px;letter-spacing:-1px}
#assemblyApp .topbar button{min-width:44px;min-height:44px;font-size:24px}
#assemblyApp .steps{margin:0;background:none;width:100%}
#assemblyApp .themes{margin:0;padding:0;display:flex;gap:8px}
#assemblyApp .cover-actions{grid-template-columns:1fr}
#assemblyApp .cover-paper{aspect-ratio:210/297}
#assemblyApp .cover-paper>img{width:100%;height:100%;object-fit:contain;background:#142534}
#assemblyApp .page,#spreadViewer .page{width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:210/297;margin:0;border-radius:0;box-shadow:none;container-type:inline-size}
#assemblyApp .page-inner,#spreadViewer .page-inner{width:100%;height:100%}
#assemblyApp .page-tools,#spreadViewer .page-tools{display:none!important}
#assemblyApp .free-text{pointer-events:none}#assemblyApp #assemblyReader .free-text{pointer-events:auto;cursor:text}
#assemblyApp .page-stage{padding:10px;touch-action:pan-y}
#assemblyApp .photo-text-action{position:absolute;right:18px;top:18px;z-index:5;min-width:44px;min-height:44px;background:#173847d9;color:white;border:1px solid #fff6;border-radius:9px}
#assemblyApp .assembly-small-art{width:40px;height:57px;flex:none;overflow:hidden;position:relative}
#assemblyApp .assembly-small-art>img{width:100%;height:100%;object-fit:contain}
#assemblyApp .assembly-order-art{width:78px;height:110px;flex:none;position:relative;overflow:hidden}
#assemblyApp .assembly-order-art img{width:100%;height:100%;box-shadow:none}
#assemblyApp .checkout-box{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#assemblyApp .checkout-box>.checkout-eyebrow,#assemblyApp .checkout-box>h3,#assemblyApp .checkout-invitation{display:none}
#assemblyApp .checkout-box label{display:block;margin-top:18px}
#assemblyApp .checkout-box select,#assemblyApp .checkout-box input{width:100%;min-height:48px;border:1px solid #d8e1da;border-radius:9px;padding:10px;background:white;color:var(--ink)}
#assemblyApp .checkout-benefits{display:grid;gap:6px;font-size:12px}
#assemblyApp .checkout-detail{font-size:12px;line-height:1.5;margin:12px 0;color:#667b72}
#assemblyApp .checkout-total{font-size:28px;margin:16px 0}
#assemblyApp .checkout-promo{display:flex;gap:8px}
#assemblyApp .checkout-promo button{border:1px solid #d8e1da;border-radius:9px;padding:8px}
#assemblyApp .assembly-pending{font-size:12px;margin-bottom:15px}
#assemblyApp .loading-art .assembly-loading-photo{position:relative;height:235px;width:176px;transform:rotate(-7deg);overflow:hidden;box-shadow:0 14px 30px #193d3320}
#assemblyApp .assembly-loading-photo img{width:100%;height:100%;object-fit:cover;transform:none;border:0;box-shadow:none}
#assemblyApp .assembly-type-on{position:absolute;inset:8% 7%;font:bold 28px/1 Georgia;color:white;text-shadow:0 2px 6px #0008;animation:assemblyType 8s ease infinite}
#assemblyApp .assembly-type-on small{display:block;margin-top:80px;font:13px/1.2 Manrope,Arial}
#assemblyApp .loading-copy p{font-size:13px;color:var(--muted)}
.ai-integrated-cover .photo-frame img{object-fit:contain!important;object-position:center!important;background:#142534}
@keyframes assemblyType{0%,10%{clip-path:inset(0 100% 0 0);opacity:0}30%,85%{clip-path:inset(0);opacity:1}100%{opacity:0}}
@media(max-width:640px){#assemblyApp{border:0;box-shadow:none}#assemblyScreen{padding:10px 18px 20px}#assemblyApp .dock{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){#assemblyApp *{animation:none!important}}
@font-face{font-family:Editorial;src:url(assets/fonts/75407d221885.ttf)}
#assemblyApp .cover-stage{width:min(82%,320px)}#assemblyApp .page-stage .page-art{width:min(100%,400px)}body.assembly-active>header{display:none}body.assembly-active>footer{display:none}

#assemblyApp .assembly-reset{text-align:center;padding:18px;color:#77858a}#assemblyApp .assembly-replace-photo{display:block;position:relative;text-align:center;margin:16px 0;cursor:pointer}

/* Preserve the entire generated cover at its native aspect ratio. */
#assemblyApp .cover-paper.native-ai{aspect-ratio:auto;background:transparent}
#assemblyApp .cover-paper.native-ai>img{position:static;display:block;width:100%;height:auto;object-fit:contain;background:transparent}
#assemblyApp .cover-actions{display:grid;gap:12px}

#assemblyApp .assembly-reset[hidden]{display:none!important}
#mobileEditor #storyRotate:not([hidden]){display:flex;align-items:center;justify-content:center;min-width:44px;height:42px;padding:0 6px;font-size:14px}
#mobileEditor #storyRotationControl input{touch-action:none;min-height:36px}

#mobileEditor #storyRotate,#mobileEditor #storyRotationControl{display:none!important}

/* Full photo preview before cover generation; compact secondary actions. */
#assemblyApp .upload-card.has-photo{height:auto;width:min(100%,250px);margin:0 auto;background:transparent;border:0;border-radius:10px;display:flex;flex-direction:column;gap:10px;overflow:visible}
#assemblyApp .upload-card.has-photo>img{display:block;width:100%;height:clamp(160px,30dvh,270px);object-fit:contain;object-position:center;border-radius:8px}
#assemblyApp .upload-card.has-photo label{position:relative;inset:auto;align-self:center;background:#fff;border:1px solid #d5dfd8;border-radius:8px;font-size:12px}
#assemblyApp .upload-card.has-photo+.upload-ok{justify-content:center;font-size:13px;margin:12px 0 20px}
#assemblyApp .assembly-reset{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 22px}
#assemblyApp #assemblyReset{margin-left:auto}
#assemblyApp #assemblySaveLater[hidden]{display:none}
#assemblyApp .reader-ready-note{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 12px}
#assemblyApp .reader-top h2{font-size:clamp(26px,4vw,38px);line-height:1.12}
#assemblyApp #spreadViewer #spreadNext,#assemblyApp #spreadViewer #spreadMode{border-radius:4px;padding:7px 14px}

#assemblyApp .reader-top{display:block}
#assemblyApp .reader-top h2{font-size:clamp(25px,4vw,32px)}

/* Compact uploaded photo keeps category choice in view. */
#assemblyApp.cover-upload-step .upload-card.has-photo{width:min(100%,180px);gap:6px}
#assemblyApp.cover-upload-step .upload-card.has-photo>img{height:clamp(72px,14dvh,130px)}
#assemblyApp.cover-upload-step .upload-card.has-photo+.upload-ok{margin:8px 0 10px;font-size:12px}
#assemblyApp.cover-upload-step .section-label{margin:12px 0 4px}
#assemblyApp.cover-upload-step .subtitle{margin-bottom:12px}
#assemblyApp.cover-upload-step .chip{padding:8px 10px}
#assemblyApp.cover-upload-step #assemblyScreen{padding-top:6px;padding-bottom:12px}
@media(max-width:600px){#assemblyApp.cover-upload-step h2{font-size:26px;margin:5px 0 8px}}

 /* Cover setup follows its content instead of reserving an empty screen. */
#assemblyApp.cover-upload-step #assemblyScreen{min-height:0;padding-bottom:14px}
#assemblyApp.cover-upload-step #assemblyDock{position:static;padding-top:12px;padding-bottom:16px;border-top:0;background:transparent;backdrop-filter:none}
#assemblyApp.cover-upload-step .steps{padding-top:12px;padding-bottom:10px}
#assemblyApp.cover-upload-step .topbar{height:54px}

/* Fit the cover setup to the available phone screen, keeping a useful preview. */
#assemblyApp.cover-upload-step{display:flex;flex-direction:column;min-height:100dvh}
#assemblyApp.cover-upload-step #assemblyScreen{flex:1;min-height:0}
#assemblyApp.cover-upload-step #assemblyDock{margin-top:auto;flex:none}
#assemblyApp.cover-upload-step .upload-card.has-photo{width:min(100%,260px)}
#assemblyApp.cover-upload-step .upload-card.has-photo>img{height:clamp(140px,calc(100dvh - 430px),310px)}
#assemblyApp.cover-upload-step .upload-card.has-photo+.upload-ok{margin:6px 0}
#assemblyApp.cover-upload-step .section-label{margin-top:8px}
#accountDialog .marketing-choice{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;margin:12px 0}
#accountDialog .marketing-choice input{width:18px;min-width:18px;height:18px;margin:3px 0 0;accent-color:#2e617a}
#accountDialog .email-purpose{font-size:12px;color:#64777e;margin:8px 0 14px}

#testCheckout .marketing-choice{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;margin:14px 0}
#testCheckout .marketing-choice input{width:18px;min-width:18px;height:18px;margin:3px 0 0;accent-color:#2e617a}

#entryEmailDialog{width:min(440px,calc(100% - 32px));padding:24px;border:1px solid #dce5df;border-radius:16px;background:#fafbf8;color:#1c3540}
#entryEmailDialog::backdrop{background:#18343b66}
#entryEmailClose{display:block;margin-left:auto;background:none;border:0;font-size:20px;width:36px;height:36px}
#entryEmailDialog h2{font-size:26px;margin:0 0 12px}
#entryEmailDialog p{font-size:14px;line-height:1.5}
#entryEmailDialog label{display:block;margin:18px 0}
#entryEmailDialog input{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:14px;border:1px solid #ccd8d4;border-radius:8px;font-size:16px}
#entryEmailContinue{width:100%;padding:15px;border:0;border-radius:9px;background:#2e617a;color:white;font-size:16px}
#entryEmailMessage:empty{display:none}

#entryEmailDialog{box-sizing:border-box;padding-top:32px}
#entryEmailDialog #entryEmailTitle{padding-right:32px}
#entryEmailDialog #entryEmailClose{position:absolute;top:10px;right:10px;display:grid;place-items:center;box-sizing:border-box;margin:0;padding:0;width:40px;height:40px;min-width:40px;min-height:40px;border:0;border-radius:50%;background:#edf2ef;color:#526b73;cursor:pointer}
#entryEmailClose svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#entryEmailDialog #entryEmailClose:hover{background:#e1e9e5}
#entryEmailDialog #entryEmailClose:focus-visible{outline:2px solid #2e617a;outline-offset:2px}

#assemblyApp .assembly-native-file{position:fixed;left:0;bottom:0;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
#assemblyApp label[for="assemblyCoverFile"],#assemblyApp label[for="assemblyPhotosFile"]{touch-action:manipulation;cursor:pointer}

/* Activity, not an estimated completion percentage. */
#assemblyApp .primary.is-generating:disabled{position:relative;overflow:hidden;isolation:isolate;opacity:1;background:#426b7c;color:#fff;cursor:wait;gap:10px}
#assemblyApp .primary.is-generating:before{content:"";display:block;flex:0 0 16px;width:16px;height:16px;box-sizing:border-box;border:2px solid #ffffff40;border-top-color:#fff;border-radius:50%;animation:cover-button-spin 1s linear infinite}
#assemblyApp .primary.is-generating:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,transparent 30%,#ffffff20 50%,transparent 70%);transform:translateX(-100%);animation:cover-button-sheen 2.8s ease-in-out infinite;pointer-events:none}
@keyframes cover-button-spin{to{transform:rotate(360deg)}}
@keyframes cover-button-sheen{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){#assemblyApp .primary.is-generating:before,#assemblyApp .primary.is-generating:after{animation:none}#assemblyApp .primary.is-generating:after{display:none}}

/* Referral discounts: compact controls in mobile checkout and account. */
#assemblyApp .checkout-box .checkout-bonus,.checkout-box .checkout-bonus{display:flex;align-items:center;gap:10px;line-height:1.4}
#assemblyApp .checkout-box #checkoutUseBonus,#checkoutUseBonus{width:20px;min-width:20px;height:20px;min-height:20px;padding:0;margin:0;accent-color:#2e617a}
.account-referrals{padding:18px;border:1px solid #d8e1da;border-radius:12px;margin:16px 0;background:#f4f8f5}
.account-referrals h3{font-size:20px;margin:0 0 12px}.account-referrals p{overflow-wrap:anywhere}

/* Visible removal control with a comfortable touch target. */
#assemblyApp .photo-tile .remove{right:0;top:0;width:44px;height:44px;min-height:0;padding:6px;border:0;border-radius:0;background:transparent;display:grid;place-items:center;touch-action:manipulation}
#assemblyApp .photo-tile .remove span{width:28px;height:28px;display:grid;place-items:center;background:#162d38e6;border:1px solid #ffffffb3;border-radius:50%;color:#fff;font-size:23px;line-height:1;box-shadow:0 1px 4px #0005}
#assemblyApp .photo-tile .remove:focus-visible{outline:2px solid #fff;outline-offset:-3px}

#assemblyApp .assembly-title-field{display:block;font-family:inherit;font-weight:600;font-size:12px;margin:12px 0}
#assemblyApp .assembly-title-field input{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px 12px;border:1px solid #cddbd6;border-radius:8px;background:#fff;color:#1c3540;font-family:inherit;font-size:16px;font-weight:400;line-height:1.35;min-height:44px}
#assemblyApp .assembly-title-field input::placeholder{font-size:13px;color:#71838a;font-weight:400}

/* Keep one document scroll range, based on visible content and the small viewport. */
body.assembly-active{min-height:100svh;height:auto;padding-bottom:0}
body.assembly-active #studio{min-height:100svh;height:auto;margin-bottom:0;padding-bottom:0;overflow:clip}
body.assembly-active #assemblyApp{display:flex;flex-direction:column;min-height:100svh;height:auto;margin-bottom:0;overflow:clip}
body.assembly-active #assemblyApp #assemblyScreen{flex:1 0 auto;min-height:0;height:auto}
body.assembly-active #assemblyApp #assemblyDock,
body.assembly-active #assemblyApp .assembly-reset{flex:none;margin-bottom:0}

/* Desktop workspace; phone and tablet layouts remain unchanged. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
#assemblyApp{max-width:none;width:100%;margin:0;border:0;box-shadow:none}
#assemblyApp .topbar,#assemblyApp .steps{padding-left:40px;padding-right:40px}
#assemblyApp #assemblyScreen{width:100%;max-width:1200px;margin:0 auto;padding:24px 40px 32px}
#assemblyApp .photo-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#assemblyApp .themes{flex-wrap:wrap}
#assemblyApp .assembly-title-field{display:block;max-width:640px}
#assemblyApp .cover-stage{width:min(42vw,400px)}
#assemblyApp .cover-actions{max-width:640px;margin-left:auto;margin-right:auto}
#assemblyApp #assemblyDock{padding-left:40px;padding-right:40px}
#assemblyApp #assemblyDock>.primary{display:block;max-width:640px;margin-left:auto;margin-right:auto}
#assemblyApp .checkout-box{max-width:760px;margin-left:auto;margin-right:auto}
body.assembly-reading #assemblyApp #assemblyScreen{max-width:none}
#assemblyApp #spreadViewer.embedded{height:clamp(480px,calc(100svh - 230px),1000px)}
#assemblyApp .assembly-reset{padding-left:40px;padding-right:40px}
}

/* Center desktop form headings and supporting copy without touching page artwork. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
#assemblyApp .assembly-title-field{margin-left:auto;margin-right:auto;text-align:center}
#assemblyApp .assembly-title-field input{text-align:center}
#assemblyApp #assemblyScreen>h2,#assemblyApp #assemblyScreen>p,#assemblyApp #assemblyScreen>.eyebrow,#assemblyApp #assemblyScreen>.section-label,#assemblyApp #assemblyScreen>.loading-copy{text-align:center}
#assemblyApp #assemblyScreen>.eyebrow{display:block}
#assemblyApp #assemblyScreen>.section-label{justify-content:center;gap:12px}
#assemblyApp .reader-top>h2,#assemblyApp .reader-ready-note{text-align:center}
#assemblyApp .themes{justify-content:center}
#assemblyApp .checkout-box{text-align:center}
#assemblyApp #assemblyDock>.checkout-detail,#assemblyApp #assemblyDock>.dock-note{display:block;width:100%;max-width:760px;box-sizing:border-box;text-align:center;margin-left:auto;margin-right:auto}
}

@media (min-width:1101px) and (hover:hover) and (pointer:fine){
#assemblyApp .gloss-controls{text-align:center}
#assemblyApp .gloss-controls .section-label{justify-content:center;text-align:center}
#assemblyApp .gloss-controls .themes{justify-content:center}
}

/* Desktop order: one 640px column aligned with the checkout button. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
#assemblyApp:has(#assemblyScreen>.checkout-box) #assemblyScreen{max-width:720px;margin-left:auto;margin-right:auto;text-align:left}
#assemblyApp:has(#assemblyScreen>.checkout-box) #assemblyScreen>h2,#assemblyApp:has(#assemblyScreen>.checkout-box) #assemblyScreen>.eyebrow,#assemblyApp:has(#assemblyScreen>.checkout-box) #assemblyScreen>p{text-align:left}
#assemblyApp #assemblyScreen>.checkout-box{width:100%;max-width:none;margin:0;text-align:left}
#assemblyApp .checkout-box label,#assemblyApp .checkout-box p,#assemblyApp .checkout-box .checkout-total,#assemblyApp .checkout-box .checkout-detail{text-align:left}
#assemblyApp .checkout-box select,#assemblyApp .checkout-box .checkout-promo{width:100%;max-width:none;margin-left:0;margin-right:0}
#assemblyApp .checkout-box .checkout-promo input{flex:1;min-width:0}
#assemblyApp .checkout-box .checkout-promo button{flex:none;padding-left:18px;padding-right:18px}
#assemblyApp:has(#assemblyScreen>.checkout-box) #assemblyDock>.checkout-detail{max-width:640px;text-align:left}
#assemblyApp:has(#assemblyScreen>.checkout-box) .order-card{width:100%;text-align:left}
}

/* Reserve a right-hand action slot without moving the mode buttons. */
@media (min-width:1101px) and (hover:hover) and (pointer:fine){
#assemblyApp .gloss-controls .themes{display:flex;justify-content:center;align-items:center;gap:8px;width:max-content;max-width:100%;margin-left:auto;margin-right:auto;position:relative}
#assemblyApp .gloss-controls [data-assembly=gloss-change]{position:absolute;left:calc(100% + 8px);top:0;white-space:nowrap}
}

@media (min-width:1101px) and (hover:hover) and (pointer:fine){
#assemblyApp .gloss-controls{margin-left:var(--gloss-book-left,0px);text-align:left}
#assemblyApp .gloss-controls .section-label{justify-content:flex-start;text-align:left}
#assemblyApp .gloss-controls .themes{justify-content:flex-start;margin-left:0;margin-right:0}
}
@media (max-width:1100px),(hover:none),(pointer:coarse){
#assemblyApp .gloss-controls{margin-bottom:16px}
}

/* Keep save/new actions on one row, including compact phone screens. */
#assemblyApp .assembly-reset{flex-wrap:nowrap;gap:10px;align-items:center}
#assemblyApp .assembly-reset>.link{flex:0 1 auto;width:auto;min-width:0;min-height:44px;margin-top:0;margin-bottom:0;padding:8px 0;white-space:nowrap;line-height:1.35}
@media(max-width:600px){#assemblyApp .assembly-reset{padding:10px 14px}#assemblyApp .assembly-reset>.link{font-size:clamp(10px,2.8vw,12px)}}
