/* TIPNIX profile surfaces. The application intentionally stays light. */
.tn-account-avatar,
.tnx-rank-avatar,
.tnx-profile-avatar {
    overflow: hidden;
}
.tn-account-avatar img,
.tnx-rank-avatar img,
.tnx-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.tnx-profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #17191c;
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(127,127,127,.18);
}
.tnx-profile-avatar-md { width: 48px; height: 48px; font-size: 19px; }
.tnx-profile-avatar-xl { width: 112px; height: 112px; font-size: 42px; }
.tnx-profile-hero {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) minmax(220px,auto);
    align-items: center;
    gap: 24px;
    padding: 28px;
}
.tnx-profile-hero h1,
.tnx-member-profile h1 { margin: 0 0 7px; }
.tnx-profile-hero p,
.tnx-member-profile p { margin: 0; color: var(--tnx-muted); }
.tnx-avatar-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}
.tnx-avatar-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.tnx-avatar-form label { margin: 0; text-align: center; }
.tnx-avatar-form small { grid-column: 1/-1; margin: 0; }
.tnx-avatar-remove { grid-column: 3; justify-self: end; margin-top: -15px; }
.tnx-account-settings-grid > div { min-width: 0; }
.tnx-account-settings-grid .card { height: auto; }
.tnx-account-group { color: inherit; text-decoration: none; }
.tnx-account-danger { margin-top: 22px; }
.tnx-member-profile {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 15px;
    padding: 32px;
}
.tnx-member-stats {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}
.tnx-member-stats .card { min-width: 0; }
.tnx-profile-privacy-note { color: var(--tnx-muted); font-size: 13px; text-align: center; }
.tnx-back-link {
    display: inline-flex;
    margin: 4px 0 12px;
    color: var(--tnx-muted);
    font-weight: 700;
    text-decoration: none;
}
.tnx-ranking-row { color: inherit; text-decoration: none; }
.tnx-ranking-row:hover { background: var(--tnx-soft); }

@media (max-width: 760px) {
    .tnx-profile-hero { grid-template-columns: auto minmax(0,1fr); padding: 20px; gap: 16px; }
    .tnx-profile-avatar-xl { width: 82px; height: 82px; font-size: 31px; }
    .tnx-avatar-form { grid-column: 1/-1; }
    .tnx-avatar-remove { grid-column: 1/-1; justify-self: start; margin-top: -7px; }
    .tnx-member-profile { align-items: flex-start; padding: 22px; }
    .tnx-member-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
