:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #d9dee7;
  --text: #17202a;
  --muted: #647084;
  --accent: #176b5d;
  --accent-2: #1f4e79;
  --warn: #af6f13;
  --ok: #1d7a48;
  --light-ok: #78b86a;
  --danger: #c7362f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.entry-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.entry-shell {
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
}

.entry-brand {
  display: grid;
  gap: 8px;
  text-align: center;
}

.entry-brand h1 {
  font-size: 34px;
}

.entry-brand p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.entry-panel {
  padding: 20px;
}

.entry-page .role-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.entry-page .role-item {
  display: grid;
  align-content: start;
  min-height: 176px;
}

.entry-page .role-title {
  display: grid;
  gap: 10px;
  align-items: start;
}

.entry-page .role-title button {
  width: 100%;
  min-height: 42px;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.workspace,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workspace {
  min-height: calc(100vh - 48px);
  padding: 20px;
}

.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 17px;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #edf3f1;
  color: var(--accent);
  border: 1px solid #c8d9d5;
}

button.active-role {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

body[data-active-role] [data-role-surface] {
  display: none;
}

body[data-active-role] [data-role-surface].active-page {
  display: block;
}

[data-admin-only="true"] {
  display: none;
}

body[data-admin-mode="true"] [data-admin-only="true"]:not([data-role-surface]) {
  display: block;
}

.app-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
  max-height: calc(100vh - 48px);
}

.sidebar-brand {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}

.sidebar-brand h1 {
  font-size: 24px;
  line-height: 1.15;
}

.mobile-nav-strip {
  display: none;
}

.page-nav {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}

.page-nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nav-icon,
.role-icon,
.role-arrow,
.mobile-role-icon,
.back-entry-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mobile-role-icon,
.back-entry-icon {
  display: none;
}

.role-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.role-arrow {
  width: 16px;
  height: 16px;
}

.page-nav-button:hover,
.page-nav-button.active-page-button {
  border-color: #c8d9d5;
  background: #edf3f1;
  color: var(--accent);
}

.back-entry-button {
  width: 100%;
}

.page-stack {
  min-width: 0;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.single-action-row {
  grid-template-columns: minmax(0, 1fr);
}

.status-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 14px;
}

.status-row.ok {
  color: var(--ok);
  border-color: #b9d9c8;
  background: #f1faf5;
}

.status-row.warn {
  color: var(--warn);
  border-color: #ecd3a8;
  background: #fff8ec;
}

.editor-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: calc(100vh - 200px);
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1f2937;
}

.side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel {
  padding: 16px;
}

.role-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.role-entry-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.role-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.role-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.role-identity,
.role-title button {
  display: inline-flex;
  align-items: center;
}

.role-identity {
  gap: 10px;
}

.role-title button {
  justify-content: center;
  gap: 5px;
}

.role-title button {
  min-width: 112px;
  padding: 0 10px;
  font-size: 13px;
}

.role-focus {
  display: block;
  font-size: 13px;
}

.role-description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trial-flow {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.trial-flow-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.trial-flow-head span {
  border: 1px solid #c8d9d5;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  background: #edf3f1;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.trial-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trial-step-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  min-height: 190px;
  border: 1px solid #d5dee7;
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafb);
}

.trial-step-index {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
}

.trial-step-card strong {
  color: var(--text);
  font-size: 15px;
}

.trial-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.trial-step-card button {
  width: 100%;
}

.capabilities {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: 14px 0 0;
  font-size: 14px;
}

.summary dt {
  color: var(--muted);
}

.summary dd {
  margin: 0;
  font-weight: 700;
}

.cleaner-camera-shell,
.cleaner-camera-frame {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.camera-action-bar {
  display: grid;
  gap: 8px;
}

.cleaner-panel video,
.exception-panel video,
.manager-patrol-camera-panel video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #dfe7ed, #f7f9fb);
  object-fit: cover;
}

.patrol-photo-review {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.patrol-photo-review img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f5;
}

.patrol-photo-review figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.review-actions {
  margin-top: 8px;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.photo-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

select {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: white;
}

.client-photo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wall-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.demo-item::after {
  content: "示意图";
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(23, 32, 42, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.wall-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f5;
}

.wall-item span {
  display: block;
  padding: 8px 8px 2px;
  font-size: 13px;
  font-weight: 700;
}

.wall-item small {
  display: block;
  padding: 0 8px 9px;
  color: var(--muted);
  font-size: 11px;
}

.overview-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.overview-rings,
.overview-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overview-ring {
  --ring-color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 12px;
  background: #fff;
}

.overview-ring-chart {
  --ring-value: 0%;
  position: relative;
  display: grid;
  place-items: center;
  width: min(172px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--ring-value), #e7ecf2 0);
}

.overview-ring-chart::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(217, 222, 231, 0.85);
}

.overview-ring-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.overview-ring-center strong {
  font-size: 34px;
  line-height: 1;
}

.overview-ring-center span,
.overview-ring small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.overview-ring small {
  text-align: center;
}

.overview-tile {
  display: grid;
  gap: 4px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--muted);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.overview-tile span,
.area-row span,
.area-row small,
.overview-tile small,
.alert-item span {
  color: var(--muted);
  font-size: 13px;
}

.overview-tile strong {
  font-size: 24px;
  line-height: 1.1;
}

.area-completion-list {
  display: grid;
  gap: 8px;
}

.client-area-map {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.area-map-title,
.area-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.area-map-title strong,
.area-detail-header strong {
  font-size: 15px;
}

.area-map-title span,
.area-detail-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.area-map-canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  border: 1px solid #ccd7d3;
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(14, 35, 38, 0.1)),
    url("assets/premium-office-sand-table-ppt.png");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.area-map-block {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  color: var(--text);
  text-align: left;
  box-shadow: 0 14px 28px rgba(23, 32, 42, 0.16);
}

.area-map-block strong,
.area-map-block span {
  display: block;
  overflow-wrap: anywhere;
}

.area-map-block span {
  font-size: 20px;
  font-weight: 800;
}

.area-map-block.completion-green {
  border-color: var(--ok);
  background: rgba(239, 250, 243, 0.82);
}

.area-map-block.completion-light_green {
  border-color: var(--light-ok);
  background: rgba(243, 251, 239, 0.82);
}

.area-map-block.completion-yellow {
  border-color: var(--warn);
  background: rgba(255, 248, 236, 0.84);
}

.area-map-block.completion-red {
  border-color: var(--danger);
  background: rgba(255, 242, 241, 0.84);
}

.client-area-detail {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.client-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-data-mode {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.client-mode-label,
.client-data-badge {
  width: fit-content;
  border: 1px solid #c8d9d5;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--accent);
  background: #eef7f4;
  font-size: 11px;
  font-weight: 800;
}

.client-mode-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(64px, 1fr));
  overflow: hidden;
  border: 1px solid #c7d4d1;
  border-radius: 6px;
}

.client-mode-buttons button {
  min-height: 32px;
  border-radius: 0;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.client-mode-buttons button + button {
  border-left: 1px solid #c7d4d1;
}

.client-mode-buttons button[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.client-overview-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 320px;
  overflow: hidden;
  border-radius: 6px;
  padding: 24px;
  color: #fff;
  background-color: #05080c;
  background-image: url("assets/star-emblem-overview-night.jpg");
  background-position: center;
  background-size: cover;
}

.client-overview-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.04) 46%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.client-overview-hero > div,
.client-overview-hero > small {
  position: relative;
  z-index: 1;
}

.client-overview-hero-copy {
  display: grid;
  gap: 5px;
  align-self: start;
  width: fit-content;
  max-width: 100%;
}

.client-overview-hero-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.client-overview-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.client-overview-hero-status {
  grid-row: 3;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(4, 7, 8, 0.7);
  font-size: 12px;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}

.client-overview-hero-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5fc985;
  box-shadow: 0 0 0 4px rgba(95, 201, 133, 0.12);
}

