/* Assured Hearts system theme
   All pages inherit this semantic palette. Component CSS should use these tokens
   instead of introducing new neutral shades. */
:root{
  /* Shared interface foundation. Keep component geometry on this small scale so
     iOS, Android, and web can share structure without sharing platform styling. */
  --ah-font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --ah-font-weight-regular:400;
  --ah-font-weight-medium:500;
  --ah-font-weight-semibold:600;
  --ah-font-weight-bold:700;
  --ah-type-large-title-size:34px;
  --ah-type-large-title-line:41px;
  --ah-type-title-1-size:28px;
  --ah-type-title-1-line:34px;
  --ah-type-title-2-size:22px;
  --ah-type-title-2-line:28px;
  --ah-type-title-3-size:20px;
  --ah-type-title-3-line:25px;
  --ah-type-body-size:17px;
  --ah-type-body-line:22px;
  --ah-type-callout-size:16px;
  --ah-type-callout-line:21px;
  --ah-type-subheadline-size:15px;
  --ah-type-subheadline-line:20px;
  --ah-type-footnote-size:13px;
  --ah-type-footnote-line:18px;
  --ah-type-caption-1-size:12px;
  --ah-type-caption-1-line:16px;
  --ah-type-caption-2-size:11px;
  --ah-type-caption-2-line:13px;
  --ah-space-1:4px;
  --ah-space-2:8px;
  --ah-space-3:12px;
  --ah-space-4:16px;
  --ah-space-5:20px;
  --ah-space-6:24px;
  --ah-space-8:32px;
  --ah-radius-control:12px;
  --ah-radius-group:16px;
  --ah-radius-sheet:24px;
  --ah-radius-pill:999px;
  --ah-control-height-compact:36px;
  --ah-control-height-regular:44px;
  --ah-control-height-large:50px;
  --ah-touch-target:44px;
  --ah-switch-width:48px;
  --ah-switch-height:28px;
  --ah-switch-thumb-size:20px;
  --ah-switch-thumb-inset:3px;
  --ah-switch-thumb-travel:20px;
  --ah-presentation-width:520px;
  --ah-presentation-width-compact:400px;
  --ah-feedback-width:420px;
  --ah-activity-indicator-size:20px;
  --ah-progress-track-height:4px;
  --ah-icon-size-small:16px;
  --ah-icon-size-regular:20px;
  --ah-icon-size-large:24px;
  --ah-icon-size-xlarge:32px;
  --ah-icon-stroke-width:1.8;
  /* Assured Hearts motion scale. Apple does not publish universal timing
     constants; these values consolidate the app's existing interaction,
     feedback, and presentation timings into three purposeful roles. */
  --ah-motion-duration-quick:120ms;
  --ah-motion-duration-standard:180ms;
  --ah-motion-duration-presentation:280ms;
  --ah-motion-duration-indeterminate:800ms;
  --ah-motion-ease-standard:cubic-bezier(.2,.8,.2,1);
  --ah-motion-ease-presentation:cubic-bezier(.32,.72,0,1);
  --ah-motion-ease-fade:ease-out;
  --ah-content-gutter:16px;
  --ah-section-gap:24px;
  /* Navigation selection is intentionally neutral on every platform. Product
     teal remains available for calls to action and content, never tab state. */
  --ah-nav-idle-fg:var(--ah-text-muted);
  --ah-nav-selected-fg:var(--ah-text);
  --ah-nav-selected-bg:var(--ah-surface-hover);
  --ah-nav-hover-bg:var(--ah-surface-soft);
  --ah-nav-focus-ring:var(--ah-border-strong);
}

