/* Approved A, 852x1846 -> 390x845. Only the profile home owns this skin. */
.side-panel[data-panel="profile"]:has(.profile-home--living) {
  --a-ink:#3e2614; --a-muted:#82776c; --a-accent:#b76249; --a-line:#efd8c6;
  --profile-pet-matte:#f7efe6; /* Matches PET_COVER_BACKGROUND; avoid a second yellow matte. */
  --site-home-background:#b8664d; --site-home-color:#fff9f3;
  --site-back-background:transparent; --site-back-color:#b76249; --site-back-border:#b76249;
  container-type:inline-size; color:var(--a-ink); background:#fff5e9 url('/assets/ui/profile-home-a-background-v1.webp?v=20261113-profile-a-v1') top center/100% auto no-repeat;
  padding:env(safe-area-inset-top,0px) 0 0; border:0; border-radius:0;
}
.side-panel[data-panel="profile"]:has(.profile-home--living) .panel-header {
  flex:0 0 69px; min-height:69px; padding:22px 20px 10px; border:0; background:transparent; align-items:flex-start;
}
.side-panel[data-panel="profile"]:has(.profile-home--living) .panel-header h2 { font-size:24px; line-height:32px; font-weight:700; color:var(--a-ink); letter-spacing:-.5px; transform:translateY(2px); }
.side-panel[data-panel="profile"]:has(.profile-home--living) .panel-body { padding:0; background:transparent; scrollbar-width:thin; }
.profile-home.profile-home--living { padding:0 20px 12px; color:var(--a-ink); font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.profile-home--living button { font-family:inherit; }
.profile-home.profile-home--living .profile-companion-header { display:flex; align-items:center; min-height:70px; gap:8px; padding:0 0 10px; margin:0; border-bottom:1px solid var(--a-line); }
.profile-home.profile-home--living .profile-identity { display:flex; flex-direction:row; align-items:center; gap:14px; min-height:60px; width:auto; min-width:0; max-width:none; flex:1; padding:0; margin:0; border:0; background:none; }
.profile-home.profile-home--living .profile-identity .identity-avatar { width:60px; height:60px; min-width:60px; flex:0 0 60px; padding:0; border:0; border-radius:50%; overflow:hidden; background:#e7c8a6; }
.profile-home.profile-home--living .identity-avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.profile-home--living .identity-avatar:has(img:not([hidden])) > svg { display:none; }
.profile-home.profile-home--living .profile-identity__copy { min-width:0; flex:1; text-align:left; overflow-wrap:anywhere; }
.profile-home.profile-home--living .profile-identity__name { display:block; }
.profile-home.profile-home--living .profile-identity strong { font-size:20px; font-weight:750; line-height:1.35; color:var(--a-ink); }
.profile-home.profile-home--living .profile-identity small { display:flex; align-items:center; gap:4px; margin-top:4px; font-size:12px; color:var(--a-muted); line-height:1.35; }
.profile-wechat-mark { width:14px; height:14px; flex:0 0 14px; fill:#64ae3c; }
.profile-home.profile-home--living .profile-account-link { position:static; flex:0 0 auto; min-width:0; max-width:none; min-height:44px; padding:0; gap:5px; border:0; background:none; font-size:12px; font-weight:500; color:var(--a-ink); }
.profile-home--living .profile-account-link .profile-icon { width:14px; height:14px; flex-basis:14px; }
.profile-home.profile-home--living h3 { margin:0; font-size:15.5px; font-weight:750; line-height:22px; color:var(--a-ink); transform:translateY(-1px); }
.profile-home.profile-home--living .profile-pets__heading h3 { transform:translateY(-2px); }
.profile-home.profile-home--living .profile-pet-strip { padding:10px 0 0; margin:0; border:0; }
.profile-home.profile-home--living .profile-pets__heading { min-height:22px; margin:0 0 5px; }
.profile-home--living .profile-pet-count { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.profile-home--living .profile-pet-scroll-hint { color:var(--a-muted); font-size:11px; font-weight:400; white-space:nowrap; }
.profile-home.profile-home--living .profile-pet-list--focus { display:grid; grid-template-columns:minmax(0,1fr) 73px; gap:10px 6px; padding:0; }
.profile-home.profile-home--living .profile-pet-choices { grid-column:1; grid-row:1; display:grid; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:calc((100% - 6px)/2); gap:6px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scrollbar-width:none; min-width:0; }
.profile-home--living .profile-pet-choices::-webkit-scrollbar { display:none; }
.profile-home.profile-home--living .profile-pet-entry--catalog { width:auto; min-width:0; scroll-snap-align:start; }
.profile-home.profile-home--living .profile-pet--catalog { position:relative; width:100%; height:114px; min-height:114px; padding:0; border:0; border-radius:12px; box-shadow:none; overflow:hidden; background:var(--profile-pet-matte); }
.profile-home.profile-home--living .profile-pet--catalog.is-previewed { outline:2px solid var(--a-accent); outline-offset:-2px; border:0; }
.profile-home.profile-home--living .profile-pet--catalog.is-previewed::after { content:""; position:absolute; inset:0; z-index:2; border:2px solid var(--a-accent); border-radius:inherit; pointer-events:none; }
.profile-home.profile-home--living .profile-pet--catalog:focus-visible { outline:2px solid var(--a-accent); outline-offset:-2px; }
.profile-home.profile-home--living .profile-pet--catalog .profile-pet__avatar { width:100%; height:100%; aspect-ratio:auto; background:transparent; }
.profile-home.profile-home--living .profile-pet--catalog .profile-pet__avatar img { width:100%; height:100%; object-fit:contain; background:transparent; }
.profile-home.profile-home--living .profile-pet--catalog[data-pet-edge="extended"]:has(img:not([hidden])) .profile-pet__fallback { visibility:hidden; }
.profile-home.profile-home--living .profile-pet--catalog .profile-pet__copy { position:absolute; left:0; right:0; bottom:8px; display:block; min-height:0; padding:0; background:none; pointer-events:none; }
.profile-home.profile-home--living .profile-pet--catalog .profile-pet__title { display:block; }
.profile-home.profile-home--living .profile-pet--catalog .profile-pet__name { display:inline-block; max-width:100%; min-height:0; padding:0 10px; border-radius:0 16px 16px 0; background:rgba(111,77,37,.55); color:#fff9ee; font-size:14px; font-weight:650; line-height:18px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-home.profile-home--living .profile-pet--catalog .profile-pet__copy > small,.profile-home.profile-home--living .profile-pet--catalog .pet-identity-badge { display:none!important; }
.profile-home.profile-home--living .profile-pet-list--focus > .profile-add { grid-column:2; grid-row:1; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; width:100%; height:114px; min-height:114px; margin:0; padding:8px 4px; border:0; border-radius:12px; background:#f9e7d7; color:#a9583b; font-size:12px; font-weight:650; line-height:1.35; }
.profile-home.profile-home--living .profile-pet-list--focus:has([data-pet-count="1"]) > .profile-add { margin-top:0; }
.profile-home.profile-home--living .profile-pet-list--focus:has([data-pet-count="1"]) .profile-pet__buttons { margin-top:0; }
.profile-home.profile-home--living .profile-pet-list--focus > .profile-add .profile-icon { width:23px; height:23px; flex-basis:23px; }
.profile-home.profile-home--living .profile-pet__buttons { grid-column:1/-1; grid-row:2; display:grid; grid-template-columns:minmax(0,1fr) 95px 82px; align-items:center; gap:10px; height:54px; min-height:54px; margin:0; padding:0 10px; border-radius:19px; background:rgba(248,226,207,.62); box-shadow:0 6px 14px rgba(146,91,40,.12); }
.profile-home.profile-home--living .profile-pet__buttons > button { position:relative; min-width:0; width:100%; min-height:44px; height:44px; padding:0 8px; gap:6px; font-size:14px; line-height:20px; font-weight:700; border:0; border-radius:30px; background:transparent; }
.profile-home.profile-home--living .profile-pet__buttons > button::before { inset:6px 0; border-radius:22px; border-color:#b96549; }
.profile-home.profile-home--living .profile-pet__visit::before { background:linear-gradient(110deg,#b56b52,#b96047); box-shadow:none; }
.profile-home.profile-home--living .profile-pet__buttons .profile-icon { width:17px; height:17px; flex-basis:17px; stroke-width:1.7; }
.profile-home.profile-home--living .profile-pet__buttons .profile-pet-share { color:var(--a-accent); }
.profile-pet-selector { position:relative; min-width:0; height:44px; z-index:5; }
.profile-pet-selector > summary { display:flex; align-items:center; gap:8px; min-height:44px; list-style:none; cursor:pointer; color:var(--a-ink); }
.profile-pet-selector > summary::-webkit-details-marker { display:none; }
.profile-pet-selector > summary::after { content:""; position:absolute; right:8px; top:8px; bottom:8px; border-right:1px solid #e9ccb5; }
.profile-pet-selector__avatar { position:relative; display:grid; place-items:center; width:39px; height:39px; flex:0 0 39px; border-radius:50%; overflow:hidden; background:var(--profile-pet-matte); }
.profile-pet-selector__avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.profile-pet-selector__avatar:has(img:not([hidden])) > svg { visibility:hidden; }
.profile-pet-selector > summary strong { max-width:52px; font-size:15px; font-weight:750; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.profile-pet-selector > summary > .profile-icon { width:11px!important; height:11px!important; flex-basis:11px!important; transform:rotate(90deg); }
.profile-pet-selector__menu { position:absolute; top:48px; left:-4px; min-width:190px; max-width:260px; padding:5px; border:1px solid var(--a-line); border-radius:12px; background:#fff8ef; box-shadow:0 8px 24px #62402725; }
.profile-pet-selector__menu > div { position:relative; display:flex; }
.profile-pet-selector__menu > div > button { width:100%; min-height:44px; padding:8px 44px 8px 10px; background:transparent; border:0; text-align:left; color:var(--a-ink); font-size:14px; }
.profile-pet-selector__menu .profile-pet-menu { top:0; right:0; }
.profile-home.profile-home--living .profile-companion-credits { margin:8px 0 0; padding:0; border:0; }
.profile-home.profile-home--living .profile-section-heading { height:36px; min-height:36px; margin:0; padding:0; }
.profile-home.profile-home--living .profile-companion-credits .profile-section-heading { height:30px; min-height:30px; }
.profile-home.profile-home--living .profile-gallery .profile-section-heading { height:31px; min-height:31px; }
.profile-home.profile-home--living .profile-section-heading button { color:var(--a-accent); font-size:12px; min-height:44px; }
.profile-credit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); height:82px; border:1px solid var(--a-line); border-radius:14px; background:rgba(255,247,237,.46); box-shadow:0 3px 4px #9f603a0d; }
.profile-credit-chat { display:block; min-width:0; padding:0; border:0; border-radius:14px 0 0 14px; background:transparent; color:inherit; }
.profile-credit-cell { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; height:100%; min-width:0; padding:5px 2px; box-sizing:border-box; }
.profile-credit-grid > .profile-credit-cell::before { content:""; position:absolute; top:12px; bottom:12px; left:0; border-left:1px solid #edd4bf; }
.profile-credit-cell > .profile-icon { box-sizing:border-box; width:25px; height:25px; flex:0 0 25px; padding:5px; background:#f6decc; border-radius:50%; stroke:#b76549; }
.profile-credit-cell small { font-size:12px; line-height:15px; color:var(--a-ink); }
.profile-credit-cell b { font-size:22px; line-height:24px; font-weight:700; color:var(--a-accent); }
.profile-credit-chat .profile-credit-cell b { max-width:100%; overflow-wrap:anywhere; }
.profile-credit-notes:has(.member-pass__cycle),.profile-credit-notes:has(.member-pass__footer) { margin-top:8px; }
.profile-credit-notes .member-pass { display:contents; }
.profile-credit-notes .member-pass__heading,.profile-credit-notes .member-pass__credits { display:none!important; }
.profile-home.profile-home--living .profile-gallery { margin-top:10px; padding:0; border:0; }
.profile-home.profile-home--living .profile-collage { display:grid; grid-template-columns:1.15fr 1fr 1.18fr; gap:4px; padding:0; margin:0; }
.profile-home.profile-home--living .profile-photo { height:96px; min-height:96px; aspect-ratio:auto; border-radius:10px; background:#f4e4d2; }
.profile-home.profile-home--living .profile-photo img { width:100%; height:100%; object-fit:contain; }
.profile-home.profile-home--living .profile-settings { display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:44px; gap:0 6px; padding:0; margin-top:9px; }
.profile-home.profile-home--living .profile-row { position:relative; min-height:44px; height:44px; padding:6px 13px; gap:10px; border:0; border-radius:10px; background:transparent; font-size:11.5px; line-height:18px; font-weight:600; color:var(--a-ink); }
.profile-home--living .profile-row::before { content:""; position:absolute; z-index:-1; inset:4px 0; border:1px solid var(--a-line); border-radius:10px; background:rgba(255,251,246,.38); }
.profile-home--living .profile-row { isolation:isolate; }
.profile-home.profile-home--living .profile-row:last-child { grid-column:1/-1; }
.profile-home.profile-home--living .profile-row > .profile-icon:first-child { width:18px; height:18px; flex-basis:18px; color:var(--a-accent); stroke-width:1.55; }
.profile-home.profile-home--living .profile-row > .profile-icon:last-child { width:11px; height:11px; flex-basis:11px; color:#897664; }
.profile-home.profile-home--living .profile-language { display:flex; align-items:center; }
.profile-home.profile-home--living .profile-language select { position:absolute; inset:0; width:100%; height:100%; max-width:none; min-height:44px; opacity:0; cursor:pointer; }
.side-panel[data-panel="profile"]:has(.profile-home--living) > .site-action-bar { min-height:74px; flex:0 0 74px; display:grid; grid-template-columns:1.04fr 1fr; gap:11px; padding:0 20px max(30px,env(safe-area-inset-bottom)); border:0; border-radius:0; background:transparent; }
.side-panel[data-panel="profile"]:has(.profile-home--living) > .site-action-bar button { min-height:44px; height:44px; padding:6px 10px; border-radius:12px; font-size:16px; font-weight:700; }
.side-panel[data-panel="profile"]:has(.profile-home--living) > .site-action-bar button[data-site-action="home"] { background:linear-gradient(110deg,#b66b52,#b76049)!important; }
.profile-home--living .profile-pending-list { grid-column:1/-1; }
.profile-home.profile-home--living .profile-pets-empty { margin-top:4px; border:1px solid var(--a-line); border-radius:12px; background:#fae9db88; }
@media (min-width:700px) {
 .pc-browser .side-panel.side-panel[data-panel="profile"]:has(.profile-home--living) { width:430px; max-width:calc(100vw - 48px); height:min(900px,calc(100dvh - 36px)); max-height:calc(100dvh - 36px); padding:0; background:#fff5e9 url('/assets/ui/profile-home-a-background-v1.webp?v=20261113-profile-a-v1') top center/100% auto no-repeat; border-radius:20px; overflow:hidden; }
}
@media (max-width:360px) {
 .profile-home.profile-home--living { padding-inline:16px; }
 .profile-home.profile-home--living .profile-identity { gap:9px; }
 .profile-home.profile-home--living .profile-identity strong { font-size:18px; }
 .profile-home.profile-home--living .profile-account-link { font-size:11px; }
 .profile-home.profile-home--living .profile-pet-list--focus { grid-template-columns:minmax(0,1fr) 60px; }
 .profile-home.profile-home--living .profile-pet__buttons { grid-template-columns:minmax(0,1fr) 78px 68px; gap:5px; padding-inline:6px; }
 .profile-home.profile-home--living .profile-pet__buttons > button { font-size:12px; padding-inline:5px; }
 .profile-pet-selector > summary { gap:4px; }
 .profile-pet-selector__avatar { width:32px; height:32px; flex-basis:32px; }
 .profile-pet-selector > summary strong { font-size:13px; max-width:42px; }
 .profile-home.profile-home--living .profile-row { padding-inline:10px; gap:6px; font-size:11px; }
}
.profile-home--living[lang="en-US"] .profile-companion-header { flex-wrap:wrap; }
.profile-home--living[lang="en-US"] .profile-identity { flex:1 1 190px; }
.profile-home--living[lang="en-US"] .profile-account-link { margin-left:auto; }
.profile-home--living[lang="en-US"] .profile-settings { grid-auto-rows:minmax(48px,auto); }
.profile-home--living[lang="en-US"] .profile-row { height:auto; min-height:48px; font-size:11px; }
.profile-home--living[lang="en-US"] .profile-pet__buttons > button { font-size:11px; }