.client-overview-metrics {
  display: grid;
  gap: 16px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 22px;
  color: #111713;
  background: #f7f5f0;
}

.client-overview-metrics h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.client-overview-panel .overview-rings.client-overview-rings {
  grid-template-columns: minmax(0, 1.45fr) minmax(176px, 0.75fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.client-overview-rings > .overview-ring {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.client-overview-rings > .overview-ring:first-child {
  grid-row: 1 / 3;
  border-right: 1px solid #d5d1c9;
  padding-right: 20px;
}

.client-overview-rings > .overview-ring:first-child .overview-ring-chart {
  width: min(245px, 100%);
}

.client-overview-rings > .overview-ring:not(:first-child) .overview-ring-chart {
  width: min(132px, 100%);
}

.client-overview-rings .overview-ring-chart {
  background: conic-gradient(var(--ring-color) var(--ring-value), #deddd8 0);
}

.client-overview-rings .overview-ring-chart::after {
  background: #f7f5f0;
  box-shadow: inset 0 0 0 1px rgba(210, 207, 199, 0.72);
}

.client-overview-rings .overview-ring-center {
  gap: 5px;
}

.client-overview-rings .overview-ring-center strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
}

.client-overview-rings .overview-ring-center span {
  color: #252c28;
  font-size: 13px;
  font-weight: 500;
}

.client-overview-rings .overview-ring-center small {
  color: #59615d;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center strong {
  font-size: 28px;
}

.client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center span {
  font-size: 11px;
}

.client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center small {
  font-size: 9px;
}

.client-patrol-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 10px 16px;
  color: #29251f;
  background: #f7f5f0;
  text-align: left;
}

.client-patrol-notice:hover,
.client-patrol-notice:focus-visible {
  border-color: #b98a43;
  background: #fffaf0;
}

.client-patrol-notice-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #b8843f;
}

.client-patrol-notice-svg {
  width: 19px;
  height: 19px;
}

.client-patrol-notice strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.client-patrol-notice > span:nth-last-of-type(1) {
  color: #675b4c;
  font-size: 13px;
  font-weight: 600;
}

.client-patrol-notice-arrow {
  width: 18px;
  height: 18px;
}

.client-patrol-notice.is-complete .client-patrol-notice-icon {
  background: var(--ok);
}

.client-overview-panel .overview-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-building-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-building-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  border-top: 3px solid var(--muted);
  padding: 14px 2px 2px;
}

.client-building-summary-row > div:first-child {
  display: grid;
  gap: 3px;
}

.client-building-summary-row span,
.client-building-summary-row b {
  color: var(--muted);
  font-size: 12px;
}

.client-building-summary-row.completion-green {
  border-top-color: var(--ok);
}

.client-building-summary-row.completion-light_green {
  border-top-color: var(--light-ok);
}

.client-building-summary-row.completion-yellow {
  border-top-color: var(--warn);
}

.client-building-summary-row.completion-red {
  border-top-color: var(--danger);
}

.client-building-summary-row b {
  color: var(--text);
  font-size: 16px;
}

.client-progress-track {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecea;
}

.client-progress-track i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--ring-color, var(--accent));
}

.client-manager-patrol {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.client-manager-patrol-heads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-manager-patrol-head {
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.client-manager-patrol-head.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(23, 107, 93, 0.12);
}

.client-manager-patrol-head img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8edeb;
}

.client-manager-patrol-head > span {
  display: grid;
  gap: 2px;
  padding: 9px;
}

.client-manager-patrol-head small {
  color: var(--muted);
  font-weight: 600;
}

.client-manager-patrol-detail {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.client-manager-patrol-detail .client-photo-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-manager-patrol-detail .photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.client-manager-patrol-detail .photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.client-manager-patrol-detail .photo-card figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.client-digital-twin {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #273136;
  border-radius: 8px;
  background: #05070a url("assets/star-emblem-digital-twin.jpg") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(20, 47, 44, 0.12);
}

.digital-twin-badge {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 108px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-left: 5px solid var(--ring-color, var(--accent));
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 12px 28px rgba(17, 38, 36, 0.18);
}

.digital-twin-badge strong {
  font-size: 14px;
}

.digital-twin-badge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.digital-twin-north {
  left: 10%;
  bottom: 16%;
}

.digital-twin-south {
  right: 9%;
  bottom: 13%;
}

.client-building-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 4px;
}

.client-building-board {
  min-width: 0;
  border-top: 3px solid #173f3a;
  padding-top: 12px;
}

.client-building-board > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  margin-bottom: 10px;
}

.client-building-board > header > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.client-building-board > header span {
  font-weight: 800;
}

.client-building-board > header strong {
  color: var(--accent);
  font-size: 24px;
}

.client-building-board > header small {
  color: var(--muted);
  font-size: 12px;
}

.client-floor-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  border-top: 1px solid #e2e8e6;
  padding: 8px 0;
}

.client-floor-row > strong {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.client-floor-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.client-area-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d5dfdc;
  border-left: 4px solid var(--ring-color, var(--muted));
  padding: 7px 8px;
  color: var(--text);
  background: #f8faf9;
  text-align: left;
}

.client-area-button span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.client-area-button strong {
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
}

.client-area-button.selected {
  border-color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--accent-2);
  background: #eef4f7;
}

.area-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 20px;
  align-items: end;
  border-left: 6px solid var(--ring-color, var(--muted));
  border-radius: 6px;
  padding: 15px 16px;
  background: #f4f7f6;
}

.area-detail-header > div:first-child {
  display: grid;
  gap: 3px;
}

.area-detail-header span,
.area-detail-header small {
  color: var(--muted);
  font-size: 12px;
}

.area-detail-header strong {
  font-size: 19px;
}

.area-detail-header b {
  font-size: 22px;
}

