#home-service {
  --home-forest: #1b382b;
  --home-yellow: #f7e9bc;
  --home-yellow-deep: #eee0ae;
  --home-ivory: #fffdf6;
}

.customer-home-toolbar {
  z-index: 1;
  display: grid;
  grid-area: toolbar;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
}
.customer-home-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 4px 9px 4px 5px;
  border: 1px solid #f4f4e644;
  border-radius: 14px;
  color: var(--home-ivory);
  background: #10271dd6;
  cursor: pointer;
  text-align: left;
}
.customer-home-toolbar button:hover { background: #234536; }
.customer-home-toolbar button:focus-visible { outline-color: var(--home-yellow); }
.customer-home-address .customer-address-mark { color: var(--home-forest); background: var(--home-yellow); }
.customer-home-address-copy { min-width: 0; }
.customer-home-address-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
}
.customer-home-address-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.customer-home-address-detail {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #e2ebdf;
  font-size: .81rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-home-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 50px;
  padding: 5px 9px;
  border: 1px solid #f4f4e644;
  border-radius: 14px;
  color: var(--home-ivory);
  background: #10271dd6;
  font-size: .83rem;
  font-weight: 750;
  cursor: pointer;
}
.customer-home-wallet-icon {
  position: relative;
  width: 17px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--home-yellow);
}
.customer-home-wallet-icon::before {
  position: absolute;
  top: -4px;
  left: 2px;
  width: 10px;
  border-top: 1.5px solid currentColor;
  content: "";
  transform: rotate(-12deg);
}
.customer-home-wallet-icon::after {
  position: absolute;
  top: 3px;
  right: -1px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.customer-home-active {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  padding: 6px 10px;
  border: 1px solid #e8ddbe;
  border-radius: 13px;
  background: #fbf4df;
}
.customer-home-active-mark {
  width: 10px;
  height: 10px;
  margin-inline: 4px;
  border: 2px solid #fbf4df;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 1px #7d9985;
}
#home-active-status { color: var(--home-forest); font-size: .9rem; font-weight: 750; }
#home-active-detail { margin-top: 2px; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
#home-active-open { font-size: .8rem; text-decoration: none; }
#home-active-open:hover { text-decoration: underline; }

#home-service .customer-service {
  position: relative;
  isolation: isolate;
  grid-template: "toolbar" auto "copy" 1fr / minmax(0, 1fr);
  min-height: clamp(318px, 86vw, 392px);
  border-color: #2e4638;
  border-radius: 24px;
  color: #f8f8ed;
  background: var(--home-forest);
  box-shadow: 0 8px 24px #203b251a;
}
#home-service .customer-service-photo {
  position: absolute;
  inset: 0;
  grid-area: auto;
  min-height: 0;
  background: var(--home-forest);
}
#home-service .customer-service-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #12291c38, transparent 32%, transparent 53%, #0d2319a8 100%);
  content: "";
}
#home-service .customer-service-photo img { object-position: 59% 63%; }
.customer-cleaning-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 59% 63%;
}
.customer-cleaning-video-toggle {
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #eef6ead9;
  border-radius: 999px;
  color: #fbfcf7;
  background: #193628;
  font-size: .79rem;
  font-weight: 720;
  cursor: pointer;
}
.customer-cleaning-video-toggle:hover { background: #13271e; }
.customer-cleaning-video-toggle:focus-visible { outline-color: var(--home-yellow); }
#home-service .customer-service-copy {
  position: relative;
  align-self: end;
  padding: 26px 16px 15px;
  background: linear-gradient(0deg, #0e241be8, #132c20db 70%, transparent);
}
#home-service .customer-service h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1.04;
  text-wrap: balance;
}
#home-service .customer-service h1:focus-visible { outline-color: var(--home-yellow); }
#home-service .customer-service-copy p { margin-top: 7px; color: #dfe9dd; }
.customer-home-hero-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  margin-top: 10px;
}
#home-service .customer-duration {
  margin-top: 0;
  padding: 5px 10px;
  border-radius: 9px;
  color: var(--home-forest);
  background: var(--home-yellow);
  font-weight: 750;
}

