/* Profile usability correction: clear touch targets and structured personnel facts. */
.profile-hero{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:start;
 gap:24px;
}
.profile-identity{
 position:relative;
 z-index:1;
 display:grid;
 grid-template-columns:auto minmax(0,1fr);
 align-items:center;
 gap:18px;
 min-width:0;
}
.profile-name-block{min-width:0}
.profile-name-block h1{overflow-wrap:anywhere}
.profile-name-block .subtle{line-height:1.7}
.profile-access{
 min-width:140px;
 text-align:left;
 border-color:#4b535c;
 box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.profile-access .classification{display:block;margin-bottom:4px}
.profile-access>div{font-size:12px;text-transform:none}
.profile-record-strip strong{overflow-wrap:anywhere}

.profile-tabs{
 position:relative;
 z-index:5;
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:1px;
 border-top:1px solid #303741;
 border-bottom:1px solid #303741;
 background:#303741;
}
.profile-tab{
 appearance:none;
 -webkit-appearance:none;
 position:relative;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 min-width:0;
 min-height:62px;
 padding:12px 15px;
 border:0;
 border-radius:0;
 background:#0f141a;
 color:#9da4ab;
 text-align:left;
 cursor:pointer;
 touch-action:manipulation;
 user-select:none;
 -webkit-tap-highlight-color:rgba(197,166,96,.16);
}
.profile-tab:hover,.profile-tab:focus-visible{background:#171d24;color:#eee8db}
.profile-tab:focus-visible{outline:2px solid var(--polish-gold);outline-offset:-2px}
.profile-tab span{font-size:13px;white-space:nowrap}
.profile-tab strong{color:#b6bdc4;font:500 12px var(--mono);white-space:nowrap}
.profile-tab.active{background:linear-gradient(180deg,#1b2027,#151a20);color:var(--polish-gold-soft)}
.profile-tab.active strong{color:var(--polish-gold-soft)}
.profile-tab.active:after{
 content:"";
 position:absolute;
 left:12px;
 right:12px;
 bottom:0;
 height:2px;
 background:var(--polish-gold);
}
.profile-tab-panel{position:relative;z-index:1;background:#0e1319}

.profile-overview{
 display:grid;
 grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
 gap:1px;
 background:#303741;
}
.identity-overview-card,.visibility-overview-card{padding:24px;background:#10151b}
.profile-section-heading{
 display:flex;
 align-items:flex-end;
 justify-content:space-between;
 gap:16px;
 margin-bottom:18px;
 padding-bottom:13px;
 border-bottom:1px solid #2c343d;
}
.profile-section-heading span{display:block;color:#8a929a;font:9px var(--mono);letter-spacing:.14em}
.profile-section-heading h2{margin:4px 0 0;font:600 21px var(--serif);letter-spacing:.04em}
.profile-section-heading small{max-width:240px;color:#737c85;font-size:11px;text-align:right}
.identity-facts{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
}
.identity-fact{
 min-width:0;
 padding:14px 15px;
 border:1px solid #303843;
 background:linear-gradient(145deg,#151b22,#0d1217);
}
.identity-fact span{display:block;color:#7f8891;font-size:11px}
.identity-fact strong{
 display:block;
 margin-top:7px;
 color:#e3ded2;
 font:500 16px/1.55 var(--serif);
 overflow-wrap:anywhere;
}
.identity-fact small{display:block;margin-top:5px;color:#737c85;font-size:10px;line-height:1.55}
.profile-signature-card{
 margin-top:12px;
 padding:15px 16px;
 border-left:2px solid #77663d;
 background:#171712;
}
.profile-signature-card span{color:#9c8958;font:9px var(--mono);letter-spacing:.13em}
.profile-signature-card p{margin:7px 0 0;color:#d2cdc2;line-height:1.8}
.visibility-overview-card .stats-grid{margin-top:4px}
.visibility-overview-card .profile-visibility{margin-top:12px;line-height:1.75}

@media(max-width:900px){
 .profile-overview{grid-template-columns:1fr}
}

@media(max-width:700px){
 .profile-hero{
  grid-template-columns:1fr;
  gap:16px;
  padding:18px;
 }
 .profile-identity{
  grid-template-columns:64px minmax(0,1fr);
  align-items:start;
  gap:14px;
 }
 .profile-hero .avatar{width:64px;height:64px;font-size:24px}
 .profile-name-block h1{font-size:30px;line-height:1.2}
 .profile-name-block .workbench-kicker{font-size:8px;letter-spacing:.11em}
 .profile-name-block .badges{margin-top:10px}
 .profile-name-block .relation-line{margin:10px 0 0;line-height:1.65}
 .profile-access{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-width:0;
  padding:11px 13px;
 }
 .profile-access .classification{margin:0}
 .profile-access>div{margin:0}
 .profile-access .btn{margin-left:auto}
 .profile-record-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .profile-record-strip div{min-width:0;padding:10px 11px}
 .profile-record-strip span{font-size:8px}
 .profile-record-strip strong{font-size:10px;line-height:1.45}
 .profile-tabs{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
 }
 .profile-tab:first-child{grid-column:1/-1}
 .profile-tab{min-height:56px;padding:10px 13px}
 .profile-tab span{font-size:13px}
 .profile-tab strong{font-size:11px}
 .identity-overview-card,.visibility-overview-card{padding:18px}
 .profile-section-heading{display:block}
 .profile-section-heading small{display:block;max-width:none;margin-top:6px;text-align:left}
 .identity-facts{grid-template-columns:1fr}
 .identity-fact{padding:13px 14px}
 .identity-fact strong{font-size:15px}
 .profile-tab-body .panel-head{display:block}
 .profile-tab-body .panel-head .subtle{display:block;margin-top:5px;line-height:1.55}
}

@media(max-width:390px){
 .profile-identity{grid-template-columns:56px minmax(0,1fr)}
 .profile-hero .avatar{width:56px;height:56px;font-size:21px}
 .profile-name-block h1{font-size:26px}
 .profile-record-strip{grid-template-columns:1fr!important}
 .profile-tab{min-height:54px}
}