.client-work-content-section,
.client-area-photo-section {
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.client-work-content-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.client-map-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.client-map-controls input {
  width: 148px;
}

.client-work-content-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid #e8eceb;
  border-radius: 0;
  padding: 8px 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.client-work-content-list button:hover,
.client-work-content-list button:focus-visible {
  background: #f3f7f6;
}

.client-work-content-list button.selected {
  border-bottom-color: var(--accent-2);
  color: var(--accent);
  background: #edf5f3;
}

.client-work-content-list span,
.client-work-content-list strong {
  font-size: 12px;
}

.client-work-content-list strong {
  color: var(--muted);
  white-space: nowrap;
}

.client-empty-state {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  min-height: 104px;
  place-content: center;
  border: 1px dashed #cbd6d3;
  border-radius: 6px;
  padding: 20px;
  color: var(--muted);
  background: #f8faf9;
  text-align: center;
}

.client-empty-state strong {
  color: var(--text);
}

.client-empty-state span,
.muted-copy {
  color: var(--muted);
  font-size: 12px;
}

.client-photo-wall-panel .client-photo-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-history-controls {
  align-items: end;
}

.photo-history-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.photo-history-controls input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.area-detail-photos {
  margin-top: 0;
}

.task-drilldown-photo small {
  color: #34506a;
  font-variant-numeric: tabular-nums;
}

.area-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 6px solid var(--muted);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.area-row small {
  grid-column: 1 / -1;
}

.completion-green {
  border-left-color: var(--ok);
  --ring-color: var(--ok);
}

.completion-light_green {
  border-left-color: var(--light-ok);
  --ring-color: var(--light-ok);
}

.completion-yellow {
  border-left-color: var(--warn);
  --ring-color: var(--warn);
}

.completion-red {
  border-left-color: var(--danger);
  --ring-color: var(--danger);
}

.completion-pending,
.completion-neutral {
  border-left-color: var(--muted);
  --ring-color: var(--muted);
}

.alert-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.alert-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 0;
  border: 1px solid #ecd3a8;
  border-left: 6px solid var(--warn);
  border-radius: 6px;
  padding: 10px;
  color: var(--muted);
  text-align: left;
  background: #fff8ec;
  font: inherit;
}

.alert-item strong {
  color: var(--text);
}

.alert-item:hover {
  box-shadow: 0 8px 20px rgba(28, 42, 55, 0.08);
}

.alert-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.alert-item-top b {
  color: var(--text);
  font-size: 13px;
}

.alert-yellow {
  border-color: #ecd3a8;
  border-left-color: var(--warn);
  background: #fff8ec;
}

.alert-green {
  border-color: #cfe6dc;
  border-left-color: var(--ok);
  background: #f1faf5;
}

.completion-photo-detail {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.completion-photo-detail h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.completion-photo-detail .photo-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.completion-photo-detail .photo-item img {
  aspect-ratio: 4 / 3;
}

.exception-panel > button {
  width: 100%;
  margin-top: 10px;
}

.field-text {
  min-height: 88px;
  margin-top: 8px;
  resize: vertical;
  padding: 10px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hold-voice {
  width: 100%;
  margin-top: 10px;
  touch-action: none;
}

.hold-voice.recording {
  background: #fff4e3;
  color: var(--warn);
  border-color: #edc57d;
}

.client-exception-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  gap: 14px 18px;
  margin: 16px 0 20px;
  border-top: 1px solid #d7e2e5;
  border-bottom: 1px solid #d7e2e5;
  padding: 18px 0;
}

.client-exception-form-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.client-exception-form-heading > div,
.client-exception-field {
  display: grid;
  gap: 6px;
}

.client-exception-form-heading strong {
  color: #102a36;
  font-size: 16px;
}

.client-exception-form-heading span,
.client-exception-field > span {
  color: var(--muted);
  font-size: 12px;
}

.client-exception-live-mark {
  border: 1px solid #b8d8ce;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--accent) !important;
  background: #edf8f4;
  font-weight: 800;
  white-space: nowrap;
}

.client-exception-field select,
.client-exception-field textarea {
  width: 100%;
  border: 1px solid #cbd9d5;
  border-radius: 6px;
  color: var(--text);
  background: #fff;
}

.client-exception-field select {
  min-height: 44px;
  padding: 0 10px;
}

.client-exception-field textarea {
  min-height: 92px;
  margin-top: 0;
}

.client-exception-photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.client-exception-photo-review {
  grid-column: 1 / 2;
  width: min(100%, 320px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #d7e2e5;
  border-radius: 6px;
  background: #eef3f4;
}

.client-exception-photo-review img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.client-exception-photo-review figcaption {
  padding: 7px 9px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.client-exception-form > button[type="submit"] {
  grid-column: 1 / 2;
}

.client-exception-form > .hint {
  align-self: center;
  margin: 0;
}

.client-exception-history-title {
  margin: 0;
  color: #102a36;
  font-size: 15px;
}

.pm-exception-notifications {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-left: 4px solid #d18b20;
  padding: 12px 14px;
  background: #fff7e8;
}

.pm-exception-notification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  color: var(--text);
}

.pm-exception-notification p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pm-exception-notification span {
  color: #8a5b14;
  font-size: 12px;
  font-weight: 800;
}

.pm-exception-source {
  width: fit-content;
  border: 1px solid #bad4cc;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--accent);
  background: #edf8f4;
  font-size: 11px;
  font-weight: 800;
}

.page-nav-alert {
  display: inline-grid;
  min-width: 18px;
  min-height: 18px;
  place-items: center;
  border-radius: 999px;
  padding: 0 5px;
  color: #fff;
  background: #b96c17;
  font-size: 10px;
  font-weight: 800;
}

.exception-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.client-exceptions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.pm-exceptions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.astryx-client-exceptions-surface {
  border-color: #c9d8dc;
  background: #fbfcfc;
  box-shadow: 0 16px 38px rgba(23, 32, 42, 0.08);
}

.astryx-client-exceptions-surface h2 {
  color: #102a36;
  font-size: 18px;
}

.astryx-client-exceptions-surface .client-exceptions {
  gap: 12px;
}

.astryx-client-exceptions-surface .client-exception-item {
  gap: 10px;
  border-color: #d7e2e5;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.06);
}

.astryx-client-exceptions-surface .client-exception-item strong {
  font-size: 15px;
}

.astryx-client-exceptions-surface .client-exception-item > span {
  width: fit-content;
  border: 1px solid #c8d9d5;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--accent);
  background: #f1faf5;
  font-size: 12px;
  font-weight: 700;
}

.exception-item {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.exception-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #eef1f5;
}

.client-exception-item img {
  aspect-ratio: 4 / 3;
}

.client-exception-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pm-exception-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pm-exception-photos .astryx-photo-frame:only-child {
  grid-column: 1 / -1;
}

.client-exception-photos img {
  min-width: 0;
}

.astryx-photo-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe7e9;
  border-radius: 6px;
  background: #eef1f5;
}

.astryx-photo-frame img {
  height: 100%;
  border: 0;
  border-radius: 0;
}

.astryx-photo-label {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 3px 8px;
  color: #ffffff;
  background: rgba(16, 42, 54, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.exception-item strong {
  color: var(--text);
}

.exception-item a {
  color: var(--accent-2);
  font-weight: 700;
}

.exception-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.report-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.report-history-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-history-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #d8e3df;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.report-history-panel h3 {
  margin: 0;
  font-size: 15px;
}

.report-history-list {
  display: grid;
  gap: 8px;
}

.report-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.report-history-item span,
.report-history-item small {
  color: var(--muted);
  font-size: 12px;
}

.active-report-history-item {
  border-color: #8fc9bd;
  background: #eef8f4;
}

.report-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

.pending-report {
  border-color: #c8d9d5;
  box-shadow: 0 8px 24px rgba(26, 97, 83, 0.08);
}

.report-item strong {
  color: var(--text);
}

.report-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.report-item a {
  color: var(--accent-2);
  font-weight: 700;
}

.client-reports {
  gap: 18px;
}

.client-report-card {
  gap: 16px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #c9d6d1;
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.08);
}

.report-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #102d29;
  color: #fff;
}

