/* Isolated admin layout; data, sending, public employee pages are unaffected. */
html[data-theme=light] body.admin-workspace{
 --theme-page:#f4f5f8;--theme-surface:#fff;--theme-surface-2:#f7f8fa;--theme-input:#fff;
 --theme-text:#202938;--theme-muted:#5e6d80;--theme-border:#dfe4ec;--theme-red:#c7193b;
 --theme-red-soft:#fff0f3;--theme-green:#147357;--theme-green-soft:#edf7f2;--theme-track:#e2e6ed;
 --theme-shadow:none;--text:#202938;--muted:#5e6d80;--line:#dfe4ec;--line-strong:#bac4d0;
}
html[data-theme=dark] body.admin-workspace{
 --theme-page:#141820;--theme-surface:#1c2330;--theme-surface-2:#252e3b;--theme-input:#1c2330;
 --theme-text:#f2f4f8;--theme-muted:#acbbce;--theme-border:#384453;--theme-red:#ff748d;
 --theme-red-soft:#38232d;--theme-green:#87d9b6;--theme-green-soft:#20392f;--theme-track:#384453;
 --theme-shadow:none;--text:#f2f4f8;--muted:#acbbce;--line:#384453;--line-strong:#536273;
}
body.admin-workspace{font-family:Inter,Arial,sans-serif;--display:Inter,Arial,sans-serif;background:var(--theme-page)!important;color:var(--theme-text)}
body.admin-workspace *{box-sizing:border-box}
body.admin-workspace .admin-shell{width:min(1600px,calc(100% - 40px));padding:18px 0 40px}
body.admin-workspace .admin-shell>.topbar{position:static;margin:0 0 20px;padding:14px 20px;border-radius:14px;box-shadow:none;gap:16px;flex-wrap:wrap}
body.admin-workspace .admin-layout{grid-template-columns:218px minmax(0,1fr);gap:24px;align-items:start}
body.admin-workspace .admin-sidebar{position:sticky;top:20px;min-height:0;max-height:calc(100vh - 40px);padding:22px 13px;border-radius:14px;overflow-y:auto;overflow-x:hidden;box-shadow:none;background:var(--theme-surface)}
body.admin-workspace .admin-sidebar .sidebar-brand{margin:0 10px 25px}
body.admin-workspace .sidebar-brand .brand-name{font-size:15px}
body.admin-workspace .sidebar-brand .brand-mark{width:34px;height:34px;border-radius:10px;font-size:22px;box-shadow:none;background:var(--theme-red)}
body.admin-workspace .sidebar-label{display:none}
body.admin-workspace .admin-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0}
body.admin-workspace .admin-nav-heading{margin:16px 10px 6px;font-size:10px;letter-spacing:.08em;color:var(--theme-muted)}
body.admin-workspace .admin-nav-heading:first-child{margin-top:0}
body.admin-workspace .admin-nav .btn{min-height:44px;padding:10px 12px;gap:8px;width:100%;white-space:normal;line-height:1.4;font-size:13px;font-weight:500;box-shadow:none;border:0;border-radius:9px;color:var(--theme-muted);background:transparent}
body.admin-workspace .admin-nav .btn.active{color:var(--theme-red);background:var(--theme-red-soft);font-weight:600}
body.admin-workspace .admin-nav .btn::before{width:7px;height:7px;border-radius:2px;margin:0;flex:0 0 7px}
body.admin-workspace .admin-nav .btn[data-admin-tab=settings-section]{margin-top:0;border:0}
body.admin-workspace .sidebar-period{margin-top:22px;padding:16px 10px 0;background:none;border:0;border-top:1px solid var(--theme-border);border-radius:0}
body.admin-workspace .sidebar-period strong{font-size:14px}
body.admin-workspace .admin-subnav{gap:8px;margin-bottom:22px;flex-wrap:wrap}
body.admin-workspace .admin-subnav .btn{border-radius:8px;font-size:13px}
body.admin-workspace :is(.section-heading,.page-intro){margin:3px 0 22px;gap:18px;align-items:flex-start;flex-wrap:wrap}
body.admin-workspace :is(.section-heading,.page-intro) :is(h1,h2){font-family:Inter,Arial,sans-serif;font-size:28px;font-weight:750;line-height:1.25;letter-spacing:-.04em;color:var(--theme-text)}
body.admin-workspace .eyebrow{font-size:11px;letter-spacing:.08em;margin-bottom:9px}
body.admin-workspace .page-subtitle{font-size:13px;line-height:1.6;max-width:720px}
body.admin-workspace .panel{border-radius:13px;box-shadow:none;background:var(--theme-surface);margin-bottom:18px}
body.admin-workspace .panel-header{padding:20px;border-bottom:1px solid var(--theme-border);gap:14px;flex-wrap:wrap;align-items:flex-start}
body.admin-workspace .panel-title{font-family:Inter,Arial,sans-serif;font-size:17px;line-height:1.4;font-weight:700;color:var(--theme-text);letter-spacing:-.015em}
body.admin-workspace .panel-description{font-size:12px;line-height:1.6;font-weight:400;margin-top:5px;max-width:730px}
body.admin-workspace .btn{border-radius:9px;min-height:40px;padding:9px 13px;font-size:13px;font-weight:600;white-space:normal;line-height:1.4;box-shadow:none;transition:background .15s,color .15s}
body.admin-workspace .btn:hover{box-shadow:none;transform:none}
body.admin-workspace .btn-primary{background:var(--theme-red);border-color:var(--theme-red);color:#fff}
html[data-theme=dark] body.admin-workspace .btn-primary{color:#191c25}
body.admin-workspace :is(input,select,textarea){max-width:100%;min-width:0}
body.admin-workspace :is(.input-control,textarea,select){border-radius:9px;font-size:14px;min-height:40px;line-height:1.5;background:var(--theme-input);color:var(--theme-text);border-color:var(--theme-border)}
body.admin-workspace :is(label,.field-label,.scope-label){font-size:12px;line-height:1.6;color:var(--theme-muted);font-weight:500}
body.admin-workspace .scope-label{overflow-wrap:anywhere}
body.admin-workspace .button-row{gap:9px;align-items:center;flex-wrap:wrap}
body.admin-workspace .toolbar{padding:18px;border-radius:13px;box-shadow:none;gap:12px;align-items:end;grid-template-columns:repeat(3,minmax(0,1fr))}
body.admin-workspace .report-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
body.admin-workspace .toolbar-buttons{grid-column:auto;flex-wrap:wrap}
body.admin-workspace .summary-grid{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin-bottom:22px}
body.admin-workspace .metric-card{padding:18px;border-radius:11px;min-height:116px;box-shadow:none;border:1px solid var(--theme-border);background:var(--theme-surface)}
body.admin-workspace .metric-card.accent{background:var(--theme-surface);border-color:var(--theme-border)}
body.admin-workspace .metric-label{font-size:12px;font-weight:500;line-height:1.5}
body.admin-workspace .metric-value{font-family:Inter,Arial,sans-serif;font-size:28px;line-height:1.25;font-weight:700;margin-top:10px;color:var(--theme-text);font-variant-numeric:tabular-nums}
body.admin-workspace .metric-card.accent .metric-value{color:var(--theme-red)}
body.admin-workspace .metric-card .btn{margin-top:14px}
body.admin-workspace .refresh-highlight{border-left:3px solid var(--theme-red)}
body.admin-workspace .admin-overview-report{padding:4px 20px 15px;font-size:14px}
body.admin-workspace .refresh-highlight>.button-row{padding:0 20px 20px}
body.admin-workspace :is(.admin-overview-attention,.collector-status-list){font-size:13px;line-height:1.7}
body.admin-workspace .report-status-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
body.admin-workspace .report-status-grid article{padding:16px;border-radius:10px;box-shadow:none}
body.admin-workspace .status-badge{line-height:1.6;font-size:12px;white-space:normal}
body.admin-workspace :is(.dashboard-chart-grid,.reports-grid,.plan-dashboard-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.admin-workspace .report-tables-grid{grid-template-columns:1fr}
body.admin-workspace .report-tables-grid .panel{margin-bottom:0}
body.admin-workspace table{width:100%;font-size:13px;font-variant-numeric:tabular-nums}
body.admin-workspace table :is(th,td){font-size:13px;line-height:1.5;padding:13px 16px}
body.admin-workspace table th{font-size:11px;font-weight:600;letter-spacing:.025em;background:var(--theme-surface-2)}
body.admin-workspace table th:first-child,body.admin-workspace table td:first-child{white-space:normal;min-width:150px;max-width:300px;text-align:left;overflow-wrap:anywhere}
body.admin-workspace #collector-table table td{white-space:normal;min-width:130px}
body.admin-workspace #collector-table table td:first-child{min-width:220px}
body.admin-workspace .table-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--theme-muted) var(--theme-surface-2)}
body.admin-workspace .table-scroll::-webkit-scrollbar{display:block;height:7px}
body.admin-workspace .table-scroll::-webkit-scrollbar-thumb{background:var(--theme-muted);border-radius:9px}
body.admin-workspace .table-scroll::-webkit-scrollbar-track{background:var(--theme-surface-2)}
body.admin-workspace .admin-records{max-height:none}
body.admin-workspace .refresh-fold{border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface);margin:0 0 18px;min-width:0}
body.admin-workspace .refresh-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;list-style:none;padding:19px 20px;cursor:pointer}
body.admin-workspace .refresh-fold>summary::-webkit-details-marker{display:none}
body.admin-workspace .refresh-fold>summary strong{font-size:15px;line-height:1.5;font-weight:600;display:block;color:var(--theme-text)}
body.admin-workspace .refresh-fold>summary small{font-size:12px;color:var(--theme-muted);display:block;margin-top:4px;line-height:1.6}
body.admin-workspace .refresh-fold-arrow{font-size:20px;color:var(--theme-muted);flex-shrink:0}
body.admin-workspace .refresh-fold[open]>.refresh-fold-arrow,body.admin-workspace .refresh-fold[open]>summary>.refresh-fold-arrow{transform:rotate(180deg)}
body.admin-workspace .refresh-fold-body{padding:0 20px 20px;border-top:1px solid var(--theme-border)}
body.admin-workspace .refresh-fold-body>.panel{border:0;box-shadow:none;margin:0;border-radius:0;overflow:visible}
body.admin-workspace .refresh-fold-body>.panel>.panel-header{padding:14px 0;border-bottom:0}
body.admin-workspace .refresh-fold-body>.panel>.panel-header :is(.panel-title,.panel-description){display:none}
body.admin-workspace .refresh-fold-body>.panel.panel-expanded>.panel-header :is(.panel-title,.panel-description){display:revert}
body.admin-workspace .refresh-fold-body>.panel>.admin-card{padding:16px 0;border:0;box-shadow:none;background:none}
body.admin-workspace .refresh-fold-body>.automation-card{padding:16px 0}
body.admin-workspace .refresh-fold-body>.automation-card>h3{display:none}
body.admin-workspace .refresh-fold-body>.refresh-connection-controls{padding-top:16px}
body.admin-workspace .refresh-connection-controls .status-box{margin-top:12px}
body.admin-workspace :is(.plan-edit-details,.multi-month-export){border-radius:13px;box-shadow:none;margin-bottom:18px}
body.admin-workspace :is(.plan-edit-details,.multi-month-export)>summary{padding:19px 20px;font-size:15px}
body.admin-workspace :is(.plan-edit-details,.multi-month-export)>summary strong{font-family:Inter,Arial,sans-serif;font-size:15px;line-height:1.5}
body.admin-workspace :is(.plan-edit-details,.multi-month-export)>summary small{font-size:12px;line-height:1.6}
body.admin-workspace .plan-kpi-card{border-radius:11px;padding:18px;box-shadow:none}
body.admin-workspace .plan-kpi-value{font-family:Inter,Arial,sans-serif;font-size:27px;line-height:1.25;overflow-wrap:anywhere}
body.admin-workspace .plan-kpi-label{font-size:12px}
body.admin-workspace .plan-progress-track{height:7px}
body.admin-workspace .plan-dashboard-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
body.admin-workspace .plan-result-card{border-radius:13px;padding:20px;background:var(--theme-surface);box-shadow:none}
body.admin-workspace .plan-result-metric{border-radius:10px;background:var(--theme-surface-2)}
body.admin-workspace .plan-result-metric dd{font-size:22px}
body.admin-workspace #employee-statistics-section :is(.employee-stat-summary,.employee-stat-person){border-radius:13px;padding:20px;box-shadow:none}
body.admin-workspace #employee-statistics-section .employee-stat-summary h2{font-family:Inter,Arial,sans-serif;font-size:15px}
body.admin-workspace #employee-statistics-section .employee-stat-summary dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.admin-workspace #employee-statistics-section .employee-stat-summary dd{font-size:22px;overflow-wrap:anywhere}
body.admin-workspace #employee-statistics-section .employee-stat-person h3{font-family:Inter,Arial,sans-serif;font-size:16px;font-weight:600}
body.admin-workspace #employee-statistics-section .employee-stat-measure{padding:16px;border-radius:10px;background:var(--theme-surface-2)}
body.admin-workspace #employee-statistics-section .employee-stat-measure h4{font-size:13px}
body.admin-workspace #employee-statistics-section .employee-stat-measure dd{font-size:21px}
body.admin-workspace #employee-statistics-section .employee-stat-actual dd{color:var(--theme-red)}
body.admin-workspace .staff-card{border-radius:13px;box-shadow:none;padding:18px}
body.admin-workspace .staff-card h3{font-family:Inter,Arial,sans-serif;font-size:16px;line-height:1.5}
body.admin-workspace .staff-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
body.admin-workspace :is(.staff-tools,.employee-stat-tools,.employee-stat-period){gap:12px;flex-wrap:wrap}
body.admin-workspace .schedule-layout{grid-template-columns:1fr;gap:0}
body.admin-workspace .schedule-layout>.refresh-fold{margin:18px;border-color:var(--theme-border)}
body.admin-workspace .schedule-editor{border:0;padding:18px 0 0;box-shadow:none;background:transparent}
body.admin-workspace .schedule-list-wrap{max-height:none;border:0;box-shadow:none;background:none}
body.admin-workspace .schedule-card{border-radius:11px;box-shadow:none}
body.admin-workspace .admin-grid{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
body.admin-workspace .admin-grid>.refresh-fold{grid-column:1/-1}
body.admin-workspace .refresh-menu-toggle{display:none}
body.admin-workspace :is(dialog,.panel-expanded){background:var(--theme-surface);color:var(--theme-text)}
@media(max-width:1200px){body.admin-workspace :is(.dashboard-chart-grid,.plan-dashboard-grid){grid-template-columns:1fr}body.admin-workspace .employee-stat-summaries{grid-template-columns:1fr!important}}
@media(max-width:1000px){
 body.admin-workspace .admin-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 body.admin-workspace .admin-sidebar{position:static;max-height:none;padding:10px;border-radius:12px;overflow:visible}
 body.admin-workspace .refresh-menu-enabled .refresh-menu-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left}
 body.admin-workspace .refresh-menu-enabled:not(.refresh-menu-open) .admin-nav{display:none}
 body.admin-workspace .admin-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin:12px 0 0}
 body.admin-workspace .admin-nav-heading{grid-column:1/-1}
 body.admin-workspace .admin-sidebar .sidebar-brand,body.admin-workspace .sidebar-period{display:none}
 body.admin-workspace .report-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
 body.admin-workspace .period-popover{position:fixed;top:50%;left:50%;width:calc(100vw - 32px);max-width:350px;transform:translate(-50%,-50%);grid-template-columns:1fr;padding:16px;box-sizing:border-box}
 body.admin-workspace .admin-shell{width:calc(100% - 24px);padding-top:12px}
 body.admin-workspace .admin-shell>.topbar{padding:12px;gap:10px;margin-bottom:14px}
 body.admin-workspace .section-breadcrumb{flex-basis:100%;font-size:12px}
 body.admin-workspace .topbar-actions{margin-left:0;justify-content:flex-start;flex-wrap:wrap;gap:7px}
 body.admin-workspace .topbar-actions .btn{font-size:12px;min-height:38px;padding:7px 10px}
 body.admin-workspace :is(.section-heading,.page-intro) :is(h1,h2){font-size:25px}
 body.admin-workspace .section-heading>label,body.admin-workspace .section-heading>.employee-stat-period{width:100%}
 body.admin-workspace :is(.input-control,textarea,select){font-size:16px;min-height:44px}
 body.admin-workspace .btn{min-height:44px}
 body.admin-workspace :is(.toolbar,.report-toolbar){grid-template-columns:repeat(2,minmax(0,1fr));padding:15px}
 body.admin-workspace .report-toolbar .multi-location-field,body.admin-workspace .toolbar-buttons{grid-column:1/-1}
 body.admin-workspace :is(.dashboard-chart-grid,.reports-grid,.plan-dashboard-grid,.admin-grid){grid-template-columns:1fr}
 body.admin-workspace .panel-header{padding:17px;gap:12px}
 body.admin-workspace .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.admin-workspace .metric-card{padding:15px;min-height:100px}
 body.admin-workspace .metric-value{font-size:24px}
 body.admin-workspace .report-status-grid{grid-template-columns:1fr}
 body.admin-workspace #employee-statistics-section .employee-stat-summary dl{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.admin-workspace .plan-result-metrics{grid-template-columns:1fr}
 body.admin-workspace .refresh-fold>summary{padding:17px}
 body.admin-workspace .refresh-fold-body{padding:0 16px 16px}
 body.admin-workspace .staff-cards{grid-template-columns:1fr}
 body.admin-workspace .plan-fast-form,body.admin-workspace .plan-compare-filters{grid-template-columns:1fr}
 body.admin-workspace .plan-dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.admin-workspace .plan-kpi-value{font-size:23px}
 body.admin-workspace .schedule-layout>.refresh-fold{margin:14px}
}
@media(max-width:420px){
 body.admin-workspace .summary-grid,body.admin-workspace .plan-dashboard-cards{grid-template-columns:1fr}
 body.admin-workspace :is(.toolbar,.report-toolbar){grid-template-columns:1fr}
 body.admin-workspace .report-toolbar .multi-location-field,body.admin-workspace .toolbar-buttons{grid-column:auto}
 body.admin-workspace #employee-statistics-section .employee-stat-person{padding:14px}
 body.admin-workspace #employee-statistics-section .employee-stat-measure{padding:14px}
 body.admin-workspace #employee-statistics-section .employee-stat-measure dd{font-size:19px}
 body.admin-workspace .admin-nav .btn{font-size:12px}
 body.admin-workspace .section-breadcrumb strong{white-space:normal}
}
@media(prefers-reduced-motion:reduce){body.admin-workspace *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* The earlier workspace mockup's shell, now around the real modules. */
body.admin-workspace .admin-shell{width:min(1580px,calc(100% - 40px));margin:24px auto;padding:0;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-page);box-shadow:none}
body.admin-workspace .admin-shell>.topbar{display:flex;position:static;min-height:78px;margin:0;padding:20px 24px;border:0;border-bottom:1px solid var(--theme-border);border-radius:18px 18px 0 0;background:var(--theme-surface);gap:18px}
body.admin-workspace .admin-shell>.topbar .brand{display:flex;min-width:0}
body.admin-workspace .topbar .brand-name{font-family:Inter,Arial,sans-serif;font-size:16px;letter-spacing:.035em;font-weight:800}
body.admin-workspace .topbar .brand-mark{width:34px;height:34px;border-radius:10px;box-shadow:none;font:800 22px Inter,Arial,sans-serif;background:var(--theme-red);color:#fff}
html[data-theme=dark] body.admin-workspace .topbar .brand-mark{color:#191c25}
body.admin-workspace .brand-caption{font-size:10px;letter-spacing:.08em;color:var(--theme-muted)}
body.admin-workspace .section-breadcrumb{display:none}
body.admin-workspace .topbar-actions{margin-left:auto;gap:9px;flex-wrap:wrap}
body.admin-workspace .project-status{border:0;background:none;padding:4px;font-size:12px;color:var(--theme-muted)}
body.admin-workspace .admin-layout{grid-template-columns:192px minmax(0,1fr);gap:0;border:0;min-height:810px}
body.admin-workspace .admin-sidebar{position:static;align-self:stretch;border:0;border-right:1px solid var(--theme-border);border-radius:0;min-height:810px;max-height:none;padding:25px 14px;background:var(--theme-surface);overflow:visible}
body.admin-workspace .admin-sidebar .sidebar-brand,body.admin-workspace .sidebar-label{display:none}
body.admin-workspace .admin-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0}
body.admin-workspace .admin-nav-heading{display:block;margin:18px 10px 8px;font-size:10px;letter-spacing:.08em;color:var(--theme-muted);padding:0}
body.admin-workspace .admin-nav-heading:first-child{margin-top:0}
body.admin-workspace .admin-nav .btn{font-size:13px;min-height:44px;line-height:1.4;padding:11px 12px;gap:9px;border:0;background:none;color:var(--theme-muted);font-weight:500;white-space:normal;width:100%}
body.admin-workspace .admin-nav .btn.active{background:var(--theme-red-soft);color:var(--theme-red);font-weight:600}
body.admin-workspace .admin-nav .btn:hover{background:var(--theme-surface-2)}
body.admin-workspace .admin-nav .btn.active:hover{background:var(--theme-red-soft)}
body.admin-workspace .admin-nav .btn::before{display:none;content:none}
body.admin-workspace .admin-nav .workspace-nav-icon{width:18px;height:18px;flex:0 0 18px;display:block;overflow:visible;color:inherit}
body.admin-workspace .admin-main-content{padding:28px 26px 26px;min-width:0}
body.admin-workspace :is(.section-heading,.page-intro) :is(h1,h2){font:750 26px/1.25 Inter,Arial,sans-serif;letter-spacing:-.04em;margin:0 0 7px}
body.admin-workspace .page-subtitle{font-size:13px;line-height:1.6;margin:0}
body.admin-workspace .admin-subnav{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--theme-border);padding:0;margin:0 0 24px;gap:3px}
body.admin-workspace .admin-subnav .btn{border:0;border-radius:0;background:none;border-bottom:2px solid transparent;color:var(--theme-muted);padding:11px 12px;font-size:13px;min-height:42px}
body.admin-workspace .admin-subnav .btn.active{color:var(--theme-red);border-bottom-color:var(--theme-red);font-weight:600;box-shadow:none}
body.admin-workspace .workspace-highlight{border-left:3px solid var(--theme-red)}
body.admin-workspace .workspace-highlight .button-row{padding:0 20px 20px}
body.admin-workspace .admin-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
body.admin-workspace .admin-overview-metrics .metric-value{font-size:25px}
body.admin-workspace .workspace-shortcuts>.section-heading{padding:20px 20px 0}
body.admin-workspace .workspace-shortcuts>.section-heading .eyebrow{display:none}
body.admin-workspace .workspace-shortcuts>.section-heading h2{font-size:17px}
body.admin-workspace .workspace-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 20px 20px}
body.admin-workspace .workspace-shortcut-grid .btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;background:var(--theme-surface-2);padding:14px;min-height:70px;gap:4px}
body.admin-workspace .workspace-shortcut-grid small{color:var(--theme-muted);font-size:12px;font-weight:400}
body.admin-workspace .workspace-report-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start;margin-bottom:18px}
body.admin-workspace .workspace-report-grid>.panel{margin:0}
body.admin-workspace .workspace-report-grid .report-status-grid{grid-template-columns:1fr}
body.admin-workspace .workspace-report-grid .panel-header{border-bottom:0}
body.admin-workspace .workspace-report-grid .auto-report-actions{width:100%}
body.admin-workspace .workspace-report-grid .auto-report-actions .btn-primary{width:100%;order:2}
body.admin-workspace .workspace-report-grid .auto-report-status{padding:14px 20px}
body.admin-workspace .workspace-report-grid .auto-report-panel .panel-expand-toggle{margin-left:auto}
body.admin-workspace .workspace-advanced{border-top:1px solid var(--theme-border);margin:18px 0 0;padding:14px 0 0;min-width:0}
body.admin-workspace .workspace-advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;font-size:13px;color:var(--theme-muted);padding:8px 0;cursor:pointer}
body.admin-workspace .workspace-advanced>summary::-webkit-details-marker{display:none}
body.admin-workspace .workspace-advanced>summary strong{font-weight:500}
body.admin-workspace .workspace-chevron{font-size:18px;flex-shrink:0}
body.admin-workspace .workspace-advanced[open]>summary>.workspace-chevron{transform:rotate(180deg)}
body.admin-workspace .workspace-advanced>.panel{margin-top:16px}
body.admin-workspace .workspace-advanced>.button-row{padding:12px 20px}
body.admin-workspace .workspace-advanced>.webhook-status{margin:0 20px 16px}
body.admin-workspace .panel>.workspace-advanced{margin:0 20px 16px}
body.admin-workspace .management-messages{display:grid;grid-template-columns:1fr;padding:14px 0}
body.admin-workspace .management-messages article{max-width:none}
body.admin-workspace .management-messages pre{max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 Inter,Arial,sans-serif}
body.admin-workspace #workspace-archive-section #plan-archive{margin-top:18px}
body.admin-workspace #workspace-archive-section .plan-archive-body{padding:18px}
body.admin-workspace #workspace-service-section>.panel{margin-bottom:18px}
body.admin-workspace .employee-stat-summary-note{font-weight:400}
body.admin-workspace .period-picker:not([open])>.period-popover{display:none}
body.admin-workspace details:not([open])>:not(summary){display:none}
body.admin-workspace .employee-stat-summary h2,body.admin-workspace .employee-stat-person h3{font-family:Inter,Arial,sans-serif}
body.admin-workspace .admin-grid{grid-template-columns:1fr}
body.admin-workspace .admin-shell>.footer-note{padding:0 20px 20px}
body.admin-workspace .admin-shell>#admin-message{margin:12px 20px}
@media(max-width:1100px){body.admin-workspace .workspace-report-grid{grid-template-columns:1fr}body.admin-workspace .plan-fast-form{grid-template-columns:repeat(2,minmax(0,1fr))}body.admin-workspace .plan-fast-form>.btn{grid-column:1/-1}}
@media(max-width:1000px){body.admin-workspace .period-popover{position:fixed;top:50%;left:50%;width:calc(100vw - 32px);max-width:350px;transform:translate(-50%,-50%);grid-template-columns:1fr;padding:16px;box-sizing:border-box}}
@media(max-width:850px){body.admin-workspace .admin-layout{grid-template-columns:164px minmax(0,1fr)}body.admin-workspace .admin-main-content{padding:23px 18px}body.admin-workspace .admin-sidebar{position:static}body.admin-workspace .employee-stat-measures{grid-template-columns:1fr!important}}
@media(max-width:600px){
 body.admin-workspace .admin-shell{width:calc(100% - 20px);margin:10px auto;border-radius:14px}
 body.admin-workspace .admin-shell>.topbar{padding:15px;border-radius:14px 14px 0 0;flex-wrap:wrap;gap:12px}
 body.admin-workspace .topbar-actions{width:100%;margin:0;justify-content:flex-start}
 body.admin-workspace .project-status{display:none}
 body.admin-workspace .admin-layout{display:block;min-height:0}
 body.admin-workspace .admin-sidebar{min-height:0;border:0;border-bottom:1px solid var(--theme-border);padding:9px 12px}
 body.admin-workspace .admin-nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 body.admin-workspace .admin-nav-heading,body.admin-workspace .sidebar-period{display:none}
 body.admin-workspace .admin-nav .btn{flex-direction:column;justify-content:center;text-align:center;font-size:11px;gap:6px;padding:10px 5px;min-height:54px}
 body.admin-workspace .admin-nav .workspace-nav-icon{width:16px;height:16px;flex-basis:16px}
 body.admin-workspace .admin-main-content{padding:22px 14px}
 body.admin-workspace .admin-subnav{gap:2px}
 body.admin-workspace .admin-subnav .btn{font-size:12px;padding:10px 9px}
 body.admin-workspace :is(.section-heading,.page-intro) :is(h1,h2){font-size:23px}
 body.admin-workspace .section-heading>label,body.admin-workspace .employee-stat-period{width:100%}
 body.admin-workspace .admin-overview-metrics{grid-template-columns:1fr}
 body.admin-workspace .workspace-shortcut-grid{grid-template-columns:1fr}
 body.admin-workspace .workspace-report-grid{grid-template-columns:1fr}
 body.admin-workspace .plan-fast-form{grid-template-columns:1fr}
 body.admin-workspace .workspace-report-grid .auto-report-status{padding:10px 16px}
 body.admin-workspace .employee-stat-summaries{grid-template-columns:1fr!important}
 body.admin-workspace .employee-stat-summary dl{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.admin-workspace #workspace-archive-section .plan-archive-body{padding:14px}
 body.admin-workspace .workspace-shortcuts .section-heading{padding:16px 16px 0}
 body.admin-workspace .workspace-shortcut-grid{padding:0 16px 16px}
}
/* One visible status summary and one list of employees, without duplicate warnings. */
body.admin-workspace .workspace-overview-state{padding:18px 20px 0;font-size:15px;line-height:1.6}
body.admin-workspace .workspace-overview-state p{font-size:13px;color:var(--theme-muted);margin:8px 0}
body.admin-workspace .workspace-attention-title{font-size:13px;margin:18px 20px 0;color:var(--theme-muted)}
body.admin-workspace .workspace-highlight .admin-overview-attention{padding:8px 20px 18px}
body.admin-workspace .workspace-message-index{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
body.admin-workspace .workspace-message-index .btn{font-size:12px;min-height:36px;padding:8px 11px}
body.admin-workspace .workspace-message-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px;align-items:start}
body.admin-workspace .workspace-message-hub>.workspace-message-card{margin:0;min-width:0;scroll-margin-top:24px}
body.admin-workspace #workspace-management-message,body.admin-workspace #workspace-employee-plan-messages,body.admin-workspace #workspace-news-message{grid-column:1/-1}
body.admin-workspace .workspace-message-card .panel-header{flex-wrap:wrap;gap:14px}
body.admin-workspace .workspace-message-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:16px 20px}
body.admin-workspace .workspace-message-controls label{display:grid;gap:5px;font-size:13px;color:var(--theme-muted);min-width:0;max-width:100%}
body.admin-workspace .workspace-message-card>.scope-label,body.admin-workspace .workspace-message-card>pre,body.admin-workspace .workspace-message-card>.auto-report-manual-help,body.admin-workspace .workspace-message-card>.staff-morning,body.admin-workspace .workspace-message-card>.btn{margin:12px 20px 18px}
body.admin-workspace .workspace-message-preview{padding:14px 20px;line-height:1.6;font-size:14px;background:var(--theme-surface-2);overflow-wrap:anywhere}
body.admin-workspace .workspace-message-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;max-height:360px;overflow:auto}
body.admin-workspace #workspace-news-message #site-updates-section{padding:18px;margin:0;min-width:0}
body.admin-workspace #workspace-news-message .section-heading h1{font-size:20px}
body.admin-workspace #automation-tab>.workspace-advanced>.panel{margin:16px 0}
body.admin-workspace #employee-plans-section>.panel[hidden],body.admin-workspace #overview-report[hidden],body.admin-workspace #staff-check-share[hidden]{display:none!important}
@media(max-width:1100px){body.admin-workspace .workspace-message-hub{grid-template-columns:1fr}}
@media(max-width:600px){
 body.admin-workspace .admin-nav{grid-template-columns:repeat(6,minmax(0,1fr))}
 body.admin-workspace .admin-nav .btn{grid-column:span 2}
 body.admin-workspace .admin-nav .btn:nth-last-of-type(-n+2){grid-column:span 3}
 body.admin-workspace .workspace-message-controls{padding:14px 16px}
 body.admin-workspace .workspace-message-controls label{width:100%}
 body.admin-workspace .workspace-message-controls .btn{max-width:100%;white-space:normal}
 body.admin-workspace .workspace-message-index{gap:6px}
 body.admin-workspace .workspace-message-index .btn{flex:1 1 130px}
}
/* Readiness uses the existing accepted-report counts, not invented sample values. */
body.admin-workspace .workspace-readiness{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding:24px 20px}
body.admin-workspace .readiness-chart{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px}
body.admin-workspace .readiness-ring{width:164px;height:164px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#17846d var(--readiness-percent),var(--theme-border) 0)}
body.admin-workspace .readiness-ring>div{width:138px;height:138px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--theme-surface)}
body.admin-workspace .readiness-ring strong{font-size:32px;line-height:1.4;color:var(--theme-text);font-variant-numeric:tabular-nums}
body.admin-workspace .readiness-ring span{font-size:12px;color:var(--theme-muted)}
body.admin-workspace .readiness-caption h3{font-size:15px;margin:0 0 6px}
body.admin-workspace .readiness-caption p{font-size:13px;color:var(--theme-muted);margin:0}
body.admin-workspace .readiness-people{display:grid;gap:10px;align-content:start;min-width:0}
body.admin-workspace .readiness-person{display:flex;gap:12px;padding:15px;background:var(--theme-surface-2);border:1px solid var(--theme-border);border-radius:12px;align-items:flex-start}
body.admin-workspace .readiness-person-icon{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--theme-red-soft);color:var(--theme-red);font-size:20px}
body.admin-workspace .readiness-person strong{font-size:14px;line-height:1.5}
body.admin-workspace .readiness-person p{font-size:13px;line-height:1.5;color:var(--theme-muted);margin:5px 0 0}
body.admin-workspace #overview-attention[hidden],body.admin-workspace .workspace-attention-title[hidden],body.admin-workspace #workspace-workers-message[hidden],body.admin-workspace #workspace-competitor-message[hidden],body.admin-workspace .workspace-message-index a[hidden],body.admin-workspace .plan-pace-details[hidden],body.admin-workspace #fact-hub .panel-header[hidden],body.admin-workspace #fact-hub details[hidden],body.admin-workspace #schedule-editor-manual[hidden]{display:none!important}
body.admin-workspace #workspace-fact-fold{margin:18px 0}
body.admin-workspace #workspace-fact-fold #fact-hub{margin:16px 0 0;border:0}
body.admin-workspace .schedule-live-editor{margin-bottom:22px}
body.admin-workspace .schedule-editor-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:18px 20px}
body.admin-workspace .schedule-live-editor label{display:grid;gap:6px;font-size:12px;color:var(--theme-muted);min-width:0}
body.admin-workspace .schedule-editor-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:0 20px 14px}
body.admin-workspace .calendar-weekday{text-align:center;color:var(--theme-muted);font-size:12px;padding:6px}
body.admin-workspace .calendar-day{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-height:58px;padding:7px 2px;border:1px solid var(--theme-border);border-radius:10px;color:var(--theme-text);background:var(--theme-surface-2);cursor:pointer;font:inherit}
body.admin-workspace .calendar-day strong{font-size:16px;font-variant-numeric:tabular-nums}
body.admin-workspace .calendar-day small{font-size:11px;color:var(--theme-muted)}
body.admin-workspace .calendar-day.selected{border-color:var(--theme-red);background:var(--theme-red-soft);box-shadow:inset 0 0 0 1px var(--theme-red)}
body.admin-workspace .calendar-day.empty{background:var(--theme-surface)}
body.admin-workspace .schedule-editor-legend{display:flex;flex-wrap:wrap;gap:15px;padding:0 20px 6px;font-size:12px;color:var(--theme-muted)}
body.admin-workspace .schedule-editor-legend span{display:flex;align-items:center;gap:6px}
body.admin-workspace .schedule-editor-legend i{width:8px;height:8px;border-radius:50%;background:#17846d}
body.admin-workspace .schedule-editor-legend .schedule-empty-dot{background:var(--theme-muted)}
body.admin-workspace .schedule-live-editor>.scope-label{margin:12px 20px}
body.admin-workspace .schedule-editor-rows{padding:0 20px;display:grid;gap:10px}
body.admin-workspace .schedule-editor-row{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(120px,.7fr) minmax(120px,.8fr) minmax(150px,1fr);gap:12px;padding:15px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);align-items:center;min-width:0}
body.admin-workspace .schedule-editor-person{min-width:0}
body.admin-workspace .schedule-editor-person strong{font-size:14px;line-height:1.5}
body.admin-workspace .schedule-editor-person small{display:block;font-size:12px;line-height:1.5;color:var(--theme-muted);margin-top:5px}
body.admin-workspace .schedule-editor-row.is-off{background:var(--theme-surface-2)}
body.admin-workspace .schedule-editor-row.is-dirty{border-color:var(--theme-red)}
body.admin-workspace .schedule-live-editor input:disabled,body.admin-workspace .schedule-live-editor select:disabled{opacity:.6;cursor:default}
body.admin-workspace .schedule-editor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:20px}
body.admin-workspace .schedule-editor-coverage{border-top:1px solid var(--theme-border);padding:20px}
body.admin-workspace .schedule-editor-coverage h3{font-size:17px;margin:0 0 8px}
body.admin-workspace #schedule-editor-coverage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
body.admin-workspace .schedule-coverage-card{border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-2);padding:14px;font-size:13px}
body.admin-workspace .schedule-coverage-card.warning{border-left:3px solid var(--theme-red)}
body.admin-workspace .schedule-coverage-card p{color:var(--theme-muted);margin:6px 0 0;line-height:1.6}
body.admin-workspace .schedule-editor-manual{padding:15px;margin:15px 20px;border:1px solid var(--theme-red);border-radius:12px;background:var(--theme-red-soft);font-size:13px;line-height:1.6}
body.admin-workspace .schedule-editor-manual label{display:flex;align-items:start;gap:9px;color:var(--theme-text)}
body.admin-workspace .schedule-editor-manual input{flex:none;margin-top:3px}
@media(max-width:1150px){body.admin-workspace .schedule-editor-row{grid-template-columns:repeat(2,minmax(0,1fr))}body.admin-workspace .schedule-editor-person{grid-column:1/-1}}
@media(max-width:850px){body.admin-workspace .workspace-readiness{grid-template-columns:1fr}.readiness-chart{width:100%}}
@media(max-width:600px){
 body.admin-workspace .workspace-readiness{padding:20px 16px}
 body.admin-workspace .schedule-editor-tools{padding:16px}
 body.admin-workspace .schedule-editor-tools label{width:100%}
 body.admin-workspace .schedule-editor-calendar{padding:0 12px 14px;gap:4px}
 body.admin-workspace .calendar-day{min-height:51px}
 body.admin-workspace .calendar-day strong{font-size:14px}
 body.admin-workspace .calendar-day small{font-size:9px}
 body.admin-workspace .schedule-editor-row{grid-template-columns:1fr}
 body.admin-workspace .schedule-editor-rows{padding:0 12px}
 body.admin-workspace .schedule-editor-actions{padding:16px}
 body.admin-workspace .schedule-editor-coverage{padding:16px}
 body.admin-workspace #schedule-editor-coverage{grid-template-columns:1fr}
}
body.admin-workspace .fact-editor-form{display:grid;gap:18px;margin:18px 0}
body.admin-workspace .fact-editor-period{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(0,1fr) auto;align-items:end;gap:14px}
body.admin-workspace .fact-editor-form label{display:grid;gap:7px;font-size:13px;color:var(--theme-muted);min-width:0}
body.admin-workspace #fact-editor-scope{display:block;font-size:14px;line-height:1.5;padding:10px 0}
body.admin-workspace .fact-editor-base{background:var(--theme-surface-2);border:1px solid var(--theme-border);padding:14px;border-radius:10px;font-size:13px;line-height:1.65;margin:0}
body.admin-workspace .fact-editor-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.admin-workspace .fact-editor-fields .input-control{font-size:18px;font-weight:600;min-height:48px}
body.admin-workspace .fact-editor-fields input:disabled{opacity:.6}
body.admin-workspace .fact-editor-legacy{border-top:1px solid var(--theme-border);margin-top:22px;padding-top:15px}
body.admin-workspace .fact-editor-legacy>summary{font-size:13px;color:var(--theme-muted);cursor:pointer;padding:7px 0}
body.admin-workspace .fact-editor-legacy .plan-fast-current{margin-top:14px}
body.admin-workspace .fact-editor-legacy .plan-fast-form{margin:18px 0}
body.admin-workspace .fact-source-fold{margin:22px 0 0}
body.admin-workspace .fact-source-fold .plan-source-notice{margin:14px 0 0}
body.admin-workspace #quarter-fact-form[hidden]{display:none!important}
body.admin-workspace #fact-editor-remove[hidden]{display:none!important}
@media(max-width:1000px){body.admin-workspace .fact-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}body.admin-workspace .fact-editor-period{grid-template-columns:repeat(2,minmax(0,1fr))}body.admin-workspace #fact-editor-reload{grid-column:1/-1}}
@media(max-width:600px){body.admin-workspace .fact-editor-fields,body.admin-workspace .fact-editor-period{grid-template-columns:1fr}body.admin-workspace .fact-editor-form .button-row{display:grid;grid-template-columns:1fr}}

