/* Calm Clinic: app-owned surfaces shared by iPhone, Android and installed PWA. */
@font-face {
  font-family: 'Inter App'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/static/assets/fonts/InterVariable.woff2') format('woff2');
}
.is-mobile-app {
  --text: #142c49; --muted: #586d86; --blue: #0869d8; --blue-dark: #0759b6;
  --border: #e3eaf2; --bg: #f5f7fa; --surface: #ffffff;
  color: var(--text); background: var(--bg); font-family: 'Inter App', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent; font-optical-sizing: auto;
}
.is-mobile-app .app-shell { max-width: 520px; padding: 0; margin: 0 auto; min-height: 100dvh; }
.is-mobile-app .topbar, .is-mobile-app .legal-footer,
.is-mobile-app #authView > :not(.auth-dialog):not(.pet-onboarding-dialog) { display: none !important; }
.is-mobile-app #authView { min-height: 0; padding: 0; }
.is-mobile-app main { padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
.is-mobile-app .mobile-dashboard { padding: 0; border: 0; gap: 0; box-shadow: none; background: transparent; }
.is-mobile-app button, .is-mobile-app input, .is-mobile-app select, .is-mobile-app textarea { font: inherit; }
.is-mobile-app button { touch-action: manipulation; }
.is-mobile-app button:focus-visible, .is-mobile-app a:focus-visible, .is-mobile-app summary:focus-visible { outline: 3px solid #0869d8; outline-offset: 3px; }
.is-mobile-app [hidden] { display: none !important; }
.mobile-chrome { position: sticky; top: 0; z-index: 20; }
.mobile-header { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 11px; background: #ffffff; border-bottom: 1px solid #f0f3f7; }
.mobile-brand-block { flex: 1; min-width: 0; }
.mobile-brand { font-size: 22px; font-weight: 760; line-height: 1.15; letter-spacing: -.065em; white-space: nowrap; color: #112a47; }
.mobile-brand > span { color: var(--blue); }
.mobile-header h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mobile-language { flex: 0 0 auto; }
.mobile-header .language-picker { margin: 0; padding: 0; display: block; }
.mobile-header .language-picker > span { display: none; }
.mobile-header .language-picker select { width: 58px; min-height: 40px; padding: 8px 7px; font-size: 12px; font-weight: 650; border: 1px solid var(--border); border-radius: 10px; background-color: #fff; color: var(--text); }
.mobile-profile { min-width: 44px; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; min-height: 44px; border: 0; padding: 4px 0 4px 4px; background: transparent; color: #405b7b; font-size: 11px !important; font-weight: 600 !important; }
.mobile-profile .app-icon { width: 21px; height: 21px; flex-basis: 21px; }
.mobile-back { display: grid; place-items: center; width: 32px; min-height: 44px; border: 0; padding: 0; color: #3c5877; background: transparent; }
.mobile-back .app-icon { width: 23px; height: 23px; }
.mobile-header.has-back { gap: 8px; }
.mobile-header.has-back .mobile-brand { font-size: 20px; }
.mobile-header.has-back .mobile-profile > span:last-child { display: none; }
.mobile-workspace { padding: 18px 16px calc(110px + env(safe-area-inset-bottom, 0px)); min-height: calc(100dvh - 140px); margin: 0; border: 0; background: transparent; scroll-margin-top: 85px; }
.mobile-workspace .workspace-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; }
.mobile-workspace .workspace-head > div { min-width: 0; }
.mobile-workspace .workspace-head h2 { font-size: 25px; line-height: 1.15; font-weight: 740; letter-spacing: -.04em; color: var(--text); margin: 0 0 8px; }
.mobile-workspace .workspace-head p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--muted); }
.mobile-workspace .workspace-head > .secondary-button { margin-left: auto; min-width: 44px; font-size: 12px; }
.mobile-workspace .workspace-head > .secondary-button > span:not(.app-icon) { display: none; }
.mobile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.mobile-section-heading h2, .mobile-section-heading h3 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.025em; }
.mobile-section-heading .text-button { font-size: 12px; }
.is-mobile-app .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 16px; background: var(--blue); border: 1px solid var(--blue); border-radius: 13px; color: #fff; font-size: 15px; font-weight: 650; line-height: 1.3; text-decoration: none; box-shadow: 0 3px 8px #0869d80b; }
.is-mobile-app .primary-button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.is-mobile-app .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 1px solid #d8e3ef; padding: 10px 13px; border-radius: 12px; background: #fff; color: #285b90; font-size: 13px; font-weight: 600; }
.is-mobile-app .text-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--blue); line-height: 1.35; }
.is-mobile-app input, .is-mobile-app select, .is-mobile-app textarea { border-color: #cedae7; border-radius: 11px; min-height: 46px; color: var(--text); }
.is-mobile-app textarea { min-height: 110px; }
.is-mobile-app .danger-text { color: #b13c41; }
.is-mobile-app .profile-card, .is-mobile-app .item-card, .is-mobile-app .empty-state { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: none; }
.is-mobile-app .profile-card h3, .is-mobile-app .item-card h3 { color: var(--text); letter-spacing: -.025em; }
.is-mobile-app .profile-card { padding: 18px; }
.is-mobile-app .menu-card { background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: none; padding: 17px; min-height: 86px; }
.is-mobile-app .menu-card strong { font-size: 15px; line-height: 1.3; }
.is-mobile-app .menu-card small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.is-mobile-app .menu-card .app-icon { width: 27px; height: 27px; flex-basis: 27px; color: var(--blue); }
.is-mobile-app .menu-card:hover { border-color: #b8cce5; transform: none; }
.is-mobile-app .more-menu-grid { margin-top: 18px; gap: 10px; }
.mobile-tabbar { position: fixed; z-index: 25; bottom: 0; left: 0; right: 0; width: 100%; max-width: 520px; margin-inline: auto; box-sizing: border-box; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 7px 8px max(12px, env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #e5ecf3; box-shadow: 0 -3px 14px #122c4910; }
.is-native-app .mobile-tabbar { padding-bottom: max(30px, env(safe-area-inset-bottom, 0px)); }
.mobile-tabbar .app-nav-item { min-width: 0; min-height: 55px; padding: 7px 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 12px; background: transparent; color: #586d86; font-size: 10px; font-weight: 600; line-height: 1.2; }
.mobile-tabbar .app-nav-item.is-active { background: #eaf3ff; color: #0869d8; }
.mobile-tabbar .app-icon { width: 25px; height: 25px; flex-basis: 25px; }
.mobile-pet-card { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 89px; padding: 14px; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 17px; color: var(--text); box-shadow: 0 2px 8px #122c4903; }
.mobile-pet-avatar { flex: 0 0 72px; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #edf3f9; }
.mobile-pet-avatar .pet-portrait { width: 100%; height: 100%; object-fit: cover; }
.mobile-pet-avatar .pet-species-icon { width: 36px; height: 36px; opacity: .67; }
.mobile-pet-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; flex: 1; }
.mobile-pet-card strong { font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; overflow-wrap: anywhere; }
.mobile-pet-card small { font-size: 12px; line-height: 1.3; color: #586d86; }
.mobile-pet-card .mobile-pet-breed { font-size: 11px; color: #586d86; }
.mobile-pet-card > .app-icon { width: 19px; height: 19px; flex-basis: 19px; color: #5f7895; }
.mobile-home .mobile-concern-primary { display: flex; gap: 13px; justify-content: flex-start; width: 100%; margin: 12px 0; min-height: 86px; padding: 15px; border-radius: 16px; text-align: left; }
.mobile-primary-icon { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; background: #ffffff1c; border-radius: 50%; }
.mobile-primary-icon .app-icon { width: 29px; height: 29px; flex-basis: 29px; }
.mobile-concern-primary > span:nth-child(2) { display: grid; gap: 6px; flex: 1; min-width: 0; }
.mobile-concern-primary strong { color: #fff; font-size: 20px; font-weight: 650; line-height: 1.1; letter-spacing: -.035em; }
.mobile-concern-primary small { font-size: 12px; line-height: 1.35; font-weight: 450; color: #eef6ff; }
.mobile-concern-primary > .app-icon { width: 17px; height: 17px; flex-basis: 17px; }
.mobile-service-list, .mobile-record-links { background: #fff; border: 1px solid var(--border); border-radius: 17px; padding: 0 14px; overflow: hidden; }
.mobile-service-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; width: 100%; min-height: 70px; background: transparent; border: 0; border-radius: 0; text-align: left; color: var(--text); }
.mobile-service-row + .mobile-service-row { border-top: 1px solid #e9eef4; }
.mobile-service-icon { flex: 0 0 35px; width: 35px; display: grid; place-items: center; color: var(--blue); }
.mobile-service-icon .app-icon { width: 33px; height: 33px; flex-basis: 33px; }
.mobile-service-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.mobile-service-copy strong { color: #173252; font-size: 15px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.mobile-service-copy small { font-size: 12px; line-height: 1.35; color: #586d86; }
.mobile-service-row > .app-icon { width: 16px; height: 16px; flex-basis: 16px; color: #7085a0; }
.mobile-dates { background: #edf4fd; border: 1px solid #e9f0f9; border-radius: 15px; padding: 1px 12px; margin-top: 12px; }
.mobile-dates > button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 80px; padding: 11px 0; text-align: left; background: transparent; color: var(--text); border: 0; border-radius: 0; }
.mobile-dates > button + button { border-top: 1px solid #dce7f4; }
.mobile-date-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; background: #e1eeff; border-radius: 50%; color: var(--blue); }
.mobile-date-icon .app-icon { width: 24px; height: 24px; flex-basis: 24px; }
.mobile-dates button > span:nth-child(2) { display: grid; gap: 4px; flex: 1; min-width: 0; }
.mobile-dates strong { font-size: 13px; line-height: 1.4; font-weight: 650; }
.mobile-dates small { color: #586e88; font-size: 11px; line-height: 1.4; }
.mobile-dates > button > .app-icon { width: 16px; height: 16px; flex-basis: 16px; color: #5d7a9c; }
.mobile-plan-strip { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; margin-top: 12px; border: 1px solid #e8eff9; border-radius: 14px; background: #edf4fd; padding: 11px 12px; text-align: left; color: var(--text); }
.mobile-plan-icon { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 50%; background: #fff7e6; color: #a36b0b; }
.mobile-plan-icon .app-icon { width: 22px; height: 22px; flex-basis: 22px; }
.mobile-plan-strip > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; flex: 1; }
.mobile-plan-strip strong { font-size: 13px; font-weight: 650; }
.mobile-plan-strip small { font-size: 10px; line-height: 1.4; color: #5b718e; }
.mobile-plan-link { display: flex; align-items: center; gap: 2px; color: var(--blue); font-size: 10px; font-weight: 600; }
.mobile-plan-link .app-icon { width: 13px; height: 13px; flex-basis: 13px; }
.mobile-minor-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.mobile-minor-actions .text-button { font-size: 11px; }
.mobile-minor-actions .app-icon { width: 17px; height: 17px; flex-basis: 17px; }
.mobile-medical-note { display: flex; align-items: flex-start; gap: 8px; padding: 14px 0 0; margin: 4px 0 0; color: #586d86; font-size: 10px; line-height: 1.55; text-align: left; }
.mobile-medical-note .app-icon { flex: 0 0 17px; width: 17px; height: 17px; }
.mobile-empty-pet { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 18px; }
.mobile-empty-pet h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.04em; }
.mobile-empty-pet p:not(.mobile-eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.5; }
.mobile-eyebrow { color: var(--blue); font-size: 11px; font-weight: 650; margin: 0 0 10px; }
.mobile-editorial { background: #fff; border-radius: 20px; overflow: hidden; }
.mobile-editorial-photo { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.mobile-welcome-copy { padding: 23px; text-align: left; }
.mobile-welcome-copy h2 { margin: 0 0 12px; color: #142c49; font-size: 32px; font-weight: 720; line-height: 1.05; letter-spacing: -.05em; }
.mobile-welcome-copy > p:last-child { margin: 0; color: #586d86; font-size: 14px; line-height: 1.6; }
.mobile-welcome > .primary-button { width: 100%; margin-top: 16px; box-sizing: border-box; }
.mobile-welcome > .hint { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 13px 0 23px; text-align: center; }
.mobile-welcome > .text-button { font-size: 12px; }
.mobile-guide-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 0 12px 0 0; overflow: hidden; color: var(--text); }
.mobile-guide-card img { width: 96px; height: 100px; flex: 0 0 96px; object-fit: cover; object-position: 65% center; }
.mobile-guide-card > span:not(.app-icon) { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mobile-guide-card small { font-size: 10px; color: var(--blue); font-weight: 600; }
.mobile-guide-card strong { font-size: 15px; font-weight: 650; letter-spacing: -.025em; }
.mobile-guide-card span > span { font-size: 11px; line-height: 1.4; color: #586d86; }
.mobile-guide-card > .app-icon { width: 16px; height: 16px; flex-basis: 16px; color: #6c829d; }
/* A real uploaded pet photo is the only image used as a pet's identity. */
.mobile-record-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 6px; }
.mobile-record-heading h2 { font-size: 25px; font-weight: 740; line-height: 1.2; letter-spacing: -.04em; margin: 0; }
.mobile-record-heading .text-button { justify-content: center; width: 44px; }
.mobile-record-photo { aspect-ratio: 2.06; border-radius: 17px; overflow: hidden; background: #eaf0f5; }
.mobile-record-photo .pet-portrait { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 38%; border-radius: 0; }
.mobile-record-no-photo { display: flex; align-items: center; gap: 16px; background: #eaf1f8; border-radius: 17px; padding: 20px; }
.mobile-record-species { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; }
.mobile-record-species img { width: 62px; height: 62px; opacity: .65; }
.mobile-record-no-photo p { font-size: 13px; line-height: 1.5; color: #5d7590; }
.mobile-record-intro { padding: 14px 2px 12px; }
.mobile-record-intro h3 { font-size: 22px; font-weight: 700; letter-spacing: -.035em; margin: 0 0 6px; }
.mobile-record-intro p { font-size: 12px; line-height: 1.5; color: #586d86; margin: 0; }
.mobile-pet-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #eaf1f8; border-radius: 14px; padding: 12px 2px; }
.mobile-pet-metrics > div { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 8px; text-align: center; }
.mobile-pet-metrics > div + div { border-left: 1px solid #d7e2ef; }
.mobile-pet-metrics .app-icon { color: var(--blue); width: 23px; height: 23px; flex-basis: 23px; margin-bottom: 3px; }
.mobile-pet-metrics strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.mobile-pet-metrics small { font-size: 10px; color: #586d86; }
.mobile-record-add { width: 100%; margin: 14px 0; }
.mobile-record-links .mobile-service-row { min-height: 64px; padding: 10px 0; }
.mobile-record-links .mobile-service-icon .app-icon { width: 25px; height: 25px; flex-basis: 25px; }
.mobile-record-history { margin-top: 23px; }
.mobile-record-history .mini-history { list-style: none; padding: 0; margin: 0; }
.mobile-record-history .mini-history li { display: grid; gap: 6px; border-left: 2px solid #d8e5f2; padding: 12px 0 15px 17px; margin-left: 6px; background: transparent; }
.mobile-record-history .mini-history strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.mobile-record-history .mini-history span { color: #586d86; font-size: 11px; line-height: 1.45; }
.mobile-record-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.mobile-record-tools .secondary-button { font-size: 12px; }
.mobile-photo-settings { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 6px; }
.mobile-photo-settings summary { display: flex; align-items: center; gap: 9px; min-height: 48px; cursor: pointer; font-size: 13px; font-weight: 600; }
.mobile-photo-settings summary .app-icon { width: 19px; height: 19px; flex-basis: 19px; color: #5d7895; }
.mobile-photo-settings[open] > .pet-photo-actions { padding-bottom: 10px; }
.mobile-photo-settings .meta-row { margin: 8px 0; }
/* Honest comparison. The existing consent / checkout flow stays below it. */
.mobile-plan-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.mobile-plan-option { display: flex; flex-direction: column; min-width: 0; padding: 0 10px 12px; background: #fff; border: 1px solid #dce6f1; border-radius: 16px; overflow: hidden; }
.mobile-plan-option.is-plus { border-color: #80b5f2; background: #f7fbff; }
.mobile-plan-option > header { background: #f2f6fb; margin: 0 -10px; padding: 15px 12px 13px; min-height: 80px; }
.mobile-plan-option.is-plus > header { background: #e2efff; }
.mobile-plan-option h3 { display: flex; align-items: center; gap: 6px; color: #142c49; margin: 0 0 7px; font-size: 24px; font-weight: 720; letter-spacing: -.04em; line-height: 1.1; }
.mobile-plan-option.is-plus h3 { color: var(--blue); }
.mobile-plan-option h3 .app-icon { width: 22px; height: 22px; flex-basis: 22px; }
.mobile-plan-option header p { font-size: 11px; line-height: 1.45; color: #4d6a8c; margin: 0; }
.mobile-plan-option ul { list-style: none; padding: 0; margin: 0 0 14px; flex: 1; }
.mobile-plan-option li { display: flex; align-items: flex-start; gap: 8px; min-height: 59px; border-bottom: 1px solid #e8eff6; padding: 11px 0; color: #213e5f; font-size: 12px; line-height: 1.5; }
.mobile-plan-option li:nth-child(4) { min-height: 76px; }
.mobile-plan-option li .app-icon { width: 20px; height: 20px; flex-basis: 20px; color: #416187; }
.mobile-plan-option .primary-button { min-height: 44px; font-size: 12px; padding: 10px 6px; border-radius: 10px; text-align: center; }
.mobile-plan-price { display: block; text-align: center; font-size: 10px; line-height: 1.5; color: #586d86; margin-top: 7px; }
.mobile-plan-current { display: grid; align-content: center; min-height: 44px; padding: 8px; text-align: center; font-size: 11px; font-weight: 600; color: var(--blue); border-radius: 10px; background: #eaf3fd; }
.mobile-plan-note { display: flex; align-items: center; gap: 9px; padding: 13px; background: #edf7f3; border: 1px solid #dfefe8; border-radius: 13px; color: #32655b; font-size: 11px; line-height: 1.5; }
.mobile-plan-note .app-icon { flex: 0 0 24px; width: 24px; height: 24px; color: #338773; }
.is-mobile-app #plusPaymentOptions { scroll-margin-top: 90px; margin-top: 20px; }
.is-mobile-app .subscription-benefits-card { margin-top: 16px; }
/* Authentication, connection and loading remain explicit and readable. */
.mobile-connection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: #fff1d9; color: #765309; font-size: 12px; line-height: 1.5; }
.mobile-connection button { min-height: 36px; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.mobile-loading { display: grid; justify-items: center; align-content: center; min-height: 340px; text-align: center; }
.mobile-loading img { width: 64px; height: 64px; border-radius: 17px; background: white; padding: 7px; }
.mobile-loading h2 { margin: 20px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.mobile-loading p { margin: 0; font-size: 13px; color: #586d86; }
.is-mobile-app .auth-dialog, .is-mobile-app .pet-onboarding-dialog { padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); z-index: 60; }
.is-mobile-app .legal-modal { z-index: 70; padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
.is-mobile-app .auth-card, .is-mobile-app .legal-card { max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; border-radius: 22px; padding: 20px; }
.is-mobile-app .auth-card .section-label, .is-mobile-app .auth-method-heading, .is-mobile-app .auth-email-primary form > p:first-child { display: none; }
.is-mobile-app .auth-card-head h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.04em; margin: 0; }
.is-mobile-app .auth-card-head p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
.is-mobile-app .auth-card-head { margin-bottom: 18px; }
.is-mobile-app .auth-grid { display: block; }
.is-mobile-app .auth-grid .panel { padding: 0; background: transparent; border: 0; box-shadow: none; }
.is-mobile-app .auth-options { margin-top: 20px; }
.is-mobile-app .auth-options h2, .is-mobile-app #messengerHint:not(:empty) { font-size: 13px; }
.is-mobile-app .legal-consent { font-size: 12px; line-height: 1.55; }
.is-mobile-app .auth-alt-divider { margin: 12px 0; }
.is-mobile-app .cookie-banner { position: static; bottom: auto; z-index: auto; }

.mobile-founder { display: flex; align-items: center; gap: 14px; text-align: left; margin: 18px 0; }
.mobile-founder img { width: 88px; height: 88px; object-fit: cover; border-radius: 18px; flex: 0 0 88px; }
.mobile-founder strong, .mobile-founder span, .mobile-founder-signature strong, .mobile-founder-signature span { display: block; }
.mobile-founder span, .mobile-founder-signature span { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 5px; }
.mobile-founder-signature { margin: 18px 0; font-size: 14px; }
.is-mobile-app .case-continuation { margin: 0 0 12px; padding: 18px; border-radius: 18px; }
.is-mobile-app .case-continuation .inline-actions { display: grid; gap: 8px; }
.is-mobile-app .case-continuation h2 { font-size: 23px; line-height: 1.2; }
.is-mobile-app .case-continuation p { font-size: 14px; line-height: 1.5; }
.payment-redirect-dialog { width: min(380px, calc(100% - 32px)); border: 0; border-radius: 22px; padding: 25px; box-sizing: border-box; color: #142c49; }
.payment-redirect-dialog::backdrop { background: #142c4980; }
.payment-redirect-dialog h2 { font-size: 23px; margin: 0 0 12px; }
.payment-redirect-dialog p { line-height: 1.6; }
.payment-redirect-dialog .primary-button, .payment-redirect-dialog .secondary-button { width: 100%; margin-top: 10px; }
.payment-return-card { max-width: 420px; margin: 8vh auto; padding: 28px; background: #fff; border-radius: 22px; box-sizing: border-box; }
.payment-return-card .primary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 18px 0 0; box-sizing: border-box; text-align: center; text-decoration: none; }
.payment-return-card .text-button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; }
@supports (-webkit-touch-callout: none) {
  .is-mobile-app input, .is-mobile-app select, .is-mobile-app textarea { font-size: max(16px, 1em); }
}
@media (prefers-reduced-motion: no-preference) {
  .is-mobile-app button, .is-mobile-app a.primary-button { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease; }
  .is-mobile-app button:active:not(:disabled), .is-mobile-app a.primary-button:active { transform: scale(.985); }
  .is-mobile-app .notice.success { animation: app-dialog-in 160ms cubic-bezier(.2,.7,.2,1); }
  .is-mobile-app .auth-card, .is-mobile-app .legal-card { animation: app-dialog-in 180ms cubic-bezier(.2,.7,.2,1); }
  @keyframes app-dialog-in { from { opacity: .6; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  .is-mobile-app *, .is-mobile-app *::before, .is-mobile-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 500px) {
  .mobile-workspace { padding-inline: 22px; }
  .mobile-header { padding-inline: 22px; }
  .mobile-brand { font-size: 25px; }
  .mobile-service-row { min-height: 79px; }
  .mobile-tabbar .app-nav-item { font-size: 10px; }
  .mobile-record-photo { aspect-ratio: 1.9; }
}
@media (max-width: 360px) {
  .mobile-header { padding-inline: 12px; gap: 7px; }
  .mobile-brand { font-size: 20px; }
  .mobile-profile { font-size: 10px !important; }
  .mobile-header .language-picker select { width: 51px; }
  .mobile-workspace { padding-inline: 12px; }
  .mobile-concern-primary strong { font-size: 18px; }
  .mobile-service-copy strong { font-size: 14px; }
  .mobile-service-copy small { font-size: 11px; }
  .mobile-tabbar .app-nav-item { font-size: 9px; }
  .mobile-plan-link { font-size: 9px; }
  .mobile-plan-option li { font-size: 10px; min-height: 72px; }
}
@media print {
  body.is-mobile-app { background: #fff !important; }
  .mobile-header, .mobile-tabbar, .mobile-connection, .mobile-guide-card, .mobile-plan-strip, .mobile-minor-actions { display: none !important; }
  .mobile-workspace { padding: 0; }
  .doctor-summary-footer { display: block !important; }
}

/* Pinned Tabler outlines, MIT. Same family and stroke across app surfaces. */
.is-mobile-app .icon-house { -webkit-mask-image: url("/static/assets/icons/tabler/home.svg"); mask-image: url("/static/assets/icons/tabler/home.svg"); }
.is-mobile-app .icon-paw-print { -webkit-mask-image: url("/static/assets/icons/tabler/paw.svg"); mask-image: url("/static/assets/icons/tabler/paw.svg"); }
.is-mobile-app .icon-heart-pulse { -webkit-mask-image: url("/static/assets/icons/tabler/heart.svg"); mask-image: url("/static/assets/icons/tabler/heart.svg"); }
.is-mobile-app .icon-calendar-days { -webkit-mask-image: url("/static/assets/icons/tabler/calendar-event.svg"); mask-image: url("/static/assets/icons/tabler/calendar-event.svg"); }
.is-mobile-app .icon-ellipsis { -webkit-mask-image: url("/static/assets/icons/tabler/dots.svg"); mask-image: url("/static/assets/icons/tabler/dots.svg"); }
.is-mobile-app .icon-book-open { -webkit-mask-image: url("/static/assets/icons/tabler/book.svg"); mask-image: url("/static/assets/icons/tabler/book.svg"); }
.is-mobile-app .icon-clipboard-list { -webkit-mask-image: url("/static/assets/icons/tabler/clipboard-text.svg"); mask-image: url("/static/assets/icons/tabler/clipboard-text.svg"); }
.is-mobile-app .icon-utensils { -webkit-mask-image: url("/static/assets/icons/tabler/dog-bowl.svg"); mask-image: url("/static/assets/icons/tabler/dog-bowl.svg"); }
.is-mobile-app .icon-user-round { -webkit-mask-image: url("/static/assets/icons/tabler/settings.svg"); mask-image: url("/static/assets/icons/tabler/settings.svg"); }
.is-mobile-app .icon-chevron-left { -webkit-mask-image: url("/static/assets/icons/tabler/chevron-left.svg"); mask-image: url("/static/assets/icons/tabler/chevron-left.svg"); }
.is-mobile-app .icon-chevron-right { -webkit-mask-image: url("/static/assets/icons/tabler/chevron-right.svg"); mask-image: url("/static/assets/icons/tabler/chevron-right.svg"); }
.is-mobile-app .icon-settings { -webkit-mask-image: url("/static/assets/icons/tabler/settings.svg"); mask-image: url("/static/assets/icons/tabler/settings.svg"); }
.is-mobile-app .icon-dog-bowl { -webkit-mask-image: url("/static/assets/icons/tabler/dog-bowl.svg"); mask-image: url("/static/assets/icons/tabler/dog-bowl.svg"); }
.is-mobile-app .icon-file-description { -webkit-mask-image: url("/static/assets/icons/tabler/file-description.svg"); mask-image: url("/static/assets/icons/tabler/file-description.svg"); }
.is-mobile-app .icon-history { -webkit-mask-image: url("/static/assets/icons/tabler/history.svg"); mask-image: url("/static/assets/icons/tabler/history.svg"); }
.is-mobile-app .icon-bell { -webkit-mask-image: url("/static/assets/icons/tabler/bell.svg"); mask-image: url("/static/assets/icons/tabler/bell.svg"); }
.is-mobile-app .icon-plus { -webkit-mask-image: url("/static/assets/icons/tabler/plus.svg"); mask-image: url("/static/assets/icons/tabler/plus.svg"); }
.is-mobile-app .icon-credit-card { -webkit-mask-image: url("/static/assets/icons/tabler/credit-card.svg"); mask-image: url("/static/assets/icons/tabler/credit-card.svg"); }
.is-mobile-app .icon-mail { -webkit-mask-image: url("/static/assets/icons/tabler/mail.svg"); mask-image: url("/static/assets/icons/tabler/mail.svg"); }
.is-mobile-app .icon-stethoscope { -webkit-mask-image: url("/static/assets/icons/tabler/stethoscope.svg"); mask-image: url("/static/assets/icons/tabler/stethoscope.svg"); }
.is-mobile-app .icon-crown { -webkit-mask-image: url("/static/assets/icons/tabler/crown.svg"); mask-image: url("/static/assets/icons/tabler/crown.svg"); }
.is-mobile-app .icon-camera { -webkit-mask-image: url("/static/assets/icons/tabler/camera.svg"); mask-image: url("/static/assets/icons/tabler/camera.svg"); }
.is-mobile-app .icon-pencil { -webkit-mask-image: url("/static/assets/icons/tabler/pencil.svg"); mask-image: url("/static/assets/icons/tabler/pencil.svg"); }
.is-mobile-app .icon-scale { -webkit-mask-image: url("/static/assets/icons/tabler/scale.svg"); mask-image: url("/static/assets/icons/tabler/scale.svg"); }
.is-mobile-app .icon-check { -webkit-mask-image: url("/static/assets/icons/tabler/check.svg"); mask-image: url("/static/assets/icons/tabler/check.svg"); }
.is-mobile-app .icon-download { -webkit-mask-image: url("/static/assets/icons/tabler/download.svg"); mask-image: url("/static/assets/icons/tabler/download.svg"); }
.is-mobile-app .icon-shield-check { -webkit-mask-image: url("/static/assets/icons/tabler/shield-check.svg"); mask-image: url("/static/assets/icons/tabler/shield-check.svg"); }
.is-mobile-app .icon-circle-check { -webkit-mask-image: url("/static/assets/icons/tabler/circle-check.svg"); mask-image: url("/static/assets/icons/tabler/circle-check.svg"); }
.is-mobile-app .icon-arrow-right { -webkit-mask-image: url("/static/assets/icons/tabler/arrow-right.svg"); mask-image: url("/static/assets/icons/tabler/arrow-right.svg"); }
.is-mobile-app .icon-logout { -webkit-mask-image: url("/static/assets/icons/tabler/logout.svg"); mask-image: url("/static/assets/icons/tabler/logout.svg"); }
.is-mobile-app .icon-x { -webkit-mask-image: url("/static/assets/icons/tabler/x.svg"); mask-image: url("/static/assets/icons/tabler/x.svg"); }
.is-mobile-app .icon-photo { -webkit-mask-image: url("/static/assets/icons/tabler/photo.svg"); mask-image: url("/static/assets/icons/tabler/photo.svg"); }
.is-mobile-app .icon-info-circle { -webkit-mask-image: url("/static/assets/icons/tabler/info-circle.svg"); mask-image: url("/static/assets/icons/tabler/info-circle.svg"); }
.is-mobile-app .icon-help { -webkit-mask-image: url("/static/assets/icons/tabler/help.svg"); mask-image: url("/static/assets/icons/tabler/help.svg"); }
.is-mobile-app .icon-gift { -webkit-mask-image: url("/static/assets/icons/tabler/gift.svg"); mask-image: url("/static/assets/icons/tabler/gift.svg"); }

/* Compact record navigation keeps the journal near the photo. */
.mobile-record-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mobile-record-title h2 { font-size:24px; font-weight:720; letter-spacing:-.04em; margin:0; }
.mobile-record-title .text-button { width:44px; justify-content:center; }
.mobile-record-nav { display:flex; align-items:stretch; gap:2px; padding:3px; border:1px solid #e5ecf3; border-radius:12px; background:#eef2f7; }
.mobile-record-nav button { flex:1; padding:8px 4px; min-height:44px; border:0; border-radius:9px; background:transparent; color:#536b89; font-size:11px; font-weight:550; white-space:nowrap; }
.mobile-record-nav .is-active { background:#dcecff; color:#0869d8; font-weight:650; }
.mobile-record-history { margin-top:14px; }
.mobile-record-history .mobile-section-heading { margin-top:0; }
.mobile-record-tools > :last-child { grid-column:1/-1; }
@media (max-width:360px) { .mobile-record-nav button { font-size:10px; padding-inline:2px; } .mobile-pet-avatar { width:64px; height:64px; flex-basis:64px; } }

.mobile-record-intro { padding:12px 2px 10px; }
.mobile-record-title { position:relative; min-height:29px; padding-right:46px; }
.mobile-record-title .text-button { position:absolute; right:0; top:-8px; }
.mobile-record-add { margin-block:12px; }
.mobile-record-nav { padding:0; }
.mobile-record-history .mobile-section-heading { display:none; }
.mobile-record-history .mini-history li { padding-block:10px 12px; }