.report-card-header strong {
  color: #fff;
  font-size: 20px;
}

.report-card-header span {
  color: #d9e7e1;
  font-size: 13px;
  font-weight: 700;
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 16px 0;
}

.report-metric {
  display: grid;
  gap: 4px;
  min-height: 92px;
  border: 1px solid #d8e3df;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.report-metric span,
.report-metric small,
.report-section figcaption,
.report-empty {
  color: var(--muted);
  font-size: 12px;
}

.report-metric strong {
  color: var(--accent);
  font-size: 24px;
  line-height: 1.1;
}

.report-ai-summary,
.report-section {
  display: grid;
  gap: 10px;
  margin: 0 16px;
}

.report-ai-summary {
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  background: #eef7f2;
}

.report-ai-summary h3,
.report-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.report-ai-summary p,
.report-exception-row p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.report-area-list {
  display: grid;
  gap: 8px;
}

.report-area-row {
  display: grid;
  gap: 6px;
}

.report-area-row div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.report-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6ece9;
}

.report-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23835f, #70c8c5);
}

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

.report-photo-grid figure,
.report-exception-photos figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-photo-grid img,
.report-exception-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f5;
}

.report-section figcaption {
  padding: 7px 8px;
  font-weight: 700;
}

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

.report-exception-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.report-exception-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.report-export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 16px 16px;
  border-radius: 6px;
  background: #edf3f1;
  text-decoration: none;
}

.pm-text {
  min-height: 76px;
  resize: vertical;
  padding: 10px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.photo-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
}

.photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  background: #eef1f5;
}

.photo-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.task-page-heading,
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.task-date-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.task-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.task-summary-strip span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
}

.task-summary-strip span + span {
  border-left: 1px solid var(--line);
}

.task-summary-strip strong {
  color: var(--text);
  font-size: 22px;
}

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

.cleaner-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 12px;
  align-items: center;
  min-height: 142px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  padding: 14px;
  background: #fff;
}

.cleaner-task-card.completed {
  border-left-color: var(--ok);
  background: #f7fbf9;
}

.cleaner-task-card.scheduled,
.cleaner-task-card.cancelled {
  border-left-color: #9aa4b2;
  background: #f8f9fa;
}

.cleaner-task-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cleaner-task-main h3,
.cleaner-task-main p,
.task-selection-section h3,
.manager-task-occurrences-section h3,
.task-progress-overview h3,
.task-progress-detail h3 {
  margin: 0;
  letter-spacing: 0;
}

.cleaner-task-main h3 {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.cleaner-task-main p {
  color: var(--muted);
  font-size: 13px;
}

.task-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12px;
}

.task-status {
  width: fit-content;
  color: var(--warn);
  font-size: 12px;
  font-weight: 800;
}

.task-status.completed,
.task-status.active {
  color: var(--ok);
}

.task-status.scheduled,
.task-status.cancelled {
  color: var(--muted);
}

.cleaner-task-card button {
  width: 100%;
  min-height: 54px;
  padding: 0 10px;
}

.cleaner-task-card button:disabled {
  cursor: default;
  color: #5e6b78;
  background: #e7ecef;
}

.task-camera-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.manager-patrol-panel {
  display: grid;
  gap: 18px;
}

.manager-patrol-plan,
.manager-patrol-round-section,
.manager-patrol-area-detail,
.cleaner-reminder-section,
.pm-photo-history-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.pm-photo-history-controls {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr);
  gap: 8px;
}

.pm-photo-history-controls input,
.pm-photo-history-controls select {
  min-height: 40px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.pm-photo-history-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pm-history-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.pm-history-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef1f5;
}

.pm-history-photo > div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.pm-history-photo strong {
  font-size: 13px;
}

.pm-history-photo span,
.pm-history-photo small {
  color: var(--muted);
  font-size: 12px;
}

.manager-patrol-schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #cbd9d5;
  border-radius: 6px;
  padding: 12px;
  background: #f4f8f7;
}

.manager-patrol-schedule-summary > div {
  display: grid;
  gap: 3px;
}

.manager-patrol-schedule-summary span,
.manager-patrol-schedule-summary small {
  color: var(--muted);
  font-size: 12px;
}

.manager-patrol-schedule-editor {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px 12px;
}

.manager-patrol-schedule-editor > summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.manager-patrol-schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.manager-patrol-schedule-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manager-patrol-schedule-grid input,
.manager-patrol-window-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--text);
  background: #fff;
}

.manager-patrol-window-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.manager-patrol-window-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.4fr) minmax(100px, 1fr) auto minmax(100px, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.manager-patrol-window-row > span {
  color: var(--muted);
  font-size: 12px;
}

.manager-patrol-window-row .icon-action {
  min-width: 40px;
  padding: 0;
  font-size: 20px;
}

.manager-patrol-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.manager-patrol-schedule-editor .field-text {
  min-height: 40px;
}

.manager-patrol-round-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.manager-patrol-primary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manager-patrol-primary-actions #startCurrentManagerPatrol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
}

.manager-patrol-primary-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.manager-patrol-current-context {
  margin: 5px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.manager-patrol-round-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-width: 0;
  min-height: 116px;
  border: 1px solid var(--line);
  border-top: 4px solid #8d98a7;
  padding: 12px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.manager-patrol-round-card.active {
  border-top-color: var(--accent-2);
  background: #f5f9fc;
}

.manager-patrol-round-card.incomplete {
  border-top-color: var(--warn);
  background: #fff9ef;
}

.manager-patrol-round-card.complete {
  border-top-color: var(--ok);
  background: #f2faf5;
}

.manager-patrol-round-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manager-patrol-round-copy,
.manager-patrol-round-progress {
  display: grid;
  gap: 4px;
}

.manager-patrol-round-copy small,
.manager-patrol-round-progress small {
  color: var(--muted);
  font-size: 11px;
}

.manager-patrol-round-progress {
  justify-items: end;
}

.manager-patrol-round-card .task-progress-bar {
  grid-column: 1 / -1;
}

.manager-patrol-detail-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

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

.manager-patrol-area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 68px;
  border: 1px solid #e2c58c;
  padding: 10px;
  color: var(--text);
  background: #fff9ed;
  text-align: left;
}

.manager-patrol-area-card.completed {
  border-color: #9fc9b1;
  background: #f1faf5;
}

.manager-patrol-area-card.selected {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(31, 78, 121, 0.12);
}

.manager-patrol-area-card > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.manager-patrol-area-card strong {
  overflow-wrap: anywhere;
}

.manager-patrol-area-card small {
  color: var(--muted);
  font-size: 11px;
}

.manager-patrol-photo-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.manager-patrol-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.manager-patrol-photo-card.excluded {
  border-color: #e2c58c;
}

.manager-patrol-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9edef;
}

.manager-patrol-photo-card figcaption {
  display: grid;
  gap: 3px;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
}

.manager-patrol-photo-card figcaption strong {
  color: var(--text);
}

.manager-patrol-photo-card figcaption small {
  color: var(--warn);
  font-weight: 700;
}

