/* Home palette only. The existing layout and block order are preserved. */
html[data-home-theme="dark"]{color-scheme:dark;--ink:#edf6ff;--muted:#9eb5ca;--line:#25445c;--cyan:#3de3ef;--violet:#b298ff;--surface:#071d2e;--glass:linear-gradient(135deg,#5facce38,#17344e94 42%,#09172bb0)}

html[data-home-theme="dark"] body{background:#020b18!important;color:var(--ink)!important;}
html[data-home-theme="dark"] body .kurs-home{background:radial-gradient(ellipse at 90% 30%,#07546a17,transparent 60%),#020b18!important;color:var(--ink)!important;}
html[data-home-theme="dark"] body a{color:var(--cyan)!important;}
html[data-home-theme="dark"] body .kurs-home-header{background:#061426ed!important;box-shadow:0 0 18px #22d6ec12!important;}
html[data-home-theme="dark"] body .kurs-home-logo,html[data-home-theme="dark"] body .kurs-home-logo *{color:#eef8ff!important;}
html[data-home-theme="dark"] body .kurs-home-nav a{color:#b6cadd!important;}
html[data-home-theme="dark"] body .kurs-home-nav a:hover{color:#55e9f3!important;text-shadow:0 0 10px #4ad6ea66!important;}
html[data-home-theme="dark"] body .kurs-home-auth a{color:#c7d9e8!important;}
html[data-home-theme="dark"] body .kurs-home-auth a:last-child{background:#19c7d3!important;color:#032630!important;box-shadow:0 0 14px #2edce52b!important;}
html[data-home-theme="dark"] body .kurs-main-banner{box-shadow:0 10px 26px #0005!important;}
html[data-home-theme="dark"] body .kurs-main-banner>img{filter:brightness(.8) saturate(.9)!important;}
html[data-home-theme="dark"] body :is(.home-login-card,.home-cabinet-card,.home-login,.home-login-box,.home-cabinet-login){background:var(--glass)!important;color:var(--ink)!important;backdrop-filter:blur(30px) saturate(1.5)!important;box-shadow:inset 0 1px #e7f8ff55,0 16px 35px #0006!important;}
html[data-home-theme="dark"] body .home-quick-links h2{color:#e7f5ff!important;}
html[data-home-theme="dark"] body .portal-menu{background:#071b2b!important;box-shadow:none!important;}
html[data-home-theme="dark"] body .portal-menu a{color:#c4dae8!important;}
html[data-home-theme="dark"] body .portal-menu a:hover{background:#123247!important;color:#65e8ee!important;}
html[data-home-theme="dark"] body :is(.portal-card,.review-card,.review-item){background:var(--surface)!important;color:var(--ink)!important;box-shadow:none!important;}
html[data-home-theme="dark"] body :is(.portal-heading h2,.portal-heading h3,.portal-card h1,.portal-card h2,.portal-card h3){color:var(--ink)!important;text-shadow:none!important;}
html[data-home-theme="dark"] body .portal-heading>a{color:#55e2ed!important;}
html[data-home-theme="dark"] body :is(.portal-card p,.portal-card time,.portal-description,.portal-subtitle,.portal-blog-excerpt,.portal-card small){color:var(--muted)!important;}
html[data-home-theme="dark"] body :is(.portal-podcast,.portal-podcast-item,.podcast-card,.portal-blog-item,.portal-blog-post,.blog-card){background:#0b2438!important;color:var(--ink)!important;box-shadow:none!important;}
html[data-home-theme="dark"] body .portal-blog-item a{color:#e1edff!important;}
html[data-home-theme="dark"] body #demo{border-color:#2bafc765!important;background:linear-gradient(120deg,#09253a,#081c30)!important;box-shadow:0 0 18px #24c5e714!important;}
html[data-home-theme="dark"] body #demo .lesson-page-heading h1{color:#eff7ff!important;}
html[data-home-theme="dark"] body #demo .lesson-page{background:transparent!important;color:#deebf7!important;}
html[data-home-theme="dark"] body #demo .lesson-material-card{background:transparent!important;box-shadow:none!important;}
html[data-home-theme="dark"] body #demo :is(.lesson-section-label,.portal-kicker){color:#62e9e9!important;background:transparent!important;}
html[data-home-theme="dark"] body #demo .portal-demo-badge{background:#143f47!important;color:#8deee0!important;}
html[data-home-theme="dark"] body #demo :is(.lesson-paragraph,.lesson-material-card p){color:#b9d2e2!important;}
html[data-home-theme="dark"] body .home-demo-expand{background:#6156c9!important;color:#fff!important;box-shadow:0 0 12px #a078f52b!important;}
html[data-home-theme="dark"] body .kurs-audio-player{background:#071d2c!important;color:#d8edf7!important;box-shadow:none!important;--audio-text:#d8edf7!important;--audio-muted:#9bb7c8!important;--audio-bg:#071d2c!important;--audio-border:#294b60!important;--audio-accent:#32d5df!important;}
html[data-home-theme="dark"] body .kurs-audio-play{background:var(--player-color,#19c7d3)!important;color:#022733!important;box-shadow:0 0 8px #19c7d329!important;}
html[data-home-theme="dark"] body .kurs-waveform i{background:var(--player-dim,#258a9c)!important;}
html[data-home-theme="dark"] body .kurs-waveform i.is-played{background:var(--player-bright,#43e5eb)!important;}
html[data-home-theme="dark"] body .kurs-wave-seek .kurs-audio-progress{opacity:0!important;}
html[data-home-theme="dark"] body .kurs-audio-mute{color:#53d9e4!important;}
html[data-home-theme="dark"] body :is(input[type=text],input[type=password],input[type=email]){background:#071b2bcc!important;color:#edf8ff!important;box-shadow:none!important;}
html[data-home-theme="dark"] body input::placeholder{color:#a3bbcd!important;}
html[data-home-theme="dark"] body :is(.home-about-expand,.home-quote,.home-final-cta){background:#071b2b!important;border-color:#25445c!important;color:#d9eaf7!important;}
html[data-home-theme="dark"] body .site-footer,html[data-home-theme="dark"] body footer{background:#030c18!important;color:#9fb5c9!important;}
html[data-home-theme="dark"] body .home-quote{color:#b7a5ee!important;}
html[data-home-theme="dark"] body .home-quote *{color:inherit!important;}
html[data-home-theme="dark"] body .home-cabinet-login{background:linear-gradient(135deg,#398ba44a,#071c32b8)!important;}
html[data-home-theme="dark"] body .home-cabinet-login-title{color:#ecfaff!important;}
html[data-home-theme="dark"] body .home-cabinet-login-title small,html[data-home-theme="dark"] body .home-cabinet-login-title span{color:#b8d6e5!important;}
html[data-home-theme="dark"] body .home-cabinet-submit{background:#19c7d3!important;color:#022733!important;}
html[data-home-theme="dark"] body .home-cabinet-signup{background:#11344e!important;color:#d7efff!important;}
html[data-home-theme="dark"] body .home-quick-links{background:transparent!important;box-shadow:none!important;}
html[data-home-theme="dark"] body .home-quick-links .portal-menu{border-color:#25445c!important;}
html[data-home-theme="dark"] body #demo .portal-kicker{color:#55e8e5!important;}
html[data-home-theme="dark"] body #demo [class*=badge]{background:#103b45!important;color:#8aefe7!important;border-color:#26777e!important;}
html[data-home-theme="dark"] body :is(.grammar-error-trainer,.grammar-error-option){background:#0b2438!important;color:#e2f1ff!important;border-color:#2b4960!important;}
html[data-home-theme="dark"] body .grammar-error-trainer :is(h2,p){color:#e5f1ff!important;}
html[data-home-theme="dark"] body .home-demo-expand-arrow{color:#d4b9ff!important;}
html[data-home-theme="dark"] body .portal-podcast-cover{background:#0b2438!important;}
html[data-home-theme="dark"] body .home-final-cta a{background:#6156c9!important;color:#fff!important;border-color:#a288e0!important;}
html[data-home-theme="dark"] body .portal-material-tree,html[data-home-theme="dark"] body .portal-material-tree *{color:#b8d4e7!important;}
html[data-home-theme="dark"] body :is(.home-review-card,.home-review,.portal-review){background:#0b2438!important;color:#c5dbea!important;border-color:#29495f!important;}
html[data-home-theme="dark"] body :is(.home-about-expand>button,.home-about-toggle){background:#0b2438!important;color:#e8f4ff!important;border-color:#29495f!important;}
html[data-home-theme="dark"] body .kurs-home .portal-material-list article{background:#0b2438!important;color:#d0e5f3!important;box-shadow:none!important;}
html[data-home-theme="dark"] body .kurs-home .portal-material-list article strong{color:#d0e5f3!important;}
html[data-home-theme="dark"] body .kurs-home .portal-material-list article span{color:#59deed!important;}
html[data-home-theme="dark"] body .kurs-home .portal-review blockquote{color:#b8d1e2!important;}
html[data-home-theme="dark"] body .kurs-home .home-cabinet-login-title{color:#eefaff!important;}
html[data-home-theme="dark"] body .kurs-home .home-cabinet-login-title *{color:#bad8e7!important;}
html[data-home-theme="dark"] body .kurs-home #demo .portal-demo-heading>span{background:#103b45!important;color:#8aefe7!important;border-color:#26777e!important;}
html[data-home-theme="dark"] body .kurs-home #demo .portal-kicker{color:#57e2e4!important;}

.home-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;height:36px;padding:7px 9px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:7px;cursor:pointer;font:inherit;font-size:12px;flex:none}
.home-theme-toggle svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html[data-home-theme="dark"] .home-theme-toggle{color:#6ce9ef;background:#0d2a40;border-color:#36788c;box-shadow:0 0 10px #3adce91c}
/* The embedded demo receives the actual Dark Neon component palette. */
html[data-home-theme="dark"] body #demo.cabinet{display:block!important;grid-template-columns:none!important;min-height:0!important;width:auto!important;max-width:100%!important;position:relative!important}
html[data-home-theme="dark"] body #demo :is(.lesson-page,.lesson-layout,.lesson-main,.lesson-content){background:transparent!important;color:#edf6ff!important;min-width:0}
html[data-home-theme="dark"] body #demo :is(.lesson-test-card,.lesson-test-question,.test-option,.lesson-test-option,.grammar-error-option,.grammar-error-trainer,.letter-trainer,.roots-trainer,.stress-trainer,.joined-trainer,.ne-trainer,.nn-trainer,.punctuation-trainer){background:#092238!important;color:#e9f4ff!important;border-color:#31546d!important}
html[data-home-theme="dark"] body #demo :is(p,li,label,h1,h2,h3,h4,.grammar-error-task,.grammar-error-instruction,.grammar-error-option-text){color:inherit!important}
html[data-home-theme="dark"] body #demo :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background:#0c263c!important;color:#e9f4ff!important;border-color:#3d718e!important}
html[data-home-theme="dark"] body #demo :is(.is-correct,.is-correct *,[data-correct=true]){color:#99f4cc!important;border-color:#43bb91!important}
html[data-home-theme="dark"] body #demo :is(.is-wrong,.is-wrong *){color:#ffc1ce!important;border-color:#ce7492!important}
html[data-home-theme="dark"] body .portal-material-list article{background:#0b2438!important;color:#d0e5f3!important;border-color:#2b4960!important}
html[data-home-theme="dark"] body .portal-review blockquote{color:#b8d1e2!important}
@media(max-width:600px){.home-theme-label{display:none}.home-theme-toggle{padding:6px;min-width:34px}}
html[data-home-theme="dark"] body :is(.portal-card,.portal-menu,.portal-podcast,.portal-blog-item,.portal-review,.home-quick-links){border-color:#294b61!important}
html[data-home-theme="dark"] body :is(.kurs-main-banner,.kurs-home-header){border-color:#29758a!important}
html[data-home-theme="dark"] body .kurs-home-auth a.home-button{background:#19c7d3!important;color:#032630!important;border-color:#63e8ef!important;box-shadow:0 0 14px #2edce52b!important}
html[data-home-theme="dark"] body .home-cabinet-login{border-color:#6ab8cc88!important}
html[data-home-theme="dark"] body .kurs-audio-player{border-color:#2d536a!important}

/* Materials section removed; reviews occupy the original bottom row. */
.kurs-home .dashboard-bottom{grid-template-columns:minmax(0,1fr)!important}
