.account-breadcrumb { padding-top: 1.25rem; }
.account-breadcrumb a, .account-home-link { color: var(--workspace-muted); text-decoration: none; font-size: .875rem; }
.account-breadcrumb a:hover, .account-home-link:hover { color: var(--workspace-accent); }
.account-welcome {
    position: relative;
    min-height: calc(100dvh - var(--workspace-header));
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 72px) 28px;
    overflow: hidden;
}
.account-welcome::before, .account-welcome::after { content: ""; position: absolute; pointer-events: none; border-radius: 999px; filter: blur(1px); }
.account-welcome::before { width: min(52vw, 680px); aspect-ratio: 1; left: -18%; top: -30%; background: radial-gradient(circle, color-mix(in srgb, var(--workspace-accent) 17%, transparent), transparent 68%); }
.account-welcome::after { width: min(42vw, 520px); aspect-ratio: 1; right: -14%; bottom: -32%; background: radial-gradient(circle, rgba(38, 196, 162, .1), transparent 70%); }
.account-guest-shell {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .78fr);
    overflow: hidden;
    border: 1px solid var(--workspace-line);
    border-radius: 30px;
    background: var(--workspace-surface);
    box-shadow: 0 30px 80px rgba(28, 19, 45, .12);
}
.account-guest-story { position: relative; padding: clamp(40px, 6vw, 72px); color: #fff; background: linear-gradient(145deg, #211637 0%, #3c2468 53%, #5d36a8 100%); overflow: hidden; }
.account-guest-story::before { content: ""; position: absolute; width: 360px; height: 360px; right: -180px; top: -160px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018); }
.account-guest-story > * { position: relative; z-index: 1; }
.account-guest-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(54px, 8vw, 92px); color: #fff; text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.account-guest-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.account-guest-brand img { width: 30px; height: 30px; object-fit: contain; }
.account-guest-eyebrow, .account-welcome-kicker { display: block; font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: .18em; }
.account-guest-eyebrow { color: #cbb7ff; }
.account-guest-story h1 { max-width: 590px; margin: 13px 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -.055em; }
.account-guest-story > p { max-width: 590px; margin: 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.account-guest-features { display: grid; gap: 12px; margin-top: clamp(38px, 6vw, 64px); }
.account-guest-feature { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; min-width: 0; }
.account-guest-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #decfff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.account-guest-feature-icon svg { width: 21px; height: 21px; }
.account-guest-feature strong, .account-guest-feature small { display: block; }
.account-guest-feature strong { color: #fff; font-size: 13px; line-height: 1.45; }
.account-guest-feature small { margin-top: 2px; color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.5; }
.account-welcome-card { align-self: center; padding: clamp(36px, 5vw, 62px); text-align: left; }
.account-welcome-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 16px; color: var(--workspace-accent); background: var(--workspace-soft); }
.account-welcome-icon svg { width: 25px; height: 25px; }
.account-welcome-kicker { color: var(--workspace-accent); }
.account-welcome-card h2 { margin: 10px 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.045em; }
.account-welcome-card > p { margin: 0; color: var(--workspace-muted); line-height: 1.7; font-size: 13px; }
.account-welcome-actions { display: grid; gap: 10px; margin: 28px 0 20px; }
.account-welcome-actions .btn { width: 100%; min-height: 48px; border-radius: 12px; font-size: 13px; }
.account-welcome-divider { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; color: var(--workspace-muted); font-size: 11px; }
.account-welcome-divider::before, .account-welcome-divider::after { content: ""; flex: 1; height: 1px; background: var(--workspace-line); }
.account-home-link { display: block; text-align: center; font-weight: 650; }
.account-welcome-security { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin-top: 25px !important; text-align: center; font-size: 10px !important; line-height: 1.5 !important; }
.account-welcome-security svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.account-page #landing-page.hidden { display: none; }

/* Account workspace: deliberately scoped so the public site stays unchanged. */
.account-page {
    --workspace-bg: #f5f4f8;
    --workspace-surface: #fff;
    --workspace-soft: #efedf5;
    --workspace-line: #e4e0ec;
    --workspace-muted: #746f82;
    --workspace-accent: #7046d5;
    --workspace-primary: #7c3aed;
    --workspace-primary-hover: #6d28d9;
    --workspace-header: 76px;
    background: var(--workspace-bg);
}
.account-page #page-loader { background: var(--workspace-bg); }
.dark-mode .account-page {
    --workspace-bg: #100e17;
    --workspace-surface: #1b1725;
    --workspace-soft: #252030;
    --workspace-line: #332c40;
    --workspace-muted: #aba3b9;
    --workspace-accent: #b89afa;
    --workspace-primary: #7c3aed;
    --workspace-primary-hover: #6d28d9;
}
.account-page main { padding-top: var(--workspace-header); }
html body.account-page { margin: 0; background: var(--workspace-bg) !important; }
.account-page *, .account-page *::before, .account-page *::after { box-sizing: border-box; }
html .account-page .main-header.liquid-glass { padding: 0; background: var(--workspace-bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--workspace-line); border: 0; }
.account-page .main-header.home-main-header > .container-wrapper { display: flex; min-height: var(--workspace-header); max-width: 1248px; gap: 24px; }
.account-page .main-header .logo { flex-shrink: 0; }
.account-page .main-header .main-nav, .account-page .main-header .nav-inline-right { gap: 4px; }
.account-page .main-nav { flex: 0 0 auto; padding: 4px; border-radius: 16px; background: var(--workspace-surface); border: 1px solid color-mix(in srgb, var(--workspace-line) 65%, transparent); }
.account-page .main-nav #nav-items-container:has(#logged-out-nav.hidden):not(:has(#admin-panel-btn:not(.hidden))) { display: none; }
.account-page .main-nav .nav-inline-right:not(:has(> :not(.hidden))) { display: none; }
.account-page .main-header .global-search-container { margin-left: auto; max-width: 320px; min-width: 0; }
.account-page .main-header .global-search-container input { font-size: 13px; }
.account-page .main-header #global-search-input { height: 44px; margin: 0; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--workspace-line) 65%, transparent); background: color-mix(in srgb, var(--workspace-surface) 72%, var(--workspace-bg)); color: var(--text-color); box-shadow: none; }
.account-page .main-header #global-search-input::placeholder { color: var(--workspace-muted); opacity: 1; }
.account-page .main-header #global-search-input:focus { background: var(--workspace-surface); border-color: var(--workspace-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--workspace-accent) 10%, transparent); outline: none; }
.account-page .main-header .search-icon { color: var(--workspace-muted); }
.account-page .global-search-container.mobile-search-active .search-form-desktop { height: var(--workspace-header); }
.account-page .main-header :where(.account-workspace-nav, #messages-btn, #mobile-search-toggle, #admin-panel-btn, #mrz-btn-nav, .account-menu summary) { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 40px; min-height: 40px; min-width: 40px; width: auto; gap: 8px; padding: 0 11px; border: 0; border-radius: 11px; background: transparent; color: var(--workspace-muted); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.account-page .main-header :is(.account-workspace-nav, #messages-btn, #admin-panel-btn, #mrz-btn-nav).hidden { display: none; }
.account-page .main-header :is(.account-workspace-nav, #messages-btn, #mobile-search-toggle, #admin-panel-btn, #mrz-btn-nav):hover { color: var(--workspace-accent); background: var(--workspace-soft); }
.account-page .main-header :is(.account-workspace-nav, #messages-btn, #mobile-search-toggle, #admin-panel-btn) > svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-page .main-header #messages-btn { position: relative; }
.account-page .main-header #unread-messages-badge { width: auto; min-width: 16px; height: 16px; padding: 0 3px; top: 1px; right: 1px; font-size: 9px; line-height: 1; border: 0; border-radius: 8px; box-shadow: 0 0 0 2px var(--workspace-surface); }
.account-page .main-header .account-menu summary { width: 40px; padding: 0; }
.account-page .main-header .account-menu summary img { width: 28px; height: 28px; }
.account-page .main-header .account-menu[open] summary { background: var(--workspace-soft); }
.account-page .main-header #mobile-search-toggle { width: 44px; height: 44px; background: var(--workspace-surface); border: 1px solid color-mix(in srgb, var(--workspace-line) 65%, transparent); border-radius: 13px; padding: 0; }
.account-page .main-header #logged-out-nav > .nav-btn { height: 40px; border-radius: 11px; font-size: 13px; }
@media(min-width: 900px) { .account-page .main-header #mobile-search-toggle { display: none; } }
.account-page .account-nav-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.account-page a.account-workspace-nav { text-decoration: none; }
.account-page .account-workspace-nav.hidden { display: none; }
.account-page #spaw-quick-balance { display: block; min-width: 20px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; padding: 3px 6px; border-radius: 6px; background: var(--workspace-soft); color: var(--workspace-accent); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.4; text-align: center; }
.account-page [aria-current="page"] { background: var(--workspace-soft) !important; color: var(--workspace-accent) !important; }
.account-page .account-menu { position: relative; }
.account-page .account-menu summary img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.account-page:not(:has(#fab-menu-overlay.active)) #fab-container { display: none !important; }
.account-page .account-menu summary, .account-page .pet-card-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--text-light); }
.account-page summary::-webkit-details-marker { display: none; }
.account-page .account-menu summary:hover, .account-page .pet-card-menu summary:hover { background: var(--workspace-soft); color: var(--workspace-accent); }
.account-page .account-menu-panel, .account-page .pet-card-menu-panel { position: absolute; z-index: 120; right: 0; top: calc(100% + 8px); width: 240px; padding: 7px; border-radius: 14px; background: var(--workspace-surface); border: 1px solid var(--workspace-line); box-shadow: 0 14px 40px #0003; }
.account-page .account-menu-panel a, .account-page .account-menu-panel button, .account-page .pet-card-menu-panel button { display: block; width: 100%; padding: 12px; color: var(--text-color); background: none; border: 0; border-radius: 8px; text-decoration: none; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.account-page .account-menu-panel :is(a, button):hover, .account-page .pet-card-menu-panel button:hover { background: var(--workspace-soft); }
.account-page .pet-card-menu-panel .delete-pet-btn { color: var(--danger); }
.account-page .pet-card-menu-panel button:disabled { opacity: .45; cursor: not-allowed; }
.account-page :is(button, a, summary, input, select):focus-visible { outline: 2px solid var(--workspace-accent); outline-offset: 3px; }
.account-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.account-page #dashboard-view, .account-page #pet-profile-view { padding: 32px 0 70px; }
.account-page #dashboard-view > .container-wrapper, .account-page #pet-profile-view > .container-wrapper { max-width: 1160px; width: 100%; padding-inline: 28px; }
.account-page .profile-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 28px; width: 100%; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0 0 24px; margin: 0 0 26px; border-bottom: 1px solid var(--workspace-line); text-align: left; }
.account-page .profile-identity { display: flex; align-items: center; gap: 18px; min-width: 0; width: 100%; }
.account-page .profile-avatar-container { width: 88px; height: 88px; flex: 0 0 88px; }
.account-page .profile-avatar-img { width: 88px; height: 88px; border: 4px solid var(--workspace-surface); box-shadow: 0 8px 24px rgba(35, 25, 52, .11); }
.account-page .avatar-upload-btn { width: 29px; height: 29px; border-width: 2px; bottom: 1px; right: 1px; }
.account-page .avatar-upload-btn svg { width: 14px; height: 14px; }
.account-page .profile-nav-container { display: block; min-width: 0; width: auto; max-width: 100%; justify-self: end; }
.account-page .account-eyebrow { display: block; color: var(--workspace-muted); font-size: 10px; letter-spacing: .14em; font-weight: 700; line-height: 1.7; }
.account-page #profile-display-name { min-width: 0; max-width: 430px; margin: 0; overflow: hidden; color: var(--text-color); font-size: clamp(23px, 2.4vw, 31px); letter-spacing: -.035em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.account-page .profile-nav-tabs { display: inline-flex; flex-direction: row; width: max-content; max-width: 100%; gap: 5px; padding: 5px; flex-wrap: nowrap; justify-content: flex-start; border: 1px solid var(--workspace-line); border-radius: 14px; background: var(--workspace-surface); }
.account-page .profile-nav-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 42px; padding: 8px 14px; border: 0; color: var(--workspace-muted); background: transparent; font: inherit; font-size: 12px; font-weight: 650; line-height: 1.3; border-radius: 10px; cursor: pointer; transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
.account-page .profile-nav-tab svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.account-page .profile-nav-tab:hover { color: var(--workspace-accent); background: var(--workspace-soft); }
.account-page .profile-nav-tab.active { background: var(--workspace-primary); color: #fff; box-shadow: 0 7px 18px rgba(124, 58, 237, .28); }
.account-page :is(#add-pet-btn, .btn-submit, .btn-primary) { background-color: var(--workspace-primary); color: #fff; box-shadow: 0 7px 18px rgba(124, 58, 237, .28); }
.account-page :is(#add-pet-btn, .btn-submit, .btn-primary):hover:not(:disabled) { background-color: var(--workspace-primary-hover); }
.account-page .dashboard-card { background: var(--workspace-surface); border-color: var(--workspace-line); box-shadow: none; border-radius: 18px; }
.account-page .pet-collection { padding: 0; border: 0; background: none; }
.account-page .dashboard-card-header { border: 0; padding: 0; margin-bottom: 20px; gap: 16px; }
.account-page .dashboard-card-header h2 { font-size: 24px; letter-spacing: -.035em; margin: 0; }
.account-page .collection-count { margin: 5px 0 0; color: var(--workspace-muted); font-size: 12px; }
.account-page .guide-link { color: var(--workspace-muted); font-size: 12px; }
.account-page .pet-collection .card-actions { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.account-page .collection-search { flex: 1; min-width: 0; }
.account-page .collection-search input, .account-page #pet-collection-filter { height: 44px; padding: 10px 14px; background: var(--workspace-surface); border: 1px solid var(--workspace-line); border-radius: 11px; color: var(--text-color); font: inherit; font-size: 13px; margin: 0; width: 100%; }
.account-page #pet-collection-filter { width: 200px; flex: 0 0 auto; }
.account-page #add-pet-btn { min-height: 44px; border-radius: 11px; padding: 10px 16px; font-size: 13px; white-space: nowrap; }
.account-page .pet-layout-switch { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--workspace-line); border-radius: 11px; background: var(--workspace-surface); }
.account-page .pet-layout-switch button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: var(--workspace-muted); background: transparent; cursor: pointer; }
.account-page .pet-layout-switch button.active { color: var(--workspace-accent); background: var(--workspace-soft); }
.account-page .pet-layout-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-page #pet-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.account-page #pet-list .pet-list-item { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin: 0; background: var(--workspace-surface); border: 1px solid var(--workspace-line); border-radius: 18px; min-width: 0; position: relative; transition: border-color .15s; }
.account-page #pet-list .pet-list-item:has(.pet-card-menu[open]) { z-index: 20; }
.account-page #pet-list .pet-list-item:hover { border-color: var(--workspace-muted); }
.account-page .pet-details-btn { display: flex; flex-direction: column; width: 100%; text-align: left; background: none; color: var(--text-color); border: 0; font: inherit; padding: 0; cursor: pointer; border-radius: 18px 18px 0 0; min-width: 0; }
.account-page .pet-card-photo { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 4 / 2.55; padding: 10px; background: var(--workspace-soft); border-radius: 17px 17px 0 0; overflow: hidden; }
.account-page .pet-card-photo-frame { display: grid; place-items: center; height: 100%; max-height: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 11px; background: var(--workspace-surface); box-shadow: 0 7px 22px rgba(16, 14, 23, .16); }
.account-page .pet-card-photo-frame img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; object-position: center; }
.account-page .pet-card-photo-frame svg { width: 58px; height: 58px; color: var(--workspace-muted); opacity: .6; }
.account-page .pet-card-identity { display: flex; flex-direction: column; gap: 5px; padding: 18px 18px 12px; min-width: 0; width: 100%; }
.account-page .pet-card-identity strong { font-size: 21px; line-height: 1.25; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-page .pet-card-identity > span { font-size: 12px; color: var(--workspace-muted); min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-page .pet-card-identity small { font-size: 10px; letter-spacing: .05em; color: var(--workspace-muted); }
.account-page .pet-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 12px 0 18px; min-height: 46px; }
.account-page .pet-card-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.account-page .pet-card-status .btn { padding: 7px 10px !important; font-size: 11px !important; border-radius: 8px; background: var(--workspace-soft); border: 1px solid var(--workspace-line); color: var(--workspace-accent); box-shadow: none; }
.account-page .pet-card-status .payment-qr-btn { color: #a96304; background: #fff2d6; border-color: #efdbb5; }
.dark-mode .account-page .pet-card-status .payment-qr-btn { color: #f3c47f; background: #34291c; border-color: #4b3a23; }
.account-page .pet-card-status .status-badge { font-size: 11px !important; padding: 5px 9px; border-radius: 7px; color: var(--workspace-accent); background: var(--workspace-soft); }
.account-page .pet-card-menu { position: relative; margin-left: auto; }
.account-page .pet-card-menu summary { font-size: 24px; width: 34px; height: 34px; }
.account-page .pet-security-note { font-size: 10px; color: var(--workspace-muted); margin: 4px 18px 16px; }
.account-page .pet-security-note:not(.secured)::before { content: '○ '; color: #b58646; }
.account-page .pet-collection[data-layout="list"] #pet-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.account-page .pet-collection[data-layout="list"] #pet-list .pet-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; min-height: 132px; padding: 10px 12px 10px 10px; }
.account-page .pet-collection[data-layout="list"] .pet-details-btn { grid-row: 1 / -1; display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; border-radius: 13px; }
.account-page .pet-collection[data-layout="list"] .pet-card-photo { width: 84px; height: 112px; aspect-ratio: 3 / 4; padding: 0; border-radius: 12px; }
.account-page .pet-collection[data-layout="list"] .pet-card-photo-frame { width: 100%; height: 100%; box-shadow: none; }
.account-page .pet-collection[data-layout="list"] .pet-card-identity { align-self: center; padding: 18px 22px; }
.account-page .pet-collection[data-layout="list"] .pet-card-footer { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; padding: 0; }
.account-page .pet-collection[data-layout="list"] .pet-security-note { grid-column: 2; grid-row: 2; justify-self: end; margin: 6px 4px 2px 18px; }
.account-page .collection-empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; background: var(--workspace-surface); border: 1px dashed var(--workspace-line); border-radius: 16px; color: var(--workspace-muted); }
.account-page .collection-empty h3 { color: var(--text-color); }
.account-page .collection-empty .btn { width: auto; margin-top: 12px; }
.account-page .pending-requests-banner { border-radius: 14px; margin-bottom: 24px; }

/* Pet identity, gallery, card journey and medical history. */
.account-page .pet-profile-header { position: static; margin: 0 0 22px; padding: 0; border: 0; background: none; align-items: center; }
.account-page .pet-heading { flex: 1; min-width: 0; }
.account-page .pet-profile-header h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
.account-page .pet-heading p { margin: 6px 0 0; font-size: 12px; color: var(--workspace-muted); }
.account-page #pet-profile-back-btn { width: 42px; height: 42px; background: var(--workspace-surface); border: 1px solid var(--workspace-line); border-radius: 12px; flex: 0 0 auto; }
.account-page #pet-profile-back-btn svg { width: 20px; height: 20px; }
.account-page .pet-heading-status { font-size: 12px; color: var(--workspace-accent); padding: 8px 12px; background: var(--workspace-soft); border-radius: 9px; }
.account-page .pet-section-tabs { display: flex; gap: 6px; margin: 0 0 24px; border-bottom: 1px solid var(--workspace-line); padding-bottom: 12px; overflow-x: auto; }
.account-page .pet-section-tabs button { white-space: nowrap; }
.account-page #pet-profile-view[data-section="manage"] .pet-profile-layout { display: none; }
.account-page .pet-management-panel { background: var(--workspace-surface); border: 1px solid var(--workspace-line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.account-page .pet-management-panel header { margin-bottom: 24px; }
.account-page .pet-management-panel h2 { margin: 8px 0; font-size: 24px; letter-spacing: -.03em; }
.account-page .pet-management-panel p { margin: 8px 0 0; color: var(--workspace-muted); font-size: 13px; line-height: 1.7; max-width: 620px; }
.account-page .pet-management-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--workspace-line); padding: 24px 0; }
.account-page .pet-management-row:last-of-type { padding-bottom: 0; }
.account-page .pet-management-row h3 { margin: 0; font-size: 16px; }
.account-page .pet-management-row button { flex-shrink: 0; width: auto; min-width: 150px; border-radius: 12px; font-size: 13px; }
.account-page .pet-management-row button:disabled { opacity: .5; cursor: not-allowed; }
.account-page .pet-management-danger button { color: var(--danger); }
.account-page .pet-management-panel .pet-management-note { margin-top: 24px; padding: 14px 16px; background: var(--workspace-soft); border-radius: 12px; }
@media(max-width:600px) { .account-page .pet-management-row { align-items: flex-start; flex-direction: column; gap: 16px; } .account-page .pet-management-row button { width: 100%; } }
.account-page .pet-section-tabs button { padding: 11px 20px; border: 0; border-radius: 10px; background: none; color: var(--workspace-muted); font: inherit; font-size: 13px; cursor: pointer; }
.account-page .pet-section-tabs button.active { color: var(--workspace-accent); background: var(--workspace-soft); font-weight: 650; }
.account-page .pet-profile-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-page #pet-profile-view:is([data-section="care"], [data-section="medical"]) .pet-profile-layout { grid-template-columns: minmax(0, 1fr); }
.account-page .pet-profile-layout > div { min-width: 0; }
.account-page .pet-profile-images { gap: 12px; }
.account-page .pet-profile-image-box { position: relative; border-radius: 16px; border: 1px solid var(--workspace-line); background: var(--workspace-surface); overflow: hidden; }
.account-page .pet-image-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: var(--pet-photo-ratio); overflow: hidden; background: var(--workspace-soft); }
.account-page .pet-image-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.account-page .pet-image-caption { display: block; min-height: 34px; padding: 9px 10px; font-size: 10px; line-height: 1.5; background: var(--workspace-surface); color: var(--workspace-muted); pointer-events: none; }
.account-page .upload-overlay { height: 38px; top: auto; bottom: 0; opacity: 1; background: #100e179e; color: #fff; flex-direction: row; gap: 6px; font-size: 11px; }
.account-page .upload-overlay .upload-icon { width: 15px; height: 15px; margin: 0; }
.account-page .pet-image-preview { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: #fff; background: #100e17a6; cursor: pointer; font-size: 21px; }
.account-page .pet-profile-details { padding: 26px; border: 1px solid var(--workspace-line); background: var(--workspace-surface); border-radius: 18px; }
.account-page .pet-profile-details-grid { gap: 24px; }
.account-page .detail-item { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.account-page .detail-item > span { font-size: 14px; font-weight: 550; line-height: 1.6; }
.account-page .detail-item strong { font-size: 11px; margin-bottom: 6px; color: var(--workspace-muted); }
.account-page .pet-profile-admin-actions { flex-wrap: wrap; }
.account-page .pet-card-panel, .account-page .health-records-section, .account-page .pet-care-section { padding: 28px; margin: 0; background: var(--workspace-surface); border: 1px solid var(--workspace-line); border-radius: 18px; }
.account-page .pet-card-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.account-page .pet-card-panel h2, .account-page .health-records-section h2, .account-page .pet-care-section h2 { font-size: 22px; letter-spacing: -.03em; }
.account-page .card-journey { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0; margin: 28px 0; }
.account-page .card-journey li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 11px; color: var(--workspace-muted); border-top: 2px solid var(--workspace-line); padding-top: 12px; }
.account-page .card-journey li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--workspace-soft); }
.account-page .card-journey .reached { color: var(--workspace-accent); border-color: var(--workspace-accent); }
.account-page .card-journey [aria-current="step"] { font-weight: 700; }
.account-page .profile-card-next { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.account-page .profile-card-next p { color: var(--workspace-muted); font-size: 13px; }
.account-page .profile-card-next .btn { width: auto; font-size: 13px; flex-shrink: 0; }
.account-page .profile-checklist { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--workspace-line); }
.account-page .profile-checklist summary { cursor: pointer; font-size: 14px; }
.account-page .profile-checklist summary span { float: right; font-size: 12px; color: var(--workspace-muted); }
.account-page .profile-checklist > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.account-page .profile-checklist p { font-size: 12px; margin: 0; color: var(--workspace-muted); }
.account-page .profile-checklist p span { display: inline-block; width: 24px; }
.account-page .profile-checklist .complete span { color: var(--workspace-accent); }
.account-page .health-records-tab { font-size: 12px; }
.account-page #health-records-container:not(.hidden) { display: block; }
.account-page .no-records-message { padding: 48px 16px; background: var(--workspace-soft); border-radius: 12px; color: var(--workspace-muted); }

/* Care records use the same Firestore subcollections as the Android app. */
.account-page .pet-care-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.account-page .pet-care-heading h2 { margin: 5px 0 0; }
.account-page .pet-care-heading > p { max-width: 390px; margin: 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.6; text-align: right; }
.account-page .care-overview-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.account-page .care-weight-card, .account-page .care-diary-prompt { border-radius: 16px; background: var(--workspace-soft); padding: 22px; }
.account-page .care-weight-card { display: flex; flex-direction: column; align-items: flex-start; }
.account-page .care-weight-card > strong { margin: 12px 0 5px; font-size: 34px; letter-spacing: -.045em; }
.account-page .care-weight-card > strong small { font-size: 14px; font-weight: 650; }
.account-page .care-weight-card p, .account-page .care-diary-prompt p { margin: 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.65; }
.account-page .care-weight-card .btn { width: 100%; margin-top: 20px; }
.account-page .care-diary-prompt { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-content: center; align-items: center; gap: 14px; }
.account-page .care-diary-prompt > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--workspace-accent); background: var(--workspace-surface); font-size: 21px; }
.account-page .care-diary-prompt h3 { margin: 0 0 5px; font-size: 16px; }
.account-page .care-diary-prompt .btn { grid-column: 1 / -1; width: 100%; margin-top: 7px; }
.account-page .care-history { margin-top: 28px; }
.account-page .care-history > h3 { margin: 0 0 14px; font-size: 16px; }
.account-page .care-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.account-page .care-history-heading h3 { margin: 4px 0 0; font-size: 18px; }
.account-page .care-history-heading > span { color: var(--workspace-muted); font-size: 11px; }
.account-page .care-weight-chart { margin: 0 0 18px; padding: 15px 12px 6px; overflow: hidden; border: 1px solid var(--workspace-line); border-radius: 15px; background: var(--workspace-bg); }
.account-page .care-weight-chart svg { display: block; width: 100%; height: auto; min-height: 180px; }
.account-page .care-chart-grid line { stroke: var(--workspace-line); stroke-width: 1; }
.account-page .care-chart-grid text, .account-page .care-chart-date { fill: var(--workspace-muted); font-size: 11px; }
.account-page .care-chart-line { fill: none; stroke: var(--workspace-accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.account-page .care-weight-chart circle { fill: var(--workspace-surface); stroke: var(--workspace-accent); stroke-width: 4; }
.account-page .care-weight-history { border-top: 1px solid var(--workspace-line); }
.account-page .care-weight-history > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--workspace-line); font-size: 13px; }
.account-page .care-weight-history span { color: var(--workspace-muted); }
.account-page .care-weight-delete { padding: 6px 9px; border: 0; border-radius: 8px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.account-page .care-weight-delete:disabled { opacity: .55; cursor: wait; }
.account-page .care-diary-list { display: grid; gap: 10px; }
.account-page .care-diary-list article { padding: 16px; border: 1px solid var(--workspace-line); border-radius: 13px; background: var(--workspace-bg); }
.account-page .care-diary-list time { color: var(--workspace-accent); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.account-page .care-diary-list p { margin: 7px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.care-entry-dialog { width: min(470px, calc(100vw - 28px)); max-height: min(720px, calc(100dvh - 28px)); padding: 0; border: 1px solid var(--workspace-line); border-radius: 20px; color: var(--text-color); background: var(--workspace-surface); box-shadow: 0 25px 80px #0006; }
.care-entry-dialog::backdrop { background: #090611b8; backdrop-filter: blur(5px); }
.care-entry-form { display: grid; gap: 16px; padding: 26px; }
.care-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.care-dialog-heading h2 { margin: 4px 0 0; font-size: 24px; }
.care-dialog-heading button { width: 36px; height: 36px; border: 0; border-radius: 10px; color: var(--text-color); background: var(--workspace-soft); font-size: 24px; cursor: pointer; }
.care-entry-form > p { margin: -6px 0 2px; color: var(--workspace-muted); font-size: 13px; }
.care-entry-form label { display: grid; gap: 7px; color: var(--workspace-muted); font-size: 12px; font-weight: 650; }
.care-entry-form :is(input, textarea) { width: 100%; border: 1px solid var(--workspace-line); border-radius: 11px; padding: 12px 14px; color: var(--text-color); background: var(--workspace-bg); font: inherit; font-size: 16px; resize: vertical; }
.care-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.care-dialog-actions .btn { width: auto; }

/* Spaw mirrors the Android wallet and auto-renew flow. */
.account-page .spaw-page { display: grid; gap: 22px; }
.account-page .spaw-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-page .spaw-page-heading h2 { margin: 4px 0; font-size: 32px; letter-spacing: -.045em; }
.account-page .spaw-page-heading p, .account-page .spaw-section-heading p { margin: 0; color: var(--workspace-muted); font-size: 12px; line-height: 1.6; }
.account-page .spaw-refresh { width: 40px; height: 40px; border: 1px solid var(--workspace-line); border-radius: 12px; color: var(--workspace-accent); background: var(--workspace-surface); font: 24px/1 inherit; cursor: pointer; }
.account-page .spaw-balance-card { position: relative; overflow: hidden; min-height: 210px; padding: 28px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #382260, #7241cf 58%, #9466ef); box-shadow: 0 20px 45px rgba(72, 40, 128, .2); }
.account-page .spaw-balance-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -55px; top: -90px; border-radius: 50%; border: 1px solid #ffffff2e; box-shadow: 0 0 0 35px #ffffff0a, 0 0 0 70px #ffffff08; }
.account-page .spaw-balance-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.account-page .spaw-balance-label svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.account-page .spaw-balance-card > strong { position: relative; z-index: 1; display: block; margin: 27px 0 8px; font-size: clamp(40px, 6vw, 58px); letter-spacing: -.055em; }
.account-page .spaw-balance-card > strong small { font-size: 16px; letter-spacing: 0; }
.account-page .spaw-balance-card > p { position: relative; z-index: 1; margin: 0; color: #eee5ff; font-size: 12px; }
.account-page .spaw-section { padding: 24px; border: 1px solid var(--workspace-line); border-radius: 18px; background: var(--workspace-surface); }
.account-page .spaw-section-heading { margin-bottom: 17px; }
.account-page .spaw-section-heading h3 { margin: 0 0 5px; font-size: 19px; }
.account-page .spaw-policy-card { margin: 0 0 17px; padding: 15px 16px; border: 1px solid color-mix(in srgb, var(--workspace-accent) 26%, var(--workspace-line)); border-radius: 14px; background: color-mix(in srgb, var(--workspace-accent) 7%, var(--workspace-soft)); }
.account-page .spaw-policy-card > strong { display: block; margin-bottom: 5px; color: var(--workspace-accent); font-size: 13px; }
.account-page .spaw-policy-card p { margin: 0; color: var(--workspace-muted); font-size: 11px; line-height: 1.65; }
.account-page .spaw-policy-card .spaw-lock-notice { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--workspace-line); color: var(--workspace-text); }
.account-page .spaw-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-page .spaw-package { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 14px; background: var(--workspace-soft); }
.account-page .spaw-package strong, .account-page .spaw-package span { display: block; }
.account-page .spaw-package strong { font-size: 15px; }
.account-page .spaw-package span { margin-top: 4px; color: var(--workspace-muted); font-size: 11px; }
.account-page .spaw-package .btn { width: auto; min-width: 66px; padding-inline: 13px; }
.account-page .spaw-pets { display: grid; gap: 9px; }
.account-page .spaw-pet-row { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--workspace-line); border-radius: 14px; }
.account-page .spaw-pet-avatar { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--workspace-soft); border: 1px solid var(--workspace-line); }
.account-page .spaw-pet-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-page .spaw-pet-copy { min-width: 0; flex: 1; }
.account-page .spaw-pet-copy strong, .account-page .spaw-pet-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-page .spaw-pet-copy strong { font-size: 14px; }
.account-page .spaw-pet-copy span { margin-top: 4px; color: var(--workspace-muted); font-size: 11px; }
.account-page .spaw-switch { position: relative; flex: 0 0 auto; width: 43px; height: 24px; }
.account-page .spaw-switch input { position: absolute; opacity: 0; pointer-events: none; }
.account-page .spaw-switch > span { position: absolute; inset: 0; border-radius: 999px; background: var(--workspace-line); cursor: pointer; transition: .18s ease; }
.account-page .spaw-switch > span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #0003; transition: .18s ease; }
.account-page .spaw-switch input:checked + span { background: #20bc8b; }
.account-page .spaw-switch input:checked + span::after { transform: translateX(19px); }
.account-page .spaw-switch input:focus-visible + span { outline: 2px solid var(--workspace-accent); outline-offset: 3px; }
.account-page .spaw-switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.account-page .spaw-transactions { display: grid; gap: 10px; }
.account-page .spaw-tx-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--workspace-line); border-radius: 14px; background: var(--workspace-bg); }
.account-page .spaw-tx-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--workspace-soft); color: var(--workspace-accent); }
.account-page .spaw-tx-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.account-page .spaw-tx-icon.is-positive { color: #10b981; background: color-mix(in srgb, #10b981 13%, var(--workspace-soft)); }
.account-page .spaw-tx-icon.is-negative { color: var(--workspace-accent); background: color-mix(in srgb, var(--workspace-accent) 13%, var(--workspace-soft)); }
.account-page .spaw-tx-copy { min-width: 0; flex: 1; }
.account-page .spaw-tx-copy strong { display: block; font-size: 14px; font-weight: 650; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-page .spaw-tx-copy span { display: block; margin-top: 3px; color: var(--workspace-muted); font-size: 11px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-page .spaw-tx-copy time { display: block; margin-top: 3px; color: var(--workspace-muted); font-size: 10.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.account-page .spaw-tx-meta { flex: 0 0 auto; text-align: right; }
.account-page .spaw-tx-delta { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.account-page .spaw-tx-delta.is-positive { color: #059669; background: color-mix(in srgb, #10b981 15%, transparent); }
.dark-mode .account-page .spaw-tx-delta.is-positive { color: #34d399; background: rgba(16, 185, 129, .16); }
.account-page .spaw-tx-delta.is-negative { color: var(--text-color); background: var(--workspace-soft); }
.account-page .spaw-tx-balance { display: block; margin-top: 4px; color: var(--workspace-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.account-page .spaw-note, .account-page .spaw-empty { margin: 0; padding: 16px; color: var(--workspace-muted); background: var(--workspace-soft); border-radius: 13px; font-size: 11px; line-height: 1.7; }
.account-page .spaw-loading, .account-page .spaw-error { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; color: var(--workspace-muted); }
.account-page .spaw-error .btn { width: auto; }
.account-page .admin-spaw-adjust-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--workspace-line); }
.account-page .admin-spaw-balance-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 15px; border-radius: 14px; background: var(--workspace-soft); }
.account-page .admin-spaw-balance-heading span, .account-page .admin-spaw-balance-heading strong { display: block; }
.account-page .admin-spaw-balance-heading span { color: var(--workspace-muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.account-page .admin-spaw-balance-heading strong { margin-top: 4px; color: var(--workspace-accent); font-size: 20px; }
.account-page .admin-spaw-balance-heading .btn { width: auto; margin: 0; padding: 9px 12px; }
.account-page .admin-spaw-auth-row { display: flex; gap: 10px; margin: 4px 0 14px; }
.account-page .admin-spaw-auth-row label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--workspace-line); border-radius: 11px; cursor: pointer; }
.account-page .admin-spaw-submit { width: 100%; }
.account-page .admin-spaw-help { margin: 10px 0 0; color: var(--workspace-muted); font-size: 10px; line-height: 1.55; }
.account-page .admin-user-spaw-badge { display: inline-flex; align-items: center; margin-top: 6px; padding: 3px 7px; border-radius: 999px; color: var(--workspace-accent); background: var(--workspace-soft); font-size: 10px; font-weight: 750; }
.account-page .loading-spinner { width: 30px; height: 30px; border: 3px solid var(--workspace-line); border-top-color: var(--workspace-accent); border-radius: 50%; animation: spin .8s linear infinite; }

@media(max-width: 760px) {
    .account-page .care-overview-grid, .account-page .spaw-packages { grid-template-columns: minmax(0, 1fr); }
    .account-page .pet-care-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .account-page .pet-care-heading > p { text-align: left; }
    .account-page .spaw-section { padding: 18px; }
    .account-page .spaw-package { padding: 14px; }
}
.account-page .account-image-dialog { max-width: min(90vw, 920px); max-height: 90dvh; padding: 16px; border: 1px solid var(--workspace-line); border-radius: 20px; background: var(--workspace-surface); margin: auto; }
.account-page .account-image-dialog::backdrop { background: #080610cc; }
.account-page .account-image-dialog img { display: block; max-height: 78dvh; max-width: 100%; object-fit: contain; margin: auto; }
.account-page .account-image-dialog form { text-align: right; }
.account-page .account-image-dialog button { width: 36px; height: 36px; border: 0; color: var(--text-color); background: var(--workspace-soft); border-radius: 50%; font-size: 24px; cursor: pointer; }

/* One scrolling region per chat pane, no second page scroll. */
.account-page[data-account-view="messages"] { overflow: hidden !important; }
.account-page[data-account-view="messages"] #fab-container { display: none !important; }
.account-page #messages-view { height: calc(var(--account-viewport-height, 100dvh) - var(--workspace-header)); min-height: 0; padding: 20px 28px; max-width: 1248px; margin: 0 auto; box-sizing: border-box; }
.account-page .messages-layout { position: relative; height: 100%; min-height: 0; overflow: hidden; border: 1px solid var(--workspace-line); border-radius: 20px; background: var(--workspace-surface); }
.account-page .conversations-list { background: var(--workspace-surface); border-color: var(--workspace-line); min-height: 0; }
.account-page .conversations-header { min-height: 83px; padding: 22px; border-color: var(--workspace-line); }
.account-page .conversations-header h2 { font-size: 23px; letter-spacing: -.035em; }
.account-page #new-message-btn { width: 36px; height: 36px; padding: 8px; border-radius: 11px; color: var(--workspace-accent); background: var(--workspace-soft); }
.account-page .conversations-body { padding: 8px; overscroll-behavior: contain; min-height: 0; }
.account-page .conversation-item { padding: 15px 12px; margin-bottom: 4px; border: 0; border-radius: 12px; gap: 12px; }
.account-page .conversation-item.active { background: var(--workspace-soft); }
.account-page .conversation-item-avatar { width: 44px; height: 44px; }
.account-page .conversation-item-details { min-width: 0; }
.account-page .conversation-item-details h4 { font-size: 14px; }
.account-page .conversation-item-details .name { font-size: 14px; }
.account-page .conversation-item-details p { font-size: 12px; }
.account-page .conversation-item-details .last-message { margin: 5px 0 0; line-height: 1.5; }
.account-page .chat-window { background: var(--workspace-bg); min-width: 0; min-height: 0; }
.account-page .chat-header { background: var(--workspace-surface); padding: 18px 24px; min-height: 83px; border-color: var(--workspace-line); gap: 12px; }
.account-page .chat-header h3 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-page .chat-messages { padding: 24px; min-height: 0; overscroll-behavior: contain; }
.account-page .message-form { background: var(--workspace-surface); border-color: var(--workspace-line); padding: 16px 24px; gap: 12px; align-items: flex-end; }
.account-page #message-input { border: 1px solid var(--workspace-line); border-radius: 14px; background: var(--workspace-bg); padding: 12px 15px; font-size: 14px; }
.account-page #send-message-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; }
.account-page .chat-window-placeholder { color: var(--workspace-muted); padding: 32px; }
.account-page .chat-window-placeholder > svg { width: 60px; height: 60px; padding: 16px; color: var(--workspace-accent); background: var(--workspace-soft); border-radius: 20px; margin-bottom: 20px; }
.account-page .chat-window-placeholder h3 { color: var(--text-color); font-size: 22px; letter-spacing: -.03em; }
.account-page .chat-window-placeholder p { max-width: 350px; font-size: 13px; line-height: 1.8; }
.account-page .message-bubble { box-shadow: none; }
@media(min-width: 992px) { .account-page .conversations-list { width: 320px; max-width: 320px; } }
@media(max-width: 1100px) {
    .account-page .account-nav-label, .account-page .account-workspace-nav > span, .account-page #admin-panel-btn .nav-btn-text { display: none; }
    .account-page .main-header.home-main-header > .container-wrapper { gap: 14px; }
    .account-page .main-header :is(#account-collection-btn, #messages-btn, #admin-panel-btn) { width: 40px; padding: 0; }
}
@media(max-width: 899px) {
    .account-page .main-header .global-search-container,
    .account-page .main-header .global-search-container.mobile-search-active { width: 44px; max-width: 44px; flex: 0 0 44px; }
    .account-page .global-search-container.mobile-search-active .search-form-desktop { background: var(--workspace-bg); border: 0; box-shadow: 0 1px 0 var(--workspace-line); }
    .account-page .main-header #global-search-input { font-size: 16px; }
    .account-page .main-header .search-close-btn { border-radius: 12px; background: var(--workspace-surface); border-color: var(--workspace-line); color: var(--workspace-muted); }
}
@media(max-width: 991px) {
    .account-page #pet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-page .pet-profile-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
    .account-page .account-workspace-nav span { display: none; }
    .account-page .pet-card-panel-heading { align-items: flex-start; }
}
@media(max-width: 860px) {
    .account-welcome { padding: 24px; }
    .account-guest-shell { width: min(620px, 100%); grid-template-columns: 1fr; border-radius: 24px; }
    .account-guest-story { order: 2; padding: 38px; }
    .account-guest-brand { margin-bottom: 42px; }
    .account-guest-story h1 { font-size: clamp(32px, 8vw, 48px); }
    .account-guest-features { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
    .account-guest-feature { grid-template-columns: 36px 1fr; align-items: start; gap: 9px; }
    .account-guest-feature-icon { width: 36px; height: 36px; border-radius: 11px; }
    .account-guest-feature small { display: none; }
    .account-welcome-card { order: 1; padding: 38px; border-bottom: 1px solid var(--workspace-line); }
}
@media(max-width: 600px) {
    .account-page { --workspace-header: 64px; }
    .account-page .main-header.home-main-header > .container-wrapper { min-height: 64px; gap: 8px; padding-inline: 12px; }
    .account-page .main-header .logo-text { display: inline; font-size: 20px; }
    .account-page .main-header .logo-icon { width: 30px; height: 30px; }
    .account-page .main-header .main-nav, .account-page .main-header .nav-inline-right { gap: 2px; }
    .account-page .main-nav { padding: 3px; border-radius: 15px; }
    .account-page .main-header #spaw-nav-btn { gap: 4px; padding-inline: 7px; }
    .account-page #spaw-quick-balance { max-width: 48px; padding: 3px 4px; font-size: 10px; }
    .account-page .main-header #mrz-btn-nav { display: none; }
    .account-page:has(#logged-out-nav.hidden) .main-header .logo-text { display: none; }
    .account-page #logged-out-nav > #register-btn { display: none; }
    .account-page #logged-out-nav > #login-btn { display: inline-flex; align-items: center; min-height: 38px; padding-inline: 13px; }
    .account-page #dashboard-view, .account-page #pet-profile-view { padding: 22px 0 80px; }
    .account-page #dashboard-view > .container-wrapper, .account-page #pet-profile-view > .container-wrapper { padding-inline: 16px; }
    .account-page .profile-toolbar { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-bottom: 18px; margin-bottom: 22px; align-items: stretch; }
    .account-page .profile-identity { gap: 15px; }
    .account-page .profile-avatar-container, .account-page .profile-avatar-img { width: 76px; height: 76px; flex-basis: 76px; }
    .account-page #profile-display-name { font-size: 23px; }
    .account-page .profile-nav-container { width: 100%; justify-self: stretch; }
    .account-page .profile-nav-tabs { width: 100%; gap: 4px; padding: 4px; }
    .account-page .profile-nav-tab { flex: 1; font-size: 11px; padding: 8px 9px; }
    .account-page .profile-nav-tab svg { width: 17px; height: 17px; }
    .account-page .profile-nav-tab:not([data-tab]) { display: none; }
    .account-page .dashboard-card-header { align-items: center; gap: 10px; margin-bottom: 16px; }
    .account-page .dashboard-card-header h2 { font-size: 23px; }
    .account-page .guide-link { font-size: 11px; max-width: 122px; text-align: right; }
    .account-page .guide-link svg { display: none; }
    .account-page .pet-collection .card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
    .account-page .collection-search { grid-column: 1/-1; }
    .account-page #pet-collection-filter { width: 100%; font-size: 11px; padding-inline: 9px; }
    .account-page .pet-layout-switch { display: none; }
    .account-page #add-pet-btn { width: 100% !important; font-size: 11px; padding-inline: 8px; }
    .account-page #pet-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .account-page #pet-list .pet-list-item { display: grid; grid-template-columns: 1fr; padding: 12px; border-radius: 16px; }
    .account-page .pet-collection[data-layout="list"] #pet-list .pet-list-item { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding: 12px; }
    .account-page .pet-collection[data-layout="list"] .pet-details-btn { grid-row: auto; display: flex; flex-direction: row; align-items: center; gap: 14px; }
    .account-page .pet-collection[data-layout="list"] .pet-card-photo { width: 76px; height: 101px; flex: 0 0 76px; }
    .account-page .pet-collection[data-layout="list"] .pet-card-identity { padding: 0; }
    .account-page .pet-collection[data-layout="list"] .pet-card-footer { grid-column: auto; grid-row: auto; align-self: auto; justify-self: stretch; padding: 8px 0 0; }
    .account-page .pet-collection[data-layout="list"] .pet-security-note { grid-column: auto; grid-row: auto; justify-self: stretch; margin: 2px 0 0; }
    .account-page .pet-details-btn { flex-direction: row; align-items: center; gap: 14px; }
    .account-page .pet-card-photo { width: 76px; height: 101px; aspect-ratio: 3 / 4; flex: 0 0 76px; padding: 0; border-radius: 11px; }
    .account-page .pet-card-photo-frame { width: 100%; height: 100%; box-shadow: none; }
    .account-page .pet-card-photo-frame svg { width: 36px; height: 36px; }
    .account-page .pet-card-identity { padding: 0; gap: 5px; }
    .account-page .pet-card-identity strong { font-size: 20px; }
    .account-page .pet-card-identity > span { font-size: 11px; max-width: 100%; }
    .account-page .pet-card-footer { padding: 8px 0 0; min-height: 40px; }
    .account-page .pet-security-note { margin: 2px 0 0; font-size: 9px; }
    .account-page .pet-card-menu-panel { width: 230px; }
    .account-page .pet-profile-header { gap: 12px; flex-wrap: wrap; }
    .account-page .pet-heading { flex-basis: calc(100% - 54px); }
    .account-page .pet-heading-status { margin-left: 54px; font-size: 11px; padding: 5px 9px; }
    .account-page .pet-section-tabs { gap: 4px; margin-bottom: 18px; }
    .account-page .pet-section-tabs button { flex: 1; padding: 11px 8px; font-size: 12px; }
    .account-page .pet-profile-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .account-page .pet-profile-images { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
    .account-page .pet-profile-images > div:last-child { gap: 8px !important; align-self: start; }
    .account-page .pet-image-caption { font-size: 8px; padding: 6px 5px; min-height: 34px; line-height: 1.3; }
    .account-page .upload-overlay { bottom: 0; font-size: 9px; height: 28px; gap: 3px; }
    .account-page .upload-overlay .upload-icon { display: none; }
    .account-page .pet-profile-details, .account-page .pet-card-panel, .account-page .health-records-section, .account-page .pet-care-section { padding: 20px; border-radius: 16px; }
    .account-page .pet-profile-details-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
    .account-page .detail-item { font-size: 13px; }
    .account-page .detail-item strong { font-size: 10px; }
    .account-page .pet-card-panel-heading { flex-direction: column; gap: 8px; }
    .account-page .pet-card-panel h2 { font-size: 21px; }
    .account-page .card-journey { grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
    .account-page .profile-card-next { align-items: stretch; flex-direction: column; gap: 12px; }
    .account-page .profile-checklist > div { grid-template-columns: 1fr; }
    .account-page .profile-checklist summary { font-size: 12px; }
    .account-page .profile-checklist summary span { font-size: 10px; }
    .account-page .health-records-toolbar { align-items: stretch; flex-direction: column; }
    .account-page .health-records-tabs { display: flex; flex-wrap: wrap; }
    .account-page .health-records-table, .account-page .health-records-table tbody, .account-page .health-records-table tr { display: block; width: 100%; min-width: 0; }
    .account-page .health-records-table thead { display: none; }
    .account-page .health-records-table tr { border: 1px solid var(--workspace-line); border-radius: 12px; margin-bottom: 12px; padding: 10px; }
    .account-page .health-records-table td { display: block; white-space: normal; padding: 8px 4px; border: 0; overflow-wrap: anywhere; }
    .account-page .health-records-table td::before { content: attr(data-label); display: block; color: var(--workspace-muted); font-size: 10px; margin-bottom: 4px; }
    .account-page #messages-view { padding: 0; }
    .account-page .messages-layout { border: 0; border-radius: 0; }
    .account-page .conversations-header { min-height: 72px; padding: 18px 20px; }
    .account-page .chat-header { min-height: 70px; padding: 12px 16px; }
    .account-page .chat-messages { padding: 16px; }
    .account-page .message-form { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); gap: 8px; }
    .account-page #message-input { font-size: 16px; }
}

/* Inbox notification center */
.notification-conversation-item {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 10px !important;
    background: color-mix(in srgb, var(--workspace-surface) 92%, var(--workspace-accent) 8%);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--workspace-bg) 80%, transparent);
}
.notification-conversation-item .conversation-item-details { min-width: 0; }
.notification-conversation-item .conversation-item-details .name,
.notification-conversation-item .conversation-item-details .last-message {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notification-conversation-item::after {
    content: "";
    position: absolute;
    inset: auto 12px -6px;
    height: 1px;
    background: var(--workspace-line);
}
.notification-conversation-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 15px;
    background: linear-gradient(145deg, #8b5cf6, #5b38d1);
    box-shadow: 0 8px 22px rgba(110, 68, 230, .3);
}
.notification-conversation-avatar svg { width: 23px; height: 23px; }
.notification-conversation-count {
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--workspace-accent);
    font-size: 11px;
    font-weight: 800;
}
.conversation-list-empty { margin: 18px 12px; color: var(--workspace-muted); text-align: center; font-size: 12px; }
.conversation-list-empty.error { color: var(--danger); }
.notification-header { overflow: visible; }
.notification-header .chat-header-back-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 11px;
}
.notification-header .chat-header-back-btn:hover { background: var(--workspace-soft); }
.notification-header .chat-header-back-btn svg { display: block; width: 21px; height: 21px; }
.notification-header-copy { min-width: 0; flex: 1 1 auto; }
.notification-header h3 { margin: 0; }
.notification-header p { margin: 4px 0 0; color: var(--workspace-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-settings { position: relative; flex: 0 0 auto; margin-left: auto; }
.notification-settings-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--workspace-line);
    border-radius: 11px;
    color: var(--workspace-muted);
    background: var(--workspace-surface);
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.notification-settings-button:hover,
.notification-settings-button[aria-expanded="true"] { color: var(--workspace-accent); border-color: color-mix(in srgb, var(--workspace-accent) 45%, var(--workspace-line)); background: var(--workspace-soft); }
.notification-settings-button svg { width: 18px; height: 18px; }
.notification-settings-popover {
    position: absolute;
    z-index: 12;
    top: calc(100% + 10px);
    right: 0;
    width: min(310px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid var(--workspace-line);
    border-radius: 14px;
    color: var(--text-color);
    background: var(--workspace-surface);
    box-shadow: 0 16px 40px rgba(10, 8, 16, .2);
}
.notification-settings-popover.hidden { display: none; }
.notification-settings-copy { min-width: 0; display: grid; gap: 3px; }
.notification-push-title { font-size: 12px; line-height: 1.35; }
.notification-push-status { color: var(--workspace-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.notification-feed {
    min-height: 0;
    flex: 1;
    overflow: auto;
    padding: 24px;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}
.notification-push-toggle {
    width: 44px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}
.notification-push-toggle:focus-visible { outline: 2px solid var(--workspace-accent); outline-offset: 2px; }
.notification-push-toggle:disabled { cursor: wait; opacity: .72; }
.notification-push-switch { width: 38px; height: 22px; padding: 3px; border-radius: 999px; background: var(--workspace-line); transition: background .2s ease; }
.notification-push-switch::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .2s ease; }
.notification-push-toggle.is-enabled .notification-push-switch { background: #17b981; }
.notification-push-toggle.is-enabled .notification-push-switch::after { transform: translateX(16px); }
.notification-push-toggle.is-loading .notification-push-switch::after { animation: notification-toggle-pulse .75s ease-in-out infinite alternate; }
@keyframes notification-toggle-pulse { to { opacity: .45; transform: translateX(4px); } }
.notification-push-toggle.is-enabled.is-loading .notification-push-switch::after { animation-name: notification-toggle-pulse-enabled; }
@keyframes notification-toggle-pulse-enabled { to { opacity: .45; transform: translateX(12px); } }
.notification-items { width: min(100%, 720px); min-height: 100%; margin: 0 auto; display: grid; align-content: end; gap: 11px; }
.notification-items:has(.notification-empty), .notification-items:has(.notification-loading) { align-content: center; }
.notification-card { position: relative; display: grid; grid-template-columns: 7px 1fr; gap: 13px; padding: 17px 18px; border: 1px solid var(--workspace-line); border-radius: 16px; background: var(--workspace-surface); }
.notification-card.is-unread { border-color: color-mix(in srgb, var(--workspace-accent) 38%, var(--workspace-line)); background: color-mix(in srgb, var(--workspace-surface) 94%, var(--workspace-accent) 6%); }
.notification-card-dot { width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: transparent; }
.notification-card.is-unread .notification-card-dot { background: var(--workspace-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--workspace-accent) 14%, transparent); }
.notification-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--workspace-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.notification-card h4 { margin: 7px 0 5px; color: var(--text-color); font-size: 15px; }
.notification-card p { margin: 0; color: var(--workspace-muted); font-size: 13px; line-height: 1.65; white-space: pre-line; }
.notification-open-target { margin-top: 11px; padding: 0; border: 0; color: var(--workspace-accent); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.notification-empty, .notification-loading { padding: 64px 24px; color: var(--workspace-muted); text-align: center; }
.notification-empty h3 { margin: 0 0 8px; color: var(--text-color); }
.notification-retry-btn { width: auto; margin-top: 14px; }
.notification-readonly-footer {
    min-height: 66px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-top: 1px solid var(--workspace-line);
    color: var(--workspace-muted);
    background: var(--workspace-surface);
    font-size: 11px;
    font-weight: 600;
}
.notification-readonly-footer svg { width: 16px; height: 16px; }

/* Admin notification composer */
.admin-notification-panel { max-width: 820px; padding: 28px; border: 1px solid var(--workspace-line); border-radius: 22px; background: linear-gradient(145deg, var(--workspace-surface), color-mix(in srgb, var(--workspace-surface) 92%, var(--workspace-accent) 8%)); }
.admin-notification-panel h2 { margin: 7px 0 9px; }
.admin-notification-panel p { max-width: 680px; color: var(--workspace-muted); line-height: 1.7; }
.admin-notification-eyebrow { color: var(--workspace-accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.admin-notification-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.admin-notification-actions .btn { width: auto; }
.admin-notification-actions span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 999px; background: var(--workspace-soft); }
.admin-notification-note { margin-bottom: 0; font-size: 12px; }
.admin-notification-modal-content { max-width: 600px; }
.admin-notification-modal-content { max-height: min(88dvh, 820px); overflow-y: auto; }
.admin-notification-recipient-summary { padding: 12px 14px; border-radius: 12px; color: var(--workspace-muted); background: var(--workspace-soft); font-size: 12px; line-height: 1.55; }
#admin-notification-form textarea { resize: vertical; min-height: 120px; }
#admin-notification-form #admin-notification-html { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.55; }
#admin-notification-form .form-group > small { display: block; margin-top: 5px; color: var(--workspace-muted); text-align: right; font-size: 10px; }
.notification-content-modal-content { width: min(920px, calc(100vw - 32px)); max-width: 920px; height: min(84dvh, 760px); display: flex; flex-direction: column; padding-bottom: 18px; overflow: hidden; }
.notification-content-modal-content .modal-header { flex: 0 0 auto; }
#notification-content-frame { width: 100%; min-height: 0; flex: 1; border: 1px solid var(--workspace-line); border-radius: 14px; background: #fff; }
.admin-user-select { flex: 0 0 auto; display: grid; place-items: center; cursor: pointer; }
.admin-user-select input { position: absolute; opacity: 0; pointer-events: none; }
.admin-user-select > span[aria-hidden] { width: 21px; height: 21px; border: 1px solid var(--workspace-line); border-radius: 7px; background: var(--workspace-bg); }
.admin-user-select input:checked + span { border-color: var(--workspace-accent); background: var(--workspace-accent); box-shadow: inset 0 0 0 5px var(--workspace-surface); }
.admin-user-row-actions { display: flex; align-items: center; gap: 8px; }
.admin-user-row-actions .btn { width: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media(max-width: 700px) {
    .notification-feed { padding: 14px; }
    .notification-header { gap: 9px !important; }
    .notification-header .notification-conversation-avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
    .notification-header .notification-conversation-avatar svg { width: 20px; height: 20px; }
    .notification-header-copy p { font-size: 10px; }
    .notification-settings-button { width: 36px; height: 36px; }
    .notification-settings-popover { right: -2px; }
    .notification-card { padding: 14px; }
    .notification-card-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
    .notification-readonly-footer { min-height: 62px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
    .admin-user-row-actions { width: 100%; }
    .admin-user-row-actions .btn { flex: 1; }
    .admin-notification-panel { padding: 20px; }
    .notification-content-modal-content { width: calc(100vw - 20px); height: 90dvh; padding: 16px; }
}
@media(prefers-reduced-motion: reduce) { .account-page *, .account-page *::before, .account-page *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
@media (max-width: 600px) {
    .account-breadcrumb { padding-top: .75rem; }
    .account-welcome { min-height: calc(100dvh - var(--workspace-header)); padding: 14px; place-items: start center; }
    .account-guest-shell { border-radius: 20px; }
    .account-guest-story { padding: 28px 24px 26px; }
    .account-guest-brand { margin-bottom: 30px; }
    .account-guest-story h1 { margin-block: 10px 13px; font-size: clamp(29px, 10vw, 40px); }
    .account-guest-story > p { font-size: 13px; }
    .account-guest-features { grid-template-columns: 1fr; gap: 9px; margin-top: 28px; }
    .account-guest-feature { grid-template-columns: 34px 1fr; align-items: center; }
    .account-guest-feature-icon { width: 34px; height: 34px; }
    .account-guest-feature small { display: none; }
    .account-welcome-card { padding: 26px 24px 28px; }
    .account-welcome-icon { width: 46px; height: 46px; margin-bottom: 20px; }
    .account-welcome-actions { margin-top: 20px; }
    .account-welcome-security { margin-top: 20px !important; }
}
@media(max-width: 380px) {
    .account-page .main-header.home-main-header > .container-wrapper { padding-inline: 10px; gap: 6px; }
    .account-page .main-header #spaw-quick-balance { max-width: 32px; }
}

/* Mandatory 3-photo upload in new pet creation modal & admin preview */
.account-page .new-pet-photos-section {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--workspace-line);
    background: var(--workspace-soft);
}
.account-page .new-pet-photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.account-page .new-pet-photos-header label {
    margin: 0;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-color);
}
.account-page .new-pet-photos-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--workspace-muted);
    background: var(--workspace-surface);
    border: 1px solid var(--workspace-line);
}
.account-page .new-pet-photos-badge.complete {
    color: #10b981;
    border-color: color-mix(in srgb, #10b981 35%, var(--workspace-line));
    background: color-mix(in srgb, #10b981 10%, var(--workspace-surface));
}
.account-page .new-pet-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.account-page .new-pet-photo-slot {
    display: flex;
    flex-direction: column;
    border-radius: 13px;
    border: 1px solid var(--workspace-line);
    background: var(--workspace-surface);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-page .new-pet-photo-slot.has-image {
    border-color: color-mix(in srgb, var(--workspace-accent) 55%, var(--workspace-line));
}
.account-page .new-pet-photo-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: var(--pet-photo-ratio, 4 / 5);
    margin: 0;
    background: color-mix(in srgb, var(--workspace-soft) 75%, var(--workspace-surface));
    cursor: pointer;
    overflow: hidden;
}
.account-page .new-pet-photo-stage > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.account-page .new-pet-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    text-align: center;
    color: var(--workspace-muted);
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.account-page .new-pet-photo-slot.has-image .new-pet-photo-placeholder {
    inset: auto 0 0 0;
    height: 30px;
    flex-direction: row;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(16, 14, 23, 0.72);
    color: #fff;
}
.account-page .new-pet-photo-slot.has-image .new-pet-photo-placeholder svg {
    width: 14px;
    height: 14px;
}
.account-page .new-pet-photo-action {
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
}
.account-page .new-pet-photo-stage:hover .new-pet-photo-placeholder {
    color: var(--workspace-accent);
}
.account-page .new-pet-photo-slot.has-image .new-pet-photo-stage:hover .new-pet-photo-placeholder {
    color: #fff;
    background: rgba(16, 14, 23, 0.86);
}
.account-page .new-pet-photo-meta {
    padding: 8px 10px;
    border-top: 1px solid var(--workspace-line);
    background: var(--workspace-surface);
}
.account-page .new-pet-photo-meta strong,
.account-page .new-pet-photo-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-page .new-pet-photo-meta strong {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-color);
}
.account-page .new-pet-photo-meta small {
    margin-top: 2px;
    font-size: 10px;
    color: var(--workspace-muted);
}
.account-page .new-pet-photos-note {
    margin-top: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--workspace-surface);
    border: 1px dashed var(--workspace-line);
}
.account-page .new-pet-photos-note p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--workspace-muted);
}
.account-page .new-pet-photos-note strong {
    color: var(--text-color);
}
.account-page .confirm-pet-photos-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.account-page .confirm-pet-photos-preview figure {
    margin: 0;
    border-radius: 10px;
    border: 1px solid var(--workspace-line);
    background: var(--workspace-soft);
    overflow: hidden;
    text-align: center;
}
.account-page .confirm-pet-photos-preview img {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: contain;
    background: var(--workspace-surface);
}
.account-page .confirm-pet-photos-preview figcaption {
    padding: 4px 6px;
    font-size: 10px;
    color: var(--workspace-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-page .admin-pending-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 4px;
}
.account-page .admin-pending-photo-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 11px;
    border: 1px solid var(--workspace-line);
    background: var(--workspace-soft);
    color: var(--text-color);
    cursor: pointer;
    font: inherit;
}
.account-page .admin-pending-photo-btn img {
    width: 72px;
    height: 90px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--workspace-surface);
}
.account-page .admin-pending-photo-btn span {
    font-size: 10px;
    color: var(--workspace-muted);
}
.care-entry-dialog.care-dialog-under-confirm[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 1000;
}
@media(max-width: 520px) {
    .account-page .new-pet-photos-section { padding: 12px; }
    .account-page .new-pet-photos-grid { gap: 8px; }
    .account-page .new-pet-photo-meta { padding: 6px 7px; }
    .account-page .new-pet-photo-meta strong { font-size: 10.5px; }
    .account-page .new-pet-photo-meta small { font-size: 9px; }
    .account-page .new-pet-photos-note p { font-size: 11px; }
}
