/* A single palette and header across the storefront and customer pages. */
body.magic-storefront {
 --shop-bg:#17172a;--shop-header:#0d0d18;--shop-surface:#231e33;--shop-raised:#2d273e;
 --shop-text:#f6f3fc;--shop-muted:#bdb5cd;--shop-border:#453b59;--shop-accent:#bd9bff;
 --ink:var(--shop-text);--muted:var(--shop-muted);--line:var(--shop-border);--paper:var(--shop-surface);--cream:var(--shop-raised);--navy:var(--shop-text);--blue:#8260e1;
 background:var(--shop-bg);color:var(--shop-text);
}
:root[data-theme=light] body.magic-storefront {
 --shop-bg:#faf8fe;--shop-header:#fff;--shop-surface:#fff;--shop-raised:#f0eaf8;
 --shop-text:#292039;--shop-muted:#70647e;--shop-border:#e1d8ed;--shop-accent:#7950b7;
 --night-page:var(--shop-bg);--night-surface:var(--shop-surface);--night-raised:var(--shop-raised);
}
#magic-home .ms-header{height:80px;background:var(--shop-header);border-bottom:1px solid var(--shop-border);padding:0 32px;gap:26px;color:var(--shop-text)}
#magic-home .ms-header nav{gap:25px;font-size:14px;white-space:nowrap}
#magic-home .ms-header .ms-tools{gap:17px}
#magic-home .ms-header .ms-tools>button,#magic-home .ms-header .ms-tools>a{color:var(--shop-text);min-height:40px}
#magic-home .ms-header .theme-toggle{width:40px;padding:8px;border-radius:50%;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-text)}
#magic-home .ms-header .theme-toggle svg{width:20px;height:20px}
#magic-home .ms-dropdown{background:var(--shop-surface);color:var(--shop-text);border-color:var(--shop-border);z-index:20}
#magic-home .ms-dropdown a:hover{background:var(--shop-raised)}
#magic-home .ms-languages button{color:var(--shop-muted)}
#magic-home .ms-languages button[aria-pressed=true]{color:var(--shop-text);background:var(--shop-raised)}
#magic-home .ms-facts{background:var(--shop-raised);color:var(--shop-text)}
#magic-home .ms-facts b{color:var(--shop-accent)}
#magic-home .ms-explore{color:var(--shop-accent)}
#magic-home .ms-collection p{color:var(--shop-muted)}
#magic-home .ms-collection-art{color:white}
#magic-home .ms-feature{background:var(--shop-raised);color:var(--shop-text)}
#magic-home .ms-feature p,#magic-home .ms-how p{color:var(--shop-muted)}
#magic-home .ms-love{background:linear-gradient(120deg,#352342,#28203c);color:#fff}
:root[data-theme=light] #magic-home .ms-love{background:linear-gradient(120deg,#f5e6f5,#eee6fa);color:var(--shop-text)}
#magic-home footer{background:var(--shop-header);border-color:var(--shop-border);color:var(--shop-muted)}
#magic-home .ms-footer-brand,#magic-home footer h3{color:var(--shop-text)}
#magic-home .ms-product-art.book-preview{background:radial-gradient(ellipse at center,var(--shop-raised),var(--shop-surface) 72%)}
#magic-home .ms-product h3{color:var(--shop-text)!important;font-size:19px;line-height:1.45;font-weight:750;margin:15px 0 8px;letter-spacing:-.35px}
#magic-home .ms-book-facts{display:flex;gap:8px 13px;flex-wrap:wrap;font-size:12px;color:var(--shop-muted);line-height:1.6}
#magic-home .ms-book-facts span+span:before{content:'·';margin-right:11px;opacity:.5}
#magic-home .ms-book-categories{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px;min-height:25px}
#magic-home .ms-book-categories a{padding:3px 8px;border:1px solid var(--shop-border);border-radius:20px;color:var(--shop-muted);font-size:10px;line-height:1.5}
#magic-home .ms-book-categories a:hover{border-color:var(--shop-accent);color:var(--shop-accent)}
#magic-home .ms-product .ms-book-price{font-size:14px;font-weight:750;margin:10px 0 0;color:var(--shop-text)}
#magic-home .ms-shelf-track{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-template-columns:none;grid-auto-columns:calc((100% - 60px)/4);gap:30px 20px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 0 14px;overscroll-behavior-x:contain}
#magic-home .ms-shelf-track::-webkit-scrollbar{display:none}
#magic-home .ms-shelf-track>.ms-product{scroll-snap-align:start;min-width:0}
#magic-home .ms-shelf-dots{display:flex;align-items:center;justify-content:center;gap:4px;padding:13px 0 5px}
#magic-home .ms-shelf-dots[hidden]{display:none}
#magic-home .ms-shelf-dots button{display:grid;place-items:center;width:28px;height:28px;background:none;border:0;padding:0;cursor:pointer}
#magic-home .ms-shelf-dots button:after{content:'';height:7px;width:7px;border-radius:50%;background:var(--shop-border);transition:width .2s,background .2s}
#magic-home .ms-shelf-dots button[aria-pressed=true]:after{width:22px;border-radius:5px;background:var(--shop-accent)}
#magic-home .catalog-filter-panel{background:var(--shop-surface);border-color:var(--shop-border);box-shadow:0 12px 35px #08031310}
#magic-home .catalog-filter-fields label{color:var(--shop-text)}
#magic-home .filter-panel-heading p,#magic-home .filter-panel-heading button{color:var(--shop-muted)}
#magic-home :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--shop-bg);color:var(--shop-text);border-color:var(--shop-border);color-scheme:inherit}
#magic-home :is(input,textarea)::placeholder{color:var(--shop-muted)}
#magic-home .library-heading>p:last-child,#magic-home #libraryCount{color:var(--shop-muted)}
#magic-home .library-categories>a{color:var(--shop-muted)}
#magic-home .library-categories>a:hover{background:var(--shop-raised);color:var(--shop-text)}
#magic-home .library-categories>a[aria-current=page]{background:#7650c7;color:#fff}
.magic-storefront .button-primary{background:#7851cc;color:#fff;border-color:#7851cc}
.magic-storefront .button-primary:hover{background:#8862db}
.magic-storefront .button-secondary{background:var(--shop-surface);color:var(--shop-text);border-color:var(--shop-border)}
.magic-storefront :is(.preview-form,.your-preview,.book-stage,.notice,.generation-tracker,.account-card,.unlock-panel){background:var(--shop-surface);color:var(--shop-text);border-color:var(--shop-border)}
.magic-storefront :is(.book-buy h1,.preview-intro h2,.preview-form label,.story-builder label,.builder-step h3){color:var(--shop-text)}
.magic-storefront :is(.book-description,.preview-intro p,.gallery-hint,.preview-free-note,.muted){color:var(--shop-muted)}
.magic-storefront .detail-tags span{background:var(--shop-raised);color:var(--shop-muted);border-color:var(--shop-border)}
.magic-storefront .sample-strip button{background:var(--shop-surface);border-color:var(--shop-border)}
.magic-storefront .sample-strip button.is-active{border-color:var(--shop-accent)}
.magic-storefront .book-reader .responsive-picture>img{filter:none!important}
.magic-storefront .book-reader-binding{will-change:transform}
.magic-storefront .book-reader[data-turning=true] .book-reader-cover,.magic-storefront .book-reader[data-turning=true] .book-reader-turn{will-change:transform}
.magic-storefront .book-gallery .book-stage{background:transparent;border:0;box-shadow:none;contain:layout style}
.magic-storefront .reader-arrow{width:40px;height:40px}
.magic-storefront .book-gallery-navigation button{background:var(--shop-surface);color:var(--shop-text);border-color:var(--shop-border)}
.magic-storefront .book-gallery-navigation{margin-top:5px}
#magic-home .customer-dashboard{max-width:1220px}
#magic-home .customer-dashboard #accountContent>h2{font-size:clamp(28px,4vw,38px);font-weight:800;letter-spacing:-1px;line-height:1.25;margin:8px 0 10px}
#magic-home .dashboard-intro{color:var(--shop-muted);line-height:1.7;margin-bottom:30px}
#magic-home .customer-dashboard .account-tabs{background:var(--shop-surface);border:1px solid var(--shop-border);padding:10px;gap:5px;border-radius:18px;top:calc(var(--custom-header-height,80px) + 12px);max-height:calc(100dvh - var(--custom-header-height,80px) - 24px);overflow-y:auto}
#magic-home .customer-dashboard .account-tabs button{min-height:48px;padding:13px 14px;border-radius:10px;font-size:14px;font-weight:650;color:var(--shop-muted)}
#magic-home .customer-dashboard .account-tabs button:hover{background:var(--shop-raised);color:var(--shop-text)}
#magic-home .customer-dashboard .account-tabs button.active{background:#7851cc;color:#fff}
#magic-home .customer-dashboard .account-tabs [data-logout]{border-color:var(--shop-border);border-radius:10px}
#magic-home .customer-dashboard #accountBody{background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:20px;padding:28px}
#magic-home .customer-dashboard .account-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
#magic-home .customer-dashboard .account-toolbar h2{font-size:22px;letter-spacing:-.5px}
#magic-home .customer-dashboard .account-grid{gap:20px}
#magic-home .customer-dashboard .account-card{background:var(--shop-bg);border:1px solid var(--shop-border);border-radius:14px;padding:16px;display:flex;flex-direction:column;color:var(--shop-text)}
#magic-home .customer-dashboard .account-card h3{font-size:17px;line-height:1.45;margin:15px 0 8px;font-weight:750}
#magic-home .customer-dashboard .account-card p{color:var(--shop-muted);font-size:12px;margin:4px 0 10px}
#magic-home .customer-dashboard .status-pill{display:inline-flex;align-self:start;border-radius:20px;background:var(--shop-raised);color:var(--shop-accent);padding:5px 10px;font-size:11px;margin-bottom:16px}
#magic-home .customer-dashboard .account-card .account-book-actions{display:flex;gap:7px;margin-top:auto}
#magic-home .customer-dashboard .account-card .button{font-size:13px;min-height:44px;margin:0;padding:10px 13px;border-radius:9px}
#magic-home .customer-dashboard .account-book-actions .button{flex:1}
#magic-home .customer-dashboard .account-book-actions .delete-book{width:44px;height:44px;flex-shrink:0;border:1px solid var(--shop-border);border-radius:9px;background:transparent;color:var(--shop-muted);cursor:pointer;display:grid;place-items:center}
#magic-home .customer-dashboard .delete-book:hover{color:#d15c73;border-color:#d15c73}
#magic-home .customer-dashboard .delete-book svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#magic-home .profile-form label,#magic-home .customer-dashboard .character-form label{color:var(--shop-text);font-size:14px}
#magic-home .profile-form input,#magic-home .profile-form select,#magic-home .profile-form textarea{min-height:48px;border-radius:10px;padding:13px}
#magic-home .profile-form input[readonly]{color:var(--shop-muted);background:var(--shop-raised)}
#magic-home .profile-form .button{padding:13px 25px;min-height:48px}
#magic-home .dashboard-welcome{background:var(--shop-surface);border-color:var(--shop-border);box-shadow:0 20px 65px #09001415;max-width:680px;padding:55px 35px}
#magic-home .dashboard-welcome h1{font-size:34px;letter-spacing:-1px;margin:18px 0}
#magic-home .dashboard-welcome p{color:var(--shop-muted);max-width:390px;margin:0 auto;line-height:1.8}
#magic-home .dashboard-welcome .button{min-height:48px;padding:12px 25px;border-radius:12px}
#magic-home .dashboard-emblem{display:grid;place-items:center;background:var(--shop-raised);color:var(--shop-accent);width:80px;height:80px;border-radius:22px;margin:0 auto;font-size:42px}
#magic-home .book-delete-notice{padding:13px 16px;margin-bottom:18px;border-radius:10px;background:var(--shop-raised);color:var(--shop-text);font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:14px}
#magic-home .book-delete-notice button{background:transparent;border:0;color:var(--shop-accent);font-weight:750;min-height:38px;cursor:pointer}
#magic-home .story-builder{background:var(--shop-surface);color:var(--shop-text);border-color:var(--shop-border)}
#magic-home .story-builder .photo-consent,#magic-home .story-builder .upload-field small{color:var(--shop-muted)}
#magic-home .custom-section{color:var(--shop-text)}
@media(max-width:1200px){#magic-home .ms-header{gap:18px;padding:0 24px}#magic-home .ms-header nav{gap:17px;font-size:13px}#magic-home .ms-header .ms-tools{gap:10px}#magic-home .ms-header .ms-couples-nav small{display:none}}
@media(max-width:1000px){
 #magic-home .ms-header{height:70px;gap:12px;padding:0 18px}
 #magic-home .ms-header nav>a{display:none}#magic-home .ms-header nav{order:3;margin-left:0}
 #magic-home .ms-header .ms-tools{order:2;margin-left:auto;gap:10px}
 #magic-home .ms-header .ms-languages,#magic-home .ms-header .ms-signin{display:none}
 #magic-home .ms-dropdown{right:0;left:auto;top:52px;max-height:calc(100dvh - 90px);overflow:auto}
 #magic-home .ms-mobile-languages{display:flex}#magic-home .ms-mobile-account{display:block}
 #magic-home .ms-mobile-languages button{background:var(--shop-raised);color:var(--shop-text);border-color:var(--shop-border)}
}
@media(max-width:760px){
 #magic-home .ms-header{height:68px;padding:0 14px;gap:8px}
 #magic-home .ms-header .ms-brand img{width:38px;height:38px;border-radius:9px}
 #magic-home .ms-header .ms-brand span{font-size:12px}
 #magic-home .ms-header .ms-tools{gap:8px}
 #magic-home .ms-header .ms-tools svg{width:20px;height:20px}
 #magic-home .ms-header .ms-tools>button,#magic-home .ms-header .ms-tools>a{min-width:34px;min-height:40px}
 #magic-home .ms-header .theme-toggle{width:34px}
 #magic-home .ms-browse summary{font-size:0;width:36px;justify-content:center;gap:0}
 #magic-home .ms-browse summary:before{content:'☰';font-size:23px;font-weight:400;line-height:1}
 #magic-home .ms-browse .ms-chevron{display:none}
 #magic-home .ms-hero{display:flex;flex-direction:column;height:auto;min-height:0;padding:28px 18px 32px;align-items:center;text-align:center;gap:0}
 #magic-home .ms-hero-content{display:contents}
 #magic-home .ms-hero-label{order:0;font-size:11px;margin:0 0 12px;justify-content:center}
 #magic-home .ms-hero h1{order:1;font-size:39px;line-height:1.1;letter-spacing:-1.6px;margin:0 0 26px;color:#fff}
 #magic-home .ms-hero-books{order:2;position:relative;left:auto;right:auto;top:auto;height:265px;width:100%;max-width:390px;flex-shrink:0;margin:0 0 18px}
 #magic-home .ms-hero-main{width:235px;max-width:68%;top:0;right:8%;margin:0}
 #magic-home .ms-hero-mini{width:24%;max-width:90px;left:4%}
 #magic-home .ms-hero-mini.ms-top{top:24px}
 #magic-home .ms-hero-mini.ms-bottom{top:147px}
 #magic-home .ms-hero-arrow{display:none}#magic-home .ms-s1{font-size:25px;top:1px;left:10%}#magic-home .ms-s2{font-size:24px;left:5%;bottom:6px}
 #magic-home .ms-hero p{order:3;font-size:15px;line-height:1.7;max-width:330px;margin:0 0 20px;color:#efebff}
 #magic-home .ms-hero .ms-primary{order:4;width:100%;max-width:350px;min-height:54px;font-size:17px;gap:18px}
 #magic-home .ms-hero .ms-primary span{font-size:17px}
 #magic-home .ms-hero-note{order:5;max-width:350px;width:100%;font-size:11px;margin-top:13px}
 #magic-home .ms-shelf-track{grid-auto-columns:calc((100% - 12px)/2);gap:25px 12px;grid-template-rows:repeat(2,auto);grid-template-columns:none}
 #magic-home .ms-product h3{font-size:16px;line-height:1.45;margin-top:12px;letter-spacing:-.25px}
 #magic-home .ms-book-facts{font-size:10px;gap:3px 8px}
 #magic-home .ms-book-facts span+span:before{margin-right:6px}
 #magic-home .ms-book-categories a{font-size:9px;padding:3px 6px}
 #magic-home .ms-product .ms-book-price{font-size:12px;margin-top:8px}
 #magic-home .ms-explore{font-size:12px;white-space:nowrap}
 #magic-home .ms-section-head{justify-content:space-between;gap:10px}
 #magic-home .ms-section-head h2{font-size:24px}
 #magic-home .ms-feature{margin:25px 16px;padding:28px 20px}
 #magic-home .ms-feature h2{font-size:30px}
 .magic-storefront .book-detail{padding:18px 16px 35px}
 .magic-storefront .book-gallery{margin:0 auto 16px;width:100%;max-width:540px}
 .magic-storefront .book-gallery-navigation{margin:0 0 15px}
 .magic-storefront .book-gallery .book-stage{max-height:none}
 .magic-storefront .book-buy h1{font-size:28px;line-height:1.2;letter-spacing:-.8px}
 .magic-storefront .preview-form{padding:22px 18px;border-radius:16px}
 #magic-home .customer-dashboard .account-tabs{padding:6px;margin:22px 0 20px;border-radius:12px;gap:4px}
 #magic-home .customer-dashboard .account-tabs button{font-size:12px;min-height:44px;padding:10px 13px}
 #magic-home .customer-dashboard #accountBody{padding:20px 15px}
 #magic-home .customer-dashboard .account-toolbar h2{font-size:19px}
 #magic-home .customer-dashboard .account-toolbar .button{padding:10px 13px;font-size:12px}
 #magic-home .customer-dashboard .account-card{padding:12px}
 #magic-home .customer-dashboard .account-card h3{font-size:16px}
 #magic-home .dashboard-welcome{margin:20px auto 35px;padding:35px 20px}
 #magic-home .dashboard-welcome h1{font-size:29px}
 #magic-home .dashboard-welcome .button{display:flex;margin:12px 0 0}
}
@media(max-width:430px){#magic-home .customer-dashboard .account-grid{grid-template-columns:1fr}#magic-home .customer-dashboard .account-card>picture{max-width:100%;aspect-ratio:1}#magic-home .customer-dashboard .account-card{padding:16px}}
@media(prefers-reduced-motion:reduce){#magic-home .ms-shelf-track{scroll-behavior:auto}.magic-storefront .book-reader-binding{will-change:auto}}
.magic-storefront .sample-strip{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:9px;overflow-x:auto;scrollbar-width:none;padding:6px 4px;scroll-snap-type:x proximity}
.magic-storefront .sample-strip::-webkit-scrollbar{display:none}
.magic-storefront .sample-strip button{flex:0 0 64px;width:64px;height:58px;scroll-snap-align:start;overflow:hidden;border-radius:10px;padding:5px}
.magic-storefront .sample-strip button img{object-fit:contain;width:100%;height:100%}
#magic-home .ms-book-categories>span{padding:3px 8px;border:1px solid var(--shop-border);border-radius:20px;color:var(--shop-muted);font-size:10px;line-height:1.5}
body.magic-storefront,#magic-home{background:var(--shop-bg)!important;color:var(--shop-text)!important}
#magic-home .ms-how{background:var(--shop-bg);color:var(--shop-text)}
#magic-home .ms-header{position:sticky;top:0;z-index:20}
.magic-storefront .product-breadcrumb{color:var(--shop-muted)}

.ms-love-book b{white-space:pre-line}
.magic-storefront #libraryEmpty{background:var(--shop-surface);color:var(--shop-text);border:1px solid var(--shop-border);padding:24px;border-radius:16px}

/* AUD03/05/06/16: reflow and readable shared surfaces. */
#magic-home .ms-facts>span{min-width:0;white-space:normal;overflow-wrap:anywhere}
#magic-home .story-builder{color:var(--shop-text);--muted:var(--shop-muted)}
#magic-home .story-builder :is(label,legend,.photo-consent,.upload-field small){color:var(--shop-text);font-size:14px;line-height:1.6}
#magic-home .story-builder :is(input,select,textarea){color:var(--shop-text);background:var(--shop-bg)}
.magic-storefront .site-footer{background:var(--shop-header);color:var(--shop-text)}
.magic-storefront .site-footer :is(.footer-invitation p,.footer-brand strong,.footer-column h3){color:var(--shop-text)}
.magic-storefront .site-footer :is(p,a,button,.footer-contact span){color:var(--shop-muted)}
.magic-storefront .site-footer .button-light{background:var(--shop-raised);color:var(--shop-text);border:1px solid var(--shop-border)}
.magic-storefront .site-footer :is(a,button):focus-visible{outline:3px solid var(--shop-accent);outline-offset:4px}
.catalog-state{padding:24px;border:1px solid var(--shop-border);border-radius:14px;color:var(--shop-text);background:var(--shop-surface)}
.catalog-state button{margin-left:12px}
#freePreviewForm,#yourPreview{scroll-margin-top:110px}
@media(max-width:760px){
 #magic-home .ms-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:24px 16px}
 #magic-home .ms-tools{gap:4px}
 #magic-home .ms-header .ms-tools :is(button,[data-open-search]){min-width:44px;min-height:44px;justify-content:center}
 #magic-home .ms-browse summary{min-width:44px;min-height:44px;justify-content:center}
}
@media(max-width:360px){#magic-home .ms-facts{grid-template-columns:1fr}#magic-home .ms-brand{gap:6px}#magic-home .ms-brand span{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.shop-pages .custom-intro h1{font-size:clamp(34px,4vw,56px);line-height:1.1;letter-spacing:-.05em;margin:18px 0}
#magic-home .story-builder{background:var(--shop-surface)}
.sample-zoom{margin-top:12px}
.sample-dialog{max-width:min(96vw,1100px);max-height:94vh;padding:20px;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-text);border-radius:16px}
.sample-dialog::backdrop{background:#000b}
.sample-dialog img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}
.sample-dialog button{min-width:44px;min-height:44px}

/* Product discovery uses the shared readers and responsive image sources. */
.product-cast{margin:24px 0}.product-cast h2{font-size:1.2rem}.product-cast ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}.product-cast li{display:grid;gap:4px;border:1px solid var(--border,#78718b55);border-radius:14px;padding:12px 16px}.product-cast small,.product-cast li>span{opacity:.72}.optional-person{display:flex!important;align-items:center;gap:10px}.optional-person input{width:auto!important}.product-related-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 72px)/4);gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding:18px 4px 26px;overscroll-behavior-x:contain}.product-related-track>.ms-product{min-width:0;scroll-snap-align:start}.product-related-track .ms-product-art{transition:transform .25s ease}.product-related-track .ms-product:hover .ms-product-art{transform:scale(1.025)}.related-controls{display:flex;gap:10px}.related-controls button{border:1px solid #8886;border-radius:50%;width:44px;height:44px;background:transparent;color:inherit;font-size:24px}.product-custom{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}.product-custom-copy h2{font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.35}.product-custom-copy ol{list-style:none;padding:0;display:grid;gap:16px;margin:30px 0}.product-custom-copy li{padding:16px;border:1px solid #8884;border-radius:14px}.product-custom .preview-form{min-width:0}.product-custom textarea{width:100%;box-sizing:border-box;resize:vertical}.product-custom [hidden],.cast-fieldset [hidden]{display:none!important}@media(max-width:900px){.product-related-track{grid-auto-columns:calc((100% - 24px)/2)}.product-custom{grid-template-columns:1fr;gap:20px}}@media(max-width:520px){.product-related-track{grid-auto-columns:78%}.product-custom-copy h2{font-size:1.35rem}.product-related .section-heading{align-items:center;gap:12px}}@media(prefers-reduced-motion:reduce){.product-related-track .ms-product-art{transition:none}}

#magic-home .product-custom .preview-upload strong{color:var(--shop-text)}

/* A centered shelf, with one featured book and its own page-turn controls. */
#magic-home .product-related-track{--related-card:250px;position:relative;display:flex;gap:20px;padding:12px 0 20px;scroll-padding-inline:0;scroll-snap-type:x mandatory;box-sizing:border-box;scrollbar-width:thin}
#magic-home .product-related-track>.ms-product{flex:0 0 var(--related-card);width:var(--related-card);scroll-snap-align:start;transform:none;opacity:1;transition:transform .3s ease;transform-origin:center 45%}
#magic-home .product-related-track>.ms-product.is-centered{transform:none;opacity:1;z-index:2}
#magic-home .product-related-track .ms-product-art{box-shadow:0 18px 30px #05031725;transition:box-shadow .3s ease;transform:none!important}
#magic-home .product-related-track .is-centered .ms-product-art{box-shadow:0 24px 42px #05031745,0 0 0 1px var(--shop-border)}
#magic-home .product-related .reader-arrow{opacity:1;width:40px;height:40px;background:var(--shop-surface);color:var(--shop-text);border-color:var(--shop-border)}
#magic-home .product-related .reader-arrow:disabled{opacity:.45!important}
#magic-home .product-related .related-controls button{background:var(--shop-surface);border-color:var(--shop-border);color:var(--shop-text)}
/* The creation areas share a luminous palette, but use different compositions. */
#magic-home .product-custom{position:relative;isolation:isolate;overflow:hidden;padding:clamp(24px,4vw,64px);border-radius:32px;background:radial-gradient(ellipse at 8% 15%,#533cc4a0,transparent 55%),radial-gradient(ellipse at 65% 105%,#087f9290,transparent 60%),linear-gradient(135deg,#24204c,#132b45);border:1px solid #857bca66;color:#f7f4ff;gap:clamp(24px,4vw,64px)}
#magic-home .product-custom:before{content:'✦';position:absolute;right:24px;bottom:18px;font-size:42px;color:#ffe8aa30;z-index:-1;pointer-events:none}
#magic-home .product-custom-copy h2{max-width:520px;font-size:clamp(30px,3.2vw,46px);line-height:1.12;letter-spacing:-.03em;color:inherit}
#magic-home .product-custom-copy .eyebrow{color:#dac9ff;font-weight:700}
#magic-home .product-custom-copy p{line-height:1.65;color:#e0dcf1}
#magic-home .product-custom-copy ol{gap:10px;margin:24px 0}
#magic-home .product-custom-copy li{background:#ffffff0c;border-color:#eee3ff38;color:inherit}
#magic-home .product-custom .preview-form{background:var(--shop-surface);color:var(--shop-text);box-shadow:0 18px 50px #07092133;border:1px solid var(--shop-border)}
#magic-home .product-custom .preview-form label,#magic-home .product-custom .preview-upload strong{color:var(--shop-text)}
#magic-home .product-custom .preview-form small,#magic-home .product-custom .photo-consent{color:var(--shop-muted)}
#magic-home .product-custom textarea{padding:14px;border:1px solid var(--shop-border);border-radius:12px;line-height:1.5;font:inherit}
.custom-book-fan{height:190px;display:flex;align-items:center;justify-content:center;margin:32px 0 18px;padding:0 12px}
.custom-book-fan>picture,.custom-book-fan>img{display:block;width:28%;max-width:145px;flex-shrink:0;filter:drop-shadow(0 14px 12px #06072255)}
.custom-book-fan>picture img{display:block;width:100%;height:auto;border-radius:5px}
.custom-book-fan>:nth-child(1){transform:rotate(-15deg) translateY(10px)}.custom-book-fan>:nth-child(2){transform:rotate(-5deg) translateY(-6px);margin-left:-15px}.custom-book-fan>:nth-child(3){transform:rotate(7deg);margin-left:-15px}.custom-book-fan>:nth-child(4){transform:rotate(17deg) translateY(14px);margin-left:-15px}
#magic-home #custom.ms-custom{
 --custom-gutter:clamp(24px,3vw,36px);
 --custom-books-width:540px;
 display:grid;
 grid-template-columns:minmax(0,1fr) min(52%,var(--custom-books-width));
 align-items:center;
 gap:var(--custom-gutter);
 padding:clamp(28px,3.2vw,46px) var(--custom-gutter);
 margin-block:clamp(30px,4vw,50px);
 min-height:0;
 border:1px solid #9b92ef65;
 border-radius:24px;
 isolation:isolate;
 background:radial-gradient(ellipse at 79% 20%,#347eadb0,transparent 58%),radial-gradient(ellipse at 24% 100%,#a944ad90,transparent 58%),linear-gradient(120deg,#302066,#173653);
 color:#fff;
}
#magic-home #custom .ms-feature-copy{
 display:grid;
 justify-items:start;
 gap:14px;
 width:100%;
 max-width:540px;
 margin:0;
 padding:0;
 text-align:start;
}
@media(min-width:761px){
 #magic-home #custom .ms-feature-copy{justify-self:center;justify-items:center;text-align:center}
 #magic-home #custom p{text-wrap:balance}
}
#magic-home #custom h2{color:#fff;margin:0;max-width:18ch;font-size:clamp(31px,3.7vw,51px);line-height:1.09;letter-spacing:-.043em;text-wrap:balance}
#magic-home #custom p{color:#ece5fa;margin:0;max-width:51ch;font-size:clamp(15px,1.3vw,18px);line-height:1.55}
#magic-home #custom .custom-feature-facts{font-weight:700;color:#ffecb4;font-size:13px;letter-spacing:.025em;margin:2px 0 1px}
#magic-home #custom .ms-primary{
 display:inline-flex;
 justify-content:center;
 gap:16px;
 width:auto;
 height:auto;
 min-height:46px;
 padding:11px 22px;
 margin:0;
 background:#fff;
 color:#422174;
 box-shadow:0 8px 24px #07082530;
}
#magic-home #custom .ms-primary span:first-child{font-size:15px}
#magic-home #custom .ms-primary span:last-child{font-size:20px;line-height:1}
#magic-home #custom .custom-feature-books{max-width:var(--custom-books-width);gap:clamp(12px,1.7vw,22px)}
:root[data-theme=light] #magic-home .product-custom{background:radial-gradient(ellipse at 5% 10%,#c3b4ff,transparent 55%),radial-gradient(ellipse at 90% 90%,#a9e4df,transparent 60%),linear-gradient(125deg,#ede3ff,#dbedf9);border-color:#c7bbec;color:#302343}
:root[data-theme=light] #magic-home .product-custom-copy p{color:#534362}:root[data-theme=light] #magic-home .product-custom-copy .eyebrow{color:#634197}:root[data-theme=light] #magic-home .product-custom-copy li{background:#ffffff65;border-color:#8d76b34d}:root[data-theme=light] #magic-home .product-custom:before{color:#8a61c455}
:root[data-theme=light] #magic-home #custom.ms-custom{background:radial-gradient(ellipse at 80% 20%,#a6d9ef,transparent 55%),radial-gradient(ellipse at 10% 90%,#dbbaff,transparent 60%),linear-gradient(120deg,#e7ddff,#d5edee);border-color:#c5b4e5;color:#302343}
:root[data-theme=light] #magic-home #custom h2{color:#302343}:root[data-theme=light] #magic-home #custom p{color:#534362}:root[data-theme=light] #magic-home #custom .custom-feature-facts{color:#543881}:root[data-theme=light] #magic-home #custom .ms-primary{background:#6035a6;color:#fff}
@media(max-width:760px){
 #magic-home .product-related-track{--related-card:220px;gap:16px;padding-block:12px}
 #magic-home .product-custom{border-radius:22px;padding:24px 18px}
 .custom-book-fan{height:155px;margin:18px 0}
 #magic-home #custom.ms-custom{grid-template-columns:minmax(0,1fr);gap:20px;padding:22px 18px;border-radius:18px;margin-block:26px}
 #magic-home #custom .ms-feature-copy{gap:9px;max-width:360px;justify-self:center}
 #magic-home #custom h2{font-size:clamp(26px,7.4vw,38px);max-width:100%}
 #magic-home #custom p{font-size:14px;line-height:1.5}
 #magic-home #custom .custom-feature-facts{font-size:12px}
 #magic-home #custom .ms-primary{width:100%;justify-self:stretch;margin-top:4px}
 #magic-home #custom .custom-feature-books{max-width:360px;justify-self:center;gap:12px}
}
@media(prefers-reduced-motion:reduce){#magic-home .product-related-track>.ms-product{transition:none}}

/* Photo-to-book hero and a consistent two-row benefit strip. */
#magic-home .ms-facts{height:auto;min-height:104px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 32px;padding:20px max(24px,calc((100% - 1100px)/2));font-size:13px}
#magic-home .ms-facts>span{white-space:normal;justify-content:flex-start;min-width:0;align-items:center;line-height:1.5}
#magic-home .ms-facts>span>b{flex-shrink:0}
#magic-home .ms-facts>span>span{display:inline;white-space:normal}
#magic-home .ms-hero-main{width:60%;max-width:400px;top:45px}
#magic-home .ms-hero-photo{position:absolute;left:2%;top:98px;width:26%;max-width:165px;transform:rotate(-5deg);z-index:2;background:#fff;padding:7px 7px 0;border-radius:13px;box-shadow:0 14px 30px #07246d55}
#magic-home .ms-hero-photo-window{position:relative;aspect-ratio:448/600;overflow:hidden;border-radius:8px;background:#eeedf1}
#magic-home .ms-hero-photo-window .responsive-picture{display:block;width:200%;height:200%;max-width:none}
#magic-home .ms-hero-photo-window img{display:block;width:100%;height:100%;max-width:none;object-fit:fill}
#magic-home .ms-hero-photo figcaption{color:#302448;font-size:13px;text-align:center;padding:8px 3px;font-weight:750}
#magic-home .ms-hero-mini{width:27%;max-width:175px;top:auto!important}
#magic-home .ms-hero-mini.ms-top{left:3%;bottom:32px}
#magic-home .ms-hero-mini.ms-bottom{left:31%;bottom:22px}
#magic-home .ms-hero-arrow{left:25%;top:240px;bottom:auto;width:24%;transform:rotate(-7deg);z-index:3;pointer-events:none}
@media(min-width:761px) and (max-width:1150px){
 #magic-home .ms-hero-main{top:130px}
 #magic-home .ms-hero-photo{top:128px}
 #magic-home .ms-hero-arrow{top:245px}
 #magic-home .ms-facts{gap:15px 22px;padding:18px 32px;font-size:12px}
}
@media(max-width:760px){
 #magic-home .ms-hero-books{height:325px}
 #magic-home .ms-hero-main{top:8px;right:0;width:62%;max-width:230px}
 #magic-home .ms-hero-photo{top:20px;left:1%;width:28%;max-width:108px;padding:5px 5px 0;border-radius:9px}
 #magic-home .ms-hero-photo-window{border-radius:5px}
 #magic-home .ms-hero-photo figcaption{font-size:10px;padding:5px 0}
 #magic-home .ms-hero-mini{width:27%;max-width:100px}
 #magic-home .ms-hero-mini.ms-top{left:1%;bottom:8px}
 #magic-home .ms-hero-mini.ms-bottom{left:32%;bottom:0}
 #magic-home .ms-hero-arrow{display:block;left:26%;top:100px;width:23%;height:auto}
 #magic-home .ms-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 9px;padding:16px 12px;font-size:10px}
 #magic-home .ms-facts>span{align-items:flex-start;gap:5px}
 #magic-home .ms-facts b{font-size:15px;line-height:1.3}
}
#magic-home .ms-hero h1{color:#fff}
/* Catalog badges stay on the artwork; prices retain their exact saved amounts. */
.ms-product-art,.product-cover-link,.book-stage{position:relative}
.shop-badge{position:absolute;top:12px;z-index:5;pointer-events:none;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:800;line-height:1.2;box-shadow:0 3px 10px #0003}
.shop-badge-new{left:12px;background:#5f35aa;color:#fff}
#magic-home .ms-product-art .shop-badge-new{top:9px;left:9px;padding:4px 8px;font-size:10px}
.shop-price-value{display:inline-flex;gap:9px;align-items:baseline;flex-wrap:wrap}
.shop-price-value del{font-size:.84em;color:inherit;opacity:.65;font-weight:500}
.shop-badge.shop-badge-discount{top:auto;right:12px;bottom:12px;background:#b4232b;color:#fff}
#magic-home .ms-product{--book-card-controls:36px;--book-card-badge-inset:10px}
#magic-home .ms-product-art.book-preview .shop-badge-discount{bottom:calc(var(--book-card-controls) + var(--book-card-badge-inset));right:var(--book-card-badge-inset)}
.detail-price .shop-price-value{flex-direction:row;gap:12px}
@media(max-width:760px){.shop-badge{top:8px;padding:5px 8px;font-size:10px}.shop-badge-new{left:8px}.shop-price-value{gap:6px}}

/* Product entry: one ready-book path, with a compact decision column. */
#magic-home .product-breadcrumb{display:none}
.magic-storefront .book-detail{width:min(1280px,calc(100% - 48px));grid-template-columns:minmax(0,1.27fr) minmax(0,1fr);gap:40px;margin-block:18px 54px;align-items:start}
#magic-home .book-buy{padding:0;min-width:0;background:transparent;border:0;border-radius:0}
.magic-storefront .book-buy h1{font-family:Georgia,"Times New Roman",serif;font-size:36px;font-weight:700;line-height:1.13;margin:0 0 12px;letter-spacing:-1.2px}
.magic-storefront .book-gallery{display:grid;grid-template-columns:96px minmax(0,1fr);gap:28px;top:137px}
.magic-storefront .book-gallery .book-stage{grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:1;min-height:0;border-radius:8px;background:radial-gradient(ellipse at 65% 25%,var(--shop-raised),var(--shop-surface));overflow:hidden}
.magic-storefront .book-gallery .sample-strip{position:absolute;inset:0 auto 0 0;width:96px;display:flex;flex-direction:column;gap:8px;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;margin:0;padding:2px;box-sizing:border-box}
.magic-storefront .book-gallery .sample-strip button{width:92px;height:96px;flex:0 0 96px;padding:4px;border-radius:6px}
.magic-storefront .book-gallery-navigation{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;margin:0;padding:16px;pointer-events:none;z-index:5}
.magic-storefront .book-gallery-navigation button{pointer-events:auto;width:44px;height:44px;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-text);box-shadow:0 2px 12px #0002;border-radius:50%}
.magic-storefront .book-gallery-navigation .gallery-hint{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);margin:0;padding:5px 12px;border-radius:20px;background:var(--shop-surface);color:var(--shop-text)}
.magic-storefront .book-gallery-navigation .gallery-hint{min-width:0;font-size:13px}
.magic-storefront .product-story-intro{font-size:16px;font-weight:600;line-height:1.5;color:var(--shop-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 14px}
.magic-storefront .product-highlights{list-style:none;padding:0;margin:0 0 28px;display:grid;gap:10px;font-size:16px;line-height:1.4;color:var(--shop-text)}
.magic-storefront .product-highlights li{display:flex;align-items:center;gap:10px}
.magic-storefront .product-highlights li>span{color:var(--shop-accent);font-size:20px;line-height:24px;width:24px;text-align:center}
.magic-storefront .product-delivery{margin:0 0 24px;color:var(--shop-muted)}
.magic-storefront .delivery-timeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;gap:8px;position:relative}
.magic-storefront .delivery-timeline:before{display:none}
.magic-storefront .delivery-timeline li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;font-size:12px;line-height:1.4;position:relative}
.magic-storefront .delivery-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--shop-raised);color:var(--shop-accent)}
.magic-storefront .delivery-icon svg{width:20px;height:20px}
.magic-storefront .delivery-timeline strong{color:var(--shop-accent);font-size:14px;font-weight:700}
.magic-storefront .product-delivery>small{display:block;text-align:center;margin-top:10px;font-size:11px}
#magic-home .product-personalization-choice h2{font-size:16px;margin:0 0 10px;line-height:1.4;letter-spacing:0}
.magic-storefront .product-personalization-choice{padding:12px 0 0;border-top:1px solid var(--shop-border);background:transparent}
.magic-storefront .product-photo-choice{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;font-weight:650;line-height:1.35;text-align:center;color:var(--shop-text);margin:0 0 20px;width:88px}
.magic-storefront .product-photo-choice>span{display:grid;place-items:center;border:1.5px dashed var(--shop-accent);border-radius:50%;height:76px;width:76px;color:var(--shop-accent);font-size:30px;background:var(--shop-raised)}
.magic-storefront .product-photo-choice:hover>span{border-style:solid}
.magic-storefront .product-decision .detail-price{padding:0;margin:0 0 12px;border:0;background:none;text-align:left;justify-content:flex-start}
.magic-storefront .product-decision .detail-price .shop-price-value{color:var(--shop-text)}
.magic-storefront .product-decision .detail-price strong{font-size:29px}
.magic-storefront .product-start{width:100%;min-height:62px;text-align:center;white-space:normal;display:flex;align-items:center;justify-content:center;gap:12px}
#magic-home .product-start,#magic-home .product-mobile-action .button{color:#fff}
.magic-storefront .product-information{padding:0;width:100%;margin:24px 0 0}
.magic-storefront .product-information details{border-bottom:1px solid var(--shop-border);color:var(--shop-text)}
.magic-storefront .product-information summary{padding:17px 0;cursor:pointer;font-size:15px;font-weight:650;list-style:none;display:flex;justify-content:space-between;gap:14px}
.magic-storefront .product-information summary::-webkit-details-marker{display:none}
.magic-storefront .product-information summary:after{content:'+';color:var(--shop-accent);font-size:20px}
.magic-storefront .product-information details[open]>summary:after{content:'−'}
.magic-storefront .product-information .book-description{font-size:15px;line-height:1.7}
.magic-storefront dialog.product-personalize{width:min(900px,calc(100vw - 32px));max-width:900px;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--shop-border);border-radius:24px;background:var(--shop-surface);color:var(--shop-text);overflow:auto}
.magic-storefront dialog.product-personalize::backdrop{background:#080519b3;backdrop-filter:blur(4px)}
.magic-storefront .product-personalize>h2{font-size:28px;color:var(--shop-text);line-height:1.25}
.magic-storefront .product-personalize>p{font-size:16px;line-height:1.65;color:var(--shop-muted)}
.magic-storefront .product-personalize[hidden]{display:none}
.magic-storefront .product-alternative{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--shop-border);border-radius:20px;background:var(--shop-surface);color:var(--shop-text)}
#magic-home .product-alternative h2{margin:0 0 8px;font-size:22px;line-height:1.3}
.magic-storefront .product-alternative p{margin:0;color:var(--shop-muted);font-size:16px;line-height:1.5}
.magic-storefront .product-alternative .button{flex-shrink:0;white-space:normal;text-align:center}
.magic-storefront .product-leave-warning{flex-basis:100%;padding:18px;border:1px solid var(--shop-accent);border-radius:14px}
.magic-storefront .product-leave-warning[hidden]{display:none}
.magic-storefront .product-leave-warning>div{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.product-mobile-action{display:none}
.magic-storefront [data-personalize-link]:focus-visible,.magic-storefront .product-information summary:focus-visible{outline:3px solid var(--shop-accent);outline-offset:4px}
@media(max-width:760px){
 .book-product-page{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 .magic-storefront .product-breadcrumb{margin-block:10px;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden}
 .magic-storefront .product-breadcrumb>span:last-child{overflow:hidden;text-overflow:ellipsis}
 .magic-storefront .book-detail{display:flex;flex-direction:column;gap:16px;padding:0;margin-bottom:24px}
 .magic-storefront .book-buy{display:contents}
 .magic-storefront .product-heading{order:0;width:100%}
 .magic-storefront .product-heading .detail-tags{margin:0;gap:8px}
 .magic-storefront .product-heading h1{font-size:25px;line-height:1.2;letter-spacing:-.5px;margin:10px 0 0}
 .magic-storefront .book-gallery{order:1;position:static;width:100%;margin:0;display:grid;grid-template-columns:1fr;gap:6px}
 .magic-storefront .book-gallery .book-stage{grid-column:1;grid-row:1;width:100%;height:auto;aspect-ratio:1;margin:auto;padding:0}
 .magic-storefront .book-gallery-navigation{padding:8px}
 .magic-storefront .book-gallery-navigation button{min-width:44px;min-height:44px}
 .magic-storefront .book-gallery .sample-strip{position:static;inset:auto;width:100%;flex-direction:row;grid-column:1;grid-row:2;max-height:none;overflow-x:auto;overflow-y:hidden;margin:0;padding:4px 0;gap:8px}
 .magic-storefront .book-gallery .sample-strip button{width:56px;height:56px;flex-basis:56px}
 .magic-storefront .product-decision{order:2;width:100%}
 .magic-storefront .product-information{order:3;margin:0}
 .magic-storefront #productReviewRail{order:4;width:100%}
 .magic-storefront .product-story-intro{font-size:14px}
 .magic-storefront .product-highlights{font-size:13px}
 .magic-storefront .delivery-timeline li{font-size:10px}
 .magic-storefront .delivery-timeline strong{font-size:11px}
 .magic-storefront .product-alternative{align-items:stretch;flex-direction:column;gap:18px}
 .magic-storefront .product-personalize{scroll-margin-top:82px}
 .product-mobile-action{position:fixed;inset:auto 0 0;z-index:45;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--shop-surface,#17172a);color:var(--shop-text,#f6f3fc);border-top:1px solid var(--shop-border,#453b59);box-shadow:0 -8px 24px #0002}
 .product-mobile-action .shop-price-value{display:flex;flex-direction:column;gap:2px;font-size:16px;white-space:nowrap}
 .product-mobile-action .shop-price-value del{font-size:12px;color:var(--shop-muted)}
 .product-mobile-action .button{min-height:48px;padding:12px 18px;font-size:14px;white-space:normal;text-align:center;line-height:1.35}
 .product-mobile-action[hidden],body.is-locked .product-mobile-action,body:has(dialog[open]) .product-mobile-action,body:has(.cookie-banner:not([hidden])) .product-mobile-action{display:none}
}
#magic-home .product-decision .detail-price,#magic-home .product-decision .detail-price strong{color:var(--shop-text)}
#magic-home .product-decision .detail-price del{color:var(--shop-muted)}

/* Product controls follow the gallery / personalization / questions / reviews sequence. */
#magic-home .book-stage{position:relative}
#magic-home .product-save{position:absolute;right:16px;top:16px;width:44px;height:44px;display:grid;place-items:center;background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:50%;color:var(--shop-text);z-index:7;box-shadow:0 2px 12px #0002}
#magic-home .product-save svg{width:21px;height:21px}
#magic-home .product-save[aria-pressed=true]{color:var(--shop-accent)}
#magic-home .product-save[aria-pressed=true] svg{fill:currentColor}
#magic-home .product-review-link{display:inline-block;color:var(--shop-accent);font-size:14px;text-decoration:underline;margin:0 0 14px}
#magic-home .product-action-note{display:block;text-align:center;font-size:12px;line-height:1.5;color:var(--shop-muted);margin:12px auto 0;max-width:420px}
#magic-home .personalize-header{display:flex;align-items:center;gap:18px;padding:24px;background:var(--shop-raised);position:relative}
#magic-home .personalize-header>picture{flex:0 0 72px}
#magic-home .personalize-header img{width:72px;height:72px;object-fit:cover;border-radius:8px}
#magic-home .personalize-header>div{padding-right:32px}
#magic-home .personalize-header h2{font-size:25px;margin:0 0 8px;line-height:1.2}
#magic-home .personalize-header p{font-size:14px;margin:0;line-height:1.5;color:var(--shop-muted)}
#magic-home .personalize-header [data-close-personalize]{position:absolute;right:12px;top:12px;width:40px;height:40px;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-text);border-radius:50%;font-size:25px}
#magic-home .personalize-body{padding:24px}
#magic-home .personalize-body>p{font-size:14px;line-height:1.6;color:var(--shop-muted);margin:0 0 16px}
#magic-home .personalize-body .preview-form{margin:0}
#magic-home .product-review-rail{margin:22px 0 0;min-width:0}
#magic-home .rail-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:12px}
#magic-home .rail-heading>a{margin-left:auto;color:var(--shop-accent);text-decoration:underline}
#magic-home .rail-heading button{width:32px;height:32px;border:1px solid var(--shop-border);border-radius:50%;background:var(--shop-surface);color:var(--shop-text);flex-shrink:0}
#magic-home .compact-review-track{display:flex;gap:12px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
#magic-home .compact-review-track article{flex:0 0 100%;min-width:0;display:flex;align-items:center;gap:14px;border:1px solid var(--shop-border);border-radius:14px;padding:16px;background:var(--shop-surface);scroll-snap-align:start;box-sizing:border-box}
#magic-home .compact-review-track p,#magic-home .compact-review-track blockquote{font-size:14px;line-height:1.5;margin:6px 0;color:var(--shop-text)}
#magic-home .compact-review-track article.compact-sample{display:block}
#magic-home .compact-review-track .review-media{flex:0 0 96px;height:112px;position:relative;overflow:hidden;border-radius:8px}
#magic-home .compact-review-track .review-media img,#magic-home .compact-review-track .review-media video{width:100%;height:100%;object-fit:cover}
#magic-home .product-review-rail>small{display:block;font-size:11px;color:var(--shop-muted);margin-top:8px}
#magic-home .product-how{margin:0 calc(-1 * var(--page-gutter,0px)) 48px;padding:48px 32px;border-radius:40% 40% 24px 24px / 24px 24px 24px 24px;background:var(--shop-raised);color:var(--shop-text)}
#magic-home .product-how h2{text-align:center;font-size:36px;line-height:1.2;margin:0 0 32px}
#magic-home .product-how ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;list-style:none;padding:0;margin:0}
#magic-home .product-how li{text-align:center;min-width:0}
#magic-home .how-number{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 14px;border-radius:50%;background:var(--shop-accent);color:var(--shop-bg);font-size:20px;font-weight:750}
#magic-home .product-how h3{font-size:20px;line-height:1.3;margin:0 0 18px;min-height:52px}
#magic-home .how-art{height:170px;display:grid;place-items:center;margin:0 0 16px;overflow:hidden;border-radius:18px}
#magic-home .how-art img{width:100%;height:170px;object-fit:contain}
#magic-home .product-how p{font-size:14px;line-height:1.55;margin:0;color:var(--shop-muted)}
@media(max-width:760px){
 #magic-home .book-detail{margin-top:18px}
 #magic-home .product-photo-choice{margin-bottom:16px}
 #magic-home .personalize-header{padding:20px 16px;gap:12px}
 #magic-home .personalize-header h2{font-size:20px}
 #magic-home .personalize-header>picture{flex-basis:52px}
 #magic-home .personalize-header img{width:52px;height:52px}
 #magic-home .personalize-body{padding:16px}
 #magic-home .product-how{padding:36px 16px;margin-bottom:32px}
 #magic-home .product-how h2{font-size:28px}
 #magic-home .product-how ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
 #magic-home .product-how h3{font-size:17px;min-height:44px}
 #magic-home .how-art,#magic-home .how-art img{height:116px}
 #magic-home .rail-heading button{min-width:44px;min-height:44px}
 #magic-home .product-review-link{margin-top:10px;margin-bottom:0}
}
#magic-home .personalize-body .preview-form{padding:0;border:0;background:transparent;display:grid;grid-template-columns:1fr;gap:16px}
#magic-home .personalize-body .cast-fieldset{margin:0;padding:16px;background:var(--shop-raised);border-color:var(--shop-border)}
#magic-home .personalize-body label,#magic-home .personalize-body .preview-upload strong{color:var(--shop-text)}
#magic-home .personalize-body .preview-upload small,#magic-home .personalize-body .photo-consent{color:var(--shop-muted)}
#magic-home .personalize-body .field-grid{margin:0}
#magic-home .personalize-body [data-new-person]{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px 20px}
#magic-home .personalize-body [data-new-person]>.field-grid{grid-column:2;grid-row:1}
#magic-home .personalize-body [data-new-person]>label:not(.preview-upload):not(.photo-consent){grid-column:2;grid-row:2;margin:0}
#magic-home .personalize-body .preview-upload{grid-column:1;grid-row:1 / span 2;min-height:160px;height:auto;margin:0;padding:16px;justify-content:center;text-align:center}
#magic-home .personalize-body .preview-upload img{max-height:140px;object-fit:contain}
#magic-home .personalize-body .photo-consent{grid-column:1 / -1;margin:0;align-items:start;font-size:13px;line-height:1.5}
#magic-home .personalize-body .form-error:empty{display:none}
#magic-home .personalize-body .allowance-note{margin:16px 0 0;font-size:12px}
#magic-home .personalize-body .preview-form>small{text-align:center;color:var(--shop-muted)}
@media(max-width:600px){
 #magic-home .personalize-body [data-new-person]{grid-template-columns:1fr;gap:14px}
 #magic-home .personalize-body [data-new-person]>.field-grid,#magic-home .personalize-body [data-new-person]>label:not(.preview-upload):not(.photo-consent),#magic-home .personalize-body .preview-upload{grid-column:1;grid-row:auto}
 #magic-home .personalize-body .preview-upload{min-height:110px}
}
#magic-home .personalize-body [hidden]{display:none!important}
#magic-home .book-gallery-navigation button:disabled{opacity:1;color:var(--shop-muted);box-shadow:none;cursor:default}

/* Measured reference geometry: 1280px content, 96px rail, 28px media gap, 40px columns. */
#magic-home #productPage{font-family:"Instrument Sans","Helvetica Neue",Arial,sans-serif}
#magic-home .product-heading .detail-tags{display:none}
#magic-home .product-heading h1{font-family:Georgia,"Times New Roman",serif}
#magic-home .book-gallery .book-stage>[data-book-reader]{inset:12%;width:76%;height:76%}
#magic-home .book-gallery .book-stage>#detailMainImage,#magic-home .book-gallery .book-stage>picture:has(#detailMainImage){width:76%;height:76%;margin:auto}
#magic-home .book-gallery .sample-strip button{box-sizing:border-box;background:transparent}
#magic-home .book-gallery .sample-strip button img{width:100%;height:100%;object-fit:cover;border-radius:3px}
#magic-home .product-review-link{font-size:13px;line-height:20px;margin:0 0 10px}
#magic-home .product-start{position:relative;border:2px solid var(--shop-text);border-radius:13px;box-shadow:0 3px 6px #0002;font-size:16px;font-weight:700;padding:16px 24px;line-height:1.4}
#magic-home .product-start:before{content:'';position:absolute;inset:5px;border:1px dashed currentColor;border-radius:7px;opacity:.5;pointer-events:none}
#magic-home .product-start:after{content:'☆';font-size:25px;line-height:1;margin-left:4px}
#magic-home .product-action-note{font-size:12px;margin-top:12px}
#magic-home .product-decision .detail-price .shop-price-value{display:inline-flex;align-items:baseline;gap:8px}
#magic-home .product-decision .detail-price strong{font-size:28px}
@media(min-width:1001px){
 body.book-product-page #magic-home .ms-header{height:120px;min-height:120px;display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:76px 44px;gap:0;padding:0 max(24px,calc((100vw - 1280px)/2));position:sticky;top:0}
 body.book-product-page #magic-home .ms-brand{grid-column:2;grid-row:1;justify-self:center}
 body.book-product-page #magic-home .ms-header>nav{grid-column:1 / -1;grid-row:2;display:flex;justify-content:space-between;width:100%;gap:24px}
 body.book-product-page #magic-home .ms-tools{grid-column:3;grid-row:1;justify-self:end;gap:12px}
 body.book-product-page #magic-home [data-open-search]{position:absolute;left:max(24px,calc((100vw - 1280px)/2));top:22px}
 body.book-product-page #magic-home .ms-tools .ms-signin{max-width:110px;font-size:13px}
 body.book-product-page #magic-home .ms-brand picture,body.book-product-page #magic-home .ms-brand img{width:52px;height:52px}
}
@media(min-width:761px) and (max-width:1100px){
 #magic-home .book-detail{width:calc(100% - 32px);gap:24px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
 #magic-home .book-gallery{grid-template-columns:64px minmax(0,1fr);gap:16px}
 #magic-home .book-gallery .sample-strip{width:64px}
 #magic-home .book-gallery .sample-strip button{width:60px;height:64px;flex-basis:64px}
 #magic-home .book-buy h1{font-size:30px}
}
@media(max-width:760px){
 #magic-home .book-detail{width:calc(100% - 32px);margin-top:18px}
 #magic-home .book-gallery{grid-template-columns:1fr;gap:10px}
 #magic-home .product-heading h1{font-size:28px;margin:0;line-height:1.15}
 #magic-home .product-story-intro{font-size:15px}
 #magic-home .product-highlights{font-size:14px;gap:8px;margin-bottom:22px}
 #magic-home .product-delivery{margin-bottom:18px}
 #magic-home .delivery-timeline{gap:4px}
 #magic-home .delivery-timeline li{font-size:10px}
 #magic-home .delivery-timeline strong{font-size:11px}
 #magic-home .product-photo-choice{margin-bottom:18px}
}
#magic-home .book-detail{padding-top:0;margin-top:17px}
#magic-home .book-gallery{grid-template-columns:98px minmax(0,1fr)}
#magic-home .book-gallery .sample-strip{left:2px}
#magic-home .book-gallery .book-stage>[data-book-reader]{inset:8.7%;width:82.6%;height:82.6%}
#magic-home .book-gallery .book-reader:not([data-open=true]) .book-reader-binding{transform:translateY(-50%) translateX(-50%)}
#magic-home .product-photo-choice{gap:4px;line-height:14px}
#magic-home .product-delivery>small{margin-top:4px;line-height:14px}
#magic-home .product-decision .detail-price{line-height:1.2;margin-bottom:6px}
#magic-home .product-decision .detail-price strong{line-height:1.2}
@media(min-width:761px) and (max-width:1100px){#magic-home .book-gallery{grid-template-columns:64px minmax(0,1fr)}}
@media(max-width:760px){#magic-home .book-gallery{grid-template-columns:1fr}#magic-home .book-gallery .sample-strip{left:auto}}
@media(min-width:761px) and (max-width:1000px){#magic-home .book-gallery{top:87px}}

/* PDP: natural-aspect thumbnails, distinct character entry points and readable details. */
#magic-home .book-gallery{display:block;position:relative;top:auto;align-self:start}
#magic-home .book-detail{overflow-anchor:none}
#magic-home .book-buy>.product-heading{margin:0 0 16px}
#magic-home .gallery-media{display:grid;grid-template-columns:98px minmax(0,1fr);gap:28px;position:relative}
#magic-home .book-gallery .sample-strip{inset:0 auto 0 2px}
#magic-home .book-gallery .sample-strip button{height:auto;flex:0 0 auto;min-height:48px;aspect-ratio:auto;display:flex;align-items:center;justify-content:center}
#magic-home .book-gallery .sample-strip button picture{display:block;width:100%;height:auto}
#magic-home .book-gallery .sample-strip button img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
#magic-home .book-gallery .product-heading{margin:20px 0 0 126px}
#magic-home .product-heading h1{font-family:"Instrument Sans","Helvetica Neue",Arial,sans-serif;font-size:30px;line-height:1.2;letter-spacing:-.7px;margin:0 0 10px;font-weight:700}
#magic-home .product-age{margin:0;font-size:14px;line-height:1.5;color:var(--shop-muted)}
#magic-home .book-buy{font-size:16px;line-height:1.5}
#magic-home .product-review-link{display:flex;align-items:center;gap:10px;margin:0 0 14px;text-decoration:none;font-size:13px;line-height:1.4;color:var(--shop-text)}
#magic-home .product-review-link small{display:block;font-size:11px;color:var(--shop-muted)}
#magic-home .product-review-stars{font-size:26px;letter-spacing:1px;line-height:1;color:var(--shop-accent)}
#magic-home .product-story-intro{font-size:16px;line-height:1.55;font-weight:500;margin:0 0 16px;-webkit-line-clamp:3}
#magic-home .product-highlights{gap:12px;margin:0 0 28px;font-size:15px;line-height:1.5}
#magic-home .product-highlights li{align-items:flex-start}
#magic-home .product-highlights li>span:first-child{flex:0 0 25px;font-size:20px;width:25px}
#magic-home .product-highlights li>span:last-child{width:auto;text-align:left;color:var(--shop-text);font-size:inherit;line-height:inherit}
#magic-home .delivery-timeline:before{content:'';display:block;position:absolute;top:16px;left:12.5%;right:12.5%;height:0;border-top:1px dashed var(--shop-accent);opacity:.65}
#magic-home .delivery-icon{position:relative;box-shadow:0 0 0 5px var(--shop-bg);background:var(--shop-raised)}
#magic-home .delivery-timeline li{gap:8px;font-size:12px}
#magic-home .delivery-timeline strong{font-size:13px}
#magic-home .product-delivery>small{margin-top:10px}
#magic-home .product-photo-choices{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;margin:0 0 20px}
#magic-home .product-photo-choice{width:104px;margin:0;gap:5px;line-height:1.35;text-decoration:none}
#magic-home .product-photo-choice .photo-choice-circle{display:grid;position:relative;place-items:center;border:1.5px dashed var(--shop-accent);border-radius:50%;height:76px;width:76px;color:var(--shop-accent);font-size:30px;background:var(--shop-raised)}
#magic-home .product-photo-choice .photo-required{position:absolute;right:-4px;top:-7px;color:#ef4444;font-size:28px;line-height:1;background:var(--shop-bg);border-radius:50%;width:20px}
#magic-home .product-photo-choice .photo-choice-label{border:0;border-radius:0;height:auto;width:auto;background:transparent;color:var(--shop-text);font-size:12px;display:block}
#magic-home .product-photo-choice strong{font-size:13px;max-width:104px;overflow-wrap:anywhere}
#magic-home .product-photo-choice small{font-size:11px;color:var(--shop-muted)}
#magic-home .product-information{margin-top:24px;border-top:1px solid var(--shop-border)}
#magic-home .product-information details{margin:0;padding:0;background:transparent;border:0;border-bottom:1px solid var(--shop-border);border-radius:0;box-shadow:none}
#magic-home .product-information summary{padding:18px 0;font-size:16px;line-height:1.4;letter-spacing:0;font-weight:600;align-items:center;color:var(--shop-text)}
#magic-home .product-information details>p{margin:0 0 16px;font-size:14px;line-height:1.65;color:var(--shop-muted)}
#magic-home .product-information .product-cast{margin:0 0 16px;padding:0;border:0;background:none}
#magic-home .product-information .product-cast h2{font-size:14px;line-height:1.4;margin:0 0 10px;letter-spacing:0}
#magic-home .product-information .product-cast ul{display:grid;gap:8px;list-style:none;padding:0;margin:0}
#magic-home .product-information .product-cast li{display:flex;flex-wrap:wrap;gap:4px 8px;padding:10px 12px;border-radius:8px;background:var(--shop-raised);border:0;font-size:13px;line-height:1.5}
#magic-home .product-information .product-cast li strong{font-size:13px;font-weight:600}
#magic-home .product-information .product-cast li small{flex-basis:100%;font-size:12px;color:var(--shop-muted)}
#magic-home .product-information .book-specifications{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0 0 16px;padding:0;gap:8px;font-size:14px;color:var(--shop-muted)}
#magic-home .product-information .book-specifications li{background:none;border:0;padding:0;line-height:1.5}
#magic-home .product-information .book-specifications li:before{content:'✓';color:var(--shop-accent);margin-right:10px}
#magic-home .product-how{max-width:1280px;margin:0 auto 56px;padding:44px 32px;border-radius:24px}
#magic-home .product-how h2{font-size:32px;letter-spacing:-.6px}
#magic-home .product-how h3{font-size:19px;min-height:50px}
#magic-home .how-art{height:190px;background:var(--shop-surface);padding:12px}
#magic-home .how-art img{height:166px;max-width:100%;border-radius:6px}
#magic-home .product-services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;max-width:1280px;margin:56px auto 0;padding:36px 24px;border-top:1px solid var(--shop-border);color:var(--shop-text)}
#magic-home .product-services>div{display:flex;align-items:center;flex-direction:column;text-align:center;gap:10px}
#magic-home .product-services svg{width:28px;height:28px;color:var(--shop-accent);margin-bottom:4px}
#magic-home .product-services strong{font-size:15px;line-height:1.4}
#magic-home .product-services small{font-size:13px;line-height:1.5;color:var(--shop-muted)}
@media(min-width:761px) and (max-width:1100px){
 #magic-home .gallery-media{grid-template-columns:64px minmax(0,1fr);gap:16px}
 #magic-home .book-gallery .product-heading{margin-left:80px}
 #magic-home .product-heading h1{font-size:26px}
 #magic-home .product-highlights{font-size:14px;gap:10px}
 #magic-home .delivery-timeline li{font-size:11px}
 #magic-home .delivery-timeline strong{font-size:12px}
 #magic-home .product-how{margin-inline:16px;padding:32px 20px}
 #magic-home .product-how ol{gap:16px}
 #magic-home .product-how h3{font-size:17px}
}
@media(max-width:760px){
 #magic-home .book-detail{gap:20px;margin-top:14px}
 #magic-home .book-buy{display:block;width:100%;order:2}
 #magic-home .book-gallery{order:0}
 #magic-home .gallery-media{grid-template-columns:1fr;gap:8px}
 #magic-home .book-gallery .sample-strip{position:static;inset:auto;gap:8px;padding:4px 0}
 #magic-home .book-gallery .sample-strip button{width:auto;flex:0 0 auto;height:58px;min-height:58px;padding:3px}
 #magic-home .book-gallery .sample-strip button:has(template){width:108px}
 #magic-home .book-gallery .sample-strip button[data-sample-index="0"]:has(template){width:58px}
 #magic-home .book-gallery .sample-strip button picture{height:50px;width:auto}
 #magic-home .book-gallery .sample-strip button img{height:50px;width:auto;max-width:110px;object-fit:contain}
 #magic-home .book-gallery .product-heading{margin:14px 0 0}
 #magic-home .product-heading h1{font-size:26px;line-height:1.2;letter-spacing:-.5px}
 #magic-home .product-review-link{margin:0 0 14px}
 #magic-home .product-story-intro{font-size:15px}
 #magic-home .product-highlights{font-size:14px;gap:12px;margin-bottom:26px}
 #magic-home .delivery-timeline li{font-size:10px;gap:8px}
 #magic-home .delivery-timeline strong{font-size:11px}
 #magic-home .product-information{margin-top:24px}
 #magic-home .product-how{margin:0 16px 32px;padding:30px 16px;border-radius:20px}
 #magic-home .product-how h2{font-size:28px;margin-bottom:26px}
 #magic-home .product-how h3{font-size:16px;min-height:42px;margin-bottom:12px}
 #magic-home .how-art{height:130px;padding:8px}
 #magic-home .how-art img{height:114px}
 #magic-home .product-how p{font-size:13px;line-height:1.5}
 #magic-home .product-services{grid-template-columns:repeat(2,minmax(0,1fr));padding:28px 16px;gap:28px 16px;margin-top:32px}
 #magic-home .product-services strong{font-size:14px}
 #magic-home .product-services small{font-size:12px}
}
#magic-home .how-photo{width:124px;height:166px;overflow:hidden;border-radius:8px}
#magic-home .how-photo .responsive-picture{display:block;width:200%;height:200%;max-width:none}
#magic-home .how-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:fill;border-radius:0}
@media(max-width:760px){#magic-home .how-photo{width:85px;height:114px}}
#magic-home .book-buy{box-shadow:none}

/* Compact, user-controlled recommendation shelf. */
#magic-home .product-related{max-width:1280px;margin:0 auto;padding:32px 24px}
#magic-home .product-related .section-heading{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;max-width:none;margin:0 0 6px;padding:0;text-align:left}
#magic-home .product-related h2{font-size:28px;margin:0;letter-spacing:-.6px}
#magic-home .product-related .related-controls{flex-shrink:0}
#magic-home .product-related-track .ms-product-art,#magic-home .product-related-track .is-centered .ms-product-art{height:auto;aspect-ratio:1;box-shadow:none;background:var(--shop-raised);border-radius:8px}
#magic-home .product-related-track .ms-book{width:82%;height:82%;max-width:none}
#magic-home .product-related-track h3{font-size:15px;line-height:1.35;min-height:40px;margin:12px 0 6px}
#magic-home .product-related-track .ms-meta{font-size:12px}
#magic-home .product-related-track .product-category-tags{display:none}
#magic-home .related-personalize{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 12px;margin-top:10px;font-size:13px;font-weight:600;border:1px solid var(--shop-accent);border-radius:7px;color:var(--shop-accent);text-decoration:none;background:var(--shop-surface)}
#magic-home .ms-brand img{width:126px;height:76px;object-fit:contain;border-radius:0;filter:none}
:root[data-theme=light] #magic-home .ms-brand img{filter:brightness(0) saturate(100%) invert(19%) sepia(18%) saturate(2000%) hue-rotate(227deg)}
#magic-home dialog.product-personalize{width:min(740px,calc(100vw - 24px));border-radius:18px}
#magic-home .personalize-header{padding:16px 20px;gap:12px}
#magic-home .personalize-header>picture{flex-basis:48px}
#magic-home .personalize-header img{width:48px;height:48px}
#magic-home .personalize-header h2{font-size:21px;margin-bottom:4px}
#magic-home .personalize-header p{font-size:12px}
#magic-home .personalize-body{padding:18px 20px}
#magic-home .personalize-body>p{font-size:13px;margin-bottom:12px;line-height:1.5}
#magic-home .personalize-body .preview-form{gap:12px}
#magic-home .personalize-body .cast-fieldset{padding:12px;border-radius:12px;background:var(--shop-surface)}
#magic-home .personalize-body [data-new-person]{grid-template-columns:110px minmax(0,1fr);gap:10px 14px}
#magic-home .personalize-body .preview-upload{min-height:114px;padding:8px;border-radius:10px;background:var(--shop-raised)}
#magic-home .personalize-body .preview-upload img{max-height:108px}
#magic-home .personalize-body label{font-size:12px;gap:4px}
#magic-home .personalize-body input:not([type=checkbox]):not([type=file]),#magic-home .personalize-body select{min-height:40px;height:40px;padding:8px 10px;font-size:14px;border-radius:8px}
#magic-home .personalize-body .photo-consent{font-size:11px;gap:8px}
#magic-home .personalize-body .optional-person{margin:0 0 8px;font-size:12px}
#magic-home .personalize-body .preview-cta{min-height:46px}
#magic-home .personalize-body .allowance-note{font-size:11px;margin-top:10px}
@media(max-width:760px){
 #magic-home .ms-header .ms-brand img{width:90px;height:54px;border-radius:0}
 #magic-home .product-related{padding:24px 16px}
 #magic-home .product-related h2{font-size:24px}
 #magic-home .related-controls{gap:4px}
 #magic-home .related-controls button{width:36px;height:36px}
 #magic-home .product-information .book-specifications{font-size:12px;gap:12px 8px}
 #magic-home .product-information .book-specifications li:before{margin-right:4px}
 #magic-home .personalize-body{padding:14px}
 #magic-home .personalize-body [data-new-person]{grid-template-columns:92px minmax(0,1fr);gap:8px 10px}
 #magic-home .personalize-body [data-new-person]>.field-grid{grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr) 58px;gap:8px}
 #magic-home .personalize-body [data-new-person]>label:not(.preview-upload):not(.photo-consent){grid-column:2;grid-row:2}
 #magic-home .personalize-body .preview-upload{grid-column:1;grid-row:1 / span 2;min-height:110px}
 #magic-home .personalize-body .preview-upload small{font-size:9px}
 #magic-home .personalize-body .preview-upload strong{font-size:12px}
}

/* Full-width grouped navigation, scoped to the storefront. */
#magic-home .ms-header{position:sticky}
#magic-home .ms-header .store-mega-nav{position:static;display:flex;justify-content:space-between;gap:24px}
#magic-home .store-mega-group{position:static;border:0;margin:0;padding:0;background:none;color:var(--shop-text);font-size:14px}
#magic-home .store-mega-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600;padding:0}
#magic-home .store-mega-group>summary::-webkit-details-marker{display:none}
#magic-home .store-mega-group[open]>summary{color:var(--shop-accent)}
#magic-home .store-mega{position:absolute;top:100%;left:0;right:0;display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;padding:24px max(24px,calc((100vw - 1280px)/2));background:var(--shop-surface);border-block:1px solid var(--shop-border);box-shadow:0 18px 24px #0002;max-height:70dvh;overflow:auto;white-space:normal}
#magic-home .mega-sections{display:flex;flex-direction:column;gap:4px;max-height:360px;overflow:auto}
#magic-home .mega-sections button{display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;min-height:44px;background:transparent;color:var(--shop-text);border:0;padding:10px 12px;font:inherit;font-size:14px;cursor:pointer;border-radius:7px}
#magic-home .mega-sections button[aria-pressed=true]{background:var(--shop-raised);color:var(--shop-accent);font-weight:600}
#magic-home .mega-panel{min-width:0}
#magic-home .mega-panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:4px 0 18px}
#magic-home .mega-panel-heading a{font-size:13px;color:var(--shop-accent)}
#magic-home .mega-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
#magic-home .mega-books>a{display:flex;flex-direction:column;gap:8px;font-size:13px;text-decoration:none;line-height:1.4;min-width:0}
#magic-home .mega-books picture{display:block;aspect-ratio:1;background:var(--shop-raised);border-radius:8px;padding:12px}
#magic-home .mega-books img{width:100%;height:100%;object-fit:contain;aspect-ratio:1}
#magic-home .mega-books small{color:var(--shop-muted);font-size:12px}
#magic-home .store-mega-nav :is(summary,button,a):focus-visible{outline:2px solid var(--shop-accent);outline-offset:3px}
@media(max-width:1000px){
 #magic-home .ms-header{height:auto;min-height:110px;display:flex;flex-wrap:wrap;padding:0 18px;gap:0 12px}
 #magic-home .ms-header .store-mega-nav{flex:0 0 100%;order:3;gap:12px;border-top:1px solid var(--shop-border)}
 #magic-home .store-mega-group>summary{font-size:12px;gap:4px}
 #magic-home .store-mega{grid-template-columns:170px minmax(0,1fr);gap:16px;padding:18px}
 #magic-home .mega-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #magic-home .ms-header .ms-brand img{width:90px;height:58px}
}
@media(max-width:600px){
 #magic-home .ms-header .store-mega-nav{gap:6px;white-space:normal}
 #magic-home .store-mega-group>summary{font-size:11px;gap:3px;min-height:44px}
 #magic-home .store-mega{grid-template-columns:120px minmax(0,1fr);gap:10px;padding:14px 12px}
 #magic-home .mega-sections button{font-size:12px;padding:8px;min-height:44px}
 #magic-home .mega-panel-heading{display:block;font-size:13px}
 #magic-home .mega-panel-heading a{display:block;margin-top:8px;font-size:12px}
 #magic-home .mega-books{gap:10px;grid-template-columns:1fr}
 #magic-home .mega-books>a{font-size:12px}
 #magic-home .mega-books picture{max-width:180px}
}
body.book-product-page #magic-home .ms-header .ms-brand img{width:126px;height:64px;object-fit:contain;border-radius:8px;filter:none}
:root[data-theme=light] #magic-home .ms-brand img{filter:none;background:#392459;padding:5px 8px;box-sizing:border-box;border-radius:8px}
@media(max-width:1000px){body.book-product-page #magic-home .ms-header .ms-brand img{width:90px;height:54px}}
/* Expanding information must not re-anchor the viewport to the section below it. */
body.book-product-page{overflow-anchor:none}
#magic-home .product-related-track .ms-book-categories{display:none}
#magic-home .product-related-track .ms-book-facts{font-size:12px}
#magic-home .mega-language{display:none}
@media(max-width:1000px){#magic-home .mega-language{grid-column:1/-1;display:flex;gap:8px;border-top:1px solid var(--shop-border);padding-top:12px}#magic-home .mega-language button{min-width:44px;min-height:44px;background:var(--shop-surface);color:var(--shop-text);border:1px solid var(--shop-border);border-radius:6px}#magic-home .mega-language button[aria-pressed=true]{background:var(--shop-raised);color:var(--shop-accent)}}
#magic-home .product-information .book-specifications li{grid-column:auto}
/* Product decision row and anchored desktop gallery. */
#magic-home .ms-brand img,body.book-product-page #magic-home .ms-header .ms-brand img,:root[data-theme=light] #magic-home .ms-brand img{background:transparent;padding:0;border-radius:0;filter:none}
@media(min-width:761px){#magic-home .book-gallery{position:sticky;top:136px;align-self:start}.magic-storefront .book-detail{align-items:start}}
@media(min-width:761px) and (max-width:1000px){#magic-home .book-gallery{top:126px}}
#magic-home .product-meta-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;margin:0 0 18px}
#magic-home .product-meta-row .product-review-link{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0;text-decoration:none;font-size:11px}
#magic-home .product-review-stars{display:flex;gap:3px;font-size:19px;line-height:1;color:white}
#magic-home .product-review-stars>span{display:grid;place-items:center;width:23px;height:23px;background:var(--shop-accent);color:var(--shop-surface);border-radius:2px}
#magic-home .review-link-label{color:var(--shop-muted)}
#magic-home .product-meta-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#magic-home .product-meta-tags>span{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:3px 8px;box-sizing:border-box;border:1px solid var(--shop-border);border-radius:6px;background:var(--shop-raised);font-size:12px;line-height:1.3;color:var(--shop-text);white-space:nowrap}
#magic-home .product-meta-tags .product-language-tags{font-size:17px;padding-inline:7px}
#magic-home .product-top-price{display:flex;align-items:center;gap:16px;margin:0 0 20px}
#magic-home .product-top-price .shop-price-value{display:flex;align-items:baseline;gap:8px;font-size:28px;font-weight:700;line-height:1.2}
#magic-home .product-top-price del{font-size:15px;font-weight:400;color:var(--shop-muted)}
#magic-home .price-delivery{display:flex;flex-direction:column;gap:2px;line-height:1.2;font-size:11px;color:var(--shop-accent);font-weight:650}
#magic-home .price-delivery>span{text-transform:uppercase;letter-spacing:.03em}
#magic-home .price-delivery small{font-size:10px;color:var(--shop-muted);font-weight:400}
#productReviews{scroll-margin-top:140px}
#magic-home .book-faq{background:var(--shop-raised);border:1px solid var(--shop-border);border-radius:22px;padding:36px;max-width:1280px;width:calc(100% - 48px);margin:32px auto;box-sizing:border-box;gap:24px 40px}
#magic-home .book-faq h2{margin:0;font-size:28px;color:var(--shop-text)}
#magic-home .book-faq details{color:var(--shop-text);border-color:var(--shop-border)}
#magic-home .book-faq details p{color:var(--shop-muted)}
#magic-home .mobile-menu-toggle,#magic-home .mobile-favorites,#magic-home .mobile-nav-actions{display:none}
#magic-home .store-saved-dialog{width:min(600px,calc(100vw - 32px));max-height:80dvh;overflow:auto;background:var(--shop-surface);color:var(--shop-text);border:1px solid var(--shop-border);border-radius:18px;padding:24px}
#magic-home .store-saved-dialog::backdrop{background:#100a24aa}
#magic-home .store-saved-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}
#magic-home .store-saved-dialog h2{font-size:22px;margin:0}
#magic-home .store-saved-dialog header button{width:44px;height:44px;border:1px solid var(--shop-border);border-radius:50%;background:var(--shop-raised);color:var(--shop-text);font-size:24px;cursor:pointer}
#magic-home .store-saved-dialog p{font-size:14px;line-height:1.6;color:var(--shop-muted)}
#magic-home .saved-books-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
#magic-home .saved-books-grid a{display:grid;gap:10px;font-size:14px;text-decoration:none}
#magic-home .saved-books-grid img{width:100%;aspect-ratio:1;object-fit:contain}
@media(max-width:760px){
 body.book-product-page #magic-home .ms-header,#magic-home .ms-header{height:76px;min-height:76px;display:grid;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px;grid-template-rows:76px;gap:0;padding:0 12px;align-items:center}
 #magic-home .ms-header>.ms-brand{grid-column:3;grid-row:1;justify-self:center;margin:0;min-width:0}
 body.book-product-page #magic-home .ms-header .ms-brand img,#magic-home .ms-header .ms-brand img{width:112px;height:66px;object-fit:contain;max-width:100%}
 #magic-home .ms-header .ms-tools{display:contents}
 #magic-home .ms-header .mobile-menu-toggle{display:grid;place-items:center;grid-column:1;grid-row:1;width:44px;height:44px;border:0;background:transparent;color:var(--shop-text);padding:10px;cursor:pointer}
 #magic-home .mobile-menu-toggle svg{width:24px;height:24px}
 #magic-home .ms-header [data-open-search]{grid-column:2;grid-row:1;position:static;display:grid;place-items:center;width:44px;height:44px}
 #magic-home .ms-header .mobile-favorites{display:grid;place-items:center;grid-column:4;grid-row:1;width:44px;height:44px}
 #magic-home .ms-header #openCart{display:flex;justify-content:center;grid-column:5;grid-row:1;min-width:44px;height:44px;gap:2px}
 #magic-home .ms-header #cartCount{font-size:10px}
 #magic-home .ms-header #themeToggle,#magic-home .ms-header .ms-languages,#magic-home .ms-header #accountButton{display:none}
 #magic-home .ms-header .store-mega-nav{display:none;position:absolute;inset:76px 0 auto 0;background:var(--shop-surface);border-block:1px solid var(--shop-border);padding:12px 18px 18px;box-sizing:border-box;max-height:calc(100dvh - 90px);overflow:auto;box-shadow:0 16px 24px #0002}
 #magic-home .ms-header .store-mega-nav.mobile-nav-open{display:block}
 #magic-home .store-mega-group{border-bottom:1px solid var(--shop-border)}
 #magic-home .store-mega-group>summary{min-height:48px;font-size:15px;justify-content:space-between}
 #magic-home .store-mega{position:static;max-height:none;grid-template-columns:112px minmax(0,1fr);padding:12px 0;gap:12px;border:0;box-shadow:none}
 #magic-home .mega-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #magic-home .mega-books>a{font-size:10px}
 #magic-home .mega-books picture{padding:4px}
 #magic-home .mega-books small{font-size:10px}
 #magic-home .mega-language{display:none}
 #magic-home .mobile-nav-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
 #magic-home .mobile-nav-actions button{min-height:44px;padding:8px 12px;border:1px solid var(--shop-border);border-radius:7px;background:var(--shop-raised);color:var(--shop-text);font:inherit;font-size:13px;cursor:pointer}
 #magic-home .mobile-nav-actions>div{display:flex;gap:8px;width:100%}
 #magic-home .mobile-nav-actions [aria-pressed=true]{border-color:var(--shop-accent);color:var(--shop-accent)}
 #magic-home .product-meta-row{gap:8px;flex-wrap:nowrap;align-items:center}
 #magic-home .product-meta-tags{justify-content:flex-end;gap:4px}
 #magic-home .product-meta-tags>span{font-size:10px;padding:3px 6px;min-height:25px}
 #magic-home .product-meta-tags .product-language-tags{font-size:14px;gap:4px}
 #magic-home .product-review-stars{gap:2px;font-size:15px}
 #magic-home .product-review-stars>span{width:19px;height:19px}
 #magic-home .product-meta-row .product-review-link{flex-shrink:0;font-size:10px}
 #magic-home .product-top-price .shop-price-value{font-size:26px}
 #magic-home .product-mobile-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));align-items:center}
 #magic-home .mobile-price-summary{display:grid;gap:4px;text-align:left;align-content:center}
 #magic-home .product-mobile-action .shop-price-value{display:flex;flex-direction:row;align-items:baseline;gap:6px;font-size:20px;line-height:1.15}
 #magic-home .product-mobile-action .price-delivery{font-size:9px;gap:1px}
 #magic-home .product-mobile-action .price-delivery small{font-size:9px}
 #magic-home .product-mobile-action .button{margin:0;min-height:46px;padding:10px 16px;max-width:190px}
 #magic-home .product-mobile-action[hidden],body:has(dialog[open]) #magic-home .product-mobile-action,body.is-locked #magic-home .product-mobile-action,body:has(.cookie-banner:not([hidden])) #magic-home .product-mobile-action{display:none}
 #magic-home .book-faq{width:calc(100% - 32px);padding:24px 20px;gap:20px;border-radius:18px}
 #magic-home .book-faq h2{font-size:25px}
 #productReviews{scroll-margin-top:92px}
}
/* Homepage hierarchy, compact filters and recognizable saved-book controls. */
#magic-home .catalog-save-book{position:absolute;top:9px;right:9px;z-index:6;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--shop-border);border-radius:50%;background:var(--shop-surface);color:var(--shop-text);box-shadow:0 3px 12px #1b123b15;cursor:pointer}
#magic-home .catalog-save-book::before{content:"";position:absolute;inset:-5px;border-radius:50%}
#magic-home .catalog-save-book svg{width:18px;height:18px}
#magic-home .catalog-save-book[aria-pressed=true]{color:var(--shop-accent)}
#magic-home .catalog-save-book[aria-pressed=true] svg{fill:currentColor}
#magic-home .ms-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px max(24px,calc((100vw - 1280px)/2));text-align:center}
#magic-home .ms-facts>span{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px}
#magic-home #stories{overflow:visible}
#magic-home #stories #catalogSearch{margin:16px 0 22px;max-width:none;padding:0}
#magic-home .home-filter-panel{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:12px 26px;
 padding:15px 18px;
 border:1px solid var(--shop-border);
 border-radius:17px;
 background:var(--shop-surface);
}
#magic-home .home-filter-group{display:flex;align-items:baseline;gap:9px 12px;min-width:0}
#magic-home .home-filter-label{font-size:12px;font-weight:800;color:var(--shop-text);white-space:nowrap}
#magic-home .home-filter-tags{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
#magic-home .home-filter-topic{
 order:1;
 display:grid;
 grid-template-columns:auto minmax(0,1fr) auto;
 align-items:start;
 flex:0 0 100%;
 padding-top:12px;
 border-top:1px solid var(--shop-border);
}
#magic-home .home-filter-topic .home-filter-label{align-self:start;line-height:38px}
#magic-home .home-filter-reset{
 grid-column:3;
 margin-inline-start:auto;
 padding:7px 0;
 min-height:38px;
 border:0;
 background:none;
 color:var(--shop-accent);
 font:inherit;
 font-size:12px;
 font-weight:750;
 text-decoration:underline;
 text-underline-offset:3px;
 cursor:pointer;
}
#magic-home .home-filter-tag{
 --chip-color:#b095e0;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:6px;
 min-height:38px;
 padding:6px 11px;
 border:1px solid color-mix(in srgb,var(--chip-color) 58%,var(--shop-surface));
 border-radius:999px;
 background:color-mix(in srgb,var(--chip-color) 23%,var(--shop-surface));
 color:var(--shop-text);
 font:inherit;
 font-size:12px;
 line-height:1.25;
 font-weight:750;
 text-align:start;
 text-decoration:none;
 cursor:pointer;
 transition:background-color .15s,border-color .15s,box-shadow .15s;
}
#magic-home .home-filter-icon{font-size:15px;line-height:1;flex:none}
#magic-home .home-filter-tag[data-tone=peach]{--chip-color:#eeab8c}
#magic-home .home-filter-tag[data-tone=mint]{--chip-color:#85c6a2}
#magic-home .home-filter-tag[data-tone=sky]{--chip-color:#85b9ec}
#magic-home .home-filter-tag[data-tone=rose]{--chip-color:#ee9cba}
#magic-home .home-filter-tag[data-tone=yellow]{--chip-color:#e9bf66}
@media(hover:hover){
 #magic-home .home-filter-tag:hover{border-color:var(--chip-color);background:color-mix(in srgb,var(--chip-color) 38%,var(--shop-surface))}
}
#magic-home .home-filter-tag[aria-pressed=true]{
 border-color:var(--shop-accent);
 background:color-mix(in srgb,var(--chip-color) 48%,var(--shop-surface));
 box-shadow:inset 0 0 0 1px var(--shop-accent);
}
#magic-home .home-filter-panel :is(.home-filter-tag,.home-filter-reset):focus-visible{outline:2px solid var(--shop-accent);outline-offset:2px}
#magic-home .home-filter-search{flex:0 0 100%;display:grid;gap:5px;font-size:12px;font-weight:700}
#magic-home .home-filter-search input{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--shop-border);border-radius:9px;font-size:16px}
#magic-home #catalogSearch [hidden]{display:none}
#magic-home #catalogSearch .home-filter-reset[hidden]{display:block;visibility:hidden}
#magic-home .home-filter-topic:has(.home-filter-tags:empty) .home-filter-label{visibility:hidden}
#magic-home .home-filter-topic .home-filter-tags:empty{display:none}
#magic-home #stories #emptyState{margin:0 0 14px;color:var(--shop-muted);font-size:14px}
@media(max-width:640px){
 #magic-home .home-filter-panel{
  --filter-chip-height:34px;
  --filter-chip-gap:5px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px var(--filter-chip-gap);
  padding:10px;
  border-radius:14px;
 }
 #magic-home :is(.home-filter-age,.home-filter-gender){display:grid;gap:5px}
 #magic-home .home-filter-age{grid-column:span 3}
 #magic-home .home-filter-gender{grid-column:span 2}
 #magic-home :is(.home-filter-age,.home-filter-gender) .home-filter-tags{
  display:grid;
  grid-auto-columns:minmax(0,1fr);
  grid-auto-flow:column;
  gap:var(--filter-chip-gap);
 }
 #magic-home .home-filter-gender .home-filter-label{padding-inline-start:4px}
 #magic-home .home-filter-age-unit{display:none}
 #magic-home .home-filter-topic{
  grid-column:1/-1;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:4px 10px;
  padding-top:6px;
 }
 #magic-home .home-filter-topic .home-filter-label{align-self:center;line-height:26px}
 #magic-home .home-filter-reset{grid-area:1/2;min-height:26px;padding:0;font-size:11px}
 #magic-home .home-filter-topic .home-filter-tags{
  grid-column:1/-1;
  display:grid;
  grid-template-rows:repeat(2,var(--filter-chip-height));
  grid-auto-flow:column;
  grid-auto-columns:clamp(112px,36vw,145px);
  gap:var(--filter-chip-gap);
  overflow-x:auto;
  padding-block:3px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:var(--shop-border) transparent;
 }
 #magic-home .home-filter-topic .home-filter-tag{scroll-snap-align:start}
 #magic-home .home-filter-search{grid-column:1/-1}
 #magic-home .home-filter-tag{
  min-height:var(--filter-chip-height);
  height:var(--filter-chip-height);
  gap:4px;
  padding:3px 5px;
  font-size:11px;
  line-height:1.14;
  text-align:center;
 }
 #magic-home .home-filter-icon{font-size:13px}
 #magic-home .home-filter-tag-label{min-width:0;overflow-wrap:anywhere}
 #magic-home :is(.home-filter-age,.home-filter-gender) .home-filter-tag{white-space:nowrap}
 #magic-home .home-filter-topic .home-filter-tag:focus-visible{outline-offset:-2px}
}
@media(max-width:360px){
 #magic-home :is(.home-filter-age,.home-filter-gender) .home-filter-icon{display:none}
}
@media(max-width:420px){
 html[lang=ru] #magic-home .home-filter-gender .home-filter-icon{display:none}
}
@media(prefers-reduced-motion:reduce){#magic-home .home-filter-tag{transition:none}}
#magic-home .ms-shelf-track{grid-auto-columns:calc((100% - 80px)/4.3)}
#magic-home #stories .ms-shelf-track .ms-product-art{height:auto;aspect-ratio:1}
#magic-home #stories .ms-shelf-track .ms-book{width:86%;height:86%;max-width:none}
#magic-home .seasonal-shelf .ms-book-categories{display:none}
#magic-home .menu-theme-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6}
#magic-home .mobile-nav-actions .menu-theme-icon{width:44px;display:grid;place-items:center;padding:8px}
@media(min-width:1001px){
 #magic-home .ms-header{height:120px;min-height:120px;display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:76px 44px;gap:0;padding:0 max(24px,calc((100vw - 1280px)/2))}
 #magic-home .ms-header>.ms-brand{grid-column:2;grid-row:1;justify-self:center;margin:0}
 #magic-home .ms-header>.ms-brand img{width:126px;height:64px}
 #magic-home .ms-header>.store-mega-nav{grid-column:1/-1;grid-row:2;width:100%}
 #magic-home .ms-header>.ms-tools{grid-column:3;grid-row:1;justify-self:end;gap:12px;margin:0}
 #magic-home .ms-header [data-open-search]{position:absolute;left:max(24px,calc((100vw - 1280px)/2));top:22px}
}
@media(max-width:760px){
 #magic-home .ms-facts{gap:10px;padding:16px 12px}
 #magic-home .ms-facts>span{font-size:10px;line-height:1.5;gap:5px;flex-direction:column}
 #magic-home .ms-facts>span b{font-size:15px}
 #magic-home .ms-hero{padding:20px 18px 22px}
 #magic-home .ms-hero-label{margin-bottom:8px;font-size:10px}
 #magic-home .ms-hero h1{font-size:32px;margin-bottom:16px}
 #magic-home .ms-hero-books{height:245px;max-width:345px;margin-bottom:12px}
 #magic-home .ms-hero-main{width:56%;max-width:192px;top:0;right:2%}
 #magic-home .ms-hero-photo{width:25%;max-width:87px;top:6px}
 #magic-home .ms-hero-mini{width:22%;max-width:78px}
 #magic-home .ms-hero-mini.ms-top{left:2%;bottom:2px}
 #magic-home .ms-hero-mini.ms-bottom{left:29%;bottom:0}
 #magic-home .ms-hero-arrow{left:24%;top:75px;width:23%}
 #magic-home .ms-hero p{font-size:13px;line-height:1.6;margin-bottom:14px;max-width:330px}
 #magic-home .ms-hero .ms-primary{min-height:46px;font-size:15px}
 #magic-home .ms-hero .ms-primary span{font-size:15px}
 #magic-home .ms-hero-note{font-size:10px;margin-top:8px}
 #magic-home .ms-shelf-track{grid-auto-columns:calc((100% - 24px)/2.3);gap:24px 12px}
 #magic-home #stories .ms-product h3{font-size:12px;min-height:34px}
 #magic-home #stories .ms-book-facts{font-size:10px;flex-wrap:wrap;gap:2px 6px}
 #magic-home #stories .ms-book-categories{display:none}
 #magic-home #stories .ms-book-price{font-size:13px}
 #magic-home .ms-product-art .shop-badge-new{top:7px;left:7px;padding:3px 6px;font-size:9px}
 #magic-home .catalog-save-book{top:7px;right:7px;width:30px;height:30px}
 #magic-home .catalog-save-book::before{inset:-7px}
 #magic-home .catalog-save-book svg{width:16px;height:16px}
}

/* Compact page controls below the artwork remain visible on touch devices. */
#magic-home .ms-product-art.book-preview{height:auto;aspect-ratio:auto;padding:0 0 var(--book-card-controls);box-sizing:content-box}
#magic-home .ms-product-art.book-preview:before{content:'';display:block;aspect-ratio:1}
#magic-home .ms-product-art.book-preview .book-preview-link{inset:0 0 var(--book-card-controls)}
#magic-home .ms-product-art.book-preview .reader-arrow{top:auto;bottom:2px;transform:none;opacity:1;width:32px;height:32px;font-size:22px;line-height:1;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-text);box-shadow:0 2px 6px #2114300d}
#magic-home .ms-product-art.book-preview .reader-prev{left:calc(50% - 35px);right:auto}
#magic-home .ms-product-art.book-preview .reader-next{left:calc(50% + 3px);right:auto}
#magic-home .ms-product-art.book-preview .reader-arrow:disabled{opacity:.3!important}
#magic-home .ms-product-art.book-preview .reader-arrow:focus-visible{outline:2px solid var(--shop-accent);outline-offset:2px}
#magic-home .ms-shelf-track{--shelf-columns:5;grid-template-rows:repeat(3,auto);grid-auto-columns:calc((100% - 100px)/5.2)}
#magic-home .ms-shelf-track>.ms-product{display:flex;flex-direction:column;align-self:stretch}
#magic-home .ms-shelf-track>.ms-product .ms-product-art{flex-shrink:0}
#magic-home .ms-shelf-track .ms-book-categories{display:none}
#magic-home .ms-shelf-track>.ms-product .ms-book-price{margin-top:auto;padding-top:12px;font-size:20px;line-height:1.3;font-weight:800;color:#1757d7}
:root:not([data-theme=light]) #magic-home .ms-shelf-track .ms-book-price{color:#80a6ff}
@media(min-width:761px) and (max-width:1099px){#magic-home .ms-shelf-track{--shelf-columns:3;grid-auto-columns:calc((100% - 60px)/3.25)}}
@media(max-width:760px){
 #magic-home #stories .ms-book-price{font-size:18px}
 #magic-home .ms-shelf-track{--shelf-columns:2;grid-auto-columns:calc((100% - 24px)/2.3)}
}

/* Desktop language picker and balanced logo spacing. */
#magic-home .header-language{position:relative}
#magic-home .header-language>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:44px;padding:0 8px;cursor:pointer;font-size:13px;font-weight:650}
#magic-home .header-language>summary::-webkit-details-marker{display:none}
#magic-home .header-language>.ms-languages{position:absolute;right:0;top:100%;display:grid;min-width:115px;padding:6px;background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:10px;box-shadow:0 8px 24px #1b123b18;z-index:30}
#magic-home .header-language:not([open])>.ms-languages{display:none}
#magic-home .header-language .ms-languages button{width:100%;min-height:40px;padding:8px 12px;font-size:13px;text-align:left;border:0;border-radius:6px}
#magic-home .header-language>summary:focus-visible{outline:2px solid var(--shop-accent);outline-offset:2px}
@media(min-width:1001px){
 body.book-product-page #magic-home .ms-header,#magic-home .ms-header{height:144px;min-height:144px;grid-template-rows:96px 48px}
 #magic-home .ms-header>.ms-brand{align-self:center;padding:14px 0}
 body.book-product-page #magic-home .ms-header .ms-brand img,#magic-home .ms-header>.ms-brand img{width:142px;height:68px;object-fit:contain}
 #magic-home .ms-header [data-open-search]{top:26px}
}
@media(max-width:1000px){#magic-home .header-language{display:none}}

#magic-home .header-language>summary>span:first-child{font-size:19px;line-height:1}

/* Shared cards keep full titles, compact facts, and prices beside the action. */
#magic-home .ms-product .ms-card-info{display:flex;flex:1;flex-direction:column;gap:7px;padding:8px 12px 12px;background:var(--shop-surface);border:1px solid var(--shop-border);border-top:0;border-radius:0 0 14px 14px;min-width:0}
#magic-home .ms-product:has(.ms-card-info) .ms-product-art{margin:0;border-radius:14px 14px 0 0}
#magic-home .ms-product .ms-card-info h3,#magic-home #stories .ms-product .ms-card-info h3{margin:0;min-height:0;height:auto;line-height:1.35;font-size:15px;letter-spacing:-.2px;font-weight:700;overflow:visible}
#magic-home .ms-card-info h3 a{display:block;overflow-wrap:anywhere}
#magic-home .ms-product .ms-card-info .ms-book-facts{display:flex;gap:5px 8px;flex-wrap:wrap;margin:0;font-size:11px;line-height:1.5;min-height:0;align-content:start}
#magic-home .ms-card-info .ms-book-facts span{border-radius:5px;padding:2px 6px;background:var(--shop-raised);color:var(--shop-muted)}
#magic-home .ms-card-info .ms-book-facts span+span:before{display:none}
#magic-home .ms-card-action{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap;margin-top:auto;padding-top:8px;border-top:1px solid var(--shop-border)}
#magic-home .ms-product .ms-card-info .ms-book-price{margin:0;padding:0;font-size:19px;line-height:1.3;color:#1757d7;font-weight:800}
:root:not([data-theme=light]) #magic-home .ms-product .ms-card-info .ms-book-price{color:#80a6ff}
#magic-home .ms-card-info .shop-price-value{flex-direction:column;align-items:flex-start;gap:0;line-height:1.3;white-space:nowrap}
#magic-home .ms-card-info .shop-price-value del{font-size:12px}
#magic-home .ms-card-action .ms-book-price{flex-shrink:0;max-width:100%}
#magic-home .ms-personalize:not(.button-primary){display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:6px;border:1px solid var(--shop-border);border-radius:8px;background:var(--shop-raised);color:var(--shop-accent);font-size:11px;font-weight:750;text-decoration:none;line-height:1.3}
#magic-home .ms-personalize:not(.button-primary):hover{border-color:var(--shop-accent)}
#magic-home .ms-personalize:focus-visible{outline:2px solid var(--shop-accent);outline-offset:3px}
#magic-home [data-home-shelf=stories].ms-shelf-track{grid-template-rows:repeat(2,auto)}
body:not(.book-product-page) #magic-home main>:is(.ms-catalog-section,.ms-feature,.ms-facts,.ms-how,#how),#magic-home #homeCategoryShelves{width:calc(100% - 64px);max-width:1280px;margin-left:auto;margin-right:auto}
#magic-home #homeCategoryShelves .ms-catalog-section{width:100%;padding-left:0;padding-right:0}
body:not(.book-product-page) #magic-home main>.ms-catalog-section{padding-left:0;padding-right:0}
#magic-home #how .product-how{width:100%;margin:50px 0;padding:36px 24px}
#magic-home .product-how .how-art>.responsive-picture{display:block;width:100%;height:100%;min-height:0}
#magic-home .product-how .how-art>.responsive-picture img{object-fit:contain;width:100%;height:100%}
@media(min-width:1001px){
 #magic-home .ms-header #themeToggle{position:absolute;left:calc(max(32px, (100vw - 1280px)/2) + 52px);top:26px;width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center}
 #magic-home .ms-header [data-open-search]{left:max(32px,calc((100vw - 1280px)/2));width:44px;height:44px;display:grid;place-items:center}
 #magic-home .ms-header #accountButton.header-account-icon{position:static!important;display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:9px;background:transparent;border:0;max-width:none;color:var(--shop-text)}
 #magic-home .ms-header #accountButton.header-account-icon svg{display:block;width:24px;height:24px}
 body.book-product-page #magic-home .ms-header .ms-brand,#magic-home .ms-header>.ms-brand{display:flex;align-items:center;justify-content:center;width:160px;height:96px;padding:12px 0}
 body.book-product-page #magic-home .ms-header .ms-brand picture,#magic-home .ms-header>.ms-brand picture{display:block;width:152px;height:72px;max-width:none}
 body.book-product-page #magic-home .ms-header .ms-brand img,#magic-home .ms-header>.ms-brand img{display:block;width:152px;height:72px;max-width:none;object-fit:contain}
}
@media(max-width:760px){
 body:not(.book-product-page) #magic-home main>:is(.ms-catalog-section,.ms-feature,.ms-facts,.ms-how,#how),#magic-home #homeCategoryShelves{width:calc(100% - 32px)}
 #magic-home .ms-product .ms-card-info{padding:6px 8px 10px;gap:6px}
 #magic-home .ms-product .ms-card-info h3,#magic-home #stories .ms-product .ms-card-info h3{font-size:12px}
 #magic-home .ms-product .ms-card-info .ms-book-facts{font-size:10px;min-height:0;gap:4px}
 #magic-home .ms-card-action{gap:6px;padding-top:8px}
 #magic-home .ms-card-action .ms-personalize{font-size:11px;min-height:40px;padding:6px}
 #magic-home .ms-product .ms-card-info .ms-book-price{font-size:18px}
 #magic-home #how .product-how{padding:24px 16px}
}
@media(max-width:1000px){#magic-home .ms-header .ms-tools>a[data-open-search]{display:grid;place-items:center}}
@container shop-card (max-width:185px){
 #magic-home .ms-card-action{flex-wrap:wrap}
 #magic-home .ms-card-action .ms-personalize{width:100%}
 #magic-home .ms-card-info .shop-price-value{flex-direction:row;align-items:baseline;gap:6px;flex-wrap:wrap;white-space:normal;max-width:100%}
}
/* Home cards share the product page's primary action color. */
#magic-home .ms-home-product .ms-card-action{border:0;padding:0}
#magic-home .ms-home-product .ms-home-personalize{
 display:flex;align-items:center;justify-content:space-between;gap:6px;
 width:100%;min-height:44px;padding:7px 9px;border-radius:8px;
 color:#fff;font-size:12px;line-height:1.25;text-decoration:none;white-space:normal;
}
#magic-home .ms-home-personalize .ms-personalize-label{min-width:0;overflow-wrap:anywhere}
#magic-home .ms-home-personalize .shop-price-value{flex:0 0 auto;align-items:flex-end;max-width:100%;line-height:1.2}
#magic-home .ms-home-personalize .shop-price-value del{font-size:11px;opacity:.92;white-space:nowrap}
#magic-home .ms-home-personalize .shop-price-value strong{font-size:clamp(14px,8cqi,17px);white-space:nowrap}
#magic-home .ms-home-product .ms-book-facts[data-audience=boy] span:last-child{background:#dbeafe;color:#1e40af}
#magic-home .ms-home-product .ms-book-facts[data-audience=girl] span:last-child{background:#fce7f3;color:#9d174d}
@container shop-card (max-width:185px){
 #magic-home .ms-home-product .ms-home-personalize{flex-direction:column;justify-content:center;gap:3px;text-align:center}
 #magic-home .ms-home-personalize .shop-price-value{align-items:baseline;justify-content:center;gap:4px}
}
@media(min-width:761px){
 #magic-home .ms-home-product .ms-card-info{position:relative}
 #magic-home .ms-home-product .ms-card-info .ms-book-facts{
  position:absolute;left:var(--book-card-badge-inset);
  bottom:calc(100% + var(--book-card-controls) + var(--book-card-badge-inset));
  z-index:5;max-width:calc(100% - 74px);flex-direction:column;align-items:flex-start;
  gap:4px;font-weight:700;pointer-events:none;
 }
 #magic-home .ms-home-product .ms-book-facts span{border-radius:999px;padding:4px 8px;line-height:1.2;box-shadow:0 2px 6px #0002}
}
/* WEBSITE-managed campaigns keep cover proportions and the existing catalog cards. */
#magic-home .website-collection{display:grid;grid-template-columns:minmax(220px,.82fr) minmax(0,1.8fr);gap:32px;align-items:start}
#magic-home .website-collection-art{display:block;aspect-ratio:1;border-radius:20px;overflow:hidden;background:var(--shop-surface,#f0e9fa)}
#magic-home .website-collection-art img{display:block;width:100%;height:100%;object-fit:contain}
#magic-home .website-collection-books{min-width:0}
#magic-home .website-collection .ms-section-head{gap:12px;align-items:start;flex-wrap:wrap;margin-top:0}
#magic-home .website-collection .ms-section-head h2{font-size:clamp(22px,2.2vw,30px);margin-top:0}
#magic-home .website-collection .ms-section-head p{font-size:14px;line-height:1.6;max-width:42em;color:var(--shop-muted);margin:8px 0}
#magic-home .website-collection .ms-shelf-track{--shelf-columns:3;grid-auto-columns:calc((100% - 48px)/3.2);grid-template-rows:auto;gap:16px}

#magic-home #collection-new-year.new-year-collection{
 position:relative;
 isolation:isolate;
 overflow:hidden;
 padding:clamp(16px,2.5vw,32px);
 border:1px solid #90555f;
 border-radius:22px;
 background:
  linear-gradient(135deg,#693640cc,#763d47bf),
  url('/shop-assets/new-year-knit.webp') center/100% 100% no-repeat #713942;
 --new-year-snow-cap:url('/shop-assets/new-year-snow-cap.svg');
}
#magic-home .new-year-collection .ms-section-head{margin:0 0 10px}
#magic-home .new-year-collection .ms-section-head h2{
 margin:0;
 color:#fff7ef;
 text-shadow:0 2px 8px #45212a80;
}
#magic-home .new-year-collection .ms-explore{
 padding:7px 12px;
 border:1px solid #fff2e684;
 border-radius:999px;
 background:#4b243470;
 color:#fff7ef;
}
#magic-home .new-year-collection .ms-shelf-track{
 --shelf-columns:4;
 grid-auto-columns:calc((100% - 64px)/4.5);
 grid-template-rows:auto;
 gap:16px;
 padding:7px 0;
}
#magic-home .new-year-collection .ms-shelf-dots button::after{background:#fff0e880}
#magic-home .new-year-collection .ms-shelf-dots button[aria-pressed=true]::after{background:#fff7ef}
#magic-home .new-year-collection::after{
 content:'';
 position:absolute;
 inset:-180px 0 0;
 z-index:-1;
 pointer-events:none;
 background-image:
  radial-gradient(circle at 17px 34px,#fff9 1px,transparent 2.4px),
  radial-gradient(circle at 66px 109px,#fffc 1.6px,transparent 3px),
  radial-gradient(circle at 122px 146px,#fff8 .9px,transparent 2px),
  radial-gradient(circle at 153px 71px,#fffb 1.2px,transparent 2.6px);
 background-size:174px 180px;
 animation:new-year-snowfall 15s linear infinite;
}
@keyframes new-year-snowfall{to{transform:translateY(180px)}}
#magic-home .new-year-collection .ms-home-personalize{position:relative}
#magic-home .new-year-collection .ms-home-personalize::after{
 content:'';
 position:absolute;
 inset:-4px 1px auto;
 height:12px;
 z-index:1;
 pointer-events:none;
 background:var(--new-year-snow-cap) center/100% 100% no-repeat;
 filter:drop-shadow(0 1px 2px #1c274c4d);
}
@media(max-width:1099px){
 #magic-home .new-year-collection .ms-shelf-track{--shelf-columns:3;grid-auto-columns:calc((100% - 32px)/3)}
}
@media(max-width:760px){
 #magic-home .new-year-collection .ms-shelf-track{--shelf-columns:2;grid-auto-columns:calc((100% - 20px)/2.5);gap:10px}
 #magic-home .new-year-collection .ms-section-head h2{font-size:clamp(18px,5vw,24px)}
 #magic-home .new-year-collection .ms-explore{padding:6px 8px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 #magic-home .new-year-collection::after{animation:none}
}
#magic-home .website-hero{position:relative;margin:22px auto 0;max-width:1280px;border-radius:24px;overflow:hidden;background:var(--shop-surface,#fff);border:1px solid var(--shop-border,#e4dcf2)}
#magic-home .website-hero-track{display:flex;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
#magic-home .website-hero-track::-webkit-scrollbar{display:none}
#magic-home .website-hero-slide{min-width:100%;flex:0 0 100%;scroll-snap-align:start;overflow:hidden}
#magic-home .website-hero-visual{aspect-ratio:16/9;background:#eee8f7}
#magic-home .website-hero-visual img{width:100%;height:100%;display:block;object-fit:contain}
#magic-home .website-hero-caption{padding:24px 32px;display:flex;gap:24px;align-items:center;justify-content:space-between}
#magic-home .website-hero-caption h1{font-size:clamp(23px,3vw,38px);line-height:1.15;margin:0 0 8px;color:var(--shop-text)}
#magic-home .website-hero-caption p{font-size:15px;line-height:1.6;margin:0;color:var(--shop-muted)}
#magic-home .website-hero-caption .ms-primary{flex-shrink:0;margin:0;min-height:46px;font-size:14px;padding:12px 22px}
#magic-home .website-hero-controls{display:flex;justify-content:center;align-items:center;gap:16px;padding:0 20px 18px;font-size:12px}
#magic-home .website-hero-controls button{width:40px;height:40px;border:1px solid var(--shop-border,#e0d7ef);border-radius:50%;background:var(--shop-surface,#fff);color:var(--shop-text);font-size:24px;cursor:pointer}
#magic-home .website-hero-controls button:disabled{opacity:.35;cursor:default}
@media(max-width:1000px){#magic-home .website-collection{grid-template-columns:minmax(180px,.75fr) minmax(0,1.3fr);gap:20px}#magic-home .website-collection .ms-shelf-track{--shelf-columns:2;grid-auto-columns:calc((100% - 32px)/2.2)}#magic-home .website-hero{margin:16px 24px 0}}
@media(max-width:760px){#magic-home .website-collection{grid-template-columns:1fr;gap:20px}#magic-home .website-collection-art{max-width:480px;width:100%;justify-self:center;border-radius:16px}#magic-home .website-collection .ms-shelf-track{grid-auto-columns:calc((100% - 24px)/2.3);gap:12px}#magic-home .website-hero{border-radius:16px;margin:12px 16px 0}#magic-home .website-hero-caption{padding:18px;display:block}#magic-home .website-hero-caption .ms-primary{margin-top:14px}#magic-home .website-hero-caption p{font-size:13px}}

/* Collection art spans the full shelf; section links share a consistent baseline. */
#magic-home .website-collection{align-items:stretch}
#magic-home .website-collection-art{position:relative;aspect-ratio:auto;min-height:0;align-self:stretch}
#magic-home .website-collection-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#magic-home .ms-section-head,#magic-home .website-collection .ms-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
#magic-home .ms-section-head h2{margin:0}
#magic-home .ms-section-head .ms-explore{display:inline-flex;align-items:center;justify-content:center;gap:10px;margin:0;min-height:40px;line-height:1.3;white-space:nowrap;flex-shrink:0;font-size:14px}
#magic-home .ms-explore>span:last-child{font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center;width:16px;height:24px}
#magic-home .ms-section-head:has(p){align-items:flex-start}
#magic-home .website-hero-link{display:block;position:relative;width:100%;height:100%;color:inherit}
#magic-home .website-hero-caption .ms-primary{width:auto;display:inline-flex}
#magic-home .website-hero .has-overlay .website-hero-caption{position:absolute;inset:0 50% 0 0;padding:clamp(24px,4vw,56px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(90deg,#28134bc9,#28134b38,transparent);gap:24px}
#magic-home .website-hero .has-overlay h1{color:#fff;font-size:clamp(26px,3.4vw,48px);text-wrap:balance}
#magic-home .website-hero .has-overlay p{color:#f5edff;font-size:clamp(14px,1.35vw,18px);line-height:1.6}
#magic-home .website-hero .has-overlay .ms-primary{background:#fff;color:#57319a;box-shadow:0 4px 20px #1f0a3526}
#magic-home .website-hero-controls{padding-top:14px}
@media(max-width:760px){
 #magic-home .website-collection-art{aspect-ratio:3/4;width:min(100%,360px);max-height:440px}
 #magic-home .website-collection-art[data-format="1:1"]{aspect-ratio:1}
 #magic-home .website-collection-art[data-format="9:16"]{aspect-ratio:9/16;max-width:250px}
 #magic-home .ms-section-head .ms-explore{font-size:12px;min-height:36px;gap:5px}
 #magic-home .website-hero .has-overlay .website-hero-caption{position:static;padding:22px;background:linear-gradient(135deg,#4c2780,#6847bd);gap:16px}
 #magic-home .website-hero .has-overlay h1{font-size:26px}
 #magic-home .website-hero .has-overlay .ms-primary{margin-top:0;min-height:44px;font-size:13px}
}
/* Device-specific campaign artwork; no hidden crop for explicitly chosen ratios. */
#magic-home .website-collection-art:not([data-format="website"]){align-self:start;aspect-ratio:1}
#magic-home .website-collection-art[data-format="9:16"]{aspect-ratio:9/16}
#magic-home .website-collection-art[data-format="16:9"]{aspect-ratio:16/9}
#magic-home .website-collection-art[data-format="3:4"]{aspect-ratio:3/4}
#magic-home .website-collection-art picture{display:block;width:100%;height:100%}
#magic-home .website-hero-visual picture{display:block;width:100%;height:100%}
#magic-home .website-hero-visual img{object-fit:contain}
body:not(.book-product-page) #magic-home main>#trust.ms-facts{width:100%;max-width:none;min-height:52px;padding:10px max(24px,calc((100% - 1160px)/2));gap:12px;margin:0;box-sizing:border-box}
@media(max-width:1000px){
 #magic-home .website-hero-visual{aspect-ratio:var(--hero-tablet-ratio,16/9)}
 #magic-home .website-hero .has-overlay .website-hero-caption{position:static;padding:24px 32px;background:linear-gradient(135deg,#4c2780,#6847bd);gap:16px;align-items:flex-start}
 #magic-home .website-hero-caption .ms-primary{margin-top:0}
}
@media(max-width:760px){
 #magic-home .website-hero-visual{aspect-ratio:var(--hero-mobile-ratio,16/9);max-height:500px}
 #magic-home .website-hero .has-overlay .website-hero-caption{padding:22px}
 #magic-home .website-collection-art{width:min(100%,360px);max-height:none;aspect-ratio:3/4}
 #magic-home .website-collection-art[data-mobile-format="1:1"]{aspect-ratio:1}
 #magic-home .website-collection-art[data-mobile-format="16:9"]{aspect-ratio:16/9}
 #magic-home .website-collection-art[data-mobile-format="3:4"],#magic-home .website-collection-art[data-mobile-format="website"]{aspect-ratio:3/4}
 #magic-home .website-collection-art[data-mobile-format="9:16"]{aspect-ratio:9/16;max-width:280px}
 body:not(.book-product-page) #magic-home main>#trust.ms-facts{min-height:64px;padding:9px 12px;gap:8px}
}
.original-hero-preview #magic-home .ms-header,.original-hero-preview #magic-home main>:not(#hero),.original-hero-preview #magic-home .ms-footer,.original-hero-preview #magic-home footer{display:none!important}
.original-hero-preview #magic-home #hero{margin:0!important}

@media(min-width:1001px){#magic-home .website-hero .has-overlay .website-hero-caption{right:60%;padding:clamp(24px,3vw,40px)}}
@media(max-width:760px){#magic-home .website-collection-art{max-width:360px}#magic-home .website-collection-art[data-mobile-format="9:16"]{max-width:280px}}

/* A single continuous card frame, including the cover and its controls. */
#magic-home .ms-product:has(.ms-card-info){container:shop-card / inline-size;display:flex;flex-direction:column;border:1px solid var(--shop-border);border-radius:14px;background:var(--shop-surface);overflow:hidden;box-sizing:border-box}
#magic-home .ms-product .ms-card-info{border:0;border-radius:0}
#magic-home .ms-product:has(.ms-card-info) .ms-product-art{border-radius:13px 13px 0 0}
/* Website art ends at the card baseline, without counting carousel pagination. */
@media(min-width:761px){#magic-home .website-collection-art[data-format="website"]{height:var(--collection-art-height,100%);align-self:start}}
@media(max-width:760px){#magic-home .website-collection-art,#magic-home .website-collection-art[data-mobile-format],#magic-home .website-collection-art[data-format]{width:100%;max-width:none;justify-self:stretch}}
#magic-home .header-desktop-start{display:none}
@media(min-width:1001px){
 body.book-product-page #magic-home .ms-header,#magic-home .ms-header{height:84px;min-height:84px;grid-template-columns:minmax(0,1fr) 144px minmax(0,1fr);grid-template-rows:84px;padding:0 24px;gap:16px}
 #magic-home .ms-header .header-desktop-start{display:flex;align-items:center;gap:8px;grid-column:1;grid-row:1;min-width:0}
 #magic-home .ms-header .header-desktop-start>:is([data-open-search],#themeToggle){position:static;flex:0 0 34px;width:34px;height:40px;padding:7px;border:0;background:transparent;display:grid;place-items:center}
 #magic-home .ms-header .header-desktop-start .store-mega-nav{display:flex;position:static;grid-area:auto;width:auto;gap:clamp(6px,1vw,16px);margin:0;padding:0;justify-content:flex-start;flex:1;min-width:0;font-size:clamp(11px,.85vw,14px)}
 #magic-home .header-desktop-start .store-mega-group>summary{padding:18px 0;gap:4px;white-space:nowrap}
 body.book-product-page #magic-home .ms-header .ms-brand,#magic-home .ms-header>.ms-brand{grid-column:2;grid-row:1;width:144px;height:84px;padding:10px 0}
 body.book-product-page #magic-home .ms-header .ms-brand picture,#magic-home .ms-header>.ms-brand picture,body.book-product-page #magic-home .ms-header .ms-brand img,#magic-home .ms-header>.ms-brand img{width:136px;height:64px}
 #magic-home .ms-header .ms-tools{grid-column:3;grid-row:1;gap:10px;justify-content:flex-end}
 #magic-home .ms-header .store-mega{top:100%}
}

#magic-home .header-desktop-start [data-open-search] svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

@media(min-width:1001px){#magic-home .header-desktop-start .store-mega-group>summary{font-size:clamp(11px,.85vw,14px)}}
@media(min-width:1001px) and (max-width:1200px){#magic-home .ms-header .header-desktop-start{gap:4px}#magic-home .ms-header .header-desktop-start>:is([data-open-search],#themeToggle){flex-basis:30px;width:30px;padding:5px}#magic-home .ms-header .header-desktop-start .store-mega-nav{gap:6px;font-size:11px}}

.magic-storefront #main>[hidden]{display:none!important}

/* Hosted card checkout and payment confirmation. */
#checkoutCardButton{margin-top:12px}.payment-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.order-payment{border-top:1px solid #e5e7eb;padding-top:12px;margin-top:16px}.payment-message{font-size:14px}.payment-paid{color:#166534;background:#ecfdf5;border-radius:8px;padding:6px 10px}.payment-actions .button{font-size:14px}

.checkout-phone-control{display:flex;align-items:stretch;gap:8px;width:100%;margin-top:8px}
.checkout-phone-control select{width:132px;min-width:105px;max-width:38%;border:1px solid var(--shop-border,#dfd5ef);border-radius:12px;padding:12px 8px;background:var(--shop-surface,#fff);color:inherit;font:inherit;font-size:14px}
.checkout-phone-control #checkoutPhone{flex:1;min-width:0;width:0;margin:0}
.checkout-phone-control .checkout-custom-code{width:70px;min-width:0;margin:0}
.checkout-phone-control .checkout-custom-code[hidden]{display:none}
.payment-failed{color:#ae314a}.payment-actions{display:flex;gap:10px;flex-wrap:wrap}.payment-actions>.button{flex:1}.payment-complete-book{display:inline-flex;margin-top:12px}
.custom-payment-hint{font-size:13px;color:var(--custom-muted)}

#checkoutCardButton[aria-disabled=true]{opacity:.6;cursor:wait}

/* One book keeps its cover, preparation progress and payment history together. */
.account-book-list{display:grid;gap:18px}
.account-book-summary{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:22px;align-items:center}
.account-book-cover{width:120px;aspect-ratio:1;align-self:start;border-radius:10px;overflow:hidden;background:var(--shop-surface)}
.account-book-cover picture,.account-book-cover img{display:block;width:100%;height:100%;object-fit:contain}
.account-cover-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:10px;color:var(--shop-muted)}
.account-cover-placeholder span{font-size:26px}.account-cover-placeholder small{font-size:11px}
#magic-home .account-book-card .account-book-info h3{margin:0 0 5px;font-size:19px}
#magic-home .account-book-card .account-book-info p{margin:6px 0;font-size:13px}
.book-statuses{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.book-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:650;line-height:1.4}
.book-status--paid,.book-status--ready{background:#dcfce7;color:#166534}
.book-status--progress{background:#fff1da;color:#9a4d05}.book-status--attention{background:#ffe6e6;color:#a52d2d}.book-status--muted{background:var(--shop-raised);color:var(--shop-muted)}
#magic-home .account-book-card .account-book-actions{display:flex;align-items:center;gap:8px;flex-direction:column;margin:0}
#magic-home .account-book-card .account-book-actions .button{margin:0;width:auto;max-width:180px;font-size:13px;padding:12px 16px}
.book-order-details{border-top:1px solid var(--shop-border);margin-top:18px;padding-top:12px;font-size:13px}
.book-order-details summary{cursor:pointer;color:var(--shop-muted);padding:4px 0}
.book-order-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 0;border-bottom:1px solid var(--shop-border)}
.book-order-line:last-child{border:0}.book-order-line time{color:var(--shop-muted)}
.book-payment-success{display:flex;align-items:flex-start;gap:12px;padding:18px 22px;margin:0 0 20px;border-radius:14px;background:#eafaf0;color:#166534;border:1px solid #b7e4c8;font-size:15px;line-height:1.6}
.book-payment-success>span{font-weight:800;font-size:20px}.book-payment-success p{margin:0}
@media(max-width:1100px){.account-book-summary{grid-template-columns:96px minmax(0,1fr);gap:16px}.account-book-cover{width:96px}#magic-home .account-book-card .account-book-actions{grid-column:2;flex-direction:row;justify-content:flex-start}}
@media(max-width:760px){#magic-home .customer-dashboard .account-tabs{max-height:none;overflow-y:visible;top:auto}.account-book-summary{grid-template-columns:84px minmax(0,1fr);gap:14px}.account-book-cover{width:84px}#magic-home .account-book-card .account-book-info h3{font-size:16px}.book-payment-success{padding:14px;font-size:14px}}

/* The profile disclosure belongs to the header on every screen size. */
#magic-home .product-delivery .delivery-note{margin-top:12px;color:var(--shop-muted);font-size:12px;line-height:1.6}
#magic-home .ms-header .header-account{position:relative;flex:none}
#magic-home .ms-header #accountButton.header-account-icon{position:static!important;display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:44px;max-width:220px;height:44px;padding:8px!important;background:transparent!important;border:0;color:var(--shop-text);cursor:pointer}
#magic-home .ms-header #accountButton svg{flex:0 0 24px;width:24px;height:24px}
#magic-home .header-greeting{font-size:13px;font-weight:650;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#magic-home .header-greeting[hidden],#magic-home .header-account-menu[hidden]{display:none}
#magic-home .header-account-menu{position:absolute;top:calc(100% + 10px);right:0;width:230px;max-width:calc(100vw - 24px);padding:6px;background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:16px;box-shadow:0 12px 36px #2d174f24;z-index:60}
#magic-home .ms-header .header-account-menu :is(a,button){display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:10px 12px;text-align:left;font:inherit;font-size:14px;font-weight:500;color:var(--shop-text);background:transparent;border:0;border-radius:10px;cursor:pointer}
#magic-home .header-account-menu :is(a,button):hover,#magic-home .header-account-menu :is(a,button):focus-visible{background:var(--shop-soft);outline:2px solid var(--shop-accent);outline-offset:-2px}
#magic-home .header-account-menu [data-logout]{border-top:1px solid var(--shop-border);border-radius:0 0 10px 10px;color:#c43c57}
@media(max-width:1000px){
 body.book-product-page #magic-home .ms-header,#magic-home .ms-header{height:88px;min-height:88px;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px 44px;grid-template-rows:72px;padding:0 8px;gap:0}
 #magic-home .ms-header :is(.mobile-menu-toggle,[data-open-search],.mobile-favorites,#openCart){width:44px;min-width:44px;height:44px}
 #magic-home .ms-header .header-account{grid-column:6;grid-row:1;justify-self:end}
 #magic-home .ms-header #accountButton.header-account-icon{display:flex;width:44px;padding:10px}
 #magic-home .header-greeting{position:absolute;top:47px;right:0;max-width:180px;font-size:11px;line-height:16px}
 #magic-home .header-account-menu{top:calc(100% + 26px)}
 #magic-home .ms-header .store-mega-nav{top:88px;max-height:calc(100dvh - 100px)}
}

/* Audit 24 Oct: readable compact forms and a single mobile navigation scroller. */
.magic-storefront .field-grid:has(>.shop-age-field),.magic-storefront .custom-field-pair:has(>.shop-age-field){grid-template-columns:minmax(0,1fr);align-items:start;gap:14px}
.magic-storefront .shop-age-field{width:min(100%,320px);min-width:0;text-align:left}
.magic-storefront .shop-age-parts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.magic-storefront .shop-age-parts :is(input,select){min-height:44px;width:100%;font-size:16px;padding:8px 12px}
#magic-home .personalize-body [data-new-person]>.field-grid{grid-template-columns:minmax(0,1fr);gap:12px}
#magic-home .personalize-body .shop-age-field{width:min(100%,280px)}
#magic-home .personalize-body .shop-age-parts :is(input,select){min-height:44px;font-size:16px}
#magic-home .product-photo-choices{align-items:start}
#magic-home .product-photo-choice{display:grid;grid-template-rows:auto 2.8em auto auto;align-content:start;justify-items:center;gap:6px;min-width:0}
#magic-home .product-photo-choice>strong{line-height:1.4;min-height:2.8em;margin:0;overflow-wrap:anywhere;align-self:start}
#magic-home .product-photo-choice>:is(small,.photo-choice-label){margin:0}
#magic-home footer :is(p,a,button),.magic-storefront .site-footer :is(p,a,button){color:var(--shop-muted);opacity:1}
#magic-home footer :is(a,button):hover,.magic-storefront .site-footer :is(a,button):hover{color:var(--shop-text);text-decoration:underline}
#magic-home footer :is(a,button):focus-visible{outline:3px solid var(--shop-accent);outline-offset:4px;color:var(--shop-text)}
.shop-external-icon{display:inline-block;width:1em;height:1em;vertical-align:-.1em;flex-shrink:0}
.account-loading{padding:32px;min-height:280px}
.account-resource-state{padding:20px;border:1px solid var(--shop-border);border-radius:14px;margin:16px 0}
.account-resource-state p{color:var(--shop-muted)}
.account-skeleton{height:64px;max-width:520px;margin:16px 0;background:linear-gradient(100deg,var(--shop-raised),var(--shop-surface),var(--shop-raised));border-radius:12px}
@media(max-width:760px){
 #magic-home .personalize-body [data-new-person]{grid-template-columns:minmax(0,1fr);gap:14px}
 #magic-home .personalize-body [data-new-person]>.field-grid,#magic-home .personalize-body [data-new-person]>label:not(.preview-upload):not(.photo-consent),#magic-home .personalize-body .preview-upload{grid-column:1;grid-row:auto}
 #magic-home .personalize-body .preview-upload{min-height:100px}
}
@media(max-width:1000px){
 body.shop-menu-open{overflow:hidden}
 #magic-home .store-mega{grid-template-columns:minmax(0,1fr);overflow:visible;max-height:none}
 #magic-home .mega-sections{max-height:none;overflow:visible;min-width:0}
 #magic-home .mega-sections button{width:100%;font-size:14px;min-height:44px;overflow-wrap:anywhere}
 #magic-home .mega-panel-heading{display:flex;font-size:14px;flex-wrap:wrap}
 #magic-home .mega-books{grid-template-columns:repeat(2,minmax(0,1fr));font-size:13px}
 #magic-home .mega-books>a,#magic-home .mega-books small{font-size:12px}
}

#magic-home footer .shop-policy-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 24px;width:100%;padding-top:24px;font-size:13px}#magic-home footer .shop-policy-links a{text-decoration:underline;text-underline-offset:3px}.shop-policy{max-width:820px;margin:0 auto;padding:20px 0 40px;line-height:1.75}.shop-policy h1{font-size:clamp(28px,4vw,42px)}.shop-policy h2{font-size:21px;margin:28px 0 8px}.shop-policy p{color:var(--shop-text);max-width:none}.shop-policy address{font-style:normal}.shop-policy .shop-policy-links{display:flex;gap:12px 24px;flex-wrap:wrap;padding:14px 0;border-block:1px solid var(--shop-border)}.shop-policy a{color:var(--shop-accent);text-underline-offset:3px}.shop-policy .policy-sources{font-size:12px;margin-top:30px}
.shop-policy .shop-policy-links [aria-current="page"]{font-weight:750;text-decoration-thickness:2px}
@media(max-width:760px){
 #magic-home .shop-policy h2{font-size:21px;line-height:1.28}
 .shop-policy .shop-policy-links{gap:4px 16px;padding-block:6px}
 .shop-policy .shop-policy-links a{display:inline-flex;align-items:center;min-height:44px}
}


#magic-home footer span,.magic-storefront .site-footer span{color:inherit;opacity:1}
.magic-storefront footer.shop-footer,
#magic-home footer.shop-footer {
 --footer-line:color-mix(in srgb,var(--shop-accent) 22%,var(--shop-border));
 --footer-copy:color-mix(in srgb,var(--shop-muted) 76%,var(--shop-text));
 --footer-cta:#6336a7;
 padding:0;
 border-top:1px solid var(--footer-line);
 background:
  radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--shop-accent) 9%,transparent),transparent 52%),
  linear-gradient(180deg,var(--shop-raised),var(--shop-surface));
 color:var(--shop-text);
}
.shop-footer-inner {
 width:min(1280px,calc(100% - clamp(32px,8vw,112px)));
 margin-inline:auto;
}
.shop-footer-main {
 display:grid;
 grid-template-columns:minmax(178px,1fr) minmax(300px,1.85fr) minmax(240px,1.05fr);
 align-items:start;
 gap:clamp(24px,4vw,64px);
 padding-block:clamp(26px,4vw,52px) 28px;
}
.shop-footer-brand>a {
 display:inline-flex;
 align-items:center;
 border-radius:10px;
}
.shop-footer-brand img {
 display:block;
 width:116px;
 height:auto;
 object-fit:contain;
}
:root[data-theme=dark] .shop-footer-brand>a {
 background:#fcfaff;
 padding:2px 9px;
}
.shop-footer .shop-footer-brand p,
#magic-home .shop-footer .shop-footer-brand p {
 margin:7px 0 14px;
 max-width:23ch;
 color:var(--footer-copy);
 font-size:14px;
 line-height:1.55;
}
.shop-footer-languages {
 display:inline-flex;
 gap:4px;
 padding:3px;
 background:var(--shop-surface);
 border:1px solid var(--footer-line);
 border-radius:999px;
}
.shop-footer .shop-footer-languages button,
#magic-home .shop-footer .shop-footer-languages button {
 min-width:39px;
 min-height:34px;
 padding:0 8px;
 border:0;
 border-radius:999px;
 background:transparent;
 color:var(--footer-copy);
 font:inherit;
 font-size:11px;
 font-weight:800;
 cursor:pointer;
}
.shop-footer .shop-footer-languages button[aria-pressed=true],
#magic-home .shop-footer .shop-footer-languages button[aria-pressed=true] {
 background:var(--shop-raised);
 color:var(--shop-text);
}
.shop-footer-nav {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:clamp(16px,3vw,44px);
 padding-top:9px;
}
.shop-footer-links {
 display:grid;
 justify-items:start;
 align-content:start;
}
.shop-footer h2,
#magic-home .shop-footer h2 {
 margin:0 0 10px;
 font:inherit;
 font-size:16px;
 line-height:1.3;
 letter-spacing:-.015em;
 font-weight:800;
 color:var(--shop-text);
}
.shop-footer .shop-footer-links a,
#magic-home .shop-footer .shop-footer-links a {
 display:inline-flex;
 align-items:center;
 min-height:34px;
 max-width:100%;
 color:var(--footer-copy);
 font-size:14px;
 line-height:1.45;
 overflow-wrap:anywhere;
}
.shop-footer-support {
 padding:19px 20px 20px;
 border:1px solid var(--footer-line);
 border-radius:18px;
 background:
  radial-gradient(ellipse at top right,color-mix(in srgb,var(--shop-accent) 12%,transparent),transparent 74%),
  var(--shop-surface);
}
.shop-footer .shop-footer-support p,
#magic-home .shop-footer .shop-footer-support p {
 margin:0 0 14px;
 color:var(--footer-copy);
 font-size:13px;
 line-height:1.6;
}
.shop-footer .shop-footer-contact,
#magic-home .shop-footer .shop-footer-contact {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:10px;
 min-height:44px;
 padding:7px 14px;
 border-radius:10px;
 background:var(--footer-cta);
 color:#fff;
 font-size:13px;
 font-weight:800;
 line-height:1.35;
}
.shop-footer .shop-footer-contact:hover,
#magic-home .shop-footer .shop-footer-contact:hover {
 background:#52278f;
 color:#fff;
 text-decoration:none;
}
.shop-footer-bottom {
 display:grid;
 grid-template-columns:auto minmax(0,1fr) auto;
 align-items:center;
 gap:14px 24px;
 min-height:72px;
 padding-block:12px;
 border-top:1px solid var(--footer-line);
 color:var(--footer-copy);
 font-size:12px;
 line-height:1.45;
}
.shop-footer-copyright { font-size:inherit }
.shop-footer-legal {
 display:flex;
 align-items:center;
 justify-content:center;
 flex-wrap:wrap;
 gap:0 16px;
}
.shop-footer .shop-footer-legal .shop-policy-links,
#magic-home .shop-footer .shop-footer-legal .shop-policy-links {
 display:flex;
 align-items:center;
 justify-content:center;
 flex-wrap:wrap;
 width:auto;
 gap:0 16px;
 padding:0;
 font-size:inherit;
}
.shop-footer .shop-footer-legal a,
#magic-home .shop-footer .shop-footer-legal a,
.shop-footer .shop-footer-legal .shop-footer-cookies,
#magic-home .shop-footer .shop-footer-legal .shop-footer-cookies {
 display:inline-flex;
 align-items:center;
 min-height:40px;
 padding:0;
 color:var(--footer-copy);
 font:inherit;
 text-decoration:none;
 white-space:normal;
}
.shop-footer-payment {
 display:flex;
 align-items:center;
 justify-content:end;
 gap:8px;
}
.shop-footer-payment-logos {
 display:inline-flex;
 align-items:center;
 gap:7px;
 padding:5px 7px;
 border:1px solid #ded5e9;
 border-radius:7px;
 background:#fff;
}
.shop-footer-payment-logos img { display:block;max-width:none;object-fit:contain }
.shop-footer a:hover,.shop-footer .shop-footer-cookies:hover {
 text-decoration:underline;
 text-underline-offset:3px;
}
.shop-footer :is(a,button):focus-visible,
#magic-home .shop-footer :is(a,button):focus-visible {
 outline:2px solid var(--shop-accent);
 outline-offset:3px;
}
.shop-footer .shop-footer-contact:focus-visible,
#magic-home .shop-footer .shop-footer-contact:focus-visible { color:#fff }
@media(max-width:960px) {
 .shop-footer-main { grid-template-columns:minmax(160px,.85fr) minmax(275px,1.55fr);gap:24px 36px }
 .shop-footer-support {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:18px;
  padding:15px 18px;
 }
 .shop-footer-support h2,
 #magic-home .shop-footer-support h2 { margin:0 0 3px }
 .shop-footer .shop-footer-support p,
 #magic-home .shop-footer .shop-footer-support p { margin:0 }
 .shop-footer-contact { grid-column:2;grid-row:1/span 2 }
 .shop-footer-bottom { grid-template-columns:1fr 1fr }
 .shop-footer-legal { grid-column:1/-1;grid-row:2;justify-content:start }
}
@media(max-width:560px) {
 .shop-footer-main { grid-template-columns:minmax(0,1fr);gap:18px;padding-block:22px }
 .shop-footer-brand {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  justify-items:start;
  align-items:center;
  column-gap:14px;
 }
 .shop-footer-brand img { width:99px }
 .shop-footer .shop-footer-brand p,
 #magic-home .shop-footer .shop-footer-brand p { grid-column:1/-1;max-width:none;margin:2px 0 0 }
 .shop-footer-languages { grid-column:2;grid-row:1 }
 .shop-footer .shop-footer-languages button,
 #magic-home .shop-footer .shop-footer-languages button { min-width:39px;min-height:40px }
 .shop-footer-nav { gap:12px;padding-top:0 }
 .shop-footer h2,
 #magic-home .shop-footer h2 { margin-bottom:4px;font-size:15px }
 .shop-footer .shop-footer-links a,
 #magic-home .shop-footer .shop-footer-links a { min-height:44px;font-size:13px }
 .shop-footer-support { display:block;padding:15px 16px }
 .shop-footer .shop-footer-support p,
 #magic-home .shop-footer .shop-footer-support p { margin-bottom:10px }
 .shop-footer-bottom { display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-block:12px 20px }
 .shop-footer-legal { order:-1;justify-content:flex-start;gap:0 13px }
 .shop-footer .shop-footer-legal .shop-policy-links,
 #magic-home .shop-footer .shop-footer-legal .shop-policy-links { justify-content:flex-start;gap:0 13px }
 .shop-footer .shop-footer-legal a,
 #magic-home .shop-footer .shop-footer-legal a,
 .shop-footer .shop-footer-legal .shop-footer-cookies,
 #magic-home .shop-footer .shop-footer-legal .shop-footer-cookies { min-height:44px }
 .shop-footer-payment { justify-content:start;flex-wrap:wrap }
}
@supports(grid-template-rows:subgrid){
 #magic-home .product-photo-choices{display:grid;grid-template-columns:repeat(auto-fill,104px);column-gap:16px;row-gap:6px;align-items:stretch}
 #magic-home .product-photo-choice{grid-row:span 4;grid-template-rows:subgrid;align-items:start}
}

/* Greeting follows sign-in, without adding a second row to the mobile header. */
.customer-welcome-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:32px 24px;border:1px solid var(--shop-border,#e2d7f2);border-radius:24px;background:var(--shop-surface,#fff);color:var(--shop-text,#2d2441);text-align:center;box-shadow:0 24px 80px #24123830;overflow:auto}
.customer-welcome-dialog::backdrop{background:#21123566;backdrop-filter:blur(5px)}
.customer-welcome-icon{display:grid;place-items:center;margin:0 auto 18px;width:64px;height:64px;border-radius:20px;background:#f0e9fc;color:#7650cc;font-size:36px}
.customer-welcome-dialog h2{margin:0 0 12px;font-size:clamp(24px,5vw,30px);line-height:1.2;overflow-wrap:anywhere}
.customer-welcome-dialog p{margin:0 auto 24px;color:var(--shop-muted,#786b8a);line-height:1.6}
.customer-welcome-dialog .button{width:100%;min-height:48px;justify-content:center}
@media(max-width:1000px){
 #magic-home .header-greeting{display:none!important}
 body.book-product-page #magic-home .ms-header,#magic-home .ms-header{height:72px;min-height:72px}
 /* Keep the wordmark centered while leaving space for the right-hand controls. */
 body.book-product-page #magic-home .ms-header>.ms-brand,#magic-home .ms-header>.ms-brand{position:absolute;grid-area:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(72px,calc(100vw - 288px),112px);height:66px;padding:0;margin:0}
 body.book-product-page #magic-home .ms-header>.ms-brand picture,#magic-home .ms-header>.ms-brand picture,body.book-product-page #magic-home .ms-header>.ms-brand img,#magic-home .ms-header>.ms-brand img{display:block;width:100%;max-width:100%;height:66px;object-fit:contain}
 #magic-home .header-account-menu{top:calc(100% + 10px)}
 #magic-home .ms-header .store-mega-nav{top:72px;max-height:calc(100dvh - 84px)}
}
@media(max-width:359px){
 body.book-product-page #magic-home .ms-header>.ms-brand,#magic-home .ms-header>.ms-brand{position:static;grid-area:1/3;transform:none;width:min(90px,100%)}
}

/* A direct creation link is available without opening a catalog dropdown. */
#magic-home .store-mega-nav>.store-create-link{display:flex;align-items:center;flex-shrink:0;white-space:nowrap;color:var(--shop-text);font:inherit;font-weight:600;text-decoration:none;padding:18px 0}
#magic-home .store-mega-nav>.store-create-link:hover{color:var(--shop-primary,#7651c9)}
#magic-home .store-mega-nav>.store-create-link:focus-visible{outline:2px solid #7651c9;outline-offset:4px;border-radius:4px}
@media(max-width:1000px){#magic-home .store-mega-nav>.store-create-link{padding:14px 4px;border-bottom:1px solid var(--shop-border)}}
@media(min-width:1001px) and (max-width:1280px){
 body.book-product-page #magic-home .ms-header,#magic-home .ms-header{height:130px;min-height:130px}
 #magic-home .ms-header .header-desktop-start .store-mega-nav{position:absolute;top:84px;left:24px;right:24px;width:auto;justify-content:center;gap:24px;font-size:12px}
 #magic-home .header-desktop-start .store-mega-group>summary,#magic-home .store-mega-nav>.store-create-link{padding:10px 0;font-size:12px}
}

/* Product purchase entry and the focused personalization dialog. */
#magic-home .product-meta-row{display:grid;gap:14px;margin-bottom:20px}
#magic-home .product-meta-row .product-review-link{display:inline-flex;flex-direction:row;align-items:center;gap:10px;width:fit-content;margin:0;color:var(--shop-text);font-size:13px;text-decoration:none}
#magic-home .product-rating-stars{color:#eaa514;font-size:22px;letter-spacing:2px;line-height:1}
#magic-home .product-review-link:hover span:nth-child(2){text-decoration:underline;text-underline-offset:3px}
#magic-home .product-meta-tags{display:flex;flex-wrap:wrap;gap:7px}
#magic-home .product-personalization-choice{padding-top:20px;display:grid;gap:10px}
#magic-home .product-personalization-choice .product-start,
#magic-home .product-mobile-action>.button{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;max-width:none;margin:0;min-height:58px;padding:13px 20px;border-radius:14px;font-size:17px;line-height:1.3}
#magic-home .product-action-label{flex:1;text-align:left;font-weight:650}
#magic-home .product-action-price{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
#magic-home .product-action-price strong{font-size:20px;letter-spacing:-.4px}
#magic-home .product-action-price del{font-size:12px;opacity:.75;font-weight:400}
#magic-home .product-action-arrow{font-size:23px}
#magic-home .product-action-note{margin:0;text-align:center;font-size:12px}
#magic-home .product-personalization-choice .price-delivery{margin:4px 0 0;text-align:center;align-items:center;font-size:11px;line-height:1.6}
#magic-home #productReviews{scroll-margin-top:140px}
#magic-home dialog.product-personalize{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--shop-border);border-radius:22px;box-shadow:0 30px 100px #21103440}
#magic-home .personalize-header{position:sticky;top:0;z-index:3;padding:20px 24px;background:var(--shop-surface);border-bottom:1px solid var(--shop-border);align-items:center}
#magic-home .personalize-header h2{font-size:23px;line-height:1.2}
#magic-home .personalize-header p{font-size:13px;margin:5px 0 0;line-height:1.4}
#magic-home .personalize-header button{min-width:44px;min-height:44px;flex-shrink:0;align-self:flex-start}
#magic-home .personalize-body{padding:20px 24px 0}
#magic-home .personalize-body .personalize-intro{font-size:14px;line-height:1.55;margin:0 0 18px;color:var(--shop-muted)}
#magic-home .personalize-body .preview-form{gap:18px}
#magic-home .personalize-body .cast-fieldset{padding:16px;border-radius:14px}
#magic-home .personalize-body legend{font-size:14px;font-weight:650;padding:0 6px}
#magic-home .personalize-body [data-new-person]{grid-template-columns:140px minmax(0,1fr);gap:14px 18px}
#magic-home .personalize-body label{font-size:14px;gap:6px}
#magic-home .personalize-body input:not([type=checkbox]):not([type=file]),
#magic-home .personalize-body select{min-height:46px;height:46px;font-size:16px;padding:10px 12px;border-radius:10px}
#magic-home .personalize-body .preview-upload{min-height:164px;padding:12px;border:1.5px dashed var(--shop-accent);background:var(--shop-raised);cursor:pointer}
#magic-home .personalize-body .preview-upload img{max-height:140px;max-width:100%;border-radius:8px}
#magic-home .personalize-body .photo-consent{font-size:12px;line-height:1.5;align-items:flex-start}
#magic-home .personalize-body input[type=checkbox]{width:18px;height:18px;min-width:18px;accent-color:var(--shop-accent)}
#magic-home .personalize-companions{padding:14px 16px;border:1px solid var(--shop-border);border-radius:14px}
#magic-home .personalize-companions>summary{cursor:pointer;font-size:14px;font-weight:650;min-height:24px}
#magic-home .personalize-companions>summary span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:8px;background:var(--shop-raised);border-radius:50%;font-size:12px}
#magic-home .personalize-companions>p{font-size:12px;color:var(--shop-muted);line-height:1.6;margin:12px 0}
#magic-home .personalize-companions .cast-fieldset{margin-top:14px}
#magic-home .personalize-submit{display:grid;gap:8px;background:var(--shop-surface);padding:14px 0 18px;border-top:1px solid var(--shop-border)}
#magic-home .personalize-submit .preview-cta{width:100%;min-height:50px;margin:0;font-size:16px;border-radius:12px}
#magic-home .personalize-submit>small{font-size:11px;color:var(--shop-muted);text-align:center;line-height:1.5}
@media(max-width:760px){
 #magic-home .product-mobile-action{grid-template-columns:1fr;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
 #magic-home .product-mobile-action>.button{min-height:52px;padding:12px 14px;gap:10px;font-size:14px}
 #magic-home .product-action-price strong{font-size:18px}
 #magic-home .product-action-price del{font-size:11px}
 #magic-home .product-mobile-action .product-action-arrow{display:none}
 #magic-home #productReviews{scroll-margin-top:90px}
}
@media(max-width:600px){
 #magic-home dialog.product-personalize{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:18px}
 #magic-home .personalize-header{padding:16px;gap:10px}
 #magic-home .personalize-header h2{font-size:19px}
 #magic-home .personalize-header p{font-size:12px}
 #magic-home .personalize-body{padding:16px 16px 0}
 #magic-home .personalize-body .cast-fieldset{padding:12px}
 #magic-home .personalize-body [data-new-person]{grid-template-columns:minmax(0,1fr);gap:12px}
 #magic-home .personalize-body .preview-upload{grid-column:1;grid-row:1;min-height:110px}
 #magic-home .personalize-body [data-new-person]>.field-grid{grid-column:1;grid-row:2}
 #magic-home .personalize-body [data-new-person]>label:not(.preview-upload):not(.photo-consent){grid-column:1;grid-row:3}
 #magic-home .personalize-submit{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}
/* Cover choice and price stay separate from the personalization action. */
#magic-home .book-binding-picker{border:0;padding:0;margin:0 0 8px;min-width:0}
#magic-home .book-binding-picker legend{font-size:13px;font-weight:650;margin-bottom:10px;padding:0;color:var(--shop-muted)}
#magic-home .book-binding-picker>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#magic-home .book-binding-picker label{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:54px;padding:12px 16px;margin:0;border:1px solid var(--shop-border);border-radius:12px;background:var(--shop-surface);cursor:pointer;font-size:14px;font-weight:600}
#magic-home .book-binding-picker label:has(:checked){border-color:var(--shop-accent);background:var(--shop-raised);box-shadow:inset 0 0 0 1px var(--shop-accent)}
#magic-home .book-binding-picker input{accent-color:var(--shop-accent);width:17px;height:17px;flex-shrink:0;margin:0}
#magic-home .book-binding-picker label:focus-within{outline:2px solid var(--shop-accent);outline-offset:3px}
#magic-home .product-order-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;width:100%}
#magic-home .product-order-price{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;white-space:nowrap;color:var(--shop-text);line-height:1.25}
#magic-home .product-order-price strong{font-size:27px;font-weight:750;letter-spacing:-.7px}
#magic-home .product-order-price del{font-size:13px;color:var(--shop-muted)}
#magic-home .product-order-row>.button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:13px 18px;width:100%;margin:0;font-size:16px;border-radius:14px}
#magic-home .product-order-row .product-action-label{text-align:center}
#magic-home .payment-trust{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px 14px;color:var(--shop-muted);font-size:11px;line-height:1.5;text-align:center}
#magic-home .payment-logos{display:inline-flex;align-items:center;gap:13px;flex-shrink:0}
#magic-home .payment-logos img{display:block;object-fit:contain;max-width:none;flex-shrink:0}
#magic-home .delivery-contact{font-size:12px;line-height:1.6;color:var(--shop-muted);text-align:center;margin:2px 0 0}
#magic-home .binding-summary{padding:12px 14px;background:var(--shop-raised);border-radius:10px;margin:0;font-size:14px;font-weight:600}
#magic-home .product-mobile-action{gap:7px}
#magic-home .custom-intro .book-binding-picker{max-width:440px;margin:24px auto 14px;text-align:left}
#magic-home .custom-intro .product-order-price{align-items:center}
@media(max-width:760px){
 #magic-home .product-mobile-action .product-order-row{gap:16px}
 #magic-home .product-mobile-action .product-order-price strong{font-size:23px}
 #magic-home .product-mobile-action .product-order-price del{font-size:11px}
 #magic-home .product-mobile-action .product-order-row>.button{min-height:48px;padding:11px 13px;font-size:14px}
 #magic-home .product-mobile-action .payment-trust{gap:5px 10px;font-size:10px}
 #magic-home .product-mobile-action .payment-logos{gap:9px}
 #magic-home .product-mobile-action .payment-logos img{max-height:16px;width:auto}
 #magic-home .product-personalization-choice .product-order-row{gap:12px}
 #magic-home .product-personalization-choice .product-order-price strong{font-size:25px}
 #magic-home .book-binding-picker label{padding:12px;font-size:13px}
 body[data-shop-page=product]{padding-bottom:118px}
}

#magic-home #loveBinding{display:grid;gap:12px;margin:18px 0}
/* Sənin Hekayən: one purchase action, compact personalization and book format cards. */
#magic-home .product-start:after{content:none}
#magic-home .product-purchase-row{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:center;
 gap:12px;
 margin-bottom:4px;
}
#magic-home .product-purchase-row .product-order-price{
 flex-flow:row wrap;
 justify-content:flex-start;
 align-items:baseline;
 gap:4px 8px;
}
#magic-home .product-purchase-row .product-order-price strong{font-size:clamp(25px,6.4vw,36px);font-weight:800;line-height:1.1}
#magic-home .product-personalization-choice>.product-start .product-action-label{text-align:center}
#magic-home .product-personalization-choice>:is(.product-payment-note,.product-action-note,.delivery-contact){
 display:block;
 width:100%;
 max-width:none;
 margin:0;
 text-align:center;
 font-size:12px;
 line-height:1.5;
 color:var(--shop-muted);
}
#magic-home .personalize-header h2{font-size:25px;letter-spacing:-.5px}
#magic-home .personalize-intro{font-size:13px;line-height:1.5;margin-bottom:18px}
#magic-home .personalize-body .cast-fieldset{padding:0 0 18px;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0 0 18px}
#magic-home .personalize-body .cast-fieldset legend{padding:0 0 10px;font-size:16px;font-weight:700}
#magic-home .personalize-body [data-new-person]{display:grid;grid-template-columns:108px minmax(0,1fr);gap:10px 16px}
#magic-home .personalize-body [data-new-person]>.field-grid{grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr);gap:10px}
#magic-home .personalize-body [data-new-person]>label:not(.preview-upload):not(.photo-consent){grid-column:2;grid-row:2}
#magic-home .personalize-body .preview-upload{grid-column:1;grid-row:1 / 3;width:100%;min-height:120px;align-self:start;padding:12px 8px;border-radius:14px}
#magic-home .personalize-body .preview-upload:before{content:'+';width:34px;height:34px;display:grid;place-items:center;margin:auto;background:#7950c7;border-radius:50%;color:white;font-size:25px}
#magic-home .personalize-body .preview-upload:has(img:not([hidden])):before{display:none}
#magic-home .personalize-body .preview-upload img{max-height:130px;object-fit:contain}
#magic-home .personalize-body .photo-consent{grid-column:1 / -1;grid-row:auto;font-size:11px}
#magic-home .personalize-formats{border:0;padding:0;margin:0 0 20px;min-width:0}
#magic-home .personalize-formats legend{font-size:16px;font-weight:700;margin-bottom:10px}
#magic-home .personalize-formats>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#magic-home .personalize-formats label{position:relative;display:flex;align-items:center;gap:12px;padding:16px 12px;border:1.5px solid #ded5eb;border-radius:14px;background:#fff;cursor:pointer;margin:0}
#magic-home .personalize-formats label:has(:checked){border:2px solid #7950c7;background:#f2edf9;padding:15.5px 11.5px}
#magic-home .personalize-formats input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
#magic-home .personalize-formats label:focus-within{outline:2px solid #7950c7;outline-offset:3px}
#magic-home .personalize-formats img{object-fit:contain;filter:drop-shadow(2px 3px 3px #30203b33)}
#magic-home .personalize-formats label>span{display:grid;gap:5px;min-width:0}
#magic-home .personalize-formats small{font-size:11px;font-weight:400;color:#857b98}
#magic-home .personalize-dedication{margin:8px 0 18px}
#magic-home .personalize-dedication textarea{min-height:90px;resize:vertical;font-weight:400}
#magic-home .personalize-dedication small{font-size:11px;font-weight:400;color:#857b98;line-height:1.5}
#magic-home .personalize-submit{padding-top:18px;border-top:1px solid var(--line);gap:10px}
#magic-home .personalize-submit .binding-summary{font-size:14px;text-align:center;font-weight:600;margin:0 0 10px}
#magic-home .personalize-browse{display:block;background:none;border:0;text-decoration:underline;color:#7350b5;margin:12px auto;font-size:13px;cursor:pointer}
#magic-home .personalize-submit .payment-trust{font-size:10px;margin-top:14px}
@font-face{font-family:SHDedication;src:url('/fonts/comfortaa.ttf') format('truetype');font-display:swap}
#magic-home .dedication-card{display:grid;grid-template-columns:minmax(220px,420px) minmax(0,1fr);gap:28px;padding:24px;border:1px solid #ded3f3;border-radius:20px;margin:24px 0;background:white;align-items:center}
#magic-home .dedication-page{aspect-ratio:1;overflow:hidden;border-radius:3px;box-shadow:0 6px 16px #32223a16}
#magic-home .dedication-page svg{display:block;width:100%;height:auto}
#magic-home .dedication-card h2{font-size:22px;margin:0 0 8px}
#magic-home .dedication-card p{font-size:13px;color:#857b98;line-height:1.6}
#magic-home .dedication-card textarea{width:100%;min-height:130px;margin:12px 0;resize:vertical}
#magic-home .dedication-card button{font-size:14px}
@media(max-width:760px){
 body[data-shop-page=product]{padding-bottom:0}
 #magic-home .product-purchase-row .payment-logos{gap:8px}
 #magic-home .product-purchase-row .payment-logos img{max-width:66px;height:auto}
 #magic-home .product-purchase-row .payment-logos img:nth-child(2){width:36px}
 #magic-home .product-purchase-row .payment-logos img:nth-child(3){width:28px}
 #magic-home .dedication-card{grid-template-columns:1fr;gap:20px;padding:18px}
 #magic-home .dedication-page{max-width:420px;width:100%;margin:auto}
}
@media(max-width:480px){#magic-home .personalize-body{padding:16px}#magic-home .personalize-header{padding:14px;gap:10px}#magic-home .personalize-header h2{font-size:20px}#magic-home .personalize-body [data-new-person]{grid-template-columns:86px minmax(0,1fr);gap:10px 12px}#magic-home .personalize-formats>div{gap:9px}#magic-home .personalize-formats label{gap:8px;padding:13px 9px;font-size:12px}#magic-home .personalize-formats label:has(:checked){padding:12.5px 8.5px}#magic-home .personalize-formats small{font-size:10px}#magic-home .personalize-formats b{font-size:16px}}

/* Use one scrollable dialog for the fields and submit action. */
#magic-home dialog.product-personalize{width:min(560px,calc(100vw - 12px));max-height:calc(100dvh - 12px);border:0;border-top:4px solid #bea6e5;border-radius:22px;background:#fffcff;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px;scrollbar-width:thin;scrollbar-color:#baa8ce transparent}
#magic-home dialog.product-personalize[open]{display:flex;flex-direction:column}
#magic-home dialog.product-personalize[data-keyboard-viewport]{position:fixed;top:calc(var(--personalize-viewport-top) + 6px);bottom:auto;margin-block:0;max-height:calc(var(--personalize-viewport-height) - 12px)}
#magic-home .product-personalize .personalize-header{position:relative;flex:0 0 auto;padding:20px 18px;gap:12px;background:#fffcff;min-height:90px;box-sizing:border-box}
#magic-home .product-personalize .personalize-header img{width:52px;height:52px;flex:0 0 52px;border-radius:1px;box-shadow:0 5px 10px #30203b26}
#magic-home .product-personalize .personalize-header h2{font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:1.1;letter-spacing:-.65px;font-weight:700;color:#62409b;margin:0 0 6px}
#magic-home .product-personalize .personalize-header p{font-size:13px;line-height:1.3;margin:0;color:#685578}
#magic-home .product-personalize .personalize-header [data-close-personalize]{top:12px;right:12px;width:44px;height:44px;background:#fff;border-color:#e1d3e8;color:#62409b;font-size:25px;font-family:Arial,sans-serif}
#magic-home .product-personalize .personalize-body{display:contents;padding:0}
#magic-home .product-personalize .personalize-reference-form{display:flex;flex:none;flex-direction:column;gap:0;padding:0;margin:0}
#magic-home .personalize-fields{padding:16px;display:grid;gap:16px}
#magic-home .personalize-fields .cast-fieldset{padding:0;margin:0;border:0;background:none;min-width:0}
#magic-home .personalize-fields .cast-fieldset>legend{padding:0;margin:0 0 10px;font-size:17px;line-height:20px;font-weight:750;color:#62409b}
#magic-home .personalize-fields .personalize-saved-picker{display:block;margin:0 0 12px}
#magic-home .personalize-fields .personalize-person [data-new-person]{
 --person-field-height:48px;
 --person-field-gap:8px;
 display:grid;
 grid-template-columns:108px minmax(0,1fr);
 gap:12px;
 align-items:start;
}
#magic-home .personalize-fields .personalize-person .preview-upload{
 grid-column:1;
 grid-row:1;
 min-height:0;
 height:calc(2 * var(--person-field-height) + var(--person-field-gap));
 width:100%;
 padding:12px 6px;
 border:1px dashed #bca9cf;
 border-radius:14px;
 background:#f4f0f8;
 display:flex;
 flex-direction:column;
 gap:8px;
 align-items:center;
 justify-content:center;
 box-sizing:border-box;
}
#magic-home .personalize-fields .preview-upload:before{content:'+';width:38px;height:38px;min-height:38px;margin:0;border-radius:50%;background:#7950c7;color:white;font:700 25px/38px Arial,sans-serif}
#magic-home .personalize-fields .preview-upload strong{font-size:13px;line-height:18px;color:#62409b}
#magic-home .personalize-fields .preview-upload:has(img:not([hidden])){padding:4px}
#magic-home .personalize-fields .preview-upload:has(img:not([hidden])) strong{display:none}
#magic-home .personalize-fields .preview-upload img{width:100%;height:100%;max-height:98px;border-radius:10px;object-fit:cover}
#magic-home .personalize-person-info{min-width:0;grid-column:2;grid-row:1;display:grid;gap:var(--person-field-gap)}
#magic-home .personalize-person-basics{
 display:grid;
 grid-template-columns:minmax(0,1.8fr) minmax(48px,.8fr) minmax(59px,1fr);
 gap:6px;
}
#magic-home .personalize-person-basics input{min-width:0}
#magic-home .personalize-fields .personalize-person-basics input[data-age-years][type=number]{
 padding-inline:8px;
 appearance:textfield;
}
#magic-home .personalize-person-basics input::-webkit-inner-spin-button,
#magic-home .personalize-person-basics input::-webkit-outer-spin-button{appearance:none;margin:0}
#magic-home .personalize-gender{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
#magic-home .personalize-fields .personalize-gender-choice{
 position:relative;
 display:grid;
 place-items:center;
 min-width:0;
 min-height:var(--person-field-height);
 margin:0;
 padding:0 3px;
 border:1px solid #b8a8c7;
 border-radius:10px;
 box-sizing:border-box;
 background:#fff;
 color:#544464;
 font-size:14px;
 font-weight:650;
 line-height:1.2;
 cursor:pointer;
}
#magic-home .personalize-gender-choice input{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 margin:0;
 opacity:0;
 cursor:inherit;
}
#magic-home .personalize-fields .personalize-gender-choice:has([value=boy]:checked){
 border-color:#4b83cc;
 background:#e0edff;
 color:#194c89;
}
#magic-home .personalize-fields .personalize-gender-choice:has([value=girl]:checked){
 border-color:#c65a91;
 background:#fce4f0;
 color:#9d2a64;
}
#magic-home .personalize-gender-choice:has(:focus-visible){outline:2px solid #7950c7;outline-offset:2px}
#magic-home .personalize-gender-choice:has(:disabled){opacity:.6;cursor:default}
#magic-home .personalize-fields input:not([type=checkbox]):not([type=radio]):not([type=file]),#magic-home .personalize-fields select,#magic-home .personalize-fields textarea{background:#fff;border:1px solid #b8a8c7;border-radius:10px;color:#30253e;box-shadow:none;font-size:16px;font-weight:400;padding:10px 12px;min-height:48px;height:48px;width:100%;box-sizing:border-box}
#magic-home .personalize-fields input::placeholder,#magic-home .personalize-fields textarea::placeholder{color:#81778c;opacity:1}
#magic-home .personalize-person-info .optional-person{margin:0;font-size:12px;font-weight:400;gap:6px;line-height:16px;align-items:center}
#magic-home .personalize-person-info input[type=checkbox]{width:14px;height:14px;min-width:14px;margin:0;accent-color:#7950c7}
#magic-home .personalize-person-details{border:0;margin:0;padding:0;background:none}
#magic-home .personalize-person-details>summary{font-size:12px;color:#7950c7;line-height:18px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
#magic-home .personalize-person-details>div{display:grid;gap:10px;margin-top:10px}
#magic-home .personalize-formats{--format-cover-size:76px;margin:0;padding:0;border:0}
#magic-home .personalize-formats legend{font-size:17px;line-height:20px;color:#62409b;margin:0 0 10px;padding:0}
#magic-home .personalize-formats>div{gap:12px}
#magic-home .personalize-formats label,#magic-home .personalize-formats label:has(:checked){box-sizing:border-box;padding:8px 10px;gap:10px;border:2px solid #d2c9dc;border-radius:14px;background:#fff}
#magic-home .personalize-formats label:has(:checked){border-color:#7950c7;background:#f1ebf8}
#magic-home .personalize-format-cover{display:block;width:var(--format-cover-size);height:var(--format-cover-size);flex:0 0 var(--format-cover-size);border-radius:3px}
#magic-home .personalize-formats label>span{gap:2px}
#magic-home .personalize-formats strong{font-size:14px;line-height:18px;color:#62409b}
#magic-home .personalize-formats small{font-size:12px;line-height:14px;color:#786787}
#magic-home .personalize-format-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
#magic-home .personalize-format-price del{font-size:12px;line-height:16px;color:#786787}
#magic-home .personalize-format-price strong{font-size:18px;line-height:22px}
#magic-home .personalize-dedication{margin:0;display:grid;gap:6px;font-size:14px;color:#62409b;font-weight:650}
#magic-home .personalize-fields .personalize-dedication textarea{height:66px;min-height:66px;resize:vertical;font-size:16px;line-height:20px;padding:10px 12px}
#magic-home .personalize-language>label{display:flex;align-items:center;gap:12px;margin:0;font-size:12px;color:#786787}
#magic-home .product-personalize .personalize-fields select{
 appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%2362409b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-position:right 12px center;
 background-repeat:no-repeat;
 background-size:12px 12px;
 padding-inline-end:32px;
 cursor:pointer;
}
#magic-home .product-personalize .personalize-person-basics select{
 min-width:0;
 padding-inline:8px 22px;
 background-position:right 8px center;
 background-size:10px 10px;
}
#magic-home .product-personalize .personalize-language select{width:auto;min-width:150px;min-height:32px;height:32px;padding:4px 32px 4px 12px;font-size:12px;margin-inline-start:auto;border-color:#e0d5ea}
@media(forced-colors:active){
 #magic-home .product-personalize .personalize-fields select{appearance:auto;background-image:none}
}
#magic-home .product-personalize .personalize-submit{flex:0 0 auto;padding:12px 16px 10px;border-top:1px solid #e4dae9;gap:7px;background:#fffcff;display:flex;flex-direction:column}
#magic-home .product-personalize .personalize-submit .preview-cta{height:52px;min-height:52px;width:100%;padding:12px;margin:0;border-radius:13px;background:#7950c7;box-shadow:0 4px 8px #7950c720;color:#fff;font-size:16px;font-weight:700}
#magic-home .product-personalize .personalize-submit .preview-cta:before,#magic-home .product-personalize .personalize-submit .preview-cta:after{content:none}
#magic-home .product-personalize .personalize-submit>small{font-size:10px;line-height:14px;margin:0}
#magic-home .product-personalize .personalize-browse{margin:2px auto 6px;padding:0;min-height:20px;color:#62409b;font-size:14px;line-height:20px;font-weight:650}
#magic-home .product-personalize .personalize-submit .payment-trust{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;line-height:16px;margin:0;width:100%}
#magic-home .product-personalize .payment-trust>span:first-child{font-weight:500}
#magic-home .product-personalize .payment-logos{gap:6px}
#magic-home .product-personalize .payment-logos img{height:auto;max-width:60px}
#magic-home .product-personalize .payment-logos img:nth-child(2){width:34px}
#magic-home .product-personalize .payment-logos img:nth-child(3){width:30px}
@media(max-width:480px){
 #magic-home .personalize-formats{--format-cover-size:clamp(48px,calc(20vw - 20px),66px)}
 #magic-home .personalize-formats>div{gap:9px}
 #magic-home .personalize-formats label,#magic-home .personalize-formats label:has(:checked){padding:7px 8px;gap:7px}
 #magic-home .personalize-formats strong{font-size:12px;line-height:16px}
 #magic-home .personalize-formats small{font-size:10px;line-height:13px}
 #magic-home .personalize-format-price{gap:0 6px}
 #magic-home .personalize-format-price del{font-size:10px;line-height:12px}
 #magic-home .personalize-format-price strong{font-size:16px;line-height:19px}
}
@media(max-width:420px){
 #magic-home .product-personalize .personalize-header{padding:16px 14px;min-height:82px}
 #magic-home .product-personalize .personalize-header h2{font-size:22px}
 #magic-home .personalize-fields{padding:14px;gap:16px}
 #magic-home .personalize-fields .personalize-person [data-new-person]{grid-template-columns:90px minmax(0,1fr);gap:12px}
 #magic-home .personalize-fields .personalize-gender-choice{font-size:12px}
}
@media(max-width:760px){
 #magic-home .product-personalize .personalize-header{padding-inline-end:64px}
 #magic-home .product-personalize .personalize-header > div{min-width:0;overflow-wrap:anywhere}
 #magic-home .product-personalize .personalize-language select{
  min-height:44px;
  height:44px;
  max-width:65%;
  font-size:16px;
 }
}
@media(max-width:360px){
 #magic-home .product-personalize .personalize-header{gap:10px}
 #magic-home .product-personalize .personalize-header img{width:42px;height:42px;flex-basis:42px}
 #magic-home .product-personalize .personalize-header h2:lang(ru){font-size:18px}
 #magic-home .personalize-fields .personalize-person [data-new-person]{grid-template-columns:78px minmax(0,1fr);gap:10px}
 #magic-home .personalize-fields .personalize-person-basics input:not([type=checkbox]):not([type=radio]):not([type=file]){padding-inline:7px}
 #magic-home .personalize-fields .personalize-gender-choice{font-size:11px}
 #magic-home .personalize-formats{--format-cover-size:34px}
 #magic-home .personalize-format-price strong{white-space:nowrap;font-size:15px}
}

#magic-home #hero.ms-hero {
  display: block;
  position: relative;
  isolation: isolate;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 43% 17%, #fbf5ff 0 2px, transparent 3px),
    radial-gradient(circle at 92% 41%, #fbf5ffb0 0 2px, transparent 3px),
    radial-gradient(circle at 46% 85%, #fbf5ff9e 0 2px, transparent 3px),
    radial-gradient(circle at 94% 87%, #e3e4ff 0 2px, transparent 3px),
    radial-gradient(ellipse at 73% 44%, #a093ff7a, transparent 43%),
    linear-gradient(120deg, #7257d8, #4943cc 49%, #1757d7);
}
#magic-home #hero.ms-hero::before,
#magic-home #hero.ms-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
#magic-home #hero.ms-hero::before {
  width: 77%;
  height: 79%;
  left: -17%;
  top: -63%;
  transform: rotate(-24deg);
  border: clamp(32px, 4.56vw, 70px) solid #d6bcff18;
  border-radius: 44%;
  box-shadow: 0 0 0 clamp(27px, 3.9vw, 60px) #d6bcff0e;
}
#magic-home #hero.ms-hero::after {
  width: 79%;
  height: 61%;
  right: -22%;
  bottom: -49%;
  transform: rotate(-20deg);
  border: clamp(24px, 3.64vw, 56px) solid #7cb7ff33;
  border-radius: 48%;
}
#magic-home .ms-square-hero {
  width: min(1326px, calc(100% - clamp(48px, 13.67vw, 210px)));
  margin-inline: auto;
  padding-block: clamp(40px, 4.95vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4.3vw, 66px);
}
#magic-home #hero .ms-square-hero-copy h1 {
  margin: 0;
  color: inherit;
  font: 750 clamp(34px, 4.95vw, 76px)/.99 "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.062em;
}
#magic-home #hero .ms-square-hero-copy p {
  max-width: 15em;
  margin: clamp(14px, 1.56vw, 24px) 0 clamp(20px, 2.08vw, 32px);
  color: inherit;
  font-size: clamp(16px, 1.56vw, 24px);
  line-height: 1.4;
  letter-spacing: -.025em;
}
#magic-home .ms-square-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.95vw, 30px);
  min-height: clamp(48px, 4.1vw, 63px);
  padding-inline: clamp(20px, 1.83vw, 28px);
  border: 1px solid #ffffff27;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(115deg, #ad3ecb, #c351d6);
  box-shadow: 0 8px 23px #13064129;
  font-size: clamp(16px, 1.43vw, 22px);
  font-weight: 700;
  text-decoration: none;
}
#magic-home .ms-square-hero-cta:hover { background: linear-gradient(115deg, #9f31bd, #b344c8); }
#magic-home .ms-square-hero-cta span[aria-hidden] { font-size: 1.4em; line-height: 1; font-weight: 500; }
#magic-home .ms-square-hero-books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 712px;
  gap: clamp(14px, 2.86vw, 44px);
  justify-self: end;
}
#magic-home .ms-square-hero-book {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #251e3c;
  box-shadow: 0 5px 9px #1c134238, 0 18px 27px #1c13424d;
}
#magic-home .ms-square-hero-book[hidden] { visibility: hidden; display: block !important; }
#magic-home .ms-square-hero-book picture,
#magic-home .ms-square-hero-book img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#magic-home .ms-square-hero-book::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #15102533, #21142c17 1.2%, #fff4dd22 2.5%, #1c122f2b 4.1%, #fff4dd12 5.1%, transparent 7%),
    linear-gradient(150deg, #fff6e21a, transparent 44%, #1b102417);
  box-shadow: inset 0 1px #fff3d633, inset 0 -1px #170b2888, inset -1px 0 #170b2850;
}
#magic-home .ms-square-hero-book:focus-visible,
#magic-home .ms-square-hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  html:has(.ms-square-hero-cta) { scroll-behavior: smooth; }
}
@media (min-width: 1001px) {
  #magic-home .ms-square-hero {
    --hero-cover-grid: clamp(280px, calc(100svh - 282px), 560px);
    width: min(calc(100% - 96px), calc(580px + var(--hero-cover-grid)));
    grid-template-columns: minmax(0, 1fr) var(--hero-cover-grid);
    gap: clamp(36px, 4vw, 60px);
    padding-block: clamp(24px, 4svh, 34px);
  }
  #magic-home .ms-square-hero-books { gap: 24px; }
  #magic-home #hero .ms-square-hero-copy h1 { font-size: clamp(40px, 4.25vw, 64px); }
  #magic-home #hero .ms-square-hero-copy p { font-size: clamp(16px, 1.5vw, 21px); margin-block: 18px 24px; }
  #magic-home .ms-square-hero-cta { min-height: 54px; font-size: 19px; gap: 22px; }
}
@media (min-width: 1001px) and (max-width: 1280px) {
  #magic-home .ms-square-hero { --hero-cover-grid: clamp(280px, calc(100svh - 328px), 560px); }
}
@media (min-width: 761px) and (max-width: 1000px) {
  #magic-home:has(.ms-square-hero-cta) .ms-header { height: auto; min-height: 0; }
  #magic-home:has(.ms-square-hero-cta) .ms-header > .ms-brand { top: 36px; }
  #magic-home:has(.ms-square-hero-cta) .ms-header > .ms-tools { min-height: 72px; }
}
@media (min-width: 761px) and (max-width: 1280px) {
  #magic-home:has(.ms-square-hero-cta) #stories { scroll-margin-top: 38px; }
}
@media (max-width: 760px) {
  #magic-home .ms-square-hero {
    width: min(460px, calc(100% - 36px));
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding-block: 29px 35px;
    text-align: center;
  }
  #magic-home #hero .ms-square-hero-copy h1 { font-size: clamp(36px, 10vw, 52px); }
  #magic-home #hero .ms-square-hero-copy p { max-width: 24em; margin-inline: auto; }
  #magic-home .ms-square-hero-books { gap: 14px; justify-self: center; }
  #magic-home .ms-square-hero-book { box-shadow: 0 5px 9px #1c134238, 0 11px 18px #1c134244; }
}
