/* Cohesive layout: one navigation per purpose, copper icons and flexible content. */
html:has(body.workspace-theme), body.workspace-theme { overflow-x:clip; }
body.workspace-theme .module-nav-source { display:none !important; }
body.workspace-theme .top-bar.glass-panel { position:sticky; top:0; z-index:1200; background:#14181df5 !important; backdrop-filter:blur(14px); margin-inline:-12px; padding-inline:12px; }
body.workspace-theme .navigation-open .side-nav.glass-panel { z-index:1500; }
body.workspace-theme .navigation-shade { z-index:1400; }
body.workspace-theme .mission-hub { scroll-margin-top:100px; }
body.workspace-theme :is(.app-view, .workspace-toolbar) { scroll-margin-top:100px; }
body.workspace-theme .cosmic-viewport { align-items:stretch; gap:28px 36px; }
body.workspace-theme .cosmic-header { display:flex; flex-direction:column; justify-content:center; height:100%; padding:42px clamp(28px,3.6vw,60px); }
body.workspace-theme .cosmic-header .cosmic-description { max-width:600px; line-height:1.7; }
body.workspace-theme .cosmic-title { font-size:clamp(32px,3.5vw,62px); line-height:1.12; }
body.workspace-theme .cosmic-login-card { display:flex; flex-direction:column; justify-content:center; }
body.workspace-theme .cosmic-table-section { margin:0; }
body.workspace-theme #publicEmptyMsg { color:var(--text-gray) !important; padding:28px 16px !important; font:400 13px/1.6 'Inter',sans-serif !important; }
body.workspace-theme .cosmic-status-panel { margin-top:8px; }
body.workspace-theme :is(.cosmic-card-header,.cosmic-card-footer,.cosmic-table-header) i { color:var(--copper) !important; }
body.workspace-theme .cosmic-pw-toggle { color:var(--copper); width:auto; min-width:38px; right:6px; font-size:12px; padding:8px; }
body.workspace-theme .workspace-profile .user-info-text :is(.name,.role) { color:#edc3a3 !important; }
body.workspace-theme .side-link i, body.workspace-theme .mission-module i { color:var(--copper) !important; }
body.workspace-theme #usersModal > .modal-content { display:flex; flex-direction:column; width:min(1100px,100%) !important; max-width:1100px !important; gap:16px; }
body.workspace-theme #usersModal .modal-header { flex-shrink:0; margin:0; }
body.workspace-theme #createUserSection { flex-shrink:0; margin:0; padding:18px; }
body.workspace-theme #createUserSection p { color:var(--text-gray); font-size:12px !important; font-weight:400; line-height:1.6; margin-top:10px; }
body.workspace-theme #usersModal > .modal-content > .table-wrapper-internal { flex:1 1 auto; min-height:180px; max-height:none !important; }
body.workspace-theme #usersModal thead { position:sticky; top:0; z-index:2; }
body.workspace-theme #usersTableBody td { vertical-align:middle; }
body.workspace-theme #usersTableBody .staff-category td { background:#29241f; color:#e6b490; padding:12px 16px; font-weight:700; letter-spacing:1px; }
body.workspace-theme .account-actions { display:flex; flex-wrap:wrap; gap:6px; min-width:220px; }
body.workspace-theme #usersTableBody .account-actions button { border-radius:7px !important; font-size:11px !important; }
body.workspace-theme #usersTableBody .account-actions .account-delete { color:#ef9a8a !important; border-color:#78483e !important; }
body.workspace-theme #activeVotesContainer:empty { display:none; }
body.workspace-theme #activeVotesContainer { max-height:28dvh; overflow:auto; flex-shrink:0; }
body.workspace-theme .module-permission-row { display:flex; gap:12px; align-items:center; padding:12px 0; cursor:pointer; font-size:13px; }
body.workspace-theme .module-permission-row input { width:18px; height:18px; accent-color:var(--copper); }
body.workspace-theme #modulePermissions p { font-size:12px; color:var(--text-gray); }
body.workspace-theme .account-dialog label { display:block; margin:14px 0 6px; }
body.workspace-theme .account-dialog input { width:100%; }
body.workspace-theme .account-dialog p { font-size:13px; line-height:1.6; color:var(--text-gray); }
body.workspace-theme .account-dialog .dialog-actions { display:flex; gap:10px; margin-top:20px; justify-content:flex-end; }
@media(max-width:768px) {
 body.workspace-theme .top-bar.glass-panel { gap:8px; }
 body.workspace-theme .cosmic-header { height:auto; padding:28px 24px; }
 body.workspace-theme .cosmic-viewport { gap:20px; }
 body.workspace-theme #usersModal > .modal-content { gap:12px; }
 body.workspace-theme #createUserSection .input-group-flex { flex-wrap:wrap; }
 body.workspace-theme #createUserSection input { flex:1 1 180px; min-width:0; }
 body.workspace-theme #usersModal > .modal-content > .table-wrapper-internal { min-height:220px; }
}
