.aey-oauth-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:#6f8292;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.aey-oauth-divider::before,.aey-oauth-divider::after{content:"";flex:1;height:1px;background:#dce5ec}.aey-google-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;border:1px solid #cbd8e2;border-radius:10px;background:#fff;color:#213d54;font:700 14px/1.2 inherit;text-decoration:none;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.aey-google-button:hover{border-color:#91abc0;box-shadow:0 4px 14px rgba(17,54,84,.1)}.aey-google-button:active{transform:translateY(1px)}.aey-google-button[aria-disabled="true"]{pointer-events:none;opacity:.65}.aey-google-mark{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff;font-size:11px;font-weight:900}.aey-oauth-flash{margin:0 0 14px;padding:11px 12px;border-radius:9px;font-size:13px;font-weight:700}.aey-oauth-flash.success{border:1px solid #a8d8ba;background:#edf9f1;color:#176e3b}.aey-oauth-flash.error{border:1px solid #efb9bd;background:#fff1f2;color:#98292f}.aey-oauth-page{width:min(100%,980px);margin:0 auto}.aey-oauth-card{border:1px solid #dbe5ef;border-radius:14px;background:#fff;box-shadow:0 8px 30px rgba(15,42,67,.06);overflow:hidden}.aey-oauth-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e5edf3}.aey-oauth-card-header h2{margin:0;color:#173f61;font-size:18px}.aey-oauth-card-header p{margin:5px 0 0;color:#60798d;font-size:13px}.aey-oauth-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800}.aey-oauth-status.connected{background:#eaf8ef;color:#16713b}.aey-oauth-status.disconnected{background:#f1f4f6;color:#5c7182}.aey-oauth-status.disabled{background:#fff4dc;color:#8a5b00}.aey-oauth-body{padding:18px 20px}.aey-oauth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.aey-oauth-field{display:grid;gap:6px}.aey-oauth-field.span-2{grid-column:1/-1}.aey-oauth-field label{color:#294b66;font-size:12px;font-weight:800}.aey-oauth-field input,.aey-oauth-field textarea,.aey-oauth-field select{width:100%;min-height:42px;border:1px solid #cfdce6;border-radius:9px;background:#fff;padding:9px 11px;color:#18374f;font:600 13px/1.35 inherit;box-sizing:border-box}.aey-oauth-field textarea{min-height:78px;resize:vertical}.aey-oauth-field small{color:#6d8191;font-size:11px}.aey-oauth-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;margin-top:18px}.aey-oauth-btn{min-height:40px;border:0;border-radius:9px;padding:9px 13px;font:800 12px/1.1 inherit;cursor:pointer}.aey-oauth-btn.primary{background:#0e4f88;color:#fff}.aey-oauth-btn.secondary{background:#eaf1f6;color:#244c6a}.aey-oauth-btn.danger{background:#fff0f1;color:#a12832}.aey-oauth-btn:disabled{cursor:not-allowed;opacity:.55}.aey-oauth-provider{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center}.aey-oauth-provider-meta{display:grid;gap:7px}.aey-oauth-provider-title{display:flex;align-items:center;gap:10px}.aey-oauth-provider-title strong{color:#183d5a}.aey-oauth-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;color:#587185;font-size:12px}.aey-oauth-details b{color:#294b66}.aey-oauth-scopes{display:flex;flex-wrap:wrap;gap:5px}.aey-oauth-scope{border-radius:999px;background:#edf3f7;padding:4px 8px;color:#3e6079;font-size:11px;font-weight:700}.aey-oauth-check{display:flex;align-items:flex-start;gap:9px}.aey-oauth-check input{width:17px;height:17px;margin-top:1px}.aey-oauth-result{margin-top:12px;padding:10px 12px;border-radius:9px;font-size:12px;font-weight:700}.aey-oauth-result.ok{background:#edf9f1;color:#176e3b}.aey-oauth-result.error{background:#fff1f2;color:#98292f}.aey-oauth-copy-row{display:flex;gap:7px}.aey-oauth-copy-row input{flex:1}.aey-oauth-copy-row button{flex:0 0 auto}.aey-oauth-loading{padding:24px;text-align:center;color:#5d768a;font-size:13px;font-weight:700}@media(max-width:700px){.aey-oauth-grid,.aey-oauth-details{grid-template-columns:1fr}.aey-oauth-field.span-2{grid-column:auto}.aey-oauth-provider{grid-template-columns:1fr}.aey-oauth-card-header{align-items:flex-start;flex-direction:column}.aey-oauth-actions{justify-content:stretch}.aey-oauth-actions .aey-oauth-btn{flex:1}.aey-oauth-copy-row{align-items:stretch}.aey-oauth-copy-row button{padding-inline:10px}}@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .aey-oauth-card{background:#172635;border-color:#32495b}:root:not([data-theme="light"]) .aey-oauth-card-header{border-color:#32495b}:root:not([data-theme="light"]) .aey-oauth-card-header h2,:root:not([data-theme="light"]) .aey-oauth-provider-title strong{color:#e1edf5}:root:not([data-theme="light"]) .aey-oauth-card-header p,:root:not([data-theme="light"]) .aey-oauth-details{color:#adc0ce}:root:not([data-theme="light"]) .aey-oauth-field label,:root:not([data-theme="light"]) .aey-oauth-details b{color:#cfdee8}:root:not([data-theme="light"]) .aey-oauth-field input,:root:not([data-theme="light"]) .aey-oauth-field textarea{background:#101d29;border-color:#40586b;color:#edf5fa}:root:not([data-theme="light"]) .aey-oauth-scope{background:#263c4e;color:#d5e4ee}}
body.aey-oauth-admin-route #aey-ops-content-root{display:block!important;position:fixed!important;z-index:24!important;top:72px!important;right:var(--context-rail-width,72px)!important;bottom:0!important;left:var(--sidebar-width,225px)!important;overflow:auto!important;background:#f4f8fb!important;padding:20px 24px 38px!important}body.aey-oauth-admin-route:has(#root .portal-shell.sidebar-is-collapsed) #aey-ops-content-root{left:var(--sidebar-collapsed,78px)!important}body.aey-oauth-admin-route:has(#root .portal-shell.right-panel-is-open) #aey-ops-content-root{right:var(--context-panel-width,520px)!important}.aey-oauth-profile-mount{margin-top:14px}.aey-oauth-route-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 auto 14px;width:min(100%,980px)}.aey-oauth-route-heading h1{margin:0;color:#123b5c;font-size:22px}.aey-oauth-route-heading p{margin:5px 0 0;color:#6d8191;font-size:12px}@media(max-width:900px){body.aey-oauth-admin-route #aey-ops-content-root{top:64px!important;left:0!important;right:0!important;padding:16px 12px 28px!important}.aey-oauth-route-heading h1{font-size:19px}}@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) body.aey-oauth-admin-route #aey-ops-content-root{background:#101b26!important}:root:not([data-theme="light"]) .aey-oauth-route-heading h1{color:#e0edf5}}