.manager-patrol-camera-panel .cleaner-camera-shell {
  max-width: 520px;
  margin: 0 auto;
}

.selected-task-context {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  padding: 8px 12px;
  background: #f3f8f6;
}

.selected-task-context span,
.selected-task-context small {
  color: var(--muted);
}

.cleaner-task-panel video {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101820;
  object-fit: cover;
}

.roster-date-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
}

.roster-toolbar {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(230px, auto);
  gap: 10px;
  align-items: end;
  margin: 16px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.roster-toolbar label,
.task-position-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.roster-toolbar input,
.roster-date-actions input,
.task-page-heading input,
.task-position-field select {
  width: 100%;
  min-height: 38px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.roster-save-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
}

.roster-validation-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.roster-validation-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-left: 4px solid var(--line);
  padding: 10px 12px;
}

.roster-validation-item + .roster-validation-item {
  border-top: 0;
}

.roster-validation-item span {
  color: var(--muted);
  font-size: 11px;
}

.roster-validation-item strong {
  font-size: 18px;
}

.roster-validation-item.ok {
  border-left-color: var(--ok);
}

.roster-validation-item.warn {
  border-left-color: var(--warn);
  background: #fffaf0;
}

.roster-validation-item.danger {
  border-left-color: var(--danger);
  background: #fff5f4;
}

.roster-validation-item.neutral {
  border-left-color: var(--accent-2);
}

.roster-workbench {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.roster-cleaner-pool-section {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.roster-cleaner-pool {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.roster-cleaner-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfd8d5;
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--text);
  background: #fff;
  cursor: grab;
  touch-action: manipulation;
}

.roster-cleaner-card:active {
  cursor: grabbing;
}

.roster-cleaner-card:focus-visible,
.roster-drop-zone:focus-visible {
  outline: 3px solid rgba(31, 78, 121, 0.28);
  outline-offset: 2px;
}

.roster-cleaner-card.selected {
  border-color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--accent-2);
  background: #f3f7fb;
}

.roster-cleaner-card.unassigned {
  border-color: #d6a14e;
  background: #fffaf0;
}

.roster-cleaner-card.duplicate {
  border-color: var(--danger);
  background: #fff5f4;
}

.roster-cleaner-card.dragging {
  opacity: 0.45;
}

.roster-drag-handle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 32px;
  color: #86908f;
}

.roster-grip-icon {
  width: 20px;
  height: 20px;
}

.roster-cleaner-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.roster-cleaner-copy strong,
.roster-cleaner-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-cleaner-copy strong {
  font-size: 13px;
}

.roster-cleaner-copy small {
  color: var(--muted);
  font-size: 10px;
}

.roster-table-section {
  min-width: 0;
}

.roster-table-header,
.daily-roster-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(180px, 1fr) minmax(110px, 0.7fr) 72px;
  gap: 10px;
  align-items: center;
}

.roster-table-header {
  border-bottom: 1px solid var(--line);
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.daily-roster-list,
.manager-task-occurrences {
  display: grid;
}

.manager-task-occurrences {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.daily-roster-row {
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}

.daily-roster-row.changed {
  background: #f8fbfa;
}

.roster-drop-zone {
  min-width: 0;
  min-height: 58px;
  border: 1px dashed #aebbb8;
  border-radius: 6px;
  padding: 3px;
  background: #f8faf9;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.roster-drop-zone.drag-over {
  border-color: var(--accent);
  background: #eef8f4;
  box-shadow: inset 0 0 0 2px rgba(23, 107, 93, 0.18);
}

.roster-drop-zone .roster-cleaner-card {
  min-height: 50px;
  border-color: transparent;
  background: transparent;
}

.roster-mobile-assignment,
.roster-cleaner-sheet {
  display: none;
}

.roster-empty-assignment {
  display: grid;
  min-height: 50px;
  place-items: center;
  color: var(--warn);
  font-size: 12px;
}

.roster-position-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.roster-position-name span,
.roster-intervals {
  color: var(--muted);
  font-size: 12px;
}

.roster-position-name strong {
  overflow-wrap: anywhere;
}

.roster-row-state {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ok);
  background: #eaf5ef;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.roster-row-state.changed {
  color: #80500c;
  background: #fff1d6;
}

.task-selection-section,
.manager-task-occurrences-section {
  margin-top: 18px;
}

.task-progress-overview,
.task-progress-detail {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.task-progress-area-list,
.task-progress-building {
  display: grid;
  gap: 18px;
}

.task-progress-area-list {
  margin-top: 14px;
}

.task-progress-building {
  gap: 9px;
}

.task-progress-building-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.task-progress-building-heading h3 {
  font-size: 15px;
}

.task-progress-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-progress-area-card {
  --task-progress-tone: #87938f;
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-width: 0;
  min-height: 142px;
  border: 1px solid #d8e1df;
  border-left: 4px solid var(--task-progress-tone);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  text-align: left;
  background: #fff;
}

.task-progress-area-card:hover,
.task-progress-area-card:focus-visible {
  border-color: var(--task-progress-tone);
  box-shadow: 0 5px 16px rgba(24, 49, 43, 0.08);
  transform: translateY(-1px);
}

.task-progress-area-card.complete {
  --task-progress-tone: var(--ok);
  background: #f5fbf7;
}

.task-progress-area-card.active {
  --task-progress-tone: var(--warn);
  background: #fffaf0;
}

.task-progress-area-card.not-started {
  --task-progress-tone: var(--danger);
  background: #fff8f7;
}

.task-progress-area-card.no-tasks {
  background: #f7f9f8;
}

.task-progress-card-top,
.task-progress-counts,
.task-progress-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.task-progress-card-top strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.task-progress-card-top b {
  flex: 0 0 auto;
  color: var(--task-progress-tone);
  font-size: 22px;
}

.task-progress-counts {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
}

.task-progress-bar {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edeb;
}

.task-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--task-progress-tone);
}

.task-progress-card-action {
  justify-content: flex-end;
  color: var(--task-progress-tone);
  font-size: 11px;
  font-weight: 700;
}

.task-progress-arrow {
  width: 15px;
  height: 15px;
}

.task-progress-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-progress-detail-header button {
  width: auto;
  min-height: 38px;
}

.task-progress-detail-header .eyebrow {
  margin-bottom: 2px;
}

.task-selection-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.task-selection-heading,
.task-selection-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.task-selection-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.task-position-field {
  display: grid;
  width: min(300px, 100%);
}

.task-selection-toolbar {
  margin-top: 14px;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f3f8f6;
}

.task-selection-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.task-selection-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.task-selection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.task-selection-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid #dce5e2;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  cursor: pointer;
}

.task-selection-item:has(input:checked) {
  border-color: #8fc4b7;
  background: #f4faf7;
}

.task-selection-item input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.task-selection-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.task-selection-copy strong {
  overflow-wrap: anywhere;
}

.task-selection-copy span,
.task-selection-item small {
  color: var(--muted);
  font-size: 12px;
}

.task-selection-item small {
  white-space: nowrap;
}

.manager-task-row {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.manager-task-row.completed {
  background: #f7fbf9;
}

.manager-task-summary {
  display: grid;
  grid-template-columns: 66px minmax(220px, 1fr) minmax(100px, 0.7fr) 92px 64px;
  gap: 12px;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
}

.manager-task-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.manager-task-summary > div span {
  color: var(--muted);
  font-size: 12px;
}

.manager-task-source-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
  gap: 8px;
  padding: 0 8px;
}

