:root {
  color-scheme: light;
  --ink: #16302d;
  --muted: #60736f;
  --deep: #123f3a;
  --brand: #1b6d62;
  --brand-soft: #dcefe9;
  --lime: #d8ef9f;
  --cream: #f8f5ec;
  --paper: #ffffff;
  --line: #dfe7e3;
  --warning: #fff2d9;
  --danger: #9d3f38;
  --shadow: 0 18px 60px rgba(18, 63, 58, 0.12);
  --small-shadow: 0 8px 24px rgba(18, 63, 58, 0.09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #e7efec;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(216, 239, 159, 0.45), transparent 30rem),
    linear-gradient(150deg, #eff5f2 0%, #ddeae6 100%);
}

html.has-open-dialog {
  overflow: hidden;
  overscroll-behavior: none;
}

body.has-open-dialog {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="date"] {
  min-height: 44px;
}

button {
  color: inherit;
}

:where(button, a, summary, label, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}

:where(button, summary, [role="button"]) {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(27, 109, 98, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--deep);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-banner {
  position: static;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 5px 16px;
  color: #e8f4f0;
  background: var(--deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.app-shell {
  width: min(100%, 760px);
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.app-header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(248, 245, 236, 0.94);
  border-bottom: 1px solid rgba(22, 48, 45, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(18, 63, 58, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
}

.brand .role-indicator {
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.install-button,
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.install-button {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.account-button {
  color: var(--deep);
  background: var(--paper);
  border-color: var(--line);
  max-width: 178px;
  line-height: 1.2;
  text-align: center;
}

#app-main {
  min-height: calc(100vh - 160px);
  padding-bottom: 96px;
}

#app-main:focus {
  outline: none;
}

#app-main.view-enter {
  animation: view-enter 190ms ease-out both;
}

@keyframes view-enter {
  from {
    opacity: 0.35;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding: 42px 20px 28px;
  background:
    linear-gradient(rgba(18, 63, 58, 0.94), rgba(18, 63, 58, 0.94)),
    radial-gradient(circle at 80% 20%, var(--lime), transparent 18rem);
  color: white;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.header-notification-button {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--small-shadow);
  cursor: pointer;
}

.header-notification-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-notification-button.has-unread {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: white;
  background: #b43e35;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.view-eyebrow {
  font-size: 0.86rem;
}

.hero h1,
.page-heading h1,
.profile-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 560px;
  font-size: clamp(2.4rem, 9vw, 4.1rem);
  line-height: 0.98;
}

.hero > p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px 0 24px;
  color: #d8e8e4;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 18px;
}

.hero-actions .primary-button {
  color: var(--deep);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: none;
}

.hero-actions .secondary-button {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.46);
}

.search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  color: var(--ink);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px rgba(4, 31, 28, 0.24);
  outline: 0 solid transparent;
}

.filter-reveal,
.location-picker-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: grid-template-rows 300ms ease, opacity 220ms ease, transform 300ms ease;
}

.filter-reveal.is-open,
.location-picker-reveal.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-reveal-inner,
.location-picker-reveal-inner {
  min-height: 0;
  overflow: hidden;
}

.search-card > * {
  min-width: 0;
}

.search-card.is-highlighted {
  animation: search-highlight 1.8s ease;
}

@keyframes search-highlight {
  0%, 100% { outline: 0 solid rgba(216, 239, 159, 0); transform: scale(1); }
  25%, 70% { outline: 7px solid rgba(216, 239, 159, 0.72); transform: scale(1.012); }
}

#search-form {
  scroll-margin-top: 16px;
}

.advanced-search {
  padding: 2px 0;
  border-top: 1px solid var(--line);
}

.advanced-search summary {
  padding: 11px 2px 7px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.advanced-search-field {
  padding: 8px 2px 2px;
}

.advanced-search-field small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 16px;
}

.form-step-heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.form-step-heading h2,
.form-step-heading p {
  margin: 0;
}

.form-step-heading h2 {
  color: var(--deep);
  font-size: 1.06rem;
}

.form-step-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.surface-card.stack > .form-step-heading {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label,
.field-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field select,
.field input,
.field textarea {
  min-width: 0;
  max-width: 100%;
}

.chip-list {
  display: flex;
  gap: 8px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.chip-list::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  background: #f3f7f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  scroll-snap-align: start;
}

.chip-scroll-indicator {
  position: relative;
  height: 4px;
  margin: 8px 2px 0;
  overflow: hidden;
  background: rgba(22, 48, 45, 0.09);
  border-radius: 999px;
}

.chip-scroll-indicator span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 100%;
  background: rgba(27, 109, 98, 0.48);
  border-radius: inherit;
  transition: width 160ms ease, transform 80ms linear;
  will-change: transform;
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.primary-button,
.secondary-button,
.text-button,
.danger-button,
.danger-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  color: white;
  background: var(--brand);
  border: 1px solid var(--brand);
  box-shadow: 0 10px 24px rgba(27, 109, 98, 0.22);
}

.secondary-button {
  color: var(--deep);
  background: white;
  border: 1px solid var(--line);
}

.text-button {
  min-height: 40px;
  padding: 8px;
  color: var(--brand);
  background: transparent;
  border: 0;
}

.danger-button {
  color: var(--danger);
  background: #fff4f3;
  border: 1px solid #f2d5d2;
}

.danger-outline-button {
  color: #a83b33;
  background: white;
  border: 1px solid #e4aaa5;
  box-shadow: none;
}

.danger-outline-button:hover {
  background: #fff4f3;
  border-color: #d77e76;
}

.wide {
  width: 100%;
}

.section {
  padding: 28px 20px 0;
}

.section-heading,
.results-summary,
.card-row,
.booking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.section-heading p {
  font-size: 0.78rem;
}

.saved-providers-shortcut {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--deep);
  background: var(--paper);
  border: 1px solid #b7d2ca;
  border-radius: var(--radius-lg);
  box-shadow: var(--small-shadow);
  text-align: left;
  cursor: pointer;
}

