[hidden] {
  display: none !important;
}
.role-dock {
  background: white;
  border: 1px solid #e5e9e5;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.role-dock small {
  display: block;
}
.role-actions,
.floor-tools,
.palette,
.segments,
.month-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.role-actions {
  flex-wrap: wrap;
}
.role-actions button,
.floor-tools button {
  background: #f2f4f2;
  font-size: 14px;
  padding: 8px 12px;
}
.segments {
  border-radius: 9px;
  padding: 3px;
  background: #edf0ed;
  width: fit-content;
}
.segments button {
  background: transparent;
  border-radius: 6px;
  padding: 7px 13px;
  color: #4e574e;
  line-height: 1.4;
}
.segments button[aria-pressed="true"] {
  color: #fff;
  background: #111;
}
.schedule-col {
  min-width: 0;
}
.feature .schedule-panel {
  min-height: 0;
}
.schedule-panel .day-heading {
  margin: 19px 0 4px;
  color: #566059;
  font-weight: 600;
  font-size: 14px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: white;
  border-bottom: 1px solid #e9ece9;
  border-radius: 0;
  width: 100%;
  padding: 12px 0;
}
.event-row i {
  margin-left: auto;
  font-size: 18px;
  color: #69726c;
}
.event-time b,
.event-time small {
  display: block;
}
.event-type {
  background: #f1f2f2;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 13px;
}
.event-type.clean {
  color: #275c36;
  background: #edf4ee;
}
.month-bar {
  margin: 16px 0 10px;
}
.month-bar button {
  padding: 3px 8px;
  background: #f4f5f4;
  min-width: 34px;
}
.month-bar .today {
  margin-left: auto;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.weekday,
.cal-day {
  text-align: center;
}
.weekday {
  font-size: 13px;
  color: #68716a;
}
.cal-day {
  padding: 4px 0;
  min-height: 38px;
  background: white;
  display: grid;
  place-content: center;
  gap: 3px;
}
.cal-day.outside {
  color: #717773;
}
.cal-day.picked {
  background: #111;
  color: white;
}
.cal-marks {
  height: 5px;
  display: flex;
  gap: 3px;
  justify-content: center;
}
.cal-marks i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #737873;
}
.cal-marks .green {
  background: #428854;
}
.picked .cal-marks i {
  box-shadow: 0 0 0 1px white;
}
.empty-line,
.chat-empty {
  color: #566059;
  font-size: 14px;
  padding: 16px 0;
}
#chat-fab {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: 22px;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  background: #111;
  color: white;
  box-shadow: 0 4px 16px #14211930;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
}
#chat-fab i {
  font-size: 24px;
}
#chat-dialog {
  position: fixed;
  inset: auto 20px max(18px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  border-radius: 16px;
  border: 1px solid #dfe6e0;
  padding: 0;
  width: min(382px, calc(100vw - 24px));
  max-width: none;
  overflow: hidden;
  box-shadow: 0 15px 65px #15231b30;
  color: #141714;
}
#chat-dialog::backdrop {
  background: #10191026;
}
.chat-wrap {
  background: white;
  height: min(550px, 78dvh);
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6ebe7;
}
.chat-head > div {
  margin-right: auto;
}
.chat-head h2 {
  font-size: 19px;
}
.chat-head button,
.attachment button {
  background: transparent;
  padding: 6px;
  min-width: 34px;
}
.chat-head [data-close] {
  font-size: 24px;
}
.chat-space {
  font-size: 13px;
}
.chat-targets {
  margin: 9px 14px 0;
}
.messages {
  flex: 1;
  min-height: 60px;
  overflow: auto;
  padding: 14px 16px;
  overscroll-behavior: contain;
}
.chat-empty {
  margin: auto;
  text-align: center;
}
.bubble-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 11px;
}
.bubble-row.mine {
  align-items: flex-end;
}
.who,
.bubble-row time {
  font-size: 12px;
  color: #5a645d;
}
.bubble {
  background: #eff2ef;
  padding: 9px 12px;
  border-radius: 12px 12px 12px 3px;
  max-width: 82%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.mine .bubble {
  color: #fff;
  background: #222522;
  border-radius: 12px 12px 3px 12px;
}
.bubble img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin: 4px 0;
}
.chat-wrap form {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #e4e9e5;
  padding: 10px;
  background: white;
}
.chat-wrap form input[type="text"] {
  min-width: 0;
  flex: 1;
  padding: 9px;
  background: #f4f5f4;
  border: 0;
}
.chat-submit {
  color: white;
  background: #111;
}
.attach {
  position: relative;
  padding: 6px;
  cursor: pointer;
  margin: 0;
}
.attach input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.attachment,
.chat-status:not(:empty) {
  padding: 4px 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef4ee;
}
.floor-panel .paint-grid {
  border-radius: 6px;
  aspect-ratio: 1.35;
  grid-template-rows: repeat(12, minmax(0, 1fr));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.paint-grid button {
  border-radius: 0;
  min-height: 0;
  font-size: clamp(9px, 1.8vw, 13px);
  font-weight: 500;
  color: #425544;
  line-height: 1;
  cursor: crosshair;
}
.palette {
  flex-wrap: wrap;
  margin: 14px 0;
}
.palette button {
  background: white;
  border: 1px solid #d6dbd6;
  color: #252925;
  padding: 6px 9px;
}
.palette button[aria-pressed="true"] {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}
.paint-swatch {
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  min-width: 20px;
  min-height: 20px;
  font-size: 13px;
  border: 1px solid #0002;
  margin-right: 4px;
}
.floor-tools {
  margin-top: 10px;
  flex-wrap: wrap;
}
.dirty {
  margin-left: auto;
}
.floor-names {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.plan-original {
  max-width: 100%;
  max-height: 200px;
}
.board-card h3 {
  font-size: 17px;
  margin: 10px 0;
}
.board-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.replies {
  border-top: 1px solid #e4e8e4;
  padding-top: 8px;
}
.replies p {
  margin: 6px 0;
}
.manual-grid button {
  color: #405145;
}
@media (max-width: 759px) {
  .role-dock {
    display: block;
    padding: 12px;
  }
  .role-dock > div:first-child {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  .role-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .role-actions button {
    padding: 9px 1px;
    font-size: 14px;
  }
  html:not([data-role="guest"]) #chat-fab {
    bottom: calc(70px + env(safe-area-inset-bottom));
    right: 14px;
  }
  html[data-role="guest"] #chat-fab {
    right: max(14px, calc((100vw - 420px) / 2));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  html[data-role="guest"] main {
    padding-bottom: 86px;
  }
  html:not([data-role="guest"]) main {
    padding-bottom: 145px;
  }
  #chat-dialog {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(390px, calc(100vw - 20px));
  }
  .schedule-panel .split {
    flex-wrap: wrap;
  }
  .feature .shortcuts {
    min-height: 0;
  }
}
@media (min-width: 760px) {
  html[data-role="guest"] #chat-fab {
    right: calc((100vw - 420px) / 2);
  }
  .feature .shortcuts {
    min-height: 0;
    align-self: start;
  }
  .feature .shortcuts .cover {
    height: 130px;
    margin: 14px 0;
  }
  .schedule-col .primary {
    margin-top: 12px;
  }
  #main:has(.paint-grid) {
    max-width: 820px;
  }
  .paint-grid {
    max-width: 590px;
  }
}

