:root {
  color-scheme: light;
  --ink: #16382e;
  --muted: #52655b;
  --green: #185646;
  --deep: #113f34;
  --cream: #f8f7ef;
  --surface: #fffefa;
  --line: #d2daca;
  --moss: #e8eee0;
  --warm: #f2e2ce;
  --danger: #942f28;
  --serif: "Baskervville", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem max(5vw, calc((100vw - 74rem) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.025em;
}
.brand img {
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
}
.brand small {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
nav a,
nav button {
  border: 0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover,
nav button:hover,
nav .active,
nav [aria-current="page"] {
  background: var(--moss);
  color: var(--ink);
}
main {
  width: min(92%, 74rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.75rem) 0 4rem;
}
.hero {
  margin-bottom: 1.65rem;
}
h1,
h2,
h3 {
  line-height: 1.13;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
}
h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  letter-spacing: -0.047em;
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.033em;
}
h3 {
  margin: 0.4rem 0 0.7rem;
  font-size: 1.13rem;
}
p {
  margin: 0.5rem 0 1rem;
}
.eyebrow {
  display: block;
  color: var(--green);
  font: 700 0.71rem/1.35 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1.1rem, 3vw, 2.2rem);
  min-width: 0;
}
.stack {
  display: grid;
  gap: 1.15rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.15rem 0 0.15rem;
}
button,
.button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.66rem 1.05rem;
  text-decoration: none;
  font: 650 0.9rem/1.35 var(--sans);
}
button:hover,
.button:hover,
.primary:hover {
  background: var(--deep);
}
button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--green);
}
.secondary:hover {
  background: var(--moss);
}
:focus-visible {
  outline: 3px solid #377b9a;
  outline-offset: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--moss);
  color: var(--deep);
  font: 650 0.76rem/1.3 var(--sans);
  padding: 0.36rem 0.65rem;
  border-radius: 2rem;
}
label {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  font-weight: 640;
  font-size: 0.9rem;
}
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
input,
textarea,
select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 0.63rem 0.75rem;
  border: 1px solid #aebcad;
  border-radius: 0.5rem;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
  font-size: 1rem;
}
input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}
textarea {
  min-height: 5rem;
  resize: vertical;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  min-width: 0;
}
legend {
  font-weight: 650;
  padding: 0 0.35rem;
}
small,
.muted {
  color: var(--muted);
}
.tablewrap {
  max-width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
td,
th {
  padding: 0.78rem 0.72rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  background: #f2f4ec;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.notice,
.error {
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  background: var(--moss);
  color: var(--deep);
}
.error {
  background: #f8e7df;
  color: var(--danger);
}
.notice:empty,
.error:empty {
  display: none;
}
.auth {
  width: min(100%, 61rem);
  margin: clamp(0.5rem, 4vh, 3.5rem) auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: 0 18px 60px #183d2910;
}
.auth-art {
  min-height: 28rem;
  color: #faf8eb;
  background: var(--deep) url(care.svg) center bottom 8% / min(94%, 390px) auto
    no-repeat;
  padding: clamp(1.6rem, 4vw, 3.2rem);
}
.auth-art .eyebrow,
.auth-art small {
  color: #d4e1ca;
}
.auth-form {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.65rem, 4.5vw, 3.5rem);
}
.auth-form h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.auth-form form {
  display: grid;
  gap: 1rem;
}
.estimate {
  max-width: 48rem;
  margin: auto;
  padding: clamp(1rem, 4vw, 3rem);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.estimate img {
  width: 3.5rem;
}
#printout {
  display: none;
}
@media (max-width: 650px) {
  .grid,
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }
  main {
    width: 92%;
    padding-top: 1.4rem;
  }
  .brandbar {
    gap: 0.7rem;
    padding: 0.8rem 4%;
  }
  nav {
    gap: 0.2rem;
  }
  nav a,
  nav button {
    padding: 0.45rem 0.6rem;
  }
  .auth-art {
    min-height: 8rem;
    padding: 1rem 35% 1rem 1.4rem;
    background-size: 37% auto;
    background-position: right 0.4rem bottom;
  }
  .auth {
    margin: 0 auto;
  }
  td,
  th {
    padding: 0.6rem 0.4rem;
  }
}
@page {
  margin: 0.42in;
}
@media print {
  :root,
  body {
    background: white;
    color: #142e26;
  }
  body:has(#printout) > :not(#printout):not(:has(#printout)),
  body :has(> #printout) > :not(#printout),
  body :has(#printout) > :not(#printout):not(:has(#printout)) {
    display: none !important;
  }
  #printout {
    display: block !important;
  }
  .estimate,
  main:has(#printout),
  #printout {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: white;
  }
  .estimate h1 {
    font-size: 29pt;
  }
  .estimate h2 {
    font-size: 17pt;
  }
  #printout button,
  #printout .actions {
    display: none !important;
  }
  tr,
  .estimate footer {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
}

.password-guide {
  font-size: 0.875rem;
}
.password-guide meter {
  display: block;
  width: 100%;
  height: 1.25rem;
}
.password-guide ul {
  list-style: none;
  padding-left: 0;
}
.password-guide p {
  margin: 0.5rem 0;
}

.caretaker-picker {
  grid-column: 1 / -1;
}
.caretaker-picker summary {
  cursor: pointer;
  padding: 0.8rem;
  border: 1px solid var(--line, #cbd5c5);
  border-radius: 0.5rem;
  background: white;
}
.caretaker-options {
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
}
#caretakerAllocations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.service-plan {
  min-width: 0;
}
#servicePlanLabel {
  display: block;
  font-size: 0.9rem;
  font-weight: 640;
  margin-bottom: 0.35rem;
}
#servicePlanPicker {
  position: relative;
}
#servicePlanPicker summary {
  cursor: pointer;
  padding: 0.63rem 0.75rem;
  border: 1px solid #aebcad;
  border-radius: 0.5rem;
  background: white;
}
#servicePlanPicker summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.service-plan-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 20rem;
  overflow-y: auto;
  background: white;
  border: 1px solid #aebcad;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px #123c2e26;
  padding: 0.4rem;
}
.service-plan-options label {
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  font-weight: 400;
}
.service-plan-options label:hover,
.service-plan-options label:has(:focus-visible),
.service-plan-options label:has(:checked) {
  background: #eef3e9;
}
.service-plan-options input {
  flex-shrink: 0;
}

