.profile-photo-card { margin: 0 0 20px; padding: 18px; border: 1px solid #d9dcd2; border-radius: 22px; background: #fff; color: #1b2017; }
.profile-photo-card *, .profile-photo-dialog * { box-sizing: border-box; min-width: 0; }
.profile-photo-card[hidden], .profile-photo-card [hidden] { display: none !important; }
.profile-photo-card button { font: inherit; cursor: pointer; touch-action: manipulation; }
.profile-photo-card button:disabled { cursor: default; opacity: .55; }
.profile-photo-card button:focus-visible { outline: 3px solid #69871b; outline-offset: 4px; }
.profile-photo-card .profile-photo-open { display: flex; align-items: center; gap: 18px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.profile-photo-avatar, .profile-photo-preview { position: relative; display: grid; place-items: center; flex-shrink: 0; background: #edf1e4; color: #506d14; border-radius: 50%; }
.profile-photo-avatar { width: 68px; height: 68px; }
.profile-photo-avatar img, .profile-photo-preview img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-photo-avatar [data-profile-placeholder], .profile-photo-preview [data-profile-preview-placeholder] { font-size: 0; width: 55%; height: 55%; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7' r='5'/%3E%3Cpath d='M2 24v-3a10 10 0 0 1 20 0v3Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.profile-photo-camera { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; background: #d7ff3f; color: #1b2017; font-weight: 800; font-size: 19px; line-height: 1; }
.profile-photo-account { display: grid; gap: 3px; line-height: 1.4; text-align: left; }
.profile-photo-account strong { overflow-wrap: anywhere; font-size: 1rem; }
.profile-photo-account > span { font-size: .87rem; color: #686d61; }
.profile-photo-account .profile-photo-link { color: #4c6810; font-weight: 700; }
.profile-photo-status { margin: 12px 0 0; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.profile-photo-status:empty { display: none; }
.profile-photo-card .profile-photo-retry { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #4c6810; text-decoration: underline; }
.profile-photo-dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 26px; border: 1px solid #d9dcd2; border-radius: 24px; background: #fff; color: #1b2017; overflow-y: auto; box-shadow: 0 20px 70px #0003; }
.profile-photo-dialog::backdrop { background: #1119; }
.profile-photo-dialog h3 { margin: 0 0 10px; font-size: 1.5rem; text-transform: none; letter-spacing: -.03em; }
.profile-photo-dialog > p { line-height: 1.5; font-size: .9rem; }
.profile-photo-preview { width: 168px; height: 168px; margin: 24px auto; }
.profile-photo-dialog button { min-height: 48px; padding: 12px 16px; border: 1px solid #cbd0c4; border-radius: 13px; background: #fff; color: #1b2017; font-weight: 700; line-height: 1.3; }
.profile-photo-dialog .profile-photo-choose { width: 100%; }
.profile-photo-dialog .profile-photo-hint { margin: 10px 0; color: #686d61; text-align: center; font-size: .8rem; }
.profile-photo-actions { display: flex; gap: 10px; margin-top: 20px; }
.profile-photo-actions button { flex: 1; }
.profile-photo-dialog .profile-photo-save { background: #d7ff3f; border-color: #1b2017; }
.profile-photo-dialog .profile-photo-remove { display: block; margin: 12px auto 0; border-color: transparent; color: #ab2c23; }
.profile-photo-dialog .profile-photo-danger { color: #ab2c23; border-color: #ddaaa7; }
.profile-photo-confirm { padding: 14px; margin-top: 16px; border: 1px solid #ecd0ce; border-radius: 14px; background: #fff9f8; font-size: .9rem; }
.profile-photo-confirm p { margin: 0; }
@media (max-width: 480px) {
  .profile-photo-card { padding: 16px; }
  .profile-photo-card .profile-photo-open { gap: 14px; }
  .profile-photo-avatar { width: 60px; height: 60px; }
  .profile-photo-dialog { padding: 20px; }
}
