/* Shared theme controls. Night mode keeps the site's original palette. */
:root{--theme-control-bg:#101a2d;--theme-menu-shadow:0 16px 45px #0005}
:root[data-theme="light"]{--bg:#ffffff;--panel:#ffffff;--line:#e2e8f0;--text:#17263c;--muted:#64748b;--blue:#2563eb;--cyan:#0d9488;--theme-control-bg:#f8fafc;--theme-menu-shadow:0 16px 45px #17325320}
.header-actions{display:flex;align-items:center;gap:14px;margin-left:auto;flex-shrink:0}
.theme-switcher{position:relative;flex-shrink:0}
.theme-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:var(--theme-control-bg);color:var(--text);font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}
.theme-toggle>[data-theme-icon]{font-size:17px;line-height:1;width:19px;text-align:center;color:var(--cyan)}
.theme-chevron{color:var(--muted);font-size:12px;line-height:1}
.theme-menu{position:absolute;right:0;top:calc(100% + 12px);z-index:80;width:218px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:var(--theme-menu-shadow)}
.theme-menu-title{display:block;padding:8px 10px 10px;font-size:10px;letter-spacing:1px;color:var(--muted)}
.theme-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 11px;margin:2px 0;border-radius:6px;background:transparent;color:var(--text);font:inherit;font-size:12px;cursor:pointer;text-align:left}
.theme-menu button>span{width:18px;text-align:center;font-size:16px;color:var(--muted)}
.theme-menu button:hover{background:var(--theme-control-bg)}
.theme-menu button[aria-pressed="true"]{background:#2e7cf61c;color:#7cb5ff}
.theme-menu button[aria-pressed="true"]:after{content:'✓';margin-left:auto;color:inherit}
.theme-menu small{display:block;padding:10px 9px 6px;border-top:1px solid var(--line);margin-top:6px;color:var(--muted);font-size:10px}

/* Daytime surfaces and text, including the application and image dialog. */
:root[data-theme="light"] .site-header{background:#fffffff0}
:root[data-theme="light"] .brand-logo{filter:brightness(0) saturate(100%);opacity:.88}
:root[data-theme="light"] .desktop-nav{color:#52657d}
:root[data-theme="light"] .desktop-nav a:is(:hover,.active){color:#1d4ed8}
:root[data-theme="light"] .menu-toggle span{background:#334155}
:root[data-theme="light"] .mobile-nav{background:#fff}
:root[data-theme="light"] .mobile-nav :is(a,button){color:#334155}
:root[data-theme="light"] .button:not(.button-ghost){color:#fff;border-color:#2563eb}
:root[data-theme="light"] .button:not(.button-ghost):hover{background:#1d4ed8}
:root[data-theme="light"] .button-ghost{background:#fff;border-color:#cbd5e1;color:#334155}
:root[data-theme="light"] .button-ghost:hover{background:#eff6ff}
:root[data-theme="light"] .theme-menu button[aria-pressed="true"]{background:#eff6ff;color:#1d4ed8}
:root[data-theme="light"] :is(button,a,summary,input,select,[tabindex]):focus-visible{outline-color:#2563eb}
:root[data-theme="light"] .hero-backdrop{background:linear-gradient(90deg,#fff 0%,#fffffff2 40%,#ffffffcc 100%),url('assets/image1.jpeg') right center/cover no-repeat;opacity:1}
:root[data-theme="light"] .hero:after{background:linear-gradient(transparent,#fff)}
:root[data-theme="light"] .gradient-text{background-image:linear-gradient(100deg,#2563eb,#0d9488)}
:root[data-theme="light"] :is(.eyebrow,.small-label,.section-number){color:#2563a6}
:root[data-theme="light"] .hero-subtitle{color:#334e72}
:root[data-theme="light"] :is(.hero-description,.hero-notes,.hero-bottom,.orbit-label,.art-coordinate){color:#60748e}
:root[data-theme="light"] .hero-bottom a{color:#456381}
:root[data-theme="light"] .art-node{background:linear-gradient(115deg,#fff,#edf6ff);border-color:#bdd3e7;box-shadow:0 10px 28px #14468315; color:#28496d}
:root[data-theme="light"] .art-node small{color:#617d99}
:root[data-theme="light"] .art-node svg{color:#16869b}
:root[data-theme="light"] :is(.overview-strip,.intelligence-section,.scenario-section,.site-footer){background:#f8fafc}
:root[data-theme="light"] :is(.overview-grid strong span,.overview-grid p){color:#64748b}
:root[data-theme="light"] .overview-message b{color:#334e72}
:root[data-theme="light"] .section-heading h2 span{color:#526981}
:root[data-theme="light"] .platform-panel{background:#fff;border-color:#dce5ef;box-shadow:0 12px 35px #203a5810}
:root[data-theme="light"] .platform-tabs{background:#f3f7fc}
:root[data-theme="light"] .platform-tabs button{color:#526981}
:root[data-theme="light"] .platform-tabs button:hover{background:#eaf1fb;color:#1d4ed8}
:root[data-theme="light"] .platform-tabs button[aria-selected="true"]{background:#e7f0ff;color:#1d4ed8}
:root[data-theme="light"] .feature-tags span{background:#eff6ff;color:#345a87;border-color:#d8e7fb}
:root[data-theme="light"] .text-link{color:#2563eb}
:root[data-theme="light"] .text-link:hover{color:#0f766e}
:root[data-theme="light"] .flow-clients span{background:#eff6ff;color:#385b85;border-color:#c6d8ee}
:root[data-theme="light"] .flow-hub{color:#fff}
:root[data-theme="light"] .flow-services span{background:#edf9f7;color:#2b6663;border-color:#b2dcd7}
:root[data-theme="light"] :is(.platform-flow>small,.intelligence-visual>.eyebrow,.ai-caption,.ai-feature p){color:#64748b}
:root[data-theme="light"] .ai-tag{background:#fff;color:#345a79;border-color:#c5dce8;box-shadow:0 4px 18px #2456780c}
:root[data-theme="light"] .ai-feature>span{color:#64748b}
:root[data-theme="light"] .ecosystem-tabs button{background:#fff;color:#4c627b;border-color:#dce5ef}
:root[data-theme="light"] .ecosystem-tabs button:hover{background:#f0f7ff;color:#1d4ed8}
:root[data-theme="light"] .ecosystem-tabs button[aria-selected="true"]{background:linear-gradient(140deg,#eff6ff,#e9f9f6);color:#1e5c81;border-color:#39a7ad}
:root[data-theme="light"] .resource-panel{background:radial-gradient(ellipse at 80% 60%,#e1f2fa 0%,#f0f7fc 40%,#f8fbff 80%);border-color:#d7e4ef}
:root[data-theme="light"] .resource-copy>p{color:#526981}
:root[data-theme="light"] .resource-tags span{color:#237b86;border-color:#bdd8dc}
:root[data-theme="light"] :is(.resource-counter,.resource-counter strong,.preview-caption,.preview-side-label){color:#526981}
:root[data-theme="light"] .preview-orbit{border-color:#b7d6e4;box-shadow:0 0 0 40px #d8ebf533,0 0 0 80px #d8ebf51a}
:root[data-theme="light"] .phone-preview{box-shadow:0 18px 45px #204a7430}
:root[data-theme="light"] .category-overview{background:radial-gradient(ellipse at top,#fff,#f0f8fc 70%);border-color:#c3dce8;box-shadow:0 18px 40px #1c507b15}
:root[data-theme="light"] :is(.category-overview p,.category-overview-note){color:#607991}
:root[data-theme="light"] .category-overview strong{color:#234e75}
:root[data-theme="light"] .ecosystem-principles>span{color:#64748b}
:root[data-theme="light"] .ecosystem-principles b{color:#455f7b}
:root[data-theme="light"] .scenario-grid article{background:#fff;border-color:#dce5ef}
:root[data-theme="light"] .scenario-grid article.featured{background:linear-gradient(150deg,#eaf3ff,#fff 70%);border-color:#a9c8ef}
:root[data-theme="light"] :is(.scenario-index,.scenario-grid p,.scenario-grid ul,.lifecycle p){color:#60748e}
:root[data-theme="light"] .scenario-icon{color:#357fc2}
:root[data-theme="light"] .cooperation-banner{background:linear-gradient(100deg,#eef5fffa,#f2f9fff0),url('assets/image3.jpeg') center/cover;border-color:#c1d6ef}
:root[data-theme="light"] .cooperation-banner p{color:#526b88}
:root[data-theme="light"] .cooperation-steps>div>span{border-color:#a6c2df;color:#376b9c}
:root[data-theme="light"] :is(.cooperation-steps p,.faq details p,.footer-main>p){color:#64748b}
:root[data-theme="light"] .cooperation-steps{border-color:#cbdcec}
:root[data-theme="light"] .back-top{color:#456381;border-color:#cbd5e1}
:root[data-theme="light"] .footer-main{border-color:#e2e8f0}
:root[data-theme="light"] .footer-bottom{color:#64748b}
:root[data-theme="light"] :is(.image-dialog,.plan-dialog){background:#fff;border-color:#cbd5e1;box-shadow:0 40px 150px #1e3a5f40}
:root[data-theme="light"] dialog::backdrop{background:#0f254c66}
:root[data-theme="light"] .dialog-close{background:#edf2f8;color:#3c5673}
:root[data-theme="light"] :is(.dialog-intro,.form-note,.plan-dialog label>span,.plan-dialog legend>span){color:#64748b}
:root[data-theme="light"] :is(.plan-dialog form>label,.plan-dialog legend){color:#38536e}
:root[data-theme="light"] :is(.plan-dialog input:not([type="checkbox"]),.plan-dialog select){background:#fff;color:#17263c;border-color:#cbd5e1}
:root[data-theme="light"] .checkbox-grid label{background:#f1f5f9}

:root[data-theme="light"] :is(.header-label,.back-home,.apply-heading p,.panel-intro p,.catalog-status){color:#64748b}
:root[data-theme="light"] .application-badge{color:#356d9e;border-color:#cfdfef;background:#eff6ff}
:root[data-theme="light"] .apply-panel{box-shadow:0 10px 40px #2847690a}
:root[data-theme="light"] .field label{color:#38536e}
:root[data-theme="light"] .field input{background:#f8fafc;color:#17263c;border-color:#cbd5e1}
:root[data-theme="light"] .field input::placeholder{color:#64748b}
:root[data-theme="light"] .field input:focus{background:#fff;border-color:#2563eb}
:root[data-theme="light"] em{color:#1e7a89}
:root[data-theme="light"] .selection-caption span{color:#168092}
:root[data-theme="light"] .choice-card{background:#f8fafc;border-color:#dce5ef;color:#334c68}
:root[data-theme="light"] .choice-card small{color:#64748b}
:root[data-theme="light"] .choice-card:has(input:checked){background:linear-gradient(145deg,#eaf3ff,#effbfa);border-color:#3b82f6;box-shadow:inset 0 0 0 1px #3b82f615}
:root[data-theme="light"] .choice-card:has(input:checked) b{color:#1e5c9c}
:root[data-theme="light"] :is(.privacy-note,.submit-note,.apply-footer){color:#64748b}
:root[data-theme="light"] .field-error{color:#a32135}
:root[data-theme="light"] .form-error:not(:empty){background:#fff1f2;border-color:#fecdd3;color:#a32135}
:root[data-theme="light"] .success-panel{background:radial-gradient(ellipse at top,#e7f9f1,transparent 70%),#fff;border-color:#b7dfd3}
:root[data-theme="light"] .success-icon{background:#e7f7f1;border-color:#9dcec0;color:#137a64}
:root[data-theme="light"] .success-panel>p{color:#526b78}
:root[data-theme="light"] .receipt-box{background:#f5f9fc;border-color:#d6e3ed}
:root[data-theme="light"] :is(.receipt-box span,.receipt-box small){color:#526981}
:root[data-theme="light"] .receipt-box strong{color:#2563a6}

@media(max-width:950px){.header-actions{gap:10px}.theme-toggle{padding:8px;min-width:38px}.theme-toggle-label,.theme-chevron{display:none}}
@media(max-width:540px){.header-actions{gap:10px}.theme-menu{width:205px}.back-home span{margin-left:4px}}
@media(max-width:400px){.header-actions .header-cta{display:none}}
@media(prefers-reduced-motion:no-preference){body,.site-header,.apply-panel,.theme-toggle,.theme-menu{transition:background-color .18s ease,color .18s ease,border-color .18s ease}}