.manual-grid button {
  position: relative;
}
.room-pin {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 90px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  background: #ffffffec;
  color: #25342a;
  font-size: 12px;
  font-weight: 650;
  border-radius: 4px;
  padding: 0 5px;
  z-index: 1;
}

.res-check,.color-example span{font-weight:800;font-size:18px;text-shadow:0 0 1px #525852}.color-example{padding:10px 12px;background:#f6f8f6;border-radius:8px}.booking-error{color:#9d352f}.datedetails summary span{display:block;font-weight:400;font-size:13px}.cal-marks small{font-size:9px}

.camera-input{display:flex;align-items:center;justify-content:center;gap:8px;position:relative;min-height:48px;padding:0 12px;border:1px solid #b6c3ba;border-radius:9px;background:white;cursor:pointer;font-weight:650}
.camera-input input[type=file]{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer}
.camera-input:focus-within{outline:2px solid #286e45;outline-offset:2px}
.grid2 figure{min-width:0}.grid2 img{height:clamp(145px,23vw,300px);object-fit:contain;background:#f0f2f0}.photo img{object-fit:contain;background:#f0f2f0}
#newbooking{max-width:760px}.booking-error:empty{display:none}

.booking-summary dl{margin:12px 0 0;display:grid;gap:8px}.booking-summary dl>div{display:grid;grid-template-columns:42px 1fr;gap:12px}.booking-summary dt{color:#5c655f}.booking-summary dd{margin:0;font-variant-numeric:tabular-nums}
.manual-actions{display:flex;gap:12px}.manual-actions>.row{flex:1}.floor-tabs{margin:18px 0 8px}.floor-map{position:relative;background:white;border:1px solid #dce2dc;border-radius:12px;overflow:hidden}.floor-map>img{display:block;width:100%;height:auto}.floor-map>svg{position:absolute;inset:0;width:100%;height:100%}.floor-map polygon{fill:transparent;stroke:transparent;stroke-width:3;cursor:pointer}.floor-map polygon:hover,.floor-map polygon:focus{fill:#2d5a3f22;stroke:#2d5a3f;outline:none}.floor-map polygon[aria-pressed=true]{fill:#2d5a3f33;stroke:#2d5a3f}.room-picker{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.room-picker button{width:auto;padding:9px 12px;font-size:15px;min-height:44px;border:1px solid #d7ded8;background:white;border-radius:8px}.room-picker button[aria-pressed=true]{background:#111;color:white;border-color:#111}.room-detail{scroll-margin-top:80px}.room-detail:focus{outline:2px solid #2d5a3f;outline-offset:3px}.room-detail .instruction:first-of-type{border-top:0}.manual-grid [aria-pressed=true]{box-shadow:inset 0 0 0 1px #2d5a3f}.floor-levels{display:flex;gap:8px;align-items:end;margin-bottom:16px}.floor-levels label{flex:1;margin:0}.floor-levels button{width:auto;white-space:nowrap}.app-logo{width:42px;height:42px;border-radius:10px;vertical-align:middle;margin-right:10px}.install-link{font-size:14px;min-height:44px;padding:8px 12px;background:white;border:1px solid #dce2dc;border-radius:8px}.install-dialog{max-width:420px;width:calc(100% - 32px);border:0;border-radius:20px;padding:24px}.install-dialog ol{padding-left:22px;line-height:1.9}.install-dialog button{margin-top:16px}
body>header .install-link{width:auto;min-width:74px;white-space:nowrap;flex-shrink:0;font-size:14px;line-height:1.3}.acc-brand img{border-radius:8px}.sidefoot+.install-link{margin:12px 0}
.floor-map>svg{position:static;display:block;width:100%;height:auto;aspect-ratio:580/365}
.floor-map polygon.photo-done{fill:#2d5a3f33;stroke:#2d5a3f}.floor-map polygon[aria-pressed=true]{stroke:#111;stroke-width:5}.photo-marker{pointer-events:none}.photo-marker circle{fill:#2d5a3f}.photo-marker text{fill:white;font:700 20px system-ui}.manual-grid .photo-done{box-shadow:inset 0 0 0 1px #2d5a3f}.map-room-list{margin:12px 0 20px}.map-room-list summary{padding:10px 0;cursor:pointer}.floor-tabs{overflow-x:auto}.floor-tabs button{white-space:nowrap;min-width:64px}
.message-actions{display:flex;gap:16px;justify-content:flex-end;margin:-8px 0 12px}.message-actions .textbtn{width:auto;min-height:44px;margin:0}.message-fallback{margin-top:20px}.message-fallback summary{padding:10px 0;cursor:pointer}#invite-message-preview{font-size:15px;line-height:1.65;resize:vertical;min-height:220px;background:#f5f7f5;color:#252b26}#invite-message-editor textarea{min-height:150px}.manual-starters{margin:16px 0}.manual-starters button{display:block;width:100%;text-align:left;padding:12px 0;min-height:44px;background:none;border:0;border-bottom:1px solid #e1e6e2;font-size:15px}
