/* AdvCorp R9: shared authenticated shell. The body scope deliberately outranks
   legacy portal !important rules, independently of stylesheet loading order. */
:root{--ac-navy:#071e3a;--ac-navy-2:#0b315d;--ac-blue:#1769e0;--ac-blue-2:#0e55bd;--ac-blue-soft:#eaf2ff;--ac-section-blue:#dbeaff;--ac-section-blue-strong:#c8def8;--ac-section-ink:#173a63;--ac-bg:#f3f6fa;--ac-panel:#fff;--ac-text:#132238;--ac-muted:#65758a;--ac-line:#dce4ee;--ac-line-soft:#edf1f6;--ac-mainbar:80px;--ac-subbar:44px;--ac-header:124px;--ac-gutter:28px;--ac-danger:#b33849;--ac-danger-soft:#fff0f2;--ac-success:#14815f;--ac-success-soft:#e8f7f1}
html.advcorp-shell-pending body{background:var(--ac-bg)!important}
html.advcorp-shell-pending body #app{visibility:hidden!important}
html.advcorp-shell-pending body #root{visibility:hidden!important}
body.portal.advcorp-shell-ready{
  margin:0!important;min-height:var(--eco-vh)!important;padding:var(--ac-header) 0 0!important;background:var(--ac-bg)!important;color:var(--ac-text)!important;overflow-x:clip;
  font:400 14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  --nav:var(--ac-navy);--nav-2:var(--ac-navy-2);--accent:var(--ac-blue);--accent-strong:var(--ac-blue-2);--accent-soft:var(--ac-blue-soft);
  --green:var(--ac-blue);--green2:var(--ac-blue-2);--mint:var(--ac-blue-soft);--blue:var(--ac-blue);--primary:var(--ac-blue);--primary-dark:var(--ac-blue-2);
  --gold:var(--ac-blue);--gold-deep:var(--ac-blue-2);--gold-soft:var(--ac-blue-soft);--studio-pink:var(--ac-blue);--studio-pink-soft:var(--ac-blue-soft);
  --eco-bg:var(--ac-bg);--eco-panel:#fff;--eco-ink:var(--ac-text);--eco-muted:var(--ac-muted);--eco-line:var(--ac-line);--eco-accent:var(--ac-blue);--eco-accent-strong:var(--ac-blue-2);--eco-accent-soft:var(--ac-blue-soft);--eco-accent-contrast:#fff;
  --eco-sidebar:var(--ac-navy);--eco-sidebar-active:var(--ac-navy-2);--eco-radius:12px;--eco-radius-sm:8px;--eco-shadow:0 2px 6px #071e3a06;--line:var(--ac-line);--muted:var(--ac-muted)
}
body.advcorp-shell-ready *,body.advcorp-shell-ready *::before,body.advcorp-shell-ready *::after{box-sizing:border-box}

/* Auth is outside the authenticated shell: never keep the global header/deck over login, registration or MFA enrollment. */
html.advcorp-auth-screen #advcorp-global-header,html.advcorp-auth-screen #ac-module-deck{display:none!important}
html.advcorp-auth-screen body.portal{padding-top:0!important;overflow:auto!important}
html.advcorp-auth-screen body.portal>#app,html.advcorp-auth-screen body.portal>#root{display:block!important}

/* Stable logo slot; only navigation scrolls at narrow widths. */
#advcorp-global-header{position:fixed;z-index:100;inset:0 0 auto;height:var(--ac-header);background:#fff;box-shadow:0 2px 8px #071e3a0a;font:500 14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif}
#advcorp-global-header .ac-mainbar{height:var(--ac-mainbar);display:flex;align-items:stretch;border-bottom:1px solid var(--ac-line)}
#advcorp-global-header .ac-brand{flex:0 0 206px;min-width:0;display:flex;align-items:center;gap:10px;padding:12px 22px;text-decoration:none;color:var(--ac-navy);background:#fff;border-right:1px solid var(--ac-line-soft)}
#advcorp-global-header .ac-brand img{display:block;width:46px;height:46px;flex:0 0 46px;object-fit:contain;border-radius:0}
#advcorp-global-header .ac-brand span{display:block;min-width:0}
#advcorp-global-header .ac-brand strong{display:block;white-space:nowrap;font-size:23px;font-weight:750;line-height:1.1;letter-spacing:-.8px}
#advcorp-global-header .ac-brand small{display:block;margin-top:5px;color:var(--ac-muted);font-size:10px;letter-spacing:.03em;white-space:nowrap}
#advcorp-global-header .ac-areas{display:flex;flex:0 1 auto;min-width:0;align-items:stretch;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#c9d9ee transparent;overscroll-behavior-x:contain}
#advcorp-global-header .ac-areas a{flex:none;min-width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px 12px 8px;position:relative;color:#52647c;text-decoration:none;font-size:11px;font-weight:600;white-space:nowrap}
#advcorp-global-header .ac-areas svg{width:22px;height:22px;flex:none;color:#547399}
#advcorp-global-header .ac-areas a:hover{background:#f5f8fd;color:var(--ac-blue)}
#advcorp-global-header .ac-areas a.active{background:#f0f5fd;color:var(--ac-blue-2)}
#advcorp-global-header .ac-areas a.active svg{color:var(--ac-blue)}
#advcorp-global-header .ac-areas a.active::after{content:"";position:absolute;inset:auto 16px 0;height:3px;border-radius:3px 3px 0 0;background:var(--ac-blue)}
#advcorp-global-header .ac-header-spacer{flex:1;min-width:8px}
#advcorp-global-header .ac-office{align-self:center;max-width:190px;min-width:0;padding:0 16px;text-align:right;border-right:1px solid var(--ac-line)}
#advcorp-global-header .ac-office strong,#advcorp-global-header .ac-office small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
#advcorp-global-header .ac-office small{margin-top:3px;font-size:11px;color:var(--ac-muted)}
#advcorp-global-header .ac-logout{align-self:center;flex:none;display:flex;align-items:center;gap:7px;min-height:36px;margin:0 20px 0 14px;padding:8px 11px;border:1px solid var(--ac-line);border-radius:8px;background:#fff;color:#52647c;font-size:12px;font-weight:600;cursor:pointer}
#advcorp-global-header .ac-logout svg{width:17px;height:17px}
#advcorp-global-header .ac-logout:hover{background:var(--ac-bg)}
#advcorp-global-header .ac-sectionbar{height:var(--ac-subbar);display:flex;align-items:stretch;background:var(--ac-blue);color:#fff;min-width:0}
#advcorp-global-header .ac-sectionbar>strong{display:flex;align-items:center;flex:0 0 206px;padding:0 28px;font-size:12px;font-weight:650;background:var(--ac-blue-2);color:#fff}
/* Only the subtitle strip to the right of the area label is softened. The main header and left area block keep the original AdvCorp colors. */
#advcorp-global-header .ac-subnav{display:flex;flex:1 1 auto;min-width:0;overflow-x:auto;background:#4f8ed6;scrollbar-width:thin;scrollbar-color:#8bb5e6 transparent;overscroll-behavior-x:contain}
#advcorp-global-header .ac-subnav a{display:flex;flex:none;align-items:center;padding:0 20px;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;text-decoration:none}
#advcorp-global-header .ac-subnav a:hover{background:#4784cc;color:#fff}
#advcorp-global-header .ac-subnav a.active{background:#3f79bd;box-shadow:inset 0 -3px #fff;color:#fff;font-weight:750}
#advcorp-global-header .ac-current{display:none}
body.portal.advcorp-shell-ready :is(a,button,input,select,textarea):focus-visible{outline:3px solid #1769e0!important;outline-offset:3px!important}
#advcorp-global-header :is(a,button):focus-visible{outline:2px solid currentColor!important;outline-offset:-4px!important}

/* Remove the obsolete sidebar AND its reserved width. */
body.advcorp-shell-ready .sidebar,body.advcorp-shell-ready .studio-sidebar,
body.portal.advcorp-shell-ready :is(.sidebar,.studio-sidebar,.mobile-menu,.content-topbar),body.portal.advcorp-shell-ready .portal-shell>.topbar{display:none!important}
body.portal.advcorp-shell-ready :is(.portal-shell,.shell,.studio-shell,.operational-shell){display:block!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:calc(var(--eco-vh) - var(--ac-header))!important;margin:0!important;padding:0!important;background:var(--ac-bg)!important}
body.portal.advcorp-shell-ready :is(.main,.studio-main){display:block!important;grid-column:1!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-width:0!important;background:var(--ac-bg)!important}
body.portal.advcorp-shell-ready :is(.portal-content,main.content,.main>.content,.studio-content){grid-column:1!important;width:100%!important;max-width:1660px!important;min-width:0!important;margin:0 auto!important;padding:26px var(--ac-gutter) 88px!important;background:var(--ac-bg)!important}
body.portal.advcorp-shell-ready main.content>*:not(.assistant-trigger):not(.assistant-panel){max-width:none!important;min-width:0;margin-left:0;margin-right:0}
body.portal.advcorp-shell-ready .studio-topbar{position:static!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;flex-wrap:wrap;gap:16px!important;min-height:0!important;width:100%!important;max-width:1660px!important;margin:0 auto!important;padding:26px var(--ac-gutter) 0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.portal.advcorp-shell-ready .studio-topbar>div:first-child{display:block!important;min-width:0}
body.portal.advcorp-shell-ready .studio-topbar .route-eyebrow{display:none!important}
body.portal.advcorp-shell-ready .studio-topbar h1{margin:0 0 6px!important;font-size:clamp(24px,2.1vw,30px)!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.035em!important;color:var(--ac-navy)!important}
body.portal.advcorp-shell-ready .studio-topbar p{margin:0!important;font-size:14px!important;line-height:1.6!important;color:var(--ac-muted)!important}
body.portal.advcorp-shell-ready .brand-controls .simple-brand-section{border-color:var(--ac-line)!important;border-radius:12px!important;box-shadow:none!important}
body.portal.advcorp-shell-ready .brand-controls .simple-section-head>span{color:var(--ac-blue-2)!important}

/* Shared typography, cards, controls and states. */
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head){display:flex!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap;gap:16px!important;margin:0 0 24px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important}
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head) .eyebrow{display:none!important}
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head) h1{margin:0 0 6px!important;font-size:clamp(24px,2.1vw,30px)!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.035em!important;color:var(--ac-navy)!important}
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head) p{margin:0!important;font-size:14px!important;line-height:1.6!important;color:var(--ac-muted)!important}
body.portal.advcorp-shell-ready :is(.card,.panel,.dashboard-card,.sync-panel,.integration-card,.unified-area-card){min-width:0!important;padding:20px!important;border:1px solid var(--ac-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 6px #071e3a04!important}
body.portal.advcorp-shell-ready :is(.section-head,.card-title){display:flex!important;flex-wrap:wrap;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 16px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.portal.advcorp-shell-ready :is(.section-head,.card-title) :is(h2,h3){margin:0!important;font-size:17px!important;line-height:1.4!important;font-weight:650!important;color:var(--ac-navy)!important}
body.portal.advcorp-shell-ready :is(.primary,.secondary,.ghost,.icon-btn){min-height:40px!important;padding:10px 15px!important;border:1px solid var(--ac-line)!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;line-height:1.3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;box-shadow:none!important;text-decoration:none!important;transform:none!important}
body.portal.advcorp-shell-ready .primary{background:var(--ac-blue)!important;border-color:var(--ac-blue)!important;color:#fff!important}
body.portal.advcorp-shell-ready .primary:hover{background:var(--ac-blue-2)!important;border-color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready :is(.secondary,.ghost,.icon-btn){background:#fff!important;color:#344b65!important}
body.portal.advcorp-shell-ready :is(.secondary,.ghost,.icon-btn):hover{background:var(--ac-blue-soft)!important;border-color:#b9cfee!important}
body.portal.advcorp-shell-ready .icon-btn{flex:0 0 40px;width:40px!important;padding:0!important}
body.portal.advcorp-shell-ready :is(.primary,.secondary,.ghost,.icon-btn) svg{width:17px!important;height:17px!important;flex:none}
body.portal.advcorp-shell-ready :is(input:where(:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range])),select,textarea){min-width:0!important;max-width:100%;min-height:42px;border:1px solid #d3deeb!important;border-radius:8px!important;padding:10px 12px!important;background:#fff!important;color:var(--ac-text)!important;font:400 13px/1.5 Inter,ui-sans-serif,system-ui,sans-serif!important;box-shadow:none!important}
body.portal.advcorp-shell-ready :is(input,textarea)::placeholder{color:#8a97a8!important;font-weight:400!important}
body.portal.advcorp-shell-ready :is(input[type=checkbox],input[type=radio]){width:16px!important;height:16px!important;min-height:0!important;flex:none;accent-color:var(--ac-blue)}
body.portal.advcorp-shell-ready :is(.form-grid,.dialog-grid,.task-create)>*{min-width:0}
body.portal.advcorp-shell-ready :is(.tabs,.page-tabs){display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin:0 0 20px!important;padding:5px!important;border:1px solid var(--ac-line)!important;border-radius:10px!important;background:#fff!important;overflow-x:auto!important}
body.portal.advcorp-shell-ready :is(.tabs,.page-tabs) button{flex:none;min-height:38px!important;padding:9px 14px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:var(--ac-muted)!important;font-size:13px!important;font-weight:600!important;white-space:nowrap}
body.portal.advcorp-shell-ready :is(.tabs,.page-tabs) button.active{background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important;box-shadow:none!important}
body.portal.advcorp-shell-ready .page-tabs button strong{background:#edf1f6!important;color:var(--ac-muted)!important}
body.portal.advcorp-shell-ready .page-tabs button.active strong{background:var(--ac-blue)!important;color:#fff!important}
body.portal.advcorp-shell-ready .badge{border-radius:6px!important;font-size:11px!important;font-weight:600!important;line-height:1.3!important;padding:5px 8px!important;background:#edf1f6!important;color:#52647c!important}
body.portal.advcorp-shell-ready .badge.red{background:#fff0f2!important;color:#b33048!important}
body.portal.advcorp-shell-ready .badge.blue{background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready .badge.green{background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready .badge:is(.OVERDUE,.intimation-capture_failed){background:#fff0f2!important;color:#b33048!important}
body.portal.advcorp-shell-ready .badge:is(.PAID,.ACTIVE,.ACCEPTED,.REIMBURSED,.COMPLETED,.deadline-completed,.intimation-treated){background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready .badge:is(.PENDING,.SENT,.REVIEW,.deadline-suggested,.intimation-new,.intimation-unidentified){background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready .badge:is(.ANALYZING,.DRAFTING,.deadline-confirmed,.intimation-analyzing,.intimation-linked){background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready .avatar{background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready :is(.table-wrap,.table-container,.data-table-wrap){width:100%;min-width:0;overflow:auto!important;border:1px solid var(--ac-line)!important;border-radius:10px!important;background:#fff!important}
body.portal.advcorp-shell-ready table{width:100%!important;border-collapse:collapse!important;border-spacing:0!important;background:#fff!important;color:var(--ac-text)!important}
body.portal.advcorp-shell-ready table thead th{padding:12px 14px!important;border:0!important;border-bottom:1px solid var(--ac-line)!important;background:#f6f8fb!important;color:#65758a!important;font-size:11px!important;font-weight:650!important;line-height:1.4!important;text-transform:none!important;letter-spacing:0!important;text-align:left!important;white-space:nowrap!important}
body.portal.advcorp-shell-ready table tbody td{padding:14px!important;border:0!important;border-bottom:1px solid var(--ac-line-soft)!important;background:#fff!important;font-size:13px!important;line-height:1.5!important;vertical-align:middle!important}
body.portal.advcorp-shell-ready table tbody tr:last-child td{border-bottom:0!important}
body.portal.advcorp-shell-ready table tbody tr:hover td{background:#f8faff!important}
body.portal.advcorp-shell-ready table td>strong,body.portal.advcorp-shell-ready table td>small{display:block}
body.portal.advcorp-shell-ready table td>small{margin-top:3px;color:var(--ac-muted);font-size:11px}

/* Operational dashboard. */
body.portal-corp.advcorp-shell-ready:has(.ac-workbench) .page-intro{display:none!important}
.ac-workbench{display:grid;gap:22px;min-width:0}
.ac-workbench-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:0 0 2px}
.ac-workbench-title h1{margin:0 0 6px!important;font-size:30px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.035em!important;color:var(--ac-navy)!important}
.ac-workbench-title>span{display:block;font-size:12px;color:var(--ac-muted)}
.ac-workbench-actions{display:flex;flex-wrap:wrap;gap:8px}
.ac-stat-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.ac-stat{min-width:0;min-height:118px;padding:18px 16px;border:1px solid var(--ac-line);border-radius:12px;background:#fff;box-shadow:0 2px 6px #071e3a04}
.ac-stat span,.ac-stat small{display:block;color:var(--ac-muted)}.ac-stat span{font-size:12px;font-weight:550;line-height:1.5}
.ac-stat strong{display:block;margin:10px 0 5px;color:var(--ac-navy);font-size:clamp(20px,1.7vw,27px);line-height:1.2;font-weight:700;letter-spacing:-.04em;overflow-wrap:anywhere}.ac-stat small{font-size:11px}
.ac-stat.is-critical{background:var(--ac-danger-soft);border-color:#e8c5cb}.ac-stat.is-critical strong{color:var(--ac-danger)}.ac-stat-link{display:block;width:100%;font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}.ac-stat-link:hover{border-color:#d8e4f3;box-shadow:0 8px 18px #071e3a0d;transform:translateY(-1px)}.ac-stat-link:focus-visible{outline:2px solid var(--ac-blue);outline-offset:2px}.ac-stat-link strong,.ac-stat-link span,.ac-stat-link small{pointer-events:none}
.ac-ops-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:stretch;min-width:0}
.ac-ops-panel{min-width:0;border:1px solid var(--ac-line);border-radius:12px;background:#fff;overflow:hidden}.ac-ops-grid>.ac-ops-panel{display:flex;flex-direction:column;min-height:100%}.ac-ops-panel-queue .table-wrap{flex:1;min-height:340px}
.ac-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:65px;padding:18px 20px;border-bottom:1px solid var(--ac-line-soft)}
.ac-panel-head strong{display:block;font-size:15px;font-weight:650;color:var(--ac-navy)}.ac-panel-head span{display:block;margin-top:3px;font-size:12px;color:var(--ac-muted)}.ac-panel-head a{flex:none;font-size:12px;font-weight:600;color:var(--ac-blue);text-decoration:none}
body.portal.advcorp-shell-ready .ac-ops-panel>.table-wrap{border:0!important;border-radius:0!important}
.ac-queue-table{min-width:810px}.ac-queue-table td:first-child{min-width:165px}
.ac-queue-row{position:relative}.ac-queue-link{color:var(--ac-text);font-weight:650;text-decoration:none}.ac-queue-link::after{content:"";position:absolute;inset:0;z-index:1;cursor:pointer}.ac-queue-link:focus-visible{outline:none}.ac-queue-link:focus-visible::after{outline:2px solid var(--ac-blue);outline-offset:-3px;border-radius:6px}
body.portal.advcorp-shell-ready .ac-queue-row:focus-within td{background:var(--ac-blue-soft)!important}
.ac-row-link{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--ac-line);border-radius:7px;background:#fff;color:var(--ac-blue);text-decoration:none;font-size:20px;font-weight:600}
.ac-status{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:6px;background:#edf2f7;color:#52647c;font-size:11px;font-weight:600;white-space:nowrap}.ac-status.info{background:var(--ac-blue-soft);color:var(--ac-blue-2)}.ac-status.critical{background:var(--ac-danger-soft);color:var(--ac-danger)}
.ac-side-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:54px;padding:14px 20px;border-bottom:1px solid var(--ac-line-soft);text-decoration:none;color:var(--ac-text)}
.ac-side-row:last-child{border-bottom:0}.ac-side-row:hover{background:#f8faff}.ac-side-row span{font-size:12px}.ac-side-row b{display:grid;place-items:center;min-width:28px;height:28px;border-radius:7px;background:#f1f5fa;color:#52647c;font-size:13px;font-weight:600}.ac-side-row.critical b{background:var(--ac-danger-soft);color:var(--ac-danger)}
.ac-schedule{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:6px 12px 14px;gap:6px}.ac-day{padding:14px 8px 10px;text-align:center;border:1px solid transparent;border-radius:9px;background:#f8fafc}.ac-day.has-appointments{background:var(--ac-blue-soft);border-color:#d2e3fc}.ac-day-link{display:block;width:100%;font:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}.ac-day-link:hover{border-color:#c7d9f4;box-shadow:0 8px 18px #071e3a0d;transform:translateY(-1px)}.ac-day-link:focus-visible{outline:2px solid var(--ac-blue);outline-offset:2px}
.ac-day span,.ac-day small{display:block;font-size:11px;color:var(--ac-muted)}.ac-day strong{display:block;margin:8px 0 3px;font-size:22px;font-weight:650;color:var(--ac-navy)}.ac-day-meter{height:4px;margin:12px 4px 0;background:#e2eaf4;border-radius:4px;overflow:hidden}.ac-day-meter i{display:block;height:100%;background:var(--ac-blue)}

/* Inbox: flexible identity/actions and independent message/list scrolling. */
body.portal.advcorp-shell-ready .inbox{display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;width:100%!important;height:calc(var(--eco-dvh) - var(--ac-header) - 52px)!important;min-height:540px!important;max-height:none!important;margin:0!important;border:1px solid var(--ac-line)!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 2px 6px #071e3a04!important}
body.portal.advcorp-shell-ready .inbox .conversation-list{display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;height:auto!important;min-height:0!important;border-right:1px solid var(--ac-line)!important;background:#fff!important;overflow:hidden!important}
body.portal.advcorp-shell-ready .conversation-list-head{padding:20px 18px 14px!important;gap:12px}
body.portal.advcorp-shell-ready .conversation-list-head h2{font-size:21px!important;font-weight:650;color:var(--ac-navy)!important;line-height:1.3!important;margin:0!important}
body.portal.advcorp-shell-ready .conversation-list-head span{font-size:9px!important;letter-spacing:.08em!important;color:var(--ac-muted)!important;margin-bottom:5px!important}
body.portal.advcorp-shell-ready .conversation-total{background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important;font-size:13px!important;border-radius:8px!important}
body.portal.advcorp-shell-ready .conversation-tools{padding:0 16px 12px!important}
body.portal.advcorp-shell-ready .conversation-search{display:flex;gap:8px;align-items:center;border:1px solid var(--ac-line)!important;border-radius:8px!important;background:#f8fafc!important;padding:0 10px!important}
body.portal.advcorp-shell-ready .conversation-search svg{width:17px!important;flex:none;color:var(--ac-muted)!important}
body.portal.advcorp-shell-ready .conversation-search input{border:0!important;padding:10px 0!important;background:transparent!important;font-size:12px!important;min-height:40px!important}
body.portal.advcorp-shell-ready .inbox .advzap-queue-cards{position:static!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0 16px 16px!important;gap:6px!important;border-bottom:1px solid var(--ac-line)!important}
body.portal.advcorp-shell-ready .inbox .advzap-queue-cards button{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:42px!important;padding:8px!important;border:1px solid var(--ac-line)!important;border-radius:7px!important;background:#f8fafc!important;color:#52647c!important;font-size:10px!important;font-weight:600!important;text-align:left;white-space:normal;box-shadow:none!important}
body.portal.advcorp-shell-ready .inbox .advzap-queue-cards button.active{background:var(--ac-blue)!important;border-color:var(--ac-blue)!important;color:#fff!important}
body.portal.advcorp-shell-ready .inbox .advzap-queue-cards strong{display:grid;place-items:center;flex:none;min-width:20px!important;height:20px!important;border-radius:5px!important;font-size:10px!important;background:#e8eef6!important;color:#65758a!important}
body.portal.advcorp-shell-ready .inbox .advzap-queue-cards button.active strong{background:#ffffff30!important;color:#fff!important}
body.portal.advcorp-shell-ready .conversation-scroll{min-height:0;overflow:auto}
body.portal.advcorp-shell-ready .inbox .conversation{padding:16px!important;border:0!important;border-bottom:1px solid var(--ac-line-soft)!important;border-left:3px solid transparent!important;border-radius:0!important;background:#fff!important;gap:10px!important}
body.portal.advcorp-shell-ready .inbox .conversation.active{background:#f0f5fd!important;border-left-color:var(--ac-blue)!important}
body.portal.advcorp-shell-ready .inbox .conversation::before{display:none!important}
body.portal.advcorp-shell-ready .inbox .unread{background:var(--ac-blue)!important}
body.portal.advcorp-shell-ready .conversation .line{gap:8px}body.portal.advcorp-shell-ready .conversation time{flex:none}
body.portal.advcorp-shell-ready .conversation .line strong{font-size:13px!important;font-weight:650!important;color:var(--ac-navy)!important}
body.portal.advcorp-shell-ready .conversation p{font-size:12px!important;color:var(--ac-muted)!important;margin:5px 0 9px!important}
body.portal.advcorp-shell-ready .conversation-tags{display:flex;flex-wrap:wrap;gap:5px}
body.portal.advcorp-shell-ready .inbox .chat{display:grid!important;grid-template-rows:auto auto minmax(0,auto) minmax(96px,1fr) auto!important;height:100%!important;min-height:0!important;min-width:0;background:#f7f9fc!important;overflow:hidden}
body.portal.advcorp-shell-ready .inbox .chat-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;padding:18px 20px!important;min-height:92px!important;background:#fff!important;border-bottom:1px solid var(--ac-line)!important}
body.portal.advcorp-shell-ready .inbox .chat-contact{flex:1 1 200px!important;min-width:0!important}
body.portal.advcorp-shell-ready .inbox .chat-contact>strong{font-size:17px!important;font-weight:650!important;line-height:1.4!important;color:var(--ac-navy)!important;overflow-wrap:anywhere}
body.portal.advcorp-shell-ready .inbox .chat-contact>small{font-size:11px!important;color:var(--ac-muted)!important;white-space:normal!important;overflow-wrap:anywhere}
body.portal.advcorp-shell-ready .inbox .current-channel-row{flex-wrap:wrap;font-size:10px!important;color:var(--ac-muted)!important;font-weight:500!important;margin-top:7px!important}
body.portal.advcorp-shell-ready .inbox .chat-actions{display:flex!important;flex:0 1 auto!important;flex-wrap:wrap!important;gap:8px!important;margin-left:auto!important}
body.portal.advcorp-shell-ready .inbox .chat-actions :is(.primary,.secondary){width:auto!important;height:auto!important;min-height:38px!important;padding:9px 12px!important;font-size:12px!important}
body.portal.advcorp-shell-ready .inbox .collection-strip{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:0!important;background:#fff!important;border-bottom:1px solid var(--ac-line)!important}
body.portal.advcorp-shell-ready .collection-strip>span{display:flex!important;align-items:center!important;gap:6px;flex-wrap:wrap;padding:10px 16px!important;border-right:1px solid var(--ac-line-soft)!important;color:var(--ac-muted)!important;font-size:11px!important}
body.portal.advcorp-shell-ready .collection-strip strong{color:var(--ac-navy)!important;font-size:12px!important}
body.portal.advcorp-shell-ready .inbox .chat-context{min-height:0;max-height:250px;overflow:auto;background:#fff!important;border-bottom:1px solid var(--ac-line)!important}
body.portal.advcorp-shell-ready .inbox .case-summary{display:flex!important;gap:9px!important;padding:11px 18px!important;background:var(--ac-blue-soft)!important;border-bottom:1px solid #d7e5f6!important;color:#315f93!important;font-size:12px!important;line-height:1.5!important}
body.portal.advcorp-shell-ready .case-summary>svg{flex:none}
body.portal.advcorp-shell-ready .inbox .case-summary>div{display:block!important;min-width:0;overflow:visible!important}
body.portal.advcorp-shell-ready .inbox .case-summary span{display:inline!important;margin-left:7px;white-space:normal!important;overflow:visible!important;font-size:12px!important}
body.portal.advcorp-shell-ready .inbox .reply-route-strip{padding:12px 18px!important;background:#fff!important}
body.portal.advcorp-shell-ready .inbox .reply-route-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;gap:12px!important}
body.portal.advcorp-shell-ready .inbox .reply-route-row label{width:auto!important;min-width:0!important;max-width:none!important;color:var(--ac-muted)!important;font-size:11px!important;font-weight:550!important}
body.portal.advcorp-shell-ready .inbox .reply-route-row :is(select,input){width:100%!important;height:40px!important;min-height:40px!important;padding:8px 10px!important;font-size:12px!important}
body.portal.advcorp-shell-ready .inbox .reply-channel-state{font-size:10px!important;font-weight:400!important;line-height:1.4!important}
body.portal.advcorp-shell-ready .inbox .messages{min-height:0!important;overflow:auto!important;padding:20px!important;background:#f6f8fc!important;background-image:none!important}
body.portal.advcorp-shell-ready .message{max-width:min(78%,580px)!important;padding:12px 15px!important;border:1px solid var(--ac-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;overflow-wrap:anywhere}
body.portal.advcorp-shell-ready .message.outbound{background:#eaf2ff!important;border-color:#d7e5fb!important}
body.portal.advcorp-shell-ready .message p{font-size:13px!important;line-height:1.6!important;color:var(--ac-text)!important}
body.portal.advcorp-shell-ready .message small{color:var(--ac-muted)!important}
body.portal.advcorp-shell-ready .inbox .composer-clean{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:12px!important;padding:14px 18px!important;position:static!important;background:#fff!important;border-top:1px solid var(--ac-line)!important}
body.portal.advcorp-shell-ready .inbox .composer-clean .composer-textarea{height:80px!important;min-height:80px!important;max-height:160px!important;resize:vertical!important;padding:12px!important}
body.portal.advcorp-shell-ready .inbox .composer-clean-actions .composer-send{min-width:92px!important}
body.portal.advcorp-shell-ready:has(.inbox) .assistant-trigger{bottom:10px!important;right:28px!important;min-height:30px!important;height:30px!important;padding:5px 10px!important;font-size:11px!important;box-shadow:none!important}
body.portal.advcorp-shell-ready:has(.inbox) .assistant-trigger :is(svg,span:first-child){width:16px!important;height:16px!important}
body.portal.advcorp-shell-ready:has(.inbox) main.content{padding-bottom:26px!important}

/* Tasks and the administrative / digital presence indexes. */
body.portal.advcorp-shell-ready .task-create{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(190px,1fr) minmax(130px,.65fr) auto!important;align-items:end!important;gap:16px!important}
body.portal.advcorp-shell-ready .task-create label{display:grid!important;gap:8px!important;font-size:12px!important;font-weight:550!important;color:#52647c!important}
body.portal.advcorp-shell-ready .task-create :is(input,select){width:100%;margin:0!important}
body.portal.advcorp-shell-ready .task-item{display:flex;align-items:flex-start!important;gap:16px;padding:18px!important;border:1px solid var(--ac-line)!important;border-radius:10px!important;background:#fff!important}
body.portal.advcorp-shell-ready .task-item>div:first-child{min-width:0;flex:1}
body.portal.advcorp-shell-ready .task-item strong{font-size:15px!important;font-weight:600!important;color:var(--ac-navy)!important;overflow-wrap:anywhere}
body.portal.advcorp-shell-ready .task-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--ac-muted)!important;font-size:12px!important}
body.portal.advcorp-shell-ready .task-actions{display:flex;flex:none;gap:6px}
body.portal.advcorp-shell-ready .task-item a{color:var(--ac-blue-2)!important;font-size:12px!important;font-weight:600!important}
body.portal.advcorp-shell-ready .unified-area-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
body.portal.advcorp-shell-ready .unified-area-hero{display:none!important}
body.portal.advcorp-shell-ready :is(.ac-admin-index,.studio-index){display:grid;width:100%;border:1px solid var(--ac-line);border-radius:12px;overflow:hidden;background:#fff}
.ac-admin-index>header,.studio-index>header{display:grid;grid-template-columns:minmax(0,1fr) 180px 44px;gap:16px;align-items:center;min-height:42px;padding:0 20px;background:#f6f8fb;color:var(--ac-muted);font-size:11px;font-weight:600}
body.portal.advcorp-shell-ready :is(.ac-admin-row,.studio-index>button){display:grid!important;grid-template-columns:minmax(0,1fr) 180px 44px!important;gap:16px!important;align-items:center!important;min-height:76px!important;width:100%!important;padding:16px 20px!important;border:0!important;border-top:1px solid var(--ac-line-soft)!important;border-radius:0!important;background:#fff!important;color:var(--ac-text)!important;text-align:left!important}
body.portal.advcorp-shell-ready :is(.ac-admin-row,.studio-index>button):hover{background:#f8faff!important}
body.portal.advcorp-shell-ready :is(.studio-index>header,.studio-index>button){grid-template-columns:240px minmax(0,1fr) 44px!important}
.ac-admin-row>div strong,.ac-admin-row>div small{display:block}.ac-admin-row>div strong,.studio-index>button>strong{font-size:14px;font-weight:600;color:var(--ac-navy)}
.ac-admin-row>div small,.studio-index>button>span{margin-top:4px;font-size:12px;line-height:1.5;color:var(--ac-muted)}.ac-admin-row>span{font-size:12px;color:var(--ac-muted)}.ac-admin-row>b,.studio-index>button>b{text-align:center;font-size:20px;color:var(--ac-blue)}
.studio-statusbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin:0 0 20px;padding:20px;border:1px solid var(--ac-line);border-radius:12px;background:#fff}
.studio-statusbar>div:first-child strong,.studio-statusbar>div:first-child small{display:block}.studio-statusbar>div:first-child strong{font-size:20px;color:var(--ac-navy);font-weight:650}.studio-statusbar small{margin-top:5px;font-size:12px;color:var(--ac-muted)}
.studio-sync{display:grid;grid-template-columns:9px auto;column-gap:7px;align-items:center}.studio-sync i{width:7px;height:7px;border-radius:50%;background:#a0aebe}.studio-sync.live i{background:#22a56d}.studio-sync span{font-size:12px;font-weight:600}.studio-sync small{grid-column:2;font-size:11px}
body.portal.advcorp-shell-ready .welcome-card{display:grid!important;grid-template-columns:minmax(0,1fr) 260px!important;gap:20px!important;width:100%!important;padding:24px!important;border:1px solid var(--ac-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
body.portal.advcorp-shell-ready .flow-grid{display:grid!important;grid-template-columns:repeat(5,minmax(150px,1fr))!important;gap:12px!important;overflow-x:auto}
body.portal.advcorp-shell-ready .flow-grid button{padding:16px!important;border:1px solid var(--ac-line)!important;border-radius:10px!important;background:#fff!important}
body.portal.advcorp-shell-ready :is(.product-badge,.ops-module-logo){display:none!important}
body.portal.advcorp-shell-ready :is(.progress-bar span,.dossier-timeline>div>span){background:var(--ac-blue)!important}
body.portal.advcorp-shell-ready :is(.assistant-trigger,.studio-help){right:20px!important;bottom:18px!important;border-radius:24px!important;background:var(--ac-blue)!important;color:#fff!important;font-size:12px!important;min-height:40px!important;padding:10px 14px!important;box-shadow:0 4px 14px #1769e024!important;z-index:90!important}
body.portal.advcorp-shell-ready :is(.assistant-panel,.studio-help-panel){z-index:150!important;max-width:calc(var(--eco-vw) - 24px)!important;max-height:calc(var(--eco-dvh) - var(--ac-header) - 24px)!important}
body.portal.advcorp-shell-ready :is(.modal-backdrop,.modal-overlay,.dialog-backdrop,.overlay){z-index:200!important}

@media(max-width:1400px){
  #advcorp-global-header .ac-office{display:none}
  .ac-ops-grid{grid-template-columns:minmax(0,1fr)}
  .ac-side-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ac-side-row{border-right:1px solid var(--ac-line-soft)}
}
@media(max-width:1200px){
  :root{--ac-gutter:22px}
  #advcorp-global-header .ac-brand{flex-basis:184px;padding:12px 16px;gap:8px}
  #advcorp-global-header .ac-brand strong{font-size:22px}
  #advcorp-global-header .ac-sectionbar>strong{flex-basis:184px;padding:0 22px}
  #advcorp-global-header .ac-areas a{min-width:70px;padding-inline:10px}
  #advcorp-global-header .ac-logout{margin-inline:10px}
  #advcorp-global-header .ac-logout span{display:none}
  .ac-stat-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.portal.advcorp-shell-ready .inbox{grid-template-columns:290px minmax(0,1fr)!important}
  body.portal.advcorp-shell-ready .inbox .chat-actions{flex-basis:100%!important;margin-left:58px!important}
}
@media(max-width:960px){
  body.portal.advcorp-shell-ready .task-create{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal.advcorp-shell-ready .task-create .primary{justify-self:start}
  body.portal.advcorp-shell-ready :is(.unified-area-grid,.knowledge-grid,.team-grid,.management-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ac-side-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.portal.advcorp-shell-ready .inbox{grid-template-columns:270px minmax(0,1fr)!important;min-height:780px!important}
  body.portal.advcorp-shell-ready .inbox .reply-route-row{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
  :root{--ac-gutter:16px}
  body.portal.advcorp-shell-ready :is(.portal-content,main.content,.main>.content,.studio-content){padding-top:20px!important}
  body.portal.advcorp-shell-ready :is(.form-grid,.dialog-grid,.unified-area-grid,.knowledge-grid,.team-grid,.management-grid,.welcome-card){grid-template-columns:minmax(0,1fr)!important}
  body.portal.advcorp-shell-ready :is(.metric-grid,.metrics,.stats){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal.advcorp-shell-ready .inbox{display:block!important;height:auto!important;min-height:0!important}
  body.portal.advcorp-shell-ready .inbox .conversation-list{height:420px!important;border-right:0!important;border-bottom:1px solid var(--ac-line)!important}
  body.portal.advcorp-shell-ready .inbox .chat{height:auto!important;grid-template-rows:auto auto auto minmax(260px,360px) auto!important}
  body.portal.advcorp-shell-ready .inbox .chat-actions{margin-left:0!important}
  body.portal.advcorp-shell-ready .inbox .reply-route-row{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important}
  body.portal.advcorp-shell-ready .inbox .chat-context{max-height:none}
  body.portal.advcorp-shell-ready .inbox .composer-clean{grid-template-columns:minmax(0,1fr)!important}
  body.portal.advcorp-shell-ready:has(.inbox) main.content{padding-bottom:60px!important}
  .ac-admin-index>header,.studio-index>header{grid-template-columns:minmax(0,1fr) 28px}
  .ac-admin-index>header>*:nth-child(2),.studio-index>header>*:nth-child(2){display:none}
  body.portal.advcorp-shell-ready :is(.ac-admin-row,.studio-index>button){grid-template-columns:minmax(0,1fr) 28px!important;gap:8px!important;padding:16px!important}
  .ac-admin-row>span,.studio-index>button>span{grid-column:1;grid-row:2}.ac-admin-row>b,.studio-index>button>b{grid-column:2;grid-row:1/3}
}
@media(max-width:620px){
  :root{--ac-mainbar:112px;--ac-header:156px}
  #advcorp-global-header .ac-mainbar{flex-wrap:wrap;align-content:start;position:relative}
  #advcorp-global-header .ac-brand{height:52px;flex:1;padding:7px 16px;border:0;gap:8px}
  #advcorp-global-header .ac-brand img{width:34px;height:34px;flex-basis:34px}
  #advcorp-global-header .ac-brand strong{font-size:21px}
  #advcorp-global-header .ac-brand small{display:none}
  #advcorp-global-header .ac-areas{order:3;flex:0 0 100%;height:60px;border-top:1px solid var(--ac-line-soft)}
  #advcorp-global-header .ac-areas a{min-width:76px;padding:5px 12px;gap:4px;font-size:10px}
  #advcorp-global-header .ac-areas svg{width:20px;height:20px}
  #advcorp-global-header .ac-logout{height:32px;min-height:32px;margin:8px 16px}
  #advcorp-global-header .ac-logout span{display:inline}
  #advcorp-global-header .ac-header-spacer,#advcorp-global-header .ac-sectionbar>strong{display:none}
  #advcorp-global-header .ac-subnav{width:100%}
  #advcorp-global-header .ac-subnav a{padding:0 16px;font-size:12px}
  .ac-workbench-title h1{font-size:25px!important}.ac-workbench-actions{width:100%}.ac-workbench-actions .primary{flex-basis:100%}.ac-workbench-actions .secondary{flex:1}
  .ac-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ac-stat{min-height:115px;padding:15px 12px}.ac-stat strong{font-size:23px}.ac-stat span{font-size:11px}
  .ac-panel-head{padding:16px;gap:12px}.ac-panel-head span{font-size:11px}.ac-side-list{grid-template-columns:minmax(0,1fr)}
  .ac-schedule{grid-template-columns:repeat(7,minmax(84px,1fr));overflow:auto;padding:6px 12px 14px}
  body.portal.advcorp-shell-ready .task-create{grid-template-columns:minmax(0,1fr)!important}
  body.portal.advcorp-shell-ready .task-create .primary{width:100%}
  body.portal.advcorp-shell-ready .task-item{flex-wrap:wrap}
  body.portal.advcorp-shell-ready .task-item>div:first-child{flex-basis:100%}
  body.portal.advcorp-shell-ready :is(.card,.panel){padding:16px!important}
  body.portal.advcorp-shell-ready .inbox .chat-head{padding:16px!important}
  body.portal.advcorp-shell-ready .inbox .reply-route-row{grid-template-columns:minmax(0,1fr)!important}
  body.portal.advcorp-shell-ready .collection-strip>span{padding:10px!important;font-size:10px!important}
  body.portal.advcorp-shell-ready .message{max-width:94%!important}
}
@media(prefers-reduced-motion:reduce){body.portal.advcorp-shell-ready *{scroll-behavior:auto!important;transition:none!important}}

/* Shared runtime accents. Cross-module swaps are handled by the persistent in-memory shell below. */
body.portal.advcorp-shell-ready .reply-channel-state.available{color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready .badge.green{background:var(--ac-blue-soft)!important;color:var(--ac-blue-2)!important}

body.portal.advcorp-shell-ready #root{min-height:calc(var(--eco-dvh) - var(--ac-header))!important}
@media(min-width:961px){body.portal.advcorp-shell-ready:has(.inbox) main.content{padding-bottom:26px!important}}

/* R15 persistent area shell: every top-level area, including Pessoas and Agenda,
   is a retained in-memory surface below one immutable header. */
#ac-module-deck{display:none;position:relative;width:100%;height:calc(var(--eco-vh) - var(--ac-header));min-height:calc(var(--eco-vh) - var(--ac-header));background:var(--ac-bg);overflow:hidden;isolation:isolate}
body.portal.advcorp-shell-ready.ac-shell-deck-active{overflow:hidden!important}
body.portal.advcorp-shell-ready.ac-shell-deck-active>#app,body.portal.advcorp-shell-ready.ac-shell-deck-active>#root{display:none!important}
body.portal.advcorp-shell-ready.ac-shell-deck-active>#ac-module-deck{display:block!important}
#ac-module-deck>.ac-module-frame{display:block;position:absolute;inset:0;width:100%;height:100%;min-height:100%;margin:0;padding:0;border:0;background:var(--ac-bg);visibility:hidden;opacity:0;pointer-events:none;z-index:0}
#ac-module-deck>.ac-module-frame.active{visibility:visible;opacity:1;pointer-events:auto;z-index:1}
/* The iframe is already scaled by the parent document. Neutralize its own global zoom to avoid double scaling. */
html.ac-embedded{--ac-header:0px!important;--eco-scale:1!important;--eco-vh:100vh!important;--eco-dvh:100dvh!important;--eco-vw:100vw!important;zoom:1!important;background:var(--ac-bg)!important}
html.ac-embedded body.portal.advcorp-shell-ready{padding-top:0!important;min-height:100vh!important;overflow-x:clip}
html.ac-embedded #advcorp-global-header{display:none!important}
html.ac-embedded body.portal.advcorp-shell-ready :is(.portal-shell,.shell,.studio-shell,.operational-shell){min-height:100vh!important}


/* R20 — normalização visual entre módulos dentro do shell persistente */
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head){gap:12px!important;margin-bottom:18px!important}
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head) h1{font-size:26px!important;line-height:1.12!important;letter-spacing:-.03em!important}
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head) p{max-width:980px!important;font-size:13px!important;line-height:1.55!important}
body.portal.advcorp-shell-ready .page-commandbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}
body.portal.advcorp-shell-ready .page-commandbar .page-tabs{width:max-content!important;max-width:100%!important;min-width:0!important;flex:0 1 auto!important;margin:0!important}
body.portal.advcorp-shell-ready .toolbar-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
@media(max-width:760px){body.portal.advcorp-shell-ready .page-commandbar{align-items:stretch!important;flex-direction:column!important}body.portal.advcorp-shell-ready .page-commandbar .page-tabs{width:100%!important}body.portal.advcorp-shell-ready .toolbar-actions{width:100%!important;align-items:stretch!important;flex-direction:column!important}body.portal.advcorp-shell-ready .toolbar-actions>*{width:100%!important}}


/* R21 — transição de logout sem flash do shell autenticado */
.advcorp-logout-transition{position:fixed;inset:0;z-index:2147483646;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#fff;opacity:0;pointer-events:auto;transition:opacity .12s ease}
.advcorp-logout-transition.visible{opacity:1}
.advcorp-logout-transition-brand{display:flex;flex-direction:column;justify-content:space-between;gap:50px;padding:clamp(38px,6vw,78px);background:#fff;color:#102b4e}
.advcorp-logout-brand{display:flex;align-items:center;gap:13px}.advcorp-logout-brand>span{display:grid;width:52px;height:52px;place-items:center;padding:6px;border:1px solid #dbe6f0;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(16,51,84,.08)}.advcorp-logout-brand img{display:block;width:100%;height:100%;object-fit:contain}.advcorp-logout-brand strong,.advcorp-logout-brand small{display:block}.advcorp-logout-brand strong{color:#102b4e;font:800 24px/1.1 Manrope,Inter,system-ui,sans-serif}.advcorp-logout-brand small{margin-top:3px;color:#718397;font-size:11px}
.advcorp-logout-transition-brand>div:last-child{max-width:570px}.advcorp-logout-eyebrow{display:block;color:#1769e0;font-size:10px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}.advcorp-logout-transition-brand h1{max-width:560px;margin:15px 0 12px;color:#0b2747;font:700 clamp(34px,4vw,56px)/1.08 Manrope,Inter,system-ui,sans-serif;letter-spacing:-.045em}.advcorp-logout-transition-brand p{max-width:480px;margin:0;color:#63788d;font:400 14px/1.7 Inter,system-ui,sans-serif}
.advcorp-logout-transition-status{position:relative;display:grid;place-items:center;overflow:hidden;padding:36px;background:linear-gradient(145deg,#071e3a 0%,#0b3a70 60%,#0b5f94 100%)}.advcorp-logout-transition-status::before,.advcorp-logout-transition-status::after{content:'';position:absolute;border-radius:50%;pointer-events:none}.advcorp-logout-transition-status::before{width:520px;height:520px;right:-280px;top:-220px;border:1px solid #ffffff1a}.advcorp-logout-transition-status::after{width:380px;height:380px;left:-230px;bottom:-170px;background:radial-gradient(circle,#1fc3d52b,transparent 70%)}.advcorp-logout-transition-status>div{position:relative;z-index:1;display:grid;justify-items:center;width:min(360px,100%);padding:34px;border:1px solid #ffffff24;border-radius:18px;background:#ffffff0f;box-shadow:0 24px 70px rgba(2,19,42,.18);text-align:center;backdrop-filter:blur(8px)}.advcorp-logout-transition-status strong,.advcorp-logout-transition-status small{display:block}.advcorp-logout-transition-status strong{margin-top:18px;color:#fff;font-size:16px}.advcorp-logout-transition-status small{margin-top:6px;color:#bed0e1;font-size:11px}.advcorp-logout-spinner{width:30px;height:30px;border:3px solid #ffffff30;border-top-color:#fff;border-radius:50%;animation:advcorpLogoutSpin .75s linear infinite}@keyframes advcorpLogoutSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){.advcorp-logout-transition{grid-template-columns:1fr}.advcorp-logout-transition-brand{display:none}.advcorp-logout-transition-status{min-height:100dvh;padding:22px}}
@media(prefers-reduced-motion:reduce){.advcorp-logout-transition{transition:none}.advcorp-logout-spinner{animation-duration:1.4s}}

/* R26 — marca AdvCorp canônica: mesma proporção visual do login em todo o shell */
#advcorp-global-header .ac-brand{
  flex-basis:216px!important;
  gap:10px!important;
  padding:10px 18px!important;
}
#advcorp-global-header .ac-brand img{
  width:54px!important;
  height:54px!important;
  flex:0 0 54px!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#advcorp-global-header .ac-brand strong{
  font:800 22px/1 Manrope,Inter,ui-sans-serif,system-ui,sans-serif!important;
  letter-spacing:-.035em!important;
  color:#102b4e!important;
}
#advcorp-global-header .ac-brand small{
  margin-top:3px!important;
  color:#687b91!important;
  font-size:10px!important;
  font-weight:500!important;
  letter-spacing:0!important;
}
#advcorp-global-header .ac-sectionbar>strong{flex-basis:216px!important}
.advcorp-logout-brand{gap:10px!important}
.advcorp-logout-brand>span{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.advcorp-logout-brand img{width:54px!important;height:54px!important;object-fit:contain!important;border-radius:0!important}
.advcorp-logout-brand strong{font:800 22px/1 Manrope,Inter,system-ui,sans-serif!important;letter-spacing:-.035em!important}
.advcorp-logout-brand small{margin-top:3px!important;color:#687b91!important;font-size:10px!important;font-weight:500!important}
@media(max-width:1200px){
  #advcorp-global-header .ac-brand{flex-basis:200px!important;padding-inline:14px!important}
  #advcorp-global-header .ac-sectionbar>strong{flex-basis:200px!important}
}
@media(max-width:620px){
  #advcorp-global-header .ac-brand{height:60px!important;padding:5px 14px!important;gap:9px!important}
  #advcorp-global-header .ac-brand img{width:44px!important;height:44px!important;flex-basis:44px!important}
  #advcorp-global-header .ac-brand strong{font-size:21px!important}
  #advcorp-global-header .ac-brand small{display:none!important}
}


/* R29.3 — consumo de IA no Painel Operacional global. */
.ac-ai-usage-widget{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(300px,1fr) minmax(190px,.75fr) auto;gap:22px;align-items:center;padding:17px 18px;border:1px solid var(--ac-line);border-radius:12px;background:#fff;box-shadow:0 2px 6px #071e3a04}
.ac-ai-usage-copy{min-width:0}.ac-ai-usage-copy>span{display:block;margin-bottom:3px;color:var(--ac-blue);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.ac-ai-usage-copy>strong{display:block;color:var(--ac-navy);font-size:16px;font-weight:650}.ac-ai-usage-copy>small{display:block;margin-top:4px;color:var(--ac-muted);font-size:11px;line-height:1.45}
.ac-ai-usage-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ac-ai-usage-kpis>div{min-width:0;padding:8px 10px;border-left:1px solid var(--ac-line-soft)}.ac-ai-usage-kpis span{display:block;color:var(--ac-muted);font-size:10px}.ac-ai-usage-kpis strong{display:block;margin-top:3px;color:var(--ac-navy);font-size:17px;font-weight:650;overflow-wrap:anywhere}
.ac-ai-usage-progress{min-width:0}.ac-ai-usage-progress>div{height:7px;overflow:hidden;border-radius:99px;background:#e7edf5}.ac-ai-usage-progress i{display:block;height:100%;border-radius:inherit;background:var(--ac-blue)}.ac-ai-usage-progress>small{display:block;margin-top:6px;color:var(--ac-muted);font-size:10px}.ac-ai-usage-widget.warning .ac-ai-usage-progress i{background:var(--ac-blue)}.ac-ai-usage-widget.danger{border-color:#efd2d8}.ac-ai-usage-widget.danger .ac-ai-usage-progress i{background:#c83e57}
@media(max-width:1120px){.ac-ai-usage-widget{grid-template-columns:1fr 1fr}.ac-ai-usage-widget>button{justify-self:start}.ac-ai-usage-progress{align-self:center}}
@media(max-width:700px){.ac-ai-usage-widget{grid-template-columns:1fr;gap:15px}.ac-ai-usage-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.ac-ai-usage-kpis>div:first-child{border-left:0;padding-left:0}.ac-ai-usage-widget>button{width:100%}}
.ac-calendar-range-tools{margin-top:-10px}.ac-calendar-range-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;width:100%}.ac-calendar-range-form label{display:grid;gap:6px;min-width:170px}.ac-calendar-range-form label span{font-size:12px;color:var(--ac-muted);font-weight:600}.ac-calendar-range-form input{height:40px;padding:0 12px;border:1px solid var(--ac-line);border-radius:10px;background:#fff;color:var(--ac-text)}.ac-calendar-range-form .ac-list-tools-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-left:auto}@media(max-width:800px){.ac-calendar-range-form{align-items:stretch}.ac-calendar-range-form label{min-width:min(100%,180px);flex:1}.ac-calendar-range-form .ac-list-tools-meta{margin-left:0;width:100%}}

/* R29.7 — ajuda flutuante arrastável. */
[data-draggable-help="trigger"]{cursor:grab!important;touch-action:none!important;user-select:none!important}
[data-draggable-help="trigger"]:active{cursor:grabbing!important}
[data-draggable-help="panel"] :is(.assistant-head,.studio-help-head){cursor:move!important;touch-action:none!important;user-select:none!important}
[data-draggable-help="panel"] :is(.assistant-head,.studio-help-head) button{cursor:pointer!important}

/* R29.8 · Design system visual canônico
   Tipografia e superfícies operacionais passam a usar a mesma escala em todos os módulos.
   Elementos de preview/configuração de marca continuam livres para representar o estilo do cliente. */
:root{
  --ac-font-ui:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --ac-card-radius:12px;
  --ac-card-padding:18px;
  --ac-card-shadow:0 2px 6px rgba(7,30,58,.04);
  --ac-card-border:var(--ac-line);
  --ac-title-size:26px;
  --ac-section-title-size:16px;
  --ac-body-size:13px;
  --ac-caption-size:11px;
  --ac-metric-value-size:26px;
}

/* Fonte da interface: uma única família para navegação, conteúdo e controles.
   Código, chaves e previews tipográficos preservam suas famílias específicas. */
body.portal.advcorp-shell-ready,
body.portal.advcorp-shell-ready :is(button,input,select,textarea,table,th,td,label,h1,h2,h3,h4,h5,h6,p,small,strong,em,b,a){
  font-family:var(--ac-font-ui)!important;
}
body.portal.advcorp-shell-ready :is(code,pre,.copy-box,.copy-code,.json-detail){
  font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;
}
body.portal.advcorp-shell-ready :is(.brand-live,.brand-preview-site,.website-preview){
  font-family:var(--body),sans-serif!important;
}
body.portal.advcorp-shell-ready :is(.brand-live,.brand-preview-site,.website-preview) :is(h1,h2,h3,h4,h5,h6){
  font-family:var(--heading),sans-serif!important;
}
body.portal.advcorp-shell-ready .font-card strong{font-family:var(--fh),sans-serif!important}
body.portal.advcorp-shell-ready .simple-font-card strong{font-family:var(--fh),sans-serif!important}
body.portal.advcorp-shell-ready .simple-font-card span{font-family:var(--fb),sans-serif!important}

/* Hierarquia textual compartilhada. */
body.portal.advcorp-shell-ready :is(.page-intro,.page-title,.page-head,.studio-topbar) h1{
  font-size:var(--ac-title-size)!important;
  font-weight:700!important;
  line-height:1.18!important;
  letter-spacing:-.03em!important;
}
body.portal.advcorp-shell-ready :is(.section-head,.card-title,.overview-section-head,.ac-panel-head) :is(h2,h3,strong){
  font-size:var(--ac-section-title-size)!important;
  font-weight:650!important;
  line-height:1.35!important;
  letter-spacing:-.012em!important;
  color:var(--ac-navy)!important;
}
body.portal.advcorp-shell-ready :is(.section-head,.card-title,.overview-section-head,.ac-panel-head) p{
  margin-top:4px!important;
  color:var(--ac-muted)!important;
  font-size:12px!important;
  line-height:1.5!important;
}

/* Superfícies operacionais. O seletor é deliberadamente explícito para não alterar
   amostras de design dentro de Presença digital. */
body.portal.advcorp-shell-ready :is(
  .card,.panel,.dashboard-card,.dashboard-widget,.dashboard-compact-card,
  .sync-panel,.integration-card,.unified-area-card,.toolbar-card,.member-card,
  .support-card,.plan-usage-panel,.billing-method-card,.invitation-card,
  .product-flow-card,.people-master-card,.person-master-card,.consumption-card,
  .percentage-card,.table-card,.client-card,.legal-cases-overview,
  .legal-priority-panel,.legal-attention-panel,.attendance-priority-card,
  .attendance-today-card,.attendance-pipeline-card,.knowledge-card,
  .management-card,.team-card,.task-item,.studio-statusbar,.ac-list-tools,
  .welcome-card,.ac-ops-panel,.ac-ai-usage-widget
){
  border:1px solid var(--ac-card-border)!important;
  border-radius:var(--ac-card-radius)!important;
  background:#fff!important;
  box-shadow:var(--ac-card-shadow)!important;
}
body.portal.advcorp-shell-ready :is(
  .card,.panel,.dashboard-card,.dashboard-widget,.dashboard-compact-card,
  .sync-panel,.integration-card,.unified-area-card,.toolbar-card,.member-card,
  .support-card,.plan-usage-panel,.billing-method-card,.invitation-card,
  .product-flow-card,.people-master-card,.person-master-card,.consumption-card,
  .percentage-card,.client-card,.legal-cases-overview,.legal-priority-panel,
  .legal-attention-panel,.attendance-priority-card,.attendance-today-card,
  .attendance-pipeline-card,.knowledge-card,.management-card,.team-card
){
  padding:var(--ac-card-padding)!important;
}

/* KPIs e métricas: mesma altura, raio, rótulo e valor em Atendimento, Jurídico,
   Financeiro, Clientes e Painel global. */
body.portal.advcorp-shell-ready :is(
  .metric,.ac-stat,.kpi-card,.dashboard-mini-metric,.attendance-overview-metric,
  .legal-overview-metrics>button,.ops-module-metric
){
  min-height:108px!important;
  padding:16px!important;
  border:1px solid var(--ac-card-border)!important;
  border-radius:var(--ac-card-radius)!important;
  background:#fff!important;
  box-shadow:var(--ac-card-shadow)!important;
  transform:none!important;
}
body.portal.advcorp-shell-ready :is(
  .metric,.ac-stat,.kpi-card,.dashboard-mini-metric,.attendance-overview-metric,
  .legal-overview-metrics>button,.ops-module-metric
):hover{
  border-color:#c8d6e7!important;
  box-shadow:0 6px 16px rgba(7,30,58,.07)!important;
  transform:none!important;
}
body.portal.advcorp-shell-ready :is(
  .metric,.ac-stat,.kpi-card,.dashboard-mini-metric,.attendance-overview-metric,
  .legal-overview-metrics>button,.ops-module-metric
) small{
  color:var(--ac-muted)!important;
  font-size:var(--ac-caption-size)!important;
  font-weight:600!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body.portal.advcorp-shell-ready :is(
  .metric,.ac-stat,.kpi-card,.dashboard-mini-metric,.attendance-overview-metric,
  .legal-overview-metrics>button,.ops-module-metric
) strong{
  margin-top:7px!important;
  color:var(--ac-navy)!important;
  font-size:var(--ac-metric-value-size)!important;
  font-weight:700!important;
  line-height:1.08!important;
  letter-spacing:-.035em!important;
}
body.portal.advcorp-shell-ready :is(.attendance-overview-metric,.legal-overview-metrics>button) :is(em,span:not(:first-child)){
  font-size:var(--ac-caption-size)!important;
  line-height:1.35!important;
}
body.portal.advcorp-shell-ready :is(.attendance-overview-metric,.legal-overview-metrics>button).danger strong{
  color:#b33048!important;
}
body.portal.advcorp-shell-ready .legal-overview-metrics>button.alert strong,
body.portal.advcorp-shell-ready .metric.alert strong{
  color:var(--ac-danger)!important;
}

/* Cards internos/listas não ganham um segundo "visual system". */
body.portal.advcorp-shell-ready :is(.activity-list article,.client-attention-list button,.legal-priority-row,.legal-attention-list button){
  font-size:var(--ac-body-size)!important;
}
body.portal.advcorp-shell-ready :is(.activity-list article,.notification-item,.checklist-row){
  border-radius:9px!important;
}

/* Diálogos e caixas modais seguem o mesmo raio das superfícies principais. */
body.portal.advcorp-shell-ready :is(.dialog,.modal,.dialog-shell,.studio-dialog .dialog-shell){
  border-radius:var(--ac-card-radius)!important;
}

@media(max-width:760px){
  :root{--ac-card-padding:16px;--ac-title-size:24px;--ac-metric-value-size:24px}
}

/* R29.8.0 — semantic color contract: headings are navy, micro-labels neutral; red only for critical/destructive states. */
body.portal.advcorp-shell-ready :is(.eyebrow,.route-eyebrow,.section-kicker,.panel-kicker,.kicker){color:var(--ac-muted)!important;}
body.portal.advcorp-shell-ready :is(h1,h2,h3,.section-head h2,.panel-head h2){color:var(--ac-navy)!important;}

/* R29.8.0 — contrato global de feedback de interação */
body.portal.advcorp-shell-ready :where(a[href],button:not(:disabled),[role="button"]:not([aria-disabled="true"])){cursor:pointer}
body.portal.advcorp-shell-ready :where(.primary,.secondary,.ghost,.icon-btn,.ac-stat-link,.ac-day-link,.ac-row-link,.ac-side-row,.ac-admin-row,.studio-index>button,.flow-grid button,.task-item a,.tabs button,.page-tabs button){transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease,color .14s ease,transform .14s ease}
body.portal.advcorp-shell-ready :is(.tabs,.page-tabs) button:hover{background:#f3f7fc!important;color:var(--ac-blue-2)!important}
body.portal.advcorp-shell-ready :is(.tabs,.page-tabs) button:active{background:#e7f0fb!important}
body.portal.advcorp-shell-ready .ac-row-link:hover{background:var(--ac-blue-soft);border-color:#b9cfee;transform:translateX(2px)}
body.portal.advcorp-shell-ready .ac-panel-head a:hover,body.portal.advcorp-shell-ready .task-item a:hover{color:var(--ac-blue)!important;text-decoration:underline;text-underline-offset:3px}
body.portal.advcorp-shell-ready .flow-grid button:hover{background:#f6f9fd!important;border-color:#b9cfee!important;box-shadow:0 6px 16px #071e3a0a!important;transform:translateY(-1px)}
body.portal.advcorp-shell-ready .flow-grid button:active{transform:translateY(0)}
body.portal.advcorp-shell-ready .ac-queue-row:hover td{background:#f6f9fd!important}
body.portal.advcorp-shell-ready .ac-queue-row:hover .ac-queue-link{color:var(--ac-blue-2)}
body.portal.advcorp-shell-ready :is(.primary,.secondary,.ghost,.icon-btn):active{transform:translateY(1px)!important}
body.portal.advcorp-shell-ready :is(.ac-side-row,.ac-admin-row,.studio-index>button):focus-visible{outline:2px solid var(--ac-blue)!important;outline-offset:-3px!important}
@media (prefers-reduced-motion:reduce){
  body.portal.advcorp-shell-ready :where(.primary,.secondary,.ghost,.icon-btn,.ac-stat-link,.ac-day-link,.ac-row-link,.ac-side-row,.ac-admin-row,.studio-index>button,.flow-grid button,.task-item a,.tabs button,.page-tabs button){transition:none!important}
  body.portal.advcorp-shell-ready :is(.primary,.secondary,.ghost,.icon-btn,.ac-stat-link,.ac-day-link,.ac-row-link,.flow-grid button):hover{transform:none!important}
}

#ac-call-banner{position:fixed;right:20px;bottom:20px;z-index:100000;display:flex;gap:16px;align-items:center;max-width:calc(100vw - 40px);padding:16px 20px;border-radius:14px;background:#123b63;color:white;box-shadow:0 8px 32px #10223955}#ac-call-banner button{background:white;color:#123b63;border:0;border-radius:8px;padding:10px 14px;cursor:pointer;font:inherit}@media(max-width:600px){#ac-call-banner{left:12px;right:12px;bottom:12px;max-width:none;flex-wrap:wrap}}

/* As mensagens sempre ocupam a linha flexível, mesmo sem resumo do contato. */
body.portal.advcorp-shell-ready .inbox .chat>.chat-head{grid-row:1}body.portal.advcorp-shell-ready .inbox .chat>.collection-strip{grid-row:2}body.portal.advcorp-shell-ready .inbox .chat>.conversation-summary-details{grid-row:3}body.portal.advcorp-shell-ready .inbox .chat>.messages{grid-row:4}body.portal.advcorp-shell-ready .inbox .chat>.reply-composer-r297{grid-row:5}
