/* Mejoras de lectura para la ficha de cuenta, perfil y enlace de legado.
   Ninguna regla cambia lógica de usuario ni formularios. */
#modalVerCuenta.active {align-items:center!important; padding:20px!important;overflow-y:auto!important}
#modalVerCuenta .pc-account-modal {
  max-width:1060px!important;width:min(1060px,100%)!important;
  max-height:min(830px,92vh);margin:auto!important;gap:14px!important;min-height:0;
  display:grid!important;grid-template-columns:minmax(0,1.17fr) minmax(290px,.83fr);align-items:stretch
}
#modalVerCuenta :is(.pc-account-main,.pc-account-runs){min-width:0;min-height:0;max-width:none!important;margin:0!important;box-sizing:border-box}
#modalVerCuenta .pc-account-main{padding:24px!important;overflow-y:auto;max-height:inherit;background:#171b24!important;border-color:#373c48!important;border-radius:14px!important}
#modalVerCuenta .pc-account-runs{max-height:inherit!important;overflow-y:auto;flex:auto!important;background:#141920!important;border:1px solid #343c47!important;border-radius:14px!important;padding:22px!important}
.pc-account-modal-header{margin-bottom:20px!important;padding-bottom:18px!important;border-bottom:1px solid #323a46!important;gap:15px}
.pc-account-modal-header h2{font-size:clamp(1.25rem,2vw,1.8rem)!important;color:#f6f7f9!important;letter-spacing:-.04em;margin-top:6px!important}
.pc-account-kicker,.pc-account-small{color:#ffad79;font-size:.61rem;font-weight:850;letter-spacing:.16em;line-height:1.45}
.pc-account-identity{display:flex;align-items:center;gap:19px;padding:20px;border:1px solid #353d48;background:linear-gradient(135deg,#252c36,#1d232c);border-radius:12px;min-width:0}
.pc-account-avatar{width:92px;height:92px;flex:0 0 92px;border-radius:16px;background:linear-gradient(145deg,#69402f,#292e3a);border:2px solid #525663;display:grid;place-items:center;overflow:hidden;color:#ffd4b1;font-weight:900;font-size:1.75rem;letter-spacing:-.06em}
.pc-account-avatar img{width:100%;height:100%;object-fit:cover}
.pc-account-identity-copy{min-width:0;flex:1}
.pc-account-identity-copy h3{font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.12;letter-spacing:-.05em;overflow-wrap:anywhere;margin:5px 0 13px!important;color:#f8f8fb!important}
.pc-account-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pc-account-pills :is(.nationality-pill,.role-pill){font-size:.68rem!important;padding:5px 8px!important;border-radius:6px!important;white-space:normal}
.pc-account-state{font-size:.68rem;font-weight:750;border-radius:6px;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #405749;color:#8cdfae;background:#21362b}
.pc-account-state i{width:6px;height:6px;background:currentColor;border-radius:50%}
.pc-account-state.is-banned{border-color:#834c4c;background:#48272c;color:#ffb7b7}
.pc-account-description{margin-top:14px;border:1px solid #333945;border-radius:11px;padding:14px 17px;background:#191f28}
.pc-account-description p{font-size:.88rem;line-height:1.65;color:#c8cdd6;overflow-wrap:anywhere;margin:9px 0 0}
.pc-account-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 0}
.pc-account-figures>div{border:1px solid #383f4b;background:#202630;border-radius:10px;padding:13px 8px;text-align:center}
.pc-account-figures strong{display:block;color:#f9f8fa;font-size:1.45rem;letter-spacing:-.04em;line-height:1.1}
.pc-account-figures span{display:block;color:#aab1bd;font-size:.68rem;margin-top:5px;font-weight:700}
.pc-account-controls{border:1px solid #353c47;border-radius:11px;padding:17px;margin-top:14px;background:#1c222b}
.pc-account-panel-head{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.pc-account-panel-head h3{color:#f3f5f7;margin:0 0 4px!important;font-size:1rem!important}
.pc-account-panel-head p{margin:0;color:#a7b1bf;font-size:.73rem;line-height:1.4}
.pc-account-panel-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;background:#302a27;border:1px solid #69503d;color:#ffb782;border-radius:10px;font-size:1.2rem}
.pc-account-controls>.btn{width:100%;text-align:center;justify-content:center;min-height:39px}
.pc-account-role-editor label{display:block;margin-bottom:7px;color:#b2bcc9;font-size:.73rem;font-weight:750}
.pc-account-role-actions{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.pc-account-role-actions select{flex:1 1 180px;min-width:0;margin:0!important;min-height:42px}
.pc-account-role-actions button{flex:0 0 auto;min-height:42px}
.pc-runs-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:15px;border-bottom:1px solid #333b47;margin-bottom:13px}
#modalVerCuenta .pc-runs-head h3{font-size:1.2rem;color:#f5f6f9!important;border:0!important;padding:0!important;margin:5px 0 0!important;letter-spacing:-.03em}
.pc-runs-counter{background:#2a313d;border:1px solid #434a55;color:#e2e6ec;border-radius:8px;font-weight:850;padding:8px 12px;font-size:.82rem}
#modalVerCuenta .pc-account-run{cursor:default!important;margin:0 0 9px!important;transform:none!important;background:#1d2430!important;border:1px solid #353e4b!important;border-radius:10px!important;padding:14px!important;box-shadow:none!important}
.pc-run-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#modalVerCuenta .pc-run-top strong{margin:0;color:#f4f5f6!important;overflow-wrap:anywhere;font-size:.83rem;line-height:1.45}
.pc-run-top .completacion-estado{flex-shrink:0;font-size:.59rem!important;max-width:110px;white-space:normal;overflow-wrap:anywhere}
.pc-run-percent{font-size:.72rem;color:#b1bac7;margin-top:9px}
.pc-run-percent b{color:#f5c391}
#modalVerCuenta .pc-account-run p{margin:10px 0!important;font-size:.75rem!important;display:flex;gap:12px;flex-wrap:wrap;line-height:1.5}
#modalVerCuenta .pc-account-run a{color:#ffb782;text-decoration:none;font-weight:800}
#modalVerCuenta .pc-account-run .actions{margin-top:13px}
.pc-account-no-runs{text-align:center;padding:40px 18px;border:1px dashed #3a414c;color:#9fa8b5;border-radius:11px;line-height:1.65;font-size:.82rem}
.pc-account-no-runs span{display:block;color:#d3a17d;font-size:2rem;margin-bottom:6px}
@media(max-width:850px){
 #modalVerCuenta .pc-account-modal{max-height:none;grid-template-columns:1fr!important;max-width:600px!important;margin:auto!important}
 #modalVerCuenta .pc-account-main,#modalVerCuenta .pc-account-runs{max-height:none!important;overflow:visible!important}
 #modalVerCuenta.active{align-items:flex-start!important}
}
@media(max-width:530px){
 #modalVerCuenta.active{padding:10px!important}
 #modalVerCuenta .pc-account-main,#modalVerCuenta .pc-account-runs{padding:16px!important}
 .pc-account-identity{padding:13px;gap:12px;align-items:flex-start}
 .pc-account-avatar{width:65px;height:65px;flex-basis:65px;border-radius:11px;font-size:1.3rem}
 .pc-account-identity-copy h3{font-size:1.25rem}
 .pc-account-figures>div{padding:11px 5px}.pc-account-figures span{font-size:.58rem}
 .pc-account-role-actions button{width:100%}
}

/* Cabecera del perfil público y acciones — el contenido real y los tabs se conservan. */
.pc-profile-heading{margin:5px 0 19px;padding-left:2px}
.pc-profile-heading>span,.pc-profile-overline,.pc-profile-actions-label{color:#ffae7b;font-weight:850;font-size:.64rem;letter-spacing:.17em}
.pc-profile-heading h2{color:#f7f7fb;font-size:clamp(1.9rem,3vw,2.6rem);letter-spacing:-.065em;line-height:1.15;margin:6px 0!important}
.pc-profile-heading p{color:#aeb5c1;font-size:.87rem;margin:5px 0 0}
main>.profile-card{padding:25px!important;max-width:none;background:linear-gradient(125deg,#232a34,#171c25) !important;border-color:#38404d!important;border-radius:14px!important}
main>.profile-card .profile-header{display:grid;grid-template-columns:116px minmax(0,1fr) minmax(230px,260px);align-items:center;gap:24px;text-align:left}
main>.profile-card .profile-avatar{width:116px;height:116px;border:3px solid #697181!important;background:#252b34!important;box-shadow:0 9px 23px rgba(0,0,0,.22)}
main>.profile-card .profile-info{min-width:0;text-align:left}
main>.profile-card .profile-username{margin:7px 0 10px!important;font-size:clamp(1.5rem,2.6vw,2.25rem)!important}
main>.profile-card .profile-role{margin:0!important}
main>.profile-card .profile-description{margin:13px 0 0;max-width:580px;line-height:1.55;font-size:.87rem}
main>.profile-card .pc-profile-country{margin-top:10px}
main>.profile-card .profile-actions{border-left:1px solid #3b4450;padding-left:21px;justify-content:flex-start;display:grid;grid-template-columns:1fr 1fr;gap:7px;align-self:stretch;align-content:center}
main>.profile-card .pc-profile-actions-label{grid-column:1/-1;margin-bottom:4px}
main>.profile-card .profile-actions .btn{padding:9px 8px!important;font-size:.68rem!important;white-space:normal;line-height:1.3;text-align:center}
main>.profile-card .profile-actions .btn:last-child{grid-column:1/-1}
main>.tabs{gap:9px!important;border-bottom-color:#343d49!important}
main>.tabs .tab{border-radius:7px 7px 0 0!important}
@media(max-width:920px){
 main>.profile-card .profile-header{grid-template-columns:100px minmax(0,1fr)}
 main>.profile-card .profile-avatar{width:100px;height:100px}
 main>.profile-card .profile-actions{grid-column:1/-1;border-left:0;border-top:1px solid #37404c;padding:17px 0 0;grid-template-columns:repeat(3,minmax(0,1fr))}
 main>.profile-card .pc-profile-actions-label{grid-column:1/-1}
 main>.profile-card .profile-actions .btn:last-child{grid-column:auto}
}
@media(max-width:520px){
 main>.profile-card{padding:17px!important}
 main>.profile-card .profile-header{grid-template-columns:66px minmax(0,1fr);gap:11px;text-align:left}
 main>.profile-card .profile-avatar{width:65px;height:65px;font-size:1.4rem}
 main>.profile-card .profile-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 main>.profile-card .profile-actions .btn{min-height:43px}
 main>.profile-card .profile-username{font-size:1.25rem!important}
}

/* Acceso secreto de baja visibilidad, accesible por teclado. */
.pc-secret-corner{margin-top:19px;display:flex;justify-content:flex-end;align-items:center;height:28px}
.pc-secret-glyph{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:var(--text-dim);text-decoration:none;opacity:.17;font-size:1.2rem;transition:opacity .2s ease,transform .2s ease,background .2s ease}
.pc-secret-glyph:hover,.pc-secret-glyph:focus-visible{opacity:1;color:var(--accent);background:var(--bg-card);transform:rotate(-16deg);outline:1px solid var(--accent)}
#modalVerCuenta .pc-account-modal-header .close-modal{
  position:static!important;display:grid;place-items:center;flex:0 0 38px;
  width:38px!important;height:38px!important;padding:0!important;
  background:#272e39!important;border:1px solid #434a57!important;border-radius:8px!important;
  color:#cdd3dc!important;font-size:1.3rem!important;cursor:pointer;box-shadow:none!important;
}
#modalVerCuenta .pc-account-modal-header .close-modal:hover{background:#393c45!important;border-color:#d89a6b!important;color:#fff!important}
html[data-pc-theme="classic"] #modalVerCuenta .pc-account-modal-header .close-modal{background:#424442!important;border-color:#6b6654!important;border-radius:2px!important}
