/* Light surfaces and navigation; photographic factory assets stay original. */
html[data-theme=light] #workspace{background:#f2f6fa;color:#172f43}
html[data-theme=light] #sidebar{background:#fff;color:#172f43;border-color:#d6e1ea}
html[data-theme=light] #sidebar nav{scrollbar-color:#b6cbd9 transparent}
html[data-theme=light] #sidebar nav [data-menu-group]{--nav-accent:#176d84;--nav-rgb:23,109,132;--nav-text:#23445b}
html[data-theme=light] #sidebar nav [data-menu-group="0"]{--nav-accent:#176d84;--nav-rgb:23,109,132;--nav-text:#23445b}
html[data-theme=light] #sidebar nav [data-menu-group="1"]{--nav-accent:#7151a4;--nav-rgb:113,81,164;--nav-text:#3c3557}
html[data-theme=light] #sidebar nav [data-menu-group="2"]{--nav-accent:#835817;--nav-rgb:131,88,23;--nav-text:#54442c}
html[data-theme=light] #sidebar nav [data-menu-group="3"]{--nav-accent:#355ca3;--nav-rgb:53,92,163;--nav-text:#2c4267}
html[data-theme=light] #sidebar nav [data-menu-group="4"]{--nav-accent:#176b62;--nav-rgb:23,107,98;--nav-text:#274d48}
html[data-theme=light] #sidebar nav [data-menu-group="5"]{--nav-accent:#426399;--nav-rgb:66,99,153;--nav-text:#2e466b}
html[data-theme=light] #sidebar nav [data-menu-group="6"]{--nav-accent:#54781f;--nav-rgb:84,120,31;--nav-text:#3f542d}
html[data-theme=light] #sidebar nav details[data-menu-group] button:hover{color:#172f43;background:rgba(var(--nav-rgb),.1)}
html[data-theme=light] #sidebar nav details[data-menu-group] button.selected{color:#172f43;background:linear-gradient(90deg,rgba(var(--nav-rgb),.15),rgba(var(--nav-rgb),.05))}
html[data-theme=light] #sidebar :is(.sidebar-clock,.sidebar-account span,.local-foot,.tenant-block span){color:#536b7d}
html[data-theme=light] #sidebar :is(.sidebar-user,.tenant-block){border-color:#d6e1ea}
html[data-theme=light] #sidebar .sidebar-account b{color:#172f43}
html[data-theme=light] #sidebar .sidebar-user #signout{background:#edf4f8;border-color:#cbdce7;box-shadow:none}
html[data-theme=light] #sidebar #signout :is(.signout-icon,.signout-label){color:#23445b}
html[data-theme=light] #sidebar .sidebar-user #signout:hover{background:#fff0f2;border-color:#dda5ae}
html[data-theme=light] #sidebar #signout:hover :is(.signout-icon,.signout-label){color:#a62e42}
html[data-theme=light] #sidebar :is(.sidebar-home,#signout):focus-visible{outline-color:#176d84}
html[data-theme=light] .mobile-navigation-head>span{color:#536b7d}
html[data-theme=light] .mobile-navigation-close{background:#edf4f8;color:#23445b;border-color:#cbdce7}
html[data-theme=light] .mobile-navigation-close:hover{background:#dbeef5}
html[data-theme=light] .mobile-navigation-close:focus-visible{outline-color:#176d84}
html[data-theme=light] .workspace-header{background:#ffffffef;border-color:#d6e1ea}
html[data-theme=light] .breadcrumb,html[data-theme=light] .header-right{color:#536b7d}
html[data-theme=light] .breadcrumb h1{color:#172f43}
html[data-theme=light] .appearance-toggle{background:#edf4f8;color:#156a84;border-color:#c4d9e5}
html[data-theme=light] .appearance-toggle::after{background:#fff;color:#172f43;border-color:#c4d9e5}
html[data-theme=light] #mobileMenu,html[data-theme=light] .notice-button{background:#edf4f8;color:#23445b;border-color:#cbdce7}
html[data-theme=light] .notice-button b{background:#d7eaf2;color:#176d84}
html[data-theme=light] :is(.floor-card,.area-detail,.mini-panel,.table-panel,.suite-panel,.int-panel,.operator-job,.integration-status,.planning-order,.machine-dialog,.main-dialog,.equipment-dialog,.analysis-notes article,.analysis-kpis>div,.metric-strip,.int-card,.suite-card){background:#fff;color:#172f43;border-color:#d6e1ea;box-shadow:0 3px 16px #17334906}
html[data-theme=light] :is(.floor-toolbar,.plan-caption,.scene-caption,.order-summary,.sensor-row,.panel-title,.mini-head,.dialog-head,.dialog-actions){border-color:#d6e1ea;color:#365268}
html[data-theme=light] :is(.floor-toolbar,.plan-caption,.scene-caption){background:#f9fbfd}
html[data-theme=light] .zoom-controls output{background:#e4eff5;color:#234b63}
html[data-theme=light] .zoom-controls{background:#edf4f8;border-color:#cbdce7}
html[data-theme=light] .scene-card #floorCanvas{background:radial-gradient(ellipse at 50% 55%,#fff,#e7eff5)}
html[data-theme=light] .factory-scene-image{mask:url(#sceneLightBackdropMask)}
html[data-theme=light] .scene-brand span{color:#23445b;text-shadow:none;background:none;-webkit-text-fill-color:currentColor}
html[data-theme=light] .scene-brand-logo{opacity:.8}
html[data-theme=light] .scene-equipment-picker{background:#fffffff0;color:#23445b;border-color:#cbdce7}
html[data-theme=light] #surface.floor-dashboard #planInteraction[aria-pressed=true]{background:#d6edf5;color:#145e77;border-color:#80b9cc}
html[data-theme=light] .int-history{color:#365268;border-color:#d6e1ea}
html[data-theme=light] .int-history summary{color:#176d84}
html[data-theme=light] .int-history summary span{color:#52697a}
html[data-theme=light] :is(.floor-toolbar button,.scene-caption button,.secondary,.table-link,.text-button,.file-link,.segmented button,.fo-card button){color:#234b63;border-color:#cbdce7;background:#edf4f8}
html[data-theme=light] :is(.floor-toolbar button:hover,.segmented button.active,.segmented button.selected){background:#dbeef5;color:#145e77;border-color:#90bccd}
html[data-theme=light] .factory-overview .fo-actions button:first-child{background:#176d84;color:#fff}
html[data-theme=light] :is(.subtle,.page-lead p,.manual-note,.panel-empty,.data-note,.area-footer,.metric-strip span,.metric-strip p,.scene-provenance,.sensor-row span,.detail-numbers span,.pair-metrics span,.machine-detail-subtitle,.timeline article>span){color:#536b7d}
html[data-theme=light] :is(.page-lead h2,.area-detail h2,.area-detail h3,.sensor-row b,.detail-numbers b,.pair-metrics b,.metric-strip strong,.order-summary strong,.machine-dialog h2,.main-dialog h2){color:#172f43}
html[data-theme=light] :is(.main-dialog,.machine-dialog,.equipment-dialog){color-scheme:light}
html[data-theme=light] :is(.main-dialog,.surface) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#f7fafc;color:#172f43;border-color:#bed0de;color-scheme:light}
html[data-theme=light] :is(.main-dialog,.surface) :is(input,textarea)::placeholder{color:#687e8e}
html[data-theme=light] :is(.main-dialog,.surface) label{color:#385367}
html[data-theme=light] :is(.main-dialog,.surface) .primary{background:#176d84;color:#fff;border-color:#176d84}
html[data-theme=light] :is(.table-panel,.main-dialog) :is(th,td){border-color:#dce6ed;color:#274358}
html[data-theme=light] :is(.table-panel,.main-dialog) th{background:#f2f6fa;color:#52697a}
html[data-theme=light] .table-panel tbody tr:hover{background:#eef5f9}
html[data-theme=light] .badge:not(.red):not(.green):not(.amber){background:#eaf2f7;color:#365970;border-color:#cbdce7}
html[data-theme=light] .badge.red,html[data-theme=light] .quality-alert{background:#fff0f0;color:#a82e3c;border-color:#ebbbc0}
html[data-theme=light] .badge.green{background:#e8f6ef;color:#176b4c;border-color:#b1dac9}
html[data-theme=light] .badge.amber{background:#fff7e5;color:#865910;border-color:#e7d3a1}
html[data-theme=light] .toast{background:#fff;color:#172f43;border-color:#bed0de}
html[data-theme=light] .mes-workspace{--mes-line:#d4e0e9;--mes-muted:#52697a;--mes-accent:#176d84;--mes-card:#fff;--mes-green:#176b4c;--mes-red:#ae3443;--mes-yellow:#865910;color:#172f43}
html[data-theme=light] .mes-workspace :is(.mes-record-bar,.mes-counter,.mes-panel,.mes-card,.mes-kpi,.mes-operations-card,.mes-archive-item,.mes-empty,.mes-chart,.mes-schedule-row,.mes-tools-card){background:#fff;color:#172f43;border-color:#d4e0e9}
html[data-theme=light] .mes-workspace :is(button,input,select,textarea){background:#edf4f8;color:#234b63;border-color:#cbdce7;color-scheme:light}
html[data-theme=light] .mes-workspace button:hover:not(:disabled){background:#dbeef5;border-color:#90bccd}
html[data-theme=light] .mes-workspace button[aria-selected=true]{background:#176d84;color:#fff;border-color:#176d84}
html[data-theme=light] .mes-local-badge{background:#e4f1f6;color:#176d84;border-color:#bddce8}
html[data-theme=light] .mes-machine-id{background:#e0eff5;color:#176d84;border-color:#a7cbdc}
html[data-theme=light] .mes-workspace :is(.mes-fleet-tile,.mes-program-card,.mes-tool-row,.mes-tool-station,.mes-kpis>div,.mes-ops-summary,.mes-status-strip,.mes-progress,.mes-production-detail,.mes-bit,.mes-real-controls){background:#fff;color:#172f43;border-color:#d4e0e9}
html[data-theme=light] .mes-workspace :is(.mes-fleet-main b,.mes-fleet-main h4,.mes-tool-content h4,.mes-ops-heading h3,.mes-produced,.mes-production-numbers b,.mes-kpis b){color:#172f43}
html[data-theme=light] .mes-workspace :is(.mes-fleet-main p,.mes-tool-content p,.mes-fleet-cycle,.mes-fleet-no-progress,.mes-status-strip span,.mes-ops-summary,.mes-kpis span){color:#52697a}
html[data-theme=light] .mes-workspace .mes-tool-row[data-life=expired]{background:#fff0f2;border-color:#df9dab}
html[data-theme=light] .mes-workspace .mes-tool-row[data-life=warning]{background:#fff7e5;border-color:#d9bd81}
html[data-theme=light] .mes-workspace .mes-primary{background:#176d84;color:#fff;border-color:#176d84}
html[data-theme=light] .mes-workspace .mes-pill{background:#edf4f8;color:#365268;border-color:#cadce8}
html[data-theme=light] .mes-workspace :is(.mes-ops-summary article,.mes-kpis){background:#fff;border-color:#d4e0e9;color:#172f43}
html[data-theme=light] .mes-workspace :is(.mes-ops-summary b,.mes-kpis strong,.mes-fleet-tile header b,.mes-fleet-main strong){color:#172f43}
html[data-theme=light] .mes-workspace :is(.mes-ops-summary article>span,.mes-ops-summary small,.mes-ops-heading p,.mes-kpis article>span,.mes-fleet-tile header span,.mes-fleet-tile footer,.mes-fleet-main>div>span){color:#52697a}
html[data-theme=light] .mes-workspace .mes-eyebrow{color:#176d84}
html[data-theme=light] .mes-workspace .mes-fleet-tile[data-state=RUN],html[data-theme=light] .mes-workspace .mes-fleet-tile[data-state=RUN_PARTIAL]{background:#f0faf6;border-left-color:#24926f}
html[data-theme=light] .mes-workspace .mes-fleet-tile[data-state=ALARM],html[data-theme=light] .mes-workspace .mes-fleet-tile[data-state=EMERGENCY]{background:#fff0f2;border-left-color:#bd4557}
html[data-theme=light] .mes-workspace .mes-fleet-tile[data-state=STOP],html[data-theme=light] .mes-workspace .mes-fleet-tile[data-state=HOLD]{border-left-color:#b98420}
html[data-theme=light] .mes-workspace .mes-pill[data-state=RUN],html[data-theme=light] .mes-workspace .mes-pill[data-state=RUN_PARTIAL]{background:#e6f6ee;color:#176b4c;border-color:#a7d6c2}
html[data-theme=light] .mes-workspace .mes-pill[data-state=ALARM],html[data-theme=light] .mes-workspace .mes-pill[data-state=EMERGENCY]{background:#fbe4e8;color:#a62e42;border-color:#dd9aa8}
html[data-theme=light] .mes-workspace :is(th,td){border-color:#d4e0e9}
html[data-theme=light] .mes-workspace th{background:#edf4f8;color:#52697a}
