@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./dalehop-roman.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('./dalehop-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #002855;
  --blue: #1a5094;
  --tint: #eaf0fa;
  --ink: #172748;
  --muted: #53627a;
  --line: #dce5f0;
  --bg: #f4f7fb;
  --surface: #fff;
  --field: var(--surface);
  --field-border: #ccd9ea;
  --line-strong: #829fc5;
  --selected-border: #7598cc;
  --highlight-border: #b8cceb;
  --control-border: var(--line);
  --header: #002855;
  --header-text: #fff;
  --header-muted: #e4edf9;
  --header-control: #ffffff10;
  --header-border: #ffffff42;
  --header-active: #ffffff29;
  --accent-bg: #002855;
  --accent-hover: #1a5094;
  --accent-text: #fff;
  --focus: #487cc0;
  --shadow: #112c5910;
  --notice-shadow: #132b5840;
  --red: #a2293c;
  --green: #176350;
  --unread-bg: #a2293c;
  --unread-text: #fff;
  --error-text: #8f2032;
  --error-bg: #fdf0f2;
  --error-border: #f2cad1;
  --success-bg: #e7f4ef;
  --closed-bg: #eef0f4;
  --urgent-text: #4c3016;
  --urgent-bg: #fff2da;
  --urgent-border: #e2ba77;
  --urgent-marker: #ac6419;
  --rating-muted: #74634a;
  --rating-text: #875208;
  --rating-selected-text: #7a490a;
  --rating-bg: #fff3d7;
  --rating-border: #caa56a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1727;
  --surface: #15243a;
  --field: #101e31;
  --navy: #e0edff;
  --blue: #a9ceff;
  --tint: #213854;
  --ink: #ebf3fd;
  --muted: #b4c5dc;
  --line: #374e69;
  --field-border: #66809f;
  --line-strong: #97b4da;
  --selected-border: #8aa9d2;
  --highlight-border: #6080a7;
  --control-border: #6080a7;
  --header: #08182e;
  --header-text: #f1f7ff;
  --header-muted: #bfcee3;
  --header-control: #182b45;
  --header-border: #6781a3;
  --header-active: #2c4668;
  --accent-bg: #a9ceff;
  --accent-hover: #c8e0ff;
  --accent-text: #0b1d38;
  --focus: #abceff;
  --shadow: #0004;
  --notice-shadow: #0008;
  --red: #ffb5c0;
  --green: #91e2c5;
  --unread-bg: #ffb5c0;
  --unread-text: #41131d;
  --error-text: #ffc3cc;
  --error-bg: #3b1d2a;
  --error-border: #a25869;
  --success-bg: #163a37;
  --closed-bg: #26354a;
  --urgent-text: #ffe2aa;
  --urgent-bg: #3a2c19;
  --urgent-border: #a78246;
  --urgent-marker: #efb864;
  --rating-muted: #d3c1a3;
  --rating-text: #ffd28b;
  --rating-selected-text: #ffe0a9;
  --rating-bg: #48351d;
  --rating-border: #b68d56;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { color: var(--navy); font-family: var(--serif); letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.03rem; }
p + p { margin-top: .75rem; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .56; cursor: wait; }
.skip { position: fixed; z-index: 25; background: var(--surface); padding: 8px 12px; top: 7px; left: 7px; translate: 0 -150%; }
.skip:focus { translate: 0 0; }
.topbar { background: var(--header); color: var(--header-text); padding-top: env(safe-area-inset-top); }
.topbar-inner, .main { width: min(1130px, 100%); margin: 0 auto; }
.topbar-inner { min-height: 76px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--header-text); text-align: left; text-decoration: none; white-space: nowrap;
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500;
}
.brand img { width: 46px; height: 46px; }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.025em; line-height: .92; }
.brand-tagline { font-size: clamp(.86rem, 1.65vw, 1rem); font-style: italic; line-height: 1; }
.top-meta { display: flex; gap: 8px; align-items: center; }
.top-meta span { color: var(--header-muted); font-size: .83rem; }
.top-meta .btn { color: var(--header-text); background: var(--header-control); border-color: var(--header-border); }
.app-navigation-actions { display: flex; align-items: center; gap: 6px; }
.main > .app-navigation-actions { margin-bottom: 12px; }
.app-back.btn { min-height: 44px; }
.nav-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-inner { width: min(1130px, 100%); margin: auto; padding: 6px 24px; display: flex; gap: 7px; overflow-x: auto; }
.nav-btn { background: transparent; border: 0; border-radius: 8px; color: var(--muted); font-weight: 650; padding: 9px 12px; white-space: nowrap; }
.nav-btn[aria-current] { color: var(--navy); background: var(--tint); }
.unread-indicator {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 1.2rem;
  min-height: 1.2rem;
  margin-inline-start: .35rem;
  padding-inline: .25rem;
  border-radius: 99px;
  background: var(--unread-bg);
  color: var(--unread-text);
  font: 750 .75rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
}
.unread-indicator[data-unread-for="messages"] {
  min-width: 1.1rem;
  min-height: 1.1rem;
  background: #c9283d;
  color: #fff;
}
.activity-strip { display: none; }
.main { padding: 25px 24px 48px; }
.main:focus { outline: none; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.heading { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.heading p { margin-top: .4rem; }
.panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 5px 22px var(--shadow); min-width: 0; }
.panel + .panel { margin-top: 12px; }
.profile-setup-invite { margin-bottom: 12px; }
.request-form-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.request-sitter-options { display: grid; gap: 5px; max-height: 15rem; overflow: auto; }
.request-sitter-options .check { min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.request-sitter-options .check input { margin: 0; }
.checkout-panel { margin-bottom: 12px; border-color: var(--highlight-border); }
.checkout-care-total, .checkout-card-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.checkout-care-total { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 650; color: var(--navy); }
.checkout-care-total strong { font-size: 1.2rem; }
.checkout-tip-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-tip-choices .choice { position: relative; justify-content: center; text-align: center; padding-inline: 5px; }
.checkout-tip-choices .choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkout-tip-choices .choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.checkout-tips .checkout-tip-choices { grid-template-columns: repeat(auto-fit, minmax(min(4.4rem, 100%), 1fr)); gap: 6px; }
.checkout-tips .choice {
  min-height: 48px; border-radius: 999px; background: var(--bg); font-size: .875rem; line-height: 1.16; overflow-wrap: anywhere;
}
.checkout-tips .choice:has(input:checked) { background: var(--tint); border-color: var(--selected-border); }
.checkout-tips .choice small { display: block; margin-top: 2px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.checkout-confirmation { margin-top: 14px; display: grid; gap: 8px; }
.checkout-method-row {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 5px 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.checkout-method-icon {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  border-radius: 10px; background: var(--tint); color: var(--navy);
}
.checkout-method-icon svg { width: 20px; height: 20px; }
.checkout-method-summary { display: grid; flex: 1; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.checkout-method-summary > span { color: var(--muted); font-size: .75rem; }
.checkout-method-summary > strong { font-size: .9rem; color: var(--navy); }
.checkout-method-action.btn {
  flex-shrink: 0; border-color: transparent; background: transparent; color: var(--blue);
  padding: 5px; font-size: .8rem; min-height: 44px;
}
.checkout-method-action.btn:hover { background: var(--tint); }
.checkout-card-field { display: grid; gap: 8px; }
.checkout-card-heading > span { font-weight: 700; color: var(--navy); }
.checkout-card-element { background: var(--field); border: 1px solid var(--field-border); border-radius: 9px; padding: 12px 10px; min-height: 44px; }
.checkout-card-element:focus-within { outline: 2px solid var(--focus); }
.checkout-pay, .review-submit { width: 100%; min-height: 48px; }
.review-submit { margin-top: 12px; }
.checkout-pay { font-variant-numeric: tabular-nums; }
.test-checkout-attempt { margin-top: 12px; padding: 12px; border-radius: 9px; background: var(--tint); }
.panel h2 + p { margin-top: 8px; }
.panels { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 15px; align-items: start; }
.stack { display: grid; gap: 12px; }
.stack > .panel + .panel { margin-top: 0; }
.gateway { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 16px; align-items: stretch; }
.gateway-card { padding: clamp(19px, 4vw, 38px); }
.gateway-card h1 { margin: .28rem 0 .55rem; }
.gateway-card > p { margin-bottom: 12px; }
.gateway-photo { align-self: center; border-radius: 15px; overflow: hidden; }
.gateway-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.switch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 13px 0; }
.switch button { border: 1px solid transparent; background: var(--bg); color: var(--navy); border-radius: 9px; padding: 8px 12px; font-weight: 650; }
.switch button[aria-pressed=true] { border-color: var(--selected-border); background: var(--tint); }
.appearance-settings .switch { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border-radius: 9px; border: 1px solid var(--control-border); background: var(--surface); color: var(--navy); padding: 8px 13px; font-weight: 700; text-decoration: none; text-align: center; }
.btn:hover { border-color: var(--line-strong); }
.btn.primary { background: var(--accent-bg); color: var(--accent-text); border-color: var(--accent-bg); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--red); }
.btn.compact { min-height: 36px; font-size: .84rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.field { display: grid; gap: 5px; margin: 0 0 12px; min-width: 0; }
.field > span { color: var(--navy); font-size: .89rem; font-weight: 650; }
.field :is(input, select, textarea) { min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--field-border); background: var(--field); color: var(--ink); border-radius: 9px; padding: 8px 10px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { resize: vertical; }
.field input[type=datetime-local] { appearance: auto; }
.field input[readonly] { background: var(--bg); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
fieldset { color: var(--navy); min-width: 0; }
.choice-set { padding: 0; border: 0; margin: 0 0 12px; }
.choice-set legend { margin-bottom: 5px; padding: 0; font-size: .89rem; font-weight: 650; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-height: 44px; padding: 7px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: .91rem; font-weight: 600; }
.choice:has(input:checked) { color: var(--navy); background: var(--tint); border-color: var(--selected-border); }
.choice input { accent-color: var(--blue); margin: 0; }
.review-stars { display: flex; gap: 5px; max-width: 270px; }
.review-prompt { border-color: var(--highlight-border); }
.review-star { display: grid; position: relative; place-items: center; flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface); color: var(--rating-muted); font-size: 1.25rem; }
.review-star input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.review-star:has(input:checked), .review-star:has(~ .review-star input:checked) { background: var(--rating-bg); border-color: var(--rating-border); color: var(--rating-selected-text); }
.review-star:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.rating-star { color: var(--rating-text); }
.review-comment { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.check { display: flex; gap: 8px; align-items: start; font-size: .9rem; }
.check input { margin-top: .25rem; accent-color: var(--blue); }
.form-top { margin-top: 14px; }
.inline-note { color: var(--navy); background: var(--tint); border-radius: 8px; margin: 9px 0; padding: 8px 10px; font-size: .85rem; }
.error { color: var(--error-text); background: var(--error-bg); border: 1px solid var(--error-border); border-radius: 9px; padding: 8px 10px; margin: 10px 0; font-size: .9rem; }
.notice { background: var(--accent-bg); color: var(--accent-text); border-radius: 9px; max-width: min(420px, calc(100vw - 26px)); position: fixed; right: 15px; bottom: 15px; z-index: 20; padding: 10px 13px; box-shadow: 0 4px 24px var(--notice-shadow); }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 720; letter-spacing: .01em; background: var(--tint); color: var(--blue); padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.badge.success { background: var(--success-bg); color: var(--green); }
.badge.closed { color: var(--muted); background: var(--closed-bg); }
.invite-statuses { display: flex; flex-wrap: wrap; gap: 5px; }
.list { list-style: none; padding: 0; margin: 12px 0 0; }
.list > li { border-top: 1px solid var(--line); padding: 9px 0; }
.list > li:last-child { padding-bottom: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.row strong, .row small { display: block; }
.row small { color: var(--muted); }
.booking-list { display: grid; gap: 8px; margin-top: 12px; }
.booking-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.booking-row { width: 100%; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--control-border); border-radius: 9px; padding: 12px; }
.booking-row strong { color: var(--navy); }
.booking-row:hover { border-color: var(--line-strong); }
.booking-top { margin-bottom: 12px; }
.facts { margin: 12px 0; font-size: .92rem; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 620; overflow-wrap: anywhere; }
.facts .total { color: var(--navy); font-weight: 750; }
.details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 9px; }
.details summary { font-size: .91rem; font-weight: 700; color: var(--blue); }
.details[open] summary { margin-bottom: 9px; }
.terms-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; line-height: 1.65; max-height: 420px; overflow: auto; border: 1px solid var(--line); padding: 14px; margin: 12px 0; border-radius: 9px; background: var(--bg); }
.message-list { list-style: none; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.message-list li { background: var(--bg); padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-list strong { display: block; font-size: .82rem; color: var(--muted); }
.time-display { font-size: 1.45rem; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }
.empty { color: var(--muted); padding-top: 8px; }
.section-art { width: 100%; height: 175px; border-radius: 11px; object-fit: cover; display: block; }
.footer { color: var(--muted); font-size: .79rem; margin-top: 16px; }
@media (max-width: 730px) {
  .activity-strip:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 4px max(14px, env(safe-area-inset-left));
    background: var(--tint);
    border-bottom: 1px solid var(--line);
  }
  .activity-strip .nav-btn { min-height: 44px; padding: 6px 8px; color: var(--navy); }
  .main, .topbar-inner, .nav-inner { padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
  .main { padding-top: 17px; padding-bottom: max(26px, env(safe-area-inset-bottom)); }
  .topbar-inner { min-height: 62px; }
  .gateway { grid-template-columns: 1fr; gap: 10px; }
  .gateway-photo { grid-row: 1; }
  .panel { padding: 14px; }
  .panels { grid-template-columns: 1fr; }
  .top-meta span { display: none; }
}
@media (max-width: 520px) {
  .request-time-fields { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .field-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 3px; }
  .nav-btn { padding-inline: 8px; font-size: .86rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.request-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  border: 1px solid var(--highlight-border);
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 12px 15px;
  color: var(--navy);
  background: var(--tint);
}
.request-alert-urgent {
  border-color: var(--urgent-border);
  border-left: 5px solid var(--urgent-marker);
  color: var(--urgent-text);
  background: var(--urgent-bg);
}
.request-alert strong { display: block; font-size: 1rem; }
.request-alert p { font-size: .88rem; }
.request-alert-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.request-alert-actions .btn { min-height: 44px; }

.managed-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 12px;
}
.managed-member-identity, .managed-member-email { overflow-wrap: anywhere; }
.managed-member-identity p { margin-top: 2px; }
.managed-member-state { display: grid; justify-items: end; gap: 4px; }
.managed-member-actions { grid-column: 1 / -1; margin-top: 0; }
.managed-member-actions .btn { min-height: 44px; }
.managed-member-confirm { border-color: var(--line-strong); }
.managed-member-confirm .field { margin-top: 12px; }
