:root {
  --ivory: #f7f4ed;
  --paper: #fffdf8;
  --ink: #1b1b18;
  --muted: #686257;
  --olive: #555b3d;
  --bronze: #a4763d;
  --line: rgba(73, 62, 47, .18);
  --soft: #eee8dc;
  --good: #315f42;
  --bad: #8a2f27;
  --warn: #705111;
  --shadow: 0 10px 34px rgba(40, 32, 22, .07);
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--ivory); overflow-x: hidden; }
a { color: inherit; }

h1, h2, h3 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2rem, 6vw, 5.2rem); line-height: .98; }
h2 { font-size: clamp(1.65rem, 4vw, 3.1rem); line-height: 1.08; margin-bottom: 16px; }
h3 { font-size: 1.05rem; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.65; margin: 0; }

.hero {
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 28px 20px 11vh;
  background:
    linear-gradient(180deg, rgba(247,244,237,.93), rgba(255,253,248,.84)),
    radial-gradient(circle at 20% 12%, rgba(164,118,61,.15), transparent 24rem),
    radial-gradient(circle at 82% 4%, rgba(85,91,61,.14), transparent 24rem),
    var(--ivory);
  position: relative;
}

.hero-inner, .section-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.admin-link {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 800;
}

.hero-inner { text-align: center; }
.monogram { width: min(340px, 76vw); display: block; margin: 0 auto 28px; mix-blend-mode: multiply; }

.tagline {
  color: var(--olive);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(.92rem, 2vw, 1.25rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.8;
  max-width: 850px;
  margin: 26px auto 0;
}

.hero-description {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.hero-actions, .row-actions, .section-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.section-actions { justify-content: flex-start; margin-top: 22px; }

.button-link, button {
  border: 0;
  border-radius: 6px;
  min-height: 48px;
  padding: 13px 18px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-link.secondary, button.secondary { background: var(--soft); color: var(--ink); }
button:disabled { opacity: .55; cursor: not-allowed; }

.section, .admin-section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section-inner {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 42px;
  align-items: start;
}

form, .panel, .detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,248,.92);
  box-shadow: var(--shadow);
}

form { display: grid; gap: 14px; padding: clamp(20px, 4vw, 32px); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }

legend {
  padding: 0 0 4px;
  color: var(--olive);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

label { display: grid; gap: 7px; color: #302d27; font-size: .83rem; font-weight: 780; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(73,62,47,.26);
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
}

textarea { min-height: 110px; resize: vertical; }

.required { color: var(--bronze); }
.helper { margin-top: -4px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.checkbox-grid.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checkline { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); line-height: 1.45; font-weight: 650; }
.checkline input { width: auto; min-height: auto; margin-top: 3px; }

.status { display: none; border-radius: 6px; padding: 12px 14px; font-weight: 760; line-height: 1.45; }
.status.show { display: block; }
.status.good { background: #e8f3e9; color: var(--good); }
.status.bad { background: #fae8e6; color: var(--bad); }
.status.warn { background: #fff4d8; color: var(--warn); }

.stripe-sample-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(73,62,47,.16);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--doc-text);
  box-shadow: 0 20px 50px rgba(31,27,22,.22);
  padding: 14px 44px 14px 16px;
}

.stripe-sample-toast.good { border-color: rgba(79,154,84,.24); background: #eef7ef; }
.stripe-sample-toast.bad { border-color: rgba(185,28,28,.2); background: #fae8e6; }
.stripe-sample-toast.warn { border-color: rgba(184,138,51,.24); background: #fff4d8; }
.stripe-sample-toast strong { display: block; margin-bottom: 4px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.stripe-sample-toast p { margin: 0; line-height: 1.45; font-weight: 760; }
.stripe-sample-toast button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  padding: 0;
  font-size: 1.1rem;
}

.path-section { display: none; }
body.client-path .path-section[data-path-section='client'],
body.cleaner-path .path-section[data-path-section='cleaner'] { display: block; }
body.client-path .hero, body.cleaner-path .hero { display: none; }
.login-placeholder .section-inner { grid-template-columns: 1fr; }
.login-placeholder { padding-top: 42px; }
.site-shell.path-active { min-height: 100vh; }

.admin-section { display: none; background: #f5f1e8; height: 100vh; min-height: 0; padding: 0; overflow: hidden; }
body.admin-route .site-shell { display: none; }
body.admin-route .admin-section { display: block; }
body.admin-route { height: 100vh; overflow: hidden; }

body.cleaner-portal-route {
  --cleaner-bg: #f6efe2;
  --cleaner-bg-soft: #fbf6ec;
  --cleaner-card: #fffaf0;
  --cleaner-card-soft: #f7eedf;
  --cleaner-bubble: #ffffff;
  --cleaner-border: #dfd1bb;
  --cleaner-text: #15120d;
  --cleaner-muted: #756a5a;
  --cleaner-light-text: #f7f4ec;
  --cleaner-light-muted: #c7c0b5;
  --cleaner-black: #070707;
  --cleaner-charcoal: #171717;
  --cleaner-gold: #b48a3b;
  --cleaner-gold-dark: #8a6524;
  --cleaner-gold-soft: #ead8ad;
  --cleaner-shadow: rgba(77,58,30,.12);
  --status-danger: #c7473d;
  --status-danger-soft: #f9dfdc;
  --status-warning: #b88a33;
  --status-warning-soft: #f7ebcd;
  --status-success: #4f9a54;
  --status-success-soft: #e7f2e4;
  --status-info: #3d6fb6;
  --status-info-soft: #e8f0ff;
  background: var(--cleaner-bg);
  color: var(--cleaner-text);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

body.cleaner-portal-route .site-shell,
body.cleaner-portal-route .admin-section {
  display: none;
}

body.cleaner-portal-route .cleaner-portal {
  display: block;
}

body.qa-route {
  min-height: 100vh;
  background: var(--ivory);
}

body.qa-route .site-shell,
body.qa-route .admin-section,
body.qa-route .cleaner-portal {
  display: none;
}

body.qa-route .qa-checklist {
  display: block;
}

body.client-portal-route {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background:
    radial-gradient(circle at 12% 8%, rgba(180,138,59,.13), transparent 22rem),
    linear-gradient(180deg, #f7f2e9, #f4eee3);
}

body.client-portal-route .site-shell,
body.client-portal-route .admin-section,
body.client-portal-route .cleaner-portal,
body.client-portal-route .qa-checklist {
  display: none;
}

body.client-portal-route .client-portal {
  display: block;
}

.qa-checklist {
  min-height: 100vh;
  padding: 28px 18px 42px;
  background:
    linear-gradient(180deg, rgba(247,244,237,.96), rgba(255,253,248,.9)),
    var(--ivory);
}

.qa-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.client-portal {
  min-height: 100vh;
  padding: 22px 16px 42px;
  color: #17120b;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.client-portal-shell {
  width: min(960px, 100%);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.client-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(180,138,59,.22);
  border-radius: 18px;
  background: rgba(255,250,240,.84);
  box-shadow: 0 16px 38px rgba(77,58,30,.08);
  backdrop-filter: blur(10px);
}

.client-brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.client-portal-header strong {
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  color: #17120b;
  font-size: 1.2rem;
  font-weight: 700;
}

.client-portal-header .client-logout-button {
  width: auto;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  font-size: .78rem;
}

.client-portal-main {
  display: grid;
  gap: 18px;
}

.client-hero-card,
.client-card {
  border: 1px solid rgba(180,138,59,.22);
  border-radius: 20px;
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(77,58,30,.09);
}

.client-hero-card {
  padding: clamp(24px, 5vw, 40px);
  background: linear-gradient(135deg, rgba(255,250,240,.96), rgba(247,238,223,.9)), #fffaf0;
}

.client-hero-card p,
.client-card span,
.client-card small {
  color: #8a6524;
}

.client-hero-card p {
  margin: 0 0 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .74rem;
}

.client-hero-card h1 {
  max-width: 720px;
  margin: 0;
  color: #15120d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

.client-portal-message {
  padding: 12px 14px;
  border: 1px solid rgba(180,138,59,.3);
  border-radius: 16px;
  background: #f7eedf;
  color: #6b4e19;
  font-weight: 750;
}

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

.client-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

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

.client-card-head h2 {
  margin: 4px 0 0;
  color: #15120d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
}

.client-card-head span,
.client-card-head small,
.client-note-block span {
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .7rem;
}

.client-status-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.client-status-step {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(117,106,90,.18);
  border-radius: 14px;
  background: #fbf6ec;
  display: grid;
  gap: 6px;
}

.client-status-step i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #d7cebd;
}

.client-status-step.complete i { background: #4f9a54; }
.client-status-step.current {
  border-color: rgba(180,138,59,.55);
  background: #f7eedf;
}
.client-status-step.current i { background: #b48a3b; }

.client-status-step strong {
  color: #15120d;
  font-size: .77rem;
  line-height: 1.2;
}

.client-status-step span {
  color: #756a5a;
  font-size: .68rem;
  letter-spacing: 0;
  text-transform: none;
}

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

.client-fact {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(223,209,187,.75);
  border-radius: 14px;
  background: #fbf6ec;
  display: grid;
  gap: 5px;
}

.client-fact span {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.client-fact strong {
  min-width: 0;
  color: #15120d;
  font-size: .9rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.client-note-block {
  display: grid;
  gap: 7px;
}

.client-note-block p,
.client-card p,
.client-next-list {
  margin: 0;
  color: #625c51;
  line-height: 1.52;
}

.client-quote-price {
  width: fit-content;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ead8ad, #d7b76c);
  color: #15120d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  box-shadow: 0 10px 22px rgba(120,88,35,.16);
}

.client-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-feedback-grid {
  align-items: stretch;
}

.client-payment-card {
  border-color: rgba(180,138,59,.32);
}

.client-payments-card .client-card-stack {
  display: grid;
  gap: 10px;
}

.client-payment-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(223,209,187,.75);
  border-radius: 14px;
  background: #fbf6ec;
}

.client-payment-line div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-payment-line div:first-child strong {
  color: #15120d;
  font-size: .95rem;
}

.client-payment-line div:first-child span {
  color: #8a6524;
  font-size: .78rem;
}

.client-payment-amount {
  color: #15120d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.client-payment-line .client-status {
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .68rem;
  color: #8a6524;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .client-payment-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.client-review-card .button-link {
  min-height: 44px;
  border-radius: 14px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(180deg, #d8bd7a, #b48a3b);
  color: #111111;
  border: 1px solid #9b762f;
  box-shadow: 0 8px 18px rgba(120, 88, 35, 0.18);
}

.client-portal button {
  min-height: 44px;
  border-radius: 14px;
  padding: 11px 16px;
  border: 1px solid #9b762f;
  background: linear-gradient(180deg, #d8bd7a, #b48a3b);
  color: #111;
  box-shadow: 0 8px 18px rgba(120,88,35,.18);
  letter-spacing: 0;
  text-transform: none;
}

.client-portal button.secondary {
  background: #fffaf0;
  color: #17120b;
  border-color: rgba(139,103,36,.35);
  box-shadow: none;
}

.client-next-list {
  padding-left: 18px;
}

.client-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(31,27,22,.28);
}

.client-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(82vh, 640px);
  overflow: auto;
  border: 1px solid rgba(180,138,59,.28);
  border-radius: 22px;
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(31,27,22,.25);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.client-modal-panel h3 {
  margin: 0;
  color: #15120d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: 0;
  text-transform: none;
}

.client-modal-panel p {
  margin: 0;
  color: #625c51;
}

.client-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 1.4rem;
}

.client-modal-summary {
  padding: 12px;
  border: 1px solid rgba(223,209,187,.8);
  border-radius: 14px;
  background: #fbf6ec;
  display: grid;
  gap: 4px;
}

.client-field-block {
  display: grid;
  gap: 8px;
}

.client-field-block span {
  color: #8a6524;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.client-field-block textarea {
  width: 100%;
  min-height: 128px;
  border: 1px solid #dfd1bb;
  border-radius: 14px;
  background: #fffdf7;
  color: #15120d;
  padding: 12px;
  font: inherit;
}

.client-inline-form {
  display: grid;
  gap: 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-field-block input,
.client-field-block select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfd1bb;
  border-radius: 14px;
  background: #fffdf7;
  color: #15120d;
  padding: 10px 12px;
  font: inherit;
}

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

.client-choice-grid label,
.client-checkbox-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(223,209,187,.86);
  border-radius: 14px;
  background: #fbf6ec;
  color: #15120d;
  font-size: .86rem;
  line-height: 1.3;
}

.client-choice-grid input,
.client-checkbox-line input {
  width: 16px;
  height: 16px;
  accent-color: #b48a3b;
  flex: 0 0 auto;
}

.client-choice-grid span,
.client-checkbox-line span {
  color: #15120d;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.client-submitted-summary {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(79,154,84,.24);
  border-radius: 16px;
  background: #f1f6ed;
}

.client-submitted-summary > strong {
  color: #315f42;
  font-size: .88rem;
}

.client-submitted-summary div {
  display: grid;
  gap: 3px;
}

.client-submitted-summary span {
  color: #756a5a;
  font-size: .72rem;
}

.client-submitted-summary p {
  margin: 0;
  color: #15120d;
  font-size: .88rem;
}

@media (max-width: 760px) {
  .client-grid,
  .client-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-status-timeline {
    grid-template-columns: 1fr;
  }

  .client-status-step {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .client-choice-grid {
    grid-template-columns: 1fr;
  }
}

.qa-header,
.qa-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.qa-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.qa-header h1 {
  color: var(--olive);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

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

.qa-actions button {
  min-height: 42px;
  padding: 10px 13px;
  font-size: .74rem;
}

.qa-content {
  display: grid;
  gap: 14px;
}

.qa-section {
  padding: 18px;
}

.qa-section h2 {
  font-size: 1.08rem;
  letter-spacing: .06em;
}

.qa-items {
  display: grid;
  gap: 10px;
}

.qa-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 140px minmax(180px, .8fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(73,62,47,.16);
  border-radius: 10px;
  background: #fffdf8;
}

.qa-item label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.qa-checkline {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--ink) !important;
  font-size: .9rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.qa-item input,
.qa-item select,
.qa-item textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.qa-item textarea {
  min-height: 44px;
  resize: vertical;
}

.cleaner-portal {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 50% -100px, rgba(180,138,59,.18), transparent 260px),
    linear-gradient(135deg, rgba(255,255,255,.22) 0 1px, transparent 1px 16px),
    var(--cleaner-bg);
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.cleaner-app-shell {
  width: min(430px, 100%);
  max-width: 100vw;
  min-height: 100vh;
  margin: 0 auto;
  display: block;
  background:
    radial-gradient(circle at 50% -30px, rgba(234,216,173,.44), transparent 190px),
    linear-gradient(135deg, rgba(255,255,255,.18) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, var(--cleaner-bg-soft) 0, var(--cleaner-bg) 260px, var(--cleaner-bg) 100%);
  box-shadow: 0 24px 90px rgba(77,58,30,.18);
  position: relative;
  overflow-x: clip;
}

.cleaner-app-view {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 100vh;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 16px 16px 118px;
}

.cleaner-portal *,
.client-portal * {
  min-width: 0;
}

.cleaner-portal input,
.cleaner-portal select,
.cleaner-portal textarea,
.client-portal input,
.client-portal select,
.client-portal textarea {
  max-width: 100%;
  font-size: 16px;
}

.cleaner-portal h3,
.cleaner-portal strong,
.cleaner-portal p {
  letter-spacing: 0;
  text-transform: none;
}

.cleaner-portal h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cleaner-text);
}

.cleaner-portal p {
  color: var(--cleaner-muted);
  line-height: 1.48;
}

.cleaner-app-header {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 48px 16px;
  margin: 0 -4px 2px;
  text-align: center;
  border-bottom: 1px solid rgba(196,154,61,.22);
}

.cleaner-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.cleaner-brand-mark {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 20px;
  background: transparent;
  border: 0;
  box-shadow: 0 16px 34px rgba(54,37,7,.16);
  mix-blend-mode: normal;
}

.cleaner-app-header strong {
  display: block;
  font-size: 1.48rem;
  color: var(--cleaner-text);
  line-height: 1.05;
  letter-spacing: .01em;
}

.cleaner-app-header small {
  display: block;
  margin-top: 5px;
  color: var(--cleaner-muted);
  font-size: .75rem;
  font-weight: 850;
}

.cleaner-app-header p {
  font-size: .9rem;
  color: var(--cleaner-gold-dark);
  margin-top: 3px;
}

.cleaner-icon-button {
  position: absolute;
  top: 12px;
  right: 8px;
  width: 40px;
  min-height: 40px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,250,240,.86);
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(196,154,61,.36);
  box-shadow: 0 10px 20px rgba(54,37,7,.1);
  cursor: pointer;
}

.cleaner-portal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border: 1px solid rgba(180,138,59,.28);
  border-radius: 18px;
  background: rgba(255,250,240,.86);
  box-shadow: 0 16px 38px rgba(77,58,30,.1);
  backdrop-filter: blur(10px);
}

.cleaner-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.cleaner-portal-header strong {
  flex: 1;
  min-width: 0;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  color: #17120b;
  font-size: 1.1rem;
  font-weight: 700;
}

.cleaner-portal-header .cleaner-icon-button {
  position: relative;
  top: 0;
  right: 0;
  width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  overflow: visible;
}

.cleaner-portal-header .cleaner-icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
}

.cleaner-portal-header .cleaner-icon-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cleaner-portal-header .cleaner-logout-button {
  width: auto;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  font-size: .78rem;
}

.cleaner-notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cleaner-gold);
  box-shadow: 0 0 0 2px var(--cleaner-card);
}

.cleaner-notifications-panel {
  position: absolute;
  top: 58px;
  right: 0;
  width: min(282px, calc(100vw - 44px));
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,250,240,.98);
  border: 1px solid rgba(180,138,59,.24);
  box-shadow: 0 18px 38px rgba(77,58,30,.18);
  z-index: 5;
  pointer-events: auto;
  text-align: left;
}

.cleaner-notifications-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(223,209,187,.72);
}

.cleaner-notifications-panel h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  color: var(--cleaner-text);
}

.cleaner-notifications-panel button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 50%;
  background: var(--cleaner-card-soft);
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(180,138,59,.24);
  box-shadow: none;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.cleaner-notifications-panel p {
  margin: 0;
  padding: 10px 0;
  color: var(--cleaner-text);
  font-size: .92rem;
  border-bottom: 1px solid rgba(223,209,187,.5);
}

.cleaner-notifications-panel p:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.cleaner-install-banner {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(180,138,59,.28);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf7, var(--cleaner-card));
  box-shadow: 0 14px 32px var(--cleaner-shadow);
}

.cleaner-install-banner strong {
  color: var(--cleaner-gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.cleaner-install-banner p {
  margin: 4px 0 0;
  color: var(--cleaner-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.cleaner-install-actions {
  display: flex;
  gap: 8px;
}

.cleaner-install-actions button {
  flex: 1 1 0;
  min-height: 40px;
}

.cleaner-install-actions button:not(.secondary) {
  background: linear-gradient(180deg, #d8bd7a, #b48a3b);
  color: #111111;
  border-color: #9b762f;
  box-shadow: 0 8px 18px rgba(120,88,35,.18);
}

.cleaner-home-greeting {
  display: block;
  padding: 8px 2px 10px;
}

.cleaner-home-greeting h2 {
  width: max-content;
  margin: 0;
  padding-bottom: 7px;
  color: var(--cleaner-gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1.5px solid var(--cleaner-gold);
}

.cleaner-section-greeting p {
  margin: 7px 0 0;
  color: var(--cleaner-muted);
  font-size: .86rem;
}

.cleaner-icon-button::before {
  content: "";
  width: 12px;
  height: 14px;
  display: block;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
}

.cleaner-icon-button::after {
  content: "";
  width: 5px;
  height: 5px;
  display: block;
  margin: -1px auto 0;
  border-radius: 50%;
  background: currentColor;
}

.cleaner-hero-card,
.cleaner-greeting-card,
.cleaner-card,
.cleaner-job-card,
.cleaner-profile-card,
.cleaner-agenda-item,
.cleaner-future-note {
  border: 1px solid var(--cleaner-border);
  border-radius: 22px;
  background: var(--cleaner-card);
  box-shadow: 0 16px 38px var(--cleaner-shadow);
}

.cleaner-luxe-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(180,138,59,.24);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf7, var(--cleaner-card));
  box-shadow: 0 18px 42px var(--cleaner-shadow);
}

.cleaner-luxe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cleaner-luxe-card-head h3 {
  margin: 0;
  font-size: 1.16rem;
}

.cleaner-luxe-card-head button {
  width: 34px;
  min-height: 34px;
  border-radius: 50%;
  padding: 0;
  background: var(--cleaner-card-soft);
  color: var(--cleaner-gold-dark);
  border: 1px solid var(--cleaner-border);
  box-shadow: none;
  font-size: 1.35rem;
}

.cleaner-inline-link {
  width: auto !important;
  min-height: 30px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--cleaner-gold-dark) !important;
  box-shadow: none !important;
  font-size: .78rem !important;
  font-weight: 900;
}

.cleaner-overview-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.cleaner-progress-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--cleaner-card) 0 55%, transparent 56%),
    conic-gradient(var(--cleaner-gold) 0 80%, var(--cleaner-card-soft) 80% 100%);
}

.cleaner-progress-ring strong {
  color: var(--cleaner-text);
  font-size: 1.22rem;
  line-height: 1;
}

.cleaner-progress-ring span {
  color: var(--cleaner-muted);
  font-size: .68rem;
  font-weight: 850;
}

.cleaner-status-breakdown {
  display: grid;
  gap: 9px;
}

.cleaner-status-breakdown div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--cleaner-muted);
  font-size: .82rem;
  font-weight: 850;
}

