/* PawCard 31.0.2 — larger type, pet portraits and comfortable touch targets. */
:root {
  --mobile-nav-content: 78px;
  --mobile-nav-safe: max(10px, calc(env(safe-area-inset-bottom, 0px) - 12px));
  --mobile-nav-height: calc(var(--mobile-nav-content) + var(--mobile-nav-safe));
}

html, body { font-size: 16px; line-height: 1.55; }
.workspace-header { height: 112px; min-height: 112px; }
.workspace-header > div:first-child { min-width: 0; }
.workspace-header h1 { overflow-wrap: anywhere; }
.sidebar { width: 390px; max-width: 440px; }
.client-item { padding: 24px 20px; }
.item-main-row { gap: 16px; }
.avatar-headshot, .avatar-fallback, .avatar-walkin {
  width: 72px; height: 72px; border-radius: 18px; font-size: 28px;
}
.avatar-walkin .icon, .avatar-fallback .icon { width: 30px; height: 30px; }
.client-name-line { flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 3px; }
.pet-name { font-size: 20px; overflow-wrap: anywhere; }
.owner-row {
  font-size: 15px; line-height: 1.55; white-space: normal;
  overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
}
.client-meta-line { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.last-service { font-size: 13px; }
.item-badges-left { gap: 6px; }
.detail-avatar { width: 112px; height: 112px; border-radius: 28px; }
.detail-avatar .icon { width: 44px; height: 44px; }
.detail-hero > div { min-width: 0; }
.detail-hero h2 { overflow-wrap: anywhere; }
.data-value, .notes-panel, .visit-notes { font-size: 16px; }
.profile-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-extra .profile-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-gallery img { width: 96px; height: 96px; }
.visit-photo-strip img { width: 88px; height: 88px; }
.section-title { align-items: flex-start; flex-wrap: wrap; }
.hero-actions .contact-chip { min-height: 40px; font-size: 14px; }
.hero-actions .icon { width: 17px; height: 17px; }
.btn-primary, .btn-secondary, .btn-walkin-fast, .quick-chip,
.btn-cloud, .contact-chip { min-height: 44px; }
.icon-button, .modal-close-btn { width: 44px; height: 44px; }
.text-input, .text-area, .select-input { min-height: 48px; font-size: 16px; }
.text-input, .select-input, .search-input { min-width: 0; }
.search-input { height: 48px; font-size: 16px; }
.search-input::placeholder { font-size: 15px; }
.search-icon { top: 14px; }
.filter-pill { min-height: 44px; padding-top: 5px; }
.clean-select { min-height: 44px; font-size: 14px; }
.directory-filter-row .icon-button { width: 44px; height: 44px; }
.directory-filter-row .icon { width: 21px; height: 21px; }
.date-pill { min-height: 40px; }
.timeline-row, .slot-main { min-height: 64px; }
.timeline-time { width: 100px; font-size: 15px; }
.timeline-row.sub-slot .timeline-time { font-size: 14px; }
.slot-toggle { min-height: 44px; min-width: 94px; font-size: 14px; }
.slot-empty-label { font-size: 14px; }
.schedule-date-row input { min-height: 44px; width: 174px; font-size: 16px; }
.schedule-date-row .quick-chip, .schedule-control-buttons button { min-height: 44px; font-size: 14px; }
.staff-pill { min-height: 44px; }
.earn-copy { min-width: 0; }
.earn-copy h3, .inbox-copy h3 { overflow-wrap: anywhere; }
.earnings-sticky-bar { flex-wrap: wrap; }
.settings-layout { max-width: 900px; }
.settings-card p, .settings-intro { font-size: 16px; line-height: 1.8; }
.settings-card h2 { font-size: 20px; }
.settings-actions { flex-wrap: wrap; }
.settings-card .backup-export-notice p { font-size: 15px; }
#earningsCardsContainer, #inboxPage, #inboxDashboard, #inboxListContainer {
  background: var(--bg); color: var(--text);
}
.inbox-card { background: var(--bg); }
.inbox-card:hover { background: var(--surface); }
.inbox-mark { width: 48px; height: 48px; }
.inbox-mark .icon { width: 23px; height: 23px; }
.inbox-copy h3 { font-size: 18px; }
.inbox-copy p { font-size: 16px; }
.inbox-card .btn-primary { min-height: 44px; font-size: 15px; }
#inboxDashboard .modal-footer { background: var(--bg) !important; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.text-button { min-height: 40px; display: inline-flex; align-items: center; }
.modal-header { flex-shrink: 0; }
.modal-header > span:first-child { overflow-wrap: anywhere; }
.field-label { font-size: 14px; }
.confirm-card { max-width: 460px !important; }

