.orders-book{--order-rose:#b17c75;--order-sage:#879574;--order-line:#d9c5aa;color:var(--ink,#6b5546)}
.order-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 28px}.order-topline>.hand{font-size:28px}.order-topline button{background:#f5ebdc;border:1px dashed #bba78a;padding:10px 18px;border-radius:7px;cursor:pointer}.order-topline .text-btn{background:none;border:0}.order-saved{font-size:13px;color:#738063}
.order-intro{display:flex;align-items:flex-start;gap:16px;margin-bottom:25px}.order-intro p{font-size:14px;margin:6px 0;line-height:1.8}.order-step-number{display:grid;place-items:center;flex:0 0 42px;height:42px;border:1px dashed #ba9e84;border-radius:50%;font-family:Caveat,cursive;font-size:26px;color:#ad7a68}
.order-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:10px 0 26px}.order-envelope{position:relative;background:linear-gradient(160deg,#fffaf0,#f3e9d8);padding:28px 22px 22px;border:1px solid #dfccb2;box-shadow:2px 6px 0 #e9dfcf66;border-radius:3px;display:flex;flex-direction:column;align-items:flex-start}.order-envelope:before,.order-letter:before,.order-polaroid:before{content:'';position:absolute;width:76px;height:23px;top:-10px;left:calc(50% - 38px);transform:rotate(-5deg);background:repeating-linear-gradient(90deg,#d8bca659 0 10px,#eee1c87a 10px 20px);pointer-events:none}.order-envelope:nth-child(2){background:linear-gradient(155deg,#f5f6ec,#f1ecd9)}.order-envelope:nth-child(3){background:linear-gradient(155deg,#f9f0ee,#f3e7dd)}.order-number{font-size:10px;letter-spacing:.16em;color:#a98b71}.order-envelope>img{width:105px;height:105px;object-fit:contain;align-self:center;margin-top:12px}.order-envelope h3{font-size:21px;line-height:1.5;margin:12px 0}.order-envelope p{font-size:14px;line-height:1.9;margin:0 0 20px;flex:1}.order-envelope .btn{width:100%;font-size:14px;padding:11px 10px;min-height:44px}.order-complete{border-style:dashed}.order-footnote{font-size:13px;line-height:1.9;color:#998675}.order-in-progress{width:100%;padding:18px 22px;margin:0 0 28px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;text-align:left;background:#e9ecdf;border:1px dashed #a3ad91;cursor:pointer;border-radius:3px}.order-in-progress>span{font-size:12px;color:#6b7b58}.order-in-progress>strong{flex:1}.order-in-progress>small{font-size:13px}
.order-reading{display:grid;grid-template-columns:1.1fr 1fr;gap:42px;padding:12px 0}.order-letter{position:relative;background:repeating-linear-gradient(transparent 0 31px,#dacdb443 31px 32px),#fcf5e9;padding:35px;border:1px solid #e2cfb5;box-shadow:0 6px 16px #6e4d2910}.order-portrait{width:110px;height:110px;object-fit:contain;display:block;margin-bottom:16px}.order-postmark{position:absolute;right:22px;top:24px;transform:rotate(12deg);width:86px;height:86px;border:3px double #bd9680;border-radius:50%;text-align:center;padding-top:21px;font-size:10px;line-height:1.7;color:#b58a73;box-sizing:border-box}.order-letter .hand{font-size:27px}.order-letter h3{font-size:24px;line-height:1.5}.order-letter p{font-size:17px;line-height:2;white-space:normal}.order-signature{display:block;text-align:right;font-size:14px;color:#ad8273;margin-top:26px}.order-planning{padding:15px 0}.order-planning>.hand{font-size:30px}.order-planning p{line-height:1.9;font-size:15px}.order-clues{padding-left:24px}.order-clues li{padding:12px 0;border-bottom:1px dashed #d7c4ad;line-height:1.6}.order-reward{background:#f0eddd;padding:16px 20px;border-radius:3px;font-size:14px;line-height:1.9}
.order-workbench{display:grid;grid-template-columns:1fr 1.1fr;gap:36px;align-items:start}.order-product{background:radial-gradient(ellipse at 50% 45%,#fffdf4,#f1e6d4);border:1px solid #e1cdb1;border-radius:4px;box-shadow:inset 0 0 0 9px #fff9ed;display:flex;flex-direction:column;align-items:center;padding:15px;min-width:0}.order-product>.tailor-textile{width:100%;max-width:480px;aspect-ratio:1;height:auto}.order-product>.hand{font-size:27px;text-align:center;margin:-5px 0 10px}.order-preview-column label{display:block;margin-top:20px}.order-preview-column input{width:100%;box-sizing:border-box}.order-letter-fold{margin:22px 0}.order-letter-fold>summary{font-size:14px;cursor:pointer;padding:12px 0}.order-letter-fold .order-letter{margin-top:12px;padding:25px}.order-letter-fold .order-letter h3{font-size:20px}.order-letter-fold .order-letter p{font-size:14px}.order-letter-fold .order-portrait{width:75px;height:75px}.order-controls>label{display:block;font-weight:600;margin:0 0 12px}.order-controls>label:not(:first-child){margin-top:24px}.order-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.order-targets button{padding:4px 8px 12px;background:#fff9ef;border:1px solid #d9c6ac;border-radius:4px;cursor:pointer;min-width:0}.order-targets svg{width:100%;height:70px}.order-targets span{display:block;font-size:14px}.order-targets button.selected,.order-colors button.selected{background:#eaf0df;border-color:#81906d;box-shadow:0 0 0 1px #81906d}.order-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.order-colors button{display:flex;align-items:center;flex-direction:column;gap:8px;padding:9px 3px;min-width:0;border:1px solid transparent;background:none;border-radius:5px;cursor:pointer}.order-colors i{width:32px;height:32px;background:var(--swatch);border-radius:44% 56% 49% 51%;box-shadow:inset 0 0 0 3px #ffffff44,1px 2px 3px #785e5022}.order-colors span{font-size:11px;line-height:1.4;text-align:center}.order-dyes{margin:14px 0 22px;border:1px dashed #cfbda5;padding:10px 14px}.order-dyes>summary{cursor:pointer;font-size:13px}.order-dyes p{font-size:12px;line-height:1.7}.order-dyes .order-colors{grid-template-columns:repeat(3,minmax(0,1fr))}.order-motifs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:18px}.order-motifs button{padding:6px 2px;background:#f5eddf;border:1px solid #dfcbb1;cursor:pointer;border-radius:4px;display:flex;flex-direction:column;align-items:center;min-width:0}.order-motifs .watercolor-stamp,.order-motifs svg{width:46px;height:46px;display:block}.order-motifs span:last-child{font-size:12px;margin-top:5px}.order-controls .btn{font-size:14px;padding:13px 16px}.order-controls .text-btn{font-size:13px}.order-delivery{border-top:1px dashed #cab496;margin-top:32px;padding-top:26px;display:grid;grid-template-columns:1.1fr 1fr;gap:36px}.order-delivery h3{font-size:20px;margin:0 0 16px}.order-checks{display:grid;gap:12px}.order-checks>div{display:flex;gap:12px;align-items:center}.order-checks>div>span{border:1px dashed #bfaa90;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;color:#b29b81;flex-shrink:0}.order-checks>.is-met>span{background:#e7eddf;color:#6f805f;border-color:#81936b}.order-checks strong{display:block;font-size:14px}.order-checks small{display:block;font-size:12px;color:#9a8877;margin-top:2px}.order-delivery p{font-size:14px;line-height:1.8}.order-delivery-actions{background:#f3ecde;padding:24px;display:flex;flex-direction:column;justify-content:center;border-radius:4px}.order-delivery-actions>.hand{font-size:27px}.order-delivery-actions small{font-size:12px;line-height:1.8;color:#968574}.order-delivery-actions .btn{margin:14px 0}
.order-receipt-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:26px;align-items:start}.order-polaroid{position:relative;background:#fffaf0;border:1px solid #ddcbb2;padding:13px 13px 18px;box-shadow:2px 5px 0 #d7c9b32b;min-width:0}.order-polaroid>.hand{display:block;padding:14px 3px 0;text-align:center;font-size:26px}.order-memory-scene{position:relative;aspect-ratio:4/3;overflow:hidden;isolation:isolate;background:#edd8bb}.order-room-bg{width:100%;height:100%;object-fit:fill;position:absolute;inset:0}.order-room-curtain{position:absolute;left:5%;top:5%;width:45%;height:70%}.order-room-table{position:absolute;left:58%;top:51%;width:34%;height:40.333%;background:url('assets/furniture-classic-shadowfree-v33.png') 33.3333% 0/400% 300% no-repeat}.order-room-tablecloth{position:absolute;left:56%;top:49%;width:38%;height:40%}.order-room-bunny{position:absolute;left:26%;top:53%;width:32%;height:42.666%;object-fit:contain}.order-room-pillow{position:absolute;left:33%;top:74%;width:26%;height:27%}.order-memory-scene .tailor-textile{width:100%;height:100%}.order-photo-label{position:absolute;bottom:3%;left:3%;font-size:clamp(8px,1vw,13px);padding:5px 9px;background:#fff9e8da;color:#7c6552}.order-thank-you{padding:12px 8px}.order-stamp{display:inline-block;padding:5px 12px;border:3px double #9ba486;transform:rotate(5deg);color:#78866a;font-size:12px;letter-spacing:.12em}.order-thank-you h3{font-size:23px;margin:20px 0 12px}.order-thank-you>p{font-size:15px;line-height:1.9}.order-swatch-keepsake{display:flex;align-items:center;gap:10px;border-top:1px dashed #dbc8ad;border-bottom:1px dashed #dbc8ad}.order-swatch-keepsake svg{width:105px;height:105px;flex-shrink:0}.order-swatch-keepsake>span{font-size:13px}.order-receipt-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}.order-receipt-actions button{font-size:14px}.order-album{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 24px;margin-top:26px}.order-album>button{cursor:pointer;text-align:left}.order-album strong,.order-album small{display:block;margin:10px 4px 0}.order-album small{font-size:12px;color:#a08b76}.order-empty{grid-column:1/-1;padding:55px 20px;border:1px dashed #cbb89b;text-align:center}.order-empty>.hand{font-size:30px}.orders-book button:focus-visible,.order-reading button:focus-visible{outline:3px solid #ac8276;outline-offset:4px}.order-bookmark{display:flex!important;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 18px!important;background:#f5eadd!important;border:1px dashed #c5aa8c!important;margin:15px 0!important;border-radius:4px!important;cursor:pointer}.order-bookmark>span:first-child{font-family:Caveat,cursive;font-size:35px;line-height:1;color:#b48773}.order-bookmark strong,.order-bookmark small{display:block}.order-bookmark strong{font-size:15px}.order-bookmark small{font-size:12px;margin-top:5px;color:#9c8674}
@media(max-width:900px){.order-board{gap:14px}.order-envelope{padding:25px 15px 18px}.order-workbench{gap:22px}.order-receipt-grid{grid-template-columns:1.2fr 1fr}.order-motifs{grid-template-columns:repeat(3,minmax(0,1fr))}.order-colors{grid-template-columns:repeat(3,minmax(0,1fr))}.order-product>.hand{font-size:23px}}
@media(max-width:640px){.order-topline{align-items:flex-start;margin-bottom:24px}.order-topline>.hand{font-size:22px}.order-topline button{font-size:12px;padding:9px}.order-board,.order-reading,.order-workbench,.order-delivery,.order-receipt-grid{grid-template-columns:1fr}.order-board{gap:28px}.order-envelope{display:grid;grid-template-columns:80px 1fr;gap:6px 15px}.order-envelope .order-number{grid-column:1/-1}.order-envelope>img{grid-row:2/4;width:80px;height:80px;margin:0}.order-envelope h3{font-size:19px;margin:8px 0}.order-envelope p{font-size:13px;line-height:1.8;margin:0 0 10px}.order-envelope .btn{grid-column:1/-1}.order-reading{gap:20px}.order-letter{padding:25px}.order-letter p{font-size:15px}.order-product{max-width:450px;margin:auto}.order-product>.tailor-textile{max-width:300px}.order-controls{margin-top:8px}.order-colors,.order-motifs{grid-template-columns:repeat(6,minmax(0,1fr))}.order-motifs .watercolor-stamp,.order-motifs svg{width:34px;height:34px}.order-colors span,.order-motifs span:last-child{font-size:10px}.order-delivery{gap:20px}.order-delivery-actions{padding:20px}.order-receipt-actions{display:grid;grid-template-columns:1fr;width:100%}.order-album{grid-template-columns:1fr}.order-thank-you{padding:4px}.order-in-progress{gap:8px}.order-in-progress strong{flex-basis:100%}.order-polaroid{padding:9px 9px 16px}}
@media(prefers-reduced-motion:no-preference){.order-envelope,.order-targets button,.order-motifs button{transition:transform .18s,box-shadow .18s}.order-envelope:hover{transform:translateY(-3px)}.order-motifs button:hover{transform:rotate(-3deg) translateY(-2px)}}

html:has(dialog.orders-dialog[open]){overflow:hidden}#dialog.orders-dialog{overflow-x:hidden}
