/* Editorial night palette. Only colours are overridden here; no media filters or layout inversion.
   Semantic tokens are shared by navigation, footer and the production timeline. */
:root{
 --theme-bg:#fafaf9;--theme-ink:#191c20;--theme-muted:#65707a;--theme-quiet:#748092;
 --theme-surface:#ffffff;--theme-subtle:#f1f3f5;--theme-surface-soft:#eef2f7;--theme-footer:#f0f2f4;
 --theme-accent:#285cc4;--theme-accent-strong:#285cc4;--theme-accent-soft:#edf2fb;--theme-ai-line:#c5d5ee;
 --theme-line:#dce1e5;--theme-line-strong:#b8c6d7;--theme-hover:#edf1f6;
 --theme-button:#20262d;--theme-button-text:#fff;--theme-button-hover:#354252;
 --theme-shadow:0 14px 42px #15203312;--theme-success:#276345;--theme-warning:#825617;
}
html[data-theme="dark"]{
 color-scheme:dark;background:#101319;
 --theme-bg:#101319;--theme-ink:#edf1f6;--theme-muted:#b0b9c7;--theme-quiet:#97a3b5;
 --theme-surface:#1a202a;--theme-subtle:#151a22;--theme-surface-soft:#172130;--theme-footer:#141922;
 --theme-accent:#91b5fa;--theme-accent-strong:#345fa7;--theme-accent-soft:#1c2b43;--theme-ai-line:#40597e;
 --theme-line:#2e3847;--theme-line-strong:#465771;--theme-hover:#232f40;
 --theme-button:#edf1f6;--theme-button-text:#151a22;--theme-button-hover:#cddcf6;
 --theme-shadow:0 18px 52px #03060e66;--theme-success:#91d1ac;--theme-warning:#e6c28c;
}

/* Colour compatibility: client-carousel.css */
html[data-theme="dark"] .client-list-toggle{border:1px solid var(--theme-line);background:var(--theme-line);color:var(--accent);}
html[data-theme="dark"] .client-list-toggle:hover,html[data-theme="dark"] .client-list-toggle:focus-visible{border-color:var(--theme-line);background:var(--theme-line);}
html[data-theme="dark"][lang="cs"] .language-menu summary::before,html[data-theme="dark"] .language-option[lang="cs"]::before{background-image:url("icons/flags/cs.svg")!important;}
html[data-theme="dark"][lang="fr"] .language-menu summary::before,html[data-theme="dark"] .language-option[lang="fr"]::before{background-image:url("icons/flags/fr.svg")!important;}