.cleaner-status-breakdown strong {
  color: var(--cleaner-text);
}

.cleaner-status-breakdown i,
.alert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-success { background: var(--status-success); }
.dot-warning { background: var(--cleaner-gold); }
.dot-neutral { background: #c9bea9; }

.cleaner-task-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.cleaner-luxe-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cleaner-gold-soft);
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(180,138,59,.28);
  font-weight: 950;
}

.cleaner-task-row strong,
.cleaner-alert-list strong {
  color: var(--cleaner-text);
  font-size: .94rem;
}

.cleaner-task-row p,
.cleaner-alert-list p,
.cleaner-booking-mini p {
  margin: 2px 0 0;
  color: var(--cleaner-muted);
  font-size: .82rem;
}

.cleaner-task-row small {
  display: block;
  margin-top: 4px;
  color: var(--cleaner-gold-dark);
  font-weight: 850;
}

.cleaner-alert-list {
  display: grid;
  gap: 12px;
}

.cleaner-alert-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--cleaner-border);
}

.cleaner-alert-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 0;
  padding: 0 0 11px;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--cleaner-border);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.cleaner-alert-list > div:last-child,
.cleaner-alert-action:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.alert-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 950;
}

.alert-dot.danger { background: var(--status-danger); }
.alert-dot.warning { background: var(--status-warning); }
.alert-dot.success { background: var(--status-success); }

.cleaner-home-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cleaner-home-duo .cleaner-luxe-card {
  min-height: 150px;
}

.cleaner-home-duo span {
  color: var(--cleaner-muted);
  font-size: .75rem;
  font-weight: 950;
}

.cleaner-home-duo strong {
  color: var(--cleaner-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.12;
}

.cleaner-home-duo small {
  color: var(--cleaner-gold-dark);
  font-weight: 850;
}

.cleaner-trend-line {
  height: 28px;
  border-bottom: 2px solid var(--cleaner-gold);
  border-radius: 50%;
  transform: skewX(-18deg);
  opacity: .82;
}

.cleaner-hero-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-color: rgba(198,162,87,.36);
  background: linear-gradient(180deg, var(--cleaner-bubble), var(--cleaner-card));
}

.cleaner-greeting-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fffdf7, var(--cleaner-card-soft));
  border-color: rgba(196,154,61,.38);
}

.cleaner-greeting-card span {
  color: var(--cleaner-gold-dark);
  font-size: .78rem;
  font-weight: 950;
}

.cleaner-greeting-card h2 {
  margin: 0;
  color: var(--cleaner-text);
  font-size: 1.42rem;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.cleaner-stat-grid article,
.cleaner-earnings-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
  background: var(--cleaner-bubble);
  padding: 13px;
  position: relative;
  overflow: hidden;
}

.cleaner-stat-grid article::before,
.cleaner-job-card::before,
.cleaner-agenda-item::before,
.cleaner-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: transparent;
}

.cleaner-stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cleaner-gold-soft);
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(196,154,61,.38);
  font-style: normal;
  font-size: .86rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}

.cleaner-stat-grid span,
.cleaner-card > span,
.cleaner-detail-list span,
.cleaner-earnings-grid small {
  color: var(--cleaner-muted);
  font-size: .76rem;
  font-weight: 900;
}

.cleaner-stat-grid strong,
.cleaner-earnings-grid strong {
  color: var(--cleaner-text);
  font-size: 1.26rem;
  line-height: 1.05;
}

.cleaner-stat-grid small {
  color: var(--cleaner-gold-dark);
  font-size: .72rem;
  font-weight: 850;
}

.cleaner-stat-grid .stat-success {
  background: var(--status-success-soft);
  border-color: rgba(53,183,121,.34);
}

.cleaner-stat-grid .stat-success::before {
  background: var(--status-success);
}

.cleaner-stat-grid .stat-warning {
  background: var(--status-warning-soft);
  border-color: rgba(244,183,64,.34);
}

.cleaner-stat-grid .stat-warning::before {
  background: var(--status-warning);
}

.cleaner-stat-grid .stat-earnings {
  background: linear-gradient(145deg, #fff7df, var(--cleaner-gold-soft));
  border-color: rgba(196,154,61,.48);
}

.cleaner-stat-grid .stat-earnings span,
.cleaner-stat-grid .stat-earnings small {
  color: var(--cleaner-gold-dark);
}

.cleaner-stat-grid .stat-earnings strong {
  color: var(--cleaner-text);
}

.cleaner-card,
.cleaner-job-card,
.cleaner-profile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  position: relative;
}

.cleaner-reminder-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(244,183,64,.38);
  background: var(--status-warning-soft);
  box-shadow: 0 14px 34px rgba(244,183,64,.08);
}

.cleaner-reminder-card strong {
  color: var(--status-warning);
}

.cleaner-card h3 {
  margin: 0;
}

.cleaner-portal button {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf7, var(--cleaner-card-soft));
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(180,138,59,.38);
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(77,58,30,.1);
}

.cleaner-portal button:hover {
  border-color: rgba(180,138,59,.58);
  box-shadow: 0 10px 20px rgba(77,58,30,.14);
}

.cleaner-portal button.secondary,
.cleaner-text-button {
  background: var(--cleaner-bubble);
  color: var(--cleaner-text);
  border: 1px solid #bdb6a8;
  box-shadow: none;
}

.cleaner-card-stack {
  display: grid;
  gap: 12px;
}

.cleaner-card-title,
.cleaner-profile-head,
.cleaner-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cleaner-card-title h3,
.cleaner-profile-head h3 {
  margin: 0 0 3px;
}

.cleaner-card-title strong {
  color: var(--cleaner-gold-dark);
  font-size: 1.16rem;
  font-weight: 950;
}

.cleaner-offer-pay {
  color: var(--cleaner-gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.cleaner-offer-card.is-muted {
  opacity: .58;
}

.cleaner-detail-list,
.cleaner-doc-list {
  display: grid;
  gap: 8px;
}

.cleaner-detail-list div,
.cleaner-doc-list div {
  display: grid;
  grid-template-columns: minmax(105px, .85fr) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cleaner-border);
}

.cleaner-detail-list div:last-child,
.cleaner-doc-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cleaner-detail-list strong,
.cleaner-doc-list strong {
  color: var(--cleaner-text);
  font-size: .88rem;
}

.cleaner-doc-list span {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 850;
  font-size: .74rem;
}

.cleaner-expiry {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--status-warning-soft);
  color: var(--status-warning);
  font-weight: 850;
}

.cleaner-expiry.is-urgent {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.cleaner-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cleaner-action-row button {
  flex: 1 1 92px;
}

.cleaner-help-card > button,
.cleaner-card > button:not(.secondary),
.cleaner-job-card .cleaner-action-row button:not(.secondary),
.cleaner-modal-panel .cleaner-action-row button:not(.secondary) {
  background: linear-gradient(180deg, #d8bd7a, #b48a3b);
  color: #111111;
  border-color: #9b762f;
  box-shadow: 0 8px 18px rgba(120,88,35,.18);
}

.cleaner-help-card > button {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
}

.cleaner-action-row button:disabled {
  cursor: default;
  opacity: .62;
}

.cleaner-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cleaner-tabs button {
  background: var(--cleaner-card);
  color: var(--cleaner-muted);
  border: 1px solid var(--cleaner-border);
  box-shadow: none;
}

.cleaner-tabs button.active {
  background: linear-gradient(180deg, #d8bd7a, #b48a3b);
  color: #111111;
  border-color: #9b762f;
  box-shadow: inset 0 -2px 0 rgba(255,250,240,.42), 0 8px 18px rgba(120,88,35,.18);
}

.cleaner-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #eceff2;
  color: #4b5563;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.cleaner-help-card {
  background: var(--cleaner-card);
  border-color: rgba(239,68,68,.34);
}

.cleaner-help-card strong {
  color: var(--status-danger);
}

.cleaner-future-note {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-color: rgba(198,162,87,.48);
  background: var(--cleaner-gold-soft);
}

.cleaner-future-note strong {
  color: var(--cleaner-gold-dark);
}

.cleaner-agenda-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 13px 14px 16px;
  position: relative;
}

.cleaner-agenda-item time {
  display: grid;
  color: var(--cleaner-gold-dark);
  font-weight: 900;
}

.cleaner-agenda-item time span {
  color: #6b6b64;
  font-size: .74rem;
  font-weight: 800;
}

.cleaner-calendar-card {
  gap: 13px;
  background: linear-gradient(180deg, #fffdf7, var(--cleaner-card-soft));
}

.cleaner-calendar-head {
  align-items: center;
}

.cleaner-calendar-head strong {
  color: var(--cleaner-text);
  font-size: 1rem;
}

.cleaner-calendar-head span {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--cleaner-gold-soft);
  color: var(--cleaner-gold-dark);
  font-size: .74rem;
  font-weight: 900;
}

.cleaner-date-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.cleaner-date-strip button {
  min-height: 52px;
  padding: 7px 5px;
  border-radius: 14px;
  background: var(--cleaner-bubble);
  color: var(--cleaner-muted);
  border: 1px solid var(--cleaner-border);
  box-shadow: none;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1.2;
}

.cleaner-date-strip button.active {
  background: linear-gradient(145deg, var(--cleaner-gold), var(--cleaner-gold-dark));
  color: #fffaf0;
  border-color: var(--cleaner-gold-dark);
  box-shadow: 0 10px 18px rgba(139,103,36,.22);
}

.cleaner-portal .status-success {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.cleaner-portal .status-warning {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.cleaner-portal .status-danger {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.cleaner-portal .status-neutral {
  background: var(--status-info-soft);
  color: var(--status-info);
}

.cleaner-portal-message {
  padding: 12px 14px;
  border: 1px solid rgba(180,138,59,.28);
  border-radius: 16px;
  background: var(--cleaner-gold-soft);
  color: var(--cleaner-gold-dark);
  font-size: .86rem;
  font-weight: 850;
}

.cleaner-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 14px calc(92px + env(safe-area-inset-bottom));
  background: rgba(21,18,13,.28);
  backdrop-filter: blur(5px);
}

.cleaner-modal-panel {
  width: min(402px, 100%);
  max-height: min(76vh, 620px);
  overflow: auto;
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(180,138,59,.28);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf7, var(--cleaner-card));
  box-shadow: 0 24px 70px rgba(77,58,30,.24);
}

.cleaner-modal-panel h3 {
  margin: 0;
}

.cleaner-modal-panel p {
  margin: 0;
}

.cleaner-modal-panel textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--cleaner-border);
  border-radius: 16px;
  padding: 12px;
  background: var(--cleaner-bubble);
  color: var(--cleaner-text);
  font: inherit;
}

.cleaner-field-block {
  display: grid;
  gap: 8px;
}

.cleaner-field-block span {
  color: var(--cleaner-muted);
  font-size: .78rem;
  font-weight: 900;
}

.cleaner-field-block select,
.cleaner-field-block input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--cleaner-bubble);
  color: var(--cleaner-text);
  font: inherit;
}

.cleaner-document-card .button-link {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border-radius: 14px;
  text-decoration: none;
}

.cleaner-resource-tools {
  gap: 12px;
}

.cleaner-resource-tools .cleaner-field-block input,
.cleaner-resource-tools .cleaner-field-block select {
  background: var(--cleaner-bubble);
}

.cleaner-resource-card p {
  margin: 0;
  color: var(--cleaner-muted);
  line-height: 1.45;
}

.cleaner-messages-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0;
}

.cleaner-messages-section h4 {
  margin: 0;
  font-size: .9rem;
}

.cleaner-empty-note {
  margin: 0;
  color: var(--cleaner-muted);
  font-size: .85rem;
}

.cleaner-message-thread {
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cleaner-message-thread .message-thread-original {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cleaner-bubble);
}

.cleaner-message-thread .message-thread-original p {
  margin: 0;
}

.cleaner-message-thread .message-thread-original small {
  display: block;
  margin-top: 6px;
  color: var(--cleaner-muted);
}

.cleaner-message-thread .message-thread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cleaner-message-thread .message-thread-item {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
}

.cleaner-message-thread .message-thread-item p {
  margin: 4px 0 0;
}

.cleaner-message-thread .message-thread-item small {
  display: block;
  margin-top: 4px;
  color: var(--cleaner-muted);
  font-size: .7rem;
}

.cleaner-message-thread .message-thread-admin {
  align-self: flex-start;
  background: var(--cleaner-gold-soft);
}

.cleaner-message-thread .message-thread-cleaner {
  align-self: flex-end;
  background: var(--cleaner-bubble);
  border: 1px solid var(--cleaner-border);
  margin-left: auto;
}

.cleaner-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cleaner-reply-form textarea {
  min-height: 60px;
  resize: vertical;
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--cleaner-bubble);
  color: var(--cleaner-text);
  font: inherit;
}

.cleaner-resource-badge {
  justify-self: end;
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--cleaner-gold-soft);
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(180,138,59,.24);
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.cleaner-resource-badge.is-saved {
  background: linear-gradient(180deg, #ead8ad, #d8bd7a);
  color: #111111;
  border-color: #b48a3b;
}

.cleaner-resource-body {
  display: grid;
  gap: 12px;
}

.cleaner-resource-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--cleaner-text);
}

.cleaner-checkbox-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--cleaner-muted);
  font-size: .84rem;
  line-height: 1.4;
}

.cleaner-earnings-tabs {
  margin: 12px 0;
}

.cleaner-custom-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.cleaner-earnings-summary .cleaner-earnings-grid div span {
  display: block;
  margin-top: 4px;
  color: var(--cleaner-muted);
  font-size: .72rem;
  font-weight: 800;
}

.cleaner-statement-card {
  overflow: visible;
}

.statement-print-area {
  display: grid;
  gap: 16px;
  max-width: 100%;
}

.cleaner-statement-header {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cleaner-border);
}

.cleaner-statement-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.cleaner-statement-meta {
  display: grid;
  gap: 6px;
}

.cleaner-statement-meta p {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.cleaner-statement-meta span,
.cleaner-statement-total span {
  color: var(--cleaner-muted);
  font-size: .74rem;
  font-weight: 900;
}

.cleaner-statement-meta strong {
  color: var(--cleaner-text);
  font-size: .88rem;
}

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

.cleaner-statement-total {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
  background: var(--cleaner-bubble);
}

.cleaner-statement-total strong {
  color: var(--cleaner-text);
  font-size: 1.05rem;
  line-height: 1.1;
}

.cleaner-statement-mobile-list {
  display: grid;
  gap: 10px;
}

.cleaner-statement-line-card {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--cleaner-border);
  border-radius: 16px;
  background: var(--cleaner-bubble);
}

.cleaner-statement-line-card time {
  color: var(--cleaner-gold-dark);
  font-size: .76rem;
  font-weight: 900;
}

.cleaner-statement-line-card h4 {
  margin: 0;
  color: var(--cleaner-text);
  font-size: 1rem;
}

.cleaner-statement-line-card p {
  margin: 0;
  color: var(--cleaner-muted);
  font-size: .82rem;
}

.cleaner-statement-line-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.cleaner-statement-line-card span {
  display: grid;
  gap: 2px;
  color: var(--cleaner-muted);
  font-size: .72rem;
  font-weight: 850;
}

.cleaner-statement-line-card strong {
  color: var(--cleaner-text);
  font-size: .86rem;
}

.cleaner-statement-table-wrap {
  display: none;
  overflow-x: auto;
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
}

.cleaner-statement-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .76rem;
}

.cleaner-statement-table th,
.cleaner-statement-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--cleaner-border);
  text-align: left;
}

.cleaner-statement-table th {
  color: var(--cleaner-muted);
  background: var(--cleaner-card-soft);
  font-size: .68rem;
  text-transform: uppercase;
}

.statement-print-area footer {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--cleaner-border);
  color: var(--cleaner-muted);
  font-size: .78rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .cleaner-statement-mobile-list {
    display: none;
  }

  .cleaner-statement-table-wrap {
    display: block;
  }

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

@media print {
  @page {
    margin: .55in;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body * {
    visibility: hidden !important;
  }

  #cleanerStatement,
  #cleanerStatement * {
    visibility: visible !important;
  }

  #cleanerStatement {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .statement-print-area {
    gap: 14px;
  }

  .cleaner-bottom-nav,
  .cleaner-action-row,
  .cleaner-portal-header,
  .cleaner-statement-mobile-list {
    display: none !important;
  }

  .cleaner-statement-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cleaner-statement-total {
    break-inside: avoid;
    background: #fff !important;
    border: 1px solid #999 !important;
  }

  .cleaner-statement-table-wrap {
    display: block !important;
    overflow: visible;
    border-radius: 0;
    border: 1px solid #777;
  }

  .cleaner-statement-table {
    min-width: 0;
    font-size: 9px;
  }

  .cleaner-statement-table th,
  .cleaner-statement-table td {
    padding: 5px 4px;
    border-color: #bbb;
    color: #000 !important;
    background: #fff !important;
  }

  .cleaner-statement-table tr {
    break-inside: avoid;
  }

  .statement-print-area footer {
    break-inside: avoid;
    color: #000 !important;
    border-top: 1px solid #999;
  }
}

.cleaner-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cleaner-muted);
  border: 0;
  box-shadow: none;
  font-size: 1.5rem;
}

.cleaner-issue-options {
  display: grid;
  gap: 9px;
}

.cleaner-issue-options label {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--cleaner-border);
  border-radius: 14px;
  background: var(--cleaner-card-soft);
  color: var(--cleaner-text);
  font-size: .88rem;
}

.cleaner-job-card:has(.status-success)::before,
.cleaner-agenda-item:has(.status-success)::before,
.cleaner-profile-card::before {
  background: var(--status-success);
}

.cleaner-job-card:has(.status-warning)::before,
.cleaner-agenda-item:has(.status-warning)::before {
  background: var(--status-warning);
}

.cleaner-job-card:has(.status-danger)::before,
.cleaner-agenda-item:has(.status-danger)::before {
  background: var(--status-danger);
}

.cleaner-profile-head {
  justify-content: flex-start;
  align-items: center;
}

.cleaner-profile-head > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cleaner-black);
  color: var(--cleaner-gold-soft);
  border: 1px solid var(--cleaner-gold);
  font-weight: 950;
}

.cleaner-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cleaner-border);
  border-radius: 12px;
  padding: 12px;
  background: var(--cleaner-card-soft);
}

.cleaner-toggle span,
.cleaner-toggle small {
  display: block;
}

.cleaner-toggle small {
  color: var(--cleaner-muted);
  font-size: .78rem;
  line-height: 1.3;
}

.cleaner-toggle input {
  width: 18px;
  min-height: 18px;
}

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

.cleaner-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100vw);
  max-width: 100vw;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(180,138,59,.28);
  background: rgba(255,250,240,.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 36px rgba(77,58,30,.14);
}

.cleaner-bottom-nav button {
  min-height: 50px;
  border-radius: 18px;
  background: transparent;
  color: var(--cleaner-muted);
  padding: 6px 4px;
  font-size: .7rem;
  font-weight: 850;
  border: 1px solid transparent;
  box-shadow: none;
}

.cleaner-bottom-nav button.active {
  background: linear-gradient(180deg, #fffdf7, var(--cleaner-card-soft));
  color: var(--cleaner-gold-dark);
  border-color: rgba(180,138,59,.32);
  box-shadow: inset 0 -3px 0 var(--cleaner-gold), 0 10px 20px rgba(77,58,30,.1);
}

.cleaner-portal .cleaner-luxe-card-head button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(247,238,223,.72);
  color: var(--cleaner-gold-dark);
  border: 1px solid rgba(180,138,59,.22);
  box-shadow: none;
  font-size: 1.28rem;
  line-height: 1;
}

.cleaner-portal .cleaner-inline-link {
  width: auto;
  min-height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--cleaner-gold-dark);
  box-shadow: none;
  font-size: .78rem;
  font-weight: 850;
}

@media (max-width: 360px) {
  .cleaner-home-duo {
    grid-template-columns: 1fr;
  }
}

