#theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;white-space:nowrap}
#theme-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:700px){#theme-toggle{width:32px;min-width:32px;padding:6px!important}#theme-toggle span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
html[data-theme="light"]{color-scheme:light;--ui-bg:rgba(249,248,244,.97);--ui-surface:#f0eee9;--ui-line:rgba(78,84,79,.24);--ui-text:#27332f;--ui-muted:#616e67;--ui-accent:#896c3d;background:#e5e9e6;color:#27332f}
html[data-theme="light"] body{background:#e5e9e6;color:#27332f}
html[data-theme="light"] :is(.topbar,.viewtools,.model-panel,.model-legend,.tool-panel,#guide,#element-inspector,#element-restore,.section-options,.workspace-card){background:var(--ui-bg);border-color:var(--ui-line);color:#27332f;box-shadow:0 10px 32px #24332a1c}
html[data-theme="light"] :is(.topbar button,.viewtools button,.viewtools select,.viewtools #panel-toggle,.tool-reset,.tool-panel-head button,.header-filters select,#element-inspector button,#element-restore,.model-panel #section-picker,.model-panel .panel-tools button,.model-panel .section-option-actions button,.model-panel .icon-button,.tool-field select,.guide-card,.speeds button,.vertical-move button,#map-toggle,#quality-mobile,.move-choices button,.workspace-tabs button,.workspace-row button,.workspace-search input,.workspace-models button){background:#f0eee9;border-color:#c8cec7;color:#27332f}
html[data-theme="light"] :is(.topbar button,.viewtools button,.viewtools select,.viewtools #panel-toggle,.tool-reset,#element-inspector button,#element-restore,.model-panel #section-picker,.model-panel .panel-tools button,.model-panel .section-option-actions button,.model-panel .icon-button,.section-options label,.workspace-tabs button,.workspace-row button,.workspace-models button):hover{background:#e1e7df;border-color:#a5b3a4;color:#1d3027}
html[data-theme="light"] :is(.viewtools button[aria-pressed="true"],.viewtools button.active,.model-panel .panel-tools button[aria-pressed="true"],#layers button[aria-pressed="true"],.speeds button[aria-pressed="true"],.workspace-tabs button[aria-selected="true"],.workspace-tabs button.active,.workspace-models button[aria-pressed="true"]){background:#dce8dc;border-color:#819d85;color:#253e30}
html[data-theme="light"] :is(.brand h1,.panel-head h2,.tool-panel-head strong,.guide-header strong,.scene-summary h2,.workspace-card h2,.workspace-card h3,.workspace-stats strong){color:#25352d}
html[data-theme="light"] :is(.brand span:not(.brandmark),.header-filters label,.eyebrow,.section-title,.model-legend>b,.scene-summary>span,.scene-summary small,.panel-head p,.panel-foot,.setting-row,.filter-caption,.map-caption,.guide-card span,.types-placeholder,.section-bounds label,.workspace-card small,.workspace-card p,.workspace-row small){color:#586b5e}
html[data-theme="light"] :is(.legend-row,.tool-switch,.tool-field,.types-list label,.section-options label,.section-box h3,.section-box summary,#element-category,.workspace-row,.workspace-search input){color:#34483c}
html[data-theme="light"] .legend-row[aria-pressed="false"] span{color:#77857a}
html[data-theme="light"] :is(.panel-foot,.section-option-actions,.section-box){border-color:#c8d0c7}
html[data-theme="light"] .weon-logo{filter:brightness(0) saturate(100%) invert(16%) sepia(19%) saturate(568%) hue-rotate(93deg) brightness(92%)}
html[data-theme="light"] input[type="checkbox"]{background:#fff;border-color:#839687;color:#496e50}
html[data-theme="light"] input[type="checkbox"]:checked{background:#e2ede1;border-color:#719375}
html[data-theme="light"] input[type="checkbox"]:hover:not(:disabled){background:#edf4eb;border-color:#527d5c}
html[data-theme="light"] input[type="checkbox"]:focus-visible{outline-color:#506e56;box-shadow:0 0 0 2px #f8f8f3}
html[data-theme="light"] :is(input[type="range"],input[type="checkbox"]){accent-color:#718b6b}
html[data-theme="light"] :is(.section-options,.workspace-search input){background:#fafaf6}
html[data-theme="light"] .workspace-bars{color:#617d68}
html[data-theme="light"] :is(.workspace-row,.workspace-stats,.workspace-tabs,.workspace-models){border-color:#d3d9d1}
html[data-theme="light"] #loading{background:radial-gradient(ellipse at 50% 42%,#f5f6f0,#dce3dd 75%);color:#25352d}
html[data-theme="light"] .loader-logo{filter:brightness(0) saturate(100%) invert(16%) sepia(19%) saturate(568%) hue-rotate(93deg) brightness(92%)}
html[data-theme="light"] #loading span{color:#64766a}
html[data-theme="light"] .loader-line{background:#ccd2c7}
html[data-theme="light"] .loader-line::after{background:#927d54}
html[data-theme="light"] .loader-spin{border-color:#c6d0c4;border-top-color:#718a71}
html[data-theme="light"] #measure-result{color:#364c3c}
html[data-theme="light"] .stick{background:#dce7deba;border-color:#728f7899}
html[data-theme="light"] .stick-knob{background:#516f5be8}
html[data-theme="light"] .stick-wrap{color:#293e31;text-shadow:0 1px 3px #ffffffd9}
@media(forced-colors:active){html[data-theme="light"] input[type="checkbox"]{appearance:auto;-webkit-appearance:checkbox;forced-color-adjust:auto}html[data-theme="light"] input[type="checkbox"]::after{content:none}}
/* Light theme must override the dark workspace's ID-specific controls. */
html[data-theme="light"] .viewtools > :is(#home,#walk,#quality,#snapshot,#terrain-toggle,#section-toggle,#types-toggle,#reset-filters,#panel-toggle,#camera-view,#material-mode){background:#f0eee9;color:#27332f;border-color:#b8c1b7;color-scheme:light}
html[data-theme="light"] .viewtools > :is(#home,#walk,#quality,#snapshot,#terrain-toggle,#section-toggle,#types-toggle,#reset-filters,#panel-toggle):hover{background:#e1e7df;border-color:#93a794;color:#1d3027}
html[data-theme="light"] .viewtools > :is(#walk,#terrain-toggle,#section-toggle,#types-toggle)[aria-pressed="true"],html[data-theme="light"] .viewtools > :is(#section-toggle,#types-toggle).active{background:#d6e4d6;border-color:#78957e;color:#1e3b29}
html[data-theme="light"] .workspace-stats span{color:#56695d}
html[data-theme="light"] .viewtools :is(#home,#walk,#quality,#snapshot,#terrain-toggle,#section-toggle,#types-toggle,#reset-filters,#panel-toggle,#camera-view,#material-mode){background:#f0eee9!important;color:#27332f!important;border-color:#b8c1b7!important;color-scheme:light}
html[data-theme="light"] .viewtools :is(#walk,#terrain-toggle,#section-toggle,#types-toggle)[aria-pressed="true"],html[data-theme="light"] .viewtools :is(#section-toggle,#types-toggle).active{background:#d6e4d6!important;border-color:#78957e!important;color:#1e3b29!important}
html[data-theme="light"] :is(.workspace-content,.model-panel,.tool-panel,.types-list,.section-options,#guide,#workspace-types,.workspace-models){scrollbar-color:#a6b4a8 #eef1ec}
html[data-theme="light"] :is(.workspace-content,.model-panel,.tool-panel,.types-list,.section-options,#guide,#workspace-types,.workspace-models):hover{scrollbar-color:#7b9280 #eef1ec}
html[data-theme="light"] :is(.workspace-content,.model-panel,.tool-panel,.types-list,.section-options,#guide,#workspace-types,.workspace-models)::-webkit-scrollbar-track{background:#eef1ec}
html[data-theme="light"] :is(.workspace-content,.model-panel,.tool-panel,.types-list,.section-options,#guide,#workspace-types,.workspace-models)::-webkit-scrollbar-thumb{background:#a6b4a8;border-color:#eef1ec}
html[data-theme="light"] :is(.workspace-content,.model-panel,.tool-panel,.types-list,.section-options,#guide,#workspace-types,.workspace-models)::-webkit-scrollbar-thumb:hover{background:#7b9280}
html[data-theme="light"] :is(.type-actions button,.type-group-actions button){background:#f0eee9;border-color:#c2ccc2;color:#273b2f}
html[data-theme="light"] :is(.type-actions button,.type-group-actions button):hover{background:#e1e9df;border-color:#91a894;color:#1d3027}
html[data-theme="light"] :is(.type-actions button,.type-group-actions button,.type-group summary):focus-visible{outline-color:#506e56}
html[data-theme="light"] .type-group{background:#ffffff65;border-color:#ccd5cb}
html[data-theme="light"] .type-group summary{color:#34483c}
html[data-theme="light"] .type-group summary::before{border-color:#647d69}
html[data-theme="light"] .type-group summary:hover{background:#e4ebe3}
@media(forced-colors:active){html[data-theme="light"] :is(.workspace-content,.model-panel,.tool-panel,.types-list,.section-options,#guide,#workspace-types,.workspace-models){scrollbar-color:auto}html[data-theme="light"] .type-group summary::before{border-color:CanvasText}}