:root,
html[data-theme="light"]{
  color-scheme:light;
  --ah-canvas:#f5f5f5;
  --ah-canvas-subtle:#fafafa;
  --ah-surface:#ffffff;
  --ah-surface-raised:#ffffff;
  --ah-surface-soft:#f4f4f5;
  --ah-surface-muted:var(--ah-surface-soft);
  --ah-surface-hover:#eeeeef;
  --ah-selection-bg:color-mix(in srgb,var(--ah-text) 14%,var(--ah-surface-raised));
  --ah-text:#18181b;
  --ah-text-secondary:#52525b;
  --ah-text-muted:#71717a;
  --ah-text-soft:var(--ah-text-muted);
  --ah-border:#e4e4e7;
  --ah-border-strong:#d4d4d8;
  --ah-border-subtle:color-mix(in srgb,var(--ah-border) 68%,transparent);
  --ah-accent:#0f7480;
  --ah-accent-deep:#06464e;
  --ah-accent-hover:#0b5f69;
  --ah-accent-soft:#e5f3f5;
  --ah-on-accent:#ffffff;
  --ah-overlay:rgba(0,0,0,.48);
  --ah-shadow:0 18px 44px rgba(0,0,0,.10);
  --ah-success:#15803d;
  --ah-success-soft:#dcfce7;
  --ah-warning:#a16207;
  --ah-warning-soft:#fef3c7;
  --ah-on-warning:#ffffff;
  --ah-danger:#b91c1c;
  --ah-danger-soft:#fee2e2;
  --ah-info:#0369a1;
  --ah-info-soft:#e0f2fe;
  --ah-status-pending:#2563eb;
  --ah-status-completed:#15803d;
  --ah-status-cancelled:#b91c1c;
  --ah-system-red:#ff383c;
  --ah-system-orange:#ff8d28;
  --ah-system-yellow:#ffcc00;
  --ah-system-green:#34c759;
  --ah-system-mint:#00c8b3;
  --ah-system-teal:#00c3d0;
  --ah-system-cyan:#00c0e8;
  --ah-system-blue:#0088ff;
  --ah-system-gray-4:#d1d1d6;
  --ah-system-gray-5:#e5e5ea;
  --ah-system-gray-6:#f2f2f7;
  --ah-ios-switch-on:#34c759;
  --ah-ios-switch-off:#d1d1d6;
  --ah-ios-switch-thumb:#ffffff;

  /* Compatibility aliases for existing page styles. */
  --bg:var(--ah-canvas);
  --card:var(--ah-surface);
  --muted:var(--ah-text-muted);
  --accent:var(--ah-accent);
  --accent-gradient:linear-gradient(135deg,#67b3c2 0%,var(--ah-accent) 100%);
  --journey-ink:var(--ah-text);
  --journey-muted:var(--ah-text-muted);
  --journey-bg:var(--ah-canvas);
  --journey-card:var(--ah-surface);
  --journey-border:var(--ah-border);
  --cg-accent:var(--ah-accent);
}

html[data-theme="dark"]{
  color-scheme:dark;
  --ah-canvas:#000000;
  /* Keep all page chrome on one seamless black plane. Depth belongs to
     raised cards and controls, not the status/header/content boundaries. */
  --ah-canvas-subtle:#000000;
  --ah-surface:#000000;
  --ah-surface-raised:#111111;
  --ah-surface-soft:#171717;
  --ah-surface-hover:#202020;
  --ah-text:#f5f5f5;
  --ah-text-secondary:#d4d4d8;
  --ah-text-muted:#a1a1aa;
  --ah-border:#27272a;
  --ah-border-strong:#3f3f46;
  --ah-accent:#67b3c2;
  --ah-accent-deep:#67b3c2;
  --ah-accent-hover:#8bcbd6;
  --ah-accent-soft:rgba(103,179,194,.16);
  --ah-on-accent:#071315;
  --ah-overlay:rgba(0,0,0,.76);
  --ah-shadow:0 22px 54px rgba(0,0,0,.54);
  --ah-success:#4ade80;
  --ah-success-soft:rgba(34,197,94,.14);
  --ah-warning:#fbbf24;
  --ah-warning-soft:rgba(245,158,11,.14);
  --ah-on-warning:#18181b;
  --ah-danger:#f87171;
  --ah-danger-soft:rgba(239,68,68,.14);
  --ah-info:#7dd3fc;
  --ah-info-soft:rgba(14,165,233,.14);
  --ah-system-red:#ff4245;
  --ah-system-orange:#ff9230;
  --ah-system-yellow:#ffd600;
  --ah-system-green:#30d158;
  --ah-system-mint:#00dac3;
  --ah-system-teal:#00d2e0;
  --ah-system-cyan:#3cd3fe;
  --ah-system-blue:#0091ff;
  --ah-system-gray-4:#3a3a3c;
  --ah-system-gray-5:#2c2c2e;
  --ah-system-gray-6:#1c1c1e;
  --ah-ios-switch-on:#30d158;
  --ah-ios-switch-off:#3a3a3c;
  --ah-ios-switch-thumb:#ffffff;

  --bg:var(--ah-canvas);
  --card:var(--ah-surface);
  --muted:var(--ah-text-muted);
  --accent:var(--ah-accent);
  --accent-gradient:linear-gradient(135deg,#8bcbd6 0%,#3a8f9e 100%);
  --journey-ink:var(--ah-text);
  --journey-muted:var(--ah-text-muted);
  --journey-bg:var(--ah-canvas);
  --journey-card:var(--ah-surface);
  --journey-border:var(--ah-border);
  --cg-accent:var(--ah-accent);
}

/* Apple semantic mappings are deliberately iOS-only. Assured Hearts teal
   remains the product tint; system colors communicate state, not branding. */
html[data-platform="ios"][data-theme="light"]{
  --ah-control-height-compact:44px;
  --ah-canvas:var(--ah-system-gray-6);
  --ah-canvas-subtle:var(--ah-system-gray-6);
  --ah-surface:#ffffff;
  --ah-surface-raised:#ffffff;
  --ah-surface-soft:var(--ah-system-gray-6);
  --ah-surface-hover:var(--ah-system-gray-5);
  --ah-text:#000000;
  --ah-text-secondary:#3c3c43;
  --ah-text-muted:#6c6c70;
  --ah-border:var(--ah-system-gray-5);
  --ah-border-strong:var(--ah-system-gray-4);
  --ah-success:var(--ah-system-green);
  --ah-warning:var(--ah-system-orange);
  --ah-danger:var(--ah-system-red);
  --ah-info:var(--ah-system-blue);
  --ah-status-pending:var(--ah-system-blue);
  --ah-status-completed:var(--ah-system-green);
  --ah-status-cancelled:var(--ah-system-red);
}

html[data-platform="ios"][data-theme="dark"]{
  --ah-control-height-compact:44px;
  --ah-canvas:#000000;
  --ah-canvas-subtle:#000000;
  --ah-surface:#000000;
  --ah-surface-raised:var(--ah-system-gray-6);
  --ah-surface-soft:var(--ah-system-gray-6);
  --ah-surface-hover:var(--ah-system-gray-5);
  --ah-text:#ffffff;
  --ah-text-secondary:#ebebf5;
  --ah-text-muted:#aeaeb2;
  --ah-border:var(--ah-system-gray-5);
  --ah-border-strong:var(--ah-system-gray-4);
  --ah-success:var(--ah-system-green);
  --ah-warning:var(--ah-system-orange);
  --ah-danger:var(--ah-system-red);
  --ah-info:var(--ah-system-blue);
  --ah-status-pending:var(--ah-system-blue);
  --ah-status-completed:var(--ah-system-green);
  --ah-status-cancelled:var(--ah-system-red);
}

@media (prefers-contrast:more){
  :root,
  html[data-theme="light"]{
    --ah-ios-switch-on:#008932;
    --ah-ios-switch-off:#bcbcc0;
    --ah-text-muted:#52525b;
    --ah-border:#a1a1aa;
    --ah-border-strong:#71717a;
  }

  html[data-theme="dark"]{
    --ah-ios-switch-on:#4ad968;
    --ah-ios-switch-off:#444446;
    --ah-text-muted:#d4d4d8;
    --ah-border:#71717a;
    --ah-border-strong:#a1a1aa;
  }
}

html,
body{
  background:var(--ah-canvas);
  color:var(--ah-text);
}

body{
  transition:background-color var(--ah-motion-duration-standard) var(--ah-motion-ease-fade),color var(--ah-motion-duration-standard) var(--ah-motion-ease-fade);
}

html[data-platform="ios"] body.native-app{
  font:-apple-system-body;
  font-family:var(--ah-font-sans);
  -webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

html[data-platform="ios"] body.native-app :where(button,input,select,textarea){
  font-family:var(--ah-font-sans);
}

html[data-platform="ios"] body.native-app .ah-back-link{
  width:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  padding-inline:0 !important;
  justify-content:center !important;
}

html[data-platform="ios"] body.native-app .ah-back-link > span{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  margin:-1px !important;
  padding:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
}

html[data-theme] .parent-manage-children{
  min-height:44px;
  margin-left:auto;
  padding:6px 4px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--ah-accent);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

html[data-theme] body :where(h1,h2,h3,h4,h5,h6){
  color:var(--ah-text);
}

html[data-theme] label,
html[data-theme] legend{
  color:var(--ah-text-secondary) !important;
}

html[data-theme] small,
html[data-theme] .lead{
  color:var(--ah-text-muted) !important;
}

*{
  scrollbar-color:var(--ah-border-strong) var(--ah-surface);
}

::selection{
  background:var(--ah-selection-bg);
  color:var(--ah-text);
}

::-moz-selection{
  background:var(--ah-selection-bg);
  color:var(--ah-text);
}

.global-banner{
  --ah-feedback-tone:var(--ah-info);
  position:fixed;
  top:max(16px,env(safe-area-inset-top));
  left:50%;
  transform:translateX(-50%);
  z-index:12000;
  width:min(var(--ah-feedback-width),calc(100vw - 32px));
  min-height:var(--ah-touch-target);
  display:grid;
  grid-template-columns:20px minmax(0,1fr) var(--ah-touch-target);
  align-items:center;
  gap:10px;
  box-sizing:border-box;
  padding:8px 6px 8px 12px;
  border:1px solid var(--ah-border-strong);
  border-radius:var(--ah-radius-control);
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  box-shadow:var(--ah-shadow);
  transition:opacity var(--ah-motion-duration-standard) var(--ah-motion-ease-fade),transform var(--ah-motion-duration-standard) var(--ah-motion-ease-standard);
}

.global-banner.is-leaving{
  opacity:0;
  transform:translate(-50%,-8px);
}

.global-banner__icon{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  color:var(--ah-feedback-tone);
  font-size:16px;
  font-weight:var(--ah-font-weight-bold);
  line-height:1;
}

.global-banner__message{
  min-width:0;
  font-size:var(--ah-type-footnote-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-footnote-line);
  text-align:left;
}

.global-banner__dismiss{
  appearance:none;
  -webkit-appearance:none;
  width:var(--ah-touch-target);
  min-width:var(--ah-touch-target);
  height:var(--ah-touch-target);
  min-height:var(--ah-touch-target);
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ah-text-muted);
  font:inherit;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}

.global-banner--success{
  --ah-feedback-tone:var(--ah-success);
  border-color:color-mix(in srgb,var(--ah-success) 34%,var(--ah-border));
}

.global-banner--error{
  --ah-feedback-tone:var(--ah-danger);
  border-color:color-mix(in srgb,var(--ah-danger) 45%,transparent);
}

.global-banner--info{
  --ah-feedback-tone:var(--ah-info);
  border-color:color-mix(in srgb,var(--ah-info) 45%,transparent);
}

.global-banner--warning{
  --ah-feedback-tone:var(--ah-warning);
  border-color:color-mix(in srgb,var(--ah-warning) 45%,transparent);
}

a{
  color:var(--ah-accent);
}

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

html[data-theme] :where(
  button,
  [role="button"],
  .ah-action,
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
){
  -webkit-user-select:none;
  user-select:none;
}

html[data-theme] :where(
  button,
  a[href],
  summary,
  [role="button"],
  [role="tab"],
  [role="radio"],
  [tabindex]:not([tabindex="-1"]),
  input[type="button"],
  input[type="submit"],
  input[type="reset"]
){
  -webkit-tap-highlight-color:transparent;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea{
  background-color:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  -webkit-text-fill-color:var(--ah-text) !important;
  caret-color:var(--ah-accent);
}

input::placeholder,
textarea::placeholder{
  color:var(--ah-text-muted) !important;
  -webkit-text-fill-color:var(--ah-text-muted) !important;
  opacity:1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--ah-text) !important;
  -webkit-box-shadow:0 0 0 1000px var(--ah-surface-raised) inset !important;
  box-shadow:0 0 0 1000px var(--ah-surface-raised) inset !important;
  caret-color:var(--ah-accent) !important;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--ah-accent) !important;
  outline:3px solid color-mix(in srgb,var(--ah-accent) 30%,transparent);
  outline-offset:2px;
}

/* Native form controls share one readable geometry. This deliberately targets
   established field classes instead of resizing hidden, file, or search inputs. */
html[data-platform="ios"] :where(
  .provider-input,
  .provider-textarea,
  .parent-page-select,
  .provider-page-select,
  .parent-find-select,
  .availability-time-field input,
  .availability-date-field input
){
  min-height:var(--ah-control-height-regular);
  box-sizing:border-box;
  padding:10px var(--ah-space-3);
  border-radius:var(--ah-radius-control);
  font-family:var(--ah-font-sans);
  font-size:var(--ah-type-body-size);
  line-height:var(--ah-type-body-line);
}

/* Navigation and app chrome */
.navbar,
html[data-theme] .provider-dashboard .navbar{
  background:var(--ah-surface);
  border-color:var(--ah-border);
}

.nav-links a,
.nav-center-title,
html[data-theme] .provider-dashboard .nav-links a,
html[data-theme] .provider-dashboard .nav-center-title{
  color:var(--ah-text);
}

html[data-theme="dark"] .provider-dashboard .logo span{
  color:var(--ah-text);
  background:none;
  -webkit-text-fill-color:var(--ah-text);
}

.provider-top-profile-btn,
.mobile-menu-panel{
  background:var(--ah-surface);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

.mobile-menu-panel .mobile-nav a{
  color:var(--ah-text);
}

.mobile-menu-panel .mobile-nav a:hover{
  background:var(--ah-surface-hover);
}

.mobile-auth{
  border-color:var(--ah-border);
}

.nav-auth .signed-label,
.mobile-auth .signed-label{
  color:var(--ah-text-secondary);
}

html[data-theme] .landing-pill--ghost,
html[data-theme] .auth-flow-action{
  background:var(--ah-surface-soft) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .text-link-button,
html[data-theme] .profile-photo-actions .provider-header-btn{
  min-height:0;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .text-link-button:hover,
html[data-theme] .profile-photo-actions .provider-header-btn:where(:not([data-expand-on-interaction])):hover{
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .landing-pill--solid,
html[data-theme] .auth-flow-primary,
html[data-theme] .login-modal-form .btn{
  background:var(--ah-accent) !important;
  border-color:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}

body > footer,
.footer{
  background:var(--ah-surface) !important;
  border-top:1px solid var(--ah-border);
  color:var(--ah-text) !important;
}

/* Shared surfaces */
.modal,
.unsaved-changes-modal,
.parent-booking-panel,
.booking-availability-modal,
.verify-modal,
.profile-photo-modal{
  background:var(--ah-overlay) !important;
}

.modal-content,
.meet-modal-content,
.unsaved-changes-card,
.parent-city-change-card,
.booking-availability-card,
.parent-booking-card,
.parent-booking-checkout,
.chat-booking-checkout,
.access-modal-content{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:var(--ah-shadow) !important;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.unsaved-changes-card h3,
.parent-booking-card h2,
.parent-booking-card h3{
  color:var(--ah-text) !important;
}

.modal-content p,
.unsaved-changes-card p,
.parent-city-change-card #parentCityChangeMessage,
.parent-booking-sub,
.parent-booking-message-tail{
  color:var(--ah-text-secondary) !important;
}

html[data-theme] .unsaved-changes-actions .provider-header-btn{
  border-color:var(--ah-border-strong) !important;
  border-radius:13px;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
  box-shadow:none !important;
}

html[data-theme] .unsaved-changes-actions .unsaved-changes-keep:hover{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .unsaved-changes-actions .unsaved-changes-discard{
  border-color:color-mix(in srgb,var(--ah-danger) 42%,var(--ah-border)) !important;
  background:var(--ah-danger-soft) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .unsaved-changes-actions .unsaved-changes-discard:hover{
  border-color:var(--ah-danger) !important;
  background:color-mix(in srgb,var(--ah-danger) 18%,var(--ah-surface-raised)) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .unsaved-changes-actions .unsaved-changes-save{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .unsaved-changes-actions .unsaved-changes-save:hover{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .unsaved-changes-actions .provider-header-btn:focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 30%,transparent);
  outline-offset:2px;
}

.parent-city-change-icon{
  background:var(--ah-accent-soft);
  color:var(--ah-accent);
}

.parent-city-change-note,
.parent-booking-warning{
  background:var(--ah-warning-soft) !important;
  border-color:color-mix(in srgb,var(--ah-warning) 45%,transparent) !important;
  color:var(--ah-warning) !important;
}

/* Dashboard canvas: black in dark mode, neutral white/gray in light mode. */
html[data-theme] .provider-dashboard,
body.provider-dashboard{
  background:var(--ah-canvas);
  color:var(--ah-text);
}

html[data-theme] .provider-shell{
  background:var(--ah-canvas);
  color:var(--ah-text);
  box-shadow:none;
}

html[data-theme] .provider-sidebar,
html[data-theme] .provider-content{
  background:var(--ah-surface);
  border-color:var(--ah-border);
  box-shadow:none;
}

/* Panels are page-level navigation canvases, not cards. Keeping them
   transparent makes the tab area continuous with the app chrome in both
   themes; their child cards still provide the visual hierarchy. */
html[data-theme] .provider-panels,
html[data-theme] .provider-panel{
  background:transparent;
  color:var(--ah-text);
}

html[data-theme] .provider-panel-card,
html[data-theme] .provider-bookings-card,
html[data-theme] .provider-requests-card,
html[data-theme] .provider-kpi-card,
html[data-theme] .parent-provider-row,
html[data-theme] .parent-results-wrap,
html[data-theme] .parent-search-card,
html[data-theme] .parent-booking-card,
html[data-theme] .parent-time-card,
html[data-theme] .parent-find-card,
html[data-theme] .provider-chart-card,
html[data-theme] .provider-profile-section,
html[data-theme] .provider-profile-summary,
html[data-theme] .provider-doc-card,
html[data-theme] .provider-upgrade-card,
html[data-theme] .parent-child-form-card,
html[data-theme] .parent-caregiver-card,
html[data-theme] .family-post,
html[data-theme] .parent-child-details,
html[data-theme] .parent-child-details-card,
html[data-theme] .resource-card,
html[data-theme] .provider-mini-card,
html[data-theme] .account-settings-section{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border);
  color:var(--ah-text);
  box-shadow:none;
}

/* Discovery already supplies its own rounded empty/result cards. Keep the
   layout wrapper transparent so it cannot paint square corners behind them. */
html[data-theme] .parent-results-wrap.parent-results-wrap--discovery{
  display:grid;
  align-items:initial;
  justify-content:initial;
  cursor:default;
  border-color:transparent;
  background:transparent;
  box-shadow:none;
}

/* Directory screens are page-level canvases, not nested cards. Keep their
   wrapper on the continuous dashboard surface while individual caregiver and
   family records retain the raised-card treatment above. */
html[data-theme] .parent-caregiver-directory-card{
  background:transparent;
  border:0;
  box-shadow:none;
}

html[data-theme] .provider-insights-card[hidden],
html[data-theme] .provider-insights-empty-card[hidden]{
  display:none !important;
}

html[data-theme] .provider-insights-empty-card{
  gap:18px;
  padding:20px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--ah-accent) 8%,var(--ah-surface-raised)) 0%,var(--ah-surface-raised) 72%);
  border-color:color-mix(in srgb,var(--ah-accent) 30%,var(--ah-border));
}

html[data-theme] .provider-insights-empty-intro{
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:start;
  gap:13px;
}

html[data-theme] .provider-insights-empty-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:var(--ah-accent);
  background:var(--ah-accent-soft);
  border:1px solid color-mix(in srgb,var(--ah-accent) 24%,var(--ah-border));
}

html[data-theme] .provider-insights-empty-kicker{
  display:block;
  margin-bottom:4px;
  color:var(--ah-accent);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

html[data-theme] .provider-insights-empty-card h2{
  margin:0;
  color:var(--ah-text);
  font-size:18px;
  line-height:1.25;
}

html[data-theme] .provider-insights-empty-card p{
  margin:7px 0 0;
  color:var(--ah-text-secondary);
  font-size:13px;
  line-height:1.55;
}

html[data-theme] .provider-insights-empty-actions{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:10px;
}

html[data-theme] .provider-insights-empty-actions button{
  width:100%;
  min-height:44px;
  margin:0;
}

html[data-theme] .caregiver-home-upcoming.ah-flat-section,
html[data-theme] .provider-insights-card.ah-flat-section,
html[data-theme] .provider-insights-empty-card.ah-flat-section{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

html[data-theme] .provider-bookings-item,
html[data-theme] .provider-requests-item,
html[data-theme] .provider-requests-empty,
html[data-theme] .parent-bookings-item,
html[data-theme] .calendar-controls,
html[data-theme] .parent-time-form,
html[data-theme] .parent-find-inputs{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .calendar-event-row,
html[data-theme] .calendar-event-row.parent-bookings-item,
html[data-theme] .calendar-event-row.provider-bookings-item{
  background:transparent;
  border-radius:0;
  box-shadow:none;
  color:var(--ah-text);
}

html[data-theme] .provider-booking-mobile-title,
html[data-theme] .provider-booking-mobile-time,
html[data-theme] .provider-request-mobile-title,
html[data-theme] .provider-request-mobile-time{
  color:var(--ah-text);
}

html[data-theme] .provider-booking-mobile-divider,
html[data-theme] .provider-booking-mobile-meta,
html[data-theme] .provider-request-mobile-divider,
html[data-theme] .provider-request-mobile-family,
html[data-theme] .provider-request-mobile-meta{
  color:var(--ah-text-secondary);
}

/* Search fields nested inside an outlined control should read as one surface. */
html[data-theme] .parent-find-inputs{
  background:transparent;
  border-color:var(--ah-border-strong);
}

html[data-theme] .parent-find-inputs:focus-within{
  border-color:var(--ah-accent);
  box-shadow:0 0 0 2px var(--ah-accent-soft);
}

html[data-theme] .parent-find-select{
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

html[data-theme] .provider-booking-mobile-meta,
html[data-theme] .provider-request-mobile-meta{
  border-top:1px solid var(--ah-border);
  border-bottom:1px solid var(--ah-border);
}

html[data-theme] .provider-booking-mobile-meta span + span,
html[data-theme] .provider-request-mobile-meta span + span,
html[data-theme] .provider-booking-actions{
  border-color:var(--ah-border);
}

html[data-theme] .provider-request-mobile-deadline{
  color:var(--ah-text-muted);
}

html[data-theme] .provider-requests-terms-note{
  color:var(--ah-text-muted);
}

html[data-theme] .provider-requests-terms-note a{
  color:var(--ah-accent);
}

html[data-theme] .provider-request-mobile-status.is-pending{
  background:var(--ah-info-soft);
  border-color:color-mix(in srgb,var(--ah-info) 45%,transparent);
  color:var(--ah-info);
}

html[data-theme] .provider-request-mobile-status.is-completed{
  background:var(--ah-success-soft);
  border-color:color-mix(in srgb,var(--ah-success) 45%,transparent);
  color:var(--ah-success);
}

html[data-theme] .provider-request-mobile-status.is-cancelled{
  background:var(--ah-danger-soft);
  border-color:color-mix(in srgb,var(--ah-danger) 45%,transparent);
  color:var(--ah-danger);
}

html[data-theme] .provider-booking-mobile-address{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border-strong) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .provider-booking-mobile-address:hover{
  background:var(--ah-surface-hover) !important;
}

html[data-theme] .booking-address-text{
  color:var(--ah-text);
}

/* Account sections use one surface. Borders—not alternating fills—show structure. */
html[data-theme] .account-fields,
html[data-theme] .account-password-editor,
html[data-theme] .account-edit-actions,
html[data-theme] .account-settings-section .provider-security-row{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .account-settings-section .provider-security-copy strong{
  color:var(--ah-text) !important;
}

html[data-theme] .account-settings-section .provider-security-text{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .account-settings-section:not(.is-editing) .account-fields .provider-form-field{
  gap:7px;
  border-bottom:0;
}

html[data-theme] .account-settings-section:not(.is-editing) .account-fields .provider-form-field > span{
  color:var(--ah-text) !important;
}

html[data-theme] .account-settings-section:not(.is-editing) .account-fields .provider-input[readonly],
html[data-theme] .account-settings-section:not(.is-editing) .account-fields .provider-input:disabled{
  min-height:44px;
  padding:10px 12px !important;
  background:var(--ah-surface-raised) !important;
  border:1px solid var(--ah-border-strong) !important;
  border-radius:10px;
  color:var(--ah-text-secondary) !important;
  -webkit-text-fill-color:var(--ah-text-secondary) !important;
  opacity:1;
}

html[data-theme] .account-settings-section:not(.is-editing) .account-fields .provider-input[readonly]::placeholder,
html[data-theme] .account-settings-section:not(.is-editing) .account-fields .provider-input:disabled::placeholder{
  color:var(--ah-text-muted) !important;
  -webkit-text-fill-color:var(--ah-text-muted) !important;
}

html[data-theme] .account-edit-button{
  background:transparent !important;
  border-color:transparent !important;
  border-radius:0;
  color:var(--ah-accent) !important;
  box-shadow:none;
}

html[data-theme] .account-edit-button:where(:not([data-expand-on-interaction])):is(:hover,:focus-visible){
  background:var(--ah-surface-hover) !important;
  border-color:transparent !important;
  color:var(--ah-text) !important;
  text-decoration:underline;
  text-underline-offset:2px;
}

html[data-theme] .settings-inline-action{
  border-color:transparent !important;
  background:transparent !important;
  color:var(--ah-accent) !important;
  box-shadow:none;
}

html[data-theme] .settings-inline-action:where(:not([data-expand-on-interaction])):hover:not(:disabled){
  border-color:transparent !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .settings-inline-action:focus-visible{
  outline:2px solid color-mix(in srgb,var(--ah-accent) 36%,transparent);
  outline-offset:1px;
}

html[data-theme] .settings-inline-action:disabled{
  border-color:transparent !important;
  background:transparent !important;
  color:var(--ah-text-muted) !important;
}

/* Availability uses the same switch, surface, and action hierarchy as profiles. */
html[data-theme] .availability-day{
  border-bottom-color:var(--ah-border);
}

html[data-theme] .availability-day.is-disabled{
  opacity:1;
  padding-block:8px;
}

html[data-theme] .availability-day-toggle{
  color:var(--ah-text);
  align-self:end;
}

.availability-switch-control{
  position:relative;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:7px;
  min-height:44px;
  width:max-content;
  flex-wrap:nowrap;
  white-space:nowrap;
  cursor:pointer;
  user-select:none;
}

.availability-slots[hidden],
.availability-day-actions[hidden]{
  display:none !important;
}

.availability-checkbox{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.availability-switch-track{
  position:relative;
  display:inline-flex;
  width:var(--ah-switch-width);
  height:var(--ah-switch-height);
  min-width:var(--ah-switch-width);
  max-width:var(--ah-switch-width);
  min-height:var(--ah-switch-height);
  max-height:var(--ah-switch-height);
  flex:0 0 var(--ah-switch-width);
  box-sizing:border-box;
  border:1px solid var(--ah-ios-switch-off);
  border-radius:999px;
  padding:0 !important;
  overflow:hidden;
  align-self:center;
  background:var(--ah-ios-switch-off);
  border-color:var(--ah-ios-switch-off);
  transition:background-color var(--ah-motion-duration-standard) var(--ah-motion-ease-standard),border-color var(--ah-motion-duration-standard) var(--ah-motion-ease-standard);
}

.availability-switch-thumb{
  position:absolute;
  top:var(--ah-switch-thumb-inset);
  left:var(--ah-switch-thumb-inset);
  width:var(--ah-switch-thumb-size);
  height:var(--ah-switch-thumb-size);
  border-radius:50%;
  background:var(--ah-ios-switch-thumb);
  box-shadow:0 1px 3px rgba(0,0,0,.24);
  transition:transform var(--ah-motion-duration-standard) var(--ah-motion-ease-standard);
}

.availability-checkbox:checked + .availability-switch-track{
  background:var(--ah-ios-switch-on);
  border-color:var(--ah-ios-switch-on);
}

.availability-checkbox:checked + .availability-switch-track .availability-switch-thumb{
  background:var(--ah-ios-switch-thumb);
  transform:translateX(var(--ah-switch-thumb-travel));
}

.availability-checkbox:focus-visible + .availability-switch-track{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:2px;
}

.availability-switch-state{
  min-width:20px;
  color:var(--ah-text-muted);
  font-size:11px;
  font-weight:700;
}

.availability-day-toggle .availability-switch-control{
  width:120px;
  min-width:120px;
}

.availability-day-toggle .availability-switch-state{
  flex:1 1 auto;
  min-width:0;
  text-align:left;
}

.availability-checkbox:not(:checked) ~ .availability-switch-state{
  color:var(--ah-text-muted);
}

.availability-checkbox:checked ~ .availability-switch-state{
  color:var(--ah-text-secondary);
}

/* Family cards use compact utilities; opening the card itself remains the primary navigation. */
html[data-theme] .provider-family-directory .provider-family-card .family-mini-actions{
  display:flex;
  width:100%;
  align-self:stretch;
  justify-content:flex-start;
  gap:4px;
  margin-top:-4px;
  padding-left:68px;
  box-sizing:border-box;
}

html[data-theme] .provider-family-directory .provider-family-card .family-mini-btn{
  width:auto;
  min-width:0;
  min-height:44px;
  padding:6px 10px;
  border-radius:var(--ah-action-radius-compact,10px) !important;
  font-size:11px;
}

.availability-slots:not([hidden]),
.availability-day-actions:not([hidden]){
  animation:availability-reveal var(--ah-motion-duration-standard) var(--ah-motion-ease-fade);
}

@keyframes availability-reveal{
  from{
    opacity:0;
    transform:translateY(-6px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

html[data-theme] .availability-slot{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  align-items:end;
  grid-template-columns:minmax(120px,1fr) 18px minmax(120px,1fr);
}

html[data-theme] .availability-slot.has-remove{
  grid-template-columns:minmax(120px,1fr) 18px minmax(120px,1fr) auto;
}

.availability-time-field{
  display:grid;
  gap:5px;
  min-width:0;
  color:var(--ah-text-muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}

html[data-theme] .availability-slot input[type="time"]{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border-strong);
  color:var(--ah-text);
  box-shadow:none;
}

html[data-theme] .availability-slot input[type="time"]:focus{
  border-color:var(--ah-accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ah-accent) 22%,transparent);
}

html[data-theme] .availability-slot-sep,
html[data-theme] .availability-status{
  color:var(--ah-text-muted);
}

html[data-theme] .availability-slot-sep{
  align-self:end;
  display:flex;
  align-items:center;
  justify-content:center;
  height:38px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}

html[data-theme] .availability-actions{
  border-top-color:var(--ah-border);
}

html[data-theme] .availability-icon-btn{
  background:var(--ah-surface-raised) !important;
  border:1px solid var(--ah-border-strong) !important;
  color:var(--ah-text) !important;
  box-shadow:none;
}

html[data-theme] .availability-remove-slot{
  background:transparent !important;
  border-color:transparent !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .availability-icon-btn:focus-visible,
html[data-theme] .availability-save-btn:focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:2px;
}

.availability-add-slot,
.availability-remove-slot,
.availability-override-remove-slot{
  width:auto;
  height:auto;
  min-height:44px;
  padding:0 10px;
  gap:6px;
  white-space:nowrap;
}

.availability-add-slot{
  min-height:44px;
}

.availability-remove-slot,
.availability-day-actions{
  align-self:end;
}

html[data-theme] .provider-availability-card{
  position:relative;
  gap:18px;
}

.availability-card-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:12px;
  margin-bottom:0;
}

.availability-kicker{
  display:block;
  margin-bottom:6px;
  color:var(--ah-accent);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.availability-card-head h2{
  margin:0 !important;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.availability-title-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
  flex-wrap:wrap;
}

.availability-preview-link{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--ah-accent);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}

.availability-preview-link:hover{
  background:transparent;
  color:var(--ah-text);
}

.availability-preview-link:focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:2px;
}

.availability-header-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:4px;
  min-width:82px;
}

.availability-header-save-btn{
  display:inline-flex;
  min-width:62px;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border:1px solid var(--ah-border-strong);
  border-radius:10px;
  background:var(--ah-surface-soft);
  color:var(--ah-text);
  font-size:11px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}

.availability-header-save-btn:focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:2px;
}

.availability-header-save-btn:disabled{
  border-color:var(--ah-border-strong);
  background:var(--ah-surface-soft);
  color:var(--ah-text-soft);
  cursor:not-allowed;
  opacity:.72;
}

.availability-summary{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  white-space:nowrap;
}

.availability-summary::before{
  content:"\00b7";
  color:var(--ah-text-soft);
  font-size:12px;
  font-weight:700;
}

.availability-summary-value{
  color:var(--ah-text-muted);
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}

html[data-theme] .availability-editor{
  gap:10px;
}

html[data-theme] .availability-day{
  grid-template-columns:160px minmax(0,1fr);
  gap:10px 16px;
  padding:14px;
  border:1px solid var(--ah-border);
  border-radius:14px;
  background:var(--ah-surface-soft);
}

html[data-theme] .availability-day:last-child{
  border-bottom:1px solid var(--ah-border);
}

html[data-theme] .availability-day.is-disabled{
  padding:10px 14px;
  background:color-mix(in srgb,var(--ah-surface-soft) 68%,var(--ah-surface-raised));
}

html[data-theme] .availability-day-toggle{
  grid-column:1;
  grid-row:1;
  flex-direction:column;
  align-items:flex-start;
  align-self:start;
  gap:7px;
}

.availability-day-name{
  color:var(--ah-text);
  font-size:14px;
  font-weight:700;
}

html[data-theme] .availability-slots{
  grid-column:2;
  grid-row:1;
}

html[data-theme] .availability-day-actions{
  grid-column:2;
  display:flex;
  align-items:center;
  gap:8px;
  padding-top:0;
}

html[data-theme] .availability-switch-track{
  background:var(--ah-ios-switch-off);
  border-color:var(--ah-ios-switch-off);
}

html[data-theme] .availability-switch-thumb{
  background:var(--ah-ios-switch-thumb);
}

html[data-theme] .availability-checkbox:not(:checked) ~ .availability-switch-state{
  color:var(--ah-text-muted);
}

html[data-theme] .availability-checkbox:checked + .availability-switch-track{
  background:var(--ah-ios-switch-on);
  border-color:var(--ah-ios-switch-on);
}

html[data-theme] .availability-checkbox:checked + .availability-switch-track .availability-switch-thumb{
  background:var(--ah-ios-switch-thumb);
}

html[data-theme] .availability-checkbox:checked ~ .availability-switch-state{
  color:var(--ah-text-secondary);
}

.availability-switch-state{
  min-width:auto;
}

html[data-theme] .availability-slot{
  position:relative;
}

.availability-inline-error{
  grid-column:1 / -1;
  color:var(--ah-danger);
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}

html[data-theme] .availability-slot input[aria-invalid="true"],
html[data-theme] .availability-date-field input[aria-invalid="true"]{
  border-color:var(--ah-danger) !important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ah-danger) 16%,transparent);
}

html[data-theme] .availability-slot input[type="time"]{
  min-height:44px;
  height:44px;
}

html[data-theme] .availability-slot-sep{
  height:42px;
}

.availability-add-slot,
.availability-remove-slot,
.availability-copy-day{
  min-height:44px;
}

.availability-copy-day{
  color:var(--ah-text) !important;
}

.availability-overrides{
  display:grid;
  gap:8px;
  padding-top:4px;
}

.availability-overrides-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.availability-overrides-head h3{
  margin:0;
  color:var(--ah-text-muted);
  font-size:12px;
  font-weight:600;
  line-height:1.35;
}

.availability-add-override{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px !important;
  padding:7px 10px !important;
  border-radius:var(--ah-action-radius-compact,10px) !important;
  font-size:12px;
  font-weight:var(--ah-action-font-weight,650);
  white-space:nowrap;
}

html[data-theme] .availability-add-override{
  border-color:transparent !important;
  background:transparent !important;
  color:var(--ah-text-secondary) !important;
}

.availability-add-override-icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
}

.availability-override-editor{
  display:grid;
  gap:10px;
}

.availability-override-editor[hidden]{
  display:none;
}

.availability-override-card{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--ah-border);
  border-radius:14px;
  background:var(--ah-surface-raised);
}

.availability-override-card.is-unavailable{
  border-color:var(--ah-border);
}

.availability-override-card-head{
  display:grid;
  grid-template-columns:minmax(180px,240px) minmax(170px,1fr) auto;
  align-items:end;
  gap:12px;
}

.availability-date-field{
  display:grid;
  gap:5px;
  color:var(--ah-text-muted) !important;
  font-size:11px;
  font-weight:700;
}

.availability-override-mode{
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:center;
  gap:20px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.availability-override-mode-option{
  position:relative;
  min-width:0;
  cursor:pointer;
}

.availability-override-mode-input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}

.availability-override-mode-option span{
  display:flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  padding:5px 1px;
  border-radius:0;
  background:transparent;
  color:var(--ah-text-muted);
  font-size:11px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  white-space:nowrap;
}

.availability-override-mode-input:checked + span{
  background:transparent;
  color:var(--ah-text);
  box-shadow:none;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}

.availability-override-mode-input:focus-visible + span{
  outline:2px solid color-mix(in srgb,var(--ah-accent) 36%,transparent);
  outline-offset:1px;
}

html[data-theme] .availability-date-field input{
  width:100%;
  min-height:44px;
  padding:8px 11px;
  border:1px solid var(--ah-border-strong);
  border-radius:10px;
  background:var(--ah-surface-raised);
  color:var(--ah-text);
}

.availability-override-remove{
  min-height:44px;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--ah-danger);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.availability-override-slots{
  display:grid;
  gap:10px;
}

.availability-override-slots[hidden]{
  display:none !important;
}

.availability-override-add-slot{
  justify-self:start;
}

html[data-theme] .availability-actions{
  position:sticky;
  bottom:16px;
  z-index:20;
  min-height:0;
  padding:8px 10px 8px 12px;
  border:1px solid var(--ah-border);
  border-radius:16px;
  background:color-mix(in srgb,var(--ah-surface-raised) 94%,transparent);
  box-shadow:var(--ah-shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.availability-status[data-state="dirty"]{
  color:var(--ah-warning) !important;
  font-weight:700;
}

.availability-status[data-state="error"]{
  color:var(--ah-danger) !important;
  font-weight:700;
}

.availability-status[data-state="saved"]{
  color:var(--ah-success) !important;
  font-weight:700;
}

.availability-save-btn,
.availability-discard-btn{
  min-height:44px;
}

.availability-discard-btn:disabled,
.availability-save-btn:disabled{
  cursor:not-allowed;
  opacity:.52;
}

html[data-theme] .availability-save-btn:disabled,
html[data-theme] .availability-save-btn:disabled:hover{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text-muted) !important;
}

.two-factor-switch-control{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  cursor:pointer;
  user-select:none;
}

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

.two-factor-switch-track{
  position:relative;
  width:var(--ah-switch-width);
  height:var(--ah-switch-height);
  flex:0 0 auto;
  border:1px solid var(--ah-ios-switch-off);
  border-radius:999px;
  background:var(--ah-ios-switch-off);
  transition:background-color var(--ah-motion-duration-standard) var(--ah-motion-ease-standard),border-color var(--ah-motion-duration-standard) var(--ah-motion-ease-standard);
}

.two-factor-switch-thumb{
  position:absolute;
  top:var(--ah-switch-thumb-inset);
  left:var(--ah-switch-thumb-inset);
  width:var(--ah-switch-thumb-size);
  height:var(--ah-switch-thumb-size);
  border-radius:50%;
  background:var(--ah-ios-switch-thumb);
  box-shadow:0 1px 4px rgba(0,0,0,.28);
  transition:transform var(--ah-motion-duration-standard) var(--ah-motion-ease-standard);
}

.two-factor-switch:checked + .two-factor-switch-track{
  background:var(--ah-ios-switch-on);
  border-color:var(--ah-ios-switch-on);
}

.two-factor-switch:checked + .two-factor-switch-track .two-factor-switch-thumb{
  transform:translateX(var(--ah-switch-thumb-travel));
}

.two-factor-switch:focus-visible + .two-factor-switch-track{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:3px;
}

.two-factor-switch:disabled + .two-factor-switch-track,
.two-factor-switch:disabled ~ .two-factor-switch-state{
  opacity:.55;
}

.two-factor-switch-state{
  min-width:22px;
  color:var(--ah-text-secondary);
  font-size:12px;
  font-weight:700;
}

html[data-theme] .provider-sidebar-title,
html[data-theme] .provider-upgrade-title,
html[data-theme] .provider-section-title h3,
html[data-theme] .provider-profile-card-head h3,
html[data-theme] .provider-doc-title,
html[data-theme] .parent-provider-name,
html[data-theme] .parent-caregiver-name,
html[data-theme] .parent-caregiver-link,
html[data-theme] .parent-time-title,
html[data-theme] .provider-title,
html[data-theme] .provider-card-head h2,
html[data-theme] .provider-panel-card h2,
html[data-theme] .provider-kpi-value,
html[data-theme] .parent-child-name,
html[data-theme] .family-post-title,
html[data-theme] .account-settings-section h2,
html[data-theme] .account-settings-section h3{
  color:var(--ah-text);
}

html[data-theme] .provider-sidebar-eyebrow,
html[data-theme] .provider-sidebar-name,
html[data-theme] .provider-upgrade-copy,
html[data-theme] .provider-card-sub,
html[data-theme] .provider-panel-card p,
html[data-theme] .provider-kpi-label,
html[data-theme] .provider-kpi-foot,
html[data-theme] .parent-provider-meta,
html[data-theme] .parent-results-sub,
html[data-theme] .parent-caregiver-service-note,
html[data-theme] .parent-time-sub,
html[data-theme] .parent-find-meta,
html[data-theme] .parent-request-muted,
html[data-theme] .provider-form-status,
html[data-theme] .subscription-hint,
html[data-theme] .family-post-meta,
html[data-theme] .account-page-eyebrow,
html[data-theme] .account-password-help{
  color:var(--ah-text-muted);
}

html[data-theme] .provider-nav-item{
  color:var(--ah-text-secondary);
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] .provider-nav-item:where(:not([data-expand-on-interaction])):hover{
    background:var(--ah-nav-hover-bg);
    color:var(--ah-text);
  }
}

html[data-theme] .provider-nav-item.is-active{
  background:var(--ah-nav-selected-bg);
  color:var(--ah-nav-selected-fg);
}

html[data-theme] .provider-header-btn,
html[data-theme] .parent-provider-btn,
html[data-theme] .parent-booking-btn,
html[data-theme] .calendar-action-btn,
html[data-theme] .parent-page-btn,
html[data-theme] .provider-page-btn{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border-strong);
  color:var(--ah-text);
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] .provider-header-btn:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .parent-provider-btn:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .parent-booking-btn:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .calendar-action-btn:hover{
    background:var(--ah-surface-hover);
  }
}

html[data-theme] .provider-header-btn--primary,
html[data-theme] .provider-primary-btn,
html[data-theme] .parent-provider-btn.primary,
html[data-theme] .parent-booking-btn.primary,
html[data-theme] .parent-time-submit,
html[data-theme] .parent-find-submit,
html[data-theme] .parent-saved-browse-btn,
html[data-theme] .chat-send-btn,
html[data-theme] .save-btn{
  background:var(--ah-accent) !important;
  border-color:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] .provider-header-btn--primary:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .provider-primary-btn:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .parent-provider-btn.primary:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .parent-booking-btn.primary:not(.careplus-native-purchase):where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .parent-time-submit:where(:not([data-expand-on-interaction])):hover,
  html[data-theme] .parent-find-submit:where(:not([data-expand-on-interaction])):hover{
    background:var(--ah-surface-hover) !important;
    border-color:var(--ah-border-strong) !important;
    color:var(--ah-text) !important;
  }
}

html[data-theme] #bookingAddTimeSubmit:disabled{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text-muted) !important;
  cursor:not-allowed;
  opacity:1;
}

html[data-theme] #phoneVerificationModal .sensitive-save-actions{
  gap:8px;
}

html[data-theme] #phoneVerificationModal .sensitive-save-actions .provider-header-btn{
  flex:1 1 calc(50% - 4px);
  min-height:44px;
  padding:10px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  box-shadow:none;
}