.admin-login { width: min(760px, calc(100% - 32px)); margin: 7vh auto; padding: clamp(26px, 4vw, 42px); }
.admin-login .eyebrow { margin-bottom: 8px; }
.admin-login h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95; margin-bottom: 22px; letter-spacing: .08em; }
.admin-login > p { max-width: 560px; margin-bottom: 20px; font-size: .98rem; }
.admin-login form { padding: 22px; gap: 18px; border-radius: 14px; box-shadow: none; background: rgba(255,255,255,.62); }
.admin-login form .two { gap: 18px; }
.admin-login label { gap: 9px; }
.admin-login input { min-height: 48px; border-radius: 12px; background: #fff; }
.admin-login button[type="submit"] {
  min-height: 46px;
  border-radius: 12px;
  margin-top: 2px;
  letter-spacing: .08em;
  background: var(--doc-gold);
  color: #fff;
}
.admin-login button[type="submit"]:hover { background: var(--doc-gold-dark); }
.admin-section .panel,
.admin-section .detail-panel,
.admin-section .metric-card,
.admin-section .record-row,
.admin-section .empty,
.admin-section input,
.admin-section textarea,
.admin-section select,
.admin-section button,
.admin-section .button-link,
.admin-section .badge,
.admin-section .note-item,
.admin-section .work-item {
  border-radius: 12px;
}
.admin-section .panel,
.admin-section .detail-panel {
  border-color: rgba(73, 62, 47, .22);
  border-radius: 18px;
  background: rgba(255,253,248,.9);
  box-shadow: 0 18px 48px rgba(40, 32, 22, .08);
}
.admin-section .empty {
  border-color: rgba(85, 91, 61, .28);
  background: rgba(255,253,248,.72);
}

.ops-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,253,248,.92), rgba(245,241,232,.98)),
    var(--ivory);
}
.ops-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  height: 100vh;
  width: min(320px, calc(100vw - 42px));
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fffdf8;
  box-shadow: 24px 0 60px rgba(31, 27, 22, .18);
  transform: translateX(calc(-100% - 8px));
  transition: transform .2s ease;
}
.ops-shell.nav-open .ops-sidebar { transform: translateX(0); }
.admin-nav-overlay { display: none; position: fixed; inset: 0; z-index: 20; min-height: 0; padding: 0; border: 0; background: rgba(31, 27, 22, .28); box-shadow: none; }
.ops-shell.nav-open .admin-nav-overlay { display: block; }

