/* Appearance only: images, previews and document colours are never inverted. */
.theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 9px;margin-top:8px;border:1px solid #777;border-radius:20px;color:#fff;background:linear-gradient(#414141,#111);box-shadow:0 3px 0 #000,0 4px 10px #0004;font-size:11px;min-height:30px;cursor:pointer;transition:transform .18s,box-shadow .18s;align-self:flex-end}
.theme-switch:hover{transform:translateY(-2px);box-shadow:0 5px 0 #000,0 7px 14px #0004}.theme-switch:active{transform:translateY(1px)}
.theme-track{display:block;width:27px;height:16px;padding:2px;border-radius:20px;background:#777;box-shadow:inset 0 1px 3px #0008}.theme-track>span{display:block;width:12px;height:12px;border-radius:50%;background:white;transition:transform .2s;box-shadow:0 1px 3px #0006}.theme-switch[aria-checked=true] .theme-track>span{transform:translateX(11px)}
.compact-project-grid.project-list{grid-template-columns:minmax(0,1fr);max-width:100%}
.compact-rights{display:flex;flex-direction:column;gap:10px}.employee-access{padding:0;overflow:hidden}.employee-access>summary{cursor:pointer;padding:16px 20px;font-size:17px;font-weight:650}.employee-access-body{padding:0 20px 20px}.quick-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}.section-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #555;border-radius:12px;background:#191919}.section-switch small{display:block;font-size:11px;opacity:.8;margin-top:4px}.section-switch input{appearance:none;flex:0 0 42px;width:42px;height:24px;border-radius:20px;border:1px solid #999;background:#555;cursor:pointer;position:relative;margin:0;padding:0}.section-switch input:before{content:'';display:block;position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white;transition:transform .15s}.section-switch input:checked{background:#167344}.section-switch input:checked:before{transform:translateX(18px)}.section-switch input:indeterminate{background:#765e21}.section-switch input:indeterminate:before{transform:translateX(9px)}.section-switch input:disabled{cursor:default;opacity:.6}.advanced-grants>summary{cursor:pointer;padding:14px 0;font-weight:650}
:root[data-theme=light]{color-scheme:light;color:#111;background:#fff;--bs-surface:#fff;--bs-raised:#f2f4f7;--bs-selected:#e3ebf5;--bs-border:#bec8d4}
html[data-theme=light] body,html[data-theme=light] .main,html[data-theme=light] .home-view{background:#fff;color:#111}
html[data-theme=light] :is(header,.sidebar,.content,.stats>div,dialog,.home-top,.home-session-bar,.admin-person,.section-switch,.table-wrap,.empty-panel,.workspace-panel,.music-panel,.chat-panel,.project-location,.folder-panel,.preview-panel){background:#fff;color:#111;border-color:#bec8d4}
html[data-theme=light] :is(h1,h2,h3,h4,p,label,legend,summary,strong,small,.small-meta,.eyebrow,.breadcrumb,.breadcrumb span,.portal-clock,.portal-clock *, .brand-name,.home-brand span,.workspace,.card-meta,.card-bottom,.note-visual,.selection-hint,.sort-label,.release-credit,.copyright-credit,.folder-name,.empty,.empty-panel,.permission-badge,.credential-date){color:#111}
html[data-theme=light] :is(input,select,textarea){color:#111;background:#fff;border-color:#8a99aa}
html[data-theme=light] :is(.button,.icon-button,.back-link,.nav,.tabs button,.sort-label select,.dropzone,.page-actions a){color:#111;background:linear-gradient(160deg,#fff,#e5eaf1);border-color:#a6b2c1;box-shadow:0 3px 0 #b4bfcc,0 5px 12px #182a4320}
html[data-theme=light] :is(.button.primary,.tabs button.selected,.nav.active){color:#102640;background:linear-gradient(150deg,#e6f1ff,#b9d7fa);border-color:#7b9dc5}
html[data-theme=light] .button.danger{color:#8d1520;background:linear-gradient(#fff,#fbdde0);border-color:#c78f97}
html[data-theme=light] :is(.shortcut,.shortcut-card,.shortcut-tile,.project-tile,.project-card,.compact-project-card,.employee-card,.employee-tile,.card,.folder-tile,.folder-card,.address-card,.documentation-tile,.ordering-tile){background:linear-gradient(145deg,#fff,#edf1f6);color:#111;border-color:#b5c1cf;box-shadow:0 5px 0 #c2ccd8,0 10px 22px #22334a18}
html[data-theme=light] :is(.shortcut,.shortcut-card,.shortcut-tile,.project-tile,.project-card,.compact-project-card,.employee-card,.employee-tile,.card,.folder-tile,.folder-card,.address-card,.documentation-tile,.ordering-tile) :is(span,strong,small,p){color:inherit}
html[data-theme=light] :is(.global-search,.toolbar,.list-heading,.data-table th,.data-table td,fieldset,.permission-badge,.music-toolbar,.music-list,.music-row,.playlist-card,.chat-message,.chat-compose,.chat-toolbar,.chat-sidebar,.chat-messages){background:#f4f6f9;color:#111;border-color:#bec8d4}
html[data-theme=light] :is(footer,.start-footer,.sidebar-bottom,.dialog-heading,.dialog-actions){background:#fff;color:#111;border-color:#bec8d4}
html[data-theme=light] :is(.dropzone strong,.dropzone small,.stats div div>span,.sort-label,.tabs button,#results,.nav,.local-label){color:#111}
html[data-theme=light] :is(.error,[role=alert]){color:#9b1523}
html[data-theme=light] .theme-switch{background:linear-gradient(#fff,#dce2ea);color:#111;box-shadow:0 3px 0 #aeb8c5,0 4px 10px #0002}
html[data-theme=light] .section-switch input{background:#66717e}html[data-theme=light] .section-switch input:checked{background:#167344}html[data-theme=light] .section-switch input:indeterminate{background:#927327}
html[data-theme=light] #toast{background:#172433;color:white}
html[data-theme=light] a:not(.button):not(.home-brand):not(.brand){color:#145a9d}
@media(prefers-reduced-motion:reduce){.theme-switch,.theme-track>span,.section-switch input:before{transition:none}.theme-switch:hover{transform:none}}
@media(max-width:600px){.quick-sections{grid-template-columns:1fr}.employee-access-body{padding:0 12px 12px}.theme-switch{font-size:10px;padding:5px 7px}}
/* Remaining feature surfaces share the same light palette. */
html[data-theme=light] :is(.compact-project-tile,.project-shortcut,.address-tile,.project-address-card,.documentation-brand,.documentation-result,.supplier-card,.music-track,.music-player,.music-personal,.audit-people,.audit-events,.planner-toolbar,.planner-day,.planner-day-heading,.planner-entry,.planner-day-add,.chat-sound,.chat-push,.chat-context,.cable-result,.profile-banner,.project-tile-footer,.search-result,.log-kind,.tool-status){background:linear-gradient(150deg,#fff,#edf1f6);color:#111;border-color:#abb8c8}
html[data-theme=light] :is(.compact-project-tile,.project-shortcut,.documentation-brand,.documentation-result,.supplier-card,.music-track,.music-player,.audit-layout,.planner-toolbar,.planner-days,.planner-legend,.chat-panel,.chat-toolbar,.chat-push,.profile-banner,.project-address-card) :is(span,strong,small,p,time,dd,dt,blockquote){color:#182430;text-shadow:none}
html[data-theme=light] :is(.compact-project-tile,.documentation-brand,.supplier-card,.planner-entry,.music-track,.audit-person,.project-shortcut):hover{background:#dfebf8;color:#111}
html[data-theme=light] .audit-person{color:#111;border-color:#c2cbd5}html[data-theme=light] .audit-person.selected,html[data-theme=light] .project-shortcut.current{background:#d9eafa;color:#111}
html[data-theme=light] :is(.planner-entry-name,.planner-entry-location,.planner-entry-time,.planner-entry-notes,.planner-day-empty,.planner-today-label,.planner-date-label,.planner-person,.project-context-name,.chat-typing,.chat-presence,.chat-live,.chat-empty,.supplier-open,.supplier-note){color:#34475c}
html[data-theme=light] .planner-entry{border-left-color:var(--employee-color,#777)}html[data-theme=light] .planner-day-today{border:2px solid #3574b6}
html[data-theme=light] :is(.chat-actions button,.chat-emoji,.chat-context button,.vca-tabs>button){background:#edf1f6;color:#182430;border-color:#aeb9c7}
html[data-theme=light] .chat-message.own{background:#dfeefd}html[data-theme=light] .chat-message blockquote{background:#edf0f5}
html[data-theme=light] :is(.vca-view,.vca-dialog){--vca-border:#aab5c3;--vca-muted:#455364;--vca-soft:#eef2f7}
html[data-theme=light] :is(.vca-access,.vca-count,.vca-tabs>button[aria-selected=true] .vca-count){color:#17283c;background:#e4ebf3}
html[data-theme=light] :is(.vca-filter-label,.vca-tabs>button[aria-selected=true]){color:#111;border-color:#365f8b}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#627183;opacity:1}
html[data-theme=light] .breadcrumb .nav-3d{text-shadow:none}html[data-theme=light] .nav-3d-icon{color:#fff}
html[data-theme=light] .bs-app-tile{color:#111;background:linear-gradient(#fff,#e0e8f2)}
.theme-switch{min-width:0}.portal-clock-details{display:flex;flex-direction:column;gap:3px}
.section-switch input{min-height:24px;max-height:24px;max-width:42px;box-sizing:border-box}
.eplan-dialog{width:min(720px,94vw);max-height:90vh;overflow:auto}.eplan-dialog label{display:grid;gap:8px;margin:16px 0}.eplan-dialog select{width:100%}.eplan-dialog details{padding:12px;border:1px solid var(--bs-border);border-radius:10px;margin:16px 0}.eplan-dialog summary{cursor:pointer;font-weight:650}.eplan-dialog ol{padding-left:22px}.eplan-dialog li{margin:9px 0}.eplan-dialog [data-launch]{padding:12px;border:1px solid #4f89bc;border-radius:10px}.eplan-dialog [data-launch][hidden]{display:none}

/* Version 2.0: file actions are available through context menus. */
.file-actions,#items .card-bottom [data-delete-item],#preview #download,.wb-file>a,.wb-drag-handle,.folder-drag-handle,.wb-folder-remove,.wb-toolbar [data-folder-delete],.wb-toolbar [data-remove]{display:none!important}
.wb-folder-entry{min-width:0;height:174px}.wb-folder-card{width:100%;height:174px;justify-content:center;overflow:hidden}.wb-folder-card .custom-folder-icon{flex:0 0 56px}.wb-folder-card .folder-count{font-size:11px;flex-shrink:0}
.file-context-menu{position:fixed;z-index:2147483000;background:#fff;color:#111;border:1px solid #aaa;border-radius:8px;padding:5px;box-shadow:0 5px 25px #0006;min-width:210px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto}
.file-context-menu[hidden]{display:none!important}.file-context-menu button{display:block;width:100%;padding:12px;text-align:left;color:#111!important;background:#fff!important;border:0;border-radius:4px;text-shadow:none!important;box-shadow:none!important}.file-context-menu button:hover,.file-context-menu button:focus{background:#e5f1ff!important}
.file-thumbnail-card,.wb-file,#items .card,#preview-content{-webkit-touch-callout:none}.file-thumbnail-card img,.wb-file img,#preview-content img{user-select:none;-webkit-user-select:none}
.chat-notification{position:fixed;right:18px;bottom:24px;z-index:1000;max-width:min(360px,calc(100vw - 36px));padding:14px 20px;border:1px solid #79b9ff;border-radius:14px;background:#154d7b;color:white;box-shadow:0 6px 25px #0006;text-align:left}.chat-notification[hidden]{display:none!important}