html[data-theme] #phoneVerificationModal .sensitive-save-actions .provider-header-btn-ghost{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
}

html[data-theme] #phoneVerificationModal .sensitive-save-actions .provider-header-btn-ghost:where(:not([data-expand-on-interaction])):hover{
  background:var(--ah-surface-hover) !important;
  border-color:var(--ah-border-strong) !important;
}

html[data-theme] #phoneVerificationModal #phoneVerificationSubmit{
  flex-basis:100%;
}

html[data-theme] #phoneVerificationModal .sensitive-save-actions .provider-header-btn:focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 30%,transparent);
  outline-offset:2px;
}

html[data-theme] .provider-header-btn--danger,
html[data-theme] .parent-booking-btn.danger,
html[data-theme] .provider-request-btn.decline,
html[data-theme] .provider-cancel-btn,
html[data-theme] .parent-booking-cancel{
  background:var(--ah-danger) !important;
  border-color:var(--ah-danger) !important;
  color:#ffffff !important;
}

html[data-theme] .provider-header-btn--success,
html[data-theme] .provider-request-btn.accept,
html[data-theme] .parent-meet-complete{
  background:var(--ah-success) !important;
  border-color:var(--ah-success) !important;
  color:var(--ah-on-accent) !important;
}

html[data-theme] .parent-caregiver-card.is-outside-city,
html[data-theme] .parent-provider-row.is-outside-city{
  background:var(--ah-warning-soft);
  border-color:color-mix(in srgb,var(--ah-warning) 45%,transparent);
}

html[data-theme] .parent-caregiver-service-note.is-warning,
html[data-theme] .parent-provider-row.is-outside-city .parent-provider-meta{
  color:var(--ah-warning);
}

/* Request status tabs keep the same semantic colors on every dashboard. */
html[data-theme] .dashboard-status-tab--pending{
  background:var(--ah-info-soft) !important;
  border-color:color-mix(in srgb,var(--ah-status-pending) 48%,transparent) !important;
  color:var(--ah-info) !important;
}

html[data-theme] .dashboard-status-tab--completed{
  background:var(--ah-success-soft) !important;
  border-color:color-mix(in srgb,var(--ah-status-completed) 48%,transparent) !important;
  color:var(--ah-success) !important;
}

html[data-theme] .dashboard-status-tab--cancelled{
  background:var(--ah-danger-soft) !important;
  border-color:color-mix(in srgb,var(--ah-status-cancelled) 48%,transparent) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .dashboard-status-tab--pending.is-active{
  background:var(--ah-status-pending) !important;
  border-color:var(--ah-status-pending) !important;
  color:#ffffff !important;
}

html[data-theme] .dashboard-status-tab--completed.is-active{
  background:var(--ah-status-completed) !important;
  border-color:var(--ah-status-completed) !important;
  color:#ffffff !important;
}

html[data-theme] .dashboard-status-tab--cancelled.is-active{
  background:var(--ah-status-cancelled) !important;
  border-color:var(--ah-status-cancelled) !important;
  color:#ffffff !important;
}

html[data-theme] .dashboard-status-tab .parent-request-count{
  background:color-mix(in srgb,currentColor 14%,transparent);
  color:inherit;
}

html[data-theme] .dashboard-status-tab.is-active .parent-request-count{
  background:rgba(255,255,255,.22);
  color:#ffffff;
}

html[data-theme] .dashboard-status-tab:focus-visible{
  outline:3px solid color-mix(in srgb,currentColor 32%,transparent);
  outline-offset:2px;
}

html[data-theme] .provider-distance-setting-copy{
  color:var(--ah-text-secondary);
}

html[data-theme] .provider-distance-switch-track{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border-strong);
}

html[data-theme] .provider-distance-switch-thumb{
  background:var(--ah-text-muted);
}

html[data-theme] .provider-distance-switch:checked + .provider-distance-switch-track{
  background:var(--ah-accent-soft);
  border-color:color-mix(in srgb,var(--ah-accent) 55%,var(--ah-border));
}

html[data-theme] .provider-distance-switch:checked + .provider-distance-switch-track .provider-distance-switch-thumb{
  background:var(--ah-accent);
}

html[data-theme] .provider-distance-switch:focus-visible + .provider-distance-switch-track{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:2px;
}

html[data-theme] .provider-distance-switch:disabled + .provider-distance-switch-track,
html[data-theme] .provider-distance-switch-control.is-pending{
  opacity:.55;
  cursor:wait;
}

html[data-theme] .provider-title-count,
html[data-theme] .provider-distance-switch-option{
  color:var(--ah-text-secondary);
}

html[data-theme] .provider-distance-switch-option--home{
  color:var(--ah-accent);
}

html[data-theme] .provider-distance-switch-control:has(.provider-distance-switch:checked) .provider-distance-switch-option--home{
  color:var(--ah-text-muted);
}

html[data-theme] .provider-distance-switch-control:has(.provider-distance-switch:checked) .provider-distance-switch-option--current{
  color:var(--ah-accent);
}

