/* Final, scoped overrides also cover cards inserted after transcription. */
html[data-letrou-theme=dark] body .letrou-engine {
 --cag-ink:#eef5ff;--cag-muted:#c0d2e6;--cag-border:#496582;--cag-soft:#152b43;--cag-global-primary:#eef5ff;
}
html[data-letrou-theme=dark] body .letrou-engine :is(.cag-recent-library,.cag-study-switcher,.cag-result-feedback,.cag-feedback-reasons,.cag-testimonial-invite,.cag-retention-card,.cag-continue-study,.cag-repertoire-save,.cag-recent-sheets,.cag-result-session-bar,.cag-repertoire-savebox,.cag-saved-repertoires,.cag-song-match,.cag-identity-confirm,.cag-feedback-gate__dialog,.cag-file-card,.cag-progress-card,.cag-editor-head,.cag-sheet-preview,.lt-engine-auto-publish-note) {
 background:#152b43!important;color:#eef5ff!important;border-color:#496582!important;box-shadow:none!important;
}
html[data-letrou-theme=dark] body .letrou-engine :is(.cag-recent-card,.cag-study-tab,.cag-saved-repertoire-card) {background:#1d3651!important;color:#eef5ff!important;border-color:#56718e!important}
html[data-letrou-theme=dark] body .letrou-engine :is(.cag-recent-card.is-active,.cag-recent-card.is-current,.cag-study-tab.is-active) {background:#234d75!important;border-color:#85bfff!important}
html[data-letrou-theme=dark] body .letrou-engine :is(h2,h3,h4,label,legend,strong,b,p,small,li,span,.cag-field span,.cag-song-match__identity span,.cag-recent-head>div>span,.cag-recent-card span,.cag-feedback-gate__eyebrow,.cag-progress-head span,[data-work-state],[data-status],[data-stage]) {color:#e4effc!important}
html[data-letrou-theme=dark] body .letrou-engine :is(a,.cag-recent-kicker,.cag-repertoire-kicker,.cag-recent-fav,.cag-recent-favorite,.cag-recent-count) {color:#9bceff!important}
html[data-letrou-theme=dark] body .letrou-engine :is(input:not([type=checkbox]):not([type=range]),select,textarea,.cag-translation-target) {background:#0d2035!important;color:#f3f8ff!important;border-color:#65819e!important;caret-color:white}
html[data-letrou-theme=dark] body .letrou-engine :is(input,textarea)::placeholder {color:#b9cce0!important;opacity:1}
html[data-letrou-theme=dark] body .letrou-engine :is(.cag-steps li,.cag-steps--labeled li,.cag-steps li b) {background:#263e59!important;color:#e4effc!important}
html[data-letrou-theme=dark] body .letrou-engine :is(.cag-steps li.is-done,.cag-identity-confirm.is-confirmed,.cag-song-match.is-confirmed,.cag-result-feedback.is-sent) {background:#143e32!important;color:#d1fae5!important;border-color:#5aa885!important}
html[data-letrou-theme=dark] body .letrou-engine .cag-steps li.is-active {background:#234d75!important;outline-color:#85bfff!important}
html[data-letrou-theme=dark] body .letrou-engine .cag-identity-confirm.is-rejected {background:#493321!important;border-color:#d6a270!important}
html[data-letrou-theme=dark] body .letrou-engine .cag-sheet-preview-line.is-section {color:#9bceff!important}
html[data-letrou-theme=dark] body .letrou-engine :is(button,.cag-secondary,.cag-link-button):disabled {background:#293d55!important;color:#c8d9ea!important;border-color:#59718c!important;opacity:1!important}
html[data-letrou-theme=dark] body .letrou-engine :is(.is-error,.cag-error) {color:#ffc9c9!important}
.lt49-install[hidden],.lt49-install [hidden]{display:none!important}
.lt49-install{display:none}
@media(max-width:767px){
 .lt49-install{display:block;text-align:center;padding:24px 24px 18px}
 body .lt49-install button[data-lt49-install]{display:inline-flex;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;width:min(100%,320px);min-height:52px;margin:0;padding:9px 18px;border:1px solid #69b7ff;border-radius:16px;background:#0d6efd;color:#fff;box-shadow:0 4px 12px #0003;cursor:pointer;font:700 17px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;vertical-align:middle;white-space:normal;transition:background-color .15s ease,border-color .15s ease}
 body .lt49-install button[data-lt49-install] span{color:#fff;font:inherit;min-width:0;overflow-wrap:anywhere}
 body .lt49-install button[data-lt49-install] img{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:block;object-fit:contain}
 body .lt49-install button[data-lt49-install]:hover:not(:disabled){background:#0960df;border-color:#92caff}
 body .lt49-install button[data-lt49-install]:active:not(:disabled){background:#0757cc}
 body .lt49-install button[data-lt49-install]:focus-visible{outline:3px solid #fff;outline-offset:4px}
 body .lt49-install button[data-lt49-install]:disabled{opacity:.7;cursor:wait}
 .lt49-install p{font:400 14px/1.5 system-ui;color:inherit;margin:12px auto 0;max-width:320px}
 .lt15-footer .lt49-install{color:#fff}.letrou-footer .lt49-install{color:var(--letrou-safe-footer-text,#fff)}
}
@media(prefers-reduced-motion:reduce){body .lt49-install button[data-lt49-install]{transition:none}}
@media(display-mode:standalone){.lt49-install{display:none!important}}
/* v1.38.53: explicit night-menu colors beat the legacy Home selectors and white glow. */
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav{background:#10253b!important;color:#f3f7ff!important;border-color:#496582!important;border-radius:28px}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav::before{background:#10253bf2!important;box-shadow:0 5px 18px #0003!important;filter:none!important}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav :is(a,summary){color:#f3f7ff!important;background:#1c3652!important;text-shadow:none!important;border-color:#496582!important}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav :is(a,summary) :is(span,svg){color:inherit!important;text-shadow:none!important}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav :is(a,summary):is(:hover,:focus-visible){color:#fff!important;background:#28557e!important}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav a.is-active{color:#fff!important;background:#1264c7!important;border-color:#8cbfff!important;text-shadow:none!important}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-nav :is(a,summary):focus-visible{outline:2px solid #9bceff;outline-offset:3px}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-more>div{background:#10253b!important;color:#f3f7ff!important;border-color:#496582!important}
html[data-letrou-theme=dark] body.lt15-site .lt15-header .lt15-more :is(label,select){color:#f3f7ff!important;background:#10253b!important}
.lt53-identity-choice{display:grid;gap:8px;flex:1 1 100%;font:500 14px/1.5 system-ui;margin:8px 0;min-width:0}
.lt53-identity-choice select{width:100%;max-width:100%;min-height:44px;font:inherit}
