/* A single clean agent-details surface, without repeated password panels. */
.bo858-profile{display:grid;gap:17px;min-width:0;color:var(--text)}
.bo858-profile-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:3px 1px 0;flex-wrap:wrap}
.bo858-profile-head h2{font-size:1.4rem;letter-spacing:-.025em;margin:0 0 3px;color:var(--text)}
.bo858-profile-head span:not(.status-chip){color:var(--muted);font-size:.82rem}
.bo858-profile-actions{display:flex;gap:9px;flex-wrap:wrap}
.bo858-profile-actions .btn{min-height:42px}
.bo858-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(255px,.9fr);gap:13px;align-items:start}
.bo858-profile-panel{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:16px;min-width:0}
.bo858-profile-panel h3,.bo858-edit-section h3{margin:0 0 10px;font-size:.96rem;color:var(--text)}
.bo858-detail-row{display:grid;grid-template-columns:minmax(120px,38%) minmax(0,1fr);gap:12px;padding:11px 0;border-bottom:1px solid var(--line);align-items:start}
.bo858-detail-row:last-child{border-bottom:0}
.bo858-detail-row>span{font-size:.8rem;color:var(--muted)}
.bo858-detail-row>strong{font-size:.85rem;font-weight:650;color:var(--text);overflow-wrap:anywhere;white-space:pre-wrap}
.bo858-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);gap:8px;padding-top:15px;margin-top:13px}
.bo858-summary div{display:grid;gap:4px}.bo858-summary strong{font-size:1.2rem;color:var(--text)}.bo858-summary span{font-size:.75rem;color:var(--muted)}
.bo858-profile-footer{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:flex-end}
.bo858-profile-footer .btn{background:transparent;border:1px solid var(--danger);color:var(--danger);box-shadow:none}
.bo858-profile-footer .btn:hover{background:var(--danger-soft)}
.bo858-edit-form{display:grid;gap:20px;min-width:0}
.bo858-edit-section{padding:17px;border-radius:13px;border:1px solid var(--line);background:var(--surface);min-width:0}
.bo858-edit-section .form-grid{margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.bo858-edit-section label{display:block;min-width:0;color:var(--text);font-size:.83rem;font-weight:660}
.bo858-edit-section input,.bo858-edit-section textarea{width:100%;max-width:100%;margin-top:6px}
.bo858-delete-form p{font-size:.9rem;line-height:1.5;color:var(--text)}
.bo858-edit-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.bo858-edit-actions .btn{min-width:120px}
@media(max-width:780px){
 .bo858-profile-grid{grid-template-columns:minmax(0,1fr)}
 .bo858-profile-head h2{font-size:1.18rem}
 .bo858-profile-actions{display:grid;grid-template-columns:1fr 1fr}
 .bo858-profile-actions .btn{min-height:44px;min-width:0;width:100%}
 .bo858-profile-panel{padding:14px}
 .bo858-edit-section{padding:13px}
 .bo858-edit-section .form-grid{grid-template-columns:minmax(0,1fr)!important}
 .bo858-edit-section .form-grid>*{grid-column:1/-1!important}
 .bo858-profile-footer .btn{width:100%;min-height:43px}
 .bo858-edit-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px}
 .bo858-edit-actions .btn{min-width:0;width:100%}
}
@media(max-width:390px){.bo858-detail-row{grid-template-columns:minmax(0,1fr);gap:3px}}
.bo858-share{margin-top:16px;border-radius:9px;font-size:.81rem;min-height:38px}
