/* Profile C: photo memories, followed by pets and compact settings. */
.side-panel[data-panel="profile"] {
  --profile-line: #eceef0;
  width: 100%;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: #fff;
  color: #241f1b;
}
.side-panel[data-panel="profile"] .panel-header {
  position: relative;
  flex: 0 0 56px;
  min-height: 56px;
  padding: 0 12px;
  justify-content: center;
}
.side-panel[data-panel="profile"] .panel-header > div { max-width: calc(100% - 96px); text-align: center; }
.side-panel[data-panel="profile"] .panel-header h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.side-panel[data-panel="profile"] #panelKicker { display: none; }
.side-panel[data-panel="profile"] #closePanelButton { position: absolute; right: 10px; }
.side-panel[data-panel="profile"] #panelBackButton { position: absolute; left: 10px; }
.side-panel[data-panel="profile"] .panel-body { flex: 1; height: auto; min-height: 0; padding: 0 0 12px; overscroll-behavior: contain; }
.profile-home button:disabled { opacity: .45; cursor: not-allowed; }
.profile-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-home h3 { font-size: 16px; font-weight: 650; line-height: 1.4; }
.profile-identity { width: 100%; min-height: 70px; padding: 8px 16px 16px; display: flex; align-items: center; gap: 12px; text-align: left; border-bottom: 1px solid var(--profile-line); background: #fff; }
.profile-user { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 50%; color: #999ea3; background: #f0f1f2; }
.profile-user .profile-icon { width: 26px; height: 26px; }
.profile-identity strong { min-width: 0; flex: 1; font-size: 16px; overflow-wrap: anywhere; }
.profile-identity__link { max-width: 42%; font-size: 13px; color: #55595e; }
.profile-identity > .profile-icon { margin-left: -8px; width: 16px; flex-basis: 16px; color: #74777d; }
.profile-gallery { padding: 0 12px 12px; }
.profile-section-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.profile-section-heading button { min-height: 44px; padding: 0; display: flex; align-items: center; gap: 4px; background: transparent; font-size: 13px; color: #55595e; }
.profile-section-heading .profile-icon { width: 16px; flex-basis: 16px; }
.profile-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; aspect-ratio: 1.25; }
.profile-photo { position: relative; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; border-radius: 6px; background: #f2f4f5; }
.profile-photo:first-child { grid-row: span 2; }
.profile-collage[data-count="1"] .profile-photo { grid-column: span 2; }
.profile-collage[data-count="2"] .profile-photo { grid-row: span 2; }
.profile-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.profile-photo__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #a5a9ad; }
.profile-photo__play { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #241f1b; }
.profile-photo__play .profile-icon { width: 14px; height: 14px; fill: currentColor; }
.profile-gallery-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #83888e; }
.profile-gallery-empty > .profile-icon { width: 34px; height: 34px; }
.profile-gallery-empty p { font-size: 14px; }
.profile-pet-strip { min-height: 116px; display: flex; gap: 12px; padding: 0 16px 12px; border-bottom: 1px solid var(--profile-line); }
.profile-pets { min-width: 0; flex: 1; }
.profile-pets__heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; }
.profile-pets__heading small { display: block; color: #74777d; font-size: 12px; }
.profile-add { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; display: grid; place-items: center; color: #d1001f; background: transparent; }
.profile-add .profile-icon { width: 25px; height: 25px; }
.profile-pet-list { min-height: 64px; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.profile-pet { flex: 0 0 54px; min-width: 0; width: 54px; padding: 2px 0 0; color: inherit; background: transparent; text-align: center; }
.profile-pet__avatar { position: relative; width: 44px; height: 44px; display: block; margin: 0 auto 4px; padding: 2px; border: 1px solid transparent; border-radius: 50%; }
.profile-pet.is-selected .profile-pet__avatar { border-color: #d1001f; }
.profile-pet__avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-pet__fallback { position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 50%; background: #f2f4f5; color: #999ea3; }
.profile-pet__name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.profile-pet__unread { position: absolute; top: 0; right: -1px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #d1001f; }
.profile-pets-empty { margin-top: 8px; color: #83888e; font-size: 13px; }
.profile-videos { width: 62px; flex: 0 0 62px; align-self: stretch; margin: 14px 0 5px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-left: 1px solid var(--profile-line); background: transparent; font-size: 13px; }
.profile-videos .profile-icon { width: 26px; height: 26px; }
.profile-quota { width: 100%; min-height: 50px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; background: transparent; border-bottom: 1px solid var(--profile-line); text-align: left; }
.profile-quota > strong { flex-shrink: 0; font-size: 14px; font-weight: 500; }
.profile-quota__values { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; font-size: 12px; }
.profile-quota__values > span { white-space: nowrap; }
.profile-quota b { font-weight: 500; }
.profile-quota [data-tone="accent"] { color: #d1001f; }
.profile-quota [data-tone="muted"] { color: #83888e; }
.profile-quota > .profile-icon { width: 16px; flex-basis: 16px; color: #74777d; }
.profile-row { position: relative; width: 100%; min-height: 46px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--profile-line); background: transparent; text-align: left; font-size: 14px; }
.profile-row > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.profile-row > .profile-icon:last-child { width: 16px; flex-basis: 16px; color: #74777d; }
.profile-language select { max-width: 46%; min-height: 28px; padding: 0; border: 0; color: #74777d; background: transparent; font: inherit; text-align: right; appearance: none; cursor: pointer; }
.profile-subpage { padding: 4px 16px 24px; }
.profile-subpage .account-summary { padding: 0; margin: 0; border: 0; background: transparent; }
.profile-subpage .account-summary__eyebrow { display: none; }
.profile-subpage .account-summary__identity { padding: 12px 0 20px; }
.profile-subpage .account-summary__copy strong { font-size: 16px; }
.profile-subpage .account-summary__copy small, .profile-subpage .account-summary__badge { font-size: 12px; }
.profile-subpage .account-capabilities { display: flex; flex-direction: column; gap: 0; }
.profile-subpage .account-capability { padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--profile-line); border-radius: 0; background: transparent; }
.profile-subpage .account-capability strong, .profile-subpage .account-capability small { font-size: 13px; white-space: normal; }
.profile-subpage .account-bind-button, .profile-subpage .account-summary__wechat { padding: 14px 0; border-color: var(--profile-line); }
.profile-subpage .account-bind-button > span, .profile-subpage .account-summary__wechat strong { font-size: 14px; }
.profile-subpage .account-bind-button small, .profile-subpage .account-summary__wechat span { font-size: 12px; color: #74777d; }
.profile-subpage .account-logout { min-height: 44px; font-size: 14px; color: #d1001f; }
.profile-subpage .settings-list { margin: 0; }
.profile-subpage .settings-row, .profile-subpage .toggle-row { padding: 14px 0; border-color: var(--profile-line); }
.profile-subpage .settings-row small, .profile-subpage .toggle-row small { font-size: 12px; white-space: normal; }
.profile-subpage .toggle-row i { flex-shrink: 0; }
.profile-back { flex: 0 0 44px; }
@media (prefers-reduced-motion: reduce) {
  .side-panel[data-panel="profile"] { animation: none; }
}
