/* Secretarios y Tesoreros uses the established Portal de Obreros presentation. */
html body.office-portal{background:linear-gradient(145deg,#192e49,#0b1d33 58%,#071528)!important;color:#f7f4ec!important;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}
body.office-portal .office-shell{max-width:1280px;padding:24px;margin:auto}
body.office-portal .office-login-layout{display:flex;justify-content:center;align-items:center;min-height:calc(100svh - 90px);padding:24px 0}
body.office-portal .office-login-card{width:460px;max-width:100%;padding:32px 30px 28px;text-align:center;background:#182c44;border:1px solid #ffffff38;border-radius:28px;box-shadow:0 20px 60px #0004,inset 0 1px 0 #ffffff12}
body.office-portal .office-login-logo{display:block;width:140px;height:120px;object-fit:contain;margin:0 auto 14px}
body.office-portal .office-login-card h1{color:#f1d58c;font:900 29px/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.025em;margin:0 0 18px}
body.office-portal .office-login-subtitle{color:#fff8df;font-size:15px;font-weight:700;margin:0 0 24px}
body.office-portal .office-login-card form{display:grid;gap:13px}
body.office-portal .office-login-card input{height:49px;border:1px solid #d2d9e4;border-radius:12px;font-weight:700;padding:12px 15px}
body.office-portal .office-password-field{display:block;position:relative;background:#fff;border-radius:12px}
body.office-portal .office-password-field input{padding-right:64px}
body.office-portal .office-password-field button{top:8px;right:7px;height:32px;border-radius:20px;color:#172033;background:#fff;font-size:12px;font-weight:800;text-transform:uppercase}
body.office-portal .office-primary{background:#e5c36d;border:1px solid #e7cd8a;border-radius:12px;color:#172033;font-weight:900;letter-spacing:.04em;min-height:46px;box-shadow:0 8px 20px #0003}
body.office-portal .office-login-card .office-primary{text-transform:uppercase;width:100%}
body.office-portal .office-login-actions{display:grid;gap:9px;margin-top:25px;padding:0;border:0}
body.office-portal .office-access-divider{display:flex;align-items:center;gap:10px;margin:2px 0 4px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#f1d58c}
body.office-portal .office-access-divider::before,body.office-portal .office-access-divider::after{content:'';flex:1;height:1px;background:#d5b15a66}
body.office-portal .office-login-actions>button{display:block;width:100%;padding:10px 13px;text-align:left;border:1px solid #ffffff38;border-radius:8px;background:#223a57;color:#f3f6fb;box-shadow:0 8px 16px #0002}
body.office-portal .office-login-actions strong{display:block;font-size:12px;letter-spacing:.035em;text-transform:uppercase;line-height:1.4}
body.office-portal .office-login-actions small{display:block;color:#f3f6fb;font-size:12px;line-height:1.5}
body.office-portal .office-login-actions>button:hover{background:#2d4969;border-color:#d5b15a}
body.office-portal .office-login-note{color:#bdcce0;font-size:12px;margin:20px 0 12px}
body.office-portal .office-login-home{display:inline-block;color:#f1d58c;font-weight:800;font-size:14px;text-decoration:none;margin-top:4px}
body.office-portal .office-message{margin:14px 0 0;font-size:14px;text-align:left}
body.office-portal .office-footer{padding:20px 0 10px}
body.office-portal .office-dashboard-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
body.office-portal .office-dashboard-top>a{font-size:14px;color:#f1d58c;text-decoration:none;font-weight:700}
body.office-portal .office-profile-chip{display:flex;align-items:center;gap:10px;background:#182c44;border:1px solid #d5b15a66;border-radius:12px;padding:9px 12px;color:#d7e2ef;text-align:left;font-size:12px}
body.office-portal .office-profile-chip strong{display:block;color:#fff;font-size:14px}
body.office-portal .office-chip-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;overflow:hidden;background:#30455e;border:1px solid #d5b15a88;border-radius:50%;font-weight:800;color:#f1d58c}
body.office-portal .office-chip-avatar img{width:100%;height:100%;object-fit:cover}
body.office-portal .office-card{background:#182c44;border:1px solid #d5b15a55;border-radius:16px;box-shadow:0 16px 40px #0003;backdrop-filter:none}
body.office-portal .office-welcome{display:block;text-align:center;padding:30px 28px 28px;margin:0 0 18px}
body.office-portal .office-welcome .office-hero-logo{display:block;width:150px;height:160px;object-fit:contain;margin:0 auto 16px}
body.office-portal .office-portal-label{color:#f1d58c;font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin:0 0 14px}
body.office-portal .office-welcome h1{font:900 clamp(32px,5vw,56px)/1.05 Arial,Helvetica,sans-serif;letter-spacing:.025em;text-transform:uppercase;color:#fff;margin:0}
body.office-portal .office-welcome .office-verse{color:#efd28a;max-width:760px;margin:16px auto 0;font-size:14px;font-style:italic;line-height:1.65}
body.office-portal .office-verse span{display:block;margin-top:6px;font-style:normal;font-weight:700}
body.office-portal .office-welcome .office-home-subtitle{color:#f1e8d7;margin:16px auto 0;font-size:15px;line-height:1.8;max-width:760px}
body.office-portal .office-profile{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:center;gap:20px;margin:0 0 18px;padding:20px;text-align:left}
body.office-portal .office-profile-identity{display:flex;align-items:center;gap:20px;min-width:0}
body.office-portal .office-profile-identity>div{min-width:0}
body.office-portal .office-profile h2{color:#fff;font-size:clamp(22px,3vw,32px);font-weight:900;line-height:1.15;margin:0 0 8px;overflow-wrap:anywhere}
body.office-portal .office-profile p{color:#d2deec;font-size:14px;margin:3px 0;overflow-wrap:anywhere}
body.office-portal .office-avatar-large{width:88px;height:88px;border:2px solid #d5b15a99;font-size:28px}
body.office-portal .office-avatar-button{flex:none;grid-row:auto}
body.office-portal .office-avatar-edit{font-size:12px;background:#e5c36d;color:#172033}
body.office-portal .office-profile-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:0;grid-column:auto}
body.office-portal .office-profile-actions button{min-height:44px;border:1px solid #d5b15a77;background:#223a57;color:#fff8df;border-radius:10px;font-weight:700;font-size:13px!important}
body.office-portal .office-profile-actions button:last-child{background:#12243b;border-color:#ffffff38;color:#fff}
body.office-portal .office-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px}
body.office-portal .office-summary article{min-height:94px;padding:18px;background:#182c44;border:1px solid #d5b15a55;border-radius:14px;min-width:0}
body.office-portal .office-summary article>span{display:block;color:#f1d58c;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}
body.office-portal .office-summary strong{display:block;color:#fff;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
body.office-portal .office-workspace{display:block}
body.office-portal .office-community{border-radius:16px}
body.office-portal .office-community-header{padding:24px 24px 18px;align-items:center}
body.office-portal .office-community-header h2{color:#fff;font:900 25px/1.2 Arial,Helvetica,sans-serif;margin:0 0 8px}
body.office-portal .office-community-header p{color:#c9d6e7;font-size:14px;margin:0;line-height:1.6}
body.office-portal .office-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 24px 24px;border-bottom:1px solid #d5b15a44;overflow:visible}
body.office-portal .office-tabs button{display:grid;grid-template-columns:42px minmax(0,1fr);gap:3px 12px;align-items:center;padding:16px 14px;border:1px solid #ffffff30;border-radius:12px;text-align:left;white-space:normal;background:#223a57;color:#fff;min-width:0}
body.office-portal .office-tabs button svg{grid-row:1/3;width:38px;height:38px;fill:none;stroke:#f1d58c;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.office-portal .office-tabs button strong{font-size:15px;line-height:1.4}
body.office-portal .office-tabs button small{font-size:12px;color:#d7e2ef;line-height:1.4}
body.office-portal .office-tabs button.is-active{background:#30445b;border-color:#e5c36d;color:#fff}
body.office-portal .office-tabs button.is-active::after{display:none}
body.office-portal .office-tabs span{font-size:12px;background:#10243b;color:#f1d58c}
body.office-portal .office-panel-heading{padding:22px 24px 16px}
body.office-portal .office-panel-heading h3{font-size:18px;font-weight:800}
body.office-portal .office-chat-text{border-radius:10px;font-size:15px;background:#223a57;color:#f3f6fb}
body.office-portal .office-chat-message.is-mine .office-chat-text{background:#263b51;border-color:#d5b15a66}
body.office-portal .office-messages{padding:12px 24px 26px;height:480px}
body.office-portal .office-composer{padding:20px 24px;background:#12243b}
body.office-portal .office-poll{background:#1c324c;border-color:#d5b15a55;border-radius:12px}
body.office-portal .office-poll h4{font-size:18px;font-weight:800}
body.office-portal .office-member{background:#223a57;border-radius:12px}
body.office-portal .office-dialog{width:min(560px,calc(100vw - 28px));background:#182c44;color:#f3f6fb;border:1px solid #d5b15a88;border-radius:24px;padding:28px;box-shadow:0 24px 80px #0008;font-family:Arial,Helvetica,sans-serif}
body.office-portal .office-dialog-wide{width:min(950px,calc(100vw - 28px))}
body.office-portal .office-dialog-heading h2{font:800 25px/1.25 Arial,Helvetica,sans-serif;color:#f1d58c;margin:0}
body.office-portal .office-dialog label{font-size:14px;font-weight:700;color:#f3f6fb}
body.office-portal .office-dialog>p{font-size:14px;color:#d2deec}
body.office-portal .office-dialog .office-form-grid{grid-template-columns:1fr}
body.office-portal .office-dialog .office-primary{width:100%;text-transform:uppercase;font-size:14px}
body.office-portal .office-card-kicker{font-size:12px;letter-spacing:.07em}
@media(max-width:740px){
 body.office-portal .office-shell{padding:18px 16px}
 body.office-portal .office-login-layout{min-height:calc(100svh - 65px);padding:8px 0 14px}
 body.office-portal .office-login-card{padding:27px 22px 24px;border-radius:24px}
 body.office-portal .office-login-logo{width:125px;height:112px}
 body.office-portal .office-login-card h1{font-size:27px}
 body.office-portal .office-login-subtitle{font-size:14px}
 body.office-portal .office-dashboard-top{align-items:center;gap:10px}
 body.office-portal .office-dashboard-top>a{font-size:12px}
 body.office-portal .office-profile-chip{max-width:60%;padding:8px}
 body.office-portal .office-profile-chip strong{font-size:12px;overflow-wrap:anywhere}
 body.office-portal .office-chip-avatar{width:32px;height:32px;flex:none}
 body.office-portal .office-welcome{padding:26px 18px}
 body.office-portal .office-welcome .office-hero-logo{width:125px;height:138px}
 body.office-portal .office-welcome h1{font-size:34px}
 body.office-portal .office-portal-label{font-size:12px;letter-spacing:.08em}
 body.office-portal .office-profile{grid-template-columns:1fr;padding:20px;gap:20px}
 body.office-portal .office-profile-identity{gap:16px}
 body.office-portal .office-profile h2{font-size:23px}
 body.office-portal .office-profile p{font-size:13px}
 body.office-portal .office-avatar-large{width:72px;height:72px}
 body.office-portal .office-profile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.office-portal .office-summary{grid-template-columns:1fr;gap:10px}
 body.office-portal .office-summary article{min-height:0;padding:15px 18px}
 body.office-portal .office-summary strong{font-size:16px}
 body.office-portal .office-community-header{padding:22px 18px;flex-wrap:wrap;gap:10px}
 body.office-portal .office-community-header h2{font-size:24px}
 body.office-portal .office-tabs{grid-template-columns:1fr;padding:0 18px 20px;gap:10px}
 body.office-portal .office-tabs button{padding:14px 16px}
 body.office-portal .office-panel-heading{padding:20px 18px 12px}
 body.office-portal .office-panel-heading .office-primary{font-size:12px;min-height:40px}
 body.office-portal .office-messages{padding:12px 16px 20px;height:430px}
 body.office-portal .office-composer{padding:18px 16px}
 body.office-portal .office-dialog{padding:24px 20px}
 body.office-portal .office-dialog-heading h2{font-size:22px}
}
/* Older shared portal rules use !important; scope their equivalents here. */
html body.office-portal :is(h1,h2,h3,h4,h5,h6){font-family:Arial,Helvetica,sans-serif!important}
html body.office-portal .office-welcome{background:#182c44!important;padding:30px 28px 28px!important;border:1px solid #d5b15a55!important;border-radius:18px!important;min-height:0!important;text-align:center!important}
html body.office-portal .office-welcome h1{font-family:Arial,Helvetica,sans-serif!important;font-size:clamp(32px,5.2vw,56px)!important;font-weight:900!important;color:#fff!important;margin:0!important;letter-spacing:.025em!important;line-height:1.05!important;text-align:center!important}
html body.office-portal .office-welcome .office-portal-label{margin:0 0 14px!important}
html body.office-portal .office-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
html body.office-portal .office-profile{background:#182c44!important;border:1px solid #d5b15a55!important}
html body.office-portal .office-login-card h1{font-size:29px!important;font-weight:900!important;line-height:1.2!important;color:#f1d58c!important}
html body.office-portal .office-login-actions>button{border-radius:8px!important;background:#223a57!important;padding:10px 13px!important}
html body.office-portal .office-login-actions strong{font-size:12px!important;line-height:1.4!important;color:#f3f6fb!important}
html body.office-portal .office-login-actions small{font-size:12px!important;color:#f3f6fb!important;opacity:1!important}
@media(max-width:740px){html body.office-portal .office-summary{grid-template-columns:1fr!important}html body.office-portal .office-login-card h1{font-size:27px!important}html body.office-portal .office-welcome{padding:26px 18px!important}html body.office-portal .office-welcome h1{font-size:34px!important}}
html body.office-portal{background-color:#071528!important}
html body.office-portal .office-welcome{display:block!important;width:100%;min-width:0;overflow-wrap:anywhere}
html body.office-portal .office-profile{grid-template-columns:minmax(0,1fr) 250px!important;max-width:100%;min-width:0}
@media(max-width:740px){html body.office-portal .office-profile{grid-template-columns:minmax(0,1fr)!important}}

body.office-portal .office-confirm-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}body.office-portal .office-confirm-actions button{width:auto!important;min-height:44px;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:700}body.office-portal .office-confirm-cancel{border:1px solid #bdcce0;background:#223a57;color:#fff}
/* Keep every emoji reachable inside the scrolling chat, including on mobile. */
html body.office-portal .office-reactions{align-items:flex-start}
html body.office-portal .office-emoji-menu{position:static!important;inset:auto!important;display:grid;grid-template-columns:repeat(4,36px);gap:3px;width:max-content;max-width:100%;margin-top:6px;padding:5px;background:#12243b;border:1px solid #bdcce0;border-radius:10px}
html body.office-portal .office-emoji-menu button{display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:4px;font-size:20px;line-height:1.2;color:#fff;border-radius:6px}
html body.office-portal .office-emoji-menu button:is(:hover,:focus-visible){background:#304a68}
/* Fast sign-in options use the existing navy/gold portal controls. */
body.office-portal .office-save-password{display:flex!important;align-items:center;gap:9px!important;color:#d7e2ef!important;font-size:12px;text-align:left;font-weight:400}
body.office-portal .office-save-password input{width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0;flex:none;accent-color:#a88121}
body.office-portal .office-fast-login{display:grid;gap:9px;margin-top:16px}
body.office-portal .office-fast-login button{min-height:44px;padding:10px 14px;border:1px solid #d5b15a99;border-radius:12px;background:#12243b;color:#f1d58c;font-size:13px;font-weight:800;line-height:1.5}
body.office-portal .office-fast-login button:disabled{background:#24364d;color:#bdcce0;border-color:#718199;opacity:1;cursor:not-allowed}
body.office-portal .office-security-section{margin-top:24px;padding-top:22px;border-top:1px solid #d5b15a66}
body.office-portal .office-security-section h3{font-size:19px;color:#f1d58c;margin:0 0 12px}
body.office-portal .office-security-section p{font-size:14px;color:#d2deec;line-height:1.6}
body.office-portal .office-security-section button{margin-top:10px}
body.office-portal .office-passkey-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:14px;padding:14px;border:1px solid #bdcce066;border-radius:10px;background:#12243b}
body.office-portal .office-passkey-row strong,body.office-portal .office-passkey-row small{display:block;color:#f3f6fb}
body.office-portal .office-passkey-row small{font-size:12px;margin-top:5px}
body.office-portal .office-passkey-row button{background:#223a57;color:#f3f6fb;border:1px solid #bdcce0;border-radius:8px;padding:9px;margin:0;white-space:nowrap;font-size:12px}
body.office-portal #office-totp-qr{display:block;background:#fff;border-radius:8px;margin:14px 0;max-width:100%;height:auto}
body.office-portal #office-totp-secret{font:700 15px/1.5 monospace;letter-spacing:.02em}
body.office-portal #office-totp-enrollment{margin-top:18px}
body.office-portal #office-recovery-output{margin-top:20px;padding:18px;background:#12243b;border:1px solid #f1d58c;border-radius:12px}
body.office-portal #office-recovery-codes{white-space:pre-wrap;background:#fff;color:#172033;padding:16px;border-radius:8px;font:700 16px/1.7 monospace;user-select:all}
body.office-portal #office-totp-disable,body.office-portal #office-recovery-regenerate{display:block;padding:10px 0;color:#f1d58c}
@media(max-width:600px){body.office-portal .office-passkey-row{align-items:flex-start;flex-wrap:wrap}}

/* Unread alerts and encuesta participation. */
body.office-portal [data-message-count].has-unread,body.office-portal [data-poll-count].has-unread{background:#10243b!important;color:#ff6b7a!important;-webkit-text-fill-color:#ff6b7a!important;border:1px solid #ff6b7a;min-width:24px;min-height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-weight:800}
body.office-portal .office-poll-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
body.office-portal .office-poll-stats span{display:flex;flex-direction:column;gap:6px;background:#10253e;color:#fff3d3;border:1px solid #d2b66c66;border-radius:10px;padding:14px}
body.office-portal .office-poll-stats strong{font-size:24px;color:#f1d478}
body.office-portal .office-poll-pending{margin:16px 0;padding:14px;background:#10253e;color:#fff3d3;border-radius:10px}
body.office-portal .office-vote-confirmation{padding:14px;background:#123b30;color:#e2fff0;border:1px solid #75b69c;border-radius:10px}
body.office-portal #office-mark-chat-read,body.office-portal #office-mark-polls-read{padding:8px 12px;border-radius:10px;border:1px solid #d2b66c;background:#122640;color:#fff3d3}
@media(max-width:600px){body.office-portal .office-poll-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The entire unread tab glows red until its unread count clears. */
body.office-portal .office-tabs button:has([data-message-count].has-unread),
body.office-portal .office-tabs button:has([data-poll-count].has-unread){border-color:#ff6b7a!important;box-shadow:0 0 0 1px #ff5269,0 0 20px #ef334077,inset 0 0 12px #ef334018;animation:officeUnreadOutlinePulse 2s ease-in-out infinite}
body.office-portal .office-tabs button:has(.has-unread):focus-visible{outline-color:#ff6b7a}

@keyframes officeUnreadOutlinePulse{
  0%,100%{box-shadow:0 0 0 1px #ff5269,0 0 10px #ef33404d,inset 0 0 8px #ef334012}
  50%{box-shadow:0 0 0 2px #ff6b7a,0 0 28px #ff334fa6,inset 0 0 16px #ef33402e}
}
body.office-portal .office-tabs :is([data-message-count],[data-poll-count]).has-unread{animation:officeUnreadNumberPulse 2s ease-in-out infinite;transform-origin:center}
@keyframes officeUnreadNumberPulse{
  0%,100%{transform:scale(1);text-shadow:0 0 3px #ff52694d;box-shadow:0 0 3px #ef334033}
  50%{transform:scale(1.12);text-shadow:0 0 9px #ff5269cc;box-shadow:0 0 12px #ff334f99}
}
@media(prefers-reduced-motion:reduce){
 body.office-portal .office-tabs button:has(.has-unread),body.office-portal .office-tabs .has-unread{animation:none!important}
}
