/* generated by tools/make_dark.py */
html[data-theme=dark] body{background:#383229}
html[data-theme=dark] button:hover{background:#3a3326}
html[data-theme=dark] header nav [aria-pressed=true]{background:#1212120a}
html[data-theme=dark] main{border-inline:1px solid #585041}
html[data-theme=dark] .featured{background:#322b1f}
html[data-theme=dark] .primary{border:3px double #8e7d64}
html[data-theme=dark] .dialogue-book{background:#221b0e}
html[data-theme=dark] .tag{border:1px solid #8a7d66;color:#d7c6ad}
html[data-theme=dark] .notice{background:#352e23}
html[data-theme=dark] .empty{background:#221a0e}
html[data-theme=dark] #unit-view{background:linear-gradient(90deg,#39332755,transparent 3%,transparent 97%,#39332755)}
html[data-theme=dark] .filters [aria-pressed=true]{background:#3f382955}
html[data-theme=dark] .answer-group{background:#201a0d80}
html[data-theme=dark] .answers li{border-bottom:1px solid #59503f66}
html[data-theme=dark] .explanation{color:#cabeb3;background:#3e362833}
html[data-theme=dark] .pending{color:#d8b5a3}
html[data-theme=dark] .qasas-book{background:linear-gradient(115deg,#403726,#221b0e)}
html[data-theme=dark] .qasas-intro{background:#332b1e}
html[data-theme=dark] .lesson-link:hover{background:#3e3627}
html[data-theme=dark] .lesson-summary{background:#352e22}
html[data-theme=dark] .word-card{background:#221b0e}
html[data-theme=dark] .word-card:nth-child(even){background:#322a1e}
html[data-theme=dark] .word-search input{background:#221b0e}
html[data-theme=dark] .reading-help{background:#322a1e}
html[data-theme=dark] .featured-image img{border:1px solid #63583e}
html[data-theme=dark] .question-block{background:#322b1f}
html[data-theme=dark] .reader-slot iframe{background:#121212}
html[data-theme=dark] .featured-image{background:#483f2f}
html[data-theme=dark] .exercise-image-button{background:#121212}
html[data-theme=dark] .exercise-image-button:hover{background:#121212}
html[data-theme=dark] .solution-reveal{background:#231c0e}
html[data-theme=dark] .question-image-scroll{background:#121212}
html[data-theme=dark] .bayna2-feature .original-cover img{border:1px solid #6d6d5b}
html[data-theme=dark] .unit-composition{background:#221b0e}
html[data-theme=dark] body::before{background:linear-gradient(180deg,#362e1e 0%,#4a402e 55%,#5e533f 100%)}
html[data-theme=dark] body.library-mode::before{background:radial-gradient(ellipse at 88% 8%,#2f2813 0,transparent 42%),linear-gradient(180deg,#352d1d 0%,#4a402d 60%,#5e533f 100%)}
html[data-theme=dark] .library-mode header{background:#2f281bd9}
html[data-theme=dark] .library-mode header nav{background:#292111aa}
html[data-theme=dark] .library-mode header nav button:hover{background:#483f2e}
html[data-theme=dark] .library-intro h1{text-shadow:0 1px 0 #292211}
html[data-theme=dark] .card-surface{background:radial-gradient(ellipse at 50% 22%,#362f1e,#594f3a 70%,#6b5f49);box-shadow:inset 0 26px 34px -14px #6b47226e,inset 0 -8px 14px #30271399,0 0 0 6px #3c3423,0 0 0 7.5px var(--gold),0 26px 40px -16px #4b2c1070}
html[data-theme=dark] .card-surface::before{background:radial-gradient(circle at var(--px,50%) var(--py,25%),#3c3519aa,transparent 52%)}
html[data-theme=dark] .card-surface::after{background:linear-gradient(110deg,transparent 35%,#28241080 48%,transparent 60%)}
html[data-theme=dark] .book-stage::before{background:linear-gradient(180deg,#2c2617,#524833 70%,#70634d);box-shadow:0 8px 12px -4px #4b2c1066,inset 0 1px #121212}
html[data-theme=dark] .book-object:not(.scene-book){box-shadow:4px 1px 0 #50493c,7px 2px 0 #6b5547}
html[data-theme=dark] .shelf-card:focus-within .card-surface{box-shadow:inset 0 26px 34px -14px #6b47226e,0 0 0 6px #3c3423,0 0 0 8px var(--wine),0 26px 40px -16px #4b2c1070}
@media(hover:hover) and (pointer:fine){html[data-theme=dark] .shelf-card:hover .card-surface{box-shadow:inset 0 26px 34px -14px #6b47226e,inset 0 0 50px #3f361acc,0 0 0 6px #3c3423,0 0 0 7.5px #c49b52,0 34px 48px -16px #4b2c1088}}
html[data-theme=dark] .library-mode .dialogue-book{background:#2a2416;border:1px solid #857659;box-shadow:0 0 0 5px #3c3423,0 0 0 6px #857659,0 18px 30px -14px #4b2c1066}
html[data-theme=dark] .library-mode .dialogue-book:hover{background:#231c0e}
html[data-theme=dark] body:not(.library-mode) main{background:#2a2416;border:1px solid #857659}
html[data-theme=dark] body:not(.library-mode) .unit{border:1px solid #776a50}
html[data-theme=dark] .unit .tag,html[data-theme=dark] .tag{background:#2f2e20}
html[data-theme=dark] .tag.pending{color:#d8b5a3;background:#302318}
html[data-theme=dark] .answer-group{background:#1f1b0d}
html[data-theme=dark] .speak{background:#312a18}
html[data-theme=dark] .eyebrow,html[data-theme=dark] .library-intro .eyebrow,html[data-theme=dark] .library-divider,html[data-theme=dark] .library-mode .collection-number{color:#d4c4a7}

/* manual dark-theme choices: lamp-lit sandstone at night */
html[data-theme=dark]{color-scheme:dark;background:#14100d;--head:#ecd29a;--paper:#251c17;--ink:#efe3cd;--muted:#bba98f;--line:#4a3b2f;--gold:#c9a05a;--stone:#3a2d23;--lime:#2c211b;--soft:#bba98f;--olive:#aebb7d;--lightgold:#e7c990;--lattice:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' viewBox='0 0 190 190'%3E%3Cg fill='none' stroke='%23e2c47f' stroke-width='14' stroke-linejoin='round'%3E%3Cpath d='M95 8L124 66 182 95 124 124 95 182 66 124 8 95 66 66Z'/%3E%3Ccircle cx='0' cy='0' r='36'/%3E%3Ccircle cx='190' cy='0' r='36'/%3E%3Ccircle cx='0' cy='190' r='36'/%3E%3Ccircle cx='190' cy='190' r='36'/%3E%3C/g%3E%3Ccircle cx='95' cy='95' r='10' fill='%23e2c47f'/%3E%3C/svg%3E")}
html[data-theme=dark] body::before{background:linear-gradient(180deg,#1c1511 0%,#16100d 55%,#100b09 100%)}
html[data-theme=dark] body.library-mode::before{background:radial-gradient(ellipse at 88% 8%,#5a3a1c80,transparent 46%),linear-gradient(180deg,#1c1511,#16100d 60%,#100b09)}
html[data-theme=dark] body::after{opacity:.09}html[data-theme=dark] body.library-mode::after{opacity:.16}
html[data-theme=dark] .exercise-image-button img,html[data-theme=dark] .question-image-scroll img{filter:brightness(.86)}
html[data-theme=dark] .shelf-open,html[data-theme=dark] .primary,html[data-theme=dark] .back,html[data-theme=dark] .review-button{background:#6a1d2a;color:#f4dca0}
html[data-theme=dark] .speak.speaking,html[data-theme=dark] .speak:hover{background:#6a1d2a;color:#f4dca0}
