:root {
  --portal-ink: #26384a;
  --portal-muted: #7b8998;
  --portal-primary: #0b7285;
  --portal-primary-dark: #075c6c;
  --portal-line: #e5eaf0;
  --portal-page: #f4f6f9;
  --portal-surface: #fff;
  --portal-shadow: 0 3px 14px rgba(32, 54, 75, .045);
}

.portal-entry { min-height: 100vh; max-width: 1120px; display: flex; flex-direction: column; justify-content: center; padding-top: 34px !important; padding-bottom: 25px !important; }
.portal-entry-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 30px; }
.portal-entry-header .portal-brand { display: block; width: 190px; max-height: 54px; object-fit: contain; object-position: left center; }
.portal-entry-header > span { padding: 7px 12px; border: 1px solid #dfe8ed; border-radius: 30px; background: #fff; color: var(--portal-muted); font-size: .875rem; font-weight: 600; }
.portal-entry-card { max-width: 900px; width: 100%; margin: 0 auto; padding: 38px 42px 42px; border: 1px solid var(--portal-line); border-radius: 13px; background: var(--portal-surface); box-shadow: 0 12px 38px rgba(31, 52, 73, .08); }
.portal-entry-heading { margin-bottom: 26px; }
.portal-entry-heading h1 { margin: 8px 0 7px; color: var(--portal-ink); font-size: calc(1.325rem + .9vw); font-weight: 600; letter-spacing: -.035em; }
.portal-entry-heading p { margin: 0; color: var(--portal-muted); font-size: .875rem; }
.portal-entry-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.portal-entry-option { min-height: 125px; display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 14px; padding: 19px 18px; border: 1px solid var(--portal-line); border-radius: 10px; background: #fff; color: var(--portal-ink); text-decoration: none; box-shadow: var(--portal-shadow); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.portal-entry-option:hover, .portal-entry-option:focus-visible { border-color: #79bdc5; color: var(--portal-ink); box-shadow: 0 8px 22px rgba(11, 114, 133, .11); transform: translateY(-2px); outline: none; }
.portal-entry-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #eaf5f6; color: var(--portal-primary); font-size: 21px; }
.portal-entry-copy { display: grid; gap: 6px; }
.portal-entry-copy strong { font-size: 1rem; font-weight: 600; }
.portal-entry-copy small { color: var(--portal-muted); font-size: .8125rem; line-height: 1.5; }
.portal-entry-arrow { color: #93a0ad; font-size: 19px; }
.portal-entry .portal-loading { min-height: 130px; padding: 28px 15px; }
.portal-entry .portal-loading p { margin: 0; font-size: .875rem; }
.portal-entry-denied { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; border: 1px solid #e5eaf0; border-radius: 9px; background: #f8fafc; color: var(--portal-ink); }
.portal-entry-denied > i { color: var(--portal-primary); font-size: 20px; }
.portal-entry-denied strong { font-size: .875rem; }
.portal-entry-denied p { margin: 4px 0 0; color: var(--portal-muted); font-size: .8125rem; }
.portal-entry-footer { margin: 18px auto 0; color: #9aa5b0; font-size: .75rem; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); background: var(--portal-page); color: var(--portal-ink); font-family: var(--highdmin-body-font-family); font-size: var(--bs-body-font-size); line-height: var(--bs-body-line-height); }
.portal-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 13px 14px; overflow-y: auto; border-right: 1px solid var(--portal-line); background: #fff; }
.portal-sidebar-superadmin { padding: 12px 10px 10px; overflow-y: auto; scrollbar-width: none; }
.portal-sidebar-superadmin::-webkit-scrollbar { width: 0; }
.portal-sidebar-superadmin .portal-brand { height: 34px; margin: 0 8px 7px; }
.portal-sidebar-superadmin .portal-brand img { width: 166px; max-height: 34px; }
.portal-sidebar-superadmin .portal-nav { gap: 0; margin-top: 0; }
.portal-sidebar-superadmin .portal-nav-group-label { margin: 9px 8px 2px; font-size: .65rem; line-height: 1.1; }
.portal-sidebar-superadmin .portal-nav > a,
.portal-sidebar-superadmin .portal-nav-disabled { min-height: 32px; gap: 7px; padding: 4px 8px; border-radius: 6px; font-size: .8125rem; line-height: 1.15; }
.portal-sidebar-superadmin .portal-nav i { flex-basis: 16px; font-size: 15px; }
.portal-sidebar-superadmin .portal-nav-disabled small { font-size: .57rem; }
.portal-sidebar-superadmin .portal-sidebar-foot { gap: 8px; padding: 8px 6px 0; }
.portal-sidebar-superadmin .portal-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: .6875rem; }
.portal-sidebar-superadmin .portal-sidebar-foot strong { font-size: .75rem; }
.portal-sidebar-superadmin .portal-sidebar-foot small { font-size: .625rem; }
.portal-brand { display: flex; height: 47px; align-items: center; margin: 0 10px 23px; }
.portal-brand img { display: block; width: 178px; max-height: 45px; object-fit: contain; object-position: left center; }
.portal-side-caption { margin: 0 11px; color: #929eaa; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portal-nav { display: grid; gap: 3px; margin-top: 13px; }
.portal-nav-group-label { margin: 17px 11px 5px; color: #929eaa; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.portal-nav > a, .portal-nav-disabled { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 7px; color: #556474; font-size: var(--highdmin-menu-item-font-size); text-decoration: none; }
.portal-nav > a:hover { background: #f3f7f9; color: var(--portal-primary-dark); }
.portal-nav > a.active { background: #eaf4f6; color: var(--portal-primary); font-weight: 650; }
.portal-nav i { flex: 0 0 18px; color: inherit; font-size: 17px; text-align: center; }
.portal-nav-disabled { color: #9ba5af; }
.portal-nav-disabled small { margin-left: auto; white-space: nowrap; color: #9da7b0; font-size: .6875rem; }
.portal-sidebar-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 7px 1px; border-top: 1px solid #edf0f3; }
.portal-avatar { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #e9f3f5; color: var(--portal-primary); font-size: 12px; font-weight: 700; }
.portal-sidebar-foot > span:nth-child(2) { display: grid; line-height: 1.35; }
.portal-sidebar-foot strong { color: #3a4b5c; font-size: 12px; }
.portal-sidebar-foot small { color: #8b97a3; font-size: 10px; }
.portal-sidebar-foot > i { margin-left: auto; color: #9aa5af; }
.portal-main { min-width: 0; display: flex; flex-direction: column; }
.portal-operational-content { flex: 1; max-width: none; }
.portal-topbar-title a { color: inherit; text-decoration: none; }
.portal-topbar-title a:hover { color: var(--portal-primary); }
.portal-topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 30px; border-bottom: 1px solid var(--portal-line); background: #fff; }
.portal-topbar-title { display: flex; align-items: center; gap: 9px; color: #3f5265; font-size: .875rem; font-weight: 600; }
.portal-top-brand { color: #8b98a5; font-weight: 500; }
.portal-topbar-title > i { color: #a6b0b9; font-size: 17px; }
.portal-account { display: flex; align-items: center; gap: 15px; }
.portal-context-control { display: flex; align-items: center; gap: 9px; }
.portal-context-control label { color: #818e9b; font-size: .8125rem; }
.portal-context-control select { width: auto; min-width: 155px; max-width: 235px; padding: 7px 31px 7px 10px; border-color: #e3e8ed; color: #4c5d6d; font-size: .875rem; }
.portal-notification { width: 34px; height: 34px; border: 0; background: transparent; color: #9ba5ae; font-size: 18px; }
.portal-user { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.portal-user-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eaf1f6; color: #44627d; font-size: 11px; font-weight: 700; }
.portal-user-menu-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; }
.portal-user-menu-toggle:hover, .portal-user-menu-toggle[aria-expanded="true"] { background: #f3f7f9; }
.portal-user-menu-toggle > i { color: #8b98a5; font-size: 17px; }
.portal-user-menu-toggle .portal-user-avatar { flex: 0 0 32px; }
.portal-user-copy { display: grid; min-width: 0; line-height: 1.35; }
.portal-user-copy strong { max-width: 190px; overflow: hidden; color: #34485a; font-size: .875rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.portal-user-copy small { color: #8995a1; font-size: .75rem; }
.portal-account-menu { min-width: 230px; margin-top: .4rem; padding: .45rem; border-color: var(--portal-line); box-shadow: 0 8px 28px rgba(31,52,73,.14); }
.portal-account-menu-heading { display: grid; gap: 3px; padding: .55rem .7rem; }
.portal-account-menu-heading strong { overflow: hidden; color: #34485a; font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-account-menu-heading small { color: #8995a1; font-size: .75rem; }
.portal-account-menu .dropdown-item { border-radius: 5px; font-size: .875rem; }
.portal-account-menu .dropdown-item i { color: #718096; }
.portal-user > span:last-child { display: grid; line-height: 1.35; }
.portal-user strong { max-width: 145px; overflow: hidden; color: #34485a; font-size: .875rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-user small { color: #8995a1; font-size: .75rem; }
.portal-logout { border: 0; background: transparent; color: var(--portal-primary); font-size: .875rem; font-weight: 600; }
.portal-logout:hover { color: var(--portal-primary-dark); }
.portal-context-bar { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 30px; border-bottom: 1px solid #e9edf1; background: #fff; color: #778594; font-size: .8125rem; }
.portal-context-indicator { display: inline-flex; align-items: center; gap: 7px; color: #52717d; font-weight: 600; }
.portal-context-indicator i, .portal-client-organization small i { width: 7px; height: 7px; border-radius: 50%; background: #3caa83; }
.portal-context-note { margin-left: auto; color: #99a3ad; }
.portal-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 27px 30px 36px; }
.portal-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.portal-eyebrow { color: #8492a0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.portal-page-heading h1 { margin: 4px 0 2px; color: #26384a; font-size: calc(1.325rem + .9vw); font-weight: 600; letter-spacing: -.035em; }
.portal-page-heading h2 { margin: 4px 0 2px; color: #26384a; font-size: calc(1.275rem + .3vw); font-weight: 600; letter-spacing: -.025em; }
.portal-page-heading p { margin: 0; color: #8793a0; font-size: .875rem; }
.portal-page-heading-spaced { margin-top: 27px; }
.portal-role-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dce9ec; border-radius: 30px; background: #fff; color: var(--portal-primary); font-size: .8125rem; font-weight: 600; }
.portal-role-badge i { font-size: 14px; }
.portal-announcement { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; padding: 12px 15px; border: 1px solid #dce9ed; border-radius: 7px; background: #edf6f7; color: #59727c; font-size: .875rem; }
.portal-announcement i { color: var(--portal-primary); font-size: 16px; }
.portal-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-module-card { min-height: 145px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 19px 18px; border: 1px solid #e5eaf0; border-radius: 9px; background: #fff; box-shadow: var(--portal-shadow); }
.portal-module-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; font-size: 19px; }
.portal-module-icon.teal { background: #e8f4f4; color: #1b8b91; }
.portal-module-icon.purple { background: #f1edf8; color: #8271b4; }
.portal-module-icon.blue { background: #ebf1f8; color: #5981b0; }
.portal-module-icon.amber { background: #fbf3e7; color: #bd8c43; }
.portal-module-kicker { color: #9aa5af; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.portal-module-card h2 { margin: 4px 0 5px; color: #34495d; font-size: 1rem; font-weight: 600; }
.portal-module-card p { max-width: 420px; margin: 0; color: #8793a0; font-size: .8125rem; line-height: 1.5; }
.portal-module-status { align-self: start; padding: 5px 8px; border: 1px solid #e5e9ed; border-radius: 4px; background: #f8fafb; color: #8793a0; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.portal-client-banner { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 30px; border-radius: 9px; background: linear-gradient(110deg, #0a7184 0%, #168c96 100%); color: #fff; box-shadow: 0 7px 20px rgba(15, 104, 119, .13); }
.portal-client-label { color: #c9e9eb; font-size: .75rem; font-weight: 700; letter-spacing: .11em; }
.portal-client-banner h1 { margin: 7px 0 5px; color: #fff; font-size: calc(1.325rem + .9vw); font-weight: 600; letter-spacing: -.03em; }
.portal-client-banner p { margin: 0; color: #d8eff0; font-size: .875rem; }
.portal-client-organization { min-width: 245px; display: grid; gap: 5px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.1); }
.portal-client-organization > span { color: #cce9eb; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.portal-client-organization strong { color: #fff; font-size: 1rem; font-weight: 600; }
.portal-client-organization small { display: inline-flex; align-items: center; gap: 6px; color: #d6eeee; font-size: .75rem; }
.portal-client-organization small i { background: #a3e3bd; }
.portal-client-grid .portal-module-card { min-height: 160px; }
.portal-loading { display: grid; justify-items: center; gap: 9px; padding: 75px 20px; color: #81909d; }
.portal-loading p { margin: 0; font-size: .875rem; }
.portal-load-error { margin: 20px 30px; padding: 12px 16px; border: 1px solid #e8d6d6; border-radius: 7px; background: #fff9f9; color: #8f4e4e; font-size: .875rem; }
.portal-footer { margin-top: auto; padding: 15px 30px; border-top: 1px solid var(--portal-line); color: #97a2ad; font-size: .75rem; }
.portal-footer span { padding: 0 5px; }

@media (max-width: 1100px) {
  .portal-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .portal-sidebar { padding-right: 10px; padding-left: 10px; }
  .portal-topbar { padding: 0 20px; }
  .portal-context-bar { padding: 0 20px; }
  .portal-content { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 760px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: relative; height: auto; padding: 13px 14px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--portal-line); }
  .portal-brand { height: 38px; margin: 0 8px 13px; }
  .portal-brand img { width: 155px; }
  .portal-side-caption { margin-left: 9px; }
  .portal-nav { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 8px; }
  .portal-nav > a, .portal-nav-disabled { min-height: 39px; padding: 7px 9px; }
  .portal-sidebar-foot { display: none; }
  .portal-topbar { min-height: 58px; align-items: flex-start; padding: 12px 15px; flex-direction: column; }
  .portal-account { width: 100%; flex-wrap: wrap; gap: 9px; }
  .portal-user-copy strong { max-width: min(68vw, 250px); }
  .portal-context-control { flex: 1 1 100%; }
  .portal-context-control select { flex: 1; max-width: none; }
  .portal-context-bar { flex-wrap: wrap; gap: 5px 10px; padding: 8px 15px; }
  .portal-context-note { width: 100%; margin-left: 0; }
  .portal-content { padding: 20px 14px 26px; }
  .portal-page-heading { align-items: flex-start; }
  .portal-page-heading h1, .portal-client-banner h1, .portal-entry-heading h1 { font-size: calc(1.325rem + .9vw); }
  .portal-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .portal-module-card { min-height: 128px; padding: 15px 13px; }
  .portal-client-banner { align-items: flex-start; flex-direction: column; padding: 22px 19px; }
  .portal-client-organization { width: 100%; min-width: 0; }
  .portal-footer { padding: 13px 15px; }
  .portal-entry-card { padding: 26px 20px; }
  .portal-entry-header .portal-brand { width: 155px; }
}

.portal-shell[data-portal="cliente"] .client-saas-sidebar {
  position: sticky;
  inset: 0 auto auto;
  transform: none;
}

/* GlobalTax workspace chooser and access state. */
.portal-entry {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  max-width: none;
  justify-content: center;
  overflow: hidden;
  padding: 42px clamp(20px, 5vw, 78px) 28px !important;
  background:
    radial-gradient(ellipse at 8% 88%, rgba(13, 127, 143, .12), transparent 35%),
    radial-gradient(ellipse at 92% 7%, rgba(59, 102, 150, .10), transparent 31%),
    #f1f5f8;
}
.portal-entry::before,
.portal-entry::after { position: absolute; z-index: -1; content: ""; border: 1px solid rgba(25, 86, 119, .09); border-radius: 50%; pointer-events: none; }
.portal-entry::before { width: 560px; height: 560px; top: -370px; right: -120px; }
.portal-entry::after { width: 400px; height: 400px; bottom: -300px; left: -180px; }
.portal-entry-frame { width: min(100%, 1160px); margin: auto; }
.portal-entry-header { margin: 0 0 28px; }
.portal-entry-header .portal-brand { width: 188px; max-height: 52px; padding: 6px 10px; border: 1px solid #e5ebf0; border-radius: 10px; background: #fff; }
.portal-entry-secure { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #d8e4ea; border-radius: 999px; background: rgba(255,255,255,.82); color: #52677d; font-size: .78rem; font-weight: 650; }
.portal-entry-secure i { color: #0b7285; font-size: 1rem; }
.portal-entry-card { position: relative; max-width: 1020px; overflow: hidden; padding: 38px 42px 42px; border: 1px solid #dce5ed; border-radius: 20px; background: #fff; box-shadow: 0 24px 65px rgba(27, 55, 81, .10); }
.portal-entry-card::before { position: absolute; inset: 0 0 auto; height: 5px; content: ""; background: linear-gradient(90deg, #087c8d 0%, #17648c 55%, #253e68 100%); }
.portal-entry-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 30px; }
.portal-entry-heading-icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border: 1px solid #cfe3e9; border-radius: 15px; background: #eaf4f6; color: #0b7285; font-size: 25px; }
.portal-entry-heading .portal-eyebrow { color: #087c8d; font-size: .68rem; letter-spacing: .15em; }
.portal-entry-heading h1 { margin: 5px 0 8px; color: #1f344d; font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.12; }
.portal-entry-heading p { color: #75869b; font-size: .96rem; line-height: 1.55; }
.portal-entry-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.portal-entry-option { position: relative; min-height: 142px; grid-template-columns: 58px minmax(0, 1fr) 22px; gap: 16px; padding: 22px; border-color: #dce5ed; border-radius: 14px; box-shadow: 0 5px 18px rgba(28, 55, 80, .045); }
.portal-entry-option::after { position: absolute; inset: auto 16px 0; height: 3px; border-radius: 4px 4px 0 0; content: ""; background: #e3edf1; transition: background .16s ease; }
.portal-entry-option:hover::after, .portal-entry-option:focus-visible::after { background: linear-gradient(90deg, #0b8290, #285b87); }
.portal-entry-option:hover, .portal-entry-option:focus-visible { border-color: #9acbd1; box-shadow: 0 12px 28px rgba(16, 92, 117, .11); transform: translateY(-2px); }
.portal-entry-icon { width: 56px; height: 56px; border: 1px solid #cfe3e9; border-radius: 15px; background: #eaf4f6; color: #0b7285; font-size: 25px; }
.portal-entry-option[data-portal="globaltax"] .portal-entry-icon { border-color: #d3dced; background: #edf2fa; color: #244e78; }
.portal-entry-option[data-portal="cliente"] .portal-entry-icon { border-color: #cce7df; background: #eaf6f1; color: #117b68; }
.portal-entry-copy { gap: 7px; }
.portal-entry-copy strong { color: #263b53; font-size: 1rem; font-weight: 720; }
.portal-entry-copy small { color: #77899d; font-size: .84rem; line-height: 1.5; }
.portal-entry-arrow { color: #8093a8; font-size: 21px; transition: transform .16s ease, color .16s ease; }
.portal-entry-option:hover .portal-entry-arrow { color: #0b7285; transform: translateX(3px); }
.portal-entry .portal-loading { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #647990; }
.portal-entry .portal-loading .spinner-border { width: 2rem; height: 2rem; border-width: 3px; }
.portal-entry .portal-loading p { color: #647990; font-size: .9rem; }
.portal-entry-denied { align-items: center; gap: 17px; padding: 22px 24px; border-color: #eedfc7; border-radius: 14px; background: linear-gradient(115deg, #fffaf1, #fff); }
.portal-entry-denied-icon { display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; border: 1px solid #f0d9b5; border-radius: 14px; background: #fff1db; color: #a55e15; }
.portal-entry-denied-icon i { font-size: 23px; }
.portal-entry-denied-copy { display: grid; gap: 5px; }
.portal-entry-denied-label { color: #a56826; font-size: .65rem; font-weight: 750; letter-spacing: .14em; }
.portal-entry-denied strong { color: #293f57; font-size: 1rem; }
.portal-entry-denied p { color: #687d91; font-size: .88rem; line-height: 1.55; }
.portal-entry-footer { display: flex; justify-content: space-between; gap: 16px; width: min(100%, 1020px); margin: 17px auto 0; color: #8191a2; font-size: .76rem; }
.portal-entry-footer span { display: inline-flex; align-items: center; gap: 7px; }
.portal-entry-footer i { color: #0b7285; font-size: .95rem; }
.portal-context-control { gap: 11px; padding: 7px 12px 7px 8px; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(28,55,80,.035); }
.portal-context-control-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #eaf4f6; color: #0b7285; }
.portal-context-control-icon i { font-size: 18px; }
.portal-context-control-copy { min-width: 0; }
.portal-context-control label { display: block; margin: 0 0 1px; color: #8191a2; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.portal-context-control select { min-width: 185px; max-width: 250px; padding: 0 25px 0 0; border: 0; background-color: transparent; color: #263b53; font-size: .82rem; font-weight: 650; box-shadow: none; }

@media (max-width: 760px) {
  .portal-entry { min-height: 100svh; padding: 25px 16px 20px !important; }
  .portal-entry-header { margin-bottom: 20px; }
  .portal-entry-header .portal-brand { width: 156px; }
  .portal-entry-secure { padding: 8px 10px; font-size: .72rem; }
  .portal-entry-card { padding: 29px 22px 24px; border-radius: 16px; }
  .portal-entry-heading { gap: 12px; margin-bottom: 23px; }
  .portal-entry-heading-icon { width: 45px; height: 45px; flex-basis: 45px; border-radius: 12px; font-size: 21px; }
  .portal-entry-heading h1 { font-size: 1.55rem; }
  .portal-entry-heading p { font-size: .86rem; }
  .portal-entry-option { min-height: 118px; grid-template-columns: 49px minmax(0,1fr) 18px; gap: 12px; padding: 17px 15px; }
  .portal-entry-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 22px; }
  .portal-entry-footer { flex-direction: column; align-items: center; text-align: center; font-size: .7rem; }
}

/* Workspace access: split editorial layout with a focused selection panel. */
.portal-entry {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  justify-content: center;
  padding: 42px clamp(22px, 5vw, 84px) !important;
  overflow: hidden;
  background: #edf2f6;
}
.portal-entry::before { width: 720px; height: 720px; top: -440px; right: -190px; border-color: rgba(255,255,255,.12); }
.portal-entry::after { width: 540px; height: 540px; bottom: -420px; left: -260px; border-color: rgba(255,255,255,.1); }
.portal-entry-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(470px, 1.22fr);
  width: min(100%, 1240px);
  min-height: min(690px, calc(100vh - 84px));
  margin: auto;
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(28, 49, 71, .14);
}
.portal-entry-aside {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #087b89 0%, #125e78 45%, #203859 100%);
}
.portal-entry-aside::before,.portal-entry-aside::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; pointer-events: none; }
.portal-entry-aside::before { width: 480px; height: 480px; right: -290px; top: 80px; }
.portal-entry-aside::after { width: 310px; height: 310px; right: -190px; top: 165px; }
.portal-entry-brand { z-index: 1; display: inline-flex; width: fit-content; padding: 9px 12px; border-radius: 8px; background: #fff; }
.portal-entry-brand img { display: block; width: 174px; max-height: 43px; object-fit: contain; }
.portal-entry-secure { z-index: 1; display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 25px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.26); border-radius: 30px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.92); font-size: .78rem; font-weight: 650; }
.portal-entry-secure i { color: #7ce0ce; font-size: 16px; }
.portal-entry-aside-copy { z-index: 1; max-width: 410px; margin: auto 0; padding: 50px 0 70px; }
.portal-entry-aside-kicker { color: #a8d5dc; font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.portal-entry-aside-copy h1 { margin: 14px 0 13px; color: #fff; font-size: clamp(2rem, 3.2vw, 3.1rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.06; }
.portal-entry-aside-copy p { max-width: 350px; margin: 0; color: rgba(239,247,250,.78); font-size: .98rem; line-height: 1.65; }
.portal-entry-aside-note { z-index: 1; display: flex; align-items: center; gap: 12px; max-width: 380px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.portal-entry-aside-note > span { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.1); color: #a8e8de; font-size: 19px; }
.portal-entry-aside-note div { display: grid; gap: 3px; }
.portal-entry-aside-note strong { color: #fff; font-size: .83rem; }
.portal-entry-aside-note small { color: rgba(239,247,250,.7); font-size: .74rem; }
.portal-entry-aside-footer { z-index: 1; margin-top: 28px; color: rgba(239,247,250,.56); font-size: .72rem; }
.portal-entry-main { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 68px); }
.portal-entry-main-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 32px; }
.portal-entry-main-icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border: 1px solid #d4e7ea; border-radius: 15px; background: #eaf4f6; color: #087b89; font-size: 24px; }
.portal-entry-section-label { color: #0b7888; font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.portal-entry-main-heading h2 { margin: 6px 0 5px; color: #20364f; font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 750; letter-spacing: -.04em; }
.portal-entry-main-heading p { margin: 0; color: #77899d; font-size: .9rem; }
.portal-entry-options { grid-template-columns: 1fr; gap: 12px; }
.portal-entry-option { min-height: 102px; grid-template-columns: 54px minmax(0,1fr) 36px; gap: 16px; padding: 17px 19px; border-color: #dce5ed; border-radius: 13px; box-shadow: 0 4px 12px rgba(31,52,73,.035); }
.portal-entry-option:hover,.portal-entry-option:focus-visible { border-color: #4ca7b1; box-shadow: 0 11px 25px rgba(11,114,133,.1); transform: translateY(-1px); }
.portal-entry-icon { width: 52px; height: 52px; border: 1px solid #d3e7ea; border-radius: 14px; background: #e9f4f5; font-size: 23px; }
.portal-entry-copy { gap: 5px; }
.portal-entry-copy strong { color: #263c55; font-size: .98rem; font-weight: 700; }
.portal-entry-copy small { font-size: .8rem; }
.portal-entry-arrow { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #f0f5f7; color: #607a90; }
.portal-entry-option:hover .portal-entry-arrow { background: #e5f2f3; color: #087b89; }
.portal-entry .portal-loading { display: flex; min-height: 130px; align-items: center; justify-content: center; gap: 13px; padding: 22px; border: 1px dashed #d5e0e8; border-radius: 13px; background: #f8fafb; color: #72859a; }
.portal-entry .portal-loading p { margin: 0; }
.portal-entry-denied { align-items: flex-start; gap: 15px; padding: 21px; border-color: #f0d8d5; border-radius: 13px; background: #fff8f7; }
.portal-entry-denied-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #f1d3ce; border-radius: 12px; background: #fdebe8; color: #b94b42; font-size: 19px; }
.portal-entry-denied-copy { display: grid; gap: 4px; }
.portal-entry-denied-label { color: #b65349; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.portal-entry-denied strong { color: #273e56; font-size: 1rem; }
.portal-entry-denied p { margin: 0; color: #78889a; font-size: .82rem; line-height: 1.5; }
.portal-entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 30px; color: #8997a5; font-size: .78rem; }
.portal-entry-login { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #d9e3eb; border-radius: 9px; color: #38536c; font-size: .82rem; font-weight: 700; text-decoration: none; transition: .16s ease; }
.portal-entry-login:hover,.portal-entry-login:focus-visible { border-color: #087b89; background: #edf7f8; color: #087b89; outline: none; }
.portal-entry-footer { display: none; }
@media (max-width: 850px) {
  .portal-entry { padding: 22px !important; }
  .portal-entry-frame { grid-template-columns: minmax(240px,.72fr) minmax(390px,1.28fr); min-height: min(660px,calc(100vh - 44px)); }
  .portal-entry-aside { padding: 28px; }
  .portal-entry-main { padding: 32px; }
}
@media (max-width: 680px) {
  .portal-entry { align-items: stretch; padding: 12px !important; }
  .portal-entry-frame { width: 100%; min-height: calc(100svh - 24px); grid-template-columns: 1fr; border-radius: 18px; }
  .portal-entry-aside { min-height: 225px; padding: 19px 21px; }
  .portal-entry-brand img { width: 144px; max-height: 36px; }
  .portal-entry-secure { position: absolute; top: 18px; right: 18px; margin-top: 0; padding: 7px 9px; font-size: .68rem; }
  .portal-entry-aside-copy { margin: 25px 0 0; padding: 0 0 19px; }
  .portal-entry-aside-copy h1 { max-width: 460px; margin: 8px 0 6px; font-size: 1.65rem; }
  .portal-entry-aside-copy p { font-size: .82rem; }
  .portal-entry-aside-note,.portal-entry-aside-footer { display: none; }
  .portal-entry-main { padding: 25px 20px 21px; }
  .portal-entry-main-heading { gap: 12px; margin-bottom: 21px; }
  .portal-entry-main-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; font-size: 20px; }
  .portal-entry-main-heading h2 { font-size: 1.35rem; }
  .portal-entry-main-heading p { font-size: .82rem; }
  .portal-entry-option { min-height: 86px; grid-template-columns: 44px minmax(0,1fr) 30px; gap: 11px; padding: 13px; }
  .portal-entry-icon { width: 43px; height: 43px; font-size: 20px; }
  .portal-entry-actions { align-items: flex-start; flex-direction: column; padding-top: 22px; }
}

.portal-shell[data-portal="cliente"] .saas-nav a[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .portal-shell[data-portal="cliente"] .client-saas-sidebar {
    position: relative;
  }
}