/* Chat uses the same neutral surface hierarchy as the rest of the app. */
html[data-theme] #chatModal.chat-modal,
html[data-theme] .chat-modal .chat-shell,
html[data-theme] .chat-modal .chat-list-view,
html[data-theme] .chat-modal .chat-list-header,
html[data-theme] .chat-modal .chat-convo-view,
html[data-theme] .chat-modal .chat-convo-header,
html[data-theme] .chat-modal .chat-composer{
  background:var(--ah-surface) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .chat-modal .chat-bubble,
html[data-theme] .chat-modal .chat-icon-btn,
html[data-theme] .chat-modal .chat-input,
html[data-theme] .chat-modal .chat-search,
html[data-theme] .chat-modal .chat-request-btn,
html[data-theme] .chat-modal .chat-bubble.chat-bubble--request,
html[data-theme] .chat-modal .chat-photo-remove{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
}

/* Keep the inbox on one continuous surface. Conversation rows should not
   create a raised grey slab, and the scroll affordance must not become a
   permanent divider at the right edge of the list. */
html[data-theme] .chat-modal .chat-list-view{
  border-right:0 !important;
}

html[data-theme] .chat-modal .chat-threads{
  background:var(--ah-surface) !important;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

html[data-theme] .chat-modal .chat-threads::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}

html[data-theme] .chat-modal .chat-thread{
  background:transparent !important;
  border-color:var(--ah-border-subtle) !important;
  color:var(--ah-text) !important;
}

/* Shared save lifecycle for dashboard fields on web and native shells. */
.global-save-progress{
  position:fixed;
  z-index:2147483000;
  inset:0;
  display:grid;
  place-items:center;
  padding:
    calc(24px + env(safe-area-inset-top,0px))
    calc(24px + env(safe-area-inset-right,0px))
    calc(24px + env(safe-area-inset-bottom,0px))
    calc(24px + env(safe-area-inset-left,0px));
  background:color-mix(in srgb,var(--ah-canvas) 48%,transparent);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  opacity:0;
  pointer-events:none;
  transition:opacity 160ms ease,background-color 160ms ease;
}

.global-save-progress[hidden]{
  display:none !important;
}

.global-save-progress.is-visible{
  opacity:1;
}

.global-save-progress.is-blocking{
  cursor:progress;
  pointer-events:auto;
  touch-action:none;
}

.global-save-progress.is-settled{
  background:transparent;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

.global-save-progress-card{
  display:flex;
  align-items:center;
  gap:12px;
  width:min(100%,320px);
  min-height:68px;
  box-sizing:border-box;
  padding:14px 16px;
  border:1px solid var(--ah-border);
  border-radius:18px;
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  box-shadow:var(--ah-shadow);
}

.global-save-progress-indicator{
  width:24px;
  height:24px;
  flex:0 0 24px;
  box-sizing:border-box;
  border:2.5px solid var(--ah-border-strong);
  border-top-color:var(--ah-text);
  border-radius:50%;
  animation:global-save-progress-spin .75s linear infinite;
}

.global-save-progress.is-success .global-save-progress-indicator,
.global-save-progress.is-error .global-save-progress-indicator{
  display:grid;
  place-items:center;
  border:0;
  background:var(--ah-surface-hover);
  animation:none;
}

.global-save-progress.is-success .global-save-progress-indicator::after{
  content:'✓';
  color:var(--ah-text);
  font-size:15px;
  font-weight:700;
}

.global-save-progress.is-error .global-save-progress-indicator::after{
  content:'!';
  color:var(--ah-danger);
  font-size:16px;
  font-weight:700;
}

.global-save-progress-copy{
  display:grid;
  gap:2px;
  min-width:0;
}

.global-save-progress-copy strong{
  color:var(--ah-text);
  font-size:15px;
  line-height:1.25;
}

.global-save-progress-copy > span{
  color:var(--ah-text-muted);
  font-size:12px;
  line-height:1.35;
}

.is-global-save-busy{
  cursor:progress !important;
}

@keyframes global-save-progress-spin{
  to{transform:rotate(360deg)}
}

@media (prefers-reduced-motion:reduce){
  .global-save-progress{
    transition:none;
  }
  .global-save-progress-indicator{
    animation-duration:1.4s;
  }
}

html[data-theme] .chat-modal .chat-history{
  background:var(--ah-canvas) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .chat-modal .chat-search input{
  color:var(--ah-text) !important;
}

html[data-theme] .chat-modal .chat-search input::placeholder{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .chat-modal .chat-thread.is-active{
  background:var(--ah-surface-hover) !important;
}

html[data-theme] .chat-modal .chat-list-title,
html[data-theme] .chat-modal .chat-thread-name,
html[data-theme] .chat-modal .chat-user-name,
html[data-theme] .chat-modal .chat-request-title,
html[data-theme] .chat-modal .chat-request-row strong{
  color:var(--ah-text) !important;
}

html[data-theme] .chat-modal .chat-empty,
html[data-theme] .chat-modal .chat-thread-time,
html[data-theme] .chat-modal .chat-thread-preview,
html[data-theme] .chat-modal .chat-user-sub,
html[data-theme] .chat-modal .chat-request-text,
html[data-theme] .chat-modal .chat-request-meta,
html[data-theme] .chat-modal .chat-status,
html[data-theme] .chat-modal .chat-delivery-status{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .chat-modal .chat-delivery-status.is-sent{
  color:var(--ah-accent) !important;
}

html[data-theme] .chat-modal .chat-delivery-status.is-read{
  color:var(--ah-success,#16a34a) !important;
}

html[data-theme] .chat-modal .chat-message.is-mine .chat-bubble{
  background:var(--ah-accent-soft) !important;
  border-color:color-mix(in srgb,var(--ah-accent) 45%,transparent) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .chat-modal .chat-book-btn{
  background:var(--ah-accent) !important;
  border-color:transparent !important;
  color:var(--ah-on-accent,#fff) !important;
}

html[data-theme] .chat-modal .chat-call-btn:not(.is-disabled){
  background:var(--ah-accent-soft) !important;
  border-color:transparent !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .chat-modal .chat-safety-btn{
  background:var(--ah-surface-muted) !important;
  border-color:transparent !important;
  color:var(--ah-text-muted) !important;
}

html[data-theme] .chat-modal .chat-message.is-mine > .chat-bubble:not(.chat-bubble--request){
  background:var(--ah-accent) !important;
  border-color:var(--ah-accent) !important;
  color:var(--ah-on-accent,#fff) !important;
}

html[data-theme] .chat-modal .chat-send-btn,
html[data-theme] .chat-modal .chat-thread-unread{
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent,#fff) !important;
}

/* Marketing, signup, profile, and policy pages */
html[data-theme] body.landing,
html[data-theme] body.careplus-page,
html[data-theme] .journey-page,
html[data-theme] body.cg-profile-page,
html[data-theme] .hero,
html[data-theme] .signup-section,
html[data-theme] .support-section,
html[data-theme] .glance-section,
html[data-theme] .home-learning-section{
  background:var(--ah-canvas) !important;
  color:var(--ah-text);
}

html[data-theme] body.landing{
  --landing-bg:var(--ah-canvas);
  --landing-ink:var(--ah-text);
  --landing-accent:var(--ah-accent);
  --landing-accent-strong:var(--ah-accent);
  --landing-warm:var(--ah-accent);
}

html[data-theme] .landing-copy h1,
html[data-theme] .landing-sub,
html[data-theme] .landing-note,
html[data-theme] .landing-scroll-hint,
html[data-theme] .glance-copy h2,
html[data-theme] .glance-label,
html[data-theme] .glance-title,
html[data-theme] .glance-waitlist-title,
html[data-theme] .signin-card-head h2{
  color:var(--ah-text) !important;
  -webkit-text-fill-color:currentColor;
}

html[data-theme] .glance-copy p,
html[data-theme] .glance-waitlist-text,
html[data-theme] .signin-card-head p,
html[data-theme] .signin-helper-copy,
html[data-theme] .signin-footer{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .signin-card,
html[data-theme] .glance-input-row,
html[data-theme] .glance-waitlist{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border);
  color:var(--ah-text);
  box-shadow:var(--ah-shadow);
}

html[data-theme] .journey-card,
html[data-theme] .journey-step,
html[data-theme] .cg-profile-shell,
html[data-theme] .cg-section,
html[data-theme] .glance-panel,
html[data-theme] .support-card,
html[data-theme] .role-card,
html[data-theme] .hero-login-card,
html[data-theme] .policy-card,
html[data-theme] body:not(.provider-dashboard) main > section{
  background-color:var(--ah-surface) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text);
  box-shadow:var(--ah-shadow);
}

html[data-theme] .journey-lead,
html[data-theme] .journey-card p,
html[data-theme] .cg-meta,
html[data-theme] .cg-section p,
html[data-theme] .lead,
html[data-theme] .policy-subtitle,
html[data-theme] .login-modal-subtitle{
  color:var(--ah-text-muted) !important;
}

html[data-theme] body:not(.provider-dashboard) main > section p,
html[data-theme] body:not(.provider-dashboard) main > section li,
html[data-theme] .terms-meta,
html[data-theme] .privacy-meta,
html[data-theme] .disclaimer-meta,
html[data-theme] .agreement-meta,
html[data-theme] .cancellation-meta,
html[data-theme] .terms-card p,
html[data-theme] .privacy-card p,
html[data-theme] .disclaimer-card p,
html[data-theme] .agreement-card p,
html[data-theme] .cancellation-card p{
  color:var(--ah-text-secondary) !important;
}

html[data-theme] .terms-list,
html[data-theme] .privacy-list,
html[data-theme] .disclaimer-list,
html[data-theme] .agreement-list,
html[data-theme] .cancellation-list{
  color:var(--ah-text-secondary) !important;
}

html[data-theme] .careplus-partner-blurb,
html[data-theme] .careplus-partner-plan,
html[data-theme] .careplus-auth-note,
html[data-theme] .careplus-scope,
html[data-theme] .careplus-scope-list li,
html[data-theme] .careplus-scope-icon,
html[data-theme] .careplus-checkout-heading{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:none !important;
}

html[data-theme] .careplus-support,
html[data-theme] .careplus-note,
html[data-theme] .careplus-partner-blurb p,
html[data-theme] .careplus-partner-plan p,
html[data-theme] .careplus-partner-sub,
html[data-theme] .careplus-scope-copy > p,
html[data-theme] .careplus-scope-list li,
html[data-theme] .careplus-checkout-heading p,
html[data-theme] .careplus-checkout-disclosure{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .cg-hero-title h1,
html[data-theme] .policy-card h1,
html[data-theme] .policy-card h2,
html[data-theme] .policy-card h3{
  color:var(--ah-text) !important;
}

/* Secondary flows that predate the semantic palette. Keeping their surfaces
   here prevents a light card or dark text from leaking into system dark mode. */
html[data-theme] .video-call-consent-card,
html[data-theme] .meet-call-prompt-card,
html[data-theme] .meet-outcome-card,
html[data-theme] .meet-call-dock{
  background:color-mix(in srgb,var(--ah-surface-raised) 96%,transparent) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:var(--ah-shadow) !important;
}

html[data-theme] .video-call-consent-card h2,
html[data-theme] .meet-call-prompt-card h2,
html[data-theme] .meet-outcome-card h2,
html[data-theme] .meet-call-dock-copy strong,
html[data-theme] .meet-outcome-explanation strong{
  color:var(--ah-text) !important;
}

html[data-theme] .video-call-consent-card p,
html[data-theme] .meet-call-prompt-details,
html[data-theme] .meet-outcome-subtitle,
html[data-theme] .meet-outcome-explanation span,
html[data-theme] .meet-outcome-status,
html[data-theme] .meet-call-dock-copy span{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .video-call-consent-icon{
  background:var(--ah-accent-soft) !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .meet-call-dock-action{
  border-color:var(--ah-accent) !important;
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}

/* In-call controls live over video and keep their dark material treatment
   regardless of the surrounding app theme. */
html[data-theme] .video-call-safety-actions button:hover:not(:disabled){
  border-color:rgba(255,255,255,.24) !important;
  background:rgba(39,39,42,.66) !important;
  color:#fff !important;
}

html[data-theme] .video-call-safety-actions button.is-danger:hover:not(:disabled){
  border-color:rgba(255,115,122,.46) !important;
  background:rgba(170,24,31,.5) !important;
  color:#ffd5d7 !important;
}

html[data-theme] .video-call-control:hover:not(:disabled){
  border-color:transparent !important;
  background:transparent !important;
  color:#fff !important;
}

html[data-theme] .meet-outcome-explanation{
  background:var(--ah-surface-soft) !important;
  border-color:var(--ah-border) !important;
}

html[data-theme] .video-call-consent-cancel,
html[data-theme] .meet-call-prompt-complete,
html[data-theme] .meet-outcome-decline,
html[data-theme] .meet-call-dock-complete{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border-strong) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .meet-call-prompt-later,
html[data-theme] .meet-outcome-later{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .meet-slot-btn{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .meet-slot-btn.is-selected{
  border-color:var(--ah-accent);
  background:var(--ah-accent);
  color:var(--ah-on-accent);
}

/* The teal fill marks the selected time across input methods. */
html[data-theme] #bookingAvailabilityModal .meet-slot-btn.is-selected{
  border-color:var(--ah-accent) !important;
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
  -webkit-text-fill-color:var(--ah-on-accent) !important;
}

html[data-theme] .meet-slot-btn:disabled,
html[data-theme] .meet-slot-btn.is-blocked{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border);
  color:var(--ah-text-muted);
}

html[data-theme] .address-autocomplete-list,
html[data-theme] .family-contact-popover,
html[data-theme] .child-profile-popover,
html[data-theme] .profile-photo-menu,
html[data-theme] .resource-modal-content{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:var(--ah-shadow) !important;
}

html[data-theme] .address-autocomplete-option,
html[data-theme] .family-contact-title,
html[data-theme] .family-contact-row,
html[data-theme] .child-profile-title,
html[data-theme] .child-profile-row,
html[data-theme] .profile-photo-menu-item{
  color:var(--ah-text) !important;
}

html[data-theme] .address-autocomplete-option span,
html[data-theme] .address-autocomplete-attribution,
html[data-theme] .family-contact-label,
html[data-theme] .child-profile-label,
html[data-theme] .resource-modal-meta{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .address-autocomplete-option:hover,
html[data-theme] .address-autocomplete-option:focus-visible,
html[data-theme] .profile-photo-menu-item:where(:not([data-expand-on-interaction])):hover,
html[data-theme] .profile-photo-menu-item:where(:not([data-expand-on-interaction])):focus-visible{
  background:var(--ah-surface-hover) !important;
}

html[data-theme] .address-autocomplete-attribution,
html[data-theme] .child-profile-row--care-notes .child-profile-value{
  border-color:var(--ah-border) !important;
}

html[data-theme] .child-profile-row--care-notes .child-profile-value,
html[data-theme] .resource-modal-body{
  background:var(--ah-surface-soft) !important;
}

html[data-theme] .family-card,
html[data-theme] .family-mini-card,
html[data-theme] .provider-screening-card,
html[data-theme] .provider-payout-requirement,
html[data-theme] .partner-signup-card{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:none;
}

html[data-theme] .family-card-name,
html[data-theme] .family-mini-name,
html[data-theme] .family-detail-row,
html[data-theme] .provider-screening-card h4,
html[data-theme] .provider-payout-requirements-head strong,
html[data-theme] .provider-payout-requirement strong{
  color:var(--ah-text) !important;
}

html[data-theme] .family-card-sub,
html[data-theme] .family-detail-label,
html[data-theme] .provider-screening-optional,
html[data-theme] .provider-screening-request-note,
html[data-theme] .provider-payout-requirements-head span,
html[data-theme] .provider-payout-requirement small{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .family-card-toggle{
  background:var(--ah-surface-soft) !important;
  border-color:var(--ah-border-strong) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .provider-payout-requirements{
  background:color-mix(in srgb,var(--ah-accent) 7%,var(--ah-surface-raised)) !important;
  border-color:color-mix(in srgb,var(--ah-accent) 28%,var(--ah-border)) !important;
}

html[data-theme] .provider-payout-requirement-icon{
  background:var(--ah-accent-soft) !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .caregiver-booking-help-close{
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .caregiver-parent-late-panel{
  background:transparent !important;
  border-color:transparent !important;
}

html[data-theme] .caregiver-emergency-contact{
  background:var(--ah-surface-soft) !important;
  border-color:var(--ah-border) !important;
}

html[data-theme] .caregiver-time-request,
html[data-theme] .caregiver-time-request-facts,
html[data-theme] .caregiver-time-request-facts > div + div{
  border-color:var(--ah-border) !important;
}

html[data-theme] .caregiver-time-request-copy > strong,
html[data-theme] .caregiver-time-request-facts dd,
html[data-theme] .caregiver-parent-late-copy strong,
html[data-theme] .caregiver-emergency-contact strong,
html[data-theme] .caregiver-booking-cancel-copy strong,
html[data-theme] .caregiver-booking-cancel-panel label{
  color:var(--ah-text) !important;
}

html[data-theme] .caregiver-time-request-copy p,
html[data-theme] .caregiver-time-request-facts dt,
html[data-theme] .caregiver-parent-late-panel p,
html[data-theme] .caregiver-booking-cancel-copy p{
  color:var(--ah-text-secondary) !important;
}

html[data-theme] .caregiver-booking-cancel-panel{
  background:color-mix(in srgb,var(--ah-danger) 7%,var(--ah-surface-raised)) !important;
  border-color:color-mix(in srgb,var(--ah-danger) 34%,var(--ah-border)) !important;
}

html[data-theme] .parent-calendar-item,
html[data-theme] .parent-results-tab,
html[data-theme] .parent-child-avatar-btn{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .parent-calendar-title,
html[data-theme] .parent-results-title,
html[data-theme] .parent-child-details-name,
html[data-theme] .parent-child-avatar-name,
html[data-theme] .family-post-body{
  color:var(--ah-text) !important;
}

html[data-theme] .parent-calendar-sub,
html[data-theme] .parent-results-sub{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .parent-results-tab.is-active,
html[data-theme] .parent-child-avatar-btn--add{
  background:var(--ah-accent-soft);
  border-color:color-mix(in srgb,var(--ah-accent) 52%,var(--ah-border));
  color:var(--ah-accent);
}

html[data-theme] .parent-child-edit-icon,
html[data-theme] .parent-child-edit.parent-child-edit-icon,
html[data-theme] .provider-header-profile-btn,
html[data-theme] .pull-refresh-indicator{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .parent-child-edit-icon:hover,
html[data-theme] .parent-child-edit.parent-child-edit-icon:hover{
  background:var(--ah-surface-hover);
}

html[data-theme] .chat-booking-card,
html[data-theme] .chat-booking-checkout{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .chat-booking-header,
html[data-theme] .chat-booking-child-option,
html[data-theme] .chat-booking-checkout-row.total{
  border-color:var(--ah-border) !important;
}

html[data-theme] .chat-booking-child-option,
html[data-theme] .chat-booking-btn{
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .chat-booking-title,
html[data-theme] .chat-booking-checkout-row strong{
  color:var(--ah-text) !important;
}

html[data-theme] .chat-booking-sub,
html[data-theme] .chat-booking-field,
html[data-theme] .chat-booking-children-empty,
html[data-theme] .chat-booking-checkout-head,
html[data-theme] .chat-booking-checkout-row,
html[data-theme] .chat-booking-checkout-note,
html[data-theme] .chat-booking-checkout-links,
html[data-theme] .chat-booking-status{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .chat-booking-btn.primary{
  background:var(--ah-accent) !important;
  border-color:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}

html[data-theme] .chat-booking-btn.ghost{
  background:transparent !important;
}

html[data-theme] .chat-booking-payment{
  background:var(--ah-danger-soft) !important;
  border-color:color-mix(in srgb,var(--ah-danger) 38%,var(--ah-border)) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .cancel-request-btn{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-danger) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .calendar-action-btn--ghost{
  background:transparent !important;
  border-color:color-mix(in srgb,var(--ah-accent) 45%,var(--ah-border)) !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .calendar-action-btn--primary,
html[data-theme] .parent-caregiver-btn,
html[data-theme] .provider-reach-btn{
  background:var(--ah-accent) !important;
  border-color:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}

html[data-theme] .calendar-action-btn--danger{
  background:var(--ah-danger-soft) !important;
  border-color:color-mix(in srgb,var(--ah-danger) 45%,var(--ah-border)) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .btn-social,
html[data-theme] .glance-location-btn,
html[data-theme] .glance-provider-btn,
html[data-theme] .glance-waitlist-link{
  background:var(--ah-surface-soft) !important;
  border-color:var(--ah-border-strong) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .landing-search-form .glance-location-btn{
  background:transparent !important;
  border-color:transparent !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .landing-search-form .glance-input-row{
  border-color:var(--ah-accent) !important;
  border-width:3px !important;
}

html[data-theme] .landing-search-form .glance-input-row input:focus,
html[data-theme] .landing-search-form .glance-input-row input:focus-visible{
  border-color:transparent !important;
  outline:none !important;
  box-shadow:none !important;
}

html[data-theme] .btn-social:hover{
  background:var(--ah-surface-hover) !important;
  border-color:var(--ah-border-strong) !important;
}

html[data-theme] .form-divider,
html[data-theme] .glance-waitlist-divider{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .form-divider::before,
html[data-theme] .glance-waitlist-divider::before,
html[data-theme] .glance-waitlist-divider::after{
  background:var(--ah-border) !important;
}

html[data-theme] .journey-footer{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text-muted) !important;
}

html[data-theme] .product-showcase-section,
html[data-theme] .how-it-works,
html[data-theme] .mission-section,
html[data-theme] .coverage-section,
html[data-theme] .plan-chooser{
  background:var(--ah-canvas) !important;
  border-color:transparent !important;
  color:var(--ah-text) !important;
}

html[data-theme] body.landing .footer{
  background:var(--ah-canvas) !important;
  border-top:0;
}

html[data-theme] body.landing .footer-bottom{
  border-top:0;
}

html[data-theme="dark"] .coverage-map{
  background:
    repeating-linear-gradient(0deg,transparent,transparent 38px,rgba(103,179,194,.045) 39px),
    repeating-linear-gradient(90deg,transparent,transparent 38px,rgba(103,179,194,.045) 39px),
    color-mix(in srgb,var(--ah-accent-soft) 45%,var(--ah-surface-soft));
}

html[data-theme] .landing-logo{
  background:#ffffff !important;
  border-color:rgba(6,70,78,.12) !important;
  color:#18181b !important;
  box-shadow:0 12px 24px rgba(6,70,78,.18) !important;
}

html[data-theme] .benefit-item,
html[data-theme] .care-process-card,
html[data-theme] .care-process-pill,
html[data-theme] .step,
html[data-theme] .plan-chooser__controls,
html[data-theme] .plan-card,
html[data-theme] .plan-chooser__accordion{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:none;
}

html[data-theme] .mission-card{
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .care-process-card--parent{
  background:linear-gradient(135deg,var(--ah-accent-soft),var(--ah-surface-raised)) !important;
}

html[data-theme] .care-process-card--caregiver{
  background:linear-gradient(135deg,color-mix(in srgb,var(--ah-accent) 6%,var(--ah-surface-raised)),var(--ah-surface-raised)) !important;
}

html[data-theme] .product-showcase-heading h2,
html[data-theme] .showcase-shot figcaption strong,
html[data-theme] .benefits-content h2,
html[data-theme] .benefit-item h3,
html[data-theme] .how-it-works h2,
html[data-theme] .care-process-card h3,
html[data-theme] .care-process-label,
html[data-theme] .step h3,
html[data-theme] .mission-section h2,
html[data-theme] .mission-card h3,
html[data-theme] .values-list strong,
html[data-theme] .plan-chooser h2,
html[data-theme] .plan-chooser__label-row,
html[data-theme] .plan-card__name,
html[data-theme] .plan-chooser__accordion{
  color:var(--ah-text) !important;
}

html[data-theme] .showcase-shot{
  background:transparent !important;
  border-color:transparent !important;
  color:var(--ah-text) !important;
}

html[data-theme] .product-showcase-heading > p:last-child,
html[data-theme] .showcase-shot figcaption span,
html[data-theme] .benefit-item p,
html[data-theme] .care-process-card p,
html[data-theme] .step p,
html[data-theme] .mission-card p,
html[data-theme] .plan-chooser__subtitle,
html[data-theme] .plan-chooser__range-labels,
html[data-theme] .plan-chooser__helper,
html[data-theme] .plan-card__copy,
html[data-theme] .plan-chooser__accordion p{
  color:var(--ah-text-muted) !important;
}

html[data-theme] .plan-chooser__pills button{
  background:var(--ah-surface-soft);
  border-color:var(--ah-border-strong);
  color:var(--ah-text);
}

html[data-theme] .phone-cta{
  color:var(--ah-on-accent) !important;
}

html[data-theme] .glance-result-btn,
html[data-theme] .donate-btn{
  background:var(--ah-surface-raised) !important;
  color:var(--ah-accent) !important;
}

html[data-theme] .careplus-benefit-icon--learn,
html[data-theme] .careplus-benefit-icon--save{
  background:var(--ah-accent-soft);
  color:var(--ah-accent);
}

html[data-theme] body.stripe-connect-return-page{
  background:var(--ah-canvas) !important;
}

html[data-theme] body.admin-page .error,
html[data-theme] body.admin-page #error-message .error{
  background:var(--ah-danger-soft) !important;
  border-color:color-mix(in srgb,var(--ah-danger) 40%,var(--ah-border)) !important;
  color:var(--ah-danger) !important;
}

/* Admin inherits the same palette without a separate mode preference. */
html[data-theme] body.admin-page{
  --admin-bg:var(--ah-canvas);
  --admin-panel:var(--ah-surface-raised);
  --admin-panel-soft:var(--ah-surface-raised);
  --admin-border:var(--ah-border);
  --admin-muted:var(--ah-text-muted);
  --admin-text:var(--ah-text);
  --admin-accent:var(--ah-accent);
  --admin-accent-dark:var(--ah-accent-hover);
  --admin-warm:var(--ah-warning);
  --admin-danger:var(--ah-danger);
  --admin-success:var(--ah-success);
  background:var(--ah-canvas) !important;
  color:var(--ah-text);
}

html[data-theme] .application-card,
html[data-theme] .admin-action-card,
html[data-theme] .pricing-card,
html[data-theme] .admin-metric-card,
html[data-theme] .admin-detail-card,
html[data-theme] .admin-data-table-wrap,
html[data-theme] .admin-empty-state{
  background:var(--ah-surface-raised) !important;
  border-color:var(--ah-border) !important;
  color:var(--ah-text) !important;
  box-shadow:none !important;
}

html[data-theme="dark"] body{
  background-image:none !important;
}

@media (max-width:719px){
  html[data-theme] .provider-shell{
    background:var(--ah-canvas);
  }

  html[data-theme] .provider-sidebar,
  html[data-theme] .provider-content{
    background:var(--ah-canvas);
  }

  html[data-theme] .provider-dashboard .provider-nav{
    box-shadow:0 -1px 0 var(--ah-border);
  }

  html[data-theme="dark"] .provider-dashboard .provider-nav{
    background:#000000;
    border-color:var(--ah-border);
  }

  html[data-theme] .provider-card-head--upcoming,
  html[data-theme] .provider-card-head--requests{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
  }

  html[data-theme] .provider-card-head--upcoming > :first-child,
  html[data-theme] .provider-card-head--requests > :first-child{
    min-width:0;
  }

  html[data-theme] .provider-card-head--upcoming .parent-card-pill-wrap{
    width:auto;
    margin-left:auto;
    flex:0 0 auto;
  }

  html[data-theme] .provider-card-head--upcoming .provider-card-pill{
    align-self:flex-start;
  }

  html[data-theme] .provider-card-head--upcoming .provider-upcoming-actions{
    width:auto;
    margin-left:auto;
    flex:0 0 auto;
    align-items:flex-end;
  }

  html[data-theme] .provider-card-head--requests .provider-requests-distance-setting{
    width:auto;
    margin-left:auto;
    flex:0 0 auto;
    align-items:flex-end;
  }

  html[data-theme] .availability-day-toggle{
    grid-column:1;
    grid-row:auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    width:100%;
  }

  html[data-theme] .provider-availability-card{
    gap:10px;
  }

  html[data-theme] .provider-availability-card > .provider-card-head{
    margin-bottom:0;
  }

  html[data-theme] .availability-day{
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    padding:12px;
  }

  html[data-theme] .availability-day.is-disabled{
    padding:9px 12px;
  }

  html[data-theme] .availability-slots,
  html[data-theme] .availability-day-actions{
    grid-column:1;
    grid-row:auto;
  }

  html[data-theme] .availability-slot,
  html[data-theme] .availability-slot.has-remove{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
  }

  html[data-theme] .availability-time-field--start{
    grid-column:1;
  }

  html[data-theme] .availability-time-field--end{
    grid-column:2;
  }

  html[data-theme] .availability-slot-sep{
    display:none;
  }

  html[data-theme] .availability-day-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  html[data-theme] .availability-add-slot{
    width:100%;
    justify-content:center;
  }

  html[data-theme] .availability-copy-day{
    width:100%;
    justify-content:center;
  }

  html[data-theme] .availability-remove-slot{
    width:auto;
    grid-column:1 / -1;
    justify-self:end;
  }

  .availability-card-head{
    align-items:flex-start;
  }

  .availability-card-head h2{
    font-size:21px;
  }

  .availability-title-row{
    gap:7px;
    flex-wrap:nowrap;
  }

  .availability-preview-link{
    min-height:44px;
    padding:0;
  }

  .availability-summary{
    gap:4px;
    min-height:0;
    margin:0;
    padding:0;
  }

  .availability-summary-value{
    font-size:11px;
  }

  .availability-overrides-head{
    align-items:flex-end;
  }

  .availability-override-card{
    padding:13px;
  }

  .availability-override-card-head{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
  }

  .availability-date-field{
    grid-column:1 / -1;
  }

  .availability-override-remove{
    grid-column:2;
    grid-row:2;
  }

  .availability-actions{
    bottom:calc(var(--provider-bottom-nav-height,86px) + env(safe-area-inset-bottom) + 10px) !important;
    align-items:stretch;
    padding:10px !important;
  }

  .availability-status{
    width:100%;
  }

  .availability-buttons{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);
  }

  .availability-buttons > button{
    width:100%;
  }
}

@media (max-width:600px){
  html[data-theme] .provider-insights-card{
    gap:10px;
    padding:14px;
  }

  html[data-theme] .provider-insights-card > .provider-card-head{
    margin-bottom:0;
  }

  html[data-theme] .provider-insights-card .provider-pie-grid{
    gap:10px;
  }

  html[data-theme] .provider-insights-card .provider-mini-card{
    display:grid;
    grid-template-columns:108px minmax(0,1fr);
    grid-template-areas:
      "title title"
      "subtitle subtitle"
      "chart legend";
    align-items:center;
    column-gap:12px;
    row-gap:6px;
    padding:12px;
  }

  html[data-theme] .provider-insights-card .provider-mini-card h3{
    grid-area:title;
    font-size:13px;
  }

  html[data-theme] .provider-insights-card .provider-mini-sub{
    grid-area:subtitle;
    line-height:1.4;
  }

  html[data-theme] .provider-insights-card .provider-chart-wrap{
    grid-area:chart;
  }

  html[data-theme] .provider-insights-card .provider-pie{
    width:108px;
    height:108px;
  }

  html[data-theme] .provider-insights-card .provider-pie::after{
    width:70px;
    height:70px;
  }

  html[data-theme] .provider-insights-card .provider-pie-value{
    font-size:17px;
  }

  html[data-theme] .provider-insights-card .provider-legend{
    grid-area:legend;
    gap:6px;
    min-width:0;
  }

  html[data-theme] .provider-insights-card .provider-legend-item{
    display:grid;
    grid-template-columns:8px minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
    font-size:11px;
    line-height:1.35;
  }

  html[data-theme] .provider-insights-card .provider-dot{
    width:8px;
    height:8px;
  }
}

@media (max-width:360px){
  html[data-theme] .provider-insights-card .provider-mini-card{
    grid-template-columns:96px minmax(0,1fr);
    column-gap:10px;
  }

  html[data-theme] .provider-insights-card .provider-pie{
    width:96px;
    height:96px;
  }

  html[data-theme] .provider-insights-card .provider-pie::after{
    width:62px;
    height:62px;
  }
}

html[data-theme] body.parent-dashboard #parentUpgradeCard{
  background:linear-gradient(135deg,color-mix(in srgb,var(--ah-accent) 9%,var(--ah-surface-raised)) 0%,var(--ah-surface-raised) 78%);
  border-color:color-mix(in srgb,var(--ah-accent) 24%,var(--ah-border));
  box-shadow:none;
}

html[data-theme] body.parent-dashboard #parentUpgradeCard .provider-upgrade-btn{
  background:var(--ah-accent);
  border:0;
  color:var(--ah-on-accent);
}

html[data-theme] body.parent-dashboard #parentUpgradeCard .provider-upgrade-close{
  background:transparent;
  border:0;
  color:var(--ah-text-muted);
}

html[data-theme] .parent-caregiver-sort select{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

html[data-theme] .parent-caregiver-menu-popover{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .parent-dashboard #panel-dashboard .parent-next-booking-section,
html[data-theme] .parent-dashboard #panel-dashboard .parent-pending-reviews-section,
html[data-theme] .parent-dashboard #panel-dashboard .parent-pending-requests-section{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}

@media (prefers-reduced-motion:reduce){
  html{
    scroll-behavior:auto !important;
  }

  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }

  body{
    transition:none;
  }

  .availability-slots,
  .availability-day-actions{
    animation:none !important;
  }

  /* Activity movement communicates an unknown-duration task, so retain it at
     a gentler speed while collapsing decorative motion everywhere else. */
  :where(
    .ah-activity-indicator,
    .native-pull-refresh-spinner,
    .parent-discovery-spinner,
    .parent-child-learning-spinner,
    .careplus-native-purchase[aria-busy="true"]::before
  ){
    animation-duration:1.6s !important;
    animation-iteration-count:infinite !important;
  }
}

@media (prefers-reduced-transparency:reduce){
  :where(
    .modal,
    .access-modal,
    .ah-presentation,
    .shift-attendance-modal,
    .booking-help-modal,
    .parent-booking-modal,
    .safety-action-modal,
    .global-banner
  ){
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  :where(.modal,.access-modal,.ah-presentation,.shift-attendance-modal,.booking-help-modal,.parent-booking-modal,.safety-action-modal){
    background:var(--ah-overlay) !important;
  }
}

@media (forced-colors:active){
  :where(button,a,input,select,textarea,summary,[role="button"],[tabindex]):focus-visible{
    outline:3px solid Highlight !important;
    outline-offset:2px !important;
  }

  :where(.ah-status,.ah-inline-feedback,.ah-system-state,.provider-form-status,.booking-late-form-status){
    border:1px solid CanvasText;
  }

  :where(.ah-activity-indicator,.native-pull-refresh-spinner,.parent-discovery-spinner,.parent-child-learning-spinner){
    border-color:GrayText;
    border-top-color:Highlight;
  }
}

html[data-theme] .parent-caregiver-discovery-card{
  background:transparent;
  border-color:var(--ah-border);
}

html[data-theme] .parent-inline-discovery-summary{
  background:var(--ah-accent-soft);
  color:var(--ah-accent);
}

html[data-theme] .parent-provider-row--discovery{
  background:var(--ah-surface-raised);
  border-color:var(--ah-border);
  color:var(--ah-text);
}

html[data-theme] .parent-provider-row--discovery.is-pressed{
  border-color:var(--ah-border-strong);
}

html[data-theme] .parent-provider-row--discovery .parent-provider-actions{
  border-color:var(--ah-border);
}

html[data-theme] .parent-provider-drive-estimate{
  background:transparent;
  border-color:transparent;
  color:var(--ah-accent);
}

html[data-theme] .parent-provider-row--discovery .parent-provider-secondary-actions .parent-provider-link{
  color:var(--ah-accent) !important;
}

html[data-theme] .parent-provider-row--discovery .parent-provider-secondary-actions .parent-provider-link:hover:not([data-expand-on-interaction]){
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .parent-find-submit svg circle,
html[data-theme] .parent-find-submit svg path{
  stroke:currentColor;
}

/* Unified action system
   Keep navigation, chips, calendar cells, stars, and icon-only controls in
   their purpose-built shapes. Every text action uses the same hierarchy. */
:root{
  --ah-action-radius:var(--ah-radius-control);
  --ah-action-radius-compact:var(--ah-radius-control);
  --ah-action-height:var(--ah-control-height-regular);
  --ah-action-height-compact:var(--ah-control-height-compact);
  --ah-action-font-weight:var(--ah-font-weight-semibold);
  --ah-action-primary-bg:var(--ah-accent);
  --ah-action-primary-hover-bg:var(--ah-surface-hover);
  --ah-action-secondary-bg:var(--ah-surface-soft);
  --ah-action-secondary-border:var(--ah-border);
}

/* Neutral is the fallback hover language for devices that actually hover.
   Touch WebKit retains :hover after a tap, so never apply this paint there. */
@media (hover:hover) and (pointer:fine){
  html[data-theme] :where(
    button:not([class*="hitarea"]):not(.parent-saved-browse-btn):not(.calendar-day,.calendar-today,.calendar-nav),
    [role="button"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    a[class*="btn"],
    a[class*="button"]
  ):where(:not([data-expand-on-interaction])):hover:not(:disabled){
    border-color:var(--ah-border-strong) !important;
    background:var(--ah-surface-hover) !important;
    color:var(--ah-text) !important;
    box-shadow:none !important;
    filter:none !important;
    transform:none !important;
  }
}

/* Child avatars are tabs, not filled buttons. Mobile Safari can retain
   :hover after a tap, so keep the entire tab transparent and let the avatar
   ring/checkmark carry the selected state. */
html[data-theme] body.parent-dashboard #panel-children .parent-child-card,
html[data-theme] body.parent-dashboard #panel-children .parent-child-card:hover,
html[data-theme] body.parent-dashboard #panel-children .parent-child-card:focus,
html[data-theme] body.parent-dashboard #panel-children .parent-child-card:active,
html[data-theme] body.parent-dashboard #panel-children .parent-child-card.is-selected{
  border-color:transparent !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Presses stay at full opacity. Dimming made the first tap look unselected and
   was especially misleading for stars, toggles, and selected time slots. */
html[data-theme] :where(
  button:not([class*="hitarea"]),
  [role="button"],
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  a[class*="btn"],
  a[class*="button"]
):active:not(:disabled):not([aria-disabled="true"]){
  opacity:1 !important;
  filter:none !important;
  transition-duration:0s !important;
}

/* A message row behaves like a button only so its timestamp and delivery
   details can be toggled with touch or the keyboard. Keep the row itself
   visually transparent: iOS WebKit retains :hover after a tap, which would
   otherwise paint a full-width grey rectangle behind the message. */
html[data-theme] .chat-modal .chat-message[data-message-details-key],
html[data-theme] .chat-modal .chat-message[data-message-details-key]:hover,
html[data-theme] .chat-modal .chat-message[data-message-details-key]:active,
html[data-theme] .chat-modal .chat-message[data-message-details-key].is-meta-visible{
  border-color:transparent !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
  -webkit-tap-highlight-color:transparent;
}

html[data-theme] .chat-modal .chat-message[data-message-details-key]:active{
  opacity:1 !important;
}

/* Care+ plans are radio tabs, not action buttons. Mobile Safari retains
   :hover after a tap, so the global action feedback above must never mask the
   selected border or tint the plan surface. */
html[data-theme] .careplus-native-plan.careplus-tier-tab{
  -webkit-appearance:none;
  appearance:none;
  -webkit-tap-highlight-color:transparent;
}

html[data-theme] .careplus-native-plan.careplus-tier-tab:hover:not(:disabled),
html[data-theme] .careplus-native-plan.careplus-tier-tab:active:not(:disabled){
  background:var(--ah-surface) !important;
  opacity:1 !important;
  filter:none !important;
  transform:none !important;
}

html[data-theme] .careplus-native-plan.careplus-tier-tab:is(.is-selected,[aria-checked="true"]),
html[data-theme] .careplus-native-plan.careplus-tier-tab:is(.is-selected,[aria-checked="true"]):hover:not(:disabled),
html[data-theme] .careplus-native-plan.careplus-tier-tab:is(.is-selected,[aria-checked="true"]):active:not(:disabled),
html[data-theme] .careplus-native-plan.careplus-tier-tab:is(.is-selected,[aria-checked="true"]):focus{
  border-color:var(--ah-text) !important;
  background:var(--ah-surface) !important;
  box-shadow:0 0 0 1px var(--ah-text) !important;
  opacity:1 !important;
}

html[data-theme] .careplus-native-plan.careplus-tier-tab:focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 28%,transparent);
  outline-offset:2px;
}

html[data-theme] :where(
  .ah-action,
  .ah-button,
  .btn:not(.learn):not(.btn-social):not(.btn-login-link),
  .landing-pill,
  .auth-flow-action,
  .partner-signup-btn,
  .dashboard-retry-btn,
  .provider-upgrade-btn,
  .provider-header-btn:not(.provider-header-profile-btn),
  .provider-primary-btn,
  .provider-secondary-btn,
  .provider-reach-btn,
  .resource-back-btn,
  .resource-download-btn,
  .account-password-action,
  .provider-family-profile-action,
  .shift-attendance-submit,
  .shift-attendance-dismiss,
  .caregiver-booking-cancel-confirm,
  .caregiver-parent-alert-btn,
  .account-delete-trigger,
  .parent-child-delete-btn,
  .parent-meet-help-withdraw,
  .account-deletion-apple button,
  .account-deletion-actions button,
  .account-deletion-done,
  .payment-method-save,
  .coverage-waitlist-submit,
  .coverage-us-waitlist-button,
  .coverage-search-result-action,
  .care-plan-acknowledge,
  .video-call-consent-agree,
  .video-call-consent-cancel,
  .meet-call-prompt-join,
  .meet-call-prompt-complete,
  .meet-outcome-approve,
  .meet-outcome-decline,
  .cg-action,
  .cg-profile-retry,
  .safety-action-submit,
  .safety-action-cancel,
  .required-app-update-action,
  .signup-choice-action,
  .primary-button,
  .outline-button,
  .soft-button,
  .parent-upgrade-btn,
  .grow-primary-action,
  .grow-secondary-action,
  .grow-v2-primary,
  .grow-v2-secondary,
  .grow-open-button,
  .grow-portal-start,
  .grow-site-button,
  .create-profile-primary,
  .create-profile-secondary
){
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  min-height:var(--ah-action-height);
  align-items:center;
  justify-content:center;
  gap:7px;
  box-sizing:border-box;
  padding:10px 16px;
  border:1px solid var(--ah-border-strong);
  border-radius:var(--ah-action-radius) !important;
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  box-shadow:none !important;
  font:inherit;
  font-size:13px;
  font-weight:var(--ah-action-font-weight) !important;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transform:none !important;
  transition:background-color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),border-color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),box-shadow var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),opacity var(--ah-motion-duration-quick) var(--ah-motion-ease-fade);
}

html[data-theme] .caregiver-booking-card-attendance .provider-attendance-btn.is-overdue:not(:disabled){
  border-color:var(--ah-danger,#b42318) !important;
  background:var(--ah-danger,#b42318) !important;
  color:#fff !important;
}

html[data-theme] :where(
  .ah-action--compact,
  .parent-provider-btn,
  .parent-booking-btn,
  .parent-booking-cancel,
  .calendar-action-btn,
  .provider-request-btn,
  .provider-cancel-btn,
  .booking-address-btn,
  .parent-meet-pick,
  .parent-meet-complete,
  .parent-meet-decide,
  .family-card-toggle,
  .chat-modal .chat-request-btn,
  .chat-booking-btn,
  .parent-page-btn,
  .provider-page-btn,
  .family-mini-btn,
  .provider-attendance-btn,
  .availability-header-save-btn,
  .meet-call-prompt-later,
  .meet-outcome-later,
  .meet-call-dock-action,
  .meet-call-dock-complete
){
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  min-height:var(--ah-action-height-compact);
  align-items:center;
  justify-content:center;
  gap:6px;
  box-sizing:border-box;
  padding:8px 12px;
  border:1px solid var(--ah-border-strong);
  border-radius:var(--ah-action-radius-compact) !important;
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  box-shadow:none !important;
  font:inherit;
  font-size:12px;
  font-weight:var(--ah-action-font-weight) !important;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transform:none !important;
  transition:background-color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),border-color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),box-shadow var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),opacity var(--ah-motion-duration-quick) var(--ah-motion-ease-fade);
}

html[data-theme] :where(
  .ah-action--secondary,
  .ah-button--secondary,
  .provider-header-btn:not(.provider-header-btn--primary):not(.provider-header-btn--danger):not(.provider-header-btn--success):not(.provider-header-profile-btn),
  .provider-secondary-btn,
  .account-password-action--secondary,
  .shift-attendance-dismiss,
  .auth-secondary-action,
  .resource-back-btn,
  .booking-address-btn,
  .family-card-toggle,
  .btn.secondary,
  .btn.outline,
  .btn.ghost,
  .parent-provider-btn:not(.primary),
  .parent-booking-btn:not(.primary):not(.danger),
  .calendar-action-btn--ghost,
  .chat-booking-btn.ghost,
  .parent-page-btn,
  .provider-page-btn,
  .video-call-consent-cancel,
  .meet-call-prompt-complete,
  .meet-outcome-decline,
  .safety-action-cancel,
  .outline-button,
  .soft-button,
  .grow-secondary-action,
  .grow-v2-secondary,
  .create-profile-secondary
){
  border-color:var(--ah-action-secondary-border) !important;
  background:var(--ah-action-secondary-bg) !important;
  color:var(--ah-text) !important;
}

html[data-theme] :where(
  .ah-action--primary,
  .ah-button--primary,
  .btn:not(.secondary):not(.outline):not(.ghost):not(.learn):not(.btn-social):not(.btn-login-link):not(.auth-secondary-action),
  .auth-primary-action,
  .auth-flow-action--solid,
  .landing-pill--solid,
  .partner-signup-btn,
  .dashboard-retry-btn,
  .provider-upgrade-btn,
  .provider-header-btn--primary,
  .provider-primary-btn,
  .provider-reach-btn,
  .resource-download-btn,
  .account-password-action--primary,
  .provider-family-profile-action--primary,
  .shift-attendance-submit,
  .parent-provider-btn.primary,
  .parent-booking-btn.primary,
  .calendar-action-btn--primary,
  .parent-meet-pick,
  .parent-meet-decide,
  .chat-booking-btn.primary,
  .parent-time-submit,
  .parent-find-submit,
  .parent-saved-browse-btn,
  .chat-send-btn,
  .save-btn,
  .account-deletion-done,
  .payment-method-save,
  .coverage-waitlist-submit,
  .coverage-us-waitlist-button,
  .coverage-search-result-action,
  .care-plan-acknowledge,
  .video-call-consent-agree,
  .meet-call-prompt-join,
  .meet-outcome-approve,
  .cg-action:not(.cg-action--secondary):not(.cg-action--withdraw),
  .cg-profile-retry,
  .safety-action-submit:not(.is-danger),
  .required-app-update-action,
  .signup-choice-action,
  .primary-button,
  .parent-upgrade-btn,
  .grow-primary-action,
  .grow-v2-primary,
  .grow-open-button,
  .grow-portal-start,
  .grow-site-button,
  .create-profile-primary
){
  border-color:var(--ah-action-primary-bg) !important;
  background:var(--ah-action-primary-bg) !important;
  color:var(--ah-on-accent) !important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] :where(
    .ah-action--primary,
    .ah-button--primary,
    .btn:not(.secondary):not(.outline):not(.ghost):not(.learn):not(.btn-social):not(.btn-login-link):not(.auth-secondary-action),
    .auth-primary-action,
    .auth-flow-action--solid,
    .landing-pill--solid,
    .partner-signup-btn,
    .dashboard-retry-btn,
    .provider-upgrade-btn,
    .provider-header-btn--primary,
    .provider-primary-btn,
    .provider-reach-btn,
    .resource-download-btn,
    .account-password-action--primary,
    .provider-family-profile-action--primary,
    .shift-attendance-submit,
    .parent-provider-btn.primary,
    .parent-booking-btn.primary,
    .calendar-action-btn--primary,
    .parent-meet-pick,
    .parent-meet-decide,
    .chat-booking-btn.primary,
    .parent-time-submit,
    .parent-find-submit,
    .chat-send-btn,
    .save-btn,
    .account-deletion-done,
    .payment-method-save,
    .coverage-waitlist-submit,
    .coverage-us-waitlist-button,
    .coverage-search-result-action,
    .care-plan-acknowledge,
    .video-call-consent-agree,
    .meet-call-prompt-join,
    .meet-outcome-approve,
    .cg-action:not(.cg-action--secondary):not(.cg-action--withdraw),
    .cg-profile-retry,
    .safety-action-submit:not(.is-danger),
    .required-app-update-action,
    .signup-choice-action,
    .primary-button,
    .parent-upgrade-btn,
    .grow-primary-action,
    .grow-v2-primary,
    .grow-open-button,
    .grow-portal-start,
    .grow-site-button,
    .create-profile-primary
  ):where(:not([data-expand-on-interaction])):hover:not(:disabled){
    border-color:var(--ah-border-strong) !important;
    background:var(--ah-action-primary-hover-bg) !important;
    color:var(--ah-text) !important;
    box-shadow:none !important;
    filter:none;
    transform:none;
  }
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] :where(
    .ah-action--secondary,
    .ah-button--secondary,
    .provider-header-btn:not(.provider-header-btn--primary):not(.provider-header-btn--danger):not(.provider-header-btn--success):not(.provider-header-profile-btn),
    .provider-secondary-btn,
    .account-password-action--secondary,
    .shift-attendance-dismiss,
    .auth-secondary-action,
    .resource-back-btn,
    .booking-address-btn,
    .family-card-toggle,
    .btn.secondary,
    .btn.outline,
    .btn.ghost,
    .parent-provider-btn:not(.primary),
    .parent-booking-btn:not(.primary):not(.danger),
    .calendar-action-btn--ghost,
    .chat-booking-btn.ghost,
    .parent-page-btn,
    .provider-page-btn,
    .video-call-consent-cancel,
    .meet-call-prompt-complete,
    .meet-outcome-decline,
    .safety-action-cancel,
    .outline-button,
    .soft-button,
    .grow-secondary-action,
    .grow-v2-secondary,
    .create-profile-secondary
  ):where(:not([data-expand-on-interaction])):hover:not(:disabled){
    border-color:var(--ah-border-strong) !important;
    background:var(--ah-surface-hover) !important;
    color:var(--ah-text) !important;
    box-shadow:none;
    filter:none;
    transform:none;
  }
}

html[data-theme] :where(
  .ah-action--danger,
  .provider-header-btn--danger,
  .parent-booking-btn.danger,
  .parent-booking-cancel,
  .calendar-action-btn--danger,
  .provider-request-btn.decline,
  .chat-modal .chat-request-btn.decline,
  .provider-cancel-btn,
  .caregiver-parent-alert-btn,
  .parent-child-delete-btn,
  .account-delete-trigger,
  .provider-family-profile-action--danger,
  .parent-meet-help-withdraw,
  .cg-action--withdraw,
  .safety-action-submit.is-danger,
  .is-destructive
){
  border-color:color-mix(in srgb,var(--ah-danger) 40%,var(--ah-border)) !important;
  background:var(--ah-danger-soft) !important;
  color:var(--ah-danger) !important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] :where(
    .ah-action--danger,
    .provider-header-btn--danger,
    .parent-booking-btn.danger,
    .parent-booking-cancel,
    .calendar-action-btn--danger,
    .provider-request-btn.decline,
    .chat-modal .chat-request-btn.decline,
    .provider-cancel-btn,
    .caregiver-parent-alert-btn,
    .parent-child-delete-btn,
    .account-delete-trigger,
    .provider-family-profile-action--danger,
    .parent-meet-help-withdraw,
    .cg-action--withdraw,
    .safety-action-submit.is-danger,
    .is-destructive
  ):where(:not([data-expand-on-interaction])):hover:not(:disabled){
    border-color:var(--ah-danger) !important;
    background:color-mix(in srgb,var(--ah-danger) 17%,var(--ah-surface-raised)) !important;
    color:var(--ah-danger) !important;
    box-shadow:none;
    transform:none;
  }
}

/* Quiet actions keep local add/remove controls visible without creating a row of boxes. */
html[data-theme] :where(.ah-action--quiet,.ah-button--quiet){
  min-height:var(--ah-action-height-compact);
  padding:6px 8px;
  border-color:transparent !important;
  background:transparent !important;
  color:var(--ah-text-secondary) !important;
  box-shadow:none !important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] :where(.ah-action--quiet,.ah-button--quiet):where(:not([data-expand-on-interaction])):hover:not(:disabled){
    border-color:transparent !important;
    background:var(--ah-surface-hover) !important;
    color:var(--ah-text) !important;
  }
}

/* Scale only the nearest participating control. Menus stay in their usual
   stacking context, and touch does not pick up a sticky hover state. */
html[data-theme] :where([data-expand-on-interaction]):focus-visible{
  outline:2px solid var(--ah-accent);
  outline-offset:2px;
}

.chat-thread,
.desktop-message-dock__thread{
  --ah-interaction-scale:1.01;
}

@media (prefers-reduced-motion:no-preference){
  html [data-expand-on-interaction]{
    transition:scale var(--ah-motion-duration-quick,120ms) var(--ah-motion-ease-standard,ease-out);
  }

  [data-expand-on-interaction]:not(
    :disabled,[aria-disabled="true"],[aria-haspopup="menu"][aria-expanded="true"],
    :has(> input:disabled),:has([aria-haspopup="menu"][aria-expanded="true"])
  ):is(:focus-visible,:has(:focus-visible)):not(:has([data-expand-on-interaction]:focus-visible,[data-expand-on-interaction] :focus-visible)){
    scale:var(--ah-interaction-scale,1.015);
  }

  @media (hover:hover) and (pointer:fine){
    [data-expand-on-interaction]:not(
      :disabled,[aria-disabled="true"],[aria-haspopup="menu"][aria-expanded="true"],
      :has(> input:disabled),:has([aria-haspopup="menu"][aria-expanded="true"])
    ):hover:not(:has([data-expand-on-interaction]:is(:hover,:focus-visible),[data-expand-on-interaction] :focus-visible)){
      scale:var(--ah-interaction-scale,1.015);
    }
  }
}

html[data-theme] :where(.ah-action--quiet.ah-action--danger,.ah-button--quiet.ah-button--danger){
  border-color:transparent !important;
  background:transparent !important;
  color:var(--ah-danger) !important;
}

@media (hover:hover) and (pointer:fine){
  html[data-theme] :where(.ah-action--quiet.ah-action--danger,.ah-button--quiet.ah-button--danger):where(:not([data-expand-on-interaction])):hover:not(:disabled){
    border-color:transparent !important;
    background:var(--ah-danger-soft) !important;
    color:var(--ah-danger) !important;
  }
}

html[data-theme] :where(.account-deletion-submit,.caregiver-booking-cancel-confirm){
  border-color:var(--ah-danger) !important;
  background:var(--ah-danger) !important;
  color:#fff !important;
}

html[data-theme] :where(.provider-request-btn.accept,.chat-modal .chat-request-btn.accept,.provider-header-btn--success,.parent-meet-complete){
  border-color:var(--ah-success) !important;
  background:var(--ah-success) !important;
  color:#fff !important;
}

html[data-theme] :where(
  .ah-action,
  .btn,
  .landing-pill,
  .auth-flow-action,
  .partner-signup-btn,
  .dashboard-retry-btn,
  .provider-upgrade-btn,
  .provider-header-btn,
  .provider-primary-btn,
  .provider-secondary-btn,
  .provider-reach-btn,
  .resource-back-btn,
  .resource-download-btn,
  .account-password-action,
  .provider-family-profile-action,
  .shift-attendance-submit,
  .shift-attendance-dismiss,
  .caregiver-booking-cancel-confirm,
  .caregiver-parent-alert-btn,
  .account-delete-trigger,
  .parent-child-delete-btn,
  .parent-meet-help-withdraw,
  .parent-saved-browse-btn,
  .parent-provider-btn,
  .parent-booking-btn,
  .parent-booking-cancel,
  .calendar-day,
  .calendar-today,
  .calendar-nav,
  .calendar-action-btn,
  .provider-request-btn,
  .provider-cancel-btn,
  .booking-address-btn,
  .parent-meet-pick,
  .parent-meet-complete,
  .parent-meet-decide,
  .family-card-toggle,
  .chat-modal .chat-request-btn,
  .chat-booking-btn,
  .parent-page-btn,
  .provider-page-btn,
  .family-mini-btn,
  .provider-attendance-btn,
  .account-deletion-apple button,
  .account-deletion-actions button,
  .account-deletion-done,
  .payment-method-save,
  .coverage-waitlist-submit,
  .coverage-us-waitlist-button,
  .coverage-search-result-action,
  .care-plan-acknowledge,
  .video-call-consent-agree,
  .video-call-consent-cancel,
  .meet-call-prompt-join,
  .meet-call-prompt-complete,
  .meet-call-prompt-later,
  .meet-outcome-approve,
  .meet-outcome-decline,
  .meet-outcome-later,
  .meet-call-dock-action,
  .meet-call-dock-complete,
  .cg-action,
  .cg-profile-retry,
  .safety-action-submit,
  .safety-action-cancel,
  .required-app-update-action,
  .signup-choice-action,
  .primary-button,
  .outline-button,
  .soft-button,
  .parent-upgrade-btn,
  .grow-primary-action,
  .grow-secondary-action,
  .grow-v2-primary,
  .grow-v2-secondary,
  .grow-open-button,
  .grow-portal-start,
  .grow-site-button,
  .create-profile-primary,
  .create-profile-secondary
):focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 30%,transparent) !important;
  outline-offset:2px;
}

html[data-theme] :where(
  .ah-action,
  .btn,
  .landing-pill,
  .auth-flow-action,
  .partner-signup-btn,
  .dashboard-retry-btn,
  .provider-upgrade-btn,
  .provider-header-btn,
  .provider-primary-btn,
  .provider-secondary-btn,
  .provider-reach-btn,
  .resource-back-btn,
  .resource-download-btn,
  .account-password-action,
  .provider-family-profile-action,
  .shift-attendance-submit,
  .shift-attendance-dismiss,
  .caregiver-booking-cancel-confirm,
  .caregiver-parent-alert-btn,
  .account-delete-trigger,
  .parent-child-delete-btn,
  .parent-meet-help-withdraw,
  .parent-provider-btn,
  .parent-booking-btn,
  .parent-booking-cancel,
  .calendar-action-btn,
  .provider-request-btn,
  .provider-cancel-btn,
  .booking-address-btn,
  .parent-meet-pick,
  .parent-meet-complete,
  .parent-meet-decide,
  .family-card-toggle,
  .chat-modal .chat-request-btn,
  .chat-booking-btn,
  .parent-page-btn,
  .provider-page-btn,
  .family-mini-btn,
  .provider-attendance-btn,
  .account-deletion-apple button,
  .account-deletion-actions button,
  .account-deletion-done,
  .payment-method-save,
  .coverage-waitlist-submit,
  .coverage-us-waitlist-button,
  .coverage-search-result-action,
  .care-plan-acknowledge,
  .video-call-consent-agree,
  .video-call-consent-cancel,
  .meet-call-prompt-join,
  .meet-call-prompt-complete,
  .meet-call-prompt-later,
  .meet-outcome-approve,
  .meet-outcome-decline,
  .meet-outcome-later,
  .meet-call-dock-action,
  .meet-call-dock-complete,
  .cg-action,
  .cg-profile-retry,
  .safety-action-submit,
  .safety-action-cancel,
  .required-app-update-action,
  .signup-choice-action,
  .primary-button,
  .outline-button,
  .soft-button,
  .parent-upgrade-btn,
  .grow-primary-action,
  .grow-secondary-action,
  .grow-v2-primary,
  .grow-v2-secondary,
  .grow-open-button,
  .grow-portal-start,
  .grow-site-button,
  .create-profile-primary,
  .create-profile-secondary
):disabled{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-muted) !important;
  color:var(--ah-text-muted) !important;
  box-shadow:none !important;
  cursor:not-allowed;
  filter:none;
  opacity:1 !important;
  transform:none !important;
}

html[data-theme] .provider-profile-logout .account-logout-trigger,
html[data-theme] .admin-logout-trigger{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .provider-profile-logout .account-logout-trigger:where(:not([data-expand-on-interaction])):hover,
html[data-theme] .admin-logout-trigger:hover{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] :where(.account-edit-button,.parent-provider-link,.text-link-button,.parent-meet-help-trigger){
  border:0;
  border-radius:var(--ah-action-radius-compact);
  background:transparent;
  color:var(--ah-accent);
  box-shadow:none;
  font:inherit;
  font-weight:var(--ah-action-font-weight);
  cursor:pointer;
  transform:none;
}

html[data-theme] :where(.account-edit-button,.parent-provider-link,.text-link-button,.parent-meet-help-trigger):where(:not([data-expand-on-interaction])):hover{
  background:var(--ah-surface-hover);
  color:var(--ah-text);
  transform:none;
}

html[data-theme] :where(.account-edit-button,.parent-provider-link,.text-link-button,.parent-meet-help-trigger):focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 30%,transparent);
  outline-offset:2px;
}

html[data-theme] .auth-form-actions{
  display:flex;
  gap:12px;
  margin-top:32px;
}

html[data-theme] .auth-form-actions > *{
  flex:1 1 0;
}

html[data-theme] .auth-submit-action{
  width:100%;
  margin-top:8px;
}

/* Password visibility is an input affordance, not a competing form action. */
html[data-theme] .password-visibility-control{
  position:relative;
  display:block;
  width:100%;
}

html[data-theme] .password-visibility-control > input{
  box-sizing:border-box;
  width:100%;
  min-height:48px;
  padding-right:64px !important;
}

html[data-theme] .password-visibility-control > :where(.password-visibility-toggle,.togglePassword){
  appearance:none;
  -webkit-appearance:none;
  position:absolute;
  z-index:1;
  top:2px;
  right:2px;
  bottom:2px;
  left:auto;
  display:inline-flex;
  box-sizing:border-box;
  width:54px;
  min-width:54px;
  min-height:44px;
  height:auto;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0 8px;
  border:0 !important;
  border-radius:8px;
  background:transparent !important;
  color:var(--ah-accent) !important;
  box-shadow:none !important;
  font:inherit;
  font-size:12px;
  font-weight:var(--ah-action-font-weight);
  line-height:1;
  cursor:pointer;
  touch-action:manipulation;
  transform:none !important;
}

html[data-theme] .password-visibility-control > :where(.password-visibility-toggle,.togglePassword):hover{
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
  transform:none !important;
}

html[data-theme] .password-visibility-control > :where(.password-visibility-toggle,.togglePassword):focus-visible{
  outline:2px solid color-mix(in srgb,var(--ah-accent) 45%,transparent);
  outline-offset:-3px;
}

html[data-theme] .signup-choice-action{
  width:100%;
}

html[data-theme] :where(.hero-provider-action,.hero-message-btn,.update-log-btn){
  min-height:var(--ah-action-height-compact);
  padding:8px 12px;
  border-radius:var(--ah-action-radius-compact) !important;
  font-size:12px;
}

html[data-theme] #heroCloseResultsBtn{
  margin-top:8px;
}

html[data-theme] .hero-carousel-arrow{
  position:absolute;
  top:40%;
  z-index:1;
  display:grid;
  width:36px;
  height:36px;
  place-items:center;
  padding:0;
  border:1px solid var(--ah-border-strong);
  border-radius:50%;
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  box-shadow:none;
  font:inherit;
  font-size:20px;
  cursor:pointer;
  transform:translateY(-50%);
}

html[data-theme] .hero-carousel-prev{
  left:-6px;
}

html[data-theme] .hero-carousel-next{
  right:-6px;
}

html[data-theme] .hero-carousel-arrow:hover{
  border-color:var(--ah-border-strong);
  background:var(--ah-surface-hover);
  color:var(--ah-text);
}

html[data-theme] .two-factor-modal-action{
  width:100%;
  margin-top:12px;
}

html[data-theme] .two-factor-modal-action + .two-factor-modal-action{
  margin-top:10px;
}

@media (max-width:719px){
  html[data-theme] .provider-profile-logout,
  html[data-theme] .provider-profile-logout .account-logout-trigger{
    width:100%;
  }
}

@media (max-width:520px){
  html[data-theme] .auth-form-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}

/* Caregiver Home uses the same neutral/primary action hierarchy as Parent.
   Declining remains available without presenting it as a destructive account action. */
html[data-theme] .caregiver-home-section .provider-request-btn.accept.ah-button--primary{
  border-color:var(--ah-accent) !important;
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}
html[data-theme] .caregiver-home-section .provider-request-btn.accept.ah-button--primary:where(:not([data-expand-on-interaction])):hover:not(:disabled){
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}
html[data-theme] .caregiver-home-section .provider-request-btn.decline.ah-button--secondary{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
}
html[data-theme] .caregiver-home-section .provider-request-btn.decline.ah-button--secondary:hover:not(:disabled){
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}
html[data-theme] .parent-meet-request-summary .parent-meet-action.ah-button--primary{
  border-color:var(--ah-accent) !important;
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}
html[data-theme] .parent-meet-request-summary .parent-meet-action.ah-button--secondary{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
}
html[data-theme] .parent-meet-request-summary .parent-meet-action:where(:not([data-expand-on-interaction])).ah-button--primary:hover:not(:disabled),
html[data-theme] .parent-meet-request-summary .parent-meet-action:where(:not([data-expand-on-interaction])).ah-button--secondary:hover:not(:disabled){
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
  color:var(--ah-text) !important;
}

html[data-theme] .caregiver-attention-action-hitarea .caregiver-attention-action-btn{
  border-color:var(--ah-warning) !important;
  background:var(--ah-warning) !important;
  color:var(--ah-on-warning) !important;
  box-shadow:none !important;
}

html[data-theme] :where(.caregiver-attendance-attention-row:not([data-expand-on-interaction])) > .caregiver-attention-action-hitarea:hover:not(:disabled) .caregiver-attention-action-btn{
  border-color:color-mix(in srgb,var(--ah-warning) 88%,#000) !important;
  background:color-mix(in srgb,var(--ah-warning) 88%,#000) !important;
  color:var(--ah-on-warning) !important;
}

html[data-theme] .caregiver-attention-action-hitarea:focus-visible{
  outline:2px solid var(--ah-warning) !important;
  outline-color:var(--ah-warning) !important;
  outline-offset:2px;
}

/* Wait for the saved profile state before revealing the system switch. */
html[data-theme] .provider-profile-summary .provider-visibility-switch:not(.is-ready){
  visibility:hidden;
}

/* Caregiver booking cards open the same semantic action sheet used by Parent. */
html[data-theme] .caregiver-booking-help-card{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
  box-shadow:var(--ah-shadow-lg,0 24px 64px rgba(0,0,0,.28)) !important;
}
html[data-theme] .shift-attendance-card > .shift-attendance-eyebrow{
  color:var(--ah-accent) !important;
  font-weight:700;
  letter-spacing:.105em;
}
html[data-theme] .shift-attendance-card > h2{
  color:var(--ah-text) !important;
  font-weight:700;
  letter-spacing:-.02em;
}
html[data-theme] .caregiver-booking-help-card h2,
html[data-theme] .caregiver-booking-help-card .booking-help-menu-copy strong{
  color:var(--ah-text) !important;
}
html[data-theme] .caregiver-booking-help-card > p,
html[data-theme] .caregiver-booking-help-card .booking-help-menu-copy small{
  color:var(--ah-text-muted) !important;
}
html[data-theme] .caregiver-booking-help-actions .booking-help-menu-item{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
}
html[data-theme] .caregiver-booking-help-actions .booking-help-menu-item:hover:not(:disabled){
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
}
html[data-theme] .caregiver-booking-help-actions .booking-help-menu-item.is-destructive,
html[data-theme] .caregiver-booking-help-actions .booking-help-menu-item.is-destructive .booking-help-menu-copy strong{
  color:var(--ah-danger) !important;
}

/* Family profile: keep primary actions compact and safety actions quiet. */
html[data-theme] .provider-family-profile-actions > .provider-family-profile-action{
  min-height:44px;
  padding:7px 12px;
  border-radius:10px !important;
  font-size:12px;
}
html[data-theme] #providerFamilyProfileMessage{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
  box-shadow:none !important;
}
html[data-theme] #providerFamilyProfileRemove{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-danger) !important;
  box-shadow:none !important;
}
html[data-theme] #providerFamilyProfileRemove:hover:not(:disabled){
  border-color:color-mix(in srgb,var(--ah-danger) 34%,var(--ah-border)) !important;
  background:color-mix(in srgb,var(--ah-danger) 7%,var(--ah-surface-soft)) !important;
  color:var(--ah-danger) !important;
}
html[data-theme] .safety-action-submit.is-danger{
  border:1px solid var(--ah-border) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-danger) !important;
  box-shadow:none !important;
}
html[data-theme] .safety-action-submit:not(.is-danger){
  border:1px solid var(--ah-text) !important;
  background:var(--ah-text) !important;
  color:var(--ah-surface-raised) !important;
  box-shadow:none !important;
}
html[data-theme] .safety-action-submit:not(.is-danger):hover:not(:disabled){
  border-color:var(--ah-text-secondary) !important;
  background:var(--ah-text-secondary) !important;
  color:var(--ah-surface-raised) !important;
}
html[data-theme] .safety-action-submit.is-danger:hover:not(:disabled){
  border-color:color-mix(in srgb,var(--ah-danger) 34%,var(--ah-border)) !important;
  background:color-mix(in srgb,var(--ah-danger) 7%,var(--ah-surface-soft)) !important;
  color:var(--ah-danger) !important;
}
html[data-theme] .provider-family-profile-safety-actions{
  gap:2px;
  padding-left:2px;
}
html[data-theme] .provider-family-profile-safety-actions button{
  min-height:44px;
  padding:5px 7px;
  border:0 !important;
  border-radius:8px;
  background:transparent !important;
  color:var(--ah-text-muted) !important;
  box-shadow:none !important;
  font-size:11px;
  font-weight:700;
}
html[data-theme] .provider-family-profile-safety-actions #providerFamilyProfileReport:hover{
  border:0 !important;
  background:transparent !important;
  color:var(--ah-text) !important;
}
html[data-theme] .provider-family-profile-safety-actions #providerFamilyProfileBlock:hover{
  border:0 !important;
  background:transparent !important;
  color:var(--ah-danger) !important;
}

/* Public profile editor: one compact hierarchy with flat qualification rows. */
html[data-theme] .settings-screen__header{
  grid-template-columns:minmax(64px,auto) minmax(0,1fr) minmax(64px,auto);
}
html[data-theme] .settings-screen__header-action-slot{
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:flex-end;
}
html[data-theme] .settings-screen__header-action-slot:empty{
  min-height:44px;
}
html[data-theme] .settings-screen__header-action-slot .provider-profile-card-sub{
  min-height:44px;
  margin:0;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  color:var(--ah-accent) !important;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
html[data-theme] .settings-screen__header-action-slot .provider-profile-card-sub:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}
html[data-theme] .provider-public-profile-editor{
  display:grid;
  gap:0;
}
html[data-theme] .provider-public-profile-editor .provider-profile-about{
  gap:18px;
  padding:0 0 22px !important;
  border-bottom:1px solid var(--ah-border) !important;
}
html[data-theme] .provider-public-profile-editor .provider-profile-card-head{
  margin:0;
}
html[data-theme] .provider-public-profile-editor .provider-profile-card-head h3,
html[data-theme] .provider-public-profile-editor .provider-section-title h3{
  color:var(--ah-text) !important;
  font-size:18px;
  font-weight:700;
  line-height:1.25;
}
html[data-theme] .provider-public-profile-editor .provider-form-field{
  gap:8px;
  margin:0;
  padding:0;
  color:var(--ah-text) !important;
}
html[data-theme] .provider-public-profile-editor .provider-profile-field-label{
  color:var(--ah-text) !important;
  font-size:14px;
  font-weight:700;
  line-height:1.3;
}
html[data-theme] .provider-public-profile-editor .provider-profile-about .language-input{
  margin:0;
}
html[data-theme] .provider-public-profile-editor .provider-language-heading{
  display:flex;
  min-height:44px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
html[data-theme] .provider-public-profile-editor .provider-language-toggle{
  width:44px;
  min-width:44px;
  padding:0;
  border-radius:50%;
}
html[data-theme] .provider-public-profile-editor .provider-language-toggle-icon{
  display:block;
  font-size:22px;
  font-weight:400;
  line-height:1;
  transition:transform var(--ah-motion-duration-quick) var(--ah-motion-ease-standard);
}
html[data-theme] .provider-public-profile-editor .provider-language-toggle[aria-expanded="true"] .provider-language-toggle-icon{
  transform:rotate(45deg);
}
html[data-theme] .provider-public-profile-editor .provider-language-toggle[data-at-limit="true"]{
  color:var(--ah-text-muted);
}
html[data-theme] .provider-public-profile-editor .language-picker{
  display:flex;
  min-height:48px;
  padding:8px 11px;
  flex-direction:column;
  gap:7px;
  border:1px solid var(--ah-border);
  border-radius:12px;
  background:var(--ah-surface-raised);
  transition:border-color var(--ah-motion-duration-quick) var(--ah-motion-ease-standard),box-shadow var(--ah-motion-duration-quick) var(--ah-motion-ease-standard);
}
html[data-theme] .provider-public-profile-editor .language-picker[hidden]{
  display:none !important;
}
html[data-theme] .provider-public-profile-editor .language-picker:focus-within{
  border-color:var(--ah-accent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ah-accent) 18%,transparent);
}
html[data-theme] .provider-public-profile-editor .language-chips{
  min-height:0;
  gap:6px;
}
html[data-theme] .provider-public-profile-editor .language-chips:empty{
  display:none;
}
html[data-theme] .provider-public-profile-editor .language-picker-input{
  width:100%;
  min-height:44px;
  padding:2px 1px;
  border:0 !important;
  border-radius:0;
  outline:0;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--ah-text) !important;
  font-size:16px;
}
html[data-theme] .provider-public-profile-editor #provAbout{
  min-height:132px;
  border-color:var(--ah-border) !important;
  border-radius:12px;
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
  font-size:16px;
  line-height:1.45;
}
html[data-theme] .provider-public-profile-editor #provAbout:focus{
  border-color:var(--ah-accent) !important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ah-accent) 18%,transparent) !important;
}
html[data-theme] .provider-public-profile-editor .provider-public-qualifications{
  padding:22px 0 0 !important;
}
html[data-theme] .provider-public-profile-editor .provider-section-title{
  margin:0 0 10px;
}
html[data-theme] .provider-public-profile-editor .provider-docs{
  gap:0;
  border-top:1px solid var(--ah-border);
}
html[data-theme] .provider-public-profile-editor #providerCertificatesSection .provider-doc-card{
  min-height:64px;
  padding:12px 0;
  gap:8px 12px;
  border:0 !important;
  border-bottom:1px solid var(--ah-border) !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html[data-theme] .provider-public-profile-editor #providerCertificatesSection .provider-doc-head{
  gap:4px;
}
html[data-theme] .provider-public-profile-editor .provider-doc-title{
  color:var(--ah-text) !important;
  font-size:14px;
  font-weight:700;
}
html[data-theme] .provider-public-profile-editor .provider-doc-status{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:var(--ah-warning) !important;
  font-size:11px;
  font-weight:700;
}
html[data-theme] .provider-public-profile-editor .provider-doc-status.is-approved{
  color:var(--ah-success) !important;
}
html[data-theme] .provider-public-profile-editor .provider-doc-status.is-rejected{
  color:var(--ah-danger) !important;
}
html[data-theme] .provider-public-profile-editor #providerCertificatesSection .provider-doc-actions{
  align-self:center;
}
html[data-theme] .provider-public-profile-editor #providerCertificatesSection .provider-doc-actions .settings-inline-action{
  min-height:44px;
  padding:0 4px;
}
html[data-theme] .provider-public-profile-editor .provider-credentials-privacy{
  margin:10px 0 0;
  color:var(--ah-text-muted) !important;
  font-size:11px;
  line-height:1.4;
}
html[data-theme] .provider-public-profile-editor .provider-testimonial-manager{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid var(--ah-border);
}
html[data-theme] .provider-public-profile-editor .provider-testimonial-manager[hidden]{
  display:none !important;
}
html[data-theme] .provider-public-profile-editor .provider-route-save-actions{
  margin-top:22px;
  padding:20px 0 0;
  border-top:1px solid var(--ah-border) !important;
}

/* A correction is a quiet form submission, not a live attendance CTA. */
html[data-theme] .shift-attendance-modal.is-correction-mode .shift-attendance-eyebrow{
  display:none !important;
}
html[data-theme] .shift-attendance-outcome legend,
html[data-theme] .shift-attendance-recovery label,
html[data-theme] .shift-attendance-outcome-copy strong{
  color:var(--ah-text) !important;
}
html[data-theme] .shift-attendance-outcome-copy small{
  color:var(--ah-text-muted) !important;
}
html[data-theme] .shift-attendance-recovery .shift-attendance-outcome-option{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-raised) !important;
}
html[data-theme] .shift-attendance-recovery .shift-attendance-outcome-option:hover{
  border-color:var(--ah-border-strong) !important;
  background:var(--ah-surface-hover) !important;
}
html[data-theme] .shift-attendance-recovery .shift-attendance-outcome-option:has(input:checked){
  border-color:color-mix(in srgb,var(--ah-accent) 55%,var(--ah-border)) !important;
  background:var(--ah-accent-soft) !important;
}
html[data-theme] .shift-attendance-outcome-check{
  border-color:var(--ah-border-strong);
}
html[data-theme] .shift-attendance-outcome-option:has(input:checked) .shift-attendance-outcome-check{
  border-color:var(--ah-accent);
  background:var(--ah-accent);
  color:var(--ah-on-accent);
}
html[data-theme] .shift-attendance-recovery-submit:disabled{
  border-color:var(--ah-border) !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text-muted) !important;
  cursor:not-allowed;
  opacity:1 !important;
  box-shadow:none !important;
}
html[data-theme] .shift-attendance-recovery-submit:not(:disabled){
  border-color:var(--ah-accent) !important;
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
  box-shadow:none !important;
}

