*{box-sizing:border-box}body{margin:0;background:#f7f7f2;color:#263d35;font:14px Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;background:white;border:1px solid #dcded6;border-radius:9px;padding:11px 14px}button:hover{border-color:#496c55}button:focus-visible{outline:3px solid #b0c986}header{height:90px;border-bottom:1px solid #dedfd6;display:flex;align-items:center;gap:14px;padding:0 5%}header>span{flex:1;color:#85897d;margin-left:30px}.brand{text-decoration:none;color:#263d35;font-weight:800;font-size:23px;letter-spacing:-1px}.brand span{display:block;font-size:16px;letter-spacing:1px}main{max-width:1340px;margin:auto;padding:48px 40px}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:bold;color:#7b876c}h1{font:48px/1.12 Georgia,serif;margin:18px 0}h1 em{font-weight:normal;color:#6c8057}.intro p{color:#818577}.steps{display:flex;align-items:center;gap:38px;border-bottom:1px solid #dedfd6;padding:32px 0 23px;margin-bottom:28px;color:#9a9e90}.steps b{color:#324c3d}.steps b span{margin-left:12px}.steps small{margin-left:auto;font-size:11px}.workspace{display:grid;grid-template-columns:325px 1fr;gap:32px}aside{background:white;border:1px solid #e1e3db;border-radius:15px;align-self:start}section{padding:22px;border-bottom:1px solid #eceee5}section:last-child{border:0}h2{font-size:14px;margin:0 0 17px}h2 i{font-style:normal;font-size:11px;background:#edf0e6;border-radius:50%;padding:5px 8px;margin-right:9px}.formats{display:flex;gap:10px}.formats button{flex:1;text-align:left;padding:14px}.formats strong{font:27px Georgia;display:block}.formats span,.formats small{display:block;margin-top:7px;font-size:10px;color:#858b7e}.selected{border-color:#697f50!important;background:#f1f4e9}.muted{font-size:11px;color:#858b7e;line-height:1.6}.model{width:100%;display:flex;gap:12px;align-items:center;text-align:left;margin-top:10px;padding:10px}.model b{font-size:12px}.model small{display:block;font-size:10px;color:#818777;margin-top:5px}.swatch{width:39px;height:48px;display:grid;place-items:center;flex-shrink:0;border-radius:3px;font:28px Georgia}.swatch span{font-size:15px}.peach{background:#edc2a8}.green{background:#3f6652;color:#dbe9af}.blank{background:white;border:1px dashed #bdc4b2}.upload{width:100%;border:1px dashed #a9b89a;background:#f8faf4;font-size:12px}.upload span{display:block;font-size:10px;color:#8b9480;margin-top:7px}article{min-width:0}.toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.toolbar small{display:block;color:#8d9485;font-size:10px;margin-top:6px}.toolbar button{font-size:11px}.stage{padding:34px;min-height:560px;background:#e9ece3;border-radius:14px;display:flex;align-items:center;justify-content:center;background-image:radial-gradient(#cbd2c2 .7px,transparent .7px);background-size:12px 12px}#paper{position:relative;width:365px;aspect-ratio:210/297;background:#fffefa;box-shadow:0 12px 28px #263d3526;overflow:hidden;background-size:cover;background-position:center}.page-heading{position:absolute;left:8%;top:7%;font:26px Georgia;max-width:84%}.page-sub{position:absolute;left:8%;top:16%;font-size:8px;letter-spacing:2px}.cover-title{position:absolute;left:10%;top:16%;font:45px/1.08 Georgia;width:80%}.cover-decor{position:absolute;bottom:11%;left:11%;font-size:90px;color:#8e9f65}.cover-foot{position:absolute;bottom:7%;right:9%;font-size:8px;letter-spacing:2px}.slot{position:absolute;width:26.2%;aspect-ratio:55/75;border:1px dashed #b7c1a7;background:#f4f5ed;cursor:pointer;z-index:3;overflow:hidden;display:grid;place-items:center}.slot.selected{outline:2px solid #697f50;outline-offset:3px}.slot canvas{width:100%;height:100%;display:block}.slot-number{color:#a3ae94;text-align:center;font-size:17px}.slot-number small{display:block;font-size:7px;margin-top:6px}.caption{position:absolute;bottom:3%;width:100%;text-align:center;font-size:8px;color:#8a927f}.navigation{display:flex;gap:22px;justify-content:center;align-items:center;padding:18px}.navigation button{padding:7px 12px}.navigation span{font-size:11px}.hint{text-align:center;color:#8b9480;font-size:10px}.notice{background:#eff1e7;padding:17px 20px;border-radius:10px;margin-top:23px;font-size:11px}.notice span{display:block;color:#828b76;line-height:1.6;margin-top:5px}label{display:block;font-size:11px;margin:12px 0}label input[type=range]{display:block;width:100%;accent-color:#6c8057}#custom button,#editor button{font-size:11px;margin:5px 0}textarea{width:100%;margin-top:7px;padding:10px;border:1px solid #dedfd6;border-radius:7px}.text-item{position:absolute;z-index:2;cursor:move;white-space:pre-wrap;max-width:90%;padding:6px;touch-action:none}.bubble{border:2px solid currentColor;border-radius:40%;background:white;padding:12px}.bubble:after{content:'';position:absolute;bottom:-10px;left:20%;border:10px solid transparent;border-top-color:currentColor;border-bottom:0}footer{padding:28px 5%;border-top:1px solid #dedfd6;color:#89917e;font-size:11px}footer span{float:right}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#263d35;color:white;padding:14px 22px;border-radius:9px;display:none;z-index:20}dialog{border:0;border-radius:15px;max-width:95vw;width:950px;padding:25px}dialog::backdrop{background:#20362c88}#close{float:right}#previewPages{display:flex;flex-wrap:wrap;gap:15px;clear:both;padding-top:20px}.preview-paper{position:relative;width:210px;aspect-ratio:210/297;overflow:hidden;background-size:cover;background-position:center;border:1px solid #ddd}.preview-paper .cover-title{font-size:26px}.preview-paper .page-heading{font-size:15px}.preview-paper .cover-decor{font-size:50px}@media(max-width:850px){header{height:auto;padding:20px;flex-wrap:wrap}header>span{display:none}main{padding:30px 18px}h1{font-size:38px}.steps{gap:16px;font-size:11px}.steps small{display:none}.workspace{grid-template-columns:1fr}.stage{padding:20px;min-height:450px}#paper{width:min(365px,100%)}aside{order:2}article{order:1}}

/* A bright print-studio palette: cyan, magenta, yellow and key black. */
body{background:#fffdf8;color:#171719}header{border-bottom:2px solid #171719;background:#fff}header>span{color:#555}.brand{color:#171719}.brand span{color:#ec008c}.eyebrow{color:#007c9c}h1{font-family:Arial,sans-serif;font-weight:900;letter-spacing:-2px}h1 em{color:#ec008c;font-style:normal}.intro p{color:#555}.steps{border-color:#171719;color:#65656a}.steps b{color:#171719}.steps b:first-letter{color:#ec008c}aside{border-color:#171719;box-shadow:5px 5px 0 #fff034}h2 i{background:#00c2e8;color:#111}.selected{background:#fff8bd;border-color:#171719!important}.formats .selected{box-shadow:3px 3px 0 #ec008c}.formats small,.formats span,.muted,.model small{color:#626269}.swatch.peach{background:#fff034;color:#ec008c}.swatch.green{background:#00b9e4;color:#171719}.upload{background:#fff1fa;border-color:#ec008c;color:#9c005c}.upload span{color:#84536e}.stage{background-color:#f5eafb;background-image:radial-gradient(#d2badf .8px,transparent .8px)}.slot{border:2px dashed #171719;background:#fffdf6;box-shadow:5px 5px 0 #ec008c}.slot:nth-of-type(even){box-shadow:5px 5px 0 #00b9e4}.slot.selected{outline-color:#ec008c}.slot-number{color:#171719;font-weight:bold}.slot-number small{font-weight:normal;font-size:7px}.cover-title{font-family:Arial,sans-serif;font-weight:900;letter-spacing:-2px;color:#171719}.cover-decor{color:#ec008c}.page-heading{font-family:Arial,sans-serif;font-weight:900;font-size:24px;color:#171719}.caption,.cover-foot{color:#171719}.notice{background:#fff6a5;border:1px solid #e0d76b}.notice span{color:#534f36}.hint{color:#61616b}label input[type=range]{accent-color:#ec008c}button:hover{border-color:#ec008c}button:focus-visible{outline-color:#00b9e4}footer{border-color:#171719;color:#555}#toast{background:#171719}.toolbar small{color:#626269}

.background-layer{position:absolute;inset:0;z-index:0;background-size:cover;background-position:center;pointer-events:none;transform-origin:center}#backgroundEditor{padding:14px 0;border-bottom:1px solid #ddd;margin-bottom:15px}#bgdegrees{display:block;text-align:right;font-variant-numeric:tabular-nums}.page-heading,.page-sub,.cover-title,.cover-decor,.cover-foot,.caption{z-index:1}

.background-layer{inset:auto;left:50%;top:50%;height:auto;max-width:none;max-height:none;display:block;transform-origin:center;user-select:none}

[hidden]{display:none!important}#coverSpread{display:flex;width:100%;gap:3px;align-items:start}.cover-side{width:50%;min-width:0}.cover-side>button{width:100%;font-size:10px;margin-bottom:12px;background:#fff;border-color:#171719}.cover-paper{position:relative;width:100%;overflow:hidden;background:#fff;box-shadow:0 8px 20px #0002}.cover-paper.active-face{outline:3px solid #ec008c;outline-offset:2px}.cover-paper .text-item{max-width:90%}#createcover{width:100%;background:#fff034;border-color:#171719;font-weight:bold}

.cover-image-window{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}.cover-image-full{position:absolute;top:0;width:200%;height:100%}#coverSpread{gap:0}#uploadcover{width:100%;border-color:#ec008c;background:#fff0f9}#coverEditor{border-bottom:1px solid #ddd;padding-bottom:12px;margin-bottom:15px}

#bubbleShapes{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:8px 0 16px}#bubbleShapes button{padding:6px 3px;min-width:0;background:#fff}#bubbleShapes svg{width:100%;height:40px;fill:#fff;stroke:#171719;stroke-width:2}#bubbleShapes span{font-size:8px}#bubbleShapes button:disabled{opacity:.35;filter:grayscale(1);cursor:default;border-color:#ddd}#bubbleShapes button:not(:disabled):hover{background:#fff034}#bubbleShapes .selected{background:#fff0f9}.text-item.bubble{border:0;border-radius:0;background:transparent;padding:24px 30px 32px;min-width:140px;min-height:100px;text-align:center;max-width:85%;isolation:isolate}.bubble:after{display:none}.bubble>svg{position:absolute;inset:0;width:100%;height:100%;z-index:-1;fill:white;stroke:currentColor;stroke-width:1.5;overflow:visible}.bubble-content{position:relative;display:block;white-space:pre-wrap;overflow-wrap:anywhere;min-width:70px}.bubble-brush>svg{fill:#fff034;stroke-width:0}.bubble-rectangle{padding:24px 22px 34px!important}

.slot-upload{display:block;border:1px solid #171719;border-radius:5px;background:#fff034;font-size:8px;font-weight:bold;padding:6px 5px;margin:10px 5px 0}.slot:hover .slot-upload{background:#00c2e8}.slot-number small{letter-spacing:.2px}

#coverSpread{position:relative;padding-top:104px}.cover-upload-actions{position:absolute;top:0;left:0;right:0;display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:8px;align-items:center}.cover-upload-actions button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 5px;border:1px dashed #171719;background:#fff;font-size:10px;min-height:84px}.cover-upload-actions strong{font-size:24px;line-height:1}.cover-upload-actions small{font-size:8px;color:#555}#uploadwhole{background:#fff034;border:2px solid #171719;min-height:94px}#uploadwhole strong{font-size:30px}@media(max-width:500px){.cover-upload-actions{gap:4px}.cover-upload-actions button{font-size:8px;padding:8px 3px}}

#editor label,#backgroundEditor label,#coverEditor label{display:none}.image-handles{position:absolute;inset:7px;z-index:4;border:1px solid #ec008c;cursor:move;touch-action:none;pointer-events:none}.image-handles:before{content:'';position:absolute;inset:0;pointer-events:auto}.image-handle{position:absolute;pointer-events:auto!important;padding:0;width:27px;height:27px;border-radius:50%;border:2px solid white;background:#ec008c;color:white;box-shadow:0 1px 5px #0005;display:grid;place-items:center;font-size:17px;touch-action:none}.handle-move{left:calc(50% - 13px);top:calc(50% - 13px);cursor:move}.handle-resize{right:0;bottom:0;cursor:nwse-resize}.handle-rotate{right:0;top:0;cursor:grab}.slot .image-handles{inset:2px}.text-item{z-index:5}.slot{z-index:6}.cover-paper{overflow:hidden}

.handle-delete{left:0;top:0;background:#171719;cursor:pointer;font-size:22px}.handle-delete:hover{background:#e00045}
/* Gunmetal interface with fluorescent accents. */
:root{--gunmetal:#24292e;--panel:#30363d;--line:#505861;--ink:#f6f7fb;--pink:#ff3ec9;--yellow:#f4ff38;--green:#a3ff38;--orange:#ff9b36;--purple:#bf8bff}
body{background:var(--gunmetal);color:var(--ink)}header{background:#20252a;border-bottom:1px solid var(--line)}.brand{color:var(--ink)}.brand span{color:var(--pink)}header>span{color:#c2c8d0}.eyebrow{color:var(--green)}h1{color:var(--ink)}h1 em{color:var(--pink)}.intro p{color:#c2c8d0}.steps{border-color:var(--line);color:#b7bfca}.steps b{color:var(--yellow)}.steps b:first-letter{color:var(--yellow)}.steps small{color:#c4b2dc}
button{background:#383f48;color:var(--ink);border-color:#66717e}button:hover{border-color:var(--pink);background:#45404b}button:focus-visible{outline:3px solid var(--green);outline-offset:3px}button:disabled{opacity:.4;cursor:default}header button:first-of-type{background:var(--green);color:#18220d;border-color:var(--green);font-weight:bold}header button:last-of-type{color:var(--purple);border-color:var(--purple)}aside{background:var(--panel);border-color:var(--line);box-shadow:5px 5px 0 #a3ff3833}section{border-color:#4a515a}h2{color:var(--ink)}h2 i{background:var(--pink);color:#1d1020}section:nth-child(2) h2 i{background:var(--yellow)}.formats button{background:#262c32;border-color:#626d79;color:var(--ink)}.formats span,.formats small,.muted,.model small{color:#c0c8d2}.formats .selected{background:var(--yellow)!important;color:#1d230b;box-shadow:3px 3px 0 var(--pink)}.formats .selected span,.formats .selected small{color:#454926}.selected{background:#49364a;border-color:var(--pink)!important}.model{background:#262c32}.model.selected{background:#413447}.model.selected b{color:var(--pink)}.swatch.peach{background:var(--yellow);color:#b30078}.swatch.green{background:var(--green);color:#20300d}.swatch.blank{background:#292e36;border-color:var(--purple);color:var(--purple)}.toolbar small{color:#c0c8d2}.toolbar button{background:var(--purple);color:#201332;border-color:var(--purple);font-weight:bold}.stage{background-color:#1b2025;background-image:radial-gradient(#4b535d .8px,transparent .8px);border:1px solid #4b535d}.navigation button{background:var(--orange);color:#291708;border-color:var(--orange);font-weight:bold}.navigation span{color:#e4e9ef}.hint{color:#c2c8d0}.notice{background:#323b2a;border:1px solid #769c46}.notice b{color:var(--green)}.notice span{color:#d0dcc4}footer{border-color:var(--line);color:#c0c8d2}label{color:#e3e8ee}input[type=color]{border:1px solid #7b8694;background:#20252a;border-radius:4px}textarea,select{background:#20252a;color:var(--ink);border-color:#6b7582}textarea::placeholder{color:#aeb8c6}#createcover{background:var(--yellow);color:#21270b;border-color:var(--yellow)}#custom>button{border-color:var(--purple);color:var(--purple)}#custom #createcover{color:#21270b}#bubble{background:var(--purple);color:#201332!important;font-weight:bold}#bubbleShapes button{background:#242a31;border-color:#7f8997;color:var(--ink)}#bubbleShapes svg{fill:#30363d;stroke:var(--purple)}#bubbleShapes button:disabled{opacity:.3}#bubbleShapes button:not(:disabled):hover,#bubbleShapes .selected{background:#4b355c!important;border-color:var(--purple)!important}#bubbleShapes .selected svg{fill:var(--purple);stroke:#201332}#backgroundEditor,#coverEditor{border-color:var(--line)}.cover-side>button{background:#30363d;color:var(--ink);border-color:var(--purple)}.cover-upload-actions button{background:#30363d;color:var(--ink);border-color:var(--purple)}.cover-upload-actions strong{color:var(--purple)}.cover-upload-actions small{color:#cad0da}#uploadwhole{background:var(--yellow);border-color:var(--yellow);color:#21270b}#uploadwhole strong,#uploadwhole small{color:#21270b}.cover-paper.active-face{outline-color:var(--pink)}.image-handles{border-color:var(--pink)}.image-handle{background:var(--pink);color:#291022;border-color:#fff}.handle-resize{background:var(--green);color:#19260a}.handle-rotate{background:var(--purple);color:#201332}.handle-delete{background:var(--orange);color:#2b1606}.handle-delete:hover{background:#ffbe78}.slot-upload{color:#21270b;background:var(--yellow)}.slot:hover .slot-upload{background:var(--green)}dialog{background:var(--panel);color:var(--ink)}dialog p{color:#c6ced8}dialog::backdrop{background:#0b1014c9}#toast{background:var(--green);color:#18220d;box-shadow:0 4px 24px #0006}

.stage{perspective:1600px;min-height:570px;padding:48px 24px 40px;overflow:hidden}#albumBook{position:relative;display:flex;width:100%;max-width:760px;align-items:stretch;isolation:isolate;filter:drop-shadow(0 24px 18px #0008);transform:rotateX(3deg);transform-style:preserve-3d}.book-page{position:relative;width:50%;flex:none;overflow:hidden;background:#fffefa;aspect-ratio:210/297;z-index:2}.left-page{border-radius:5px 0 0 6px;box-shadow:-3px 3px 0 #d1cfc8,-5px 5px 0 #f3efe6,-7px 7px 0 #b9b8b2}.right-page{border-radius:0 5px 6px 0;box-shadow:3px 3px 0 #d1cfc8,5px 5px 0 #f3efe6,7px 7px 0 #b9b8b2}.book-page:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:9}.left-page:after{background:linear-gradient(90deg,#00000005 0%,transparent 55%,#00000005 82%,#00000026 97%,#0000004a)}.right-page:after{background:linear-gradient(90deg,#00000048,#00000018 3%,transparent 16%,#ffffff0a 75%,#00000005)}.book-spine{position:absolute;left:calc(50% - 2px);width:4px;top:0;bottom:0;background:#0005;z-index:10;pointer-events:none}.book-board{position:absolute;inset:-5px -9px -12px;border-radius:8px;background:#101519;border:1px solid #59606a;z-index:0}.closed-book{max-width:360px!important}.closed-book .left-page,.closed-book .book-spine{display:none}.closed-book .right-page{width:100%;border-radius:4px 8px 8px 4px}.closed-book .book-board{inset:-4px -6px -10px}.empty-page{background:#fffefa}.book-page .page-heading{font-size:clamp(12px,1.5vw,21px)}.book-page .cover-title{font-size:clamp(24px,3vw,43px)}.book-page .slot-upload{font-size:7px;padding:4px 2px;margin-top:6px}.book-page .slot-number{font-size:14px}.book-page .slot-number small{font-size:6px}.book-page .image-handle{width:22px;height:22px;font-size:14px}.book-page .text-item{max-width:85%}.turning-leaf{position:absolute;top:0;width:50%;height:100%;z-index:20;backface-visibility:hidden;pointer-events:none;overflow:hidden}.turn-forward{left:50%;transform-origin:left center;animation:flip-forward .65s ease-in-out forwards}.turn-backward{left:0;transform-origin:right center;animation:flip-backward .65s ease-in-out forwards}@keyframes flip-forward{0%{transform:rotateY(0);filter:brightness(1)}50%{filter:brightness(.7)}100%{transform:rotateY(-180deg);filter:brightness(.9)}}@keyframes flip-backward{0%{transform:rotateY(0);filter:brightness(1)}50%{filter:brightness(.7)}100%{transform:rotateY(180deg);filter:brightness(.9)}}@media(prefers-reduced-motion:reduce){.turning-leaf{animation:none}}@media(max-width:600px){.stage{padding:25px 12px;min-height:360px}.book-page .slot-upload{font-size:6px}.book-page .slot-number small{font-size:5px}}

/* Thin, flexible album: the same physical page scale in every view. */
#albumBook{max-width:760px;filter:drop-shadow(0 12px 12px #0005);transform:none}.closed-book{max-width:760px!important}.closed-book .right-page{width:50%;margin-left:25%;border-radius:2px 4px 4px 2px}.book-board{inset:-1px -2px -3px;border-radius:3px;background:#faf7ed;border:0}.closed-book .book-board{left:calc(25% - 1px);right:calc(25% - 2px);top:-1px;bottom:-3px}.left-page{border-radius:2px 0 0 3px;box-shadow:-1px 1px 0 #ddd9cf,-2px 2px 0 #f1eee6}.right-page{border-radius:0 2px 3px 0;box-shadow:1px 1px 0 #ddd9cf,2px 2px 0 #f1eee6}.book-spine{width:2px;left:calc(50% - 1px);background:#0002}.left-page:after{background:linear-gradient(90deg,transparent 75%,#00000006 91%,#00000020)}.right-page:after{background:linear-gradient(90deg,#00000020,#00000006 9%,transparent 25%)}.turning-leaf{transform-style:preserve-3d;backface-visibility:visible;background-color:#fffefa}.turning-leaf:after{content:'';position:absolute;inset:0;z-index:30;pointer-events:none;animation:paper-light 1.7s ease-in-out forwards;background:linear-gradient(90deg,transparent 5%,#ffffff80 32%,#00000030 65%,transparent 95%)}.turn-forward{animation:soft-forward 1.7s cubic-bezier(.35,.05,.3,1) forwards}.turn-backward{animation:soft-backward 1.7s cubic-bezier(.35,.05,.3,1) forwards}@keyframes soft-forward{0%{transform:rotateY(0deg) skewY(0deg);border-radius:0;filter:brightness(1)}25%{transform:rotateY(-28deg) skewY(-3deg);border-radius:0 14% 24% 0;filter:brightness(.98)}50%{transform:rotateY(-88deg) skewY(-7deg);border-radius:0 28% 38% 0;filter:brightness(.88)}75%{transform:rotateY(-148deg) skewY(-3deg);border-radius:0 16% 20% 0;filter:brightness(.97)}100%{transform:rotateY(-180deg) skewY(0deg);border-radius:0;filter:brightness(1)}}@keyframes soft-backward{0%{transform:rotateY(0deg) skewY(0deg);border-radius:0;filter:brightness(1)}25%{transform:rotateY(28deg) skewY(3deg);border-radius:14% 0 0 24%;filter:brightness(.98)}50%{transform:rotateY(88deg) skewY(7deg);border-radius:28% 0 0 38%;filter:brightness(.88)}75%{transform:rotateY(148deg) skewY(3deg);border-radius:16% 0 0 20%;filter:brightness(.97)}100%{transform:rotateY(180deg) skewY(0deg);border-radius:0;filter:brightness(1)}}@keyframes paper-light{0%,100%{opacity:0}35%,65%{opacity:.65}}@media(prefers-reduced-motion:reduce){.turning-leaf,.turning-leaf:after{animation:none}}

/* StPageFlip owns clipping, shadows and the actual front/back sheet geometry. */
#albumBook{display:block!important;width:100%;max-width:840px!important;filter:drop-shadow(0 12px 10px #0005);transform:none;isolation:auto;position:relative}#albumBook.stf__parent{min-width:0!important}.real-album-page{background:#fffefa;overflow:hidden;border:0;border-radius:1px;box-shadow:none}.page-content{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;aspect-ratio:auto!important}.page-content .page-heading{font-size:clamp(12px,1.5vw,21px)}.page-content .cover-title{font-size:clamp(24px,3vw,43px)}.page-content .slot-upload{font-size:7px;padding:4px 2px;margin-top:6px}.page-content .slot-number small{font-size:6px}.stage{min-height:570px;perspective:none}.stf__item{will-change:transform}.page-content .image-handles{z-index:7}

#albumBook[hidden]{display:none!important}
/* Neutral sticker placeholders, ready to overlay supplied artwork. */
.slot,.slot:nth-of-type(even),.slot.selected{box-shadow:none!important;background:#fff!important;border:1px dashed #171719;outline:none!important;border-radius:0}.slot-number{color:#171719}.slot-upload{box-shadow:none}

.swatch.heart{background:#f8c1d0;color:#b72147}.template-slot,.template-slot.selected{background:transparent!important;border:0!important}.template-slot .slot-number{font-size:0;align-self:end;width:100%;padding-bottom:3px}.template-slot .slot-number small{font-size:5px;background:#fff9;display:inline-block}.template-slot .slot-upload{font-size:6px;margin:3px 4px 0;padding:3px 1px}.template-slot:has(canvas){background:white!important}.cover-pending{position:absolute;inset:20% 10%;font:24px/1.6 Georgia;color:#9d2340;white-space:pre-line;text-align:center}
/* Two saddle-stitch staples: preview decoration only, centred on the fold. */
#albumBook:before,#albumBook:after{content:'';position:absolute;left:50%;width:3px;height:19px;transform:translateX(-50%);z-index:40;pointer-events:none;border-radius:2px;background:linear-gradient(90deg,#5b6065 0%,#e8edf0 30%,#fff 48%,#a2a9ae 72%,#50565b 100%);border-top:1px solid #777d82;border-bottom:1px solid #62696e;box-shadow:1px 1px 2px #0005}#albumBook:before{top:25%}#albumBook:after{top:73%}#albumBook.single-face:before,#albumBook.single-face:after{display:none}

/* Binding is part of each physical sheet, beneath the turning page. */
#albumBook:before,#albumBook:after{display:none!important}.sheet-binding{position:absolute;inset:0;pointer-events:none;z-index:8}.--left .sheet-binding{background:linear-gradient(90deg,transparent 88%,#00000004 93%,#00000012 97%,#00000030 100%)}.--right .sheet-binding{background:linear-gradient(90deg,#00000030 0%,#00000012 3%,#00000004 7%,transparent 12%)}.sheet-binding i{position:absolute;top:25%;width:8px;height:3px;background:linear-gradient(#4f555b,#f2f4f5 40%,#adb3b8 65%,#4f555b);border-radius:1px;box-shadow:0 1px 1px #0005}.sheet-binding i+i{top:73%}.--left .sheet-binding i{right:0;border-left:1px solid #555b61}.--right .sheet-binding i{left:0;border-right:1px solid #555b61}
/* Inside of a vertical staple: two folded legs, with the straight crown behind the paper. */
.sheet-binding i{width:5px;height:22px;background:none;border:0!important;border-radius:0;box-shadow:none}.sheet-binding i:before,.sheet-binding i:after{content:'';position:absolute;left:1px;width:3px;height:9px;border-radius:2px;background:linear-gradient(90deg,#565c62,#e7ebee 35%,#fff 50%,#8c949b 80%,#4e555c);box-shadow:1px 0 1px #0004}.sheet-binding i:before{top:0;transform:rotate(-9deg);transform-origin:top center}.sheet-binding i:after{bottom:0;transform:rotate(9deg);transform-origin:bottom center}.--left .sheet-binding i{right:1px}.--right .sheet-binding i{left:1px}
/* One staple at each height, rather than a duplicate on both facing pages. */
.--left .sheet-binding i{display:none}.--right .sheet-binding i{left:0}

.single-format{width:100%;padding:16px;border:1px solid var(--yellow);border-radius:9px;background:var(--yellow);color:#21270b}.single-format strong{font:27px Georgia;display:block}.single-format span,.single-format small{display:block;margin-top:7px;font-size:11px;color:#454926}

.format-dot{font-size:8px;background:transparent;color:var(--pink);padding:5px}.custom-model-section h2 i{background:var(--purple);color:#201332}
/* Subtle depth on text bubbles, independent of text and fill colour. */
.bubble>svg{stroke:#111;stroke-width:1.3;filter:drop-shadow(1px 2px 1.5px #00000035)}.bubble-brush>svg{stroke:#111;stroke-width:1.3}.bubble>svg path{vector-effect:non-scaling-stroke;stroke-width:1.5px;stroke-linejoin:round}
/* Keep wrapped text inside the safe inner area of each bubble silhouette. */
.text-item.bubble{width:220px;min-width:0;max-width:85%;height:auto;min-height:120px;padding:0!important;display:grid;grid-template-columns:minmax(0,1fr)}
.bubble .bubble-content{display:block;min-width:0;width:auto;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.3;box-sizing:border-box}
.bubble-cloud .bubble-content{margin:27% 23% 29% 25%}
.bubble-oval .bubble-content{margin:19% 21% 27% 21%}
.bubble-rectangle .bubble-content{margin:14% 16% 27% 16%}
.bubble-brush .bubble-content{margin:24% 23% 22% 23%}
.preview-paper .text-item.bubble{width:127px;min-height:70px}
@media(max-width:600px){.page-content .text-item.bubble{width:170px;max-width:85%}}

.bubble-resize{position:absolute;right:0;bottom:0;width:25px;height:25px;padding:0!important;margin:0!important;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#19260a;border:2px solid white;box-shadow:0 1px 4px #0004;cursor:nwse-resize;touch-action:none;font-size:16px;z-index:3}.text-item.bubble{transform-origin:top left}

/* Fixed bubble geometry with automatic text fitting; scale the whole object. */
.text-item.bubble{height:180px;min-height:0;display:block}.bubble .bubble-content{position:absolute;margin:0;min-width:0;max-width:none;overflow:hidden;display:flex;align-items:center;justify-content:center;line-height:1.2;white-space:pre-wrap;overflow-wrap:anywhere}.bubble-cloud .bubble-content{inset:23% 23% 28% 25%}.bubble-oval .bubble-content{inset:19% 21% 29% 21%}.bubble-rectangle .bubble-content{inset:15% 16% 29% 16%}.bubble-brush .bubble-content{inset:24% 23% 23% 23%}.preview-paper .text-item.bubble{width:127px;height:104px;min-height:0}@media(min-width:851px){.workspace>article{position:sticky;top:16px;align-self:start}.stage{min-height:0;padding-top:22px;padding-bottom:22px}#albumBook{max-width:min(840px,calc((100vh - 235px)*1.412))!important}.workspace>article .notice{margin-top:12px;padding:10px 15px}.navigation{padding:10px}.toolbar{margin-bottom:10px}}

.bubble-rotate,.bubble-delete{position:absolute;width:25px;height:25px;padding:0!important;margin:0!important;display:grid;place-items:center;border-radius:50%;border:2px solid white;box-shadow:0 1px 4px #0004;touch-action:none;z-index:3}.bubble-rotate{right:0;top:0;background:var(--purple);color:#201332;cursor:grab;font-size:18px}.bubble-delete{left:0;top:0;background:var(--orange);color:#291708;cursor:pointer;font-size:22px}

.page-corner{position:absolute;bottom:0;z-index:50;width:36px;height:36px;padding:0;border:0;border-radius:0;background:linear-gradient(135deg,transparent 45%,#00000015 46%);color:#333;opacity:.55;cursor:pointer;font-size:23px}.page-corner:hover{opacity:1;background:linear-gradient(135deg,transparent 40%,#ddd 41%);color:#111}.corner-next{right:0}.corner-prev{left:0;background:linear-gradient(225deg,transparent 45%,#00000015 46%)}.corner-prev:hover{background:linear-gradient(225deg,transparent 40%,#ddd 41%)}

.single-format{position:relative;padding-right:110px}.single-format .album-price{position:absolute;right:14px;top:18px;font:bold 24px Arial}.single-format #priceType{font-size:10px}.add-cart{display:block;width:100%;margin:12px 0 0;background:var(--green);color:#19260a;border-color:var(--green);font-weight:bold;padding:14px}.add-cart:hover{background:#baff69;border-color:#baff69}#commerceStatus{text-align:center;font-size:10px;margin:7px 0}

.page-background-upload{position:absolute;left:8%;right:8%;top:4%;z-index:2;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 5px;border:1px dashed #8b8b8b;background:#ffffffdf;color:#333;font-size:10px}.page-background-upload strong{font-size:23px;line-height:1}.page-background-upload:hover{background:#f4ff38;color:#171719;border-color:#171719}

.spread-upload{position:absolute;z-index:45;left:50%;top:0;transform:translate(-50%,-115%);white-space:nowrap;padding:7px 12px;background:var(--purple);color:#201332;border:1px solid var(--purple);font-size:10px;font-weight:bold}.spread-image-handles{inset:5px;z-index:35;pointer-events:none;border:0}.spread-image-handles:before{display:none}.spread-image-handles .handle-move{left:calc(50% - 13px);top:8px}.spread-image-handles .handle-delete{left:calc(50% - 46px);top:8px}.spread-image-handles .handle-rotate{left:calc(50% + 20px);top:8px;right:auto}.spread-image-handles .handle-resize{right:8px;bottom:8px}
/* Keep the shared-background action inside the bottom of the open sheets. */
.spread-upload{top:auto;bottom:14px;transform:translateX(-50%);padding:9px 14px;background:#fff;color:#25202d;border:1px dashed #765298;box-shadow:0 1px 4px #0002;max-width:90%;white-space:normal;text-align:center}.spread-upload:hover{background:#f4ff38;color:#171719;border-color:#171719}
/* Leave the page-turn corner clear and make background resizing easy to grab. */
.spread-image-handles .handle-resize{bottom:58px;right:12px}.page-content>.image-handles .handle-resize,.cover-paper>.image-handles .handle-resize{bottom:50px;right:8px}
/* Responsive editor: fluid book, touch-sized controls and no horizontal overflow. */
html,body{max-width:100%;overflow-x:hidden}main,.workspace,.workspace>article,.workspace>aside{min-width:0}button{touch-action:manipulation}.stage{width:100%}#albumBook{width:100%!important;min-width:0!important}.stf__wrapper{max-width:100%}.image-handle,.bubble-resize,.bubble-rotate,.bubble-delete{min-width:30px;min-height:30px}.page-corner{width:42px;height:42px}.spread-upload{max-width:85%}
@media(min-width:851px) and (max-width:1100px){main{padding:32px 24px}.workspace{grid-template-columns:285px minmax(0,1fr);gap:20px}section{padding:18px}header{padding:0 24px}header>span{margin-left:8px;font-size:12px}.steps{gap:20px}}
@media(max-width:850px){header{gap:10px;align-items:center}.brand{margin-right:auto}header button{font-size:12px;min-height:40px;padding:9px 11px}main{padding:28px 16px}.workspace{display:flex;flex-direction:column;gap:20px}.workspace>aside{order:0;width:100%}.workspace>article{order:1;position:static;width:100%}.stage{min-height:0;padding:24px 14px}#albumBook{max-width:100%!important}.steps{flex-wrap:wrap;padding:20px 0 16px;margin-bottom:20px;gap:12px}.steps>span{font-size:10px}.intro h1{font-size:36px;letter-spacing:-1px}.toolbar{gap:12px}.toolbar>div{min-width:0}.toolbar small{line-height:1.5}.toolbar button{flex-shrink:0;min-height:40px}.navigation button{min-width:44px;min-height:44px}.navigation{gap:18px}.hint{line-height:1.6}.notice{margin-top:16px}.single-format{min-height:105px}#models{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.model{margin-top:0}.model b{font-size:11px}.model small{font-size:9px}.custom-model-section .model{max-width:none}.cover-upload-actions button{min-height:90px}.text-item{touch-action:none}#custom input[type=color]{width:48px;height:34px}#custom select{min-height:40px;max-width:100%}textarea{min-height:90px}#custom label input[type=range]{min-height:36px}dialog{padding:16px}#previewPages{justify-content:center}.preview-paper{max-width:100%}footer{line-height:1.8}footer span{float:none;display:block}}
@media(max-width:480px){header{padding:15px 12px}.brand{font-size:20px}.brand span{font-size:13px}header button{font-size:10px;padding:8px}.intro h1{font-size:31px}.intro p{font-size:12px;line-height:1.6}.eyebrow{font-size:9px;letter-spacing:2px}main{padding:22px 12px}section{padding:17px}#models{grid-template-columns:1fr}.stage{padding:22px 8px}.page-background-upload{font-size:8px;padding:6px 3px;gap:4px}.page-background-upload strong{font-size:19px}.spread-upload{font-size:9px;padding:8px;bottom:10px}.cover-upload-actions button{font-size:8px}.cover-upload-actions small{font-size:7px}.cover-side>button{font-size:8px;padding:9px 3px}.single-format .album-price{font-size:23px}.hint{font-size:9px}.notice{padding:13px}.image-handles .image-handle{min-width:28px;min-height:28px}.slot-number small,.page-content .slot-number small{font-size:5px}.slot-upload,.page-content .slot-upload{font-size:6px;margin-left:1px;margin-right:1px;padding:4px 0}.page-content .page-heading{font-size:12px}.page-content .cover-title{font-size:22px}.page-content .cover-decor{font-size:48px}}
@media(pointer:coarse){.image-handle,.bubble-resize,.bubble-rotate,.bubble-delete{width:34px;height:34px}.page-corner{width:44px;height:44px}.spread-image-handles .handle-resize{bottom:66px}.spread-image-handles .handle-delete{left:calc(50% - 56px)}.spread-image-handles .handle-rotate{left:calc(50% + 28px)}}

.brand{display:flex;align-items:center;flex-shrink:0}.brand-logo{display:block;width:165px;height:65px;object-fit:contain}@media(max-width:480px){.brand-logo{width:120px;height:48px}}

.intro h1{font-size:clamp(26px,3.35vw,46px);line-height:1.2;letter-spacing:-1.4px}@media(min-width:1100px){.intro h1{white-space:nowrap}}@media(max-width:600px){.intro h1{font-size:29px;letter-spacing:-.8px}}

/* Eleven ready-made albums in a compact three-column gallery. */
#models{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 9px}#models .model-tile{display:flex;flex-direction:column;align-items:stretch;gap:8px;background:none;border:0!important;padding:0;margin:0;text-align:center;border-radius:6px}#models .model-tile b{font-size:10px;line-height:1.35;color:#e9eef4;font-weight:600;overflow-wrap:anywhere}#models .model-square{position:relative;display:grid;place-items:center;aspect-ratio:1;width:100%;border-radius:10px;overflow:hidden;border:2px solid transparent;transition:transform .15s,border-color .15s}.tile-0{background:#f4ff38;color:#443600}.tile-1{background:#a3ff38;color:#173c1c}.tile-2{background:#ff55b8;color:#63113e}.tile-3{background:#bf8bff;color:#402269}.tile-4{background:#ff9b36;color:#643006}.model-icon{font-size:30px;position:relative;z-index:1}.mini-album{position:absolute;inset:18% 25%;border:1px solid currentColor;border-radius:2px;opacity:.3;transform:rotate(-8deg)}#models .model-tile.selected .model-square{border-color:#fff;box-shadow:0 0 0 2px var(--pink)}#models .model-tile.selected b{color:var(--pink)}#models .model-tile:hover .model-square{transform:translateY(-2px);border-color:#fff}#models .model-tile:focus-visible{outline:2px solid var(--green);outline-offset:5px}@media(max-width:850px){#models{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}#models .model-square{max-width:145px;align-self:center}#models .model-tile b{font-size:12px}}@media(max-width:380px){#models{gap:14px 7px}#models .model-tile b{font-size:10px}.model-icon{font-size:28px}}
/* Smaller model thumbnails; independent tool scrolling on desktop. */
#models .model-square{width:66px;max-width:100%;align-self:center;border-radius:8px}#models .model-icon{font-size:25px}#models{gap:13px 8px}
@media(min-width:851px){.workspace{height:auto;min-height:max(480px,calc(100dvh - 32px));align-items:start}.workspace>aside{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#78836b #30363d;align-self:start}.workspace>article{position:sticky;top:16px;height:auto;max-height:none;align-self:start;overflow:visible}.workspace>aside::-webkit-scrollbar{width:7px}.workspace>aside::-webkit-scrollbar-thumb{background:#78836b;border-radius:6px}.workspace>aside::-webkit-scrollbar-track{background:#30363d}}
@media(max-width:850px){.workspace{height:auto;min-height:0}.workspace>aside{height:auto;max-height:none;overflow:visible}.workspace>article{position:static;max-height:none}#models .model-square{width:85px;max-width:100%}}
/* Compact four-column model picker, with the existing thumbnail dimensions. */
#models{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 5px}#models .model-tile{gap:5px}#models .model-tile b{font-size:9px}@media(max-width:850px){#models{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 6px}#models .model-square{width:85px;max-width:100%}#models .model-tile b{font-size:10px}}@media(max-width:380px){#models{gap:9px 4px}#models .model-tile b{font-size:9px}}

.model-cover-thumbnail{width:100%;height:100%;object-fit:contain;background:#1c2025;display:block}.model-square:has(.model-cover-thumbnail){background:#1c2025}

.sticker-number-badge{position:absolute;top:3px;left:3px;min-width:15px;height:15px;padding:1px 3px;border-radius:3px;background:#fff;color:#171719;font:bold 10px/13px Arial;text-align:center;pointer-events:none;z-index:8;box-shadow:0 0 0 1px #0002}
/* Preserve printed numbers on every imported placeholder, including even slots. */
.slot.template-slot,.slot.template-slot:nth-of-type(even),.slot.template-slot.selected{background:transparent!important;box-shadow:none!important;border:0!important}.slot.template-slot:has(canvas){background:#fff!important}

#extraPages{margin:12px 0;padding:14px;background:var(--panel);border:1px solid var(--purple);border-radius:10px}#extraPages h2{margin-bottom:10px}#addpages{width:100%;background:var(--purple);color:#201332;font-weight:bold}#extraPages p{margin:7px 0 0}@media(min-width:851px){.workspace>article:has(#extraPages:not([hidden])) #albumBook{max-width:min(840px,calc((100dvh - 360px)*1.412))!important}}

.slot-placement-controls{position:absolute;left:50%;top:3px;transform:translateX(-50%);display:flex;gap:3px;z-index:12}.slot-placement-controls button{width:24px;height:24px;min-width:24px;padding:0;border:1px solid white;border-radius:50%;font-size:15px;touch-action:none;box-shadow:0 1px 3px #0003}.slot-placement-move{background:var(--orange);color:#291708;cursor:move}.slot-placement-rotate{background:var(--purple);color:#201332;cursor:grab}@media(pointer:coarse){.slot-placement-controls button{width:30px;height:30px}}

.handle-confirm{left:calc(50% - 25px);bottom:8px;top:auto;width:54px!important;min-width:54px!important;height:29px;border-radius:7px;font:bold 11px Arial;background:var(--green);color:#19260a;cursor:pointer}.spread-image-handles .handle-confirm{left:calc(50% - 25px);top:48px;bottom:auto}.edit-background{position:absolute;left:8px;bottom:55px;z-index:14;font-size:9px;padding:7px 9px;background:#fff;color:#24292e;border:1px solid #777;border-radius:6px}.slot .handle-confirm{left:calc(50% - 24px);bottom:4px;width:48px!important;min-width:48px!important;font-size:10px}.slot-placement-controls{opacity:0}.slot:hover .slot-placement-controls,.slot:focus-within .slot-placement-controls,.slot.selected .slot-placement-controls{opacity:1}@media(pointer:coarse){.slot-placement-controls{opacity:1}}

/* Contextual editing dock directly below the album. */
#custom.editor-dock{padding:0;margin:10px 0;background:#363d45;border:1px solid #65707c;border-radius:10px;overflow:hidden}.dock-tabs{display:flex;align-items:center;gap:6px;padding:9px;border-bottom:1px solid #565f6b;flex-wrap:wrap}.dock-tabs button{padding:8px 10px;font-size:11px;background:#262d34;color:#f5f6fa;border-color:#65707c}.dock-tabs button.active{background:var(--purple);color:#201332;border-color:var(--purple)}.dock-tabs>span{font-size:9px;color:#c4ccd6;margin-left:auto}.dock-panel{padding:12px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;max-height:190px;overflow-y:auto}.dock-panel>label{margin:0;display:flex;align-items:center;gap:7px;font-size:11px}.dock-panel>button{margin:0!important;padding:8px 10px;font-size:11px}#custom .dock-panel #createcover{width:auto;color:#21270b}#custom .dock-panel>p{width:100%;margin:0}.dock-panel textarea{width:210px;min-height:58px;height:58px;margin:0}.dock-panel select{min-height:34px;max-width:150px}.dock-panel input[type=color]{width:38px;height:30px}.dock-panel #bubbleShapes{width:210px;flex-shrink:0;margin:0;gap:4px}.dock-panel #bubbleShapes svg{height:30px}.dock-panel #bubbleShapes button{margin:0!important}.dock-panel label:has(#fontsize){width:190px;display:block}.dock-panel #backgroundEditor,.dock-panel #coverEditor{border:0;margin:0;padding:0}.dock-panel #backgroundEditor h2{display:none}.dock-panel #backgroundEditor label,.dock-panel #coverEditor label{display:none}.dock-panel #bgdegrees{display:none}@media(min-width:851px){.workspace>article:has(#custom:not([hidden])) #albumBook{max-width:min(840px,calc((100dvh - 440px)*1.412))!important}.workspace>article:has(#custom:not([hidden])) .notice{display:none}.workspace>article:has(#custom:not([hidden])) .stage{padding-top:12px;padding-bottom:12px}.workspace>article:has(#custom:not([hidden])) .hint{font-size:9px}}@media(max-width:600px){.dock-tabs>span{width:100%;margin-left:0}.dock-tabs{gap:5px}.dock-tabs button{font-size:10px;padding:8px}.dock-panel{max-height:none;padding:10px;gap:12px}.dock-panel>label:has(textarea){width:100%;display:block}.dock-panel textarea{width:100%;margin-top:6px}.dock-panel>label{flex-wrap:wrap}}

/* Visible yellow background actions, outside the printable page and sticker slots. */
.background-actions{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;background:#363d45;border:1px solid #65707c;border-radius:9px;padding:10px;margin:10px 0}.background-actions:empty{display:none}.background-actions .edit-background,.background-actions .spread-upload{position:static;inset:auto;transform:none;max-width:none;white-space:normal;background:#f4ff38;color:#21270b;border:1px solid #d5de25;border-radius:7px;box-shadow:none;font:bold 11px Arial;padding:10px 13px;min-height:38px}.background-actions button:hover{background:#f9ff83;color:#171719}.page-background-upload{background:#f4ff38;color:#21270b;border:1px solid #d5de25;font-weight:bold;box-shadow:none}.page-background-upload:hover{background:#f9ff83}.cover-upload-actions button,.cover-upload-actions #uploadwhole{background:#f4ff38;color:#21270b;border:1px solid #d5de25}.cover-upload-actions strong,.cover-upload-actions small{color:#21270b}@media(max-width:600px){.background-actions{gap:6px}.background-actions button{flex:1 1 auto;font-size:10px!important;min-height:42px}}

.stage{position:relative}#orientationError{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:100;width:max-content;max-width:88%;padding:20px 25px;background:#b31224;color:#fff;border:2px solid #ff6c7a;border-radius:12px;box-shadow:0 8px 30px #0007;font:bold 16px/1.5 Arial;text-align:center;pointer-events:none}.slot-placement-orientation{background:var(--yellow);color:#21270b;cursor:pointer}.slot-placement-controls{gap:2px}@media(max-width:600px){#orientationError{font-size:13px;padding:14px 17px}.slot-placement-controls{flex-wrap:wrap;width:max-content;max-width:100%;justify-content:center}}

/* Keep the photo cropped, but place editor commands outside the fixed sticker frame. */
.slot{overflow:visible}.sticker-photo-viewport{position:absolute;inset:0;overflow:hidden;pointer-events:none}.sticker-photo-viewport canvas{display:block;width:100%;height:100%}.slot-placement-controls{left:-34px;top:0;bottom:auto;transform:none;display:flex;flex-direction:column;gap:6px;width:28px;max-width:none;z-index:20}.slot-placement-controls button{flex:none;width:27px;height:27px;min-width:27px}.slot-placement-controls button:disabled{opacity:.45;filter:grayscale(1);cursor:not-allowed}.slot>.image-handles{inset:0;border:1px solid #ec008c;overflow:visible;pointer-events:none}.slot>.image-handles:before{pointer-events:none}.slot>.image-handles .image-handle{left:auto;right:-34px;bottom:auto;top:auto;width:27px;height:27px;min-width:27px;min-height:27px}.slot>.image-handles .handle-move{top:0}.slot>.image-handles .handle-rotate{top:33px}.slot>.image-handles .handle-resize{top:66px;cursor:nwse-resize}.slot>.image-handles .handle-delete{top:99px;background:var(--orange);color:#291708}.slot>.image-handles .handle-confirm{top:132px;right:-43px;width:48px!important;min-width:48px!important;height:27px;border-radius:6px;font-size:10px}.slot:focus-within,.slot:has(>.image-handles){z-index:25}@media(pointer:coarse){.slot-placement-controls{left:-39px;width:33px;gap:6px}.slot-placement-controls button{width:32px;height:32px;min-width:32px}.slot>.image-handles .image-handle{right:-39px;width:32px;height:32px;min-width:32px;min-height:32px}.slot>.image-handles .handle-rotate{top:38px}.slot>.image-handles .handle-resize{top:76px}.slot>.image-handles .handle-delete{top:114px}.slot>.image-handles .handle-confirm{top:152px;right:-47px;height:30px}}

/* Contextual commands: one horizontal row under the sticker, away from the fold. */
.slot-placement-controls{left:50%;top:calc(100% + 7px);bottom:auto;transform:translateX(-50%);flex-direction:row;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:none;flex-wrap:nowrap}.slot>.image-handles.photo-command-row{position:absolute;inset:auto;left:50%;top:calc(100% + 7px);bottom:auto;right:auto;transform:translateX(-50%);display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;width:max-content;height:30px;border:0;z-index:30}.slot>.image-handles.photo-command-row:before{display:none}.slot>.image-handles.photo-command-row .image-handle{position:static;inset:auto;transform:none;flex:none;width:25px;height:25px;min-width:25px;min-height:25px;margin:0;padding:0}.slot>.image-handles.photo-command-row .handle-confirm{position:static;inset:auto;width:43px!important;min-width:43px!important;height:25px;border-radius:6px;font-size:9px}.slot:has(.photo-command-row){z-index:35}.slot-placement-controls button{width:26px;height:26px;min-width:26px}@media(pointer:coarse){.slot-placement-controls{left:50%;top:calc(100% + 8px);width:max-content;flex-direction:row;gap:4px}.slot-placement-controls button{width:30px;height:30px;min-width:30px}.slot>.image-handles.photo-command-row{top:calc(100% + 8px);gap:3px;height:32px}.slot>.image-handles.photo-command-row .image-handle{position:static;inset:auto;width:28px;height:28px;min-width:28px;min-height:28px}.slot>.image-handles.photo-command-row .handle-confirm{position:static;inset:auto;width:41px!important;min-width:41px!important;height:28px}}

.slot:has(.sticker-photo-viewport):not(:has(.photo-command-row)) .slot-placement-controls{opacity:1}

.navigation{flex-wrap:wrap}#extraPages{display:flex;align-items:center;gap:9px;padding:9px 11px;margin:0;border:1px solid var(--purple);background:var(--panel);border-radius:9px;text-align:left}.extra-pages-copy b{display:block;font-size:11px;color:var(--ink)}.extra-pages-copy small{display:block;font-size:9px;color:#c4ccd6;margin-top:4px}#extraPages #addpages{width:auto;margin:0;white-space:nowrap;font-size:10px;padding:9px;background:var(--purple);color:#201332}#extraPagesCount{display:none}@media(max-width:600px){#extraPages{flex:1 1 100%;justify-content:space-between}.navigation{gap:12px}}

#orientationConfirm{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:110;width:420px;max-width:90%;padding:20px;background:#b31224;color:#fff;border:2px solid #ff6c7a;border-radius:12px;box-shadow:0 0 0 150vmax #0005,0 8px 30px #0007;text-align:center;font:14px/1.5 Arial}#orientationConfirm p{margin:0 0 16px}.orientation-confirm-actions{display:flex;gap:10px;justify-content:center}#orientationYes{background:#fff;color:#8b0716;border-color:#fff;font-weight:bold}#orientationNo{background:#750b17;color:#fff;border-color:#fff9}.orientation-confirm-actions button{min-height:42px}@media(max-width:600px){#orientationConfirm{font-size:12px;padding:16px}.orientation-confirm-actions button{font-size:11px}}

/* Editor commands float above the complete flipbook, outside page clipping. */
#floatingStickerControls{position:fixed;inset:0;z-index:2000;pointer-events:none}#floatingStickerControls .floating-sticker-row{position:fixed!important;inset:auto;bottom:auto!important;right:auto!important;transform:none!important;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;width:max-content!important;max-width:none!important;height:32px;border:0!important;opacity:1!important;pointer-events:none;overflow:visible}#floatingStickerControls .floating-sticker-row:before{display:none}#floatingStickerControls button{position:static!important;inset:auto!important;transform:none!important;flex:none;width:28px;height:28px;min-width:28px;min-height:28px;padding:0;margin:0;border:1px solid #fff;border-radius:50%;pointer-events:auto;touch-action:none;box-shadow:0 2px 5px #0005}#floatingStickerControls .handle-confirm{width:46px!important;min-width:46px!important;border-radius:6px;font-size:10px}#floatingStickerControls [hidden]{display:none!important}

/* Absolute priority: alerts above all editor handles and page layers. */
body>#orientationError,body>#orientationConfirm{position:fixed;z-index:10000;left:50%;top:50%;transform:translate(-50%,-50%)}#toast{z-index:11000}#floatingStickerControls{z-index:2000}body:has(#orientationConfirm:not([hidden])) #floatingStickerControls{visibility:hidden;pointer-events:none}

.sticker-photo-viewport{cursor:grab;touch-action:none}.sticker-photo-viewport:active{cursor:grabbing}

.photo-move-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#ffffffc9;color:#20252a;border:1px solid #ffffffeb;box-shadow:0 1px 4px #0003;font:21px Arial;pointer-events:none;opacity:0}.slot:hover .photo-move-hint,.slot:focus-within .photo-move-hint,.slot:has(.photo-command-row) .photo-move-hint{opacity:1}.handle-resize svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;display:block}@media(pointer:coarse){.photo-move-hint{opacity:.85}}

.navigation>.spread-upload{position:static;inset:auto;transform:none;flex:0 1 auto;max-width:100%;margin:0;background:#f4ff38;color:#21270b;border:1px solid #d5de25;border-radius:7px;padding:9px 11px;min-height:38px;font:bold 10px Arial;white-space:normal;text-align:center;box-shadow:none}.navigation>.spread-upload:hover{background:#f9ff83;color:#171719}@media(max-width:600px){.navigation>.spread-upload{font-size:9px;padding:8px;min-height:42px}.navigation{column-gap:9px}}

#resolutionWarning{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:12000;width:440px;max-width:92vw;padding:23px;border-radius:12px;background:#a91526;border:2px solid #ff7785;color:white;box-shadow:0 0 0 150vmax #0007;font:13px/1.6 Arial;text-align:center}#resolutionWarning h2{color:white;font-size:17px}#resolutionWarning p{margin:12px 0}#resolutionContinue{background:#fff;color:#8b0716;font-weight:bold;min-height:42px}body:has(#resolutionWarning:not([hidden])) #floatingStickerControls{visibility:hidden}

.resolution-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}#resolutionCancel{min-height:42px;background:#760d1a;color:#fff;border-color:#fff9;font-weight:bold}

.single-cover-upload{position:absolute;top:5%;left:7%;right:7%;z-index:15;padding:10px 8px;border:1px solid #d5de25;border-radius:7px;background:#f4ff38;color:#21270b;font:bold 11px/1.4 Arial;text-align:center}.single-cover-upload:hover{background:#f9ff83;color:#171719}@media(max-width:600px){.single-cover-upload{font-size:9px;padding:8px 5px}}

.album-mode-tabs{display:flex;justify-content:center;gap:12px;margin:0 0 14px}.album-mode-tabs button{padding:11px 20px;background:#30363d;color:#fff;border:1px solid var(--purple);font-weight:bold;font-size:12px}.album-mode-tabs button.active{background:var(--purple);color:#201332}.album-mode-tabs button:hover{border-color:var(--yellow)}@media(max-width:600px){.album-mode-tabs{gap:8px}.album-mode-tabs button{padding:10px 14px;font-size:11px}}

#coverSpread{position:relative;padding-top:0;display:flex;gap:0;width:100%;max-width:840px;aspect-ratio:420/297;filter:drop-shadow(0 12px 10px #0005)}#coverSpread .cover-side{width:50%}#coverSpread .cover-paper{height:100%;width:100%;box-shadow:none;outline:none;border-radius:0}#coverSpread .cover-upload-actions{position:absolute;inset:0;z-index:18;display:block;pointer-events:none}#coverSpread .cover-upload-actions button{position:absolute;pointer-events:auto;min-height:0;padding:9px 8px;font:bold 10px/1.4 Arial;background:#f4ff38;color:#21270b;border:1px solid #d5de25;border-radius:7px;display:block;width:42%;box-shadow:0 1px 5px #0002}#coverSpread .cover-upload-actions strong,#coverSpread .cover-upload-actions small{display:none}#uploadback{left:4%;top:5%}#uploadfront{right:4%;top:5%}#coverSpread #uploadwhole{left:50%;top:50%;transform:translate(-50%,-50%);width:48%}.single-cover-upload{top:50%;left:12%;right:12%;transform:translateY(-50%);padding:13px 9px;font-size:13px}.album-mode-tabs{margin-bottom:10px}@media(min-width:851px){.workspace>article:has(#custom:not([hidden])) #coverSpread{max-width:min(840px,calc((100dvh - 440px)*1.412))!important}}@media(max-width:600px){#coverSpread .cover-upload-actions button{font-size:8px;padding:7px 4px}.single-cover-upload{font-size:11px}}

@media(hover:hover) and (pointer:fine){.single-cover-upload.cover-upload-on-hover{opacity:0;transition:opacity .16s;pointer-events:auto}.single-cover-upload.cover-upload-on-hover:hover,.single-cover-upload.cover-upload-on-hover:focus-visible{opacity:1}}@media(hover:none),(pointer:coarse){.single-cover-upload.cover-upload-on-hover{opacity:1}}

#custom .dock-tabs{border-bottom:0}#settingsToggle{background:#262d34;color:#f5f6fa;border-color:#65707c}.settings-collapsed .dock-panel{display:none!important}#custom .dock-panel{max-height:none;overflow:visible;border-top:1px solid #515b66}#custom #bubble,#custom #addtext,#custom #decorationsToggle{background:#262d34;color:#eee!important;border:1px solid #65707c}#custom #bubble[aria-expanded=true],#custom #decorationsToggle[aria-expanded=true]{background:var(--purple);color:#201332!important;border-color:var(--purple)}.decoration-palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;width:100%;padding:6px 0}.decoration-palette button{height:36px;padding:3px;font:bold 13px Arial;background:#262d34;color:var(--yellow);border:1px solid #65707c}.decoration-palette button:hover{background:var(--purple);color:#201332}.decoration-item{background:none!important}.decoration-item .bubble-content{inset:5% 5%!important;font-weight:900;font-style:italic;text-shadow:2px 2px 0 #fff,-1px -1px 0 #fff;line-height:1.05}.decoration-item>svg{display:none!important}@media(max-width:600px){.decoration-palette{grid-template-columns:repeat(4,minmax(0,1fr))}}

#custom #addtext.tool-selected,#custom #bubble.tool-selected,#custom #decorationsToggle.tool-selected{background:var(--purple);color:#201332!important;border-color:var(--purple)}

.editable-plain-text{outline:1px dashed #a99cbd;overflow:visible;min-width:45px;min-height:28px}.plain-text-control{position:absolute;width:25px;height:25px;padding:0!important;margin:0!important;display:grid;place-items:center;border:2px solid white;border-radius:50%;box-shadow:0 1px 4px #0004;touch-action:none;font-size:16px;z-index:20}.text-control-delete{top:-12px;left:-12px;background:var(--orange);color:#291708;cursor:pointer}.text-control-rotate{top:-12px;right:-12px;background:var(--purple);color:#201332;cursor:grab}.text-control-resize{right:-12px;bottom:-12px;background:var(--green);color:#19260a;cursor:nwse-resize}@media(pointer:coarse){.plain-text-control{width:31px;height:31px}}

#settingsLauncher .dock-tabs{padding:0;margin:10px 0 6px;border:0}#custom.editor-dock{margin-top:0}#custom [data-dock-panel=page]{padding:0;border:0}.decoration-palette{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;padding:0}.decoration-palette[hidden]{display:none!important}.symbol-collection{padding:8px;background:#272e35;border:1px solid #586370;border-radius:8px;min-width:0}.symbol-collection>b{display:block;font-size:10px;color:#eee;margin-bottom:7px}.symbol-collection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;max-height:135px;overflow-y:auto;scrollbar-width:thin}.symbol-collection-grid button{height:29px;min-height:29px;padding:0;font-size:18px;border-radius:4px;background:#363d45;color:#eee}.symbol-collection:last-child .symbol-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.symbol-collection-grid .comic-preview{font:bold italic 11px Arial;color:#111;background:#fff034;clip-path:polygon(5% 10%,35% 16%,46% 0,60% 15%,98% 4%,87% 45%,100% 64%,75% 74%,88% 98%,56% 86%,38% 100%,27% 81%,2% 87%,14% 53%,0 32%)}.decoration-item.comic-word>svg{display:block!important;stroke:#111;stroke-width:1.5;filter:drop-shadow(2px 3px 1px #0005)}.comic-word .bubble-content{inset:23% 20%!important;color:#111;font-weight:900;text-shadow:1px 1px #fff;font-style:italic}@media(max-width:600px){.decoration-palette{gap:5px}.symbol-collection{padding:5px}.symbol-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:140px}.symbol-collection>b{font-size:9px}.symbol-collection-grid .comic-preview{font-size:8px}.symbol-collection-grid button{font-size:17px}}

.symbol-collection-grid .comic-preview{clip-path:none!important;background:#69717b!important;overflow:hidden;border-radius:5px;height:48px;padding:3px}.comic-preview img{display:block;width:100%;height:100%;object-fit:contain}.decoration-item.comic-asset>svg{display:none!important}.comic-asset .bubble-content{inset:0!important;overflow:visible}.comic-artwork{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.comic-asset{background:transparent!important}

.text-item.comic-asset{min-width:110px;min-height:90px}.text-item.comic-asset .bubble-content{position:absolute;inset:0!important;margin:0!important;width:100%;height:100%;display:block;overflow:visible}.comic-asset .comic-artwork{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
/* All nine comic artworks are visible together, including YEAH!. */
.symbol-collection:last-child .symbol-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible}.symbol-collection:last-child .comic-preview{height:39px;min-height:39px;padding:1px}@media(max-width:600px){.symbol-collection:last-child .comic-preview{height:34px;min-height:34px}}

#interiorModeTab{background:var(--purple);color:#201332;border-color:var(--purple);font-weight:bold;padding:10px 14px;font-size:11px}

.symbol-collection:nth-child(2) .symbol-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:170px}.symbol-collection:nth-child(2) .comic-preview{height:42px;min-height:42px}

.font-label{margin-right:0!important}.font-picker{position:relative;flex:0 1 210px;min-width:150px}#fontPickerToggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 12px;background:#252c34;color:#fff;border:1px solid #697581;border-radius:7px;min-height:42px}#fontPickerCurrent{font-size:23px;line-height:1.3}#fontPickerList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%;max-height:260px;overflow-y:auto;padding:7px;background:#262d35;border:1px solid #697581;border-radius:8px;margin-top:6px}#fontPickerList button{font-size:21px;line-height:1.3;min-height:44px;padding:7px;background:#353e49;color:#fff;border:1px solid #586576;overflow-wrap:anywhere}#fontPickerList button:hover,#fontPickerList button.chosen{background:var(--purple);color:#201332;border-color:var(--purple)}@media(max-width:600px){.font-picker{flex-basis:100%}#fontPickerList{max-height:240px}}
/* Compact font dropdown with one preview per row. */
.font-picker{flex:0 1 180px;min-width:145px}#fontPickerToggle{min-height:34px;padding:5px 9px}#fontPickerCurrent{font-size:16px;line-height:1.3}#fontPickerList{position:absolute;top:100%;left:0;right:0;z-index:80;display:flex;flex-direction:column;gap:0;width:100%;max-height:220px;padding:4px;margin-top:4px;box-shadow:0 5px 15px #0005}#fontPickerList button{display:block;width:100%;text-align:left;font-size:16px;line-height:1.35;min-height:29px;padding:4px 8px;border:0;border-radius:4px;background:transparent}#fontPickerList button:hover,#fontPickerList button.chosen{background:var(--purple);color:#201332}@media(max-width:600px){.font-picker{flex:0 1 180px}#fontPickerList{max-height:200px}}

body>#fontPickerList{position:fixed;z-index:5000;right:auto;margin:0;box-shadow:0 6px 22px #0007}body:has(#orientationConfirm:not([hidden]))>#fontPickerList,body:has(#resolutionWarning:not([hidden]))>#fontPickerList{visibility:hidden}

.exact-preview-content{overflow:hidden;max-width:none!important;max-height:none!important}.exact-preview-content .text-item{pointer-events:none}.exact-preview-content .comic-asset{min-width:110px;min-height:90px}

.settings-tool-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px}.settings-tool-tabs button,#custom .settings-tool-tabs #addtext,#custom .settings-tool-tabs #bubble,#custom .settings-tool-tabs #decorationsToggle{margin:0;padding:8px 5px;font-size:10px;background:#262d34;color:#eee!important;border:1px solid #65707c;min-height:38px}.settings-tool-tabs button.tool-selected,#custom .settings-tool-tabs button.tool-selected{background:var(--purple)!important;color:#201332!important;border-color:var(--purple)}.settings-collapsed .settings-tool-tabs{display:none}.text-editing-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%}.text-editing-controls label{margin:0;display:flex;align-items:center;gap:7px}.text-editing-controls label:has(#fontsize){display:block;width:190px}#custom [data-settings-panel=colour]{padding:12px}.settings-tool-tabs+.dock-panel[hidden]{display:none!important}@media(max-width:500px){.settings-tool-tabs{gap:4px;padding:8px}.settings-tool-tabs button{font-size:9px!important}.text-editing-controls label:has(textarea){display:block;width:100%}.text-editing-controls textarea{width:100%}}

/* Project controls share the checkout row; wrap on small screens. */
.project-commerce-actions{display:flex;align-items:stretch;gap:8px;margin-top:12px;flex-wrap:wrap}.project-commerce-actions>button{flex:1 1 auto;white-space:nowrap;font-size:12px;min-height:44px;padding:11px 12px}.project-commerce-actions>.add-cart{width:auto;margin:0;flex:1.4 1 auto}.project-commerce-actions+.account-status{display:block;text-align:center;margin:6px 0;font-size:11px}@media(max-width:600px){.project-commerce-actions>button{flex:1 1 calc(50% - 8px);font-size:11px;padding:10px 8px}.project-commerce-actions>.add-cart{flex:1 1 calc(50% - 8px)}}

/* Signed-in customer appears immediately after Preview. */
.toolbar .preview-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.signed-in-profile{display:flex;align-items:center;gap:7px;min-width:0;max-width:220px;border-color:#66717d;background:#343d46;color:#fff;font-size:12px;padding:10px 12px}.signed-in-profile[hidden]{display:none!important}.signed-in-profile-icon{display:flex;flex:none;color:#c1ff56}.signed-in-profile-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}@media(max-width:600px){.toolbar{flex-wrap:wrap}.toolbar .preview-account-actions{margin-left:auto;max-width:100%;flex-wrap:wrap}.signed-in-profile{max-width:180px;font-size:11px;padding:9px}}
/* Separate saved projects from the dialog close action. */
.saved-projects-dialog>button{display:block;max-width:100%;margin:12px 0;text-align:left;white-space:normal;line-height:1.5}.saved-projects-dialog>button:last-of-type{margin:24px 0 0 auto;text-align:center;min-width:94px}

/* Each saved draft has a separate, clearly labelled delete action. */
.saved-project-list{display:flex;flex-direction:column;gap:12px;margin-top:16px}.saved-project-row{display:flex;align-items:stretch;gap:12px}.saved-project-row>button:first-child{flex:1;min-width:0;text-align:left;white-space:normal;line-height:1.5}.saved-project-row .delete-project{flex:none;align-self:center;border-color:#e38c93;color:#ffd4d7;background:#56353d;min-height:44px}.saved-project-row .delete-project:hover{background:#713e48;border-color:#ffb0b8}.saved-project-status{min-height:1.5em;color:#c1ff56;line-height:1.5}@media(max-width:480px){.saved-project-row{flex-wrap:wrap}.saved-project-row>button:first-child{flex-basis:100%}.saved-project-row .delete-project{margin-left:auto}}
/* Actual miniature album covers: no coloured tile, frame or selection outline. */
#models .model-tile{overflow:visible;border-radius:0;isolation:isolate}#models .model-miniature{display:block;position:relative;width:66px;height:76px;align-self:center;perspective:460px;overflow:visible;background:none;border:0;box-shadow:none}#models .model-tile:hover{z-index:3}#models .mini-book{position:absolute;left:9px;top:4px;width:48px;height:68px;transform-origin:left center;transform-style:preserve-3d}#models .mini-book-base,#models .mini-book-leaf,#models .mini-book-front{position:absolute;inset:0;display:block;transform-origin:left center;transform-style:preserve-3d;border:0;border-radius:0}#models .mini-book-base{background:#fffde9;z-index:0}#models .mini-book-front{z-index:8}#models .mini-book-face{position:absolute;inset:0;display:block;overflow:hidden;backface-visibility:hidden;background:#fffef9}#models .mini-book-verso{transform:rotateY(180deg);background:#fffef9}#models .mini-book-face>img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}#models .mini-book-cover-art{display:block;position:relative;width:100%;height:100%;background:#fff034;text-align:left;color:#111;overflow:hidden}#models .mini-book-cover-title{position:absolute;left:10%;top:17%;font:bold 7px/1.15 Arial;white-space:pre-line;letter-spacing:-.2px}#models .mini-book-cover-star{position:absolute;left:10%;bottom:18%;font:21px/1 Arial;color:#ff42c7}#models .mini-book-cover-foot{position:absolute;bottom:5%;left:10%;font:1.6px/1 Arial;letter-spacing:.25px;color:#51491c}#models .mini-book-cover-pending{background:#f8dce1}#models .mini-book-cover-pending .mini-book-cover-title{font-size:5px;top:23%}#models .mini-book-cover-note{position:absolute;top:51%;left:10%;right:10%;font:4px/1.3 Arial;color:#69545a}#models .mini-book-page-art{display:block;position:relative;width:100%;height:100%;background:#fff034}#models .mini-book-slot{position:absolute;width:28%;height:28%;border:1px dashed #c3bb9a;background:#fffef9;left:10%;top:18%}#models .mini-book-slot:nth-child(2){left:55%;top:30%}#models .mini-book-slot:nth-child(3){left:22%;top:64%}@media(max-width:850px){#models .model-miniature{width:66px;height:76px}}@media(prefers-reduced-motion:reduce){#models .mini-book,#models .mini-book-leaf,#models .mini-book-front{animation:none!important;transition:none!important}}

#models .model-category{grid-column:1 / -1;margin:12px 0 3px;padding:5px 8px;border:0;border-left:2px solid var(--pink);border-radius:2px;background:rgba(191,139,255,.10);color:#e9eef4;font:600 10px/1.3 Arial,sans-serif;letter-spacing:.25px;text-align:left}#models .model-category:first-child{margin-top:0}
/* Compact sidebar: keep format details and event groups easy to scan. */
.workspace>aside>section:first-child,.workspace>aside>section:nth-child(2){padding-top:14px;padding-bottom:14px}
.workspace>aside>section:first-child>h2,.workspace>aside>section:nth-child(2)>h2{margin-bottom:11px}
.single-format{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px;min-height:0;padding:10px 12px}
.single-format>strong:first-child{grid-column:1;grid-row:1;font:23px/1 Georgia,serif}
.single-format .album-price{position:static;grid-column:2;grid-row:1;margin:0;font:bold 21px/1.1 Arial,sans-serif}
.single-format>span,.single-format>small{grid-column:1 / -1;margin:0;font-size:10px;line-height:1.25}
.single-format #priceType{font-size:9px}
.workspace>aside>section:nth-child(2)>.muted{margin:0 0 8px;line-height:1.4}
#models{row-gap:5px;column-gap:5px}
#models .model-category{margin:6px 0 0;padding:4px 7px;font-size:10px}
#models .model-category:first-child{margin-top:0}
#models .model-tile{gap:2px}
#models .model-miniature{height:72px}

#dadCharacterPrompt{position:absolute;left:4%;top:50%;transform:translateY(-50%);width:39%;z-index:45;text-align:center;color:#a3ff38;font:700 clamp(15px,2vw,27px)/1.4 Arial,sans-serif;letter-spacing:.2px;text-shadow:0 0 5px #a3ff3870,0 0 16px #a3ff3860,0 0 30px #a3ff3830;pointer-events:none}#dadCharacterPrompt[hidden]{display:none}#dadCharacterPrompt span{display:block;font-size:.82em;font-weight:600;margin-top:6px}@media(max-width:600px){#dadCharacterPrompt{left:3%;width:41%;font-size:clamp(12px,3.1vw,18px);line-height:1.35}}

#characterEditor{margin:10px 0;padding:12px;border:1px solid #65707c;border-radius:10px;background:#363d45}#characterEditor[hidden],#characterEditor [hidden]{display:none}#characterEditor .character-toggle{border-color:var(--purple);color:var(--purple);font-weight:600}#characterEditor .character-body{padding-top:14px}#characterEditor h2{margin-bottom:12px;font-size:13px}#characterEditor .character-categories{display:flex;flex-wrap:wrap;gap:7px}#characterEditor .character-categories button{padding:8px 11px;font-size:11px}#characterEditor button.active{background:var(--purple);border-color:var(--purple);color:#201332}#characterEditor .character-catalogue p{margin:14px 0 2px;color:#c0c8d2;font-size:12px;line-height:1.5}

.navigation:has(.character-toggle:not([hidden])){flex-wrap:wrap}.navigation .character-toggle{padding:8px 10px;min-width:0;font-size:11px;background:#363d45;color:var(--purple);border-color:var(--purple)}.navigation .character-toggle[hidden]{display:none}.navigation .character-toggle.active{background:var(--purple);color:#201332}

#dadCharacterPrompt .dad-prompt-emphasis{display:block;font-size:1.22em;font-weight:900;line-height:1.25;letter-spacing:.6px;margin-top:3px}#dadCharacterPrompt span .dad-prompt-emphasis{font-size:1.55em}

#dedicationPrompt{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:39%;z-index:45;text-align:center;color:#ffad38;font:700 clamp(15px,2vw,27px)/1.4 Arial,sans-serif;letter-spacing:.2px;text-shadow:0 0 5px #ffad3870,0 0 16px #ff8c3060,0 0 30px #ff8c3030;pointer-events:none}#dedicationPrompt[hidden]{display:none}#dedicationPrompt span{display:block;font-size:.82em;font-weight:600;margin-top:6px}@media(max-width:600px){#dedicationPrompt{right:3%;width:41%;font-size:clamp(12px,3.1vw,18px);line-height:1.35}}

#dedicationPrompt .dedication-write{display:block;margin:18px auto 0;padding:10px 24px;background:#ffad38;border-color:#ffad38;color:#2d1b08;font:bold 14px/1.3 Arial,sans-serif;pointer-events:auto;text-shadow:none;box-shadow:0 0 15px #ffad3830}.dedication-text{position:absolute;z-index:12;box-sizing:border-box;margin:0!important;padding:0!important;border:0;border-radius:0;background:transparent;color:#222;font-family:Arial,sans-serif;font-size:12px;line-height:1.35;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;resize:none;min-height:0!important;min-width:0;letter-spacing:normal;text-shadow:none}.dedication-text:focus{outline:1px dashed #e98b27;outline-offset:3px}textarea.dedication-text{box-shadow:none}textarea.dedication-text::placeholder{color:#777}.preview-paper .dedication-text{pointer-events:none}

.dedication-limit{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:150;width:max-content;max-width:82%;padding:18px 24px;border:1px solid #ffad38;border-radius:12px;background:#252c32f5;color:#ffbb58;box-shadow:0 8px 32px #0008;font:bold 15px/1.5 Arial,sans-serif;text-align:center;pointer-events:none}.dedication-limit[hidden]{display:none}

.dedication-text{font-family:'Comic Neue','Comic Sans MS',cursive}
.workspace>article .notice{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:10px;row-gap:6px;margin-top:12px;padding:15px 17px;border:1px solid #a3ff3840;border-radius:14px;background:linear-gradient(115deg,#343d30 0%,#2b3337 65%,#38313f 100%);box-shadow:inset 0 1px 0 #ffffff08,0 5px 16px #00000012}
.workspace>article .notice:before{content:'✦';grid-column:1;grid-row:1 / 3;align-self:center;color:var(--green);font-size:22px;text-shadow:0 0 14px #a3ff3830}
.workspace>article .notice b{grid-column:2;font-size:12px;line-height:1.5;font-weight:600;color:#d5ff9b}
.workspace>article .notice span{grid-column:2;font-size:11px;line-height:1.6;color:#d1d8df}
@media(max-width:600px){.workspace>article .notice{padding:13px 14px;column-gap:8px}.workspace>article .notice b{font-size:11px}}
.workspace>article .notice{grid-template-columns:22px minmax(0,1fr) 22px;text-align:center}
.workspace>article .notice:after{content:'✦';grid-column:3;grid-row:1 / 3;align-self:center;color:var(--green);font-size:22px;text-shadow:0 0 14px #a3ff3830}
.workspace>article .notice b,.workspace>article .notice span{text-align:center}
.workspace>article .notice b{text-transform:uppercase;color:#b7ff55;letter-spacing:.35px;text-shadow:0 0 4px #a3ff3880,0 0 12px #a3ff3855,0 0 22px #a3ff3825}
.workspace>article .notice span{text-transform:uppercase;color:#cf9fff;letter-spacing:.3px;text-shadow:0 0 4px #bf8bff80,0 0 12px #bf8bff55,0 0 22px #bf8bff25;font-weight:600}
.workspace>aside{border-color:#bf8bff8c;box-shadow:4px 4px 0 #bf8bff38,0 0 9px #bf8bff40,0 0 21px #a866ed22}
.workspace>aside{scrollbar-color:#ff42c7 #30363d}
.workspace>aside::-webkit-scrollbar-thumb{background:#ff42c7;border:2px solid #30363d;border-radius:10px;box-shadow:0 0 7px #ff42c780}
.workspace>aside::-webkit-scrollbar-thumb:hover{background:#ff78d9}
.workspace>aside::-webkit-scrollbar-track{background:#30363d;border-radius:10px}

.workspace>aside>.model-selection-section{padding-top:14px;padding-bottom:14px}.workspace>aside>.model-selection-section>h2{margin-bottom:11px}.workspace>aside>.model-selection-section>.muted{margin:0 0 8px;line-height:1.4}.account-status:empty{display:none}

.steps>.photo-guide{margin:0 0 0 auto;padding:0;border:0;width:390px;max-width:46%;text-align:left;align-self:center}.steps>.photo-guide h2{margin:0 0 5px;font-size:12px;color:#e9eef4}.steps>.photo-guide>.muted{margin:0;font-size:10px;line-height:1.5;color:#c0c8d2}.steps>.photo-guide #progress{margin:5px 0 0;color:var(--green);font-size:11px;font-weight:600}.steps>.photo-guide #editor{margin-top:8px}.steps>.photo-guide #editor label{font-size:10px}@media(max-width:850px){.steps>.photo-guide{width:100%;max-width:100%;margin:6px 0 0;flex-basis:100%}}
.steps>.photo-guide,.steps>.photo-guide h2,.steps>.photo-guide>.muted{text-align:right}
.character-overlay{position:absolute;inset:0;z-index:2;pointer-events:none}.character-overlay img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.character-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.character-options button{font-size:12px;padding:9px 14px}

@media(max-width:850px){.workspace>article{scroll-margin-top:12px}}
@media(max-width:600px){
 .navigation:has(.character-toggle:not([hidden])){flex-wrap:nowrap;gap:6px}
 .navigation .character-toggle{flex:1 1 0;min-width:0;max-width:190px;padding:7px 6px;font-size:9px;line-height:1.25;white-space:normal}
 .navigation:has(.character-toggle:not([hidden])) #prev,.navigation:has(.character-toggle:not([hidden])) #next{flex:0 0 34px;min-width:34px;width:34px;padding:7px 3px}
 .navigation:has(.character-toggle:not([hidden])) #pagecount{flex:0 0 auto;min-width:37px;font-size:10px;white-space:nowrap}
}

header>span{flex:0 1 auto}header .header-home-area{flex:1;display:flex;align-items:center;justify-content:center;min-width:0}header .header-home-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border:1px solid #bf8bff99;border-radius:9px;background:#bf8bff12;color:#d2acff;text-decoration:none;font:600 12px/1.3 Arial,sans-serif;box-shadow:0 0 10px #bf8bff15;white-space:nowrap}header .header-home-link:hover{background:#bf8bff25;border-color:var(--purple)}header .header-home-link:focus-visible{outline:2px solid var(--purple);outline-offset:4px}@media(max-width:600px){header{height:auto;min-height:90px;flex-wrap:wrap;gap:8px 10px}header>span{margin-left:0;font-size:10px;flex:1}header .header-home-area{flex:0 0 100%;padding-bottom:5px}header .header-home-link{padding:8px 14px;font-size:11px}}

header .header-home-link{color:#d5adff;border-color:#bf8bffb3;text-shadow:0 0 5px #bf8bff88,0 0 12px #bf8bff44;box-shadow:0 0 9px #bf8bff35,inset 0 0 8px #bf8bff12}
.character-colors{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #ffffff18}.character-colors>b{font-size:12px;margin-right:4px}.character-colors .character-color{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:7px 9px}.character-color:before{content:'';width:15px;height:15px;flex:0 0 15px;border-radius:50%;background:var(--swatch-color);border:1px solid #ffffff65}.character-color.active:before{border-color:#fff}
/* Photographic windows inside the two large stamps. */
.stamp-photo-window{position:absolute;display:block;margin:0;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden;background:transparent!important;box-shadow:none!important;color:#8c3657!important;z-index:4;cursor:pointer}
.stamp-photo-window canvas{display:block;width:100%;height:100%}
.stamp-upload-copy{display:flex;position:absolute;inset:0;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:10px;font-size:clamp(10px,1.25vw,18px);font-weight:700;line-height:1.3;text-align:center}
.stamp-upload-copy b{font-size:28px}.stamp-edit-hint{position:absolute;bottom:8px;left:10%;right:10%;padding:6px;border-radius:7px;background:#222b;color:white;font-size:11px;opacity:0}.stamp-photo-window:hover .stamp-edit-hint,.stamp-photo-window:focus-visible .stamp-edit-hint{opacity:1}
.stamp-photo-window:focus-visible{outline:3px solid #c366ff!important;outline-offset:2px}
.stamp-sticker-slot{border-radius:9%/7%!important}.stamp-sticker-slot .sticker-photo-viewport{border-radius:inherit;overflow:hidden}
.stamp-photo-dialog{width:min(430px,calc(100vw - 32px));max-height:90vh;overflow:auto;background:#252c32;color:#fff;border:1px solid #a46aff;border-radius:18px;padding:22px}.stamp-photo-dialog::backdrop{background:#10161bd9}.stamp-photo-dialog h2{font-size:20px}.stamp-photo-dialog canvas{display:block;max-height:38vh;max-width:100%;width:auto;margin:12px auto;background:#f9edf1}.stamp-photo-dialog label{display:block;margin:12px 0}.stamp-photo-dialog input{width:100%}.stamp-dialog-actions{display:flex;gap:8px;flex-wrap:wrap}.stamp-dialog-actions button{padding:9px 12px}.stamp-dialog-actions [data-action="done"]{background:#c1ff56;color:#172016}

.exact-preview-content .stamp-photo-window:disabled{opacity:1;cursor:default}.exact-preview-content .stamp-edit-hint{display:none}

#dedicationPrompt .dedication-instruction{font-weight:inherit}#dedicationPrompt.circle-dedication-prompt{font-family:'Comic Neue','Comic Sans MS',cursive;font-weight:700;color:#fff;text-shadow:0 0 5px #fff8,0 0 16px #fff4}#dedicationPrompt.circle-dedication-prompt span{font-weight:700}.circle-dedication-text{color:#fff!important;font-family:'Comic Neue','Comic Sans MS',cursive;font-weight:700}.circle-dedication-text::placeholder{color:#fffc!important}.circle-dedication-text:focus{outline-color:#fff}
.ti-amo-cover-photo{border-radius:7.3%/7.7%!important;color:#913244!important}
.ruled-note-input{display:block;position:absolute;z-index:15;box-sizing:border-box;margin:0!important;padding:0 2px!important;border:0!important;border-radius:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:#252525!important;font-family:'Comic Neue','Comic Sans MS',cursive;font-weight:400;white-space:pre;overflow:hidden;min-width:0;max-width:none;text-align:left;letter-spacing:normal;resize:none}
input.ruled-note-input:focus{outline:1px dashed #b5678c;outline-offset:1px}input.ruled-note-input::placeholder{color:#555a}.exact-preview-content .ruled-note-input{pointer-events:none;outline:0}

.workspace>aside>.custom-model-section{position:relative}.model-alternative{position:absolute;left:50%;bottom:0;transform:translate(-50%,50%);padding:0 12px;background:var(--panel,#30363d);color:#d9dce2;font-size:10px;font-weight:700;line-height:16px;letter-spacing:1.6px;z-index:1;white-space:nowrap}

.format-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.format-comparison .single-format{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;width:auto;padding:11px 9px}.format-comparison .single-format>strong:first-child{font:24px/1 Georgia,serif}.format-comparison .single-format>span,.format-comparison .single-format>small{font-size:10px;line-height:1.35;margin:0}.format-comparison .single-format .album-price{position:static;font:bold 22px/1.15 Arial,sans-serif;margin:5px 0 0;padding-top:3px}.format-comparison .single-format>span:last-of-type{margin-top:auto;min-height:27px}.format-comparison .custom-format{background:#ffad38;border-color:#ffad38;color:#382009;box-shadow:0 0 7px #ffad3866,0 0 17px #ff8c3026}.format-comparison .custom-format>span,.format-comparison .custom-format>small{color:#482a11}

/* Shipping sticker sits on the first card's upper edge, clear of the title. */
.workspace>aside>section:first-child{position:relative;padding-top:28px}.free-shipping-sticker{position:absolute;top:0;left:50%;transform:translate(-50%,-50%) rotate(-3deg);z-index:3;display:flex;align-items:center;justify-content:center;gap:8px;width:max-content;max-width:calc(100% - 24px);padding:8px 12px;border:2px solid #f7ffcf;border-radius:7px;background:#c1ff56;color:#202918;box-shadow:3px 4px 0 #983fff,0 0 15px #c1ff564d;font:900 11px/1.15 Arial,sans-serif;letter-spacing:.5px;white-space:nowrap}.free-shipping-sticker svg{width:25px;height:20px;flex-shrink:0}.free-shipping-sticker b{font-size:17px;color:#6e2cac}.workspace>aside{margin-top:12px}@media(max-width:480px){.free-shipping-sticker{font-size:10px;padding:7px 10px;gap:6px}}

.workspace{position:relative}.workspace>.free-shipping-sticker{grid-column:1;grid-row:1;justify-self:center;left:auto;top:12px;transform:translateY(-50%) rotate(-3deg);max-width:calc(100% - 24px)}@media(max-width:850px){.workspace>.free-shipping-sticker{left:50%;transform:translate(-50%,-50%) rotate(-3deg)}}
.workspace>.free-shipping-sticker{left:162.5px;transform:translate(-50%,-50%) rotate(-3deg)}@media(min-width:851px) and (max-width:1100px){.workspace>.free-shipping-sticker{left:142.5px}}@media(max-width:850px){.workspace>.free-shipping-sticker{left:50%}}

.character-mini-cover{display:block;position:absolute;inset:0;background-size:100% 100%;overflow:hidden}.character-mini-cover .character-overlay{display:block}

.sticker-back-name{margin:15px 0 12px;padding:14px 16px;border:1px solid #a36bff80;border-radius:12px;background:#30363d}.sticker-back-name[hidden]{display:none}.sticker-back-name label{display:block;margin:0 0 8px;color:#f4f2fa;font-weight:700;font-size:13px}.sticker-back-name input{display:block;width:100%;max-width:420px;padding:10px 12px;background:#242a30;color:#fff;border:1px solid #77818c;border-radius:8px}.sticker-back-name small{display:block;margin-top:7px;color:#c4ccd6;font-size:11px;line-height:1.4}

.stamp-photo-window.cuore-cover-photo{border-radius:50%!important}.cuore-cover-clouds{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}.cuore-cover-photo .stamp-upload-copy{max-width:60%;margin:auto}

.cuore-cover-date{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}

/* Real daily count, intentionally secondary to the editor and checkout. */
.saved-today{font-size:11px;line-height:1.5;text-align:center;color:#c7bdde;margin:8px 0 4px;padding:0 8px}.saved-today[hidden]{display:none!important}
/* Stronger type inside the existing format cards; preserve their outer dimensions. */
.format-comparison .single-format{height:172.8px;gap:3px;padding:9px 8px}
.format-comparison .single-format>strong:first-child{font:bold 26px/1 Georgia,serif}
.format-comparison .single-format>span,.format-comparison .single-format>small,.format-comparison .single-format #priceType{font-size:11.5px;font-weight:700;line-height:1.15;color:#292c16}
.format-comparison .custom-format>span,.format-comparison .custom-format>small{color:#382009}
.format-comparison .single-format .album-price{font:800 24px/1.05 Arial,sans-serif;margin-top:3px;padding-top:2px;white-space:nowrap}
@media(min-width:851px) and (max-width:1100px){.format-comparison .single-format{height:186.3px}}
@media(max-width:360px){.format-comparison .single-format{height:186.3px}}

/* Preserve the original strip geometry while hiding its contents. */
.steps-placeholder > *{visibility:hidden}