#home-service .customer-actions {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 10px;
  margin-top: 12px;
}
#home-service .customer-action {
  min-height: 122px;
  padding: 11px;
  border-radius: 17px;
  background: var(--home-ivory);
  box-shadow: 0 4px 13px #203b2509;
}
#home-service .customer-action-primary {
  color: var(--home-forest);
  border-color: #eadcae;
  background: radial-gradient(ellipse at top right, #fff6d8, transparent 75%), var(--home-yellow);
}
#home-service .customer-action:hover { border-color: #859a88; }
#home-service .customer-action-primary:hover { border-color: #c9b77d; background: var(--home-yellow-deep); }
#home-service .customer-action-primary small { color: #465844; }
#home-service .customer-action-symbol {
  flex-basis: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--home-forest);
  background: #eaf0e6;
}
#home-service .customer-action-primary .customer-action-symbol { background: #fff6d9; }
#home-service .customer-action-arrow {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe6da;
  border-radius: 50%;
  color: var(--forest);
  font-size: .89rem;
}
#home-service .customer-action-primary .customer-action-arrow { border-color: #dfd0a2; }
#home-service .customer-action-copy strong { font-size: clamp(1.05rem, 4.2vw, 1.25rem); }
#home-service .customer-action small.customer-action-price { color: var(--home-forest); }