/* Caregiver destinations use one compact page-heading pattern, matching the
   parent dashboard's title/action rhythm instead of per-feature legacy heads. */
.provider-dashboard:not(.parent-dashboard) .caregiver-tab-header{
  display:flex;
  width:100%;
  min-width:0;
  min-height:44px;
  box-sizing:border-box;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 18px;
  padding:0;
  border:0;
  background:transparent;
}

.provider-dashboard:not(.parent-dashboard) #panel-dashboard .caregiver-tab-header{
  margin-bottom:0;
}

.provider-dashboard:not(.parent-dashboard) .caregiver-tab-header > :first-child{
  min-width:0;
}

.provider-dashboard:not(.parent-dashboard) .caregiver-tab-header :is(h1,h2){
  margin:0 !important;
  background:none;
  color:var(--ah-text);
  -webkit-text-fill-color:currentColor;
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.025em;
}

.provider-dashboard:not(.parent-dashboard) .caregiver-tab-header .availability-header-actions{
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}

.provider-dashboard:not(.parent-dashboard) .caregiver-tab-header .availability-summary::before{
  display:none;
}

.provider-dashboard:not(.parent-dashboard) .caregiver-tab-header .availability-summary-value{
  font-size:11px;
  font-weight:700;
}

html[data-theme] .provider-insights-page.provider-panel-card{
  border:0;
  background:transparent;
  box-shadow:none;
}

