/* Customer UI only. Deliberately no #grid, #productGrid, .card or canvas selectors. */
body.qs-themed :is(#cartDrawer,#productModal,#authModal){color:var(--shop-ink);font-family:var(--shop-body)}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) :is(h2,h3){letter-spacing:-.035em;line-height:1.2}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) :is(.note,small){line-height:1.65}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) label{color:var(--shop-ink)}
/* Control hierarchy: navy commits, silver navigates, rose removes, teal confirms. */
body.qs-themed.journey-page :is(button,.action):not(.order-btn),
body.qs-themed :is(#cartDrawer,#productModal,#authModal) button,
body.qs-themed :is(.faq-tools button,.qs-pill){
 min-height:44px;border-radius:var(--qs-control-radius);font-family:var(--shop-body);font-size:14px;font-weight:600;
 transition:background var(--qs-duration),border-color var(--qs-duration),box-shadow var(--qs-duration);touch-action:manipulation;cursor:pointer;
}
body.qs-themed.journey-page :is(.secondary,.secondary-btn,.text-btn,.secondary-action,.faq-tools button,:where(#refresh)),
body.qs-themed :is(#cartDrawer,#authModal) :is(.back-to-bag,.icon-btn,.close,.promo-entry button),
body.qs-themed #productModal :is(.quick-actions button,.move-arrows button,.close,.choose-photo),
body.qs-themed.journey-auth :is(.secondary-action,.text-action){
 padding:var(--qs-control-pad);background:var(--qs-metal);border:1px solid var(--qs-glass-line);color:var(--shop-ink);box-shadow:var(--qs-control-shadow);text-decoration:none;
}
body.qs-themed.journey-page :is(button[type=submit],.action:not(.secondary)),
body.qs-themed :is(#cartDrawer,#productModal,#authModal) .primary,
body.qs-themed.journey-auth .submit{
 padding:12px 22px;background:var(--qs-dark-surface);border:1px solid #607287;color:#fff;box-shadow:inset 0 1px #ffffff40,0 5px 14px #1724371b;font-weight:650;
}
body.qs-themed.journey-page :is(button[type=submit],.action:not(.secondary)):hover,
body.qs-themed :is(#cartDrawer,#productModal,#authModal) .primary:hover,
body.qs-themed.journey-auth .submit:hover{background:linear-gradient(120deg,#263b52,#3c526c,#263b52);border-color:#92a4b8}
body.qs-themed :is(#cancelOrder,#clearDesigns,#signOut,#logoutButton,#removeProductPhoto,.remove,[data-remove],.qs-danger){
 padding:var(--qs-control-pad);border:1px solid var(--qs-danger-line);border-radius:var(--qs-control-radius);background:var(--qs-danger-glass);color:var(--qs-danger-ink);box-shadow:var(--qs-control-shadow);min-height:44px;font-weight:600;text-decoration:none;
}
body.qs-themed :is(#cancelOrder,#clearDesigns,#signOut,#logoutButton,#removeProductPhoto,.remove,[data-remove],.qs-danger):hover{border-color:var(--qs-danger-ink);box-shadow:inset 0 1px #fff,0 4px 12px #96344b1b}
body.qs-themed #productModal .reset-design{padding:10px 16px;background:var(--qs-warning-glass);color:var(--qs-warning-ink);border:1px solid var(--qs-warning-line);box-shadow:var(--qs-control-shadow)}
body.qs-themed :is(button,.action):disabled{cursor:not-allowed;opacity:.5;box-shadow:none;filter:none}
body.qs-themed :is(#cartDrawer,#productModal,#authModal,main) :is(button,input,select,textarea,a):focus-visible:not(#grid *):not(#productGrid *){outline:3px solid var(--qs-info-ink);outline-offset:3px}
body.qs-themed :is(#cartDrawer,#productModal,#authModal) button:active:not(:disabled){box-shadow:inset 0 2px 4px #17243718}
/* Readable frosted fields, including the auth and editing forms previously missed by the cascade. */
body.qs-themed.journey-page :is(form input,form select,form textarea):not([type=checkbox]):not([type=radio]):not([type=range]),
body.qs-themed #cartDrawer :is(input,select,textarea):not([type=checkbox]):not([type=radio]){
 min-height:48px;width:100%;max-width:100%;min-width:0;padding:12px 14px;border:1px solid var(--qs-glass-line);border-radius:14px;background:var(--qs-input-glass);color:var(--shop-ink);font:400 16px/1.5 var(--shop-body);box-shadow:inset 0 1px #fff,inset 0 -1px #fff8;
}
body.qs-themed :is(form,#productModal) :is(input,textarea,select)::placeholder{color:#667387;opacity:1}
body.qs-themed :is(form,#productModal) :is(input[type=checkbox],input[type=radio]){accent-color:var(--qs-success-ink);flex-shrink:0}
body.qs-themed :is(form input,form textarea,form select):focus-visible{border-color:var(--qs-info-ink)}
body.qs-themed input[type=file]::file-selector-button{padding:8px 12px;margin-right:10px;border:1px solid var(--qs-glass-line);border-radius:20px;background:var(--qs-metal);color:var(--shop-ink);font:inherit;cursor:pointer}
/* Compact checkout sections share the homepage's glass rim and silver depth. */
body.qs-themed #cartDrawer{background:var(--qs-glass);width:min(1080px,calc(100% - 32px));border:1px solid #fff;border-radius:28px}
body.qs-themed #cartDrawer .drawer-head{padding:22px 28px;background:var(--qs-metal);border-bottom:1px solid var(--qs-glass-line);box-shadow:inset 0 1px #fff;gap:16px;flex-shrink:0}
body.qs-themed #cartDrawer .drawer-head h2{font-size:30px;margin:3px 0 0}
body.qs-themed #cartDrawer .bag-kicker{color:var(--shop-muted);letter-spacing:.025em;text-transform:none;font-size:12px;font-weight:500}
body.qs-themed #cartDrawer .close{flex:0 0 44px;width:44px;height:44px;padding:0;font-size:24px}
body.qs-themed #cartDrawer .bag-layout{grid-template-columns:minmax(0,1fr) 300px;min-height:0}
body.qs-themed #cartDrawer .drawer-body{padding:22px 24px 28px;min-width:0;scroll-padding-block:20px 100px}
body.qs-themed #cartDrawer .summary{background:var(--qs-metal);border-color:var(--qs-glass-line);padding:26px 22px;gap:0}
body.qs-themed #cartDrawer .summary h3{font-size:20px;margin:0 0 20px}
body.qs-themed #cartDrawer .total-line{font-weight:500;font-size:14px;line-height:1.5;margin:8px 0;gap:14px;align-items:start}
body.qs-themed #cartDrawer .total-line>span:last-child{text-align:right;font-variant-numeric:tabular-nums}
body.qs-themed #cartDrawer .total-line:has(#cartTotal){font-size:22px;font-weight:650;border-top:1px solid var(--qs-glass-line);padding-top:18px;margin-top:16px}
body.qs-themed #cartDrawer #promoLine{color:var(--qs-success-ink)}
body.qs-themed #cartDrawer .checkout{gap:18px;margin:0;padding:0;border:0;display:grid}
body.qs-themed #cartDrawer .checkout-section{padding:22px;border:1px solid var(--qs-glass-line);border-radius:22px;background:var(--qs-glass);box-shadow:var(--qs-glass-shadow);min-width:0}
body.qs-themed #cartDrawer .checkout-section h3{font-size:21px;margin:0 0 16px}
body.qs-themed #cartDrawer .checkout-section .field{margin:16px 0;gap:7px;min-width:0}
body.qs-themed #cartDrawer .checkout-section .field>label{font-size:14px;font-weight:600}
body.qs-themed #cartDrawer .checkout-section .field:last-child{margin-bottom:0}
body.qs-themed #cartDrawer .checkout-section .note{text-align:left;margin:8px 0 16px;color:var(--shop-muted)}
body.qs-themed #cartDrawer .checkout-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
body.qs-themed #cartDrawer .checkout-contact-grid .field{margin:12px 0}
body.qs-themed #cartDrawer .checkout-contact-grid small{font-size:12px;color:var(--shop-muted)}
body.qs-themed #cartDrawer .fulfilment-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.qs-themed #cartDrawer .fulfilment-options label{min-height:52px;padding:13px 18px;border-radius:16px;background:var(--qs-metal);border:1px solid var(--qs-glass-line);box-shadow:var(--qs-control-shadow);font-weight:600;gap:10px}
body.qs-themed #cartDrawer .fulfilment-options label:has(:checked){background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line);box-shadow:inset 0 1px #fff,0 0 0 1px var(--qs-success-line)}
body.qs-themed #cartDrawer .checkout-review{margin:0;gap:12px}
body.qs-themed #cartDrawer .checkout-review-item{background:var(--qs-input-glass)!important;padding:14px;border-radius:16px;grid-template-columns:64px minmax(0,1fr) auto;gap:14px}
body.qs-themed #cartDrawer .checkout-review-item strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
body.qs-themed #cartDrawer .checkout-review-item small{font-size:12px;color:var(--shop-muted)!important}
body.qs-themed #cartDrawer .checkout-review-item img{width:64px;height:80px;border-radius:10px;object-fit:contain;background:#fff8}
body.qs-themed #cartDrawer .confirm-design{margin-top:16px;background:var(--qs-info-glass)!important;color:var(--qs-info-ink);border:1px solid var(--qs-info-line);padding:14px;border-radius:16px;font-size:14px}
body.qs-themed #cartDrawer .confirm-design:has(:checked){background:var(--qs-success-glass)!important;color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed #cartDrawer .location-grid{gap:12px}
body.qs-themed #cartDrawer .promo-entry{display:flex;gap:8px;align-items:stretch}
body.qs-themed #cartDrawer .promo-entry input{flex:1;width:0;min-width:0}
body.qs-themed #cartDrawer .promo-entry button{padding:10px 18px;margin:0;min-width:76px;border-radius:14px}
body.qs-themed #cartDrawer .checkout-disclosure{border-top:1px solid var(--qs-glass-line);padding-top:14px;margin-top:14px}
body.qs-themed #cartDrawer .checkout-disclosure>summary{font-size:14px;font-weight:600;cursor:pointer;min-height:44px;padding:10px 0;color:var(--shop-ink)}
body.qs-themed #cartDrawer .checkout-submit{padding:0 2px 4px}
body.qs-themed #cartDrawer .checkout-submit .primary{margin:0;min-height:52px;font-size:16px;border-radius:18px}
body.qs-themed #cartDrawer .checkout-submit .note{text-align:center;font-size:13px;margin-top:10px}
body.qs-themed #cartDrawer .cart-item{padding:22px 0;gap:18px}
body.qs-themed #cartDrawer .qty{border-radius:24px;gap:10px;box-shadow:inset 0 1px #fff}
body.qs-themed #cartDrawer .qty button{width:44px;height:44px;padding:0;color:var(--shop-ink);font-size:18px}
body.qs-themed #cartDrawer .cart-item .back-to-bag{font-size:12px;padding:8px 12px;margin:8px 4px 0 0;display:inline-flex;align-items:center}
/* Destination confirmation is a positive action, not a second Place order action. */
body.qs-themed .delivery-picker{background:var(--qs-glass);border:1px solid var(--qs-glass-line);border-radius:18px;box-shadow:inset 0 1px #fff;padding:16px;margin:18px 0}
body.qs-themed .delivery-picker h3{font-size:17px!important;margin-bottom:10px!important}
body.qs-themed .delivery-picker input{background:var(--qs-input-glass);border-color:var(--qs-glass-line);font-size:16px;border-radius:14px}
body.qs-themed .delivery-pin-actions button{background:var(--qs-metal);color:var(--shop-ink);border:1px solid var(--qs-glass-line);box-shadow:var(--qs-control-shadow);font-weight:600}
body.qs-themed .delivery-picker .delivery-confirm{background:var(--qs-success-glass)!important;color:var(--qs-success-ink)!important;border:1px solid var(--qs-success-line)}
body.qs-themed .delivery-quote-feedback{background:var(--qs-info-glass);color:var(--qs-info-ink);border:1px solid var(--qs-info-line);padding:12px 14px;border-radius:14px;text-align:left}
body.qs-themed .delivery-quote-feedback[data-tone=success]{background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed .delivery-quote-feedback[data-tone=error],body.qs-themed .delivery-map-error:not(:empty){background:var(--qs-warning-glass);color:var(--qs-warning-ink);border-color:var(--qs-warning-line)}
/* Page surfaces and states retain real content and editable sections. */
body.qs-themed.journey-page :is(.main,.layout){min-width:0}
body.qs-themed.journey-page :is(.panel,.details,.edit-form){border-radius:24px;padding:clamp(20px,3vw,32px);background:var(--qs-glass);border-color:var(--qs-glass-line);box-shadow:var(--qs-glass-shadow)}
body.qs-themed.journey-page :is(.panel,.details) :is(h2,h3){color:var(--shop-ink);line-height:1.25}
body.qs-themed.journey-page :is(.panel,.details) p{color:var(--shop-muted);line-height:1.7}
body.qs-themed.journey-page :is(.panel,.details,.faq) a:not(.action):not(.account-order){text-underline-offset:4px;text-decoration-thickness:1px}
body.qs-themed.journey-page :is(.request-note,.notice){background:var(--qs-info-glass);border-color:var(--qs-info-line);color:var(--qs-info-ink);border-radius:18px}
body.qs-themed.journey-page .change-actions{background:var(--qs-info-glass);border:1px solid var(--qs-info-line);border-radius:18px;padding:18px}
body.qs-themed.journey-page .change-actions>div{display:flex;gap:10px;flex-wrap:wrap}
body.qs-themed.journey-page :is(.edit-grid,.address-fields){gap:14px}
body.qs-themed.journey-page .edit-products{gap:16px}
body.qs-themed.journey-page :is(.edit-product,.address-card){background:var(--qs-input-glass);border:1px solid var(--qs-glass-line);border-radius:18px;padding:18px}
body.qs-themed.journey-page :is(.badge,.order-status){font-size:12px;font-weight:600;border-radius:16px;padding:7px 11px;border:1px solid var(--qs-info-line);background:var(--qs-info-glass);color:var(--qs-info-ink)}
body.qs-themed.journey-page :is(.badge,.order-status):is(.completed,.refunded,.approved,[data-status=completed],[data-status=refunded]){background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed.journey-page :is(.badge,.order-status):is(.cancelled,.rejected,.declined,[data-status=cancelled],[data-status=rejected]){background:var(--qs-danger-glass);color:var(--qs-danger-ink);border-color:var(--qs-danger-line)}
body.qs-themed.journey-page .tracking-stages .done{background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed.journey-page .tracking-stages .done .stage-number{border-color:var(--qs-success-line);color:var(--qs-success-ink)}
body.qs-themed.journey-page .tracking-stages .current{background:var(--qs-info-glass);color:var(--qs-info-ink);border-color:var(--qs-info-line);box-shadow:inset 0 1px #fff,0 0 0 1px var(--qs-info-line)}
body.qs-themed.journey-page .tracking-stages .current .stage-number{background:var(--qs-info-ink);color:white;border-color:var(--qs-info-ink)}
body.qs-themed.journey-page .section[data-status] h3{color:var(--qs-warning-ink)}
body.qs-themed.journey-page .section[data-status=declined] h3{color:var(--qs-danger-ink)}
body.qs-themed.journey-page .section:is([data-status=approved],[data-status=received],[data-status=refunded],[data-status=resolved]) h3{color:var(--qs-success-ink)}
body.qs-themed.journey-page .faq summary{font-size:16px;line-height:1.5}
body.qs-themed.journey-page .faq summary::after{color:var(--qs-info-ink)}
body.qs-themed.journey-page .faq details[open]{border-color:var(--qs-info-line);background:var(--qs-input-glass)}
body.qs-themed.journey-page .faq p{font-size:16px;color:var(--shop-muted)}
body.qs-themed.journey-auth .card{border-radius:26px;border:1px solid var(--qs-glass-line);background:var(--qs-glass);box-shadow:var(--qs-glass-shadow);padding:clamp(24px,4vw,40px)}
body.qs-themed.journey-auth .layout{gap:32px;align-items:start}
body.qs-themed.journey-auth .card h2{color:var(--shop-ink);font-size:32px;letter-spacing:-.04em}
body.qs-themed.journey-auth :is(.intro,.field-help,.switch){color:var(--shop-muted);line-height:1.65}
body.qs-themed.journey-auth :is(.text-action,.password-toggle){color:var(--qs-info-ink);font-weight:600}
body.qs-themed.journey-auth :is(.field-help,.switch) a{color:var(--qs-info-ink);text-decoration:underline;text-underline-offset:4px}
body.qs-themed :is(#message,#error,.message,.error):not(:empty):not([hidden]){border-radius:16px;padding:14px 18px;line-height:1.6;border:1px solid var(--qs-danger-line)}
body.qs-themed :is(#message,#error,.message,.error):not(:empty):not([hidden]):not([data-tone=success]):not(.success){background:var(--qs-danger-glass);color:var(--qs-danger-ink)}
body.qs-themed :is(#message,#error,.message)[data-tone=success],body.qs-themed .message.success{background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed #toast{background:var(--qs-info-glass);color:var(--qs-info-ink);border:1px solid var(--qs-info-line);box-shadow:var(--qs-glass-shadow);border-radius:18px;font-size:14px}
body.qs-themed #toast[data-tone=success]{background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed #toast[data-tone=error]{background:var(--qs-danger-glass);color:var(--qs-danger-ink);border-color:var(--qs-danger-line)}
body.qs-themed :is(.quality.good,#promoFeedback[data-tone=success]){color:var(--qs-success-ink);background:var(--qs-success-glass);border-radius:12px}
body.qs-themed .quality.ok{color:var(--qs-warning-ink);background:var(--qs-warning-glass)}
body.qs-themed :is(.quality.low,#promoFeedback[data-tone=error]){color:var(--qs-danger-ink);background:var(--qs-danger-glass);border-radius:12px}
body.qs-themed #promoFeedback:not(:empty){padding:8px 12px;font-size:13px;line-height:1.5}
body.qs-themed #store-closed-screen .card{background:var(--qs-glass);border-color:var(--qs-glass-line);border-radius:26px;box-shadow:var(--qs-glass-shadow)}
body.qs-themed #productModal :is(.canvas-tip,.design-heading>span){background:var(--qs-info-glass);color:var(--qs-info-ink);border-color:var(--qs-info-line)}
body.qs-themed #productModal .detail-price{color:var(--shop-ink)}
body.qs-themed #productModal .detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.qs-themed #productModal :is(.detail-gallery,.detail-content,.design-panel){min-width:0}
body.qs-themed #productModal :is(.choice,.control-card,.lock-card,.move-panel){background:var(--qs-input-glass);border-color:var(--qs-glass-line);color:var(--shop-ink);box-shadow:inset 0 1px #fff}
body.qs-themed #productModal .choice{min-height:44px;border-radius:14px}
body.qs-themed #productModal .choice.active{background:var(--qs-success-glass);color:var(--qs-success-ink);border-color:var(--qs-success-line)}
body.qs-themed #productModal .design-toolbox{background:var(--qs-glass)}
body.qs-themed #productModal :is(.control-title,.lock-card strong,.move-panel span,.design-size-row output){color:var(--shop-ink)}
body.qs-themed #productModal .control-title output{color:var(--qs-info-ink)}
body.qs-themed #productModal :is(.design-controls input[type=range],.editor-options input){accent-color:var(--qs-info-ink)}
body.qs-themed #productModal .switch input:checked+i{background:var(--qs-success-ink)}
body.qs-themed #productModal .switch:has(input:focus-visible){outline:3px solid var(--qs-info-ink);outline-offset:4px;border-radius:20px}
body.qs-themed #productModal .move-arrows{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px)}
body.qs-themed #productModal .quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}
body.qs-themed #productModal .quick-actions button{min-width:0;padding:8px 4px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 body.qs-themed #productModal .detail-grid{grid-template-columns:minmax(0,1fr)}
 body.qs-themed #productModal .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qs-themed.journey-page :is(.panel,.details,.edit-form){border-radius:20px;padding:20px 16px}
 body.qs-themed.journey-auth .story{min-height:0;padding:24px;margin-bottom:20px}
 body.qs-themed.journey-auth .story h1{font-size:32px}
 body.qs-themed.journey-page .change-actions>div>*{flex:1;min-width:140px}
 body.qs-themed.journey-page .privacy-panel button{display:block;width:100%;margin:12px 0 0}
 body.qs-themed #cartDrawer .drawer-head{padding:16px 20px}
 body.qs-themed #cartDrawer .drawer-head h2{font-size:27px}
 body.qs-themed #cartDrawer .checkout-contact-grid{grid-template-columns:1fr;gap:0}
 body.qs-themed #cartDrawer .checkout-section{padding:18px 14px;border-radius:20px}
 body.qs-themed #cartDrawer .checkout-section h3{font-size:20px}
 body.qs-themed #cartDrawer .checkout-section .field{margin:12px 0}
 body.qs-themed #cartDrawer .location-grid{grid-template-columns:1fr;gap:0}
 body.qs-themed #cartDrawer .summary{padding:18px 20px}
 body.qs-themed #cartDrawer.checkout-mode .bag-layout{display:flex;flex-direction:column;max-height:calc(100dvh - 84px);overflow:auto}
 body.qs-themed #cartDrawer.checkout-mode .summary{order:-1;padding:18px 20px;border-bottom:1px solid var(--qs-glass-line);border-top:0}
 body.qs-themed #cartDrawer.checkout-mode .summary h3{font-size:16px;margin-bottom:8px}
 body.qs-themed #cartDrawer.checkout-mode .summary .note{display:none}
 body.qs-themed #cartDrawer.checkout-mode .summary .total-line{margin:4px 0}
 body.qs-themed #cartDrawer.checkout-mode .summary .total-line:has(#cartTotal){font-size:21px;margin-top:10px;padding-top:10px}
 body.qs-themed #cartDrawer.checkout-mode .drawer-body{padding:16px 12px 28px;overflow:visible;flex:none;max-height:none}
 body.qs-themed #cartDrawer .checkout-review-item{grid-template-columns:56px minmax(0,1fr);gap:12px}
 body.qs-themed #cartDrawer .checkout-review-item>strong{grid-column:2}
 body.qs-themed #cartDrawer .checkout-review-item img{width:56px;height:70px;grid-row:1/3}
 body.qs-themed #cartDrawer .checkout-submit{padding:0 4px calc(8px + env(safe-area-inset-bottom))}
 body.qs-themed #cartDrawer .fulfilment-options label{padding:12px;font-size:14px}
 body.qs-themed .delivery-picker{padding:12px}
 body.qs-themed.journey-auth .card h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){body.qs-themed :is(#cartDrawer,#productModal,#authModal,main) :is(button,.action){transition:none}}
@supports not (background:linear-gradient(120deg,#fff,#eee)){body.qs-themed .checkout-section{background:#f6f8fb}}