.customer-app:has(#home-view:not([hidden]) #home-service:not([hidden])) .customer-tab-bar {
  width: min(100% - 32px, 350px);
  bottom: max(10px, env(safe-area-inset-bottom));
  margin-inline: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf7f2;
  box-shadow: 0 5px 22px #203b2526;
}
.customer-app:has(#home-view:not([hidden]) #home-service:not([hidden])) .customer-tab-bar button { border-radius: 999px; }
.customer-app:has(#home-view:not([hidden]) #home-service:not([hidden])) .customer-tab-bar button[aria-current="page"] {
  color: var(--home-ivory, #fffdf6);
  background: var(--forest-dark);
}

#home-service .customer-featured { margin-top: 22px; }
#home-service .customer-featured h2 { margin: 0; color: var(--home-forest); }
.customer-featured-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 9px; }
.customer-offer-controls { display: none; gap: 5px; }
.customer-featured:has(.customer-offer-card:nth-child(2)) .customer-offer-controls { display: flex; }
.customer-offer-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #d5e0d1;
  border-radius: 50%;
  color: var(--home-forest);
  background: var(--home-ivory);
  cursor: pointer;
}
.customer-offer-controls button:disabled { color: #627163; opacity: .55; cursor: default; }
#home-service .customer-offer-card { border-color: #dce5d8; border-radius: 17px; background: #f1f5eb; }
#home-service .customer-offer-image { background: #ebe7d7; }
#home-service .customer-offer-copy h3 { color: var(--home-forest); }
.customer-offer-action { scroll-margin-block-end: 78px; }

.customer-scratch-cover {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
}
.customer-scratch-pad {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 112px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, #f2d98141 0 3px, transparent 3px 12px),
    linear-gradient(130deg, #dbe9d5, #f6eccb);
}
.customer-scratch-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.customer-scratch-caption {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border: 1px solid #f9f4e2;
  border-radius: 999px;
  color: var(--home-forest);
  background: #fff9e9ec;
  font-size: .84rem;
  font-weight: 750;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.customer-scratch-reveal {
  justify-self: start;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid #c7d5c4;
  border-radius: 9px;
  color: var(--home-forest);
  background: var(--home-ivory);
  font-size: .85rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  scroll-margin-block-end: 78px;
}
.customer-scratch-reveal:hover { background: #e7eee2; }
.customer-scratch-content { width: 100%; }

.customer-guide { margin-top: 24px; }
.customer-guide-heading { margin-bottom: 13px; }
.customer-guide-heading h2,
.customer-guide-intro h2 {
  margin: 0;
  color: var(--forest-dark);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}
.customer-guide-heading p,
.customer-guide-intro p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.customer-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 14px);
}
.customer-guide-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 5px 5px 10px;
  border: 1px solid #dde3d6;
  border-radius: 15px;
  color: var(--forest-dark);
  background: #fffdf6;
  text-align: left;
  cursor: pointer;
}
.customer-guide-card:hover { border-color: #879e88; background: #f1f4e9; }
.customer-guide-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #e7e8db url('/cleaning-guide.webp') no-repeat;
  background-size: 300% 200%;
}
.customer-guide-image--floors { background-position: 0 0; }
.customer-guide-image--dusting { background-position: 50% 0; }
.customer-guide-image--bathroom { background-position: 100% 0; }
.customer-guide-image--surfaces { background-position: 0 100%; }
.customer-guide-image--windows { background-position: 50% 100%; }
.customer-guide-image--sink { background-position: 100% 100%; }
.customer-guide-card-copy { display: grid; gap: 3px; padding-inline: 4px; overflow-wrap: anywhere; }
.customer-guide-card-copy strong { font-size: clamp(.83rem, 3.6vw, 1.08rem); line-height: 1.2; }
.customer-guide-card-copy small { color: var(--muted); font-size: .73rem; line-height: 1.36; }
.customer-guide-arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 25px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-dark);
  background: #fffdf6f2;
  font-size: .9rem;
  line-height: 1;
}
body:has(.customer-guide-dialog[open]) { overflow: hidden; }
.customer-guide-dialog {
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  height: min(86dvh, 700px);
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e0d3;
  border-radius: 25px 25px 0 0;
  color: var(--ink);
  background: #fffdf6;
  box-shadow: 0 18px 80px #14291d3d;
}
.customer-guide-dialog::backdrop { background: #14291d9e; }
.customer-guide-panel {
  --guide-gutter: clamp(14px, 4.3vw, 27px);
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
}
.customer-guide-intro {
  padding: 22px calc(var(--guide-gutter) + 46px) 11px var(--guide-gutter);
}
.customer-guide-close {
  position: absolute;
  top: 13px;
  right: var(--guide-gutter);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #dce4d6;
  border-radius: 50%;
  color: var(--forest-dark);
  background: #f2f4ea;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.customer-guide-close:hover { background: var(--wash); }
.customer-guide-tabs {
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 4px var(--guide-gutter) 9px;
  overflow-x: auto;
  border-bottom: 1px solid #e6e9df;
  scrollbar-width: none;
}
.customer-guide-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #d8e1d2;
  border-radius: 10px;
  color: var(--forest-dark);
  background: #fffdf6;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.customer-guide-tabs button:focus-visible { outline-offset: -3px; }
.customer-guide-tabs button:hover { background: var(--wash); }
.customer-guide-tabs button[aria-pressed="true"] { border-color: var(--forest); color: #fff; background: var(--forest); }
.customer-guide-tabs button[aria-pressed="true"]:focus-visible { outline-color: #d9ebd3; }
.customer-guide-content {
  min-height: 0;
  padding: 17px var(--guide-gutter) 23px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.customer-guide-content:focus-visible { outline-offset: -4px; }
.customer-guide-group + .customer-guide-group { margin-top: 24px; }
.customer-guide-group h3 { margin: 0 0 11px; color: var(--forest-dark); font-size: 1rem; }
.customer-guide-included {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.customer-guide-task {
  min-width: 0;
  padding: 4px 4px 8px;
  border: 1px solid #e1e7df;
  border-radius: 12px;
  color: var(--forest-dark);
  background: #f6f8f2;
  font-size: clamp(.78rem, 2.9vw, .94rem);
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.customer-guide-task .customer-guide-image { margin-bottom: 5px; border-radius: 8px; }
.customer-guide-task:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(70px, 22%) 1fr;
  align-items: center;
  gap: 12px;
  padding: 5px;
}
.customer-guide-task:only-child .customer-guide-image { margin: 0; }
.customer-guide-excluded {
  margin: 0;
  padding: 9px 13px 9px 30px;
  border-radius: 11px;
  color: #55533f;
  background: #f8f2df;
  font-size: .9rem;
  line-height: 1.45;
}
.customer-guide-excluded li + li { margin-top: 4px; }
.customer-guide-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 10px var(--guide-gutter) max(11px, env(safe-area-inset-bottom));
  border-top: 1px solid #e0e6da;
  background: #fffdf6;
}
.customer-guide-footer .customer-button { margin: 0; }

@media (min-width: 690px) {
  .customer-featured:has(.customer-offer-card:nth-child(2)) .customer-offer-controls { display: none; }
  .customer-scratch-card:only-child .customer-scratch-content:has(> .customer-offer-image) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
    grid-template-areas: "copy image";
  }
  .customer-scratch-card:only-child .customer-scratch-pad { min-height: 132px; }
}

@media (min-width: 580px) {
  .customer-guide-dialog {
    inset: 0;
    width: min(640px, calc(100% - 40px));
    height: min(80dvh, 720px);
    margin: auto;
    border-radius: 25px;
  }
  .customer-guide-card { padding: 7px 7px 12px; }
  .customer-guide-card-copy small { font-size: .86rem; }
  .customer-home-toolbar { padding: 16px; }
  #home-service .customer-service-copy { padding: 36px 24px 19px; }
  #home-service .customer-service h1 { font-size: clamp(2.45rem, 5.1vw, 3.8rem); }
  #home-service .customer-actions { gap: 12px; }
  #home-service .customer-action { min-height: 130px; padding: 13px 15px; }
}

@media (min-width: 820px) {
  .customer-guide-card {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: center;
    padding-block: 7px;
  }
  .customer-guide-card-copy { padding-bottom: 23px; }
  .customer-guide-arrow { inset: auto 10px 10px auto; background: #edf1e5; }
}

.customer-wallet-dialog {
  --guide-gutter: clamp(16px, 4.3vw, 24px);
  --home-forest: var(--forest-dark);
  --home-ivory: #fffdf6;
  height: auto;
  max-height: 86dvh;
  overflow: auto;
}
.customer-wallet-dialog .customer-guide-intro {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--home-ivory);
}
.customer-wallet-content {
  padding: 8px var(--guide-gutter) max(20px, env(safe-area-inset-bottom));
}
.customer-wallet-balance {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  color: #f6f8ef;
  background: #224634;
}
.customer-wallet-balance strong { font-size: 1.85rem; line-height: 1.15; }
.customer-wallet-balance p { color: #e1eddf; font-size: .85rem; }
.customer-wallet-rewards { margin-top: 18px; }
.customer-wallet-rewards h3 { margin: 0 0 8px; color: var(--forest-dark); font-size: 1.03rem; }
#wallet-message, #wallet-empty, .customer-wallet-reward-notice {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
#wallet-rewards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.customer-wallet-reward {
  padding: 12px;
  border: 1px solid #e0e7da;
  border-radius: 14px;
  background: #f2f5ed;
}
.customer-wallet-reward h4 { margin: 0; color: var(--forest-dark); font-size: .88rem; overflow-wrap: anywhere; }
.customer-wallet-reward .customer-scratch-cover { margin-top: 8px; padding: 0; }
.customer-wallet-reward .customer-scratch-reveal:disabled { cursor: wait; opacity: .7; }
.customer-wallet-reward .customer-wallet-reward-notice { margin-top: 5px; }
.customer-wallet-earned { display: block; margin-top: 5px; color: var(--forest); font-size: .92rem; }
@media (min-width: 580px) {
  .customer-wallet-dialog { width: min(420px, calc(100% - 40px)); }
}

.customer-instant-offer {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 55px;
  padding: 7px 8px;
  border: 1px solid #ecdfaf;
  border-radius: 12px;
  color: var(--forest-dark);
  background: #faf0d1;
  text-align: left;
  cursor: pointer;
}
.customer-instant-offer:hover { background: #f7e8ba; }
.customer-instant-offer-art {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  color: var(--forest-dark);
  background: #ead790;
}
.customer-instant-offer-art::before { content: "✦"; font-size: 1.25rem; }
.customer-instant-offer-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.customer-instant-offer-copy strong, .customer-instant-offer-copy small {
  display: block;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-instant-offer-copy strong { font-size: .85rem; }
.customer-instant-offer-copy small { margin-top: 2px; color: #5a573f; font-size: .73rem; }
.customer-instant-offer-action {
  padding: 8px 9px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-dark);
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
}
.customer-instant-offer-dialog {
  --guide-gutter: 18px;
  height: auto;
  max-height: 80dvh;
  overflow: auto;
}
.customer-instant-offer-dialog .customer-guide-intro {
  position: sticky;
  z-index: 1;
  top: 0;
  overflow-wrap: anywhere;
  background: #fffdf6;
}
.customer-instant-offer-detail {
  display: grid;
  gap: 12px;
  padding: 4px var(--guide-gutter) max(22px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.customer-instant-offer-detail p { margin: 0; white-space: pre-line; }
.customer-instant-offer-detail img { width: 100%; max-height: 36dvh; object-fit: contain; border-radius: 12px; }
@media (min-width: 580px) {
  .customer-instant-offer-dialog { width: min(440px, calc(100% - 40px)); }
}
