:root {
  color-scheme: light;
  --paper: #f6f5ee;
  --card: #fdfdf9;
  --ink: #142622;
  --muted: #50635d;
  --line: #d5ded5;
  --primary: #184e40;
  --accent: #d4ecd4;
  --error: #8f2a24;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #409974; outline-offset: 3px; }
.topbar, .footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  max-width: 84rem; margin: auto; padding: 1.4rem clamp(1rem, 5vw, 5rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 740; }
.brand-mark {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 0.7rem; background: var(--primary); color: #fff;
}
.location, .footer { color: var(--muted); font-size: 0.85rem; }
.booking-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
  align-items: center; gap: clamp(1rem, 7vw, 6rem); max-width: 84rem;
  min-height: min(45rem, calc(100vh - 9rem)); margin: auto;
  padding: clamp(1.1rem, 3vw, 3.6rem) clamp(1rem, 5vw, 5rem);
}
.intro {
  position: relative; overflow: hidden; align-self: stretch; display: flex; flex-direction: column;
  justify-content: center; border-radius: 2rem; min-width: 0; min-height: 30rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  background: radial-gradient(ellipse at right 8%, #f9fbee 0, transparent 55%),
              linear-gradient(147deg, #d9e8d4, #f0eee0 78%);
}
.intro h1 {
  font: 500 clamp(3.15rem, 6.7vw, 7.3rem)/0.9 Georgia, serif;
  letter-spacing: -0.075em; margin: 0 0 1.5rem;
}
.intro > p { max-width: 26ch; margin: 0; color: #314b40; font-size: clamp(1rem, 1.6vw, 1.28rem); }
.service-note {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  border-top: 1px solid #acbbae; margin-top: clamp(1rem, 4.2vw, 3rem); padding-top: 0.8rem;
}
.service-note p { font-size: 0.84rem; max-width: 18rem; margin: 0; color: #314b40; }
.card {
  background: var(--card); padding: clamp(1rem, 3.5vw, 2.8rem);
  border: 1px solid #e2e6db; border-radius: 1.65rem; box-shadow: 0 22px 60px #314b4010;
}
h2 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); letter-spacing: -0.045em; line-height: 1.14; margin: 1.3rem 0 1.4rem; }
.progress { display: flex; list-style: none; gap: 0.5rem; padding: 0; margin: 0; }
.progress li { border-radius: 999px; background: #eef0e9; padding: 0.45rem 0.75rem; color: var(--muted); font-size: 0.76rem; font-weight: 690; }
.progress li[aria-current="step"] { background: var(--primary); color: white; }
.progress .previous { background: var(--accent); color: var(--primary); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 0.75rem; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 0.35rem; font-weight: 650; font-size: 0.82rem; }
input, select {
  color: var(--ink); width: 100%; font-family: inherit; font-size: 1rem; min-height: 2.85rem;
  background: var(--card); border: 1px solid #aab9ad; border-radius: 0.55rem; padding: 0.5rem 0.55rem;
}
button, .primary, .secondary { font-family: inherit; font-size: 0.88rem; font-weight: 700; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem;
  border-radius: 0.65rem; border: 1px solid transparent; padding: 0.65rem 0.85rem; cursor: pointer; text-decoration: none;
}
.primary { width: 100%; background: var(--primary); color: white; }
.primary:hover { background: #0f3c30; }
.secondary { background: transparent; border-color: #aab9ad; color: var(--ink); white-space: nowrap; }
.secondary:hover { background: #eef0e9; }
button:disabled { opacity: 0.55; cursor: wait; }
.controls { display: flex; margin-top: 1rem; gap: 0.6rem; }
.micro, .demo-note { color: var(--muted); font-size: 0.81rem; line-height: 1.4; }
.demo-note { border-top: 1px solid var(--line); margin: 1.2rem 0 0; padding-top: 0.8rem; }
.error { background: #fbe9e5; color: var(--error); border-radius: 0.55rem; padding: 0.75rem; font-size: 0.86rem; }
.quote-box {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; background: #e9f2e7;
  border-radius: 0.8rem; padding: 1rem; margin-bottom: 1rem;
}
.quote-box span { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.25rem; }
.price { font-size: clamp(1.1rem, 4vw, 1.85rem); letter-spacing: -0.045em; }
.ops-shell { max-width: 84rem; margin: auto; padding: 1.5rem clamp(1rem, 5vw, 5rem) 4rem; }
.ops-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.ops-heading h1 { letter-spacing: -0.055em; line-height: 1; font-size: clamp(2rem, 5vw, 3.65rem); margin: 0; }
.ops-heading p { margin: 0.6rem 0 0; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.7rem; }
.metric, .job, .empty { border: 1px solid var(--line); background: var(--card); border-radius: 0.9rem; padding: 1rem; }
.ops-control { margin-bottom: 0.8rem; }
.ops-control summary { cursor: pointer; }
#booking-search { max-width: 30rem; }
.metric span { font-size: 0.8rem; color: var(--muted); }
.metric strong { display: block; font-size: 1.8rem; }
#jobs, #service-cases { display: grid; gap: 0.8rem; }
.job-heading, .match, .job-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.job h3 { font-size: 1.1rem; overflow-wrap: anywhere; margin: 0; }
.job p { margin: 0.4rem 0; overflow-wrap: anywhere; }
.job-detail { font-size: 0.92rem; }
.pill { border-radius: 999px; padding: 0.35rem 0.55rem; font-size: 0.75rem; background: #e8eee7; white-space: nowrap; }
.pill.completed { background: #d4ecd4; }
.pill.needs_review { background: #ffe7bc; }
.pill.cancelled { background: #fbe9e5; }
.matches { margin: 0.75rem 0; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.matches h4 { margin: 0; }
.match { padding: 0.55rem 0; }
.job-actions { justify-content: start; flex-wrap: wrap; padding-top: 0.4rem; }
.job form { margin-top: 0.65rem; max-width: 28rem; }
.job form button { margin-top: 0.45rem; }
.history { margin-top: 0.85rem; font-size: 0.83rem; color: var(--muted); }
.history summary { cursor: pointer; }
.history li { overflow-wrap: anywhere; }
.empty p { margin-top: 0; }
.staff-card { max-width: 34rem; }
.staff-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.check { display: flex; align-items: center; gap: 0.45rem; }
.check input { width: auto; min-height: 0; }
.policy-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
#booking-policy, #repeat-policy { margin-top: 1rem; }
#booking-policy .check, #repeat-policy .check { margin-top: 0.75rem; }
#applicants { display: grid; gap: 0.75rem; }
#applicants .check { margin-top: 0.65rem; }
.coverage { margin-top: 1.2rem; }
.coverage summary { cursor: pointer; font-weight: 700; }
#daily-export { align-items: end; padding-bottom: 0.75rem; }
.table-scroll { overflow-x: auto; }
#sms-messages { overflow-wrap: anywhere; }
.coverage table { border-collapse: collapse; }
.coverage th, .coverage td { padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.coverage td { text-align: center; }
#comparison-results table { width: 100%; }
#comparison-results :is(th, td) { padding-inline: 0.35rem; text-align: left; white-space: normal; }
#comparison-results caption { text-align: left; font-weight: 700; }
#comparison-results small, #acquisition-rows small { display: block; color: var(--muted); }
#source-scope input { min-width: 0; }
@media (max-width: 780px) {
  .booking-grid { display: block; }
  .intro { min-height: 0; margin-bottom: 1rem; padding: 1.55rem; }
  .intro br { display: none; }
  .intro h1 { letter-spacing: -0.06em; }
  .service-note { display: none; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  #cleaner-profile .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .fields { gap: 0.65rem; }
  #source-scope .fields { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding-top: 1rem; padding-bottom: 0.4rem; }
  .location { text-align: right; font-size: 0.72rem; }
  .ops-heading { flex-wrap: wrap; }
  .metric { padding: 0.6rem; }
}