/* R59: acceso privado Google y login institucional Portal AEY */
.aey-oauth-private-mode{border:1px solid #c8dfef;border-radius:11px;background:#f1f8fd;padding:12px 14px;color:#244a67}.aey-oauth-private-mode b{display:block;color:#0e4f88;font-size:12px}.aey-oauth-private-mode small{display:block;margin-top:5px;color:#60798d;font-size:11px;line-height:1.5}
.aey-oauth-login-route .login-page,.aey-login-php .login-page{grid-template-columns:minmax(390px,500px) minmax(0,1fr);overflow:hidden;background:#fff}
.aey-oauth-login-route .login-card,.aey-login-php .login-card{padding:clamp(34px,5vw,72px);position:relative;z-index:2}
.aey-oauth-login-route .login-brand,.aey-login-php .login-brand{margin-bottom:34px}
.aey-oauth-login-route .login-brand span,.aey-login-php .login-brand span{color:#5f7384;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.aey-oauth-login-route .login-copy,.aey-login-php .login-copy{margin-bottom:0}
.aey-oauth-login-route .login-copy h1,.aey-login-php .login-copy h1{color:#102d45;font-size:clamp(28px,3vw,36px);letter-spacing:-.025em}
.aey-oauth-login-route .login-form,.aey-login-php .login-form{margin-top:26px}
.aey-login-google{margin-top:3px;position:relative;z-index:5}
.aey-login-google .aey-oauth-divider{margin:15px 0 13px}
.aey-google-private-note{color:#6a7e8f;font-size:10px;line-height:1.45;margin:8px 3px 0;text-align:center}
.aey-oauth-login-route .login-footer,.aey-login-php .login-footer{justify-content:flex-start;margin-top:15px}
.aey-oauth-login-route .login-footer span,.aey-login-php .login-footer span{display:none!important}
.aey-oauth-login-route .login-side,.aey-login-php .login-side{align-items:center;background:radial-gradient(circle at 78% 12%,rgba(112,210,255,.28),transparent 31%),linear-gradient(145deg,#0e5b98,#052944 78%);display:grid;justify-items:center;min-height:100vh;overflow:hidden;padding:clamp(22px,3.5vw,58px);position:relative}
.aey-oauth-login-route .login-side:before,.aey-login-php .login-side:before{background-image:linear-gradient(rgba(151,220,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(151,220,255,.07) 1px,transparent 1px);background-size:46px 46px;content:"";inset:0;mask-image:linear-gradient(to bottom,rgba(0,0,0,.78),transparent);pointer-events:none;position:absolute}
.aey-login-visual{align-items:center;display:flex;height:100%;justify-content:center;max-height:900px;max-width:1180px;position:relative;width:100%}
.aey-login-visual img{display:block;filter:drop-shadow(0 26px 35px rgba(0,20,34,.28));height:auto;max-height:84vh;max-width:100%;object-fit:contain;width:min(100%,1180px)}
.aey-login-visual-label{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;font-size:11px;font-weight:900;left:4%;letter-spacing:.13em;padding:8px 13px;position:absolute;text-transform:uppercase;top:4%;z-index:2}
.aey-login-php .login-card>img{display:none}
.aey-login-php .login-brand img{display:block}
.aey-login-php .portal-alert{margin-top:16px}
@media(max-width:900px){.aey-oauth-login-route .login-page,.aey-login-php .login-page{display:block;min-height:100vh}.aey-oauth-login-route .login-card,.aey-login-php .login-card{margin:0 auto;max-width:520px;min-height:100vh}.aey-oauth-login-route .login-side,.aey-login-php .login-side{display:none}}
@media(max-width:520px){.aey-oauth-login-route .login-card,.aey-login-php .login-card{padding:28px 22px}.aey-oauth-login-route .login-brand,.aey-login-php .login-brand{margin-bottom:28px}.aey-google-private-note{font-size:9.5px}}
@media(prefers-reduced-motion:reduce){.aey-oauth-login-route *,.aey-login-php *{scroll-behavior:auto!important;transition:none!important}.aey-login-visual img{filter:none}}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .aey-oauth-private-mode{background:#172b3a;border-color:#35566d;color:#d5e4ee}:root:not([data-theme="light"]) .aey-oauth-private-mode b{color:#9bd7f7}:root:not([data-theme="light"]) .aey-oauth-private-mode small{color:#aec1ce}}
.settings-react-nav a[data-aey-oauth-nav]{align-items:center;background:transparent;border:0;border-radius:9px;color:#4f6175;display:flex;font:600 11px Montserrat,sans-serif;gap:9px;padding:9px 10px;text-align:left;text-decoration:none;width:100%}.settings-react-nav a[data-aey-oauth-nav]:hover,.settings-react-nav a[data-aey-oauth-nav].is-active{background:#f2f7fb;color:#0e4f88}

/* R62 · permisos incrementales de Google Workspace */
.aey-oauth-integrations-grid{display:grid;gap:14px}.aey-oauth-integration-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px;border:1px solid #dbe7f1;border-radius:14px;background:#fbfdff}.aey-oauth-integration-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8f2fb;color:#0e4f88;font-size:22px;font-weight:800}.aey-oauth-integration-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.aey-oauth-integration-heading h3{margin:0;font-size:16px;color:#082f4f}.aey-oauth-integration-content p{margin:5px 0 9px;color:#526b80;font-size:13px}.aey-oauth-details.compact{display:flex;gap:14px;flex-wrap:wrap;font-size:12px}.aey-oauth-integration-card>.aey-oauth-actions{justify-content:flex-end;flex-wrap:wrap}@media(max-width:760px){.aey-oauth-integration-card{grid-template-columns:38px minmax(0,1fr)}.aey-oauth-integration-card>.aey-oauth-actions{grid-column:1/-1;justify-content:stretch}.aey-oauth-integration-card>.aey-oauth-actions .aey-oauth-btn{flex:1}}@media(prefers-color-scheme:dark){.aey-oauth-integration-card{background:#10283a;border-color:#29465b}.aey-oauth-integration-heading h3{color:#e8f3fb}.aey-oauth-integration-content p,.aey-oauth-details.compact{color:#b7c8d6}.aey-oauth-integration-icon{background:#153b58;color:#8ec8f3}}
