.profile-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px;align-items:start;width:100%;max-width:1100px;min-width:0}
.profile-card{width:100%;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:24px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;box-sizing:border-box}
.profile-card h2{margin:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.profile-card label{display:grid;gap:8px;font-size:14px;font-weight:650;min-width:0}
.profile-card input:not([type=file]){width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid #3d525a;border-radius:9px;background:#17262c;color:var(--text);font:inherit;font-weight:400}
.profile-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.profile-photo{display:flex;align-items:center;flex-wrap:wrap;gap:18px;min-width:0}
.profile-avatar{width:100px;height:100px;flex-shrink:0;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#243b29;border:2px solid var(--green);font-size:36px;font-weight:800;color:var(--green)}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-photo>div:last-child{display:grid;gap:9px;justify-items:start;min-width:0}
.profile-card .profile-photo-label{position:relative;display:flex;cursor:pointer;min-height:44px;align-items:center;max-width:100%;white-space:normal;text-align:center;justify-content:center}
.profile-card .profile-photo-label input{position:absolute;width:100%;max-width:100%;min-width:0;height:100%;inset:0;opacity:0;cursor:pointer}
.profile-photo-label:focus-within{outline:2px solid var(--green);outline-offset:3px}
.profile-photo small,.profile-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:0;overflow-wrap:anywhere}
.profile-status{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.profile-status:empty,.profile-hint:empty{display:none}
.profile-status[role=alert]{color:#ff9b9e}
.profile-card button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.profile-link img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid var(--green);flex-shrink:0}
@media(max-width:900px){.profile-layout{grid-template-columns:minmax(0,1fr);gap:16px}.profile-card{padding:18px}.profile-card input:not([type=file]){font-size:16px}.profile-photo{gap:14px}.profile-avatar{width:84px;height:84px}.profile-link img{width:34px;height:34px}}