.saved-providers-shortcut:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.saved-providers-shortcut strong,
.saved-providers-shortcut small {
  display: block;
}

.saved-providers-shortcut small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.saved-shortcut-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 12px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.benefit-card {
  min-height: 126px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--deep);
  background: var(--brand-soft);
  border-radius: 12px;
  font-size: 1rem;
}

.benefit-card strong,
.benefit-card small {
  display: block;
}

.benefit-card strong {
  font-size: 0.82rem;
}

.benefit-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.provider-list,
.stack,
.booking-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.provider-card,
.surface-card,
.booking-card,
.request-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--small-shadow);
}

.provider-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px;
  cursor: pointer;
}

.provider-card > div,
.provider-topline > div:first-child {
  min-width: 0;
}

.provider-card:hover {
  border-color: #b4cec6;
  transform: translateY(-1px);
}

.section-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.avatar {
  width: 64px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--deep);
  background: linear-gradient(145deg, var(--brand-soft), var(--lime));
  border-radius: 18px 18px 18px 6px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
  object-fit: cover;
}

img.avatar {
  display: block;
}

.avatar.large {
  width: 84px;
  height: 94px;
  font-size: 1.75rem;
}

.provider-card h3,
.provider-card p,
.provider-card small {
  margin: 0;
}

.provider-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.provider-card h3 {
  font-size: 1rem;
}

.provider-rating-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.saved-rating-label {
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 900;
}

.rating,
.profile-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d69b00;
  background: #ffecaa;
  border: 1px solid #eac553;
  border-radius: 999px;
  font-weight: 900;
}

.rating {
  padding: 5px 8px;
  font-size: 0.84rem;
}

.rating strong {
  color: var(--deep);
  font-size: 1.08rem;
  line-height: 1;
}

.provider-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.provider-card .preferred-hours {
  display: block;
  margin-top: 9px;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
}

.provider-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.mini-tag {
  color: #355a54;
  background: #edf5f2;
}

.price {
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
}

.page-heading {
  padding: 28px 20px 10px;
}

.page-heading h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
}

.page-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 9px 13px;
  color: var(--deep);
  background: var(--paper);
  border: 1px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(18, 63, 58, 0.09);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.back-button:hover {
  color: white;
  background: var(--brand);
}

.filter-bar {
  position: sticky;
  top: 95px;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  overflow-x: auto;
  background: rgba(248, 245, 236, 0.94);
  backdrop-filter: blur(16px);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 20px 24px;
}

.profile-hero h1 {
  font-size: 2.1rem;
}

.profile-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-rating {
  margin-top: 8px;
  padding: 6px 10px;
}

.profile-rating strong {
  color: var(--deep);
  font-size: 1.18rem;
  line-height: 1;
}

.profile-rating small {
  color: #8c6800;
  font-size: 0.65rem;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  padding: 5px 8px;
  color: #23574e;
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
}

.surface-card {
  padding: 18px;
}

.surface-card h2,
.surface-card h3,
.surface-card p {
  margin-top: 0;
}

.surface-card h2,
.surface-card h3 {
  font-family: Georgia, serif;
}

.surface-card p,
.surface-card li {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

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

.stat {
  padding: 12px;
  text-align: center;
  background: #f4f8f6;
  border-radius: 12px;
}

.stat strong,
.stat small {
  display: block;
}

.stat strong {
  font-size: 1rem;
}

.stat small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
}