.service-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.caretaker-assignment {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid #d5dfcf;
  border-radius: 0.5rem;
}

.service-dates {
  display: contents;
}

.overnight-schedule {
  grid-column: 1 / -1;
}

.quote-service-info { break-inside: avoid; margin: 1.4rem 0; }
.quote-service-info h3 { margin: 0 0 .6rem; font-weight: 600; text-align: left; }
.quote-service-info p { line-height: 1.7; margin-top: 0; }

/* Keep quoted monetary values intact on screen and in PDF output. */
.quote-pricing th:not(:first-child), .quote-pricing td:not(:first-child) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}
.quote-pricing { table-layout: auto; }

.visit-row { display: grid; gap: .75rem; margin-bottom: 1rem; padding: .75rem; border: 1px solid #d5dfcf; border-radius: .5rem; }

/* Pricing separators belong to service groups, never individual add-ons. */
.quote-pricing tbody td,
.quote-pricing tbody th { border-bottom: 0; }
.quote-pricing tbody + tbody tr:first-child td { border-top: 1px solid var(--line); }
.quote-pricing tbody td { padding-top: .65rem; padding-bottom: .65rem; line-height: 1.5; }
.quote-pricing .pricing-addon td:first-child { padding-left: 1.65rem; color: var(--muted); }
.quote-pricing tbody td { font-weight: 400; }


.estimate > .quote-service-info + .tablewrap { margin-top: 2.5rem; }

/* Light section separators keep the quote's closing details together. */
.quote-section {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  break-inside: avoid;
}
 .pricing-summary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .8rem;
  max-width: 34rem;
  margin: 0;
  align-items: baseline;
}
/* Summary typography differs only in size/weight, never currency tracking. */
.pricing-summary dt, .pricing-summary dd { display: inline; margin: 0; line-height: 1.5; font-family: var(--sans); letter-spacing: 0; word-spacing: 0; font-kerning: normal; font-stretch: normal; font-feature-settings: normal; }
.pricing-summary dd { margin-inline-start: .25rem; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-summary .summary-total { font-size: 1.15rem; font-weight: 700; }
.pricing-summary .summary-support { padding-left: .85rem; }
.pricing-summary .summary-deposit { font-weight: 600; }
@media (max-width: 480px) {
  .pricing-summary dl { column-gap: .75rem; }
  .pricing-summary .summary-support { padding-left: .5rem; }
}
.quote-next-steps h3 { margin: 0 0 .8rem; }
.quote-next-steps p { margin: 0 0 .85rem; line-height: 1.6; }
.quote-next-steps small { display: block; line-height: 1.6; color: var(--muted); }
@media print {
  .quote-section { margin-top: 1.3rem; padding-top: 1.1rem; }
}

.quote-service-info.with-visit-schedule { break-inside: auto; }
.requested-visit-schedule { margin: .7rem 0 1rem .85rem; }
.requested-visit-schedule table { margin-left: .5rem; width: calc(100% - .5rem); }
.requested-visit-schedule h4 { margin: 0 0 .5rem; font-size: .95rem; }
.requested-visit-schedule h4 span { font-weight: 400; }
.requested-visit-schedule td, .requested-visit-schedule th { padding: .4rem .55rem; line-height: 1.45; }
.requested-visit-schedule .schedule-date-column { width: 26%; }
.requested-visit-schedule .schedule-time-column { width: 39%; }
.requested-visit-schedule .schedule-caretaker-column { width: 35%; }
.requested-visit-schedule .schedule-date { background: transparent; color: inherit; font-size: .9rem; font-weight: 400; text-transform: none; letter-spacing: normal; vertical-align: top; }
.requested-visit-schedule .schedule-day { break-inside: avoid; }
.requested-visit-schedule .schedule-day td { border-bottom: 0; }
.requested-visit-schedule .schedule-day tr:last-child td { border-bottom: 1px solid var(--line); }
.requested-visit-schedule .schedule-day th { border-bottom: 1px solid var(--line); }
.requested-visit-schedule td { overflow-wrap: anywhere; }
.requested-visit-schedule td { font-size: .9rem; }
.requested-visit-schedule tr { break-inside: avoid; }
.requested-visit-schedule thead { display: table-header-group; }

.service-info-lines { display: grid; gap: .4rem; padding-left: .85rem; }
.quote-service-info .service-info-lines p { margin: 0; line-height: 1.5; }

/* Print spacing is independent of the roomier screen layout. Do not shrink text
   or force a one-page height: long quotes must continue onto subsequent pages. */
@media print {
  :root { font-size: 12pt; }
  body { min-height: 0; }
  #printout .estimate { line-height: 1.3; overflow: visible; }
  #printout .brand { margin: 0 0 .45rem; gap: .55rem; }
  #printout .brand img { width: 2.5rem; height: auto; max-height: 2.5rem; object-fit: contain; }
  #printout .estimate h2 { margin: .3rem 0; }
  #printout .estimate > p { margin: .35rem 0 .65rem; }
  #printout .quote-service-info { margin: .7rem 0; }
  #printout .quote-service-info h3 { font-size: 12pt; margin: 0 0 .3rem; }
  #printout .service-info-lines { gap: .15rem; }
  #printout .service-info-lines p { line-height: 1.3; }
  #printout .tablewrap { overflow: visible; }
  #printout .estimate > .quote-service-info + .tablewrap { margin-top: 2.3rem; }
  #printout .quote-pricing { width: 100%; }
  #printout .quote-pricing thead th { padding: .35rem .5rem; }
  #printout .quote-pricing tbody td { padding: .25rem .5rem; line-height: 1.3; }
  #printout .quote-pricing .pricing-addon td:first-child { padding-left: 1.1rem; }
  #printout .quote-section { margin-top: 2rem; padding-top: .7rem; break-inside: avoid; }
  #printout .pricing-summary dl { row-gap: .3rem; }
  #printout .pricing-summary dt, #printout .pricing-summary dd { line-height: 1.3; }
  #printout .quote-next-steps h3 { font-size: 12pt; margin: 0 0 .35rem; }
  #printout .quote-next-steps p { margin: 0 0 .4rem; line-height: 1.3; }
  #printout .quote-next-steps small { line-height: 1.35; font-size: 10pt; }
  #printout .requested-visit-schedule { margin: .55rem 0 .55rem .85rem; }
  #printout .requested-visit-schedule h4 { margin-bottom: .3rem; }
  #printout .requested-visit-schedule td, #printout .requested-visit-schedule th { padding: .25rem .4rem; line-height: 1.3; }
  #printout .with-visit-schedule { break-inside: auto; }
  #printout .requested-visit-schedule h4 { break-after: avoid; }
  #printout [data-print-density="compact"] .quote-service-info { margin: .55rem 0; }
  #printout [data-print-density="compact"] .quote-pricing tbody td { padding-top: .18rem; padding-bottom: .18rem; }
  #printout [data-print-density="compact"] .quote-section { margin-top: 1.6rem; padding-top: .6rem; }
  #printout [data-print-density="compact"] .pricing-summary dl { row-gap: .22rem; }
}

/* Give short quotes natural breathing room without imposing a fixed page height. */
@media print {
  #printout .quote-pricing th:first-child { width: 44%; }
  #printout .quote-pricing th:nth-child(2) { width: 18%; }
  #printout .quote-pricing th:nth-child(3),
  #printout .quote-pricing th:nth-child(4) { width: 19%; }
  #printout .quote-pricing td:nth-child(3),
  #printout .quote-pricing td:nth-child(4),
  #printout .quote-pricing thead th:nth-child(3),
  #printout .quote-pricing thead th:nth-child(4) { text-align: right; }
  #printout [data-print-density="comfortable"] { font-size: 12.5pt; line-height: 1.35; }
  #printout [data-print-density="comfortable"] .brand { margin-bottom: .6rem; }
  #printout [data-print-density="comfortable"] h2 { font-size: 18pt; margin: .4rem 0; }
  #printout [data-print-density="comfortable"] > p { margin: .4rem 0 .8rem; }
  #printout [data-print-density="comfortable"] .quote-service-info { margin: .9rem 0; }
  #printout [data-print-density="comfortable"] .quote-service-info h3 { font-size: 12.5pt; margin-bottom: .4rem; }
  #printout [data-print-density="comfortable"] .service-info-lines { gap: .25rem; }
  #printout [data-print-density="comfortable"] .service-info-lines p { line-height: 1.35; }
  #printout [data-print-density="comfortable"] .quote-pricing tbody td { padding-top: .35rem; padding-bottom: .35rem; line-height: 1.35; }
  #printout [data-print-density="comfortable"] .quote-section { margin-top: 2.3rem; padding-top: .9rem; }
  #printout [data-print-density="comfortable"] .pricing-summary dl { row-gap: .4rem; }
  #printout [data-print-density="comfortable"] .quote-next-steps h3 { font-size: 12.5pt; margin-bottom: .45rem; }
  #printout [data-print-density="comfortable"] .quote-next-steps p { line-height: 1.35; margin-bottom: .5rem; }
  #printout [data-print-density="comfortable"] .quote-next-steps small { font-size: 10.5pt; line-height: 1.4; }
}

.caretaker-visits { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.caretaker-visits h4 { margin: 0 0 1rem; }

.checkin-caretakers { grid-column: 1 / -1; margin-left: .85rem; }
.checkin-caretakers .caretaker-visits { margin-top: .75rem; padding: .8rem; border: 1px solid var(--line); border-radius: .5rem; }
.caretaker-visits > summary { cursor: pointer; font-weight: 600; }
.caretaker-visit-count { font-weight: 400; }
.caretaker-visit-body { margin-top: 1rem; padding-left: .65rem; }
.visit-date { margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; }
.visit-timeframes { margin: .75rem 0 .75rem .65rem; }
.visit-timeframe { display: flex; align-items: end; gap: .75rem; margin-bottom: .75rem; }
.visit-timeframe label { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .checkin-caretakers { margin-left: .4rem; }
  .caretaker-visit-body { padding-left: 0; }
  .visit-timeframe { flex-wrap: wrap; }
  .visit-timeframe label { flex-basis: 100%; }
}

.requested-visit-schedule td { vertical-align: top; }
.requested-timeframe + .requested-timeframe { margin-top: .2rem; }

/* Keep service dates and animal details in full-width, ordered groups. */
#serviceDates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; grid-column: 1 / -1; }
#serviceDates:empty, #sessionTimes:empty, #serviceInputs:empty { display: none; }
#serviceInputs { grid-column: 1 / -1; }
.animal-details { grid-column: 1 / -1; min-width: 0; margin: 0; padding: .75rem 0; border: 0; }
.animal-details legend { padding: 0; font-weight: 600; }
input[type="date"], input[type="datetime-local"] { min-width: 0; cursor: pointer; }
@media (max-width: 600px) { #serviceDates { grid-template-columns: 1fr; } }

.overnight-guidelines { grid-column: 1 / -1; padding: .9rem 1rem; border-radius: .6rem; background: var(--moss); }
.overnight-guidelines > h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.overnight-guidelines > div { padding-left: .75rem; margin-top: .8rem; }
.overnight-guidelines p { margin: 0 0 .75rem; line-height: 1.55; }
.overnight-guidelines p:last-child { margin-bottom: 0; }
@media print { .overnight-guidelines { display: none !important; } }

.overnight-date-ranges { grid-column: 1 / -1; }
.overnight-range-list { display: grid; gap: .75rem; }
.overnight-date-ranges > button { margin-top: .75rem; }
.overnight-date-range { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0; }
.overnight-date-range button { justify-self: start; grid-column: 1 / -1; }
.overnight-requested-schedule th:first-child { width: 65%; }
@media (max-width: 600px) { .overnight-date-range { grid-template-columns: 1fr; } }

.quote-pricing .pricing-supplement { font-size: .9em; font-style: italic; font-weight: inherit; color: inherit; opacity: 1; }

.client-type { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; min-width: 0; }
.client-type legend { padding: 0; margin-bottom: .35rem; font-size: .9rem; font-weight: 640; }
.client-type > div { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.client-type label { display: flex; align-items: center; gap: .45rem; }
.client-type input[type="radio"] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--green); }

.caretaker-assignment > h4 { margin: 0; }
.assigned-night-count { margin: .25rem 0 0; font-size: .9rem; }

.wedding-caretakers { min-width: 0; }
.wedding-caretakers fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wedding-caretakers legend { padding: 0; margin-bottom: .35rem; font-size: .9rem; font-weight: 640; }
.wedding-caretaker-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.wedding-caretakers select { width: 100%; min-width: 0; }

.extended-session-fields { display: grid; gap: 1rem; }
.extended-time-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.extended-session-fields p { margin: 0; }

.extended-timeframes { display: grid; gap: 1rem; margin-top: 1rem; }
.extended-timeframe-actions { display: flex; gap: .65rem; margin-top: .65rem; }
.extended-timeframe-actions button { flex: 1; padding-inline: .65rem; }
.extended-date-actions { margin-top: 1.25rem; }
.extended-empty-timeframe-action { margin-top: .65rem; }
.extended-timeframes:not(:empty) + .extended-empty-timeframe-action { display: none; }

#serviceInputs > .wedding-caretakers:has(fieldset) { grid-column: 1 / -1; }
.wedding-caretaker-selects { gap: 1.25rem; }

.client-fields-grid, .client-contact-details, .client-lookup-status { grid-column: 1 / -1; }
.client-fields-grid[hidden] { display: none; }
.client-lookup-status { margin: 0; color: var(--muted); font-size: .9rem; }
.client-contact-details > summary { cursor: pointer; font-weight: 600; }
.client-contact-details > .grid { margin-top: 1rem; grid-template-columns: minmax(0, 1fr); width: calc((100% - 1.25rem) / 2); }
@media (max-width: 650px) { .client-contact-details > .grid { width: 100%; } }

.quote-row-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: nowrap; }
.quote-row-actions button { white-space: nowrap; }

.quote-list-toolbar { margin-top: 0; }
.quote-list-toolbar [data-action="new"] { margin-left: auto; }

#rows { margin-top: .75rem; }

.travel-distance { border: 0; padding: 0; margin: 0; min-width: 0; }
.travel-distance legend { font-size: .9rem; font-weight: 640; margin-bottom: .5rem; padding: 0; }
.distance-options { display: grid; grid-template-columns: repeat(3, minmax(7.5rem, 1fr)); gap: .5rem; overflow-x: auto; padding-bottom: .15rem; }
.distance-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .7rem .4rem; border: 1px solid var(--line); background: var(--surface); color: var(--green); min-height: 4.1rem; }
.distance-option strong { font-weight: 700; }
.distance-option span { font-size: .78rem; font-weight: 400; white-space: nowrap; }
.distance-option:hover { background: var(--moss); }
.distance-option[aria-pressed="true"], .distance-option[aria-pressed="true"]:hover { background: var(--green); border-color: var(--green); color: white; }

.distance-options-2 { grid-template-columns: repeat(2, minmax(7.5rem, 1fr)); }

.quote-editor-actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: .65rem; overflow-x: auto; padding: .2rem 0; }
.quote-editor-actions > button { flex: 1 0 max-content; white-space: nowrap; background: var(--green); color: white; padding: .7rem 1rem; border-radius: .4rem; }
.quote-editor-actions > button:hover { background: var(--deep); }