/* Colour compatibility: ai-experience.css */
html[data-theme="dark"] .ai-directory,html[data-theme="dark"] .ai-page{--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-accent);--ai-ground:var(--theme-surface-soft);color:var(--ai-ink);}
html[data-theme="dark"] .ai-eyebrow{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-text-link{color:var(--ai-ink);border-bottom:1px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-text-link > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-directory a:focus-visible,html[data-theme="dark"] .ai-page :is(a, button, video):focus-visible{outline:2px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-catalog-group{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-model-mark{color:var(--ai-ink);}
html[data-theme="dark"] .ai-model-mark:hover{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-page{background:var(--ai-ground);}
html[data-theme="dark"] .ai-page a{color:inherit;}
html[data-theme="dark"] .ai-skip{background:var(--ai-cyan);color:var(--theme-ink)!important;}
html[data-theme="dark"] .ai-topbar{border-bottom:1px solid var(--ai-line);background:var(--theme-surface-soft);}
html[data-theme="dark"] .ai-brand small{color:var(--ai-muted);}
html[data-theme="dark"] .ai-topbar nav a:hover{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-dot{background:var(--ai-cyan);}
html[data-theme="dark"] .ai-hero h1 em{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-hero-description{color:var(--ai-muted);}
html[data-theme="dark"] .ai-button{background:var(--ai-cyan);color:var(--theme-ink)!important;}
html[data-theme="dark"] .ai-button:hover{background:var(--theme-accent-soft);}
html[data-theme="dark"] .ai-visual-label,html[data-theme="dark"] .ai-visual-foot{color:var(--ai-muted);}
html[data-theme="dark"] .ai-visual-foot{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-section-heading > p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-project-line{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-project-line > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-project-models a:hover{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-project-caption .ai-project-subject{color:var(--ai-ink);}
html[data-theme="dark"] .ai-project-caption p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-service-section{background:var(--theme-surface-soft);border-block:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-service-intro{color:var(--ai-muted);}
html[data-theme="dark"] .ai-offer-list article{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-offer-list article > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-offer-list p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-process li{border-top:1px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-process li > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-process p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-guide-promo{border-block:1px solid var(--theme-line);background:var(--theme-bg);color:var(--theme-ink);}
html[data-theme="dark"] .ai-guide-promo-copy > p:not(.ai-eyebrow){color:var(--theme-muted);}
html[data-theme="dark"] .ai-guide-promo-copy ul{border-block:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-guide-promo-copy li{border-right:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-guide-promo-copy li:last-child{border-right:0;}
html[data-theme="dark"] .ai-guide-promo-copy li strong{color:var(--theme-ink);}
html[data-theme="dark"] .ai-guide-promo-copy li span{color:var(--theme-muted);}
html[data-theme="dark"] .ai-guide-promo .ai-button{background:var(--theme-surface-soft);color:var(--theme-ink)!important;}
html[data-theme="dark"] .ai-guide-promo .ai-button:hover{background:var(--theme-accent-strong);}
html[data-theme="dark"] .ai-guide-promo-map::before{background:var(--theme-accent-strong);}
html[data-theme="dark"] .ai-guide-promo-map div{border-left:1px solid var(--theme-accent);background:var(--theme-bg);}
html[data-theme="dark"] .ai-guide-promo-map div:nth-child(even){background:var(--theme-accent-soft);}
html[data-theme="dark"] .ai-guide-promo-map div:first-child{border-left:2px solid var(--theme-accent);}
html[data-theme="dark"] .ai-guide-promo-map span{color:var(--theme-accent);}
html[data-theme="dark"] .ai-guide-promo-map small{color:var(--theme-muted);}
html[data-theme="dark"] .ai-full-catalog{border-top:1px solid var(--ai-line);}
html[data-theme="dark"] .ai-full-catalog h2 > span{color:var(--ai-muted);}
html[data-theme="dark"] .ai-filters button{border:1px solid transparent;background:transparent;color:var(--ai-muted);}
html[data-theme="dark"] .ai-filters button[aria-pressed="true"]{border-color:var(--ai-cyan);background:var(--ai-cyan);color:var(--theme-ink);}
html[data-theme="dark"] .ai-filters button:hover:not([aria-pressed="true"]){border-color:var(--ai-line);color:var(--ai-ink);}
html[data-theme="dark"] .ai-catalog-status{color:var(--ai-muted);}
html[data-theme="dark"] .ai-full-catalog .ai-group-heading p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-tool-entry:target{outline:1px solid var(--ai-cyan);}
html[data-theme="dark"] .ai-tool-use{color:var(--ai-muted);}
html[data-theme="dark"] .ai-tool-body p{color:var(--ai-muted);}
html[data-theme="dark"] .ai-contact-section{background:var(--theme-surface-soft);border-top:1px solid var(--theme-accent);}
html[data-theme="dark"] .ai-contact-layout p:not(.ai-eyebrow){color:var(--theme-muted);}
html[data-theme="dark"] .ai-contact-details a{border-top:1px solid var(--theme-accent);}
html[data-theme="dark"] .ai-contact-details a > span{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-contact-details b{color:var(--ai-cyan);}
html[data-theme="dark"] .ai-footer{color:var(--ai-muted);}
html[data-theme="dark"] .ai-footer a span{color:var(--ai-cyan);}
@media (max-width: 800px){
html[data-theme="dark"] .ai-topbar nav{border-top:1px solid var(--ai-line);}
}
@media (max-width: 520px){
html[data-theme="dark"] .ai-guide-promo-copy li,html[data-theme="dark"] .ai-guide-promo-copy li + li{border-right:0;border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-guide-promo-copy li:last-child{border-bottom:0;}
}
html[data-theme="dark"] .ai-project-arrow{border:1px solid var(--theme-accent);background:transparent;color:var(--theme-ink);}
html[data-theme="dark"] .ai-project-arrow:hover:not(:disabled),html[data-theme="dark"] .ai-project-arrow:focus-visible:not(:disabled){border-color:var(--theme-accent);background:var(--theme-accent-strong);color:var(--theme-ink);}
html[data-theme="dark"] .ai-project-topline{border-top:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-project-client,html[data-theme="dark"] .ai-project-format,html[data-theme="dark"] .ai-project-models-label{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-format{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-caption h3{color:var(--theme-ink);}
html[data-theme="dark"] .ai-project-description{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-models{border-top:1px solid var(--theme-line);}
html[data-theme="dark"] .ai-project-models-label{color:var(--theme-muted);}
html[data-theme="dark"] .ai-project-models-label::before{background:var(--theme-accent-strong);}
html[data-theme="dark"] .ai-project-models a{border:0;background:transparent;color:var(--theme-ink);box-shadow:none;}
html[data-theme="dark"] .ai-project-models a::after{border:1px solid var(--theme-accent);background:var(--theme-surface-soft);color:var(--theme-ink);}

/* Colour compatibility: editorial-light.css */
html[data-theme="dark"]{--bg:var(--theme-bg);--bg-soft:var(--theme-bg);--surface:var(--theme-surface);--surface-light:var(--theme-subtle);--text:var(--theme-ink);--muted:var(--theme-muted);--quiet:var(--theme-muted);--line:var(--theme-line-strong);--line-strong:var(--theme-line-strong);--accent:var(--theme-accent);--accent-cool:var(--theme-accent);--accent-soft:var(--theme-accent-soft);--ai-accent:var(--theme-accent);}
html[data-theme="dark"] body.light-theme{background:var(--theme-bg)!important;color:var(--text);}
html[data-theme="dark"] body.light-theme :is(a,button):focus-visible{outline:2px solid var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme ::selection{background:var(--theme-accent-soft);color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .section-copy{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .section{background:transparent;}
html[data-theme="dark"] body.light-theme .site-nav{border-bottom:1px solid var(--theme-line)!important;background:var(--theme-bg)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .site-nav .brand-copy{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .site-nav .brand-copy>span{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .site-nav .brand-logo-wrap{border:0!important;background:var(--theme-surface-soft)!important;}
html[data-theme="dark"] body.light-theme .nav-links a{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .nav-links a:hover,html[data-theme="dark"] body.light-theme .nav-links a.is-active{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .nav-links .nav-ai-link{border:0!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .nav-links .nav-ai-link:hover{background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme .language-menu summary{color:var(--theme-ink)!important;border:0!important;}
html[data-theme="dark"] body.light-theme .language-chevron{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .language-options{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;box-shadow:0 15px 35px #121a2510;}
html[data-theme="dark"] body.light-theme .language-option{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .language-option.is-current,html[data-theme="dark"] body.light-theme .language-option:hover{background:var(--theme-bg)!important;color:var(--theme-ink)!important;border-color:var(--theme-accent)!important;}
html[data-theme="dark"] .intro-kicker{color:var(--theme-ink);}
html[data-theme="dark"] .intro-kicker span{color:var(--theme-muted);}
html[data-theme="dark"] .portfolio-intro h1{color:var(--theme-ink);}
html[data-theme="dark"] .portfolio-intro h1>span{color:var(--theme-muted);}
html[data-theme="dark"] .hero-typing-cursor{background:currentColor;}
html[data-theme="dark"] .intro-summary>p{color:var(--theme-muted);}
html[data-theme="dark"] .editorial-button{background:var(--theme-surface-soft);color:var(--theme-ink)!important;border:1px solid var(--theme-line-strong);}
html[data-theme="dark"] .editorial-button:hover{background:var(--theme-surface-soft);}
html[data-theme="dark"] .reel-section-bar>p{color:var(--theme-ink);}
html[data-theme="dark"] .reel-bar-note{color:var(--theme-muted);}
html[data-theme="dark"] .live-dot{background:var(--theme-accent-strong);}
html[data-theme="dark"] .reel-navigation button{color:var(--theme-ink);background:transparent;border:1px solid transparent;}
html[data-theme="dark"] .reel-navigation button:hover{border-color:var(--theme-line);background:var(--theme-surface);}
html[data-theme="dark"] .reel-card{border:0;background:none;color:var(--theme-ink);}
html[data-theme="dark"] .reel-open{background:var(--theme-bg);color:var(--theme-ink);border:1px solid var(--theme-line);box-shadow:0 3px 16px #00000015;}
html[data-theme="dark"] .reel-caption small{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #showreel{background:transparent!important;}
html[data-theme="dark"] body.light-theme .category-top{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme .category-note{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme :is(.video-card,.external-card){border-color:var(--theme-line)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .reels-toggle{color:var(--theme-ink)!important;border-color:var(--theme-line)!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .reels-toggle:hover{background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-meta,html[data-theme="dark"] body.light-theme #longGrid .music-project-meta{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-meta h3,html[data-theme="dark"] body.light-theme #longGrid .music-project-meta h3{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-meta p,html[data-theme="dark"] body.light-theme #longGrid .music-project-meta p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-code,html[data-theme="dark"] body.light-theme #longGrid .music-project-code{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-achievement,html[data-theme="dark"] body.light-theme #longGrid .music-project-achievement{color:var(--theme-accent);background:transparent;border-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-credits,html[data-theme="dark"] body.light-theme #longGrid .music-project-credits{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-credits span,html[data-theme="dark"] body.light-theme #longGrid .music-project-credits span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #musicGrid .music-project-credits strong,html[data-theme="dark"] body.light-theme #longGrid .music-project-credits strong{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #showreel #tech{border-top:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme #showreel #tech .section-header{border:0!important;}
html[data-theme="dark"] body.light-theme #showreel #tech h2{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #showreel #tech .section-copy{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .tools-group{border:0!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid{border-top:1px solid var(--theme-line)!important;border-bottom:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item{border:0!important;border-top:2px solid var(--program-accent)!important;border-right:1px solid var(--theme-line)!important;background:var(--theme-surface)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:last-child{border-right:0!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:hover,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:focus-within{background:var(--theme-bg)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icons{border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icon,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .adobe-product-icon{border:0!important;box-shadow:0 8px 22px rgba(39,49,68,.12)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-tag{border:0!important;border-bottom:1px solid var(--program-accent)!important;background:transparent!important;color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-desc{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .ai-zone{--ai-accent:var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-zone::before{background:var(--ai-dynamic-bg,var(--theme-bg))!important;}
html[data-theme="dark"] body.light-theme .ai-zone-intro{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-kicker{color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-mark{background:var(--theme-accent-soft)!important;border:0!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-heading h2{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-zone-heading p{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #ai-reels{--ai-gallery-line:var(--theme-line);--ai-gallery-ink:var(--theme-ink);--ai-accent:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta{border-color:var(--theme-line);border-left:0;}
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #ai-reels .ai-grid .video-card{border:0!important;}
html[data-theme="dark"] body.light-theme #main #showreel .portfolio-category .category-top .section-kicker::before,html[data-theme="dark"] body.light-theme #main #showreel #ai-reels .ai-gallery-title .section-kicker::before{background:none!important;}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .video-caption{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #ai-reels .caption-link{color:var(--theme-accent)!important;text-decoration-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badges{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badges::before{border:0!important;color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badge{border:1px solid var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory,html[data-theme="dark"] body.light-theme.ai-page{--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);--ai-ground:var(--theme-bg);}
html[data-theme="dark"] body.light-theme .ai-directory-heading{border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-directory .ai-text-link{border-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:nth-child(n/**/+2):nth-child(-n/**/+4){border-top:0!important;border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:first-child{border-top:0!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading h3{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark .ai-logo{background:transparent;box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark>span:last-child{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:hover{color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme #about .about-icon-row,html[data-theme="dark"] body.light-theme #services .section-inner,html[data-theme="dark"] body.light-theme #services .scope-list,html[data-theme="dark"] body.light-theme #services .scope-list li{border-color:var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #services .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #about .about-copy p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #about .about-copy strong{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #contact{background:var(--theme-subtle)!important;border-top:1px solid var(--theme-line);}
html[data-theme="dark"] body.light-theme #contact h2{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #contact .contact-copy{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #contact :is(.contact-link,.contact-card){background:transparent!important;border-color:var(--theme-line)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #contact .contact-link strong{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme #contact .contact-link span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme #contact .client-logo{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #contact .client-logo-name{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients-title{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .client-list-toggle{background:var(--theme-surface)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .client-full-list{background:var(--theme-bg)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .portfolio-intro .clients--featured{border-top:0!important;border-bottom:0!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .portfolio-intro .clients--featured::before{background:var(--theme-subtle);}
html[data-theme="dark"] body.light-theme .clients--featured .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .clients--featured #clients-title{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logos{background:transparent!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logo,html[data-theme="dark"] body.light-theme .clients--featured .client-full-list .client-logo{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logo:hover,html[data-theme="dark"] body.light-theme .clients--featured .client-logo:focus-visible{background:transparent!important;}
html[data-theme="dark"] body.light-theme .clients--featured .client-logo-name{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary{border-top:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .section-kicker{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logos{background:transparent!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo,html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-full-list .client-logo{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo:hover,html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo:focus-visible{background:transparent!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo-name{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-list-toggle{background:transparent!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-full-list{background:transparent!important;border:0!important;}
html[data-theme="dark"] body.light-theme footer{background:transparent;color:var(--theme-muted);border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme.ai-page{color:var(--ai-ink);}
html[data-theme="dark"] body.light-theme .ai-topbar{background:var(--theme-bg);border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-brand{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-brand small{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-hero-copy>.ai-eyebrow{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-hero h1 em{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-button{background:var(--theme-surface-soft);color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-button:hover{background:var(--theme-accent-strong);}
html[data-theme="dark"] body.light-theme .ai-hero-actions .ai-text-link{border-color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-service-section{background:var(--theme-bg);}
html[data-theme="dark"] body.light-theme .ai-contact-section{background:var(--theme-accent-soft);border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-contact-layout p:not(.ai-eyebrow){color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-contact-details a{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-project-line{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-project-models-label{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-project-models a{border:0;background:transparent;color:var(--theme-ink);box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-project-models a:hover,html[data-theme="dark"] body.light-theme .ai-project-models a:focus-visible{border:0;background:transparent;color:var(--theme-accent);box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-tool-entry .ai-logo{background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-tool-entry .ai-logo-link{color:inherit;}
html[data-theme="dark"] body.light-theme .ai-tool-entry .ai-logo-link:focus-visible{outline:2px solid var(--theme-accent);}
html[data-theme="dark"] body.light-theme .ai-filters button[aria-pressed=true]{background:var(--theme-surface-soft);border-color:var(--theme-line-strong);color:var(--theme-ink);}
html[data-theme="dark"] .reel-dialog{border:1px solid var(--theme-line);background:var(--theme-bg);color:var(--theme-ink);box-shadow:0 30px 100px #00000030;}
html[data-theme="dark"] .reel-dialog::backdrop{background:var(--theme-surface-soft);}
html[data-theme="dark"] .reel-dialog-heading span{color:var(--theme-muted);}
html[data-theme="dark"] .reel-dialog-close{border:1px solid var(--theme-line);background:var(--theme-surface);color:var(--theme-ink);}
@media (max-width:1000px){
html[data-theme="dark"] body.light-theme #ai-reels .ai-gallery-meta{border-top:0;}
}
@media (max-width:700px){
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item{border-right:0!important;border-bottom:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:last-child{border-bottom:0!important;}
}
html[data-theme="dark"] body.light-theme #showreel #tech .section-kicker{color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech h2{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .section-copy{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid{border:1px solid var(--theme-line)!important;border-top:2px solid var(--theme-accent)!important;background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item{border:0!important;background:var(--theme-surface)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:hover,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item:focus-within{background:var(--theme-bg)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icons{border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-icon,html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .adobe-product-icon{border:0!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-tag{border:0!important;border-bottom:1px solid var(--theme-accent)!important;background:transparent!important;color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-item h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme #showreel #tech .programs-grid .tool-desc{color:var(--theme-muted)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"]{border:1px solid var(--theme-line)!important;background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:nth-child(n/**/+2):nth-child(-n/**/+4){border:0!important;background:var(--theme-surface)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading{border-bottom:1px solid var(--theme-line)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark{border:1px solid var(--theme-line)!important;background:var(--theme-bg)!important;color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:hover,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:focus-visible{border-color:var(--theme-accent)!important;background:var(--theme-bg)!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark .ai-logo{background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark > span:last-child{color:inherit!important;}
html[data-theme="dark"] body.light-theme .ai-directory{background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory .ai-directory-heading{border-bottom:0!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"]{border:0!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:nth-child(n/**/+2):nth-child(-n/**/+4){border:0!important;border-top:1px solid var(--theme-line)!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-catalog-group:first-child{border-top:0!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading{border:0!important;background:transparent!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-group-heading h3{color:var(--theme-ink)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark{border:0!important;background:transparent!important;color:var(--theme-ink)!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:hover,html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark:focus-visible{border:0!important;background:transparent!important;color:var(--theme-accent)!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark .ai-logo{border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-theme="dark"] body.light-theme .ai-directory [data-ai-catalog="compact"] .ai-model-mark > span:last-child{color:inherit!important;}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog{--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);--ai-ground:var(--theme-bg);color:var(--ai-ink);background:transparent;}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-section-heading h2{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-section-heading h2 > span{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-section-heading > p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-filters button{border:1px solid var(--theme-line);background:transparent;color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-filters button[aria-pressed="true"]{border-color:var(--theme-line-strong);background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-filters button:hover:not([aria-pressed="true"]){border-color:var(--theme-accent);color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-catalog-group{border-color:var(--theme-line);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-group-heading h3{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-group-heading p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-entry .ai-logo{background:transparent;box-shadow:none;}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-use{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-body h4{color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme .ai-home-full-catalog .ai-tool-body p{color:var(--theme-muted);}
html[data-theme="dark"] body.light-theme .hero-typing-cursor{background:var(--theme-surface-soft);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow{border:1px solid var(--theme-accent);background:transparent;color:var(--theme-ink);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow:hover,html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow:focus-visible{border-color:var(--theme-accent);background:var(--theme-bg);color:var(--theme-accent);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #ai-reels .ai-project-carousel-arrow:focus-visible{outline:2px solid var(--theme-accent);}
html[data-theme="dark"] body.light-theme:not(.ai-page) #client-reels .reels-more.desktop-preview:not(.is-open)::after{background:linear-gradient(180deg, rgba(250,250,249,0), var(--theme-bg) 62%, var(--theme-bg) 100%);}

/* Colour compatibility: ai-guide.css */
html[data-theme="dark"]{--guide-bg:var(--theme-bg);--guide-paper:var(--theme-ink);--guide-soft:var(--theme-bg);--guide-blue:var(--theme-accent);--guide-blue-dark:var(--theme-accent);--guide-ink:var(--theme-ink);--guide-muted:var(--theme-muted);--guide-line:var(--theme-line);--guide-line-dark:var(--theme-accent);}
html[data-theme="dark"] body.guide-page{background:var(--guide-bg)!important;color:var(--guide-ink);}
html[data-theme="dark"] .guide-page a{color:inherit;}
html[data-theme="dark"] .guide-page button{color:inherit;}
html[data-theme="dark"] .guide-page :is(a, button, input):focus-visible{outline:2px solid var(--guide-blue)!important;}
html[data-theme="dark"] .guide-page ::selection{background:var(--theme-accent-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-skip{background:var(--guide-blue);color:var(--theme-ink)!important;}
html[data-theme="dark"] .guide-progress{background:transparent;}
html[data-theme="dark"] .guide-progress span{background:var(--guide-blue);}
html[data-theme="dark"] .guide-topbar{border-bottom:1px solid var(--guide-line);background:var(--theme-bg);}
html[data-theme="dark"] .guide-brand img{background:var(--theme-surface-soft);}
html[data-theme="dark"] .guide-brand small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-topbar nav a,html[data-theme="dark"] .guide-back{color:var(--theme-muted);}
html[data-theme="dark"] .guide-topbar nav a:hover,html[data-theme="dark"] .guide-back:hover{color:var(--guide-blue);}
html[data-theme="dark"] .guide-back{border-bottom:1px solid var(--guide-line-dark);color:var(--guide-ink);}
html[data-theme="dark"] .guide-back span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-hero{border-bottom:1px solid var(--guide-line);background:var(--guide-soft);}
html[data-theme="dark"] .guide-kicker,html[data-theme="dark"] .guide-label{color:var(--guide-blue);}
html[data-theme="dark"] .guide-lead{color:var(--theme-ink);}
html[data-theme="dark"] .guide-route{border-top:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-route li{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-route a:hover{background:var(--theme-accent-soft);color:var(--guide-blue);}
html[data-theme="dark"] .guide-route-number{color:var(--guide-blue);}
html[data-theme="dark"] .guide-route-copy small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-route-arrow{color:var(--guide-blue);}
html[data-theme="dark"] .guide-toc > p{color:var(--theme-muted);}
html[data-theme="dark"] .guide-toc nav{border-top:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-toc nav a{border-bottom:1px solid var(--guide-line);color:var(--theme-muted);}
html[data-theme="dark"] .guide-toc nav a:hover,html[data-theme="dark"] .guide-toc nav a.is-active{color:var(--guide-blue);}
html[data-theme="dark"] .guide-toc nav a.is-active{border-bottom-color:var(--guide-blue);}
html[data-theme="dark"] .guide-toc-cta{border-bottom:1px solid var(--guide-blue);color:var(--guide-blue)!important;}
html[data-theme="dark"] .guide-section{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-opening,html[data-theme="dark"] .guide-section-lead{color:var(--guide-muted);}
html[data-theme="dark"] .guide-definitions{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-definitions article{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-definitions article:nth-child(odd){border-right:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-definitions article > span,html[data-theme="dark"] .guide-decision-grid article > span,html[data-theme="dark"] .guide-production article > div > span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-definitions p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-note{border-block:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-note strong{color:var(--guide-blue);}
html[data-theme="dark"] .guide-check-list{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-check-list li{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-check-list span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-callout{background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .guide-callout > p{color:var(--theme-accent);}
html[data-theme="dark"] .guide-callout dl div{border-top:1px solid var(--theme-line);}
html[data-theme="dark"] .guide-callout dt{color:var(--theme-accent);}
html[data-theme="dark"] .guide-table-block{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-table-heading p,html[data-theme="dark"] .guide-cost-toolbar p{color:var(--guide-blue);}
html[data-theme="dark"] .guide-table-heading > span{color:var(--guide-muted);}
html[data-theme="dark"] .guide-page th{border-block:1px solid var(--guide-line-dark);background:var(--theme-bg);color:var(--theme-muted);}
html[data-theme="dark"] .guide-page td{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-page tbody tr:hover{background:var(--theme-bg);}
html[data-theme="dark"] .guide-table-note{color:var(--guide-muted);}
html[data-theme="dark"] .guide-tab-list{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-tab-list button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--theme-muted);}
html[data-theme="dark"] .guide-tab-list button[aria-selected="true"]{border-color:var(--guide-blue);color:var(--guide-blue);}
html[data-theme="dark"] .guide-tab-mark{border:1px solid var(--guide-blue);color:var(--guide-blue);}
html[data-theme="dark"] .guide-tab-panel p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-tab-panel ul{color:var(--guide-blue);}
html[data-theme="dark"] .case-film{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .case-film-frame{background:var(--theme-surface-soft);}
html[data-theme="dark"] .case-film figcaption span,html[data-theme="dark"] .case-overview-label,html[data-theme="dark"] .case-subheading > p{color:var(--theme-accent);}
html[data-theme="dark"] .case-film figcaption small{color:var(--theme-accent);}
html[data-theme="dark"] .case-overview-label{color:var(--guide-blue);}
html[data-theme="dark"] .case-toolchain{background:var(--guide-line);}
html[data-theme="dark"] .case-tool{background:var(--guide-paper);}
html[data-theme="dark"] .case-tool > img{background:var(--theme-surface);}
html[data-theme="dark"] .case-tool--brand > img{background:var(--theme-surface-soft);}
html[data-theme="dark"] .case-tool small{color:var(--guide-muted);}
html[data-theme="dark"] .case-tool strong{color:var(--guide-ink);}
html[data-theme="dark"] .case-facts{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-facts div{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .case-facts div:nth-child(odd){border-right:1px solid var(--guide-line);}
html[data-theme="dark"] .case-facts dt{color:var(--guide-blue);}
html[data-theme="dark"] .case-facts dd{color:var(--theme-ink);}
html[data-theme="dark"] .case-overview-copy{color:var(--guide-muted);}
html[data-theme="dark"] .case-subheading{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-subheading > p{color:var(--guide-blue);}
html[data-theme="dark"] .case-pipeline-list{background:var(--guide-line);}
html[data-theme="dark"] .case-pipeline-list li{background:var(--guide-paper);}
html[data-theme="dark"] .case-pipeline-list li:not(:last-child)::after{background:var(--guide-bg);color:var(--guide-blue);}
html[data-theme="dark"] .case-step-number{color:var(--guide-blue);}
html[data-theme="dark"] .case-pipeline-list img,html[data-theme="dark"] .case-step-icon{background:var(--theme-bg);}
html[data-theme="dark"] .case-step-file{border:1px solid var(--guide-blue);background:transparent;color:var(--guide-blue);}
html[data-theme="dark"] .case-pipeline-list p{color:var(--guide-muted);}
html[data-theme="dark"] .case-motion-grid{background:var(--guide-line);}
html[data-theme="dark"] .case-motion-grid article{background:var(--guide-paper);}
html[data-theme="dark"] .case-motion-grid span{color:var(--guide-blue);}
html[data-theme="dark"] .case-motion-grid p{color:var(--guide-muted);}
html[data-theme="dark"] .case-timing-track{border:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-timing-track > div{border-right:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-timing-track > div:last-child{border-right:0;}
html[data-theme="dark"] .case-timing-cut{background:repeating-linear-gradient(135deg, var(--theme-subtle), var(--theme-subtle) 8px, var(--theme-subtle) 8px, var(--theme-subtle) 16px);color:var(--theme-muted);}
html[data-theme="dark"] .case-timing-use{background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .case-speed-result{border:solid var(--guide-line-dark);color:var(--theme-ink);}
html[data-theme="dark"] .case-speed-result b{color:var(--guide-blue);}
html[data-theme="dark"] .case-speed-result strong{color:var(--guide-blue-dark);}
html[data-theme="dark"] .case-caption{color:var(--guide-muted);}
html[data-theme="dark"] .case-lessons{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-lessons details{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-lessons summary::after{color:var(--guide-blue);}
html[data-theme="dark"] .case-lessons summary span{color:var(--guide-blue);}
html[data-theme="dark"] .case-lessons summary small{color:var(--guide-muted);}
html[data-theme="dark"] .case-lessons details > div{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-stats{border-top:1px solid var(--guide-blue);}
html[data-theme="dark"] .prompt-library-stats div{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-stats div + div{border-left:1px solid var(--guide-line);}
html[data-theme="dark"] .prompt-library-stats dt{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-stats dd{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-principles{background:var(--guide-line);}
html[data-theme="dark"] .prompt-library-principles article{background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-principles span{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-principles p{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-search span{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-search input{border:0;border-bottom:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-ink);outline:0;}
html[data-theme="dark"] .prompt-library-search input:focus{border-color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-filters button{border:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-filters button:hover,html[data-theme="dark"] .prompt-library-filters button[aria-pressed="true"]{border-color:var(--guide-blue);background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-layout{border:1px solid var(--guide-line-dark);background:var(--theme-surface);}
html[data-theme="dark"] .prompt-library-index{border-right:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-index-item{border:0;border-bottom:1px solid var(--guide-line);background:var(--theme-surface);color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-index-item:hover{background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-index-item.is-active{background:var(--theme-accent-soft);box-shadow:inset 3px 0 0 var(--guide-blue);}
html[data-theme="dark"] .prompt-library-index-item small{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-index-item b{color:var(--theme-muted);}
html[data-theme="dark"] .prompt-library-index-brand{background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-reader{background:var(--theme-surface);}
html[data-theme="dark"] .prompt-library-reader-header{border-bottom:1px solid var(--guide-line-dark);background:var(--theme-bg);}
html[data-theme="dark"] .prompt-library-reader-header p{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-brand{background:var(--theme-surface);}
html[data-theme="dark"] .prompt-library-wordmark{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-brand[data-brand="wan"] .prompt-library-wordmark{background:var(--theme-accent-strong);}
html[data-theme="dark"] .prompt-library-close{border:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-content{color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-content h4{color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-content h5{color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-content a{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-content code:not(pre code){background:var(--theme-bg);color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-content blockquote{border-left:3px solid var(--guide-blue);background:var(--theme-bg);color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-code{border:1px solid var(--theme-line-strong);background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-code > div{border-bottom:1px solid var(--theme-line);}
html[data-theme="dark"] .prompt-library-code > div span{color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-code button{border:1px solid var(--theme-line);background:transparent;color:var(--theme-ink);}
html[data-theme="dark"] .prompt-library-code button:hover{border-color:var(--theme-accent);color:var(--theme-accent);}
html[data-theme="dark"] .prompt-library-table{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-table-date{border-bottom:1px solid var(--guide-line);color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-table-date span::after{color:var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-table-date strong{color:var(--guide-ink);}
html[data-theme="dark"] .prompt-library-table th,html[data-theme="dark"] .prompt-library-table td{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .prompt-library-table th{color:var(--guide-blue);}
html[data-theme="dark"] .prompt-library-loading,html[data-theme="dark"] .prompt-library-empty,html[data-theme="dark"] .prompt-library-error{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-footer{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .prompt-library-footer p{color:var(--guide-muted);}
html[data-theme="dark"] .prompt-library-footer a{border-bottom:1px solid var(--guide-blue);color:var(--guide-blue);}
html[data-theme="dark"] .guide-wordmark{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-wordmark-runway{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-wordmark-magnific{background:var(--theme-accent-soft);color:var(--theme-accent);}
html[data-theme="dark"] .guide-wordmark-artlist{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-wordmark-openart{background:var(--theme-accent-soft);color:var(--theme-accent);}
html[data-theme="dark"] .guide-wordmark-firefly{background:var(--theme-surface-soft);color:var(--theme-muted);}
html[data-theme="dark"] .guide-decision-grid article{border-top:1px solid var(--guide-blue);background:var(--theme-bg);}
html[data-theme="dark"] .guide-decision-grid p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-table-date{color:var(--guide-muted);}
html[data-theme="dark"] .guide-table-date span::after{color:var(--guide-line-dark);}
html[data-theme="dark"] .guide-table-date strong{color:var(--guide-ink);}
html[data-theme="dark"] .guide-best-value td{background:var(--theme-accent-soft)!important;}
html[data-theme="dark"] .guide-best-value td:first-child{box-shadow:inset 3px 0 0 var(--guide-blue);}
html[data-theme="dark"] .guide-value-badge{background:var(--guide-blue);color:var(--theme-ink)!important;}
html[data-theme="dark"] .guide-value-callout{border-left:3px solid var(--guide-blue);background:var(--theme-accent-soft);}
html[data-theme="dark"] .guide-value-callout span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-value-callout p{color:var(--guide-muted);}
html[data-theme="dark"] .h3-local{border-top:1px solid var(--guide-blue);}
html[data-theme="dark"] .h3-local-grid{background:var(--guide-line);}
html[data-theme="dark"] .h3-local-grid article,html[data-theme="dark"] .h3-local-grid aside{background:var(--theme-surface);}
html[data-theme="dark"] .h3-local-grid aside{background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .h3-local-grid span{color:var(--guide-blue);}
html[data-theme="dark"] .h3-local-grid aside span{color:var(--theme-accent);}
html[data-theme="dark"] .h3-local-grid p{color:var(--guide-muted);}
html[data-theme="dark"] .h3-local-grid aside p{color:var(--theme-muted);}
html[data-theme="dark"] .guide-prompt-formula{background:var(--guide-line);}
html[data-theme="dark"] .guide-prompt-formula li{background:var(--guide-paper);}
html[data-theme="dark"] .guide-prompt-formula span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-prompt-formula small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-prompt-card{border:1px solid var(--guide-line-dark);background:var(--theme-surface);}
html[data-theme="dark"] .guide-prompt-card header{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-prompt-card header span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-prompt-card button{border:1px solid var(--guide-line-dark);background:transparent;color:var(--guide-blue);}
html[data-theme="dark"] .guide-prompt-card button:hover{background:var(--guide-soft);}
html[data-theme="dark"] .guide-prompt-card button.is-copied{border-color:var(--guide-blue);background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .guide-prompt-card pre{color:var(--theme-ink);}
html[data-theme="dark"] .guide-prompt-negative{background:var(--theme-bg);}
html[data-theme="dark"] .guide-production{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-production article{border-bottom:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-production-number{color:var(--theme-muted);}
html[data-theme="dark"] .guide-production p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-production li{border-top:1px solid var(--guide-line);}
html[data-theme="dark"] .guide-platform-index{background:var(--guide-line);}
html[data-theme="dark"] .guide-platform-index a{background:var(--theme-surface);}
html[data-theme="dark"] .guide-platform-index a:hover{background:var(--theme-bg);color:var(--guide-blue);}
html[data-theme="dark"] .guide-platform-index small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-duration-filters{border:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-duration-filters button{border:0;border-left:1px solid var(--guide-line);background:var(--theme-surface);color:var(--guide-muted);}
html[data-theme="dark"] .guide-duration-filters button:first-child{border-left:0;}
html[data-theme="dark"] .guide-duration-filters button[aria-pressed="true"]{background:var(--guide-blue);color:var(--theme-ink);}
html[data-theme="dark"] .guide-provider-tables{border-top:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-provider-tables details{border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-provider-tables summary::after{color:var(--guide-blue);}
html[data-theme="dark"] .guide-provider-tables summary small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-detail-copy{color:var(--guide-muted);}
html[data-theme="dark"] .guide-budget-example{border:1px solid var(--guide-blue);background:var(--guide-soft);}
html[data-theme="dark"] .guide-budget-example > div > p{color:var(--guide-blue);}
html[data-theme="dark"] .guide-budget-example > div > span{color:var(--guide-muted);}
html[data-theme="dark"] .guide-budget-numbers p{border-left:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-budget-numbers span{color:var(--guide-blue);}
html[data-theme="dark"] .guide-budget-numbers small{color:var(--guide-muted);}
html[data-theme="dark"] .guide-troubleshooting{background:var(--guide-line);}
html[data-theme="dark"] .guide-troubleshooting article{background:var(--guide-paper);}
html[data-theme="dark"] .guide-troubleshooting p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-publish-check{border-block:1px solid var(--guide-blue);}
html[data-theme="dark"] .guide-publish-check > div:first-child > p{color:var(--guide-blue);}
html[data-theme="dark"] .guide-publish-check > div:first-child span{color:var(--guide-muted);}
html[data-theme="dark"] .guide-check-options label{border-bottom:1px solid var(--guide-line);color:var(--theme-ink);}
html[data-theme="dark"] .guide-summary{border:0;background:var(--theme-surface-soft);color:var(--theme-ink);}
html[data-theme="dark"] .guide-summary .guide-label{color:var(--theme-accent);}
html[data-theme="dark"] .guide-summary > p:not(.guide-label){color:var(--theme-accent);}
html[data-theme="dark"] .guide-summary-actions a{border:1px solid var(--theme-line);color:var(--theme-ink);}
html[data-theme="dark"] .guide-summary-actions a:first-child{border-color:var(--theme-accent);background:var(--theme-accent-strong);color:var(--theme-ink);}
html[data-theme="dark"] .guide-sources > p{color:var(--guide-muted);}
html[data-theme="dark"] .guide-sources li{border-bottom:1px solid var(--guide-line);color:var(--theme-muted);}
html[data-theme="dark"] .guide-sources a{color:var(--theme-ink);}
html[data-theme="dark"] .guide-sources a:hover{color:var(--guide-blue);}
html[data-theme="dark"] .guide-footer{border-top:1px solid var(--guide-line);background:var(--theme-surface);}
html[data-theme="dark"] .guide-footer > div{color:var(--guide-muted);}
html[data-theme="dark"] .guide-footer a:hover{color:var(--guide-blue);}
@media (max-width: 1080px){
html[data-theme="dark"] .guide-route li{border-right:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .guide-route li:last-child{border-right:0;}
}
@media (max-width: 760px){
html[data-theme="dark"] .guide-hero{background:var(--guide-soft);}
html[data-theme="dark"] .guide-route li{border-right:0;}
html[data-theme="dark"] .guide-definitions article:nth-child(odd){border-right:0;}
html[data-theme="dark"] .case-timing-track > div{border-right:0;border-bottom:1px solid var(--guide-line-dark);}
html[data-theme="dark"] .case-timing-track > div:last-child{border-bottom:0;}
html[data-theme="dark"] .prompt-library-stats div + div{border-left:0;}
html[data-theme="dark"] .prompt-library-layout{border-inline:0;}
html[data-theme="dark"] .prompt-library-index{border-right:0;}
html[data-theme="dark"] .prompt-library-code{border-inline:0;}
}
@media (max-width: 420px){
html[data-theme="dark"] .case-facts div:nth-child(odd){border-right:0;}
}

/* Explicit art-direction decisions override the legacy colours above. */
html[data-theme="dark"]{
 --bg:var(--theme-bg);--bg-soft:var(--theme-subtle);--surface:var(--theme-surface);--surface-light:var(--theme-surface-soft);
 --text:var(--theme-ink);--muted:var(--theme-muted);--quiet:var(--theme-quiet);--line:var(--theme-line);--line-strong:var(--theme-line-strong);
 --accent:var(--theme-ink);--accent-cool:var(--theme-accent);--accent-soft:var(--theme-accent-soft);--ai-accent:var(--theme-accent);
 --rp-ink:var(--theme-ink);--rp-muted:var(--theme-muted);--rp-line:var(--theme-line);--rp-accent:var(--theme-accent);
 --guide-bg:var(--theme-bg);--guide-paper:var(--theme-surface);--guide-soft:var(--theme-accent-soft);--guide-blue:var(--theme-accent);--guide-blue-dark:var(--theme-accent);
 --guide-ink:var(--theme-ink);--guide-muted:var(--theme-muted);--guide-line:var(--theme-line);--guide-line-dark:var(--theme-line-strong);
 --ai-ground:var(--theme-bg);--ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);
}
html[data-theme="dark"] body.light-theme{background:var(--theme-bg)!important;color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(.ai-directory,.ai-zone),html[data-theme="dark"] body.light-theme.ai-page{
 --ai-ink:var(--theme-ink);--ai-muted:var(--theme-muted);--ai-cyan:var(--theme-accent);--ai-line:var(--theme-line);--ai-ground:var(--theme-bg);--ai-accent:var(--theme-accent);
}
html[data-theme="dark"] body.light-theme .ai-zone::before{background:#141d2b!important}
html[data-theme="dark"] body.light-theme #ai-reels{--ai-gallery-line:var(--theme-line);--ai-gallery-ink:var(--theme-ink);--ai-accent:var(--theme-accent)}
html[data-theme="dark"] body.light-theme :is(.editorial-button,.ai-button){background:var(--theme-button);color:var(--theme-button-text)!important;border-color:var(--theme-button)}
html[data-theme="dark"] body.light-theme :is(.editorial-button,.ai-button):hover{background:var(--theme-button-hover);border-color:var(--theme-button-hover)}
html[data-theme="dark"] body.light-theme :is(.portfolio-intro h1,.ai-hero h1){color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(.portfolio-intro h1>span,.ai-hero h1 em){color:#a7b7ce}
html[data-theme="dark"] body.light-theme .live-dot{background:var(--theme-accent)}
html[data-theme="dark"] body.light-theme ::selection{background:#345580;color:#fff}
html[data-theme="dark"] body.light-theme :is(a,button,input,summary):focus-visible{outline-color:var(--theme-accent)!important}
html[data-theme="dark"] body.light-theme :is(.client-logo img,.brand-strip img){filter:grayscale(1) brightness(0) invert(.9)!important;opacity:.83}
html[data-theme="dark"] body.light-theme .client-logo-name{color:var(--theme-muted)!important}
/* The AI catalog uses the marks directly on the dark surface, without white tiles. */
html[data-theme="dark"] body.light-theme .ai-logo img{
 background:transparent;border-radius:0;box-shadow:none;object-fit:contain;
}
/* These two source files contain a white canvas. In dark mode it is optically
   removed while the black symbol becomes white. */
html[data-theme="dark"] body.light-theme .ai-logo img:is([src$="/openai.png"],[src$="/elevenlabs.png"]){
 filter:invert(1);mix-blend-mode:screen;
}
/* Compact utility icons outside the catalog still need their neutral plate. */
html[data-theme="dark"] :is(.rp-tool-icons img,.prompt-library-brand img){
 background:#e9eef5;border-radius:5px;object-fit:contain;
}
html[data-theme="dark"] .rp-tool-icons img{box-shadow:0 0 0 2px #e9eef5}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-meta h3{color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-meta p{color:var(--theme-muted)}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-credits strong{color:#d5e0f1}
html[data-theme="dark"] body.light-theme :is(#musicGrid,#longGrid) .music-project-credits span{color:var(--theme-quiet)}
html[data-theme="dark"] .reel-dialog{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme="dark"] .reel-dialog::backdrop{background:#02050cc9}
html[data-theme="dark"] .reel-dialog-heading h2{color:var(--theme-ink)}
html[data-theme="dark"] .reel-dialog-heading span{color:var(--theme-muted)}
html[data-theme="dark"] .reel-dialog-close{background:var(--theme-hover);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme="dark"] body.light-theme .ai-filters button[aria-pressed="true"]{background:var(--theme-accent-soft);color:var(--theme-accent);border-color:var(--theme-ai-line)}
html[data-theme="dark"] .guide-page :is(input,select,textarea){color:var(--theme-ink);background:var(--theme-surface);border-color:var(--theme-line-strong);caret-color:var(--theme-accent)}
html[data-theme="dark"] .guide-page input::placeholder{color:var(--theme-quiet);opacity:1}
html[data-theme="dark"] .guide-page :is(.guide-prompt-card pre,.prompt-library-code pre){background:#0c121c;color:#dbe7f7}
html[data-theme="dark"] .guide-page .guide-calculator{border:1px solid #304663;background:#152238;color:#f0f4fa}
html[data-theme="dark"] .guide-page .guide-calculator-fields input{background:transparent;color:#f0f4fa;border-color:#58708f}
html[data-theme="dark"] .guide-page .guide-progress span{background:var(--theme-accent)}
html[data-theme="dark"] body.light-theme :is(.guide-summary-actions a,.guide-download){background:var(--theme-accent-soft);color:var(--theme-ink);border-color:var(--theme-ai-line)}
/* Footer palette wins over legacy generic footer styles. */
body.light-theme .rp-footer{background:var(--theme-footer);color:var(--theme-ink);border-color:var(--theme-line)}
html[data-theme="dark"] body.light-theme .rp-footer{background:var(--theme-footer);color:var(--theme-ink);border-color:var(--theme-line)}
/* High-specificity legacy components: exact exceptions keep each state readable. */
html[data-theme="dark"] body.light-theme .clients--featured .client-logo img,
html[data-theme="dark"] body.light-theme #contact .client-logo img,
html[data-theme="dark"] body.light-theme #contact .clients--secondary .client-logo img{
 filter:grayscale(1) brightness(0) invert(.91)!important;opacity:.84!important;
}
html[data-theme="dark"] body.light-theme .guide-callout{background:#1b2c48;color:var(--theme-ink)}
html[data-theme="dark"] body.light-theme :is(.guide-skip,.case-timing-use,.guide-value-badge){background:#345fa7;color:#fff!important}
html[data-theme="dark"] body.light-theme .prompt-library-filters button:is(:hover,[aria-pressed="true"]),
html[data-theme="dark"] body.light-theme .guide-duration-filters button[aria-pressed="true"],
html[data-theme="dark"] body.light-theme .guide-prompt-card button.is-copied{
 background:var(--theme-accent-soft);color:var(--theme-accent);border-color:var(--theme-ai-line);
}
html[data-theme="dark"] :is(.case-tool>img,.case-pipeline-list img,.prompt-library-index-brand img){background:#e9eef5;border-radius:4px}
/* Mobile/layout patches also style the homepage AI cards. Override their light
   backing surfaces without changing the video frame, crop or card geometry. */
html[data-theme="dark"] body.light-theme #ai-reels .ai-grid .video-card,
html[data-theme="dark"] body.light-theme #ai-reels .ai-grid .video-card:is(:hover,:focus-within){background:transparent!important}
html[data-theme="dark"] body.light-theme #ai-reels .video-card .model-badge{background:var(--theme-surface)!important;color:var(--theme-ink)!important}
html[data-theme="dark"] body.light-theme .ai-skip{background:#345fa7;color:#fff!important}
