:root { --dh-tab-height: 64px; }

.dh-app { min-height: 100svh; }
.dh-app .dh-main { padding-bottom: calc(var(--dh-tab-height) + env(safe-area-inset-bottom) + 30px); }
.dh-main .heading h1 { font-family: var(--sans); font-size: clamp(1.8rem, 4vw, 2.55rem); letter-spacing: -.05em; }
.dh-masthead .topbar-inner { min-height: 64px; padding-block: 9px; }
.dh-icon { display: block; flex: 0 0 auto; }
.dh-profile-shortcut {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--header-border); border-radius: 50%;
  background: var(--header-control); color: var(--header-text);
}
.dh-profile-shortcut .profile-avatar {
  width: 100%; height: 100%; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  background: transparent; color: inherit; font-size: .95rem;
}
.dh-profile-shortcut:where(:hover, [aria-current]) { background: var(--header-active); }
.dh-public-tour {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  color: var(--header-text); text-decoration: none; font-weight: 650; font-size: .9rem;
}
.dh-gate-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; }

.dh-practice-banner {
  position: sticky; top: env(safe-area-inset-top); z-index: 12;
  background: var(--urgent-bg); color: var(--urgent-text); border-bottom: 1px solid var(--urgent-border);
}
.dh-practice-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2px 16px;
  width: min(1130px, 100%); margin: auto; padding: 6px clamp(14px, 3vw, 24px);
}
.dh-practice-inner p { font-size: .82rem; }
.dh-practice-controls { display: flex; flex-wrap: wrap; gap: 3px; }
.dh-practice-controls :is(a, summary, .dh-practice-reset) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 4px 9px; border: 1px solid transparent; border-radius: 8px;
  color: var(--urgent-text); font-size: .86rem; font-weight: 720; text-decoration: none;
}
.dh-practice-controls :is(a[aria-current], summary[data-active]) { background: var(--surface); border-color: var(--urgent-border); }
.dh-practice-controls .dh-practice-reset { background: transparent; border-color: var(--urgent-border); }
.dh-practice-controls :is(a, button, summary):hover { text-decoration: underline; }
.dh-practice-controls [data-practice-exit] { text-decoration: underline; }
.dh-practice-sitters { position: relative; }
.dh-practice-sitters > summary { cursor: pointer; gap: 7px; list-style: none; }
.dh-practice-sitters > summary::-webkit-details-marker { display: none; }
.dh-practice-sitters > summary::after {
  content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.dh-practice-sitters[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.dh-practice-sitter-options {
  position: absolute; inset: calc(100% + 4px) auto auto 0; z-index: 1;
  width: 9rem; max-height: min(50vh, 20rem); overflow-y: auto; overscroll-behavior: contain;
  list-style: none; margin: 0; padding: 4px;
  border: 1px solid var(--urgent-border); border-radius: 9px; background: var(--surface);
  box-shadow: 0 8px 22px var(--shadow);
}
.dh-practice-sitter-options a { display: flex; justify-content: start; width: 100%; }
.dh-practice-sitter-options a[aria-current] { background: var(--tint); }

.dh-tabbar {
  position: fixed; inset: auto 0 0; z-index: 15;
  padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -9px 28px var(--shadow);
}
.dh-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; margin: auto; }
.dh-practice-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dh-tab {
  position: relative; min-height: var(--dh-tab-height); min-width: 0; padding: 6px 2px;
  display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted);
  font-size: .75rem; font-weight: 700; line-height: 1.2;
}
.dh-tab-icon { display: grid; place-items: center; width: 45px; height: 32px; border-radius: 15px; }
.dh-tab .dh-icon { width: 21px; height: 21px; }
.dh-tab[aria-current] { color: var(--navy); }
.dh-tab[aria-current] .dh-tab-icon, .dh-tab:hover .dh-tab-icon { background: var(--tint); }
.dh-tab .unread-indicator { position: absolute; top: 5px; left: calc(50% + 7px); margin: 0; }
.dh-tab:focus-visible { outline-offset: -3px; border-radius: 10px; }
#app.dh-app ~ #notice { bottom: calc(var(--dh-tab-height) + env(safe-area-inset-bottom) + 12px); }

