:root {
  --brand: #315b4c;
  --brand-dark: #203f35;
  --brand-soft: #eaf0eb;
  --signal: #bd785b;
  --navy: #293b36;
  --ink: #233b31;
  --muted: #657269;
  --line: #e1e4dd;
  --bg: #f5f6f2;
  --card: #fff;
  --dirty: #a1503d;
  --progress: #87621e;
  --clean: #386957;
  --inspect: #446680;
  --ooo: #687174;
  --radius: 16px;
  --radius-control: 10px;
  --radius-dialog: 20px;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
a,
input,
select,
textarea {
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #779cba;
  outline-offset: 3px;
}
a {
  color: var(--brand);
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1,
h2 {
  letter-spacing: -0.045em;
}
button svg {
  flex-shrink: 0;
}
.svg-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.app {
  min-height: 100dvh;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 750;
  color: var(--muted);
}
.logo-mark {
  height: 36px;
  width: 36px;
  background: var(--brand);
  color: white;
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}
.av {
  width: 36px;
  height: 36px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  flex-shrink: 0;
}
/* Staff entry */
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  background: #e6ede7;
  padding: 56px clamp(32px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-copy {
  margin: 65px 0;
}
.login-copy h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.08;
  max-width: 500px;
  font-weight: 650;
  margin: 20px 0 26px;
}
.login-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: #52645b;
  max-width: 390px;
}
.login-ledger {
  border-top: 1px solid #bccdc0;
  margin-top: 40px;
  max-width: 390px;
}
.login-ledger div {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #cdd8cf;
  font-size: 13px;
}
.login-ledger strong {
  font-weight: 600;
}
.property-code {
  font-size: 12px;
  color: #52645b;
}
.login-panel {
  max-width: 640px;
  width: 100%;
  padding: 56px clamp(28px, 5vw, 76px);
  align-self: center;
}
.login-panel h2 {
  font-size: 30px;
  margin: 10px 0;
}
.login-panel > p {
  color: var(--muted);
  margin: 0 0 24px;
}
.who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.who h3 {
  grid-column: 1/-1;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 2px;
}
.acct {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: var(--radius);
  text-align: left;
  font-weight: 650;
  min-height: 74px;
}
.acct:hover {
  border-color: #8ea59c;
  background: #f0f4ef;
}
.acct.admin {
  grid-column: 1/-1;
}
.acct .role {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.acct .arrow {
  margin-left: auto;
  color: var(--muted);
}
.login-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
/* Reception shell */
.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #edf1ea;
  border-right: 1px solid var(--line);
  padding: 26px 16px 20px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 10px;
}
.property-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 10px;
  margin: 25px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}
