/* Shared EG2 dialog language; layout-specific calendars and galleries stay intact. */
body .eg2-popup{--popup-blue:#004b7d;--popup-hover:#063b63;--popup-tint:#eaf3fa;--popup-field:#f0f3f8;--popup-text:#071b45;--popup-muted:#7b869c;background:#fff;color:var(--popup-text);border:0;border-radius:20px;box-shadow:0 24px 80px #121a3033;font-size:13px}
body dialog.eg2-popup{max-height:calc(100dvh - 32px)}
body .eg2-popup::backdrop,body .eg2-media-popup::backdrop{background:rgba(24,30,44,.72)}
body .eg2-popup.client-data-dialog{width:min(640px,calc(100% - 32px))}
body .eg2-popup[data-company-dialog],body .eg2-popup[data-branch-dialog]{width:min(760px,calc(100% - 32px))}
body .eg2-popup>form{background:#fff}
body .eg2-popup>header,body .eg2-popup>form>header{position:relative;display:block;min-height:0;padding:26px 28px 20px;border:0;background:transparent;text-align:center;box-shadow:none}
body .eg2-popup .client-data-dialog-heading{display:flex;flex-direction:column;justify-content:center;gap:12px;text-align:center}
body .eg2-popup .client-data-dialog-heading>span{display:grid;place-items:center;flex-basis:auto;align-self:center;width:40px;height:40px;border:0;border-radius:12px;background:var(--popup-tint);color:var(--popup-blue);box-shadow:none;font-size:20px}
body .eg2-popup header h2{margin:0 26px 8px;font-size:22px;font-weight:600;line-height:1.3;color:var(--popup-text)}
body .eg2-popup header p{max-width:440px;margin:0 auto;font-size:12px;line-height:1.6;color:var(--popup-muted)}
body .eg2-popup>header>button,body .eg2-popup>form>header>button{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:28px;height:28px;min-height:0;flex-basis:auto;padding:0;border:0;border-radius:50%;background:#f2f4f8;color:var(--popup-muted);font-size:14px;box-shadow:none}
body .eg2-popup>header>button:hover,body .eg2-popup>form>header>button:hover{background:var(--popup-tint);color:var(--popup-blue);transform:none}
body .eg2-popup .client-data-dialog-body,body .eg2-popup .monthly-dialog-body{padding:0 28px 16px;background:transparent}
body .eg2-popup label,body .eg2-popup legend{font-size:12px}
body .eg2-popup input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=color]),body .eg2-popup select,body .eg2-popup textarea{min-height:40px;border:1px solid transparent;border-radius:6px;padding:10px 12px;background:var(--popup-field);color:var(--popup-text);font-size:13px;box-shadow:none}
body .eg2-popup input[type=checkbox],body .eg2-popup input[type=radio]{accent-color:var(--popup-blue)}
body .eg2-popup .client-data-dialog-body select,body .eg2-popup .client-data-dialog-body textarea{border:1px solid transparent;border-radius:6px;background:var(--popup-field);color:var(--popup-text);font-size:13px;box-shadow:none}
body .eg2-popup input:focus-visible,body .eg2-popup select:focus-visible,body .eg2-popup textarea:focus-visible,body .eg2-popup button:focus-visible{outline:2px solid var(--popup-blue);outline-offset:3px}
body .eg2-popup>footer,body .eg2-popup>form>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0;padding:12px 28px 24px;border:0;background:transparent;box-shadow:none}
body .eg2-popup footer button{min-height:40px;min-width:0;margin:0;padding:10px 16px;border:0;border-radius:6px;font-size:13px;font-weight:600;box-shadow:none}
body .eg2-popup footer button[type=submit],body .eg2-popup footer .client-dialog-primary,body .eg2-popup footer .monthly-primary-button,body .eg2-popup footer [data-popup-accept]{min-width:0;background:var(--popup-blue);color:#fff;box-shadow:none}
body .eg2-popup footer button[type=submit]:hover,body .eg2-popup footer .client-dialog-primary:hover,body .eg2-popup footer .monthly-primary-button:hover,body .eg2-popup footer [data-popup-accept]:hover{background:var(--popup-hover)}
body .eg2-popup footer button:not([type=submit]):not([data-popup-accept]){background:transparent;color:var(--popup-muted)}
body .eg2-popup .monthly-dialog-symbol{color:var(--popup-blue)}
body .eg2-popup .monthly-dialog-badge{background:var(--popup-tint);color:var(--popup-blue)}
body .eg2-popup .monthly-channel-options label{background:var(--popup-field);color:var(--popup-text);border-color:transparent}
body .eg2-popup .monthly-channel-options label:has(input:checked){background:var(--popup-tint);border-color:#c5dceb;box-shadow:none}
body .eg2-popup .monthly-channel-options label:focus-within{outline-color:var(--popup-blue)}
body .eg2-popup .monthly-channel-options small{color:var(--popup-muted)}
body .eg2-popup .monthly-comparison-panel{background:#f8fafc;border:0}
body .eg2-popup .monthly-comparison-option{color:var(--popup-text)}
body .eg2-popup .monthly-comparison-option small{color:var(--popup-muted)}
body .eg2-popup .report-period-presets{border-color:#e5edf4}
body .eg2-popup .report-period-presets button.is-active{background:var(--popup-tint);color:var(--popup-blue)}
body .eg2-popup .social-post-metrics article{border:0;border-radius:10px;background:var(--popup-field)}
body .eg2-popup.social-post-dialog header h2{justify-content:center}
body .eg2-media-popup{border:0;border-radius:20px;box-shadow:0 24px 80px #121a3033}
body .eg2-popup.eg2-message-dialog{width:min(440px,calc(100% - 28px));padding:0}
body .eg2-popup .eg2-message-icon{display:grid;place-items:center;width:40px;height:40px;margin:0 auto 14px;border-radius:12px;background:var(--popup-tint);color:var(--popup-blue);font-size:20px}
body .eg2-popup .eg2-message-text{margin:0;padding:0 28px 20px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.7;text-align:center;color:var(--popup-muted)}
.dark body .eg2-popup{--popup-blue:#2385c5;--popup-hover:#176caa;--popup-tint:#1c3449;--popup-field:#252a37;--popup-text:#f3f5f8;--popup-muted:#aeb8c8;background:#181a20}
.dark body .eg2-popup>form{background:#181a20}
.dark body .eg2-popup>header>button,.dark body .eg2-popup>form>header>button{background:#292d39}
.dark body .eg2-popup .monthly-comparison-panel{background:#202737}
@media(max-width:640px){body .eg2-popup>header,body .eg2-popup>form>header{padding:24px 20px 18px}body .eg2-popup header h2{font-size:20px}body .eg2-popup .client-data-dialog-body,body .eg2-popup .monthly-dialog-body{padding:0 20px 14px}body .eg2-popup>footer,body .eg2-popup>form>footer{padding:12px 20px 20px}body .eg2-popup footer .client-dialog-primary{width:auto}body .eg2-popup.client-data-dialog,body .eg2-popup[data-company-dialog],body .eg2-popup[data-branch-dialog]{width:calc(100% - 24px)}}