.ops-brand strong { display: block; font-family: Cinzel, Georgia, serif; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }
.ops-nav { display: grid; gap: 8px; }
.nav-button { width: 100%; justify-content: flex-start; min-height: 42px; padding: 10px 12px; background: transparent; color: var(--ink); letter-spacing: .03em; text-transform: none; font-weight: 850; border: 1px solid transparent; }
.nav-button.active, .nav-button:hover { background: var(--olive); color: #fff; border-color: rgba(255,255,255,.3); }
.sidebar-actions { margin-top: auto; display: grid; gap: 10px; }

.ops-main { min-width: 0; height: 100vh; padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.ops-topbar {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(150px, .28fr) minmax(280px, .45fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(73, 62, 47, .22);
  border-radius: 0;
  background: rgba(255,253,248,.96);
  box-shadow: none;
}
.ops-topbar h2 { margin-bottom: 2px; font-size: clamp(1.5rem, 2.3vw, 2.05rem); letter-spacing: 0; text-transform: none; }
.ops-title-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-menu-button { flex: 0 0 auto; background: var(--olive); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.ops-logo-lockup { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-right: 1px solid rgba(73,62,47,.18); }
.ops-logo-lockup strong { font-family: Cinzel, Georgia, serif; font-size: 2.05rem; letter-spacing: .08em; color: var(--olive); line-height: .9; }
.ops-logo-lockup span { color: #2f2b24; font-size: .66rem; text-transform: uppercase; letter-spacing: .22em; line-height: 1.28; }
.admin-date-pill { min-width: 0; border: 1px solid rgba(73,62,47,.18); border-radius: 8px; background: rgba(255,255,255,.72); padding: 9px 14px; color: var(--ink); }
.admin-date-pill strong, .admin-date-pill span { display: block; }
.admin-date-pill strong { font-size: .82rem; }
.admin-date-pill span { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.admin-search { width: 100%; }
.admin-user-chip { display: grid; grid-template-columns: auto auto; gap: 10px; align-items: center; min-width: 150px; justify-content: end; }
.admin-user-chip span { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--bronze); color: #fff; font-weight: 900; font-size: .78rem; }
.admin-user-chip strong { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric-card { border: 0; border-left: 1px solid rgba(73, 62, 47, .16); background: transparent; padding: 7px 12px; box-shadow: none; }
.metric-card span { display: block; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.metric-card strong { display: block; color: var(--olive); font-family: Cinzel, Georgia, serif; font-size: 1.38rem; line-height: 1; margin-top: 5px; }

.admin-screen { min-height: 0; padding: 0 4px 4px; }
#dashboardSection { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; overflow: hidden; }
#dashboardSection.hidden { display: none !important; }
.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .36fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 0;
  border: 1px solid rgba(73, 62, 47, .22);
  border-radius: 0;
  background: rgba(255,253,248,.9);
  box-shadow: none;
  overflow: hidden;
  min-height: 0;
}
.task-board { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.panel-head h3 { color: var(--ink); font-size: 1.18rem; letter-spacing: .08em; }
.compact { width: auto; min-height: 38px; padding: 9px 12px; font-size: .78rem; border-radius: 999px; }

.task-board > .panel-head { display: none; }
.task-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 10px 14px; border-bottom: 1px solid rgba(73, 62, 47, .14); background: #faf7ef; }
.filter-button { width: auto; min-height: 32px; padding: 7px 13px; background: #f7f3ea; color: var(--ink); border: 1px solid rgba(73,62,47,.16); box-shadow: none; font-size: .73rem; text-transform: none; letter-spacing: .01em; gap: 8px; }
.filter-button span { display: inline-flex; min-width: 20px; height: 20px; justify-content: center; align-items: center; border-radius: 999px; background: rgba(85,91,61,.14); font-size: .68rem; }
.filter-button.active { background: var(--olive); color: #fff; border-color: var(--olive); }
.filter-button.active span { background: rgba(255,255,255,.2); color: #fff; }
.task-list { display: grid; gap: 10px; min-height: 0; overflow: hidden; }
.task-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .82fr) auto; gap: 14px; align-items: center; border: 1px solid rgba(73,62,47,.22); background: #fffdf8; padding: 14px; border-left: 4px solid var(--olive); }
.task-row.priority-high { border-left-color: var(--bad); }
.task-row.priority-medium { border-left-color: var(--warn); }
.task-row.priority-low { border-left-color: var(--olive); }
.task-main span, .task-meta span { display: block; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.task-main strong { display: block; font-size: 1rem; margin: 3px 0; }
.task-main p { font-size: .86rem; }
.task-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 12px; }

.command-table-wrap { border: 0; background: #fffdf8; border-radius: 0; overflow: auto; box-shadow: none; height: 100%; }
.command-table-wrap,
.dashboard-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 91, 61, .55) #f4efe5;
}
.command-table-wrap::-webkit-scrollbar,
.dashboard-rail::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.command-table-wrap::-webkit-scrollbar-track,
.dashboard-rail::-webkit-scrollbar-track {
  background: #f4efe5;
}
.command-table-wrap::-webkit-scrollbar-thumb,
.dashboard-rail::-webkit-scrollbar-thumb {
  background: rgba(85, 91, 61, .52);
  border-radius: 999px;
  border: 2px solid #f4efe5;
}
.command-table-wrap::-webkit-scrollbar-thumb:hover,
.dashboard-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 91, 61, .72);
}
.command-table { border: 0; background: transparent; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.command-table th:nth-child(1) { width: 5%; }
.command-table th:nth-child(2) { width: 7%; }
.command-table th:nth-child(3) { width: 10%; }
.command-table th:nth-child(4) { width: 11%; }
.command-table th:nth-child(5) { width: 8%; }
.command-table th:nth-child(6) { width: 9%; }
.command-table th:nth-child(7) { width: 11%; }
.command-table th:nth-child(8) { width: 9%; }
.command-table th:nth-child(9) { width: 12%; }
.command-table th:nth-child(10) { width: 11%; }
.command-table th:nth-child(11) { width: 5%; }
.command-table th:nth-child(12) { width: 6%; }
.command-table th { background: #f5f1e8; color: #312d26; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid rgba(73,62,47,.22); font-size: .68rem; padding: 8px 8px; }
.command-table td { background: transparent; border-bottom-color: rgba(73,62,47,.14); overflow-wrap: anywhere; font-size: .74rem; line-height: 1.32; padding: 8px 8px; }
.command-row { cursor: pointer; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.command-row:hover { box-shadow: inset 0 0 0 2px rgba(85,91,61,.22); }
.command-row td:first-child { border-left: 6px solid transparent; }
.command-row.urgency-overdue { background: #fffdf8; }
.command-row.urgency-overdue td:first-child { border-left-color: var(--bad); }
.command-row.urgency-soon { background: #fffdf8; }
.command-row.urgency-soon td:first-child { border-left-color: var(--warn); }
.command-row.urgency-future { background: #fffdf8; }
.command-row.urgency-future td:first-child { border-left-color: var(--good); }
.command-row.urgency-neutral { background: #fffdf8; }
.command-row.is-selected { box-shadow: inset 0 0 0 2px var(--olive); background: #f7faf1; }
.command-row strong { display: block; color: var(--ink); }
.command-row small { display: block; color: var(--muted); margin-top: 3px; }
.command-actions { justify-content: flex-start; min-width: 0; gap: 6px; }
.priority-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--olive); box-shadow: 0 1px 0 rgba(255,255,255,.28) inset; }
.priority-pill.priority-high { background: var(--bad); }
.priority-pill.priority-medium { background: var(--warn); }
.priority-pill.priority-low { background: var(--good); }
.priority-arrow { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; font-size: 1.15rem; font-weight: 900; }
.priority-arrow.urgency-overdue { color: #b01818; }
.priority-arrow.urgency-soon { color: #c55b00; }
.priority-arrow.urgency-future { color: #315f42; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 6px; background: #e8f0e2; color: #273820; font-weight: 800; font-size: .72rem; }

.command-detail-panel { display: grid; gap: 6px; }
.command-detail { display: grid; gap: 8px; }
.command-detail h3 { font-size: 1.16rem; margin: 0; letter-spacing: .04em; }
.command-detail > p { line-height: 1.35; font-size: .84rem; }
.command-detail .badge { margin-top: 0; }
.command-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 2px; }
.command-detail-head h3 { font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.command-detail-head span:not(.status-pill) { display: block; color: var(--muted); font-size: .7rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.command-tabs { display: flex; gap: 16px; border-bottom: 1px solid rgba(73,62,47,.2); font-size: .7rem; color: var(--muted); }
.command-tabs span { padding: 0 0 6px; }
.command-tabs .active { color: var(--ink); border-bottom: 2px solid var(--olive); font-weight: 900; }
.command-detail .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 8px 0; }
.command-detail .field { padding-top: 7px; }
.command-detail .field span { font-size: .68rem; margin-bottom: 3px; }
.command-detail .field strong { font-size: .9rem; }
.command-detail .note-item { border-radius: 8px; padding: 10px; background: rgba(255,255,255,.72); }
.command-detail .note-item strong { font-size: .8rem; }
.command-detail .note-item p { line-height: 1.42; font-size: .84rem; }
.command-detail .note-item p + p { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 7px; }
.command-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid rgba(73,62,47,.14); border-bottom: 1px solid rgba(73,62,47,.14); padding: 9px 0; }
.command-info-grid section + section { border-left: 1px solid rgba(73,62,47,.14); padding-left: 10px; }
.command-info-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.command-info-grid p { margin: 0 0 6px; color: var(--ink); font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
.command-info-grid p span { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.command-latest-note > div,
.command-disabled-shell > div,
.command-match-shell > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.command-latest-note small,
.command-disabled-shell small,
.command-match-shell small { color: var(--muted); font-size: .7rem; }
.disabled-form-row { display: grid; grid-template-columns: minmax(0, 1fr) .7fr auto; gap: 8px; margin-top: 8px; }
.disabled-form-row input { min-height: 34px; padding: 7px 9px; font-size: .74rem; }
.disabled-form-row button { min-height: 34px; padding: 7px 10px; opacity: .55; }
.command-match-shell table { border: 1px solid rgba(73,62,47,.12); background: #fff; }
.command-match-shell th,
.command-match-shell td { padding: 6px 7px; font-size: .7rem; }
.command-match-shell .compact { min-height: 28px; padding: 5px 8px; font-size: .68rem; }
.command-kpi-panel { margin-top: 4px; border: 1px solid rgba(73, 62, 47, .18); border-radius: 4px; box-shadow: none; background: rgba(255,253,248,.9); padding: 4px 6px; }
.command-kpi-panel .panel-head { display: none; }

.dashboard-rail { display: grid; grid-template-rows: minmax(0, 1fr); gap: 0; min-height: 0; overflow: auto; border-left: 1px solid rgba(73, 62, 47, .2); background: rgba(242,234,219,.42); }
.dashboard-rail .panel { min-height: 0; padding: 16px 16px 12px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.dashboard-rail .panel > .panel-head { margin-bottom: 10px; }
.dashboard-rail .panel > .panel-head h3 { font-size: 1rem; }
.dashboard-rail .panel + .panel { border-top: 1px solid rgba(73, 62, 47, .18); }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.snapshot-card { border: 1px solid var(--line); background: #fff; padding: 14px; }
.snapshot-card > strong { display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.snapshot-card div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; }
.snapshot-card span { color: var(--muted); }
.snapshot-card b { font-size: 1.1rem; }

.work-list, .record-list, .notes-list { display: grid; gap: 10px; }
.work-item, .note-item { border: 1px solid rgba(73, 62, 47, .16); background: rgba(255,255,255,.78); padding: 10px; }
.work-item span, .work-item small { display: block; color: var(--muted); font-size: .78rem; }
.work-item strong { display: block; margin: 3px 0; }
.doc-daily-checklist-card { margin-bottom: 14px; }
.doc-daily-checklist-card .panel-head p,
.doc-sop-hero p,
.doc-sop-card-body p,
.doc-sop-help li,
.doc-sop-card li,
.doc-note-helper { color: var(--muted); line-height: 1.45; font-size: .84rem; }
.doc-checklist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.doc-checklist-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ink);
  font-size: .88rem;
}
.doc-checklist-list li span {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 1px solid rgba(85,91,61,.52);
  border-radius: 4px;
  background: #fffdf8;
}
.doc-sop-help { margin-bottom: 14px; padding: 0; overflow: hidden; }
.doc-sop-help summary,
.doc-sop-card summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .04em;
}
.doc-sop-help summary { padding: 14px 16px; }
.doc-sop-help ul,
.doc-sop-card ul { display: grid; gap: 7px; margin: 0; padding: 0 0 0 18px; }
.doc-sop-help ul { padding: 0 18px 16px 34px; }
.doc-sop-page { display: grid; gap: 14px; padding-bottom: 18px; }
.doc-sop-hero h3 { margin: 2px 0 6px; }
.doc-sop-grid { display: grid; gap: 10px; }
.doc-sop-card { padding: 0; overflow: hidden; }
.doc-sop-card summary { padding: 15px 16px; }
.doc-sop-card summary small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.doc-sop-card-body {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(73,62,47,.12);
}
.doc-sop-card-body p:first-child { margin-top: 12px; }
.doc-sop-card h4 { margin: 6px 0 0; color: var(--ink); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.doc-sop-warning {
  border-left: 4px solid var(--warn);
  background: #fffaf0;
  padding: 10px 12px;
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.42;
}
.doc-sop-subsections {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.doc-sop-subsection {
  border-top: 1px solid rgba(73,62,47,.12);
  padding-top: 10px;
}
.doc-sop-subsection h4 {
  margin-bottom: 6px;
}
.doc-note-helper { display: block; margin-top: 5px; }
.doc-action-helper {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.doc-admin-warning {
  border: 1px solid rgba(234, 88, 12, .22);
  border-left: 4px solid var(--doc-warning);
  border-radius: 8px;
  background: var(--doc-warning-soft);
  color: #7c2d12;
  padding: 10px 12px;
  font-size: .84rem;
  line-height: 1.42;
}
.guardrail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.guardrail-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(234, 88, 12, .24);
  border-radius: 999px;
  background: var(--doc-warning-soft);
  color: #9a3412;
  padding: 4px 8px;
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.2;
}
.guardrail-pill.good {
  border-color: rgba(22, 101, 52, .18);
  background: var(--doc-green-soft);
  color: var(--doc-green);
}
.needs-attention-record {
  border-color: rgba(234, 88, 12, .28) !important;
  box-shadow: inset 4px 0 0 var(--doc-warning), 0 12px 30px rgba(17,17,17,.055) !important;
  background: linear-gradient(180deg, #fff, #fffaf4) !important;
}
.needs-attention-badge {
  background: var(--doc-warning) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.followup-due-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--doc-border);
  background: #fff;
  color: var(--doc-text);
  padding: 5px 9px;
  font-size: .74rem;
  font-weight: 850;
}
.followup-due-pill.is-today {
  border-color: transparent;
  background: #fff;
  color: var(--doc-warning);
}
.followup-due-pill.is-overdue {
  border-color: transparent;
  background: #fff;
  color: var(--doc-danger);
}
.dashboard-followup-row.is-today {
  background: var(--doc-warning);
}
.dashboard-followup-row.is-overdue {
  background: var(--doc-danger);
}
.dashboard-followup-row.is-today td,
.dashboard-followup-row.is-today strong,
.dashboard-followup-row.is-today span,
.dashboard-followup-row.is-overdue td,
.dashboard-followup-row.is-overdue strong,
.dashboard-followup-row.is-overdue span {
  color: #fff;
}
.dashboard-followup-row.is-today .doc-chip.followup,
.dashboard-followup-row.is-overdue .doc-chip.followup {
  background: rgba(255,255,255,.9);
  color: var(--doc-purple);
  border-color: transparent;
}

.money-ledger-page {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.money-ledger-hero h3 {
  margin: 2px 0 6px;
}

.money-flow-rule {
  border-left: 5px solid rgba(164,118,61,.42);
  background: #fffaf0;
}

.money-flow-rule p:last-child,
.money-ledger-warning {
  color: var(--doc-muted);
  line-height: 1.55;
}

.money-ledger-grid {
  display: grid;
  gap: 14px;
}

.money-ledger-card {
  display: grid;
  gap: 14px;
}

.money-ledger-card.is-hold {
  border-color: rgba(184,138,51,.48);
  box-shadow: 0 0 0 1px rgba(184,138,51,.12), 0 12px 30px rgba(17,17,17,.055);
}

.money-ledger-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.money-ledger-card-head h3 {
  margin: 2px 0 4px;
}

.money-ledger-card-head span:not(.money-status-pill) {
  color: var(--doc-muted);
  font-size: .82rem;
}

.money-ledger-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.money-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--doc-border);
  border-radius: 999px;
  padding: 5px 10px;
  background: #f4efe6;
  color: var(--doc-text);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.money-status-pill.good {
  border-color: rgba(79,154,84,.24);
  background: var(--status-success-soft);
  color: var(--status-success);
}

.money-status-pill.pending {
  border-color: rgba(184,138,51,.24);
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.money-status-pill.attention {
  border-color: rgba(184,138,51,.36);
  background: #fff4d8;
  color: #7a551e;
}

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

.money-ledger-total {
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.money-ledger-total span,
.money-ledger-facts dt,
.money-ledger-note strong {
  display: block;
  color: var(--doc-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.money-ledger-total strong {
  display: block;
  margin-top: 6px;
  color: var(--doc-text);
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 1.3rem;
}

.money-ledger-total.tip strong {
  color: var(--doc-gold-dark);
}

.money-ledger-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.money-ledger-facts div {
  border-top: 1px solid var(--doc-border);
  padding-top: 9px;
}

.money-ledger-facts dd {
  margin: 4px 0 0;
  color: var(--doc-text);
  font-weight: 850;
}

.money-ledger-note {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--doc-border);
  padding-top: 12px;
}

.money-ledger-note p {
  margin: 0;
  color: var(--doc-muted);
  line-height: 1.45;
}

.money-ledger-hold-warning {
  margin-top: 0;
}

.stripe-sample-card {
  display: grid;
  gap: 14px;
}

.stripe-sample-status {
  position: sticky;
  top: 10px;
  z-index: 4;
}

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

.stripe-sample-box,
.stripe-sample-storefront {
  display: grid;
  gap: 10px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.stripe-sample-product-form {
  grid-column: 1 / -1;
}

.stripe-sample-box h4,
.stripe-sample-storefront h4 {
  margin: 0;
  color: var(--doc-text);
  font-size: .9rem;
}

.stripe-sample-storefront p {
  margin: 4px 0 0;
  color: var(--doc-muted);
  font-size: .82rem;
  line-height: 1.35;
}

.stripe-sample-products {
  display: grid;
  gap: 8px;
}

.stripe-sample-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--doc-border);
  padding-top: 10px;
}

.stripe-sample-product strong,
.stripe-sample-product span,
.stripe-sample-product small {
  display: block;
}

.stripe-sample-product span,
.stripe-sample-product small {
  color: var(--doc-muted);
  overflow-wrap: anywhere;
}

.screen-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 14px; }
.screen-toolbar label { width: min(280px, 100%); }
.cleaner-review-shell { min-height: 0; }
.cleaner-list-panel { width: 100%; padding: 0; border: 0; border-top: 1px solid rgba(73,62,47,.16); border-radius: 0; box-shadow: none; background: transparent; }
.cleaner-application-list { gap: 8px; padding: 12px 0; }
.cleaner-application-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0; border-left: 5px solid rgba(85,91,61,.55); border-radius: 10px; padding: 16px 16px; }
.cleaner-application-card .indicator-row { grid-column: 1 / -1; }
.record-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; justify-content: end; background: rgba(31,27,22,.34); }
.record-modal-panel { position: relative; width: min(620px, calc(100vw - 28px)); height: 100vh; overflow: auto; border-left: 1px solid rgba(73,62,47,.28); border-radius: 0; background: #fffdf8; box-shadow: -24px 0 60px rgba(31,27,22,.22); padding: 22px; }
.record-modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); box-shadow: none; font-size: 1.6rem; line-height: 1; }
.record-modal-close:hover { background: rgba(73,62,47,.08); }
.record-modal-panel .detail-shell { padding-right: 2px; }
.record-modal-panel::-webkit-scrollbar { width: 8px; }
.record-modal-panel::-webkit-scrollbar-track { background: #e8eef4; }
.record-modal-panel::-webkit-scrollbar-thumb { background: rgba(85,91,61,.55); border-radius: 999px; border: 2px solid #e8eef4; }
.record-modal-panel { scrollbar-color: rgba(85,91,61,.55) #e8eef4; scrollbar-width: thin; }
.quote-admin-summary,
.payment-admin-summary { border: 1px solid rgba(164,118,61,.22); border-radius: 10px; padding: 14px; background: #fffaf0; }
.quote-admin-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.quote-admin-head p { margin-top: 4px; font-size: .82rem; }
.quote-builder-backdrop { position: fixed; inset: 0; z-index: 96; display: grid; justify-content: end; background: rgba(31,27,22,.38); }
.quote-builder-panel { position: relative; width: min(880px, calc(100vw - 24px)); height: 100vh; overflow: auto; border-left: 1px solid rgba(73,62,47,.28); background: #fffdf8; box-shadow: -24px 0 60px rgba(31,27,22,.24); padding: 22px; }
.quote-builder-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: 18px; align-items: start; }
.quote-builder-fields { display: grid; gap: 12px; }
.quote-builder-form textarea { min-height: 86px; }
.quote-preview-card { position: sticky; top: 10px; display: grid; gap: 12px; border: 1px solid rgba(164,118,61,.22); border-radius: 12px; background: #fffaf0; padding: 16px; box-shadow: 0 14px 34px rgba(40,32,22,.08); }
.quote-preview-card > span { color: var(--bronze); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.quote-preview-card > h3 { letter-spacing: 0; text-transform: none; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.quote-preview-card > strong { color: var(--ink); font-size: 1.6rem; font-family: Georgia, "Times New Roman", serif; }
.quote-builder-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 880px) {
  .quote-builder-grid { grid-template-columns: 1fr; }
  .quote-preview-card { position: relative; top: auto; }
  .quote-admin-head { display: grid; }
}
.lifecycle-panel { border: 1px solid rgba(164,118,61,.22); border-radius: 10px; padding: 14px; background: #fffaf0; }
.lifecycle-panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.lifecycle-panel-head p { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.lifecycle-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lifecycle-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lifecycle-timeline { display: grid; gap: 8px; border-top: 1px solid rgba(73,62,47,.13); padding-top: 10px; }
.lifecycle-timeline h4 { margin: 0; font-size: .86rem; letter-spacing: 0; text-transform: none; }
.lifecycle-event { border: 1px solid rgba(73,62,47,.12); border-radius: 10px; background: rgba(255,255,255,.7); padding: 9px 10px; }
.lifecycle-event span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; margin-bottom: 3px; }
.lifecycle-event strong { display: block; color: var(--ink); font-size: .88rem; }
.lifecycle-event p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.35; }
@media (max-width: 640px) {
  .lifecycle-panel-head,
  .lifecycle-status-grid { grid-template-columns: 1fr; display: grid; }
  .doc-checklist-list { grid-template-columns: 1fr; }
  .doc-sop-help summary,
  .doc-sop-card summary { align-items: flex-start; }
}
.client-followup-queue,
.client-feedback-review { display: grid; gap: 12px; margin-bottom: 16px; }
.client-followup-queue { border: 1px solid rgba(164,118,61,.22); border-radius: 12px; padding: 14px; background: #fffaf0; }
.payment-requests-panel { margin-bottom: 16px; }
.client-followup-card .row-end { justify-content: flex-start; }
.client-feedback-review { border-top: 1px solid rgba(73,62,47,.13); padding-top: 12px; }
.client-feedback-review .record-row p { margin: 2px 0 0; color: var(--doc-muted); font-size: .82rem; line-height: 1.35; }
.settings-rules-shell { display: grid; gap: 16px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-tabs .filter-button { min-height: 38px; padding: 8px 11px; font-size: .74rem; }
.settings-tab-panel { display: grid; gap: 14px; }
.settings-form,
.settings-mini-form { gap: 14px; }
.settings-form h3,
.settings-mini-form strong { margin: 0; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-form-grid.compact { gap: 10px; }
.settings-wide { grid-column: 1 / -1; }
.settings-form-grid textarea { min-height: 92px; }
.settings-check { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--doc-border); border-radius: 8px; background: var(--doc-surface-soft); font-weight: 800; }
.settings-check input { width: auto; min-height: 0; }
.settings-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.settings-template-list,
.settings-status-list { display: grid; gap: 12px; }
.settings-status-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-status-row > strong,
.settings-status-row .settings-wide { grid-column: 1 / -1; }
.settings-mini-form .quote-admin-head { align-items: center; }
.settings-mini-form .status,
.settings-form .status { margin: 0; }
.action-center-page { display: grid; gap: 12px; }
.action-toolbar { align-items: end; justify-content: space-between; }
.action-toolbar label { min-width: min(420px, 100%); }
.action-list { display: grid; gap: 10px; }
.action-item { border-left: 4px solid var(--doc-border-dark); }
.action-item.priority-urgent { border-left-color: var(--doc-danger); }
.action-item.priority-high { border-left-color: var(--doc-warning); }
.action-item.priority-normal { border-left-color: var(--doc-info); }
.action-item.priority-low { border-left-color: var(--doc-muted); }
.action-item .quote-admin-head p { margin: 4px 0 0; color: var(--doc-muted); font-size: .82rem; line-height: 1.35; }
.communication-prep-page { display: grid; gap: 14px; }
.communication-builder-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 18px; align-items: start; }
.communication-fields { display: grid; gap: 12px; }
.communication-variable-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.communication-preview-card textarea { width: 100%; min-height: 360px; resize: vertical; border: 1px solid var(--doc-border); border-radius: 8px; background: #fff; color: var(--doc-text); line-height: 1.45; }
.communication-preview-card small { color: var(--doc-muted); }
.scheduling-board-page { display: grid; gap: 16px; }
.scheduling-toolbar { justify-content: space-between; align-items: center; }
.scheduling-board { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.scheduling-column { min-width: 240px; border: 1px solid var(--doc-border); border-radius: 10px; background: var(--doc-surface); display: grid; align-content: start; }
.scheduling-column-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px; border-bottom: 1px solid var(--doc-border); background: var(--doc-surface-soft); }
.scheduling-column-head h3 { margin: 0; font-size: .9rem; letter-spacing: 0; text-transform: none; }
.scheduling-column-head span { display: inline-grid; place-items: center; min-width: 26px; min-height: 26px; border-radius: 999px; background: var(--doc-gold-soft); color: var(--doc-gold-dark); font-weight: 900; }
.scheduling-card-stack { display: grid; gap: 10px; padding: 10px; }
.scheduling-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--doc-border); border-radius: 8px; background: #fffdf8; box-shadow: 0 8px 20px rgba(31,27,22,.05); }
.scheduling-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scheduling-card-head strong { color: var(--doc-text); }
.scheduling-card-head span:not(.priority-pill) { display: block; color: var(--doc-muted); font-size: .75rem; margin-top: 3px; }
.scheduling-card-facts { display: grid; gap: 6px; }
.scheduling-card-facts .field { padding-top: 6px; }
.scheduling-card-facts .field span { font-size: .62rem; }
.scheduling-card-facts .field strong { font-size: .78rem; }
.scheduling-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.scheduling-card-actions button { min-height: 34px; padding: 7px 9px; font-size: .68rem; letter-spacing: 0; }
.scheduling-modal-backdrop { position: fixed; inset: 0; z-index: 96; display: grid; justify-content: end; background: rgba(31,27,22,.38); }
.scheduling-modal-panel { position: relative; width: min(680px, calc(100vw - 24px)); height: 100vh; overflow: auto; border-left: 1px solid rgba(73,62,47,.28); background: #fffdf8; box-shadow: -24px 0 60px rgba(31,27,22,.24); padding: 22px; }
.scheduling-cleaner-list { display: grid; gap: 10px; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); gap: 18px; align-items: start; }
.record-row { border: 1px solid var(--line); background: #fffdf8; padding: 14px; display: grid; gap: 10px; }
.record-row.is-selected { border-color: rgba(49,95,66,.55); box-shadow: inset 4px 0 0 var(--good); }
.record-row strong { display: block; }
.record-row span, .record-row small { color: var(--muted); }
.indicator-row { display: flex; gap: 8px; flex-wrap: wrap; }
.indicator-row span { border: 1px solid rgba(38, 56, 77, .16); background: #f5f8fb; color: #26384d; padding: 5px 8px; font-size: .76rem; }
.row-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.drawer-panel { max-height: calc(100vh - 170px); overflow: auto; position: sticky; top: 20px; }
.detail-shell { display: grid; gap: 16px; }
.detail-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-block { display: grid; gap: 10px; }
.inline-form { box-shadow: none; background: #fff; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.field { border-top: 1px solid var(--line); padding-top: 9px; }
.field span { display: block; color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.field strong { font-weight: 700; overflow-wrap: anywhere; }

.badge { display: inline-flex; width: fit-content; background: #e2d6c2; color: #3f392f; padding: 5px 10px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; border: 1px solid rgba(73,62,47,.14); border-radius: 999px; }
.empty { border: 1px dashed rgba(73,62,47,.3); padding: 18px; background: rgba(255,255,255,.55); color: var(--muted); }
.hidden { display: none !important; }
.coming-soon { min-height: 260px; display: grid; align-content: center; }

#matchingCenterSection { display: grid; grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; overflow: hidden; }
#matchingCenterSection.hidden { display: none !important; }
.matching-active .ops-topbar { grid-template-columns: minmax(430px, 1fr) minmax(250px, .44fr) minmax(280px, .48fr) auto; min-height: 82px; padding: 12px 18px; border-bottom-color: rgba(73,62,47,.24); background: #fffdf8; }
.matching-active .ops-topbar h2 { font-size: clamp(1.72rem, 2.4vw, 2.2rem); }
.matching-active .ops-logo-lockup span { display: block; }
.matching-active .admin-search input { min-height: 42px; }
.matching-top-client { display: grid; gap: 5px; color: var(--ink); font-size: .76rem; font-weight: 850; }
.matching-top-client select { min-height: 42px; padding: 8px 12px; border-radius: 5px; background: #fff; font-size: .78rem; font-weight: 760; }
.matching-panel { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: #f8f4ec; }
.matching-panel > .eyebrow { display: none; }
.matching-panel > h3,
.matching-panel > p:not(.eyebrow) { display: none; }
#matchingReadinessList { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; overflow: hidden; }
.matching-workspace {
  display: grid;
  grid-template-columns: minmax(292px, 22.5%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 0;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.matching-pane { min-width: 0; min-height: 0; border: 0; background: #fffdf8; padding: 0; border-radius: 0; box-shadow: none; overflow: auto; }
.matching-clients-pane { border-right: 1px solid rgba(73,62,47,.2); }
.matching-pane-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; min-height: 74px; margin: 0; padding: 16px 18px 12px; border-bottom: 1px solid rgba(73,62,47,.14); background: #fffdf8; }
.matching-pane-head h3 { margin: 2px 0 0; font-size: 1.08rem; line-height: 1.12; letter-spacing: .04em; }
.matching-pane-head .eyebrow { margin-bottom: 2px; color: var(--ink); font-size: .72rem; text-transform: none; letter-spacing: 0; font-weight: 760; }
.matching-toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-bottom: 1px solid rgba(73,62,47,.12); background: #faf6ee; }
.matching-toolbar-row span { border: 1px solid rgba(73,62,47,.18); border-radius: 6px; background: #fffdf8; padding: 8px 10px; color: var(--ink); font-size: .72rem; font-weight: 850; }
.matching-candidates-pane { border-right: 0; }
.matching-detail-pane { position: relative; top: auto; max-height: none; overflow: auto; background: #fffdf8; padding: 0; }
.matching-table-wrap { overflow: auto; border: 0; border-top: 0; background: transparent; border-radius: 0; }
.matching-table { min-width: 0; table-layout: fixed; border: 0; background: transparent; border-collapse: separate; border-spacing: 0; }
.matching-client-table { min-width: 0; }
.matching-client-table th:nth-child(1) { width: 20%; }
.matching-client-table th:nth-child(2) { width: 32%; }
.matching-client-table th:nth-child(3) { width: 22%; }
.matching-client-table th:nth-child(4) { width: 26%; }
.matching-candidate-table th:nth-child(1) { width: 6%; }
.matching-candidate-table th:nth-child(2) { width: 8%; }
.matching-candidate-table th:nth-child(3) { width: 19%; }
.matching-candidate-table th:nth-child(4) { width: 12%; }
.matching-candidate-table th:nth-child(5) { width: 16%; }
.matching-candidate-table th:nth-child(6) { width: 16%; }
.matching-candidate-table th:nth-child(7),
.matching-candidate-table th:nth-child(8),
.matching-candidate-table th:nth-child(9) { width: 6%; }
.matching-candidate-table th:nth-child(10) { width: 13%; }
.matching-candidate-table th:nth-child(11) { width: 8%; }
.matching-table th { background: #fffdf8; color: #1b1b18; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid rgba(73,62,47,.18); padding: 10px 9px; font-size: .64rem; letter-spacing: .035em; }
.matching-table td { background: transparent; border-bottom-color: rgba(73,62,47,.11); overflow-wrap: normal; word-break: normal; padding: 9px 9px; font-size: .7rem; line-height: 1.28; }
.matching-table small { display: block; color: var(--muted); margin-top: 3px; }
.matching-candidate-table td:nth-child(7),
.matching-candidate-table td:nth-child(8),
.matching-candidate-table td:nth-child(9) { color: var(--olive); font-weight: 760; }
.matching-candidate-row { min-height: 58px; }
.matching-candidate-row td { vertical-align: top; }
.match-cell-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-yesno { text-align: center; white-space: nowrap; font-size: .68rem; }
.matching-client-row, .matching-candidate-row { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.matching-client-row:hover, .matching-candidate-row:hover { box-shadow: inset 0 0 0 2px rgba(85,91,61,.2); }
.matching-client-row.is-selected, .matching-candidate-row.is-selected { box-shadow: inset 5px 0 0 var(--olive), inset 0 0 0 1px rgba(85,91,61,.48); }
.matching-client-row.is-selected td:first-child, .matching-candidate-row.is-selected td:first-child { border-left: 0; }
.match-status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; border-radius: 4px; background: #e8f2e4; color: #24341e; padding: 6px 7px; font-size: .66rem; font-weight: 900; line-height: 1.05; }
.matching-candidate-row.fit-high,
.matching-candidate-row.fit-medium,
.matching-candidate-row.fit-low { background: #fffdf8; }
.matching-client-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 18px; border-bottom: 1px solid rgba(73,62,47,.12); background: rgba(248,242,231,.58); }
.matching-client-summary span { border: 1px solid rgba(73,62,47,.16); background: #f2eadb; border-radius: 999px; padding: 7px 10px; font-size: .76rem; font-weight: 850; color: #3f392f; }
.matching-group-row td { padding: 10px 16px; border-bottom: 1px solid rgba(73,62,47,.12); font-weight: 900; color: var(--ink); }
.matching-group-row.best td { background: #eef6ec; color: #284a2a; }
.matching-group-row.possible td { background: #fff2c8; color: #775818; }
.matching-group-row.review td { background: #fae7e5; color: #8a2f28; }
.fit-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 8px; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #1f241c; border: 1px solid var(--line); background: #ede7d9; }
.fit-pill.fit-high { background: #cfe5d1; border-color: #9fc5a3; }
.fit-pill.fit-medium { background: var(--doc-gold-soft); border-color: rgba(95,115,140,.34); }
.fit-pill.fit-low { background: #e9e2d4; border-color: #cec3af; }
.match-score { display: block; color: var(--olive); font-size: .92rem; line-height: 1; }
.match-fit-symbol { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--olive); font-size: 1rem; line-height: 1; }
.match-fit-symbol.fit-medium { color: var(--doc-gold-dark); }
.match-fit-symbol.fit-low { color: #b31822; }
.match-fit-label { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; max-width: 100%; padding: 5px 6px; border-radius: 5px; border: 1px solid rgba(73,62,47,.14); font-size: .6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.match-fit-label.fit-high { background: #cfe5d1; color: #24341e; }
.match-fit-label.fit-medium { background: var(--doc-gold-soft); color: var(--doc-gold-dark); }
.match-fit-label.fit-low { background: #eee5d6; color: #4d4539; }
.match-actions { white-space: nowrap; }
.matching-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; min-height: 86px; padding: 16px 18px 12px; border-bottom: 1px solid rgba(73,62,47,.16); background: linear-gradient(180deg, #fffdf8, #f8f2e8); }
.matching-detail-head h3 { margin: 0 0 4px; font-size: 1.16rem; line-height: 1.1; }
.matching-detail-head span:not(.fit-pill) { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.matching-tabs { display: flex; gap: 18px; align-items: center; margin: 0; padding: 0 18px; border-bottom: 1px solid rgba(73,62,47,.18); background: #fffdf8; }
.matching-tabs span { padding-bottom: 8px; color: var(--muted); font-size: .72rem; }
.matching-tabs .active { color: var(--ink); font-weight: 900; box-shadow: inset 0 -3px 0 var(--olive); }
.matching-detail-card { display: grid; gap: 12px; padding: 14px 18px 0; }
.matching-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid rgba(73,62,47,.14); border-radius: 8px; overflow: hidden; background: rgba(255,253,248,.8); }
.matching-compare-grid section { padding: 13px; }
.matching-compare-grid section + section { border-left: 1px solid rgba(73,62,47,.14); }
.matching-compare-grid h4 { margin: 0 0 8px; color: var(--ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.matching-compare-grid p { margin: 0 0 7px; color: var(--ink); font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
.matching-compare-grid p span { display: block; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.matching-rail-lists { grid-template-columns: 1fr; gap: 8px; }
.matching-rail-lists div { padding: 10px; border-radius: 4px; }
.matching-latest-note { border-radius: 4px; }
.matching-detail-actions { justify-content: stretch; display: grid; grid-template-columns: 1fr; margin: 14px 18px; }
.matching-detail-actions button { width: 100%; }
.matching-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; justify-content: end; background: rgba(31,27,22,.34); }
.matching-modal-panel { position: relative; width: min(460px, calc(100vw - 28px)); height: 100vh; overflow: auto; border-left: 1px solid rgba(73,62,47,.28); background: #fffdf8; box-shadow: -24px 0 60px rgba(31,27,22,.22); }
.matching-modal-panel .matching-detail-head { padding-right: 54px; }
.matching-modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); box-shadow: none; font-size: 1.6rem; line-height: 1; }
.matching-modal-close:hover { background: rgba(73,62,47,.08); }
.matching-modal-panel::-webkit-scrollbar { width: 8px; }
.matching-modal-panel::-webkit-scrollbar-track { background: #e8eef4; }
.matching-modal-panel::-webkit-scrollbar-thumb { background: rgba(85,91,61,.55); border-radius: 999px; border: 2px solid #e8eef4; }
.matching-modal-panel { scrollbar-color: rgba(85,91,61,.55) #e8eef4; scrollbar-width: thin; }
.matching-metrics-strip { display: grid; grid-template-columns: 1.05fr repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 0; border: 0; border-top: 1px solid rgba(73,62,47,.18); border-radius: 0; background: #f8f2e7; overflow: hidden; box-shadow: none; }
.matching-metrics-strip .metric-card { min-height: 66px; padding: 13px 18px; border: 0; border-right: 1px solid rgba(73,62,47,.16); border-radius: 0; background: transparent; }
.matching-metrics-strip .metric-card:last-child { border-right: 0; }
.matching-metrics-strip .metric-card span { font-size: .72rem; }
.matching-metrics-strip .metric-card strong { font-size: 1.35rem; }
.matching-metrics-strip .matching-snapshot-title strong { font-size: 1rem; color: var(--ink); }
.match-group { display: grid; gap: 10px; margin-top: 16px; }
.match-card { border-left: 4px solid var(--olive); }
.match-card.priority-high { border-left-color: var(--good); }
.match-card.priority-medium { border-left-color: var(--warn); }
.match-card.priority-low { border-left-color: var(--muted); }
.match-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.compact-detail { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0; }
.match-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.match-lists div { border: 1px solid rgba(73, 62, 47, .18); background: rgba(255,255,255,.9); padding: 12px; border-radius: 12px; }
.match-lists ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.match-lists p { margin-top: 8px; }
#matchingActionPanel:empty { display: none; }
#matchingActionPanel { display: grid; gap: 10px; margin: 12px 0; }
.compact-empty { padding: 12px; }
.matching-pane::-webkit-scrollbar,
.matching-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.matching-pane::-webkit-scrollbar-track,
.matching-table-wrap::-webkit-scrollbar-track { background: #e8eef4; }
.matching-pane::-webkit-scrollbar-thumb,
.matching-table-wrap::-webkit-scrollbar-thumb { background: rgba(85,91,61,.55); border-radius: 999px; border: 2px solid #e8eef4; }
.matching-pane,
.matching-table-wrap { scrollbar-color: rgba(85,91,61,.55) #e8eef4; scrollbar-width: thin; }

.admin-section #matchingCenterSection {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.matches-comparison-workspace {
  display: grid;
  grid-template-columns: clamp(300px, 22vw, 330px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.matches-request-panel,
.matches-request-summary,
.matches-candidate-card,
.matches-pool-snapshot {
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  box-shadow: 0 12px 30px rgba(17,17,17,.045);
}

.matches-request-panel {
  overflow: hidden;
}

.matches-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--doc-border);
}

.matches-panel-head h3,
.matches-section-head h3,
.matches-request-summary h3 {
  margin: 0;
  color: var(--doc-text);
  font-size: 1rem;
  letter-spacing: 0;
}

.matches-panel-head p,
.matches-section-head p,
.matches-request-summary p {
  margin: 3px 0 0;
  color: var(--doc-muted);
  font-size: .78rem;
  line-height: 1.25;
}

.matches-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--doc-border);
  background: var(--doc-surface);
  color: var(--doc-text);
  padding: 0;
  box-shadow: none;
}

.matches-icon-button:hover,
.matches-icon-button.active {
  border-color: rgba(95,115,140,.48);
  background: var(--doc-surface-soft);
  color: var(--doc-gold-dark);
}

.matches-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.matches-filter-wrap {
  position: relative;
  flex: 0 0 auto;
}

.matches-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 260px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  box-shadow: 0 18px 44px rgba(17,17,17,.16);
}

.matches-filter-popover h4 {
  margin: 0;
  color: var(--doc-text);
  font-size: .86rem;
  letter-spacing: 0;
}

.matches-filter-popover label {
  display: grid;
  gap: 4px;
  color: var(--doc-muted);
  font-size: .68rem;
  font-weight: 850;
}

.matches-filter-popover select,
.matches-filter-popover input {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--doc-border);
  background: var(--doc-surface);
  color: var(--doc-text);
  padding: 7px 9px;
  font: inherit;
  font-size: .76rem;
}

.matches-filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.matches-filter-actions button {
  min-height: 32px;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: .72rem;
  letter-spacing: 0;
}

.matches-request-tabs {
  display: grid;
  grid-template-columns: 1fr 1.35fr .7fr;
  border-bottom: 1px solid var(--doc-border);
}

.matches-request-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--doc-muted);
  box-shadow: none;
  padding: 8px 6px;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: 0;
}

.matches-request-tabs button.active {
  color: var(--doc-text);
  box-shadow: inset 0 -2px 0 var(--doc-gold);
}

.matches-request-list {
  display: grid;
  gap: 9px;
  padding: 10px 12px;
}

.matches-request-empty {
  border: 1px dashed var(--doc-border-dark);
  border-radius: 8px;
  background: var(--doc-surface-soft);
  color: var(--doc-muted);
  padding: 14px;
  font-size: .78rem;
  line-height: 1.35;
}

.matches-request-card {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  color: var(--doc-text);
  text-align: left;
  box-shadow: none;
  padding: 13px 36px 13px 60px;
  letter-spacing: 0;
}

.matches-request-card.selected {
  border-color: var(--doc-gold);
  box-shadow: inset 3px 0 0 var(--doc-gold), 0 10px 24px rgba(17,17,17,.06);
}

.matches-request-card strong {
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.matches-request-card small,
.matches-request-card span:not(.matches-status-badge) {
  color: var(--doc-muted);
  font-size: .76rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.matches-request-card i {
  position: absolute;
  top: 18px;
  right: 14px;
  color: var(--doc-gold);
  font-style: normal;
}

.matches-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  border: 1px solid var(--doc-border);
  border-radius: 6px;
  background: var(--doc-info-soft);
  color: var(--doc-info);
  padding: 4px 8px;
  font-size: .66rem;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
}

.matches-request-card .matches-status-badge {
  position: absolute;
  top: 16px;
  left: 14px;
}

.matches-view-all {
  width: calc(100% - 20px);
  margin: 0 10px 12px;
  border: 0;
  background: transparent;
  color: var(--doc-text);
  box-shadow: none;
  font-size: .82rem;
}

.matches-main-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.matches-request-summary {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 2.7fr) 132px;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  min-height: 84px;
}

.matches-summary-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.matches-summary-identity > div {
  min-width: 0;
}

.matches-summary-identity h3,
.matches-summary-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-avatar,
.matches-cleaner-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111;
  color: var(--doc-light-text);
  border: 1px solid rgba(95,115,140,.28);
  font-weight: 900;
}

.matches-cleaner-avatar {
  width: 36px;
  height: 36px;
  background: var(--doc-info-soft);
  color: var(--doc-text);
  border-color: var(--doc-border);
}

.matches-summary-grid {
  display: grid;
  grid-template-columns: .9fr 1fr .95fr .62fr .62fr .62fr minmax(150px, 1.45fr);
  gap: 0;
  min-width: 0;
}

.matches-summary-grid div {
  min-height: 36px;
  border-left: 1px solid var(--doc-border);
  padding: 0 11px;
  min-width: 0;
}

.matches-summary-grid div:last-child strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matches-summary-grid span,
.matches-candidate-facts span,
.matches-fit-score span,
.matches-pool-snapshot small {
  display: block;
  color: var(--doc-muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: 0;
}

.matches-summary-grid strong,
.matches-candidate-facts strong {
  display: block;
  color: var(--doc-text);
  margin-top: 4px;
  font-size: .76rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
}

.matches-secondary-action,
.matches-card-actions button {
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid var(--doc-border-dark);
  background: var(--doc-surface);
  color: var(--doc-text);
  box-shadow: none;
  padding: 7px 11px;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.matches-request-summary > .matches-secondary-action {
  width: 132px;
  justify-self: end;
}

.matches-card-actions button:first-child {
  background: #111;
  color: var(--doc-light-text);
  border-color: rgba(95,115,140,.30);
}

.matches-candidates-section {
  display: grid;
  gap: 10px;
}

.matches-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.matches-candidate-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--doc-text);
  font-size: .76rem;
  font-weight: 850;
}

.matches-compare-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--doc-border);
  border-radius: 7px;
  background: var(--doc-surface);
}

.matches-compare-toggle button {
  width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--doc-text);
  box-shadow: none;
  padding: 0;
}

.matches-compare-toggle button.active {
  background: #111;
  color: var(--doc-light-text);
}

.matches-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.matches-candidate-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matches-candidate-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  height: 100%;
}

.matches-candidate-card.best {
  border-color: var(--doc-gold);
}

.matches-best-label {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0 0 8px 0;
  background: var(--doc-gold);
  color: #fff;
  padding: 4px 9px;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: 0;
}

.matches-candidate-head {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 104px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 8px;
  align-items: start;
  padding: 24px 12px 10px;
  border-bottom: 1px solid var(--doc-border);
}

.matches-fit-score {
  grid-column: 1;
  grid-row: 1;
  min-height: 62px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-surface);
}

.matches-fit-score strong {
  color: var(--doc-gold-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.matches-cleaner-title {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.matches-cleaner-title h4 {
  margin: 0;
  color: var(--doc-text);
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.matches-cleaner-title p {
  margin: 4px 0 0;
  color: var(--doc-muted);
  font-size: .7rem;
  line-height: 1.2;
}

.matches-card-actions {
  display: contents;
}

.matches-card-actions button {
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  font-size: .66rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.matches-card-actions button:first-child {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  width: 104px;
  min-height: 30px;
}

.matches-card-actions button:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.matches-card-actions button:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.matches-card-actions button.is-saved {
  border-color: rgba(95,115,140,.48);
  background: var(--doc-gold-soft);
  color: var(--doc-gold-dark);
}

.matches-candidate-facts {
  display: grid;
  padding: 10px 12px 8px;
  align-content: start;
}

.matches-candidate-facts div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: baseline;
  border-bottom: 1px solid var(--doc-border);
  padding: 7px 0;
  min-height: 31px;
}

.matches-candidate-facts div:last-child {
  border-bottom: 0;
}

.matches-candidate-facts small {
  color: var(--doc-muted);
  font-size: .68rem;
  white-space: nowrap;
}

.matches-why {
  border-top: 1px solid rgba(95,115,140,.24);
  padding: 11px 12px 12px;
}

.matches-why strong {
  color: var(--doc-gold-dark);
  font-size: .74rem;
}

.matches-why p {
  margin: 6px 0 0;
  color: var(--doc-text);
  font-size: .75rem;
  line-height: 1.35;
}

.matches-pool-snapshot {
  display: grid;
  grid-template-columns: 1.05fr repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
}

.matches-pool-snapshot > div {
  min-height: 70px;
  display: grid;
  align-content: center;
  border-right: 1px solid var(--doc-border);
  padding: 12px 16px;
}

.matches-pool-snapshot > div:last-child {
  border-right: 0;
}

.matches-pool-snapshot strong {
  color: var(--doc-text);
  font-size: 1.32rem;
}

.matches-snapshot-title {
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.matches-snapshot-title span {
  width: 32px;
  height: 32px;
  border: 2px solid var(--doc-text);
  border-radius: 50%;
}

.matches-snapshot-title strong {
  font-size: 1rem;
}

.matches-confirmation-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.admin-route {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

body.admin-route .admin-section {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

body.admin-route .ops-shell {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

body.admin-route .ops-main {
  height: auto;
  min-height: 0;
  overflow: visible;
}

body.admin-route #matchingCenterSection,
body.admin-route #matchingReadinessList {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fffdf8; border: 1px solid var(--line); overflow: hidden; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }

footer { padding: 38px 20px; text-align: center; background: #ede7d9; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 1120px) {
  .ops-shell { grid-template-columns: 1fr; }
  .command-grid, .review-layout { grid-template-columns: 1fr; }
  .matching-layout, .matching-workspace, .compact-detail { grid-template-columns: 1fr; }
  .matching-detail-pane { position: relative; max-height: none; }
  .drawer-panel { position: relative; max-height: none; }
  .metric-grid, .matching-metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-row { grid-template-columns: 1fr; }
  .task-meta { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .snapshot-grid { grid-template-columns: 1fr; }
  .match-card-head, .match-lists { grid-template-columns: 1fr; display: grid; }
}

@media (max-width: 1420px) {
  .ops-topbar { grid-template-columns: minmax(360px, 1fr) minmax(130px, .22fr) minmax(260px, .38fr) auto; gap: 10px; }
  .admin-clock { display: none; }
  .ops-logo-lockup span { display: none; }
  .ops-logo-lockup { padding-right: 12px; }
  .ops-topbar h2 { font-size: 1.8rem; line-height: 1.05; }
  .matching-active .ops-topbar { grid-template-columns: minmax(470px, 1fr) minmax(250px, .46fr) minmax(280px, .5fr) auto; }
  .matching-active .ops-logo-lockup span { display: block; }
  .matching-workspace { grid-template-columns: minmax(285px, 22%) minmax(0, 1fr); }
  .matching-clients-pane .matching-table th,
  .matching-clients-pane .matching-table td { padding-left: 8px; padding-right: 8px; font-size: .68rem; }
  .matching-clients-pane .matching-pane-head,
  .matching-clients-pane .matching-toolbar-row { padding-left: 12px; padding-right: 12px; }
  .match-status-pill { min-width: 48px; padding: 5px 6px; }
  .matching-client-table th:nth-child(3),
  .matching-client-table td:nth-child(3) { display: none; }
  .matching-candidate-table th:nth-child(1) { width: 5%; }
  .matching-candidate-table th:nth-child(2) { width: 7%; }
  .matching-candidate-table th:nth-child(3) { width: 17%; }
  .matching-candidate-table th:nth-child(4) { width: 12%; }
  .matching-candidate-table th:nth-child(5) { width: 14%; }
  .matching-candidate-table th:nth-child(6) { width: 14%; }
  .matching-candidate-table th:nth-child(7),
  .matching-candidate-table th:nth-child(8),
  .matching-candidate-table th:nth-child(9) { width: 6%; }
  .matching-candidate-table th:nth-child(10) { width: 14%; }
  .matching-candidate-table th:nth-child(11) { width: 9%; }
  .command-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .34fr); }
  .command-table th:nth-child(6),
  .command-table td:nth-child(6) { display: none; }
  .command-table th:nth-child(8),
  .command-table td:nth-child(8),
  .command-table th:nth-child(9),
  .command-table td:nth-child(9),
  .command-table th:nth-child(11),
  .command-table td:nth-child(11) { display: none; }
  .command-table th:nth-child(1) { width: 7%; }
  .command-table th:nth-child(2) { width: 9%; }
  .command-table th:nth-child(3) { width: 13%; }
  .command-table th:nth-child(4) { width: 17%; }
  .command-table th:nth-child(5) { width: 11%; }
  .command-table th:nth-child(7) { width: 17%; }
  .command-table th:nth-child(10) { width: 18%; }
  .command-table th:nth-child(12) { width: 8%; }
  .command-table td { font-size: .72rem; padding: 9px 8px; }
  .compact { min-height: 34px; padding: 8px 10px; font-size: .72rem; }
}

@media (max-width: 880px) {
  .section-inner, .two, .three, .detail-grid, .checkbox-grid, .checkbox-grid.compact-grid { grid-template-columns: 1fr; }
  .hero-actions { justify-content: stretch; }
  .button-link, button { width: 100%; }
  .cleaner-start-panels { grid-template-columns: 1fr; }
  .cleaner-resource-button { justify-content: center; text-align: center; }
}

@media (max-width: 720px) {
  .ops-main { padding: 16px; }
  .ops-topbar, .screen-toolbar { display: grid; }
  .ops-title-row { display: grid; }
  .ops-nav, .sidebar-actions, .metric-grid { grid-template-columns: 1fr; }
  .matching-metrics-strip { grid-template-columns: 1fr; }
  .row-end { justify-content: flex-start; }
  .admin-search { width: 100%; }
  .task-board { padding: 16px; }
  .task-row { padding: 12px; }
  .task-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-button { width: 100%; }
}

/* DOC Ops dashboard refresh: bold functional SaaS visual system. */
body.admin-route {
  --ivory: #f7f8fa;
  --paper: #ffffff;
  --soft: #eef3f8;
  --line: rgba(38, 56, 77, .16);
  --olive: #1d4ed8;
  --bronze: #1d4ed8;
  --ink: #111827;
  --muted: #6b7280;
  --doc-bg: #f7f8fa;
  --doc-surface: #ffffff;
  --doc-surface-soft: #f5f8fb;
  --doc-sidebar: #0b1d3a;
  --doc-sidebar-soft: #14284d;
  --doc-sidebar-text: #ffffff;
  --doc-sidebar-muted: #a9bbdc;
  --doc-card: #ffffff;
  --doc-border: #e5e7eb;
  --doc-border-dark: #d6d9df;
  --doc-text: #111827;
  --doc-muted: #6b7280;
  --doc-light-text: #111827;
  --doc-light-muted: #4b5563;
  --doc-gold: #2563eb;
  --doc-gold-soft: #dbeafe;
  --doc-gold-dark: #1d4ed8;
  --doc-metal: #c7c3b8;
  --doc-metal-dark: #8d887c;
  --doc-success: #16a34a;
  --doc-success-soft: #dcfce7;
  --doc-warning: #f97316;
  --doc-warning-soft: #ffedd5;
  --doc-danger: #e2462e;
  --doc-danger-soft: #fbdcd5;
  --doc-info: #2563eb;
  --doc-info-soft: #dbeafe;
  --doc-blue: #2563eb;
  --doc-blue-soft: #dbeafe;
  --doc-green: #16a34a;
  --doc-green-soft: #dcfce7;
  --doc-red: #e2462e;
  --doc-red-soft: #fbdcd5;
  --doc-orange: #f97316;
  --doc-orange-soft: #ffedd5;
  --doc-purple: #7c3aed;
  --doc-purple-soft: #f3e8ff;
  background: var(--doc-bg);
}

.admin-section {
  background: var(--doc-bg);
}

.admin-section h2,
.admin-section h3,
.admin-section .ops-brand strong {
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 850;
}

.ops-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--doc-bg);
}

.ops-sidebar {
  position: relative;
  transform: none;
  width: auto;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-right: 0;
  border-bottom: 1px solid var(--doc-sidebar);
  background: var(--doc-sidebar);
  color: var(--doc-sidebar-text);
  box-shadow: 0 2px 14px rgba(11,29,58,.18);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.ops-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--doc-gold-soft);
  border: 1px solid var(--doc-border);
  color: var(--doc-gold-dark);
  font-weight: 950;
}

.ops-brand small {
  display: block;
  color: var(--doc-sidebar-muted);
  font-size: .68rem;
  margin-top: 2px;
  line-height: 1.1;
}

.ops-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav-group-label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin: 0 2px 0 10px;
  padding: 0;
  min-height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--doc-sidebar-muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.nav-group-label::after {
  content: '-';
  font-size: .58rem;
  line-height: 1;
  opacity: .78;
}

.nav-group-label[aria-expanded="false"]::after {
  content: '+';
}

.nav-group-label:first-child { margin-left: 0; }

.nav-button.is-group-collapsed {
  display: none;
}

.nav-group-divider {
  display: none;
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  margin: 6px 4px;
  background: rgba(169,187,220,.24);
}

.nav-button {
  width: auto;
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 8px;
  color: var(--doc-sidebar-muted);
  padding: 8px 11px;
  font-size: .82rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-button:hover {
  background: var(--doc-sidebar-soft);
  color: var(--doc-sidebar-text);
  border-color: transparent;
  box-shadow: none;
}

.nav-button.active {
  background: var(--doc-gold);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}

.sidebar-actions {
  display: none;
}

.ops-account {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(234,241,247,.55);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}

.ops-account span {
  color: var(--doc-sidebar-muted);
  font-size: .72rem;
}

.ops-account.admin {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.ops-account.admin span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(95,115,140,.16);
  color: var(--doc-gold-soft);
  font-weight: 900;
}

.ops-main {
  padding: 0;
  background: var(--doc-bg);
  height: auto;
  min-height: 0;
  overflow: visible;
}

.ops-topbar {
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1fr) auto auto 42px auto;
  gap: 12px;
  padding: 18px 22px;
  background: var(--doc-bg);
  border-bottom: 0;
}

.ops-topbar h2 {
  color: var(--doc-text);
  font-size: 1.5rem;
  line-height: 1.1;
}

.ops-topbar p,
.panel-head p {
  line-height: 1.35;
}

.admin-menu-button {
  display: none;
}

.admin-search {
  color: transparent;
}

.admin-search input {
  min-height: 42px;
  border-radius: 8px;
  border-color: var(--doc-border);
  background: var(--doc-surface);
  color: var(--doc-text);
}

.admin-quick-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.admin-section button.compact,
.admin-section button.secondary.compact,
.text-link {
  min-height: 38px;
  border-radius: 7px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-section button.compact,
.text-link {
  background: var(--doc-surface);
  color: var(--doc-blue);
  border: 1px solid #bfdbfe;
  box-shadow: none;
}

.admin-section button.secondary.compact {
  background: var(--doc-surface);
  color: var(--doc-text);
  border: 1px solid var(--doc-border-dark);
}

.text-link {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--doc-blue);
  font-weight: 700;
  box-shadow: none;
}

.admin-alert-dot {
  position: relative;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--doc-surface);
  color: var(--doc-muted);
  border: 1px solid var(--doc-border);
  justify-content: center;
}

.admin-alert-dot .icon {
  width: 20px;
  height: 20px;
}

.admin-alert-dot span {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--doc-blue);
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
}

.admin-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-size: .74rem;
  color: var(--doc-muted);
  white-space: nowrap;
}

.admin-clock span:first-child {
  font-weight: 850;
  color: var(--doc-text);
}

.nav-button .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-right: 9px;
}

.admin-user-chip {
  grid-template-columns: 34px auto;
  justify-content: end;
}

.admin-user-chip span {
  background: var(--doc-gold-soft);
  color: var(--doc-gold-dark);
  border: 1px solid rgba(95,115,140,.30);
}

.admin-screen {
  padding: 0 22px 22px;
  overflow: auto;
}

#dashboardSection {
  display: block;
  height: auto;
  overflow: auto;
}

.admin-section .panel,
.admin-section .detail-panel,
.admin-section .record-row,
.admin-section .empty,
.admin-section .note-item {
  border-color: var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  box-shadow: 0 12px 30px rgba(17,17,17,.055);
}

.metric-card {
  min-height: 104px;
  border: 1px solid var(--doc-border);
  border-left: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(17,17,17,.055);
}

.metric-card.urgent {
  border-color: #d7b9b5;
  background: linear-gradient(180deg, var(--doc-card), #fffafa);
}

.metric-card span {
  color: var(--doc-muted);
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

.metric-card strong {
  color: var(--doc-text);
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 1.65rem;
  margin-top: 7px;
}

.metric-card small {
  display: block;
  margin-top: 4px;
  color: var(--doc-muted);
}

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  min-height: 130px;
  border: 1px solid var(--doc-border);
  border-radius: 16px;
  background: var(--doc-card);
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--doc-gold-soft);
  color: var(--doc-gold-dark);
}

.stat-card-icon .icon {
  width: 24px;
  height: 24px;
}

.stat-card-icon.red { background: var(--doc-red-soft); color: var(--doc-red); }
.stat-card-icon.blue { background: var(--doc-blue-soft); color: var(--doc-blue); }
.stat-card-icon.green { background: var(--doc-green-soft); color: var(--doc-green); }
.stat-card-icon.orange { background: var(--doc-orange-soft); color: var(--doc-orange); }
.stat-card-icon.purple { background: var(--doc-purple-soft); color: var(--doc-purple); }

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-card-body strong {
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--doc-text);
}

.stat-card-body span {
  margin-top: 4px;
  color: var(--doc-light-muted);
  font-size: .84rem;
}

.stat-card-link {
  align-self: flex-start;
  font-size: .82rem;
}

.quote-calc-result {
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(73,62,47,.16);
}

.quote-calc-result-amount {
  font-family: Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--doc-green);
}

.quote-calc-breakdown {
  margin: 14px auto 0;
  max-width: 520px;
  text-align: left;
  font-size: .84rem;
  color: var(--doc-light-muted);
  display: grid;
  gap: 4px;
}

.quote-calc-breakdown strong {
  color: var(--doc-text);
}

.doc-dashboard-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

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

.ops-card {
  padding: 16px;
}

.panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.panel-head h3 {
  color: var(--doc-text);
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-bottom: 0;
}

.dashboard-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dashboard-card .panel-head {
  margin-bottom: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--doc-border);
}

.dashboard-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--doc-text);
}

.dashboard-card-title .icon {
  width: 20px;
  height: 20px;
  color: var(--doc-muted);
  flex: 0 0 auto;
}

.dashboard-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--doc-border);
  border-radius: 7px;
  background: var(--doc-surface);
  color: var(--doc-muted);
}

.icon-button .icon {
  width: 16px;
  height: 16px;
}

.dashboard-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--doc-border);
  margin-top: auto;
}

.dashboard-card-footer .doc-button {
  width: 100%;
}

.doc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--doc-border-dark);
  background: var(--doc-surface);
  color: var(--doc-text);
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
}

.doc-button .icon {
  width: 16px;
  height: 16px;
}

.doc-button.secondary {
  color: var(--doc-blue);
  border-color: #bfdbfe;
  background: #fff;
}

.doc-button.primary {
  background: var(--doc-gold);
  color: #fff;
  border-color: var(--doc-gold);
}

.doc-button.danger {
  color: var(--doc-red);
  border-color: #fecaca;
  background: #fff;
}

.doc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 7px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 750;
  border: 1px solid transparent;
  white-space: nowrap;
}

.doc-chip.new { background: var(--doc-blue); color: #fff; border-color: transparent; }
.doc-chip.ready,
.doc-chip.strong { background: var(--doc-green); color: #fff; border-color: transparent; }
.doc-chip.review { background: var(--doc-gold); color: #fff; border-color: transparent; }
.doc-chip.attention { background: var(--doc-red); color: #fff; border-color: transparent; }
.doc-chip.followup { background: var(--doc-purple); color: #fff; border-color: transparent; }

.doc-followup-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.doc-followup-item input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--doc-green);
}

.doc-followup-item strong {
  display: block;
  font-size: .84rem;
  color: var(--doc-text);
}

.doc-followup-item span {
  display: block;
  margin-top: 2px;
  color: var(--doc-muted);
  font-size: .76rem;
}

.section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.section-tabs > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--doc-surface-soft);
  color: var(--doc-muted);
  border: 1px solid transparent;
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.section-tabs .active {
  background: var(--doc-gold);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37,99,235,.32);
}

.section-tabs > span > span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font: inherit;
}

.dashboard-table-wrap {
  border: 0;
  overflow: auto;
}

.dashboard-table {
  min-width: 650px;
  border: 0;
  background: var(--doc-card);
}

.dashboard-table th {
  background: var(--doc-surface-soft);
  color: var(--doc-muted);
  letter-spacing: 0;
}

.dashboard-table th,
.dashboard-table td {
  padding: 10px 9px;
  font-size: .78rem;
  border-bottom-color: var(--doc-border);
  vertical-align: middle;
}

.dashboard-card .dashboard-table-wrap {
  overflow: visible;
}

.dashboard-card .dashboard-table {
  min-width: 0;
  width: 100%;
}

.dashboard-card .dashboard-table th {
  background: transparent;
  padding: 10px 20px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800;
}

.dashboard-card .dashboard-table td {
  padding: 12px 20px;
}

.dashboard-card .empty {
  margin: 16px 20px;
}

.entity-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--doc-info-soft);
  color: var(--doc-info);
  border: 1px solid var(--doc-border);
  font-size: .72rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.entity-cell strong,
.entity-cell small,
.dashboard-table small {
  display: block;
}

.entity-cell small,
.dashboard-table small {
  color: var(--doc-muted);
  margin-top: 2px;
}

.match-score-badge {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--doc-gold);
  color: var(--doc-gold-dark);
  background: #f5f8fb;
  font-weight: 900;
  font-size: .72rem;
}

.status-pill.good {
  background: var(--doc-success);
  color: #fff;
}

.status-pill.warn {
  background: var(--doc-warning);
  color: #fff;
}

.admin-section .badge,
.admin-section .status-pill,
.admin-section .match-status-pill {
  background: var(--doc-info);
  color: #fff;
  border: 1px solid transparent;
}

.admin-section .filter-button {
  background: var(--doc-surface);
  color: var(--doc-text);
  border-color: var(--doc-border);
}

.admin-section .filter-button span {
  background: var(--doc-info-soft);
  color: var(--doc-info);
}

.admin-section .filter-button.active {
  background: var(--doc-gold);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37,99,235,.32);
}

.admin-section .filter-button.active span {
  background: rgba(255,255,255,.24);
  color: #fff;
}

.admin-section .priority-pill {
  background: var(--doc-muted);
  color: #fff;
  border: 1px solid transparent;
}

.admin-section .priority-pill.priority-high {
  background: var(--doc-danger);
  color: #fff;
  border-color: transparent;
}

.admin-section .priority-pill.priority-medium {
  background: var(--doc-warning);
  color: #fff;
  border-color: transparent;
}

.admin-section .priority-pill.priority-low {
  background: var(--doc-info);
  color: #fff;
  border-color: transparent;
}

.followup-row {
  display: grid;
  grid-template-columns: 22px 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--doc-border);
}

.followup-complete-checkbox {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: var(--doc-gold-dark, var(--olive));
}

.doc-match-spotlight {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.doc-cleaner-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.doc-cleaner-photo-fallback {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--doc-gold-soft);
  color: var(--doc-gold-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.doc-cleaner-card h2 {
  margin: 8px 0 2px;
  font-size: 1.15rem;
}

.doc-person-secondary {
  margin: 0;
  color: var(--doc-muted);
  font-size: .85rem;
}

.doc-match-score {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  border: 9px solid var(--doc-green);
  display: grid;
  place-items: center;
  text-align: center;
  margin-inline: auto;
}

.doc-match-score.gold { border-color: var(--doc-gold); }
.doc-match-score.red { border-color: var(--doc-red); }

.doc-match-score strong {
  display: block;
  font-size: 1.7rem;
  color: var(--doc-green);
}

.doc-match-score.gold strong { color: var(--doc-gold-dark); }
.doc-match-score.red strong { color: var(--doc-red); }

.doc-match-score span {
  display: block;
  color: var(--doc-muted);
  font-size: .72rem;
  margin-top: 2px;
}

.doc-match-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--doc-text);
  font-size: .84rem;
  margin: 0;
  padding: 0;
}

.doc-match-reasons li {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.doc-match-reasons li::before {
  content: "\2713";
  color: var(--doc-green);
  font-weight: 900;
}

.doc-client-summary {
  border: 1px solid var(--doc-border);
  border-radius: 14px;
  padding: 18px;
  background: var(--doc-surface-soft);
}

.doc-client-summary h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.doc-client-summary p {
  margin: 4px 0;
  color: var(--doc-muted);
  font-size: .84rem;
}

.doc-match-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}

.match-spotlight-status {
  margin: 0 20px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(184, 130, 62, .12);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  width: fit-content;
}

.match-spotlight-status.is-confirmed {
  background: rgba(49, 95, 66, .12);
}

.matching-spotlight-panel {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .followup-row {
    grid-template-columns: 28px 92px minmax(0, 1fr) auto;
  }

  .followup-complete-checkbox {
    width: 22px;
    height: 22px;
  }

  .dashboard-table-wrap {
    overflow: visible;
  }

  .dashboard-table {
    min-width: 0;
    width: 100%;
    display: block;
  }

  .dashboard-table thead {
    display: none;
  }

  .dashboard-table tbody {
    display: block;
  }

  .dashboard-table tr {
    display: block;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--doc-border);
    border-radius: 10px;
    background: var(--doc-card);
  }

  .dashboard-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border-bottom: 1px solid var(--doc-border);
  }

  .dashboard-table td:last-child {
    border-bottom: 0;
  }

  .dashboard-table .row-actions {
    flex-wrap: wrap;
  }

  .dashboard-table .row-actions button {
    flex: 1 1 auto;
  }
}

.followup-row:last-child {
  border-bottom: 0;
}

.followup-row time {
  color: var(--doc-gold-dark);
  font-size: .72rem;
  font-weight: 900;
}

.followup-row strong,
.followup-row span {
  display: block;
}

.followup-row span {
  color: var(--doc-muted);
  margin-top: 3px;
  font-size: .75rem;
}

.followup-row.checkin-row,
.followup-row.cleaner-message-row {
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
}

.followup-row.checkin-row .priority-pill,
.followup-row.cleaner-message-row .priority-pill {
  display: inline-flex;
  color: #fff;
  margin-top: 0;
}

.cleaner-message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-thread-panel h3 {
  margin-bottom: 12px;
}

.message-thread-original {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--doc-surface-soft, #f4f1ea);
  margin-bottom: 16px;
}

.message-thread-original small {
  display: block;
  margin-top: 6px;
  color: var(--doc-muted);
}

.message-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.message-thread-item {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 85%;
}

.message-thread-item p {
  margin: 4px 0 0;
}

.message-thread-item small {
  display: block;
  margin-top: 6px;
  color: var(--doc-muted);
  font-size: .72rem;
}

.message-thread-item.message-thread-admin {
  align-self: flex-end;
  background: var(--doc-gold-soft);
  margin-left: auto;
}

.message-thread-item.message-thread-cleaner {
  align-self: flex-start;
  background: var(--doc-card);
  border: 1px solid var(--doc-border);
}

.message-thread-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-thread-form textarea {
  min-height: 80px;
  resize: vertical;
}

.admin-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 500;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--doc-gold-dark);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(17,17,17,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-12px);
  transition: opacity .2s ease, transform .2s ease;
}

.admin-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.admin-calendar-page {
  display: grid;
  gap: 12px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  padding: 10px;
  box-shadow: 0 12px 30px rgba(17,17,17,.045);
}

.calendar-toolbar-left,
.calendar-toolbar-right,
.calendar-arrow-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-picker-wrap { position: relative; }

.calendar-today-button,
.calendar-icon-button,
.calendar-month-button,
.calendar-view-button,
.calendar-filter-button,
.calendar-more-button {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--doc-border-dark);
  background: var(--doc-surface);
  color: var(--doc-text);
  padding: 8px 11px;
  box-shadow: none;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.calendar-icon-button {
  width: 36px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.calendar-month-button,
.calendar-view-button.active {
  background: var(--doc-gold-soft);
  color: var(--doc-light-text);
  border-color: rgba(95,115,140,.38);
  box-shadow: inset 0 -2px 0 var(--doc-gold);
}

.calendar-filter-button span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--doc-gold-soft);
  color: var(--doc-gold-dark);
  padding: 2px 7px;
  font-size: .68rem;
  font-weight: 950;
}

.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(980px, 1fr) 42px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.calendar-month-shell {
  min-width: 980px;
  overflow: hidden;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-card);
  box-shadow: 0 16px 36px rgba(17,17,17,.05);
}

.calendar-week-header,
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(138px, 1fr));
}

.calendar-week-header {
  border-bottom: 1px solid var(--doc-border);
  background: var(--doc-surface-soft);
}

.calendar-week-header div {
  min-height: 34px;
  border-right: 1px solid var(--doc-border);
  color: var(--doc-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 950;
}

.calendar-week-header div:last-child { border-right: 0; }

.calendar-day-cell {
  min-height: 142px;
  border-right: 1px solid var(--doc-border);
  border-bottom: 1px solid var(--doc-border);
  background: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.calendar-day-cell:nth-child(7n) { border-right: 0; }
.calendar-day-cell:nth-last-child(-n + 7) { border-bottom: 0; }
.calendar-day-cell.muted { background: #f5f5f3; color: var(--doc-muted); }
.calendar-day-cell.selected { box-shadow: inset 0 0 0 2px rgba(95,115,140,.42); }

.calendar-day-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-meta strong {
  color: var(--doc-text);
  font-size: .9rem;
  font-weight: 950;
}

.calendar-day-meta span {
  color: var(--doc-muted);
  font-size: .68rem;
  font-weight: 850;
}

.calendar-event-stack {
  display: grid;
  gap: 5px;
  align-content: start;
}

.calendar-empty-slot { min-height: 1px; }

.calendar-event-card {
  overflow: hidden;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--doc-border);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--doc-surface-soft);
  padding: 5px 6px;
  color: var(--doc-text);
  box-shadow: none;
  font-size: .68rem;
  line-height: 1.18;
  text-align: left;
  letter-spacing: 0;
}

.calendar-event-card span,
.calendar-event-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-card span { font-weight: 900; }

.calendar-event-card small {
  margin-top: 2px;
  color: var(--doc-muted);
  font-size: .62rem;
}

.calendar-event-card.type-visit {
  border-left-color: var(--doc-success);
  background: var(--doc-success-soft);
}

.calendar-event-card.type-errand,
.calendar-event-card.type-admin {
  border-left-color: var(--doc-info);
  background: var(--doc-info-soft);
}

.calendar-event-card.type-internal {
  border-left-color: var(--doc-gold);
  background: #f5f8fb;
}

.calendar-event-card.type-urgent {
  border-left-color: var(--doc-danger);
  background: var(--doc-danger-soft);
}

.calendar-event-card.status-completed,
.calendar-event-card.status-cancelled {
  border-left-color: var(--doc-metal-dark);
  background: #eeeeeb;
  color: var(--doc-muted);
}

.calendar-event-card.status-completed span,
.calendar-event-card.status-cancelled span {
  text-decoration: line-through;
}

.calendar-unscheduled-rail {
  min-height: 100%;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--doc-gold-soft), #dbe6ef);
  color: var(--doc-light-text);
  display: grid;
  grid-template-rows: 36px 1fr 34px;
  align-items: center;
  justify-items: center;
  padding: 8px 0;
  box-shadow: inset 3px 0 0 var(--doc-gold);
}

.calendar-unscheduled-toggle {
  width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(234,241,247,.34);
  background: rgba(255,255,255,.06);
  color: var(--doc-gold-soft);
  padding: 0;
  box-shadow: none;
  font-size: 1rem;
}

.calendar-unscheduled-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--doc-light-muted);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calendar-unscheduled-rail strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--doc-gold-soft);
  color: var(--doc-gold-dark);
  font-size: .72rem;
  font-weight: 950;
}

.mini-date-picker {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: 286px;
  border: 1px solid var(--doc-border-dark);
  border-radius: 8px;
  background: var(--doc-card);
  padding: 12px;
  box-shadow: 0 18px 45px rgba(17,17,17,.18);
}

.mini-date-picker-head,
.mini-date-weekdays,
.mini-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mini-date-picker-head {
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  margin-bottom: 10px;
}

.mini-date-picker-head strong {
  text-align: center;
  color: var(--doc-text);
  font-size: .86rem;
}

.mini-date-picker-head button {
  width: 30px;
  min-height: 30px;
  border-radius: 7px;
  padding: 0;
  background: var(--doc-surface-soft);
  color: var(--doc-text);
  border: 1px solid var(--doc-border);
  box-shadow: none;
}

.mini-date-controls {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-date-controls label {
  display: grid;
  gap: 4px;
  color: var(--doc-muted);
  font-size: .62rem;
  font-weight: 900;
}

.mini-date-controls select {
  min-height: 32px;
  border: 1px solid var(--doc-border);
  border-radius: 7px;
  background: var(--doc-surface);
  color: var(--doc-text);
  padding: 4px 8px;
  font-size: .76rem;
  font-weight: 850;
}

.mini-date-weekdays { margin-bottom: 5px; }

.mini-date-weekdays span {
  color: var(--doc-muted);
  text-align: center;
  font-size: .62rem;
  font-weight: 900;
}

.mini-date-grid button {
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--doc-text);
  padding: 0;
  box-shadow: none;
  font-size: .76rem;
  font-weight: 850;
}

.mini-date-grid button.muted { color: #a0a09a; }

.mini-date-grid button.selected {
  background: var(--doc-gold);
  color: #fff;
  box-shadow: 0 3px 8px rgba(37,99,235,.32);
}

.admin-section .task-filters,
.admin-section .matching-toolbar-row,
.admin-section .matching-client-summary,
.admin-section .matching-detail-head,
.admin-section .matching-metrics-strip,
.admin-section .dashboard-rail,
.admin-section .command-table th {
  background: #f5f8fb;
}

.admin-section .task-row,
.admin-section .command-table-wrap,
.admin-section .record-modal-panel,
.admin-section .quote-builder-panel,
.admin-section .scheduling-modal-panel,
.admin-section .scheduling-card,
.admin-section .record-row,
.admin-section .matching-active .ops-topbar,
.admin-section .matching-pane,
.admin-section .matching-detail-pane,
.admin-section .matching-table th,
.admin-section .matching-candidate-row.fit-low,
.admin-section .matching-toolbar-row span,
.admin-section .matching-modal-panel,
.admin-section .matches-request-card,
.admin-section .matches-candidate-card,
.admin-section .matches-compare-toggle,
.admin-section .payment-admin-summary,
.admin-section .quote-preview-card,
.admin-section .lifecycle-panel,
.admin-section .client-followup-queue {
  background: #ffffff;
}

.admin-section .command-row.urgency-overdue {
  background: var(--doc-danger);
}
.admin-section .command-row.urgency-soon {
  background: var(--doc-warning);
}
.admin-section .command-row.urgency-future {
  background: var(--doc-success);
}
.admin-section .command-row.urgency-neutral {
  background: var(--doc-blue);
}
.admin-section .command-row.urgency-overdue td:first-child,
.admin-section .command-row.urgency-soon td:first-child,
.admin-section .command-row.urgency-future td:first-child,
.admin-section .command-row.urgency-neutral td:first-child {
  border-left-color: rgba(0,0,0,.18);
}
.admin-section .command-row.urgency-overdue strong,
.admin-section .command-row.urgency-overdue small,
.admin-section .command-row.urgency-overdue .priority-arrow,
.admin-section .command-row.urgency-soon strong,
.admin-section .command-row.urgency-soon small,
.admin-section .command-row.urgency-soon .priority-arrow,
.admin-section .command-row.urgency-future strong,
.admin-section .command-row.urgency-future small,
.admin-section .command-row.urgency-future .priority-arrow,
.admin-section .command-row.urgency-neutral strong,
.admin-section .command-row.urgency-neutral small,
.admin-section .command-row.urgency-neutral .priority-arrow {
  color: #fff;
}
.admin-section .command-row.urgency-overdue:hover,
.admin-section .command-row.urgency-soon:hover,
.admin-section .command-row.urgency-future:hover,
.admin-section .command-row.urgency-neutral:hover {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}

.admin-section .filter-button {
  background: #ffffff;
  border-color: rgba(38, 56, 77, .16);
}

.admin-section .matching-panel {
  background: #f7f8fa;
}

.admin-section .matching-client-summary span,
.admin-section .badge {
  background: #eaf1f7;
  color: #26384d;
  border-color: #c6d6e3;
}

.admin-section .payment-admin-summary,
.admin-section .quote-preview-card,
.admin-section .lifecycle-panel,
.admin-section .client-followup-queue {
  border-color: rgba(95, 115, 140, .22);
}

.admin-section .command-table th,
.admin-section .command-table td,
.admin-section .command-tabs,
.admin-section .command-info-grid,
.admin-section .command-info-grid section + section,
.admin-section .dashboard-rail,
.admin-section .dashboard-rail .panel + .panel,
.admin-section .matching-clients-pane,
.admin-section .matching-pane-head,
.admin-section .matching-toolbar-row,
.admin-section .matching-detail-head,
.admin-section .matching-tabs,
.admin-section .matching-compare-grid,
.admin-section .matching-compare-grid section + section,
.admin-section .matching-modal-panel,
.admin-section .record-modal-panel,
.admin-section .quote-builder-panel,
.admin-section .scheduling-modal-panel,
.admin-section .client-feedback-review,
.admin-section .lifecycle-timeline,
.admin-section .lifecycle-event,
.admin-section .work-item,
.admin-section .note-item {
  border-color: rgba(38, 56, 77, .14);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.revenue-trend-card,
.revenue-service-breakdown-card {
  margin-top: 18px;
}

.revenue-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 4px 0;
  overflow-x: auto;
}

.revenue-trend-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.revenue-trend-bar-value {
  font-size: .74rem;
  font-weight: 800;
  color: var(--doc-text);
  margin-bottom: 6px;
  white-space: nowrap;
}

.revenue-trend-bar {
  width: 36px;
  border-radius: 5px 5px 0 0;
  background: var(--doc-gold-dark);
}

.revenue-trend-bar-label {
  margin-top: 8px;
  font-size: .72rem;
  color: var(--doc-muted);
  white-space: nowrap;
}

.revenue-service-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.revenue-service-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 12px;
}

.revenue-service-row-label {
  font-size: .84rem;
  color: var(--doc-text);
  font-weight: 700;
}

.revenue-service-row-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--doc-gold-soft);
  overflow: hidden;
}

.revenue-service-row-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--doc-gold-dark);
}

.revenue-service-row-value {
  font-size: .82rem;
  color: var(--doc-text);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.revenue-service-row-value small {
  font-weight: 500;
  color: var(--doc-muted);
}

@media (max-width: 720px) {
  .revenue-service-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .revenue-service-row-value {
    text-align: left;
  }
}

@media (max-width: 1180px) {
  .ops-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ops-sidebar {
    position: relative;
    transform: none;
    width: auto;
    z-index: 30;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .ops-shell.nav-open .ops-sidebar {
    transform: none;
  }

  .admin-menu-button {
    display: none;
  }

  .admin-nav-overlay,
  .ops-shell.nav-open .admin-nav-overlay {
    display: none;
  }

  .ops-nav {
    flex-wrap: wrap;
  }

  .nav-group-divider {
    display: none;
  }

  .nav-group-label {
    display: flex;
    width: 100%;
    margin: 6px 0 0;
  }

  .nav-group-label:first-child {
    margin-top: 0;
  }

  .ops-topbar,
  .stat-card-grid,
  .doc-dashboard-triple,
  .pipeline-grid,
  .doc-match-spotlight {
    grid-template-columns: 1fr;
  }

  .admin-clock {
    display: none;
  }

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

  .calendar-toolbar-left,
  .calendar-toolbar-right {
    flex-wrap: wrap;
  }

  .matches-comparison-workspace,
  .matches-request-summary {
    grid-template-columns: 1fr;
  }

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

  .matches-summary-grid div {
    border-left: 0;
    border-top: 1px solid var(--doc-border);
    padding: 10px 0 0;
  }

  .matches-candidate-grid,
  .matches-candidate-grid.count-2 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .qa-header,
  .qa-item {
    grid-template-columns: 1fr;
  }

  .qa-actions {
    justify-content: stretch;
  }

  .qa-actions button {
    flex: 1 1 100%;
  }

  .ops-topbar,
  .admin-quick-actions,
  .report-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-screen {
    padding: 0 14px 18px;
  }

  .settings-form-grid,
  .settings-card-grid,
  .settings-status-row,
  .communication-builder-grid,
  .communication-variable-grid,
  .stripe-sample-grid,
  .stripe-sample-product,
  .money-ledger-card-head,
  .money-ledger-totals,
  .money-ledger-facts {
    grid-template-columns: 1fr;
  }

  .money-ledger-statuses {
    justify-content: flex-start;
  }

  .followup-row,
  .followup-row.checkin-row,
  .followup-row.cleaner-message-row {
    grid-template-columns: 1fr;
  }

  .doc-cleaner-card {
    flex-direction: column;
    text-align: center;
  }

  .doc-match-actions {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar-left,
  .calendar-toolbar-right {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-picker-wrap,
  .calendar-month-button,
  .calendar-more-button {
    grid-column: 1 / -1;
  }

  .calendar-workspace {
    grid-template-columns: minmax(980px, 1fr) 42px;
  }

  .matches-section-head,
  .matches-candidate-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .matches-candidate-head {
    grid-template-columns: 1fr;
  }

  .matches-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .matches-card-actions button:first-child,
  .matches-card-actions button:nth-child(2),
  .matches-card-actions button:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .matches-card-actions button:first-child {
    grid-column: 1 / -1;
  }

  .matches-candidate-facts div {
    grid-template-columns: 1fr;
  }

  .matches-pool-snapshot,
  .matches-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.qa-route *,
  body.qa-route .qa-checklist,
  body.qa-route .qa-checklist * {
    visibility: visible !important;
  }

  body.qa-route {
    background: #fff !important;
  }

  body.qa-route .qa-checklist {
    padding: 0;
    background: #fff !important;
  }

  body.qa-route .qa-header,
  body.qa-route .qa-section,
  body.qa-route .qa-item {
    box-shadow: none !important;
    background: #fff !important;
  }

  body.qa-route .qa-actions {
    display: none !important;
  }

  body.qa-route .qa-shell {
    width: 100%;
  }

  body.qa-route .qa-item {
    break-inside: avoid;
    grid-template-columns: 1fr 120px 1fr 1fr;
  }
}

/* Public DOC website refresh: landing, clients, and cleaners only. */
/* Warm taupe/bronze reskin -- ivory bg, cream cards, muted olive-brown
   buttons, bronze/taupe icons and dividers, charcoal text. */
body:not(.admin-route):not(.cleaner-portal-route):not(.client-portal-route):not(.qa-route) {
  --doc-ivory: #f6f1e8;
  --doc-cream: #fbf8f1;
  --doc-warm: #eadcc8;
  --doc-stripe: #b9a888;
  --doc-stripe-dark: #a08b68;
  --doc-button: #9b6f3d;
  --doc-button-hover: #7d5a30;
  --doc-button-primary: #5f523d;
  --doc-button-primary-hover: #443928;
  --doc-text: #262220;
  --doc-muted: #6b6259;
  --doc-line: rgba(157, 130, 96, 0.28);
  --doc-card: rgba(255, 250, 242, 0.9);
  background: var(--doc-ivory);
}

.icon {
  display: block;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--doc-button);
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 54px);
  border-bottom: 1px solid rgba(164,118,61,.18);
  background: rgba(255,250,240,.9);
  backdrop-filter: blur(14px);
}

.public-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-nav-actions .button-link {
  min-height: 0;
  padding: 11px 16px;
  font-size: .7rem;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #15120d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.public-brand img {
  width: 82px;
  height: auto;
  opacity: .82;
}

.public-nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.public-nav nav a {
  color: #2b261d;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.public-nav nav a.portal-link {
  color: var(--doc-muted);
  font-weight: 500;
}

body:not(.client-path):not(.cleaner-path) .public-nav nav a[data-public-page-link="home"],
body.client-path .public-nav nav a[data-public-page-link="client"],
body.cleaner-path .public-nav nav a[data-public-page-link="cleaner"] {
  color: var(--doc-button);
  border-bottom-color: var(--doc-button);
}

.public-menu-button {
  display: none;
  width: auto;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #15120d;
  box-shadow: none;
}

.hero {
  min-height: auto;
  padding: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(185,156,106,.18), transparent 23rem),
    linear-gradient(110deg, var(--doc-cream) 0%, #f8f0e4 48%, var(--doc-warm) 100%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  text-align: left;
  position: relative;
  padding: clamp(28px, 5vw, 52px) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.tagline {
  max-width: 590px;
  margin: 0;
  color: var(--doc-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

.tagline-line {
  display: block;
}

.tagline-line + .tagline-line {
  margin-top: .3em;
}

.form-hidden {
  display: none;
}

body.public-form-modal-open {
  overflow: hidden;
}

body.public-resource-modal-open {
  overflow: hidden;
}

body.public-form-modal-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31, 27, 22, .42);
  backdrop-filter: blur(2px);
}

.hero-description {
  max-width: 440px;
  margin: 26px 0 0;
  color: var(--doc-text);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions,
.section-actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.hero-actions {
  margin-top: 20px;
}

body:not(.admin-route):not(.cleaner-portal-route):not(.client-portal-route):not(.qa-route) .button-link,
body:not(.admin-route):not(.cleaner-portal-route):not(.client-portal-route):not(.qa-route) button[type="submit"] {
  background: var(--doc-button-primary);
  color: #fffaf0;
  border: 1px solid var(--doc-button-primary);
  border-radius: 6px;
  box-shadow: none;
}

body:not(.admin-route):not(.cleaner-portal-route):not(.client-portal-route):not(.qa-route) .button-link:hover,
body:not(.admin-route):not(.cleaner-portal-route):not(.client-portal-route):not(.qa-route) button[type="submit"]:hover {
  background: var(--doc-button-primary-hover);
  border-color: var(--doc-button-primary-hover);
}

body:not(.admin-route):not(.cleaner-portal-route):not(.client-portal-route):not(.qa-route) .button-link.secondary {
  background: rgba(255,250,240,.74);
  color: var(--doc-text);
  border-color: rgba(95, 82, 61, .55);
  box-shadow: none;
}

.hero-visual {
  min-height: 420px;
  position: relative;
  display: grid;
  align-items: end;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(340px, 58%);
  max-width: calc(100% - 48px);
  opacity: .1;
  transform: translate(-50%, -50%);
  filter: saturate(.7) blur(.2px);
  pointer-events: none;
  z-index: 3;
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 220px 220px 18px 18px;
  box-shadow: 0 30px 60px rgba(77,58,30,.16);
  filter: saturate(.96);
}

.portal-not-available {
  min-height: 100vh;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
  padding: 32px;
  background: var(--ivory);
}

.portal-not-available img { width: 64px; opacity: .5; }

.portal-not-available h2 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 400;
  letter-spacing: .05em;
  font-size: 1.4rem;
  margin: 0;
}

.portal-not-available p {
  max-width: 380px;
  color: var(--muted);
  margin: 0;
}

.portal-not-available .button-link {
  background: var(--doc-button-primary);
  border-color: var(--doc-button-primary);
  color: #fff;
}

.portal-not-available .button-link:hover { background: var(--doc-button-primary-hover); }

.public-home-page {
  display: block;
}

.site-shell.path-active .public-home-page {
  display: none;
}

.public-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.public-process-section,
.public-values {
  padding: clamp(50px, 7vw, 82px) 0;
  background: var(--doc-cream);
  border-top: 1px solid var(--doc-line);
}

.public-process-section h2,
.public-stack > .eyebrow + h2 {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.hero .eyebrow,
.public-subhero-card .eyebrow {
  color: var(--doc-button);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.public-detail-content .public-stack > .eyebrow,
.public-detail-content .public-policy > .eyebrow {
  text-align: center;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  color: var(--doc-text);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
}

.public-process-grid,
.public-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.public-process-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-card-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-card-grid.seven {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-process-grid article,
.public-card-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: var(--doc-card);
  box-shadow: 0 16px 34px rgba(77,58,30,.07);
}

.public-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.public-icon-row > div {
  flex: 1 1 0;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px clamp(16px, 3vw, 32px);
  text-align: center;
  border-left: 1px solid var(--doc-line);
}

.public-icon-row > div:first-child {
  border-left: 0;
}

.public-icon-row .icon {
  width: 30px;
  height: 30px;
}

.public-icon-row h3,
.public-icon-row p {
  margin: 0;
  color: #15120d;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.public-icon-row p {
  color: var(--doc-muted);
  letter-spacing: 0;
  text-transform: none;
  font-size: .82rem;
  line-height: 1.5;
}

.icon-process article {
  text-align: center;
}

.icon-process article .icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
}

.public-process-grid.connected {
  position: relative;
}

.public-process-grid.connected::before {
  content: "";
  position: absolute;
  top: 39px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed rgba(155, 111, 61, .38);
  z-index: -1;
}

.step-badge {
  position: relative;
  z-index: 1;
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--doc-button);
  color: #fffaf0;
  font-weight: 700;
  font-size: .82rem;
}

.public-process-flow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.public-process-flow article {
  flex: 1 1 0;
  min-width: 0;
}

.public-client-process .public-process-flow {
  align-items: stretch;
}

.public-client-process .public-process-flow article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.public-client-process .step-badge {
  display: none;
}

.step-arrow {
  flex: 0 0 auto;
  color: var(--doc-button);
}

.step-arrow .icon {
  width: 22px;
  height: 22px;
}

.public-process-grid span {
  color: var(--doc-button);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--doc-button);
  color: #fffaf0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pill-locked {
  background: rgba(21, 25, 28, .68);
}

.resource-grid .icon {
  width: 32px;
  height: 32px;
}

.public-process-grid h3,
.public-card-grid h3 {
  margin: 10px 0 8px;
  color: #15120d;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-stripe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 7vw, 92px);
  align-items: center;
  padding: clamp(54px, 8vw, 88px) clamp(20px, 7vw, 86px);
  border-top: 1px solid var(--doc-line);
  border-bottom: 1px solid var(--doc-line);
  background:
    linear-gradient(180deg, rgba(255,252,245,.98), rgba(244,238,228,.86));
  color: var(--doc-text);
}

.public-stripe h2,
.public-subhero-card h2,
.public-form-section h2 {
  color: var(--doc-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.public-stripe h2,
.public-stripe p,
.public-stripe .eyebrow {
  color: var(--doc-text);
  text-shadow: none;
}

.public-stripe h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.public-split .eyebrow {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(111,93,66,.24);
}

.public-split article:first-child {
  padding-right: clamp(12px, 3vw, 32px);
}

.public-split article:last-child {
  justify-self: end;
  padding-left: clamp(12px, 3vw, 32px);
}

.public-inline-stripe h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.3;
}

.public-inline-stripe article p {
  margin-top: 12px;
  max-width: 380px;
}

.public-inline-stripe article .button-link {
  margin-top: 20px;
}

.public-monogram-circle {
  width: clamp(170px, 22vw, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(255,252,245,.28), transparent 38%),
    radial-gradient(circle, rgba(205,187,151,.96), rgba(140,121,91,.92));
  border: 1px solid rgba(255,252,245,.52);
  box-shadow: 0 18px 46px rgba(77,58,30,.18);
}

.public-monogram-circle img {
  width: 68%;
  filter: sepia(.35) saturate(1.25) brightness(1.5);
  opacity: .82;
}

.public-home-page.public-split .public-monogram-circle {
  display: none;
}

.public-page-detail {
  padding-top: 0;
  background: var(--doc-ivory);
}

.public-page-detail .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.public-detail-content {
  display: grid;
  gap: 34px;
}

.public-subhero-card {
  min-height: 450px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(260px, .58fr);
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid rgba(164,118,61,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 30%, rgba(185,156,106,.2), transparent 18rem),
    linear-gradient(110deg, var(--doc-cream), var(--doc-warm));
}

.public-subhero-card img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(77,58,30,.16);
}

/* The cleaner and her hand wiping the counter sit on the right side of
   this photo, with empty wall space on the left; favor the right edge
   so cropping never leaves just the empty wall (or just her hand) visible. */
#cleaners .public-subhero-card img {
  object-position: right center;
}

.public-policy {
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: var(--doc-card);
}

.public-policy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.public-policy li {
  color: #2b261d;
  line-height: 1.55;
}

.public-policy li::before {
  content: "○";
  color: var(--doc-button);
  margin-right: 10px;
}

.public-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--doc-muted);
  font-size: .92rem;
  line-height: 1.5;
}

.public-hero-note .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--doc-muted);
}

.public-final-cta {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: clamp(28px, 5vw, 48px);
  border-top: 1px solid var(--doc-line);
  border-bottom: 1px solid var(--doc-line);
  background: linear-gradient(180deg, rgba(255,252,245,.58), rgba(232,221,203,.42));
}

.public-final-cta h2 {
  max-width: 1120px;
  color: var(--doc-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.25vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.22;
  text-transform: none;
}

.public-final-cta .section-actions {
  justify-content: center;
  margin-top: 12px;
}

.cleaner-final-cta h2 {
  max-width: 980px;
  font-size: clamp(1.75rem, 3.3vw, 2.45rem);
}

.public-note-strip ul {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-note-strip li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.public-note-strip li::before {
  content: none;
}

.public-note-strip li .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--doc-button);
}

.public-form-section {
  padding-top: 20px;
}

.public-form-section form {
  background: rgba(255,250,240,.88);
  border: 1px solid rgba(164,118,61,.18);
  box-shadow: 0 16px 34px rgba(77,58,30,.07);
}

form.public-form-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 90;
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 820px);
  overflow: auto;
  transform: translate(-50%, -50%);
  background: rgba(255,250,240,.98);
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(31,27,22,.28);
}

.public-form-close {
  justify-self: end;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,252,245,.78);
  color: var(--doc-text);
  border: 1px solid var(--doc-line);
  box-shadow: none;
  font-size: 1.2rem;
  line-height: 1;
}

.public-resources {
  display: block;
  padding: clamp(34px, 6vw, 56px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,252,245,.2), transparent 18rem),
    linear-gradient(180deg, #b9aa8b 0%, #a79674 100%);
  box-shadow: inset 0 1px 0 rgba(255,252,245,.35), 0 18px 42px rgba(77,58,30,.09);
}

.public-resources > .eyebrow {
  text-align: center;
  color: #fffaf0;
}

.resource-grid article {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: rgba(255,252,245,.92);
  box-shadow: 0 16px 34px rgba(80,65,45,.12);
}

.resource-grid .button-link {
  width: fit-content;
  margin-top: 8px;
}

.cleaner-start-section {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  padding: clamp(22px, 3.8vw, 38px);
  border: 1px solid var(--doc-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 10%, rgba(185,170,139,.18), transparent 30%),
    linear-gradient(180deg, rgba(255,252,245,.96), rgba(250,244,233,.92));
  box-shadow: 0 18px 42px rgba(77,58,30,.08);
}

.cleaner-start-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cleaner-start-intro h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 400;
  line-height: .98;
  color: #15120d;
}

.cleaner-start-intro p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--doc-muted);
  font-size: clamp(.92rem, 1.35vw, 1.05rem);
  line-height: 1.38;
}

.cleaner-start-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 18px;
  align-items: stretch;
}

.cleaner-start-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(142,113,72,.22);
  border-radius: 16px;
  background: rgba(255,252,245,.9);
  box-shadow: 0 16px 34px rgba(80,65,45,.08);
}

.cleaner-start-panel.process-panel {
  border-color: rgba(108,87,55,.32);
  box-shadow: 0 20px 44px rgba(80,65,45,.11);
}

.cleaner-start-panel .panel-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(142,113,72,.28);
  border-radius: 999px;
  color: #8a6b43;
}

.cleaner-start-panel .panel-icon .icon {
  width: 22px;
  height: 22px;
}

.cleaner-start-panel h3 {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.12;
  text-transform: uppercase;
  color: #15120d;
}

.cleaner-start-panel > p,
.cleaner-start-panel li p {
  margin: 0;
  color: var(--doc-muted);
  line-height: 1.32;
  font-size: .92rem;
}

.cleaner-step-list,
.cleaner-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cleaner-step-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
}

.cleaner-step-list li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #6f5d42;
  color: #fffaf0;
  font-weight: 900;
}

