:root{color-scheme:light;--ink:#173735;--muted:#506a66;--teal:#11665e;--dark:#113f3c;--surface:#fff;--line:#d8e6e1;--bg:#f3f8f5;font:16px/1.5 "Aptos","Segoe UI",sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh}
.header{display:flex;align-items:center;gap:1.6rem;padding:.95rem max(1rem,calc((100vw - 1120px)/2));background:var(--dark);color:white;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.7rem;color:white;text-decoration:none;font-weight:750;line-height:1.25;white-space:nowrap}
.brand small{display:block;font-size:.72rem;font-weight:500;color:#c8e9df}
.mark{display:grid;place-items:center;width:42px;height:42px;background:#d9f1e8;border-radius:12px;color:var(--dark);font-family:Georgia,serif;font-size:1.45rem}
.header nav{display:flex;gap:.25rem;flex-wrap:wrap}
.header nav a{color:#e1f3ee;text-decoration:none;padding:.55rem .8rem;border-radius:8px;font-size:.88rem;font-weight:650}
.header nav a[aria-current=page],.header nav a:hover{background:#24625b}
.signout{margin-left:auto}
button,.quiet{background:var(--teal);color:white;border:1px solid transparent;border-radius:8px;font:inherit;font-weight:700;padding:.65rem 1rem;cursor:pointer;min-height:44px}
button:hover{background:#0b504a}button.quiet{background:transparent;color:white;border-color:#72978f;font-size:.88rem}
button.secondary{background:#e5f4ed;color:#14564e;border-color:#c8e4d9;white-space:nowrap}
button.secondary:hover{background:#ccecdf}
main{max-width:1152px;padding:1.5rem 1rem 3rem;margin:0 auto}
.auth{min-height:70vh;display:grid;align-content:center;justify-items:center;gap:.8rem}
.auth .login{width:min(100%,420px);padding:clamp(1rem,4vw,2rem)}
h1,h2,p{margin:0}
h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(2rem,5vw,3.3rem);letter-spacing:-.045em;line-height:1.07;margin-bottom:.4rem}
.login h1{font-size:clamp(1.7rem,5vw,2.25rem)}
h2{font-size:1.05rem;line-height:1.35}
.pagehead{margin:.5rem 0 1.15rem}
p{color:var(--muted)}
.date{color:var(--teal);font-size:.88rem;font-weight:700;margin-bottom:.35rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1rem 1.15rem;box-shadow:0 2px 8px #153f3610}
.progress{display:grid;gap:.55rem;margin-bottom:.8rem}
progress{width:100%;height:.55rem;accent-color:var(--teal);border:none;background:#e6eee9;border-radius:99px;overflow:hidden}
progress::-webkit-progress-bar{background:#e6eee9}
progress::-webkit-progress-value{background:var(--teal)}
progress::-moz-progress-bar{background:var(--teal)}
.create{margin:.8rem 0}
summary{font-weight:700;color:var(--teal);cursor:pointer;min-height:32px;align-content:center}
.stack,.formgrid{display:grid;gap:.8rem;margin-top:.8rem}
.formgrid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
.wide{grid-column:1/-1}
label{display:grid;gap:.25rem;font-size:.88rem;font-weight:650}
input,select,textarea{width:100%;min-width:0;border:1px solid #b4ccc3;padding:.57rem .6rem;border-radius:7px;background:white;color:var(--ink);font:inherit;min-height:44px}
textarea{resize:vertical}
.check{display:flex;align-items:center;gap:.5rem;min-height:44px}
.check input{width:1.1rem;min-height:0;accent-color:var(--teal)}
:focus-visible{outline:3px solid #2c8d7b;outline-offset:2px}
.task-list{display:grid;gap:.55rem}
.task{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.task h2{margin:.15rem 0}
.meta{font-size:.8rem;color:var(--muted)}
.completed{background:#f7fbf8}
.preserve{white-space:pre-wrap;overflow-wrap:anywhere;margin:.25rem 0}
.room-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.65rem}
.roomhead{display:flex;justify-content:space-between;align-items:center;gap:.3rem;margin-bottom:.45rem}
.room details{margin-top:.45rem;border-top:1px solid var(--line);padding-top:.35rem}
.badge{display:inline-flex;font-size:.75rem;font-weight:750;align-items:center;border-radius:99px;padding:.23rem .55rem;background:#edf2f0;color:#3b5b53;vertical-align:middle}
.urgent,.status-dirty{color:#873715;background:#fff0df}
.status-dnd{color:#813b4d;background:#fae9ee}
.status-cleaning,.status-inspection{color:#215287;background:#e6f0fe}
.status-ready{color:#205f3c;background:#e1f3e7}
.activity{padding-left:1.2rem;margin:.6rem 0}
.activity li+li{margin-top:.45rem}
.permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:.65rem;border:1px solid var(--line);border-radius:8px;padding:.75rem;margin:0}
.permissions legend{font-size:.85rem;padding:0 .3rem}
.error{padding:.75rem 1rem;background:#fcebec;color:#8c2730;border:1px solid #e8b4b6;border-radius:10px;margin-bottom:.75rem}
@media(max-width:560px){.header{gap:.55rem}.header nav{order:3;width:100%}.header nav a{padding:.5rem .7rem}.formgrid{grid-template-columns:1fr}.task{align-items:flex-start;flex-direction:column;gap:.5rem}.task form{align-self:flex-start}.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.room{padding:.72rem}.roomhead{flex-wrap:wrap}}
@media(max-width:350px){.room-grid{grid-template-columns:1fr}}

/* Role dashboards and mobile workspace navigation */
:root{--ink:#142e3b;--muted:#4c646f;--teal:#006b70;--dark:#00545d;--line:#dbe7ea;--bg:#edf5f6;font-family:"DM Sans","Segoe UI",sans-serif}
.header{background:linear-gradient(105deg,#004c58,#00777d);padding-top:.65rem;padding-bottom:.65rem}
.brand img{width:95px;height:54px;object-fit:contain;background:#ecf8f3;border-radius:10px;padding:5px}
.brand span{font-size:.83rem;font-weight:550;color:#e3f3f5}
.header nav a[aria-current=page],.header nav a:hover{background:#ffffff24}
.welcome{border-radius:22px;background:linear-gradient(125deg,#005560 15%,#096c74 65%,#399996);color:white;padding:clamp(1rem,4vw,1.65rem);margin-bottom:1rem;min-height:130px;display:flex;align-items:center}
.welcome h1{font-family:inherit;font-size:clamp(1.65rem,5vw,2.65rem);font-weight:700}
.welcome-date{font-size:.85rem;color:#e2f5f5;margin-bottom:.28rem}
.department-chips{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.65rem}
.department-chips span{background:#ffffffea;color:#004f55;font-size:.77rem;font-weight:700;padding:.35rem .6rem;border-radius:30px}
.dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;align-items:start}
.dashboard .card{min-width:0;display:grid;gap:.65rem}
.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem}
.dashboard-empty{font-size:.9rem}
.dashboard-link{color:var(--teal);text-decoration:none;font-size:.83rem;font-weight:700;white-space:nowrap}
.dashboard-link:hover{text-decoration:underline}
.checklist-preview,.chart{list-style:none;margin:0;padding:0}
.checklist-preview:empty{display:none}
.checklist-preview li{display:flex;align-items:center;gap:.55rem;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:.89rem}
.checklist-preview li:last-child{border-bottom:0}
.checklist-preview li>div{flex:1;min-width:0}
.checklist-preview small{display:block;color:var(--muted)}
.checklist-preview li>.dashboard-link{margin-left:auto}
.strike{text-decoration:line-through;color:var(--muted)}
.done-indicator,.check-button{width:24px;height:24px;min-height:0;display:grid;place-items:center;padding:0;border-radius:6px;flex:none;font-weight:700}
.done-indicator{background:#128579;color:white}
.check-button{background:white;border:1px solid #7896a0}
.check-button:hover{background:#cdebea}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.38rem}
.metric{display:grid;justify-items:center;text-align:center;align-content:center;border-radius:11px;min-height:68px;padding:.35rem .15rem;text-decoration:none;color:inherit;background:#e4eff1}
.metric strong{font-size:1.3rem}
.metric span{font-size:.70rem}
.metric.status-ready{background:#e3f3e9;color:#126447}
.metric.status-cleaning{background:#e5f0fa;color:#245c80}
.metric.status-inspection{background:#faf2d8;color:#715700}
.metric.status-dirty{background:#fae8e7;color:#932f3c}
.chart li{display:grid;grid-template-columns:minmax(100px,1fr) 1.3fr 3rem;gap:.4rem;align-items:center;font-size:.82rem;margin:.32rem 0}
.chart strong{text-align:right}
.bottom-nav{display:none}
@media(max-width:680px){
  main{padding-bottom:calc(5.4rem + env(safe-area-inset-bottom))}
  .header{flex-wrap:nowrap;justify-content:space-between}
  .header .top-nav{display:none}
  .brand{gap:.45rem}
  .brand img{width:76px;height:44px}
  .bottom-nav{position:fixed;z-index:5;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;padding:.35rem .25rem calc(.35rem + env(safe-area-inset-bottom));background:#fcfefe;border-top:1px solid #cfdee1;box-shadow:0 -4px 15px #113d4212}
  .bottom-nav a{flex:1;display:grid;justify-items:center;gap:.13rem;color:var(--ink);text-decoration:none;font-size:.7rem;min-height:46px}
  .bottom-nav a[aria-current]{color:var(--teal);font-weight:750}
  .bottom-nav svg{width:29px;height:27px;padding:3px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .bottom-nav a[aria-current] svg{background:#dbf3ef;border-radius:10px}
  .dashboard{grid-template-columns:1fr}
}
[hidden]{display:none!important}
/* Approved compact mobile dashboard */
:root{--teal:#008c89;--dark:#006c74;--bg:#f2f7f9;--ink:#102a36;--muted:#5b707a;--line:#dfe8ec;font-family:Arial,"Segoe UI",sans-serif;font-size:15px}
body{background:linear-gradient(140deg,#e9f6f7,#f7fafb 60%)}
.header{max-width:none;justify-content:space-between;padding:16px max(18px,calc((100vw - 1120px)/2));background:radial-gradient(ellipse at 90% 110%,#3da9a1aa,transparent 55%),linear-gradient(125deg,#005966,#00858a);min-height:100px;position:relative;gap:18px}
.brand{flex-direction:column;gap:1px;position:absolute;left:50%;transform:translateX(-50%)}
.brand img{width:116px;height:53px;background:#fff;border-radius:4px;padding:3px}
.brand span{font-size:14px;font-weight:400;letter-spacing:.4px;color:#fff}
.menu-toggle,.bell{color:#fff;text-decoration:none;position:relative;display:grid;place-items:center;width:42px;height:42px;font-size:26px}
.bell svg{height:30px;width:30px}.bell span{position:absolute;right:-2px;top:0;background:#df4a57;border-radius:20px;min-width:17px;height:17px;font-size:10px;display:grid;place-items:center}
.desktop-nav{max-width:1120px;margin:auto;display:flex;gap:8px;padding:12px 16px}.desktop-nav a{padding:8px 18px;text-decoration:none;color:var(--ink);border-radius:9px}.desktop-nav a[aria-current]{background:var(--teal);color:white}
main{max-width:1120px;padding:18px 16px 100px}.card{border-radius:17px;padding:16px;background:linear-gradient(140deg,#fff,#f9fbfc);box-shadow:0 3px 9px #1534470c;margin-bottom:14px}.dashboard{gap:14px}.dashboard .card{margin-bottom:0}
h1{font-family:inherit;font-size:25px;font-weight:700;letter-spacing:-.6px;line-height:1.2}h2{font-size:17px;font-weight:700}h3{font-size:15px}.pagehead{margin:7px 0 20px}.pagehead p{margin-top:5px}
p{line-height:1.55}.card>p{margin-top:7px}.card>h2{margin-bottom:10px}.card>form{margin-top:12px}a{color:#007d7d;text-underline-offset:3px}a:hover{color:#00565b}
.role-tabs{display:flex;gap:4px;border-radius:14px;background:#e0edf1;padding:5px;margin-bottom:20px}.role-tabs a{flex:1;text-align:center;text-decoration:none;padding:10px 8px;font-size:14px;border-radius:11px;color:var(--ink)}.role-tabs a[aria-current]{background:linear-gradient(110deg,#008f89,#006a72);color:#fff;font-weight:700}
.welcome{margin:-18px -16px 16px;border-radius:0 0 24px 24px;gap:14px;min-height:112px;background:linear-gradient(110deg,#047980,#7bbfb8)}.welcome h1{font-size:24px}.welcome p{color:#fff;font-size:14px}.avatar{width:58px;height:58px;flex:none;border-radius:50%;background:linear-gradient(140deg,#caf0e9,#66b7b0);border:3px solid white;display:grid;place-items:center;color:#00616b;font-weight:700;font-size:26px}.avatar.small{width:42px;height:42px;font-size:18px;border-width:1px}
.department-switch{margin:8px 0 18px;max-width:360px}.department-switch label{font-size:12px}.department-switch select{border:1px solid #dbe7eb;border-radius:12px;box-shadow:0 2px 5px #163c4810;font-weight:650}
.metric-grid{margin-top:12px;gap:8px}.metric{min-height:82px;border:1px solid #e3e9eb;background:#edf7f9}.metric strong{font-size:25px}.metric span{font-size:11px;line-height:1.3}.metric.status-ready{background:#edf9f1}.metric.status-dirty{background:#fff0f3}.metric.status-cleaning{background:#edf7ff}.metric.status-inspection{background:#fff8e5}
progress{height:9px}.card>progress{margin-top:10px}progress::-webkit-progress-value{background:linear-gradient(90deg,#00a99a,#007e85)}
.checklist-preview li{padding:13px 0;gap:10px}.checklist-preview a{flex:1;color:#172e36;text-decoration:none;font-size:14px}.checklist-preview small{white-space:nowrap}.task-mark{font-size:25px;color:#00978e;flex:none}.task-link{color:inherit;text-decoration:none}.task-link>div{flex:1}.task-link h2{font-size:15px}.task-list .card{margin:0}.task-link>span:last-child{font-size:25px}
.staff-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px;color:var(--ink)}.staff-row>strong{flex:1}.staff-row:last-child{border:0}.inspection-row{display:flex;gap:15px;padding:12px 0}.room-symbol{display:grid;place-items:center;font-size:38px;width:70px;height:70px;background:#e2eeea;border-radius:14px;color:#008d88}.shift-card{background:linear-gradient(120deg,#f2faf9,#def2f6)}.shift-inner{padding:14px;background:#ffffffb3;border-radius:12px;margin-top:10px}.shift-inner strong{font-size:18px}
.button,.button-row a.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 16px;border-radius:9px;background:var(--teal);color:#fff;text-decoration:none;font-weight:600;font-size:14px}.button.secondary{background:#e5f1f2;color:#006c74}.button-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0 16px}.filter-row{display:flex;gap:10px;align-items:end;margin:12px 0 18px;flex-wrap:wrap}.filter-row label{flex:1;min-width:130px}.searchbox{margin:12px 0 16px}.searchbox input{background:#fff;border-color:#d3e1e5;border-radius:12px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}td,th{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line)}
.bar-chart{display:flex;justify-content:space-around;gap:10px;padding:16px 10px 5px;min-height:185px}.bar-chart>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;font-size:12px}.bar-chart strong{font-size:13px}.bar-chart progress{width:110px;height:30px;transform:rotate(-90deg);margin:45px -35px;border-radius:3px}.bar-chart span{margin-top:4px}.evidence-grid{display:flex;gap:10px;flex-wrap:wrap}.evidence-grid img{width:110px;height:110px;object-fit:cover;border-radius:9px}.room-grid .card{margin:0}.room a{font-size:12px}.room details{margin:12px 0}.login{max-width:420px;margin:50px auto}.permissions label.check{font-size:12px}#connection{padding:12px;background:#fff2c9;border:1px solid #e3cf88;border-radius:12px;margin-bottom:15px}.check{display:flex;align-items:center}.check input{width:18px;height:18px;min-height:18px;flex:none}
.nav-icon{font-size:25px;line-height:28px;min-width:46px;border-radius:20px}.bottom-nav a[aria-current] .nav-icon{background:linear-gradient(100deg,#00a99a,#007c82);color:#fff}.bottom-nav a{font-size:11px}
@media(max-width:680px){.desktop-nav{display:none}.header{min-height:102px}.dashboard{grid-template-columns:1fr}.task-link{flex-direction:row;align-items:center}.brand img{width:106px;height:47px}.bottom-nav{padding-top:8px;min-height:66px}.card{padding:15px}.room-grid{grid-template-columns:1fr}.room .formgrid{grid-template-columns:1fr}.metric-grid{gap:6px}.role-tabs{margin-top:-4px}.welcome{margin-top:-18px}.formgrid{grid-template-columns:1fr}.bar-chart progress{height:34px}.department-switch{max-width:none}}
@media(min-width:681px){.header{min-height:110px}.brand img{width:130px}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.room-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.welcome{border-radius:20px;margin:0 0 16px}.department-switch{margin-left:auto}.bottom-nav{display:none}.card.login{margin-top:60px}}
