/* Official workspace design, shared across application screens. */
@media screen{
 body.workspace-ui{
  --bg:#f4f6f5;--surface:#fff;--surface-soft:#f8fafb;--hover:#f0f4f9;
  --text:#263245;--muted:#6a7789;--border:#e5eaf0;--grid-border:#edf0f4;
  --sidebar:#fff;--sidebar-text:#536176;--sidebar-muted:#738095;--sidebar-border:#e7ebf0;
  --nav-active:#edf3ff;--nav-active-text:#2563eb;--nav-hover:#f5f7fa;
  --info-bg:#f1f5fc;--info-text:#516681;--blue:#2563eb;--primary:#2563eb;
  font:14px/1.55 'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;
 }
 html[data-theme=dark] body.workspace-ui{
  --bg:#171b23;--surface:#202632;--surface-soft:#252d3a;--hover:#2c3545;
  --text:#e4e9f2;--muted:#a2afc3;--border:#333d4d;--grid-border:#303949;
  --sidebar:#1c222c;--sidebar-text:#bac5d6;--sidebar-muted:#97a7bd;--sidebar-border:#323c4c;
  --nav-active:#273b5e;--nav-active-text:#a8caff;--nav-hover:#252e3d;
  --info-bg:#26344b;--info-text:#b8cceb;--blue:#90baff;--primary:#90baff;
 }
 .workspace-ui aside{width:224px;padding:28px 16px 20px;height:100dvh;border-right:1px solid var(--sidebar-border)}
 .workspace-ui main{margin-left:224px}
 .workspace-ui .brand{font-size:18px;letter-spacing:-.6px;gap:11px;padding:0 9px 28px;border:0;color:var(--text)}
 .workspace-ui .brand small{font-size:11px;letter-spacing:0;margin-top:2px;color:var(--muted)}
 .workspace-ui .logo{width:37px;height:39px;min-width:37px;min-height:39px;border-radius:11px;background:var(--primary);color:var(--on-primary);padding:8px;box-shadow:0 4px 12px #2563eb18}
 .workspace-ui .logo .ui-icon{width:23px;height:23px}
 .workspace-nav-label{font-size:9px;letter-spacing:1.3px;color:var(--sidebar-muted);font-weight:600;padding:0 13px;margin:9px 0 13px}
 .workspace-ui nav{margin:0;display:grid;gap:6px;overflow:visible}
 .workspace-ui nav button{border:0;min-height:46px;padding:11px 13px;border-radius:8px;gap:12px}
 .workspace-ui nav button span{font-size:14px;font-weight:500}
 .workspace-ui nav button .ui-icon{width:19px;height:19px;stroke-width:1.7}
 .workspace-ui .settings-submenu{margin-left:22px;padding-left:8px}
 .workspace-ui nav .settings-submenu button{padding:8px 10px;min-height:40px}
 .workspace-ui nav .settings-submenu button span{font-size:11px}
 .workspace-ui nav .settings-submenu button.active{box-shadow:none}
 .workspace-ui .offline{padding:16px 8px 0;font-size:11px;line-height:1.6}
 .workspace-ui .offline p{font-size:10px;line-height:1.6}
 .workspace-ui .offline #sidebarBackup{font-size:12px;background:var(--surface);color:var(--sidebar-text);border:1px solid var(--sidebar-border);border-radius:8px;min-height:42px;margin-top:14px;font-weight:500;filter:none}
 .workspace-ui .offline #sidebarBackup:hover{background:var(--hover)}
 .workspace-ui .offline #sidebarBackup .ui-icon{width:16px;height:16px}
 .workspace-ui .theme-picker{margin-bottom:18px;padding-bottom:18px}
 .workspace-ui .theme-caption strong{font-size:12px}.workspace-ui .theme-caption span{font-size:10px}
 .workspace-ui .offline #themeToggle{width:38px;height:38px;min-width:38px;min-height:38px;background:var(--surface-soft);border-color:var(--border);color:var(--sidebar-text)}
 .workspace-ui header{display:flex;height:69px;justify-content:space-between;align-items:center;padding:0 30px;background:var(--surface);border-bottom:1px solid var(--border);font-size:12px;letter-spacing:0}
 .workspace-breadcrumb{display:flex;align-items:center;white-space:nowrap;color:var(--muted)}
 .workspace-breadcrumb>span{margin:0 13px;color:#abb5c3}
 .workspace-breadcrumb strong{font-size:12px;color:var(--text);font-weight:500}
 .workspace-header-right{display:flex;align-items:center;gap:18px}
 .workspace-demo-label{font-size:9px;letter-spacing:.7px;color:var(--muted);padding:5px 8px;background:var(--surface-soft);border:1px solid var(--border);border-radius:5px;margin:0}
 .workspace-return{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;text-decoration:none;min-height:44px}
 .workspace-return:hover{color:var(--blue)}.workspace-return .ui-icon{width:14px;height:14px}
 .workspace-account{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--info-bg);color:var(--info-text);font-size:10px;letter-spacing:0;margin:0}
 .workspace-ui .page{max-width:1700px;margin:auto;padding:29px 30px 18px}
 .workspace-ui .heading{margin:0;min-height:76px;display:flex;align-items:flex-start}
 .workspace-ui h1{font-size:29px;font-weight:650;letter-spacing:-.9px;line-height:1.25;margin:0 0 9px}
 .workspace-ui .heading p:last-child{font-size:13px;color:var(--muted)}
 .workspace-ui .workspace-period{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin:-73px 0 27px;min-height:50px}
 .workspace-period label{display:flex;align-items:center;gap:10px;border:1px solid var(--border);padding:0 10px 0 13px;background:var(--surface);border-radius:8px;margin:0}
 .workspace-period label>span{font-size:11px;color:var(--muted)}
 .workspace-period input{border:0;background:transparent;padding:9px 0;font-size:12px;min-height:42px;max-width:148px}
 .workspace-period button{font-size:12px;padding:10px 13px;min-height:44px;border-radius:8px;display:flex;align-items:center;gap:6px;font-weight:500}
 .workspace-period button .ui-icon{width:16px;height:16px;margin:0}
 .workspace-ui .primary{box-shadow:0 2px 3px #2563eb15}
 .workspace-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--surface);border:1px solid var(--border);border-radius:11px;margin:0 0 25px;padding:21px 0}
 .workspace-metric{display:flex;gap:14px;align-items:flex-start;padding:0 24px;border-right:1px solid var(--border)}.workspace-metric:last-child{border:0}
 .metric-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--surface-soft);color:var(--muted);margin-top:2px;flex-shrink:0}
 .metric-icon .ui-icon{width:18px;height:18px}
 .workspace-metric>div:last-child{display:grid;gap:0}
 .workspace-metric span{font-size:12px;color:var(--muted)}.workspace-metric strong{font-size:27px;line-height:1.5;font-weight:650;letter-spacing:-.5px;color:var(--text);font-variant-numeric:tabular-nums}.workspace-metric small{font-size:10px;color:var(--muted)}
 .workspace-sheet{background:var(--surface);border:1px solid var(--border);border-radius:11px;overflow:hidden;box-shadow:0 2px 4px #14213803}
 .workspace-sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:21px 22px 16px}
 .workspace-sheet-heading h2{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:650;line-height:1.5;margin:0}
 .workspace-count{display:inline-block;padding:3px 7px;border-radius:5px;border:1px solid var(--border);font-size:10px;color:var(--muted);font-weight:400}
 .workspace-sheet-heading p{font-size:11px;color:var(--muted);margin:6px 0 0}
 .workspace-search{position:relative;min-width:200px}.workspace-search>.ui-icon{position:absolute;left:12px;top:14px;width:15px;height:15px;color:var(--muted)}
 .workspace-search input{width:220px;border-radius:7px;font-size:12px;padding:9px 12px 9px 35px;min-height:42px;background:var(--surface);border-color:var(--border)}
 .workspace-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 22px 18px;flex-wrap:wrap}
 .workspace-ui .workspace-controls .palette{display:flex;gap:5px;margin:0;align-items:center;flex-wrap:wrap}
 .workspace-ui .workspace-controls .symbol{padding:7px 8px;gap:7px;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:7px;font-size:11px;min-height:40px;outline:0;box-shadow:none;font-weight:400}
 .workspace-ui .workspace-controls .symbol:hover{background:var(--hover)}
 .workspace-ui .workspace-controls .symbol.selected{background:var(--info-bg);color:var(--blue);border-color:var(--blue);outline:0}
 .workspace-code{display:grid;place-items:center;min-width:21px;height:23px;line-height:1;font-size:11px;border-radius:4px;font-weight:650;background:var(--surface-soft)}
 .workspace-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
 .workspace-filters button,.workspace-filters select{font-size:11px;padding:8px 10px;min-height:40px;border-radius:7px;background:var(--surface);color:var(--muted);border:1px solid var(--border)}
 .workspace-filters button{display:flex;align-items:center;gap:5px}.workspace-filters .ui-icon{width:14px;height:14px;margin:0}
 .workspace-ui .workspace-filters .workspace-clear{border-color:transparent;background:transparent;color:var(--muted)}.workspace-clear:hover{color:var(--danger)!important}
 .workspace-ui .month-scroll{max-height:62vh;min-height:0;scrollbar-width:thin;scrollbar-color:var(--border) var(--surface)}
 .workspace-ui .month-grid{min-width:1254px;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
 .workspace-ui .month-grid th{font-size:11px;font-weight:500;line-height:1.5;width:28px;height:49px;padding:8px 0;background:var(--surface-soft);border-top:1px solid var(--border);border-right:1px solid var(--grid-border);border-bottom:1px solid var(--border);color:var(--muted)}
 .workspace-ui .month-grid td{height:60px;font-size:11px;border-bottom:1px solid var(--grid-border);border-right:1px solid var(--grid-border)}
 .workspace-ui .month-grid .employee-col{width:200px;min-width:200px;padding:10px 15px;background:var(--surface);border-right:1px solid var(--border)}
 .workspace-ui .month-grid th.employee-col{background:var(--surface-soft);font-size:11px;color:var(--text)}
 .workspace-ui .employee-col small{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.4}.workspace-ui .employee-col strong{font-size:13px;font-weight:600;line-height:1.4}
 .workspace-person{display:flex;gap:10px;align-items:center;min-width:0}.workspace-person>span:last-child{min-width:0}.workspace-avatar{width:30px;height:32px;flex-shrink:0;border-radius:8px;display:grid;place-items:center;font-size:10px;font-weight:600;background:#eef2f9;color:#677d9d}.workspace-avatar.avatar-1{background:#f3effa;color:#8c78a5}.workspace-avatar.avatar-2{background:#edf4f0;color:#6f8a79}.workspace-avatar.avatar-3{background:#faf1e9;color:#a28a6f}
 .workspace-ui .month-grid .day-cell,.workspace-ui .month-grid .day-cell.marked{background:var(--surface);color:var(--text)}
 .workspace-ui .month-grid .sunday,.workspace-ui .month-grid .sunday.marked{background:#faf7f8;color:#a46b78}
 .workspace-ui .month-grid .summary-col,.workspace-ui .month-grid .total-col{width:76px;min-width:76px;background:var(--surface-soft);border-left:0;font-size:11px;font-variant-numeric:tabular-nums}
 .workspace-ui .month-grid td.total-col{color:var(--blue);font-weight:650;background:var(--info-bg)}
 .workspace-ui .day-cell button{height:59px;font-size:11px;display:grid;place-items:center}
 .workspace-cell-code{display:grid;place-items:center;min-width:23px;height:26px;border-radius:4px;font-size:12px;font-weight:600;color:#5c7a6c}
 .workspace-cell-code.symbol-tone-2,.workspace-code.symbol-tone-2{background:#e9f0ff;color:#4b73b3}.workspace-cell-code.symbol-tone-1,.workspace-code.symbol-tone-1{background:#fff4dd;color:#977231}.workspace-cell-code.symbol-tone-3,.workspace-code.symbol-tone-3{background:#f1eafa;color:#8966ac}
 .workspace-ui .month-grid th.workspace-today{background:var(--info-bg);color:var(--blue);border-top:2px solid var(--primary);padding-top:7px;font-weight:650}.workspace-ui .month-grid td.workspace-today{background:var(--info-bg)}
 .workspace-ui .day-cell button:hover{outline:1px solid var(--blue);outline-offset:-2px;background:var(--hover)}
 .workspace-ui .pagination{padding:13px 20px;font-size:11px;border-top:0;color:var(--muted)}.workspace-ui .pagination select{font-size:11px;min-height:34px;padding:5px 9px}.workspace-ui .pagination button{width:32px;min-width:32px;min-height:34px;height:34px;padding:0}.workspace-ui .pagination .tools{gap:8px}
 .workspace-table-note{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:10px;color:var(--muted);padding:15px 3px}.workspace-table-note i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#dfc6ce;margin-right:5px}
 .workspace-ui footer{display:flex;justify-content:space-between;font-size:10px;padding:27px 0 0;color:var(--muted)}
 html[data-theme=dark] .workspace-ui .workspace-avatar{background:#303c50;color:#b1c8ed}html[data-theme=dark] .workspace-ui .workspace-avatar.avatar-1{background:#3b3249;color:#c7b2e2}html[data-theme=dark] .workspace-ui .workspace-avatar.avatar-2{background:#2b4036;color:#b4d3c0}html[data-theme=dark] .workspace-ui .workspace-avatar.avatar-3{background:#45392f;color:#dac4ae}
 html[data-theme=dark] .workspace-ui .month-grid .sunday{background:#2a2530;color:#c39ca8}
 html[data-theme=dark] .workspace-ui .workspace-cell-code{color:#a3c7b6}
 html[data-theme=dark] .workspace-ui .symbol-tone-2{background:#293b5b;color:#b0c8f4}html[data-theme=dark] .workspace-ui .symbol-tone-1{background:#413924;color:#dec58d}html[data-theme=dark] .workspace-ui .symbol-tone-3{background:#3b2f4c;color:#cbb1e4}
 @media(max-width:1450px){.workspace-ui .workspace-period{margin:4px 0 22px;justify-content:flex-start}.workspace-ui .heading{min-height:65px}.workspace-metric{padding:0 18px}.workspace-controls{align-items:flex-start}.workspace-filters{width:100%;justify-content:flex-start}.workspace-period{flex-wrap:wrap}}
 @media(max-width:1000px){.workspace-ui aside{width:200px;padding:24px 12px}.workspace-ui main{margin-left:200px}.workspace-ui .page{padding:25px 22px}.workspace-ui header{padding:0 22px}.workspace-header-right .workspace-demo-label{display:none}.workspace-metrics{grid-template-columns:1fr 1fr;gap:20px 0}.workspace-metric:nth-child(2){border:0}.workspace-sheet-heading{align-items:flex-start;flex-direction:column;gap:14px}.workspace-search,.workspace-search input{width:100%}.workspace-metric strong{font-size:24px}}
 @media(max-width:650px){.workspace-ui aside{width:160px;padding:22px 8px}.workspace-ui main{margin-left:160px}.workspace-ui .brand{font-size:17px;gap:7px;padding-inline:4px}.workspace-ui .brand small{font-size:9px}.workspace-ui .logo{min-width:30px;width:30px;height:33px;min-height:33px;padding:5px}.workspace-ui nav button{padding:10px 8px;gap:8px}.workspace-ui nav button span{font-size:11px}.workspace-nav-label{font-size:8px;padding-left:8px;letter-spacing:.5px}.workspace-ui .page{padding:24px 14px}.workspace-ui header{height:60px;padding:0 14px}.workspace-breadcrumb{display:none}.workspace-header-right{width:100%;justify-content:space-between}.workspace-ui h1{font-size:24px}.workspace-ui .heading p:last-child{font-size:11px}.workspace-metric{gap:8px;padding:0 12px}.metric-icon{display:none}.workspace-metrics{padding:15px 0}.workspace-metric span{font-size:11px}.workspace-metric small{font-size:9px}.workspace-metric strong{font-size:23px}.workspace-sheet-heading,.workspace-controls{padding-inline:14px}.workspace-sheet-heading h2{flex-wrap:wrap;gap:7px;font-size:14px}.workspace-filters{gap:6px}.workspace-filters button,.workspace-filters select{font-size:10px}.workspace-controls .palette{gap:3px}.workspace-period label{flex-wrap:wrap;gap:3px}.workspace-period label>span{display:none}.workspace-table-note{font-size:9px;gap:5px}.workspace-ui footer{gap:8px;flex-wrap:wrap}.workspace-ui .offline{padding-inline:4px}.workspace-ui .theme-caption span{font-size:9px}}
}

@media screen{
 .workspace-ui .workspace-header-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}
 .workspace-ui .workspace-header-status .dot{margin:0;width:6px;height:6px}
 .workspace-ui .workspace-setup{margin:0;border:0;border-radius:0;border-bottom:1px solid var(--border);padding:14px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;background:var(--info-bg);color:var(--info-text)}
 .workspace-ui .workspace-setup button{font-size:12px;white-space:nowrap;min-height:44px}
 .workspace-ui .month-grid .holiday-day,.workspace-ui .month-grid .holiday-day.marked{background:var(--red-bg);color:var(--red-text)}
 .workspace-ui .month-grid .makeup-day,.workspace-ui .month-grid .makeup-day.marked{background:var(--green-bg);color:var(--green-text)}
 .workspace-ui .month-grid .proposed-day,.workspace-ui .month-grid .proposed-day.marked{background:var(--yellow-bg);color:var(--yellow-text)}
 .workspace-ui .month-grid th.summary-col{overflow-wrap:anywhere;white-space:normal;padding:7px 5px}
 .workspace-ui .month-grid td.summary-col,.workspace-ui .month-grid td.total-col{overflow-wrap:anywhere;white-space:normal;padding:0 3px}
 .workspace-ui .symbol-tone-unknown{color:var(--muted)}
 .workspace-ui .stat{background:var(--surface);box-shadow:none;border-color:var(--border)}
 .workspace-ui .toolbar{padding:20px 22px}.workspace-ui .toolbar h2{font-size:16px}
 .workspace-ui .panel{border-radius:11px}.workspace-ui .panel-body{padding:22px}
 .workspace-ui .settings-workspace{margin-top:14px}.workspace-ui .holiday-notice{margin-top:0}
 @media(max-width:650px){.workspace-ui .workspace-setup{align-items:flex-start;flex-direction:column;padding:14px}.workspace-ui .workspace-header-status{font-size:10px}}
}
@media print{
 .workspace-metrics,.workspace-sheet-heading,.workspace-controls,.workspace-table-note,.workspace-nav-label,.workspace-setup,.workspace-avatar,header,footer{display:none!important}
 .workspace-sheet{border:0;box-shadow:none}.workspace-person{display:block}.workspace-cell-code{background:transparent!important;color:#111!important}
}
@media screen{
 .workspace-ui .month-grid td.holiday-day,.workspace-ui .month-grid th.holiday-day{background:var(--red-bg);color:var(--red-text)}
 .workspace-ui .month-grid td.makeup-day,.workspace-ui .month-grid th.makeup-day{background:var(--green-bg);color:var(--green-text)}
 .workspace-ui .month-grid td.proposed-day,.workspace-ui .month-grid th.proposed-day{background:var(--yellow-bg);color:var(--yellow-text)}
 .workspace-ui .workspace-code{max-width:90px;overflow:hidden;text-overflow:ellipsis}
 .workspace-ui .workspace-cell-code{max-width:100%;min-width:0;padding:0 2px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media print{.workspace-ui .month-grid{min-width:0!important}}
@media screen{
 .workspace-ui .workspace-controls .palette{min-width:0;max-width:100%}
 .workspace-ui .workspace-controls .symbol{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;min-height:44px}
 .workspace-ui .workspace-filters select{max-width:220px;min-height:44px}
 .workspace-ui .workspace-filters button,.workspace-ui .workspace-search input{min-height:44px}
 .workspace-ui .workspace-person strong{display:block;overflow:hidden;text-overflow:ellipsis}
 .workspace-ui .offline #themeToggle{width:44px;height:44px;min-width:44px;min-height:44px}
 .workspace-ui .pagination button,.workspace-ui .pagination select{min-height:44px}
 .workspace-ui nav .settings-submenu button{min-height:44px}
 @media(max-width:650px){.workspace-ui .workspace-filters select{max-width:100%}}
}
@media screen{
 .workspace-ui .stamp-unavailable{cursor:not-allowed}
 .workspace-ui .day-cell .stamp-unavailable{opacity:.45}
 .workspace-ui .mobile-staff.stamp-unavailable{opacity:.65;border-style:dashed}
}
@media screen{
 .workspace-sheet-tools{display:flex;align-items:center;gap:10px;min-width:0}
 .workspace-sheet-tools .workspace-filters{width:auto;flex-wrap:nowrap;gap:6px}
 .workspace-sheet-tools .workspace-search{flex:1;min-width:180px}
 .workspace-sheet-tools .workspace-search input{width:100%}
 .workspace-sheet-tools .workspace-filters .workspace-eraser{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--border);background:var(--surface);color:var(--muted)}
 .workspace-sheet-tools .workspace-eraser .ui-icon{width:19px;height:19px;margin:0}
 .workspace-sheet-tools .workspace-eraser.selected{background:var(--info-bg);border-color:var(--blue);color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)}
 .workspace-sheet-tools #fillMonth{white-space:nowrap}
 @media(max-width:1000px){.workspace-sheet-tools{width:100%;justify-content:space-between}.workspace-sheet-tools .workspace-filters{width:auto}.workspace-sheet-tools .workspace-search{min-width:180px}}
 @media(min-width:761px) and (max-width:1000px){.workspace-sheet-heading{align-items:center;flex-direction:row}.workspace-sheet-tools{width:auto;flex:1;flex-wrap:wrap;justify-content:flex-end}.workspace-sheet-tools .workspace-search{flex:1 0 100%;max-width:260px;order:1}}
 @media(max-width:650px){.workspace-sheet-tools{flex-wrap:wrap;gap:8px}.workspace-sheet-tools .workspace-filters{width:100%;justify-content:flex-start}.workspace-sheet-tools .workspace-search{flex:1 0 100%;min-width:0;order:-1}.workspace-sheet-tools .workspace-search input{width:100%}}
}
.duty-roster{margin:0 0 18px;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:11px;box-shadow:0 2px 4px #14213803}.duty-roster-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.duty-kicker{color:var(--blue);font-size:10px;font-weight:750;letter-spacing:1.3px}.duty-roster-head h2{margin:3px 0;font-size:19px;letter-spacing:-.3px;color:var(--text)}.duty-roster-head p{margin:0;color:var(--muted);font-size:12px}.duty-roster-tools{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}.duty-role-filter{display:grid;gap:3px;margin:0;font-size:10px;color:var(--muted)}.duty-role-filter select{min-height:40px;padding:7px 10px;font-size:12px}.duty-week-nav{display:flex;gap:4px}.duty-week-nav button{width:40px;min-width:40px;min-height:40px;padding:4px;font-size:22px;color:var(--text)}.duty-copy{min-height:40px;padding:7px 11px;font-size:12px;color:var(--blue);border-color:var(--border)}.duty-shift-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:13px 0 10px;color:var(--muted);font-size:11px}.duty-shift-legend span{display:flex;align-items:center;gap:6px}.duty-shift-legend i{display:inline-block;width:9px;height:9px;border-radius:3px}.duty-shift-legend .shift-day{background:var(--green-text)}.duty-shift-legend .shift-evening{background:var(--yellow-text)}.duty-shift-legend .shift-night{background:var(--info-text)}.duty-shift-legend .shift-off{background:var(--muted)}.duty-shift-legend small{margin-left:auto;color:var(--muted)}.duty-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:8px}.duty-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;text-align:center;white-space:normal}.duty-table th,.duty-table td{padding:7px 6px;border-right:1px solid var(--grid-border);border-bottom:1px solid var(--grid-border);font-size:11px}.duty-table thead th{height:48px;background:var(--surface-soft);color:var(--text);font-size:11px;font-weight:650;text-align:center;text-transform:none;letter-spacing:0}.duty-table thead th small{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:400}.duty-table th.is-today{background:var(--info-bg);color:var(--blue)}.duty-table .duty-employee-col{position:sticky;left:0;z-index:1;min-width:180px;width:180px;background:var(--surface);text-align:left}.duty-table thead .duty-employee-col{z-index:2;background:var(--surface-soft)}.duty-table tbody .duty-employee-col{display:flex;align-items:center;gap:7px}.duty-table tbody .duty-employee-col strong{max-width:120px;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600;white-space:nowrap}.duty-table tr:last-child>*{border-bottom:0}.duty-table tr>*:last-child{border-right:0}.duty-shift{width:100%;min-width:94px;min-height:40px;padding:6px 7px;border:1px solid var(--border);border-radius:7px;background:var(--surface);font-size:11px;text-align:center;color:var(--text)}.duty-shift.shift-day{background:var(--green-bg);border-color:var(--green-border);color:var(--green-text)}.duty-shift.shift-evening{background:var(--yellow-bg);border-color:var(--yellow-border);color:var(--yellow-text)}.duty-shift.shift-night{background:var(--info-bg);border-color:var(--border);color:var(--info-text)}.duty-shift.shift-off{background:var(--surface-soft);color:var(--muted)}.duty-empty{padding:24px!important;color:var(--muted);text-align:center!important}
.staff-role-tag{display:inline-block;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:650;line-height:1.5;white-space:nowrap}.staff-role-tag.doctor{background:var(--info-bg);color:var(--info-text)}.staff-role-tag.nurse{background:var(--green-bg);color:var(--green-text)}
.employee-form-grid>label:nth-child(3){grid-column:1/-1}
@media(max-width:760px){.duty-roster{padding:14px;margin-bottom:14px}.duty-roster-head{align-items:flex-start;flex-direction:column}.duty-roster-tools{width:100%;justify-content:flex-start}.duty-role-filter{flex:1;min-width:140px}.duty-role-filter select{width:100%}.duty-shift-legend{gap:10px}.duty-shift-legend small{width:100%;margin:0}.duty-table .duty-employee-col{min-width:145px;width:145px}.duty-table tbody .duty-employee-col{align-items:flex-start;flex-direction:column;gap:4px}.duty-table tbody .duty-employee-col strong{max-width:130px}.duty-shift{min-width:100px}}
.duty-role-filter input{min-height:40px;padding:7px 9px;font-size:12px}.duty-roster-setup{display:flex;align-items:end;gap:12px;margin-top:16px;padding:12px 14px;border:1px solid var(--border);border-radius:9px;background:var(--surface-soft)}.duty-roster-setup label{display:grid;gap:5px;min-width:170px;color:var(--muted);font-size:11px}.duty-roster-setup select{min-height:38px;padding:6px 10px;font-size:12px}.duty-roster-setup p{margin:0 0 8px;color:var(--muted);font-size:12px}.duty-tag-heading{display:flex;align-items:baseline;gap:10px;margin:16px 0 8px}.duty-tag-heading strong{font-size:13px;color:var(--text)}.duty-tag-heading small{color:var(--muted);font-size:11px}.duty-employee-tags{display:flex;gap:8px;flex-wrap:wrap;min-height:34px}.duty-employee-tag,.duty-assigned-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer;font-size:12px;font-weight:650;line-height:1.25;transition:background .15s,border-color .15s,box-shadow .15s}.duty-employee-tag{padding:7px 11px}.duty-employee-tag small{padding-left:6px;border-left:1px solid currentColor;color:var(--muted);font-size:10px;font-weight:500}.duty-employee-tag.doctor{border-color:var(--border);background:var(--info-bg);color:var(--info-text)}.duty-employee-tag.nurse{border-color:var(--green-border);background:var(--green-bg);color:var(--green-text)}.duty-employee-tag.selected{box-shadow:0 0 0 2px var(--blue);border-color:var(--blue);background:var(--blue);color:#fff}.duty-employee-tag.selected small{color:#fff;border-color:#ffffff80}.duty-duplicate-hint{margin:7px 0 0;color:var(--muted);font-size:11px}.duty-shift-legend .shift-duty{background:var(--blue)}.duty-day-cell{min-width:135px;vertical-align:top}.duty-assigned-tags{display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:5px;min-height:34px}.duty-assigned-tag{padding:5px 8px;border-color:var(--blue);background:var(--info-bg);color:var(--info-text)}.duty-assigned-tag span{font-size:16px;line-height:12px}.duty-assigned-tag.doctor{background:var(--info-bg);color:var(--info-text)}.duty-assigned-tag.nurse{background:var(--green-bg);border-color:var(--green-border);color:var(--green-text)}.duty-cell-empty{color:var(--muted);font-size:10px}.duty-assign-day{width:100%;min-height:30px;margin-top:5px;padding:5px 7px;border:1px dashed var(--border);border-radius:6px;background:transparent;color:var(--blue);font-size:10px;line-height:1.3}.duty-assign-day:not(:disabled):hover{background:var(--info-bg);border-color:var(--blue)}.duty-assign-day:disabled{color:var(--muted);cursor:default}.duty-table{min-width:1120px}.duty-table .duty-employee-col{min-width:120px;width:120px}.duty-table tbody .duty-employee-col{justify-content:center}.duty-table tbody .duty-employee-col strong{max-width:110px}
@media(max-width:760px){.duty-roster-setup{align-items:flex-start;flex-direction:column}.duty-roster-setup label{width:100%}.duty-tag-heading{align-items:flex-start;flex-direction:column;gap:3px}.duty-employee-tags{gap:6px}.duty-employee-tag{padding:7px 9px}.duty-day-cell{min-width:145px}}
.duty-auto-symbol{margin:14px 0 0;padding:9px 12px;border-radius:8px;background:var(--info-bg);color:var(--info-text);font-size:12px}.duty-auto-symbol strong{font-size:13px}.duty-auto-symbol.missing{background:var(--yellow-bg);color:var(--yellow-text)}.duty-employee-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}.duty-employee-card{display:flex;align-items:flex-start;flex-direction:column;gap:6px;min-height:115px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-align:left;cursor:grab;box-shadow:0 2px 7px #1421380a;transition:border-color .15s,transform .15s,box-shadow .15s}.duty-employee-card:hover{border-color:var(--blue);box-shadow:0 5px 15px #14213812;transform:translateY(-1px)}.duty-employee-card:active,.duty-employee-card.dragging{cursor:grabbing;opacity:.55}.duty-employee-card>strong{max-width:100%;overflow:hidden;color:var(--text);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.duty-employee-role{display:inline-flex;padding:3px 8px;border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:10px;font-weight:650}.duty-employee-role.doctor{background:var(--info-bg);color:var(--info-text)}.duty-employee-role.nurse{background:var(--green-bg);color:var(--green-text)}.duty-employee-schedule{display:flex;gap:4px;flex-wrap:wrap;margin-top:2px}.duty-employee-schedule small{padding:3px 6px;border-radius:5px;background:var(--green-bg);color:var(--green-text);font-size:9px;font-weight:650}.duty-employee-schedule small.empty{padding:0;background:transparent;color:var(--muted);font-weight:400}.duty-day-cards{display:grid;grid-template-columns:repeat(7,minmax(132px,1fr));gap:9px;overflow-x:auto;padding:2px 2px 8px}.duty-day-card{display:flex;min-height:155px;flex-direction:column;gap:10px;padding:11px;border:1px solid var(--border);border-radius:11px;background:var(--surface);box-shadow:0 2px 7px #14213808;transition:border-color .15s,background .15s,box-shadow .15s}.duty-day-card.is-today{border-color:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 15%,transparent)}.duty-day-card.drag-over{border:2px dashed var(--blue);background:var(--info-bg);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 16%,transparent)}.duty-day-card>header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 6px;height:auto;padding:0;border:0;background:transparent;color:var(--muted);font-size:11px;letter-spacing:0}.duty-day-card>header strong{color:var(--text);font-size:13px;letter-spacing:0}.duty-day-card>header small{grid-column:1/-1;color:var(--blue);font-size:9px;letter-spacing:0}.duty-assigned-tags{display:flex;align-items:flex-start;align-content:flex-start;flex:1;flex-wrap:wrap;gap:6px;min-height:35px}.duty-assigned-tag{display:inline-flex;align-items:center;gap:5px;padding:4px 5px 4px 8px;border:1px solid var(--border);border-radius:999px;background:var(--info-bg);color:var(--info-text);font-size:11px;font-weight:650}.duty-assigned-tag.doctor{background:var(--info-bg);color:var(--info-text)}.duty-assigned-tag.nurse{border-color:var(--green-border);background:var(--green-bg);color:var(--green-text)}.duty-assigned-tag button{display:grid;place-items:center;width:19px;min-width:19px;height:19px;min-height:19px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:16px;line-height:1}.duty-assigned-tag button:hover{background:#00000012}.duty-cell-empty{display:block;padding:7px 0;color:var(--muted);font-size:10px}.duty-drop-hint{padding-top:7px;border-top:1px solid var(--border);color:var(--muted);font-size:10px}.duty-tag-heading:not(:first-child){margin-top:20px}
@media(max-width:760px){.duty-employee-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.duty-employee-card{min-height:108px;padding:10px}.duty-day-cards{grid-template-columns:repeat(7,minmax(142px,1fr));margin-right:-6px;padding-right:6px;scroll-snap-type:x mandatory}.duty-day-card{scroll-snap-align:start}}
@media(max-width:760px){.duty-roster{padding:10px}.duty-employee-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.duty-employee-card{min-height:72px;padding:6px}.duty-day-cards{grid-template-columns:repeat(7,minmax(106px,1fr));gap:5px}}
.duty-employee-card{position:relative;overflow:hidden;border-color:color-mix(in srgb,var(--blue) 18%,var(--border));background:linear-gradient(145deg,var(--surface),var(--info-bg) 170%)}.duty-employee-card:before{position:absolute;inset:0 auto 0 0;width:3px;background:var(--blue);content:""}.duty-employee-card.nurse:before{background:var(--green-text)}.duty-employee-card>strong{padding-left:2px}.duty-day-card{position:relative;overflow:hidden;border-color:var(--border);background:linear-gradient(180deg,var(--surface-soft),var(--surface) 36%)}.duty-day-card>header{padding-bottom:5px;border-bottom:1px solid var(--border)}.duty-day-card>header>span{color:var(--blue);font-weight:750}.duty-day-card.is-today{background:linear-gradient(180deg,var(--info-bg),var(--surface) 48%)}.duty-assigned-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 8px;border-radius:6px;background:var(--info-bg);color:var(--info-text);font-size:10px;font-weight:650}.duty-assigned-tag.doctor{border-left:3px solid var(--blue)}.duty-assigned-tag.nurse{border:0;border-left:3px solid var(--green-text);border-radius:6px;background:var(--green-bg);color:var(--green-text)}.duty-assigned-tag button{border-radius:4px;background:var(--surface);color:inherit}.duty-assigned-tag button:hover{background:var(--surface-soft)}
.duty-employee-cards{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:5px}.duty-employee-card{min-height:34px;justify-content:center;gap:0;padding:6px 9px 6px 11px;border-radius:7px;background:var(--info-bg);box-shadow:none}.duty-employee-card:before{width:3px}.duty-employee-card.nurse{border-color:var(--green-border);background:var(--green-bg)}.duty-employee-card>strong{padding:0;color:var(--info-text);font-size:11px;font-weight:650}.duty-employee-card.nurse>strong{color:var(--green-text)}.duty-employee-card:not(.doctor):not(.nurse){background:var(--surface-soft)}.duty-employee-card:not(.doctor):not(.nurse)>strong{color:var(--text)}.duty-employee-card:hover{transform:none;box-shadow:0 2px 7px #14213812}
#title,.workspace-sheet-heading h2,#dutyRosterTitle{text-transform:uppercase}
.duty-date-arrow{display:grid;place-items:center;width:32px;min-width:32px;min-height:34px;padding:0;border:1px solid var(--border);background:var(--surface);color:var(--blue);font-size:19px}.duty-date-arrow:hover{border-color:var(--blue);background:var(--info-bg)}.duty-roster-tools .duty-role-filter{min-width:125px}.duty-roster-tools .duty-copy{white-space:nowrap}
.duty-roster{padding:10px;border-radius:9px;box-shadow:none}.duty-roster-head{align-items:center}.duty-roster-head h2{font-size:15px}.duty-roster-head p{font-size:10px}.duty-tag-heading{margin:8px 0 5px}.duty-tag-heading small{display:none}.duty-employee-cards{display:flex;flex-wrap:wrap;gap:4px}.duty-employee-card{width:auto;min-width:0;min-height:28px;flex:0 0 auto;justify-content:center;padding:4px 8px 4px 10px;border-radius:5px;background:var(--info-bg);box-shadow:none}.duty-employee-card:before{width:2px}.duty-employee-card>strong{font-size:10px;font-weight:600}.duty-employee-card:hover{transform:none;box-shadow:none}.duty-day-cards{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;overflow:visible;padding:0}.duty-day-card{min-width:0;min-height:0;gap:5px;padding:5px;border-radius:6px;background:var(--surface);box-shadow:none}.duty-day-card>header{padding:0 0 4px;gap:1px 4px}.duty-day-card>header>span{font-size:9px}.duty-day-card>header strong{font-size:10px}.duty-day-card>header small{font-size:8px}.duty-assigned-tags{display:flex;flex-direction:column;flex-wrap:nowrap;gap:3px;min-height:18px}.duty-assigned-tag{width:100%;min-height:22px;justify-content:space-between;gap:3px;padding:2px 3px 2px 5px;border-radius:4px;font-size:9px;line-height:1.2}.duty-assigned-tag>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duty-assigned-tag button{width:15px;min-width:15px;height:15px;min-height:15px;font-size:12px}.duty-cell-empty{padding:3px 0;font-size:8px}.duty-drop-hint{display:none}.duty-day-card.drag-over{border:1px dashed var(--blue);box-shadow:none}.duty-day-card.is-today{box-shadow:inset 0 0 0 1px var(--blue)}
@media(max-width:760px){.duty-roster{padding:8px}.duty-day-cards{grid-template-columns:repeat(7,minmax(100px,1fr));overflow-x:auto;padding-bottom:4px}.duty-day-card{scroll-snap-align:start}.duty-employee-card{min-height:27px;padding:4px 7px 4px 9px}}
.duty-day-card{cursor:pointer}.duty-day-card:hover{border-color:var(--blue)}.duty-picker-dialog{width:min(460px,calc(100vw - 24px));max-width:none;max-height:min(80vh,680px);padding:0;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 18px 54px #0b172a33}.duty-picker-dialog::backdrop{background:#10182875;backdrop-filter:blur(2px)}.duty-picker-form{display:flex;max-height:min(80vh,680px);flex-direction:column;padding:18px}.duty-picker-form>header{display:flex;align-items:center;justify-content:space-between;gap:12px;height:auto;margin:0 0 12px;padding:0;border:0;background:transparent;color:var(--text);letter-spacing:0}.duty-picker-form>header small{color:var(--blue);font-size:9px;font-weight:750;letter-spacing:1px}.duty-picker-form>header h2{margin:2px 0 0;font-size:17px}.duty-picker-close{width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border:0;background:var(--surface-soft);font-size:20px}.duty-picker-search{width:100%;min-height:38px;margin-bottom:10px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font-size:12px}.duty-picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:48vh;overflow:auto;padding:1px}.duty-picker-person{display:flex;align-items:center;gap:8px;min-height:36px;padding:6px 8px;border:1px solid var(--border);border-left:3px solid var(--blue);border-radius:6px;background:var(--info-bg);color:var(--info-text);cursor:pointer;font-size:12px}.duty-picker-person.nurse{border-left-color:var(--green-text);background:var(--green-bg);color:var(--green-text)}.duty-picker-person[hidden]{display:none}.duty-picker-person input{width:15px;height:15px;margin:0;accent-color:var(--blue)}.duty-picker-error{min-height:16px;margin:5px 0;color:var(--red-text,var(--yellow-text));font-size:11px}.duty-picker-form>footer{display:flex;justify-content:flex-end;gap:8px;padding-top:9px;border-top:1px solid var(--border)}.duty-picker-form>footer button{min-height:36px;padding:6px 12px;font-size:12px}
@media(max-width:480px){.duty-picker-form{padding:13px}.duty-picker-list{grid-template-columns:1fr}}
.duty-roster{border-color:var(--border);background:var(--surface);box-shadow:none}.duty-employee-card{border-color:var(--border);background:var(--surface);color:var(--text);box-shadow:none}.duty-employee-card.doctor,.duty-employee-card:not(.doctor):not(.nurse){background:var(--surface)}.duty-employee-card.nurse{border-color:var(--border);background:var(--surface)}.duty-employee-card:before{background:#7893bd}.duty-employee-card.nurse:before{background:#7aa88b}.duty-employee-card>strong,.duty-employee-card.nurse>strong,.duty-employee-card:not(.doctor):not(.nurse)>strong{color:var(--text)}.duty-day-card{background:var(--surface);box-shadow:none}.duty-day-card.is-today{background:var(--surface);box-shadow:inset 0 0 0 1px var(--blue)}.duty-day-card>header>span{color:var(--muted)}.duty-assigned-tag,.duty-assigned-tag.doctor,.duty-assigned-tag.nurse{border:1px solid var(--border);border-left:3px solid #7893bd;border-radius:4px;background:var(--surface-soft);color:var(--text)}.duty-assigned-tag.nurse{border-left-color:#7aa88b}.duty-assigned-tag button{background:transparent;color:var(--muted)}.duty-assigned-tag button:hover{background:var(--border);color:var(--text)}.duty-day-card.drag-over{background:var(--info-bg);box-shadow:none}.duty-picker-dialog{border-color:var(--border);border-radius:10px;box-shadow:0 12px 36px #10182826}.duty-picker-dialog::backdrop{background:#10182866;backdrop-filter:none}.duty-picker-form{padding:16px}.duty-picker-form>header{margin-bottom:9px}.duty-picker-form>header h2{font-size:15px}.duty-picker-search{min-height:34px;margin-bottom:7px}.duty-picker-list{grid-template-columns:1fr;gap:3px;max-height:52vh}.duty-picker-person,.duty-picker-person.nurse{min-height:34px;padding:5px 8px;border:0;border-left:2px solid #7893bd;border-radius:4px;background:var(--surface);color:var(--text);font-size:11px}.duty-picker-person.nurse{border-left-color:#7aa88b}.duty-picker-person:hover{background:var(--surface-soft)}.duty-picker-person input{width:14px;height:14px}.duty-picker-error{min-height:12px;margin:3px 0}.duty-picker-form>footer{padding-top:7px}.duty-picker-form>footer button{min-height:32px;padding:5px 10px}
.duty-picker-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px;max-height:48vh}.duty-picker-person,.duty-picker-person.nurse{min-width:0;min-height:30px;padding:4px 6px}.duty-picker-person>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duty-day-cards{align-items:start}.duty-day-card{display:grid;height:108px;min-height:108px;grid-template-rows:auto minmax(0,1fr);gap:5px;overflow:hidden}.duty-day-card>header{min-height:24px}.duty-assigned-tags{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:22px;align-content:start;gap:3px;min-height:0;overflow-y:auto;overflow-x:hidden}.duty-assigned-tag{box-sizing:border-box;width:100%;height:22px;min-height:22px;overflow:hidden}.duty-assigned-tag>span{min-width:0;flex:1}.duty-cell-empty{align-self:start}
@media(max-width:380px){.duty-picker-list{grid-template-columns:1fr}}
.duty-picker-person,.duty-picker-person.nurse{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:8px;min-height:34px;padding:5px 8px;border:1px solid transparent;border-radius:5px;background:var(--surface-soft);color:var(--text)}.duty-picker-person.nurse{border-color:transparent;background:var(--surface-soft)}.duty-picker-person:has(input:checked){border-color:var(--blue);background:var(--info-bg)}.duty-picker-person input{grid-column:1;width:15px;height:15px;margin:0;accent-color:var(--blue)}.duty-picker-person>span{grid-column:2;grid-row:1;min-width:0;font-size:11px}
.duty-picker-person,.duty-picker-person.nurse{border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.duty-picker-person:has(input:checked){border:0;border-bottom:1px solid var(--border);border-radius:0;background:var(--info-bg);box-shadow:inset 3px 0 0 var(--blue)}.duty-picker-person.nurse:has(input:checked){box-shadow:inset 3px 0 0 var(--green-text)}

/* Compact appearance control, separate from the sidebar account/footer area. */
@media screen{
 .workspace-ui #appSidebar>.theme-picker{display:flex;justify-content:flex-start;flex-shrink:0;gap:0;margin:auto 0 0;padding:12px 8px 10px;border:0}
 .workspace-ui #appSidebar #themeToggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:90px;height:34px;min-height:34px;margin:0;padding:6px 11px;border:1px solid var(--sidebar-border);border-radius:8px;background:var(--surface-soft);color:var(--sidebar-text);font-size:12px;font-weight:550;line-height:1;filter:none}
 .workspace-ui #appSidebar #themeToggle .ui-icon{width:17px;height:17px;margin:0;stroke-width:1.8}
 .workspace-ui #appSidebar #themeToggle:hover{background:var(--nav-hover);border-color:color-mix(in srgb,var(--sidebar-text) 22%,var(--sidebar-border));color:var(--sidebar-text)}
 .workspace-ui #appSidebar #themeToggle:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
 .workspace-ui #appSidebar>.offline{margin-top:0}
}
@media screen and (max-width:900px){
 .workspace-ui #appSidebar #themeToggle{height:40px;min-height:40px;padding-inline:12px}
}

/* Account preview: authentication and logout will be connected separately. */
@media screen{
 .workspace-ui #appSidebar>.sidebar-account{display:grid;grid-template-columns:34px minmax(0,1fr) 30px;align-items:center;gap:8px;flex-shrink:0;margin-top:2px;padding:13px 4px 0;border-top:1px solid var(--sidebar-border);text-align:left}
 .sidebar-account-avatar{display:grid;place-items:center;width:34px;height:34px;border:1px solid color-mix(in srgb,var(--blue) 14%,var(--sidebar-border));border-radius:10px;background:var(--info-bg);color:var(--blue)}
 .sidebar-account-avatar .ui-icon{width:19px;height:19px;margin:0}
 .sidebar-account-info{display:grid;gap:3px;min-width:0}
 .sidebar-account-info strong{overflow:hidden;color:var(--sidebar-text);font-size:12px;font-weight:600;line-height:1.4;white-space:nowrap;text-overflow:ellipsis}
 .sidebar-account-info>span{display:flex;align-items:center;gap:5px;color:var(--sidebar-muted);font-size:10px;line-height:1.4;white-space:nowrap}
 .sidebar-account-info i{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#22a078}
 .workspace-ui #appSidebar .sidebar-account-logout{display:grid;place-items:center;width:30px;min-width:30px;height:34px;min-height:34px;margin:0;padding:6px;border:0;border-radius:7px;background:transparent;color:var(--sidebar-muted)}
 .sidebar-account-logout .ui-icon{width:18px;height:18px;margin:0}
 .workspace-ui #appSidebar .sidebar-account-logout:disabled{opacity:.65;cursor:default}
}
@media screen and (max-width:900px){
 .workspace-ui #appSidebar>.sidebar-account{grid-template-columns:36px minmax(0,1fr) 40px;padding-top:12px;padding-bottom:4px}
 .workspace-ui #appSidebar .sidebar-account-logout{width:40px;min-width:40px;height:40px;min-height:40px}
}

.workspace-header-right:empty{display:none}

.sidebar-account-avatar{position:relative;overflow:hidden}
.sidebar-account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