.manager-task-source-photos figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.manager-task-source-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.manager-task-source-photos figcaption {
  padding: 6px 8px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1120px) {
  .astryx-client-exceptions-surface .client-exceptions,
  .pm-exceptions {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .app-sidebar {
    position: static;
    max-height: none;
  }

  .page-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-progress-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    min-height: auto;
  }

  textarea {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .layout,
  body[data-active-role]:not([data-active-role="system_admin"]) .layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, calc(100vw - 20px));
    padding: 10px 0;
  }

  .topline {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-photo-wall,
  .completion-photo-detail .photo-list,
  .pm-photo-history-list,
  .client-exceptions {
    grid-template-columns: minmax(0, 1fr);
  }

  .pm-photo-history-controls {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .client-exception-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-exception-form-heading,
  .client-exception-photo-review,
  .client-exception-form > button[type="submit"] {
    grid-column: 1;
  }

  .client-exception-photo-review {
    width: 100%;
  }

  .overview-rings,
  .overview-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-page .role-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .trial-flow-head {
    display: grid;
  }

  .trial-flow-head span {
    width: fit-content;
    white-space: normal;
  }

  .trial-flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-brand h1 {
    font-size: 28px;
  }

  .overview-ring {
    min-height: 210px;
  }

  .report-card-header,
  .report-exception-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .report-metrics-grid,
  .report-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cleaner-task-list,
  .task-selection-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-cleaner-pool-section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
  }

  .roster-cleaner-pool {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manager-task-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-overview-panel .overview-rings,
  .client-overview-panel .overview-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-manager-patrol-heads,
  .client-manager-patrol-detail .client-photo-wall,
  .manager-patrol-schedule-grid,
  .manager-patrol-area-list,
  .manager-patrol-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-patrol-round-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .manager-patrol-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .manager-patrol-primary-actions #startCurrentManagerPatrol {
    width: 100%;
  }

  .client-building-summary,
  .client-building-boards,
  .client-work-content-list,
  .client-photo-wall-panel .client-photo-wall {
    grid-template-columns: minmax(0, 1fr);
  }

  textarea {
    min-height: 320px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  body {
    background: #f2f5f4;
  }

  button,
  select {
    min-height: 44px;
  }

  .entry-page {
    min-height: 100dvh;
    place-items: start stretch;
    padding: 0;
    background: #f2f5f4;
  }

  .entry-shell {
    gap: 0;
    width: 100%;
  }

  .entry-brand {
    min-height: 176px;
    align-content: end;
    padding: 30px 20px 26px;
    text-align: left;
    color: #fff;
    background: #0f4c43;
  }

  .entry-brand .eyebrow,
  .entry-brand p:last-child {
    color: rgba(255, 255, 255, 0.76);
  }

  .entry-brand h1 {
    font-size: 29px;
    line-height: 1.1;
  }

  .entry-panel {
    border: 0;
    border-radius: 0;
    padding: 22px 16px 28px;
    background: #f2f5f4;
  }

  .entry-panel h2 {
    font-size: 21px;
  }

  .role-entry-intro {
    margin-top: 6px;
  }

  .entry-page .role-list {
    gap: 10px;
    margin-top: 16px;
  }

  .entry-page .role-item {
    min-height: 88px;
    border-color: #dce3e1;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 5px 16px rgba(25, 44, 40, 0.06);
  }

  .entry-page .role-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
  }

  .entry-page .role-title button {
    width: auto;
    min-width: 76px;
    min-height: 38px;
  }

  .role-focus {
    padding-left: 36px;
    color: #34443f;
    font-size: 13px;
  }

  .role-description {
    display: none;
  }

  .trial-flow {
    display: none;
  }

  .trial-step-card {
    min-height: auto;
  }

  .layout,
  body[data-active-role]:not([data-active-role="system_admin"]) .layout {
    width: 100%;
    gap: 0;
    padding: 0;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 0;
    max-height: none;
    border-bottom: 1px solid #dce3e1;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    box-shadow: 0 3px 12px rgba(25, 44, 40, 0.06);
  }

  .sidebar-brand {
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 0;
    min-height: 64px;
    padding: 10px 96px 9px 16px;
    background: transparent;
  }

  .sidebar-brand .eyebrow {
    display: none;
  }

  .sidebar-brand h1 {
    display: none;
  }

  .mobile-nav-strip {
    display: block;
  }

  .mobile-app-title {
    display: grid;
    gap: 2px;
    align-items: center;
    min-width: 0;
  }

  .mobile-app-title span {
    overflow: hidden;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-title strong {
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .mobile-nav-collapsed .page-nav,
  .mobile-nav-collapsed .back-entry-button {
    display: grid;
  }

  .page-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
    gap: 0;
    overflow-x: visible;
    border: 0;
    border-top: 1px solid #dce3e1;
    border-radius: 0;
    padding: 5px 4px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 18px rgba(25, 44, 40, 0.08);
    backdrop-filter: blur(14px);
  }

  .page-nav-button {
    display: grid;
    grid-template-rows: 24px auto;
    justify-items: center;
    align-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    padding: 3px 2px 1px;
    color: #74807d;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
    background: transparent;
  }

  .page-nav-button.active-page-button {
    color: var(--accent);
    border-color: transparent;
    background: transparent;
    box-shadow: inset 0 2px 0 var(--accent);
  }

  .page-nav-button .nav-icon {
    width: 22px;
    height: 22px;
  }

  .back-entry-button {
    position: absolute;
    top: 13px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    margin: 0;
    border-color: #d0ddd9;
    padding: 0 10px;
    font-size: 12px;
  }

  .status-row {
    display: none;
  }

  .page-stack,
  .panel,
  .workspace {
    width: 100%;
    min-width: 0;
  }

  .page-stack {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    background: #fff;
  }

  .panel,
  .workspace {
    min-height: calc(100dvh - 128px);
    border: 0;
    border-radius: 0;
    padding: 20px 16px;
  }

  .workspace {
    min-height: auto;
  }

  h2 {
    font-size: 22px;
  }

  body[data-active-role="client_viewer"] .page-stack > .active-page > h2,
  body[data-active-role="project_manager"] .page-stack > .active-page > h2,
  body[data-active-role="project_manager"] .page-stack > .active-page > .task-page-heading h2,
  body[data-active-role="owner_viewer"] .page-stack > .active-page > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .task-page-heading,
  .section-heading-row {
    display: grid;
  }

  .task-summary-strip span {
    padding: 13px 8px;
    text-align: center;
  }

  .task-summary-strip strong {
    font-size: 19px;
  }

  .cleaner-task-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border: 1px solid #dce3e1;
    border-left-width: 4px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(25, 44, 40, 0.05);
  }

  .cleaner-task-card button {
    min-height: 50px;
  }

  .roster-date-actions,
  .roster-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-save-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-validation-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-cleaner-pool {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-cleaner-pool-section {
    display: none;
  }

  .roster-table-header {
    display: none;
  }

  .daily-roster-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 0;
  }

  .task-selection-heading,
  .task-selection-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .task-position-field {
    width: 100%;
  }

  .task-selection-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-selection-actions button {
    width: 100%;
  }

  #saveTaskSelection {
    grid-column: 1 / -1;
  }

  .task-selection-item {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .task-selection-item small {
    grid-column: 2;
  }

  .task-progress-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-progress-area-card {
    min-height: 132px;
    padding: 11px;
  }

  .task-progress-card-top {
    align-items: flex-start;
  }

  .task-progress-card-top b {
    font-size: 19px;
  }

  .task-progress-counts {
    display: grid;
    justify-content: stretch;
    gap: 2px;
  }

  .task-progress-detail-header {
    align-items: flex-start;
  }

  .roster-position-name {
    grid-column: 1;
    grid-row: 1;
  }

  .roster-row-state {
    grid-column: 2;
    grid-row: 1;
  }

  .roster-drop-zone {
    display: none;
  }

  .roster-mobile-assignment {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    border: 1px solid #cfd8d5;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    background: #fff;
    text-align: left;
  }

  .roster-mobile-assignment-copy,
  .roster-cleaner-option-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .roster-mobile-assignment-copy strong,
  .roster-mobile-assignment-copy small,
  .roster-cleaner-option-copy strong,
  .roster-cleaner-option-copy small {
    overflow-wrap: anywhere;
  }

  .roster-mobile-assignment-copy small,
  .roster-cleaner-option-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
  }

  .roster-mobile-assignment-action {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
  }

  .roster-mobile-assignment:focus-visible,
  .roster-cleaner-option:focus-visible,
  .roster-cleaner-sheet-close:focus-visible {
    outline: 3px solid rgba(23, 107, 93, 0.24);
    outline-offset: 2px;
  }

  body.roster-sheet-open {
    overflow: hidden;
  }

  .roster-cleaner-sheet:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
  }

  .roster-cleaner-sheet-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(13, 31, 28, 0.46);
  }

  .roster-cleaner-sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: min(76dvh, 650px);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    padding: 0 14px max(14px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -12px 32px rgba(16, 40, 35, 0.2);
  }

  .roster-cleaner-sheet-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: 16px 0 12px;
  }

  .roster-cleaner-sheet-header h3,
  .roster-cleaner-sheet-header .hint {
    margin: 0;
  }

  .roster-cleaner-sheet-header .hint {
    margin-top: 5px;
    line-height: 1.45;
  }

  .roster-cleaner-sheet-close {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    padding: 0;
    color: var(--text);
    background: #f6f8f7;
  }

  .roster-sheet-close-icon {
    width: 20px;
    height: 20px;
  }

  .roster-cleaner-options {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 0;
  }

  .roster-cleaner-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    border: 1px solid #cfd8d5;
    border-radius: 6px;
    padding: 9px 11px;
    color: var(--text);
    background: #fff;
    text-align: left;
  }

  .roster-cleaner-option.current {
    border-color: var(--accent);
    background: #eef8f4;
  }

  .roster-cleaner-option.unassigned {
    border-color: #d6a14e;
    background: #fffaf0;
  }

  .roster-cleaner-option-state {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .roster-intervals {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .roster-toolbar button {
    width: 100%;
  }

  .overview-ring {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: auto;
    padding: 14px;
  }

  .overview-ring-chart {
    width: 126px;
  }

  .overview-ring-chart::after {
    inset: 12px;
  }

  .overview-ring-center strong {
    font-size: 28px;
  }

  .overview-ring small {
    text-align: left;
  }

  .client-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .client-data-mode {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
  }

  .client-overview-hero {
    display: grid;
    align-content: space-between;
    align-items: start;
    min-height: 210px;
    gap: 12px;
    padding: 15px;
    background-position: center;
  }

  .client-overview-hero strong {
    font-size: 21px;
  }

  .client-overview-hero small {
    align-self: end;
    max-width: none;
    text-align: left;
  }

  .client-overview-panel .overview-ring {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 7px;
    min-width: 0;
    padding: 10px 6px;
  }

  .client-overview-panel .overview-ring-chart {
    width: min(104px, 100%);
  }

  .client-overview-panel .overview-ring-center strong {
    font-size: 23px;
  }

  .client-overview-panel .overview-ring-center span,
  .client-overview-panel .overview-ring small {
    font-size: 11px;
    text-align: center;
  }

  .client-overview-panel .overview-tile {
    min-height: 92px;
    padding: 9px;
  }

  .client-overview-panel .overview-tile strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .manager-patrol-schedule-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manager-patrol-schedule-summary > small {
    grid-column: 1 / -1;
  }

  .manager-patrol-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-patrol-window-row {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.8fr) minmax(92px, 0.8fr) 40px;
  }

  .manager-patrol-window-row > span {
    display: none;
  }

  .manager-patrol-detail-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .manager-patrol-detail-heading > button:last-child {
    grid-column: 1 / -1;
    width: 100%;
  }

  .manager-patrol-area-list,
  .manager-patrol-photo-list,
  .client-manager-patrol-heads,
  .client-manager-patrol-detail .client-photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-digital-twin {
    min-height: 232px;
    aspect-ratio: 4 / 3;
  }

  .client-map-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .client-map-controls input {
    width: 100%;
  }

  .digital-twin-badge {
    min-width: 88px;
    padding: 7px 8px;
  }

  .digital-twin-north {
    left: 5%;
    bottom: 12%;
  }

  .digital-twin-south {
    right: 4%;
    bottom: 10%;
  }

  .client-floor-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-detail-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
  }

  .area-detail-header b {
    font-size: 17px;
  }

  .area-map-title,
  .area-detail-header,
  .report-card-header {
    align-items: start;
  }

  .area-map-canvas {
    aspect-ratio: 4 / 5;
    min-height: 390px;
    background-position: center;
  }

  .area-map-block {
    min-height: 54px;
    padding: 8px;
    border-width: 1px;
    box-shadow: 0 10px 20px rgba(23, 32, 42, 0.14);
  }

  .area-map-block strong {
    font-size: 13px;
  }

  .area-map-block span {
    font-size: 18px;
  }

  .client-photo-wall,
  .area-detail-photos,
  .completion-photo-detail .photo-list,
  .client-exceptions,
  .pm-exceptions,
  .report-metrics-grid,
  .report-exception-row,
  .report-history-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-card-header {
    padding: 15px 14px;
  }

  .report-card-header strong {
    font-size: 18px;
  }

  .report-card-header span {
    line-height: 1.45;
  }

  .report-metrics-grid {
    padding: 14px 14px 0;
  }

  .report-ai-summary,
  .report-section {
    margin: 0 14px;
  }

  .report-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-export-link {
    margin: 0 14px 14px;
  }

  .report-history-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-history-item {
    justify-items: start;
  }

  .cleaner-panel {
    min-height: calc(100vh - 83px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .cleaner-camera-shell {
    min-height: calc(100vh - 150px);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .cleaner-camera-frame {
    align-content: start;
    min-height: 0;
  }

  .cleaner-panel video,
  .cleaner-task-panel video,
  .manager-patrol-camera-panel video,
  .patrol-photo-review img {
    aspect-ratio: 3 / 4;
    max-height: min(52vh, 430px);
    object-fit: contain;
    background: #101820;
  }

  .patrol-photo-review {
    margin-top: 0;
  }

  .task-camera-panel .cleaner-camera-shell {
    min-height: calc(100dvh - 168px);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .camera-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 0 -14px -15px;
    border-top: 1px solid var(--line);
    padding: 10px 14px 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .camera-action-bar .button-row {
    margin-top: 0;
  }

  .camera-action-bar .hint {
    margin-top: 2px;
  }

  .exception-panel video {
    aspect-ratio: 3 / 4;
  }

  textarea,
  .field-text,
  .pm-text {
    min-height: 160px;
    font-size: 14px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] {
    --client-gold: #c49a55;
    --client-ivory: #f6f3ec;
    --client-surface: #111210;
    --client-surface-hover: #191a17;
    --client-line: rgba(246, 243, 236, 0.16);
    --client-muted: rgba(246, 243, 236, 0.62);
    background: #050505;
    color: var(--client-ivory);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .app-sidebar {
    border-bottom-color: #202020;
    background: #050505;
    box-shadow: none;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .sidebar-brand {
    min-height: 74px;
    padding: 0 72px;
    color: var(--client-ivory);
    background: #050505;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .mobile-nav-strip {
    display: grid;
    place-items: center;
    min-height: 74px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .mobile-app-title {
    display: grid;
    place-items: center;
    width: 100%;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #mobileCurrentPage {
    color: var(--client-ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 500;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #currentRoleLabel {
    position: absolute;
    top: 15px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--client-ivory);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #currentRoleLabel > span,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .back-entry-button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .mobile-role-icon {
    display: block;
    width: 27px;
    height: 27px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .back-entry-button {
    top: 15px;
    right: auto;
    left: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    border: 0;
    padding: 0;
    color: var(--client-ivory);
    background: transparent;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .back-entry-icon {
    display: block;
    width: 27px;
    height: 27px;
    transform: rotate(180deg);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .page-nav {
    border-top-color: #242424;
    padding-top: 6px;
    background: rgba(4, 4, 4, 0.98);
    box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.42);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .page-nav-button {
    min-height: 57px;
    color: #a7a7a7;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .page-nav-button:hover,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .page-nav-button.active-page-button {
    color: #ead39d;
    background: transparent;
    box-shadow: inset 0 2px 0 var(--client-gold);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .page-stack {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    background: #050505;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-panel {
    position: relative;
    min-height: calc(100dvh - 74px);
    border: 0;
    padding: 0 0 20px;
    color: var(--client-ivory);
    background: #050505;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-panel > .client-page-heading {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: block;
    width: auto;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-panel > .client-page-heading > div:first-child,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] #clientDataModeOverview .client-mode-label {
    display: none;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #clientDataModeOverview {
    display: block;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #clientDataModeOverview .client-mode-buttons {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(3, 3, 3, 0.6);
    backdrop-filter: blur(10px);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #clientDataModeOverview button {
    min-height: 32px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #clientDataModeOverview button + button {
    border-left-color: rgba(255, 255, 255, 0.24);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] #clientDataModeOverview button[aria-pressed="true"] {
    color: #17120a;
    background: #d9bd82;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .overview-grid {
    gap: 12px;
    margin-top: 0;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-hero {
    min-height: 330px;
    border-radius: 0;
    padding: 27px 20px 20px;
    background-position: center;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-hero-copy strong {
    font-size: 24px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-hero-copy p {
    font-size: 12px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-hero-status {
    max-width: calc(100% - 16px);
    padding: 7px 10px;
    font-size: 11px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-metrics {
    gap: 14px;
    margin: 0 12px;
    border-color: var(--client-line);
    border-radius: 6px;
    padding: 16px 14px;
    color: var(--client-ivory);
    background: var(--client-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-metrics h3 {
    color: var(--client-ivory);
    font-size: 18px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-panel .overview-rings.client-overview-rings {
    grid-template-columns: minmax(0, 1.45fr) minmax(96px, 0.75fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring {
    display: grid;
    min-height: 0;
    padding: 0;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:first-child {
    border-right-color: var(--client-line);
    padding-right: 12px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings .overview-ring-chart {
    background: conic-gradient(var(--ring-color) var(--ring-value), #30322e 0);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings .overview-ring-chart::after {
    background: var(--client-surface);
    box-shadow: inset 0 0 0 1px rgba(246, 243, 236, 0.08);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings .overview-ring-center strong {
    color: var(--client-ivory);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings .overview-ring-center span {
    color: rgba(246, 243, 236, 0.82);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings .overview-ring-center small {
    color: var(--client-muted);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:first-child .overview-ring-chart {
    width: min(174px, 100%);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:not(:first-child) .overview-ring-chart {
    width: min(96px, 100%);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:first-child .overview-ring-chart::after {
    inset: 13px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:not(:first-child) .overview-ring-chart::after {
    inset: 9px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:first-child .overview-ring-center strong {
    font-size: 39px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:first-child .overview-ring-center span {
    font-size: 12px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:first-child .overview-ring-center small {
    font-size: 10px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center {
    gap: 2px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center strong {
    font-size: 23px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center span {
    font-size: 9px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-overview-rings > .overview-ring:not(:first-child) .overview-ring-center small {
    max-width: 72px;
    font-size: 8px;
    line-height: 1.2;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice {
    grid-template-columns: 34px minmax(0, 1fr) auto 16px;
    gap: 9px;
    min-height: 58px;
    margin: 0 12px;
    width: calc(100% - 24px);
    border-color: var(--client-line);
    border-radius: 6px;
    padding: 9px 12px;
    color: var(--client-ivory);
    background: var(--client-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice:hover,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice:focus-visible {
    border-color: var(--client-gold);
    color: var(--client-ivory);
    background: var(--client-surface-hover);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice-icon {
    color: #151008;
    background: var(--client-gold);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice strong {
    color: var(--client-ivory);
    font-size: 14px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice > span:nth-last-of-type(1) {
    color: var(--client-muted);
    font-size: 11px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice-arrow {
    color: #dfc58f;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-patrol-notice.is-complete .client-patrol-notice-icon {
    color: #fff;
    background: var(--ok);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .overview-status-grid,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-building-summary,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-manager-patrol {
    margin-right: 12px;
    margin-left: 12px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .overview-tile,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-building-summary-row {
    border-color: #303030;
    color: var(--client-ivory);
    background: #111;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .overview-tile strong {
    color: #ead39d;
    background: #242016;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .overview-tile span,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .overview-tile small,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-building-summary-row span,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-building-summary-row b {
    color: #aaa;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-building-summary-row {
    border: 1px solid #303030;
    border-top: 3px solid var(--ring-color, #777);
    border-radius: 6px;
    padding: 13px;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-building-summary-row strong {
    color: var(--client-ivory);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-progress-track {
    background: #303030;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-manager-patrol {
    border-top-color: #303030;
    color: var(--client-ivory);
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-manager-patrol-head,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-manager-patrol-detail .photo-card {
    border-color: #343434;
    color: var(--client-ivory);
    background: #111;
  }

  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-manager-patrol-head small,
  body[data-active-role="client_viewer"][data-active-page="client-overview"] .client-manager-patrol-detail .photo-card figcaption {
    color: #aaa;
  }
}