@media (min-width: 1450px) {
  .sidebar { width: 420px; }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .sidebar { width: 340px; }
  .client-item { padding: 22px 16px; }
  .item-main-row { gap: 12px; }
  .avatar-headshot, .avatar-fallback, .avatar-walkin { width: 64px; height: 64px; }
  .profile-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .app-shell { height: 100dvh; padding-bottom: var(--mobile-nav-height); }
  .workspace-header {
    height: calc(100px + env(safe-area-inset-top, 0px));
    min-height: calc(100px + env(safe-area-inset-top, 0px));
    padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 14px;
    gap: 8px;
  }
  .workspace-header > div:first-child { flex: 1; }
  .workspace-header h1 { font-size: 30px; line-height: 1.2; margin-top: 4px; }
  .header-kicker { font-size: 13px; max-width: 100%; }
  .workspace-actions { flex-shrink: 0; gap: 4px; }
  .workspace-actions .icon-button,
  .workspace-actions > .btn-primary {
    width: 48px; height: 48px; min-height: 48px; padding: 0;
  }
  .workspace-actions .icon { width: 25px; height: 25px; }
  .workspace-actions .sync-indicator {
    width: 40px; height: 48px; min-height: 48px; max-width: none;
    justify-content: center; border-radius: 999px;
  }
  .workspace-actions .status-dot { width: 8px; height: 8px; }
  .popover { top: calc(100% - 4px); right: 16px; max-width: calc(100vw - 32px); }
  .popover button { min-height: 52px; font-size: 17px; }
  .sidebar { width: 100%; max-width: none; }
  .directory-tools { padding: 22px 20px 16px; }
  .directory-filter-row .clean-select { font-size: 14px; }
  .client-item { padding: 24px 20px; }
  .client-item .avatar-headshot,
  .client-item .avatar-fallback,
  .client-item .avatar-walkin { width: 76px; height: 76px; border-radius: 20px; }
  .pet-name { font-size: 20px; }
  .owner-row { font-size: 15px; }
  .client-list-price { font-size: 16px; }
  .detail-avatar { width: 100px; height: 100px; border-radius: 26px; }
  .detail-hero { gap: 16px; }
  .detail-hero > div { flex: 1; }
  .detail-hero h2 { font-size: 32px; }
  .profile-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-back { min-height: 48px; font-size: 16px; }
  .mobile-back .icon { width: 21px; height: 21px; }
  .mobile-nav {
    top: auto; bottom: 0; left: 0; right: 0;
    height: var(--mobile-nav-height); min-height: var(--mobile-nav-height);
    padding: 16px max(8px, env(safe-area-inset-right, 0px)) max(2px, calc(var(--mobile-nav-safe) - 8px))
      max(8px, env(safe-area-inset-left, 0px));
    align-items: stretch;
  }
  .mobile-nav .nav-item {
    width: 25%; min-height: 70px; padding: 6px 2px; gap: 5px;
    justify-content: center; flex-direction: column; font-size: 14px;
  }
  .mobile-nav .icon { width: 30px; height: 30px; }
  .mobile-nav .nav-label { display: block; font-size: 14px; line-height: 18px; font-weight: 600; }
  .mobile-nav .nav-count {
    top: 1px; right: calc(50% - 28px); font-size: 12px;
    min-width: 20px; min-height: 20px; line-height: 20px; padding: 0 5px;
  }
  .schedule-date-row { min-width: 0; }
  .schedule-date-row input { flex: 1; width: 0; min-width: 0; font-size: 16px; }
  .schedule-date-row .quick-chip { flex-shrink: 0; padding-inline: 10px; }
  .schedule-control-buttons { flex-wrap: wrap; }
  .schedule-summary { flex-wrap: wrap; }
  .schedule-summary > span:first-child { max-width: 100%; }
  .timeline-row, .slot-main { min-height: 66px; }
  .timeline-time { width: 84px; font-size: 14px; }
  .timeline-row.sub-slot .timeline-time { font-size: 13px; }
  .timeline-row.is-booked .timeline-time { width: 78px; }
  .slot-toggle { min-height: 44px; min-width: 92px; }
  .slot-empty-label { font-size: 13px; }
  .frozen-group > summary { min-height: 48px; font-size: 13px; }
  .settings-card { padding: 22px; }
  .settings-intro { font-size: 16px; }
  .settings-actions > * { min-height: 46px; }
  .text-input, .text-area, .select-input, .search-input,
  .modal-header + div .text-input { font-size: 16px !important; }
  .search-input::placeholder { font-size: 15px; }
  .field-label { font-size: 14px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-backdrop {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .modal-card {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px))) !important;
  }
  .modal-header { min-height: 76px; font-size: 18px; }
  .modal-close-btn { width: 48px; height: 48px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn-primary, .modal-footer .btn-secondary { min-height: 48px; font-size: 16px; }
  .toast-region { bottom: calc(var(--mobile-nav-height) + 14px); }
  .login-gate {
    padding-top: calc(28px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .workspace-header { padding-inline: 12px; }
  .workspace-header h1 { font-size: 28px; }
  .workspace-actions { gap: 0; }
  .workspace-actions .sync-indicator { width: 32px; }
  .directory-tools, .client-item, .detail-content { padding-left: 16px; padding-right: 16px; }
  .item-main-row { gap: 12px; }
  .client-item .avatar-headshot,
  .client-item .avatar-fallback,
  .client-item .avatar-walkin { width: 72px; height: 72px; }
  .detail-hero { flex-wrap: wrap; }
  .schedule-controls { padding-left: 16px; padding-right: 16px; }
  .schedule-date-row { flex-wrap: wrap; }
  .schedule-date-row input { flex-basis: 100%; width: 100%; }
  .timeline-time { width: 76px; }
  .slot-empty-label { font-size: 12px; }
  .settings-layout { padding-left: 16px; padding-right: 16px; }
  .settings-card { padding: 18px; }
}
