html{scrollbar-gutter:stable}
/* Readable reference layout. Loaded after the legacy module styles. */
body[data-game]{--bg:#fff;--muted:#69717e;--faint:#78818d;background:#fff;font-size:16px}
.workspace,.workspace .workspace-main{background:#fff}
.workspace{grid-template-columns:248px minmax(0,1fr)}
.workspace>.sidebar{width:248px;background:#f8f9fb;padding:28px 14px 0;border-color:#eceef1;overflow-y:hidden}
.workspace .sidebar-head{margin-bottom:30px;padding-inline:12px}
.workspace .sidebar .brand{font-size:31px;font-weight:700;letter-spacing:-1.3px}
.workspace .sidebar .brand small{font-size:13px;letter-spacing:0;font-weight:400;margin-top:7px;color:var(--muted)}
.workspace .direction-picker{margin-bottom:22px}
.workspace .direction-picker>span{font-size:13px;color:var(--muted)}
.workspace .direction-control{height:48px;min-height:48px;background:#fff}
.workspace .direction-control .select-trigger{min-height:46px;font-size:15px}
.workspace .direction-control .select-game-thumb{width:28px;height:28px}

.workspace .sidebar-head,.workspace .direction-picker,.workspace .sidebar-footer{flex-shrink:0}








.workspace .sidebar-footer,.workspace .sidebar-user{background:#f8f9fb}
.workspace .sidebar-footer{padding:14px 5px 0}
.workspace .sidebar-footer .sidebar-agent{min-height:60px;background:#fff;padding:12px 9px}
.workspace .sidebar-agent-copy strong{font-size:14px}
.workspace .sidebar-agent-copy small{font-size:12px}
.workspace .sidebar-footer .daily-quest{min-height:110px;background:#fff;padding:12px}
.workspace .daily-quest .quest-heading,.workspace .daily-quest .quest-heading>span{font-size:12px;color:var(--muted)}
.workspace .daily-quest .quest-task strong{font-size:13px;color:#414b58}
.workspace .daily-quest .quest-task>span{flex-wrap:wrap;row-gap:4px}
.workspace .daily-quest .quest-reward{font-size:12px}
.workspace .daily-quest .quest-progress-row strong,.workspace .daily-quest .quest-progress-row small{font-size:12px}
.workspace .daily-quest .quest-footer{font-size:12px}
.workspace .daily-quest .quest-count{font-size:17px}
.workspace .sidebar-user{display:block;min-height:0;padding:10px;margin:12px 0 14px;border:1px solid #e3e7ec;border-radius:11px;background:#fff}
.sidebar-user-main{display:flex;align-items:center;gap:6px}
.sidebar-account{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0;border:0;border-radius:6px;background:none;text-align:left;cursor:pointer}
.workspace .sidebar-user .admin-avatar{width:36px;height:36px;flex-shrink:0;border-radius:9px}
.workspace .sidebar-user .sidebar-identity{min-width:0}
.workspace .sidebar-user .sidebar-identity strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace .sidebar-user .sidebar-identity small{max-width:125px;font-size:12px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace .sidebar-user #logout{width:30px;height:32px;min-height:32px;padding:7px;border:0;background:none;flex-shrink:0}
.sidebar-theme{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;margin-top:9px;padding:9px 0 0;border:0;border-top:1px solid #edf0f3;background:none;color:#626d7a;font-size:13px;text-align:left;cursor:pointer}
.sidebar-theme>svg{width:16px;height:16px;flex-shrink:0}
.theme-switch{position:relative;width:30px;height:18px;margin-left:auto;border-radius:20px;background:#c9d0d9;flex-shrink:0}
.theme-switch::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;background:#fff;border-radius:50%;transition:transform .15s}
.sidebar-theme[aria-checked=true] .theme-switch{background:var(--action-blue)}
.sidebar-theme[aria-checked=true] .theme-switch::after{transform:translateX(12px)}
.workspace .topbar{min-height:72px;height:72px;padding-inline:24px;border-color:#eceef1}
.workspace .topbar .nav-search{flex:0 1 360px;width:360px;max-width:55%;min-height:44px;height:44px;background:#f7f8fa;border:1px solid #edf0f3}
.workspace .topbar .nav-search input{min-height:42px;height:42px;font-size:15px!important}
.workspace .topbar .topbar-settings{min-height:42px;font-size:14px;padding:9px 12px;border-color:#e5e8ed}
.workspace .topbar-right{margin-left:auto;gap:18px}
.workspace .sync-state{font-size:12px}
.workspace .breadcrumb{padding:22px 24px 0;font-size:13px}
.workspace .content,body[data-view=dashboard] .workspace .content{padding:22px 24px 28px}
.workspace .button,dialog .button{min-height:44px;font-size:15px;padding:11px 16px}
.workspace :is(input,textarea,select),dialog :is(input,textarea,select){font-size:15px;min-height:44px}
.workspace .select-trigger,.select-menu{font-size:15px}
.workspace .page-heading{margin-bottom:24px;align-items:center}
.workspace .page-heading h1{font-size:30px;font-weight:650;letter-spacing:-.8px}
.workspace .page-heading p{font-size:15px;color:var(--muted)}
.workspace .eyebrow{font-size:13px}















































































.editor-heading{margin:0 0 24px}
.editor-heading h1{font-size:30px;font-weight:650;letter-spacing:-.8px;line-height:1.3}
.editor-heading p{font-size:15px;color:var(--muted);margin-top:8px}
.settings-editor{background:#fff;border:0;border-radius:0}
.editor-tabs{display:flex;align-items:center;gap:6px;padding:6px;border-radius:9px;background:#f7f8fa;border:1px solid #eceff3}
.editor-tabs button{min-height:44px;padding:10px 20px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:15px}
.editor-tabs button[aria-pressed=true]{background:#fff;color:#303843;box-shadow:0 1px 4px #27374b0a}
.editor-workspace{display:grid;grid-template-columns:190px minmax(0,760px);gap:24px;margin-top:24px;align-items:start}
.editor-sidebar{padding:8px 0}
.editor-sidebar-label{font-size:13px;color:var(--muted);font-weight:550;margin:0 12px 14px}
.editor-sidebar button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:12px;border:1px solid transparent;border-radius:7px;background:none;text-align:left;font-size:14px;color:var(--muted)}
.editor-sidebar button[aria-pressed=true]{background:#fff4ed;color:#b83d19;border-color:#efc4b3}
.editor-sidebar button>svg{margin-left:auto;width:14px;height:14px;color:#7d8590}
.editor-section-icon{display:grid;place-items:center;width:20px;height:20px}
.editor-section-icon svg{width:18px;height:18px;stroke-width:1.6}
.editor-sidebar-note{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;color:var(--muted);margin:28px 12px 0;padding-top:18px;border-top:1px solid #eceff3}
.editor-sidebar-note svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.editor-form{min-width:0;padding:6px 24px 20px;background:#fff;border:1px solid #e6e9ee;border-radius:10px}
.editor-form-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:22px;border-bottom:1px solid #e6e9ee}
.editor-title-dot{width:9px;height:9px;margin-top:7px;background:var(--action-blue);border-radius:3px;flex-shrink:0}
.editor-form-head h2{font-size:20px;line-height:1.4;color:#353c47;font-weight:600}
.editor-form-head p{font-size:14px;line-height:1.6;margin-top:7px;color:var(--muted)}
.editor-field-section{padding:20px 0;border-bottom:1px solid #e6e9ee;scroll-margin-top:20px}
.editor-setting-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:20px}
.editor-field-section h3,.editor-label{font-size:15px;color:#414b58;font-weight:550;line-height:1.5}
.editor-field-note{font-size:14px;line-height:1.7;color:var(--muted);margin-top:7px;max-width:600px}
.editor-themes{display:flex;gap:10px;flex-wrap:wrap}
.editor-theme{display:flex;align-items:center;gap:10px;min-width:156px;padding:10px 12px;margin-top:0;border:1px solid #e1e6ec;background:#fff;border-radius:7px;cursor:pointer}
.editor-theme[aria-pressed=true]{border-color:#e98c6d;background:#fff8f4}
.theme-icon{display:flex;gap:4px;width:38px;height:32px;padding:4px;border:1px solid #dbe0e7;border-radius:4px;flex-shrink:0}
.theme-icon i:first-child{width:8px;background:#e9edf3;border-radius:2px}
.theme-icon i:last-child{flex:1;background:#f5f7fa;border-radius:2px}
.theme-icon.is-dark{border-color:#4b565f;background:#1a2026}
.theme-icon.is-dark i:first-child{background:#394650}
.theme-icon.is-dark i:last-child{background:#283139}
.editor-theme strong{display:block;font-size:15px;font-weight:500;color:#414b58}
.editor-theme small{display:block;font-size:13px;color:var(--muted);line-height:1.5;margin-top:4px}
.editor-selected-check{margin-left:auto;color:var(--action-blue)}
.editor-selected-check svg{width:18px;height:18px}
.editor-accent-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:0}
.editor-palette{display:flex;gap:12px}
.editor-palette button{display:grid;place-items:center;width:32px;height:32px;padding:5px;border:2px solid #fff;border-radius:50%;background:var(--choice);color:#fff;box-shadow:0 0 0 1px transparent}
.editor-palette button[aria-pressed=true]{box-shadow:0 0 0 1px var(--choice)}
.editor-palette svg{width:17px;height:17px;stroke-width:2}
.editor-hex{display:flex!important;align-items:center;gap:8px;border:1px solid #dfe4eb;border-radius:7px;background:#fff;padding:5px 9px 5px 5px;max-width:160px}
.workspace .editor-hex input[type=color]{width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:4px;background:none;cursor:pointer}
.workspace .editor-hex input[type=text]{width:91px;min-height:30px;height:30px;padding:0 4px;background:none;border:0;border-radius:4px;color:#414b58;font-size:14px;box-shadow:none}
.editor-inline-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;width:min(100%,520px);padding:14px 16px;margin-top:20px;background:#fff;border:1px solid #e4e8ee;border-radius:7px;color:var(--muted);font-size:13px}
.editor-preview-button{display:flex;align-items:center;gap:8px;padding:9px 12px;border:0;border-radius:5px;font-size:13px;color:#fff;pointer-events:none}
.editor-preview-button svg{width:13px;height:13px}
.editor-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:650px;margin-top:0;cursor:pointer}
.editor-toggle-row strong{display:block;color:#414b58;font-size:15px;font-weight:450}
.editor-toggle-row small{display:block;margin-top:5px;color:var(--muted);font-size:14px;line-height:1.6}
.workspace .editor-toggle-row input{appearance:none;width:42px;height:24px;min-height:24px;padding:3px;border:0;border-radius:20px;background:#c7ced8;cursor:pointer;flex-shrink:0}
.editor-toggle-row input::after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #17243518}
.editor-toggle-row input:checked{background:var(--action-blue)}
.editor-toggle-row input:checked::after{transform:translateX(18px)}
.editor-toggle-row input:disabled{opacity:.4;cursor:default}
.editor-label{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:520px}
.editor-label output{font-size:14px;color:var(--muted);font-weight:400}
.editor-volume{display:flex;gap:18px;align-items:center;max-width:520px;margin-top:16px}
.workspace .editor-volume input{flex:1;min-width:0;height:28px;min-height:28px;padding:0;border:0;background:none;accent-color:var(--action-blue)}
.editor-secondary{display:flex;align-items:center;gap:7px;min-height:42px;border:1px solid #dfe4eb;border-radius:6px;background:#fff;color:#414b58;font-size:14px;padding:9px 12px}
.editor-secondary svg{width:16px;height:16px}
.editor-feedback{font-size:14px;line-height:1.6;margin-top:14px;color:var(--muted)}
.editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:20px}
.editor-save{min-height:44px;padding:12px 16px;border:0;border-radius:7px;background:var(--action-blue);color:#fff;font-size:15px;font-weight:500}
.editor-save:hover{background:var(--action-blue-hover)}
.editor-reset{min-height:44px;padding:11px 15px;border:1px solid #e5d8d2;border-radius:7px;background:#fff;color:#a74929;font-size:15px}
.editor-actions>span{width:100%;font-size:12px;color:var(--muted);line-height:1.5}
.editor-field-error{font-size:14px;color:#c3482d;line-height:1.6;margin-top:10px}






















#self-profile .reward-salary strong{color:#637081;font-size:18px}



.workspace #team-dashboard .team-overview{grid-template-columns:minmax(0,1fr)}
.workspace #team-dashboard .team-dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.workspace #team-dashboard .team-dashboard-metrics span{font-size:14px;color:var(--muted)}
.workspace #team-dashboard .team-dashboard-metrics strong{font-size:32px;color:#4e5a69;opacity:1}
.workspace #team-dashboard .team-mode-tabs button{font-size:15px;min-height:44px;padding:11px 16px}
.workspace #team-dashboard .team-mode-tabs button span{font-size:13px}
.workspace #team-dashboard .staff-card-cover{background:#fff5ed;background-image:none;height:40px;min-height:40px}
.workspace #team-dashboard .staff-card-cover::before,.workspace #team-dashboard .staff-card-cover::after{display:none}
.workspace #team-dashboard .team-dashboard-filters .search input{border:1px solid #e1e6ed;background:#fff;box-shadow:none;font-size:15px}
.workspace #team-dashboard .staff-card h3{font-size:21px}
.workspace #team-dashboard .staff-rank{font-size:15px;color:#566170}
.workspace #team-dashboard .staff-rank small{font-size:13px;color:var(--muted)}
.workspace #team-dashboard .staff-card-facts{font-size:16px;line-height:1.6}
.workspace #team-dashboard .staff-card-facts span{color:var(--muted)}
.workspace #team-dashboard .staff-card-discipline span{font-size:13px}
.workspace #team-dashboard .staff-card-detail{font-size:14px;min-height:44px}
@media(min-width:1101px){
 body[data-game]{background:var(--surface);padding:0}
 .workspace{min-height:100svh;border-radius:0;overflow:clip}
 .workspace>.sidebar{height:100svh;top:0;border-right:1px solid var(--line)}
 body:has(.demo-banner) .workspace>.sidebar{height:calc(100svh - 36px)}
 .demo-banner{position:fixed;left:0;right:0;top:0;z-index:500;height:18px;padding:1px 15px;font-size:11px;background:var(--surface)}
}
@media(min-width:701px) and (max-width:1399px){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 .editor-workspace{grid-template-columns:180px minmax(0,1fr);gap:18px}
 .editor-actions>span{margin-left:0;width:100%}
}
@media(min-width:701px) and (max-width:1000px){
 .workspace{grid-template-columns:224px minmax(0,1fr)}
 .workspace>.sidebar{width:224px;padding-inline:10px}
 .workspace .content,body[data-view=dashboard] .workspace .content{padding-inline:20px}
 .workspace .topbar,.workspace .breadcrumb{padding-inline:20px}
 .editor-workspace{grid-template-columns:1fr;gap:16px}
 .editor-sidebar{display:flex;gap:8px;overflow-x:auto;padding:0}
 .editor-sidebar button{width:auto;white-space:nowrap;font-size:14px}
 .editor-sidebar-label,.editor-sidebar-note,.editor-sidebar button>svg{display:none}
 
 
 
 
 
 
 .workspace #team-dashboard .team-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 body[data-game]{padding:0;background:#fff}
 .workspace{display:block;border-radius:0;overflow:visible;min-height:100svh}
 .workspace>.sidebar{width:280px;max-width:88vw;height:100svh;top:0;background:#f8f9fb;padding:28px 14px 0}
 .workspace .topbar{min-height:64px;height:64px;padding-inline:16px;gap:10px}
 .workspace .topbar .nav-search{flex:1;max-width:none;width:auto}
 .workspace .topbar-right{gap:0}
 .workspace .topbar .topbar-settings{min-height:40px;height:40px;width:40px;padding:10px}
 .workspace .content,body[data-view=dashboard] .workspace .content{padding:20px 16px 26px}
 .workspace .breadcrumb{padding:18px 16px 0;font-size:13px}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 .workspace .page-heading{align-items:flex-start;flex-wrap:wrap;gap:14px}
 .workspace .page-heading h1,.editor-heading h1{font-size:28px}
 .editor-heading{margin:0 0 20px}
 .editor-heading p{font-size:15px;line-height:1.6}
 .editor-tabs{gap:2px;padding:5px;overflow-x:auto}
 .editor-tabs button{flex:1;min-height:44px;padding:9px 10px;font-size:14px;white-space:nowrap}
 .editor-workspace{grid-template-columns:1fr;gap:16px;margin-top:16px}
 .editor-sidebar{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:0}
 .editor-sidebar-label,.editor-sidebar-note,.editor-sidebar button>svg{display:none}
 .editor-sidebar button{width:auto;min-height:42px;padding:10px;white-space:nowrap;font-size:14px;gap:6px;background:#fafbfc;border-color:#eceff3}
 .editor-section-icon,.editor-section-icon svg{width:17px;height:17px}
 .editor-form{padding:0 18px 18px;border-radius:9px}
 .editor-setting-row{grid-template-columns:1fr;gap:12px}
 .editor-form-head{gap:10px;padding-bottom:20px}
 .editor-form-head h2{font-size:20px}
 .editor-form-head p{font-size:14px}
 .editor-field-section{padding:18px 0}
 .editor-accent-row{gap:18px}
 .editor-palette{gap:12px}
 .editor-inline-preview{padding:14px;gap:14px}
 .editor-toggle-row{gap:16px}
 .editor-actions{padding-top:22px;gap:10px}
 .editor-save,.editor-reset{font-size:15px}
 .editor-actions>span{width:100%;margin-left:0;margin-top:4px;font-size:13px}
 .editor-volume{gap:12px;flex-wrap:wrap}
 .editor-volume input{flex-basis:120px!important}
 .editor-secondary{font-size:14px}
 .workspace #team-dashboard .team-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .demo-banner{height:auto;font-size:11px;padding:6px 10px;line-height:1.4;gap:6px}
}

/* Dark appearance uses the same spacing, type and component sizes. */
html[data-theme=dark],html[data-theme=dark] body[data-game]{color-scheme:dark;--bg:#0c0c0c;--surface:#151515;--surface-raised:#1c1c1c;--surface-inset:#111111;--text:#ededed;--muted:#a5a5a5;--faint:#878787;--line:#2c2c2c;--border:#2c2c2c;color:var(--text);background:#090909}
html[data-theme=dark] .workspace,html[data-theme=dark] .workspace .workspace-main{background:var(--bg);color:var(--text)}
html[data-theme=dark] .workspace :is(.sidebar,.sidebar-footer,.topbar){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .workspace :is(.panel,.table-shell,.staff-card,.team-add-person,.editor-form,.settings-editor),html[data-theme=dark] .workspace .team-group-grid>section{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .workspace .settings-editor{background:transparent}
html[data-theme=dark] .workspace :is(.sidebar-user,.sidebar-agent,.daily-quest,.direction-control){background:var(--surface-raised);border-color:var(--line)}
html[data-theme=dark] .workspace :is(.nav-search,.editor-tabs,.staff-card-discipline,.profile-today-counts){background:var(--surface-inset);border-color:var(--line)}
html[data-theme=dark] .workspace :is(input,textarea,select,.select-trigger,.editor-hex,.editor-theme,.editor-secondary,.editor-reset,.icon-button,.topbar-settings){background:var(--surface-raised);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .workspace .topbar .nav-search input{background:transparent;color:var(--text)}
html[data-theme=dark] .select-menu{background:var(--surface-raised);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .select-option:is(.highlighted,[aria-selected=true]){background:#3b302b;color:#ffab83}
html[data-theme=dark] .workspace :is(.brand,.page-heading h1,.editor-heading h1,.sidebar-identity strong,.sidebar-agent-copy strong,.editor-theme strong,.editor-field-section h3,.editor-toggle-row strong,.editor-label,.panel-heading h2,.section-title h2){color:var(--text)}
html[data-theme=dark] .workspace :is(.sidebar-identity small,.sidebar-agent-copy small,.direction-picker>span,.breadcrumb,.breadcrumb strong,.sync-state,.editor-field-note,.editor-sidebar-label,.editor-sidebar-note,.editor-toggle-row small,.editor-actions>span){color:var(--muted)}
html[data-theme=dark] .workspace .brand small{color:var(--muted)}
html[data-theme=dark] .workspace :is(.editor-field-section,.sidebar-theme){border-color:var(--line)}
html[data-theme=dark] .sidebar-theme{color:var(--muted)}





html[data-theme=dark] .workspace .editor-sidebar button[aria-pressed=true]{background:#3a2a24;color:var(--accent);border-color:#6a3c2c}



html[data-theme=dark] .workspace .daily-quest :is(.quest-heading,.quest-heading>span,.quest-task strong,.quest-footer,.quest-progress-row strong,.quest-progress-row small){color:var(--muted)}
html[data-theme=dark] .workspace .sidebar-agent-mark{background:#3a2a24;color:#ff9a73}
html[data-theme=dark] .workspace .sidebar-user .admin-avatar{background:#333333}
html[data-theme=dark] .theme-switch{background:#585858}
html[data-theme=dark] .sidebar-theme[aria-checked=true] .theme-switch{background:var(--action-blue)}










html[data-theme=dark] .editor-tabs button{color:var(--muted)}
html[data-theme=dark] .editor-tabs button[aria-pressed=true]{background:#252525;color:#fff}
html[data-theme=dark] .editor-theme[aria-pressed=true]{background:#3a2a24;border-color:#a45b3b}
html[data-theme=dark] .editor-sidebar-note{border-color:var(--line)}
html[data-theme=dark] .editor-palette button{border-color:var(--surface)}
html[data-theme=dark] .workspace .button{background:var(--surface-raised);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .workspace .button.primary{background:var(--action-blue);color:#fff;border-color:var(--action-blue)}

html[data-theme=dark] .workspace #team-dashboard :is(.staff-rank,.staff-rank small,.staff-card-facts,.staff-card-facts span,.team-dashboard-metrics span){color:var(--muted)}
html[data-theme=dark] .workspace #team-dashboard :is(.staff-card h3,.team-dashboard-metrics strong){color:var(--text)}
html[data-theme=dark] .workspace #team-dashboard .staff-card-cover{background:#382b25}
html[data-theme=dark] .workspace #team-dashboard .staff-card-detail{background:var(--surface);color:var(--accent);border-color:var(--line)}
html[data-theme=dark] .workspace #team-dashboard .team-dashboard-filters .search input{background:var(--surface-raised);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .workspace #team-dashboard .team-mode-tabs{background:var(--surface-inset)}
html[data-theme=dark] .workspace #team-dashboard .team-mode-tabs button.selected{background:var(--surface-raised);color:#fff}









html[data-theme=dark] #self-profile :is(.profile-card,.profile-today-counts,.profile-panel,.reward-panel){background:var(--surface);border-color:var(--line)}
html[data-theme=dark] #self-profile :is(.profile-stat>span,.profile-summary p,.profile-stat small){color:var(--muted)}
html[data-theme=dark] #self-profile :is(.profile-stat>strong,.profile-panel-title h2,.profile-today-counts strong,.profile-summary h2){color:var(--text)}
html[data-theme=dark] .workspace .users-table :is(th,td){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .workspace .users-table thead th{background:var(--surface-inset);color:var(--muted)}
html[data-theme=dark] dialog{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme=dark] dialog :is(.detail-head,.detail-body,.preferences-head,.preferences-body,.preferences-footer){background:var(--surface);color:var(--text);border-color:var(--line)}



/* Structural rules for the reference dashboard; visual tokens follow below. */
.dash-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.dash-date{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.dash-date>svg{width:14px;height:14px}
.dash-date .icon-button{width:30px;height:30px;min-height:30px;padding:6px}
.dash-date .icon-button>svg{width:16px;height:16px}
.dashboard-grid{display:grid;align-items:stretch}
.dashboard-left,.dashboard-center,.dashboard-right{display:contents}
.dash-card{position:relative;min-width:0}
.dash-card-label{display:flex;align-items:center;justify-content:space-between;gap:6px;font-weight:550}
.dash-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--surface-raised);color:var(--muted)}
.dash-icon svg{width:16px;height:16px}
.dash-big-number{display:block;font-weight:600;letter-spacing:-2px;font-variant-numeric:tabular-nums}
.dash-roster .dash-icon,.dash-roster>.dash-link{display:none}
.roster-gauge{position:relative;display:block;max-width:100%;margin:4px auto 0}
.roster-gauge>svg{display:block;width:100%;fill:none;stroke-width:12;overflow:visible;stroke-linecap:round}
.gauge-track{stroke:var(--line)}
.gauge-value{stroke:#ffc54a}
.roster-gauge>div{position:absolute;left:0;right:0;bottom:2px;display:flex;flex-direction:column;gap:4px;text-align:center}
.roster-gauge>div>span{font-weight:600;color:var(--text)}
.roster-gauge small{color:var(--muted)}
.dash-link{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:var(--muted);font-weight:450;line-height:1.5;text-align:left}
.dash-link:hover{color:var(--accent)}
.dash-link svg{width:14px;height:14px}
.dash-task{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;isolation:isolate}
.dash-task h2{margin:0;line-height:1.2;font-weight:600;letter-spacing:-.6px}
.dash-personnel .button svg{width:18px;height:18px;flex-shrink:0}
.dash-welcome{display:flex;align-items:center;overflow:hidden}
.welcome-copy{position:relative;z-index:2;max-width:72%}
.welcome-project{display:flex;align-items:center;gap:6px;color:var(--muted)}
.welcome-project i{width:5px;height:5px;border-radius:50%;background:var(--brand)}
.dash-welcome h2{overflow-wrap:anywhere}
.dash-welcome .dash-link{color:var(--text)}
.welcome-character{position:absolute;object-fit:contain;object-position:center bottom;z-index:1}
.dash-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.dash-card-head>svg{width:18px;height:18px;color:var(--faint)}
.chart-tabs{display:flex;flex-shrink:0}
.chart-tabs button{border:0;background:none;color:var(--muted);line-height:1.2}
.chart-tabs button[aria-pressed=true]{color:var(--text)}
.dash-line-chart{min-width:0}
.line-chart-plot{position:relative}
.workload-line{display:block;width:100%;height:100%;overflow:visible;fill:none}
.workload-line-path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.line-chart-grid{fill:none;stroke-width:1;vector-effect:non-scaling-stroke}
.chart-hit-areas{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.chart-point-button{position:relative;display:block;width:100%;height:100%;padding:0;font:inherit;cursor:pointer}
.line-chart-point{position:absolute;top:var(--point-top);left:50%;transform:translate(-50%,-50%);border-radius:50%}
.chart-tooltip{position:absolute;z-index:3;left:50%;transform:translateX(-50%);white-space:nowrap;pointer-events:none;text-align:center;line-height:1.4}
.chart-tooltip strong{display:block}
.chart-labels{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;color:var(--muted);line-height:1.5}
.chart-labels small{display:none}
.dash-icon-button{display:grid;place-items:center;width:25px;height:25px;padding:4px;border:0;background:none;color:var(--faint)}
.dash-icon-button svg{width:15px;height:15px}
.norm-grid{display:flex;flex-direction:column;scrollbar-width:thin}
.norm-row{display:grid;align-items:center}
.norm-days{text-align:center;color:var(--muted)}
.norm-days>span:first-child{text-align:left}
.norm-person{color:var(--muted)}
.norm-cell{display:block}
.norm-legend{display:flex;color:var(--muted)}
.norm-legend>span{display:flex;align-items:center;gap:4px}
.norm-legend i{display:inline-block}
.dash-total{overflow:hidden}
.dash-total>strong{display:block;line-height:1.1;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.dash-total>strong.is-role{white-space:normal;overflow-wrap:anywhere;letter-spacing:-.9px}
.dash-total>p{margin-top:12px;line-height:1.6;color:var(--muted)}
.total-breakdown{border-top:1px solid var(--line)}
.total-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.total-breakdown>div:last-child{border-bottom:0}
.total-breakdown dt{color:var(--muted)}
.total-breakdown dd{color:var(--text);font-weight:550}
.dash-total>.dash-link,.dash-inbox>.dash-link{position:absolute;display:flex;justify-content:space-between;padding-top:16px;border-top:1px solid var(--line)}
.dash-inbox-count{display:flex;align-items:center;gap:14px}
.dash-inbox-count strong{font-weight:550;line-height:1;letter-spacing:-1.5px;color:var(--text)}
.dash-inbox-count>span{color:var(--muted);line-height:1.5}
.dash-access-role{margin:15px 0;color:var(--muted);font-size:15px}
.dash-activity-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:16px 0}
.dash-activity-row strong{font-size:15px}
.dash-activity-row p{font-size:14px;color:var(--muted);margin-top:4px}
.dash-empty{display:flex;align-items:center;justify-content:center;min-height:100px;text-align:center;color:var(--muted);font-size:14px;line-height:1.7;padding:18px}
.dash-loading{display:grid;place-items:center;min-height:400px;color:var(--muted);font-size:15px}
.dash-footer{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}
.dash-footer>span:first-child{display:flex;align-items:center;gap:5px}
.dash-footer i{width:4px;height:4px;border-radius:50%;background:#7bbd96}
@media(max-width:900px){.dash-date>svg,.dash-date>span{display:none}}

/* Client's reference: a quiet white workspace, orange feature tile and compact data. */
html:root,body[data-game]{--brand:#f04416;--brand-soft:#fff1eb;--surface:#fff;--surface-inset:#f8f8fa;--surface-raised:#f3f3f5;--line:#ededf0;--border:var(--line);--text:#202124;--muted:#68686f;--faint:#6c6c73;--card-shadow:0 1px 3px #17172706,0 0 0 1px #17172703;--graph-ink:#303036;--heat-complete:#ed852d;--heat-incomplete:#f7ddbd;--heat-neutral:#ececea;--heat-current:#f3bd70;--sidebar-surface:#f8f8f9;--feature-surface:var(--surface-inset);--feature-ink:var(--text);--feature-muted:var(--muted);--motion-fast:180ms;--motion-normal:260ms;--motion-ease:cubic-bezier(.2,.7,.2,1)}
html[data-theme=dark],html[data-theme=dark] body[data-game]{--surface:#151515;--surface-inset:#111;--surface-raised:#1d1d1d;--line:#292929;--border:var(--line);--text:#ededed;--muted:#aaa;--faint:#858585;--brand-soft:#2c1d17;--card-shadow:0 1px 3px #0002;--graph-ink:#dedede;--heat-incomplete:#614229;--heat-neutral:#2c2c2c;--heat-current:#b7803a;--sidebar-surface:#151515;--feature-surface:var(--surface-inset);--feature-ink:var(--text);--feature-muted:var(--muted)}
html[data-theme]{background:var(--surface)}
html[data-theme] body[data-game]{background:var(--surface)}
html[data-theme] .workspace{width:100%;max-width:none;margin:0;grid-template-columns:248px minmax(0,1fr);min-height:100dvh;background:var(--surface);border-radius:0;overflow:clip;box-shadow:none}
html[data-theme] body[data-game]{width:100%;min-width:0;max-width:none;min-height:100dvh;margin:0;padding:0;font-family:Onest,"Segoe UI",sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}
#app{width:100%;min-height:100dvh}
body:has(.demo-banner) #app{min-height:calc(100dvh - 18px)}
/* Sign-in uses the same surfaces and theme as the administration panel. */
html:has(.new-login){scrollbar-gutter:auto;background:var(--surface)}
.new-login{display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:none;min-height:100dvh;margin:0;background:var(--surface);color:var(--text)}
.new-login .login-story{display:flex;flex-direction:column;justify-content:space-between;min-width:0;gap:40px;padding:clamp(28px,4.5vw,72px);background:var(--surface)}
.login-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%}
.new-login .brand{margin:0;font-size:28px;font-weight:600;letter-spacing:-1px;color:var(--text)}
.new-login .brand small{display:none}
.new-login .login-theme{display:grid;place-items:center;flex:none;width:38px;height:38px;min-height:38px;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);cursor:pointer;transition:background-color .2s,color .2s}
.login-theme svg{width:19px;height:19px}
.new-login .login-theme:hover{background:var(--surface-raised);color:var(--text)}
.login-story-top{width:100%;max-width:600px;margin:auto 0}
.new-login .login-story h1{margin:0;color:var(--text);font-size:clamp(34px,3.2vw,54px);font-weight:600;line-height:1.16;letter-spacing:-1.8px}
.new-login .login-story-top>p{margin:24px 0 0;color:var(--muted);font-size:17px;line-height:1.75}
.new-login .login-directions{display:grid;gap:10px;width:100%;max-width:440px;margin-top:32px}
.new-login .login-directions button{display:flex;align-items:center;gap:14px;min-width:0;min-height:60px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:16px;text-align:left;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.new-login .login-directions button:hover{background:var(--surface-raised)}
.new-login .login-directions button.selected{border-color:var(--accent);background:var(--surface-inset)}
.new-login .login-directions button img{flex:none;width:36px;height:36px;border-radius:8px;object-fit:cover}
.new-login .login-directions button>svg{flex:none;margin-left:auto;width:18px;height:18px;color:var(--muted);transition:transform .2s,color .2s}
.new-login .login-directions button.selected>svg{color:var(--accent)}
.new-login .login-directions button:hover>svg{transform:translateX(2px)}
.new-login .login-copyright{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.new-login .login-scene{display:flex;align-items:center;justify-content:center;min-width:0;min-height:100dvh;padding:32px clamp(28px,4vw,64px);border-left:1px solid var(--line);background:var(--surface-inset);isolation:auto;overflow:hidden}
.new-login .login-scene-content{width:100%;max-width:420px}
.new-login .login-figure{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;width:100%;height:200px;margin:0 0 20px;transform:none}
.new-login .login-character{position:static;display:block;width:240px;height:200px;object-fit:contain;filter:none;mask-image:none;opacity:1;transform:none}
.new-login .login-card{width:100%;max-width:none;margin:0;padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 4px 24px #00000004;animation:none}
.new-login .login-card h2{margin:0;color:var(--text);font-size:27px;font-weight:600;line-height:1.3;letter-spacing:-.7px}
.new-login .login-card>p{margin:16px 0 0;color:var(--muted);font-size:15px;line-height:1.65}
.new-login .discord-login{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin-top:24px;padding:12px 16px;border:1px solid var(--accent-visual);border-radius:9px;background:var(--accent-visual);color:var(--accent-ink);font-size:15px;font-weight:500;text-decoration:none;transition:filter .2s,box-shadow .2s}
.new-login .discord-login:hover{filter:brightness(.94);box-shadow:0 3px 12px #0001;transform:none}
.new-login .discord-login svg{width:18px;height:18px}
.new-login .login-card>#login-error{margin:18px 0 0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--negative) 30%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--negative) 6%,var(--surface));color:var(--negative);font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.new-login .login-footer{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.6}
@media(max-width:1100px){.new-login .login-story{padding:32px}.new-login .login-story h1{font-size:36px;letter-spacing:-1px}.new-login .login-story-top>p{font-size:16px}.new-login .login-scene{padding:28px}.new-login .login-card{padding:26px}}
@media(max-width:900px){.new-login{grid-template-columns:minmax(0,1fr)}.new-login .login-story{gap:32px;padding:28px max(24px,calc((100% - 640px)/2)) 32px}.login-story-top{max-width:none;margin:0}.new-login .login-story h1{font-size:36px}.new-login .login-story-top>p{margin-top:18px}.new-login .login-directions{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;margin-top:24px;gap:10px}.new-login .login-directions button{flex-direction:column;justify-content:center;gap:8px;min-height:90px;padding:12px 6px;font-size:14px;text-align:center}.new-login .login-directions button img{width:32px;height:32px}.new-login .login-directions button>svg{display:none}.new-login .login-copyright{display:none}.new-login .login-scene{min-height:0;padding:28px 24px 40px;border-left:0;border-top:1px solid var(--line)}.new-login .login-scene-content{max-width:640px}.new-login .login-figure{display:none}.new-login .login-card{max-width:none;padding:26px}.new-login .login-card h2{font-size:25px}}
@media(max-width:380px){.new-login .login-story{padding-inline:20px;gap:26px}.new-login .brand{font-size:26px}.new-login .login-story h1{font-size:30px;letter-spacing:-.8px}.new-login .login-story-top>p{font-size:15px}.new-login .login-scene{padding:22px 16px 30px}.new-login .login-card{padding:22px}.new-login .login-card h2{font-size:24px}.new-login .login-card>p{font-size:14px}}
html[data-theme] .workspace .workspace-main{display:flex;flex-direction:column;min-width:0;background:var(--surface);font-family:inherit;font-size:15px}
body:has(.demo-banner) .demo-banner{position:relative;height:18px;padding:0 10px;font-size:11px;line-height:18px}
html[data-theme] body:has(.demo-banner) .workspace{min-height:calc(100dvh - 18px)}
html[data-theme] body:has(.demo-banner) .workspace>.sidebar{top:18px;height:calc(100dvh - 18px)}
html[data-theme] .workspace>.sidebar{position:sticky;top:0;width:248px;height:100dvh;padding:18px 10px 0;border:0;border-right:1px solid var(--line);background:var(--sidebar-surface);border-radius:0;align-self:start;transform:none;transition:none}
html[data-theme] .workspace .sidebar-head{padding:0 10px;margin-bottom:12px}
html[data-theme] .workspace .sidebar .brand{font-size:26px;letter-spacing:-.9px}
html[data-theme] .workspace .sidebar .brand small{display:none}
html[data-theme] .workspace .direction-picker{padding:0 6px;margin-bottom:12px}
html[data-theme] .workspace .direction-picker>span{display:none}
html[data-theme] .workspace .direction-control{height:40px;min-height:40px;background:var(--surface);border-color:var(--line)}
html[data-theme] .workspace .direction-control .select-trigger{min-height:38px;font-size:14px}
html[data-theme] .workspace .nav{display:flex;flex:1;min-height:0;flex-direction:column;gap:2px;padding:0 0 10px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scroll-padding-block:8px}
html[data-theme] .workspace .nav .nav-link{flex-shrink:0;min-height:38px;padding:8px 10px;gap:10px;border-radius:7px;font-size:15px;line-height:1.4;font-weight:400}
html[data-theme] .workspace .nav .nav-link>svg{width:18px;height:18px;flex-basis:18px}
html[data-theme] .workspace .nav .nav-link[aria-current=page]{color:var(--text);background:var(--surface-raised);font-weight:500}
html[data-theme] .workspace .nav .nav-link[aria-current=page]>svg{color:var(--accent)}
html[data-theme] .workspace .nav .nav-count{font-size:12px;min-width:22px;padding:1px 5px;border-radius:5px;background:var(--surface-raised)}
html[data-theme] .workspace .nav .nav-link>span:first-of-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav-section{display:block;flex-shrink:0;min-width:0;margin-top:9px;border:0}
.nav-section>summary{display:flex;align-items:center;justify-content:space-between;min-height:32px;padding:7px 10px;color:var(--faint);font-size:12px;font-weight:500;line-height:1.5;cursor:pointer;list-style:none;border-radius:6px}
.nav-section>summary::-webkit-details-marker{display:none}
.nav-section>summary>svg{width:14px;height:14px;transform:rotate(-90deg);transition:transform var(--motion-fast) var(--motion-ease)}
.nav-section[open]>summary>svg{transform:none}
.nav-section>summary:hover{color:var(--text);background:var(--surface-raised)}
.nav-section-body{display:grid;gap:2px;padding-top:3px}
html[data-theme] .workspace .nav-section[hidden]{display:none}
html[data-theme] .workspace .nav-link[data-view=settings]{margin-top:10px}

html[data-theme] .workspace .sidebar-footer{display:grid;flex-shrink:0;gap:8px;margin:0;padding:8px 4px;background:var(--sidebar-surface);border-top:1px solid var(--line)}
html[data-theme] .workspace .sidebar-footer .sidebar-agent{min-height:34px;margin:0;padding:3px 6px;background:transparent;box-shadow:none;border-color:transparent;border-radius:7px;gap:10px}
html[data-theme] .workspace .sidebar-agent-copy small{display:none}
html[data-theme] .workspace .sidebar-footer .daily-quest{display:grid;gap:5px;min-height:0;margin:0;padding:6px 10px;background:var(--surface-inset);border:1px solid var(--line);border-radius:9px;box-shadow:none}
html[data-theme] .workspace .sidebar-user{min-height:0;margin:4px 0 0;padding:7px 6px 0;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
html[data-theme] .workspace .sidebar-agent-mark{width:24px;height:24px;border:0;border-radius:7px;background:var(--surface-raised);color:var(--muted)}
html[data-theme] .workspace .sidebar-agent-mark svg{width:18px;height:18px}
html[data-theme] .workspace .sidebar-agent-copy{flex:1}
html[data-theme] .workspace .sidebar-agent-copy strong{font-size:14px;font-weight:500}
html[data-theme] .workspace .sidebar-footer .sidebar-agent:hover{background:var(--surface-raised)}
html[data-theme] .workspace .daily-quest :is(.quest-ring,.quest-heading){display:none}
html[data-theme] .workspace .daily-quest .quest-task{margin:0;gap:0}
html[data-theme] .workspace .daily-quest .quest-task>span{display:flex;flex:1;align-items:center;justify-content:space-between;gap:8px}
html[data-theme] .workspace .daily-quest .quest-task strong{font-size:12px;font-weight:500;color:var(--text)}
html[data-theme] .workspace .daily-quest .quest-reward{font-size:11px;color:var(--muted)}
html[data-theme] .workspace .daily-quest .quest-progress-row{gap:10px;line-height:1.3}
html[data-theme] .workspace .daily-quest .quest-progress-row :is(strong,small){font-size:11px;color:var(--muted)}
html[data-theme] .workspace .daily-quest progress{height:3px;accent-color:var(--accent)}
html[data-theme] .workspace .daily-quest progress::-webkit-progress-bar{background:var(--line)}
html[data-theme] .workspace .daily-quest progress::-webkit-progress-value{background:var(--accent)}
html[data-theme] .workspace .daily-quest progress::-moz-progress-bar{background:var(--accent)}
html[data-theme] .workspace .daily-quest .quest-footer{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-theme] .workspace .sidebar-user .sidebar-theme{display:grid;place-items:center;flex:0 0 30px;width:30px;min-height:30px;height:30px;margin:0;padding:7px;border:0;border-radius:6px;background:transparent;color:var(--muted)}
html[data-theme] .workspace .sidebar-user .sidebar-theme>span{display:none}
html[data-theme] .workspace .sidebar-user .sidebar-theme:hover{background:var(--surface-raised);color:var(--text)}
html[data-theme] .workspace .sidebar-user .sidebar-identity strong{line-height:1.25}
html[data-theme] .workspace .sidebar-user .sidebar-identity small{line-height:1.2}
html[data-theme] .workspace .sidebar-account{min-height:32px}
html[data-theme] .workspace .sidebar-user .admin-avatar{width:32px;height:32px;border-radius:8px}
html[data-theme] .workspace .topbar{height:58px;min-height:58px;padding:0 22px;background:var(--surface);border-bottom:1px solid var(--line)}
html[data-theme] .workspace .topbar .nav-search{height:38px;min-height:38px;flex-basis:300px;width:300px;border:1px solid transparent;background:var(--surface-inset)}
html[data-theme] .workspace .topbar .nav-search input{height:36px;min-height:36px;font-size:14px!important}
html[data-theme] .workspace .topbar .topbar-settings{min-height:36px;height:36px;font-size:13px;padding:7px 10px}
html[data-theme] .workspace .breadcrumb{padding:18px 22px 0;font-size:12px}
html[data-theme] .workspace .content,html[data-theme] body[data-view=dashboard] .workspace .content{width:100%;max-width:none;margin:0;padding:20px 22px 24px}
html[data-theme] .workspace #content>:is(#vacations-root,#proof-root,#feedback-root,.promotions-page){width:100%;max-width:none;margin-inline:0}
.workspace #content{flex:1;min-height:0}
.workspace #content.view-preparing{opacity:0}
.workspace #content.view-changing{pointer-events:none;overflow-anchor:none}
html[data-theme] .workspace :is(.page-heading,.editor-heading){margin-bottom:22px}
html[data-theme] .workspace :is(.page-heading h1,.editor-heading h1){font-size:28px;line-height:1.3;letter-spacing:-.7px}
html[data-theme] .workspace .page-heading p{font-size:15px;line-height:1.6}
html[data-theme] .workspace :is(.panel,.staff-card,.table-shell,.manual-chapter,.eco-product,.vacation-list-panel,.feedback-panel,.proof-panel,.test-card){border-color:var(--line);box-shadow:var(--card-shadow)}
html[data-theme] .workspace :is(input,textarea,.select-trigger){border-radius:8px}
html[data-theme] .workspace .button{border-radius:8px;min-height:40px;font-weight:500}
html[data-theme] .workspace .button:hover{transform:none}
/* Interaction states share one timing system; layout never moves on hover. */
.workspace :where(button,a,input,textarea,select,summary,.select-trigger){transition:background-color var(--motion-fast) var(--motion-ease),border-color var(--motion-fast) var(--motion-ease),color var(--motion-fast) var(--motion-ease),box-shadow var(--motion-normal) var(--motion-ease),opacity var(--motion-fast) var(--motion-ease),transform var(--motion-normal) var(--motion-ease)}
.workspace :where(.dash-card,.account-section,.account-day,.norm-cell,.staff-card,.inbox-row,.proof-row,.promotion-row,.eco-product){transition:background-color var(--motion-normal) var(--motion-ease),border-color var(--motion-normal) var(--motion-ease),box-shadow var(--motion-normal) var(--motion-ease),transform var(--motion-fast) var(--motion-ease)}
.workspace :where(.weekly-table,.other-punishments-table,.community-table,.users-table) :is(th,td){transition:background-color var(--motion-fast) var(--motion-ease)}
@media(hover:hover){
 .workspace .norm-cell:hover{transform:scale(1.15)}
 .workspace :is(.dash-link,.text-link,.account-menu-trigger):hover{color:var(--accent)}
}
/* The reference has a tall orange tile beside two smaller central cards. */
.workspace .dash-page-head{margin-bottom:16px}
.workspace .dash-page-head h1{font-size:25px;letter-spacing:-.6px}
.workspace .dashboard-grid{grid-template-columns:1fr 1.9fr 1.02fr;grid-template-rows:220px 180px minmax(220px,auto);gap:16px}
.workspace .dashboard-grid .dash-card{min-width:0;min-height:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--card-shadow)}
.workspace .dashboard-grid .dash-card h2{font-size:19px;line-height:1.35;font-weight:600;letter-spacing:-.3px}
.workspace .dashboard-grid .dash-roster{grid-column:1;grid-row:1}
.workspace .dashboard-grid .dash-welcome{grid-column:2;grid-row:1}
.workspace .dashboard-grid .dash-personnel{grid-column:1;grid-row:2 / 4;position:relative;overflow:hidden;padding:22px;background:var(--feature-surface);border-color:var(--line);border-radius:12px;box-shadow:none}
.workspace .dashboard-grid .dash-personnel :is(h2,p){position:relative;z-index:1;color:var(--feature-ink)}
.workspace .dashboard-grid .dash-personnel h2{font-size:25px;max-width:190px}
.workspace .dashboard-grid .dash-personnel p{font-size:16px;max-width:170px;margin-top:10px;line-height:1.6}
.workspace .dashboard-grid .dash-personnel::after{content:none}
html[data-theme] .workspace .dashboard-grid .dash-personnel .button{position:relative;z-index:1;align-self:flex-start;min-height:42px;width:auto;max-width:100%;margin-top:auto;padding:10px 14px;border-radius:24px;background:var(--surface);color:var(--feature-ink);border:1px solid var(--line);font-size:15px;gap:10px}
.workspace .dashboard-grid .dash-dynamics{grid-column:2;grid-row:2;padding:16px 20px}
.workspace .dashboard-grid .dash-norms{grid-column:2;grid-row:3;padding:18px 20px}
.workspace .dashboard-grid .dash-total{grid-column:3;grid-row:1 / 3}
.workspace .dashboard-grid .dash-inbox{grid-column:3;grid-row:3}
.workspace .dashboard-grid .dash-activity{grid-column:2;grid-row:2 / 4}
.workspace .dashboard-grid .dash-card-label{font-size:15px;color:var(--text)}
.workspace .dashboard-grid .dash-big-number{font-size:54px;line-height:1.1;margin-top:8px}
.workspace .dashboard-grid .dash-roster>p{font-size:14px;margin-top:2px}
.workspace .dashboard-grid .roster-gauge{width:160px;height:82px;margin-top:4px}
.workspace .dashboard-grid .roster-gauge>svg{height:82px}
.workspace .dashboard-grid .roster-gauge>div>span{font-size:15px}
.workspace .dashboard-grid .roster-gauge small{font-size:12px}
.workspace .dashboard-grid .dash-welcome h2{font-size:35px;line-height:1.15;letter-spacing:-1px}
.workspace .dashboard-grid .welcome-project{font-size:13px;margin-bottom:13px}
.workspace .dashboard-grid .welcome-character{height:190px;width:38%;right:8px;bottom:0}
.workspace .dashboard-grid .dash-welcome .dash-link{font-size:14px;margin-top:20px}
.workspace .dashboard-grid .dash-total>strong{font-size:clamp(48px,4.4vw,76px);margin-top:15px;color:#00a51a;letter-spacing:-2px}
html[data-theme=dark] .workspace .dashboard-grid .dash-total>strong{color:#65d780}
.workspace .dashboard-grid .dash-total>strong.is-role{font-size:28px;color:var(--text)}
.workspace .dashboard-grid .dash-total>span,.workspace .dashboard-grid .dash-total>p{font-size:14px}
.workspace .dashboard-grid .total-breakdown{margin-top:22px}
.workspace .dashboard-grid .total-breakdown>div{padding:17px 0;border-color:var(--line)}
.workspace .dashboard-grid .total-breakdown dt{font-size:15px}
.workspace .dashboard-grid .total-breakdown dd{font-size:23px}
.workspace .dashboard-grid :is(.dash-total,.dash-inbox)>.dash-link{left:20px;right:20px;bottom:20px;font-size:14px;border-color:var(--line)}
.workspace .dashboard-grid .dash-inbox-count{margin:18px 0 22px}
.workspace .dashboard-grid .dash-inbox-count strong{font-size:44px}
.workspace .dashboard-grid .dash-inbox-count>span{font-size:14px}
/* Hover exposes only a small point and tooltip, never a highlighted column. */
.workspace .dash-dynamics .dash-card-head{margin-bottom:8px;align-items:center;gap:8px;flex-wrap:nowrap}
.workspace .dash-dynamics .dash-card-head h2{font-size:17px}
.workspace .dash-dynamics .chart-tabs{padding:3px;gap:0;border-radius:18px;background:var(--surface-raised)}
.workspace .dash-dynamics .chart-tabs button{min-height:25px;font-size:12px;padding:5px 8px;border-radius:14px}
.workspace .dash-dynamics .chart-tabs button[aria-pressed=true]{background:var(--surface);box-shadow:0 1px 3px #0000000c}
.workspace .dash-line-chart{--chart-colour:var(--graph-ink)}
.workspace .line-chart-plot{height:88px;margin:0}
.workspace .workload-line-path{stroke:var(--graph-ink);stroke-width:1.7}
.workspace .line-chart-grid{stroke:var(--line);opacity:.45}
.workspace .dash-line-chart .chart-point-button,.workspace .dash-line-chart .chart-point-button:hover,.workspace .dash-line-chart .chart-point-button:focus-visible{background:transparent;box-shadow:none;border:0;outline:0!important;transform:none}
.workspace .line-chart-point{width:7px;height:7px;border:1.5px solid var(--graph-ink);background:var(--surface);opacity:0;box-shadow:none;transition:opacity .16s ease}
.workspace .chart-point-button.is-today .line-chart-point{background:var(--surface)}
.workspace .chart-point-button:hover .line-chart-point,.workspace .chart-point-button:focus-visible .line-chart-point{opacity:1}
.workspace .dash-line-chart .chart-tooltip{display:block;visibility:hidden;opacity:0;transform:translate(-50%,4px);transition:opacity var(--motion-fast) var(--motion-ease),transform var(--motion-normal) var(--motion-ease),visibility 0s linear var(--motion-fast);top:auto;bottom:calc(100% - var(--point-top) + 10px);min-width:70px;padding:6px 9px;border:0;border-radius:14px;background:#252528;color:#ccc;font-size:11px;box-shadow:0 3px 10px #0002}
.workspace .dash-line-chart .chart-tooltip strong{margin-top:1px;color:#fff;font-size:13px}
.workspace .chart-point-button:hover .chart-tooltip,.workspace .chart-point-button:focus-visible .chart-tooltip{visibility:visible;opacity:1;transform:translate(-50%,0);transition-delay:0s}
.workspace .dash-line-chart .chart-labels{margin-top:4px;font-size:12px}
.workspace .dash-line-chart .chart-labels .is-today{color:var(--text);font-weight:500}
/* Small square cells preserve the reference's heat map instead of status chips. */
.workspace .dashboard-grid .dash-norms .dash-card-head{margin-bottom:10px}
.workspace .dashboard-grid .dash-norms .dash-card-head h2{font-size:17px}
.workspace .dashboard-grid .dash-norms .dash-card-head p{display:none}
.workspace .dashboard-grid .norm-grid{gap:3px;overflow-x:auto;margin:0}
.workspace .dashboard-grid .norm-row{grid-template-columns:minmax(105px,1.8fr) repeat(7,minmax(18px,1fr));gap:5px;min-width:300px}
.workspace .dashboard-grid .norm-person{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace .dashboard-grid .norm-days{font-size:11px;margin:0 0 2px}
.workspace .dashboard-grid .norm-cell{position:relative;justify-self:center;width:17px;height:17px;border:0;border-radius:3px;background:var(--heat-neutral);color:transparent}
.workspace .dashboard-grid .norm-cell[data-state=complete]{background:var(--heat-complete);border:0}
.workspace .dashboard-grid .norm-cell[data-state=incomplete]{background:var(--heat-incomplete);border:0}
.workspace .dashboard-grid .norm-cell[data-state=current]{background:var(--heat-current);border:0}
.workspace .dashboard-grid .norm-cell:is([data-state=future],[data-state=missing],[data-state=exempt],[data-state=vacation]){background:var(--heat-neutral);border:0}
.workspace .dashboard-grid .norm-cell::after{content:none!important}
.workspace .dashboard-grid .norm-legend{margin-top:10px;gap:10px;font-size:11px;line-height:1.4;flex-wrap:wrap}
.workspace .dashboard-grid .norm-legend i{width:9px;height:9px;border:0;border-radius:2px;background:var(--heat-neutral)}
.workspace .dashboard-grid .norm-legend i[data-state=complete]{background:var(--heat-complete)}
.workspace .dashboard-grid .norm-legend i[data-state=incomplete]{background:var(--heat-incomplete)}
.workspace .dash-footer{margin-top:16px}
/* Community pages share the same surfaces and legible table rows. */
.workspace #community-root:not(.support-inbox-page) .community-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:16px 20px;margin-bottom:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--card-shadow)}
.workspace #community-root:not(.support-inbox-page) .community-metrics .metric{display:grid;grid-template-columns:1fr auto;gap:4px 12px;min-height:0;padding:0 20px;margin:0;border:0;border-right:1px solid var(--line);background:transparent;box-shadow:none;border-radius:0}
.workspace #community-root:not(.support-inbox-page) .community-metrics .metric:first-child{padding-left:0}
.workspace #community-root:not(.support-inbox-page) .community-metrics .metric:last-child{padding-right:0;border:0}
.workspace #community-root .community-metrics .metric-label{font-size:14px;color:var(--muted)}
.workspace #community-root .community-metrics .metric-value{grid-column:2;grid-row:1 / 3;align-self:center;font-size:26px;line-height:1.2;color:var(--text)}
.workspace #community-root .community-metrics .metric-foot{font-size:12px;color:var(--muted)}
.workspace #community-root .contest-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 22px;margin:0 0 22px;background:var(--surface-inset);border:1px solid var(--line);border-radius:12px}
.workspace #community-root .contest-heading .eyebrow{font-size:12px;color:var(--muted)}
.workspace #community-root .contest-heading h2{margin-top:4px;font-size:22px}
.workspace #community-root .contest-heading>div:last-child{display:grid;gap:5px;text-align:right;font-size:14px}
.workspace #community-root .contest-heading strong{font-size:17px}
.workspace #community-root .community-section-heading{font-size:19px;margin:22px 0 12px}
.workspace #community-root .community-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--card-shadow);scrollbar-width:thin}
.workspace #community-root .community-table{display:table;width:100%;margin:0;border-collapse:collapse;table-layout:auto;color:var(--text);font-size:15px}
.workspace #community-root .community-table :is(th,td){padding:15px 18px;border:0;border-bottom:1px solid var(--line);text-align:left;color:var(--text);background:var(--surface);font-size:15px;line-height:1.5;vertical-align:middle}
.workspace #community-root .community-table thead th{font-size:13px;color:var(--muted);background:var(--surface-inset);font-weight:500;white-space:nowrap}
.workspace #community-root .community-table tbody tr:last-child td{border-bottom:0}
.workspace #community-root .community-table tbody tr:hover td{background:var(--surface-inset)}
.workspace #community-root .punishment-table{min-width:940px;table-layout:fixed}
.workspace #community-root .punishment-table th:nth-child(1){width:18%}
.workspace #community-root .punishment-table th:nth-child(2){width:34%}
.workspace #community-root .punishment-table th:nth-child(3){width:14%}
.workspace #community-root .punishment-table th:nth-child(4){width:12%}
.workspace #community-root .punishment-table th:nth-child(5){width:14%}
.workspace #community-root .punishment-table th:nth-child(6){width:8%}
.workspace #community-root .punishment-table td{overflow-wrap:anywhere;font-size:14px}
.workspace #community-root .punishment-player{display:grid;gap:5px}
.workspace #community-root .punishment-player strong{font-size:16px}
.workspace #community-root .punishment-player small{font-size:12px;color:var(--muted)}
.workspace #community-root .punishment-type{display:inline-block;padding:2px 6px;margin-right:5px;border-radius:4px;background:var(--surface-raised);color:var(--muted);font-size:12px;font-weight:500}
.workspace #community-root .punishment-record a{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:13px;text-decoration:none}
.workspace #community-root .punishment-record a:hover{color:var(--brand)}
.workspace #community-root .punishment-record a svg{width:19px;height:19px;color:#5865f2}
.workspace #community-root :is(.community-chart,.community-stat-details){background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;box-shadow:var(--card-shadow)}
.workspace #community-root .community-stat-details{margin-top:20px;gap:0}
.workspace #community-root .community-stat-details>div{padding:14px 16px;border-color:var(--line)}
.workspace #community-root .community-stat-details :is(span,p){color:var(--muted)}
/* One composer surface: the text field never gains a rectangular inner outline. */
.workspace #community-root.support-inbox-page .composer-row{border-color:var(--line);box-shadow:none;transition:border-color .2s ease,box-shadow .2s ease}
.workspace #community-root.support-inbox-page .composer-row:focus-within{border-color:color-mix(in srgb,var(--muted) 45%,var(--line));box-shadow:0 2px 8px #00000006}
.workspace #community-root.support-inbox-page .chat-composer textarea,.workspace #community-root.support-inbox-page .chat-composer textarea:focus,.workspace #community-root.support-inbox-page .chat-composer textarea:focus-visible{outline:0!important;border:0!important;box-shadow:none!important;background:transparent;font-size:16px}
.workspace #community-root.support-inbox-page .inbox-layout{border-color:var(--line);box-shadow:var(--card-shadow)}
.workspace #community-root.support-inbox-page .chat-message{border-radius:13px;padding:13px 16px}
.workspace #community-root.support-inbox-page .chat-message p{font-size:16px;line-height:1.65}
@media(max-width:1250px) and (min-width:1101px){.workspace .dashboard-grid{grid-template-columns:1fr 1.7fr}.workspace .dashboard-grid .dash-total{grid-column:1;grid-row:4}.workspace .dashboard-grid .dash-inbox{grid-column:2;grid-row:4}.workspace .dashboard-grid .dash-total{min-height:240px}.workspace .dashboard-grid .dash-total>strong{font-size:52px}.workspace .dashboard-grid .total-breakdown{display:flex;gap:20px;margin-top:8px}.workspace .dashboard-grid .total-breakdown>div{flex:1;border:0;padding:8px 0}.workspace .dashboard-grid .dash-total>.dash-link{position:static;margin-top:16px}.workspace .dashboard-grid .dash-welcome h2{font-size:31px}}
@media(max-width:1100px){html[data-theme] .workspace{width:100%;margin:0;min-height:100dvh;border-radius:0;grid-template-columns:minmax(0,1fr);overflow:clip}html[data-theme] .workspace>.sidebar,html[data-theme] body:has(.demo-banner) .workspace>.sidebar{position:fixed;top:0;left:0;width:260px;max-width:88vw;height:100dvh;border-radius:0;z-index:102;transform:translateX(-105%);transition:transform .22s var(--motion-ease)}html[data-theme] body .workspace.nav-open>.sidebar{transform:translateX(0)}.workspace .mobile-toggle,.workspace .nav-close{display:grid;place-items:center;flex:0 0 32px;width:32px;min-height:32px;height:32px;padding:6px}.workspace .nav-close{margin-left:auto}.workspace .sidebar-head{display:flex;align-items:center}.workspace .nav-backdrop{position:fixed;inset:0;z-index:101;width:100%;height:100%;border:0;background:#0007;backdrop-filter:blur(3px)}.workspace.nav-open .nav-backdrop{display:block}.workspace .dashboard-grid{grid-template-rows:220px 180px minmax(220px,auto)}html[data-theme] .workspace .nav .nav-link{font-size:16px}}
@media(max-width:800px){.workspace .dashboard-grid{grid-template-columns:1fr 1.5fr}.workspace .dashboard-grid .dash-total{grid-column:1;grid-row:4;min-height:280px}.workspace .dashboard-grid .dash-inbox{grid-column:2;grid-row:4}.workspace .dashboard-grid .dash-card{padding:18px}.workspace .dashboard-grid .dash-welcome h2{font-size:30px}.workspace .dashboard-grid .welcome-character{width:38%;height:170px}.workspace .dashboard-grid .dash-norms{padding:16px}.workspace .dashboard-grid .norm-row{min-width:280px;grid-template-columns:minmax(90px,1.5fr) repeat(7,minmax(17px,1fr));gap:3px}.workspace #community-root .community-metrics .metric-label{font-size:13px}.workspace #community-root:not(.support-inbox-page) .community-metrics .metric{padding-inline:12px}}
@media(max-width:600px){html[data-theme] .workspace .topbar{padding:0 14px}.workspace .topbar .nav-search{max-width:none}.workspace .topbar-right{gap:8px}html[data-theme] .workspace .content,html[data-theme] body[data-view=dashboard] .workspace .content{padding:18px 14px 24px}html[data-theme] .workspace .breadcrumb{padding-inline:14px}.workspace .dash-page-head h1{font-size:24px}.workspace .dashboard-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;gap:14px}.workspace .dashboard-grid :is(.dash-roster,.dash-welcome,.dash-personnel,.dash-dynamics,.dash-norms,.dash-total,.dash-inbox,.dash-activity){grid-column:1;grid-row:auto}.workspace .dashboard-grid .dash-welcome{order:-1;min-height:210px}.workspace .dashboard-grid .dash-roster{min-height:220px}.workspace .dashboard-grid .dash-personnel{min-height:230px}.workspace .dashboard-grid .dash-personnel::after{width:45%;height:95%;right:0}.workspace .dashboard-grid .dash-personnel .button{margin-top:40px}.workspace .dashboard-grid .dash-dynamics{min-height:180px}.workspace .dashboard-grid .dash-norms{min-height:225px}.workspace .dashboard-grid .dash-total{min-height:310px}.workspace .dashboard-grid .dash-inbox{min-height:230px}.workspace .dashboard-grid .norm-row{min-width:285px}.workspace .dashboard-grid .norm-grid{overflow-x:auto}.workspace #community-root:not(.support-inbox-page) .community-metrics{grid-template-columns:1fr;padding:6px 16px}.workspace #community-root:not(.support-inbox-page) .community-metrics .metric{padding:12px 0;border-right:0;border-bottom:1px solid var(--line)}.workspace #community-root .contest-heading{align-items:flex-start;flex-direction:column;padding:18px}.workspace #community-root .contest-heading>div:last-child{text-align:left}.workspace #community-root .community-table{min-width:550px}.workspace #community-root .punishment-table{min-width:940px}.workspace #community-root .community-table :is(th,td){display:table-cell}.workspace #community-root .community-table tr{display:table-row}.workspace #community-root .community-table td::before{display:none}.workspace #community-root .community-table thead{display:table-header-group}.workspace #community-root .community-table tbody{display:table-row-group}}
@media(prefers-reduced-motion:reduce){.workspace *,.workspace *::before,.workspace *::after{transition:none!important;animation:none!important}}

/* Workload uses one summary surface and quiet, readable table rows. */
.workspace #weekly-workload{min-width:0;--week-positive:#15794d;--week-warning:#996022}
html[data-theme=dark] .workspace #weekly-workload{--week-positive:#86caa8;--week-warning:#ddb887}
.workspace #weekly-workload .page-heading{margin-bottom:24px;align-items:center}
.workspace #weekly-workload .page-heading p{margin-top:8px;font-size:15px;color:var(--muted)}
.workspace #weekly-workload .weekly-summary{display:grid;grid-template-columns:minmax(270px,1.1fr) minmax(0,1.9fr);align-items:center;gap:32px;padding:25px 26px;margin-bottom:24px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--card-shadow)}
.workspace #weekly-workload .weekly-toolbar{display:flex;flex-direction:column;gap:16px;align-items:flex-start;min-width:0;padding:0;background:none;border:0}
.workspace #weekly-workload .weekly-period{display:grid;gap:7px}
.workspace #weekly-workload #week-state{font-size:13px;color:var(--muted)}
.workspace #weekly-workload #week-range{font-size:21px;line-height:1.4;font-weight:550;letter-spacing:-.45px;color:var(--text)}
.workspace #weekly-workload .weekly-controls{display:flex;align-items:center;gap:6px}
.workspace #weekly-workload .weekly-controls .icon-button{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:6px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted)}
.workspace #weekly-workload #week-previous svg{transform:rotate(180deg)}
.workspace #weekly-workload .weekly-controls .button{min-height:32px;height:32px;padding:5px 12px;font-size:13px;background:var(--surface-inset);border-color:var(--line);color:var(--muted)}
.workspace #weekly-workload .weekly-controls button:disabled{opacity:.4;cursor:default}
.workspace #weekly-workload .weekly-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0}
.workspace #weekly-workload .weekly-totals>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;min-height:90px;margin:0;padding:8px 24px;background:none;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none}
.workspace #weekly-workload .weekly-totals span{color:var(--muted);font-size:14px;line-height:1.5}
.workspace #weekly-workload .weekly-totals strong{font-size:34px;line-height:1.2;font-weight:600;letter-spacing:-1px;color:var(--text);font-variant-numeric:tabular-nums}
.workspace #weekly-workload .weekly-table-panel{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;box-shadow:var(--card-shadow)}
.workspace #weekly-workload .weekly-table-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:var(--surface);border:0;border-bottom:1px solid var(--line)}
.workspace #weekly-workload .weekly-table-tools .search{flex:0 1 340px;width:min(100%,340px)}
.workspace #weekly-workload .weekly-table-tools .search input{min-height:42px;height:42px;width:100%;border-color:transparent;border-radius:8px;background:var(--surface-inset);font-size:14px}
.workspace #weekly-workload .weekly-table-tools>span{color:var(--muted);font-size:13px;white-space:nowrap}
.workspace #weekly-workload .weekly-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.workspace #weekly-workload .weekly-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.workspace #weekly-workload .weekly-table{display:table;width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;table-layout:fixed;background:var(--surface);font-size:15px;color:var(--text)}
.workspace #weekly-workload .weekly-table :is(th,td){display:table-cell;height:auto;padding:9px 10px;vertical-align:middle;text-align:center;border:0;border-bottom:1px solid var(--line);background:var(--surface);font-variant-numeric:tabular-nums;color:var(--text)}
.workspace #weekly-workload .weekly-table thead{display:table-header-group}
.workspace #weekly-workload .weekly-table tbody{display:table-row-group}
.workspace #weekly-workload .weekly-table tr{display:table-row;height:auto;padding:0}
.workspace #weekly-workload .weekly-table td::before{display:none}
.workspace #weekly-workload .weekly-table thead th{width:auto;padding:16px 8px;background:var(--surface-inset);font-size:13px;font-weight:500;color:var(--muted);line-height:1.5;white-space:nowrap}
.workspace #weekly-workload .weekly-table thead th:first-child{width:224px;padding-left:22px;text-align:left}
.workspace #weekly-workload .weekly-table thead th>span{display:block;color:var(--text);font-size:14px;font-weight:500}
.workspace #weekly-workload .weekly-table thead th>small{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:400}
.workspace #weekly-workload .weekly-table thead .is-today{background:var(--surface-inset);color:var(--text)}
.workspace #weekly-workload .weekly-table thead .is-today>span::after{content:"";display:inline-block;width:4px;height:4px;margin-left:5px;vertical-align:middle;border-radius:50%;background:var(--brand)}
.workspace #weekly-workload .weekly-table tbody th{padding-left:22px;text-align:left;font-weight:400}
.workspace #weekly-workload .weekly-table tbody tr:last-child :is(th,td){border-bottom:0}
.workspace #weekly-workload .weekly-table tbody tr:hover :is(th,td){background:var(--surface-raised)}
.workspace #weekly-workload .weekly-person{display:flex;align-items:center;gap:12px;min-width:0}
.workspace #weekly-workload .weekly-person>div{min-width:0}
.workspace #weekly-workload .weekly-avatar{display:block;flex:0 0 36px;width:36px;height:36px;border-radius:10px;object-fit:cover;background:var(--surface-raised)}
.workspace #weekly-workload .weekly-avatar-initials{display:grid;place-items:center;color:var(--muted);font-size:13px;font-weight:500}
.workspace #weekly-workload .weekly-person strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:16px;font-weight:600;line-height:1.5}
.workspace #weekly-workload .weekly-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:1px;color:var(--muted);font-size:13px;line-height:1.5}
.workspace #weekly-workload .weekly-person-modes{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;line-height:1.4;color:var(--faint)}
.workspace #weekly-workload .weekly-person-modes>span{display:inline;padding:0;border:0;border-radius:0;background:none;color:inherit;font-size:inherit}
.workspace #weekly-workload .weekly-person-modes>span+span::before{content:" / ";white-space:pre}
.workspace #weekly-workload .weekly-day-stat{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:38px;min-width:36px}
.workspace #weekly-workload .weekly-day-value{font-size:16px;line-height:1.3;font-weight:550;color:var(--text)}
.workspace #weekly-workload .weekly-norm-target{font-size:11px;line-height:1.3;color:var(--faint);font-weight:400}
.workspace #weekly-workload td[data-norm-state=complete] .weekly-day-value{color:var(--week-positive)}
.workspace #weekly-workload td[data-norm-state=incomplete] .weekly-day-value{color:var(--week-warning)}
.workspace #weekly-workload td.is-future .weekly-day-value{color:var(--faint);font-weight:400}
.workspace #weekly-workload .weekly-day-note{font-size:11px;color:var(--muted)}
.workspace #weekly-workload .weekly-day-value.weekly-day-untracked{font-size:12px;font-weight:400;color:var(--muted)}
.workspace #weekly-workload .weekly-table .weekly-sum-start{border-left:1px solid var(--line)}
.workspace #weekly-workload .weekly-table .weekly-row-total{background:var(--surface);font-size:17px;font-weight:600;color:var(--text)}
.workspace #weekly-workload .weekly-table-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;padding:16px 20px;background:var(--surface);border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.6}
.workspace #weekly-workload .weekly-table-footer>span{display:flex;align-items:center;gap:7px}
.workspace #weekly-workload .weekly-table-footer i{width:6px;height:6px;border-radius:50%;background:var(--week-positive)}
.workspace #weekly-workload .weekly-table-footer i[data-state=incomplete]{background:var(--week-warning)}
.workspace #weekly-workload .weekly-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 2px 22px;color:var(--faint);font-size:12px;line-height:1.6}
.workspace #weekly-workload .weekly-help{padding:0 2px;margin:0 0 28px;font-size:14px;color:var(--muted);line-height:1.8}
.workspace #weekly-workload .weekly-help summary{display:inline-flex;gap:8px;align-items:center;cursor:pointer;color:var(--muted)}
.workspace #weekly-workload .weekly-help summary::after{content:"+";font-size:17px}
.workspace #weekly-workload .weekly-help[open] summary::after{content:"−"}
.workspace #weekly-workload .weekly-help p{max-width:850px;margin-top:14px}
.workspace #weekly-workload .weekly-note{padding:14px 18px;margin:0 0 18px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:14px;line-height:1.6}
.workspace #weekly-workload .other-punishments{margin-top:30px}
.workspace #weekly-workload .other-punishments-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.workspace #weekly-workload .other-punishments-heading h2{margin:6px 0;font-size:22px;letter-spacing:-.4px}
.workspace #weekly-workload .other-punishments-heading :is(p,span){color:var(--muted);font-size:14px;line-height:1.6}
.workspace #weekly-workload .other-punishments-table{display:table;width:100%;min-width:1050px;table-layout:fixed;border-collapse:collapse;font-size:14px;line-height:1.5;color:var(--text)}
.workspace #weekly-workload .other-punishments-table thead{display:table-header-group}
.workspace #weekly-workload .other-punishments-table tbody{display:table-row-group}
.workspace #weekly-workload .other-punishments-table tr{display:table-row;height:auto;padding:0}
.workspace #weekly-workload .other-punishments-table thead th{width:auto}
.workspace #weekly-workload .other-punishments-table thead th:nth-child(1){width:17%}
.workspace #weekly-workload .other-punishments-table thead th:nth-child(2){width:15%}
.workspace #weekly-workload .other-punishments-table thead th:nth-child(3){width:12%}
.workspace #weekly-workload .other-punishments-table thead th:nth-child(4){width:27%}
.workspace #weekly-workload .other-punishments-table thead th:nth-child(5){width:11%}
.workspace #weekly-workload .other-punishments-table thead th:nth-child(6){width:18%}
.workspace #weekly-workload .other-punishments-table :is(th,td){display:table-cell;height:auto;padding:12px 16px;background:var(--surface);border:0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;color:var(--text);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.workspace #weekly-workload .other-punishments-table td::before{display:none}
.workspace #weekly-workload .other-punishments-table tbody tr:hover :is(th,td){background:var(--surface-raised)}
.workspace #weekly-workload .other-punishments-table thead th{background:var(--surface-inset);color:var(--muted);font-size:13px;font-weight:500;white-space:nowrap}
.workspace #weekly-workload .other-punishments-table tbody tr:last-child :is(th,td){border-bottom:0}
.workspace #weekly-workload .other-punishments-table :is(small,time){display:block;font-size:12px;color:var(--muted);font-weight:400}
.workspace #weekly-workload .other-punishments-table :is(strong,summary){font-weight:500}
.workspace #weekly-workload .other-punishments-table details{margin-top:8px;font-size:12px;max-width:340px}
.workspace #weekly-workload .other-punishments-table dl{display:grid;gap:7px;margin-top:10px;overflow-wrap:anywhere}
.workspace #weekly-workload .other-punishments-table dt{color:var(--muted)}
.workspace #weekly-workload .other-punishments-table a{display:inline-block;margin-top:4px;font-size:12px;color:var(--accent)}
.workspace #weekly-workload .other-punishment-type{display:inline-block;padding:3px 8px;background:var(--surface-raised);border-radius:5px;font-size:12px}
.workspace #weekly-workload .other-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
.workspace #weekly-workload .other-pagination>div{display:flex;gap:12px;align-items:center}
.workspace #weekly-workload .weekly-empty{padding:35px 20px!important;text-align:center!important;font-size:15px;color:var(--muted)}
@media(max-width:1250px){.workspace #weekly-workload .weekly-summary{grid-template-columns:minmax(0,1fr);gap:22px}.workspace #weekly-workload .weekly-toolbar{flex-direction:row;align-items:center;justify-content:space-between}.workspace #weekly-workload .weekly-totals>div{padding:0 20px;min-height:65px}.workspace #weekly-workload .weekly-totals>div:first-child{padding-left:0;border-left:0}}
@media(max-width:600px){.workspace #weekly-workload .weekly-summary{padding:20px;gap:20px}.workspace #weekly-workload .weekly-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.workspace #weekly-workload #week-range{font-size:19px}.workspace #weekly-workload .weekly-totals{gap:12px}.workspace #weekly-workload .weekly-totals>div{padding:0 0 0 12px;gap:8px}.workspace #weekly-workload .weekly-totals span{font-size:12px}.workspace #weekly-workload .weekly-totals strong{font-size:26px;letter-spacing:-.6px}.workspace #weekly-workload .weekly-table-tools{padding:14px;align-items:flex-start;flex-direction:column;gap:8px}.workspace #weekly-workload .weekly-table-tools .search{flex:0 0 auto;width:100%}.workspace #weekly-workload .weekly-foot{flex-direction:column}.workspace #weekly-workload .other-punishments-heading{align-items:flex-start;flex-direction:column}.workspace #weekly-workload .other-pagination{align-items:flex-start;flex-direction:column}.workspace #weekly-workload .page-heading{gap:14px;align-items:flex-start;flex-wrap:wrap}}
.workspace #community-root .daily-bar-track{background:var(--surface-inset);border:0;border-radius:5px;overflow:hidden}
.workspace #community-root .daily-bar-fill{background:var(--heat-complete);border-radius:5px;min-height:0}
.workspace #community-root .daily-bar>span{font-size:13px;color:var(--muted)}
.workspace #community-root .daily-bar>time{font-size:12px;color:var(--muted)}
/* Real roster previews form the illustration inside the feature tile. */
.workspace .dashboard-grid .dash-personnel .personnel-preview{position:absolute;left:20px;right:20px;bottom:84px;width:auto;height:178px;pointer-events:none;isolation:isolate}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card{position:absolute;display:flex;align-items:center;gap:10px;width:100%;height:54px;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:9px;box-shadow:none}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card:nth-child(1){top:0;left:0;transform:none;opacity:.9}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card:nth-child(2){top:62px;left:0;transform:none;opacity:.95}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card:nth-child(3){top:124px;left:0;transform:none}
.workspace .dashboard-grid .dash-personnel .personnel-preview-avatar{flex:0 0 32px;width:32px;height:32px;border-radius:9px;object-fit:cover;background:#f1f2f4}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card>span{min-width:0;flex:1}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card strong{display:block;color:var(--text);font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
.workspace .dashboard-grid .dash-personnel .personnel-preview-card>svg{flex:0 0 17px;width:17px;height:17px;color:#ee8a47}
@media(max-width:600px){.workspace .dashboard-grid .dash-personnel .personnel-preview{left:auto;width:45%;right:16px;bottom:32px;height:146px}.workspace .dashboard-grid .dash-personnel .personnel-preview-card{height:44px;padding:7px;gap:7px}.workspace .dashboard-grid .dash-personnel .personnel-preview-card:nth-child(2){top:50px}.workspace .dashboard-grid .dash-personnel .personnel-preview-card:nth-child(3){top:100px}.workspace .dashboard-grid .dash-personnel .personnel-preview-avatar{width:26px;height:26px;flex-basis:26px}.workspace .dashboard-grid .dash-personnel .personnel-preview-card>svg{display:none}.workspace .dashboard-grid .dash-personnel p{max-width:45%}}
@media(prefers-reduced-motion:reduce){.workspace .dashboard-grid .dash-personnel .personnel-preview-card{transition:none}}
.workspace #team-dashboard .team-dashboard-metrics span{font-size:16px}
.workspace .dashboard-grid .norm-person{font-size:13px}
.workspace #community-root.support-inbox-page .chat-message p{font-size:17px}
.workspace #proof-root .proof-panel{border:1px solid var(--line);border-radius:12px;box-shadow:var(--card-shadow);overflow:hidden}
.workspace #proof-root .proof-row{border-color:var(--line);padding-block:22px}
.workspace #proof-root .proof-column-head{background:var(--surface-inset);border-block:1px solid var(--line);color:var(--muted)}
.workspace #proof-root .proof-status{background:var(--surface-raised);color:var(--muted);border:0;font-size:12px;font-weight:500}
.workspace #proof-root .proof-status::before{background:var(--faint)}
.workspace #proof-root .proof-status.open::before{background:var(--heat-complete)}
.workspace #proof-root .proof-status.valid::before{background:var(--positive)}
.workspace #proof-root .proof-status:is(.overdue,.invalid,.missing)::before{background:var(--negative)}
.workspace #proof-root .proof-footer{border-top:1px solid var(--line);background:var(--surface);color:var(--muted)}
.workspace #proof-root .proof-row-open{min-height:38px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:14px}

/* Personal dashboard follows the client's compact card composition. */
.workspace #self-profile.account-page{width:100%;max-width:none;margin:0;font-size:15px;line-height:1.55}
.workspace .account-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
html[data-theme] .workspace .account-page-heading h1{font-size:25px;font-weight:600;letter-spacing:-.5px}
.account-board{display:grid;grid-template-columns:minmax(220px,.95fr) minmax(0,1.75fr) minmax(245px,1.05fr);grid-template-areas:"person work wallet" "person work vacation" "discipline discipline discipline";gap:16px;align-items:stretch}
.account-section{min-width:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--card-shadow)}
.account-person{grid-area:person;display:flex;flex-direction:column}
.account-workload{grid-area:work}
.account-rewards{grid-area:wallet}
.account-vacation{grid-area:vacation}
.account-discipline{grid-area:discipline}
.account-person-head{display:grid;grid-template-columns:54px minmax(0,1fr);gap:0 12px;align-items:center;text-align:left}
.account-avatar{display:block;grid-column:1;grid-row:1 / 3;width:54px;height:54px;object-fit:cover;border-radius:13px;background:var(--surface-raised);border:1px solid var(--line);margin:0}
.account-avatar.account-avatar-initials{display:grid;place-items:center;background:color-mix(in srgb,var(--accent-visual) 12%,var(--surface));color:var(--accent);font-size:20px;font-weight:600;border-color:transparent}
.account-person-head h2{margin:0;color:var(--text);font-size:21px;font-weight:600;letter-spacing:-.4px;line-height:1.35;overflow-wrap:anywhere}
.account-person-head>p{font-size:13px;color:var(--muted);margin:3px 0 0}
.account-presence{display:inline-flex;grid-column:1 / 3;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:16px}
.account-presence::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--status-green)}
.account-discipline-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0 0;padding:0;border:0}
.account-discipline-counts>div{display:flex;flex-direction:column-reverse;gap:4px;min-width:0;padding:12px 10px;background:var(--surface-inset);border:1px solid var(--line);border-radius:9px}
.account-discipline-counts dt{font-size:11px;color:var(--muted)}
.account-discipline-counts dd{font-size:22px;font-weight:500;line-height:1.3;margin:0;text-align:left}
.account-discipline-counts dd>span{font-size:12px;font-weight:400;color:var(--faint)}
.account-accounts-label{font-size:13px;color:var(--muted);font-weight:400;margin:20px 0 3px}
.account-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-bottom:18px}
.account-section-head h2{font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.25px;margin:0;color:var(--text)}
.account-section-head>span{font-size:12px;color:var(--muted)}
.account-section-head>svg{width:18px;height:18px}
.account-mode-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-inset)}
.account-mode-card>div{display:grid;gap:3px;min-width:0}.account-mode-card span,.account-mode-card small{font-size:12px;color:var(--muted)}.account-mode-card strong{font-size:15px;color:var(--text)}.account-mode-card .button{flex:0 0 auto}
.account-mode-quotas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.account-mode-quotas>div{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--line);border-radius:9px}.account-mode-quotas span{font-size:12px;color:var(--muted)}.account-mode-quotas strong{font-size:20px;font-variant-numeric:tabular-nums}.account-mode-quotas small{font-size:13px;font-weight:400;color:var(--muted)}
.account-quota{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.account-quota>div>span{display:block;font-size:13px;color:var(--muted)}
.account-quota>div>strong{display:block;margin-top:5px;font-size:36px;font-weight:600;letter-spacing:-1px;line-height:1.3;font-variant-numeric:tabular-nums}
.account-quota strong small{font-size:14px;font-weight:400;letter-spacing:0;color:var(--muted)}
.account-quota-state{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;white-space:nowrap}
.account-quota-state svg{width:16px;height:16px;color:var(--status-green)}
.account-progress{display:block;width:100%;height:5px;margin:13px 0 16px;border:0;border-radius:8px;overflow:hidden;appearance:none;background:var(--line);accent-color:var(--brand)}
.account-progress::-webkit-progress-bar{background:var(--line)}
.account-progress::-webkit-progress-value{background:var(--brand);border-radius:8px}
.account-progress::-moz-progress-bar{background:var(--brand);border-radius:8px}
.account-work-totals{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:var(--muted)}
.account-work-totals strong{margin-left:7px;color:var(--text);font-size:14px;font-weight:500}
.account-week{margin-top:24px}
.account-week-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.account-week-title h3{font-size:14px;font-weight:500;margin:0;color:var(--text)}
.account-week-title>span{font-size:11px;color:var(--muted)}
.account-week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:17px}
.account-day{text-align:center;min-width:0}
.account-day>strong{display:block;font-size:13px;font-weight:500;line-height:1.4;color:var(--muted)}
.account-bar{height:88px;margin:8px auto 8px;max-width:42px;color:var(--graph-ink);opacity:.7;border-bottom:1px solid var(--line)}
.account-bar svg{display:block;width:100%;height:100%}
.account-day.is-today .account-bar{color:var(--brand);opacity:1}
.account-day.is-today>strong{color:var(--text)}
.account-day>small{font-size:10px;color:var(--muted);white-space:nowrap}
.account-details{border-top:1px solid var(--line);margin:18px 0 0;padding:0}
.account-menu-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:12px 0;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer;color:var(--text);font:inherit;font-size:14px;line-height:1.5;font-weight:400}
.account-menu-trigger>svg{width:16px;height:16px;flex:none;color:var(--faint)}
.account-menu-trigger>svg:last-child{margin-left:auto;transform:rotate(-90deg);transition:transform .22s var(--motion-ease),color .18s}
.account-menu-trigger>span{font-size:12px;color:var(--muted)}
.account-menu-trigger:hover{color:var(--accent)}
.account-menu-trigger:hover>svg:last-child{color:var(--accent);transform:translateX(3px) rotate(-90deg)}
.account-menu-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.account-menu-content[hidden],.account-menu [hidden]{display:none!important}
.account-menu-content>p,.account-empty p{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 0;max-width:82ch}
.account-table-scroll{overflow:auto;margin-top:14px}
.account-table-scroll table{width:100%;min-width:320px;table-layout:fixed;border-collapse:collapse;font-size:12px}
.account-table-scroll :is(th,td){width:auto!important;padding:11px 8px;border:0;border-bottom:1px solid var(--line);text-align:right;background:transparent;color:var(--text)}
.account-table-scroll th{font-weight:400;color:var(--muted)}
.account-table-scroll :is(th,td):first-child{text-align:left}
.account-updated{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;color:var(--faint);font-size:11px;margin-top:16px}
.account-muted{color:var(--muted);font-size:12px;line-height:1.65;margin-top:14px}
.account-empty{padding:12px 0}
.account-empty>strong{font-weight:500;font-size:17px}
.account-board .account-rewards{display:flex;flex-direction:column;background:var(--surface);padding:0;border:1px solid var(--line);color:var(--text);box-shadow:var(--card-shadow);overflow:hidden}.wallet-overview{padding:20px;background:var(--feature-surface);color:var(--feature-ink)}.wallet-overview .account-section-head{margin-bottom:18px}.wallet-actions{padding:0 20px;flex:1}
.account-rewards .account-section-head h2,.account-rewards .account-section-head>svg{color:var(--feature-ink)}.account-rewards .account-section-head h2{font-size:16px;font-weight:500}
.account-balance{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-top:4px}
.account-balance>strong{font-size:44px;line-height:1.2;font-weight:600;letter-spacing:-1.4px;font-variant-numeric:tabular-nums}
.account-balance>span{font-size:14px}
.account-earnings{display:flex;gap:24px;margin-top:20px;padding-top:16px;border-top:1px solid color-mix(in srgb,var(--feature-ink) 14%,transparent)}
.account-earnings>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:1;flex-wrap:wrap}
.account-earnings span{font-size:12px;color:var(--feature-muted)}
.account-earnings strong{font-size:15px;font-weight:500;color:var(--feature-ink)}
.account-rewards .account-details{border-color:var(--line);margin-top:0;padding:0}.account-rewards .account-details:first-child{border-top:0}
.account-rewards .account-muted{color:var(--muted)}
.account-salary{display:grid;gap:6px;padding-top:18px}
.account-salary>span{font-size:12px}
.account-salary>strong{font-size:18px;font-weight:500}
.account-salary>small{font-size:11px}
.account-quest{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.account-quest>div{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.account-quest strong{font-weight:500}
.account-quest>div>span{font-size:11px;white-space:nowrap}
.account-quest>p{font-size:12px;margin:0}
.account-rewards .account-progress{background:var(--line)}
.account-rewards .account-progress::-webkit-progress-bar{background:var(--line)}
.account-rewards .account-progress::-webkit-progress-value{background:var(--brand)}
.account-rewards .account-progress::-moz-progress-bar{background:var(--brand)}
.account-rate-list{margin-top:14px}
.account-rate-list>div,.account-reward-history>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}
.account-rate-list strong{font-weight:500;white-space:nowrap}
.account-reward-history strong,.account-reward-history small{display:block}
.account-reward-history strong{font-weight:500}
.account-reward-history small{font-size:11px;margin-top:4px}
.account-reward-history b{font-size:14px;font-weight:500;white-space:nowrap}
.account-service,.account-chat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.account-service-name{display:flex;align-items:center;gap:10px;min-width:0}
.account-service-name>div{min-width:0}
.account-service-name :is(.brand-logo,.game-logo){flex:none;width:24px;height:24px}
.account-service[data-brand=telegram] .brand-logo{color:#249ed8}
.account-service[data-brand=discord] .brand-logo{color:#5865f2}
.account-service-name strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.account-service-name small{display:block;font-size:12px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.account-status{font-size:11px;line-height:1.5;color:var(--muted);flex:none}
.account-status>svg{width:15px;height:15px;display:block}
.account-link-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 18px}
.account-text-link,.account-text-button{display:inline-flex;align-items:center;gap:6px;color:var(--text);font:inherit;font-size:12px;background:none;border:0;padding:0;cursor:pointer;text-decoration:none}
.account-text-link>svg,.account-text-button>svg{width:14px;height:14px;color:var(--muted)}
.account-text-link:hover,.account-text-button:hover{color:var(--accent)}
.account-chat-details{border-top:1px solid var(--line);padding:0;margin-top:auto}
.account-subheading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.account-chat-empty{margin:12px 0 0}
.account-chat a{font-size:12px;color:var(--accent)}
.account-vacation-status{display:flex;gap:10px;align-items:flex-start;margin-bottom:18px}
.account-vacation-status>svg{flex:none;width:20px;height:20px;margin-top:2px;color:var(--muted)}
.account-vacation-status strong{font-size:15px;font-weight:500}
.account-vacation-status p{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}
.account-vacation-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px 14px;padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}
.account-vacation-row strong{font-size:12px;font-weight:500}
.account-vacation-row p{width:100%;color:var(--muted);margin:0;overflow-wrap:anywhere}
.account-clear{display:flex;gap:10px;align-items:center;font-size:14px}
.account-clear>svg{width:18px;height:18px;color:var(--status-green)}
.account-clear>strong{font-weight:400}
.account-discipline .account-section-head{margin-bottom:14px}
.account-discipline .profile-discipline{margin-top:18px}
.account-discipline .account-details{padding:0;margin-top:14px}
html.account-menu-open{overflow:hidden}
dialog.account-menu{width:min(480px,calc(100% - 32px));max-width:none;max-height:min(740px,calc(100dvh - 32px));margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 24px 90px #0004;overflow:hidden;font-family:inherit;overscroll-behavior:contain}
dialog.account-menu[open]{display:flex;flex-direction:column}
.account-menu::backdrop{background:#0008;backdrop-filter:blur(4px);animation:account-backdrop-in .24s ease-out}
.account-menu.is-closing::backdrop{animation:account-backdrop-out .14s ease-in forwards}
.account-menu-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:20px 24px 18px;border-bottom:1px solid var(--line)}
.account-menu-head h2{font-size:21px;font-weight:600;line-height:1.35;letter-spacing:-.4px;margin:0}
.account-menu-head .icon-button{flex:none;width:34px;height:34px;min-height:34px;padding:8px;border:0;border-radius:8px;background:var(--surface-raised);color:var(--muted)}
.account-menu-head .icon-button:hover{color:var(--text)}
.account-menu-body{min-height:0;padding:6px 24px 22px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;font-size:14px;line-height:1.6}
.account-menu-content>:first-child{margin-top:0}
.account-menu .account-reward-history>div{min-height:66px;padding:12px 0;font-size:14px}
.account-menu .account-reward-history strong{line-height:1.4}
.account-menu .account-reward-history small{font-size:12px;line-height:1.4;color:var(--muted)}
.account-menu .account-reward-history b{font-size:16px;font-variant-numeric:tabular-nums}
.account-menu .account-debit{color:var(--muted)}
.account-menu .account-reward-history.is-paginated{min-height:330px}
.account-menu .account-rate-list.is-paginated{min-height:225px}
.account-menu .account-rate-list>div{min-height:45px;font-size:14px}
.account-menu .account-rate-list .is-current{color:var(--accent)}
.account-menu .account-salary{padding-top:14px}
.account-menu .account-salary>span,.account-menu .account-salary>small{font-size:13px;color:var(--muted)}
.account-menu .account-salary>strong{font-size:25px;font-weight:600;letter-spacing:-.5px}
.account-menu .account-progress{accent-color:var(--accent)}
.account-menu .account-progress::-webkit-progress-value{background:var(--accent)}
.account-menu .account-progress::-moz-progress-bar{background:var(--accent)}
.account-menu .account-table-scroll{margin-top:16px}
.account-menu .account-table-scroll.is-paginated{min-height:274px}
.account-menu .account-table-scroll table{font-size:13px;min-width:280px}
.account-menu .account-table-scroll :is(th,td){padding:12px 7px;white-space:nowrap}
.account-menu .account-chat{gap:16px;min-height:72px}
.account-menu .account-chat .account-status{white-space:normal;max-width:115px;text-align:right;font-size:12px}
.account-menu .account-service-name strong,.account-menu .account-vacation-row strong{font-size:14px}
.account-menu .account-vacation-row,.account-menu .profile-discipline{font-size:14px}
.account-menu .profile-discipline{padding:16px 0;border-bottom:1px solid var(--line)}
.account-menu .account-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.account-pagination>div{display:flex;align-items:center;gap:12px;font-variant-numeric:tabular-nums}
.account-pagination button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer;transition:background-color .18s,color .18s,opacity .18s}
.account-pagination button>svg{width:16px;height:16px}
.account-pagination button:hover:not(:disabled){background:var(--surface-raised);color:var(--accent)}
.account-pagination button:disabled{opacity:.3;cursor:default}
.account-menu-error{margin:0;padding:0 24px 18px}
@keyframes account-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes account-backdrop-out{from{opacity:1}to{opacity:0}}
html.site-reduced-motion .account-menu::backdrop{animation:none}
@media(prefers-reduced-motion:reduce){.account-menu::backdrop{animation:none}}
@media(max-width:480px){.account-menu-head{padding:18px}.account-menu-head h2{font-size:20px}.account-menu-body{padding:4px 18px 18px}.account-menu .account-table-scroll table{min-width:250px}.account-menu .account-table-scroll :is(th,td){padding-inline:4px}.account-menu .account-pagination{font-size:12px;gap:8px}.account-pagination>div{gap:9px}}
@media(min-width:1101px){html[data-theme] .workspace .daily-quest .quest-task{margin:0;gap:8px}html[data-theme] .workspace .daily-quest .quest-ring{width:25px;height:25px}html[data-theme] .workspace .daily-quest .quest-progress-row{margin:0}html[data-theme] .workspace .daily-quest .quest-footer{margin:0}html[data-theme] .workspace .sidebar-user .sidebar-theme{min-height:32px}}
@media(min-width:901px) and (max-width:1250px){.account-board{grid-template-columns:minmax(220px,.8fr) minmax(0,1.3fr);grid-template-areas:"person work" "wallet work" "vacation discipline"}}
@media(max-width:900px){.account-board{grid-template-columns:1fr 1fr;grid-template-areas:"person wallet" "work work" "vacation discipline"}.account-person{min-height:0}.account-work-area{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px}.account-work-area .account-week{margin:0}}
@media(max-width:600px){.account-board{grid-template-columns:minmax(0,1fr);grid-template-areas:"person" "work" "wallet" "vacation" "discipline";gap:14px}.account-section{padding:18px}.account-person-head{grid-template-columns:54px minmax(0,1fr)}.account-avatar{width:54px;height:54px}.account-person-head h2{font-size:22px}.account-person-head>p{margin-top:1px}.account-presence{margin-top:5px}.account-mode-card{align-items:flex-start;flex-direction:column}.account-mode-card .button{width:100%}.account-mode-quotas{grid-template-columns:1fr}.account-work-area{display:block}.account-work-area .account-week{margin-top:24px}.account-quota-state{font-size:11px}.account-chat-details{margin-top:4px}.account-vacation .button{font-size:14px}.account-balance>strong{font-size:44px}}

/* Settings are one form with a live appearance sample. */
.workspace .settings-page{width:100%;max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.workspace .settings-page .editor-heading p{margin-top:6px;color:var(--muted);font-size:14px}
.workspace .settings-page .settings-editor{background:transparent}
html[data-theme] .workspace .settings-page .editor-tabs{padding:0;gap:28px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.workspace .settings-page .editor-tabs button{padding:0 0 16px;min-height:42px;border-radius:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-size:15px;box-shadow:none}
.workspace .settings-page .editor-tabs button[aria-pressed=true]{color:var(--text);border-bottom-color:var(--text)}
.workspace .settings-page .editor-workspace{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;margin-top:28px;align-items:start}
.workspace .settings-page .editor-form{padding:0 24px 24px;border-radius:16px;border:1px solid var(--line);background:var(--surface)}
.workspace .settings-page .editor-field-section{padding:24px 0;border-color:var(--line)}
.workspace .settings-page .editor-setting-row{grid-template-columns:minmax(130px,.8fr) minmax(0,1.4fr);gap:20px}
.workspace .settings-page .editor-field-section h3,.workspace .settings-page .editor-toggle-row strong{font-size:15px;font-weight:500;color:var(--text)}
.workspace .settings-page .editor-field-note{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.6}
.workspace .settings-page .editor-themes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.workspace .settings-page .editor-theme{display:grid;grid-template-columns:1fr auto;gap:12px;min-width:0;padding:14px;background:var(--surface-inset);border:1px solid var(--line);border-radius:10px}
.workspace .settings-page .editor-theme[aria-pressed=true]{background:var(--surface-inset);border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.workspace .settings-page .editor-theme .theme-icon{grid-column:1 / 3;width:100%;height:48px;padding:5px;background:#fff;border:1px solid #dedee2;gap:5px;border-radius:5px}
.workspace .settings-page .theme-icon i:first-child{width:23%;background:#e6e6e9}
.workspace .settings-page .theme-icon i:last-child{background:#f2f2f4}
.workspace .settings-page .editor-theme .theme-icon.is-dark{background:#171717;border-color:#3a3a3a}
.workspace .settings-page .theme-icon.is-dark i:first-child{background:#333}
.workspace .settings-page .theme-icon.is-dark i:last-child{background:#242424}
.workspace .settings-page .editor-theme strong{font-size:13px;font-weight:400;color:var(--text)}
.workspace .settings-page .editor-selected-check{color:var(--text);display:flex;align-items:center}
.workspace .settings-page .editor-selected-check svg{width:15px;height:15px}
.workspace .settings-page .editor-accent-row{gap:14px}
.workspace .settings-page .editor-palette{gap:10px}
.workspace .settings-page .editor-palette button{width:28px;height:28px;border:3px solid var(--surface);border-radius:50%}
.workspace .settings-page .editor-palette button[aria-pressed=true]{box-shadow:0 0 0 1px var(--text)}
.workspace .settings-page .editor-hex{background:var(--surface-inset);border-color:var(--line);padding:4px 7px;max-width:148px}
.workspace .settings-page .editor-hex input[type=text]{font-family:inherit;font-size:13px;color:var(--text)}
.workspace .settings-page .editor-hex input[type=color]{width:24px;height:24px;min-height:24px}
.workspace .settings-page .editor-toggle-row small{font-size:12px;color:var(--muted)}
.workspace .settings-page .editor-toggle-row input{background:var(--line)}
.workspace .settings-page .editor-toggle-row input:checked{background:var(--accent-visual,var(--brand))}
.workspace .settings-page .editor-actions{padding-top:24px;gap:12px}
.workspace .settings-page .editor-save{background:var(--accent-visual,var(--brand));color:var(--accent-ink,#fff);min-height:42px;padding:10px 15px;font-size:15px;border-radius:8px}
.workspace .settings-page .editor-save:hover{filter:brightness(.94)}
.workspace .settings-page .editor-reset,.workspace .settings-page .editor-secondary{border:1px solid var(--line);background:var(--surface);color:var(--text);min-height:42px;padding:10px 15px;font-size:15px;border-radius:8px}
.workspace .settings-page .editor-actions>span{font-size:12px;color:var(--muted);margin:2px 0 0}
.editor-preview-panel{padding-top:4px;min-width:0}
.editor-preview-panel h2{font-size:14px;font-weight:500;color:var(--text);margin:0 0 16px}
.editor-preview-panel>p{font-size:12px;line-height:1.7;margin-top:16px;color:var(--muted);max-width:32ch}
.editor-live-preview{--preview-bg:#fff;--preview-line:#e8e8eb;--preview-text:#202124;--preview-muted:#717178;overflow:hidden;background:var(--preview-bg);border:1px solid var(--line);border-radius:14px;color:var(--preview-text);box-shadow:var(--card-shadow)}
.editor-live-preview[data-preview-theme=dark]{--preview-bg:#161616;--preview-line:#303030;--preview-text:#ededed;--preview-muted:#aaa}
.editor-mini-bar{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--preview-line);font-size:12px;font-weight:600}
.editor-mini-bar svg{width:14px;height:14px;color:var(--preview-muted)}
.editor-mini-body{padding:22px 18px}
.editor-mini-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--preview-line);font-size:12px;color:var(--preview-muted);margin-bottom:12px}
.editor-mini-body>strong{font-size:18px;font-weight:500;letter-spacing:-.3px}
.editor-mini-body>p{font-size:12px;color:var(--preview-muted);margin-top:4px}
.editor-mini-stat{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:26px;font-size:11px;color:var(--preview-muted)}
.editor-mini-stat b{font-weight:500;color:var(--preview-text)}
.editor-mini-progress{height:4px;border-radius:5px;background:var(--preview-line);margin-top:10px;overflow:hidden}
.editor-mini-progress i{display:block;width:100%;height:100%;background:var(--settings-accent)}
.editor-mini-action{display:block;text-align:center;margin-top:24px;padding:10px 8px;font-size:12px;border-radius:7px;background:var(--settings-accent);color:var(--settings-ink);font-weight:500}
@media(max-width:1350px){.workspace .settings-page .editor-workspace{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.workspace .settings-page .editor-setting-row{grid-template-columns:minmax(0,1fr);gap:16px}}
@media(max-width:700px){.workspace .settings-page .editor-workspace{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}.editor-preview-panel{display:none}.workspace .settings-page .editor-tabs{gap:20px}.workspace .settings-page .editor-tabs button{font-size:13px;padding-bottom:12px;flex:none}.workspace .settings-page .editor-form{padding:0 20px 20px;border-radius:13px}.workspace .settings-page .editor-actions{flex-wrap:wrap}}

/* Shared text and status colours stay legible on each theme's own surfaces. */
html:root,body[data-game]{--positive:#15794d;--negative:#aa492f;--status-orange:#86601f;--status-red:#b04b4b}
html[data-theme=dark],html[data-theme=dark] body[data-game]{--positive:#82c5a1;--negative:#e3ae91;--status-orange:#d5b27d;--status-red:#df9898}
.workspace .breadcrumb>span{color:var(--muted)}
.workspace .sync-state,.workspace .chat-add label{color:var(--muted)}
.icon-button{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.icon-button>svg{min-width:0;min-height:0;max-width:100%;max-height:100%}
html[data-theme] .workspace :is(input,textarea)::placeholder,html[data-theme] dialog :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
.workspace .promotions-page .promotion-summary>button{min-width:0;white-space:normal}
.workspace .promotions-page .promotion-summary>button span{max-width:100%;overflow-wrap:anywhere}
html[data-theme] .workspace .button:is(.primary,.lime){background:var(--accent-visual);border-color:var(--accent-visual);color:var(--accent-ink)}
html[data-theme] .workspace .button:is(.primary,.lime):hover:not(:disabled){background:var(--accent-visual);border-color:var(--accent-visual);filter:brightness(.96)}
html[data-theme] .workspace .button:is(.primary,.lime):disabled{background:var(--surface-raised);border-color:var(--line);color:var(--muted);filter:none}
.workspace #vacations-root .vacation-filters button.selected{background:var(--surface-raised);color:var(--text)}
.workspace #vacations-root .vacation-filters button.selected>span{background:var(--surface);color:var(--muted)}
.workspace #vacations-root .state-pending .vacation-open{background:var(--surface-inset);border-color:var(--line);color:var(--text)}
.vacation-badge:is(.active,.pending,.scheduled,.ended,.rejected,.completed,.cancelled){color:var(--muted);background:var(--surface-inset)}
.vacation-badge.active{color:var(--positive);background:var(--positive-bg)}
.vacation-badge.pending{color:var(--status-orange);background:color-mix(in srgb,var(--status-orange) 8%,var(--surface))}
.vacation-badge.rejected{color:var(--status-red);background:color-mix(in srgb,var(--status-red) 8%,var(--surface))}
.workspace #feedback-root .feedback-pill.status-open{color:var(--status-red);background:color-mix(in srgb,var(--status-red) 8%,var(--surface))}
.workspace #feedback-root .feedback-pill.status-in_progress{color:var(--status-orange);background:color-mix(in srgb,var(--status-orange) 8%,var(--surface))}
.workspace #feedback-root .feedback-pill.status-resolved{color:var(--positive);background:var(--positive-bg)}
dialog.proof-dialog{width:min(620px,100%);max-width:100%}
.proof-dialog .proof-status{color:var(--muted);background:var(--surface-raised)}
.proof-dialog .proof-status:is(.overdue,.missing,.invalid){color:var(--status-red);background:color-mix(in srgb,var(--status-red) 8%,var(--surface))}
.proof-dialog .proof-status.valid{color:var(--positive);background:var(--positive-bg)}
.proof-dialog .proof-decision h3,.proof-dialog .proof-delivery b.sent{color:var(--positive)}
.proof-dialog :is(.proof-deadline-block.is-overdue strong,.proof-decision.missing h3,.proof-decision.invalid h3,.proof-delivery b.blocked,.proof-delivery b.uncertain){color:var(--status-red)}

/* One table layout replaces the old mobile card/table rules. */
.workspace .users-table{display:table;width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.workspace .users-table thead{display:table-header-group}
.workspace .users-table tbody{display:table-row-group;background:var(--surface)}
.workspace .users-table tr{display:table-row;background:var(--surface)}
.workspace .users-table :is(th,td){display:table-cell;position:static;overflow-wrap:anywhere;text-align:left}
.workspace .users-table th:first-child{width:27%}
.workspace .users-table th:nth-child(2){width:25%}
.workspace .users-table th:nth-child(3){width:20%}
.workspace .users-table th:nth-child(4){width:20%}
.workspace .users-table th:last-child{width:8%}
.workspace .users-table .person-button{max-width:100%;min-width:0;text-align:left}
.workspace .users-table .person-button>span{min-width:0}
.workspace .users-table .person-button strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.workspace .users-table .person-button small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.workspace .users-table :is(.assignment-chip,.permission-chip){max-width:100%;white-space:normal}
@media(max-width:900px){
 .workspace .users-table,.workspace .users-table tbody{display:block;width:100%}
 .workspace .users-table thead{display:none}
 .workspace .users-table tbody tr{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;padding:18px;background:var(--surface);border-top:1px solid var(--line)}
 .workspace .users-table tbody tr:first-child{border-top:0}
 .workspace .users-table tbody td{display:block;width:100%;min-width:0;padding:0;border:0;background:transparent}
 .workspace .users-table tbody td:first-child{padding-right:36px}
 .workspace .users-table tbody td:last-child{position:absolute;right:14px;top:14px;width:32px}
 .workspace .users-table tbody td:only-child{position:static;width:100%;padding:12px 0}
 .workspace .users-table td::before{content:none}
 .workspace .users-table .person-button{width:100%}
 .workspace .users-table .blacklist-reason{max-width:none}
}
