
.sg-profile{max-width:800px;margin:0;color:var(--sg-text,#17243b);font-size:14px;line-height:1.5}.sg-profile *{box-sizing:border-box}.sg-profile button,.sg-profile input,.sg-profile select{font:inherit}.sg-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e4ebf1}.sg-profile-head h3{margin:0;font-size:24px;line-height:1.35;font-weight:600}.sg-profile-head p{margin:4px 0 0;color:var(--sg-text-muted,#647f9d);font-size:13px;line-height:1.5}.sg-profile-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;border:1px solid #0b969a;border-radius:9px;background:#fff;color:#087f83;padding:9px 14px;font-size:14px;font-weight:600;cursor:pointer}.sg-profile-button svg{width:18px;height:18px}.sg-profile-button.primary{border-color:#078b90;background:#078b90;color:#fff}.sg-profile-button.danger{border-color:#e35d66;color:#c73e49}.sg-profile-button:disabled{cursor:not-allowed;opacity:.5}.sg-profile :focus-visible{outline:3px solid #087c80;outline-offset:2px}
.sg-profile-identity{display:flex;align-items:center;gap:16px;padding:18px 0}.sg-profile-avatar{display:grid;place-items:center;flex:none;width:72px;height:72px;border-radius:50%;overflow:hidden;background:#e4f6f5;color:#087f83;font-size:24px;font-weight:700}.sg-profile-avatar img{width:100%;height:100%;object-fit:cover;transform:translate(var(--photo-x,0),var(--photo-y,0)) scale(var(--photo-zoom,1))}.sg-profile-identity strong{display:block;font-size:18px;font-weight:600}.sg-profile-identity small{display:block;margin-top:4px;color:var(--sg-text-muted,#647f9d);font-size:13px}
.sg-profile-section{padding:0 0 20px}.sg-profile-section h4{margin:0;padding:12px 0 10px;border-bottom:1px solid #e4ebf1;font-size:16px}.sg-profile-view-row{display:grid;grid-template-columns:minmax(140px,34%) minmax(0,1fr);gap:18px;padding:13px 0;border-bottom:1px solid #edf1f5}.sg-profile-view-row dt{color:#526b87}.sg-profile-view-row dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}.sg-profile-empty{color:#8292a7}.sg-profile-banner{margin:16px 0 0;border-radius:9px;padding:11px 13px;background:#eef8f8;color:#176d70;line-height:1.45}.sg-profile-banner.error{background:#fff2f2;color:#a92937}.sg-profile-loading{display:grid;place-items:center;min-height:260px;color:#647f9d}.sg-profile-spinner{width:24px;height:24px;margin-bottom:10px;border:3px solid #d7e4e9;border-top-color:#07989c;border-radius:50%;animation:sg-profile-spin .8s linear infinite}@keyframes sg-profile-spin{to{transform:rotate(360deg)}}
.sg-profile-photo-edit{display:flex;align-items:center;gap:16px;padding:18px 0}.sg-profile-photo-actions{display:flex;flex-wrap:wrap;gap:8px}.sg-profile-photo-actions input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sg-profile-photo-tools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;width:100%;margin:0 0 18px;padding:14px;border:1px solid #dce6ed;border-radius:10px;background:#f8fafb}.sg-profile-photo-tools label{display:grid;gap:6px;color:#526b87;font-size:13px}.sg-profile-photo-tools input{width:100%}
.sg-profile-form-section{margin-top:18px}.sg-profile-form-section>h4{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #e4ebf1;font-size:16px}.sg-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}.sg-profile-field{display:grid;align-content:start;gap:6px;min-width:0}.sg-profile-field.full{grid-column:1/-1}.sg-profile-field>span{font-size:13px;font-weight:650}.sg-profile-field small{color:#647f9d;line-height:1.35}.sg-profile-field input,.sg-profile-field select{width:100%;min-height:44px;border:1px solid #cbdde3;border-radius:8px;background:#fff;color:#17243b;padding:9px 11px;font-size:16px}.sg-profile-field input:disabled,.sg-profile-field select:disabled{background:#f2f5f7;color:#64748b}.sg-profile-field [aria-invalid=true]{border-color:#c93643}.sg-profile-field-error{min-height:17px;color:#b42331;font-size:12px}.sg-profile-phone{display:grid;grid-template-columns:minmax(150px,.42fr) minmax(0,1fr);gap:8px}.sg-profile-check{display:flex;align-items:flex-start;gap:9px;min-height:44px;padding:10px 0;cursor:pointer}.sg-profile-check input{width:18px;height:18px;margin:2px 0 0;accent-color:#078b90}.sg-profile-form-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:24px -4px -4px;padding:14px 4px 4px;background:linear-gradient(transparent,#fff 18%,#fff)}.sg-profile-status{flex:1;min-width:0;color:#087f83;line-height:1.4}.sg-profile-status.error{color:#b42331}.sg-profile-readonly-note{margin-top:14px;color:#647f9d;line-height:1.5}
@media(max-width:1100px){.sg-profile{max-width:none}.sg-profile-head h3{font-size:21px}.sg-profile-form-actions{bottom:calc(70px + env(safe-area-inset-bottom));padding-bottom:8px}}
@media(max-width:680px){.sg-profile-head{align-items:center}.sg-profile-head p{font-size:14px}.sg-profile-head .sg-profile-button{flex:none;padding-inline:12px}.sg-profile-identity{gap:14px}.sg-profile-avatar{width:72px;height:72px;font-size:24px}.sg-profile-view-row{grid-template-columns:1fr;gap:5px}.sg-profile-grid{grid-template-columns:1fr}.sg-profile-field.full{grid-column:auto}.sg-profile-phone{grid-template-columns:1fr}.sg-profile-photo-edit{align-items:flex-start}.sg-profile-photo-tools{grid-template-columns:1fr}.sg-profile-form-actions{flex-wrap:wrap}.sg-profile-status{flex-basis:100%;order:-1}.sg-profile-form-actions .sg-profile-button{flex:1;min-width:120px}}
