/* Shared materials and type; existing controls, storage and routes are retained. */
@font-face{font-family:HatchlingUI;src:url('assets/polish-v15/nunito-variable.woff2') format('woff2');font-weight:200 1000;font-style:normal;font-display:swap}
:root{--h15-ink:#254d5b;--h15-muted:#4c706c;--h15-teal:#277d7a;--h15-paper:#fffdf5;--h15-line:#d7d7bd;--h15-gold:#cfb575}
body.hatchling-v2,body.account-login-page{font-family:HatchlingUI,system-ui,sans-serif;color:var(--h15-ink)}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #217d91;outline-offset:3px}
body.hatchling-v2 :is(#account,.family-dialog,#parent-gate,#parent-confirm,#hub-library,.book-library,#pexefy){font-family:HatchlingUI,system-ui,sans-serif}
body.hatchling-v2 :is(#account,.family-dialog,#parent-gate,#parent-confirm,#hub-library) :is(button,input,select,h1,h2,h3,summary){font-family:HatchlingUI,system-ui,sans-serif}
body.hatchling-v2 :is(#account,.family-dialog) :is(h2,h3){font-weight:800;letter-spacing:-.025em;line-height:1.25;text-shadow:none}
body.hatchling-v2 :is(#account,.family-dialog) h3{font-size:clamp(18px,2.4vw,23px)}
body.hatchling-v2 :is(#account,.family-dialog) p{line-height:1.55}
body.hatchling-v2 :is(#account,.family-dialog) button:not(.close):not(.family-close){font:750 14px/1.3 HatchlingUI,system-ui,sans-serif;border:1px solid #cdd9c8;border-radius:14px;min-height:46px;padding:11px 16px;background:#edf4e9;color:#315e58;text-shadow:none;box-shadow:0 2px 0 #d7e3d1}
body.hatchling-v2 :is(#account,.family-dialog) :is(button.primary,button[type=submit]){background:#277d7a;color:#fff;border-color:#27716e;box-shadow:0 3px 0 #1e625f}
body.hatchling-v2 :is(#account,.family-dialog) button:disabled{box-shadow:none;opacity:.55}
body.hatchling-v2 :is(#account,.family-dialog) .family-close,body.hatchling-v2 #account .close{background:#f3f8f4;color:#315f63;border:1px solid #c7d9cc;box-shadow:none;text-shadow:none;font-family:inherit}
body.hatchling-v2 .profile-choice strong,body.hatchling-v2 .avatar-name{font:800 16px/1.3 HatchlingUI,system-ui,sans-serif;background:#fffdf5;border:1px solid #dfd4ae;border-radius:12px;color:#315e58;box-shadow:0 3px 0 #e7e0ca}
body.hatchling-v2 .parent-note{color:#4c706c;line-height:1.55}
body.hatchling-v2 .family-complete{border:1px solid #c3d8c5;background:linear-gradient(145deg,#f0f8e9,#fffdf4);box-shadow:inset 0 1px #fff;padding:18px}
body.hatchling-v2 :is(#parent-gate,#parent-confirm){border:1px solid #d8c795;border-radius:24px;box-shadow:0 20px 70px #244c5b35;background:#fffdf5}
body.hatchling-v2 :is(#parent-gate,#parent-confirm) button{border-radius:14px;background:#277d7a;color:#fff;font:800 16px/1.3 HatchlingUI,system-ui,sans-serif;text-shadow:none}

/* The child's three activities receive the first screen, with a quieter brand header. */
.hatchling-v2 #collections{padding-top:12px}
.hatchling-v2 #collections::before{background:linear-gradient(180deg,#f1f9ff30,#fff8ebcc 65%,#fff8ebed)}
.hatchling-v2 #collections .collection-header{height:58px}
.hatchling-v2 #collections .collection-heading{padding-bottom:14px}
.hatchling-v2 #collections .hub-brand{width:260px;height:174px;margin:-8px auto -2px}
.hatchling-v2 #collections .collection-heading h1{font-size:clamp(26px,2.8vw,36px);margin:3px 0 5px;letter-spacing:-.04em}
.hatchling-v2 #collections .collection-heading p{font-family:HatchlingUI,system-ui,sans-serif;color:#365f68}
.hatchling-v2 #collections .collection-books{gap:22px}
.hatchling-v2 #collections .hub-card{border:1px solid #d7c99f;background:#fffdf5;box-shadow:0 6px 0 #d7d6bc70,0 13px 24px #264b5d18;border-radius:24px}
.hatchling-v2 #collections .hub-card-image{margin:8px 8px 0;border-radius:17px;border:1px solid #e7ddc4;background:#fff7e9!important}
.hatchling-v2 #collections .hub-card-copy{background:#fffdf5;min-height:110px;padding:17px 18px;border-top:0}
.hatchling-v2 #collections .hub-card strong{font-family:HatchlingUI,system-ui,sans-serif;font-weight:900;letter-spacing:-.025em;font-size:22px;padding-right:30px}
.hatchling-v2 #collections .hub-card small{font-size:14px;color:#506d67}
.hatchling-v2 #collections .hub-play{width:30px;height:30px;background:#eef6e7;border-color:#c6d5b5;color:#315e58;top:18px;right:14px}
.hatchling-v2 #collections>.profile-switch{border-color:#c8d6c1;background:#fffdf4f5;font-size:13px;margin-bottom:18px}
.hatchling-v2 .hub-footer{margin-top:24px}
.hatchling-v2 .hub-device-note{color:#42665f;font-size:13px}

/* The library is a book shelf: mat, spine and a single restrained gold edge. */
.book-library-header{background:linear-gradient(130deg,#f7faed,#fffdf4);border-bottom:1px solid #e5dfc8}
.book-library-header h2{font-family:HatchlingUI,system-ui,sans-serif;font-weight:900;letter-spacing:-.035em}
.book-search{padding-top:14px}
.book-tree{background:#edf4e8;border-color:#d3ddc8}
.book-tree :is(summary,button){min-height:44px}
.book-cover{border:1px solid #d6c89c;border-radius:18px;background:#fffdf6;box-shadow:0 4px 0 #d8dfc9,0 8px 16px #33594e0b;isolation:isolate}
.book-cover::before{content:'';position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(90deg,#d7c58f,#f7ebc6);border-right:1px solid #e5d9b4;z-index:1;pointer-events:none}
.book-cover-image{margin:9px 9px 12px 15px;border:1px solid #e8dfc7;border-radius:12px;background:#fffaf0}
.book-cover strong{padding-left:18px;font:850 17px/1.25 HatchlingUI,system-ui,sans-serif;letter-spacing:-.015em}
.book-cover small{padding-left:18px;color:#4e6b62}
.book-badge{border-color:#d2b069;background:#fff7dc;color:#795a24}
.book-cover[aria-current=page]{outline:2px solid #3a9382;outline-offset:1px}

/* Game controls share materials without changing board geometry. */
body.hatchling-v2 #pexefy :is(h1,h2,h3,button){font-family:HatchlingUI,system-ui,sans-serif}
body.hatchling-v2 #pexefy .pxf-header{background:#fffdf4;border-bottom-color:#ddd7bc}
body.hatchling-v2 #pexefy .pxf-art{border:1px solid #d6d4b9;border-radius:18px;background:#fffdf5;box-shadow:0 4px 0 #dfe3cd;overflow:hidden}
body.hatchling-v2 #pexefy .pxf-art img{border-radius:12px;border:1px solid #e4dcc5}
body.hatchling-v2 #pexefy .pxf-counts button{background:#fffdf5;box-shadow:0 3px 0 #dddcc4;border-color:#d4cda8;border-radius:16px}
body.hatchling-v2 #pexefy .pxf-counts [aria-pressed=true]{background:#e4f3df;border:2px solid #3a8d7b;box-shadow:0 3px 0 #b9d7b7;color:#285a55}
body.hatchling-v2 #pexefy .pxf-piece{border-radius:12px;background:#f3f8ed;border:1px solid #cfd9c4;box-shadow:0 2px 0 #d7ddc9}
body.hatchling-v2 #pexefy .pxf-piece[aria-pressed=true]{border:2px solid #267d84;box-shadow:0 0 0 2px #a7d7d0;background:#e7f7ec}
body.hatchling-v2 #pexefy .pxf-status{color:#4b6a62}

/* Parent sign-in/support pages use the same product type and calm paper surface. */
body.account-login-page{background:linear-gradient(#eaf6fa99,#fff7e9ed),url('assets/hatchling-v2/citadel-panorama-1600.webp') center/cover fixed;line-height:1.6}
.account-login-card{background:#fffdf5fa;border:1px solid #d5c494;border-radius:25px;padding:30px;box-shadow:0 18px 55px #254d5b22}
.account-login-card>img{display:block;margin:0 auto 22px;width:240px;height:auto!important}
.account-login-card :is(h1,h2,h3){font-family:HatchlingUI,system-ui,sans-serif;letter-spacing:-.025em;line-height:1.25;color:#254d5b}
.account-login-card h1{font-weight:900;font-size:clamp(26px,4vw,32px);margin-bottom:14px}
.account-login-card :is(h2,h3){font-weight:800;margin-top:25px}
.account-login-card button,.account-login-card .return-link{background:#277d7a;border-color:#26716d;border-radius:14px;font:800 16px/1.35 HatchlingUI,system-ui,sans-serif;box-shadow:0 3px 0 #1d625f;min-height:46px}
.account-login-card .secondary{background:#f3f7ec;color:#315f58;border-color:#cdd8c3;box-shadow:0 2px 0 #e0e6d2}
.account-login-card input{border:1px solid #bfcdbb;border-radius:12px;min-height:46px;background:#fff}
.account-login-card label{font-weight:700;font-size:14px}
.account-login-card a{color:#226f76;text-underline-offset:3px}
.account-login-card :is(#auth-status,.account-status):empty{display:none}
@media(max-width:650px){
 .hatchling-v2 #collections{padding:8px 14px 20px}
 .hatchling-v2 #collections .collection-header{height:48px}
 .hatchling-v2 #collections .collection-header>img{width:132px;height:42px}
 .hatchling-v2 #collections .hub-brand{width:178px;height:123px;margin:0 auto}
 .hatchling-v2 #collections .collection-heading{padding-bottom:10px}
 .hatchling-v2 #collections .collection-heading h1{font-size:26px;line-height:1.12;margin:1px 0 5px}
 .hatchling-v2 #collections .collection-heading p{font-size:13px}
 .hatchling-v2 #collections>.profile-switch{margin-bottom:12px;min-height:44px;padding-block:3px}
 .hatchling-v2 #collections .collection-books{gap:12px}
 .hatchling-v2 #collections .hub-card{min-height:104px;border-radius:20px}
 .hatchling-v2 #collections .hub-card-image{margin:6px;border-radius:14px;align-self:stretch;aspect-ratio:auto}
 .hatchling-v2 #collections .hub-card-copy{padding:13px 13px 13px 7px;min-height:104px;justify-content:center}
 .hatchling-v2 #collections .hub-card strong{font-size:18px;padding-right:20px;line-height:1.18}
 .hatchling-v2 #collections .hub-card small{font-size:12px;line-height:1.4}
 .hatchling-v2 #collections .hub-play{width:25px;height:25px;right:10px;top:auto;bottom:9px;font-size:9px}
 .hatchling-v2 .hub-footer{margin-top:19px;gap:12px}
 .book-library-header{padding:18px 18px 12px}
 .book-library-header h2{font-size:26px}
 .book-search{padding:12px 16px}
 .book-library-body{padding-inline:16px}
 .book-tree{padding:8px}
 .book-cover-image{height:156px}
 .book-cover strong{font-size:16px}
 .account-login-page{padding:14px}
 .account-login-card{padding:22px}
 body.hatchling-v2 :is(#account,.family-dialog) button:not(.close):not(.family-close){font-size:13px;padding:10px 13px}
}
@media(max-width:350px){
 .hatchling-v2 #collections .hub-brand{width:155px;height:101px}
 .hatchling-v2 #collections .collection-heading h1{font-size:24px}
 .hatchling-v2 #collections .hub-card strong{font-size:16px}
 .hatchling-v2 #collections .hub-card small{font-size:11px}
 .book-cover-image{height:134px}
 .book-library-header h2{font-size:23px}
 .account-login-card{padding:18px}
}
@media(max-height:540px) and (orientation:landscape){
 .hatchling-v2 #collections .hub-brand{width:150px;height:102px}
 .hatchling-v2 #collections .collection-heading p{display:none}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Final cascade: legacy shorthand declarations must not restore serif controls. */
body{font-family:HatchlingUI,system-ui,sans-serif}
body.hatchling-v2 #account.family-palace :is(strong,summary,label,h2,h3,p,button),body.hatchling-v2 #pexefy :is(h1,h2,h3,h4,summary){font-family:HatchlingUI,system-ui,sans-serif}
body.hatchling-v2 #account.family-palace{height:auto;min-height:0}
body.hatchling-v2 #account .parent-views{flex:0 1 auto}
@media(max-width:650px){.hatchling-v2 #collections .hub-card{grid-template-columns:115px minmax(0,1fr)}.hatchling-v2 #collections .hub-card-copy{min-height:100px}.hatchling-v2 #collections .hub-card-image{min-height:100px;height:100%;max-height:126px}}

/* Puzzle is also embedded in the studio, whose body has no hub class. */
body #pexefy.pxf,body #pexefy.pxf :is(h1,h2,h3,h4,button,strong,.pxf-progress,.pxf-paging){font-family:HatchlingUI,system-ui,sans-serif}
body.hatchling-v2 #account.family-palace .parent-tabs [aria-selected=true]{background:#277d7a;color:#fff;border-color:#216966;box-shadow:0 2px 0 #1e625f}
body.hatchling-v2 #account.family-palace :is(.danger,#delete-profile){background:#fff2e9;color:#963e2f;border-color:#ddbca9;box-shadow:0 2px 0 #efd8c9}

/* Local vector tools stay legible on systems without emoji fonts. */
#nh-paint [data-tool="brush"]>span:first-child{background-image:url("assets/polish-v15/tool-brush.svg")}
#nh-paint [data-tool="fill"]>span:first-child{background-image:url("assets/polish-v15/tool-fill.svg")}
#nh-paint [data-tool="eraser"]>span:first-child{background-image:url("assets/polish-v15/tool-eraser.svg")}
#nh-paint [data-tool="rainbow"]>span:first-child{background-image:url("assets/polish-v15/tool-rainbow.svg")}
#nh-paint [data-tool="stamp"]>span:first-child{background-image:url("assets/polish-v15/tool-stamp.svg")}
#nh-paint [data-tool="pan"]>span:first-child{background-image:url("assets/polish-v15/tool-pan.svg")}
#nh-paint [data-tool="roller"]>span:first-child{background-image:url("assets/polish-v15/tool-roller.svg")}
#nh-paint [data-tool="wallpaper"]>span:first-child{background-image:url("assets/polish-v15/tool-wallpaper.svg")}
#nh-paint .tool-rail [data-tool]>span:first-child,#nh-paint .extra-tools [data-tool]>span:first-child{display:block;width:29px;height:29px;flex:none;font-size:0;background-position:center;background-size:contain;background-repeat:no-repeat}
#nh-paint .child-material-icon{flex-shrink:0}
#nh-paint.laptop-paint .material-tabs button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;line-height:1.2}
#nh-paint.laptop-paint .child-material-label{line-height:1.2}
.account-login-card{display:block}.account-login-card>.language-setting{margin-top:20px}
.account-login-card>.language-setting{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;padding:12px 14px;margin:18px 0 0;background:#f1f6eb;border-color:#d1dbc5}
.account-login-card>.language-setting label{margin:0;align-self:center}
.account-login-card>.language-setting select{width:100%;min-height:44px;font:inherit;border:1px solid #c6d4c0;border-radius:10px;padding:6px;background:#fffdf5;color:#315f58}
.account-login-card>.language-setting small{grid-column:1/-1;font-size:11px}

#nh-paint:not(.child-paint) .material-tabs button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;line-height:1.2}
#nh-paint .material-tabs .child-material-label{line-height:1.2}
#nh-paint .medium-controls button{background:#eff5e9;color:#315f58;border-color:#c9d8bf;text-shadow:none}
#nh-paint .medium-controls button[aria-pressed=true]{background:#287b79;color:#fff;border-color:#246e6b}
#nh-paint .tool-rail [data-tool] svg{width:29px;height:29px}

#nh-paint :is([data-tool=roller],[data-tool=wallpaper])>svg{display:none}
#nh-paint :is([data-tool=roller],[data-tool=wallpaper])::before{content:'';display:block;width:29px;height:29px;flex:none;background:center/contain no-repeat}
#nh-paint [data-tool=roller]::before{background-image:url('assets/polish-v15/tool-roller.svg')}
#nh-paint [data-tool=wallpaper]::before{background-image:url('assets/polish-v15/tool-wallpaper.svg')}
#nh-paint .fit span{font-size:0;width:24px;height:24px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 12V4h8m8 0h8v8M4 20v8h8m8 0h8v-8' fill='none' stroke='%23365e64' stroke-width='3'/%3E%3C/svg%3E")}
@media(max-width:360px){html[lang=de] body.hatchling-v2 #account.family-palace .parent-tabs button{font-size:11.5px;padding-inline:3px;overflow-wrap:normal;hyphens:manual}}