.cleaner-step-list strong,
.cleaner-check-list li {
  color: #211c15;
  font-weight: 800;
}

.cleaner-step-list strong {
  display: block;
  margin-bottom: 2px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cleaner-check-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.4;
}

.cleaner-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  width: 18px;
  height: 18px;
  border: 1px solid #8a6b43;
  border-radius: 999px;
  background: rgba(255,252,245,.85);
}

.cleaner-check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: .52em;
  width: 6px;
  height: 9px;
  border: solid #8a6b43;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cleaner-panel-note {
  padding-top: 12px;
  border-top: 1px solid rgba(142,113,72,.22);
  font-size: .86rem;
}

.cleaner-link-actions {
  display: grid;
  gap: 12px;
}

.cleaner-resource-button {
  width: 100%;
  justify-content: flex-start;
  min-height: 52px;
  padding: 12px 16px;
  text-align: left;
  letter-spacing: .1em;
  background: rgba(255,252,245,.78) !important;
  color: #5f4d35 !important;
  border: 1px solid rgba(142,113,72,.34) !important;
  box-shadow: none;
}

.cleaner-resource-button:hover {
  background: #fffaf0 !important;
  border-color: rgba(142,113,72,.58) !important;
}

.cleaner-resource-button .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #8a6b43;
}

