* { box-sizing: border-box; }
body [hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--fp-bg); color: var(--fp-text); font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
button, input, textarea { font: inherit; letter-spacing: 0; }
a { color: inherit; }
.portal-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.portal-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--fp-border); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.portal-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-logo { width: 172px; height: auto; display: block; }
.portal-customer { min-width: 0; display: grid; text-align: right; }
.portal-customer span, .portal-customer small { color: var(--fp-text-muted); font-size: 12px; }
.portal-customer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-customer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.portal-customer-actions form { margin: 0; }
.portal-logout { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--fp-border); border-radius: 7px; background: var(--fp-surface); color: var(--fp-text-muted); cursor: pointer; }
.portal-logout:hover { color: var(--fp-action-primary); border-color: var(--fp-action-primary); }
.portal-main { padding: 42px 0 72px; }
.portal-alert { min-height: 52px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid; border-radius: 8px; }
.portal-alert--success { color: #166534; border-color: #BBF7D0; background: var(--fp-green-soft); }
.portal-alert--error { color: #991B1B; border-color: #FECACA; background: var(--fp-error-soft); }
.portal-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.portal-kicker { margin: 0 0 5px; color: var(--fp-action-primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portal-intro h1 { margin: 0; font-size: 36px; line-height: 1.15; }
.portal-intro p:not(.portal-kicker) { margin: 9px 0 0; color: var(--fp-text-muted); }
.portal-intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.portal-token { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 210px; }
.portal-token i { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--fp-action-balance); background: var(--fp-green-soft); }
.portal-token span { font-size: 13px; font-weight: 700; }
.portal-token small { color: var(--fp-text-muted); font-size: 12px; }
.portal-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1px; margin-bottom: 46px; overflow: hidden; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-border); }
.portal-metrics article { min-height: 98px; display: grid; align-content: center; padding: 20px 24px; background: var(--fp-surface); }
.portal-metrics span { color: var(--fp-text-muted); font-size: 13px; font-weight: 650; }
.portal-metrics strong { font-size: 26px; }
.portal-section { margin-top: 48px; }
.portal-section--first { margin-top: 0; }
.portal-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.portal-section__heading h2 { margin: 0; font-size: 24px; }
.portal-section__heading > span { color: var(--fp-text-muted); font-size: 13px; }
.portal-pets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-pet { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 86px; padding: 15px 17px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-pet__avatar { width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--fp-green-soft); color: var(--fp-action-balance); }
.portal-pet__avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.portal-pet__details { min-width: 0; }
.portal-pet__details h3 { margin: 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.portal-pet__details p { margin: 3px 0 0; overflow: hidden; color: var(--fp-text-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.portal-list { display: grid; gap: 12px; }
.portal-service { display: grid; grid-template-columns: 82px minmax(0,1fr); border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); overflow: hidden; }
.portal-service__date { display: grid; align-content: center; justify-items: center; padding: 20px 12px; border-right: 1px solid var(--fp-border); background: var(--fp-blue-soft); }
.portal-service__date strong { font-size: 28px; line-height: 1; }
.portal-service__date span { color: var(--fp-action-primary); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.portal-service__date small { margin-top: 7px; color: var(--fp-text-muted); }
.portal-service__body { min-width: 0; padding: 21px 24px; }
.portal-service__title { display: flex; justify-content: space-between; gap: 20px; }
.portal-service h3, .portal-payment h3, .portal-balance h3 { margin: 0; font-size: 17px; }
.portal-service__title p, .portal-payment p, .portal-balance p { margin: 4px 0 0; color: var(--fp-text-muted); font-size: 14px; }
.portal-status { flex: none; align-self: flex-start; padding: 5px 9px; border: 1px solid var(--fp-border-strong); border-radius: 999px; color: var(--fp-text-muted); font-size: 12px; font-weight: 700; }
.portal-status.is-confirmed, .portal-status.is-completed { color: #166534; border-color: #BBF7D0; background: var(--fp-green-soft); }
.portal-status.is-canceled, .portal-status.is-late_canceled { color: #9A3412; border-color: #FED7AA; background: var(--fp-orange-soft); }
.portal-status.is-submitted, .portal-status.is-under_review { color: #1D4ED8; border-color: #BFDBFE; background: var(--fp-blue-soft); }
.portal-status.is-counter_proposed { color: #854D0E; border-color: #FDE68A; background: #FEF9C3; }
.portal-status.is-scheduled, .portal-status.is-converted { color: #166534; border-color: #BBF7D0; background: var(--fp-green-soft); }
.portal-status.is-declined { color: #9A3412; border-color: #FED7AA; background: var(--fp-orange-soft); }
.portal-service__details { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 17px; color: var(--fp-text-muted); font-size: 13px; }
.portal-service__details span { display: inline-flex; align-items: center; gap: 7px; }
.portal-timeline { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--fp-action-primary); background: var(--fp-surface-alt); }
.portal-timeline p { margin: 0 0 6px; font-size: 13px; }
.portal-timeline p:last-child { margin-bottom: 0; }
.portal-timeline time { display: block; color: var(--fp-text-muted); font-size: 11px; }
.portal-service__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 18px; }
.portal-button, .portal-note summary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--fp-border-strong); border-radius: 8px; background: var(--fp-surface); color: var(--fp-text); text-decoration: none; font-weight: 700; cursor: pointer; }
.portal-button--primary { color: #fff; border-color: var(--fp-action-primary); background: var(--fp-action-primary); }
.portal-button--secondary { border-color: var(--fp-surface-alt); background: var(--fp-surface-alt); }
.portal-button--danger { color: #fff; border-color: var(--fp-error); background: var(--fp-error); }
.portal-button--danger:hover { color: #fff; background: #b91c1c; border-color: #b91c1c; }
.portal-button:focus-visible { outline: 2px solid var(--fp-action-primary); outline-offset: 3px; }
.portal-button--secondary:hover, .portal-note summary:hover { border-color: var(--fp-action-primary); color: var(--fp-action-primary); }
.portal-button--block { width: 100%; }
.portal-note { max-width: 520px; }
.portal-note summary { list-style: none; }
.portal-note summary::-webkit-details-marker { display: none; }
.portal-note[open] { flex: 1 1 100%; }
.portal-note[open] summary { margin-bottom: 10px; }
.portal-note form { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--fp-border); border-radius: 7px; background: var(--fp-surface-alt); }
.portal-note label { font-size: 13px; font-weight: 700; }
.portal-note textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; color: var(--fp-text); }
.portal-note textarea:focus { outline: 3px solid var(--fp-focus-ring); border-color: var(--fp-action-primary); }
.portal-note .portal-button { justify-self: end; }
.portal-policy { margin: 12px 0 0; color: var(--fp-text-muted); font-size: 12px; }
.portal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.portal-payment, .portal-balance { min-height: 126px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-payment > div:first-child > span { color: var(--fp-action-movement); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portal-payment__amount { flex: none; display: grid; justify-items: end; gap: 11px; }
.portal-payment__amount strong { font-size: 21px; }
.portal-balance > strong { display: grid; justify-items: end; color: var(--fp-action-primary); font-size: 28px; }
.portal-balance > strong small { color: var(--fp-text-muted); font-size: 11px; font-weight: 600; }
.portal-empty { min-height: 200px; display: grid; place-items: center; align-content: center; padding: 32px; border: 1px dashed var(--fp-border-strong); border-radius: 8px; color: var(--fp-text-muted); text-align: center; }
.portal-empty i { font-size: 28px; color: var(--fp-action-primary); }
.portal-empty h3 { margin: 10px 0 0; color: var(--fp-text); font-size: 17px; }
.portal-empty p { margin: 5px 0 0; }
.portal-empty--compact { min-height: 126px; }
.portal-history { border-top: 1px solid var(--fp-border); }
.portal-history article { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 15px 4px; border-bottom: 1px solid var(--fp-border); }
.portal-history time, .portal-history span { color: var(--fp-text-muted); font-size: 13px; }
.portal-history div { display: flex; justify-content: space-between; gap: 20px; }
.portal-footer { padding: 32px 0; border-top: 1px solid var(--fp-border); background: var(--fp-surface); }
.portal-footer .portal-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-footer img { width: 140px; }
.portal-footer p { margin: 0; color: var(--fp-text-muted); font-size: 13px; }
.portal-auth-page { min-height: 100vh; background: var(--fp-bg); }
.portal-auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.portal-auth-card { width: min(100%, 460px); padding: 38px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); box-shadow: 0 24px 70px rgba(15, 23, 42, .10); }
.portal-auth-card:has(.portal-auth-form--wide) { width: min(100%, 620px); }
.portal-auth-logo { width: 178px; display: block; margin-bottom: 34px; }
.portal-auth-card h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.portal-auth-copy { margin: 9px 0 26px; color: var(--fp-text-muted); }
.portal-auth-form { display: grid; gap: 18px; }
.portal-auth-form > div { display: grid; gap: 7px; }
.portal-auth-form label { color: var(--fp-text); font-size: 13px; font-weight: 700; }
.portal-auth-form input[type="email"], .portal-auth-form input[type="password"], .portal-auth-form input[type="text"], .portal-auth-form input[type="tel"] { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; color: var(--fp-text); }
.portal-auth-form input:focus { outline: 3px solid var(--fp-focus-ring); border-color: var(--fp-action-primary); }
.portal-label-muted { color: var(--fp-text-muted); font-weight: 600; }
.portal-check { display: flex; align-items: center; gap: 9px; font-weight: 500 !important; }
.portal-check input { width: 18px; height: 18px; accent-color: var(--fp-action-primary); }
.portal-check--legal { align-items: flex-start; padding: 14px; border: 1px solid var(--fp-border); border-radius: 7px; background: var(--fp-surface-alt); }
.portal-check--legal input { flex: none; margin-top: 3px; }
.portal-check--legal span { color: var(--fp-text-muted); font-size: 12px; line-height: 1.5; }
.portal-auth-links { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 10px 18px !important; }
.portal-auth-link { justify-self: center; color: var(--fp-action-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.portal-auth-disclosure { margin: -3px 0 0; color: var(--fp-text-muted); font-size: 12px; line-height: 1.55; }
.portal-auth-disclosure a { color: var(--fp-action-primary); font-weight: 700; text-decoration: none; }
.portal-field-error { color: #b91c1c; }
.d-none { display: none !important; }
.portal-request-page { max-width: 980px; }
.portal-request-form { display: grid; gap: 16px; }
.portal-request-card { padding: 26px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-request-card__heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.portal-request-card__heading > span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--fp-action-primary); background: var(--fp-blue-soft); font-size: 13px; font-weight: 800; }
.portal-request-card__heading h2 { margin: 1px 0 0; font-size: 20px; }
.portal-request-card__heading p { margin: 3px 0 0; color: var(--fp-text-muted); font-size: 13px; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.portal-form-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.portal-field label { color: var(--fp-text); font-size: 13px; font-weight: 750; }
.portal-field input, .portal-field select, .portal-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; color: var(--fp-text); }
.portal-field textarea { min-height: 104px; resize: vertical; }
.portal-field input:focus, .portal-field select:focus, .portal-field textarea:focus { outline: 3px solid var(--fp-focus-ring); border-color: var(--fp-action-primary); }
.portal-field small { color: var(--fp-text-muted); font-size: 12px; }
.portal-date-list { display: grid; gap: 8px; }
.portal-date-list + .portal-button { justify-self: start; margin-top: 4px; }
.portal-request-page .portal-request-card { box-shadow: 0 16px 42px rgba(15, 23, 42, .045); }
.portal-request-page .portal-request-card:nth-of-type(1) { border-top: 4px solid var(--fp-blue-manhattan); }
.portal-request-page .portal-request-card:nth-of-type(2) { border-top: 4px solid var(--fp-pink-care); }
.portal-request-page .portal-request-card:nth-of-type(3) { border-top: 4px solid var(--fp-green-balance); }
.portal-request-page .portal-request-card:nth-of-type(4) { border-top: 4px solid var(--fp-orange-movement); }
.portal-choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.portal-choice { min-width: 0; display: flex; align-items: flex-start; gap: 11px; padding: 15px; border: 1px solid var(--fp-border); border-radius: 7px; cursor: pointer; }
.portal-choice:has(input:checked) { border-color: var(--fp-action-primary); background: var(--fp-blue-soft); }
.portal-choice input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fp-action-primary); }
.portal-choice span { min-width: 0; display: grid; }
.portal-choice strong { font-size: 14px; }
.portal-choice small { margin-top: 2px; color: var(--fp-text-muted); font-size: 12px; }
.portal-choice-row--compact { margin-bottom: 14px; }
.portal-weekday-picker { display: grid; gap: 9px; margin: 14px 0 16px; padding: 0; border: 0; }
.portal-weekday-picker legend { padding: 0; color: var(--fp-text); font-size: 13px; font-weight: 750; }
.portal-weekday-picker > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.portal-weekday-picker label { min-width: 0; display: grid; cursor: pointer; }
.portal-weekday-picker input { position: absolute; opacity: 0; pointer-events: none; }
.portal-weekday-picker span { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; color: var(--fp-text-muted); font-size: 13px; font-weight: 800; }
.portal-weekday-picker input:checked + span { border-color: var(--fp-action-primary); background: var(--fp-blue-soft); color: var(--fp-action-primary); }
.portal-weekday-picker input:focus-visible + span { outline: 3px solid var(--fp-focus-ring); outline-offset: 2px; }
.portal-session-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.portal-session { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--fp-border); border-radius: 7px; cursor: pointer; }
.portal-session:has(input:checked) { border-color: var(--fp-action-primary); background: var(--fp-blue-soft); }
.portal-session--try-fit { border-color: #f4bf4f; background: #fff8e6; }
.portal-session--try-fit:has(input:checked) { border-color: #d97706; background: #fff1cc; }
.portal-session input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fp-action-primary); }
.portal-session span { min-width: 0; display: grid; }
.portal-session strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.portal-session small { margin-top: 3px; color: var(--fp-text-muted); font-size: 12px; }
.portal-walk-calendar { display: grid; gap: 12px; padding: 12px; border: 1px solid #D9E7B7; border-radius: 8px; background: #FBFFF0; }
.portal-calendar-toolbar { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--fp-border); border-radius: 8px; background: #fff; }
.portal-calendar-toolbar > div { min-width: 0; display: grid; text-align: center; }
.portal-calendar-toolbar strong { overflow: hidden; color: var(--fp-text); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.portal-calendar-toolbar small { color: var(--fp-text-muted); font-size: 12px; }
.portal-calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-border); }
.portal-calendar-day { min-width: 0; display: grid; grid-template-rows: auto minmax(132px, 1fr); background: #fff; }
.portal-calendar-day > header { min-height: 64px; display: grid; align-content: center; justify-items: center; padding: 10px 8px; border-bottom: 1px solid var(--fp-border); background: var(--fp-surface-alt); }
.portal-calendar-day > header span { color: var(--fp-text-muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.portal-calendar-day > header strong { font-size: 22px; line-height: 1; }
.portal-calendar-day > header small { color: var(--fp-text-muted); font-size: 11px; font-weight: 750; }
.portal-calendar-day > div { display: grid; align-content: start; gap: 8px; padding: 8px; }
.portal-calendar-slot { position: relative; min-width: 0; min-height: 86px; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--fp-border); border-left: 4px solid var(--fp-yellow-joy); border-radius: 8px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.portal-calendar-slot:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, .08); }
.portal-calendar-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.portal-calendar-slot__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fp-yellow-soft); color: #B45309; font-size: 15px; }
.portal-calendar-slot > span:last-child { min-width: 0; display: grid; justify-items: center; gap: 2px; }
.portal-calendar-slot strong { max-width: 100%; overflow: visible; font-size: 12px; line-height: 1.1; white-space: normal; }
.portal-calendar-slot small, .portal-calendar-slot em { color: var(--fp-text-muted); font-size: 11px; font-style: normal; font-weight: 750; line-height: 1.15; white-space: nowrap; }
.portal-calendar-slot--afternoon { border-left-color: var(--fp-orange-movement); }
.portal-calendar-slot--afternoon .portal-calendar-slot__icon { background: var(--fp-orange-soft); color: var(--fp-orange-movement); }
.portal-calendar-slot--night { border-left-color: #4f46e5; }
.portal-calendar-slot--night .portal-calendar-slot__icon { background: #eef2ff; color: #4338ca; }
.portal-calendar-slot--try-fit { border-left-color: var(--fp-yellow-joy); background: #FFFCED; }
.portal-calendar-slot--try-fit .portal-calendar-slot__icon { background: var(--fp-yellow-soft); color: #B45309; }
.portal-calendar-slot.is-selected { border-color: var(--fp-action-primary); border-left-color: var(--fp-action-primary); background: var(--fp-blue-soft); box-shadow: inset 0 0 0 1px var(--fp-action-primary); }
.portal-calendar-slot.is-selected::before { content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--fp-action-primary); }
.portal-calendar-slot.is-selected::after { content: ""; position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; background: #fff; -webkit-mask: url('../icons/system/confirm.svg') center / contain no-repeat; mask: url('../icons/system/confirm.svg') center / contain no-repeat; }
.portal-calendar-empty { min-height: 84px; display: grid; place-items: center; padding: 10px; border: 1px dashed var(--fp-border); border-radius: 8px; color: var(--fp-text-soft); font-size: 12px; font-weight: 750; text-align: center; }
.portal-request-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; gap: 10px; padding: 13px; border: 1px solid var(--fp-border); border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(15, 23, 42, .10); backdrop-filter: blur(12px); }
.portal-button__count { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--fp-orange-soft); color: #9a3412; font-size: 11px; }
.portal-dogcoin-summary { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); overflow: hidden; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-dogcoin-summary > article { display: flex; align-items: center; gap: 18px; padding: 26px; border-right: 1px solid var(--fp-border); background: var(--fp-green-soft); }
.portal-dogcoin-summary > article > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--fp-action-balance); font-size: 23px; }
.portal-dogcoin-summary > article div { display: grid; }
.portal-dogcoin-summary > article span, .portal-dogcoin-summary > article small { color: var(--fp-text-muted); font-size: 12px; }
.portal-dogcoin-summary > article strong { font-size: 30px; line-height: 1.1; }
.portal-dogcoin-ledger { padding: 15px 22px; }
.portal-dogcoin-ledger > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--fp-border); }
.portal-dogcoin-ledger > div:last-child { border-bottom: 0; }
.portal-dogcoin-ledger span { min-width: 0; display: grid; }
.portal-dogcoin-ledger strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.portal-dogcoin-ledger small { color: var(--fp-text-muted); font-size: 11px; }
.portal-dogcoin-ledger b.is-credit { color: #15803d; }
.portal-dogcoin-ledger b.is-debit { color: #b91c1c; }
.portal-rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.portal-reward { min-height: 158px; display: flex; justify-content: space-between; gap: 22px; padding: 21px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-reward > div:first-child { min-width: 0; }
.portal-reward > div:first-child > span { color: var(--fp-action-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.portal-reward h3 { margin: 5px 0 0; font-size: 17px; }
.portal-reward p { margin: 6px 0 0; color: var(--fp-text-muted); font-size: 13px; }
.portal-reward > div:last-child { flex: none; display: grid; align-content: space-between; justify-items: end; }
.portal-reward > div:last-child > strong { display: grid; justify-items: end; color: var(--fp-action-primary); font-size: 22px; }
.portal-reward > div:last-child small { color: var(--fp-text-muted); font-size: 10px; }
.portal-reward button:disabled { opacity: .55; cursor: not-allowed; }
.portal-redemptions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--fp-border); }
.portal-redemptions > h3 { margin: 0 0 8px; font-size: 16px; }
.portal-redemptions > div { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.portal-redemptions > div > span { flex: 1; display: grid; }
.portal-redemptions small { color: var(--fp-text-muted); }
.portal-referral { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr); align-items: center; gap: 28px; padding: 27px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-blue-soft); }
.portal-referral h2 { margin: 2px 0 0; font-size: 23px; }
.portal-referral p { margin: 7px 0 0; color: var(--fp-text-muted); }
.portal-referral__link { display: flex; gap: 8px; }
.portal-referral__link input { min-width: 0; flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; }
.portal-referral > small { grid-column: 2; color: var(--fp-text-muted); }
.portal-profile-stack { display: grid; gap: 10px; }
.portal-profile-save-form { display: grid; gap: 14px; }
.portal-profile-panel { border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-profile-panel > summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 18px; list-style: none; cursor: pointer; }
.portal-profile-panel > summary::-webkit-details-marker { display: none; }
.portal-profile-panel > summary > span { min-width: 0; display: flex; align-items: center; gap: 12px; }
.portal-profile-panel > summary small { overflow: hidden; color: var(--fp-text-muted); text-overflow: ellipsis; white-space: nowrap; }
.portal-profile-panel[open] > summary { border-bottom: 1px solid var(--fp-border); }
.portal-profile-panel[open] > summary > i { transform: rotate(180deg); }
.portal-pet__avatar--small { width: 38px; height: 38px; }
.portal-profile-form { display: grid; gap: 18px; padding: 22px; }
.portal-profile-form > .portal-button { justify-self: end; }
.portal-derived-field { width: 100%; min-height: 48px; display: flex; align-items: center; padding: 11px 13px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: var(--fp-surface-alt); color: var(--fp-text); font-weight: 700; }
.portal-save-bar { position: sticky; bottom: 12px; z-index: 6; display: flex; justify-content: flex-end; padding: 12px; border: 1px solid var(--fp-border); border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 16px 42px rgba(15, 23, 42, .12); backdrop-filter: blur(12px); }
.portal-address-search { position: relative; }
.portal-address-results { position: absolute; z-index: 10; top: 76px; left: 0; right: 0; display: grid; max-height: 240px; overflow-y: auto; padding: 5px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.portal-address-results button { padding: 10px 11px; border: 0; border-radius: 5px; background: transparent; color: var(--fp-text); text-align: left; cursor: pointer; }
.portal-address-results button:hover { background: var(--fp-blue-soft); }
.portal-combobox { position: relative; min-width: 0; }
.portal-combobox__results { position: absolute; z-index: 32; top: calc(100% + 6px); left: 0; right: 0; display: grid; max-height: 276px; overflow-y: auto; padding: 5px; border: 1px solid var(--fp-border-strong); border-radius: 7px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.portal-combobox__results button { min-height: 42px; padding: 10px 11px; border: 0; border-radius: 5px; background: transparent; color: var(--fp-text); text-align: left; font-weight: 700; cursor: pointer; }
.portal-combobox__results button:hover, .portal-combobox__results button:focus { outline: 0; background: var(--fp-blue-soft); color: var(--fp-action-primary); }
.portal-history--reviews article { grid-template-columns: 120px minmax(0, 1fr); }
.portal-history__service span:first-child { min-width: 0; display: grid; }
.portal-history__service small { color: var(--fp-text-muted); }
.portal-review-result, .portal-review { grid-column: 2; }
.portal-review-result > span { color: #f59e0b; letter-spacing: 1px; }
.portal-review-result p { margin: 5px 0 0; color: var(--fp-text-muted); }
.portal-review summary { color: var(--fp-action-primary); font-size: 13px; font-weight: 750; cursor: pointer; }
.portal-review form { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--fp-border); border-radius: 7px; background: var(--fp-surface-alt); }
.portal-review textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--fp-border-strong); border-radius: 7px; resize: vertical; }
.portal-review form > button { justify-self: end; }
.portal-rating { width: max-content; display: flex; flex-direction: row-reverse; }
.portal-rating input { position: absolute; opacity: 0; pointer-events: none; }
.portal-rating label { color: #cbd5e1; font-size: 29px; cursor: pointer; }
.portal-rating label:hover, .portal-rating label:hover ~ label, .portal-rating input:checked ~ label { color: #f59e0b; }
@media (max-width: 760px) {
    .portal-container { width: min(100% - 24px, 1120px); }
    .portal-header__inner { min-height: 66px; }
    .portal-logo { width: 142px; }
    .portal-customer span { display: none; }
    .portal-main { padding: 28px 0 52px; }
    .portal-intro { align-items: flex-start; flex-direction: column; gap: 18px; }
    .portal-intro h1 { font-size: 30px; }
    .portal-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .portal-service { grid-template-columns: 64px minmax(0,1fr); }
    .portal-service__date { padding: 16px 8px; }
    .portal-service__date strong { font-size: 23px; }
    .portal-service__body { padding: 17px 15px; }
    .portal-service__title { align-items: flex-start; flex-direction: column; gap: 10px; }
    .portal-service__actions, .portal-service__actions form, .portal-service__actions .portal-button, .portal-note, .portal-note summary { width: 100%; }
    .portal-grid { grid-template-columns: 1fr; }
    .portal-pets { grid-template-columns: 1fr; }
    .portal-payment, .portal-balance { align-items: flex-start; }
    .portal-history article { grid-template-columns: 1fr; gap: 4px; }
    .portal-history div { display: grid; gap: 3px; }
    .portal-footer .portal-container { align-items: flex-start; flex-direction: column; }
    .portal-auth-shell { padding: 14px; }
    .portal-auth-card { padding: 28px 22px; }
    .portal-request-card { padding: 20px 16px; }
    .portal-form-grid, .portal-form-grid--four, .portal-choice-row, .portal-session-list { grid-template-columns: 1fr; }
    .portal-walk-calendar { padding: 10px; }
    .portal-calendar-week { display: flex; gap: 8px; overflow-x: auto; border: 0; border-radius: 0; background: transparent; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .portal-calendar-week::-webkit-scrollbar { display: none; }
    .portal-calendar-day { flex: 0 0 min(74vw, 214px); min-height: 250px; overflow: hidden; border: 1px solid var(--fp-border); border-radius: 8px; scroll-snap-align: start; }
    .portal-weekday-picker > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .portal-request-actions .portal-button { flex: 1; min-height: 48px; }
    .portal-dogcoin-summary, .portal-referral { grid-template-columns: 1fr; }
    .portal-dogcoin-summary > article { border-right: 0; border-bottom: 1px solid var(--fp-border); }
    .portal-rewards { grid-template-columns: 1fr; }
    .portal-referral > small { grid-column: 1; }
    .portal-history--reviews article { grid-template-columns: 1fr; }
    .portal-review-result, .portal-review { grid-column: 1; }
}
@media (max-width: 420px) {
    .portal-customer { max-width: 120px; font-size: 13px; }
    .portal-metrics article { min-height: 84px; padding: 15px; }
    .portal-section { margin-top: 38px; }
    .portal-section__heading { align-items: flex-start; flex-direction: column; gap: 7px; }
    .portal-service { grid-template-columns: 1fr; }
    .portal-service__date { grid-template-columns: auto auto auto; justify-content: flex-start; gap: 6px; border-right: 0; border-bottom: 1px solid var(--fp-border); }
    .portal-service__date strong { font-size: 18px; }
    .portal-service__date small { margin: 0; }
    .portal-payment, .portal-balance { flex-direction: column; }
    .portal-payment__amount { width: 100%; justify-items: stretch; }
    .portal-payment__amount strong { text-align: right; }
    .portal-reward { flex-direction: column; }
    .portal-reward > div:last-child { align-items: center; grid-template-columns: auto 1fr; gap: 14px; justify-items: stretch; }
    .portal-referral__link { flex-direction: column; }
}

.portal-mobile-app { padding-bottom: 92px; }
.portal-home-card { display: grid; gap: 18px; margin-bottom: 14px; padding: 18px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); box-shadow: 0 18px 45px rgba(15, 23, 42, .07); }
.portal-home-card__identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.portal-home-card h1 { margin: 0; font-size: 29px; line-height: 1.1; }
.portal-home-card p:not(.portal-kicker) { margin: 5px 0 0; color: var(--fp-text-muted); }
.portal-home-card__actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
.portal-person-avatar { flex: none; width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid #BBF7D0; border-radius: 50%; background: var(--fp-green-soft); color: #15803d; font-size: 23px; font-weight: 850; }
.portal-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-person-avatar--large { width: 82px; height: 82px; font-size: 31px; }
.portal-section-nav { position: sticky; top: 67px; z-index: 15; display: flex; gap: 8px; margin: 0 -12px 18px; padding: 10px 12px; overflow-x: auto; border-block: 1px solid var(--fp-border); background: rgba(248, 251, 255, .96); scrollbar-width: none; backdrop-filter: blur(14px); }
.portal-section-nav::-webkit-scrollbar { display: none; }
.portal-section-nav a { flex: none; min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--fp-border); border-radius: 999px; background: #fff; color: var(--fp-text-muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.portal-section-nav a:focus, .portal-section-nav a:hover { outline: 3px solid var(--fp-focus-ring); color: var(--fp-action-primary); border-color: var(--fp-action-primary); }
.portal-metrics--mobile { margin-bottom: 18px; }
.portal-deal-strip, .portal-info-grid, .portal-module-list, .portal-finance-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.portal-deal-strip article, .portal-info-card, .portal-module-card, .portal-finance-panel { border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); }
.portal-deal-strip article { min-height: 124px; padding: 18px; }
.portal-deal-strip span { display: inline-flex; align-items: center; gap: 7px; color: var(--fp-action-primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.portal-deal-strip strong { display: block; margin-top: 9px; font-size: 18px; }
.portal-deal-strip p { margin: 5px 0 0; color: var(--fp-text-muted); font-size: 14px; }
.portal-info-card { min-width: 0; display: flex; gap: 13px; padding: 16px; }
.portal-info-card > span, .portal-module-card__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--fp-blue-soft); color: var(--fp-action-primary); }
.portal-info-card div, .portal-module-card div { min-width: 0; }
.portal-info-card strong, .portal-module-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-info-card p, .portal-module-card p { margin: 3px 0 0; color: var(--fp-text-muted); font-size: 13px; }
.portal-info-card small, .portal-module-card small { display: block; margin-top: 5px; color: var(--fp-text-muted); font-size: 12px; }
.portal-pets--expanded { grid-template-columns: 1fr; }
.portal-pet--profile { grid-template-columns: 54px minmax(0, 1fr); align-items: center; }
.portal-pet--profile .portal-status { grid-column: 2; justify-self: start; }
.portal-module-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; padding: 15px; }
.portal-module-card > .portal-status { grid-column: 2; justify-self: start; margin-top: 2px; }
.portal-module-card--request { border-color: #BFDBFE; background: var(--fp-blue-soft); }
.portal-mini-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.portal-mini-actions form { margin: 0; }
.portal-mini-actions .portal-button, .portal-mini-actions .portal-note summary { min-height: 38px; padding: 8px 11px; font-size: 13px; }
.portal-finance-panel { padding: 16px; }
.portal-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.portal-panel-heading h3 { margin: 0; font-size: 17px; }
.portal-panel-heading span { flex: none; padding: 4px 9px; border: 1px solid var(--fp-border); border-radius: 999px; color: var(--fp-text-muted); font-size: 12px; font-weight: 750; }
.portal-list--compact { gap: 8px; }
.portal-money-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--fp-border); border-radius: 7px; background: var(--fp-surface-alt); }
.portal-money-row > span { min-width: 0; display: grid; }
.portal-money-row strong, .portal-money-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-money-row small { color: var(--fp-text-muted); font-size: 12px; }
.portal-money-row a { justify-self: end; color: var(--fp-action-primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.portal-profile-photo-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.portal-profile-photo-row > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.portal-upload-avatar input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.portal-upload-avatar { min-width: 0; display: flex; align-items: center; gap: 13px; }
.portal-upload-avatar > span:last-child { min-width: 0; display: grid; }
.portal-upload-avatar strong { font-size: 15px; }
.portal-upload-avatar small { color: var(--fp-text-muted); font-size: 12px; }
.portal-pet__avatar--large { width: 82px; height: 82px; font-size: 27px; }
.portal-photo-preview { padding: 0; border: 0; cursor: pointer; }
.portal-photo-preview:focus-visible { outline: 3px solid var(--fp-focus-ring); outline-offset: 3px; }
.portal-photo-preview:hover { box-shadow: 0 0 0 4px var(--fp-blue-soft); }
.portal-photo-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.portal-photo-modal-open { overflow: hidden; }
.portal-photo-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .76); backdrop-filter: blur(5px); }
.portal-photo-modal__panel { position: relative; width: min(100%, 740px); max-height: min(92vh, 780px); display: grid; grid-template-rows: auto minmax(220px, 1fr) auto; overflow: hidden; border-radius: 8px; background: #0b1220; color: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }
.portal-photo-modal__header, .portal-photo-modal__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; }
.portal-photo-modal__header h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.portal-photo-modal__stage { min-height: 300px; display: grid; place-items: center; padding: 0 14px 14px; background: #030712; }
.portal-photo-modal__stage img { width: 100%; max-height: min(62vh, 560px); display: block; object-fit: contain; border-radius: 8px; }
.portal-photo-modal__empty { display: grid; justify-items: center; gap: 10px; padding: 50px 20px; color: #cbd5e1; text-align: center; }
.portal-photo-modal__empty i { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: rgba(34, 197, 94, .16); color: #22c55e; font-size: 32px; }
.portal-photo-modal__actions { border-top: 1px solid rgba(148, 163, 184, .18); }
.portal-switch { min-width: 0; display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface-alt); cursor: pointer; }
.portal-switch input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--fp-action-primary); }
.portal-switch span { min-width: 0; display: grid; }
.portal-switch small { margin-top: 2px; color: var(--fp-text-muted); font-size: 12px; }
.portal-vaccine-records { display: grid; gap: 11px; padding: 0 22px 22px; }
.portal-vaccine-records h3 { margin: 0; font-size: 16px; }
.portal-vaccine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--fp-border); border-radius: 7px; background: var(--fp-surface-alt); }
.portal-vaccine-row span { min-width: 0; display: grid; }
.portal-vaccine-row small, .portal-muted-line { color: var(--fp-text-muted); font-size: 12px; }
.portal-vaccine-form, .portal-extra-notes { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--fp-border); }
.portal-extra-note-list { display: grid; gap: 12px; }
.portal-field--span { grid-column: auto; }

@media (min-width: 761px) {
    .portal-home-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 24px; }
    .portal-home-card__actions { grid-template-columns: repeat(2, max-content); justify-content: end; }
    .portal-section-nav { top: 77px; margin-inline: 0; border: 1px solid var(--fp-border); border-radius: 8px; }
    .portal-deal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-pets--expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-pet--profile { grid-template-columns: 54px minmax(0, 1fr) auto; }
    .portal-pet--profile .portal-status { grid-column: auto; justify-self: end; }
    .portal-module-card { grid-template-columns: 38px minmax(0,1fr) auto; align-items: start; }
    .portal-module-card > .portal-status { grid-column: auto; justify-self: end; }
    .portal-finance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .portal-field--span { grid-column: span 2; }
}

.portal-app-body { min-height: 100vh; background: var(--fp-bg); }
.portal-app { min-height: 100vh; }
.portal-app__scrim { position: fixed; inset: 0; z-index: 45; background: rgba(15, 23, 42, .48); backdrop-filter: blur(2px); }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(312px, calc(100vw - 36px)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 18px; padding: 18px 14px; transform: translateX(-105%); border-right: 1px solid rgba(148, 163, 184, .22); background: #070c18; color: #e5edff; box-shadow: 26px 0 80px rgba(15, 23, 42, .32); transition: transform .2s ease; }
.portal-sidebar.is-open { transform: translateX(0); }
.portal-menu-open { overflow: hidden; }
.portal-sidebar__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.portal-sidebar__brand img { width: 164px; display: block; }
.portal-icon-button { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--fp-border-strong); border-radius: 8px; background: var(--fp-surface); color: var(--fp-text); cursor: pointer; }
.portal-sidebar__close { color: #dbeafe; border-color: rgba(148, 163, 184, .25); background: rgba(255, 255, 255, .06); }
.portal-sidebar__customer { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 8px; background: rgba(255, 255, 255, .06); }
.portal-sidebar__customer .portal-person-avatar { width: 48px; height: 48px; font-size: 18px; border-color: rgba(34, 197, 94, .35); }
.portal-sidebar__customer div { min-width: 0; display: grid; }
.portal-sidebar__customer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.portal-sidebar__customer small { overflow: hidden; color: #9ca3af; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-sidebar__nav { display: grid; align-content: start; gap: 5px; overflow-y: auto; padding-right: 2px; }
.portal-sidebar__nav a, .portal-sidebar__logout button { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #aeb9ce; text-align: left; text-decoration: none; font-weight: 780; cursor: pointer; }
.portal-sidebar__nav a i, .portal-sidebar__logout i { width: 22px; color: #8ca1bf; font-size: 18px; }
.portal-sidebar__nav a:hover, .portal-sidebar__nav a.is-active, .portal-sidebar__logout button:hover { background: rgba(132, 204, 22, .16); color: #f8fafc; }
.portal-sidebar__nav a.is-active i, .portal-sidebar__logout button:hover i { color: #a3e635; }
.portal-sidebar__logout { margin: 0; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, .2); }
.portal-sidebar__logout button { width: 100%; }
.portal-app-main { min-width: 0; }
.portal-app-topbar { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 74px; padding: 12px 16px; border-bottom: 1px solid var(--fp-border); background: rgba(248, 251, 255, .94); backdrop-filter: blur(14px); }
.portal-app-topbar__title { min-width: 0; }
.portal-app-topbar__title h1 { margin: 0; overflow: hidden; font-size: 24px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.portal-app-topbar__actions { display: flex; align-items: center; gap: 8px; }
.portal-app-topbar__actions .portal-button { min-height: 40px; padding-inline: 12px; }
.portal-app-content { width: min(100% - 24px, 1180px); margin: 0 auto; padding: 18px 0 84px; }
.portal-app-hero { display: grid; gap: 16px; align-items: center; margin-bottom: 14px; padding: 18px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); box-shadow: 0 18px 45px rgba(15, 23, 42, .07); }
.portal-app-hero h2 { margin: 0; font-size: 27px; line-height: 1.12; }
.portal-app-hero p:not(.portal-kicker) { margin: 6px 0 0; color: var(--fp-text-muted); }
.portal-app-hero--service { grid-template-columns: auto minmax(0, 1fr); }
.portal-app-hero__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--fp-blue-soft); color: var(--fp-action-primary); font-size: 24px; }
.portal-app-hero__actions { display: grid; gap: 8px; }
.portal-app-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.portal-app-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface); box-shadow: 0 18px 45px rgba(15, 23, 42, .05); }
.portal-panel-heading a { color: var(--fp-action-primary); font-size: 13px; font-weight: 800; text-decoration: none; }
.portal-dog-mini-list { display: grid; gap: 8px; }
.portal-dog-mini { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 9px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface-alt); text-decoration: none; }
.portal-dog-mini span:last-child { min-width: 0; display: grid; }
.portal-dog-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-dog-mini small { color: var(--fp-text-muted); font-size: 12px; }
.portal-module-card--link, .portal-money-row--link { color: inherit; text-decoration: none; }
.portal-service-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface-alt); }
.portal-service-card__date { display: flex; align-items: baseline; gap: 6px; color: var(--fp-action-primary); }
.portal-service-card__date strong { font-size: 26px; line-height: 1; }
.portal-service-card__date span { font-size: 13px; font-weight: 850; text-transform: uppercase; }
.portal-service-card__body { min-width: 0; display: grid; gap: 10px; }
.portal-service-card__body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-service-card__body p { margin: 3px 0 0; color: var(--fp-text-muted); font-size: 13px; }
.portal-service-card__body small { display: block; color: var(--fp-text-muted); font-size: 12px; }
.portal-safe-mode { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid #fcd34d; border-radius: 8px; background: #fffbeb; color: #92400e; }
.portal-safe-mode i { flex: none; font-size: 20px; }
.portal-safe-mode strong { display: block; color: #78350f; }
.portal-safe-mode p { margin: 2px 0 0; font-size: 13px; }
.portal-finance-grid--wide { margin-top: 0; }
.portal-card-setup { max-width: 720px; }
.portal-card-setup form { display: grid; gap: 14px; }
.square-card-container { min-height: 94px; padding: 13px; border: 1px solid var(--fp-border-strong); border-radius: 8px; background: #fff; }
.payment-consent-option { min-width: 0; display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--fp-border); border-radius: 8px; background: var(--fp-surface-alt); cursor: pointer; }
.payment-consent-option input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fp-action-primary); }
.payment-consent-option span { min-width: 0; display: grid; }
.payment-consent-option small { margin-top: 2px; color: var(--fp-text-muted); font-size: 12px; }
.payment-consent-option--nested { margin-left: 0; }
.portal-selected-slot {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--fp-border-strong);
    border-radius: 8px;
    background: var(--fp-surface-alt);
    color: var(--fp-text);
    font-weight: 800;
}

.portal-slot-picker {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.portal-slot-day {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    background: var(--fp-surface-alt);
}

.portal-slot-day > strong {
    font-size: 14px;
}

.portal-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.portal-slot-button {
    min-height: 42px;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    background: #fff;
    color: var(--fp-text);
    font-weight: 800;
    cursor: pointer;
}

.portal-slot-button:hover,
.portal-slot-button:focus-visible,
.portal-slot-button.is-selected {
    border-color: var(--fp-action-primary);
    background: var(--fp-blue-soft);
    color: var(--fp-action-primary);
    outline: none;
}

@media (max-width: 480px) {
    .portal-app-topbar { min-height: 66px; padding-inline: 12px; }
    .portal-app-topbar__title h1 { font-size: 21px; }
    .portal-app-topbar__actions .portal-button { min-width: 40px; padding: 9px; }
    .portal-app-topbar__actions .portal-button i + * { display: none; }
    .portal-app-content { width: min(100% - 20px, 1180px); padding-top: 14px; }
    .portal-app-hero h2 { font-size: 24px; }
    .portal-profile-form { padding: 16px; }
    .portal-save-bar .portal-button { width: 100%; min-height: 48px; }
    .portal-vaccine-records { padding: 0 16px 16px; }
    .portal-money-row { align-items: flex-start; flex-direction: column; }
    .portal-money-row > span:last-child { width: 100%; justify-items: start; }
    .portal-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
    .portal-sidebar { transform: none; width: 260px; }
    .portal-sidebar__close, .portal-app__scrim, .portal-app-topbar > .portal-icon-button { display: none !important; }
    .portal-app-main { margin-left: 260px; }
    .portal-app-topbar { min-height: 84px; padding: 16px 30px; grid-template-columns: minmax(0, 1fr) auto; }
    .portal-app-topbar__title h1 { font-size: 32px; }
    .portal-app-content { width: min(100% - 60px, 1240px); padding-top: 28px; }
    .portal-app-hero { grid-template-columns: minmax(0, 1fr) auto; padding: 24px; }
    .portal-app-hero__actions { grid-template-columns: repeat(2, max-content); justify-content: end; }
    .portal-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-service-card { grid-template-columns: 72px minmax(0, 1fr); }
    .portal-service-card__date { display: grid; align-content: center; justify-items: center; gap: 0; min-height: 72px; border-right: 1px solid var(--fp-border); }
    .portal-service-card__body { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .payment-consent-option--nested { margin-left: 24px; }
    .portal-finance-grid--wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr) minmax(240px, .6fr); }
}

.portal-walks { min-width: 0; }
.portal-walk-toolbar, .portal-walk-filter, .portal-walk-sync { display: flex; align-items: center; gap: 10px; }
.portal-walk-toolbar { justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.portal-walk-filter { min-width: 0; max-width: 100%; }
.portal-walk-filter label { font-size: 13px; font-weight: 700; }
.portal-walk-filter select, .portal-walk-actions select { min-width: 0; max-width: 100%; height: 42px; padding: 8px 32px 8px 12px; border: 1px solid var(--fp-border-strong); border-radius: 8px; background: var(--fp-surface); color: var(--fp-text); }
.portal-walk-filter select { width: 220px; }
.portal-walk-sync { color: var(--fp-text-muted); font-size: 12px; }
.portal-walk-sync .is-stale { color: #a35400; }
.portal-walk-section { padding-bottom: 26px; margin-bottom: 24px; border-bottom: 1px solid var(--fp-border); scroll-margin-top: 105px; }
.portal-walk-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.portal-walk-heading h2 { margin: 0; font-size: 19px; line-height: 1.3; scroll-margin-top: 105px; }
.portal-walk-heading p { margin: 4px 0 0; font-size: 13px; color: var(--fp-text-muted); }
.portal-walk-list { display: grid; gap: 12px; }
.portal-walk-empty { margin: 0; padding: 20px 0; color: var(--fp-text-muted); font-size: 14px; }
.portal-walk-card { min-width: 0; padding: 18px; border: 1px solid var(--fp-border); border-left: 4px solid #bdc9da; border-radius: 8px; background: var(--fp-surface); overflow-wrap: anywhere; }
.portal-walk-card.is-active { border-left-color: #0b9d71; }
.portal-walk-card.is-completed { border-left-color: #2763e7; }
.portal-walk-card.is-canceled { border-left-color: #ca652b; }
.portal-walk-card__heading { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.portal-walk-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #069a71; background: #eafaef; }
.portal-walk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-walk-card__identity { min-width: 0; }
.portal-walk-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.portal-walk-card__identity p { margin: 4px 0 0; font-size: 12px; color: var(--fp-text-muted); }
.portal-walk-status { display: inline-flex; gap: 5px; align-items: center; max-width: 100%; white-space: normal; }
.portal-walk-status.is-active { color: #087953; background: #eafaef; border-color: #9edbbf; }
.portal-walk-status.is-completed { color: #204fc1; background: #eff5ff; border-color: #b4ccf8; }
.portal-walk-status.is-pending { color: #905600; background: #fff8e9; border-color: #efd59b; }
.portal-walk-card__schedule { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--fp-text-muted); }
.portal-walk-card__schedule > span { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 6px; }
.portal-walk-card__schedule small { grid-column: 2; margin-top: 4px; font-size: 12px; }
.portal-walk-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--fp-border); gap: 12px; }
.portal-walk-times dt { color: var(--fp-text-muted); font-size: 12px; }
.portal-walk-times dd { margin: 5px 0 0; font-weight: 700; font-size: 13px; line-height: 1.5; }
.portal-walk-clock { font-variant-numeric: tabular-nums; }
.portal-walk-care { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 16px 0 0; list-style: none; }
.portal-walk-care li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.portal-walk-care li > span:not(.fp-icon) { color: var(--fp-text-muted); }
.portal-walk-report { margin-top: 16px; border-top: 1px solid var(--fp-border); }
.portal-walk-report summary { display: flex; align-items: center; gap: 8px; padding: 13px 0 0; min-height: 42px; font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.portal-walk-report summary::-webkit-details-marker { display: none; }
.portal-walk-report summary > :last-child { margin-left: auto; }
.portal-walk-report[open] summary > :last-child { transform: rotate(180deg); }
.portal-walk-report ol { padding: 0; list-style: none; margin: 14px 0 0; display: grid; gap: 12px; }
.portal-walk-report li { border-left: 2px solid var(--fp-border); padding-left: 12px; font-size: 13px; }
.portal-walk-report li > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.portal-walk-report time { color: var(--fp-text-muted); font-size: 12px; }
.portal-walk-report p { margin: 6px 0 0; white-space: pre-wrap; }
.portal-walk-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: start; }
.portal-walk-actions:has(> *) { margin-top: 14px; }
.portal-walk-actions .portal-note { width: auto; max-width: 100%; }
.portal-walk-actions .portal-note[open] { width: 100%; }
.portal-walk-actions .portal-note form { padding: 12px 0 0; border: 0; border-radius: 0; background: transparent; }
.portal-walk-actions .portal-note summary { width: auto; }
.portal-walk-actions form { margin: 0; }
.portal-walk-actions .portal-button, .portal-walk-actions summary { font-size: 13px; }
.portal-walk-actions .portal-button:disabled { opacity: .55; cursor: not-allowed; }
.portal-walk-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #a36a00; }
.portal-walk-pagination { display: flex; align-items: center; justify-content: end; gap: 12px; margin-top: 14px; font-size: 13px; }
.portal-walk-pagination a { text-decoration: none; }
.portal-stars { min-width: 0; width: max-content; max-width: 100%; margin: 0; padding: 0; border: 0; }
.portal-stars legend { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.portal-stars__options { display: flex; gap: 4px; touch-action: pan-y; }
.portal-stars .portal-star { position: relative; display: grid; place-items: center; width: 44px; height: 48px; flex: none; color: #b3bfd0; cursor: pointer; border-radius: 6px; user-select: none; -webkit-user-select: none; }
.portal-star .fp-icon { font-size: 30px; transition: color .15s ease; pointer-events: none; }
.portal-star input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.portal-star.is-lit { color: #db9200; }
.portal-star:has(input:focus-visible) { outline: 2px solid var(--fp-action-primary); outline-offset: 1px; }
.portal-stars__value { display: block; min-height: 20px; margin-top: 2px; font-size: 12px; color: var(--fp-text-muted); }
@media (prefers-reduced-motion: reduce) { .portal-star .fp-icon { transition: none; } }
@media (max-width: 540px) {
    .portal-walk-request-label { display: none; }
    .portal-walk-toolbar { gap: 8px; }
    .portal-walk-sync { width: 100%; justify-content: space-between; }
    .portal-walk-card { padding: 13px; }
    .portal-walk-card__heading { grid-template-columns: 40px minmax(0, 1fr); gap: 9px; }
    .portal-walk-avatar { width: 40px; height: 40px; }
    .portal-walk-status { grid-column: 2; justify-self: start; }
    .portal-walk-times { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .portal-walk-times > :last-child { grid-column: 1 / -1; }
    .portal-walk-care { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .portal-walk-care li { flex-wrap: wrap; gap: 4px; }
    .portal-walk-care li > span:not(.fp-icon) { width: 100%; order: 1; font-size: 12px; }
}
