.eco-roles167{max-width:1480px;margin:0 auto;padding:4px 2px 30px;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#0f172a}.eco-roles167 *{box-sizing:border-box}.eco-roles167__head{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #dbeafe;border-radius:24px;padding:18px 20px;margin-bottom:14px;box-shadow:0 10px 28px rgba(15,23,42,.05)}.eco-roles167__head>div{flex:1}.eco-roles167__head span{display:block;color:#2563eb;font-size:11px;font-weight:1000;text-transform:uppercase;letter-spacing:.08em}.eco-roles167__head h2{margin:3px 0 4px;font-size:26px;letter-spacing:-.03em}.eco-roles167__head p{margin:0;color:#64748b;font-size:13px;font-weight:750}.eco-roles167__back,.eco-roles167__new{border:0;border-radius:14px;padding:11px 14px;font-weight:950;cursor:pointer}.eco-roles167__back{background:#f1f5f9;color:#475569}.eco-roles167__new{background:#2563eb;color:#fff}.eco-roles167__layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(420px,1.25fr) minmax(260px,.75fr);gap:14px;min-height:650px}.eco-roles167__users,.eco-roles167__editor,.eco-roles167__result{background:#fff;border:1px solid #e2e8f0;border-radius:24px;box-shadow:0 10px 28px rgba(15,23,42,.045);overflow:hidden}.eco-roles167__users{padding:14px;display:flex;flex-direction:column}.eco-roles167__search{height:46px;display:flex;align-items:center;gap:8px;border:1px solid #cbd5e1;border-radius:14px;padding:0 12px;background:#f8fafc}.eco-roles167__search input{border:0!important;outline:0!important;background:transparent!important;width:100%;font-weight:800;color:#0f172a;box-shadow:none!important}.eco-roles167__list{display:grid;gap:7px;margin-top:12px;overflow:auto;padding-right:2px}.eco-roles167__user{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;border:1px solid transparent;background:#fff;border-radius:15px;padding:10px;text-align:left;cursor:pointer}.eco-roles167__user:hover,.eco-roles167__user.is-active{background:#eff6ff;border-color:#bfdbfe}.eco-roles167__avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#1d4ed8;font-size:15px;font-weight:1000}.eco-roles167__user strong{display:block;font-size:13px}.eco-roles167__user small{display:block;color:#64748b;font-size:10px;font-weight:800;margin-top:3px}.eco-roles167__user em{font-style:normal;border-radius:999px;padding:5px 7px;background:#dcfce7;color:#166534;font-size:9px;font-weight:950}.eco-roles167__editor{padding:18px}.eco-roles167__profile{display:flex;align-items:center;gap:13px}.eco-roles167__avatar--large{width:58px;height:58px;font-size:20px}.eco-roles167__profile small{color:#64748b;font-weight:850}.eco-roles167__profile h3{margin:2px 0;font-size:20px}.eco-roles167__profile p{margin:0;color:#64748b;font-size:12px;font-weight:750}.eco-roles167__tabs{display:flex;border-bottom:1px solid #e2e8f0;margin:18px 0 14px}.eco-roles167__tabs button{border:0;background:none;padding:10px 15px;font-weight:950;color:#64748b;cursor:pointer;border-bottom:3px solid transparent}.eco-roles167__tabs button.is-active{color:#2563eb;border-color:#2563eb}.eco-roles167__tab{display:none}.eco-roles167__tab.is-active{display:block}.eco-roles167__assigned{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.eco-roles167__assigned small{font-weight:900;color:#64748b}.eco-roles167__assigned>div,.eco-roles167__result-chips,.eco-roles167__success>div{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.eco-roles167__chip{border-radius:999px;padding:6px 9px;background:#e0f2fe;color:#075985;font-size:10px;font-weight:950}.eco-roles167 h4{margin:17px 0 9px;font-size:12px;text-transform:uppercase;color:#64748b;letter-spacing:.05em}.eco-roles167__choices{display:grid;gap:8px}.eco-roles167__choice{display:grid;grid-template-columns:22px 34px 1fr 22px;align-items:center;gap:9px;border:1px solid #e2e8f0;border-radius:15px;padding:11px;cursor:pointer;background:#fff}.eco-roles167__choice:has(input:checked){border-color:var(--role-tone);background:color-mix(in srgb,var(--role-tone) 7%,white)}.eco-roles167__choice input{width:18px;height:18px;accent-color:var(--role-tone)}.eco-roles167__choice>span{font-size:22px}.eco-roles167__choice strong{display:block;font-size:13px}.eco-roles167__choice small{display:block;color:#64748b;font-size:10px;font-weight:750;margin-top:2px}.eco-roles167__choice i{width:17px;height:17px;border:2px solid #cbd5e1;border-radius:50%}.eco-roles167__choice:has(input:checked) i{background:var(--role-tone);border-color:var(--role-tone);box-shadow:inset 0 0 0 4px #fff}.eco-roles167__agency{display:grid;gap:6px;margin-top:14px}.eco-roles167__agency span{font-size:11px;font-weight:950;color:#64748b}.eco-roles167__agency select,.eco-roles167__modal select,.eco-roles167__modal input{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:13px;padding:9px 12px;background:#fff;color:#0f172a;font-weight:800}.eco-roles167__permission-list{display:grid;gap:8px}.eco-roles167__permission{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:11px}.eco-roles167__permission b{color:#16a34a}.eco-roles167__permission strong{display:block;font-size:12px}.eco-roles167__permission small{display:block;color:#64748b;font-weight:750;margin-top:2px}.eco-roles167__note,.eco-roles167__tip{margin-top:13px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:14px;padding:11px;font-size:11px;font-weight:850;line-height:1.4}.eco-roles167__actions{display:flex;align-items:center;gap:10px;margin-top:17px}.eco-roles167__actions button{border:0;border-radius:14px;background:#2563eb;color:#fff;padding:12px 16px;font-weight:1000;cursor:pointer}.eco-roles167__actions span{font-size:11px;font-weight:900}.eco-roles167__result{padding:18px;display:flex;flex-direction:column;justify-content:space-between}.eco-roles167__success{text-align:center;padding:60px 10px 20px}.eco-roles167__success>span{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#22c55e;color:#fff;font-size:28px;font-weight:1000;margin:0 auto 16px}.eco-roles167__success h3{margin:0;font-size:18px}.eco-roles167__success p{color:#64748b;font-size:12px;font-weight:750;line-height:1.5}.eco-roles167__success>div{justify-content:center}.eco-roles167__modal{position:fixed;inset:0;z-index:10000050;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:18px}.eco-roles167__modal[hidden]{display:none}.eco-roles167__modal-card{width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;padding:22px;position:relative;box-shadow:0 30px 80px rgba(15,23,42,.3)}.eco-roles167__modal-card>button{position:absolute;right:14px;top:12px;border:0;background:#f1f5f9;width:34px;height:34px;border-radius:50%;font-size:22px;cursor:pointer}.eco-roles167__modal-card h3{margin:0 0 4px;font-size:22px}.eco-roles167__modal-card>p{margin:0 0 16px;color:#64748b;font-weight:750}.eco-roles167__modal form{display:grid;gap:12px}.eco-roles167__modal label{display:grid;gap:6px;font-size:11px;font-weight:950;color:#475569}.eco-roles167__modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.eco-roles167__create-roles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eco-roles167__create-roles label{display:flex;align-items:center;gap:7px;border:1px solid #e2e8f0;border-radius:12px;padding:10px}.eco-roles167__modal form>button{border:0;border-radius:14px;background:#2563eb;color:#fff;padding:13px;font-weight:1000;cursor:pointer}.eco-roles167__modal [data-eco-role-create-status]{font-size:11px;font-weight:900;white-space:pre-line}
@media(max-width:1050px){.eco-roles167__layout{grid-template-columns:minmax(240px,.8fr) minmax(420px,1.2fr)}.eco-roles167__result{grid-column:1/-1;min-height:180px}.eco-roles167__success{padding:20px}.eco-roles167__result{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:16px}}
@media(max-width:760px){.eco-roles167__head{align-items:flex-start;flex-wrap:wrap}.eco-roles167__head h2{font-size:22px}.eco-roles167__new{margin-left:auto}.eco-roles167__layout{grid-template-columns:1fr;min-height:0}.eco-roles167__users{max-height:330px}.eco-roles167__result{grid-template-columns:1fr}.eco-roles167__modal-grid,.eco-roles167__create-roles{grid-template-columns:1fr}.eco-roles167__editor{padding:14px}}

.eco-roles167__actions .eco-roles167__access{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.eco-roles167__actions button:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.eco-roles167__actions{align-items:stretch;flex-direction:column}.eco-roles167__actions button{width:100%}}

/* v1.4.185: protección responsive para encabezados y paneles multirrol */
.eco-roles167__head>div{min-width:0;overflow:hidden}
.eco-roles167__head h2,.eco-roles167__head p,.eco-roles167__head span{overflow-wrap:anywhere;word-break:normal}
.eco-roles167__editor,.eco-roles167__result,.eco-roles167__users{min-width:0}
.eco-roles167__choice>div,.eco-roles167__user>span:nth-child(2){min-width:0;overflow:hidden}
.eco-roles167__choice strong,.eco-roles167__choice small,.eco-roles167__user strong,.eco-roles167__user small{overflow-wrap:anywhere}
@media(max-width:900px){
  .eco-roles167__head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}
  .eco-roles167__head>div{min-width:0}
  .eco-roles167__head h2{font-size:21px;line-height:1.12}
  .eco-roles167__head p{font-size:11px}
  .eco-roles167__layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .eco-roles167__result{grid-column:1/-1}
}
@media(max-width:600px){
  .eco-roles167{padding:0 0 90px}
  .eco-roles167__head{grid-template-columns:1fr auto;align-items:start;padding:13px 14px;border-radius:18px}
  .eco-roles167__head>div{grid-column:1/-1;grid-row:1}
  .eco-roles167__back{grid-column:1;grid-row:2;justify-self:start}
  .eco-roles167__new{grid-column:2;grid-row:2;justify-self:end;white-space:nowrap}
  .eco-roles167__head h2{font-size:20px;white-space:normal}
  .eco-roles167__head p{display:none}
  .eco-roles167__layout{grid-template-columns:minmax(0,1fr);gap:10px}
  .eco-roles167__users,.eco-roles167__editor,.eco-roles167__result{border-radius:18px}
  .eco-roles167__users{max-height:none}
  .eco-roles167__choice{grid-template-columns:20px 30px minmax(0,1fr) 18px}
  .eco-roles167__actions{flex-wrap:wrap}
  .eco-roles167__actions button{min-width:0;flex:1 1 100%}
}
