/* One accent, dark surfaces, and a single safe-area reservation for phone navigation. */
:root {
  color-scheme: dark;
  --accent: #5bc69b;
  --accent-ink: #071710;
  --accent-soft: #10251d;
  --accent-line: #2d5745;
  --blue: var(--accent);
  --blue-hover: var(--accent);
  --blue-soft: var(--accent-soft);
  --green: var(--accent);
  --amber: var(--accent);
}
.btn-primary, .btn-cloud, .btn-walkin-fast, .modal-body button.btn-primary,
.modal-body .btn-primary[style], .modal-footer .btn-primary {
  background: var(--accent) !important; color: var(--accent-ink) !important;
}
.btn-primary:hover, .btn-cloud:hover, .btn-walkin-fast:hover { filter: brightness(1.06); }
.btn-primary:disabled { filter: none; }
.nav-symbol { display: inline-flex; position: relative; align-items: center; justify-content: center; }
.active-page-dot { position: absolute; top: -2px; right: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); border: 1px solid var(--bg); }
.nav-item.active:after { display: none; }
.nav-count { background: var(--accent); color: var(--accent-ink); }
.nav-item.active, .quick-chip.active, .staff-pill.active { color: var(--text); }
.filter-active-dot, .filter-pill.active:after, .tiny-dot, .status-dot { background: var(--accent); }
.st-request, .sp-req, .st-regular, .sp-ret, .sp-bath, .sp-groom, .sp-conf,
.st-walkin, .sp-new, .new-client-pill, .consent-switch-btn {
  color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line);
}
.slot-toggle { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot-toggle.is-frozen { background: #22272b; color: #a6afb5; border-color: #353c42; }
.directory-refresh-status { padding: 8px 16px; color: var(--accent); font-size: 14px; text-align: center; background: var(--accent-soft); flex-shrink: 0; }
.directory-refresh-status.is-refreshing { animation: breathe 1.5s infinite; }
.load-more-clients { display: flex; margin: 16px auto; }
.visit-heading > div { text-align: right; min-width: 0; max-width: 66%; }
.visit-price { overflow-wrap: anywhere; }
.visit-total { color: var(--muted); font-size: 14px; margin-top: 3px; }
.client-list-price { overflow-wrap: anywhere; }
.photo-count { color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 650; }
.photo-limit-hint { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 8px 0 10px; }
.plus-tile.is-disabled { opacity: .5; cursor: default; border-style: solid; }
.photo-load-notice { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.photo-load-notice .text-button { min-height: 36px; color: var(--accent); }
.profile-gallery > button, .visit-photo-strip > button { position: relative; flex-shrink: 0; }
.photo-unavailable { opacity: .12; }
.photo-retry { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12px; max-width: 100%; }
.workspace-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-copy { min-width: 0; }
.header-kicker { display: none; }
.header-back { color: var(--text); flex-shrink: 0; }
.workspace-header h1 { margin: 0; }
.workspace-actions .mobile-account { display: inline-flex; position: relative; width: 48px; height: 48px; }
.workspace-actions .mobile-account .icon { width: 27px; height: 27px; }
.mobile-account.account-is-active:after { content: ''; position: absolute; width: 6px; height: 6px; right: 8px; top: 7px; border-radius: 50%; background: var(--accent); }
.account-center-card { max-width: 560px !important; }
#accountCenterBody { gap: 0; }
.account-identity { display: flex; gap: 12px; align-items: center; padding: 4px 0 20px; flex-wrap: wrap; }
.account-portrait { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); width: 52px; height: 52px; border-radius: 50%; font-size: 23px; font-weight: 700; flex-shrink: 0; }
.account-identity > div { flex: 1; }
.account-identity h2 { font-size: 23px; margin: 0; }
.account-identity p, .account-location { color: var(--muted); font-size: 15px; }
.account-identity .btn-secondary { font-size: 14px; }
.account-group { padding: 18px 0; border-top: 1px solid var(--line); }
.account-group h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.account-group > p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.account-group .account-location { margin: 0; }
.account-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.account-sync-label { color: var(--accent); font-size: 14px; }
.account-backup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-backup-actions > * { font-size: 14px; cursor: pointer; }
.account-menu-row { display: flex; width: 100%; align-items: center; gap: 14px; min-height: 52px; padding: 12px 0; text-align: left; }
.account-menu-row > span:nth-child(2) { flex: 1; }
.account-menu-row > span:last-child { color: var(--muted); }
.account-menu-row strong { font-size: 17px; }
.account-menu-row small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.account-menu-row .icon { width: 23px; height: 23px; }
.account-tools { padding-block: 8px; }
.account-version { font-size: 13px; color: var(--subtle); padding-top: 16px; }
.danger, .account-menu-row.danger > span { color: var(--red); }
#rfComplaintSectionBox { background: var(--surface-raised) !important; border: 1px solid var(--line) !important; }
#rfComplaintSectionBox > div > label { color: var(--text) !important; }
#rfComplaintText { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
#rfNoComplaintHint { color: var(--muted) !important; }
#toggleCompBoxBtn { background: var(--accent-soft) !important; color: var(--accent) !important; border: 1px solid var(--accent-line); min-height: 40px; }
.modal-header[style] { background: var(--surface) !important; color: var(--text) !important; }
.modal-body [style*="background:var(--surface"],
.modal-body [style*="background: var(--surface"] { color: var(--text); }
.modal-body .remove-photo-btn { color: #fff !important; background: #8c3040 !important; }
.modal-body .btn-danger, .btn-danger { background: #2d141a !important; color: var(--red) !important; border: 1px solid #6c3540 !important; }
.preview-tile > button { min-height: 36px; }
.backup-export-notice { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.backup-export-notice.has-photo-notes { background: var(--surface-raised); border-color: var(--line); color: var(--muted); }
.inbox-card, .inbox-list, #inboxDashboard, #inboxListContainer { background: var(--bg) !important; color: var(--text); }
@media (min-width: 769px) {
  .workspace-header { min-height: 88px; height: 88px; }
  .header-back { display: none; }
}
@media (max-width: 768px) {
  .mobile-nav .nav-count { background: var(--accent); color: var(--accent-ink); font-size: 10px; line-height: 14px; }
  .nav-create-symbol { width: 44px; height: 33px; background: #f1f3f4; color: #000; }
  .nav-create-symbol .icon { width: 25px; height: 25px; }
  .workspace-header { height: calc(72px + env(safe-area-inset-top, 0px)); min-height: calc(72px + env(safe-area-inset-top, 0px)); padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px; }
  .workspace-title { flex: 1; gap: 5px; }
  .workspace-header h1 { font-size: 24px; line-height: 30px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .header-title-line { gap: 7px; min-width: 0; }
  .header-back { width: 44px; height: 48px; margin-left: -5px; }
  .header-back .icon { width: 26px; height: 26px; }
  .workspace-actions { flex-shrink: 0; }
  .workspace-actions .mobile-account { width: 48px; height: 48px; }
  .detail-topline .mobile-back, .detail-topline .breadcrumb { display: none; }
  .detail-topline { justify-content: flex-end; margin-bottom: 8px; min-height: 40px; }
  .detail-topline .detail-edit { font-size: 14px; padding: 7px 13px; min-height: 40px; }
  .detail-content { padding-top: 6px; }
  .detail-hero { gap: 14px; }
  .detail-hero h2 { font-size: 31px; line-height: 1.2; }
  .detail-avatar { width: 96px; height: 96px; border-radius: 25px; }
  .detail-breed { font-size: 15px; }
  .profile-summary-grid { gap: 16px 14px; padding: 16px; }
  .data-label { font-size: 12px; }
  .section-title { margin-top: 20px; }
  .hero-actions { gap: 8px; flex-wrap: wrap; }
  .hero-actions .contact-chip { min-height: 42px; font-size: 14px; }
  .main-panel, .client-list, .sched-timeline, #earningsCardsContainer, #inboxListContainer { scroll-padding-bottom: 12px; }
  .client-list, .main-panel, .sched-timeline { padding-bottom: 12px; }
  .mobile-nav-hidden .client-list, .mobile-nav-hidden .main-panel { padding-bottom: 12px; }
  .client-list { overscroll-behavior-y: contain; }
  .mobile-keyboard-open { padding-bottom: 0; }
  .mobile-keyboard-open .mobile-nav { display: none; }
  .account-center-card { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px) !important; }
  #accountCenterBody { padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .modal-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
/* Retained hover and role variants share the same accent too. */
.slot-toggle:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot-toggle.is-frozen:hover { background: #2a3035; color: var(--text); border-color: #424b53; }
.inbox-mark, .role-badge-manager { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.modal-body button[style*="color:var(--red)"], .modal-body span[style*="color:var(--red)"] { color: var(--red) !important; }
.modal-body button[style*="background:var(--red)"] { background: #2d141a !important; color: var(--red) !important; border-color: #6c3540 !important; }
@media (max-width: 768px) { }
.role-badge-superadmin, .role-badge-boss { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.timeline-row.is-request { background: var(--surface); border-color: var(--accent-line); }
.request-note { color: var(--muted); }