html[data-theme] .provider-insights-page .provider-insights-card,
html[data-theme] .provider-insights-page .provider-insights-empty-card{
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}

/* Unified status labels
   Status is supporting information, not an action. Keep it quiet and readable:
   sentence case, restrained semantic text, and no capsule-shaped container. */
html[data-theme] :where(
  .calendar-event-status,
  .parent-request-status:not(.is-plain),
  .provider-doc-status,
  .account-settings-summary-status:not(.is-neutral),
  .provider-booking-mobile-status,
  .provider-request-mobile-status,
  .chat-request-status,
  .parent-child-age-status,
  .provider-payout-setup-action,
  .badge-info-status,
  .cg-badge-status,
  .coverage-search-needed,
  .trust-badge-label,
  .trivia-review-state,
  .status-badge
){
  --ah-status-tone:var(--ah-text-muted);
  display:inline-flex;
  min-width:0;
  min-height:0;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--ah-status-tone) !important;
  font-size:11px !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
  line-height:1.25;
  text-align:left;
  text-transform:none !important;
  white-space:nowrap;
}

html[data-theme] .account-settings-summary-status[hidden]{
  display:none !important;
}

/* Defaults reflect the component's meaning when it has no explicit modifier. */
html[data-theme] :where(
  .parent-request-status:not(.is-plain),
  .provider-doc-status,
  .provider-request-mobile-status,
  .parent-child-age-status,
  .coverage-search-needed,
  .trivia-review-state
){
  --ah-status-tone:var(--ah-warning);
}

