/* Workspace shell and attendance overview. */
:root { --ws-ink:#26334d; --ws-muted:#79849b; --ws-line:#e7ebf3; }
body,.as-body-wrapper { background:#f5f7fb; color:var(--ws-ink); }
.as-sidebar { position:sticky; top:0; height:100dvh; width:256px; min-width:256px; background:#fff; border-right:1px solid var(--ws-line); box-shadow:none; }
.as-sidebar-brand { min-height:91px; padding:23px 22px; flex-shrink:0; }
.as-brand-text h1 { font-size:21px; letter-spacing:-.8px; }
.as-brand-text p { letter-spacing:2px; }
.as-sidebar-nav { flex:1; min-height:0; overflow-y:auto; padding:0 13px 16px; scrollbar-width:thin; scrollbar-color:#dbe0ed transparent; }
.ws-nav-label { padding:20px 12px 9px; font-size:9px; font-weight:700; letter-spacing:1.6px; color:#929caf; text-transform:uppercase; }
.as-nav-item { gap:11px; min-height:43px; padding:7px 11px; margin-bottom:3px; font-size:12px; line-height:1.35; border-radius:10px; }
.as-nav-icon { width:30px; height:30px; border-radius:9px; }
.as-nav-icon svg { width:17px; height:17px; }
.as-nav-item.as-active { background:#eef0fd; color:#5d62c9; box-shadow:inset 3px 0 #7977db; }
.as-sidebar-footer { padding:17px; background:#fafbfe; flex-shrink:0; }
.as-user-info-text { min-width:0; }
.as-user-name { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:145px; }
.as-topbar { height:76px; padding:0 32px; background:#ffffffed; border-bottom:1px solid var(--ws-line); }
.as-mobile-toggle { color:#5f6982; border-color:var(--ws-line); flex-shrink:0; cursor:pointer; }
.as-mobile-toggle:hover { background:#eef0fd; color:#5d62c9; }
.as-content-area { width:100%; max-width:1500px; margin:0 auto; padding:30px 32px 40px; box-sizing:border-box; }
.ws-intro { margin-bottom:25px; }
.ws-intro h1 { font-size:29px; font-weight:700; letter-spacing:-1px; }
.ws-intro p { font-size:13px; color:var(--ws-muted); }
.ws-eyebrow { font-size:9px; color:#858daf; }
.as-card { border:1px solid var(--ws-line); border-radius:18px; box-shadow:0 4px 18px #27334d04; }
.as-card:hover { box-shadow:0 4px 18px #27334d04; }
.as-card-title { font-size:15px; font-weight:650; color:var(--ws-ink); }
.as-btn { border-radius:10px; font-weight:600; gap:8px; }
.as-btn-primary { background:#706cce; border-color:#706cce; box-shadow:0 4px 10px #706cce20; }
.as-btn-primary:hover { background:#605cbe; }
.ws-text-link { color:#6868b7; font-size:12px; }
.ws-metrics { gap:16px; margin-bottom:23px; }
.ws-metric { padding:20px; border-radius:16px; background:#fff; border-color:var(--ws-line); box-shadow:none; }
.ws-metric:nth-child(2) { background:#f0f9ff; border-color:#deeffb; }
.ws-metric:nth-child(3) { background:#fff7ed; border-color:#f8ead7; }
.ws-metric:nth-child(4) { background:#f0faf5; border-color:#dff0e7; }
.ws-metric>div { font-size:12px; color:#69768b; }
.ws-metric strong { margin:9px 0 5px; font-size:31px; font-weight:650; }
.ws-metric small { font-size:11px; color:#8791a4; }
.ws-metric:hover { transform:translateY(-2px); box-shadow:0 8px 18px #27334d09; }
.ws-columns { grid-template-columns:1fr 1fr; gap:22px; }
.ws-columns>.as-card:first-child,.ws-columns>.as-card:nth-child(2) { background:#fff; border-color:var(--ws-line); }
.ws-empty { padding:24px 10px; }
.ws-empty h3 { font-size:14px; }
.ws-empty p { font-size:12px; line-height:1.7; }
.ws-attendance-summary.ws-overview { display:block; padding:0; min-height:0; background:#fff; border:1px solid var(--ws-line); border-radius:20px; margin-bottom:22px; overflow:hidden; }
.ws-summary-header { padding:23px 26px 21px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #edf0f6; background:linear-gradient(100deg,#f9f9ff,#fff 70%); }
.ws-summary-header h2 { margin:7px 0 5px; font-size:22px; font-weight:650; letter-spacing:-.6px; color:var(--ws-ink); line-height:1.25; }
.ws-summary-header p { margin:0; font-size:12px; color:var(--ws-muted); }
.ws-summary-header .as-btn { white-space:nowrap; font-size:12px; }
.ws-attendance-body { display:grid; grid-template-columns:156px minmax(220px,1fr) minmax(225px,.95fr); align-items:center; gap:26px; padding:26px; }
.ws-attendance-ring { display:grid; place-items:center; width:156px; height:156px; border-radius:50%; background:var(--attendance-fill); position:relative; }
.ws-attendance-ring:before { content:''; position:absolute; inset:13px; background:#fff; border-radius:50%; }
.ws-attendance-ring>div { position:relative; text-align:center; }
.ws-attendance-ring strong { display:block; font-size:37px; font-weight:700; color:var(--ws-ink); line-height:1.3; letter-spacing:-1.5px; }
.ws-attendance-ring strong small { font-size:20px; font-weight:500; }
.ws-attendance-ring span { font-size:11px; color:var(--ws-muted); }
.ws-summary-total { display:flex; align-items:center; gap:12px; margin-bottom:17px; }
.ws-summary-total>strong { font-size:24px; white-space:nowrap; color:var(--ws-ink); }
.ws-summary-total>strong>span { color:#a3aabc; font-weight:400; font-size:18px; }
.ws-summary-total p { margin:0; font-size:11px; color:var(--ws-muted); max-width:95px; line-height:1.5; }
.ws-status-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; }
.ws-status-item { display:flex; gap:7px; align-items:center; font-size:11px; color:#6f7b90; min-width:0; }
.ws-status-item i,.ws-personal-records i { display:inline-block; width:7px; height:7px; border-radius:3px; flex-shrink:0; }
.ws-status-item strong { margin-left:auto; font-size:12px; color:#34425b; }
.ws-attendance-summary .ws-summary-note { margin:17px 0 0; font-size:10px; color:#929bb0; line-height:1.7; }
.ws-attendance-week { border-left:1px solid var(--ws-line); padding-left:25px; align-self:stretch; display:flex; flex-direction:column; justify-content:center; }
.ws-week-heading { display:flex; flex-direction:column; gap:4px; margin-bottom:16px; }
.ws-week-heading h3 { font-size:13px; font-weight:650; margin:0; color:var(--ws-ink); }
.ws-week-heading>span { font-size:10px; color:#929bb0; }
.ws-week-chart { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px; }
.ws-week-day { display:flex; flex-direction:column; align-items:center; gap:7px; font-size:9px; color:#97a0b2; }
.ws-week-day>strong { font-weight:600; color:#6d7690; font-size:10px; }
.ws-week-track { height:68px; width:100%; max-width:22px; background:#f0f2f9; border-radius:5px; display:flex; align-items:flex-end; overflow:hidden; }
.ws-week-track i { display:block; width:100%; background:#aaa7e8; border-radius:5px; }
.ws-week-day:last-child .ws-week-track i { background:#7772d5; }
.ws-week-day:last-child>span { color:#7772d5; font-weight:700; }
.ws-personal-records>div { display:flex; align-items:center; justify-content:space-between; padding:7px 0; border-bottom:1px solid #f0f2f8; font-size:11px; color:var(--ws-muted); }
.ws-personal-records strong { display:flex; align-items:center; gap:7px; font-weight:500; color:#59667c; }
.ws-personal-records p { font-size:12px; }
.ws-sidebar-backdrop[hidden],.ws-drawer-close { display:none; }
@media(min-width:901px) {
  .ws-sidebar-collapsed .as-sidebar { width:80px; min-width:80px; }
  .ws-sidebar-collapsed .as-sidebar-brand { padding:23px 18px; }
  .ws-sidebar-collapsed .as-brand-text,.ws-sidebar-collapsed .ws-nav-label,.ws-sidebar-collapsed .as-user-info-text,.ws-sidebar-collapsed .as-sidebar-footer>button { display:none; }
  .ws-sidebar-collapsed .as-sidebar-nav { padding:10px; }
  .ws-sidebar-collapsed .as-nav-item { justify-content:center; padding:9px 0; min-height:48px; }
  .ws-sidebar-collapsed .as-nav-item>span:not(.as-nav-icon) { display:none; }
  .ws-sidebar-collapsed .as-sidebar-footer { padding:17px 20px; }
}
@media(min-width:901px) and (max-width:1180px) {
  .as-sidebar { width:228px; min-width:228px; }
  .as-content-area { padding:24px; }
  .ws-attendance-body { grid-template-columns:145px minmax(0,1fr); gap:22px; }
  .ws-attendance-ring { width:145px; height:145px; }
  .ws-attendance-week { grid-column:1/-1; padding:20px 0 0; border-left:0; border-top:1px solid var(--ws-line); }
  .ws-week-heading { flex-direction:row; justify-content:space-between; }
}
@media(max-width:900px) {
  .as-sidebar { position:fixed; left:0; top:0; bottom:0; height:100dvh; width:min(86vw,300px); min-width:0; transform:translateX(-105%); transition:transform .22s ease; z-index:1200; }
  .as-sidebar.as-mobile-open { transform:translateX(0); left:0; }
  .ws-sidebar-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:1190; background:#1a234e69; backdrop-filter:blur(3px); border:0; cursor:pointer; }
  .ws-drawer-close { display:grid; place-items:center; margin-left:auto; height:34px; width:34px; flex-shrink:0; background:#f2f4fa; border:0; border-radius:10px; color:#68768e; cursor:pointer; }
  body.ws-drawer-open { overflow:hidden; }
  .as-topbar { height:66px; padding:0 20px; }
  .as-content-area { padding:24px 20px 95px; }
  .ws-attendance-body { grid-template-columns:145px minmax(0,1fr); }
  .ws-attendance-ring { width:145px; height:145px; }
  .ws-attendance-week { grid-column:1/-1; padding:20px 0 0; border-left:0; border-top:1px solid var(--ws-line); }
  .ws-week-heading { flex-direction:row; justify-content:space-between; }
  .ws-week-track { max-width:32px; height:62px; }
}
@media(max-width:600px) {
  .as-topbar { height:62px; padding:0 12px; }
  .as-topbar-action-label { display:none; }
  .as-topbar-left { flex:1; min-width:0; gap:10px; }
  .as-page-title { max-width:40vw; }
  .as-content-area { padding:22px 14px 90px; }
  .ws-intro { gap:12px; margin-bottom:19px; }
  .ws-intro h1 { font-size:25px; line-height:1.25; }
  .ws-intro p { font-size:12px; }
  .ws-intro>.as-btn { display:none; }
  .ws-summary-header { align-items:flex-start; padding:19px 17px 17px; gap:8px; }
  .ws-summary-header h2 { font-size:20px; }
  .ws-summary-header p { font-size:10px; }
  .ws-summary-header .as-btn { font-size:10px; padding:8px; min-height:38px; gap:4px; }
  .ws-summary-header .as-btn svg { display:none; }
  .ws-attendance-body { padding:21px 17px 17px; gap:21px 17px; grid-template-columns:100px minmax(0,1fr); }
  .ws-attendance-ring { width:100px; height:100px; }
  .ws-attendance-ring:before { inset:9px; }
  .ws-attendance-ring strong { font-size:28px; }
  .ws-attendance-ring span { font-size:10px; }
  .ws-summary-total { margin-bottom:12px; gap:8px; }
  .ws-summary-total>strong { font-size:22px; }
  .ws-summary-total p { font-size:10px; }
  .ws-status-grid { grid-template-columns:1fr; gap:8px; }
  .ws-status-item { font-size:10px; }
  .ws-attendance-summary .ws-summary-note { margin-top:13px; font-size:10px; }
  .ws-metrics { gap:10px; margin-bottom:18px; }
  .ws-metric { padding:15px; border-radius:15px; }
  .ws-metric>div { font-size:11px; }
  .ws-metric strong { font-size:28px; }
  .ws-metric small { font-size:10px; }
  .ws-columns { grid-template-columns:1fr; gap:16px; }
  .as-card { padding:18px; }
}
@media(prefers-reduced-motion:reduce) { .as-sidebar { transition:none; } .ws-metric:hover { transform:none; } }