.cleaner-tips-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(31, 27, 22, .45);
  backdrop-filter: blur(3px);
}

.cleaner-tips-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(142,113,72,.28);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 28px 70px rgba(31,27,22,.24);
}

.cleaner-tips-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(95,77,53,.08);
  color: var(--doc-text);
  box-shadow: none;
  font-size: 1.4rem;
  line-height: 1;
}

.cleaner-tips-modal-close:hover {
  background: rgba(95,77,53,.14);
}

.cleaner-tips-modal-panel h2,
.cleaner-tips-modal-panel h3 {
  color: var(--doc-heading);
}

.cleaner-tips-modal-panel h2 {
  max-width: 720px;
  margin: 0 42px 12px 0;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.1;
}

.cleaner-tips-modal-panel h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cleaner-tips-intro {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--doc-muted);
  line-height: 1.7;
}

.cleaner-tips-disclaimer {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 3px solid #8a6b43;
  background: rgba(243,234,219,.72);
  color: var(--doc-text);
  line-height: 1.65;
}

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

.cleaner-tips-section {
  padding: 18px;
  border: 1px solid rgba(142,113,72,.2);
  border-radius: 8px;
  background: rgba(255,250,240,.58);
}

.cleaner-tips-section.wide {
  grid-column: 1 / -1;
}