html[data-theme] :where(
  .calendar-event-status.is-completed,
  .calendar-event-status.is-confirmed,
  .parent-request-status.is-completed,
  .parent-request-status.is-confirmed,
  .provider-doc-status.is-approved,
  .account-settings-summary-status.is-complete,
  .provider-booking-mobile-status:not(.is-warn),
  .chat-request-status.is-accepted,
  .badge-info-status.is-active,
  .cg-badge--verified .cg-badge-status,
  .trivia-question-card.is-reviewed .trivia-review-state,
  .status-badge.status-approved
),
html[data-theme] .provider-payout-setup-prompt.is-complete .provider-payout-setup-action{
  --ah-status-tone:var(--ah-success);
}

html[data-theme] .provider-payout-setup-prompt.is-complete .provider-payout-setup-action::before{
  content:"✓";
  flex:0 0 auto;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

html[data-theme] :where(
  .calendar-event-status.is-warn,
  .calendar-event-status.is-pending,
  .parent-request-status.is-warn,
  .parent-request-status.is-pending,
  .account-settings-summary-status.is-suggested,
  .provider-booking-mobile-status.is-warn,
  .chat-request-status.is-pending,
  .trust-badge-label--required,
  .cg-badge--pending .cg-badge-status,
  .status-badge.status-pending
){
  --ah-status-tone:var(--ah-warning);
}

html[data-theme] :where(
  .calendar-event-status.is-cancelled,
  .parent-request-status.is-cancelled,
  .provider-doc-status.is-rejected,
  .account-settings-summary-status.is-required,
  .chat-request-status.is-declined,
  .cg-badge--rejected .cg-badge-status,
  .status-badge.status-rejected
){
  --ah-status-tone:var(--ah-danger);
}

html[data-theme] :where(
  .chat-request-status.is-needs-info,
  .trust-badge-label--recommended,
  .provider-payout-setup-action
){
  --ah-status-tone:var(--ah-accent);
}

html[data-theme] :where(
  .parent-child-age-status.is-history-only,
  .provider-payout-setup-prompt.is-disabled .provider-payout-setup-action,
  .cg-badge--neutral .cg-badge-status
){
  --ah-status-tone:var(--ah-text-muted);
}

/* Plain metadata such as “Edit” or a date is not a semantic status. */
html[data-theme] :where(
  .parent-request-status.is-plain,
  .account-settings-summary-status.is-neutral
){
  min-height:0;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--ah-text-muted) !important;
  font-size:11px !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
  line-height:1.25;
  text-transform:none !important;
}

/* Compact weekly availability editor */
html[data-theme] .availability-weekly-shell{
  overflow:hidden;
  border:1px solid var(--ah-border);
  border-radius:18px;
  background:var(--ah-surface-raised);
}

.availability-weekly-list{
  display:grid;
}

.availability-weekly-footer{
  display:flex;
  justify-content:flex-end;
  padding:8px 12px;
  border-top:1px solid var(--ah-border);
}

html[data-theme] .availability-clear-all{
  min-height:44px;
  padding:4px;
  border:0;
  background:transparent;
  color:var(--ah-text-muted);
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

html[data-theme] .availability-clear-all:focus-visible{
  outline:2px solid color-mix(in srgb,var(--ah-accent) 36%,transparent);
  outline-offset:2px;
}

html[data-theme] .availability-clear-all:disabled{
  color:var(--ah-text-soft);
  cursor:not-allowed;
}

html[data-theme] .provider-availability-card .availability-weekly-row,
html[data-theme] .provider-availability-card .availability-weekly-row.is-disabled,
html[data-theme] body.native-app.native-caregiver-dashboard .provider-availability-card .availability-weekly-row,
html[data-theme] body.native-app.native-caregiver-dashboard .provider-availability-card .availability-weekly-row.is-disabled{
  display:block;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid var(--ah-border);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

html[data-theme] .provider-availability-card .availability-weekly-row:last-child{
  border-bottom:0;
}

.availability-day-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:0 14px 0 0;
}

html[data-theme] .availability-day-open{
  display:grid;
  grid-template-columns:92px minmax(0,1fr) 16px;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:58px;
  padding:10px 0 10px 14px;
  border:0;
  background:transparent;
  color:var(--ah-text);
  text-align:left;
  cursor:pointer;
}

.availability-day-hours{
  min-width:0;
  overflow:hidden;
  color:var(--ah-text-secondary);
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.availability-weekly-row.is-disabled .availability-day-hours{
  color:var(--ah-text-muted);
  font-weight:500;
}

.availability-day-chevron{
  color:var(--ah-text-muted);
  transition:transform var(--ah-motion-duration-standard) var(--ah-motion-ease-standard);
}

.availability-weekly-row.is-expanded .availability-day-chevron{
  transform:rotate(90deg);
}

.availability-row-switch{
  width:42px !important;
  min-width:42px !important;
  min-height:44px;
  justify-content:center;
  gap:0;
}

.availability-day-editor{
  display:grid;
  gap:10px;
  padding:14px;
  border-top:1px solid var(--ah-border);
  background:var(--ah-surface-soft);
  animation:availability-reveal var(--ah-motion-duration-standard) var(--ah-motion-ease-fade);
}

.availability-day-editor[hidden],
.availability-copy-panel[hidden]{
  display:none !important;
}

html[data-theme] .availability-day-editor .availability-slots{
  display:grid;
  gap:10px;
}

html[data-theme] .availability-day-editor .availability-day-actions{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0;
}

html[data-theme] .availability-day-editor .availability-add-slot,
html[data-theme] .availability-day-editor .availability-copy-day{
  width:auto;
  min-height:44px;
  padding:6px 10px;
  border-radius:10px !important;
  font-size:11px;
}

.availability-copy-panel{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--ah-border);
  border-radius:12px;
  background:var(--ah-surface-raised);
}

.availability-copy-label{
  color:var(--ah-text-secondary);
  font-size:11px;
  font-weight:700;
}

.availability-copy-targets{
  display:grid;
  width:100%;
  min-width:0;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px;
}

.availability-copy-target{
  position:relative;
  min-width:0;
  cursor:pointer;
}

.availability-copy-target input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}

.availability-copy-target span{
  display:inline-flex;
  width:100%;
  min-width:0;
  min-height:44px;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
  padding:4px 2px;
  border:1px solid var(--ah-border);
  border-radius:999px;
  color:var(--ah-text-muted);
  font-size:11px;
  font-weight:700;
}

.availability-copy-target input:checked + span{
  border-color:var(--ah-accent);
  background:var(--ah-accent-soft);
  color:var(--ah-accent-deep);
}

.availability-copy-target input:focus-visible + span{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 35%,transparent);
  outline-offset:2px;
}

.availability-copy-actions{
  display:flex;
  justify-content:flex-end;
  gap:5px;
}

.availability-copy-actions .ah-action{
  min-height:44px;
  padding:5px 9px;
  font-size:11px;
}

@media (max-width:719px){
  html[data-theme] .availability-day-open{
    grid-template-columns:74px minmax(0,1fr) 16px;
    gap:8px;
    min-height:54px;
    padding-left:12px;
  }

  .availability-day-summary{
    padding-right:11px;
  }

  .availability-day-hours{
    font-size:11px;
  }

  .availability-day-editor{
    padding:12px;
  }

  .availability-copy-panel{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .availability-copy-label{
    grid-column:1;
    grid-row:1;
  }

  .availability-copy-targets{
    grid-column:1 / -1;
    grid-row:2;
  }

  .availability-copy-actions{
    grid-column:2;
    grid-row:1;
  }
}

@media (max-width:380px){
  html[data-theme] .availability-day-open{
    grid-template-columns:66px minmax(0,1fr) 14px;
    gap:6px;
  }

  .availability-day-editor{
    padding:10px;
  }

  .availability-copy-panel{
    grid-template-columns:minmax(0,1fr);
  }

  .availability-copy-label,
  .availability-copy-targets,
  .availability-copy-actions{
    grid-column:1;
  }

  .availability-copy-label{
    grid-row:1;
  }

  .availability-copy-targets{
    grid-row:2;
  }

  .availability-copy-actions{
    grid-row:3;
    justify-content:flex-start;
  }
}

/* Shared component primitives
   New and migrated screens should compose these instead of creating another
   card, row, field, or sheet implementation. Existing screens migrate in
   separate passes so this foundation cannot silently change their layout. */
.ah-stack{
  display:grid;
  gap:var(--ah-space-4);
}

.ah-stack--section{
  gap:var(--ah-section-gap);
}

.ah-card,
.ah-list-group{
  box-sizing:border-box;
  border:1px solid var(--ah-border);
  border-radius:var(--ah-radius-group);
  background:var(--ah-surface-raised);
  color:var(--ah-text);
}

.ah-card{
  padding:var(--ah-space-4);
}

.ah-list-group{
  overflow:clip;
}

.ah-list-row{
  display:grid;
  min-height:var(--ah-touch-target);
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:var(--ah-space-3);
  box-sizing:border-box;
  padding:var(--ah-space-3) var(--ah-space-4);
  border:0;
  border-bottom:1px solid var(--ah-border);
  background:transparent;
  color:var(--ah-text);
  text-align:start;
}

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

button.ah-list-row,
a.ah-list-row{
  width:100%;
  cursor:pointer;
  text-decoration:none;
}

.ah-list-row-copy{
  display:grid;
  min-width:0;
  gap:var(--ah-space-1);
}

.ah-list-row-title{
  font-size:var(--ah-type-body-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-body-line);
}

.ah-list-row-detail{
  color:var(--ah-text-muted);
  font-size:var(--ah-type-footnote-size);
  line-height:var(--ah-type-footnote-line);
}

.ah-field{
  display:grid;
  gap:6px;
}

.ah-field-label{
  color:var(--ah-text-secondary);
  font-size:var(--ah-type-subheadline-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-subheadline-line);
}

.ah-field-control,
.ah-search-field{
  width:100%;
  min-height:var(--ah-control-height-regular);
  box-sizing:border-box;
  padding:10px var(--ah-space-3);
  border:1px solid var(--ah-border-strong);
  border-radius:var(--ah-radius-control);
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  font-family:var(--ah-font-sans);
  font-size:var(--ah-type-body-size);
  line-height:var(--ah-type-body-line);
}

.ah-field-help,
.ah-field-error{
  margin:0;
  font-size:var(--ah-type-footnote-size);
  line-height:var(--ah-type-footnote-line);
}

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

.ah-field-error{
  color:var(--ah-danger);
}

.ah-icon-button{
  appearance:none;
  -webkit-appearance:none;
  display:inline-grid;
  width:var(--ah-touch-target);
  min-width:var(--ah-touch-target);
  height:var(--ah-touch-target);
  min-height:var(--ah-touch-target);
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ah-text);
  cursor:pointer;
}

.ah-icon-button :where(svg,img){
  width:var(--ah-icon-size-regular);
  height:var(--ah-icon-size-regular);
}