.property-switch small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.sidebar .eyebrow {
  padding: 0 12px;
  margin-bottom: 10px;
  font-size: 10px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  text-align: left;
  color: var(--muted);
  min-height: 46px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 550;
}
.side-nav button:hover {
  background: var(--bg);
}
.side-nav button.on {
  background: white;
  color: var(--brand-dark);
  box-shadow: 0 1px 4px #203f3510;
  font-weight: 650;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  background: #dce6df;
  color: var(--brand-dark);
  min-width: 21px;
  text-align: center;
  padding: 1px 5px;
  border-radius: var(--radius-control);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 10px 0;
}
.demo-label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 12px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile button {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}
.workspace-main {
  min-width: 0;
}
.workspace-top {
  height: 58px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #fbfcf9;
  font-size: 12px;
  color: var(--muted);
}
.workspace-top strong {
  color: var(--ink);
  font-weight: 500;
}
.live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--clean);
}
.live .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.live.off {
  color: var(--progress);
}
.adm {
  max-width: 1560px;
  margin: 0 auto;
  padding: 26px 32px 48px;
}
.admin-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-head h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 7px;
}
.admin-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.admin-head .btn {
  margin: 0 0 0 auto;
  width: auto;
  white-space: nowrap;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--brand);
  color: white;
  font-weight: 650;
  font-size: 13px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  margin-top: 16px;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost {
  color: var(--dirty);
  background: #fbf6f2;
  border: 1px solid #e3d3ca;
}
.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 26px;
  overflow: hidden;
}
.kpi {
  padding: 16px 20px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.kpi:last-child {
  border: 0;
}
.kpi:hover {
  background: #fafbf8;
}
.kpi .l {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.kpi .n {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-top: 10px;
}
.kpi small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.attention {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #edf2ee;
  border: 1px solid #d8e2da;
  border-radius: var(--radius-control);
  margin-bottom: 24px;
  font-size: 12px;
}
.attention strong {
  font-weight: 650;
  color: #365647;
}
.attention .resolve {
  margin-left: auto;
  background: white;
  white-space: nowrap;
}
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: start;
}
.board-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}
.search {
  flex: 1;
  position: relative;
}
.search .svg-icon {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 17px;
  color: var(--muted);
}
.search input {
  width: 100%;
  height: 44px;
  padding: 10px 12px 10px 39px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  font-size: 12px;
}
.board-toolbar select {
  max-width: 160px;
}
.filters {
  display: flex;
  gap: 5px;
  overflow: auto;
  min-width: 0;
  margin-bottom: 16px;
  padding-bottom: 3px;
}
.filter {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 12px;
  color: var(--muted);
}
.filter.on {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px #23352b06;
  font-weight: 650;
}
.filter span {
  font-size: 10px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel h3 {
  margin: 0;
  padding: 17px 19px;
  font-size: 13px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel h3 .c {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.board-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 130px;
  gap: 12px;
  padding: 10px 18px;
  background: #fbfcf9;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row .info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row .info .t {
  font-weight: 650;
  font-size: 13px;
}
.row .info .m {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 130px;
  gap: 12px;
  min-height: 78px;
}
.room-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.room-link {
  padding: 0;
  text-align: left;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
}
.room-link:hover .t {
  text-decoration: underline;
}
.room-ic,
.task .icon,
.sheet-hd .icon {
  height: 38px;
  width: 38px;
  border-radius: var(--radius-control);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 750;
}
.room-ic .svg-icon {
  width: 18px;
  height: 18px;
}
.room-cell .m {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.badge,
.sev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
  width: fit-content;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.b-dirty {
  background: #f8ece7;
  color: var(--dirty);
}
.b-progress {
  background: #f8f0de;
  color: var(--progress);
}
.b-inspect {
  background: #eaf0f6;
  color: var(--inspect);
}
.b-clean {
  background: #e9f2ed;
  color: var(--clean);
}
.b-ooo {
  background: #ecefee;
  color: var(--ooo);
}
.assign {
  font-size: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 8px;
  background: white;
  max-width: 100%;
}
.resolve {
  font-size: 11px;
  font-weight: 650;
  color: var(--brand);
  border: 1px solid #cbd8ce;
  border-radius: var(--radius-control);
  padding: 8px 11px;
  min-height: 44px;
}
.resolve:hover {
  background: var(--brand-soft);
}
.row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.row-actions .resolve {
  min-height: 30px;
  padding: 4px 7px;
}
.board-foot {
  font-size: 11px;
  color: var(--muted);
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfa;
}
.rail .panel {
  margin-bottom: 18px;
}
.rail .panel h3 {
  font-size: 12px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.team-row:last-child {
  border: 0;
}
.team-row .av {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.team-row strong {
  font-size: 12px;
  font-weight: 650;
  display: block;
}
.team-row small {
  font-size: 10px;
  color: var(--muted);
}
.team-row .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.rail-note {
  padding: 16px;
  font-size: 12px;
}
.rail-note p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 14px;
}
.rail-note .badge {
  margin-bottom: 8px;
}
.rail-link {
  font-size: 11px;
  min-height: 44px;
  color: var(--brand);
  font-weight: 650;
  padding: 0;
}
.rail-footer {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  padding: 0 5px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}
.reset {
  display: block;
  margin: 25px auto 0;
  min-height: 44px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow: auto;
}
.tabs button {
  padding: 12px 2px;
  min-height: 46px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.on {
  color: var(--brand);
  border-color: var(--brand);
  font-weight: 650;
}
/* Cleaner shift */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 12px max(20px, env(safe-area-inset-right)) 12px
    max(20px, env(safe-area-inset-left));
  padding-top: calc(12px + env(safe-area-inset-top));
}
.top .b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}
.top .sp {
  flex: 1;
}
.top .me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.lo {
  font-size: 12px;
  min-height: 44px;
  color: var(--muted);
}
.wrap {
  max-width: 700px;
  margin: auto;
  padding: 34px 20px calc(95px + env(safe-area-inset-bottom));
}
.hi {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: white;
  margin-bottom: 26px;
}
.pill {
  padding: 17px;
  border-right: 1px solid var(--line);
}
.pill:last-child {
  border: 0;
}
.pill .n {
  font-size: 28px;
  font-weight: 650;
}
.pill .l {
  font-size: 11px;
  color: var(--muted);
}
.sec-title {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  margin: 25px 0 12px;
}
.task {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.task:hover {
  border-color: #91a69a;
  box-shadow: 0 3px 12px #27352f06;
}
.task .body {
  flex: 1;
  min-width: 0;
}
.task .t {
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.task .m {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.task-time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.task .prog {
  height: 4px;
  background: #edf0e9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}
.task .prog i {
  display: block;
  height: 100%;
  background: var(--brand);
}
.nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: white;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  justify-content: center;
}
.nav button {
  min-height: 64px;
  width: 220px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.nav button.on {
  color: var(--brand);
  box-shadow: inset 0 2px var(--brand);
  background: #f6f9f5;
}
.nav .ic {
  display: none;
}
/* Sheets and forms */
.sheet-bg {
  position: fixed;
  inset: 0;
  background: #1d2c2766;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sheet {
  background: white;
  width: 100%;
  max-width: 580px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-dialog);
  box-shadow: 0 20px 80px #17221d26;
}
.sheet-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.sheet-hd h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 650;
}
.sheet-hd .m {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.x {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  font-size: 25px;
  color: var(--muted);
}
.sheet-bd {
  padding: 24px;
}
.timer {
  padding: 12px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  margin-bottom: 20px;
  border-radius: var(--radius-control);
}
.check {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  width: 100%;
  min-height: 54px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.box {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #abbab1;
  border-radius: 5px;
  flex-shrink: 0;
  color: white;
}
.check.on .box {
  background: var(--brand);
  border-color: var(--brand);
}
.check.on > span:last-child {
  color: var(--muted);
}
.check:disabled {
  opacity: 1;
}
.note,
.field {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccd3ca;
  border-radius: var(--radius-control);
  padding: 11px 12px;
  background: #fff;
  font-size: 14px;
}
.note {
  min-height: 95px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 12px;
  min-width: 0;
}
.form-group.full {
  grid-column: 1/-1;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.form-actions .btn {
  margin: 0;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.form-error {
  border: 1px solid #e2bcb1;
  background: #fcf0eb;
  color: #8d3d2c;
  padding: 12px;
  border-radius: var(--radius-control);
  font-size: 12px;
  margin-bottom: 16px;
}
.save-status {
  font-size: 11px;
  color: var(--muted);
  min-height: 18px;
  margin: 4px 0;
}
.toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border-radius: var(--radius-control);
  background: var(--navy);
  color: white;
  box-shadow: 0 5px 24px #253c2920;
  z-index: 80;
  font-size: 13px;
  max-width: calc(100% - 32px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
}
/* Registers and setup */
.dmg {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.dmg:last-child {
  border: 0;
}
.dmg .hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.dmg .m {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 14px;
  overflow-wrap: anywhere;
}
.sev.high {
  background: #fae9e2;
  color: var(--dirty);
}
.sev.med {
  background: #f7efd9;
  color: var(--progress);
}
.sev.low {
  background: #eef1ec;
  color: var(--muted);
}
.dmg-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 12px;
}
.bar .name {
  width: 65px;
  font-weight: 600;
}
.bar .track {
  height: 5px;
  flex: 1;
  background: #ebefe8;
  border-radius: 4px;
  overflow: hidden;
}
.bar .track i {
  display: block;
  height: 100%;
  background: var(--brand);
}
.bar .v {
  width: 85px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.clean-time,
.log .time {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.setup,
.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.setup .box2 {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
}
.setup h2 {
  margin: 0 0 12px;
}
.setup p,
.splash {
  font-size: 14px;
  color: var(--muted);
}
.setup code {
  overflow-wrap: anywhere;
}
.spin {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: sp 1s linear infinite;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .adm {
    padding-top: 42px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .kpi {
    padding: 24px;
  }
  .board-row {
    min-height: 92px;
  }
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 12px;
  }
  .adm {
    padding: 28px 24px;
  }
  .workspace-top {
    padding: 0 24px;
  }
  .board-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .rail-footer {
    display: none;
  }
  .kpi {
    padding: 17px 14px;
  }
}
@media (max-width: 850px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 21px;
    padding: 0;
  }
  .sidebar .brand .logo-mark {
    height: 30px;
    width: 30px;
    font-size: 21px;
  }
  .property-switch,
  .sidebar > .eyebrow {
    display: none;
  }
  .side-nav {
    flex-direction: row;
    overflow: auto;
    gap: 5px;
    margin-top: 14px;
    padding-bottom: 10px;
  }
  .side-nav button {
    white-space: nowrap;
    min-height: 44px;
    padding: 10px;
    font-size: 12px;
  }
  .side-nav .svg-icon {
    width: 16px;
    height: 16px;
  }
  .sidebar-bottom {
    position: absolute;
    right: 20px;
    top: 10px;
    padding: 0;
  }
  .sidebar-bottom .demo-label,
  .profile small,
  .profile .av {
    display: none;
  }
  .profile {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .workspace-top {
    height: 50px;
    font-size: 11px;
  }
  .adm {
    padding: 24px 20px;
  }
  .admin-head h1 {
    font-size: 28px;
  }
  .kpi {
    padding: 16px 13px;
  }
  .kpi .l {
    font-size: 10px;
  }
  .kpi .n {
    font-size: 27px;
  }
  .kpi small {
    display: none;
  }
  .login-intro {
    padding: 40px 32px;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .login-copy h1 {
    font-size: 44px;
  }
  .who {
    grid-template-columns: 1fr;
  }
  .acct.admin {
    grid-column: auto;
  }
  .who h3 {
    margin-top: 10px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .login {
    display: block;
  }
  .login-intro {
    padding: 24px;
    min-height: 0;
  }
  .login-copy {
    margin: 32px 0 5px;
  }
  .login-copy h1 {
    font-size: 37px;
    max-width: 340px;
    margin: 12px 0;
  }
  .login-copy p {
    font-size: 14px;
    margin: 0;
  }
  .login-ledger,
  .property-code {
    display: none;
  }
  .login-panel {
    padding: 28px 24px;
  }
  .who {
    grid-template-columns: 1fr 1fr;
  }
  .acct.admin {
    grid-column: 1/-1;
  }
  .login-panel h2 {
    font-size: 26px;
  }
  .acct {
    min-height: 70px;
    padding: 10px;
    gap: 8px;
  }
  .acct .av {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .acct .role {
    font-size: 10px;
  }
  .sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .side-nav button {
    gap: 7px;
  }
  .side-nav .nav-count {
    display: none;
  }
  .workspace-top {
    padding: 0 16px;
  }
  .adm {
    padding: 24px 16px 36px;
  }
  .admin-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .admin-head h1 {
    font-size: 26px;
  }
  .admin-head p {
    font-size: 12px;
    max-width: 210px;
  }
  .admin-head .btn {
    font-size: 0;
    min-width: 44px;
    width: 44px;
    padding: 10px;
    margin-top: 2px;
  }
  .admin-head .btn .svg-icon {
    width: 21px;
    height: 21px;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 20px;
  }
  .kpi {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }
  .kpi:nth-child(3) {
    border-right: 0;
  }
  .kpi:nth-child(n + 4) {
    border-bottom: 0;
  }
  .kpi:last-child {
    grid-column: span 2;
  }
  .kpi .l {
    font-size: 10px;
    white-space: normal;
  }
  .kpi .n {
    font-size: 26px;
    margin-top: 6px;
  }
  .attention {
    align-items: flex-start;
    padding: 13px;
    font-size: 11px;
    gap: 8px;
  }
  .attention > .svg-icon {
    display: none;
  }
  .attention .resolve {
    padding: 7px;
    min-height: 44px;
    font-size: 10px;
  }
  .board-toolbar {
    flex-wrap: wrap;
  }
  .board-toolbar .search {
    min-width: 170px;
  }
  .board-toolbar select {
    max-width: 128px;
    font-size: 11px;
  }
  .filters {
    gap: 2px;
  }
  .filter {
    padding: 7px 10px;
  }
  .panel h3 {
    padding: 15px;
    font-size: 12px;
  }
  .board-columns {
    display: none;
  }
  .board-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 15px;
  }
  .board-row .room-cell {
    grid-column: 1/-1;
  }
  .board-row > .badge {
    margin-left: 50px;
  }
  .board-row .row-actions {
    flex-direction: row;
    align-items: center;
  }
  .board-row .assign {
    width: 105px;
    font-size: 11px;
  }
  .board-row .row-actions .resolve {
    min-height: 44px;
  }
  .room-cell .m {
    white-space: normal;
    line-height: 1.6;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .rail .panel {
    margin-bottom: 0;
  }
  .rail-footer {
    display: block;
  }
  .top {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .top .me {
    display: none;
  }
  .top .b {
    font-size: 20px;
  }
  .top .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }
  .live {
    font-size: 10px;
  }
  .wrap {
    padding: 26px 16px calc(92px + env(safe-area-inset-bottom));
  }
  .hi {
    font-size: 28px;
  }
  .task {
    padding: 15px 12px;
    gap: 10px;
  }
  .task .t {
    font-size: 13px;
  }
  .task .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .task .icon {
    width: 32px;
    height: 32px;
  }
  .sheet-bg {
    padding: 0;
    align-items: flex-end;
  }
  .sheet {
    border-radius: var(--radius-dialog) var(--radius-dialog) 0 0;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top));
  }
  .sheet-hd {
    padding: 16px;
  }
  .sheet-bd {
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .sheet-hd h2 {
    font-size: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-group.full {
    grid-column: auto;
  }
  .field,
  .note {
    font-size: 16px;
  }
  .row:not(.board-row) {
    flex-wrap: wrap;
    gap: 10px;
  }
  .row .info {
    min-width: 160px;
  }
  .bar {
    padding: 13px;
  }
  .dmg {
    padding: 16px;
  }
  .tabs {
    gap: 20px;
  }
  .toast {
    bottom: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Pilot onboarding and connection feedback */
.auth-box {
  width: 100%;
  max-width: 480px !important;
}
.auth-box .brand {
  margin-bottom: 30px;
}
.auth-box h1 {
  font-size: 28px;
}
.auth-box .eyebrow {
  margin-bottom: 10px;
}
.auth-links {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 14px;
}
.auth-links button {
  font-size: 12px;
  min-height: 44px;
  color: var(--brand);
}
.account-message {
  background: var(--brand-soft);
  padding: 12px;
  border-radius: var(--radius-control);
}
.onboarding-create {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}
.onboarding-create summary {
  cursor: pointer;
  margin-bottom: 20px;
  font-weight: 650;
}
.pilot-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.pilot-toolbar label,
.cleaner-day label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pilot-toolbar .field {
  width: 155px;
  font-size: 12px;
}
.sync-label {
  font-size: 11px;
  color: var(--muted);
  margin: auto 0 auto auto;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.setup-step {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  padding: 16px;
}
.setup-step.selected {
  border-color: var(--brand);
}
.setup-step span {
  display: block;
  color: var(--brand);
  margin-bottom: 8px;
}
.setup-step strong {
  display: block;
  font-size: 13px;
}
.setup-step small {
  color: var(--muted);
}
.invite-panel {
  margin-top: 20px;
  padding-bottom: 16px;
}
.invite-panel > p,
.invite-panel > button {
  margin: 16px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-height: 48px;
  margin: 10px 0;
}
.check-label input {
  width: 20px;
  height: 20px;
}
.cleaner-day {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cleaner-day input {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: var(--radius-control);
  min-width: 0;
  background: white;
}
.outbox {
  background: #fff5de;
  border: 1px solid #e8d9b0;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 12px;
}
.outbox p {
  margin: 5px 0 12px;
}
.outbox .resolve {
  margin: 8px 0;
}
.cleaner-day .resolve {
  font-size: 11px;
}
.pilot-dialog label {
  font-size: 12px;
}
.pilot-dialog textarea {
  margin-top: 8px;
}
.setup-step:hover {
  background: var(--brand-soft);
}
@media (max-width: 600px) {
  .setup-steps {
    gap: 6px;
  }
  .setup-step {
    padding: 12px 8px;
  }
  .setup-step strong {
    font-size: 11px;
  }
  .setup-step small {
    font-size: 10px;
  }
  .pilot-toolbar {
    gap: 8px;
  }
  .pilot-toolbar .resolve {
    flex: 1;
    white-space: nowrap;
  }
  .pilot-toolbar label {
    width: 100%;
  }
  .pilot-toolbar .field {
    flex: 1;
  }
  .sync-label {
    width: 100%;
  }
  .cleaner-day label {
    flex-wrap: wrap;
    font-size: 11px;
  }
  .auth-box {
    padding: 24px !important;
  }
}
.evidence {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 14px;
}
.evidence h3 {
  font-size: 13px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.photo-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-control);
}
.photo-upload {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 12px;
}
.photo-upload input {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
  min-height: 32px;
}

/* Operational hierarchy: room board, shift focus, and account entry. */
.admin-head .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}
.cards {
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: none;
  margin-bottom: 18px;
}
.kpi,
.kpi:last-child {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.kpi .l,
.kpi small {
  font-size: 12px;
}
.kpi .n {
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi small {
  font-size: 11px;
}
.kpi-done {
  background: #e9f0e2;
  border-color: #d6dfcf;
}
.kpi:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.pilot-toolbar {
  align-items: center;
  margin-bottom: 20px;
  gap: 8px;
}
.pilot-toolbar .sync-label {
  margin-right: auto;
  margin-left: 8px;
}
.pilot-toolbar .resolve {
  background: white;
  border-color: var(--line);
  font-size: 12px;
}
.toolbar-more {
  position: relative;
}
.toolbar-more summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.toolbar-more summary::after {
  content: "⌄";
}
.toolbar-more summary::-webkit-details-marker {
  display: none;
}
.toolbar-more > div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 205px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 8px 24px #203f351a;
}
.toolbar-more button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 10px;
  font-size: 13px;
  border-radius: var(--radius-control);
}
.toolbar-more button:hover {
  background: var(--brand-soft);
}
.board-toolbar {
  margin-bottom: 8px;
}
.filters {
  gap: 2px;
  margin-bottom: 12px;
}
.filter {
  padding: 8px 10px;
}
.filter.on {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: none;
}
.filter.on span {
  color: #e0eae2;
}
.row .info .t {
  font-size: 14px;
}
.row .info .m {
  font-size: 12px;
}
.board-row:hover {
  background: #fafbf8;
}
.board-row .assign {
  border-color: transparent;
  background: #f3f5f0;
}
.shift-summary {
  padding: 22px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #e7eddf;
  border: 1px solid #d8e1d0;
}
.shift-summary .eyebrow {
  color: var(--brand-dark);
  font-size: 10px;
}
.readiness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.readiness strong {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 600;
}
.readiness strong small {
  font-size: 22px;
}
.readiness > span {
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.6;
}
.shift-summary p {
  font-size: 12px;
  margin: 15px 0 0;
  color: var(--brand-dark);
}
.shift-summary .btn {
  margin-top: 14px;
}
.team-row small,
.rail-note p,
.rail-footer {
  font-size: 11px;
}
.team-row .count {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border-radius: var(--radius-control);
  background: var(--bg);
}
.setup-step {
  padding: 20px;
  border-radius: var(--radius);
}
.setup-step.selected {
  box-shadow: inset 0 0 0 1px var(--brand);
  background: #edf2e8;
}
.setup-step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 12px;
}
.setup-step strong {
  font-size: 15px;
}
.setup-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 16px;
}
.setup-step small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.setup-step small svg {
  width: 16px;
}
.shift-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.shift-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
}
.shift-heading .hi {
  margin: 0 0 5px;
  font-size: 30px;
  line-height: 1.25;
}
.shift-heading .sub {
  margin: 0;
}
.shift-ring {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) var(--completion), #e0e6dc 0);
}
.shift-ring > span {
  border-radius: 50%;
  background: var(--bg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 650;
}
.shift-ring small {
  font-size: 12px;
}
.shift-counts {
  display: flex;
  gap: 20px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--muted);
}
.shift-counts b {
  color: var(--ink);
  margin-right: 3px;
}
.next-task {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: var(--brand-dark);
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: none;
}
.next-task:hover {
  background: #294f41;
}
.next-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d7e7ca;
  font-size: 12px;
}
.next-task > strong {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 12px 0 4px;
}
.next-detail {
  font-size: 13px;
  color: #dbe5df;
}
.next-action {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #e4edce;
  color: #203f35;
  font-size: 14px;
  font-weight: 650;
  border-radius: var(--radius-control);
  margin-top: 22px;
}
.sec-title {
  font-size: 15px;
  margin-top: 26px;
}
.sec-title > span,
.finished-tasks summary > span {
  font-size: 12px;
  margin-left: auto;
  color: var(--muted);
}
.task {
  padding: 18px;
  border-radius: var(--radius);
}
.task .t {
  font-size: 16px;
}
.task .m {
  font-size: 13px;
}
.task-time {
  font-size: 12px;
}
.finished-tasks {
  margin-top: 26px;
}
.finished-tasks summary {
  cursor: pointer;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
}
.finished-tasks summary > span {
  margin-left: 8px;
}
.nav button {
  min-height: 72px;
  flex-direction: column;
  gap: 4px;
}
.nav button.on {
  background: white;
  box-shadow: none;
  font-weight: 650;
}
.nav button.on svg {
  background: var(--brand-soft);
  border-radius: var(--radius-control);
  box-sizing: content-box;
  padding: 4px 20px;
}
.nav button:not(.on) svg {
  padding: 4px 20px;
  box-sizing: content-box;
}
.checklist-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin: 20px 0 12px;
}
.checklist-heading span {
  font-size: 12px;
  color: var(--muted);
}
.checklist-progress {
  height: 6px;
  background: #d9e2d3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.checklist-progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}
.check:hover {
  background: #f7f9f4;
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fcfcf9;
}
.auth-story {
  background: #e5ecdc;
  display: flex;
  flex-direction: column;
  padding: 48px clamp(32px, 5vw, 80px);
}
.auth-story-content {
  margin: auto 0;
  padding: 60px 0;
  max-width: 460px;
}
.auth-story h2 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.07;
  font-weight: 500;
  margin: 22px 0;
}
.auth-story p {
  color: #4d6252;
  font-size: 17px;
  max-width: 350px;
}
.auth-flow {
  display: grid;
  gap: 22px;
  margin-top: 42px;
  font-size: 14px;
}
.auth-flow span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.auth-flow svg {
  width: 24px;
  height: 24px;
}
.auth-story-foot {
  font-size: 12px;
  color: #4d6252;
}
.auth-form {
  padding: 40px 24px;
  display: grid;
  place-items: center;
}
.auth-box {
  background: none;
  border: 0;
  padding: 30px !important;
  box-shadow: none;
}
.auth-box > .brand {
  display: none;
}
.auth-box h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
.auth-box > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-box .field {
  min-height: 50px;
}
.auth-box .btn {
  min-height: 50px;
}
.auth-box .login-foot {
  text-align: center;
  margin-top: 32px;
}
.auth-box .login-foot a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}
@media (max-width: 1200px) {
  .rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi {
    padding: 16px 14px;
  }
  .kpi small {
    font-size: 10px;
  }
}
@media (max-width: 850px) {
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .shift-summary {
    grid-column: 1 / -1;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-box > .brand {
    display: flex;
  }
  .auth-form {
    padding: 28px 16px;
  }
  .auth-box {
    padding: 16px !important;
  }
}
@media (max-width: 600px) {
  .cards {
    gap: 8px;
  }
  .kpi,
  .kpi:last-child,
  .kpi:nth-child(3),
  .kpi:nth-child(n + 4) {
    border: 1px solid var(--line);
    padding: 12px;
  }
  .kpi .l {
    font-size: 11px;
  }
  .kpi small {
    display: none;
  }
  .pilot-toolbar .sync-label {
    display: none;
  }
  .pilot-toolbar label {
    width: auto;
    flex: 1;
  }
  .pilot-toolbar .field {
    width: 135px;
    flex: 0 1 auto;
  }
  .pilot-toolbar > .resolve {
    flex: 0 0 auto;
  }
  .pilot-toolbar > .resolve:nth-of-type(2) {
    margin-right: auto;
  }
  .rail {
    display: block;
  }
  .setup-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .setup-step {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }
  .setup-step > span {
    margin: 0;
  }
  .setup-step strong {
    font-size: 13px;
  }
  .setup-step p {
    display: none;
  }
  .setup-step small {
    font-size: 11px;
  }
  .setup-step small svg {
    display: none;
  }
  .wrap {
    padding: 24px 18px calc(105px + env(safe-area-inset-bottom));
  }
  .shift-heading .hi {
    font-size: 27px;
  }
  .shift-counts {
    gap: 16px;
    margin: 20px 0;
  }
  .next-task {
    padding: 22px;
  }
  .next-task > strong {
    font-size: 30px;
  }
  .task .icon {
    display: none;
  }
  .task .badge {
    font-size: 10px;
  }
  .task .t {
    font-size: 15px;
  }
  .sheet-hd {
    padding: 18px;
  }
  .sheet-bd {
    padding: 20px;
  }
  .cleaner-day .resolve,
  .x,
  .lo {
    min-height: 48px;
    min-width: 48px;
  }
  .cleaner-day input {
    min-height: 48px;
  }
}

.mobile-inspection {
  display: none;
}
@media (max-width: 1200px) {
  .mobile-inspection {
    display: flex;
    margin-bottom: 18px;
  }
}

.language-select {
  width: 102px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: white;
  font-size: 12px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-box > .language-select,
.login-panel > .language-select {
  display: block;
  margin: 0 0 24px auto;
}
.cleaner-day {
  gap: 8px;
}
.shift-heading .hi {
  margin: 0;
}
@media (max-width: 600px) {
  .cleaner-day label {
    flex: 1;
    gap: 4px;
  }
  .cleaner-day input {
    width: 135px;
    padding: 8px;
  }
  .cleaner-day .resolve {
    padding: 8px;
  }
  .language-select {
    width: 104px;
    min-height: 48px;
  }
  .cleaner-day {
    margin-bottom: 22px;
  }
  .shift-ring {
    width: 58px;
    height: 58px;
  }
  .shift-ring > span {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
  .next-task {
    padding: 20px;
  }
  .next-task > strong {
    font-size: 27px;
  }
  .header-tools {
    gap: 8px;
  }
}

/* Keep the date controls together; carryover is secondary information. */
.cleaner-day {
  flex-wrap: wrap;
  align-items: flex-end;
}
.cleaner-day > label {
  min-width: 0;
}
.cleaner-day > .resolve,
.cleaner-day > .language-select {
  flex-shrink: 0;
}
.overdue-label {
  font-size: 12px;
  color: var(--muted);
}
.cleaner-day > .overdue-label {
  flex-basis: 100%;
  padding-top: 4px;
}
.cleaner-login .login-copy,
.cleaner-login .property-code {
  display: none;
}
.cleaner-login .login-intro {
  min-height: auto;
  padding: 24px;
}
.cleaner-login .login-panel {
  padding-top: 24px;
}
@media (max-width: 600px) {
  .cleaner-day > label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .cleaner-day input {
    width: 100%;
  }
}

/* Account entry: compact form, clear hierarchy, official Google artwork. */
.auth-layout {
  grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
}
.auth-story {
  background: #264b3e;
  color: #f4f6ed;
}
.auth-story .brand,
.auth-story p,
.auth-story-foot {
  color: #e0e9db;
}
.auth-story h2 {
  font-size: clamp(42px, 4.5vw, 64px);
  letter-spacing: -0.045em;
}
.auth-story .eyebrow {
  color: #bfcebb;
}
.auth-story .brand-mark {
  background: #e0e9db;
  color: #264b3e;
}
.auth-flow {
  border-top: 1px solid #547264;
  padding-top: 28px;
  gap: 20px;
}
.auth-form {
  padding: 40px 32px;
}
.auth-box {
  max-width: 460px !important;
  padding: 24px !important;
}
.auth-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}
.auth-topline .brand {
  margin: 0;
  font-size: 23px;
}
.auth-topline .language-select {
  margin: 0;
  min-height: 44px;
  padding: 8px 28px 8px 12px;
  font-size: 12px;
  max-width: 145px;
}
.auth-box .eyebrow {
  font-size: 10px;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
}
.auth-box h1 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
.auth-box > p {
  font-size: 14px;
  margin: 0 0 26px;
}
.auth-box .form-group {
  margin-bottom: 16px;
}
.auth-box label {
  font-size: 13px;
  font-weight: 600;
}
.auth-box .field {
  min-height: 48px;
  border-color: #cbd4cc;
  background: white;
  font-size: 16px;
}
.auth-box .field:hover {
  border-color: #94aa9c;
}
.auth-box .field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #315b4c14;
}
.auth-box .btn {
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-control);
}
.auth-box .google-login {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: white;
  color: #1f1f1f;
  border: 1px solid #747775;
  font-family: "Google Sans", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.auth-box .google-login:hover {
  background: #f8faf7;
  border-color: #444746;
  box-shadow: 0 1px 3px #203f3510;
}
.google-mark {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: hidden;
  background: white;
}
.google-mark img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
  margin: -10px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-links {
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.auth-links button {
  padding: 6px 0;
  font-size: 12px;
}
.auth-links button:hover,
.login-foot a:hover {
  text-decoration: underline;
}
.auth-box .login-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
  font-size: 12px;
  text-align: left;
}
.auth-box .login-foot a {
  min-height: 44px;
}
@media (max-width: 850px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-form {
    padding: 24px 20px;
  }
  .auth-box {
    padding: 0 !important;
    max-width: 420px !important;
  }
  .auth-topline {
    margin-bottom: 36px;
  }
}
@media (max-width: 380px) {
  .auth-form {
    padding: 20px 16px;
  }
  .auth-topline .language-select {
    max-width: 130px;
  }
  .auth-box h1 {
    font-size: 28px;
  }
}

/* Space actions and task setup stay compact at narrow widths. */
.space-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.space-actions .btn {
  width: auto;
  min-height: 44px;
  white-space: nowrap;
  padding: 10px 14px;
}
.task-config .check-label {
  margin: 4px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
@media (max-width: 600px) {
  .place-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .place-row > .info {
    min-width: 150px;
  }
  .space-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .task-config .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Setup: one navigation, compact library, and optional forms. */
.setup-intro {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.setup-disclosure,
.checklist-group {
  margin: 12px 0;
}
.setup-disclosure > summary,
.checklist-group > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  min-height: 56px;
  list-style: none;
  font-weight: 650;
}
.setup-disclosure > summary::-webkit-details-marker,
.checklist-group > summary::-webkit-details-marker {
  display: none;
}
.setup-disclosure > summary::after,
.checklist-group > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
}
.setup-disclosure[open] > summary::after,
.checklist-group[open] > summary::after {
  content: "−";
}
.setup-disclosure[open] > summary,
.checklist-group[open] > summary {
  border-bottom: 1px solid var(--line);
}
.checklist-group summary .c {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.pilot-dialog fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
.pilot-dialog .task-mode {
  margin-top: 0;
}
.checklist-picker {
  max-height: 340px;
  overflow-y: auto;
}
.checklist-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  min-height: 64px;
}
.checklist-choice input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brand);
}
.checklist-choice:has(input:checked) {
  background: #eef3ed;
}
.checklist-choice strong {
  display: block;
  font-size: 14px;
}
.checklist-choice small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A softer surface treatment, with the existing compact layout. */
.panel,
.kpi,
.task {
  box-shadow: 0 2px 10px #203f3505;
}
.checklist-choice {
  border-radius: var(--radius-control);
}
/* Beres workspace: quiet surfaces and compact, task-focused lists. */
.simple-auth {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.simple-auth .auth-topline {
  margin-bottom: 8px;
  gap: 24px;
}
.simple-auth .auth-box {
  padding: 30px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 32px #203b3010;
}
.simple-auth h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.simple-auth p {
  line-height: 1.55;
}
.simple-auth .google-login {
  margin: 24px 0 12px;
}
.simple-auth .login-foot {
  margin: 0;
  padding: 0;
  border: 0;
}
.legacy-login {
  margin-top: 20px;
}
.legacy-login summary,
.optional-settings summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
}
.legacy-login form {
  padding-top: 18px;
}
.optional-settings {
  margin: 8px 0 24px;
}
.optional-settings .form-group {
  margin-top: 12px;
}
.simple-workspace .admin-head {
  align-items: center;
  margin-bottom: 24px;
}
.simple-workspace h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
}
.simple-workspace .sidebar {
  background: #f8faf7;
}
.simple-workspace .side-nav button {
  border-radius: 12px;
}
.simple-workspace .panel {
  box-shadow: 0 2px 8px #203b3005;
}
.compact-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.compact-summary b {
  font-size: 20px;
  color: var(--text);
  margin-right: 4px;
}
.compact-summary .resolve {
  font-size: 14px;
}
.space-search {
  margin-bottom: 20px;
  max-width: 480px;
}
.space-title {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px 0;
  cursor: pointer;
}
.space-title strong {
  font-size: 16px;
  display: block;
}
.space-title small,
.definition-row small,
.row .info small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.place-row {
  gap: 16px;
  padding: 16px 20px;
}
.place-row:hover {
  background: #f6f9f5;
}
.back-link {
  background: none;
  border: 0;
  color: var(--green);
  cursor: pointer;
  padding: 8px 0 20px;
}
.space-heading,
.definition-heading,
.today-work,
.definition-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.space-heading {
  margin: 0 0 24px;
}
.space-heading h2 {
  font-size: 26px;
  margin: 0;
}
.definition-heading {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.definition-heading h3 {
  border: 0;
  padding: 0;
}
.definition-heading p {
  margin: 8px 0 0;
}
.definition-row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.definition-row.paused {
  background: #f6f7f5;
}
.definition-row.paused strong {
  color: var(--muted);
}
.panel-footer {
  padding: 16px 20px;
}
.today-work {
  border: 1px dashed #bdc9c1;
  border-radius: 16px;
  padding: 22px;
  margin-top: 24px;
}
.today-work h3 {
  margin: 0;
}
.today-work p {
  margin: 8px 0 0;
}
.space-actions {
  display: flex;
  gap: 16px;
}
.cleaner-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
}
.cleaner-heading h1 {
  font-size: 27px;
  margin: 0;
}
.simple-workspace .setup-disclosure {
  margin-top: 24px;
}
.simple-workspace .setup-disclosure > .panel {
  border: 0;
  box-shadow: none;
}
.simple-workspace .hint {
  line-height: 1.5;
}
.pilot-dialog form > .btn {
  margin-top: 18px;
  width: 100%;
}
.pilot-dialog .form-group {
  margin-bottom: 18px;
}
.pilot-dialog [data-form-error] {
  color: #9b3a31;
  font-size: 14px;
}
.simple-workspace .board-row .assign {
  min-width: 130px;
}
.simple-workspace .row-actions:has(option:first-child:checked) .assign {
  border-color: #b87532;
  background: #fff8ed;
}
.check-label {
  min-height: 44px;
}
.simple-workspace .space-title:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (max-width: 700px) {
  .simple-auth {
    padding: 24px 16px;
    justify-content: flex-start;
  }
  .simple-auth .auth-box {
    padding: 24px 20px;
  }
  .simple-workspace .admin-head h1 {
    font-size: 26px;
  }
  .simple-workspace .admin-head .btn {
    padding: 12px 16px;
    font-size: 14px;
    width: auto;
    min-width: 44px;
  }
  .compact-summary {
    gap: 16px;
  }
  .compact-summary b {
    font-size: 18px;
  }
  .place-row {
    padding: 12px;
    gap: 8px;
  }
  .space-title {
    gap: 10px;
  }
  .space-title .room-ic {
    display: none;
  }
  .place-row .btn {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 13px;
  }
  .definition-heading,
  .today-work {
    align-items: flex-start;
    flex-direction: column;
  }
  .definition-row {
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  .definition-row .space-actions {
    flex-direction: column;
    gap: 0;
  }
  .definition-heading .btn,
  .today-work .btn {
    width: 100%;
  }
  .space-heading {
    gap: 10px;
  }
  .simple-workspace .workspace-top {
    padding: 14px 16px;
  }
  .simple-workspace .sidebar-bottom {
    display: block;
  }
  .simple-workspace .profile {
    padding: 0;
  }
  .simple-workspace .profile > .av,
  .simple-workspace .profile > div {
    display: none;
  }
}
.simple-auth .login-foot {display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;font-size:12px;}
.evidence>summary {cursor:pointer;font-weight:600;padding:12px 0;}
.start-task {margin-bottom:20px;}
.task-reports {margin-top:24px;border-top:1px solid var(--line);padding-top:16px;}