.cleaner-tips-section ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.cleaner-tips-section li {
  line-height: 1.55;
}

.cleaner-tips-scripts {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.cleaner-tips-scripts p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fffdf8;
  border: 1px solid rgba(142,113,72,.18);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .cleaner-tips-modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .cleaner-tips-modal-panel {
    max-height: 90vh;
  }

  .cleaner-tips-grid {
    grid-template-columns: 1fr;
  }
}

footer.public-footer,
body > footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  text-align: left;
  padding: 42px clamp(20px, 7vw, 76px);
  background: #f3eadb;
}

footer.public-footer nav,
body > footer nav {
  display: grid;
  gap: 7px;
}

footer.public-footer a,
footer.public-footer span,
body > footer a,
body > footer span {
  color: #625c51;
  font-size: .88rem;
}

footer.public-footer small,
body > footer small {
  grid-column: 1 / -1;
  color: #756a5a;
  text-align: center;
}

footer.public-footer img,
body > footer img {
  width: 82px;
  opacity: .72;
}

footer.public-footer > div:first-child,
body > footer > div:first-child {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a,
.footer-social button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--doc-line);
  border-radius: 50%;
  color: var(--doc-muted);
  box-shadow: none;
  cursor: pointer;
}

.footer-social .icon {
  width: 16px;
  height: 16px;
}
.footer-social .footer-phone-popover {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(117, 106, 90, .22);
  border-radius: 999px;
  background: rgba(255, 250, 240, .96);
  color: var(--doc-muted);
  box-shadow: 0 10px 22px rgba(77, 58, 30, .12);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.admin-route > footer,
body.cleaner-portal-route > footer,
body.client-portal-route > footer,
body.qa-route > footer {
  display: none;
}

@media (max-width: 900px) {
  .public-nav nav { display: none; }
  .public-nav-actions { display: none; }
  .public-menu-button { display: inline-flex; }
  .hero-inner,
  .public-subhero-card,
  .public-stripe {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 320px; }
  .tagline { font-size: clamp(2.7rem, 15vw, 4rem); }
  .public-process-grid,
  .public-process-grid.five,
  .public-card-grid,
  .public-card-grid.six,
  .public-card-grid.seven,
  .public-policy ul,
  footer.public-footer,
  body > footer {
    grid-template-columns: 1fr;
  }
  .public-monogram-circle {
    justify-self: center;
  }
  .public-process-grid.connected::before {
    display: none;
  }
  .public-process-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
  .public-icon-row {
    flex-direction: column;
  }
  .public-icon-row > div {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--doc-line);
    padding: 18px 0;
  }
  .public-icon-row > div:first-child {
    border-top: 0;
  }
  .public-split article:first-child,
  .public-split article:last-child {
    border: 0;
    padding: 0;
  }
  .public-client-process {
    margin-bottom: 40px;
  }
}

