/* June 9, 2025 profile layout. References and gaps: profile-sources.json. */
.profile-container { width: 970px; max-width: 100%; margin: 0 auto; }
.profile-header { display: flex; align-items: flex-start; gap: 34px; min-height: 128px; margin: 0 0 24px; }
.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  flex: 0 0 128px;
  background: var(--surface) url('/assets/icons/avatar-pending-dark.svg') center / contain no-repeat;
}
[data-theme='light'] .profile-avatar { background-image: url('/assets/icons/avatar-pending-light.svg'); }
.profile-header-details { padding-top: 18px; min-width: 0; }
.profile-header h1 { font-size: 28px; line-height: 35px; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.profile-username { font-size: 16px; line-height: 22px; color: var(--muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.profile-counts { display: flex; flex-wrap: wrap; gap: 24px; font-size: 16px; line-height: 22px; margin-top: 20px; }
.profile-counts strong { font-weight: 700; }
.profile-actions { margin-left: auto; align-self: flex-end; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.profile-actions button { border: 1px solid var(--input-border); border-radius: 8px; padding: 8px 16px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--text); background: none; white-space: nowrap; }
.profile-actions .profile-more { border: 0; padding: 4px; }
.icon-profile-more, .icon-profile-edit { background-image: url('/assets/icons/generic-dark.svg'); background-size: 200%; }
.icon-profile-more { width: 28px; height: 28px; background-size: 56px auto; background-position: 0 -616px; }
.icon-profile-edit { width: 16px; height: 16px; background-size: 32px auto; background-position: 0 -48px; }
[data-theme='light'] .icon-profile-more, [data-theme='light'] .icon-profile-edit { background-image: url('/assets/icons/generic-light.svg'); }
.profile-tabs { display: flex; height: 40px; background: var(--surface); margin-bottom: 8px; }
.profile-tabs [role='tab'] { width: 50%; border: 0; border-bottom: 4px solid transparent; background: none; padding: 8px; font-size: 16px; line-height: 20px; font-weight: 500; color: var(--muted); }
.profile-tabs [aria-selected='true'] { border-bottom-color: var(--text); color: var(--text); }
.profile-about-heading { display: flex; align-items: center; gap: 6px; }
.profile-about-heading button { display: inline-flex; align-items: center; justify-content: center; padding: 0; height: 24px; width: 20px; border: 0; background: none; }
.profile-description { font-size: 16px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 24px; margin: 16px 0 24px; }
.profile-report { text-align: right; padding-top: 10px; border-top: 1px solid var(--input-border); }
.profile-report button { background: none; border: 0; color: #ff3333; padding: 0; font-size: 12px; }
.profile-statistics { margin-top: 28px; }
.profile-statistics dl { display: flex; justify-content: space-around; gap: 24px; margin: 16px 0 0; padding: 20px; }
.profile-statistics dl > div { width: 50%; text-align: center; }
.profile-statistics dt { color: var(--muted); font-size: 16px; }
.profile-statistics dd { margin: 6px 0 0; font-size: 16px; }
.profile-experiences { min-height: 120px; }
.profile-description-form { margin: 12px 0 24px; }
.profile-description-form textarea { display: block; width: 100%; min-height: 100px; max-height: 400px; resize: vertical; border: 1px solid var(--muted); border-radius: 8px; background: #30323b; color: var(--text); padding: 10px 12px; font: 500 16px/22px 'Builder Sans', Arial, sans-serif; }
[data-theme='light'] .profile-description-form textarea { background: #f7f7f8; }
.profile-editor-hints { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; line-height: 16px; }
#profile-description-count { font-size: 10px; white-space: nowrap; }
.profile-editor-controls { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.profile-editor-controls button { min-width: 90px; min-height: 36px; border: 0; border-radius: 8px; padding: 6px 16px; background: #3b3e49; color: var(--text); font-size: 16px; font-weight: 700; }
.profile-editor-controls button:disabled { opacity: .5; }
[data-theme='light'] .profile-editor-controls button { background: #e3e5e8; }
@media (max-width: 700px) {
  .profile-header { gap: 16px; flex-wrap: wrap; }
  .profile-avatar { width: 96px; height: 96px; flex-basis: 96px; }
  .profile-header-details { flex: 1; padding-top: 0; }
  .profile-header h1 { font-size: 24px; line-height: 30px; }
  .profile-counts { gap: 8px 16px; font-size: 14px; margin-top: 12px; }
  .profile-actions { width: 100%; justify-content: flex-end; margin-bottom: 0; }
  .profile-actions button { font-size: 14px; }
}
/* Friends and Requests grids: original web screenshots dated February 7, 2025. */
.connections-container { max-width: 970px; margin: 0 auto; }
.connections-container h1 { font-size: 32px; line-height: 40px; margin: 0 0 16px; overflow-wrap: anywhere; }
.connection-tabs { display: flex; height: 40px; background: var(--surface); }
.connection-tabs a { flex: 1; text-align: center; padding: 8px; border-bottom: 4px solid transparent; }
.connection-tabs a[aria-current] { border-bottom-color: var(--text); font-weight: 700; }
.connections-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 12px; }
.connections-heading h2 { margin: 0; font-size: 20px; }
#connection-search { width: 300px; max-width: 60%; height: 36px; border: 1px solid var(--input-border); border-radius: 8px; color: var(--text); background: var(--surface); padding: 8px 12px; }
#connection-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 10px; }
.connection-card { background: var(--surface); min-width: 0; }
.connection-person { display: flex; gap: 12px; padding: 12px 16px; min-height: 120px; align-items: center; }
.connection-avatar { display: block; width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; background: var(--hover) url('/assets/icons/avatar-pending-dark.svg') center / contain no-repeat; }
[data-theme='light'] .connection-avatar { background-image: url('/assets/icons/avatar-pending-light.svg'); }
.connection-names { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; min-width: 0; }
.connection-names > span { color: var(--muted); font-size: 14px; }
.connection-request-controls { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--input-border); }
.connection-request-controls button { flex: 1; height: 36px; border-radius: 8px; border: 1px solid var(--input-border); color: var(--text); background: none; }
.connection-request-controls button:last-child { background: var(--text); color: var(--page); }
#connections-more { display: block; margin: 24px auto; padding: 8px 20px; color: var(--text); background: var(--surface); border: 1px solid var(--input-border); border-radius: 8px; }
@media(max-width:1000px) { #connection-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { #connection-list { grid-template-columns: 1fr; } .connection-tabs a { padding: 8px 4px; font-size: 14px; } }
.profile-counts a:hover { text-decoration: underline; }
.profile-menu-container { position: relative; }
#profile-menu { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 160px; padding: 6px 0; background: var(--surface); border: 1px solid var(--input-border); box-shadow: 0 1px 4px #1919194d; }
#profile-menu button { display: block; width: 100%; border: 0; border-radius: 0; text-align: left; padding: 8px 16px; font-weight: 400; }
#profile-menu button:hover { background: var(--hover); }
#profile-history { border-top: 1px solid var(--input-border); margin: 16px 0; padding-top: 12px; font-size: 12px; color: var(--muted); }
#profile-history summary { cursor: pointer; }
#profile-history ul { margin: 8px 0; padding-left: 20px; }
.profile-wearing { margin-top: 28px; }
.profile-container h2 { padding: 5px 0; }
.profile-wearing-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.profile-wearing-avatar { position: relative; background: var(--header) url('/assets/icons/avatar-pending-dark.svg') center / 160px no-repeat; }
[data-theme='light'] .profile-wearing-avatar { background-image: url('/assets/icons/avatar-pending-light.svg'); }
.profile-wearing-avatar button { position: absolute; right: 12px; top: 12px; width: 40px; height: 36px; padding: 0; border: 1px solid #b8b8b8; border-radius: 3px; background: #fff; color: #000; font-size: 16px; line-height: 22px; }
.profile-wearing-items { display: flex; flex-direction: column; justify-content: center; background: var(--surface); padding: 26px; gap: 8px; min-width: 0; }
#profile-worn-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 12px; }
#profile-worn-grid > a { display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
#profile-worn-grid img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #3b3e49; }
[data-theme='light'] #profile-worn-grid img { background: #d5d7dd; }
#profile-worn-pages { display: flex; justify-content: center; gap: 12px; }
#profile-worn-pages button { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid var(--text); background: transparent; cursor: pointer; }
#profile-worn-pages button[aria-current="true"] { background: var(--text); }
#profile-block-confirm { padding: 24px; }
#profile-social-status { min-height: 24px; }
@media(max-width:600px) { .profile-wearing-body { grid-template-columns: 1fr; } .profile-wearing-avatar { min-height: 250px; } }
.profile-report a { color: #ff3333; font-size: 12px; }
.report-container { max-width: 700px; margin: 0 auto; }
.report-container h1 { font-size: 32px; margin: 0 0 24px; }
.report-container h2 { font-size: 24px; margin: 0 0 40px; }
#report-form label { display: block; font-weight: 700; margin: 20px 0 12px; }
#report-form select, #report-form textarea { width: 100%; border: 1px solid var(--input-border); border-radius: 8px; background: var(--page); color: var(--text); padding: 12px; font: inherit; }
#report-form textarea { display: block; height: 100px; min-height: 80px; max-height: 400px; resize: vertical; }
#report-form small { display: block; margin-top: 8px; }
#report-form button { display: block; margin: 100px 0 24px auto; border: 0; border-radius: 8px; background: var(--surface); color: var(--text); padding: 12px 20px; font: inherit; font-weight: 700; }
#report-status { overflow-wrap: anywhere; }
#report-return { display: inline-block; margin-bottom: 24px; color: var(--muted); }
#connection-ignore-all { padding: 6px 16px; min-height: 36px; border: 1px solid var(--input-border); border-radius: 8px; color: var(--text); background: none; }

.profile-avatar, .connection-avatar { object-fit: contain; }
.profile-avatar[data-avatar-pending='false'], .connection-avatar[data-avatar-pending='false'] { background-image: none; }
.profile-wearing-avatar { background-image: none; }
[data-theme='light'] .profile-wearing-avatar { background-image: none; }
#profile-avatar-body { display: block; width: 100%; height: 300px; object-fit: contain; }

#profile-menu a { display: block; padding: 10px 16px; white-space: nowrap; }
#profile-menu a:hover { background: var(--hover); }




/* Friends heading and See All: April 26, 2025 profile capture, profile-sources.json.
   Avatar tiles reuse the existing 2025 Home component; exact profile tile spacing is unverified. */
.profile-friends-section { margin-top: 28px; }
#profile-friends-list { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; min-height: 120px; }
#profile-friends-status { color: var(--muted); }

.profile-header h1{display:flex;align-items:center;gap:4px}#profile-verified{width:28px;height:28px;flex:none}