/* Task navigation, shared analytical context and consistent filters. */
html[data-theme=light]:has(body.admin-workspace){--theme-page:#f4f5f8}
html[data-theme=dark]:has(body.admin-workspace){--theme-page:#141820}
body.admin-workspace .admin-main-content{position:relative;min-width:0}
body.admin-workspace .workspace-search{position:relative;display:flex;align-items:center;gap:12px;margin:0 0 20px;max-width:100%;z-index:35}
body.admin-workspace .workspace-search>.input-control{width:100%;height:46px;min-height:46px;padding:11px 84px 11px 16px;background:var(--theme-surface);box-shadow:none}
body.admin-workspace .workspace-search>kbd{position:absolute;right:14px;padding:3px 7px;border:1px solid var(--theme-border);border-radius:6px;color:var(--theme-muted);font:11px Inter,Arial,sans-serif;pointer-events:none}
body.admin-workspace .workspace-search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:min(480px,70vh);overflow:auto;padding:6px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);box-shadow:var(--theme-shadow);z-index:40}
body.admin-workspace .workspace-search-results[hidden]{display:none}
body.admin-workspace .workspace-search-option{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;min-height:48px;padding:12px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--theme-text);font-family:Inter,Arial,sans-serif;cursor:pointer}
body.admin-workspace .workspace-search-option strong{font-size:13px;font-weight:600;line-height:1.5}
body.admin-workspace .workspace-search-option small{font-size:11px;color:var(--theme-muted);flex-shrink:0}
body.admin-workspace .workspace-search-option[aria-selected=true],body.admin-workspace .workspace-search-option:hover{background:var(--theme-red-soft)}
body.admin-workspace .workspace-search-results>p{padding:12px;margin:0}
body.admin-workspace .workspace-analytics-context{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:16px 20px;margin:0 0 24px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface)}
body.admin-workspace .workspace-analytics-context>label{display:grid;gap:6px;flex:0 1 230px;min-width:190px;font-size:12px;font-weight:600;color:var(--theme-muted)}
body.admin-workspace .workspace-analytics-context .input-control{width:100%;min-height:42px;background:var(--theme-input)}
body.admin-workspace .workspace-analytics-context>p{flex:1;max-width:510px;margin:0;font-size:12px;line-height:1.7}
body.admin-workspace .workspace-analytics-context[hidden],body.admin-workspace label[hidden],body.admin-workspace .workspace-task-panel[hidden]{display:none!important}
body.admin-workspace .workspace-message-hub{display:block!important;min-width:0}
body.admin-workspace .workspace-message-hub>.workspace-task-panel{width:100%;min-width:0}
body.admin-workspace .workspace-task-picker{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 20px;border:0;background:transparent}
body.admin-workspace .workspace-task-picker>.workspace-task-chip{flex:0 1 auto;min-height:38px;max-width:100%;padding:9px 12px;white-space:normal;text-align:center;font-size:12px;line-height:1.5;background:var(--theme-surface);border:1px solid var(--theme-border);color:var(--theme-text);box-shadow:none}
body.admin-workspace .workspace-task-picker>.workspace-task-chip:hover{border-color:var(--theme-red);color:var(--theme-red)}
body.admin-workspace .workspace-task-picker>.workspace-task-chip[aria-selected=true]{background:var(--theme-red-soft);border-color:var(--theme-red);color:var(--theme-red);font-weight:700}
body.admin-workspace .workspace-task-chip:focus-visible{outline:3px solid var(--theme-red);outline-offset:3px}
body.admin-workspace #workspace-automation-schedules{margin:0 0 18px}
body.admin-workspace #workspace-automation-schedules>summary{display:none}
body.admin-workspace #workspace-automation-schedules>.panel,body.admin-workspace #workspace-automation-schedules>section{margin-top:0}
body.admin-workspace :is(.toolbar,.plan-dashboard-filters,.section-heading,.page-intro,.workspace-message-controls) :is(label,.field-label){font-size:12px;font-weight:600;color:var(--theme-muted);line-height:1.5}
body.admin-workspace .toolbar>label,body.admin-workspace .plan-dashboard-filters>label{display:grid;gap:6px;align-content:start;min-width:0;margin:0}
body.admin-workspace .toolbar :is(input,select),body.admin-workspace .plan-dashboard-filters :is(input,select){min-height:42px;margin-top:0}
body.admin-workspace .workspace-filter-field{display:grid;align-content:start;gap:6px;min-width:0}
body.admin-workspace .workspace-filter-field>.period-picker{margin:0;min-width:0}
body.admin-workspace .workspace-filter-field>.period-picker>summary{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:9px 12px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-input);font-size:14px;color:var(--theme-text);font-weight:500}
body.admin-workspace .workspace-filter-field>.period-picker>summary:after{content:'⌄';margin-left:12px;color:var(--theme-muted)}
body.admin-workspace .workspace-filter-field>.period-picker>summary strong{font-weight:500;font-size:14px;color:var(--theme-text)}
body.admin-workspace .multi-location-field{display:grid;gap:6px;align-content:start}
body.admin-workspace .multi-location-field>.field-label{margin:0}
body.admin-workspace .multi-location-picker>summary{min-height:42px}
body.admin-workspace .workspace-export-note{margin:-8px 3px 18px;line-height:1.6;font-size:12px}
body.admin-workspace #report-export:not(:disabled){opacity:1;color:#fff;background:var(--theme-red);border-color:var(--theme-red)}
body.admin-workspace #report-export:disabled{background:var(--theme-surface-2);color:var(--theme-muted);border:1px solid var(--theme-border);opacity:1;cursor:not-allowed}
body.admin-workspace .report-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
body.admin-workspace .report-toolbar>.toolbar-buttons{grid-column:1/-1;justify-content:flex-start}
body.admin-workspace .employee-stat-heading>.employee-stat-period{display:flex;gap:8px;flex-wrap:wrap}
body.admin-workspace .plan-dashboard-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){body.admin-workspace .report-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body.admin-workspace .workspace-search{margin-bottom:16px}body.admin-workspace .workspace-search>kbd{display:none}body.admin-workspace .workspace-search>.input-control{padding-right:14px}body.admin-workspace .workspace-analytics-context{display:grid;gap:12px;padding:14px}body.admin-workspace .workspace-analytics-context>label{min-width:0;max-width:none;width:100%}body.admin-workspace .workspace-task-picker{gap:6px}body.admin-workspace .workspace-task-picker>.workspace-task-chip{flex:1 1 130px;padding:9px 10px}body.admin-workspace .report-toolbar,body.admin-workspace .plan-dashboard-filters{grid-template-columns:minmax(0,1fr)}body.admin-workspace .workspace-search-option{align-items:flex-start}body.admin-workspace .workspace-search-option small{font-size:10px}body.admin-workspace #report-export{flex:1}body.admin-workspace .workspace-filter-field .period-popover{width:min(320px,calc(100vw - 48px));max-width:100%}}

/* Keep viewport-positioned menus anchored: a transformed page would make
   position:fixed use the page section as its containing block. */
@keyframes workspace-screen-enter{from{opacity:0}to{opacity:1}}
body.admin-workspace .admin-tab-panel:not([hidden]){animation-name:workspace-screen-enter}
body.admin-workspace .records-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:18px 20px;cursor:pointer;list-style:none}
body.admin-workspace .records-summary::-webkit-details-marker{display:none}
body.admin-workspace .records-summary strong{display:block;color:var(--theme-text);font-size:16px;line-height:1.5}
body.admin-workspace .records-summary small{display:block;margin-top:5px;color:var(--theme-muted);font-size:12px;line-height:1.6}
body.admin-workspace .records-chevron{color:var(--theme-muted);transition:transform .16s}
body.admin-workspace #report-history[open]>.records-summary{border-bottom:1px solid var(--theme-border)}
body.admin-workspace #report-history[open] .records-chevron{transform:rotate(180deg)}
body.admin-workspace .records-summary:focus-visible{outline:3px solid var(--theme-red);outline-offset:-4px;border-radius:12px}
body.admin-workspace .records-history-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 20px}
body.admin-workspace .records-history-tools p{margin:0}
body.admin-workspace .records-history-tools .switch-row{margin:0}
@media(max-width:620px){body.admin-workspace .records-summary{padding:16px}body.admin-workspace .records-history-tools{padding:14px 16px}}