/* Admin: collapse the sidebar behind the hamburger menu on phone-width screens. */
@media (max-width: 720px) {
  body.admin-route .admin-menu-button {
    display: inline-flex;
  }

  body.admin-route .ops-sidebar {
    position: fixed !important;
    top: 0;
    left: -300px;
    height: 100vh;
    width: min(280px, 82vw);
    transition: left .2s ease;
    z-index: 40;
    overflow-y: auto;
  }

  body.admin-route .ops-shell.nav-open .ops-sidebar {
    left: 0 !important;
  }

  body.admin-route .admin-nav-overlay {
    display: none;
  }

  body.admin-route .ops-shell.nav-open .admin-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 35;
  }
}
@media (max-width: 880px) {
  .cleaner-start-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .public-split article:last-child {
    justify-self: stretch;
    width: 100%;
    text-align: left;
  }

  .public-split article:last-child .section-actions {
    justify-content: flex-start;
  }

  .public-split article:last-child .button-link {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .public-nav.menu-open {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-nav.menu-open nav,
  .public-nav.menu-open .public-nav-actions {
    display: grid;
    flex: 0 0 100%;
    width: 100%;
  }

  .public-nav.menu-open nav {
    gap: 14px;
    padding-top: 16px;
  }

  .public-nav.menu-open .public-nav-actions {
    gap: 10px;
    padding-top: 16px;
  }

  .public-nav.menu-open .public-nav-actions .button-link {
    width: 100%;
  }
}
.cleaner-final-cta {
  gap: 8px;
  padding-block: clamp(24px, 4vw, 38px);
}

.cleaner-final-cta h2 {
  line-height: 1.16;
}

.cleaner-final-cta .section-actions {
  margin-top: 8px;
}
.public-home-page.public-split {
  position: relative;
  overflow: hidden;
  gap: clamp(20px, 5vw, 68px);
  padding-block: clamp(38px, 5vw, 64px);
}

.public-home-page.public-split::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(340px, 34vw);
  aspect-ratio: 2.2 / 1;
  background: url('doc-monogram-transparent.png') center / contain no-repeat;
  opacity: .1;
  transform: translate(-50%, -50%);
  filter: saturate(.7) blur(.2px);
  pointer-events: none;
  z-index: 0;
}

.public-home-page.public-split article {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .public-home-page.public-split {
    padding-block: clamp(34px, 8vw, 54px);
  }

  .public-home-page.public-split::before {
    width: min(300px, 62vw);
  }
}
.public-client-process .step-arrow {
  align-self: center;
  display: grid;
  place-items: center;
}
.legal-page {
  background: var(--doc-ivory);
  color: var(--doc-text);
}

.legal-main {
  padding: clamp(42px, 7vw, 82px) clamp(20px, 7vw, 86px);
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--doc-line);
  border-radius: 8px;
  background: rgba(255, 252, 245, .82);
  box-shadow: 0 24px 60px rgba(77, 58, 30, .08);
}

.legal-document h1,
.legal-document h2 {
  color: var(--doc-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.legal-document h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.legal-document h2 {
  margin: 30px 0 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

.legal-document p,
.legal-document li {
  color: var(--doc-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-document ul {
  padding-left: 1.2rem;
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--doc-muted);
  font-size: .9rem;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--doc-button);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ===== Training Walkthrough overlay (scoped under #trainingOverlay to avoid any collision with app-wide styles/variables) ===== */
#trainingOverlay {
  --td-navy:#0b1d3a;
  --td-blue:#2563eb;
  --td-blue-soft:#eaf1ff;
  --td-ink:#111827;
  --td-muted:#6b7280;
  --td-line:#e5e7eb;
  --td-green:#16a34a;
  --td-orange:#f97316;
  --td-red:#e2462e;
  --td-purple:#7c3aed;
  --td-bg:#ffffff;
  position: fixed;
  inset: 0;
  z-index: 500;
  font-family: Calibri, Arial, sans-serif;
  background:#1a2540;
}
#trainingOverlay * { box-sizing: border-box; }
#trainingOverlay .td-deck { position:relative; width:100%; height:100%; }
#trainingOverlay .td-slide {
  position:absolute; inset:0; display:none; flex-direction:column;
  padding:56px 72px 90px; background:var(--td-bg); color:var(--td-ink);
  overflow-y:auto;
}
#trainingOverlay .td-slide.active { display:flex; }
#trainingOverlay .td-slide.dark { background:var(--td-navy); color:#fff; }
#trainingOverlay .td-eyebrow { font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--td-blue); margin:0; }
#trainingOverlay .td-slide.dark .td-eyebrow { color:#9db4e8; }
#trainingOverlay .td-slide h1 { font-size:42px; margin:8px 0 6px; font-weight:800; line-height:1.1; }
#trainingOverlay .td-slide h2 { font-size:29px; margin:0 0 14px; font-weight:800; color:var(--td-navy); }
#trainingOverlay .td-slide.dark h2 { color:#fff; }
#trainingOverlay .td-body-row { display:flex; gap:40px; flex:1; min-height:0; margin-top:4px; }
#trainingOverlay .td-col { flex:1; min-width:0; }
#trainingOverlay ul.td-points { list-style:none; margin:0; padding:0; }
#trainingOverlay ul.td-points li {
  font-size:15.5px; line-height:1.42; padding:7px 0 7px 30px; position:relative; color:var(--td-ink);
}
#trainingOverlay .td-slide.dark ul.td-points li { color:#e7ecf7; }
#trainingOverlay ul.td-points li::before {
  content:""; position:absolute; left:0; top:15px; width:9px; height:9px; border-radius:50%; background:var(--td-blue);
}
#trainingOverlay ul.td-points.tight li { padding:4px 0 4px 26px; font-size:14px; }
#trainingOverlay ol.td-steps { list-style:none; margin:0; padding:0; counter-reset:step; }
#trainingOverlay ol.td-steps li {
  counter-increment:step; font-size:14.5px; line-height:1.38; padding:7px 0 7px 38px; position:relative; color:var(--td-ink);
}
#trainingOverlay ol.td-steps li::before {
  content:counter(step); position:absolute; left:0; top:5px; width:24px; height:24px; border-radius:50%;
  background:var(--td-blue); color:#fff; font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center;
}
#trainingOverlay .td-mock { border-radius:12px; overflow:hidden; box-shadow:0 20px 50px rgba(11,29,58,.25); border:1px solid var(--td-line); background:#f5f7fb; }
#trainingOverlay .td-mock-nav { background:var(--td-navy); color:#fff; padding:9px 12px; display:flex; align-items:center; gap:10px; font-size:11px; }
#trainingOverlay .td-mock-brand { width:20px; height:20px; border-radius:5px; background:var(--td-blue); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:9px; }
#trainingOverlay .td-mock-tabs { display:flex; gap:6px; flex-wrap:wrap; }
#trainingOverlay .td-mock-tab { padding:4px 8px; border-radius:6px; font-size:10.5px; font-weight:700; color:#c7d2e8; }
#trainingOverlay .td-mock-tab.active { background:var(--td-blue); color:#fff; }
#trainingOverlay .td-mock-body { padding:14px; }
#trainingOverlay .td-mock-cards { display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
#trainingOverlay .td-mock-card { flex:1; min-width:90px; background:#fff; border:1px solid var(--td-line); border-radius:8px; padding:9px; }
#trainingOverlay .td-mock-card .n { font-size:18px; font-weight:800; color:var(--td-navy); }
#trainingOverlay .td-mock-card .l { font-size:8.5px; color:var(--td-muted); margin-top:2px; }
#trainingOverlay .td-mock-card.red .n { color:var(--td-red); }
#trainingOverlay .td-mock-card.green .n { color:var(--td-green); }
#trainingOverlay .td-mock-card.orange .n { color:var(--td-orange); }
#trainingOverlay .td-mock-card.purple .n { color:var(--td-purple); }
#trainingOverlay .td-mock-list { background:#fff; border:1px solid var(--td-line); border-radius:8px; padding:9px; }
#trainingOverlay .td-mock-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; border-bottom:1px solid var(--td-line); font-size:10.5px; gap:8px; }
#trainingOverlay .td-mock-row:last-child { border-bottom:none; }
#trainingOverlay .td-mock-pill { padding:2px 7px; border-radius:999px; font-size:8.5px; font-weight:800; color:#fff; white-space:nowrap; }
#trainingOverlay .td-mock-pill.blue { background:var(--td-blue); }
#trainingOverlay .td-mock-pill.green { background:var(--td-green); }
#trainingOverlay .td-mock-pill.orange { background:var(--td-orange); }
#trainingOverlay .td-mock-pill.red { background:var(--td-red); }
#trainingOverlay .td-mock-pill.gray { background:#9ca3af; }
#trainingOverlay .td-callout { background:var(--td-blue-soft); border-radius:10px; padding:12px 16px; font-size:14px; color:#1e3a8a; margin-top:12px; }
#trainingOverlay .td-warn { background:#fff1e9; border-radius:10px; padding:12px 16px; font-size:14px; color:#9a3412; margin-top:12px; }
#trainingOverlay .td-money-rule { background:#fef2f2; border:1.5px solid #fca5a5; border-radius:10px; padding:14px 18px; font-size:14.5px; color:#7f1d1d; margin-top:12px; }
#trainingOverlay .td-money-rule strong { color:#991b1b; }
#trainingOverlay .td-quote { font-size:18px; font-style:italic; color:#e7ecf7; line-height:1.5; max-width:820px; margin:0; }
#trainingOverlay .td-foot-progress { position:absolute; left:0; right:0; bottom:0; height:4px; background:rgba(0,0,0,.06); z-index:5; }
#trainingOverlay .td-foot-progress > div { height:100%; background:var(--td-blue); width:0%; transition:width .25s ease; }
#trainingOverlay .td-navbtns { position:fixed; right:24px; bottom:20px; display:flex; gap:8px; z-index:10; }
#trainingOverlay .td-navbtns button {
  width:38px; height:38px; border-radius:50%; border:none; background:rgba(255,255,255,.9);
  box-shadow:0 4px 14px rgba(0,0,0,.18); font-size:15px; cursor:pointer; color:var(--td-navy); font-weight:800;
}
#trainingOverlay .td-navbtns button:hover { background:#fff; }
#trainingOverlay .td-close-btn {
  position:fixed; right:24px; top:20px; z-index:12; width:38px; height:38px; border-radius:50%; border:none;
  background:rgba(255,255,255,.9); box-shadow:0 4px 14px rgba(0,0,0,.18); font-size:18px; cursor:pointer; color:var(--td-navy); font-weight:800;
}
#trainingOverlay .td-close-btn:hover { background:#fff; }
#trainingOverlay .td-counter { position:fixed; left:24px; bottom:22px; font-size:12px; color:#9db4e8; font-family:Calibri,Arial,sans-serif; z-index:10; }
#trainingOverlay .td-grid2x2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#trainingOverlay .td-tile { background:#fff; border:1px solid var(--td-line); border-radius:10px; padding:14px; }
#trainingOverlay .td-tile h3 { margin:0 0 5px; font-size:15px; color:var(--td-navy); }
#trainingOverlay .td-tile p { margin:0; font-size:12.5px; color:var(--td-muted); line-height:1.4; }
#trainingOverlay .td-center { align-items:center; text-align:center; justify-content:center; }
#trainingOverlay .td-status-chip { display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:800; color:#fff; background:var(--td-blue); margin:2px 4px 2px 0; }
#trainingOverlay .td-status-chip.gray { background:#9ca3af; }
#trainingOverlay .td-status-chip.green { background:var(--td-green); }
#trainingOverlay .td-status-chip.orange { background:var(--td-orange); }
#trainingOverlay .td-status-chip.red { background:var(--td-red); }
#trainingOverlay .td-issue-table { width:100%; border-collapse:collapse; font-size:12.5px; }
#trainingOverlay .td-issue-table th { text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--td-muted); padding:6px 10px; border-bottom:2px solid var(--td-line); }
#trainingOverlay .td-issue-table td { padding:7px 10px; border-bottom:1px solid var(--td-line); vertical-align:top; line-height:1.35; }
#trainingOverlay .td-issue-table tr:last-child td { border-bottom:none; }
#trainingOverlay .td-scenario-box { background:#f5f7fb; border:1px solid var(--td-line); border-radius:12px; padding:20px 24px; margin-top:4px; }
#trainingOverlay .td-scenario-box h3 { margin:0 0 8px; font-size:16px; color:var(--td-navy); }
#trainingOverlay .td-scenario-box p { margin:0; font-size:15px; line-height:1.5; color:var(--td-ink); }
#trainingOverlay .td-reveal-btn { margin-top:16px; background:var(--td-navy); color:#fff; border:none; border-radius:8px; padding:10px 18px; font-size:13px; font-weight:700; cursor:pointer; }
#trainingOverlay .td-reveal-btn:hover { background:#132a52; }
#trainingOverlay .td-reveal-answer { display:none; margin-top:14px; background:#ecfdf5; border:1.5px solid #86efac; border-radius:10px; padding:16px 20px; font-size:14.5px; color:#14532d; line-height:1.5; }
#trainingOverlay .td-reveal-answer.shown { display:block; }
#trainingOverlay .td-reveal-answer strong { color:#166534; }
#trainingOverlay .td-notes-toggle {
  position:fixed; left:24px; bottom:56px; z-index:11; background:rgba(255,255,255,.95); border:none; border-radius:8px;
  padding:6px 12px; font-size:11px; font-weight:700; color:var(--td-navy); cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.14);
}
#trainingOverlay .td-notes-panel {
  position:fixed; left:0; right:0; bottom:0; max-height:38vh; overflow-y:auto; background:rgba(11,29,58,.97); color:#e7ecf7;
  padding:18px 60px 18px 24px; font-size:13.5px; line-height:1.55; z-index:20; display:none; box-shadow:0 -8px 30px rgba(0,0,0,.3);
}
#trainingOverlay .td-notes-panel.shown { display:block; }
#trainingOverlay .td-notes-panel strong { color:#fff; }
#trainingOverlay .td-voicebar {
  position:fixed; left:24px; bottom:90px; z-index:10; display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.95); border-radius:10px; padding:6px 12px; box-shadow:0 4px 14px rgba(0,0,0,.14);
  font-family:Calibri,Arial,sans-serif;
}
#trainingOverlay .td-voicebar label { font-size:12px; font-weight:700; color:var(--td-navy); }
#trainingOverlay .td-voicebar select { font-size:12px; border:1px solid var(--td-line); border-radius:6px; padding:4px 6px; max-width:220px; }
#trainingOverlay .td-voice-hint { font-size:10.5px; color:var(--td-muted); max-width:200px; }

/* Admin nav correction: keep navigation as a left sidebar on desktop/tablet. */
@media (min-width: 721px) {
  body.admin-route .ops-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: 1fr;
    height: 100vh;
    overflow: hidden;
  }

  body.admin-route .ops-sidebar {
    position: relative;
    top: auto;
    left: auto;
    z-index: 30;
    width: auto;
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 18px;
    border-right: 1px solid var(--doc-border, rgba(38,56,77,.14));
    border-bottom: 0;
    box-shadow: none;
    transform: none;
    overflow-y: auto;
  }

  body.admin-route .ops-brand {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  body.admin-route .ops-nav {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    align-items: stretch;
    gap: 6px;
    overflow: visible;
  }

  body.admin-route .nav-group-label {
    display: flex;
    width: 100%;
    min-height: 24px;
    margin: 14px 0 2px;
    justify-content: space-between;
  }

  body.admin-route .nav-group-label:first-child {
    margin-top: 0;
  }

  body.admin-route .nav-group-divider {
    display: none;
  }

  body.admin-route .nav-button {
    width: 100%;
    min-height: 40px;
    flex: none;
    justify-content: flex-start;
    white-space: normal;
  }

  body.admin-route .nav-button.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
  }

  body.admin-route .sidebar-actions {
    display: grid;
    margin-top: auto;
  }

  body.admin-route .admin-menu-button,
  body.admin-route .admin-nav-overlay,
  body.admin-route .ops-shell.nav-open .admin-nav-overlay {
    display: none !important;
  }

  body.admin-route .ops-main {
    min-width: 0;
    height: 100vh;
    overflow: hidden;
  }
}

@media (max-width: 720px) {
  body.admin-route .ops-shell {
    display: block;
  }

  body.admin-route .ops-sidebar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  body.admin-route .ops-nav {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    overflow: visible;
  }

  body.admin-route .nav-group-label,
  body.admin-route .nav-button {
    width: 100%;
  }

  body.admin-route .nav-button {
    justify-content: flex-start;
    white-space: normal;
  }

  body.admin-route .sidebar-actions {
    display: grid;
    margin-top: auto;
  }
}
