/* Independent final popup layer, including native top-layer dialogs. */
body dialog.mc-popup{inset:0!important;position:fixed!important;border:1px solid var(--ui-line,#edebe6)!important;background:var(--ui-surface,#fff)!important;color:var(--ui-ink,#2c2f33)!important;border-radius:18px!important;box-shadow:0 30px 95px #20232740!important;padding:0!important;overflow:auto!important}
body dialog.mc-popup.mc-confirm{padding:26px!important}
body dialog.mc-popup::backdrop{background:#26292d75!important;backdrop-filter:blur(5px)!important}
body dialog.mc-popup .modal-head{padding:18px 20px!important;gap:12px!important;background:var(--ui-soft,#fbfbfa)!important}
body dialog.mc-popup .modal-head h2{font-size:19px!important;line-height:1.3!important}
body dialog.mc-popup .modal-head p{font-size:11px!important;margin-top:4px!important}
body dialog.mc-popup .modal-head .title-icon{width:38px!important;height:38px!important;border-radius:11px!important}
body dialog.mc-popup .modal-head .title-icon svg{width:20px!important;height:20px!important}
body dialog.mc-popup .modal-head>button{width:28px!important;height:28px!important;font-size:19px!important}
body dialog.mc-popup .modal-actions{padding:14px 20px!important;margin-top:18px!important;background:var(--ui-soft,#fdfcfb)!important}
body dialog.mc-popup .modal-actions button{height:38px!important;min-height:38px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px}
body dialog.mc-popup .grid2{padding:20px!important;gap:16px!important}
.mc-form-section{margin:0 20px;padding:17px 0;border-bottom:1px solid var(--ui-line,#f2f1ed)}.mc-form-section:last-of-type{border-bottom:0}
.mc-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}.mc-section-heading>svg{width:28px;height:28px;padding:6px;background:#52627310;border-radius:8px;color:#526273}.mc-section-heading b{font-size:12px;color:var(--ui-ink,#2c2f33)}.mc-section-heading small{display:block;color:var(--ui-muted,#526273);font-size:10px;margin-top:3px}
.mc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.mc-span-two{grid-column:1/-1}
body dialog.mc-popup .mc-form-grid label{font-size:11px!important;line-height:1.5;font-weight:650!important;margin:0!important;min-width:0;color:var(--ui-muted,#526273)!important}.mc-form-grid label em{color:#ef526f;font-style:normal}
body dialog.mc-popup .mc-form-grid :is(input,select){height:39px!important;min-height:39px!important;margin-top:5px!important;padding:8px 10px!important;font-size:12px!important;border-radius:8px!important;background:var(--ui-surface,#fff)!important}
.mc-password-field{display:flex;align-items:center;gap:6px;margin-top:5px;border:1px solid var(--ui-line,#edebe6);border-radius:8px;padding:0 5px 0 0;min-width:0}
body dialog.mc-popup .mc-password-field input{border:0!important;margin:0!important;flex:1;width:0!important;min-width:0!important;background:transparent!important}
.mc-password-field button{height:29px;flex-shrink:0;border:0;border-radius:6px;background:#52627312;color:#526273;font-size:10px;padding:0 9px}.mc-password-field button svg{width:15px;height:15px}.mc-field-help{display:block;margin-top:6px;font-size:10px;color:var(--ui-muted,#526273);font-weight:400}
.mc-password-strength{position:relative;height:23px;margin-top:8px;text-align:right;font-size:10px;color:var(--ui-muted,#526273)}.mc-password-strength:before{content:"";position:absolute;right:0;top:0;width:130px;height:4px;background:var(--ui-line,#efede7);border-radius:6px}.mc-password-strength i{position:absolute;right:0;top:0;height:4px;max-width:130px;background:#f2798d;border-radius:6px}.mc-password-strength span{position:relative;top:9px}.mc-password-strength[data-level="4"] i{background:#22b886}.mc-access-note{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--ui-muted,#526273);margin:10px 0 0}.mc-access-note svg{width:13px;height:13px}
/* The app's global header styling must never apply to transcript/message headers. */
body dialog#caTranscript.mc-popup{display:flex!important;flex-direction:column!important;overflow:hidden!important}
body dialog#caTranscript:not([open]){display:none!important}
body dialog#caTranscript>header{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:20px 24px!important;background:var(--ui-soft,#fafaf8)!important;border-bottom:1px solid var(--ui-line,#efede8)!important;box-shadow:none!important;flex-shrink:0!important;color:var(--ui-ink,#2c2f33)!important}
body dialog#caTranscript>header small{font-size:10px!important;letter-spacing:1.8px;color:#526273!important}body dialog#caTranscript>header h2{margin:5px 0 0!important;color:var(--ui-ink,#2c2f33)!important;font-size:20px!important}body dialog#caTranscript>header button{height:31px!important;width:31px!important;border:1px solid var(--ui-line,#edebe6)!important;border-radius:9px!important;background:var(--ui-surface,#fff)!important;color:var(--ui-muted,#526273)!important;padding:6px!important}
#caTranscriptMeta{padding:12px 24px!important;margin:0!important;border-bottom:1px solid var(--ui-line,#f1efea);font-size:11px!important;line-height:1.7;color:var(--ui-muted,#526273)!important;overflow-wrap:anywhere;background:var(--ui-surface,#fff)}
body #d5d0c3vents{overflow-y:auto!important;min-height:100px;max-height:min(52dvh,520px)!important;padding:20px 24px!important;display:flex;flex-direction:column;gap:14px;background:var(--ui-soft,#fbfaf9)!important}
body #d5d0c3vents .ca-event{margin:0!important;max-width:88%!important;width:fit-content;border:1px solid var(--ui-line,#eeece7)!important;background:var(--ui-surface,#fff)!important;border-radius:14px 14px 14px 4px!important;padding:12px 15px!important;box-shadow:0 3px 10px #2b2e3205!important;align-self:flex-start!important}
body #d5d0c3vents .ca-event.agent{align-self:flex-end!important;background:#52627310!important;border-color:#52627333!important;border-radius:14px 14px 4px 14px!important}
body #d5d0c3vents .ca-event header{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;padding:0!important;display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;justify-content:space-between!important;gap:5px 15px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--ui-muted,#526273)!important;margin:0 0 7px!important}
body #d5d0c3vents .ca-event header b{font-size:11px!important;color:var(--ui-ink,#393c40)!important}body #d5d0c3vents .ca-event header time{font-size:9px!important;color:var(--ui-muted,#526273)!important;white-space:normal!important}body #d5d0c3vents .ca-event p{font-size:12px!important;line-height:1.75!important;color:var(--ui-ink,#393c40)!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;margin:0!important}
body #caTranscript>footer{background:var(--ui-surface,#fff)!important;border-top:1px solid var(--ui-line,#efede7)!important;padding:14px 24px!important;flex-shrink:0!important;display:flex!important;justify-content:flex-end!important}body #caTranscript>footer button{height:39px!important;border-radius:9px!important;border:0!important;padding:0 15px!important;font-size:11px!important}
@media(max-width:540px){.mc-form-grid{grid-template-columns:1fr}.mc-span-two{grid-column:auto}body #d5d0c3vents .ca-event{max-width:96%!important}body #d5d0c3vents{padding:16px!important}}
body .af-dialog,body .social-modal-box,body .shortcut-modal>div{max-width:min(540px,calc(100vw - 32px))!important;border-radius:18px!important;border:1px solid var(--ui-line,#edebe6)!important;background:var(--ui-surface,#fff)!important;color:var(--ui-ink,#2c2f33)!important;box-shadow:0 30px 95px #20232740!important}
body .af-head,body .social-modal-head{padding:18px 20px!important;background:var(--ui-soft,#fbfbfa)!important}body .af-head h3,body .social-modal-head h3{font-size:19px!important;line-height:1.3!important}body .af-body,body .social-modal-body{padding:20px!important}body .af-footer,body .social-modal-footer{padding:14px 20px!important;border-top:1px solid var(--ui-line,#edebe6)!important}

/* Cancel is a text action, never an icon-size or shrinking submit button. */
body button[data-popup-cancel]{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:88px!important;height:auto!important;min-height:44px!important;max-width:100%!important;padding:11px 18px!important;box-sizing:border-box!important;white-space:nowrap!important;line-height:1.3!important;font-size:13px!important;font-weight:600!important;border:1px solid var(--ui-line,#dbdde0)!important;border-radius:10px!important;background:var(--ui-surface,#fff)!important;color:var(--ui-ink,#3b3e42)!important;cursor:pointer}
body button[data-popup-cancel]:hover{background:var(--ui-soft,#f9f8f6)!important;border-color:var(--ui-accent,#526273)!important}
body button[data-popup-cancel]:focus-visible{outline:3px solid #526273!important;outline-offset:3px!important}
body dialog:is(.mc-popup,.bp-popup) :is(footer,.modal-actions,.bp-footer){flex-wrap:wrap!important;gap:12px!important}
body dialog:is(.mc-popup,.bp-popup) :is(footer,.modal-actions,.bp-footer)>button{flex-shrink:0!important;white-space:nowrap!important;max-width:100%!important}
body dialog.bp-popup .bp-footer>span{flex:1 1 180px!important;min-width:0!important;overflow-wrap:anywhere!important}
@media(max-width:600px){body dialog:is(.mc-popup,.bp-popup) .bp-footer>span{flex-basis:100%!important}body button[data-popup-cancel]{min-width:88px!important}}

body.mc-v852 dialog.mc-popup button[data-popup-cancel]{min-width:96px!important;min-height:44px!important;border-radius:11px!important;border:1px solid var(--ui-line,#e4e6e9)!important;background:var(--ui-soft,#fcfbfa)!important;color:var(--ui-ink,#494c50)!important;box-shadow:none!important;transition:background .15s,border-color .15s}
body.mc-v852 dialog.mc-popup button[data-popup-cancel]:hover{background:var(--ui-surface,#fff)!important;border-color:#526273!important}
