
  /* Esta regra precisa ficar no fim do arquivo para vencer as camadas visuais anteriores. */
  #systemShell .permission-hidden,
  #systemShell [data-access-hidden="true"],
  #systemShell .nav-btn.permission-hidden,
  #systemShell .dashboard-link.permission-hidden,
  #systemShell button.permission-hidden,
  #systemShell a.permission-hidden,
  #systemShell details.permission-hidden,
  #systemShell form.permission-hidden,
  #systemShell .panel.permission-hidden{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  .access-v8-toast{
    position:fixed;right:22px;top:82px;z-index:9999;width:min(390px,calc(100vw - 28px));
    padding:13px 15px;display:flex;align-items:flex-start;gap:11px;
    border:1px solid #cddce8;border-left:4px solid var(--blue,#126fa6);border-radius:12px;
    background:rgba(255,255,255,.98);color:var(--text,#172331);
    box-shadow:0 18px 48px rgba(7,29,52,.18);font-size:11px;line-height:1.45;
    opacity:0;transform:translateY(-8px);pointer-events:none;transition:.18s ease;
  }
  .access-v8-toast.visible{opacity:1;transform:none}
  .access-v8-toast strong{display:block;color:var(--navy-dark,#071d34);font-size:11px}
  .access-v8-toast span{display:block;margin-top:2px;color:var(--muted,#687586)}
  .access-v8-toast-icon{
    width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:9px;
    background:#eef6fb;color:var(--blue,#126fa6);font-size:15px;font-weight:900;
  }

  .access-v8-empty{
    margin:22px auto;max-width:680px;padding:34px 28px;text-align:center;
    border:1px solid var(--border,#dde5eb);border-radius:18px;background:#fff;
    box-shadow:0 12px 32px rgba(16,36,56,.07);
  }
  .access-v8-empty-icon{
    width:56px;height:56px;margin:0 auto 15px;display:grid;place-items:center;border-radius:16px;
    background:#eef6fb;color:var(--navy,#0b2d4f);font-size:25px;
  }
  .access-v8-empty h2{margin:0;color:var(--navy-dark,#071d34);font-size:20px}
  .access-v8-empty p{margin:8px auto 0;max-width:470px;color:var(--muted,#687586);font-size:11px;line-height:1.6}

  /* Identificação da sessão: discreta, legível e com aparência de conta. */
  .current-user-chip{
    width:auto!important;max-width:215px!important;min-height:38px!important;padding:5px 9px 5px 11px!important;
    display:flex!important;align-items:center!important;gap:7px!important;text-align:left!important;line-height:1.15!important;
    border:1px solid #e3e9ef!important;border-radius:9px!important;background:#fafbfc!important;color:var(--navy-dark,#071d34)!important;
    box-shadow:none!important;cursor:pointer!important;transition:background-color .16s ease,border-color .16s ease!important;
  }
  .current-user-chip:hover{border-color:#cbd8e3!important;background:#f1f5f8!important;box-shadow:none!important}
  .current-user-chip:focus-visible{border-color:#a7bfd1!important;background:#f1f5f8!important;box-shadow:none!important;outline:2px solid #c9deec!important;outline-offset:2px!important}
  .current-user-chip.hidden{display:none!important}
  .current-user-icon{width:18px;height:18px;flex:none;fill:none;stroke:#61788b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .current-user-copy{min-width:0;display:block!important}
  .current-user-copy strong{display:block!important;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#102a43!important;font-size:11.5px!important;font-weight:800!important;letter-spacing:-.05px!important}
  .current-user-copy>span{display:block!important;max-width:170px;margin-top:2px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718292!important;font-size:8.25px!important;font-weight:600;text-transform:none!important;letter-spacing:0!important}
  .current-user-arrow{flex:none!important;margin-left:1px!important;color:#8496a5!important;font-size:11px!important;line-height:1!important;transform:translateY(-1px)}

  .user-identity-modal-box{width:min(620px,100%)!important}
  .user-identity-hero{padding:17px;display:flex;align-items:center;gap:13px;border:1px solid #cee0ec;border-radius:15px;background:linear-gradient(135deg,#f5faff,#fff)}
  .user-identity-avatar{width:54px;height:54px;flex:none;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,var(--navy,#0b2d4f),var(--blue,#126fa6));color:#fff;font-size:15px;font-weight:950;letter-spacing:.4px;box-shadow:0 9px 22px rgba(7,70,120,.18)}
  .user-identity-hero>div:nth-child(2){min-width:0;flex:1}
  .user-identity-eyebrow{display:block;color:#607588;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.7px}
  .user-identity-hero h3{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;color:#071d34;font-size:19px;letter-spacing:-.25px}
  .user-identity-hero p{margin:4px 0 0;color:#536a7d;font-size:10px;font-weight:750}
  .user-identity-status{flex:none;padding:5px 9px;border-radius:999px;background:#dff8e9;color:#08783d;font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.35px}
  .user-identity-status.inactive{background:#fff0ee;color:#b42318}
  .user-identity-details{display:grid;grid-template-columns:1.35fr 1fr;gap:10px;margin-top:12px}
  .user-identity-details>div{padding:12px;border:1px solid #d9e5ee;border-radius:12px;background:#fff}
  .user-identity-details span{display:block;color:#6a7b89;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.45px}
  .user-identity-details strong{display:block;margin-top:5px;overflow-wrap:anywhere;color:#102f49;font-size:11px}
  .user-identity-permissions{margin-top:16px}
  .user-identity-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
  .user-identity-section-title strong{color:#0b2d4f;font-size:12px}
  .user-identity-section-title span{color:#687c8d;font-size:8px}
  .user-identity-module-list{overflow:hidden;border:1px solid #d7e4ed;border-radius:12px;background:#fff}
  .user-identity-module{padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf2f6}
  .user-identity-module:last-child{border-bottom:0}
  .user-identity-module strong{color:#153852;font-size:10px}
  .user-identity-module span{padding:4px 7px;border-radius:999px;background:#e9f7ef;color:#08783d;font-size:7.5px;font-weight:900}
  .user-identity-module.blocked{background:#fafbfc}.user-identity-module.blocked strong{color:#778795}.user-identity-module.blocked span{background:#f0f2f4;color:#697785}
  .user-identity-note{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f4f7fa;color:#607487;font-size:8.5px;line-height:1.45}
  .user-identity-actions{justify-content:flex-end!important;margin-top:13px!important}

  @media(max-width:620px){
    .access-v8-toast{right:14px;top:68px}
    .access-v8-empty{padding:28px 20px}
    .current-user-chip{max-width:165px!important;min-height:36px!important;padding:4px 7px 4px 9px!important}
    .current-user-icon{width:16px;height:16px}
    .current-user-copy strong{max-width:115px;font-size:9.5px!important}
    .current-user-copy>span{max-width:115px;font-size:7px!important}
    .current-user-arrow{display:none!important}
    .user-identity-details{grid-template-columns:1fr}
    .user-identity-section-title{align-items:flex-start;flex-direction:column;gap:3px}
  }
