:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #5f6d7a;
  --line: #c8d2dc;
  --surface: #f7f4ee;
  --panel: #ffffff;
  --map: #efe8dc;
  --building: #fbfaf6;
  --building-active: #fff2dc;
  --building-line: #29323d;
  --building-layer: #18b7c8;
  --building-layer-rgb: 24 183 200;
  --garage-layer: #0d7991;
  --garage-layer-rgb: 13 121 145;
  --mailbox-layer: #073b5c;
  --mailbox-layer-rgb: 7 59 92;
  --work-order: #f97316;
  --work-order-rgb: 249 115 22;
  --work-order-new: #f97316;
  --work-order-new-rgb: 249 115 22;
  --work-order-assigned: #c4510c;
  --work-order-assigned-rgb: 196 81 12;
  --work-order-in-progress: #facc15;
  --work-order-in-progress-rgb: 250 204 21;
  --work-order-waiting: #d59b00;
  --work-order-waiting-rgb: 213 155 0;
  --work-order-completed: #0b7280;
  --work-order-completed-rgb: 11 114 128;
  --task: #8a4a15;
  --task-rgb: 138 74 21;
  --general: #246f3d;
  --general-rgb: 36 111 61;
  --make-ready: #7c3aed;
  --make-ready-rgb: 124 58 237;
  --make-ready-scheduled: #7c3aed;
  --make-ready-scheduled-rgb: 124 58 237;
  --make-ready-unscheduled: #86198f;
  --make-ready-unscheduled-rgb: 134 25 143;
  --make-ready-upcoming: #475569;
  --make-ready-upcoming-rgb: 71 85 105;
  --emergency-rgb: 216 35 47;
  --pool: #009bc6;
  --pool-rgb: 0 155 198;
  --clubhouse: #0e3252;
  --clubhouse-rgb: 14 50 82;
  --shop: #dd5c16;
  --shop-rgb: 221 92 22;
  --pin: #6f2dbd;
  --pin-rgb: 111 45 189;
  --accent: #18b7c8;
  --accent-rgb: 24 183 200;
  --accent-dark: #0b7280;
  --emergency: #d8232f;
  --emergency-dark: #9f111c;
  --water: #c7dce1;
  --road: #d9d3c7;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #e7edf1;
}

button,
input,
select {
  font: inherit;
}

button {
  transition: transform 90ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  transform: translateY(0);
}

button:active:not(:disabled):not(.photo-building-hit):not(.garage-hit):not(.place-hit):not(.mailbox-hit):not(.map-marker):not(.note-map-marker):not(.pin-map-marker):not(.pin-note-marker):not(.trend-heat-marker) {
  transform: translateY(2px) scale(0.98);
}

button,
summary,
.building-hit,
.garage-hit,
.place-hit,
.mailbox-hit,
.map-marker,
.note-map-marker,
.pin-map-marker,
.pin-note-marker,
.unit-chip,
.garage-chip {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) auto minmax(320px, 1fr);
  grid-template-areas:
    "brand notes tools"
    "brand notes search";
  gap: 10px 24px;
  align-items: end;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 42, 54, 0.12);
}

.eyebrow,
.popup-kicker {
  margin: 0 0 5px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c6472;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.brand-lockup {
  grid-area: brand;
  align-self: center;
  justify-self: center;
  width: min(100%, 168px);
  min-width: 0;
}

.brand-heading {
  margin: 0;
  line-height: 0;
}

.header-tools {
  grid-area: tools;
  align-self: start;
  display: flex;
  gap: 8px;
  justify-content: end;
}

.unit-search {
  grid-area: search;
  min-width: 0;
}

.header-tool-button {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #203844;
  background: #f8fafb;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(19, 35, 45, 0.08);
  cursor: pointer;
}

.header-tool-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(19, 35, 45, 0.16);
  pointer-events: none;
}

.calendar-button::before {
  content: "";
  width: 17px;
  height: 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2011h18%22%2F%3E%3C%2Fsvg%3E");
}

.calendar-button:hover::before,
.calendar-button:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2011h18%22%2F%3E%3C%2Fsvg%3E");
}

.pool-tools-button::before {
  content: "\224B";
  color: var(--pool);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
}

.key-directory-button::before {
  content: "";
  width: 17px;
  height: 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2215.5%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22m10%2013%2010-10%22%2F%3E%3Cpath%20d%3D%22m15%208%202%202%22%2F%3E%3Cpath%20d%3D%22m17.5%205.5%202%202%22%2F%3E%3C%2Fsvg%3E");
}

.key-directory-button:hover::before,
.key-directory-button:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2215.5%22%20r%3D%223.5%22%2F%3E%3Cpath%20d%3D%22m10%2013%2010-10%22%2F%3E%3Cpath%20d%3D%22m15%208%202%202%22%2F%3E%3Cpath%20d%3D%22m17.5%205.5%202%202%22%2F%3E%3C%2Fsvg%3E");
}

.settings-button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12.22%202h-.44a2%202%200%200%200-2%202v.18a2%202%200%200%201-1%201.73l-.43.25a2%202%200%200%201-2%200l-.15-.08a2%202%200%200%200-2.73.73l-.22.38a2%202%200%200%200%20.73%202.73l.15.1a2%202%200%200%201%201%201.72v.51a2%202%200%200%201-1%201.74l-.15.09a2%202%200%200%200-.73%202.73l.22.38a2%202%200%200%200%202.73.73l.15-.08a2%202%200%200%201%202%200l.43.25a2%202%200%200%201%201%201.73V20a2%202%200%200%200%202%202h.44a2%202%200%200%200%202-2v-.18a2%202%200%200%201%201-1.73l.43-.25a2%202%200%200%201%202%200l.15.08a2%202%200%200%200%202.73-.73l.22-.39a2%202%200%200%200-.73-2.73l-.15-.08a2%202%200%200%201-1-1.74v-.5a2%202%200%200%201%201-1.74l.15-.09a2%202%200%200%200%20.73-2.73l-.22-.38a2%202%200%200%200-2.73-.73l-.15.08a2%202%200%200%201-2%200l-.43-.25a2%202%200%200%201-1-1.73V4a2%202%200%200%200-2-2z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");
}

.settings-button:hover::before,
.settings-button:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12.22%202h-.44a2%202%200%200%200-2%202v.18a2%202%200%200%201-1%201.73l-.43.25a2%202%200%200%201-2%200l-.15-.08a2%202%200%200%200-2.73.73l-.22.38a2%202%200%200%200%20.73%202.73l.15.1a2%202%200%200%201%201%201.72v.51a2%202%200%200%201-1%201.74l-.15.09a2%202%200%200%200-.73%202.73l.22.38a2%202%200%200%200%202.73.73l.15-.08a2%202%200%200%201%202%200l.43.25a2%202%200%200%201%201%201.73V20a2%202%200%200%200%202%202h.44a2%202%200%200%200%202-2v-.18a2%202%200%200%201%201-1.73l.43-.25a2%202%200%200%201%202%200l.15.08a2%202%200%200%200%202.73-.73l.22-.39a2%202%200%200%200-.73-2.73l-.15-.08a2%202%200%200%201-1-1.74v-.5a2%202%200%200%201%201-1.74l.15-.09a2%202%200%200%200%20.73-2.73l-.22-.38a2%202%200%200%200-2.73-.73l-.15.08a2%202%200%200%201-2%200l-.43-.25a2%202%200%200%201-1-1.73V4a2%202%200%200%200-2-2z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");
}

.header-tool-button:hover,
.header-tool-button:focus-visible {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.share-icon-button {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  cursor: pointer;
}

.share-icon-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  transform: translateX(-50%);
}

.share-icon-button::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 12px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 38%, 67% 38%, 67% 100%, 33% 100%, 33% 38%, 0 38%);
  transform: translateX(-50%);
}

.share-icon-button:focus-visible {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.header-tool-button.share-icon-button {
  background: #f8fafb;
}

.header-tool-button.share-icon-button:focus-visible {
  background: #203844;
}

@media (hover: hover) and (pointer: fine) {
  .share-icon-button:hover {
    color: #fff;
    background: #203844;
    border-color: #203844;
  }

  .header-tool-button.share-icon-button:hover {
    background: #203844;
  }
}

.misc-notes-button::before {
  content: "";
  width: 16px;
  height: 16px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%202h8%22%2F%3E%3Cpath%20d%3D%22M8%202v4h8V2%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2010h8%22%2F%3E%3Cpath%20d%3D%22M8%2014h8%22%2F%3E%3Cpath%20d%3D%22M8%2018h5%22%2F%3E%3C%2Fsvg%3E");
}

.misc-notes-button:hover::before,
.misc-notes-button:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%202h8%22%2F%3E%3Cpath%20d%3D%22M8%202v4h8V2%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2010h8%22%2F%3E%3Cpath%20d%3D%22M8%2014h8%22%2F%3E%3Cpath%20d%3D%22M8%2018h5%22%2F%3E%3C%2Fsvg%3E");
}

.address-book-button::before {
  content: "";
  width: 17px;
  height: 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h10l4%204Z%22%2F%3E%3Cpath%20d%3D%22M16%202v4h4%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2211%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2017c.8-2%202.2-3%204-3s3.2%201%204%203%22%2F%3E%3Cpath%20d%3D%22M4%208H2%22%2F%3E%3Cpath%20d%3D%22M4%2012H2%22%2F%3E%3Cpath%20d%3D%22M4%2016H2%22%2F%3E%3C%2Fsvg%3E");
}

.address-book-button:hover::before,
.address-book-button:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h10l4%204Z%22%2F%3E%3Cpath%20d%3D%22M16%202v4h4%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2211%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2017c.8-2%202.2-3%204-3s3.2%201%204%203%22%2F%3E%3Cpath%20d%3D%22M4%208H2%22%2F%3E%3Cpath%20d%3D%22M4%2012H2%22%2F%3E%3Cpath%20d%3D%22M4%2016H2%22%2F%3E%3C%2Fsvg%3E");
}

.reports-button::before {
  content: "";
  width: 17px;
  height: 17px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8Z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6%22%2F%3E%3Cpath%20d%3D%22M8%2017v-5%22%2F%3E%3Cpath%20d%3D%22M12%2017v-3%22%2F%3E%3Cpath%20d%3D%22M16%2017v-7%22%2F%3E%3C%2Fsvg%3E");
}

.reports-button:hover::before,
.reports-button:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8Z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6%22%2F%3E%3Cpath%20d%3D%22M8%2017v-5%22%2F%3E%3Cpath%20d%3D%22M12%2017v-3%22%2F%3E%3Cpath%20d%3D%22M16%2017v-7%22%2F%3E%3C%2Fsvg%3E");
}

.pool-tools-button:hover::before,
.pool-tools-button:focus-visible::before {
  color: #fff;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.unit-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #9aa8b5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.search-row input:focus {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  border-color: #36758d;
}

.search-row button,
.ghost-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.search-row button {
  padding: 0 22px;
  color: #fff;
  background: #203844;
}

.search-row button:hover {
  background: #132932;
}

#searchHelp {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.map-panel {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(31, 42, 54, 0.12);
}

.map-toolbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.result-text {
  min-width: 0;
  font-weight: 700;
  color: #2b3a44;
}

.backup-health {
  min-width: 250px;
  max-width: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  color: #203844;
  background: #fff;
  border: 1px solid #d6e0e7;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(31, 42, 54, 0.08);
}

.backup-health-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.backup-health-copy > span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-change-count {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #2f7b55;
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backup-change-count[hidden] {
  display: none;
}

.backup-change-count::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  content: "";
  background: #2f9b68;
  border-radius: 999px;
}

.backup-health.has-changes .backup-change-count {
  color: #956900;
}

.backup-health.has-changes .backup-change-count::before {
  background: #d5a617;
}

.backup-health.has-many-changes .backup-change-count {
  color: #a3540a;
}

.backup-health.has-many-changes .backup-change-count::before {
  background: #e68119;
}

.backup-health.has-heavy-changes {
  border-color: rgb(var(--work-order-new-rgb) / 0.48);
  background: #fff8ef;
}

.backup-health.is-stale {
  border-color: rgb(var(--work-order-in-progress-rgb) / 0.7);
  background: #fff9db;
}

.backup-health.is-missing,
.backup-health.is-error {
  border-color: rgb(var(--emergency-rgb) / 0.55);
  background: #fff1f2;
}

.backup-health-button {
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  background: #203844;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.backup-health-button:hover,
.backup-health-button:focus-visible {
  background: var(--accent-dark);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.ghost-button {
  padding: 0 16px;
  color: #203844;
  background: #e7edf1;
}

.ghost-button:hover {
  background: #d8e2e8;
}

.badge-legend-button.has-filter {
  color: #fff;
  background: #203844;
}

.badge-legend-button.has-filter:hover,
.badge-legend-button.has-filter:focus-visible {
  background: #102f3d;
}

.is-badge-filtered-out {
  display: none !important;
}

.layer-menu {
  position: relative;
}

.layer-menu-button[aria-expanded="true"] {
  color: #fff;
  background: #203844;
}

.layer-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 246px;
  max-height: min(680px, calc(100vh - 112px));
  max-height: min(680px, calc(100dvh - 112px));
  display: grid;
  gap: 6px;
  padding: 10px 10px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 42, 54, 0.2);
}

.layer-menu-panel[hidden] {
  display: none;
}

.layer-menu-panel label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: #23313a;
  cursor: pointer;
  font-weight: 800;
}

.layer-menu-group {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #e0e7ed;
}

.layer-menu-group p {
  margin: 0;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-menu-panel input {
  width: 16px;
  height: 16px;
  accent-color: #203844;
}

.layer-menu-panel .layer-date-control {
  display: grid;
  align-items: start;
  gap: 6px;
  height: auto;
  padding: 6px;
}

.layer-menu-panel .layer-date-control span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-menu-panel .layer-date-control input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  color: #203844;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.layer-menu-panel .layer-date-control input:disabled {
  color: #8a98a3;
  background: #edf2f5;
}

.layer-date-clear {
  min-height: 32px;
  margin: -2px 6px 4px;
  color: #203844;
  background: #e7edf1;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.layer-date-clear:disabled {
  color: #8a98a3;
  cursor: not-allowed;
  opacity: 0.72;
}

.layer-color-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(35, 49, 58, 0.24);
}

.layer-color-all {
  background: conic-gradient(var(--building-layer) 0 20%, var(--task) 0 40%, var(--work-order-in-progress) 0 60%, var(--make-ready) 0 80%, var(--emergency) 0);
}

.layer-color-buildings {
  background: var(--building-layer);
}

.layer-color-garages {
  background: var(--garage-layer);
}

.layer-color-mailboxes {
  background: var(--mailbox-layer);
}

.layer-color-work-order {
  background: var(--work-order);
}

.layer-color-task {
  background: var(--task);
}

.layer-color-general {
  background: var(--general);
}

.layer-color-make-ready {
  background: var(--make-ready);
}

.layer-color-building-sides {
  background: conic-gradient(var(--work-order) 0 25%, #6b168f 0 50%, #20c829 0 75%, #ff68d2 0);
}

.layer-color-emergencies {
  background: var(--emergency);
}

.layer-color-archived-actions {
  background: #7c3aed;
}

.layer-color-archived-emergencies {
  background: #a7b1ba;
}

.map-wrap {
  position: relative;
  overflow: auto;
  background: #dbe3e7;
}

.map-stage {
  position: relative;
  min-width: 780px;
}

.photo-map {
  position: relative;
  width: 100%;
  min-width: 780px;
  background: #111;
}

.photo-map img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.building-overlay,
.garage-overlay,
.marker-overlay {
  position: absolute;
  inset: 0;
}

.note-marker-overlay {
  z-index: 5;
}

.trend-heat-overlay {
  z-index: 5;
}

.garage-overlay {
  z-index: 3;
}

.building-overlay {
  z-index: 4;
}

#markerLayer {
  z-index: 6;
}

.building-overlay,
.garage-overlay {
  pointer-events: none;
}

.marker-overlay {
  pointer-events: none;
}

.trend-heat-marker {
  --trend-intensity: 0.5;
  position: absolute;
  width: calc(34px + (var(--trend-intensity) * 28px));
  height: calc(34px + (var(--trend-intensity) * 28px));
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgb(216 35 47 / calc(0.48 + (var(--trend-intensity) * 0.42)));
  border: 3px solid rgb(255 255 255 / 0.94);
  border-radius: 999px;
  box-shadow: 0 0 0 calc(7px + (var(--trend-intensity) * 9px)) rgb(216 35 47 / 0.18), 0 10px 24px rgb(19 35 45 / 0.3);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.trend-heat-marker:hover,
.trend-heat-marker:focus-visible {
  z-index: 2;
  background: #a9131d;
  outline: 3px solid #fff;
  transform: translate(-50%, -50%) scale(1.08);
}

.clear-trends-heat-map {
  color: #fff;
  background: #a9131d;
}

.clear-trends-heat-map:hover,
.clear-trends-heat-map:focus-visible {
  background: #7f0f16;
}

.photo-building-hit {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 4px;
  background: rgb(var(--building-layer-rgb) / 0);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--rotation));
  transform-origin: center;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.photo-building-hit:hover,
.photo-building-hit:focus-visible,
.photo-building-hit.is-selected,
body.show-building-layer .photo-building-hit {
  border-color: rgb(var(--building-layer-rgb) / 0.95);
  background: rgb(var(--building-layer-rgb) / 0.14);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 6px 14px rgba(0, 0, 0, 0.24);
  outline: none;
}

.photo-building-hit span {
  padding: 2px 5px;
  color: #fff;
  background: rgb(var(--building-layer-rgb) / 0.94);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: rotate(calc(var(--rotation) * -1));
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.photo-building-hit:hover span,
.photo-building-hit:focus-visible span,
.photo-building-hit.is-selected span,
body.show-building-layer .photo-building-hit span {
  opacity: 1;
}

.garage-hit {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: rgb(var(--garage-layer-rgb) / 0);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--rotation));
  transform-origin: center;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.garage-hit span {
  max-width: calc(100% + 46px);
  padding: 2px 5px;
  color: #fff;
  background: rgb(var(--garage-layer-rgb) / 0.94);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: rotate(calc(var(--rotation) * -1));
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.garage-hit:hover,
.garage-hit:focus-visible,
.garage-hit.is-selected,
body.show-garage-layer .garage-hit {
  border-color: rgb(var(--garage-layer-rgb) / 0.98);
  background: rgb(var(--garage-layer-rgb) / 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.84), 0 6px 14px rgba(0, 0, 0, 0.24);
  outline: none;
  transform: translate(-50%, -50%) rotate(var(--rotation)) scale(1.1);
}

.garage-hit:hover span,
.garage-hit:focus-visible span,
.garage-hit.is-selected span,
body.show-garage-layer .garage-hit span {
  opacity: 1;
}

.place-hit {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2.5px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--rotation));
  transform-origin: center;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.place-hit span {
  padding: 2px 5px;
  color: #fff;
  background: rgba(151, 59, 14, 0.94);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(calc(var(--rotation) * -1));
  white-space: nowrap;
}

.place-pool {
  --place-stroke: rgb(var(--pool-rgb) / 0.96);
  --place-fill: rgb(var(--pool-rgb) / 0.24);
  border-radius: 5px;
}