.dh-home { max-width: 920px; margin: auto; display: grid; gap: 16px; }
.dh-home > .switch { justify-self: start; margin: 0; }
.dh-parent-home { max-width: 660px; }
.dh-home-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.dh-home-artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px 20px 0 0;
}
.dh-home-layout .dh-request-card { margin-top: -10px; }

.dh-request-card, .dh-sitter-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: clamp(16px, 3.4vw, 23px); border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); box-shadow: 0 6px 22px var(--shadow);
}
.dh-request-card h1, .dh-sitter-card h1 { font-family: var(--sans); font-size: clamp(1.7rem, 4vw, 2.25rem); letter-spacing: -.055em; }
.dh-request-card .dh-home-primary { margin-top: 3px; }
.dh-home-primary, .dh-home-secondary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  width: 100%; min-height: 52px; border-radius: 13px; padding: 10px 13px;
  text-align: left; font-size: 1rem; font-weight: 750;
}
.dh-home-secondary { background: var(--tint); color: var(--navy); border-color: transparent; }
.dh-home-primary .dh-icon, .dh-home-secondary .dh-icon { width: 21px; height: 21px; }
.dh-sitters-link {
  display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center;
  min-height: 44px; padding: 7px 3px; background: transparent; border: 0;
  color: var(--ink); font-size: .88rem; text-align: left; font-weight: 650;
}
.dh-sitters-link .dh-icon { width: 16px; height: 16px; color: var(--muted); }
.dh-online-dot, .dh-availability > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dh-online-dot[data-online], .dh-availability.is-available > span { background: var(--green); }

.dh-sitter-home { max-width: 680px; }
.dh-sitter-card { padding: 22px; }
.dh-availability { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 700; }
.dh-sitter-card .dh-home-primary { display: flex; justify-content: center; width: auto; align-self: flex-start; margin-top: 5px; }
.dh-sitter-progress .sitter-experience { margin: 0 0 8px; }
.dh-sitter-progress .dh-text-button { margin-top: 3px; }
.dh-current-care {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 10px 13px; text-align: left;
  color: var(--navy); background: var(--tint); border: 1px solid var(--highlight-border); border-radius: 16px;
}
.dh-care-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--surface); }
.dh-current-care strong, .dh-current-care small { display: block; overflow-wrap: anywhere; }
.dh-current-care small { color: var(--muted); }
.dh-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dh-section-head h2 { font: 750 1.16rem/1.2 var(--sans); letter-spacing: -.025em; }
.dh-text-button { min-height: 44px; padding: 0 4px; border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.dh-home-bookings .empty { padding: 8px 0; border: 0; background: transparent; text-align: left; }

.dh-more { max-width: 600px; margin: auto; }
.dh-menu { overflow: clip; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.dh-menu-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 10px 14px; text-align: left; text-decoration: none;
  border: 0; background: transparent; color: var(--ink); font-weight: 700;
}
.dh-menu-row + .dh-menu-row { border-top: 1px solid var(--line); }
.dh-menu-row:hover { background: var(--tint); }
.dh-menu-row:focus-visible { outline-offset: -3px; }
.dh-menu-row > span { display: flex; align-items: center; gap: 11px; }
.dh-menu-row .dh-icon { width: 20px; height: 20px; color: var(--muted); }

@media (max-width: 700px) {
  .dh-app .dh-main { padding-top: 14px; }
  .dh-masthead .topbar-inner { min-height: 58px; }
  .dh-home { gap: 12px; }
}
.dh-service-home {
  display: grid;
  gap: 16px;
  width: min(100%, 46rem);
  margin-inline: auto;
}
.dh-service-home > .dh-home-artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 15px;
}
.dh-service-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dh-service-tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 100px;
  min-width: 0;
  padding: 12px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 750;
  font-size: .84rem;
  line-height: 1.22;
  text-align: center;
}
.dh-service-icon {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue);
}
.dh-service-home-actions { display: grid; gap: 8px; }
.dh-service-home-actions .dh-text-button { justify-self: center; min-height: 44px; }
.dh-care-home > .dh-request-card { width: min(100%, 46rem); margin-inline: auto; }
