/* Theme controls sit inside the existing navigation without changing its links. */
.app-header,.product-header{position:relative}
.ezen-theme-toggle{position:absolute;z-index:20;top:50%;right:152px;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #c7d9ec;border-radius:50%;background:#ffffffd9;color:#17599f;box-shadow:0 4px 16px #10386713;cursor:pointer}
.ezen-theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ezen-theme-toggle:hover{background:#e7f3ff;border-color:#88baf1}
.ezen-theme-toggle:focus-visible{outline:3px solid #348ef3;outline-offset:3px}
.site-footer{color:#526986}
.site-footer a,.site-footer p,.site-footer span{color:#526986}
.scenario-chapter__copy small{color:#536f91}
.story-eyebrow{color:#456c98!important}
.final-cta .story-eyebrow{color:#94c9ff!important}
body>.ezen-theme-toggle{position:fixed;top:auto;right:22px;bottom:22px;transform:none;box-shadow:0 8px 28px #071b4450}
@media(max-width:900px){.app-header .ezen-theme-toggle{right:65px}}
@media(max-width:360px){.app-header .ezen-theme-toggle{right:58px;width:38px;height:38px}}

/* Small screen refinements. Keep horizontally scrollable product tracks intact. */
@media(max-width:430px){
  .app-header .brand{min-width:0}
  .app-header .brand img{max-width:100%}
  .detail-page,.home-page,.product-page{min-width:0}
  .detail-hero h1,.hero-content h1,.about-v3 h1{overflow-wrap:anywhere}
  .about-v3__hero-actions a{min-height:44px}
  .about-v3__connect-item{min-width:0}
  .about-v3__connect-item img{max-width:38%;height:auto;aspect-ratio:1}
  .about-v3__connect-item div{overflow-wrap:anywhere}
}
@media(max-width:360px){.about-v3__hero h1{font-size:33px;letter-spacing:-.055em}.about-v3__hero h1 em{font-size:29px;overflow-wrap:normal}}

html[data-theme="dark"]{color-scheme:dark;background:#081425}
html[data-theme="dark"] body{background:#081425;color:#e8f1ff}
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .detail-page,
html[data-theme="dark"] .product-page{background:#081425;color:#e8f1ff}
html[data-theme="dark"] .home-page{background:radial-gradient(65% 38% at 70% 12%,#123456 0%,#081425 90%)!important}
html[data-theme="dark"] .yz-home-tech{background:linear-gradient(180deg,#081425,#0d2037 55%,#0b1b30)!important;color:#e8f1ff}
html[data-theme="dark"] .site-footer{background:#0b1c31!important;color:#a8bfd8!important}
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer strong{color:#cde3fa!important}
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer span{color:#b7cee5!important}
html[data-theme="dark"] .site-footer em{color:#8bcaff!important}
html[data-theme="dark"] .story-eyebrow{color:#87c6ff!important}
html[data-theme="dark"] .scenario-chapter__copy small{color:#b9cee4!important}
html[data-theme="dark"] .home-page{--ink:#e8f1ff;--muted:#a8bed8;--line:#25405d}
html[data-theme="dark"] .detail-page{--ink:#e8f1ff;--muted:#a8bed8;--line:#25405d}
html[data-theme="dark"] .about-v3{--ink:#e8f1ff;--muted:#b2c5da;--line:#2a4562;--surface:#10243c;color:var(--ink)}
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .product-header{background:#10243def!important;border-color:#2c4664!important;box-shadow:0 8px 30px #020b1b55!important}
html[data-theme="dark"] .app-header .main-nav{background:#10243d!important;border-color:#2c4664!important}
html[data-theme="dark"] .app-header .main-nav a,
html[data-theme="dark"] .product-header nav a{color:#d9e8fb!important}
html[data-theme="dark"] .app-header .main-nav a:hover,
html[data-theme="dark"] .product-header nav a:hover{color:#77bfff!important}
html[data-theme="dark"] .app-header .brand,
html[data-theme="dark"] .product-header__brand{color:#eaf4ff!important}
html[data-theme="dark"] .brand__copy strong,
html[data-theme="dark"] .product-header__brand strong{color:#eaf4ff!important}
html[data-theme="dark"] .brand__copy small,
html[data-theme="dark"] .product-header__brand small{color:#a8c5e1!important}
html[data-theme="dark"] .menu-toggle{color:#dcecff!important}
html[data-theme="dark"] .ezen-theme-toggle{background:#1a3553;color:#ffcf7c;border-color:#426180}
html[data-theme="dark"] .ezen-theme-toggle:hover{background:#284a6b}
html[data-theme="dark"] .header-action{background:#173654!important;color:#dcefff!important;border-color:#508bcb!important}

html[data-theme="dark"] .hero-content,
html[data-theme="dark"] .detail-hero,
html[data-theme="dark"] .detail-content,
html[data-theme="dark"] .about-v3__hero,
html[data-theme="dark"] .about-v3__team,
html[data-theme="dark"] .about-v3__practice,
html[data-theme="dark"] .about-v3__connect,
html[data-theme="dark"] .lens-maintenance__message{color:#e8f1ff}
html[data-theme="dark"] .hero-content__title,
html[data-theme="dark"] .hero-content__title span:first-child{color:#eaf3ff!important}
html[data-theme="dark"] .hero-content__summary,
html[data-theme="dark"] .yz-home-tech__summary{color:#b8cce2!important}
html[data-theme="dark"] .yz-home-tech__eyebrow,
html[data-theme="dark"] .hero-content__eyebrow{color:#76bbff!important}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4{color:#eaf3ff}
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] small{border-color:#2c4664}
html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .detail-hero p,
html[data-theme="dark"] .detail-content p,
html[data-theme="dark"] .about-v3__lead,
html[data-theme="dark"] .about-v3__section-heading>p,
html[data-theme="dark"] .about-v3__practice-intro>p:last-child,
html[data-theme="dark"] .about-v3__practice-list p,
html[data-theme="dark"] .about-v3__connect-head>p:last-child,
html[data-theme="dark"] .lens-maintenance__message p{color:#b6c9df}
html[data-theme="dark"] .story-page,
html[data-theme="dark"] .scenario-story,
html[data-theme="dark"] .demo-story,
html[data-theme="dark"] .detection-showcase{background:#0d1c30!important;color:#e8f1ff}
html[data-theme="dark"] .scenario-story{background:#10243b!important}
html[data-theme="dark"] .detection-showcase{border-color:#2c4664!important}
html[data-theme="dark"] .ezen-optical-secondary,
html[data-theme="dark"] .lens-maintenance__secondary{background:#18324d!important;color:#e8f1ff!important;border-color:#41617e!important}

html[data-theme="dark"] .about-v3__team-statement{background:linear-gradient(120deg,#132a43,#173858);border-color:#355574;box-shadow:0 16px 42px #0003}
html[data-theme="dark"] .about-v3__team-statement>p{color:#e2efff}
html[data-theme="dark"] .about-v3__team-statement>div,
html[data-theme="dark"] .about-v3__team-statement span{border-color:#355574}
html[data-theme="dark"] .about-v3__team-statement span,
html[data-theme="dark"] .about-v3__facts strong{color:#79c3ff}
html[data-theme="dark"] .about-v3__practice-list h3{color:#e5f1ff}
html[data-theme="dark"] .about-v3__source,
html[data-theme="dark"] .about-v3__connect-item small{color:#a9bed5}
html[data-theme="dark"] .about-v3__source a,
html[data-theme="dark"] .about-v3__quiet-link{color:#81c4ff}
html[data-theme="dark"] .about-v3__connect-item{background:#11263e;border-color:#36516e}
html[data-theme="dark"] .about-v3__connect-item--mail{background:#142c47}
html[data-theme="dark"] .about-v3__connect-item img{background:#fff}

html[data-theme="dark"] .yizhen-performance-card,
html[data-theme="dark"] .yizhen-model-tier,
html[data-theme="dark"] .detail-notice,
html[data-theme="dark"] .lens-maintenance-panel{background:#132942!important;color:#e8f1ff!important;border-color:#355574!important;box-shadow:0 14px 38px #0003!important}
html[data-theme="dark"] .yizhen-performance-card p,
html[data-theme="dark"] .yizhen-model-tier p,
html[data-theme="dark"] .detail-notice p,
html[data-theme="dark"] .lens-maintenance-panel p{color:#b7cbe0!important}
html[data-theme="dark"] .yizhen-model-tier__apply{background:#1b3955!important;color:#e7f2ff!important;border-color:#527390!important}
html[data-theme="dark"] .yizhen-model-tier__visual{opacity:.36;mix-blend-mode:screen}
html[data-theme="dark"] .yizhen-model-tier__copy{position:relative;z-index:2}
html[data-theme="dark"] .yizhen-model-tier__copy h3,
html[data-theme="dark"] .yizhen-model-tier__question,
html[data-theme="dark"] .yizhen-model-tier__state{color:#e6f2ff!important}
html[data-theme="dark"] .yizhen-products-performance{color:#e8f1ff!important}
html[data-theme="dark"] .yizhen-products-performance h2{color:#e8f1ff!important}
html[data-theme="dark"] .yizhen-products-performance h2 strong{color:#77baff!important}
html[data-theme="dark"] .yizhen-products-performance p{color:#b7cbe0!important}
html[data-theme="dark"] .detail-hero__actions a:nth-child(2){background:#1a3553!important;color:#e5f1ff!important;border-color:#416a90!important}
html[data-theme="dark"] .analysis-stage__plane{background:#183650!important;border-color:#49708c!important}
html[data-theme="dark"] .product-header__channels{background:#1b3753!important}
html[data-theme="dark"] .product-header__channels a.is-active{background:#2b5680!important;color:#fff!important}
html[data-theme="dark"] .product-header__back{background:#1d3a59!important;border-color:#426485!important;color:#e8f1ff!important}
html[data-theme="dark"] .analysis-stage__labels button b,
html[data-theme="dark"] .analysis-stage__labels button strong{color:#82c4ff!important}
html[data-theme="dark"] .analysis-stage__labels button span{color:#b1c7e0!important}
html[data-theme="dark"] .lens-maintenance__message h1{color:#e8f1ff!important}
html[data-theme="dark"] .lens-maintenance-panel__header{background:linear-gradient(180deg,#183550,#142b45)!important;border-color:#345773!important}
html[data-theme="dark"] .lens-maintenance-panel__body{background:radial-gradient(circle at 50% 38%,#1e476a,#10253d 70%)!important}
html[data-theme="dark"] .lens-maintenance-panel__identity strong,
html[data-theme="dark"] .lens-maintenance-panel__body h2{color:#e8f1ff!important}
html[data-theme="dark"] .lens-maintenance-panel__description{color:#bad0e7!important}
html[data-theme="dark"] .detail-next{background:#06152b;color:#e8f1ff}
html[data-theme="dark"] .detail-next h2{color:#fff}
html[data-theme="dark"] .cctv-feature{background:#0d1c30!important;color:#e8f1ff}
html[data-theme="dark"] .cctv-feature__clip{background:#112842!important;border-color:#365674!important}
html[data-theme="dark"] .cctv-feature__broadcast span{color:#85c4ff!important}
html[data-theme="dark"] .cctv-feature__clip-copy>span{color:#b5cce4!important}
html[data-theme="dark"] .cctv-feature p,
html[data-theme="dark"] .cctv-feature small{color:#b4c7dd}
html[data-theme="dark"] .site-version-badge,
html[data-theme="dark"] .product-header__beta{background:#294c70!important;color:#d9edff!important;border-color:#47749b!important}
html[data-theme="dark"] .yizhen-model-tier strong>em,
html[data-theme="dark"] .lens-maintenance__eyebrow span{color:#8bcaff!important}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{background:#122b46;color:#e8f1ff;border-color:#41617e}
html[data-theme="dark"] :focus-visible{outline-color:#72baff}
