:root{color-scheme:light;--ink:#182943;--muted:#56677a;--bg:#f2f5f7;--line:#dce5eb;--nav:#11253b;--accent:#006862;--faint:#dff2ed;--red:#a32932;--amber:#825400;font:15px/1.5 'Segoe UI',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #46a89a;outline-offset:2px}button:disabled{opacity:.55;cursor:wait}
h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,4vw,42px);line-height:1.1;letter-spacing:-.04em}h2{font-size:19px;letter-spacing:-.025em}h3{font-size:16px}p{white-space:pre-wrap;overflow-wrap:anywhere}small,.muted{color:var(--muted)}a{color:var(--accent)}
.shell{min-height:100vh;display:grid;grid-template-columns:245px minmax(0,1fr)}aside{background:var(--nav);color:white;display:flex;flex-direction:column;padding:25px 16px;gap:16px}.brand{display:flex;align-items:center;gap:12px;padding:6px 4px 20px}.logo{width:43px;height:43px;flex:0 0 43px;display:grid;place-content:center;border-radius:11px;background:#a5e0cf;color:#123d3a;font-weight:800;letter-spacing:-.06em}.brand small{color:#c8d8e4}.nav{display:grid;gap:5px}.nav button{text-align:left;background:transparent;border:0;color:#d9e6ef;padding:11px 12px;border-radius:9px}.nav button[aria-current=page]{background:#25475e;color:#fff;font-weight:650}.nav .glyph{display:inline-block;width:27px;color:#8ad2bf}.identity{margin-top:auto;padding:12px 6px 0;border-top:1px solid #375064}.identity small{display:block;color:#d9e6ef}.identity .line{margin-top:9px}.identity .line button{background:#203950;color:#fff;border-color:#3d5970}
main{width:min(100%,1420px);margin:0 auto;padding:30px clamp(16px,3vw,48px) 50px}.mast{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:22px;color:var(--muted);font-size:.93rem}.hero{background:#19374d;color:#fff;padding:30px;border-radius:16px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:18px}.hero p{margin-top:10px;color:#deedef}.hero .btn{background:#dff2ed;color:#123d3a}.page-title{margin-bottom:16px}.page-title p{margin-top:8px;color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat,.panel{background:#fff;border:1px solid var(--line);border-radius:13px}.stat{padding:15px}.stat strong{font-size:31px;line-height:1.2;display:block;font-variant-numeric:tabular-nums}.stat span{color:var(--muted);font-size:.87rem}.panel{padding:17px;margin-bottom:15px;min-width:0}.cols{display:grid;grid-template-columns:1.12fr 1fr;gap:15px}.panel-head,.line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.panel-head{justify-content:space-between;margin-bottom:12px}.card{padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.card h3,.card p{margin-bottom:3px}.card .line{margin-top:6px}.card.highlight{background:#fff6e5;border-radius:8px;padding:12px;margin:6px 0;border:0;border-left:4px solid #ce8b27}.pill{display:inline-block;background:var(--faint);color:#07574c;padding:3px 8px;border-radius:20px;font-size:12px;font-weight:650}.pill.red{background:#fae7e7;color:var(--red)}.pill.amber{background:#fff0cf;color:var(--amber)}.pill.quiet{background:#eaf0f4;color:#405469}
.btn{border:1px solid transparent;background:var(--accent);color:#fff;padding:8px 12px;border-radius:8px;font-weight:650;white-space:normal}.btn.light{background:white;color:var(--accent);border-color:var(--line)}.btn.danger{background:#fff;color:var(--red);border-color:#edc4c7}.btn.sm{padding:5px 8px;font-size:.86rem}.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:12px}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.92rem}th,td{padding:11px 9px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);background:#f3f7f8;font-weight:650}tr.alert-row{background:#fff5e9}td:first-child,th:first-child{white-space:nowrap}.breadcrumbs{font-weight:650}
label{display:grid;gap:4px;font-weight:650;color:var(--ink)}input,select,textarea{width:100%;padding:9px 10px;background:#fff;color:var(--ink);border:1px solid #b9c9d5;border-radius:7px}textarea{min-height:85px;resize:vertical}input[type=checkbox]{width:auto}.check{display:flex;align-items:center;gap:10px}form{display:grid;gap:12px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.empty{padding:16px 3px;color:var(--muted)}details{border-top:1px solid var(--line);padding:12px 0}summary{cursor:pointer;font-weight:650}details p{margin:12px 0}
dialog{width:min(92vw,580px);max-height:90vh;color:var(--ink);border:1px solid var(--line);border-radius:15px;padding:0;box-shadow:0 18px 70px #091e3d44}dialog::backdrop{background:#15283db8}.dialog-inner{padding:22px}.dialog-inner form{margin-top:12px}.error{color:var(--red);font-weight:650}.token{user-select:all;overflow-wrap:anywhere;background:var(--faint);border-radius:8px;padding:12px;font-family:monospace}
.login{min-height:100vh;display:grid;grid-template-columns:minmax(280px,1fr) minmax(350px,1fr);background:#fff}.login-intro{background:var(--nav);color:#fff;padding:clamp(32px,8vw,115px);display:flex;flex-direction:column;justify-content:center}.login-intro p{color:#c8d8e4;margin-top:15px}.login-form{max-width:515px;width:100%;padding:45px clamp(20px,6vw,75px);margin:auto}.login-form h2{font-size:27px;margin-bottom:13px}.login-form .line{margin-top:12px}
#flash:not(:empty){position:fixed;bottom:18px;right:18px;max-width:min(390px,90vw);background:#143d3a;color:#fff;padding:13px 16px;border-radius:10px;z-index:3;box-shadow:0 5px 25px #0d253544}
@media(max-width:960px){.shell{grid-template-columns:185px minmax(0,1fr)}.cols{grid-template-columns:1fr}.hero{padding:20px}}
@media(max-width:690px){.shell,.login{display:block}.login-intro{padding:24px}.login-intro h1{font-size:25px}.login-intro .brand{padding-bottom:12px}.login-form{padding:22px}.nav{display:flex;overflow:auto;padding-bottom:4px}.nav button{white-space:nowrap;padding:7px 9px}.nav .glyph{display:none}aside{padding:8px 12px;gap:3px}aside .brand{padding-bottom:5px}.identity{display:flex;align-items:center;justify-content:space-between;padding:4px}.identity .line{margin-top:0}main{padding-top:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{display:block}.hero button{margin-top:10px}.mast{margin-bottom:12px}}

.local-notice{background:#f9f4e5;border-bottom:1px solid #e7dac0;color:#554424;padding:9px clamp(12px,3vw,34px);font-size:.86rem}
.shell,.login{min-height:calc(100vh - 42px)}
:root {
  --ink:#142d46; --muted:#52677b; --bg:#eef3f9; --line:#d7e1ed;
  --nav:#102e53; --accent:#145695; --faint:#e4effb;
  --red:#9b3141; --amber:#805511;
  font-family:"Segoe UI",system-ui,sans-serif;
}
body {background:var(--bg)}
.local-notice {
  background:#e6eef8; color:#385570; border-bottom:1px solid #d4e1ee;
  font-size:.78rem; text-align:center; padding:7px 12px;
}
.btn {border-radius:11px; min-height:37px}
.btn.light {background:#f5f9ff}
.btn.sm {min-height:34px}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #5496ce; outline-offset:2px;
}
.text-action {
  color:var(--accent); background:none; border:0; padding:5px 0;
  font-weight:650; text-underline-offset:3px; cursor:pointer;
}
.text-action:hover {text-decoration:underline}
.access {
  max-width:1080px; margin:clamp(20px,8vh,95px) auto 30px;
  width:calc(100% - 44px); display:grid; grid-template-columns:.95fr 1.05fr;
  min-height:510px; background:white; border:1px solid #d9e5f0;
  border-radius:28px; overflow:hidden; box-shadow:0 18px 56px #193a6712;
}
.access-brand {
  position:relative; isolation:isolate; overflow:hidden; color:#fff; padding:46px 38px 36px;
  background:linear-gradient(150deg,#113965,#145a94 74%,#1c75a9); display:flex;
  flex-direction:column; justify-content:center; align-items:flex-start; gap:32px;
}
.access-brand::before,.access-brand::after {
  content:""; z-index:-1; position:absolute; border:1px solid #ffffff3d;
  transform:rotate(34deg); border-radius:38px; aspect-ratio:1;
}
.access-brand::before {width:51%; right:-13%; bottom:-13%; background:#dcefff22}
.access-brand::after {width:64%; right:-10%; bottom:-17%}
.access-wordmark {display:flex; align-items:center; gap:11px}
.brand-mark {
  border:1px solid #91c3e9; background:#ffffff12; color:#fff; font-size:20px;
  font-weight:800; letter-spacing:-.045em; width:47px; height:47px; border-radius:12px;
  display:grid; place-items:center;
}
.access-wordmark strong {font-size:20px; letter-spacing:.065em; display:block; line-height:1.17}
.access-wordmark div span {font-size:10px; letter-spacing:.12em; color:#d8ecff; font-weight:650}
.access-title {font-weight:720; font-size:clamp(28px,4.5vw,51px); line-height:1.05; letter-spacing:-.04em}
.shift-label {
  background:#d8ebff; color:#144878; padding:4px 10px; border-radius:7px;
  letter-spacing:.12em; font-size:.75rem; font-weight:800;
}
.access-panel {padding:48px 45px; display:grid; place-content:center; width:100%; min-width:0}
.access-content {width:min(100%,480px); min-width:0}
.access-heading {margin-bottom:22px}
.access-heading h1 {font-size:clamp(29px,5vw,42px); color:#173b63}
.access-heading p {font-size:.96rem; color:var(--muted); margin-top:8px}
.access form {gap:11px}
.access-field {
  display:grid; gap:3px; padding:9px 13px 7px; border-radius:13px; border:1px solid #cfddeb;
  background:#f8fbff; color:#264b6e; font-size:.79rem; font-weight:700; min-width:0;
}
.access-field input {
  width:100%; border:0; border-radius:4px; padding:3px 1px 5px; min-height:31px; font-size:1rem;
  background:transparent; color:#142e49; font-weight:550; min-width:0;
}
.access-field:focus-within {border-color:#4c8dc6; box-shadow:0 0 0 2px #a7d0ee55}
.access-field input:focus-visible {outline:none}
.access-inline {display:flex; align-items:center; gap:10px}
.visibility {min-width:42px}
.signin-options {display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 12px; margin:3px 0}
.signin-options .check {font-size:.87rem; font-weight:550}
.signin-options input {accent-color:var(--accent); width:16px; height:16px; margin:0}
.signin-options button,.access-footer {font-size:.86rem}
.access form>.line button[type=submit] {
  width:100%; background:var(--accent); font-size:1rem; padding:12px; min-height:47px;
}
.access form>.error:empty {display:none}
.access-footer {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  color:#51687d; border-top:1px solid #dfe7f0; gap:4px 16px; padding-top:11px; margin-top:19px;
}
.workspace {min-height:calc(100dvh - 36px)}
.workspace-bar {background:#fff; border-bottom:1px solid #deebf5}
.workspace-bar-inner,.workspace-nav-inner {max-width:1232px; margin:auto; padding:0 clamp(15px,4vw,34px)}
.workspace-bar-inner {display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; min-height:75px}
.profile-trigger {
  display:inline-flex; align-items:center; justify-self:start; gap:11px;
  max-width:100%; padding:4px; text-align:left; border:none; background:none; border-radius:12px;
}
.avatar {
  width:43px; height:43px; border-radius:14px; background:#e0effc; color:#154f85;
  font-size:.88rem; font-weight:800; display:grid; place-items:center; flex:none;
}
.profile-copy strong,.profile-copy small,.workspace-brand strong,.workspace-brand small {display:block}
.profile-copy strong {color:#1b3d61; line-height:1.25}
.workspace-brand {text-align:center}
.workspace-brand strong {color:#1b5287; font-size:1.2rem; letter-spacing:-.02em}
.workspace-brand strong span {color:#6095c3}
.workspace-brand small {font-size:.74rem}
.alert-trigger {
  justify-self:end; position:relative; background:#eef5fd; color:var(--accent); border:0;
  width:43px; height:43px; border-radius:14px; display:grid; place-items:center;
}
.bell-mark {
  position:relative; display:block; width:15px; height:15px; border:2px solid currentColor;
  border-radius:8px 8px 3px 3px; border-bottom-width:3px;
}
.bell-mark::after {content:""; position:absolute; width:5px; height:2px; border-radius:5px; background:currentColor; bottom:-6px; left:3px}
.alert-counter {
  position:absolute; right:-4px; top:-4px; padding:1px 5px; border-radius:99px;
  background:#9e3545; color:white; font-size:.68rem; font-weight:700;
}
.workspace-nav {background:#fff; border-bottom:1px solid #d9e5f0}
.workspace-nav-inner {display:flex; gap:9px}
.workspace-nav button {
  border:0; background:transparent; color:#4c647c; font-weight:650;
  display:flex; flex-direction:row; align-items:center; gap:8px; min-height:42px;
  padding:6px 14px; border-bottom:3px solid transparent; white-space:nowrap;
}
.workspace-nav button[aria-current=page] {color:#174e86; border-bottom-color:#276fab; background:#f2f8ff}
.nav-icon {font-size:1.22rem; line-height:1; display:grid; place-items:center; font-weight:750}
.workspace-main {max-width:1232px; padding-top:26px}
.team-heading {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 0 21px;
}
.team-heading h1 {color:#183e65; font-size:clamp(25px,4vw,42px)}
.team-heading p {color:#4b647c; margin-top:5px}
.today-label {color:#476784; display:inline-block; font-size:.82rem; font-weight:650; margin-bottom:6px}
.panel,.stat {border-radius:16px; border-color:#d9e4ee}
.request-panel {padding:17px 19px; box-shadow:0 6px 26px #132f4e09}
.request-panel .panel-head h2 {color:#224e78}
.request-panel .panel-head {align-items:flex-start}
.request-counters,.metric-grid {display:grid; gap:11px}
.request-counters {grid-template-columns:repeat(3,minmax(0,1fr))}
.request-count {
  border:0; border-radius:11px; min-width:0; text-align:left; min-height:61px;
  padding:8px 11px; display:flex; align-items:center; gap:8px;
}
.request-count strong {font-size:1.42rem; line-height:1}
.request-count span {font-size:.81rem; font-weight:650; line-height:1.23}
.request-count.pending {background:#fff2dc; color:#785013}
.request-count.approved {background:#e7f5ee; color:#225e46}
.request-count.denied {background:#f8eaf0; color:#843b53}
.metric-grid {grid-template-columns:repeat(4,minmax(0,1fr)); margin:16px 0}
.metric {
  text-align:left; min-height:108px; display:grid; grid-template-columns:1fr auto; align-items:start;
  padding:15px; gap:9px 5px; color:#234d76; border:1px solid #cce0f2; border-radius:16px;
  background:#e3effb;
}
.metric.green {background:#e2f4eb; border-color:#cde7da; color:#206044}
.metric.amber {background:#fff0d9; border-color:#f2ddbc; color:#79520e}
.metric.violet {background:#edeafd; border-color:#ded8f5; color:#534884}
.metric>strong {font-size:1.75rem; grid-column:2; grid-row:1; line-height:1.15}
.metric>span:last-child {font-size:.87rem; font-weight:700; grid-column:1/-1; line-height:1.28; align-self:end}
.metric>.nav-icon {width:32px; height:32px; border-radius:9px; background:#ffffffa6}
.metric:hover,.request-count:hover {filter:brightness(.975)}
.overview-cols {grid-template-columns:1.15fr 1fr}
.account-grid {display:grid; gap:8px; margin-top:15px}
dialog {border-radius:19px}
@media (max-width:780px) {
  .access {max-width:500px; grid-template-columns:1fr; min-height:0; margin:22px auto}
  .access-brand {padding:22px 26px; gap:13px}
  .access-title {font-size:28px}
  .wide-break {display:none}
  .access-panel {padding:25px 26px 29px; place-content:stretch}
  .overview-cols {grid-template-columns:1fr}
}
@media (max-width:650px) {
  .local-notice {font-size:.68rem; line-height:1.3}
  .access {width:calc(100% - 24px); margin:12px auto 16px; border-radius:21px}
  .access-brand {padding:17px 20px; gap:11px}
  .access-wordmark .brand-mark {width:37px;height:37px;font-size:16px}
  .access-wordmark strong {font-size:16px}
  .access-wordmark div span {font-size:.6rem}
  .access-title {font-size:24px}
  .access-panel {padding:20px}
  .access-heading {margin-bottom:14px}
  .access-heading p {margin-top:4px; font-size:.89rem}
  .access-field {padding:6px 10px 5px}
  .workspace-main {padding:13px 13px calc(93px + env(safe-area-inset-bottom,0px))}
  .workspace-bar-inner {min-height:58px}
  .profile-copy {display:none}
  .avatar,.alert-trigger {width:37px;height:37px;border-radius:12px}
  .workspace-brand strong {font-size:1.03rem}
  .workspace-brand small {font-size:.69rem}
  .workspace-nav {
    position:fixed; z-index:2; bottom:0; left:0; right:0; border-top:1px solid #d9e5f0;
    border-bottom:0; padding-bottom:env(safe-area-inset-bottom,0px); box-shadow:0 -6px 23px #162f5110;
  }
  .workspace-nav-inner {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:0 4px}
  .workspace-nav button {
    min-width:0; min-height:56px; flex-direction:column; justify-content:center; gap:3px;
    padding:5px 1px; font-size:.74rem; border-bottom:0; border-top:3px solid transparent;
  }
  .workspace-nav button[aria-current=page] {border-top-color:#276fab; border-bottom:0}
  .workspace-nav .nav-icon {font-size:1.12rem}
  .team-heading {align-items:flex-start; padding:9px 1px 15px}
  .team-heading .btn {padding:7px 9px; font-size:.77rem; margin-top:21px; flex:none}
  .team-heading h1 {font-size:clamp(22px,6vw,28px)}
  .team-heading p {font-size:.82rem}
  .request-panel {padding:13px}
  .request-panel .panel-head h2 {font-size:1rem}
  .request-panel .panel-head .btn {font-size:.78rem; padding:6px 9px}
  .request-counters {gap:6px}
  .request-count {display:grid; gap:4px; min-height:61px; padding:7px}
  .request-count strong {font-size:1.2rem}
  .request-count span {font-size:.72rem}
  .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:12px 0}
  .metric {min-height:88px; padding:10px 11px; border-radius:13px}
  .metric>.nav-icon {width:27px;height:27px}
  .metric>strong {font-size:1.43rem}
  .metric>span:last-child {font-size:.78rem}
  #flash:not(:empty) {bottom:calc(71px + env(safe-area-inset-bottom,0px))}
}

.document-controls{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:10px;align-items:end;margin-bottom:10px}
.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.doc-entry{border:1px solid var(--line);border-radius:13px;background:#fbfdff;padding:14px;display:flex;flex-direction:column;gap:8px}
.doc-entry h3{line-height:1.37;overflow-wrap:anywhere}
.doc-entry>.line:last-child{margin-top:auto;padding-top:4px}
.doc-entry .btn{min-height:34px;font-size:.83rem;padding:6px 9px}
.doc-count{font-size:.84rem;color:var(--muted);margin:8px 0 11px}
.doc-shortcut{display:flex;justify-content:space-between;align-items:center;gap:9px;background:#f7fbff}
.doc-shortcut h2{font-size:1.04rem;color:#214f78}
.doc-shortcut p{font-size:.85rem;color:var(--muted)}
.pdf-dialog{width:min(96vw,950px);max-height:94dvh}
.pdf-dialog .dialog-inner{padding:14px 16px}
.pdf-dialog .panel-head h2{font-size:1rem;max-width:85%;overflow-wrap:anywhere}
.pdf-tools{margin:8px 0;justify-content:flex-start;gap:6px}
.pdf-tools label{display:flex;align-items:center;gap:4px;font-size:.82rem}
.pdf-tools input{width:4.1rem;padding:4px 5px}
#doc-message{font-size:.8rem;margin:3px 0 5px}
.pdf-scroll{max-height:64dvh;min-height:100px;overflow:auto;background:#dce4ed;border-radius:8px;padding:8px;text-align:center}
.pdf-scroll canvas{vertical-align:top;background:#fff;box-shadow:0 3px 12px #1b29482e}
@media(max-width:620px){
 .document-controls{grid-template-columns:1fr 1fr}
 .document-controls label:first-child{grid-column:1/-1}
 .document-grid{grid-template-columns:1fr}
 .pdf-dialog{width:calc(100% - 10px)}
 .pdf-dialog .dialog-inner{padding:9px}
 .pdf-scroll{max-height:60dvh;padding:4px}
 .pdf-tools .btn{font-size:.72rem}
}
.login-role {
  color:#155491;border-radius:8px;background:#e8f1fb;font-weight:650;
  font-size:.88rem;padding:6px 10px;
}
.login-role:empty{display:none}
.priority-notices{border-left:4px solid #d69a42;background:#fffdf9}
.request-panel .card:first-of-type{margin-top:12px}
.priority-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.pdf-scroll.continuous-doc{
  height:min(65dvh,750px);max-height:none;overscroll-behavior:contain;
  padding:10px;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;
}
.continuous-doc figure{margin:0 auto 14px;max-width:810px;scroll-margin-top:8px}
.continuous-doc img{
  display:block;width:100%;height:auto;box-shadow:0 2px 8px #20395226;
  background:white;object-fit:contain;color:transparent;
}
.continuous-doc figcaption{font-size:.8rem;padding:4px;color:#38526d}
@media(max-width:650px){
 .priority-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pdf-scroll.continuous-doc{height:66dvh;padding:4px}
}

.personnel-cards{display:grid;grid-template-columns:1.12fr 1fr;gap:12px;margin:0 0 12px}
.personnel-card{margin:0;padding:15px;border-radius:16px}
.personnel-card .panel-head{align-items:flex-start}
.personnel-card h2{color:#174575}
.staffing-card{background:#f2f8ff;border-color:#cfe1f4}
.month-card{background:#f5fbf7;border-color:#d1eadb}
.total-focus{font-size:2.05rem;color:#145695;line-height:1.05}
.staff-groups{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
.staff-groups .staff-group{font-size:.83rem;padding:5px 9px;background:#fff;border:1px solid #b8cfe7;border-radius:8px}
.staff-groups .staff-group:hover,.staff-groups .staff-group:focus-visible{border-color:#145695;background:#e3f0ff}
.staff-group-table td:last-child{white-space:normal;min-width:100px}
.staff-attendance,.quota-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quota-numbers{grid-template-columns:repeat(3,minmax(0,1fr))}
.staff-attendance>div,.quota-numbers>div{background:#fff;border-radius:9px;padding:8px 9px}
.staff-attendance>div:last-child{background:#fceef1;color:#813746}
.staff-attendance strong,.quota-numbers strong{display:block;font-size:1.35rem;line-height:1.1}
.staff-attendance span,.quota-numbers span{font-size:.78rem;line-height:1.2}
.quota-full{background:#dff4e5;color:#175634}
.quota-unused{background:#fce7ef;color:#78374c}
.quota-partial{background:#edf0f4;color:#39485a}
.quota-key{margin:9px 0}
.quota-key span{font-size:.78rem;padding:4px 8px;border-radius:8px}
.quota-table th,.quota-table td{padding:7px}
.quota-days{white-space:normal;overflow-wrap:anywhere;min-width:92px}
.report-card{display:grid;gap:6px;overflow-wrap:anywhere}
.report-card .btn{justify-self:start}
.report-reply{padding:9px;border-radius:9px;background:#edf5ff;white-space:pre-wrap}
@media(max-width:680px){.personnel-cards{grid-template-columns:1fr;gap:8px}.personnel-card{padding:11px}.quota-table th,.quota-table td{padding:5px;font-size:.78rem}}


.request-count.pending,.leave-status.pending{background:#eef1f4;border-color:#c9d0d9;color:#344153}
.request-count.denied,.leave-status.denied{background:#fdeaea;border-color:#edb8b8;color:#8a2929}
.leave-status.approved{background:#e8f6ec;border-color:#b8dcc2;color:#1c5634}
.leave-status .pill.quiet{background:#dfe4eb;color:#344153}
.leave-status .pill.green{background:#c8ead2;color:#164a2b}
.leave-status .pill.red{background:#f9d2d2;color:#7d2020}
.leave-status{margin-bottom:8px}
.avatar{overflow:hidden;flex-shrink:0}
.avatar img{width:100%;height:100%;display:block;object-fit:cover}
.avatar.avatar-small{height:30px;width:30px;font-size:.72rem}
.avatar-editor,.person-cell{display:flex;align-items:center;gap:8px}
.avatar-editor .avatar{width:52px;height:52px}
.ledger-actions{margin-top:12px}
.leave-ledger td{white-space:normal}

.ledger-actions a.btn{display:inline-flex;align-items:center;text-decoration:none}

.home-staffing{display:grid;gap:12px;margin-bottom:12px}
.home-staffing .panel{margin-bottom:0}
.home-staff-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:8px}
.home-staff-group.btn{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px;min-height:42px;background:#fff;text-align:left}
.home-staff-group .group-count{white-space:nowrap}
.group-count strong{font-size:1.16rem}
.group-count small{color:#4b647c}
.shift-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shift-count{display:grid;gap:3px;justify-items:start;align-content:start;padding:10px 12px;border:1px solid transparent;border-radius:10px;font:inherit;text-align:left}
.shift-count strong{font-size:1.65rem;line-height:1}
.shift-count.working{background:#e8f7ef;color:#18533b}
.shift-count.away{background:#fff1f2;color:#823545;border-color:#efcad0}
.shift-count.away small{text-decoration:underline}
.upcoming-shift{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.upcoming-people{list-style:none;padding:0;margin:8px 0 0}
.upcoming-people li{display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;padding:6px 0;border-top:1px solid var(--line)}
.upcoming-people small{color:#4b647c}
@media(max-width:420px){.home-staff-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-count{padding:8px 10px}}

.workspace-home .team-heading{padding:8px 0 12px}
.workspace-home .team-heading h1{margin:0;line-height:1.17}
.workspace-home .home-staffing{gap:0}
.workspace-home .home-staff-summary{padding-bottom:10px}
.workspace-home .shift-attendance{border-top:1px solid #d2e3f1;padding-top:10px}
.workspace-home .home-staffing .panel-head{margin-bottom:7px}
.workspace-home .upcoming-shift{margin:0}
@media(max-width:690px){
  body:has(.workspace-home) .local-notice,.workspace-home .workspace-brand small{display:none}
  .workspace-home{min-height:100dvh}
  .workspace-home .workspace-bar-inner{min-height:46px;gap:6px;padding:0 10px}
  .workspace-home .profile-trigger,.workspace-home .alert-trigger{min-width:44px;min-height:44px}
  .workspace-home .avatar{width:34px;height:34px}
  .workspace-home .workspace-main{padding:6px 10px calc(64px + env(safe-area-inset-bottom,0px))}
  .workspace-home .workspace-nav button{min-height:48px;gap:2px;padding:3px 1px}
  .workspace-home .workspace-nav .nav-icon{font-size:1rem}
  .workspace-home .team-heading{padding:5px 0 8px}
  .workspace-home .team-heading h1{font-size:clamp(18px,5.2vw,23px)}
  .workspace-home .team-heading p{font-size:.76rem;margin:2px 0 0;line-height:1.25}
  .workspace-home .panel{padding:10px;margin-bottom:8px;border-radius:12px}
  .workspace-home .panel-head{margin-bottom:6px;gap:6px}
  .workspace-home .panel-head h2{font-size:1.01rem;line-height:1.2}
  .workspace-home .home-staffing .panel-head small{font-size:.74rem;line-height:1.2}
  .workspace-home .home-staffing .total-focus{font-size:1.6rem;line-height:1.05}
  .workspace-home .home-staff-summary{padding-bottom:8px}
  .workspace-home .shift-attendance{padding-top:8px}
  .workspace-home .home-staff-groups{grid-template-columns:repeat(auto-fit,minmax(57px,1fr));gap:5px}
  .workspace-home .home-staff-group.btn{display:grid;justify-content:center;gap:0;min-height:44px;padding:4px;font-size:.75rem;line-height:1.15;text-align:center}
  .workspace-home .group-count strong{font-size:1rem}
  .workspace-home .group-count small{font-size:.72rem}
  .workspace-home .shift-counts{gap:6px}
  .workspace-home .shift-count{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 5px;align-items:center;min-height:47px;padding:6px 8px;line-height:1.2;font-size:.82rem}
  .workspace-home .shift-count strong{grid-column:2;grid-row:1/span 2;font-size:1.38rem}
  .workspace-home .shift-count small{font-size:.69rem}
  .workspace-home .upcoming-people{margin-top:5px}
  .workspace-home .upcoming-people li{padding:5px 0}
}

.event-banner{position:relative;overflow:hidden;background:#103051;color:#ffdc76;border-bottom:1px solid #d7a744;min-height:33px}
.event-banner-a11y{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.event-banner-track{width:max-content;padding-inline-start:100%;animation:event-banner-loop var(--event-duration,18s) linear infinite;will-change:transform}
.event-banner-track span{display:block;white-space:pre;padding:5px 16px 5px 0;font-weight:750;line-height:1.5;text-shadow:0 0 8px #ffc85d85}
@keyframes event-banner-loop{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){
  .event-banner-track{width:100%;padding-inline-start:0;animation:none}
  .event-banner-track span{white-space:normal;overflow-wrap:anywhere;text-align:center;padding-inline:10px}
}

.book-list{display:grid;gap:7px;margin-top:8px}
.book-person.card{margin:0;display:flex;align-items:flex-start;justify-content:space-between;gap:6px;padding:9px}
.book-person[hidden]{display:none}
.book-person small{display:block;color:#4b647c}
.book-person .line{justify-content:flex-end;flex-shrink:0;gap:4px}
.book-entry.card{margin-top:7px}
.book-entry h3{margin:.35rem 0 .15rem}
.book-entry p{overflow-wrap:anywhere}
@media(max-width:460px){
  .book-person.card{display:grid;gap:5px}
  .book-person .line{justify-content:flex-start}
}
