/* Pet-owner application: the same hospital identity, with comfortable mobile reading. */
:root {
  --p: var(--p-action); --p2: #09685f; --teal: var(--p-action); --psoft: var(--hospital-soft);
  --bg: var(--p-bg); --card: #fff; --text: var(--p-ink); --t2: #405c61;
  --muted: var(--p-muted); --line: var(--hospital-line); --orange: #996014; --red: #b33c42;
}
body { background: #eaf0ee; font-size: 14px; line-height: 1.65; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
.fl input:focus-visible, .fl select:focus-visible, .fl textarea:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
#phone { background: var(--bg); box-shadow: 0 0 0 1px #dae5e0, 0 12px 60px #163c3d08; }
#content { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
.card { border-color: var(--line); border-radius: 16px; box-shadow: var(--hospital-shadow); margin: 16px; padding: 20px; }
.card.tight { padding: 0; }
.section-heading { margin-bottom: 16px; gap: 12px; }
.section-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.section-heading small { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: .8px; font-weight: 500; }
.mp-top { padding: 24px 20px 12px; }
.mp-brand { gap: 10px; }
.mp-brand > .mp-icon { width: 22px; height: 22px; padding: 10px; color: #fff; background: var(--p); border-radius: 12px; }
.mp-brand strong { font-size: 17px; letter-spacing: 0; }
.mp-brand .eyebrow { font-size: 10px; color: var(--muted); letter-spacing: .5px; margin-bottom: 2px; }
.icon-button { background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; color: var(--text); }
.notification-dot { background: var(--red); }
.welcome-line { margin: 12px 20px 20px; }
.welcome-line .nm { font-size: 20px; font-weight: 600; }
.welcome-line p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.quiet-pill { background: #eaf3ee; border: 1px solid #d5e5da; color: #426854; font-size: 12px; padding: 4px 10px; }
.care-hero { background: #e7f2ee; border: 1px solid #d6e7df; color: var(--text);
  border-radius: 16px; min-height: 184px; margin: 0 16px 16px; padding: 24px 20px; }
.care-hero > div { width: 65%; }
.care-hero .eyebrow { font-size: 10px; color: #477366; letter-spacing: .5px; }
.care-hero h1 { font-size: 24px; font-weight: 600; line-height: 1.45; letter-spacing: -.5px; max-width: 250px; margin: 8px 0; }
.care-hero p { font-size: 13px; color: #496c61; line-height: 1.7; max-width: 190px; }
.care-hero .hero-line { color: #446b5d; font-size: 11px; margin-top: 16px; }
.care-hero .pet-art { width: 42%; right: -2px; bottom: 6px; }
.notice-strip { margin: 0 16px 16px; font-size: 12px; color: #536b65; border-radius: 10px; padding: 12px; background: #f0f5f1; }
.notice-strip span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.8; }
.notice-strip > .mp-icon { flex-shrink: 0; }
.health-card { padding: 20px; }
.text-button { min-height: 44px; font-size: 12px; padding: 8px 0 8px 8px; }
.text-button .mp-icon { width: 15px; height: 15px; }
.pet-switch { gap: 8px; }
.pet-chip { min-height: 40px; padding: 8px 14px; font-size: 13px; border-radius: 9px; color: var(--t2); background: #fff; }
.pet-chip.selected { color: var(--p2); border-color: #8cbfaf; background: var(--psoft); }
.pet-chip .mp-icon { width: 18px; height: 18px; }
.health-pet { padding: 20px 0; gap: 14px; }
.health-avatar { width: 58px; height: 58px; border-radius: 14px; color: #866945; background: #f6eedf; }
.health-pet h3 { font-size: 22px; font-weight: 600; }
.health-pet h3 span { font-size: 11px; color: #526d60; }
.health-pet p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.health-label { font-size: 12px; color: #496d5d; }
.primary-services { gap: 10px; }
.primary-services button { min-height: 78px; border-radius: 12px; padding: 14px 12px; gap: 10px; }
.primary-service { background: var(--p); color: #fff; }
.primary-services strong { font-size: 15px; font-weight: 600; }
.primary-services small { font-size: 11px; line-height: 1.6; margin-top: 4px; }
.primary-service small { color: #e4f3ee; }
.secondary-service { background: #eff5f2; color: var(--p2); border: 1px solid #dfebe4; }
.secondary-service small { color: #587267; }
.primary-service > .mp-icon:last-child { display: none; }
.todo-grid { gap: 10px; margin: 16px; }
.todo-grid button { min-height: 92px; padding: 14px 6px; border-color: var(--line); border-radius: 12px; gap: 4px 8px; }
.todo-grid b { font-size: 25px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.todo-grid span { color: var(--muted); font-size: 12px; }
.todo-grid .mp-icon { color: var(--p); }
.services-card .section-heading { margin-bottom: 20px; }
.service-grid { gap: 20px 6px; }
.service-grid button { min-height: 74px; padding: 2px; gap: 8px; }
.service-grid button > span { width: 44px; height: 44px; border-radius: 12px; background: #edf5f1; color: #387d66; }
.service-grid button:nth-child(4n+2) > span { background: #eef4f9; color: #4a7296; }
.service-grid button:nth-child(4n+3) > span { background: #f7f0e5; color: #937344; }
.service-grid b { font-size: 12px; font-weight: 500; color: #405d61; white-space: nowrap; }
.member-banner { background: #f5f1e8; border-color: #e7dfcf; border-radius: 14px; padding: 20px 16px; margin: 16px; }
.member-banner strong { font-size: 15px; font-weight: 600; color: #625238; }
.member-banner small { font-size: 12px; color: #76674e; line-height: 1.7; }
.hospital-card { background: #edf3f0; }
.hospital-card p { font-size: 13px; color: #526a62; line-height: 1.9; }
.hospital-card > div:not(.section-heading) { font-size: 12px; color: #526a62; align-items: flex-start; }
.hospital-card > div:not(.section-heading) .mp-icon { flex-shrink: 0; margin-top: 2px; }
.hospital-phone { font-size: 13px; min-height: 44px; }
.appointment-ticket { padding: 16px 0; gap: 10px; }
.appointment-ticket strong { font-size: 13px; }
.appointment-ticket p { font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; padding: 4px 8px; border-radius: 6px; line-height: 1.5; }
.tag.p, .tag.o { color: var(--p2); background: var(--psoft); }
.tag.w { color: var(--hospital-warn); background: var(--hospital-warn-soft); }
.tag.b, .tag.v { color: var(--hospital-blue); background: var(--hospital-blue-soft); }
.tag.d { color: var(--red); background: var(--hospital-danger-soft); }
.navbar, .navbar.white { position: relative; border-radius: 0; min-height: 64px; padding: 20px 54px;
  background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.navbar .title { font-size: 17px; letter-spacing: 0; }
.navbar .back { top: 10px; left: 12px; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 9px; color: var(--p2); }
.page-intro { padding: 24px 20px 8px; }
.page-intro h1 { font-size: 26px; font-weight: 600; letter-spacing: -.6px; margin: 6px 0; }
.page-intro p { font-size: 13px; line-height: 1.8; }
.page-intro .eyebrow { color: var(--p2); font-size: 10px; letter-spacing: .7px; }
.btn { border-radius: 10px; min-height: 48px; font-size: 15px; font-weight: 500; background: var(--p); box-shadow: none;
  transition: background .16s, border-color .16s, transform .16s; }
.btn.ghost { color: var(--p2); border-color: #c3dad0; background: #fff; }
.btn.gray { color: #4e6863; background: #edf3ef; }
.btn:not(:disabled):active { transform: translateY(1px); }
.fl { margin-bottom: 20px; }
.fl label { font-size: 13px; color: var(--t2); margin-bottom: 8px; }
.fl input, .fl select, .fl textarea, input#txt { border-color: #d2e0d9; background: #fff; border-radius: 9px; min-height: 48px; padding: 12px; font-size: 16px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.8; }
.doctor { min-height: 82px; padding: 14px; border-radius: 12px; }
.doctor .name { font-size: 15px; }
.doctor .sub { font-size: 12px; }
#content[data-page="appt"] .card { padding: 16px; }
#content[data-page="appt"] .card-h h3 { font-size: 14px; }
#content[data-page="appt"] .pets { flex-wrap: wrap; gap: 8px; overflow: visible; padding: 2px; }
#content[data-page="appt"] .pet { width: auto; min-width: 124px; min-height: 72px; flex: 0 1 auto;
  display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 2px 10px;
  padding: 12px; border-radius: 10px; text-align: left; }
#content[data-page="appt"] .pet .em { grid-row: 1 / 3; font-size: 20px; line-height: 1; }
#content[data-page="appt"] .pet .em .mp-icon { width: 25px; height: 25px; }
#content[data-page="appt"] .pet .n { font-size: 14px; margin: 0; align-self: end; }
#content[data-page="appt"] .pet .i { font-size: 12px; white-space: normal; align-self: start; }
#content[data-page="appt"] .pets:has([data-ad]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#content[data-page="appt"] [data-ad].pet { min-width: 0; width: 100%; }
#content[data-page="appt"] [data-ad].pet .i { font-size: 11px; }
.slots { gap: 10px; }
.slot { min-height: 44px; display: grid; place-items: center; font-size: 14px; border-radius: 8px; }
#content[data-page="appt"] button.tag { min-height: 44px; padding: 10px 14px; font-size: 13px; }
[data-aday] { min-width: 56px; min-height: 64px; }
[data-aday] b { font-size: 17px; }
.li { min-height: 68px; padding: 16px; }
.li .tl { font-size: 14px; }
.li .sl { font-size: 12px; color: var(--muted); line-height: 1.7; }
.li .ar { color: #6f8580; }
.empty { padding: 36px 20px; color: var(--muted); }
.empty p { font-size: 13px; line-height: 1.8; }
.tabbar { height: calc(76px + env(safe-area-inset-bottom)); background: #fff; backdrop-filter: none;
  box-shadow: 0 -1px 0 #e2eae5; border-color: transparent; }
.tabbar .tb { min-height: 64px; font-size: 12px; gap: 4px; color: #617870; }
.tabbar .tb .em { border-radius: 10px; padding: 4px 14px; }
.tabbar .tb.on { color: var(--p2); font-weight: 600; }
.tabbar .tb.on .em { background: #e5f2eb; }
.login-hero { background: #e7f2ec; color: var(--text); min-height: 306px; padding: 28px 24px 52px; }
.login-brand { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.login-brand > .mp-icon { color: var(--p2); }
.login-brand small { color: #4b6f5f; border-color: #b7d2c2; font-size: 11px; padding: 4px 10px; }
.login-hero > .eyebrow { color: #3f6654; font-size: 10px; margin-top: 34px; letter-spacing: .6px; }
.login-hero h1 { font-size: 29px; font-weight: 600; letter-spacing: -.5px; line-height: 1.5; margin: 8px 0; max-width: 260px; z-index: 1; }
.login-hero > p { font-size: 13px; color: #4d7160; max-width: 210px; z-index: 1; line-height: 1.8; }
.login-art { right: -14px; bottom: 2px; }
.login-art .pet-art { width: 168px; opacity: 1; }
.login-panel { position: relative; margin: -24px 16px 16px; padding: 24px; box-shadow: 0 8px 24px #163c3d06; }
.login-panel .eyebrow { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.login-panel h2 { font-size: 19px; font-weight: 600; }
.login-panel .section-heading { margin-bottom: 24px; }
.login-panel .btn.ghost { font-size: 14px; }
.demo-accounts { margin-top: 20px; padding-top: 16px; }
.demo-accounts summary { min-height: 44px; font-size: 13px; color: #526d61; }
.demo-accounts [data-phone] { min-height: 44px; font-size: 13px; }
.login-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 16px; }
.login-footer { font-size: 12px; color: #577266; margin: 24px 16px; }
.profile-header { background: #e7f2ec; padding-bottom: 48px; }
.profile-person h1 { font-size: 24px; font-weight: 600; }
.profile-person p { font-size: 13px; }
.profile-person > div > span { font-size: 12px; color: #4c6c5a; }
.profile-avatar { border-radius: 16px; box-shadow: none; }
.profile-member { border-radius: 14px; }
.profile-menu .li { min-height: 68px; }
.electronic-card { border-radius: 16px; }
.inbox-content { font-size: 13px; color: var(--muted); }
.inbox-open strong { font-size: 15px; }
.inbox-read-toggle { min-height: 44px; font-size: 12px; color: var(--p2); }
.inbox-item time { font-size: 12px; }
.chat { padding: 20px 16px; }
.msg .bb { font-size: 14px; line-height: 1.8; }
.msg .wn { font-size: 12px; }
.msg.me .bb { background: #dfefe5; color: #285340; }
.chat-composer .btn { min-height: 44px; font-size: 14px; }
.media-hint { font-size: 12px; line-height: 1.7; color: var(--muted); }
.media-pick, .media-close { min-width: 44px; min-height: 44px; }
.portal-sheet { background: #14363766; }
.portal-sheet-panel { border-radius: 20px 20px 0 0; }
.portal-sheet .sheet-head { padding: 18px 20px; }
.portal-sheet .sheet-close { min-width: 44px; min-height: 44px; }
.portal-sheet label { font-size: 13px; }
.claim-step-label, .claim-material-note { font-size: 12px; }
@media (hover: hover) {
  .btn:not(:disabled):hover, .primary-service:hover { background: var(--p2); }
  .btn.ghost:hover { background: var(--psoft); }
  .service-grid button:hover > span { transform: translateY(-2px); }
  .service-grid button > span { transition: transform .16s; }
  .pet-chip:hover, .slot:not(.disabled):hover { border-color: #85b8a4; }
  .todo-grid button:hover, .icon-button:hover { background: #f4f9f5; }
}
@media (min-width: 700px) {
  #content { padding: 32px 40px 112px; }
  #content[data-page="home"] { gap: 24px; }
  #content[data-page="home"] > .care-hero { min-height: 232px; padding: 32px; }
  #content[data-page="home"] > .care-hero h1 { font-size: 34px; max-width: 520px; }
  #content[data-page="home"] > .care-hero p { font-size: 15px; max-width: 460px; }
  #content[data-page="home"] > .care-hero .pet-art { width: 30%; right: 32px; }
  #content[data-page="appt"] .pets:has([data-ad]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #content[data-page="home"] > .health-card { grid-row: span 2; }
  #content[data-page="home"] > .todo-grid { margin: 0; }
  #content[data-page="home"] > .member-banner { width: 100%; margin: 0; }
  .card { margin: 20px 0; padding: 24px; }
  .card.tight { padding: 0; }
  .service-grid b { font-size: 13px; }
  .page-intro { padding: 20px 0 8px; }
  .navbar, .navbar.white { border: 1px solid var(--line); border-radius: 12px; }
  #content[data-page="login"] { max-width: 640px; padding: 48px 32px; }
  .login-hero { border-radius: 20px; padding: 32px 32px 64px; min-height: 330px; }
  .login-hero h1 { font-size: 36px; max-width: 310px; }
  .login-hero > p { font-size: 14px; max-width: 300px; }
  .login-art { right: -6px; }
  .login-art .pet-art { width: 220px; }
  .login-panel { margin: -24px 20px 20px; padding: 28px; }
  .profile-header { border-radius: 16px; }
  .hospital-card { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .card { margin: 12px; padding: 16px; }
  .card.tight { padding: 0; }
  .mp-top { padding: 20px 16px 10px; }
  .mp-brand strong { font-size: 15px; }
  .mp-brand .eyebrow { font-size: 9px; }
  .welcome-line { margin-inline: 16px; }
  .welcome-line .nm { font-size: 18px; }
  .care-hero { margin-inline: 12px; padding: 20px 16px; }
  .care-hero h1 { font-size: 21px; }
  .care-hero p { font-size: 12px; max-width: 160px; }
  .care-hero .hero-line { font-size: 10px; }
  .care-hero .pet-art { width: 40%; right: -4px; }
  .todo-grid { margin-inline: 12px; gap: 8px; }
  .todo-grid span { font-size: 11px; }
  .service-grid { gap: 18px 2px; }
  .service-grid b { font-size: 11px; }
  .primary-services { gap: 8px; }
  .primary-services button { padding: 12px 8px; gap: 6px; }
  .primary-services strong { font-size: 13px; }
  .primary-services small { font-size: 10px; }
  .primary-services > button > .mp-icon { width: 19px; height: 19px; }
  .section-heading { gap: 6px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading small { font-size: 11px; }
  .member-banner { margin-inline: 12px; width: calc(100% - 24px); }
  .member-banner small { font-size: 11px; }
  .login-hero { padding-inline: 20px; }
  .login-hero h1 { font-size: 26px; }
  .login-hero > p { max-width: 165px; font-size: 12px; }
  .login-art .pet-art { width: 140px; }
  .login-panel { margin-top: -24px; padding: 20px; }
  .page-intro { padding-inline: 16px; }
}