.place-clubhouse {
  --place-stroke: rgb(var(--clubhouse-rgb) / 0.98);
  --place-fill: rgb(var(--clubhouse-rgb) / 0.24);
}

.place-shop {
  --place-stroke: rgb(var(--shop-rgb) / 0.98);
  --place-fill: rgb(var(--shop-rgb) / 0.25);
}

.place-hit:hover,
.place-hit:focus-visible,
.place-hit.is-selected {
  border-color: var(--place-stroke);
  background: var(--place-fill);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86), 0 8px 18px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translate(-50%, -50%) rotate(var(--rotation)) scale(1.08);
}

.place-hit.is-selected {
  border-width: 3px;
}

.mailbox-hit {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2.5px solid transparent;
  border-radius: 999px;
  background: rgb(var(--mailbox-layer-rgb) / 0);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.mailbox-hit span {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  padding: 2px 5px;
  color: #fff;
  background: rgb(var(--mailbox-layer-rgb) / 0.96);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.mailbox-hit:hover,
.mailbox-hit:focus-visible,
.mailbox-hit.is-selected,
body.show-mailbox-layer .mailbox-hit {
  border-color: rgb(var(--mailbox-layer-rgb) / 0.98);
  background: rgb(var(--mailbox-layer-rgb) / 0.38);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86), 0 8px 18px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translate(-50%, -50%) scale(1.08);
}

.mailbox-hit:hover span,
.mailbox-hit:focus-visible span,
.mailbox-hit.is-selected span,
body.show-mailbox-layer .mailbox-hit span {
  opacity: 1;
}

.map-marker {
  position: absolute;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--work-order);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgb(var(--work-order-rgb) / 0.24), 0 8px 22px rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.note-map-marker {
  position: absolute;
  appearance: none;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--work-order);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgb(var(--work-order-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.building-side-note-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(19, 35, 45, 0.28);
  transform: translate(-50%, -50%);
}

.building-side-front {
  background: var(--work-order);
}

.building-side-back {
  background: #6b168f;
}

.building-side-right {
  background: #20c829;
}

.building-side-left {
  background: #ff68d2;
}

.building-side-key {
  position: absolute;
  top: 4.5%;
  left: 52%;
  z-index: 4;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 12px;
  max-width: min(360px, calc(100% - 32px));
  padding: 8px 10px;
  color: #203844;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(203, 216, 226, 0.94);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(19, 35, 45, 0.2);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
}

body.show-building-side-layer .building-side-key {
  display: flex;
}

.building-side-key-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.building-side-key-dot {
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(19, 35, 45, 0.28);
}

.note-category-task {
  background: var(--task);
  box-shadow: 0 0 0 5px rgb(var(--task-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-work-order {
  background: var(--work-order);
  box-shadow: 0 0 0 5px rgb(var(--work-order-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-work-order.work-order-status-new,
.note-map-marker.note-category-work-order.work-order-status-new {
  color: #fff;
  background: var(--work-order-new);
  box-shadow: 0 0 0 5px rgb(var(--work-order-new-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-work-order.work-order-status-assigned,
.note-map-marker.note-category-work-order.work-order-status-assigned {
  color: #fff;
  background: var(--work-order-assigned);
  box-shadow: 0 0 0 5px rgb(var(--work-order-assigned-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-work-order.work-order-status-in-progress,
.note-map-marker.note-category-work-order.work-order-status-in-progress {
  color: #2b2300;
  background: var(--work-order-in-progress);
  box-shadow: 0 0 0 5px rgb(var(--work-order-in-progress-rgb) / 0.26), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-work-order.work-order-status-waiting,
.note-map-marker.note-category-work-order.work-order-status-waiting {
  color: #fff;
  background: var(--work-order-waiting);
  box-shadow: 0 0 0 5px rgb(var(--work-order-waiting-rgb) / 0.26), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-work-order.work-order-status-completed,
.note-map-marker.note-category-work-order.work-order-status-completed {
  color: #fff;
  background: var(--work-order-completed);
  box-shadow: 0 0 0 5px rgb(var(--work-order-completed-rgb) / 0.25), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-general {
  background: var(--general);
  box-shadow: 0 0 0 5px rgb(var(--general-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-make-ready {
  background: var(--make-ready);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-make-ready.make-ready-move-in-unscheduled {
  background: var(--make-ready-unscheduled);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-unscheduled-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-make-ready.make-ready-move-in-scheduled {
  background: var(--make-ready-scheduled);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-scheduled-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-make-ready.make-ready-upcoming-turn {
  background: var(--make-ready-upcoming);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-upcoming-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-category-emergency {
  background: var(--emergency);
  box-shadow: 0 0 0 5px rgb(var(--emergency-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.garage-map-marker,
.garage-note-marker {
  background: var(--garage-layer);
  box-shadow: 0 0 0 8px rgb(var(--garage-layer-rgb) / 0.24), 0 8px 22px rgba(0, 0, 0, 0.3);
}

.place-map-marker {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-width: 2px;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
}

.place-pool-marker {
  background: var(--pool);
  box-shadow: 0 0 0 4px rgb(var(--pool-rgb) / 0.22), 0 5px 14px rgba(0, 0, 0, 0.25);
}

.place-clubhouse-marker {
  background: var(--clubhouse);
  box-shadow: 0 0 0 4px rgb(var(--clubhouse-rgb) / 0.2), 0 5px 14px rgba(0, 0, 0, 0.25);
}

.place-shop-marker {
  background: var(--shop);
  box-shadow: 0 0 0 4px rgb(var(--shop-rgb) / 0.22), 0 5px 14px rgba(0, 0, 0, 0.25);
}

.pin-map-marker,
.pin-note-marker {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  background: var(--pin);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 0 8px rgb(var(--pin-rgb) / 0.22), 0 8px 22px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, calc(-100% - 8px));
}

.mailbox-note-marker {
  background: var(--mailbox-layer);
  color: #fff;
  box-shadow: 0 0 0 5px rgb(var(--mailbox-layer-rgb) / 0.28), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.pin-map-marker::before,
.pin-note-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.pin-map-marker:hover,
.pin-map-marker:focus-visible,
.pin-note-marker:hover,
.pin-note-marker:focus-visible {
  outline: none;
  box-shadow: 0 0 0 10px rgb(var(--pin-rgb) / 0.28), 0 10px 26px rgba(0, 0, 0, 0.34);
}

.garage-note-marker {
  box-shadow: 0 0 0 5px rgb(var(--garage-layer-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.place-pool-note {
  background: var(--pool);
  box-shadow: 0 0 0 5px rgb(var(--pool-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.place-clubhouse-note {
  background: var(--clubhouse);
  box-shadow: 0 0 0 5px rgb(var(--clubhouse-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.place-shop-note {
  background: var(--shop);
  box-shadow: 0 0 0 5px rgb(var(--shop-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-task {
  background: var(--task);
  box-shadow: 0 0 0 5px rgb(var(--task-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-work-order {
  background: var(--work-order);
  box-shadow: 0 0 0 5px rgb(var(--work-order-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.emergency-map-marker {
  position: absolute;
  z-index: 3;
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--emergency);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgb(var(--emergency-rgb) / 0.28), 0 6px 16px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.note-map-marker.note-category-general {
  background: var(--general);
  box-shadow: 0 0 0 5px rgb(var(--general-rgb) / 0.22), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-make-ready {
  background: var(--make-ready);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-make-ready.make-ready-move-in-unscheduled {
  background: var(--make-ready-unscheduled);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-unscheduled-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-make-ready.make-ready-move-in-scheduled {
  background: var(--make-ready-scheduled);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-scheduled-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-make-ready.make-ready-upcoming-turn {
  background: var(--make-ready-upcoming);
  box-shadow: 0 0 0 5px rgb(var(--make-ready-upcoming-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-map-marker.note-category-emergency {
  background: var(--emergency);
  box-shadow: 0 0 0 5px rgb(var(--emergency-rgb) / 0.24), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.archived-action-map-marker {
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.28), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.note-schedule-marker-cue {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #203844;
  background: #fff;
  border: 2px solid #d4a90f;
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(19, 35, 45, 0.28);
  font-size: 0.58rem;
  line-height: 1;
}

.property-map {
  display: block;
  width: 100%;
  min-width: 780px;
  height: min(72vh, 820px);
  min-height: 540px;
  background: var(--map);
}

.paper {
  fill: var(--map);
}

.road {
  fill: none;
  stroke: var(--road);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wide-road {
  stroke-width: 15;
}

.wide-road.lower {
  stroke-width: 11;
}

.pond {
  fill: var(--water);
  stroke: #5d7983;
  stroke-width: 2;
}

.map-label {
  fill: #4f5c63;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}

.clubhouse rect {
  fill: #eee2cc;
  stroke: #6a5b45;
  stroke-width: 2;
}

.clubhouse text {
  fill: #5a4a35;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
}

.mailboxes circle {
  fill: #29323d;
}

.mailboxes text {
  fill: #29323d;
  font-size: 19px;
  font-weight: 700;
}

.parking-line {
  stroke: #8895a0;
  stroke-width: 2;
}

.garages rect {
  fill: #efe5d5;
  stroke: #27313a;
  stroke-width: 1.8;
}

.garages rect + rect {
  fill: #f7f0e4;
}

.garages text {
  fill: #3b4650;
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
  text-transform: uppercase;
}

.building-hit {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 160ms ease, filter 160ms ease;
}

.building-hit:hover,
.building-hit:focus-visible,
.building-hit.is-selected {
  transform: scale(1.08);
  filter: url(#buildingShadow);
}

.building-body {
  fill: var(--building);
  stroke: var(--building-line);
  stroke-width: 2;
}

.building-hit.is-selected .building-body {
  fill: var(--building-active);
  stroke: var(--accent-dark);
  stroke-width: 3;
}

.building-wing {
  fill: #e9dfcf;
  stroke: var(--building-line);
  stroke-width: 1.2;
}

.building-roof-line {
  stroke: #97a0a7;
  stroke-width: 1;
}

.building-label {
  fill: #1c2731;
  font-size: 9px;
  font-weight: 800;
  paint-order: stroke;
  stroke: rgba(251, 250, 246, 0.85);
  stroke-width: 3px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.section-guide {
  stroke: rgba(41, 50, 61, 0.22);
  stroke-width: 1.1;
  stroke-dasharray: 3 4;
}

.marker-pulse {
  fill: var(--accent);
  opacity: 0.18;
}

.marker-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 3;
}

.marker-label {
  fill: #fff;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.building-popup {
  position: absolute;
  z-index: 12;
  bottom: 18px;
  right: 18px;
  width: min(350px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(19, 35, 45, 0.2);
}

.building-popup.is-left {
  right: auto;
  left: 18px;
}

.pin-confirm-popup {
  position: absolute;
  z-index: 13;
  right: 18px;
  bottom: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(19, 35, 45, 0.22);
}

.pin-confirm-popup p {
  margin: 0 0 12px;
  color: #23313a;
  font-weight: 800;
  line-height: 1.35;
}

.pin-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pin-confirm-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f8;
  color: #203844;
  cursor: pointer;
  font-weight: 900;
}

.pin-confirm-actions button:first-child {
  color: #fff;
  background: #203844;
  border-color: #203844;
}

.pin-confirm-actions button:hover,
.pin-confirm-actions button:focus-visible {
  outline: 3px solid rgba(54, 117, 141, 0.22);
}

.popup-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.popup-head h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0;
}

.unit-key-badge {
  width: fit-content;
  height: auto;
  display: block;
  margin-top: 6px;
  padding: 4px 9px;
  color: #203844;
  background: #e7edf1;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.popup-head .unit-key-badge {
  width: fit-content;
  height: auto;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
}

.popup-actions {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-left: auto;
}

.popup-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f8;
  cursor: pointer;
  font-weight: 800;
}

.popup-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f7f8;
  cursor: pointer;
  font-weight: 800;
}

.notes-button {
  width: auto;
  min-width: 68px;
  padding: 0 10px;
  color: #15551f;
  background: #f7fff7;
  border: 2px solid #22c21a;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.popup-head .notes-button {
  width: auto;
}

.notes-button:hover,
.notes-button:focus-visible,
.notes-button.has-note {
  color: #0d3f17;
  background: #e9ffe8;
  border-color: #16a911;
  outline: none;
}

.notes-button.has-emergency-note {
  color: var(--emergency-dark);
  background: #fff0f2;
  border-color: var(--emergency);
}

.property-notes-button {
  min-height: 48px;
  align-self: center;
  justify-self: center;
  border-color: #cbd8e2;
  color: #2b3a44;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(19, 35, 45, 0.08);
}

.property-notes-button:hover,
.property-notes-button:focus-visible {
  background: #f4f7f8;
  border-color: #9fb0bd;
}

.property-notes-button.has-note {
  color: #0d3f17;
  background: #e9ffe8;
  border-color: #16a911;
}

.quick-note-actions {
  grid-area: notes;
  display: grid;
  gap: 8px;
  align-self: center;
  justify-self: center;
}

.quick-note-actions .property-notes-button {
  justify-self: stretch;
}

.emergency-notes-button {
  color: #7a151c;
  background: #fff9f9;
  border-color: #e0b9bf;
}

.emergency-notes-button:hover,
.emergency-notes-button:focus-visible,
.emergency-notes-button.has-note {
  color: var(--emergency-dark);
  background: #fff0f2;
  border-color: var(--emergency);
}

.add-note-button {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  font-size: 2.35rem;
  line-height: 0.7;
}

.add-note-button:hover,
.add-note-button:focus-visible {
  color: var(--accent-dark);
  background: rgb(var(--accent-rgb) / 0.08);
  outline: none;
}

.note-modal-add-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
}

.note-modal-archive-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.note-modal-archive-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23203844%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h18%22%2F%3E%3Cpath%20d%3D%22M5%207v14h14V7%22%2F%3E%3Cpath%20d%3D%22M8%203h8l1%204H7l1-4z%22%2F%3E%3Cpath%20d%3D%22M10%2012h4%22%2F%3E%3C%2Fsvg%3E");
}

.note-modal-archive-button:hover,
.note-modal-archive-button:focus-visible,
.note-modal-archive-button[aria-pressed="true"] {
  background: rgb(var(--accent-rgb) / 0.1);
  border-color: rgb(var(--accent-rgb) / 0.28);
  outline: none;
}

.popup-close:hover,
.popup-close:focus-visible {
  background: #e7edf1;
  outline: none;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.garage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.garage-range-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unit-chip {
  position: relative;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid #d4dee6;
  border-radius: 6px;
  background: #f8fafb;
  font-weight: 800;
  color: #23313a;
}

.unit-chip:has(.unit-chip-indicators) {
  min-height: 44px;
  padding-top: 14px;
  padding-bottom: 6px;
  align-items: end;
}

.unit-chip.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.garage-chip.is-active {
  color: #fff;
  background: var(--garage-layer);
  border-color: var(--garage-layer);
}

.unit-chip-indicators {
  position: absolute;
  top: 4px;
  right: 6px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.unit-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff;
}

.unit-chip-dot-note {
  background: #f2c230;
}

.unit-chip-dot-emergency {
  background: var(--emergency);
}

.unit-chip-dot-work-order {
  background: var(--work-order);
}

.unit-chip-dot-work-order-status-new {
  background: var(--work-order-new);
}

.unit-chip-dot-work-order-status-assigned {
  background: var(--work-order-assigned);
}

.unit-chip-dot-work-order-status-in-progress {
  background: var(--work-order-in-progress);
}

.unit-chip-dot-work-order-status-waiting {
  background: var(--work-order-waiting);
}

.unit-chip-dot-work-order-status-completed {
  background: var(--work-order-completed);
}

.unit-chip-dot-make-ready {
  background: var(--make-ready);
}

.unit-chip-dot-task {
  background: var(--task);
}

.unit-chip-dot-general {
  background: var(--general);
}

.unit-chip-dot-occupied {
  background: #203844;
}

.unit-chip-dot-vacant {
  background: #0f9f6e;
}

.unit-chip-dot-unset {
  background: transparent;
  border: 1px solid #3f4a52;
  box-shadow: 0 0 0 1px #fff;
}

.unit-chip.is-active .unit-chip-dot {
  box-shadow: 0 0 0 2px var(--accent);
}

.unit-chip.is-active .unit-chip-dot-unset {
  border-color: #203844;
  box-shadow: 0 0 0 2px var(--accent);
}

.garage-chip.is-active .unit-chip-dot {
  box-shadow: 0 0 0 2px var(--garage-layer);
}

.garage-chip.is-active .unit-chip-dot-unset {
  box-shadow: 0 0 0 2px var(--garage-layer);
}

.floor-label {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.place-details {
  display: block;
  color: #2b3a44;
  font-weight: 700;
  line-height: 1.45;
}

.place-details p {
  margin: 0;
}

.note-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 26, 34, 0.32);
}

.note-modal[hidden] {
  display: none;
}

.note-modal.is-foreground-modal {
  position: fixed;
  z-index: var(--active-modal-layer, 120) !important;
}

.note-dialog {
  width: min(390px, calc(100% - 16px));
  max-height: min(620px, calc(100% - 20px));
  overflow: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(19, 35, 45, 0.28);
}

.misc-notes-dialog {
  width: min(520px, calc(100% - 16px));
}

.address-book-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.address-book-editor-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.reports-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.report-preview-dialog {
  width: min(780px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.share-packet-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.share-fallback-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.note-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.note-dialog-head h2 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.note-dialog-head .unit-key-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 0 10px;
  vertical-align: middle;
}

.unit-note-dialog > .note-dialog-head {
  position: sticky;
  top: -16px;
  z-index: 6;
  margin: -16px -16px 14px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid transparent;
  border-radius: 8px 8px 0 0;
}

.unit-note-dialog {
  overflow-anchor: none;
}

.unit-note-dialog.is-scrolled > .note-dialog-head {
  align-items: center;
  padding-block: 10px;
  border-bottom-color: #dce5ea;
  box-shadow: 0 8px 18px rgba(31, 48, 59, 0.1);
}

.unit-note-dialog.is-scrolled > .note-dialog-head .popup-kicker,
.unit-note-dialog.is-scrolled > .note-dialog-head .note-modal-add-button,
.unit-note-dialog.is-scrolled > .note-dialog-head .unit-key-badge {
  display: none;
}

.unit-note-dialog.is-scrolled > .note-dialog-head h2 {
  font-size: 1.22rem;
}

.unit-header-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 3px 0 0;
  color: #687983;
  font-size: 0.72rem;
  font-weight: 900;
}

#unitHeaderOccupancy[data-status="vacant"] {
  color: #11915d;
}

#unitHeaderOccupancy[data-status="occupied"] {
  color: #203844;
}

#unitHeaderActivity[data-tone="make-ready"] {
  color: var(--make-ready);
}

#unitHeaderActivity[data-tone="work-order"] {
  color: var(--work-order-new);
}

#unitHeaderActivity[data-tone="emergency"] {
  color: var(--emergency);
}

.key-pin-modal {
  z-index: 110;
}

.key-pin-dialog {
  width: min(360px, calc(100vw - 24px));
}

.key-pin-dialog input {
  min-height: 48px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-align: center;
}

.key-pin-error {
  min-height: 1.15em;
  margin: -4px 0 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.key-directory-modal {
  position: fixed;
  z-index: 50;
}

.key-directory-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.key-directory-search {
  display: grid;
  gap: 6px;
}

.key-directory-search span {
  color: #203844;
  font-size: 0.82rem;
  font-weight: 850;
}

.key-directory-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #203844;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 10px;
  font: inherit;
}

.key-directory-search input:focus {
  outline: 3px solid rgb(var(--accent-rgb) / 0.2);
  border-color: var(--accent);
}

.key-directory-summary {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.key-directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.key-directory-building {
  min-width: 0;
  overflow: hidden;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 12px;
}

.key-directory-building-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  background: #203844;
}

.key-directory-building-head h3,
.key-directory-building-head span {
  margin: 0;
}

.key-directory-building-head h3 {
  font-size: 1rem;
}

.key-directory-building-head span {
  color: #dbe8ee;
  font-size: 0.75rem;
  font-weight: 800;
}

.key-directory-units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.key-directory-entry {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #e1e8ed;
}

.key-directory-entry:nth-child(odd) {
  border-right: 1px solid #e1e8ed;
}

.key-directory-unit {
  color: #203844;
  font-size: 0.8rem;
  font-weight: 900;
}

.key-directory-number {
  color: #465d6a;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.key-directory-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px dashed #cbd8e2;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.note-form {
  display: grid;
  gap: 14px;
}

.note-field {
  display: grid;
  gap: 6px;
  color: #2b3a44;
  font-weight: 800;
}

.note-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.note-field-head > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-name-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-inline-button {
  min-height: 28px;
  padding: 5px 10px;
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.note-inline-button:hover,
.note-inline-button:focus-visible,
.note-inline-button[aria-pressed="true"] {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.note-inline-save {
  color: #0c5c26;
  background: #e8f8ee;
  border-color: #b8e3c7;
}

.note-field > span,
.status-field legend,
.note-category-field legend,
.note-side-field legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-field .required-indicator {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.note-template-field {
  display: grid;
  gap: 8px;
}

.note-template-field[hidden] {
  display: none;
}

.work-order-entry-field {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff8f1;
  border: 1px solid rgba(var(--work-order-rgb) / 0.28);
  border-radius: 8px;
}

.work-order-entry-field[hidden] {
  display: none;
}

.work-order-workflow-field {
  overflow: hidden;
  background: #fff8f1;
  border: 1px solid rgb(var(--work-order-rgb) / 0.3);
  border-radius: 15px;
}

.work-order-workflow-field[hidden] {
  display: none;
}

.work-order-workflow-field > summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #5f3211;
  background: rgb(var(--work-order-rgb) / 0.1);
  cursor: pointer;
  list-style: none;
}

.work-order-workflow-field > summary::-webkit-details-marker {
  display: none;
}

.work-order-workflow-field > summary::before {
  content: "+";
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--work-order);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 950;
}

.work-order-workflow-field[open] > summary::before {
  content: "−";
}

.work-order-workflow-field > summary > span {
  font-size: 0.88rem;
  font-weight: 950;
}

.work-order-workflow-field > summary > small {
  grid-column: 2;
  overflow: hidden;
  color: #76563e;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-order-workflow-body {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid rgb(var(--work-order-rgb) / 0.2);
}

.work-order-priority-field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.work-order-priority-field legend {
  padding: 0;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.work-order-priority-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.work-order-priority-options label {
  min-width: 0;
  cursor: pointer;
}

.work-order-priority-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.work-order-priority-options span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 7px;
  color: #4a3a2e;
  background: #fff;
  border: 1px solid #e0cdbf;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.work-order-priority-options input:focus-visible + span {
  outline: 3px solid rgb(var(--work-order-rgb) / 0.2);
}

.work-order-priority-options input[value="low"]:checked + span {
  color: #fff;
  background: var(--work-order-completed);
  border-color: var(--work-order-completed);
}

.work-order-priority-options input[value="normal"]:checked + span {
  color: #4a3700;
  background: var(--work-order-in-progress);
  border-color: var(--work-order-in-progress);
}

.work-order-priority-options input[value="high"]:checked + span {
  color: #fff;
  background: var(--work-order);
  border-color: var(--work-order);
}

.work-order-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.work-order-workflow-grid > * {
  min-width: 0;
}

.work-order-workflow-grid input,
.work-order-workflow-grid select {
  min-width: 0;
  max-width: 100%;
}

.work-order-workflow-field .note-field select {
  min-height: 42px;
  padding: 9px 10px;
  color: #263944;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 11px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.work-order-workflow-field .note-field select:focus {
  border-color: #c86a16;
  outline: 3px solid rgb(var(--work-order-rgb) / 0.16);
}

.work-order-assignee-field input[hidden] {
  display: none;
}

.work-order-assignee-field input:not([hidden]) {
  margin-top: 2px;
  border-radius: 11px;
}

.work-order-assignee-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  padding: 9px 10px;
  color: #31434d;
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 11px;
}

.work-order-assignee-detail[hidden] {
  display: none;
}

.work-order-assignee-detail strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-order-assignee-detail span {
  grid-column: 1;
  color: #697984;
  font-size: 0.68rem;
  font-weight: 800;
}

.work-order-assignee-detail a {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 7px 10px;
  color: #fff;
  background: #176c45;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.work-order-completion-field {
  display: grid;
  gap: 9px;
  padding: 10px;
  background: #eaf8ef;
  border: 1px solid #b6dec5;
  border-radius: 12px;
}

.work-order-completion-field[hidden] {
  display: none;
}

.work-order-completion-field > p {
  margin: 0;
  color: #47606c;
  font-size: 0.72rem;
  font-weight: 800;
}

.work-order-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.work-order-entry-head > span,
.entry-note-field span,
.work-order-resident-field span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-permission-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.entry-permission-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: #4e5c65;
  background: #fff;
  border: 1px solid #d8c8ba;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.entry-permission-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e8edf0;
  color: #60717c;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.entry-permission-icon::before {
  content: "?";
}

.entry-permission-toggle[data-entry-permission="yes"] .entry-permission-icon::before {
  content: "\2713";
}

.entry-permission-toggle[data-entry-permission="no"] .entry-permission-icon::before {
  content: "x";
}

.entry-permission-toggle[data-entry-permission="emergency"] .entry-permission-icon::before {
  content: "!";
}

.entry-permission-toggle[data-entry-permission="not-relevant"] .entry-permission-icon::before {
  content: "-";
}

.entry-permission-toggle.is-yes {
  color: #0b5e2a;
  background: #e8f8ee;
  border-color: #9ed7b1;
}

.entry-permission-toggle.is-yes .entry-permission-icon {
  color: #fff;
  background: #16a34a;
}

.entry-permission-toggle.is-no {
  color: #9f111c;
  background: #fff1f2;
  border-color: #e3a0a7;
}

.entry-permission-toggle.is-no .entry-permission-icon {
  color: #fff;
  background: #d8232f;
}

.entry-permission-toggle.is-emergency {
  color: #5b1b83;
  background: #f5edff;
  border-color: #caa9ee;
}

.entry-permission-toggle.is-emergency .entry-permission-icon {
  color: #fff;
  background: #7e22ce;
}

.entry-permission-toggle.is-not-relevant {
  color: #4f5861;
  background: #f1f3f5;
  border-color: #c8d0d7;
}

.entry-permission-toggle.is-not-relevant .entry-permission-icon {
  color: #fff;
  background: #7b8791;
}

.entry-permission-toggle:focus-visible {
  outline: 3px solid rgba(54, 117, 141, 0.22);
}

.entry-note-field {
  display: grid;
  gap: 7px;
}

.entry-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.entry-note-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.entry-notes-preview {
  min-height: 38px;
  padding: 9px 12px;
  color: #203844;
  background: #fff;
  border: 1px solid #d8c8ba;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.entry-notes-preview.is-empty {
  color: #768590;
  background: #f8fafb;
}

.entry-note-field.is-editing .entry-notes-preview {
  background: #fff;
  border-color: #36758d;
  box-shadow: 0 0 0 3px rgba(54, 117, 141, 0.14);
}

.entry-notes-edit-row {
  display: grid;
}

.entry-notes-edit-row[hidden] {
  display: none;
}

.entry-notes-edit-row input,
.work-order-resident-field input {
  min-height: 38px;
  border-radius: 14px;
}

.work-order-resident-field {
  display: grid;
  gap: 5px;
}

.work-order-resident-field[hidden] {
  display: none;
}

.note-card-linked {
  border-color: rgba(var(--garage-layer-rgb) / 0.34);
  background: #f6fbfc;
}

.note-template-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.note-template-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-template-head small {
  color: #768590;
  font-size: 0.75rem;
  font-weight: 800;
}

.note-template-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-template-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(19, 35, 45, 0.08);
}

.note-template-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note-template-button:hover,
.note-template-button:focus-visible {
  color: #fff;
  background: var(--general);
  border-color: var(--general);
  outline: none;
}

.schedule-note-dialog {
  width: min(480px, calc(100vw - 24px));
}

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

.note-field input,
.note-field textarea {
  width: 100%;
  border: 1px solid #b9c7d2;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.note-name-field input[readonly] {
  color: #52636f;
  background: #f6f9fb;
  cursor: default;
}

.note-name-editor {
  display: grid;
  gap: 8px;
  min-height: 50px;
  padding: 9px;
  background: #f6f9fb;
  border: 1px solid #d2dde6;
  border-radius: 8px;
}

.note-name-field.is-editing .note-name-editor {
  background: #fff;
  border-color: #36758d;
  box-shadow: 0 0 0 3px rgba(54, 117, 141, 0.16);
}

.note-name-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  min-width: 0;
}

.note-name-chip,
.note-name-empty {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.note-name-chip {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 7px 7px 11px;
  color: #12333f;
  background: #e7f7fb;
  border: 1px solid #bde7f0;
  border-radius: 10px;
}

.note-name-contact-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.note-name-edit-button {
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.note-name-edit-button:hover strong,
.note-name-edit-button:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.note-name-edit-button:focus-visible {
  outline: 2px solid #7ccfe1;
  outline-offset: 2px;
  border-radius: 6px;
}

.note-name-contact-text strong,
.note-name-contact-text small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-name-contact-text strong {
  font-size: 0.88rem;
}

.note-name-contact-text small {
  color: #52636f;
  font-size: 0.78rem;
  font-weight: 800;
}

.note-name-empty {
  padding: 4px 2px;
  color: #6a7a86;
}

.note-name-remove {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #31505d;
  background: #d5eef5;
  border: 0;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.note-name-remove:hover,
.note-name-remove:focus-visible {
  color: #fff;
  background: #203844;
  outline: none;
}

.note-name-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
  align-items: end;
  gap: 8px;
}

.note-name-add-row label {
  display: grid;
  gap: 4px;
}

.note-name-add-row label span {
  color: #5d6b75;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-name-add-row input {
  min-height: 38px;
}

.note-name-add-button {
  min-height: 38px;
  padding-inline: 13px;
}

.note-name-help {
  margin: -2px 0 0;
  color: #6a7a86;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 520px) {
  .note-name-add-row {
    grid-template-columns: 1fr;
  }
}

.note-field textarea {
  min-height: 130px;
  resize: vertical;
}

.rich-note-source {
  display: none;
}

.rich-note-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rich-note-tools button,
.rich-color-tool {
  min-width: 34px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.rich-note-tools button:hover,
.rich-note-tools button:focus-visible,
.rich-color-tool:focus-within {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.rich-tool-underline {
  text-decoration: underline;
}

.rich-tool-strike {
  text-decoration: line-through;
}

.rich-color-tool span {
  color: inherit;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.rich-color-tool input {
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.rich-note-editor {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c7d2;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
  overflow: auto;
}

.rich-note-editor:focus {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  border-color: #36758d;
}

.rich-note-editor:empty::before {
  content: "Add note details...";
  color: #8a98a2;
}

.rich-note-editor ul.note-checklist,
.note-card-body ul.note-checklist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.rich-note-editor .note-checklist li,
.note-card-body .note-checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 5px 0;
}

.rich-note-editor .note-checklist input[type="checkbox"],
.note-card-body .note-checklist input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #203844;
  cursor: pointer;
}

.rich-note-editor .note-checklist li.is-checked,
.note-card-body .note-checklist li.is-checked {
  opacity: 0.48;
  color: #6f7b84;
}

.rich-note-editor .note-checklist li.is-checked input[type="checkbox"],
.note-card-body .note-checklist li.is-checked input[type="checkbox"] {
  opacity: 0.85;
}

.note-field input:focus,
.note-field textarea:focus {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  border-color: #36758d;
}

.status-field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.note-category-field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.note-side-field {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.status-field legend,
.note-category-field legend,
.note-side-field legend {
  padding: 0;
  margin-bottom: 8px;
}

.status-options,
.note-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-side-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.status-options label,
.note-category-options label,
.note-side-options label {
  cursor: pointer;
}

.status-options input,
.note-category-options input,
.note-side-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-options span,
.note-category-options span {
  min-width: 112px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  background: #f8fafb;
  color: #24323b;
  font-weight: 800;
}

.note-side-options span {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  background: #f8fafb;
  color: #24323b;
  font-weight: 800;
}

.status-options input:focus-visible + span,
.note-category-options input:focus-visible + span,
.note-side-options input:focus-visible + span {
  outline: 3px solid rgba(54, 117, 141, 0.22);
}

.status-options input[value="occupied"]:checked + span {
  color: #fff;
  background: #203844;
  border-color: #203844;
}

.status-options input[value="vacant"]:checked + span {
  color: #fff;
  background: #0f9f6e;
  border-color: #0f9f6e;
}

.note-category-options input[value="task"]:checked + span {
  color: #fff;
  background: var(--task);
  border-color: var(--task);
}

.note-category-options input[value="work-order"]:checked + span {
  color: #fff;
  background: var(--work-order);
  border-color: var(--work-order);
}

.note-category-options input[value="general"]:checked + span {
  color: #fff;
  background: var(--general);
  border-color: var(--general);
}

.note-category-options input[value="make-ready"]:checked + span {
  color: #fff;
  background: var(--make-ready);
  border-color: var(--make-ready);
}

.note-category-options input[value="emergency"]:checked + span {
  color: #fff;
  background: var(--emergency);
  border-color: var(--emergency);
}

.note-side-options input[value="front"]:checked + span {
  color: #fff;
  background: var(--work-order);
  border-color: var(--accent);
}

.note-side-options input[value="back"]:checked + span {
  color: #fff;
  background: #6b168f;
  border-color: #6b168f;
}

.note-side-options input[value="right"]:checked + span {
  color: #fff;
  background: #20a928;
  border-color: #20a928;
}

.note-side-options input[value="left"]:checked + span {
  color: #fff;
  background: #d943b6;
  border-color: #d943b6;
}

.note-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.note-detail-actions {
  justify-content: end;
}

.note-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.note-secondary {
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
}

.note-save {
  color: #fff;
  background: #203844;
  border: 1px solid #203844;
}

.note-secondary:hover,
.note-secondary:focus-visible {
  background: #e0e9ef;
  outline: none;
}

.note-save:hover,
.note-save:focus-visible {
  background: #132932;
  outline: none;
}

.notes-list-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #dce5ec;
}

.notes-list-section h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notes-list {
  display: grid;
  gap: 10px;
}

.empty-notes {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px dashed #cbd8e2;
  border-radius: 6px;
  font-weight: 700;
}

.note-card {
  padding: 12px;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 6px;
}

.note-card.has-subnotes {
  position: relative;
  cursor: pointer;
}

.note-card.has-one-subnote {
  margin-bottom: 7px;
  box-shadow:
    5px 5px 0 -1px #edf3f6,
    5px 5px 0 0 #d7e1e9;
}

.note-card.has-two-subnotes {
  margin-bottom: 12px;
  box-shadow:
    5px 5px 0 -1px #edf3f6,
    5px 5px 0 0 #d7e1e9,
    10px 10px 0 -3px #f8fafb,
    10px 10px 0 -2px #d7e1e9;
}

.note-card.has-three-subnotes {
  margin-bottom: 18px;
  box-shadow:
    5px 5px 0 -1px #edf3f6,
    5px 5px 0 0 #d7e1e9,
    10px 10px 0 -3px #f8fafb,
    10px 10px 0 -2px #d7e1e9,
    15px 15px 0 -5px #edf3f6,
    15px 15px 0 -4px #d7e1e9;
}

.note-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.note-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.note-card h4 {
  margin: 0 0 8px;
  padding-bottom: 7px;
  color: #23313a;
  border-bottom: 1px solid #d7e1e9;
  font-size: 1rem;
}

.property-note-target h4 {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.note-card h4.property-title-category-general,
.property-note-group-summary h4.property-title-category-general {
  color: var(--general);
}

.note-card-actions .share-action-button,
.address-book-card-actions .share-action-button,
.generated-report-actions .share-action-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.note-card-actions .share-action-button::before,
.address-book-card-actions .share-action-button::before,
.generated-report-actions .share-action-button::before {
  left: 50%;
  bottom: 5px;
  width: 13px;
  height: 10px;
}

.note-card-actions .share-action-button::after,
.address-book-card-actions .share-action-button::after,
.generated-report-actions .share-action-button::after {
  top: 2px;
  width: 10px;
  height: 13px;
}

.address-book-card-themed .share-action-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.address-book-card-themed .share-action-button:focus-visible {
  color: #162a35;
  background: #fff;
  border-color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .address-book-card-themed .share-action-button:hover {
    color: #162a35;
    background: #fff;
    border-color: #fff;
  }
}

.note-card h4.property-title-category-make-ready,
.property-note-group-summary h4.property-title-category-make-ready {
  color: var(--make-ready);
}

.note-card h4.property-title-category-task,
.property-note-group-summary h4.property-title-category-task {
  color: var(--task);
}

.note-card h4.property-title-category-work-order,
.property-note-group-summary h4.property-title-category-work-order {
  color: var(--work-order);
}

.note-card h4.property-title-category-emergency,
.property-note-group-summary h4.property-title-category-emergency {
  color: var(--emergency);
}

.note-edit,
.note-delete,
.note-locate,
.note-add-subnote,
.note-end-day,
.note-schedule-button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.property-note-filter-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #203844;
  background: #f4f7f8;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.property-note-filter-button:hover,
.property-note-filter-button:focus-visible,
.property-note-filter-button[aria-expanded="true"] {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.note-edit,
.note-add-subnote {
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
}

.note-end-day {
  color: #fff;
  background: var(--make-ready);
  border: 1px solid var(--make-ready);
}

.note-locate {
  min-width: 32px;
  color: #fff;
  background: var(--pin);
  border: 1px solid var(--pin);
  font-size: 1rem;
  line-height: 1;
}

.note-schedule-button {
  min-width: 32px;
  color: #203844;
  background: #fff7df;
  border: 1px solid #e7c96a;
  font-size: 0.9rem;
  line-height: 1;
}

.note-locate:hover,
.note-locate:focus-visible {
  background: #552095;
  border-color: #552095;
  outline: none;
}

.note-add-subnote {
  min-width: 30px;
  padding: 0 8px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.note-delete {
  border: 1px solid #cbd8e2;
  color: #203844;
  background: #f8fafb;
}

.note-edit:hover,
.note-edit:focus-visible,
.note-schedule-button:hover,
.note-schedule-button:focus-visible,
.note-add-subnote:hover,
.note-add-subnote:focus-visible,
.note-end-day:hover,
.note-end-day:focus-visible {
  background: #e0e9ef;
  outline: none;
}

.note-end-day:hover,
.note-end-day:focus-visible {
  color: #fff;
  background: #6325c2;
  border-color: #6325c2;
}

.note-schedule-button:hover,
.note-schedule-button:focus-visible {
  background: #ffe8a3;
  border-color: #d4a90f;
}

.note-add-subnote:hover,
.note-add-subnote:focus-visible {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.note-delete:hover,
.note-delete:focus-visible {
  background: #e0e9ef;
  outline: none;
}

.note-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.note-meta-category {
  font-weight: 900;
}

.note-meta-category.property-title-category-general {
  color: var(--general);
}

.note-meta-category.property-title-category-make-ready {
  color: var(--make-ready);
}

.note-meta-category.property-title-category-task {
  color: var(--task);
}

.note-meta-category.property-title-category-work-order {
  color: var(--work-order);
}

.note-meta-category.property-title-category-emergency {
  color: var(--emergency);
}

.note-schedule-chip {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 6px 9px;
  display: grid;
  gap: 2px;
  color: #203844;
  background: #fff7df;
  border: 1px solid #ead28b;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.note-schedule-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.note-schedule-label::before {
  content: "\23f1  ";
}

.note-schedule-complete {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.note-schedule-complete input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1fa466;
  cursor: pointer;
}

.note-schedule-detail {
  color: #5f6f7b;
  font-size: 0.72rem;
  font-weight: 800;
}

.note-schedule-due-today {
  background: #fff0b8;
  border-color: #e0b516;
}

.note-schedule-overdue {
  color: #fff;
  background: var(--emergency);
  border-color: var(--emergency);
}

.note-schedule-overdue .note-schedule-detail {
  color: #ffe0e3;
}

.note-schedule-upcoming {
  background: #eef7ff;
  border-color: #b8d7ef;
}

.note-schedule-chip.is-complete {
  color: #0f5132;
  background: #e4f7eb;
  border-color: #71c994;
}

.note-schedule-chip.is-complete .note-schedule-detail {
  color: #27684b;
}

.make-ready-end-day-preview {
  display: grid;
  gap: 7px;
  padding: 10px;
  color: #293744;
  background: #f6f2ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.28);
  border-radius: 8px;
}

.make-ready-end-day-preview h3 {
  margin: 0;
  color: var(--make-ready);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.make-ready-end-day-preview ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  font-weight: 800;
}

.make-ready-end-day-empty {
  margin: 0;
  color: #64717a;
  font-size: 0.84rem;
  font-weight: 800;
}

.make-ready-log {
  margin: 12px 0 0;
}

.make-ready-log-summary {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--make-ready);
  background: #f6f2ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.28);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  list-style: none;
}

.make-ready-log-summary::-webkit-details-marker {
  display: none;
}

.make-ready-log-summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  margin-right: 5px;
  color: var(--make-ready);
  font-weight: 900;
}

.make-ready-log[open] > .make-ready-log-summary::before {
  content: "-";
}

.make-ready-log-summary:hover,
.make-ready-log-summary:focus-visible {
  background: #eee6ff;
  outline: none;
}

.make-ready-log-list {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.make-ready-log-entry {
  padding: 9px 10px;
  background: #fbf9ff;
  border: 1px solid #ded2f7;
  border-radius: 8px;
}

.make-ready-log-entry h5 {
  margin: 0 0 6px;
  color: var(--make-ready);
  font-size: 0.84rem;
}

.make-ready-log-entry ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
  color: #34424e;
  font-size: 0.84rem;
  font-weight: 800;
}

.make-ready-log-empty,
.make-ready-log-notes,
.make-ready-log-meta {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.make-ready-log-empty,
.make-ready-log-meta {
  color: #667580;
}

.make-ready-log-notes {
  color: #3d4852;
}

.make-ready-archive-progress {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px;
  background: #f8f4ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.32);
  border-radius: 8px;
}

.make-ready-archive-progress > h5 {
  margin: 0;
  color: var(--make-ready);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.make-ready-archive-progress .make-ready-log-list {
  margin-top: 0;
}

.make-ready-checklist-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  padding: 10px;
  background: rgb(var(--make-ready-rgb) / 0.08);
  border: 1px solid rgb(var(--make-ready-rgb) / 0.28);
  border-radius: 8px;
}

.make-ready-checklist-callout > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.make-ready-checklist-callout strong {
  color: var(--make-ready);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
}

.make-ready-checklist-callout span {
  color: #53626d;
  font-size: 0.78rem;
  font-weight: 800;
}

.make-ready-checklist-open {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  color: #fff;
  background: var(--make-ready);
  border: 1px solid var(--make-ready);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.make-ready-checklist-open:hover,
.make-ready-checklist-open:focus-visible {
  background: var(--make-ready);
  border-color: var(--make-ready);
  filter: brightness(0.82);
  outline: none;
}

.make-ready-outstanding {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 10px;
  color: #293944;
  background: rgb(var(--make-ready-rgb) / 0.05);
  border: 1px solid rgb(var(--make-ready-rgb) / 0.2);
  border-radius: 10px;
}

.make-ready-outstanding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.make-ready-outstanding-head strong {
  color: var(--make-ready);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.make-ready-outstanding-head > span {
  flex: 0 0 auto;
  color: #667681;
  font-size: 0.7rem;
  font-weight: 900;
}

.make-ready-outstanding-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e1d8ee;
  border-radius: 8px;
  overscroll-behavior: contain;
}

.make-ready-outstanding-group {
  display: grid;
  gap: 4px;
}

.make-ready-outstanding-group h5 {
  margin: 0;
  color: #566772;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.make-ready-outstanding-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.make-ready-outstanding-group li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px;
  background: #f7f5fb;
  border-radius: 7px;
}

.make-ready-outstanding-item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.make-ready-outstanding-item-text strong {
  font-size: 0.76rem;
  line-height: 1.25;
}

.make-ready-outstanding-item-text small {
  color: #61727d;
  font-size: 0.68rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.make-ready-outstanding-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #4a5963;
  background: #fff;
  border: 1px solid #d6dee3;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1.15;
}

.make-ready-outstanding-status.status-replace {
  color: #9a3412;
  background: #fff1e9;
  border-color: #fdba74;
}

.make-ready-outstanding-status.status-maint {
  color: #67520a;
  background: #fff8d8;
  border-color: #e6ca61;
}

.make-ready-outstanding-status.status-office {
  color: #28556c;
  background: #eaf6fb;
  border-color: #a9d3e5;
}

.make-ready-checklist-dialog {
  --make-ready-keyboard-inset: 0px;
  --make-ready-visible-height: 100vh;
  --make-ready-sticky-clearance: 116px;
  width: min(980px, calc(100vw - 24px));
  max-height: min(760px, calc(100% - 20px));
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-padding-bottom: calc(var(--make-ready-sticky-clearance) + 18px);
}

.make-ready-checklist-form {
  gap: 16px;
}

.make-ready-template-mode-banner,
.make-ready-template-merge-notice,
.make-ready-template-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f5efff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.3);
  border-radius: 14px;
}

.make-ready-template-mode-banner[hidden],
.make-ready-template-merge-notice[hidden],
.make-ready-template-tools[hidden] {
  display: none;
}

.make-ready-template-mode-banner > div,
.make-ready-template-tools > div {
  display: grid;
  gap: 2px;
}

.make-ready-template-mode-banner > div strong,
.make-ready-template-tools > div strong {
  color: var(--make-ready);
  font-size: 0.9rem;
  font-weight: 950;
}

.make-ready-template-mode-banner > div span,
.make-ready-template-tools > div span {
  color: #60707a;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.make-ready-template-default-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: #443257;
  background: #fff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.28);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.make-ready-template-default-toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--make-ready);
}

.make-ready-template-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #faf7ff;
}

.make-ready-template-tools .note-secondary {
  min-height: 38px;
  border-radius: 999px;
  white-space: nowrap;
}

.make-ready-template-merge-notice {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: #285b3e;
  background: #effaf3;
  border-color: #acd7ba;
}

.make-ready-template-merge-notice > span {
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.make-ready-checklist-dialog.is-keyboard-editing {
  scroll-padding-bottom: calc(var(--make-ready-sticky-clearance) + var(--make-ready-keyboard-inset) + 24px);
}

.make-ready-checklist-dialog.is-keyboard-editing .make-ready-checklist-form {
  padding-bottom: calc(var(--make-ready-sticky-clearance) + 12px);
}

.make-ready-checklist-summary,
.make-ready-checklist-panel,
.make-ready-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fbf9ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.22);
  border-radius: 8px;
}

.make-ready-setup-panel {
  padding: 0;
  overflow: hidden;
}

.make-ready-setup-panel[open] {
  background: #fff;
}

.make-ready-setup-summary h3 {
  flex: 1;
}

.make-ready-setup-body {
  padding: 0 12px 12px;
}

.make-ready-setup-body:not(.make-ready-field-grid) {
  display: grid;
  gap: 10px;
}

.make-ready-checklist-summary {
  background: #f5efff;
}

.make-ready-checklist-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.make-ready-checklist-summary span,
.make-ready-checklist-summary strong {
  color: var(--make-ready);
  font-weight: 900;
}

.make-ready-checklist-summary span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.make-ready-checklist-summary p {
  margin: 0;
  color: #53626d;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.make-ready-checklist-modal.is-template-mode .make-ready-checklist-summary {
  background: #fbf8ff;
}

.make-ready-checklist-modal.is-template-mode .make-ready-checklist-summary span,
.make-ready-checklist-modal.is-template-mode .make-ready-checklist-summary strong {
  color: #5a3b77;
}

.make-ready-checklist-modal.is-template-mode [data-make-ready-section-panel="appliances"] {
  display: none;
}

.make-ready-panel-head,
.make-ready-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.make-ready-panel-head h3,
.make-ready-section-head h3 {
  margin: 0;
  color: #203844;
  font-size: 1rem;
  letter-spacing: 0;
}

.make-ready-field-grid,
.make-ready-layout-grid,
.make-ready-appliance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.make-ready-turn-availability {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  background: #faf7ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.28);
  border-radius: 12px;
}

.make-ready-turn-availability legend {
  padding: 0 5px;
  color: #53626d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.make-ready-turn-availability-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.make-ready-turn-availability-options label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #40515c;
  background: #fff;
  border: 1px solid #d5dfe5;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.make-ready-turn-availability-options label:has(input:checked) {
  color: var(--make-ready);
  background: #f3ebff;
  border-color: rgb(var(--make-ready-rgb) / 0.62);
  box-shadow: 0 0 0 2px rgb(var(--make-ready-rgb) / 0.1);
}

.make-ready-field-grid .make-ready-turn-availability-options input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  padding: 0;
  accent-color: var(--make-ready);
}

.make-ready-field-grid .note-field > span small {
  color: #78868f;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.make-ready-vendor-schedule {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(145deg, #fbf8ff, #f4f9fb);
  border: 1px solid rgb(var(--make-ready-rgb) / 0.3);
  border-radius: 18px;
}

.make-ready-vendor-schedule-head,
.make-ready-vendor-date-head,
.make-ready-vendor-date-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.make-ready-vendor-schedule-head > div {
  display: grid;
  gap: 2px;
}

.make-ready-vendor-kicker {
  color: var(--make-ready);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.make-ready-vendor-schedule h4 {
  margin: 0;
  color: #203844;
  font-size: 1rem;
}

.make-ready-vendor-capacity,
.make-ready-vendor-date-head span {
  padding: 5px 9px;
  color: #53626d;
  background: #fff;
  border: 1px solid #d5dfe5;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 950;
  white-space: nowrap;
}

.make-ready-vendor-schedule-summary,
.make-ready-vendor-schedule-note {
  margin: 0;
  color: #526570;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.make-ready-vendor-date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.make-ready-vendor-date-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 11px;
  background: #fff;
  border: 1px solid #d6e0e7;
  border-radius: 15px;
}

.make-ready-vendor-date-card.is-suggested {
  border-style: dashed;
  border-color: #7f6ca7;
}

.make-ready-vendor-date-card.is-suggested.is-rush,
.make-ready-vendor-date-card.is-suggested.is-over-capacity {
  background: #fffaf0;
  border-color: #d9952d;
}

.make-ready-vendor-date-card.is-confirmed {
  border-color: #72b58c;
  box-shadow: 0 0 0 2px rgba(55, 143, 90, 0.08);
}

.make-ready-vendor-date-card.is-warning {
  background: #fffaf0;
  border-color: #e2a74c;
}

.make-ready-vendor-date-card.is-blocked {
  background: #fff7f7;
  border-color: #e0a4a4;
}

.make-ready-vendor-date-card.is-disabled {
  background: #f4f6f7;
  border-color: #d8e0e4;
  border-style: solid;
  box-shadow: none;
}

.make-ready-vendor-date-head label {
  color: #304854;
  font-size: 0.78rem;
  font-weight: 950;
}

.make-ready-vendor-needed-toggle {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.make-ready-field-grid .make-ready-vendor-needed-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: var(--make-ready);
}

.make-ready-vendor-date-label {
  color: #60717b;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.make-ready-vendor-date-head span[data-vendor-state="suggested"] {
  color: #6840a8;
  background: #f4edff;
  border-color: #c9b1ec;
}

.make-ready-vendor-date-head span[data-vendor-state="confirmed"] {
  color: #1f6b3d;
  background: #edf9f1;
  border-color: #afd8bc;
}

.make-ready-vendor-date-head span[data-vendor-state="warning"] {
  color: #875008;
  background: #fff2d7;
  border-color: #e7bc69;
}

.make-ready-vendor-date-head span[data-vendor-state="blocked"] {
  color: #8b3333;
  background: #fff0f0;
  border-color: #e6b5b5;
}

.make-ready-vendor-date-head span[data-vendor-state="disabled"] {
  color: #65747c;
  background: #edf1f3;
  border-color: #cfd8dd;
}

.make-ready-vendor-date-card.is-disabled .make-ready-vendor-date-input input {
  color: #849199;
  background: #edf1f3;
  cursor: not-allowed;
}

.make-ready-vendor-date-input {
  position: relative;
}

.make-ready-vendor-date-ghost {
  position: absolute;
  top: 50%;
  left: 11px;
  max-width: calc(100% - 54px);
  overflow: hidden;
  padding-right: 4px;
  color: #7c6a9f;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-50%);
}

.make-ready-vendor-date-input:not(.has-suggestion) .make-ready-vendor-date-ghost,
.make-ready-vendor-date-input.has-value .make-ready-vendor-date-ghost,
.make-ready-vendor-date-input:focus-within .make-ready-vendor-date-ghost {
  display: none;
}

.make-ready-vendor-date-footer {
  align-items: flex-start;
}

.make-ready-vendor-date-footer small {
  color: #63737d;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.35;
}

.make-ready-vendor-date-footer button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
}

.make-ready-layout-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.make-ready-section-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.make-ready-filter-panel {
  gap: 10px;
}

.make-ready-filter-count {
  color: var(--make-ready);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.make-ready-filter-field {
  max-width: 260px;
}

.make-ready-checkbox,
.make-ready-section-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #3d4b56;
  background: #fff;
  border: 1px solid #d6dfe7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.make-ready-checkbox input,
.make-ready-section-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--make-ready);
}

.make-ready-checklist-sections {
  display: grid;
  gap: 12px;
}

.make-ready-section {
  padding: 0;
  overflow: hidden;
}

.make-ready-section[open],
.make-ready-setup-panel[open] {
  background: #fff;
}

.make-ready-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.make-ready-section-summary::-webkit-details-marker,
.make-ready-setup-summary::-webkit-details-marker {
  display: none;
}

.make-ready-section-summary::before {
  content: "+";
  color: var(--make-ready);
  font-weight: 900;
}

.make-ready-section[open] > .make-ready-section-summary::before,
.make-ready-setup-panel[open] > .make-ready-setup-summary::before {
  content: "-";
}

.make-ready-section-summary h3 {
  flex: 1;
  margin: 0;
  color: #203844;
  font-size: 0.98rem;
}

.make-ready-section-count {
  color: var(--make-ready);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.make-ready-section-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.make-ready-item-grid {
  display: grid;
  gap: 7px;
}

.make-ready-item-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(230px, 0.95fr) minmax(150px, 0.8fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  margin-left: calc(var(--make-ready-depth, 0) * 18px);
  background: #f7fafb;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
}

.make-ready-item-row[hidden],
.make-ready-section[hidden] {
  display: none !important;
}

.make-ready-item-row.is-child-row {
  background: #fff;
  border-left: 4px solid rgb(var(--make-ready-rgb) / 0.38);
}

.make-ready-item-row.has-blocked-complete {
  background: #fffaf3;
  border-color: #f2d5a8;
}

.make-ready-item-row.has-child-rows {
  cursor: pointer;
}

.make-ready-item-row.is-parent-expanded {
  border-color: rgb(var(--make-ready-rgb) / 0.48);
  box-shadow: 0 0 0 2px rgb(var(--make-ready-rgb) / 0.08);
}

.make-ready-item-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #293744;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.25;
}

.make-ready-child-toggle {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--make-ready);
  background: rgb(var(--make-ready-rgb) / 0.1);
  border: 1px solid rgb(var(--make-ready-rgb) / 0.24);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.make-ready-item-row.is-child-row .make-ready-item-label {
  color: #53626d;
  font-size: 0.84rem;
}

.make-ready-item-row.is-child-row .make-ready-item-label::before {
  content: "> ";
  color: var(--make-ready);
}

.make-ready-status-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(38px, 1fr));
  gap: 6px;
  min-width: 0;
}

.make-ready-status-choice {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 6px;
  color: #41515d;
  background: #fff;
  border: 1px solid #cfdbe4;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.make-ready-status-choice input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  accent-color: var(--make-ready);
}

.make-ready-status-choice.is-selected {
  color: #1f3850;
  background: rgb(var(--make-ready-rgb) / 0.12);
  border-color: rgb(var(--make-ready-rgb) / 0.72);
  box-shadow: 0 0 0 2px rgb(var(--make-ready-rgb) / 0.1);
}

.make-ready-status-choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.54;
}

.make-ready-status-emoji {
  font-size: 1rem;
  line-height: 1;
}

.make-ready-item-row textarea,
.make-ready-field-grid input,
.make-ready-layout-grid select,
.make-ready-filter-field select,
.make-ready-appliance-grid input,
.make-ready-appliance-row input,
.make-ready-section-notes textarea {
  width: 100%;
  border: 1px solid #b9c7d2;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.make-ready-item-row textarea {
  min-height: 42px;
  max-height: 180px;
  overflow: hidden;
  resize: none;
  line-height: 1.35;
  white-space: pre-wrap;
}

.make-ready-item-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.make-ready-temp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.make-ready-temp-field {
  display: grid;
  gap: 4px;
}

.make-ready-temp-field span {
  color: #53626d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.make-ready-temp-field input {
  width: 100%;
  border: 1px solid #b9c7d2;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.make-ready-temp-standard {
  color: #64727d;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.25;
}

.make-ready-status-choice:has(input:focus-visible) {
  border-color: var(--make-ready);
  box-shadow: 0 0 0 3px rgb(var(--make-ready-rgb) / 0.14);
}

.make-ready-item-row textarea:focus,
.make-ready-field-grid input:focus,
.make-ready-layout-grid select:focus,
.make-ready-filter-field select:focus,
.make-ready-appliance-grid input:focus,
.make-ready-appliance-row input:focus,
.make-ready-temp-field input:focus,
.make-ready-section-notes textarea:focus {
  border-color: var(--make-ready);
  box-shadow: 0 0 0 3px rgb(var(--make-ready-rgb) / 0.14);
  outline: none;
}

.make-ready-section-notes {
  display: grid;
  gap: 6px;
}

.make-ready-section-notes span,
.make-ready-appliance-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.make-ready-appliance-section {
  display: grid;
  gap: 10px;
}

.make-ready-appliance-hint {
  margin: 0;
  color: #53626d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.make-ready-appliance-head,
.make-ready-appliance-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) repeat(4, minmax(90px, 1fr)) minmax(150px, 1.4fr);
  gap: 8px;
  align-items: center;
}

.make-ready-appliance-name {
  color: #293744;
  font-size: 0.86rem;
  font-weight: 900;
}

.make-ready-checklist-dialog .popup-actions {
  align-items: center;
}

.make-ready-print-button,
.make-ready-export-button,
.make-ready-save-progress {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
}

.make-ready-checklist-dialog .popup-actions .make-ready-print-button,
.make-ready-checklist-dialog .popup-actions .make-ready-export-button,
.make-ready-checklist-dialog .popup-actions .make-ready-save-progress {
  min-width: 58px;
  white-space: nowrap;
}

.make-ready-sticky-actions {
  position: sticky;
  bottom: -1px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgb(255 255 255 / 0.96);
  border: 1px solid #dce5ec;
  border-radius: 12px;
  box-shadow: 0 -10px 24px rgb(24 36 48 / 0.08);
  backdrop-filter: blur(10px);
}

.make-ready-sticky-actions > span {
  color: #53626d;
  font-size: 0.8rem;
  font-weight: 900;
}

.make-ready-sticky-actions > span[data-save-state="dirty"] {
  color: #8d5b16;
}

.make-ready-sticky-actions > span[data-save-state="saved"] {
  color: #25734b;
}

.make-ready-sticky-actions > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.make-ready-sticky-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.make-ready-print-area {
  display: none;
}

.reports-form {
  display: grid;
  gap: 14px;
}

.reports-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.reports-tab {
  min-height: 40px;
  padding: 8px 10px;
  color: #2c404b;
  background: #eef5f8;
  border: 1px solid #d5e3eb;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 950;
}

.reports-tab.is-active {
  color: #fff;
  background: #203844;
  border-color: #203844;
  box-shadow: 0 10px 22px rgba(32, 56, 68, 0.18);
}

.reports-generated-panel,
.generated-reports-list {
  display: grid;
  gap: 10px;
}

.reports-trends-panel {
  display: grid;
  gap: 12px;
}

.trends-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 12px;
  align-items: end;
}

.trends-range-field,
.trends-search-field {
  display: grid;
  gap: 5px;
  color: #53636d;
  font-size: 0.76rem;
  font-weight: 900;
}

.trends-range-field select,
.trends-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #203844;
  background: #fff;
  border: 1px solid #cad9e2;
  border-radius: 12px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
}

.trends-range-field select:focus,
.trends-search-field input:focus {
  border-color: #16869c;
  outline: 3px solid rgb(22 134 156 / 0.16);
}

.trends-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trends-summary-card {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 12px;
  color: #fff;
  background: linear-gradient(145deg, #203844, #2c5968);
  border: 1px solid #203844;
  border-radius: 15px;
  box-shadow: 0 10px 22px rgb(32 56 68 / 0.14);
}

.trends-summary-card strong {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 950;
  line-height: 1;
}

.trends-summary-card span {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 950;
}

.trends-summary-card small {
  overflow: hidden;
  opacity: 0.72;
  font-size: 0.67rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trends-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trends-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  color: #263944;
  background: #f7fafb;
  border: 1px solid #dce7ee;
  border-radius: 15px;
}

.trends-activity-card {
  grid-column: 1 / -1;
}

.trends-card-head {
  display: grid;
  gap: 2px;
}

.trends-card-head h4,
.trends-card-head p {
  margin: 0;
}

.trends-card-head h4 {
  color: #203844;
  font-size: 0.92rem;
  font-weight: 950;
}

.trends-card-head p {
  color: #687983;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.trends-locations-head,
.trends-records-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.trends-locations-head .note-secondary,
.trends-records-head .note-secondary {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.trends-bars,
.trends-location-list,
.trends-record-list {
  display: grid;
  gap: 7px;
}

.trends-bar-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(84px, 0.8fr) minmax(90px, 1.25fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  color: #2a404b;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
}

.trends-bar-row:hover,
.trends-bar-row:focus-visible {
  background: #eaf3f6;
  outline: 2px solid rgb(22 134 156 / 0.22);
}

.trends-bar-label {
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trends-bar-track {
  height: 10px;
  overflow: hidden;
  background: #dfeaed;
  border-radius: 999px;
}

.trends-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #16869c, #27b2bd);
  border-radius: inherit;
}

.trends-bar-row.work-order-status-new .trends-bar-fill {
  background: var(--work-order-new);
}

.trends-bar-row.work-order-status-assigned .trends-bar-fill {
  background: var(--work-order-assigned);
}

.trends-bar-row.work-order-status-in-progress .trends-bar-fill {
  background: var(--work-order-in-progress);
}

.trends-bar-row.work-order-status-waiting .trends-bar-fill {
  background: var(--work-order-waiting);
}

.trends-bar-row.work-order-status-completed .trends-bar-fill {
  background: var(--work-order-completed);
}

.trends-activity-bars .trends-bar-fill {
  background: linear-gradient(90deg, #7c3aed, #a86ff2);
}

.trends-bar-row > strong {
  color: #203844;
  font-size: 0.78rem;
  font-weight: 950;
  text-align: right;
}

.trends-location-row,
.trends-record-card {
  width: 100%;
  color: #273b46;
  background: #fff;
  border: 1px solid #d6e2e9;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
}

.trends-location-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  padding: 9px;
}

.trends-location-row:hover,
.trends-location-row:focus-visible,
.trends-record-card:hover,
.trends-record-card:focus-visible {
  border-color: #63adbb;
  box-shadow: 0 8px 18px rgb(19 35 45 / 0.08);
  outline: 2px solid rgb(22 134 156 / 0.16);
}

.trends-location-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #203844;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 950;
}

.trends-location-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.trends-location-body strong,
.trends-location-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trends-location-body strong {
  font-size: 0.82rem;
  font-weight: 950;
}

.trends-location-body small,
.trends-record-card small {
  color: #687984;
  font-size: 0.69rem;
  font-weight: 800;
}

.trends-location-count {
  color: #16869c;
  font-size: 1rem;
  font-weight: 950;
  text-align: right;
}

.trends-record-card {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.trends-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trends-record-head > strong {
  min-width: 0;
  overflow: hidden;
  color: #203844;
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trends-record-head > span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 950;
}

.trends-record-head .is-active {
  color: #8a4a15;
  background: #fff1dc;
}

.trends-record-head .is-completed {
  color: #17613a;
  background: #e5f6ec;
}

.trends-record-subject {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trends-empty {
  margin: 0;
  padding: 10px;
  color: #6b7b85;
  background: #fff;
  border: 1px dashed #cad8df;
  border-radius: 11px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.generated-report-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  color: #263944;
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(19, 35, 45, 0.06);
}

.generated-report-card-body {
  display: grid;
  gap: 4px;
}

.generated-report-card h4,
.generated-report-card p {
  margin: 0;
}

.generated-report-card h4 {
  color: #203844;
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.2;
}

.generated-report-card p {
  color: #60717b;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.generated-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.generated-report-actions .note-secondary {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.generated-report-delete {
  color: #8b1f22;
  background: #fff0f0;
  border-color: #efc1c2;
}

.reports-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7fafb;
  border: 1px solid #dce7ee;
  border-radius: 14px;
}

.reports-section-head {
  display: grid;
  gap: 3px;
}

.reports-section-head h3,
.report-preview-section h3 {
  margin: 0;
  color: #203844;
  font-size: 1rem;
  letter-spacing: 0;
}

.reports-section-head p {
  margin: 0;
  color: #65737e;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.reports-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reports-type-card {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  color: #263944;
  background: #fff;
  border: 1px solid #d4e0e8;
  border-radius: 14px;
  cursor: pointer;
}

.reports-type-card input {
  position: absolute;
  inset: 10px 10px auto auto;
  accent-color: #203844;
}

.reports-type-card:has(input:checked) {
  color: #fff;
  background: #203844;
  border-color: #203844;
  box-shadow: 0 12px 28px rgba(32, 56, 68, 0.2);
}

.reports-type-card span {
  max-width: calc(100% - 22px);
  font-size: 0.95rem;
  font-weight: 950;
}

.reports-type-card small {
  color: inherit;
  opacity: 0.76;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.reports-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.reports-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reports-option-grid label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #293944;
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.reports-option-grid input {
  flex: 0 0 auto;
  accent-color: #203844;
}

.reports-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 12px 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 42%);
}

.report-preview-dialog .popup-actions {
  align-items: center;
  flex-wrap: wrap;
}

.report-preview-dialog .share-action-button {
  width: 34px;
  height: 34px;
}

.report-back-button,
.report-save-button,
.report-print-button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.report-save-button {
  color: #0c5c26;
  background: #e8f8ee;
  border-color: #b8e3c7;
}

.report-print-button {
  color: #17436b;
  background: #e9f3fb;
  border-color: #bad7ec;
}

.report-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.report-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #263944;
  background: #eef4f7;
  border: 1px solid #d9e5ec;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.report-preview-body,
.report-preview-section {
  display: grid;
  gap: 10px;
}

.report-preview-section {
  padding: 12px;
  background: #f8fbfc;
  border: 1px solid #dce7ee;
  border-radius: 14px;
}

.report-note-card,
.report-contact-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  color: #263944;
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(19, 35, 45, 0.06);
}

.report-note-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.report-note-card h4,
.report-contact-card h4 {
  margin: 0;
  color: #203844;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.report-note-head span {
  flex: 0 0 auto;
  max-width: 44%;
  padding: 4px 8px;
  color: #203844;
  background: #eef4f7;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 950;
  text-align: right;
}

.report-note-meta,
.report-note-body,
.report-note-detail,
.report-empty,
.report-subnote-list {
  margin: 0;
  color: #4d5f6a;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.42;
}

.report-note-meta {
  color: #63727d;
  font-size: 0.76rem;
  font-weight: 900;
}

.report-note-body {
  color: #263944;
  white-space: pre-wrap;
}

.report-note-detail {
  padding: 8px;
  background: #f1f6f8;
  border-radius: 10px;
}

.report-subnote-list {
  padding-left: 20px;
}

.report-structured-block {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fbfdfe;
  border: 1px solid #dce7ee;
  border-radius: 12px;
}

.report-structured-block h5 {
  margin: 0;
  color: #203844;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-structured-block.is-compact {
  padding: 8px;
}

.report-appliance-doc {
  display: grid;
  gap: 7px;
  padding: 9px;
  background: #f7fbfc;
  border: 1px solid #d8e6ed;
  border-radius: 12px;
}

.report-appliance-doc h5 {
  margin: 0;
  color: #203844;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.report-appliance-table {
  width: 100%;
  border-collapse: collapse;
  color: #263944;
  font-size: 0.78rem;
  line-height: 1.25;
}

.report-appliance-table th,
.report-appliance-table td {
  padding: 4px 5px;
  border-bottom: 1px solid #dce7ee;
  text-align: left;
  vertical-align: top;
}

.report-appliance-table th {
  color: #50636e;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-appliance-table td:first-child {
  font-weight: 950;
}

.report-structured-group {
  display: grid;
  gap: 5px;
  padding-left: 10px;
  border-left: 3px solid #c8d8e2;
}

.report-structured-group > strong {
  width: fit-content;
  padding: 3px 8px;
  color: #203844;
  background: #e9f2f6;
  border: 1px solid #d4e2ea;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.12;
}

.report-structured-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 22px;
}

.report-structured-list li {
  padding-left: 2px;
  color: #263944;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.38;
}

.report-structured-list li::marker {
  color: #36758d;
}

.report-structured-list span {
  font-weight: 850;
}

.report-structured-list em {
  display: block;
  margin-top: 2px;
  color: #586977;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 720;
}

.report-empty {
  padding: 12px;
  color: #65737e;
  background: #fff;
  border: 1px dashed #cbd9e1;
  border-radius: 12px;
}

.share-packet-form {
  display: grid;
  gap: 12px;
}

.share-packet-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7fafb;
  border: 1px solid #dce7ee;
  border-radius: 14px;
}

.report-note-card.work-order-status-new {
  border-left: 5px solid var(--work-order-new);
}

.report-note-card.work-order-status-assigned {
  border-left: 5px solid var(--work-order-assigned);
}

.report-note-card.work-order-status-in-progress {
  border-left: 5px solid var(--work-order-in-progress);
}

.report-note-card.work-order-status-waiting {
  border-left: 5px solid var(--work-order-waiting);
}

.report-note-card.work-order-status-completed {
  border-left: 5px solid var(--work-order-completed);
}

.share-packet-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-packet-type-card {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  color: #263944;
  background: #fff;
  border: 1px solid #d4e0e8;
  border-radius: 14px;
  cursor: pointer;
}

.share-packet-type-card input {
  position: absolute;
  inset: 10px 10px auto auto;
  accent-color: #203844;
}

.share-packet-type-card:has(input:checked) {
  color: #fff;
  background: #203844;
  border-color: #203844;
  box-shadow: 0 12px 28px rgba(32, 56, 68, 0.2);
}

.share-packet-type-card span {
  max-width: calc(100% - 22px);
  font-size: 0.94rem;
  font-weight: 950;
}

.share-packet-type-card small {
  color: inherit;
  opacity: 0.78;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.35;
}

.share-packet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-packet-options label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #293944;
  background: #fff;
  border: 1px solid #d8e3ea;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.share-packet-options input {
  accent-color: #203844;
}

.share-packet-review,
.share-packet-warning,
.share-fallback-message,
.share-fallback-preview {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.share-packet-review {
  color: #203844;
  background: #eef6f8;
  border: 1px solid #c9e0e7;
}

.share-packet-warning {
  color: #713f00;
  background: #fff4d7;
  border: 1px solid #e8cf89;
}

.share-fallback-message {
  margin: 0 0 10px;
  color: #4c5f69;
  background: #f4f7f8;
  border: 1px solid #d8e3ea;
}

.share-fallback-preview {
  max-height: 220px;
  overflow: auto;
  color: #263944;
  background: #fff;
  border: 1px solid #d8e3ea;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.share-packet-actions,
.share-fallback-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 42%);
}

@media (max-width: 520px) {
  .reports-type-grid,
  .reports-option-grid {
    grid-template-columns: 1fr;
  }

  .reports-type-card {
    min-height: 82px;
  }

  .reports-actions {
    position: static;
    padding-top: 0;
    background: transparent;
  }

  .generated-report-card {
    grid-template-columns: 1fr;
  }

  .generated-report-actions {
    justify-content: stretch;
  }

  .generated-report-actions .note-secondary {
    flex: 1 1 120px;
  }

  .reports-tabs {
    gap: 5px;
  }

  .reports-tab {
    padding-inline: 6px;
    font-size: 0.74rem;
  }

  .trends-intro,
  .trends-chart-grid,
  .trends-locations-head,
  .trends-records-head {
    grid-template-columns: 1fr;
  }

  .trends-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trends-locations-head .note-secondary,
  .trends-records-head .note-secondary {
    justify-self: start;
  }

  .trends-bar-row {
    grid-template-columns: minmax(78px, 0.85fr) minmax(70px, 1fr) 24px;
    gap: 6px;
  }

  .report-preview-meta {
    display: grid;
  }

  .report-preview-meta span {
    justify-content: start;
  }
}

@media (hover: none), (pointer: coarse) {
  .share-icon-button:hover {
    color: #203844;
    background: #eef3f6;
    border-color: #cbd8e2;
  }

  .header-tool-button.share-icon-button:hover {
    color: #203844;
    background: #f8fafb;
    border-color: #cbd8e2;
  }

  .address-book-card-themed .share-action-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.34);
  }
}

.make-ready-print-document {
  padding: 18px;
  color: #111;
  background: #fff;
  font-family: Arial, sans-serif;
}

.make-ready-print-document h1 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0;
}

.make-ready-print-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
}

.make-ready-print-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  table-layout: fixed;
}

.make-ready-print-data-table th,
.make-ready-print-data-table td {
  padding: 4px 5px;
  border: 1px solid #333;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.make-ready-print-data-table th {
  background: #ececec;
  font-size: 8px;
  text-transform: uppercase;
}

.make-ready-print-data-table thead {
  display: table-header-group;
}

.make-ready-print-status {
  font-weight: 800;
}

.make-ready-print-note {
  color: #333;
}

.make-ready-print-item {
  padding-left: calc(4px + (var(--make-ready-print-depth, 0) * 14px)) !important;
}

.is-child-row .make-ready-print-item {
  color: #333;
  font-style: italic;
}

.is-section-note-row {
  background: #f7f7f7;
}

@media (max-width: 720px) {
  .make-ready-field-grid,
  .make-ready-layout-grid,
  .make-ready-appliance-grid,
  .make-ready-item-row,
  .make-ready-appliance-head,
  .make-ready-appliance-row {
    grid-template-columns: 1fr;
  }

  .make-ready-turn-availability-options {
    grid-template-columns: 1fr;
  }

  .make-ready-vendor-schedule-head,
  .make-ready-vendor-date-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .make-ready-vendor-date-grid {
    grid-template-columns: 1fr;
  }

  .make-ready-vendor-date-footer button {
    width: 100%;
  }

  .make-ready-appliance-head {
    display: none;
  }

  .make-ready-status-choices {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }

  .make-ready-sticky-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .make-ready-sticky-actions > div {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
    width: 100%;
  }

}

.emergency-note-location {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 5px 9px;
  color: var(--emergency-dark);
  background: #fff0f2;
  border: 1px solid #e0b9bf;
  border-radius: 5px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.note-card-body {
  margin: 7px 0 0;
  color: #4c5963;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.note-card-body ul,
.note-card-body ol {
  margin: 6px 0 0 20px;
  padding: 0;
}

.note-card-body ul.note-checklist {
  margin-left: 0;
}

.note-card-body li {
  margin: 2px 0;
}

.subnote-umbrella {
  margin: 12px 0 0;
}

.subnote-umbrella-summary {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  list-style: none;
}

.subnote-umbrella-summary::-webkit-details-marker {
  display: none;
}

.subnote-umbrella-summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  margin-right: 5px;
  color: var(--accent);
  font-weight: 900;
}

.subnote-umbrella[open] > .subnote-umbrella-summary::before {
  content: "-";
}

.subnote-umbrella-summary:hover,
.subnote-umbrella-summary:focus-visible {
  background: #e0e9ef;
  outline: none;
}

.subnote-list {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 12px 0 0 18px;
  padding-left: 14px;
}

.subnote-list::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: 14px;
  left: 0;
  width: 2px;
  background: #cbd8e2;
}

.subnote-list::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 18px;
  border-bottom: 2px solid #cbd8e2;
  border-left: 2px solid #cbd8e2;
  border-bottom-left-radius: 7px;
}

.subnote-card {
  position: relative;
  background: #fff;
}

.subnote-card::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -14px;
  width: 14px;
  border-top: 2px solid #cbd8e2;
}

.property-notes-modal {
  position: fixed;
  z-index: 40;
}

#addEmergencyNoteModal {
  position: fixed;
  z-index: 60;
}

#makeReadyEndDayModal {
  position: fixed;
  z-index: 60;
}

.settings-modal {
  position: fixed;
  z-index: 50;
}

.pool-tools-modal {
  position: fixed;
  z-index: 50;
}

.settings-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.pool-tools-dialog {
  width: min(840px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.restore-preview-dialog {
  width: min(700px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.restore-preview-body {
  display: grid;
  gap: 12px;
}

.restore-preview-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #203844;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.restore-preview-summary h3 {
  margin: 0;
  font-size: 1rem;
}

.restore-preview-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.restore-preview-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.restore-preview-counts span {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.restore-preview-counts strong {
  color: #203844;
  font-size: 1.05rem;
}

.restore-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.restore-mode-button {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  text-align: left;
}

.restore-mode-button strong,
.restore-mode-button span {
  display: block;
}

.restore-mode-button span {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.settings-form,
.settings-section {
  display: grid;
  gap: 14px;
}

.settings-section {
  padding: 14px;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.settings-accordion {
  display: block;
}

.settings-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
}

.settings-accordion-summary::-webkit-details-marker {
  display: none;
}

.settings-accordion-summary:focus-visible {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  outline-offset: 4px;
  border-radius: 8px;
}

.settings-accordion-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #203844;
  background: #eef3f6;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
}

.settings-accordion-icon::before {
  content: "+";
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.settings-accordion[open] .settings-accordion-icon::before {
  content: "-";
}

.settings-section-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d7e1e9;
}

.storage-diagnostics-list {
  display: grid;
  gap: 8px;
}

.storage-diagnostic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.storage-diagnostic-row strong {
  color: #203844;
  font-size: 0.88rem;
}

.storage-diagnostic-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.storage-diagnostic-row.is-warning {
  border-color: rgb(var(--work-order-in-progress-rgb) / 0.7);
  background: #fff9db;
}

.storage-diagnostic-row.is-error {
  border-color: rgb(var(--emergency-rgb) / 0.55);
  background: #fff1f2;
}

.pool-tools-form,
.pool-tool-section {
  display: grid;
  gap: 14px;
}

.settings-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.pool-tool-section {
  padding: 14px;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.pool-tool-section-head {
  display: grid;
  gap: 4px;
}

.pool-tool-section-head h3 {
  margin: 0;
  color: #23313a;
  font-size: 1.05rem;
}

.pool-tool-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.settings-section-body .note-secondary {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.settings-danger-section {
  background: #fff7f7;
  border-color: #e7c7c7;
}

.settings-clear-notes {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.settings-section h3 {
  margin: 0 0 4px;
  color: #23313a;
  font-size: 1.05rem;
}

.settings-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.topic-icon-key-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.topic-icon-key-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.topic-icon-key-actions .note-secondary {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.topic-icon-key-row {
  display: grid;
  grid-template-columns: minmax(48px, 0.18fr) minmax(130px, 0.55fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 9px;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.topic-icon-key-field {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.topic-icon-key-field span {
  color: #5d6b75;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-icon-key-field input,
.topic-icon-key-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 9px;
  color: #23313a;
  background: #f8fafb;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  font-weight: 800;
}

.topic-icon-key-field textarea {
  resize: vertical;
  min-height: 36px;
  line-height: 1.25;
}

.topic-icon-key-field input:focus,
.topic-icon-key-field textarea:focus {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  border-color: #36758d;
}

.topic-icon-key-emoji-field input {
  text-align: center;
  font-size: 1.05rem;
}

.topic-icon-remove {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.settings-color-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-color-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(92px, 104px);
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.settings-color-label {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #23313a;
  font-weight: 900;
}

.settings-color-label small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.settings-color-row input[type="color"] {
  width: 42px;
  height: 34px;
  padding: 2px;
  border: 1px solid #b9c7d2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.settings-color-row input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  color: #23313a;
  background: #fff;
  border: 1px solid #b9c7d2;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-color-row input:focus {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  border-color: #36758d;
}

.pool-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.note-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9c7d2;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.note-field select:focus {
  outline: 3px solid rgba(54, 117, 141, 0.22);
  border-color: #36758d;
}

.pool-result {
  min-height: 72px;
  padding: 12px;
  color: #203844;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.45;
}

.pool-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pool-guide-grid article {
  padding: 12px;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.pool-guide-grid h4 {
  margin: 0 0 6px;
  color: #23313a;
  font-size: 0.95rem;
}

.pool-guide-grid p {
  margin: 0;
  color: #2b3a44;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.pool-safety-note {
  padding: 12px;
  color: #17374a;
  background: rgb(var(--pool-rgb) / 0.12);
  border: 1px solid rgb(var(--pool-rgb) / 0.35);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.pool-source-links {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.pool-source-links a {
  color: #0d5f78;
}

.property-notes-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.property-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.property-filter-button {
  position: relative;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  color: #203844;
  background: #f8fafb;
  cursor: pointer;
  font-weight: 800;
}

.property-filter-button:hover,
.property-filter-button:focus-visible,
.property-filter-button.is-active {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.property-filter-emergency:hover,
.property-filter-emergency:focus-visible,
.property-filter-emergency.is-active {
  color: #fff;
  background: var(--emergency);
  border-color: var(--emergency);
}

.property-filter-work-order:hover,
.property-filter-work-order:focus-visible,
.property-filter-work-order.is-active {
  color: #fff;
  background: var(--work-order);
  border-color: var(--work-order);
}

.property-filter-task:hover,
.property-filter-task:focus-visible,
.property-filter-task.is-active {
  color: #fff;
  background: var(--task);
  border-color: var(--task);
}

.property-filter-general:hover,
.property-filter-general:focus-visible,
.property-filter-general.is-active {
  color: #fff;
  background: var(--general);
  border-color: var(--general);
}

.property-filter-make-ready:hover,
.property-filter-make-ready:focus-visible,
.property-filter-make-ready.is-active {
  color: #fff;
  background: var(--make-ready);
  border-color: var(--make-ready);
}

.property-filter-scheduled:hover,
.property-filter-scheduled:focus-visible,
.property-filter-scheduled.is-active,
.property-filter-upcoming:hover,
.property-filter-upcoming:focus-visible,
.property-filter-upcoming.is-active {
  color: #203844;
  background: #fff0b8;
  border-color: #e0b516;
}

.property-filter-due-today:hover,
.property-filter-due-today:focus-visible,
.property-filter-due-today.is-active {
  color: #203844;
  background: var(--work-order-in-progress);
  border-color: var(--work-order-in-progress);
}

.property-filter-overdue:hover,
.property-filter-overdue:focus-visible,
.property-filter-overdue.is-active {
  color: #fff;
  background: var(--emergency);
  border-color: var(--emergency);
}

.property-filter-archived:hover,
.property-filter-archived:focus-visible,
.property-filter-archived.is-active {
  color: #fff;
  background: #5f6f7b;
  border-color: #5f6f7b;
}

.property-filter-count {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(19, 35, 45, 0.2);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.work-order-queue-panel {
  display: grid;
  gap: 9px;
  padding: 11px;
  color: #4d321d;
  background: #fff8f1;
  border: 1px solid rgb(var(--work-order-rgb) / 0.28);
  border-radius: 15px;
}

.work-order-queue-panel[hidden] {
  display: none;
}

.make-ready-readiness-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  color: #293944;
  background: #fbf8ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.3);
  border-radius: 16px;
}

.make-ready-readiness-panel[hidden] {
  display: none;
}

.make-ready-template-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 11px 12px;
  color: #443257;
  background: #f7f1ff;
  border: 1px solid rgb(var(--make-ready-rgb) / 0.3);
  border-radius: 15px;
}

.make-ready-template-launcher[hidden] {
  display: none;
}

.make-ready-template-launcher > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.make-ready-template-launcher strong {
  color: var(--make-ready);
  font-size: 0.86rem;
  font-weight: 950;
}

.make-ready-template-launcher span {
  color: #687680;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.make-ready-template-launcher button {
  flex: 0 0 auto;
  border-radius: 999px;
  white-space: nowrap;
}

.make-ready-templates-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(780px, calc(100dvh - 24px));
}

.make-ready-templates-help,
.make-ready-template-merge-summary,
.make-ready-template-merge-safety {
  margin: 0 0 12px;
  color: #5b6973;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.make-ready-templates-list {
  display: grid;
  gap: 10px;
}

.make-ready-template-empty {
  display: grid;
  gap: 8px;
  padding: 22px 16px;
  color: #61717b;
  background: #faf8fc;
  border: 1px dashed #cfc5d9;
  border-radius: 15px;
  text-align: center;
}

.make-ready-template-empty strong {
  color: #49315f;
  font-size: 1rem;
}

.make-ready-template-empty span {
  font-size: 0.82rem;
  font-weight: 800;
}

.make-ready-template-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ded6e6;
  border-left: 5px solid var(--make-ready);
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(61, 40, 80, 0.07);
}

.make-ready-template-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.make-ready-template-card-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.make-ready-template-card-title strong {
  color: #293944;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.make-ready-template-card-title span {
  color: #6b7881;
  font-size: 0.74rem;
  font-weight: 800;
}

.make-ready-template-default-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #5d278e;
  background: #f2e7ff;
  border: 1px solid #d4b8ed;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.make-ready-template-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.make-ready-template-stats span,
.make-ready-template-merge-counts span {
  padding: 5px 8px;
  color: #4f5e68;
  background: #f1f4f6;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.make-ready-template-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.make-ready-template-card-actions button {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.make-ready-template-merge-dialog {
  width: min(650px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 24px));
}

.make-ready-template-merge-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.make-ready-template-conflict-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.make-ready-template-conflict-options fieldset {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 10px;
  background: #faf8fc;
  border: 1px solid #ddd4e5;
  border-radius: 13px;
}

.make-ready-template-conflict-options .make-ready-template-layout-conflict {
  grid-column: 1 / -1;
}

.make-ready-template-layout-summary {
  margin: 0;
  color: #66747e;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
}

.make-ready-template-conflict-options legend {
  padding: 0 5px;
  color: #49315f;
  font-size: 0.76rem;
  font-weight: 950;
}

.make-ready-template-conflict-options label {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: #43535e;
  background: #fff;
  border: 1px solid #d7dfe4;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 850;
}

.make-ready-template-conflict-options input {
  accent-color: var(--make-ready);
}

@media (max-width: 720px) {
  .make-ready-template-tools,
  .make-ready-template-merge-notice,
  .make-ready-template-conflict-options {
    grid-template-columns: 1fr;
  }

  .make-ready-template-tools .note-secondary,
  .make-ready-template-merge-notice .note-secondary {
    width: 100%;
  }

  .make-ready-template-card-head {
    display: grid;
  }

  .make-ready-template-card-actions {
    justify-content: start;
  }
}

.make-ready-readiness-head {
  display: grid;
  gap: 10px;
}

.make-ready-readiness-head > div:first-child {
  display: grid;
  gap: 2px;
}

.make-ready-readiness-head > div:first-child > strong {
  color: var(--make-ready);
  font-size: 0.92rem;
  font-weight: 950;
}

.make-ready-readiness-head > div:first-child > span {
  color: #667681;
  font-size: 0.72rem;
  font-weight: 800;
}

.make-ready-readiness-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.make-ready-readiness-total {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 7px;
  color: #42535e;
  background: #fff;
  border: 1px solid #ddd6e7;
  border-radius: 10px;
  text-align: center;
}

.make-ready-readiness-total strong {
  font-size: 0.9rem;
  font-weight: 950;
}

.make-ready-readiness-total span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.61rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.make-ready-readiness-total.status-blocked {
  color: #a1121d;
  background: #fff1f2;
  border-color: #efb2b8;
}

.make-ready-readiness-total.status-upcoming {
  color: #334155;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.make-ready-readiness-total.status-available {
  color: #6526aa;
  background: #f5edff;
  border-color: #d2b7ef;
}

.make-ready-readiness-total.status-needs-attention {
  color: #8b4109;
  background: #fff5e8;
  border-color: #efc18f;
}

.make-ready-readiness-total.status-on-track {
  color: #14633c;
  background: #ecf9f1;
  border-color: #a9d8ba;
}

.make-ready-readiness-total.status-ready {
  color: #075766;
  background: #e8f7fa;
  border-color: #a5d8df;
}

.make-ready-readiness-list {
  display: grid;
  gap: 9px;
}

.make-ready-readiness-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd6e7;
  border-left: 5px solid #7f8d97;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(45, 29, 63, 0.06);
}

.make-ready-readiness-card.status-blocked {
  border-left-color: #d8232f;
}

.make-ready-readiness-card.status-upcoming {
  border-left-color: var(--make-ready-upcoming);
}

.make-ready-readiness-card.status-available {
  border-left-color: var(--make-ready);
}

.make-ready-readiness-card.status-needs-attention {
  border-left-color: #f97316;
}

.make-ready-readiness-card.status-on-track {
  border-left-color: #17a66a;
}

.make-ready-readiness-card.status-ready {
  border-left-color: #0b7280;
}

.make-ready-readiness-card-head,
.make-ready-readiness-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.make-ready-readiness-card-head > strong {
  color: #203844;
  font-size: 0.96rem;
  font-weight: 950;
}

.make-ready-readiness-state {
  padding: 5px 8px;
  color: #4b5c66;
  background: #eef3f6;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 950;
  text-transform: uppercase;
}

.make-ready-readiness-state.status-blocked {
  color: #fff;
  background: #d8232f;
}

.make-ready-readiness-state.status-upcoming {
  color: #fff;
  background: var(--make-ready-upcoming);
}

.make-ready-readiness-state.status-available {
  color: #fff;
  background: var(--make-ready);
}

.make-ready-readiness-state.status-needs-attention {
  color: #fff;
  background: #f97316;
}

.make-ready-readiness-state.status-on-track {
  color: #fff;
  background: #14945e;
}

.make-ready-readiness-state.status-ready {
  color: #fff;
  background: #0b7280;
}

.make-ready-readiness-meta {
  margin: 0;
  color: #63737d;
  font-size: 0.72rem;
  font-weight: 800;
}

.make-ready-readiness-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.make-ready-readiness-count {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 8px;
  color: #344751;
  background: #f6f8f9;
  border: 1px solid #d6dee3;
  border-radius: 9px;
  cursor: pointer;
}

.make-ready-readiness-count span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.65rem;
  font-weight: 900;
  text-overflow: ellipsis;
}

.make-ready-readiness-count strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.make-ready-readiness-count:not(:disabled):hover,
.make-ready-readiness-count:not(:disabled):focus-visible {
  color: var(--make-ready);
  background: #f3ebff;
  border-color: rgb(var(--make-ready-rgb) / 0.45);
  outline: none;
}

.make-ready-readiness-count:disabled {
  cursor: default;
  opacity: 0.48;
}

.make-ready-readiness-score {
  display: grid;
  gap: 5px;
}

.make-ready-readiness-score-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #52646f;
  font-size: 0.68rem;
  font-weight: 900;
}

.make-ready-readiness-score-toggle {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.make-ready-readiness-score-toggle:hover,
.make-ready-readiness-score-toggle:focus-visible {
  color: var(--make-ready);
  outline: none;
}

.make-ready-readiness-score-end {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.make-ready-readiness-score-chevron {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-right: 2px solid var(--make-ready);
  border-bottom: 2px solid var(--make-ready);
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
}

.make-ready-readiness-score-toggle[aria-expanded="true"] .make-ready-readiness-score-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.make-ready-readiness-score-head strong {
  color: var(--make-ready);
  font-size: 0.8rem;
  font-weight: 950;
}

.make-ready-readiness-score-track {
  height: 9px;
  overflow: hidden;
  background: rgb(var(--make-ready-rgb) / 0.13);
  border: 1px solid rgb(var(--make-ready-rgb) / 0.22);
  border-radius: 999px;
}

.make-ready-readiness-score-fill {
  width: 0;
  height: 100%;
  display: block;
  background: var(--make-ready);
  border-radius: inherit;
  transition: width 180ms ease;
}

.make-ready-readiness-score-detail {
  color: #71808a;
  font-size: 0.62rem;
  font-weight: 800;
}

.make-ready-readiness-sections {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid rgb(var(--make-ready-rgb) / 0.17);
}

.make-ready-readiness-sections[hidden] {
  display: none;
}

.make-ready-readiness-section-row {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 8px 9px;
  color: #344751;
  background: rgb(var(--make-ready-rgb) / 0.045);
  border: 1px solid rgb(var(--make-ready-rgb) / 0.16);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.make-ready-readiness-section-row:hover,
.make-ready-readiness-section-row:focus-visible {
  background: rgb(var(--make-ready-rgb) / 0.09);
  border-color: rgb(var(--make-ready-rgb) / 0.42);
  outline: none;
}

.make-ready-readiness-section-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-size: 0.66rem;
  font-weight: 900;
}

.make-ready-readiness-section-head strong {
  min-width: 0;
  overflow: hidden;
  color: #2d414c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.make-ready-readiness-section-head > span:nth-child(2) {
  color: var(--make-ready);
}

.make-ready-readiness-section-head > span:last-child {
  min-width: 48px;
  color: #687983;
  text-align: right;
}

.make-ready-readiness-section-head > span.is-ready {
  color: #148755;
}

.make-ready-readiness-section-track {
  height: 6px;
  overflow: hidden;
  background: rgb(var(--make-ready-rgb) / 0.13);
  border-radius: 999px;
}

.make-ready-readiness-section-fill {
  width: 0;
  height: 100%;
  display: block;
  background: var(--make-ready);
  border-radius: inherit;
}

.make-ready-readiness-foot > span {
  color: #556872;
  font-size: 0.7rem;
  font-weight: 900;
}

.make-ready-readiness-view {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: #fff;
  background: var(--make-ready);
  border: 1px solid var(--make-ready);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 950;
  cursor: pointer;
}

.make-ready-readiness-view:hover,
.make-ready-readiness-view:focus-visible {
  background: #6325c2;
  border-color: #6325c2;
  outline: none;
}

.badge-legend-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  display: grid;
  gap: 12px;
  overflow: auto;
  border-radius: 22px;
}

.badge-legend-status {
  margin: 0;
  color: #61727d;
  font-size: 0.76rem;
  font-weight: 800;
}

.badge-legend-list {
  display: grid;
  gap: 12px;
}

.badge-legend-group {
  display: grid;
  gap: 6px;
}

.badge-legend-group h3 {
  margin: 0;
  color: #52646f;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.badge-legend-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.badge-legend-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: #293d48;
  background: #f6f8fa;
  border: 1px solid #d6e0e6;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.badge-legend-row:not(:disabled):hover,
.badge-legend-row:not(:disabled):focus-visible,
.badge-legend-row[aria-pressed="true"] {
  background: #eef4f7;
  border-color: #203844;
  box-shadow: inset 0 0 0 1px #203844;
  outline: none;
}

.badge-legend-row:disabled {
  cursor: default;
  opacity: 0.5;
}

.badge-legend-swatch {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(35, 49, 58, 0.26);
}

.badge-legend-label {
  min-width: 0;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-legend-count {
  min-width: 24px;
  padding: 3px 6px;
  color: #fff;
  background: #203844;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
}

.badge-legend-actions {
  margin-top: 0;
}

.badge-legend-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

.work-order-queue-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.work-order-queue-head > div {
  display: grid;
  gap: 2px;
}

.work-order-queue-head strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.work-order-queue-head > div span {
  color: #7a685a;
  font-size: 0.7rem;
  font-weight: 750;
}

.work-order-queue-assignee-picker {
  position: relative;
  min-width: min(220px, 44%);
  display: grid;
  gap: 3px;
}

.work-order-queue-assignee-picker > span {
  color: #6f5b4b;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-order-queue-assignee-picker > button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  color: #3f3025;
  background: #fff;
  border: 1px solid #dbc7b8;
  border-radius: 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: none;
  cursor: pointer;
}

.work-order-queue-assignee-picker > button:focus-visible,
.work-order-queue-assignee-picker > button[aria-expanded="true"] {
  border-color: var(--work-order);
  outline: 3px solid rgb(var(--work-order-rgb) / 0.16);
}

.work-order-queue-assignee-picker > button:disabled {
  color: #8a796c;
  background: #f5efe9;
  cursor: not-allowed;
}

.work-order-queue-assignee-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 140ms ease;
}

.work-order-queue-assignee-picker > button[aria-expanded="true"] .work-order-queue-assignee-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.work-order-queue-assignee-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  max-height: 220px;
  display: grid;
  gap: 4px;
  padding: 6px;
  overflow-y: auto;
  background: #fffdfb;
  border: 1px solid #dbc7b8;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(70, 47, 29, 0.2);
}

.work-order-queue-assignee-menu[hidden] {
  display: none;
}

.work-order-queue-assignee-menu [role="option"] {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  color: #4d3929;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  text-align: left;
}

.work-order-queue-assignee-menu [role="option"]:hover,
.work-order-queue-assignee-menu [role="option"]:focus-visible {
  background: #fff0e5;
  outline: none;
}

.work-order-queue-assignee-menu [role="option"][aria-selected="true"] {
  color: #fff;
  background: var(--work-order);
}

.work-order-queue-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-order-queue-options button {
  min-height: 34px;
  padding: 6px 10px;
  color: #5d4430;
  background: #fff;
  border: 1px solid #dfcdbf;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.work-order-queue-options button:hover,
.work-order-queue-options button:focus-visible,
.work-order-queue-options button.is-active {
  color: #fff;
  background: var(--work-order);
  border-color: var(--work-order);
  outline: none;
}

.work-order-card {
  border-left: 5px solid var(--work-order);
}

.work-order-card-high {
  border-left-color: #e58a16;
}

.work-order-card-completed {
  border-left-color: var(--work-order-completed);
}

.work-order-card-new {
  border-left-color: var(--work-order-new);
}

.work-order-card-assigned {
  border-left-color: var(--work-order-assigned);
}

.work-order-card-in-progress {
  border-left-color: var(--work-order-in-progress);
}

.work-order-card-waiting {
  border-left-color: var(--work-order-waiting);
}

.work-order-workflow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 9px 0;
}

.work-order-workflow-strip > span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #344954;
  background: #edf3f6;
  border: 1px solid #d4e0e6;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
}

.work-order-workflow-strip .work-order-priority-low {
  color: #fff;
  background: var(--work-order-completed);
  border-color: var(--work-order-completed);
}

.work-order-workflow-strip .work-order-priority-normal {
  color: #4a3700;
  background: var(--work-order-in-progress);
  border-color: var(--work-order-in-progress);
}

.work-order-workflow-strip .work-order-priority-high {
  color: #fff;
  background: var(--work-order);
  border-color: var(--work-order);
}

.work-order-workflow-strip .work-order-status-new {
  color: #fff;
  background: var(--work-order-new);
  border-color: var(--work-order-new);
}

.work-order-workflow-strip .work-order-status-assigned {
  color: #fff;
  background: var(--work-order-assigned);
  border-color: var(--work-order-assigned);
}

.work-order-workflow-strip .work-order-status-in-progress {
  color: #4a3700;
  background: var(--work-order-in-progress);
  border-color: var(--work-order-in-progress);
}

.work-order-workflow-strip .work-order-status-waiting,
.work-order-workflow-strip .work-order-waiting-chip {
  color: #fff;
  background: var(--work-order-waiting);
  border-color: var(--work-order-waiting);
}

.work-order-workflow-strip .work-order-status-completed {
  color: #fff;
  background: var(--work-order-completed);
  border-color: var(--work-order-completed);
}

.work-order-contact-card {
  display: grid;
  gap: 4px;
  margin: -2px 0 9px;
  padding: 10px 12px;
  background: #f5fafc;
  border: 1px solid #cadde6;
  border-radius: 12px;
}

.work-order-contact-card strong {
  color: #203844;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
}

.work-order-contact-card a,
.work-order-contact-card span {
  width: fit-content;
  color: #0b7280;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

.work-order-contact-card a {
  text-decoration: none;
}

.work-order-contact-card a:hover,
.work-order-contact-card a:focus-visible {
  text-decoration: underline;
}

.work-order-complete-button {
  color: #17613a;
  background: #e5f6ec;
  border-color: #b6dec5;
}

.work-order-completion-note {
  margin: 8px 0;
  padding: 9px 10px;
  color: #20523a;
  background: #eaf8ef;
  border: 1px solid #b6dec5;
  border-radius: 11px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.work-order-history {
  margin-top: 9px;
  padding: 0;
  background: #f7fafb;
  border: 1px solid #dce6eb;
  border-radius: 11px;
}

.work-order-history summary {
  padding: 9px 10px;
  color: #3f5560;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
}

.work-order-history ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 10px 10px 30px;
}

.work-order-history li {
  padding-left: 2px;
  color: #455b66;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.work-order-history li span,
.work-order-history li time {
  display: block;
}

.work-order-history li time {
  margin-top: 2px;
  color: #7a8991;
  font-size: 0.64rem;
}

.property-filter-count-today {
  right: auto;
  left: -5px;
  background: #f59e0b;
}

.property-note-search {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.work-order-queue-panel:not([hidden]) + .property-note-search {
  margin-top: 16px;
}

.property-note-search span {
  color: #5f6f7b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.property-note-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  color: #203844;
  background: #fff;
  border: 1px solid #b8c9d5;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: 0 6px 16px rgba(19, 35, 45, 0.06);
}

.property-note-search input::placeholder {
  color: #7f8d97;
  font-weight: 700;
}

.property-note-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 183, 198, 0.16);
}

.address-book-import-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.address-book-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px;
  background: #eef5f8;
  border: 1px solid #d4e3ea;
  border-radius: 999px;
}

.address-book-tab {
  min-height: 38px;
  padding: 0 14px;
  color: #314b58;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.address-book-tab.is-active {
  color: #fff;
  background: #0d7991;
  box-shadow: 0 8px 18px rgba(13, 121, 145, 0.22);
}

.address-book-tab:focus-visible {
  outline: 3px solid rgba(31, 183, 198, 0.24);
  outline-offset: 2px;
}

.address-book-form {
  margin-bottom: 14px;
  padding: 12px;
  background: #f7fbfd;
  border: 1px solid #d8e4eb;
  border-radius: 8px;
}

.address-book-form-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.address-book-search {
  margin-top: 4px;
}

.address-book-vendor-filter {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.address-book-vendor-filter span {
  color: #5f6f7b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.address-book-vendor-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  color: #203844;
  background: #fff;
  border: 1px solid #b8c9d5;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: 0 6px 16px rgba(19, 35, 45, 0.06);
}

.address-book-vendor-filter select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 183, 198, 0.16);
}

.address-book-list {
  display: grid;
  gap: 12px;
}

.address-book-group {
  display: grid;
  gap: 8px;
}

.address-book-group h3 {
  margin: 0;
  color: #3c6472;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.address-book-resident-building {
  display: grid;
  gap: 4px;
}

.address-book-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid #d6e0e8;
  border-radius: 8px;
}

.address-book-resident-row {
  display: grid;
  grid-template-columns: minmax(66px, 0.32fr) minmax(0, 1fr) max-content auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  color: #203844;
  background: #f5fafc;
  border: 1px solid #d8e7ed;
  border-radius: 8px;
}

.address-book-resident-row-unit,
.address-book-resident-row-name,
.address-book-resident-row-phone {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-book-resident-row-unit {
  color: #0c5166;
  font-size: 0.82rem;
  font-weight: 900;
}

.address-book-resident-row-name {
  font-size: 0.92rem;
  font-weight: 900;
}

.address-book-resident-row-phone {
  color: #073b5c;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.address-book-resident-row-phone:hover,
.address-book-resident-row-phone:focus-visible {
  color: #0d7991;
  outline: none;
}

.address-book-card-themed {
  color: #fff;
  background: var(--address-book-card-bg, #184252);
  border-color: rgba(255, 255, 255, 0.22);
}

.address-book-card-onsite {
  position: relative;
  padding-left: 17px;
  background: #fff;
  border-color: #d2dfe6;
  border-radius: 14px;
  box-shadow: inset 6px 0 0 var(--on-call-contact-color, #0d7991), 0 5px 14px rgba(31, 53, 65, 0.07);
}

.address-book-card-onsite .address-book-card-title {
  position: relative;
  padding-left: 16px;
}

.address-book-card-onsite .address-book-card-title::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--on-call-contact-color, #0d7991);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--on-call-contact-color, #0d7991);
}

.address-book-card-emergency,
.address-book-card-vendor-fire {
  --address-book-card-bg: #b73b45;
}

.address-book-card-vendor-roofing {
  --address-book-card-bg: #4b5563;
}

.address-book-card-vendor-plumbing {
  --address-book-card-bg: #155e8a;
}

.address-book-card-vendor-pool {
  --address-book-card-bg: #007d91;
}

.address-book-card-vendor-flooring {
  --address-book-card-bg: #8a541f;
}

.address-book-card-vendor-painter {
  --address-book-card-bg: #6f4fb0;
}

.address-book-card-vendor-carpet {
  --address-book-card-bg: #6d4c41;
}

.address-book-card-vendor-biohazard {
  --address-book-card-bg: #7a2d12;
}

.address-book-card-vendor-cleaning {
  --address-book-card-bg: #14736d;
}

.address-book-card-vendor-pest {
  --address-book-card-bg: #596b22;
}

.address-book-card-vendor-glass {
  --address-book-card-bg: #2f6f8f;
}

.address-book-card-vendor-hardware {
  --address-book-card-bg: #5f6470;
}

.address-book-card-vendor-locks {
  --address-book-card-bg: #7a5a12;
}

.address-book-card-vendor-waste {
  --address-book-card-bg: #37643b;
}

.address-book-card-vendor-landscape {
  --address-book-card-bg: #2f6f3c;
}

.address-book-card-vendor-construction {
  --address-book-card-bg: #6b4a2e;
}

.address-book-card-vendor-tub {
  --address-book-card-bg: #6860a8;
}

.address-book-card-vendor-surface {
  --address-book-card-bg: #4b6170;
}

.address-book-card-vendor-post-office {
  --address-book-card-bg: #294b84;
}

.address-book-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.address-book-card-title {
  display: grid;
  gap: 2px;
}

.address-book-card-title h4 {
  margin: 0;
  color: #1e303b;
  font-size: 1.02rem;
  line-height: 1.2;
}

.address-book-card-title p {
  margin: 0;
  color: #5b6a75;
  font-size: 0.88rem;
  font-weight: 800;
}

.address-book-card-themed .address-book-card-title h4,
.address-book-card-themed .address-book-card-title p,
.address-book-card-themed .address-book-notes {
  color: #fff;
}

.address-book-card-themed .note-edit,
.address-book-card-themed .note-delete {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.address-book-card-themed .note-edit:hover,
.address-book-card-themed .note-edit:focus-visible,
.address-book-card-themed .note-delete:hover,
.address-book-card-themed .note-delete:focus-visible {
  color: #162a35;
  background: #fff;
  border-color: #fff;
}

.address-book-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: end;
}

.address-book-phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.address-book-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: #073b5c;
  background: #eaf6fa;
  border: 1px solid #bddfe8;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.address-book-phone:hover,
.address-book-phone:focus-visible {
  color: #fff;
  background: #0d7991;
  border-color: #0d7991;
  outline: none;
}

.address-book-card-themed .address-book-phone {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.address-book-card-themed .address-book-phone:hover,
.address-book-card-themed .address-book-phone:focus-visible {
  color: #162a35;
  background: #fff;
  border-color: #fff;
}

.address-book-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.address-book-type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #5b3a09;
  background: #fff8e8;
  border: 1px solid #efd49e;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.address-book-card-themed .address-book-type-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
}

.address-book-notes {
  margin: 0;
  color: #344650;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: pre-wrap;
}

.address-book-private-note {
  margin: 0 0 12px;
  color: #5f6d7a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
}

.property-archive-date-filter {
  margin-top: -4px;
}

.property-archive-date-filter[hidden] {
  display: none;
}

.property-note-settings-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.property-note-settings-panel[hidden] {
  display: none;
}

.property-note-settings-section {
  display: grid;
  gap: 10px;
}

.property-note-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.property-note-settings-head h3 {
  margin: 0 0 3px;
  color: #23313a;
  font-size: 0.98rem;
}

.property-note-settings-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.property-note-buzzword-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.property-note-buzzword-summary h3 {
  margin: 0 0 3px;
  color: #23313a;
  font-size: 0.98rem;
}

.property-note-buzzword-summary p,
.property-buzzword-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.property-buzzword-help {
  margin-bottom: 12px;
}

#managePropertyBuzzwordsButton {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #203844;
  background: #fff;
  border: 1px solid #b8c9d5;
  box-shadow: 0 6px 16px rgba(19, 35, 45, 0.08);
}

#managePropertyBuzzwordsButton:hover,
#managePropertyBuzzwordsButton:focus-visible {
  color: #fff;
  background: #203844;
  border-color: #203844;
  box-shadow: 0 8px 22px rgba(19, 35, 45, 0.18);
}

.property-note-category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.property-note-category-options label,
.property-note-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  color: #23313a;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
  font-weight: 800;
}

.property-buzzword-list {
  display: grid;
  gap: 8px;
}

.property-buzzwords-modal {
  position: fixed;
  z-index: 70;
}

.property-buzzwords-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.property-buzzword-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
}

.property-buzzword-row.is-dragging {
  opacity: 0.58;
}

.property-buzzword-handle {
  color: var(--muted);
  cursor: grab;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.property-buzzword-label {
  min-width: 0;
  color: #23313a;
  font-weight: 900;
}

.property-buzzword-edit,
.property-buzzword-remove {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #cbd8e2;
  border-radius: 6px;
  color: #203844;
  background: #eef3f6;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.property-buzzword-remove {
  color: #a30e19;
  background: #fff3f4;
  border-color: #efb9bd;
}

.property-note-target {
  min-width: 0;
}

.property-note-group {
  position: relative;
}

.property-note-group-summary {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #23313a;
  background: #f8fafb;
  border: 1px solid #d7e1e9;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

.property-note-group-summary::-webkit-details-marker {
  display: none;
}

.property-note-group-summary:hover,
.property-note-group-summary:focus-visible {
  background: #eef3f6;
  outline: none;
}

.property-note-group-summary h4 {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
}

.property-note-topic-emojis {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.property-note-topic-emoji {
  width: 24px;
  height: 24px;
  display: grid;
  flex: none;
  place-items: center;
  background: #fff;
  border: 1px solid #d7e1e9;
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(19, 35, 45, 0.08);
  font-size: 0.88rem;
  line-height: 1;
}

.property-note-group-count {
  flex: none;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: #203844;
  background: #e9f0f4;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.property-note-group-items {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 10px 0 0 24px;
  padding-left: 16px;
}

.property-note-group-items::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: 14px;
  left: 0;
  width: 2px;
  background: #cbd8e2;
}

.property-note-group-items::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 16px;
  height: 20px;
  border-bottom: 2px solid #cbd8e2;
  border-left: 2px solid #cbd8e2;
  border-bottom-left-radius: 8px;
}

.property-note-card-nested {
  position: relative;
}

.property-note-card-nested::before {
  content: "";
  position: absolute;
  top: 21px;
  left: -16px;
  width: 16px;
  border-top: 2px solid #cbd8e2;
}

.property-note-subject {
  margin: 10px 0 0;
  padding-bottom: 7px;
  color: #23313a;
  border-bottom: 1px solid #d7e1e9;
  font-weight: 900;
}

.property-add-note-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-color: transparent;
  font-size: 2rem;
}

.calendar-dialog {
  width: min(1180px, calc(100vw - 24px));
  height: min(94dvh, 920px);
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.calendar-dialog-head {
  flex: 0 0 auto;
}

.calendar-tabs,
.calendar-view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #edf3f6;
  border: 1px solid #d2dee6;
  border-radius: 999px;
}

.calendar-tabs {
  align-self: flex-start;
  margin: 0 0 12px;
}

.calendar-tab,
.calendar-view-switcher button {
  min-height: 34px;
  padding: 0 14px;
  color: #4c5d68;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-tab.is-active,
.calendar-view-switcher button.is-active {
  color: #fff;
  background: #203844;
  box-shadow: 0 4px 12px rgba(32, 56, 68, 0.2);
}

.calendar-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-month-navigation {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.calendar-month-navigation h3 {
  min-width: 0;
  margin: 0 0 0 4px;
  overflow: hidden;
  color: #203844;
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-nav-button,
.calendar-today-button,
.calendar-add-button {
  min-height: 36px;
  padding: 0 13px;
  color: #203844;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-nav-button {
  width: 36px;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
}

.calendar-add-button {
  color: #fff;
  background: #0f9fa8;
  border-color: #0f9fa8;
}

.calendar-search-field {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  color: #596b76;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 15px;
  color: #203844;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 15px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-summary {
  min-height: 20px;
  margin-bottom: 7px;
  color: #657681;
  font-size: 0.8rem;
  font-weight: 800;
}

.calendar-content {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d1dde5;
  border-radius: 18px;
  background: #f7fafb;
}

.calendar-weekday-row,
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday-row {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #526570;
  background: #eaf1f4;
  border-bottom: 1px solid #cfdae2;
}

.calendar-weekday-row span {
  padding: 8px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calendar-month-grid {
  min-height: calc(100% - 34px);
}

.calendar-month-grid.is-expanded-event-view {
  grid-auto-rows: minmax(116px, max-content);
  align-items: stretch;
}

.calendar-day-cell {
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid #e0e8ed;
  border-bottom: 1px solid #e0e8ed;
  cursor: pointer;
}

.calendar-day-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-day-cell.is-outside-month {
  background: #f1f5f7;
}

.calendar-day-cell.is-outside-month .calendar-day-number {
  color: #8b9aa3;
}

.calendar-day-cell.is-today {
  box-shadow: inset 0 0 0 2px #0f9fa8;
}

.calendar-day-cell:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(15, 159, 168, 0.32);
  outline-offset: -3px;
}

.calendar-day-number {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #334a57;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
}

.calendar-day-cell.is-today .calendar-day-number {
  color: #fff;
  background: #0f9fa8;
}

.calendar-month-grid.is-on-call-range-view .calendar-day-number {
  position: relative;
  z-index: 2;
}

.calendar-on-call-range-bar {
  min-width: 0;
  min-height: 24px;
  align-self: start;
  z-index: 3;
  margin: calc(36px + (var(--calendar-range-lane, 0) * 27px)) 4px 0;
  padding: 3px 10px;
  overflow: hidden;
  color: var(--on-call-text-color, #fff);
  background: var(--on-call-color, #126e82);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--on-call-color, #126e82) 28%, transparent);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.calendar-on-call-range-bar.continues-before {
  margin-left: 0;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

.calendar-on-call-range-bar.continues-after {
  margin-right: 0;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.calendar-on-call-range-bar:hover,
.calendar-on-call-range-bar:focus-visible {
  background: var(--on-call-hover-color, #0d5a6b);
  outline: 3px solid color-mix(in srgb, var(--on-call-color, #126e82) 30%, transparent);
  outline-offset: 1px;
}

.calendar-event-strip {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 22px;
  display: flex;
  align-items: center;
  padding: 5px 6px 3px;
  overflow: visible;
  color: var(--calendar-event-text-color, #fff);
  background: var(--calendar-event-color, #536975);
  border: 0;
  border-radius: 7px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.calendar-event-type-indicator {
  position: absolute;
  top: -10px;
  left: -3px;
  z-index: 1;
  min-width: 20px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  color: #213946;
  background: #fff;
  border: 1px solid var(--calendar-event-color, #536975);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(31, 53, 65, 0.2);
  font-size: 0.68rem;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.02em;
}

.calendar-event-strip-label {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-strip.note-category-task,
.calendar-event-card.note-category-task {
  --calendar-event-color: var(--task);
}

.calendar-event-strip.note-category-general,
.calendar-event-card.note-category-general {
  --calendar-event-color: var(--general);
}

.calendar-event-strip.note-category-emergency,
.calendar-event-card.note-category-emergency {
  --calendar-event-color: var(--emergency);
}

.calendar-event-strip.note-category-make-ready,
.calendar-event-card.note-category-make-ready {
  --calendar-event-color: var(--make-ready);
}

.calendar-event-strip.make-ready-move-in-scheduled,
.calendar-event-card.make-ready-move-in-scheduled {
  --calendar-event-color: var(--make-ready-scheduled);
}

.calendar-event-strip.make-ready-move-in-unscheduled,
.calendar-event-card.make-ready-move-in-unscheduled {
  --calendar-event-color: var(--make-ready-unscheduled);
}

.calendar-event-strip.make-ready-upcoming-turn,
.calendar-event-card.make-ready-upcoming-turn {
  --calendar-event-color: var(--make-ready-upcoming);
}

.calendar-event-strip.make-ready-vendor-paint,
.calendar-event-card.make-ready-vendor-paint {
  --calendar-event-color: #d96b1e;
}

.calendar-event-strip.make-ready-vendor-floor,
.calendar-event-card.make-ready-vendor-floor {
  --calendar-event-color: #2478a8;
}

.calendar-event-strip.make-ready-vendor-clean,
.calendar-event-card.make-ready-vendor-clean {
  --calendar-event-color: #2d8a57;
}

.calendar-event-strip.make-ready-vendor-event.is-suggested {
  opacity: 0.48;
  border: 1px dashed #fff;
}

.calendar-event-strip.make-ready-vendor-event.is-suggested.is-rush,
.calendar-event-strip.make-ready-vendor-event.is-suggested.is-over-capacity {
  opacity: 0.7;
  outline: 1px solid #d9952d;
}

.calendar-event-card.make-ready-vendor-event.is-suggested {
  background: color-mix(in srgb, var(--calendar-event-color) 7%, #fff);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--calendar-event-color) 45%, #d6e1e7);
  box-shadow: none;
}

.calendar-event-card.make-ready-vendor-event.is-suggested.is-rush,
.calendar-event-card.make-ready-vendor-event.is-suggested.is-over-capacity {
  background: #fffaf0;
  border-color: #d9952d;
}

.calendar-event-type-indicator[data-calendar-event-type^="vendor-"] {
  padding-inline: 5px;
  font-size: 0.56rem;
  letter-spacing: 0.01em;
}

.calendar-event-strip.note-category-work-order,
.calendar-event-card.note-category-work-order {
  --calendar-event-color: var(--work-order-new);
}

.calendar-event-strip.work-order-status-assigned,
.calendar-event-card.work-order-status-assigned {
  --calendar-event-color: var(--work-order-assigned);
}

.calendar-event-strip.work-order-status-in-progress,
.calendar-event-card.work-order-status-in-progress {
  --calendar-event-color: var(--work-order-in-progress);
  color: #382c00;
}

.calendar-event-strip.work-order-status-waiting,
.calendar-event-card.work-order-status-waiting {
  --calendar-event-color: var(--work-order-waiting);
}

.calendar-event-strip.work-order-status-completed,
.calendar-event-card.work-order-status-completed {
  --calendar-event-color: var(--work-order-completed);
}

.calendar-event-strip.is-on-call,
.calendar-event-card.is-on-call {
  --calendar-event-color: #126e82;
}

.calendar-empty-day {
  margin: auto 0 0;
  color: #9aa7ae;
  font-size: 0.64rem;
  font-weight: 800;
}

.calendar-week-grid {
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.calendar-week-day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background: #fff;
  border-right: 1px solid #dce6eb;
  cursor: pointer;
}

.calendar-week-day:last-child {
  border-right: 0;
}

.calendar-week-day.is-today {
  background: #effafa;
}

.calendar-week-day h4 {
  margin: 0;
  color: #304854;
  font-size: 0.78rem;
}

.calendar-week-day h4 strong {
  display: block;
  margin-top: 2px;
  font-size: 1.3rem;
}

.calendar-list-view,
.calendar-day-events {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.calendar-list-group {
  display: grid;
  gap: 8px;
}

.calendar-list-group > h3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 7px 10px;
  color: #304854;
  background: rgba(235, 242, 245, 0.96);
  border-radius: 10px;
  font-size: 0.82rem;
}

.calendar-empty-state {
  margin: auto;
  padding: 32px 18px;
  color: #71818a;
  text-align: center;
  font-weight: 800;
}

.calendar-day-dialog {
  width: min(680px, calc(100vw - 24px));
  max-height: 88dvh;
  overflow: auto;
}

.calendar-day-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.calendar-content .calendar-event-card,
.calendar-day-events .calendar-event-card {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 12px 13px 12px 17px;
  background: #fff;
  border: 1px solid #d6e1e7;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(31, 53, 65, 0.08);
}

.calendar-event-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 4px;
  background: var(--calendar-event-color, #536975);
  border-radius: 999px;
}

.calendar-event-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.calendar-event-card h4,
.calendar-event-card p {
  margin: 0;
}

.calendar-event-card h4 {
  color: #223a47;
  font-size: 0.98rem;
}

.calendar-event-card p {
  color: #536772;
  font-size: 0.84rem;
  line-height: 1.45;
}

.calendar-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-event-meta span {
  padding: 4px 8px;
  color: #415763;
  background: #edf3f6;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.calendar-priority-high {
  color: #a31320 !important;
  background: #fde7e9 !important;
}

.calendar-priority-medium {
  color: #765300 !important;
  background: #fff2c4 !important;
}

.calendar-priority-low {
  color: #245c79 !important;
  background: #e3f2fa !important;
}

.calendar-event-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.calendar-event-card-actions button,
.calendar-event-card-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: #203844;
  background: #fff;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.calendar-editor-dialog {
  width: min(670px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
}

.calendar-editor-form,
.calendar-editor-fields {
  display: grid;
  gap: 13px;
}

.calendar-editor-fields[hidden] {
  display: none;
}

.calendar-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calendar-editor-form label {
  display: grid;
  gap: 5px;
  color: #485d68;
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-editor-form label small {
  color: #7e8c94;
  font-weight: 700;
}

.calendar-editor-form input,
.calendar-editor-form select,
.calendar-editor-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #203844;
  background: #fff;
  border: 1px solid #c9d7df;
  border-radius: 13px;
  font: inherit;
  font-weight: 700;
}

.calendar-editor-form textarea {
  resize: vertical;
}

.calendar-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
}

.calendar-editor-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.calendar-editor-action-spacer {
  flex: 1;
}

@media (max-width: 760px) {
  .calendar-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 14px 10px 10px;
    border-radius: 20px;
  }

  .calendar-tabs {
    width: 100%;
  }

  .calendar-tab {
    flex: 1;
    padding-inline: 8px;
  }

  .calendar-command-bar {
    grid-template-columns: 1fr auto;
  }

  .calendar-month-navigation {
    grid-column: 1 / -1;
  }

  .calendar-month-navigation h3 {
    flex: 1;
    font-size: 1rem;
  }

  .calendar-view-switcher {
    min-width: 0;
  }

  .calendar-view-switcher button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .calendar-add-button {
    min-height: 34px;
    padding-inline: 10px;
  }

  .calendar-weekday-row span {
    padding-inline: 1px;
    font-size: 0.57rem;
  }

  .calendar-day-cell {
    min-height: 92px;
    gap: 3px;
    padding: 4px 3px;
  }

  .calendar-day-number {
    width: 21px;
    height: 21px;
    font-size: 0.67rem;
  }

  .calendar-event-strip {
    min-height: 18px;
    padding: 3px 4px;
    border-radius: 5px;
    font-size: 0.54rem;
  }

  .calendar-month-grid.is-expanded-event-view {
    grid-auto-rows: minmax(92px, max-content);
  }

  .calendar-event-strip {
    min-height: 20px;
    padding: 5px 4px 2px;
  }

  .calendar-event-type-indicator {
    top: -9px;
    left: -3px;
    min-width: 18px;
    height: 14px;
    padding-inline: 2px;
    font-size: 0.44rem;
  }

  .calendar-event-type-indicator[data-calendar-event-type^="vendor-"] {
    left: -2px;
    min-width: 0;
    max-width: 100%;
    padding-inline: 1px;
    font-size: 0.36rem;
    letter-spacing: -0.04em;
  }

  .calendar-on-call-range-bar {
    min-height: 20px;
    margin-top: calc(29px + (var(--calendar-range-lane, 0) * 23px));
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.6rem;
  }

  .calendar-empty-day {
    display: none;
  }

  .calendar-week-grid {
    grid-template-columns: 1fr;
  }

  .calendar-week-day {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid #dce6eb;
  }

  .calendar-form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day-events,
  .calendar-list-view {
    padding: 9px;
  }
}

.site-footer {
  position: relative;
  width: min(1320px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px auto 0;
  padding: 14px 16px 30px;
  color: #44525d;
  font-size: 0.84rem;
}

.site-footer-owner {
  max-width: 680px;
  margin: 0;
  line-height: 1.45;
}

.note-undo-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10000;
  width: min(520px, calc(100vw - 24px));
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  color: #fff;
  background: #203844;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(10, 25, 34, 0.34);
  font-size: 0.9rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.note-undo-notice[hidden] {
  display: none;
}

.note-undo-notice span {
  flex: 1;
}

.note-undo-notice button {
  min-height: 34px;
  padding: 0 13px;
  color: #203844;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  font-weight: 900;
}

.note-undo-notice .note-undo-dismiss {
  width: 34px;
  min-width: 34px;
  padding: 0;
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
}

.site-version {
  position: absolute;
  left: 16px;
  bottom: 8px;
  color: #74818a;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1;
  opacity: 0.72;
  white-space: nowrap;
  user-select: all;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.policy-links button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  color: #203844;
  background: #f8fafb;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.policy-links button:hover,
.policy-links button:focus-visible {
  color: #fff;
  background: #203844;
  border-color: #203844;
  outline: none;
}

.site-policy-modal {
  position: fixed;
  z-index: 80;
}

.site-policy-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
}

.policy-content {
  display: grid;
  gap: 14px;
  color: #2b3a44;
  line-height: 1.55;
}

.policy-content section {
  display: grid;
  gap: 8px;
}

.policy-content h3 {
  margin: 0;
  color: #23313a;
  font-size: 1rem;
}

.policy-content p,
.policy-content ul {
  margin: 0;
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content li + li {
  margin-top: 5px;
}

.policy-updated {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 20px, 1320px);
    padding: 10px 0;
  }

  .property-note-group-summary {
    flex-wrap: wrap;
    align-items: center;
  }

  .property-note-topic-emojis {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .property-note-group-count {
    margin-left: auto;
  }

  .make-ready-readiness-totals,
  .make-ready-readiness-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .make-ready-readiness-card-head {
    align-items: flex-start;
  }

  .make-ready-readiness-state {
    max-width: 54%;
    text-align: center;
  }

  .badge-legend-modal {
    align-items: end;
    padding: 10px;
  }

  .badge-legend-dialog {
    width: 100%;
    max-height: min(82dvh, 760px);
    border-radius: 22px 22px 16px 16px;
  }

  .badge-legend-rows {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: min(100vw - 20px, 1320px);
    flex-direction: column;
    align-items: stretch;
    margin-top: 10px;
    padding: 12px 4px 30px;
  }

  .note-undo-notice {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .site-version {
    left: 4px;
    bottom: 7px;
  }

  .policy-links {
    justify-content: start;
  }

  .search-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "brand"
      "notes"
      "search";
    gap: 16px;
    padding: 16px;
  }

  .header-tools {
    justify-self: end;
  }

  .quick-note-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
  }

  .quick-note-actions .property-notes-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .property-notes-button {
    justify-self: start;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    height: 46px;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-health {
    width: 100%;
    max-width: none;
  }

  .ghost-button {
    flex: 1 1 120px;
  }

  .toolbar-actions {
    justify-content: stretch;
  }

  .layer-menu {
    flex: 1 1 120px;
  }

  .layer-menu-button {
    width: 100%;
  }

  .layer-menu-panel {
    position: fixed;
    top: max(68px, calc(env(safe-area-inset-top, 0px) + 68px));
    right: 20px;
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 14px));
    left: auto;
    width: min(260px, calc(100vw - 40px));
    max-height: none;
    padding-bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  }

  .restore-preview-counts,
  .restore-mode-grid {
    grid-template-columns: 1fr;
  }

  .building-popup {
    position: fixed;
    inset: 10px 10px auto 10px;
    width: auto;
    max-height: min(58vh, 480px);
    margin: 0;
    overflow: auto;
  }

  .building-popup.is-left {
    right: 10px;
    left: 10px;
  }

  .pin-confirm-popup {
    position: fixed;
    inset: auto 10px 10px 10px;
    width: auto;
  }

  .popup-head {
    align-items: start;
  }

  .notes-button {
    width: auto;
    min-width: 68px;
    padding: 0 10px;
  }

  .note-modal {
    position: fixed;
    --mobile-modal-top-gap: max(42px, calc(env(safe-area-inset-top, 0px) + 30px));
    place-items: start center;
    overflow-y: auto;
    padding: var(--mobile-modal-top-gap) 10px 10px;
  }

  .note-dialog {
    width: min(100%, 390px);
    max-height: calc(100vh - var(--mobile-modal-top-gap) - 10px);
    max-height: calc(100dvh - var(--mobile-modal-top-gap) - 10px);
  }

  .make-ready-checklist-modal {
    bottom: var(--make-ready-keyboard-inset, 0px);
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .make-ready-checklist-dialog {
    max-height: calc(var(--make-ready-visible-height, 100dvh) - var(--mobile-modal-top-gap) - 10px);
  }

  .settings-dialog {
    width: min(100%, 720px);
  }

  .pool-tools-dialog {
    width: min(100%, 720px);
  }

  .address-book-dialog {
    width: min(100%, 680px);
  }

  .address-book-editor-dialog {
    width: min(100%, 520px);
  }

  .reports-dialog,
  .report-preview-dialog {
    width: min(100%, 720px);
  }

  .reports-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-preview-dialog .note-dialog-head {
    display: grid;
  }

  .report-preview-dialog .popup-actions {
    justify-content: start;
  }

  .report-note-head {
    display: grid;
  }

  .report-note-head span {
    max-width: 100%;
    width: fit-content;
    text-align: left;
  }

  .address-book-form-grid {
    grid-template-columns: 1fr;
  }

  .address-book-card-head {
    display: grid;
  }

  .address-book-card-actions {
    justify-content: start;
  }

  .address-book-resident-row {
    grid-template-columns: minmax(58px, 0.35fr) minmax(0, 1fr) auto;
  }

  .address-book-resident-row-phone {
    grid-column: 2;
  }

  .address-book-resident-row .share-action-button {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .settings-section-head {
    display: grid;
  }

  .property-note-settings-head,
  .property-note-buzzword-summary,
  .property-buzzword-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .property-note-category-options {
    grid-template-columns: 1fr;
  }

  .topic-icon-key-list {
    grid-template-columns: 1fr;
  }

  .topic-icon-key-actions {
    justify-content: stretch;
  }

  .topic-icon-key-actions .note-secondary {
    flex: 1 1 130px;
  }

  .topic-icon-key-row {
    grid-template-columns: 1fr;
  }

  .topic-icon-remove {
    width: 100%;
  }

  #managePropertyBuzzwordsButton {
    width: 100%;
  }

  .settings-color-list {
    grid-template-columns: 1fr;
  }

  .pool-field-grid,
  .pool-guide-grid {
    grid-template-columns: 1fr;
  }

  .key-directory-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .reports-type-grid,
  .reports-option-grid,
  .share-packet-type-grid,
  .share-packet-options {
    grid-template-columns: 1fr;
  }

  .share-packet-type-card {
    min-height: 84px;
  }

  .share-fallback-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-order-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-order-priority-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-order-queue-head {
    display: grid;
    align-items: stretch;
  }

  .work-order-queue-assignee-picker {
    min-width: 0;
  }

  .work-order-queue-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-order-queue-options button {
    width: 100%;
  }

  .work-order-assignee-detail {
    grid-template-columns: 1fr;
  }

  .work-order-assignee-detail a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .header-tools {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    gap: 0;
  }
}

@media (max-width: 340px) {
  .header-tools {
    display: grid;
    grid-template-columns: repeat(4, 34px);
    justify-content: end;
    gap: 8px;
  }
}
