/* Generated by scripts/build-dark-theme.ts from the light stylesheets. Do not edit: change
   src/styles/dark-overrides.css or the generator. */
/* assets/app.css */
:root[data-theme=dark] .hero-playful{background:linear-gradient(150deg,#174355 0%,#1a133a 44%,#591841 100%)}
:root[data-theme=dark] .hero-playful:after{background:#191338}
:root[data-theme=dark] .welcome-pill{color:#c2e4ee;background:#181236;border:2px dashed #9bcfda}
:root[data-theme=dark] .hero-playful h1{color:#c9dae9}
:root[data-theme=dark] .hero-playful h1 em{color:#ca4c56}
:root[data-theme=dark] .rainbow-word{color:#c2eef1}
:root[data-theme=dark] .rainbow-word:after{background:#ffd166}
:root[data-theme=dark] .hero-playful .intro{color:#ced9de}
:root[data-theme=dark] .hero-playful .btn{background:#d94e50;box-shadow:0 5px 0 #b0373a;border:2px solid #d94e50}
:root[data-theme=dark] .hero-playful .btn:hover{background:#c43b42}
:root[data-theme=dark] .hero-playful .btn.secondary{background:#181236;color:#c7dbe9;border-color:#aacdd9;box-shadow:0 5px 0 #1a5263}
:root[data-theme=dark] .hero-frame{background:#181236;box-shadow:0 18px 0 #a7d9e95c,0 25px 60px #185c7920}
:root[data-theme=dark] .hero-playful .art-label{border:2px solid #9dd2dc;color:#cadee9;box-shadow:0 4px 0 #1a5762}
:root[data-theme=dark] .play-sticker{border:4px solid #332673;box-shadow:0 6px 15px #325e7b1a}
:root[data-theme=dark] .sticker-pencil{background:#ffe17e;color:#f0e2ca}
:root[data-theme=dark] .sticker-music{background:#671b4b;color:#dfccda}
:root[data-theme=dark] .hero-spark{color:#e9ae31}
:root[data-theme=dark] .spark-two{color:#82bec3}
:root[data-theme=dark] .adventure-links>a{border:2px solid #392b80;background:#181236;box-shadow:0 7px 0 #211849}
:root[data-theme=dark] .adventure-icon{background:#5c1843;color:#e5d0be}
:root[data-theme=dark] .adventure-links>a:nth-child(2) .adventure-icon{background:#171756;color:#6055a0}
:root[data-theme=dark] .adventure-links>a:nth-child(3) .adventure-icon{background:#195d3c;color:#c9e7de}
:root[data-theme=dark] .adventure-links small{color:#cbd2d5}
:root[data-theme=dark] .book-card .book-visual{background-image:radial-gradient(#1f755b55 1.4px,transparent 1.4px)}
:root[data-theme=dark] .book-visual img{box-shadow:6px 7px 0 #181236,9px 10px 0 #261c55,14px 15px 18px #24465520!important}
:root[data-theme=dark] .reader-status{background:#1f1745;color:#cfe0e4}
:root[data-theme=dark] .reader-stage{background:#251c53}
:root[data-theme=dark] .reader-stage canvas{background:#181236;box-shadow:0 4px 20px #173b4930}
:root[data-theme=dark] .reader-text{border:1px solid #278992}
@media(max-width:780px){:root[data-theme=dark] .adventure-links>a{box-shadow:0 4px 0 #211849}
}:root[data-theme=dark] body{background:var(--cream);color:var(--ink)}
:root[data-theme=dark] a{color:inherit}
:root[data-theme=dark] svg{fill:none;stroke:currentColor}
:root[data-theme=dark] ::selection{background:#f4c65e80}
:root[data-theme=dark] :focus-visible{outline:3px solid #985928}
:root[data-theme=dark] .skip{background:var(--green-bg);color:#fff}
:root[data-theme=dark] .eyebrow{color:var(--green)}
:root[data-theme=dark] .eyebrow:before{background:var(--green-bg)}
:root[data-theme=dark] .intro{color:var(--muted)}
:root[data-theme=dark] .muted{color:var(--muted)}
:root[data-theme=dark] .pill{background:var(--mint)}
:root[data-theme=dark] .pill.peach{background:var(--peach)}
:root[data-theme=dark] .pill.yellow{background:#601a46}
:root[data-theme=dark] .pill.lavender{background:var(--lavender)}
:root[data-theme=dark] .section.soft{background:#1c153e}
:root[data-theme=dark] .text-link{color:var(--green)}
:root[data-theme=dark] .btn{border:1.5px solid transparent;background:var(--green-bg);color:#fff}
:root[data-theme=dark] .btn:hover{background:var(--green-bg-hover)}
:root[data-theme=dark] .btn.secondary{background:transparent;color:var(--ink);border-color:#289863}
:root[data-theme=dark] .btn.secondary:hover{background:var(--mint)}
:root[data-theme=dark] .btn.light{background:#181236;color:var(--green)}
:root[data-theme=dark] .site-header{border-bottom:1px solid #382a7e;background:#191338f5}
:root[data-theme=dark] .nav a[aria-current=page]{color:var(--green);box-shadow:0 2px var(--green-bg)}
:root[data-theme=dark] .nav a:hover{color:var(--green)}
:root[data-theme=dark] .nav .nav-cta{background:var(--yellow);color:var(--ink);box-shadow:none}
:root[data-theme=dark] .menu-toggle{background:transparent;border:1px solid var(--line)}
:root[data-theme=dark] .hero h1 em{color:var(--green)}
:root[data-theme=dark] .hero-notes{color:var(--muted)}
:root[data-theme=dark] .hero-notes svg{color:var(--green)}
:root[data-theme=dark] .hero-art>img{border:7px solid #332673;box-shadow:0 20px 70px #3b62541b}
:root[data-theme=dark] .art-label{background:#181236;border:1px solid #392b80;box-shadow:var(--shadow)}
:root[data-theme=dark] .art-sticker{background:var(--yellow);border:5px solid var(--cream)}
:root[data-theme=dark] .ribbon{border-block:1px solid var(--line)}
:root[data-theme=dark] .ribbon .wrap{color:var(--muted)}
:root[data-theme=dark] .ribbon svg{color:var(--green)}
:root[data-theme=dark] .feature{border-top:1px solid var(--line)}
:root[data-theme=dark] .feature-icon{background:var(--mint)}
:root[data-theme=dark] .feature:nth-child(2) .feature-icon{background:var(--peach)}
:root[data-theme=dark] .feature:nth-child(3) .feature-icon{background:var(--lavender)}
:root[data-theme=dark] .feature p{color:var(--muted)}
:root[data-theme=dark] .illustration-panel{background:#5c1843}
:root[data-theme=dark] .value-list svg{color:var(--green)}
:root[data-theme=dark] .book-card{border:1px solid var(--line);background:#181236;box-shadow:var(--shadow)}
:root[data-theme=dark] .book-card .book-visual{background:#1c153f}
:root[data-theme=dark] .book-card:nth-child(2n) .book-visual{background:#571740}
:root[data-theme=dark] .book-card:nth-child(3n) .book-visual{background:#1c153f}
:root[data-theme=dark] .book-visual img{box-shadow:9px 10px 0 #233d4511,0 10px 25px #233d4512}
:root[data-theme=dark] .book-card p{color:var(--muted)}
:root[data-theme=dark] .book-meta{color:var(--muted)}
:root[data-theme=dark] .song-card{border:1px solid var(--line);background:#181236}
:root[data-theme=dark] .song-art{background:#1c1540}
:root[data-theme=dark] .song-body p{color:var(--muted)}
:root[data-theme=dark] .song-body details{border-top:1px solid var(--line)}
:root[data-theme=dark] .lyrics{background:var(--cream)}
:root[data-theme=dark] .song-label{background:#181236}
:root[data-theme=dark] .step-number{color:var(--green)}
:root[data-theme=dark] .step p{color:var(--muted)}
:root[data-theme=dark] .cta-band{background:var(--green-bg);color:#ffffff}
:root[data-theme=dark] .cta-band p{color:#e2f0e7}
:root[data-theme=dark] .faq-list{border-top:1px solid var(--line)}
:root[data-theme=dark] .faq-list details{border-bottom:1px solid var(--line)}
:root[data-theme=dark] .faq-list summary:after{color:var(--green)}
:root[data-theme=dark] .faq-list details p{color:var(--muted)}
:root[data-theme=dark] .footer{background:#1d1641}
:root[data-theme=dark] .footer p{color:var(--muted)}
:root[data-theme=dark] .footer ul a,:root[data-theme=dark] .footer button{color:var(--muted)}
:root[data-theme=dark] .link-button{background:transparent;color:var(--green)}
:root[data-theme=dark] .footer-bottom{border-top:1px solid #3c2d86;color:var(--muted)}
:root[data-theme=dark] .breadcrumbs{color:var(--muted)}
:root[data-theme=dark] .breadcrumbs a{color:var(--green)}
:root[data-theme=dark] .page-top.tinted{background:var(--mint)}
:root[data-theme=dark] .collection-card{background:#1e1744}
:root[data-theme=dark] .collection-card:nth-child(2){background:#5a1842}
:root[data-theme=dark] .collection-card p{color:var(--muted)}
:root[data-theme=dark] .collection-card img{box-shadow:6px 7px #233d4512}
:root[data-theme=dark] .search input{border:1px solid #40308f;background:#181236;color:var(--ink)}
:root[data-theme=dark] .filter{background:#181236;color:var(--ink);border:1px solid #40308f}
:root[data-theme=dark] .filter[aria-pressed=true]{background:var(--green-bg);color:#ffffff;border-color:var(--green-bg)}
:root[data-theme=dark] .filter-result{color:var(--muted)}
:root[data-theme=dark] .empty{border:1px dashed #9cb4a5}
:root[data-theme=dark] .book-detail-visual{background:var(--mint)}
:root[data-theme=dark] .book-detail-visual img{box-shadow:12px 12px 0 #233d4514,0 12px 40px #233d4516}
:root[data-theme=dark] .book-detail ul{color:var(--muted)}
:root[data-theme=dark] .book-facts{border-block:1px solid var(--line)}
:root[data-theme=dark] .book-facts span{color:var(--muted)}
:root[data-theme=dark] .download-note{color:var(--muted)}
:root[data-theme=dark] .contact-box{border:1px solid var(--line);background:#181236}
:root[data-theme=dark] .contact-box p{color:var(--muted)}
:root[data-theme=dark] .legal-nav{border:1px solid var(--line);background:#181236}
:root[data-theme=dark] .legal-nav a{color:var(--muted)}
:root[data-theme=dark] .legal-nav a[aria-current=page]{color:var(--green)}
:root[data-theme=dark] .legal-content p,:root[data-theme=dark] .legal-content li{color:var(--muted)}
:root[data-theme=dark] .legal-content a{color:var(--green)}
:root[data-theme=dark] .notice{border:1px solid #e8c68b;background:#56173f;color:#e8dcce}
:root[data-theme=dark] .info{border:1px solid #279460;background:#1b143d}
:root[data-theme=dark] th,:root[data-theme=dark] td{border-bottom:1px solid var(--line)}
:root[data-theme=dark] th{background:var(--mint)}
:root[data-theme=dark] td{color:var(--muted)}
:root[data-theme=dark] .request-template{border:1px solid #403090;background:#181236;color:var(--ink)}
:root[data-theme=dark] .cookie-banner{background:#181236;border:1px solid #40308f;box-shadow:0 8px 60px #122b332b}
:root[data-theme=dark] .cookie-banner p{color:var(--muted)}
:root[data-theme=dark] .cookie-banner a{color:var(--green)}
:root[data-theme=dark] .cookie-actions .btn{background:#1c153e;border:1px solid #9db2a5;color:var(--ink)}
:root[data-theme=dark] .cookie-actions .btn:hover{background:#201848}
:root[data-theme=dark] .consent-dialog{border:1px solid #299a55;color:var(--ink);background:var(--cream);box-shadow:0 25px 90px #102f3150}
:root[data-theme=dark] .consent-dialog::backdrop{background:#18333b65}
:root[data-theme=dark] .icon-button{border:1px solid var(--line);background:transparent}
:root[data-theme=dark] .consent-option{border-block:1px solid var(--line)}
:root[data-theme=dark] .consent-option p{color:var(--muted)}
:root[data-theme=dark] .dialog-body>.small{color:var(--muted)}
:root[data-theme=dark] .dialog-actions .btn{background:#1c153f;border:1px solid #9cb5a5;color:var(--ink)}
:root[data-theme=dark] .toast{background:var(--green-bg);color:#ffffff;box-shadow:var(--shadow)}
:root[data-theme=dark] .social-links a{border:1px solid var(--line)}
:root[data-theme=dark] .social-links a:hover{background:var(--mint)}
@media(max-width:780px){:root[data-theme=dark] .nav{background:var(--cream);box-shadow:0 14px 20px #142c3310;border-bottom:1px solid var(--line)}
:root[data-theme=dark] .nav a[aria-current=page]{box-shadow:none}
}@media print{:root[data-theme=dark] body{background:#181236;color:#f0f0f0}
:root[data-theme=dark] .notice{border-color:#777}
}:root[data-theme=dark] .song-art-animated{background:#174a58}
:root[data-theme=dark] .song-motion-controls p{color:var(--muted)}
:root[data-theme=dark] .song-motion-controls button{background:#181236}
:root[data-theme=dark] .hero-cloud{background:linear-gradient(#181236 35%,#19445f)}
:root[data-theme=dark] .hero-cloud:before,:root[data-theme=dark] .hero-cloud:after{background:linear-gradient(#181236 55%,#173f57)}
:root[data-theme=dark] .flip-page{background:#181236}
:root[data-theme=dark] .flip-page[data-density="hard"]{background:#1d1641}
:root[data-theme=dark] .reader-stage .flip-page canvas{box-shadow:none;background:transparent}
:root[data-theme=dark] .flip-wait{color:#6b8a90}
:root[data-theme=dark] .nav-backdrop{background:#16323b59}
@media(max-width:1100px){html[data-theme=dark].menu-open .site-header{background:var(--cream)}
:root[data-theme=dark] .menu-toggle{background:#181236;color:var(--ink)}
:root[data-theme=dark] .menu-toggle[aria-expanded=true]{background:var(--mint);border-color:#279253}
:root[data-theme=dark] .nav{border:1px solid var(--line);background:var(--cream);box-shadow:0 22px 40px #16323b2e}
:root[data-theme=dark] .nav a{background:#181236;border:1px solid #37297b;color:var(--ink)}
:root[data-theme=dark] .nav a:hover,:root[data-theme=dark] .nav a:focus-visible{background:var(--mint);color:var(--ink)}
:root[data-theme=dark] .nav a[aria-current=page]{background:var(--mint);border-color:#279253;box-shadow:inset 4px 0 0 var(--green-bg)}
:root[data-theme=dark] .nav-icon{background:var(--lavender);color:#c6c2da}
:root[data-theme=dark] .nav a:nth-child(2) .nav-icon{background:#5d1944;color:#e5d0be}
:root[data-theme=dark] .nav a:nth-child(3) .nav-icon{background:#195d3c;color:#c9e7de}
:root[data-theme=dark] .nav a:nth-child(5) .nav-icon{background:#56173f;color:#a2465f}
:root[data-theme=dark] .nav-chevron{color:#8aa1a6}
:root[data-theme=dark] .nav .nav-cta{background:var(--yellow);border-color:#e9b74a}
:root[data-theme=dark] .nav .nav-cta .nav-icon{background:#591841;color:#efe0c1}
:root[data-theme=dark] .nav .nav-cta .nav-chevron{color:#efe0c1}
}:root[data-theme=dark] .reader-about{color:#cfe0e4}
:root[data-theme=dark] .reader-viewer[data-fullscreen=true]{background:#191338}
:root[data-theme=dark] .reader-button{background:#181236;border:1px solid #a4c6c9;color:#d3e2e8}
:root[data-theme=dark] .reader-button:hover{background:#1f1745}
:root[data-theme=dark] .story-home{background:linear-gradient(135deg,#1a143b 0%,#271755 100%)}
:root[data-theme=dark] .story-home .book-card{border-color:#482589}
:root[data-theme=dark] .library-story-callout{border:1px solid #49258a;background:linear-gradient(110deg,#1a133a,#55173e)}
:root[data-theme=dark] .library-story-callout p{color:var(--muted)}
:root[data-theme=dark] .story-song-link{color:var(--muted)}
:root[data-theme=dark] .story-song-link a{color:var(--green)}
/* assets/kid-hero.css */
:root[data-theme=dark] .kid-hero{background:linear-gradient(170deg,#18425a 0%,#1a143b 45%,#591841 100%)}
:root[data-theme=dark] .kh-theme-sun{background:linear-gradient(170deg,#601946 0%,#55173e 50%,#164154 100%)}
:root[data-theme=dark] .kh-theme-mint{background:linear-gradient(170deg,#195e3a 0%,#1b143d 50%,#581740 100%)}
:root[data-theme=dark] .kh-theme-pink{background:linear-gradient(170deg,#571740 0%,#1a133a 50%,#163a54 100%)}
:root[data-theme=dark] .kh-theme-lilac{background:linear-gradient(170deg,#2d185a 0%,#1a143b 50%,#174155 100%)}
:root[data-theme=dark] .kh-label{background:#181236d9;box-shadow:0 2px 0 #0000000a}
:root[data-theme=dark] .kid-hero h1{color:#c9dae9}
:root[data-theme=dark] .kid-hero h1 em{color:#d94e50}
:root[data-theme=dark] .kh-lead{color:#cfdadf}
:root[data-theme=dark] .kh-actions .btn{box-shadow:0 5px 0 #1a534740}
:root[data-theme=dark] .kh-sun{background:radial-gradient(circle at 40% 38%,#ffe58a,#ffc93d 70%);box-shadow:0 0 0 14px #ffd75a33,0 0 0 30px #ffd75a1a}
:root[data-theme=dark] .kh-rainbow{border:18px solid #91266a;box-shadow:inset 0 0 0 16px #ffd36e,inset 0 0 0 32px #b5e3a7,inset 0 0 0 48px #9fd3f2}
:root[data-theme=dark] .kh-cloud{background:#181236;box-shadow:0 6px 0 #194a5e}
:root[data-theme=dark] .kh-cloud:before,:root[data-theme=dark] .kh-cloud:after{background:#181236}
:root[data-theme=dark] .kh-star{color:#ffc93d}
:root[data-theme=dark] .kh-star-3{color:#ff9aa2}
:root[data-theme=dark] .kh-star-4{color:#8fd3e8}
:root[data-theme=dark] .kh-star-6{color:#c7a4f2}
:root[data-theme=dark] .kh-note{color:#6c9fd8}
:root[data-theme=dark] .kh-note-2{color:#e57990}
:root[data-theme=dark] .kh-note-3{color:#4fae91}
:root[data-theme=dark] .kh-note-4{color:#f0a93c}
:root[data-theme=dark] .kh-bubble{background:radial-gradient(circle at 32% 30%,#181236 0 18%,#18123655 30%,#1a476344 70%);border:2px solid #332673b0}
:root[data-theme=dark] .kh-hill-back{fill:#1d6c2d}
:root[data-theme=dark] .kh-hill-front{fill:#191338}
:root[data-theme=dark] .kh-theme-sun .kh-hill-back{fill:#6d1d50}
:root[data-theme=dark] .kh-theme-pink .kh-hill-back{fill:#5d1944}
:root[data-theme=dark] .kh-theme-lilac .kh-hill-back{fill:#301a62}
:root[data-theme=dark] .kh-theme-mint .kh-hill-back{fill:#1d6c2d}
:root[data-theme=dark] .kh-woods{stroke:none;--kh-tree-deep:#41946d;--kh-tree-mid:#6fbd82;--kh-tree-light:#a5d78f;--kh-tree-trunk:#ac7856;--kh-tree-fruit:#f7c778;--kh-tree-shadow:#4f866230}
:root[data-theme=dark] .kh-tree-deep{fill:var(--kh-tree-deep)}
:root[data-theme=dark] .kh-tree-mid{fill:var(--kh-tree-mid)}
:root[data-theme=dark] .kh-tree-light{fill:var(--kh-tree-light)}
:root[data-theme=dark] .kh-tree-trunk{fill:var(--kh-tree-trunk)}
:root[data-theme=dark] .kh-tree-branch{fill:none;stroke:var(--kh-tree-trunk)}
:root[data-theme=dark] .kh-tree-fruit{fill:var(--kh-tree-fruit)}
:root[data-theme=dark] .kh-tree-shadow{fill:var(--kh-tree-shadow)}
:root[data-theme=dark] .kh-bench{stroke:none;--kh-bench-back:#d99a60;--kh-bench-seat:#b87849;--kh-bench-frame:#365d59;--kh-bench-shadow:#253a4038}
:root[data-theme=dark] .kh-bench-shadow{fill:var(--kh-bench-shadow)}
:root[data-theme=dark] .kh-bench-frame,:root[data-theme=dark] .kh-bench-bolt{fill:var(--kh-bench-frame)}
:root[data-theme=dark] .kh-bench-back{fill:var(--kh-bench-back)}
:root[data-theme=dark] .kh-bench-seat{fill:var(--kh-bench-seat)}
:root[data-theme=dark] .kh-bench-arm{fill:none;stroke:var(--kh-bench-frame)}
:root[data-theme=dark] .kh-frame{background:#181236;box-shadow:0 16px 0 #a7d9e95c,0 26px 60px #185c7924}
:root[data-theme=dark] .kh-sticker{background:#181236;color:#c9dae9;box-shadow:0 5px 0 #1a4d61}
:root[data-theme=dark] .kh-book{background:#181236;box-shadow:0 14px 0 #0f3b4a14,0 22px 46px #12455a33}
:root[data-theme=dark] .kh-art-coloring .kh-book{border:8px solid #332673}
:root[data-theme=dark] .kh-crayon{background:linear-gradient(90deg,#f05b5b 0 82%,#f7c59f 82% 92%,#3a2a2a 92%);box-shadow:0 4px 0 #0000001a}
:root[data-theme=dark] .kh-crayon-2{background:linear-gradient(90deg,#4f9fe8 0 82%,#f7c59f 82% 92%,#3a2a2a 92%)}
:root[data-theme=dark] .kh-song{background:#181236;box-shadow:0 12px 0 #0f3b4a12,0 22px 46px #12455a2e}
:root[data-theme=dark] .kh-pal{background:#173857;border:7px solid #332673;box-shadow:0 10px 0 #0f3b4a12,0 18px 40px #12455a2e}
:root[data-theme=dark] .kh-sparkle{color:#ffc93d}
:root[data-theme=dark] .kh-sparkle-2{color:#ff9aa2}
:root[data-theme=dark] .kh-scroll{background:#181236;box-shadow:0 5px 0 #1a4d61}
:root[data-theme=dark] .kh-scroll span{border-right:3px solid #236c5d;border-bottom:3px solid #236c5d}
:root[data-theme=dark] .kid-hero .ar-pilot{background:#181236cc}
:root[data-theme=dark] .kid-fact{background:var(--mint);box-shadow:var(--shadow)}
:root[data-theme=dark] .kid-fact svg{background:#181236;color:var(--green);fill:none;stroke:currentColor}
:root[data-theme=dark] .kid-fact strong{color:var(--ink)}
:root[data-theme=dark] .kid-fact span{color:var(--muted)}
:root[data-theme=dark] .kid-fact.kf-2{background:var(--peach)}
:root[data-theme=dark] .kid-fact.kf-2 svg{color:#b5573b}
:root[data-theme=dark] .kid-fact.kf-3{background:var(--lavender)}
:root[data-theme=dark] .kid-fact.kf-3 svg{color:#6b55a3}
:root[data-theme=dark] .bd-card{background:#181236;border:1px solid var(--line);box-shadow:var(--shadow)}
:root[data-theme=dark] .bd-card.bd-ar{background:linear-gradient(120deg,#1c153e,#1b143d)}
:root[data-theme=dark] .bd-card.bd-ar p{color:var(--muted)}
:root[data-theme=dark] .skill-chips li{background:var(--mint);color:var(--ink)}
:root[data-theme=dark] .skill-chips svg{background:#181236;color:var(--green);fill:none;stroke:currentColor}
:root[data-theme=dark] .skill-chips .chip-2{background:var(--peach)}
:root[data-theme=dark] .skill-chips .chip-3{background:#5f1946}
:root[data-theme=dark] .skill-chips .chip-4{background:var(--lavender)}
:root[data-theme=dark] .how-steps li{color:var(--ink)}
:root[data-theme=dark] .how-steps li span{background:var(--yellow);color:#ebdcd0}
:root[data-theme=dark] .how-steps li:nth-child(2) span{background:#691c4d}
:root[data-theme=dark] .how-steps li:nth-child(3) span{background:#1c4c6a}
:root[data-theme=dark] .bd-how .download-note{color:var(--muted)}
:root[data-theme=dark] .kid-trio-item{background:var(--mint)}
:root[data-theme=dark] .kid-trio-item svg{background:#181236;color:var(--green);fill:none;stroke:currentColor;box-shadow:var(--shadow)}
:root[data-theme=dark] .kid-trio-item strong{color:var(--ink)}
:root[data-theme=dark] .kid-trio-item.kt-2{background:#5f1946}
:root[data-theme=dark] .kid-trio-item.kt-2 svg{color:#f0dcb6}
:root[data-theme=dark] .kid-trio-item.kt-3{background:var(--lavender)}
:root[data-theme=dark] .kid-trio-item.kt-3 svg{color:#6b55a3}
:root[data-theme=dark] .kh-flowers{stroke:none;--kh-flower-green:#43845c;--kh-flower-pink:#ed80a0;--kh-flower-violet:#a58bdd;--kh-flower-cream:#5e1945;--kh-flower-center:#efbb46}
:root[data-theme=dark] .kh-flower-stem{fill:none;stroke:var(--kh-flower-green)}
:root[data-theme=dark] .kh-flower-leaf{fill:var(--kh-flower-green)}
:root[data-theme=dark] .kh-flower-pink{fill:var(--kh-flower-pink)}
:root[data-theme=dark] .kh-flower-violet{fill:var(--kh-flower-violet)}
:root[data-theme=dark] .kh-flower-cream{fill:var(--kh-flower-cream)}
:root[data-theme=dark] .kh-flower-center{fill:var(--kh-flower-center)}
/* assets/ui.css */
:root[data-theme=dark] .wordmark{color:var(--ink)}
:root[data-theme=dark] .wordmark-rainbow{--wl-ink:#2b1d4e}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(1){color:#ff5b61}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(2){color:#ffa133}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(3){color:#ffe14d}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(4){color:#4fe08c}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(5){color:#4fb6ff}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(6){color:#8f8cff}
:root[data-theme=dark] .wordmark-rainbow .wl:nth-child(7){color:#d684ff}
:root[data-theme=dark] [data-tone=sky]{--tone-bg:#18425a;--tone:#1e7fe0}
:root[data-theme=dark] [data-tone=mint]{--tone-bg:#195e3a;--tone:#1f9a62}
:root[data-theme=dark] [data-tone=sun]{--tone-bg:#601946;--tone:#c98a00}
:root[data-theme=dark] [data-tone=peach]{--tone-bg:#5d1944;--tone:#e0661a}
:root[data-theme=dark] [data-tone=pink]{--tone-bg:#571740;--tone:#d23a6a}
:root[data-theme=dark] [data-tone=lilac]{--tone-bg:#2d185a;--tone:#7a4fd6}
:root[data-theme=dark] [data-tone=aqua]{--tone-bg:#196059;--tone:#0f9488}
:root[data-theme=dark] [data-tone=login]{--tone-bg:#591841;--tone:#8a6414}
:root[data-theme=dark] .nav a[data-tone] .nav-icon{background:var(--tone-bg);color:var(--tone)}
:root[data-theme=dark] .nav a[data-tone][aria-current=page]{color:var(--tone);box-shadow:0 2px var(--tone)}
@media(max-width:1100px){:root[data-theme=dark] .nav a[data-tone]:not(.nav-login):hover,:root[data-theme=dark] .nav a[data-tone]:not(.nav-login):focus-visible{background:var(--tone-bg)}
:root[data-theme=dark] .nav a[data-tone][aria-current=page]{color:var(--ink);background:var(--tone-bg);border-color:var(--tone);box-shadow:inset 5px 0 0 var(--tone)}
:root[data-theme=dark] .nav a[data-tone][aria-current=page] .nav-icon{background:var(--tone);color:#fff}
}:root[data-theme=dark] .kh-theme-peach{background:linear-gradient(170deg,#5d1944 0%,#55173e 50%,#581740 100%)}
:root[data-theme=dark] .kh-theme-aqua{background:linear-gradient(170deg,#196059 0%,#1b143d 50%,#581740 100%)}
:root[data-theme=dark] .kh-theme-peach .kh-hill-back{fill:#6d1d50}
:root[data-theme=dark] .kh-theme-aqua .kh-hill-back{fill:#a8e6df}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-sky) .site-header{background:#18425af2;border-bottom-color:#25678a}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-sun) .site-header{background:#601946f2;border-bottom-color:#f3dc9c}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-mint) .site-header{background:#195e3af2;border-bottom-color:#b6e2c9}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-pink) .site-header{background:#571740f2;border-bottom-color:#892564}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-lilac) .site-header{background:#2d185af2;border-bottom-color:#43258a}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-peach) .site-header{background:#5d1944f2;border-bottom-color:#902669}
:root[data-theme=dark]:not([data-theme=dark]):has(.kh-theme-aqua) .site-header{background:#196059f2;border-bottom-color:#a9e3dc}
:root[data-theme=dark]:not([data-theme=dark]):has(.kid-hero) .icon-btn,:root[data-theme=dark]:not([data-theme=dark]):has(.kid-hero) .menu-toggle{background:#181236cc;border-color:#332673}
:root[data-theme=dark] .icon-btn{border:1px solid var(--line);background:var(--card);color:var(--ink)}
:root[data-theme=dark] .icon-btn:hover{background:var(--mint)}
:root[data-theme=dark] .cart-count{background:#d94e50;color:#fff}
:root[data-theme=dark] .btn-login{background:var(--yellow);border:1px solid #e9b74a;color:#f5ecd6}
:root[data-theme=dark] .btn-login:hover{background:#f7d27a}
@media(max-width:1100px){:root[data-theme=dark] .nav .nav-login{background:var(--yellow);border-color:#e9b74a;color:#f5ecd6}
:root[data-theme=dark] .nav .nav-login .nav-icon{background:#591841;color:#efe0c1}
:root[data-theme=dark] .nav .nav-login .nav-chevron{color:#efe0c1}
:root[data-theme=dark] .nav .nav-login:hover,:root[data-theme=dark] .nav .nav-login:focus-visible{background:#f7d27a;color:#f5ecd6}
}:root[data-theme=dark] .kid-hero .kh-sun{background:radial-gradient(circle,#5e1944 0%,#ffe48a66 26%,#ffd76a26 48%,transparent 70%);box-shadow:none}
:root[data-theme=dark] .kh-sun-rays{background:repeating-conic-gradient(from 0deg,#ffd96a5c 0deg 2.5deg,transparent 2.5deg 11deg)}
:root[data-theme=dark] .kh-sun-core{background:radial-gradient(circle at 50% 50%,#191339 0%,#611a47 34%,#ffe36e 62%,#ffc93f 82%,#ffb126 100%);box-shadow:0 0 14px 4px #691c4d,0 0 42px 14px #ffda6c99,0 0 96px 38px #6e1d5166}
:root[data-theme=dark] .book-card h3 a,:root[data-theme=dark] .ar-song-card h2 a{color:inherit}
:root[data-theme=dark] .book-card h3 a:hover,:root[data-theme=dark] .ar-song-card h2 a:hover{color:var(--green)}
:root[data-theme=dark] .book-meta .price{color:var(--ink)}
:root[data-theme=dark] .pill.paid{background:#671b4b;color:#f5e1c4}
@media(max-width:560px){:root[data-theme=dark] .book-card .book-visual img{box-shadow:3px 4px 0 #181236,5px 6px 0 #261c55,7px 8px 12px #24465520!important}
}:root[data-theme=dark] .form-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow)}
:root[data-theme=dark] .form-card .form-lead{color:var(--muted)}
:root[data-theme=dark] .field>span{color:var(--ink)}
:root[data-theme=dark] .field input,:root[data-theme=dark] .field textarea{color:var(--ink);background:var(--field);border:1.5px solid #28956f;outline:none}
:root[data-theme=dark] .field input:focus-visible,:root[data-theme=dark] .field textarea:focus-visible{border-color:var(--green-bg);box-shadow:0 0 0 4px #236c5d22}
:root[data-theme=dark] .check{color:var(--muted)}
:root[data-theme=dark] .check a{color:var(--green)}
:root[data-theme=dark] .form-error{background:#55173e;color:#e9c1c1}
:root[data-theme=dark] .form-ok{background:var(--mint);color:var(--ink)}
:root[data-theme=dark] .form-note{color:var(--muted)}
:root[data-theme=dark] .backend-off{background:#5b1843;border:1px solid #f1d58c}
:root[data-theme=dark] .auth-tabs{background:var(--mint)}
:root[data-theme=dark] .auth-tabs button{background:transparent;color:var(--muted)}
:root[data-theme=dark] .auth-tabs button[aria-selected=true]{background:var(--card);color:var(--ink);box-shadow:0 2px 8px #233d4514}
:root[data-theme=dark] .account-hello svg{background:var(--yellow);color:#f5ecd6}
:root[data-theme=dark] .cart-item{border:1px solid var(--line);background:var(--card)}
:root[data-theme=dark] .cart-item small{color:var(--muted)}
:root[data-theme=dark] .cart-item .remove{background:transparent;color:var(--danger)}
:root[data-theme=dark] .cart-total{border-top:1px solid var(--line)}
:root[data-theme=dark] .empty-state>svg{background:var(--mint);color:var(--green)}
:root[data-theme=dark] .price-tag{background:#671b4b;color:#f5e1c4}
:root[data-theme=dark] .song-frame{background:var(--mint)}
:root[data-theme=dark] .song-new{background:#ff4f8b;color:#fff;box-shadow:0 3px 0 #c22d66}
:root[data-theme=dark] .ar-char-card .ar-char-song{color:var(--muted)}
/* assets/reader-ui.css */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root[data-theme=dark] *,:root[data-theme=dark] :before,:root[data-theme=dark] :after,:root[data-theme=dark] ::backdrop{--tw-shadow:0 0 #0000;--tw-inset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-color:#181236;--tw-ring-offset-shadow:0 0 #0000}
}}@layer utilities{:root[data-theme=dark] .border-input{border-color:#a4c6c9}
:root[data-theme=dark] .border-primary{border-color:#287c72}
:root[data-theme=dark] .bg-\[\#9a4a5d\]{background-color:#9a4a5d}
:root[data-theme=dark] .bg-background{background-color:#191338}
:root[data-theme=dark] .bg-border{background-color:#a4c6c9}
:root[data-theme=dark] .bg-destructive{background-color:#b83a3a}
:root[data-theme=dark] .bg-muted{background-color:#201848}
:root[data-theme=dark] .bg-popover{background-color:#181236}
:root[data-theme=dark] .bg-primary{background-color:#287c72}
:root[data-theme=dark] .bg-secondary{background-color:#1c153e}
:root[data-theme=dark] .bg-transparent{background-color:#0000}
:root[data-theme=dark] .bg-white{background-color:var(--color-#181236)}
:root[data-theme=dark] .bg-white\/90{background-color:#181236e6}
@supports (color:color-mix(in lab, red, red)){:root[data-theme=dark] .bg-white\/90{background-color:color-mix(in oklab, var(--color-#181236) 90%, transparent)}
}:root[data-theme=dark] .text-foreground{color:#d3e2e8}
:root[data-theme=dark] .text-muted-foreground{color:#ced9db}
:root[data-theme=dark] .text-popover-foreground{color:#d3e2e8}
:root[data-theme=dark] .text-primary{color:#c7e7e4}
:root[data-theme=dark] .text-primary-foreground{color:#fff}
:root[data-theme=dark] .text-secondary-foreground{color:#d3e2e8}
:root[data-theme=dark] .text-white{color:var(--color-#ffffff)}
:root[data-theme=dark] .shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
:root[data-theme=dark] .shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
:root[data-theme=dark] .shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
:root[data-theme=dark] .shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
:root[data-theme=dark] .ring{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
:root[data-theme=dark] .inset-ring{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
@media (forced-colors:active){:root[data-theme=dark] .outline-hidden{outline:2px solid #0000}
}:root[data-theme=dark] .drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f)}
:root[data-theme=dark] .selection\:bg-primary ::selection{background-color:#287c72}
:root[data-theme=dark] .selection\:bg-primary::selection{background-color:#287c72}
:root[data-theme=dark] .selection\:text-primary-foreground ::selection{color:#fff}
:root[data-theme=dark] .selection\:text-primary-foreground::selection{color:#fff}
:root[data-theme=dark] .file\:bg-transparent::file-selector-button{background-color:#0000}
:root[data-theme=dark] .file\:text-foreground::file-selector-button{color:#d3e2e8}
:root[data-theme=dark] .placeholder\:text-muted-foreground::placeholder{color:#ced9db}
@media (hover:hover){:root[data-theme=dark] .hover\:bg-accent:hover{background-color:#1f1745}
:root[data-theme=dark] .hover\:bg-white:hover{background-color:var(--color-#181236)}
:root[data-theme=dark] .hover\:text-accent-foreground:hover{color:#d3e2e8}
:root[data-theme=dark] .hover\:ring-4:hover{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
}:root[data-theme=dark] .focus\:bg-accent:focus{background-color:#1f1745}
:root[data-theme=dark] .focus\:text-accent-foreground:focus{color:#d3e2e8}
:root[data-theme=dark] .focus-visible\:border-ring:focus-visible{border-color:#287c72}
:root[data-theme=dark] .focus-visible\:ring-4:focus-visible{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
:root[data-theme=dark] .focus-visible\:ring-\[3px\]:focus-visible{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}
@media (forced-colors:active){:root[data-theme=dark] .focus-visible\:outline-hidden:focus-visible{outline:2px solid #0000}
}:root[data-theme=dark] .aria-invalid\:border-destructive[aria-invalid=true]{border-color:#b83a3a}
:root[data-theme=dark] .data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:#ced9db}
@media (prefers-color-scheme:dark){:root[data-theme=dark] .dark\:border-input{border-color:#a4c6c9}
}:root[data-theme=dark] .\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:#ced9db}
}/* assets/ar/ar.css */
:root[data-theme=dark] .ar-pilot{background:#5f1946;border:1px solid #ead297;color:#ece0c9}
:root[data-theme=dark] .ar-stage{border:3px solid #25838d;background:radial-gradient(ellipse at 50% 70%,#191338,#184e5a)}
:root[data-theme=dark] .ar-overlay{background:#17465638;color:#cddfea}
:root[data-theme=dark] .ar-cloud{color:#ffffff}
:root[data-theme=dark] .ar-mode-label{background:#191338e8;color:#ccdfe9}
:root[data-theme=dark] .ar-status{background:#1d1641;color:#d2e7e2}
:root[data-theme=dark] .ar-guide{background:#1b143d;border:1px solid #3a2b83}
:root[data-theme=dark] .ar-guide li{color:#cfd8db}
:root[data-theme=dark] .ar-guide li strong{color:#d3e2e8}
:root[data-theme=dark] .ar-marker-card{background:#181236;border:1px solid #3b2c85}
:root[data-theme=dark] .ar-marker-card p{color:#ced9dc}
:root[data-theme=dark] .ar-privacy{border-top:1px solid #3c2d87}
:root[data-theme=dark] .ar-privacy p{color:#cfd7da}
:root[data-theme=dark] .ar-stage[data-state=tracking]{border-color:#278675}
:root[data-theme=dark] .ar-stage[data-state=denied],:root[data-theme=dark] .ar-stage[data-state=error]{border-color:#d1aa68}
:root[data-theme=dark] .ar-placement{background:#1c153e;border:1px solid #27927e}
:root[data-theme=dark] .ar-placement select{border:1px solid #8cb8bc;background:#181236;color:#d3e2e8}
:root[data-theme=dark] .ar-placement p{color:#cfd9dc}
:root[data-theme=dark] .ar-character-controls{background:#1b153e;border:1px solid #3b2c85}
:root[data-theme=dark] .ar-character-controls label{color:#d3e2e8}
:root[data-theme=dark] .ar-character-controls output{color:#cde1e3}
:root[data-theme=dark] .ar-character-controls button[aria-pressed=true]{background:#1a6347;border-color:#69a999}
:root[data-theme=dark] .ar-caption{background:#173f50e8;color:#ffffff}
:root[data-theme=dark] .ar-narration{background:#581740;border:1px solid #e7cd9b}
:root[data-theme=dark] .ar-narration .btn{background:#a0485d}
:root[data-theme=dark] .ar-narration .btn:hover{background:#85394c}
:root[data-theme=dark] .ar-narration p{color:#d8d4d4}
:root[data-theme=dark] .ar-narration details{border-top:1px solid #dcc8ab}
:root[data-theme=dark] .ar-gesture-hint{color:#cddfe7}
:root[data-theme=dark] .ar-play-controls button[aria-pressed=true]{background:#1b6644;color:#d5e9e4}
:root[data-theme=dark] .ar-action-menu{border:2px solid #b4d6d7;background:#191339;color:#d3e2e8;box-shadow:0 20px 80px #153d5070}
:root[data-theme=dark] .ar-action-menu::backdrop{background:#163a506b}
:root[data-theme=dark] .ar-action-list button{border:1px solid #289497;background:#1c153e;color:#d3e2e8}
:root[data-theme=dark] .ar-action-list button:hover{background:#1a6148}
:root[data-theme=dark] .ar-stage[data-holding=true]{border-color:#b66e93}
:root[data-theme=dark] .ar-cast-picker{background:#5a1842;border:1px solid #e3c594}
:root[data-theme=dark] .ar-cast-picker select{color:#d3e2e8;background:#191338;border:1px solid #b9a78b}
:root[data-theme=dark] .ar-search{background:#191339;border:1px solid #289584}
:root[data-theme=dark] .ar-search input{border:1px solid #80a9ae;color:#d3e2e8}
:root[data-theme=dark] .ar-song-portrait{background:#1e1642}
:root[data-theme=dark] .ar-immersive.is-immersive{background:#0b1b1f}
:root[data-theme=dark] .ar-immersive-mode{background:#191338e8;color:#ccdfe9;box-shadow:0 2px 10px #0003}
:root[data-theme=dark] .ar-immersive.is-immersive .ar-immersive-bottom{background:linear-gradient(transparent,#0b1b1f66)}
:root[data-theme=dark] [data-slot=select-item]:focus-visible,:root[data-theme=dark] [data-slot=select-trigger]:focus-visible,:root[data-theme=dark] [data-slot=slider-thumb]:focus-visible{outline:none}
/* src/styles/dark-overrides.css */
/* Hand-written dark-mode values, appended after the generated rules in dist/assets/theme-dark.css.
   Mood: a bright "night sky" for kids: deep indigo, violet and berry, with candy accents (mint, sunny yellow, pink). */
:root[data-theme=dark]{color-scheme:dark;--ink:#fbf8ff;--muted:#d2caff;--green:#5ef0c4;--green-dark:#8df6d6;--green-bg:#0fa882;--green-bg-hover:#12c398;--cream:#1a1446;--peach:#5a1f55;--mint:#11506a;--yellow:#ffd23f;--lavender:#3f2b93;--line:#43389a;--white:#271e63;--card:#271e63;--field:#1d1652;--danger:#ff8fa3;--shadow:0 18px 45px #0a052e8c}
:root[data-theme=dark] body{background:var(--cream);color:var(--ink)}
:root[data-theme=dark] .theme-toggle .ti-sun{display:inline-flex}
:root[data-theme=dark] .theme-toggle .ti-moon{display:none}
:root[data-theme=dark] .site-header{background:#1a1446ee;border-bottom-color:#3a2f8a}
:root[data-theme=dark] .wordmark{color:#fff}
:root[data-theme=dark] .wordmark-rainbow{--wl-ink:#0b0730}
:root[data-theme=dark] h1 em,:root[data-theme=dark] .kid-hero h1 em{color:#ff7eb6}
:root[data-theme=dark] .eyebrow{color:#ffd23f}
:root[data-theme=dark] .eyebrow:before{background:#ffd23f}

/* one jewel colour per menu section (dark twin of the pastel in ui.css): menu icon, hero sky top and header */
:root[data-theme=dark] [data-tone=sky]{--tone-bg:#1d3a9e;--tone:#7cc4ff}
:root[data-theme=dark] [data-tone=mint]{--tone-bg:#0c5e4a;--tone:#5ef0b0}
:root[data-theme=dark] [data-tone=sun]{--tone-bg:#8a4a06;--tone:#ffd23f}
:root[data-theme=dark] [data-tone=peach]{--tone-bg:#9a3519;--tone:#ffa36b}
:root[data-theme=dark] [data-tone=pink]{--tone-bg:#8a1f66;--tone:#ff86c4}
:root[data-theme=dark] [data-tone=lilac]{--tone-bg:#4f2db0;--tone:#c4a8ff}
:root[data-theme=dark] [data-tone=aqua]{--tone-bg:#0a6b72;--tone:#55eadc}
:root[data-theme=dark] [data-tone=login]{--tone-bg:#fff6dc;--tone:#8a6414}
:root[data-theme=dark] .nav a[data-tone]:not(.nav-login){background:#271e63;border-color:#3d3290;color:#fff}
:root[data-theme=dark] .nav a[data-tone] .nav-icon{background:var(--tone-bg);color:var(--tone)}
@media(max-width:1100px){
 :root[data-theme=dark] .nav{background:#1a1446;border-color:#3d3290}
 :root[data-theme=dark] .nav a[data-tone]:not(.nav-login):hover,:root[data-theme=dark] .nav a[data-tone]:not(.nav-login):focus-visible{background:#33287c}
 :root[data-theme=dark] .nav a[data-tone][aria-current=page]{background:var(--tone-bg);border-color:var(--tone);box-shadow:inset 5px 0 0 var(--tone);color:#fff}
 :root[data-theme=dark] .nav a[data-tone][aria-current=page] .nav-icon{background:var(--tone);color:#1a1446}
 :root[data-theme=dark] .nav a[data-tone][aria-current=page] small{color:#fff}
}
@media(min-width:1101px){
 :root[data-theme=dark] .nav a[data-tone]:not(.nav-login){background:transparent;border:0}
 :root[data-theme=dark] .nav a[data-tone][aria-current=page]{color:var(--tone);box-shadow:0 2px var(--tone)}
}

/* night skies: each hero starts with its section's jewel colour and fades into the indigo night */
:root[data-theme=dark] .kid-hero,:root[data-theme=dark] .kh-theme-sky{background:linear-gradient(170deg,#1d3a9e 0%,#3b2a9a 55%,#6a2f8e 100%)}
:root[data-theme=dark] .kh-theme-mint{background:linear-gradient(170deg,#0c5e4a 0%,#11506a 48%,#3b2a9a 100%)}
:root[data-theme=dark] .kh-theme-sun{background:linear-gradient(170deg,#8a4a06 0%,#9a2f5c 52%,#3b2a9a 100%)}
:root[data-theme=dark] .kh-theme-peach{background:linear-gradient(170deg,#9a3519 0%,#8a1f5a 52%,#3b2a9a 100%)}
:root[data-theme=dark] .kh-theme-pink{background:linear-gradient(170deg,#8a1f66 0%,#6b2c99 50%,#3b2a9a 100%)}
:root[data-theme=dark] .kh-theme-lilac{background:linear-gradient(170deg,#4f2db0 0%,#3b2a9a 50%,#2a3fa8 100%)}
:root[data-theme=dark] .kh-theme-aqua{background:linear-gradient(170deg,#0a6b72 0%,#155f86 48%,#3b2a9a 100%)}
:root[data-theme=dark] .kh-hill-back,:root[data-theme=dark] .kh-theme-sky .kh-hill-back{fill:#3f8cff}
:root[data-theme=dark] .kh-theme-mint .kh-hill-back{fill:#21b38b}
:root[data-theme=dark] .kh-theme-sun .kh-hill-back{fill:#f0a020}
:root[data-theme=dark] .kh-theme-peach .kh-hill-back{fill:#ff7a45}
:root[data-theme=dark] .kh-theme-pink .kh-hill-back{fill:#e0569f}
:root[data-theme=dark] .kh-theme-lilac .kh-hill-back{fill:#8f6bff}
:root[data-theme=dark] .kh-theme-aqua .kh-hill-back{fill:#1fc4b8}
/* the header takes the same jewel colour as the hero top */
:root[data-theme=dark]:has(.kh-theme-sky) .site-header{background:#1d3a9ef2;border-bottom-color:#2f52c4}
:root[data-theme=dark]:has(.kh-theme-mint) .site-header{background:#0c5e4af2;border-bottom-color:#14806a}
:root[data-theme=dark]:has(.kh-theme-sun) .site-header{background:#8a4a06f2;border-bottom-color:#b0680f}
:root[data-theme=dark]:has(.kh-theme-peach) .site-header{background:#9a3519f2;border-bottom-color:#c24a26}
:root[data-theme=dark]:has(.kh-theme-pink) .site-header{background:#8a1f66f2;border-bottom-color:#b02f86}
:root[data-theme=dark]:has(.kh-theme-lilac) .site-header{background:#4f2db0f2;border-bottom-color:#6a46d6}
:root[data-theme=dark]:has(.kh-theme-aqua) .site-header{background:#0a6b72f2;border-bottom-color:#12909a}
:root[data-theme=dark]:has(.kid-hero) .icon-btn,:root[data-theme=dark]:has(.kid-hero) .menu-toggle{background:#ffffff24;border-color:#ffffff40;color:#fff}
:root[data-theme=dark] .kh-hill-front{fill:var(--cream)}
:root[data-theme=dark] .kh-label{background:#ffffff1f;color:#fff;border-color:#ffffff33}
:root[data-theme=dark] .kh-lead,:root[data-theme=dark] .kid-hero .breadcrumbs,:root[data-theme=dark] .kid-hero .breadcrumbs a{color:#e9e3ff}

/* the sun becomes a glowing moon among bright stars */
:root[data-theme=dark] .kh-sun-rays{display:none}
:root[data-theme=dark] .kid-hero .kh-sun{background:radial-gradient(circle,#fff6d52e 0%,#b9a8ff1f 45%,transparent 70%)}
:root[data-theme=dark] .kh-sun-core{background:radial-gradient(circle at 38% 34%,#ffffff 0%,#fff8e1 40%,#ffe9a8 76%,#f5d27a 100%);box-shadow:0 0 26px 8px #fff3c26b,0 0 80px 30px #b9a8ff33;animation:none}
:root[data-theme=dark] .kh-sun-core:before,:root[data-theme=dark] .kh-sun-core:after{display:block;background:#e9d38f99}
:root[data-theme=dark] .kh-sun-core:before{width:24%;height:24%;left:54%;top:24%}
:root[data-theme=dark] .kh-sun-core:after{width:15%;height:15%;left:28%;top:58%}
:root[data-theme=dark] .kh-rainbow{opacity:.75}
:root[data-theme=dark] .kh-cloud,:root[data-theme=dark] .kh-cloud:before,:root[data-theme=dark] .kh-cloud:after{background:#ffffff2e;box-shadow:none}
:root[data-theme=dark] .kh-bubble{opacity:.55}
:root[data-theme=dark] .kh-star{color:#ffe45c;text-shadow:0 0 10px #ffe45caa}
:root[data-theme=dark] .kh-note{color:#7ff0d0}
:root[data-theme=dark] .kh-note-2{color:#ff8fc8}
:root[data-theme=dark] .kh-note-3{color:#ffd23f}
:root[data-theme=dark] .kh-note-4{color:#9fb6ff}

/* candy accents that stay readable */
:root[data-theme=dark] .btn-login,:root[data-theme=dark] .nav .nav-login{background:var(--yellow);color:#2a1a00;border-color:#e0a800}
:root[data-theme=dark] .icon-btn,:root[data-theme=dark] .menu-toggle{background:#2c2272;border-color:#4b3fae;color:#fff}
:root[data-theme=dark] .icon-btn:hover{background:#3a2d92}
:root[data-theme=dark] .cart-count{background:#ff4f8b;color:#fff}
:root[data-theme=dark] .btn{color:#fff}
:root[data-theme=dark] .btn.secondary{color:#fff;background:#ffffff14;border-color:#7b6ae0}
:root[data-theme=dark] .btn.secondary:hover{background:#ffffff26}
:root[data-theme=dark] .btn.light{color:#0b6d55;background:#fff}
:root[data-theme=dark] .cta-band{background:linear-gradient(120deg,#0fa882,#3b6fd8 60%,#7b4ce0)}
:root[data-theme=dark] .pill{background:#3f2b93;color:#fff}
:root[data-theme=dark] .pill.yellow{background:#ffd23f;color:#2a1a00}
:root[data-theme=dark] .pill.paid,:root[data-theme=dark] .price-tag{background:#ff4f8b;color:#fff}
:root[data-theme=dark] .form-error{background:#5a1336;color:#ffc2d6}
:root[data-theme=dark] .backend-off{background:#4a3a0a;border-color:#a8861c}
:root[data-theme=dark] .field input,:root[data-theme=dark] .field textarea{border-color:#5a4cc0;background:var(--field)}
:root[data-theme=dark] .field input:focus-visible,:root[data-theme=dark] .field textarea:focus-visible{border-color:#5ef0c4;box-shadow:0 0 0 4px #5ef0c433}
:root[data-theme=dark] .kid-fact.kf-1{background:#11506a}:root[data-theme=dark] .kid-fact.kf-2{background:#6a1f5e}:root[data-theme=dark] .kid-fact.kf-3{background:#3f2b93}
:root[data-theme=dark] .kid-fact svg,:root[data-theme=dark] .skill-chips svg,:root[data-theme=dark] .kid-trio-item svg{background:#ffffff1f;color:#fff}
:root[data-theme=dark] .skill-chips li{color:#fff}
/* pictures and printed pages stay as they are */
:root[data-theme=dark] .kh-woods{--kh-tree-deep:#174d60;--kh-tree-mid:#247a76;--kh-tree-light:#50a497;--kh-tree-trunk:#735b85;--kh-tree-fruit:#e8cb7e;--kh-tree-shadow:#11183a66}
:root[data-theme=dark] .reader-viewer canvas,:root[data-theme=dark] .reader-viewer img{filter:none}

:root[data-theme=dark] .kh-bench{--kh-bench-back:#b77b55;--kh-bench-seat:#8f593f;--kh-bench-frame:#58445b;--kh-bench-shadow:#11183a66}

:root[data-theme=dark] .kh-flowers{--kh-flower-green:#5eab92;--kh-flower-pink:#e99abb;--kh-flower-violet:#b3a1ed;--kh-flower-cream:#f5deb1;--kh-flower-center:#efc872}