.review {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.review-intro {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.review:first-of-type {
  border-top: 0;
}

.review strong,
.review small {
  display: block;
}

.review-stars {
  color: #e0a000;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(117, 78, 0, 0.12);
}

.weekly-profile-status,
.weekly-unavailable-note {
  margin: 12px 0 0;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.weekly-profile-status.is-closed,
.weekly-unavailable-note {
  color: var(--muted);
}

.profile-safety-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-safety-card p {
  margin-bottom: 0;
}

.profile-safety-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.review small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.review .review-meta {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
}

.review.is-own-review {
  margin: 10px 0;
  padding: 16px;
  background: #f1f8f5;
  border: 1px solid #b8d8cf;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(18, 63, 58, 0.07);
}

.own-review-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: white;
  background: var(--brand);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-actions .compact-button {
  min-height: 42px;
  margin-top: 0;
}

.public-profile-id {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.photo-requirement-card {
  padding: 14px;
  color: var(--deep);
  background: var(--brand-soft);
  border: 1px solid #bed8d0;
  border-radius: 14px;
}

.photo-requirement-card strong,
.photo-requirement-card p {
  display: block;
  margin: 0;
}

.photo-requirement-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.account-dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-demo-card .primary-button {
  margin-top: 14px;
}

.sticky-action {
  position: sticky;
  bottom: 76px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 20px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(18, 63, 58, 0.18);
  backdrop-filter: blur(18px);
}

.sticky-action .price {
  padding-left: 6px;
}

.sticky-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.save-provider-button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.save-provider-button.is-saved {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #9fcfc1;
}

.save-provider-button.is-changing {
  animation: save-provider-pop 250ms ease-out;
}

@keyframes save-provider-pop {
  0% { transform: scale(1); }
  48% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.option {
  min-height: 64px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
  cursor: pointer;
}

.option[aria-pressed="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.option:disabled {
  color: #7e8986;
  background: #edf1ef;
  border-color: #d7ddda;
  cursor: not-allowed;
  opacity: 0.78;
}

.option:disabled small {
  color: #7e8986;
}

.option strong,
.option small {
  display: block;
}

.option strong {
  font-size: 0.82rem;
}

.option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.67rem;
}

.service-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.service-check:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.service-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.service-area-editor {
  display: grid;
  gap: 9px;
}

.service-area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-area-choice {
  position: relative;
  cursor: pointer;
}

.service-area-choice input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.service-area-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-area-choice input:checked + span {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: var(--brand);
}

.service-area-choice input:focus-visible + span {
  outline: 3px solid rgba(24, 108, 95, 0.2);
  outline-offset: 2px;
}

.provider-coverage {
  display: block;
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.field-help,
.form-error {
  margin: 9px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.field-help {
  color: var(--muted);
}

.form-error {
  color: var(--danger);
  font-weight: 800;
}

.extended-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #654c12;
  background: var(--warning);
  border: 1px solid #ecd8a9;
  border-radius: 13px;
  font-size: 0.74rem;
  line-height: 1.45;
}

.extended-note strong {
  font-size: 0.78rem;
}

.recurring-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: #eef5f2;
  border: 1px solid #cfdfda;
  border-radius: 14px;
}

.recurring-agreement-note {
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.recurring-agreement-note strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.weekly-estimate {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  color: var(--deep);
  background: var(--brand-soft);
  border-radius: 13px;
  font-size: 0.78rem;
}

.recurring-disclosure {
  border-color: #bfd8d1;
}

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

.mode-card h3 {
  margin: 8px 0 4px;
}

.mode-card p {
  margin: 0;
}

.mode-badge {
  display: inline-flex;
  padding: 5px 8px;
  color: white;
  background: var(--brand);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-badge.secondary {
  color: var(--deep);
  background: var(--brand-soft);
}

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

.settings-page,
.settings-groups {
  display: grid;
  gap: 26px;
}

.settings-group {
  display: grid;
  gap: 10px;
}

.settings-group-heading h2,
.settings-group-heading p {
  margin: 0;
}

.settings-group-heading h2 {
  color: var(--deep);
  font-size: 1.05rem;
}

.settings-group-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.settings-group .settings-list {
  gap: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.settings-group .settings-link {
  min-height: 68px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.settings-group .settings-link:last-child {
  border-bottom: 0;
}

.settings-group .settings-link:hover {
  background: rgba(223, 242, 234, 0.45);
  box-shadow: none;
}

.settings-chevron {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 900;
  transition: transform 160ms ease;
}

.settings-link:hover .settings-chevron {
  transform: translateX(2px);
}

.prototype-tools {
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--line);
  border-radius: 15px;
  font-size: 0.76rem;
}

.prototype-tools summary {
  min-height: 28px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.prototype-tools p {
  margin: 8px 0 12px;
  line-height: 1.45;
}

.prototype-tools .settings-link {
  background: var(--paper);
}

.legal-settings-links {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.legal-settings-links .settings-link {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.legal-settings-links .settings-link:last-child {
  border-bottom: 0;
}

.settings-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
}

.settings-link:hover {
  border-color: var(--brand);
  box-shadow: var(--small-shadow);
}

.settings-link span:first-child,
.settings-link strong,
.settings-link small {
  display: block;
}

.settings-link small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.preference-list {
  display: grid;
  gap: 4px;
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.preference-row strong,
.preference-row small {
  display: block;
}

.preference-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.preference-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.price-summary {
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #f3f7f5;
  border-radius: 14px;
}

.price-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

.price-summary .total {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.notice {
  margin: 16px 20px;
  padding: 14px;
  color: #644c15;
  background: var(--warning);
  border: 1px solid #ecd8a9;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.success-panel {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 34px 24px;
  text-align: center;
}

.success-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 30px 30px 30px 8px;
  font-size: 2.2rem;
  box-shadow: 0 18px 40px rgba(27, 109, 98, 0.28);
}

.success-panel h1 {
  margin: 24px 0 10px;
  font-family: Georgia, serif;
  font-size: 2.25rem;
}

.success-panel p {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.agreement-summary {
  display: grid;
  gap: 5px;
  max-width: 460px;
  margin: 0 auto 22px;
  padding: 14px;
  color: var(--deep);
  background: var(--brand-soft);
  border-radius: 14px;
  text-align: left;
}

.agreement-summary span,
.agreement-detail {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.agreement-detail {
  margin: 12px 0;
}

.dashboard-hero {
  padding: 34px 20px 26px;
  color: white;
  background: var(--deep);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.dashboard-hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 2.35rem;
}

.dashboard-hero p {
  margin: 8px 0 20px;
  color: #cfe1dc;
}

.provider-workspace-heading,
.provider-photo-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.provider-workspace-heading .provider-workspace-photo {
  width: 86px;
  height: 96px;
  border: 3px solid rgba(255, 255, 255, 0.7);
}

.provider-workspace-heading h1 {
  font-size: 2.15rem;
}

.provider-workspace-heading p {
  margin-bottom: 0;
}

.provider-workspace {
  display: grid;
  gap: 16px;
}

.client-home-pin-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(145deg, #f4fbf8, #ffffff);
  border-color: #9fcfc1;
}

.client-home-pin {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #acd7ca;
  border-radius: 14px;
}

.client-home-pin small {
  color: var(--muted);
  font-weight: 800;
}

.client-home-pin strong {
  color: var(--deep);
  font-size: 1.75rem;
  letter-spacing: 0.28em;
}

.client-pin-section {
  padding-top: 0;
}

.availability-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--small-shadow);
  text-align: left;
  cursor: pointer;
}

.availability-toggle.is-available {
  border-color: #79b9a8;
  background: #eff9f5;
}

.availability-toggle.is-paused {
  border-color: #d8aaa5;
  background: #fff7f6;
}

.availability-toggle strong,
.availability-toggle small {
  display: block;
}

.availability-copy {
  min-width: 0;
}

.availability-toggle strong {
  font-size: 1rem;
}

.availability-toggle small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.availability-switch {
  width: 58px;
  height: 32px;
  padding: 3px;
  background: #9ba8a5;
  border-radius: 999px;
  transition: 180ms ease;
}

.availability-switch span {
  width: 26px;
  height: 26px;
  display: block;
  background: white;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(18, 63, 58, 0.22);
  transition: 180ms ease;
}

.availability-toggle.is-available .availability-switch {
  background: var(--brand);
}

.availability-toggle.is-available .availability-switch span {
  transform: translateX(26px);
}

.provider-photo-card h2,
.provider-photo-card p {
  margin: 0;
}

.provider-photo-card p {
  margin-top: 6px;
}

.provider-services-heading > div h2,
.provider-services-heading > div p {
  margin: 0;
}

.provider-service-editor {
  margin-top: 14px;
}

.provider-draft-actions {
  position: sticky;
  z-index: 13;
  bottom: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--brand);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(18, 63, 58, 0.2);
}

.compact-empty {
  padding: 22px 16px;
}

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

.dashboard-stat {
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.dashboard-stat strong,
.dashboard-stat small {
  display: block;
}

.dashboard-stat small {
  margin-top: 4px;
  color: #bcd2cc;
  font-size: 0.63rem;
}

.request-card,
.booking-card {
  padding: 16px;
}

.request-card h3,
.request-card p,
.request-card small,
.booking-card h3,
.booking-card p {
  margin: 0;
}

.request-card p,
.booking-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.status-pill {
  color: #59450d;
  background: #fff0bd;
}

.status-pill.accepted {
  color: #215a4f;
  background: var(--brand-soft);
}

.status-pill.ended {
  color: #5f6967;
  background: #e8eceb;
}

.status-pill.completed {
  color: #1f564c;
  background: #d9efe4;
}

.compact-button {
  margin-top: 14px;
}

.history-section {
  padding-top: 28px;
}

.activity-current-panel,
.activity-history-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.activity-current-panel {
  margin-top: 16px;
  background: linear-gradient(145deg, #edf7f3, #f8fbf9);
  border: 1px solid #bcd9d1;
  box-shadow: 0 14px 34px rgba(18, 63, 58, 0.08);
}

.activity-current-panel .booking-card {
  border-color: #9ec8bc;
  box-shadow: 0 10px 24px rgba(18, 63, 58, 0.1);
}

.next-visit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #bcd9d1;
  border-radius: 16px;
}

.next-visit-summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.next-visit-summary small {
  color: var(--brand);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.next-visit-summary strong {
  color: var(--deep);
  font-size: 1rem;
}

.next-visit-summary > span:first-child > span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.activity-history-panel {
  margin: 4px 18px 22px;
  background: #f7f3e9;
  border: 1px solid #e4dac4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.section.activity-history-panel {
  width: auto;
}

.booking-detail-layout {
  display: grid;
  gap: 14px;
}

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

.booking-detail-person h2,
.booking-detail-person p {
  margin: 0;
}

.booking-detail-person .status-pill {
  align-self: start;
}

.booking-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.booking-facts > div {
  min-width: 0;
  padding: 12px;
  background: #f4f8f6;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.booking-facts dt,
.booking-facts dd {
  overflow-wrap: anywhere;
}

.booking-facts dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.booking-facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.booking-household {
  display: grid;
  gap: 4px;
  padding: 13px;
  background: #fbfaf5;
  border: 1px solid #e6dfcf;
  border-radius: 13px;
}

.booking-household span,
.booking-household small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

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

.subtle-danger-button {
  box-shadow: none;
}

.change-proposal-card {
  border-color: #b7d5cc;
  box-shadow: inset 4px 0 var(--brand), var(--small-shadow);
}

.late-notice {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #314f20;
  background: #eef7d6;
  border: 1px solid #ccdf9e;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.late-notice p {
  margin: 0;
}

.late-notice small {
  color: #607047;
}

.booking-timeline {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.booking-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 20px;
}

.booking-timeline li:not(:last-child)::before {
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: #c8ddd6;
  content: "";
}

.booking-timeline li:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--brand);
  border: 4px solid #dcefe9;
  border-radius: 50%;
}

.booking-timeline strong,
.booking-timeline small {
  display: block;
}

.booking-timeline p {
  margin: 4px 0;
}

.booking-timeline small {
  color: var(--muted);
  font-size: 0.68rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  align-items: end;
  gap: 12px;
}

.comparison-row > span:first-child {
  display: grid;
  gap: 5px;
  min-height: 44px;
  align-content: center;
}

.comparison-row small {
  color: var(--muted);
}

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

.agreement-grid > div {
  padding: 12px;
  background: #f5f8f6;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.agreement-grid dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.agreement-grid dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.weekly-current-terms,
.weekly-proposal-card {
  padding: 18px;
}

.weekly-proposal-card {
  border-color: #d7c078;
  background: #fffaf0;
}

.proposal-note {
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
}

.proposal-result {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: var(--deep);
  background: var(--brand-soft);
  border: 1px solid #c4ddd6;
  border-radius: 15px;
}

.proposal-result.declined {
  color: #5f5140;
  background: #f4efe5;
  border-color: #ded1bd;
}

.proposal-result span {
  font-size: 0.76rem;
  line-height: 1.45;
}

.empty-state {
  padding: 34px 18px;
  text-align: center;
  background: white;
  border: 1px dashed #b9c9c4;
  border-radius: var(--radius-lg);
}

.empty-state strong,
.empty-state small {
  display: block;
}

.empty-state small {
  margin-top: 6px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 25;
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 54px;
  padding: 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-item span:first-child {
  font-size: 1.05rem;
}

.nav-item.is-active {
  color: var(--brand);
  background: #eef5f2;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 90px;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  color: white;
  background: #172b28;
  border-radius: 999px;
  box-shadow: var(--small-shadow);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.install-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}

.install-dialog::backdrop {
  background: rgba(10, 35, 32, 0.58);
  backdrop-filter: blur(3px);
}

.install-dialog form {
  display: grid;
  gap: 14px;
  max-height: inherit;
  min-height: 0;
  padding: 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.install-dialog h2,
.install-dialog p {
  margin: 0;
}

.install-dialog ol {
  display: grid;
  gap: 10px;
  margin: 0 0 6px;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.install-dialog-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 900;
}

.install-dialog-app-icon {
  object-fit: cover;
  padding: 0;
  border-radius: 15px;
}

.decision-dialog .danger-button {
  color: white;
  background: var(--danger);
  border-color: var(--danger);
}

.review-dialog {
  width: min(520px, calc(100% - 32px));
}

.decision-dialog {
  width: min(360px, calc(100% - 56px));
}

.notification-tray-dialog {
  width: min(560px, calc(100% - 24px));
}

.notification-tray-dialog form {
  gap: 16px;
}

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

.notification-tray-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
}

.notification-tray-heading p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.dialog-close-button {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--deep);
  background: #f2f6f4;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.notification-tray-list {
  max-height: min(360px, 42vh);
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-delivery-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(27, 109, 98, 0.18);
  border-radius: 14px;
}

.notification-delivery-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.notification-delivery-card button {
  justify-self: start;
  margin-top: 5px;
}

.notification-tray-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.star-rating-fieldset {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding: 0;
  border: 0;
}

.star-rating-fieldset legend {
  margin-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 900;
}

.star-rating-fieldset > small {
  color: var(--muted);
  font-size: 0.72rem;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
  width: fit-content;
}

.star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.star-rating label {
  display: grid;
  width: 44px;
  height: 46px;
  place-items: center;
  color: #987315;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
}

.star-rating label::before {
  content: "☆";
  font-size: 2rem;
  line-height: 1;
}

.star-rating input:checked ~ label::before,
.star-rating label:hover::before,
.star-rating label:hover ~ label::before {
  content: "★";
}

.star-rating input:focus-visible + label {
  outline: 3px solid rgba(27, 109, 98, 0.32);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-label-row > small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.search-location-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.location-picker-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}

.location-picker-trigger:hover,
.location-picker-trigger[aria-expanded="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 109, 98, 0.08);
}

.location-pin {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 11px;
  font-size: 1.1rem;
  font-weight: 900;
}

.location-picker-trigger small,
.location-picker-trigger strong {
  display: block;
}

.location-picker-trigger small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-picker-trigger strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-chevron {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 900;
}

.location-picker-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.location-directory {
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  scrollbar-color: #a5bbb5 transparent;
}

.location-country {
  border-bottom: 1px solid var(--line);
}

.location-country:last-child {
  border-bottom: 0;
}

.location-country.is-selected {
  box-shadow: inset 3px 0 var(--brand);
}

.location-country-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  text-align: left;
  cursor: pointer;
}

.location-country-button:hover,
.location-country-button[aria-expanded="true"] {
  background: var(--brand-soft);
}

.location-country-button strong,
.location-country-button small {
  display: block;
}

.location-country-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.location-city-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 12px 12px;
  background: #f5f8f7;
}

.location-city-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
}

.location-city-button:hover,
.location-city-button.is-selected {
  color: var(--deep);
  background: var(--brand-soft);
  border-color: #8dbbae;
}

.location-city-button small {
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 900;
}

.location-directory-empty {
  display: grid;
  gap: 4px;
  padding: 22px 14px;
  color: var(--muted);
  text-align: center;
}

.location-directory-empty small {
  font-size: 0.7rem;
}

.location-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.location-area-field {
  grid-column: 1 / -1;
}

.location-area-field small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.service-guide-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: min(760px, calc(100vh - 32px));
}

.service-guide-dialog form {
  overflow-y: auto;
}

.service-definition-list {
  display: grid;
  gap: 8px;
}

.service-definition-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.service-definition-list span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.page-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-bottom: 18px;
}

.page-shortcuts.single-shortcut {
  grid-template-columns: 1fr;
}

.shortcut-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  color: var(--deep);
  background: var(--brand-soft);
  border: 1px solid rgba(27, 109, 98, 0.18);
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
}

.shortcut-card strong,
.shortcut-card small {
  overflow-wrap: anywhere;
}

.shortcut-card small {
  color: var(--muted);
  line-height: 1.35;
}

.schedule-shortcut {
  margin-top: 12px;
}

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

.process-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

#app-main.is-immersive-chat {
  padding-bottom: 0;
}

.chat-page {
  min-height: calc(100vh - 104px);
  background: #eef4f1;
}

.chat-person-header {
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: white;
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-back-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: var(--brand-soft);
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
}

.chat-client-avatar {
  display: grid;
  place-items: center;
  color: var(--deep);
  font-weight: 900;
}

.chat-person-copy {
  min-width: 0;
}

.chat-person-copy h1 {
  overflow: hidden;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-person-copy > span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #cfe1dc;
  font-size: 0.7rem;
}

.chat-person-copy i {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
}

.chat-job-summary {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.chat-job-summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 18px;
  cursor: pointer;
  list-style: none;
}

.chat-job-summary summary::-webkit-details-marker {
  display: none;
}

.chat-job-summary summary strong,
.chat-job-summary summary small {
  display: block;
}

.chat-job-summary summary strong {
  font-size: 0.78rem;
}

.chat-job-summary summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
}

.chat-job-summary summary > span:last-child {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 900;
}

.chat-job-summary > div {
  padding: 0 18px 13px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.chat-job-summary p {
  margin: 4px 0;
}

.chat-section {
  display: grid;
  gap: 14px;
  padding: 14px 16px 18px;
}

.chat-boundary,
.urgent-notice {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: #654815;
  background: var(--warning);
  border: 1px solid #ecd29e;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.urgent-notice p {
  margin: 0;
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: max(280px, calc(100vh - 490px));
  padding: 16px;
  background: #eef4f1;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.message-bubble {
  width: fit-content;
  max-width: 84%;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
}

.message-bubble.is-own {
  align-self: flex-end;
  color: white;
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 16px 16px 5px 16px;
}

.message-bubble p {
  margin: 0 0 5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-bubble small {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
}

.message-bubble.is-own small {
  color: rgba(255, 255, 255, 0.76);
}

.system-message {
  align-self: center;
  max-width: 92%;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 0.7rem;
  text-align: center;
}

.system-message small {
  display: block;
  margin-top: 2px;
  font-size: 0.6rem;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  position: sticky;
  bottom: 8px;
  z-index: 2;
  padding: 8px;
  background: rgba(238, 244, 241, 0.94);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.chat-composer textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  resize: vertical;
}

.chat-local-note {
  margin: -8px 4px 0;
  text-align: center;
}

.notification-list,
.support-case-list {
  display: grid;
  gap: 10px;
}

.occurrence-link > span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.household-summary-card small,
.public-profile-id {
  display: block;
}

.choice-fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.first-role-options {
  max-width: 720px;
  margin: 0 auto;
}

.role-choice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(18, 63, 58, 0.06);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.role-choice-card:hover {
  border-color: #8dc7b7;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(18, 63, 58, 0.1);
}

.role-choice-card strong,
.role-choice-card small {
  display: block;
}

.role-choice-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.role-choice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 13px;
  font-weight: 900;
}

.provider-onboarding-progress {
  width: calc(100% - 40px);
  margin: 4px 20px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(20, 104, 82, 0.28) transparent;
  scrollbar-width: thin;
}

.provider-onboarding-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(94px, 1fr));
  min-width: 470px;
  margin: 0;
  padding: 8px 2px 12px;
  list-style: none;
}

.provider-onboarding-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.provider-onboarding-progress li::before {
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  content: "";
}

.provider-onboarding-progress li:first-child::before {
  display: none;
}

.provider-onboarding-progress li > span {
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--muted);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.provider-onboarding-progress li > small {
  max-width: 88px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
}

.provider-onboarding-progress li.is-complete::before {
  background: #9fd8bf;
}

.provider-onboarding-progress li.is-complete > span {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #9fd8bf;
}

.provider-onboarding-progress li.is-active {
  color: var(--deep);
}

.provider-onboarding-progress li.is-active > span {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(20, 104, 82, 0.12);
}

.onboarding-step-page,
.onboarding-phase-links,
.secure-connection-explainer,
.connected-account-summary,
.onboarding-requirement-list {
  display: grid;
}

.onboarding-phase-links,
.onboarding-requirement-list {
  gap: 10px;
}

.onboarding-requirement-list {
  margin: 18px 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.secure-connection-explainer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.secure-connection-explainer > div,
.connected-account-summary {
  padding: 14px;
  background: var(--brand-soft);
  border: 1px solid #c7e3d9;
  border-radius: 14px;
}

.secure-connection-explainer strong,
.secure-connection-explainer small,
.connected-account-summary strong,
.connected-account-summary small {
  display: block;
}

.secure-connection-explainer small,
.connected-account-summary small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.connected-account-summary {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.connected-account-summary > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.onboarding-checklist {
  display: grid;
  gap: 10px;
}

.onboarding-item {
  cursor: default;
}

.onboarding-item:hover {
  transform: none;
}

.check-marker {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 900;
}

.onboarding-item.is-complete .check-marker {
  border-color: #9fd8bf;
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.tiny-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.support-case-link {
  width: 100%;
}

.case-timeline {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding-left: 22px;
}

.case-timeline li {
  padding-left: 4px;
}

.network-banner {
  position: sticky;
  top: 0;
  z-index: 80;
  width: min(100% - 24px, 760px);
  margin: 0 auto;
  padding: 9px 14px;
  color: #684a00;
  background: #fff0b8;
  border: 1px solid #e8cb69;
  border-radius: 0 0 12px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.loading-popup {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #b8d8cf;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(18, 63, 58, 0.2);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.loading-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #cbe5dd;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: loading-spin 700ms linear infinite;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.system-preview-grid,
.public-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.system-preview-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 9px;
  min-height: 180px;
  padding: 15px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
}

.system-preview-card small {
  color: var(--muted);
  line-height: 1.45;
}

.text-link {
  margin-top: auto;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
}

.system-state-preview {
  max-width: 620px;
  margin: 0 auto;
}

.system-state-illustration {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 28px;
  background: linear-gradient(145deg, #f2f9f6, #ffffff);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.system-state-illustration span {
  width: 20px;
  height: 54px;
  background: #abd6ca;
  border-radius: 999px;
}

.system-state-illustration span:nth-child(2) { height: 82px; background: var(--brand); }
.system-state-illustration span:nth-child(3) { height: 34px; background: #d6eae4; }

.public-link-section {
  padding-bottom: 28px;
}

.public-link-grid button {
  min-height: 48px;
  padding: 12px 14px;
  color: var(--deep);
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.public-shell-heading {
  border-bottom: 1px solid #e1ece8;
}

@media (max-width: 520px) {
  .profile-safety-card {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-safety-actions {
    justify-content: flex-start;
  }

  .system-preview-grid {
    grid-template-columns: 1fr;
  }

  .system-preview-card {
    min-height: 150px;
  }
}

.case-timeline strong,
.case-timeline small {
  display: block;
}

.notification-card {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
  width: 100%;
  padding: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
}

.notification-card.is-unread {
  border-color: rgba(27, 109, 98, 0.4);
  box-shadow: inset 3px 0 var(--brand);
}

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background: transparent;
  border-radius: 50%;
}

.notification-card.is-unread .notification-dot {
  background: var(--brand);
}

.notification-card strong,
.notification-card small,
.notification-card time {
  display: block;
}

.notification-card small,
.notification-card time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.schedule-list {
  padding-top: 4px;
  padding-bottom: 4px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.schedule-day {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-day input {
  width: 20px;
  height: 20px;
}

.schedule-day strong,
.schedule-day small {
  display: block;
}

.schedule-day small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.schedule-times {
  display: flex;
  gap: 8px;
}

.schedule-times label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.schedule-times input {
  min-height: 40px;
  padding: 8px;
  color: var(--ink);
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.schedule-times input:disabled {
  opacity: 0.45;
}

@media (max-width: 520px) {
  .app-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand {
    gap: 7px;
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-notification-button {
    width: 40px;
    min-height: 40px;
  }

  .account-button {
    max-width: 124px;
    padding: 8px 9px;
    font-size: 0.69rem;
  }

  .field-row,
  .option-grid,
  .service-check-list,
  .recurring-options {
    grid-template-columns: 1fr;
  }

  .location-fields,
  .process-grid,
  .page-shortcuts {
    grid-template-columns: 1fr;
  }

  .location-area-field {
    grid-column: auto;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .schedule-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .schedule-times input {
    width: 100%;
  }

  .service-guide-dialog {
    width: 100%;
    max-width: none;
    max-height: 84vh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .notification-tray-dialog {
    width: 100%;
    max-width: none;
    max-height: 86vh;
    max-height: 86dvh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .notification-tray-dialog form {
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
  }

  .notification-tray-actions {
    grid-template-columns: 1fr;
  }

  .location-directory {
    max-height: 42vh;
  }

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-card:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }

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

  .provider-photo-card {
    align-items: flex-start;
  }

  .provider-draft-actions {
    grid-template-columns: 1fr;
  }

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

  .sticky-action .price {
    padding: 0 4px;
  }

  .sticky-action-buttons {
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr;
  }

}

@media (min-width: 761px) {
  body {
    padding-bottom: 24px;
  }

  .app-shell {
    min-height: calc(100vh - 52px);
    border-radius: 0 0 26px 26px;
    overflow: clip;
  }
}

.optional-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pin-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pin-fieldset legend {
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 900;
}

.pin-fieldset > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.pin-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 278px);
  margin: 0 auto;
}

.pin-digit {
  width: 100%;
  min-height: 62px;
  padding: 8px;
  color: var(--deep);
  background: white;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-size: 1.55rem;
  font-weight: 900;
  text-align: center;
  caret-color: var(--brand);
}

.pin-digit:focus {
  border-color: var(--brand);
}

.visit-pin {
  display: grid;
  gap: 4px;
  width: min(100%, 240px);
  margin: 18px auto 4px;
  padding: 18px;
  text-align: center;
  background: var(--paper);
  border: 2px dashed var(--brand);
  border-radius: 16px;
}

.visit-pin small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visit-pin strong {
  color: var(--deep);
  font-size: 2rem;
  letter-spacing: 0.22em;
}

.visit-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0;
  list-style: none;
}

.visit-progress li {
  position: relative;
  padding-top: 15px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.visit-progress li::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  content: "";
}

.visit-progress li.is-done {
  color: var(--deep);
}

.visit-progress li.is-done::before {
  background: var(--brand);
}

.scheduled-date-lock {
  background: linear-gradient(145deg, #f8fbf9, #edf7f3);
  border-color: #bcd9d1;
}

.scheduled-date-lock .status-pill {
  margin-bottom: 10px;
}

.recent-completion-card {
  border-color: #bcd9d1;
  box-shadow: inset 4px 0 #4f8f7d;
}

@media (max-width: 520px) {
  .next-visit-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .secure-connection-explainer {
    grid-template-columns: 1fr;
  }

  .booking-detail-person {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .booking-detail-person .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .booking-facts,
  .booking-detail-actions,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row > span[aria-hidden="true"] {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover {
    background: var(--deep);
  }

  .hero-actions .primary-button:hover {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-actions .primary-button:hover {
    color: var(--deep);
    background: var(--lime);
    border-color: var(--lime);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