/* Custom web glyphs share Apple-like scale, optical weight, and current-color
   behavior without redistributing or pretending to render SF Symbols. */
.ah-glyph{
  width:var(--ah-icon-size-regular);
  height:var(--ah-icon-size-regular);
  display:block;
  flex:0 0 auto;
  overflow:visible;
  color:inherit;
  forced-color-adjust:auto;
  pointer-events:none;
}

.ah-glyph--small{
  width:var(--ah-icon-size-small);
  height:var(--ah-icon-size-small);
}

.ah-glyph--large{
  width:var(--ah-icon-size-large);
  height:var(--ah-icon-size-large);
}

.ah-glyph--xlarge{
  width:var(--ah-icon-size-xlarge);
  height:var(--ah-icon-size-xlarge);
}

.ah-glyph--stroke{
  fill:none;
  stroke:currentColor;
  stroke-width:var(--ah-icon-stroke-width);
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ah-glyph--fill{
  fill:currentColor;
  stroke:none;
}

[dir="rtl"] .ah-glyph--directional{
  transform:scaleX(-1);
}

.ah-icon-label{
  display:inline-flex;
  min-width:0;
  align-items:center;
  gap:var(--ah-space-2);
}

html[data-theme] :where(.provider-nav-item,.booking-help-menu-item,.ah-notification-open) > .ah-glyph,
html[data-theme] .booking-help-menu-icon > .ah-glyph{
  color:inherit;
}

html[data-theme] body.provider-dashboard .provider-nav > .provider-nav-item .nav-icon.ah-glyph{
  width:var(--ah-icon-size-regular);
  height:var(--ah-icon-size-regular);
}

.ah-button--large{
  min-height:var(--ah-control-height-large) !important;
  padding:12px var(--ah-space-5) !important;
  font-size:var(--ah-type-body-size) !important;
  font-weight:var(--ah-font-weight-semibold) !important;
  line-height:var(--ah-type-body-line) !important;
}

.ah-segmented-control{
  display:grid;
  grid-auto-columns:minmax(0,1fr);
  grid-auto-flow:column;
  gap:2px;
  padding:2px;
  border:1px solid var(--ah-border);
  border-radius:var(--ah-radius-control);
  background:var(--ah-surface-soft);
}

.ah-segmented-option{
  display:inline-flex;
  min-height:var(--ah-touch-target);
  align-items:center;
  justify-content:center;
  padding:8px var(--ah-space-3);
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ah-text-muted);
  font-size:var(--ah-type-subheadline-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-subheadline-line);
  cursor:pointer;
}

.ah-segmented-option[aria-selected="true"],
.ah-segmented-option.is-selected{
  background:var(--ah-surface-raised);
  color:var(--ah-text);
  box-shadow:0 1px 3px rgba(0,0,0,.12);
}

.ah-status{
  display:inline-flex;
  align-items:center;
  gap:var(--ah-space-1);
  color:var(--ah-text-muted);
  font-size:var(--ah-type-footnote-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-footnote-line);
}

.ah-status--success{color:var(--ah-success)}
.ah-status--warning{color:var(--ah-warning)}
.ah-status--danger{color:var(--ah-danger)}
.ah-status--info{color:var(--ah-info)}

/* Feedback and system state
   Routine outcomes stay beside the affected content. Full state views are for
   loading, empty, and recoverable-error states that replace the content. */
.ah-inline-feedback{
  --ah-feedback-tone:var(--ah-text-muted);
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:var(--ah-space-2);
  color:var(--ah-text-secondary);
  font-size:var(--ah-type-footnote-size);
  line-height:var(--ah-type-footnote-line);
}

.ah-inline-feedback:empty{
  display:none;
}

.ah-inline-feedback__icon{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:var(--ah-feedback-tone);
  font-weight:var(--ah-font-weight-bold);
  line-height:1;
}

.ah-inline-feedback--success{--ah-feedback-tone:var(--ah-success)}
.ah-inline-feedback--warning{--ah-feedback-tone:var(--ah-warning)}
.ah-inline-feedback--danger{--ah-feedback-tone:var(--ah-danger)}
.ah-inline-feedback--info{--ah-feedback-tone:var(--ah-info)}

.ah-system-state{
  display:grid;
  width:min(100%,360px);
  justify-items:center;
  gap:var(--ah-space-2);
  color:var(--ah-text);
  text-align:center;
}

.ah-system-state__title{
  margin:0;
  color:var(--ah-text);
  font-size:var(--ah-type-body-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-body-line);
}

.ah-system-state__detail{
  max-width:32ch;
  margin:0;
  color:var(--ah-text-muted);
  font-size:var(--ah-type-footnote-size);
  line-height:var(--ah-type-footnote-line);
}

.ah-empty-state{
  display:grid;
  justify-items:start;
  gap:var(--ah-space-1);
  padding-block:var(--ah-space-4);
  color:var(--ah-text-muted);
  text-align:left;
}

.ah-empty-state--centered{
  justify-items:center;
  text-align:center;
}

.ah-empty-state__title{
  margin:0;
  color:var(--ah-text);
  font-size:var(--ah-type-subheadline-size);
  font-weight:var(--ah-font-weight-semibold);
  line-height:var(--ah-type-subheadline-line);
}

.ah-empty-state__detail{
  max-width:38ch;
  margin:0;
  font-size:var(--ah-type-footnote-size);
  line-height:var(--ah-type-footnote-line);
}

.ah-activity-indicator{
  width:var(--ah-activity-indicator-size);
  height:var(--ah-activity-indicator-size);
  box-sizing:border-box;
  border:2px solid color-mix(in srgb,var(--ah-accent) 20%,transparent);
  border-top-color:var(--ah-accent);
  border-radius:50%;
  animation:ahActivityIndicatorSpin var(--ah-motion-duration-indeterminate) linear infinite;
}

@keyframes ahActivityIndicatorSpin{
  to{transform:rotate(360deg)}
}

.ah-progress-track,
progress.ah-progress-track{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:var(--ah-progress-track-height);
  overflow:hidden;
  border:0;
  border-radius:var(--ah-radius-pill);
  background:var(--ah-surface-soft);
  color:var(--ah-accent);
  accent-color:var(--ah-accent);
}

.ah-progress-track > span{
  display:block;
  width:var(--ah-progress-value,0%);
  height:100%;
  border-radius:inherit;
  background:currentColor;
}

progress.ah-progress-track::-webkit-progress-bar{
  border-radius:inherit;
  background:var(--ah-surface-soft);
}

progress.ah-progress-track::-webkit-progress-value{
  border-radius:inherit;
  background:var(--ah-accent);
}

progress.ah-progress-track::-moz-progress-bar{
  border-radius:inherit;
  background:var(--ah-accent);
}

.ah-retry-action{
  margin-top:var(--ah-space-2);
}

/* Legacy form regions already publish a data-status state. Preserve that
   semantic state instead of muting every outcome to the same gray. */
html[data-theme] :where(.provider-form-status,.booking-late-form-status){
  min-height:0;
  color:var(--ah-text-muted);
  font-size:var(--ah-type-footnote-size);
  font-weight:var(--ah-font-weight-medium);
  line-height:var(--ah-type-footnote-line);
}

html[data-theme] :where(.provider-form-status,.booking-late-form-status):empty{
  display:none;
}

html[data-theme] :where(.provider-form-status,.booking-late-form-status)[data-status="success"]{
  color:var(--ah-success);
}

html[data-theme] :where(.provider-form-status,.booking-late-form-status)[data-status="warning"]{
  color:var(--ah-warning);
}

html[data-theme] :where(.provider-form-status,.booking-late-form-status)[data-status="error"]{
  color:var(--ah-danger);
}

html[data-theme] :where(.provider-form-status,.booking-late-form-status)[data-status="info"]{
  color:var(--ah-info);
}

.ah-sheet{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  align-items:end;
  padding-top:max(var(--ah-space-6),env(safe-area-inset-top));
  background:var(--ah-overlay);
}

.ah-sheet-surface{
  width:min(100%,620px);
  max-height:calc(100dvh - max(var(--ah-space-6),env(safe-area-inset-top)));
  box-sizing:border-box;
  margin-inline:auto;
  overflow:auto;
  padding:var(--ah-space-5) var(--ah-content-gutter) max(var(--ah-space-5),env(safe-area-inset-bottom));
  border-radius:var(--ah-radius-sheet) var(--ah-radius-sheet) 0 0;
  background:var(--ah-surface-raised);
  color:var(--ah-text);
}

/* Presentation roles keep alerts and sheets structurally distinct without
   imitating native material effects inside the web view. Component layouts
   continue to own their task-specific width and padding. */
.ah-presentation{
  box-sizing:border-box;
  overscroll-behavior:contain;
  background:var(--ah-overlay) !important;
}

.ah-presentation--alert{
  align-items:center;
  justify-content:center;
  place-items:center;
}

.ah-presentation--sheet{
  align-items:center;
  justify-content:center;
  place-items:center;
}

.ah-presentation-surface{
  max-width:var(--ah-presentation-width);
  max-height:calc(100dvh - max(var(--ah-space-6),env(safe-area-inset-top)) - max(var(--ah-space-6),env(safe-area-inset-bottom)));
  box-sizing:border-box;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--ah-border) !important;
  border-radius:var(--ah-radius-group);
  background:var(--ah-surface-raised) !important;
  color:var(--ah-text) !important;
  box-shadow:var(--ah-shadow) !important;
}

.ah-presentation-surface--compact{
  max-width:var(--ah-presentation-width-compact);
}

.ah-presentation--sheet > .ah-presentation-surface{
  border-radius:var(--ah-radius-sheet);
}

.ah-presentation-close{
  display:grid !important;
  width:var(--ah-touch-target) !important;
  min-width:var(--ah-touch-target) !important;
  height:var(--ah-touch-target) !important;
  min-height:var(--ah-touch-target) !important;
  padding:0 !important;
  place-items:center;
  border:0 !important;
  border-radius:50% !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
  font-size:24px !important;
  font-weight:var(--ah-font-weight-regular) !important;
  line-height:1 !important;
}

.ah-presentation-close:where(:not([data-expand-on-interaction])):hover:not(:disabled){
  background:var(--ah-surface-hover) !important;
}

@media (max-width:520px){
  .ah-presentation--sheet{
    align-items:end;
    place-items:end center;
  }

  .ah-presentation--sheet > .ah-presentation-surface{
    max-height:calc(100dvh - max(var(--ah-space-3),env(safe-area-inset-top)) - max(var(--ah-space-3),env(safe-area-inset-bottom)));
  }
}

:where(.ah-field-control,.ah-search-field,.ah-icon-button,.ah-list-row,.ah-segmented-option):focus-visible{
  outline:3px solid color-mix(in srgb,var(--ah-accent) 30%,transparent);
  outline-offset:2px;
}

@media (hover:hover){
  :is(button,a).ah-list-row:where(:not([data-expand-on-interaction])):hover,
  .ah-icon-button:where(:not([data-expand-on-interaction])):hover,
  .ah-segmented-option:where(:not([data-expand-on-interaction])):hover{
    background:var(--ah-surface-hover);
  }
}

/* Booking sheets use the system button hierarchy instead of outlined mini-cards. */
html[data-theme] .booking-help-actions .booking-help-menu-item{
  border-color:transparent !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text) !important;
  box-shadow:none !important;
}

html[data-theme] .booking-help-actions .booking-help-menu-item .booking-help-menu-icon,
html[data-theme] .booking-help-actions .booking-help-menu-item .booking-help-menu-copy strong,
html[data-theme] .booking-help-actions .booking-help-menu-item .booking-help-menu-copy small{
  color:inherit !important;
}

html[data-theme] .booking-help-actions .booking-help-menu-item .booking-help-menu-copy small{
  opacity:.72;
}

html[data-theme] .booking-help-actions .booking-help-menu-item--accent{
  background:var(--ah-accent-soft) !important;
  color:var(--ah-accent-deep) !important;
}

html[data-theme] .booking-help-actions .booking-help-menu-item--primary{
  background:var(--ah-accent) !important;
  color:var(--ah-on-accent) !important;
}

html[data-theme] .booking-help-actions .booking-help-menu-item--warning{
  background:var(--ah-warning-soft) !important;
  color:var(--ah-warning) !important;
}

html[data-theme] .booking-help-actions .booking-help-menu-item.is-destructive{
  border-color:transparent !important;
  background:var(--ah-danger-soft) !important;
  color:var(--ah-danger) !important;
}

html[data-theme] .booking-help-actions .booking-help-menu-item:focus-visible{
  outline:3px solid color-mix(in srgb,currentColor 32%,transparent);
  outline-offset:2px;
}

html[data-theme] .booking-help-actions .booking-help-menu-item:disabled,
html[data-theme] .booking-help-actions .booking-help-menu-item[aria-disabled="true"]{
  border-color:transparent !important;
  background:var(--ah-surface-soft) !important;
  color:var(--ah-text-muted) !important;
  opacity:.52 !important;
  filter:grayscale(1) !important;
}

@media (hover:hover){
  html[data-theme] .booking-help-actions .booking-help-menu-item:hover:not(:disabled):not([aria-disabled="true"]){
    border-color:transparent !important;
    background:var(--ah-surface-hover) !important;
    color:var(--ah-text) !important;
  }

  html[data-theme] .booking-help-actions .booking-help-menu-item--warning:hover:not(:disabled):not([aria-disabled="true"]){
    background:color-mix(in srgb,var(--ah-warning) 18%,var(--ah-surface-raised)) !important;
    color:var(--ah-warning) !important;
  }

  html[data-theme] .booking-help-actions .booking-help-menu-item.is-destructive:hover:not(:disabled):not([aria-disabled="true"]){
    background:color-mix(in srgb,var(--ah-danger) 17%,var(--ah-surface-raised)) !important;
    color:var(--ah-danger) !important;
  }
}

/* Shared app navigation selection
   One neutral state owns the cascade across website dashboards, iOS, Android,
   standalone app pages, and Grow. This intentionally overrides legacy
   product-tint tab rules so the first rendered tab and later selections match. */
html[data-theme] .provider-nav > .provider-nav-item{
  border-color:transparent !important;
  background:transparent !important;
  color:var(--ah-nav-idle-fg) !important;
  box-shadow:none !important;
  filter:none !important;
  -webkit-tap-highlight-color:transparent;
  -webkit-text-fill-color:currentColor !important;
}

html[data-theme] .provider-nav > .provider-nav-item:where(:not([data-expand-on-interaction])):hover{
  border-color:transparent !important;
  background:var(--ah-nav-hover-bg) !important;
  color:var(--ah-nav-selected-fg) !important;
  box-shadow:none !important;
}

html[data-theme] .provider-nav > .provider-nav-item:active{
  background:var(--ah-nav-selected-bg) !important;
  color:var(--ah-nav-selected-fg) !important;
}

html[data-theme] .provider-nav > .provider-nav-item:is(.is-active,[aria-selected="true"],[aria-current="page"]){
  border-color:transparent !important;
  background:var(--ah-nav-selected-bg) !important;
  color:var(--ah-nav-selected-fg) !important;
  border-radius:999px !important;
  box-shadow:none !important;
  filter:none !important;
}

html[data-theme] .provider-nav > .provider-nav-item:is(.is-active,[aria-selected="true"],[aria-current="page"]) :is(.nav-icon,.nav-label){
  color:inherit !important;
  -webkit-text-fill-color:currentColor !important;
}

html[data-theme] .provider-nav > .provider-nav-item:focus-visible{
  outline:2px solid var(--ah-nav-focus-ring) !important;
  outline-offset:-2px !important;
  box-shadow:none !important;
}

/* Compact shared tab rail
   Web, iOS, and Android use icons as the visible tab labels. Accessible names
   remain on every control while the rail keeps a 48px interaction target. */
html[data-theme] body.provider-dashboard{
  --provider-bottom-nav-height:56px !important;
  --provider-bottom-nav-offset:calc(56px + env(safe-area-inset-bottom,0px)) !important;
}

body.provider-dashboard .provider-nav,
body.grow-portal-page .grow-portal-app-nav:not([hidden]){
  --ah-nav-edge-inset:max(12px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
  display:flex !important;
  flex-direction:row !important;
  grid-template-columns:none !important;
  grid-auto-flow:initial !important;
  grid-auto-columns:initial !important;
  justify-content:space-evenly !important;
  align-items:center !important;
  gap:clamp(2px,1vw,8px) !important;
  width:100% !important;
  height:calc(56px + env(safe-area-inset-bottom,0px)) !important;
  min-height:0 !important;
  padding:4px var(--ah-nav-edge-inset) calc(4px + env(safe-area-inset-bottom,0px)) !important;
  box-sizing:border-box !important;
}

body.provider-dashboard .provider-nav > .provider-nav-item,
body.grow-portal-page .grow-portal-app-nav > button{
  position:relative !important;
  flex:0 1 88px !important;
  width:88px !important;
  min-width:48px !important;
  max-width:88px !important;
  height:48px !important;
  min-height:48px !important;
  padding:0 !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  border-radius:999px !important;
  box-sizing:border-box !important;
}

body :is(.provider-nav,.grow-portal-app-nav) .nav-label{
  display:none !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
  font-size:0 !important;
}

body.provider-dashboard .provider-nav .nav-icon,
body.grow-portal-page .grow-portal-app-nav .nav-icon{
  width:22px !important;
  height:22px !important;
  margin:0 !important;
}

body.provider-dashboard .provider-nav-badge{
  top:5px !important;
  right:calc(50% - 17px) !important;
}

/* Care+ uses one opaque plane from the scrolling selector through its app rail.
   This prevents borders, blur, and touch-hover states from flashing a second tone. */
html[data-theme] body:is(.careplus-page,.careplus-modal-open) .provider-nav{
  border:0 !important;
  background:var(--ah-surface) !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}

/* Desktop Care+ follows the Settings information architecture: one continuous
   page canvas and one centered reading column. The plan controls, benefits,
   billing disclosure, and dialogs remain their own purposeful surfaces; only
   the redundant outer card is removed. */
@media (min-width:720px){
  html[data-theme] body.careplus-page:not(.native-app){
    background:var(--ah-surface) !important;
  }

  html[data-theme] body.careplus-page:not(.native-app) .careplus-web-main{
    width:min(calc(100% - 48px),760px);
    margin:30px auto 96px;
  }

  html[data-theme] body.careplus-page:not(.native-app) .careplus-web-panel{
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  html[data-theme] body.careplus-page:not(.native-app) .careplus-web-panel .careplus-web-picker{
    padding:0;
    background:transparent;
  }
}

@media (max-width:760px){
  body.grow-portal-page.is-app-grow:not(.grow-lesson-open) .grow-detail{
    bottom:calc(56px + env(safe-area-inset-bottom,0px)) !important;
  }

  body.grow-portal-page.is-app-grow:not(.grow-lesson-open){
    padding-bottom:calc(56px + env(safe-area-inset-bottom,0px)) !important;
  }
}

/* Keep Grow's own pointer focus states and show the keyboard ring on
   controls that use the shared interaction feedback. */
html body.grow-portal-page :where(
  button,
  a,
  input,
  select,
  textarea,
  summary,
  [role="button"],
  [tabindex]
):focus:not(:focus-visible),
html body.grow-portal-page :where(
  button,
  a,
  input,
  select,
  textarea,
  summary,
  [role="button"],
  [tabindex]
):where(:not([data-expand-on-interaction])):focus-visible{
  outline:none !important;
  outline-offset:0 !important;
}

html body.grow-portal-page .grow-v2-form :is(input,select,textarea):focus{
  border-color:var(--grow-portal-border-strong) !important;
  box-shadow:none !important;
}

html:not([data-theme="light"]) body.grow-portal-page .grow-v2-form :is(input,select,textarea):focus{
  border-color:var(--grow-portal-border) !important;
}

html body.grow-portal-page :is(
  .grow-trivia-player-form input,
  .grow-narration-player select
):focus{
  border-color:var(--grow-border) !important;
  box-shadow:none !important;
}

/* Pointer/touch activation must settle without a retained focus tile. Keep
   this after component rules so a later, more specific local ring cannot flash
   or remain after the first tap. Keyboard focus-visible is left unchanged. */
html[data-theme] :where(
  button,
  a[href],
  summary,
  [role="button"],
  [role="tab"],
  [role="radio"],
  [tabindex]:not([tabindex="-1"])
):focus:not(:focus-visible),
html[data-input-modality="pointer"][data-theme] :where(
  button,
  a[href],
  summary,
  [role="button"],
  [role="tab"],
  [role="radio"],
  [tabindex]:not([tabindex="-1"])
):is(:focus,:focus-visible){
  outline:none !important;
  outline-offset:0 !important;
  box-shadow:none !important;
  filter:none !important;
  opacity:1 !important;
}

@media (forced-colors:active){
  :where(button,a,input,select,textarea,summary,[role="button"],[tabindex]):focus-visible{
    outline:3px solid Highlight !important;
    outline-offset:2px !important;
  }
}