/* Monthly schedule is a horizontally scrollable matrix, with a sticky name column. */
body.admin-workspace .sm-version{padding:6px 10px;border-radius:20px;background:var(--theme-red-soft);color:var(--theme-red);font-size:11px;font-weight:650;white-space:nowrap}
body.admin-workspace .sm-search{flex:1;max-width:400px;min-width:180px}
body.admin-workspace .sm-selection-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0 20px 14px}
body.admin-workspace .sm-selection-tools>strong{font-size:12px;color:var(--theme-muted)}
body.admin-workspace .sm-selection-tools .btn{font-size:12px;padding:8px 10px}
body.admin-workspace .sm-legend{display:flex;flex-wrap:wrap;gap:14px;padding:0 20px 6px;color:var(--theme-muted);font-size:11px}
body.admin-workspace .sm-legend>span{display:flex;align-items:center;gap:6px}
body.admin-workspace .sm-dot{height:9px;width:9px;border-radius:3px;background:var(--theme-track)}
body.admin-workspace .sm-dot.is-work{background:#168569}body.admin-workspace .sm-dot.is-off{background:#91a0b4}body.admin-workspace .sm-dot.is-dirty{background:#d48813}
body.admin-workspace .sm-grid{max-height:66vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-block:1px solid var(--theme-border);position:relative}
body.admin-workspace .sm-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:12px;table-layout:fixed}
body.admin-workspace .sm-table :is(th,td){min-width:43px;width:43px;padding:5px;text-align:center;border-right:1px solid var(--theme-border);border-bottom:1px solid var(--theme-border);white-space:normal}
body.admin-workspace .sm-table th{color:var(--theme-muted);background:var(--theme-surface-2);text-transform:none;letter-spacing:normal}
body.admin-workspace .sm-table th strong{display:block;font-size:12px}
body.admin-workspace .sm-table th small{display:block;font-size:10px;font-weight:400;margin-top:3px;line-height:1.5}
body.admin-workspace .sm-table thead th{position:sticky;top:0;z-index:3;height:55px}
body.admin-workspace .sm-table .sm-person{width:220px;min-width:220px;max-width:220px;position:sticky;left:0;text-align:left;z-index:2;padding:10px 12px;background:var(--theme-surface);box-shadow:2px 0 0 var(--theme-border)}
body.admin-workspace .sm-table .sm-person strong{font-weight:600;color:var(--theme-text);line-height:1.5;overflow-wrap:anywhere}
body.admin-workspace .sm-table .sm-person small{color:var(--theme-muted);overflow-wrap:anywhere}
body.admin-workspace .sm-table thead .sm-person{z-index:4;background:var(--theme-surface-2)}
body.admin-workspace .sm-table .sm-weekend{color:var(--theme-red);background:var(--theme-red-soft)}
body.admin-workspace .sm-cell{display:block;width:32px;min-height:35px;margin:0 auto;padding:5px 2px;border:1px solid transparent;border-radius:7px;font:600 12px Inter,Arial,sans-serif;color:var(--theme-text);background:var(--theme-surface-2);cursor:pointer;position:relative}
body.admin-workspace .sm-cell.is-work{background:var(--theme-green-soft);color:var(--theme-green)}
body.admin-workspace .sm-cell.is-off{color:var(--theme-muted)}
body.admin-workspace .sm-cell.is-empty{background:transparent;color:var(--theme-muted)}
body.admin-workspace .sm-cell.is-dirty:after{content:'';position:absolute;right:3px;top:3px;width:5px;height:5px;border-radius:50%;background:#d48813}
body.admin-workspace .sm-cell.is-selected{border-color:var(--theme-red);box-shadow:0 0 0 1px var(--theme-red)}
body.admin-workspace .sm-cell:focus-visible{outline:3px solid var(--theme-red);outline-offset:2px}
body.admin-workspace .sm-empty{padding:20px}
body.admin-workspace .sm-inspector{margin:18px 20px;padding:16px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-2)}
body.admin-workspace .sm-inspector[hidden]{display:none!important}
body.admin-workspace .sm-inspector h3{font-size:14px;margin:0 0 14px}
body.admin-workspace .sm-inspector-fields{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px}
body.admin-workspace .sm-inspector .scope-label{margin:12px 0 0;font-size:11px;line-height:1.6}
body.admin-workspace .sm-bulk{margin:18px 20px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface)}
body.admin-workspace .sm-bulk>summary{display:flex;justify-content:space-between;gap:12px;list-style:none;padding:15px;cursor:pointer;font-size:13px;font-weight:600}
body.admin-workspace .sm-bulk>summary::-webkit-details-marker{display:none}
body.admin-workspace .sm-bulk-body{padding:0 16px 16px;display:grid;gap:16px}
body.admin-workspace .sm-bulk-body>label{max-width:420px}
body.admin-workspace .sm-range{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:end;gap:10px}
body.admin-workspace .sm-copy{display:flex;align-items:end;gap:12px;flex-wrap:wrap;border-top:1px solid var(--theme-border);padding-top:16px}
body.admin-workspace .sm-bulk-body>.scope-label{font-size:11px;line-height:1.7;margin:0}
body.admin-workspace .sm-savebar{position:sticky;bottom:0;background:var(--theme-surface);border-top:1px solid var(--theme-border);z-index:5;box-shadow:0 -5px 12px #00000005}
body.admin-workspace .sm-savebar .scope-label{margin:0}
body.admin-workspace .sm-coverage-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:15px}
body.admin-workspace .sm-coverage-heading h3{margin:0 0 5px}
body.admin-workspace .sm-manual-check{display:flex!important;align-items:center;gap:8px!important;margin:8px 0}
body.admin-workspace .sm-manual-check input{width:17px;height:17px}
@media(max-width:1050px){body.admin-workspace .sm-range{grid-template-columns:1fr 1fr}body.admin-workspace .sm-inspector-fields{grid-template-columns:1fr 1fr}body.admin-workspace .sm-inspector-fields>label:last-child{grid-column:1/-1}}
@media(max-width:620px){body.admin-workspace .sm-table .sm-person{min-width:132px;max-width:132px;width:132px;padding:8px}body.admin-workspace .sm-table .sm-person strong{font-size:11px}body.admin-workspace .sm-selection-tools,body.admin-workspace .sm-legend{padding-left:14px;padding-right:14px}body.admin-workspace .sm-inspector,body.admin-workspace .sm-bulk{margin:14px}body.admin-workspace .sm-inspector-fields,body.admin-workspace .sm-range{grid-template-columns:minmax(0,1fr)}body.admin-workspace .sm-inspector-fields>label:last-child{grid-column:auto}body.admin-workspace .sm-search{min-width:0;width:100%;max-width:none;flex-basis:100%}body.admin-workspace .sm-range .btn,body.admin-workspace .sm-copy .btn{width:100%}body.admin-workspace .sm-savebar{position:static}body.admin-workspace .sm-savebar .btn{flex:1 1 160px}body.admin-workspace .sm-grid{max-height:70vh}}
