/* «Профиль» (profile.js, TNA-51) and the «me» button in the sidebar. */

.pf { max-width: 1080px; }
.pf-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.pf-title { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); }
.pf-who p { margin: 4px 0 0; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pf-grid .ct-card h3 { margin-top: 0; }
.pf-data { grid-row: span 2; }

.pf-ava {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-weak); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 26px;
}
.pf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.pf-photo-row .pf-ava { width: 96px; height: 96px; font-size: 34px; }
.pf-photo-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.pf-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 6px; font-size: 13.5px; }
.pf-dl dt { color: var(--subtle); }
.pf-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pf-login form { margin-top: 12px; }
#pf-gen-out code { user-select: all; }

.pf-acc-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-acc-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pf-acc-list li > span:first-child { flex: 1; color: var(--ink); }

/* Framing window for a photo (avatar-crop.js). */
.av-crop { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.av-stage { width: 280px; height: 280px; border-radius: 50%; overflow: hidden; background: var(--elevated); box-shadow: 0 0 0 4px var(--accent-weak); touch-action: none; }
.av-stage canvas { display: block; cursor: grab; }
.av-stage canvas:active { cursor: grabbing; }
.av-zoom { display: flex; align-items: center; gap: 10px; width: 280px; font-size: 13px; color: var(--subtle); }
.av-zoom input { flex: 1; }

/* Sidebar: me. */
.me-chip {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 4px; margin: 0;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.me-chip:hover { background: rgba(255, 255, 255, .08); }
.me-ava {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 600;
}
.me-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-txt b { color: rgba(255, 255, 255, .9); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer .me-txt .muted { font-size: 11.5px; }

@media (max-width: 860px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-data { grid-row: auto; }
  .pf-head .pf-ava { width: 56px; height: 56px; font-size: 20px; }
  .pf-title { font-size: 24px; }
}
