@media screen {
#adminPanel {--gov-ink:#152d42;--gov-line:#dce5ed;--gov-bg:#f3f6fa;--gov-accent:#0d5275;min-height:100vh;background:var(--gov-bg);color:var(--gov-ink)}
#adminPanel .top{position:sticky;top:0;z-index:20;background:#0c2b43;min-height:62px}
.gov-shell{display:grid;grid-template-columns:224px minmax(0,1fr);max-width:1680px;margin:auto;align-items:start}
.gov-admin-nav{position:sticky;top:78px;display:grid;gap:5px;padding:16px 12px;margin:18px 0 0 12px;border:1px solid #e0e7ef;background:#fff;border-radius:12px}
#adminPanel .gov-admin-nav button{background:transparent;color:#425970;text-align:left;border:0;border-radius:8px!important;padding:12px;min-height:44px;font-size:13px;line-height:1.35}
#adminPanel .gov-admin-nav button:hover{background:#f0f5fa}#adminPanel .gov-admin-nav button.selected{background:#e7f0fa;color:#0b4b78;box-shadow:inset 3px 0 #2d79ad!important}
#adminPanel main{width:100%;max-width:none;padding:28px 28px 40px;min-width:0}#adminPanel section{border-color:var(--gov-line);border-radius:12px;padding:20px;box-shadow:0 3px 15px #142d4210}#adminPanel [hidden]{display:none!important}#adminPanel h1{font-size:27px}#adminPanel h2{font-size:16px}#adminPanel .eyebrow{color:#5b7589;letter-spacing:.11em!important}#adminPanel form:not(.gov-chat-form){max-width:720px}#adminPanel table th{font-size:11px;background:#f5f8fb;color:#587086}#adminPanel td{font-size:13px}#adminPanel tbody tr:hover{background:#f8fafc}
.gov-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.gov-kpi{display:flex;flex-direction:column;gap:6px;min-height:125px;padding:18px;background:#fff;border:1px solid #dde6ed;border-radius:12px}.gov-kpi span{font-size:13px;font-weight:550;color:#526d83}.gov-kpi strong{font-size:32px;font-weight:650;color:#103e5e;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.gov-kpi small,.gov-muted{font-size:12px;color:#62788b}.gov-error:not(:empty){padding:10px;color:#a23b34;background:#fff1ed;border-radius:8px;margin-bottom:10px}
.gov-chat-grid{display:grid;grid-template-columns:minmax(180px,270px) minmax(0,1fr);gap:20px}.gov-contacts{max-height:490px;overflow:auto;display:grid;gap:5px;margin-top:10px;align-content:start}#adminPanel .gov-contact{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#f6f8fb;color:#183b55;border:1px solid #e2e8ef;text-align:left;white-space:normal}#adminPanel .gov-contact.selected{background:#e5f0fb;border-color:#a4c5e1}.gov-contact small{font-size:11px;color:#526d83;font-weight:400}.gov-chat-history{min-height:160px;height:360px;overflow:auto;display:flex;flex-direction:column;gap:10px;background:#f4f7fb;border:1px solid #e0e7ef;border-radius:10px;padding:12px;overscroll-behavior:contain}.gov-bubble{align-self:flex-start;max-width:88%;min-width:75px;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;color:#18334a;border:1px solid #dce5ed;border-radius:10px 10px 10px 3px;padding:9px 12px;font-size:13px;line-height:1.5}.gov-bubble.own{align-self:flex-end;background:#e4effb;border-color:#d2e2f4;border-radius:10px 10px 3px 10px}.gov-bubble small{display:block;font-size:10px;color:#557187;margin-bottom:3px}.gov-chat-form{display:flex!important;gap:8px;align-items:center;margin-top:10px}.gov-chat-form textarea{resize:vertical;min-height:48px;flex:1;min-width:0;padding:10px;border:1px solid #c8d7e4;border-radius:8px;background:white;color:#17324a;font:13px system-ui}.gov-chat-form button{align-self:stretch}
.gov-support{position:fixed;right:18px;bottom:75px;z-index:9000;font-family:'Segoe UI',system-ui,sans-serif;color:#16334b;max-width:calc(100vw - 28px)}.gov-support button{cursor:pointer;font:600 13px 'Segoe UI',system-ui!important;border:0;border-radius:8px;padding:10px 14px}.gov-support-toggle,.gov-send{background:#0d3b58!important;color:#fff!important}.gov-support-toggle{display:block;margin-left:auto;box-shadow:0 4px 18px #102d4630!important}.gov-support-panel{background:#fff;color:#19364e;border:1px solid #d9e4ec;border-radius:14px;padding:14px;width:360px;max-width:100%;margin-bottom:9px;box-shadow:0 12px 35px #102d4630}.gov-support-panel[hidden]{display:none!important}.gov-support-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:12px}.gov-support .gov-link{background:#edf3f8!important;color:#35556e!important}.gov-support .gov-chat-history{height:min(310px,40vh)}
/* VD and Central: scope to authenticated chrome and operational screens; never alter print. */
body.shell-authenticated .pl-nav-item{min-height:38px!important;letter-spacing:0!important;font-size:13px!important;font-weight:550!important;border-radius:9px!important;box-shadow:none!important}body.shell-authenticated .pl-nav-item.active{box-shadow:inset 3px 0 #3979ae!important}body.shell-authenticated .pl-nav-item.active::before{display:none!important}body.shell-authenticated .pl-nav-item .pl-nav-label{font-weight:inherit!important}body.shell-authenticated .pl-topbar{box-shadow:0 1px 4px #122c421a!important}body.shell-authenticated :is(h1,h2,h3){letter-spacing:-.035em!important;font-weight:650!important}body.shell-authenticated :is(button,.btn):not(.pl-nav-item){letter-spacing:0!important;font-weight:600!important;text-transform:none!important}body.shell-authenticated :is(.card,.section-card,.gds-packing-header-v183,.gds-aloc-card-v187,.pg-card,.gds-card){border-radius:12px!important;box-shadow:0 2px 10px #18364c0a!important}body.shell-authenticated :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:13px!important;border-radius:8px!important}body.shell-authenticated table th{letter-spacing:.015em!important;font-weight:600!important}body.shell-authenticated table td{font-weight:400!important}body.shell-authenticated .pl-sidebar{box-shadow:1px 0 0 #7392ad18!important}body .sidebar .nav-btn{border-radius:9px!important;letter-spacing:0!important;font-weight:550!important}body .sidebar .nav-btn.active{box-shadow:inset 3px 0 #3979ae!important}
@media(max-width:1050px){.gov-shell{grid-template-columns:185px minmax(0,1fr)}.gov-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#adminPanel main{padding:20px 16px}}
@media(max-width:720px){.gov-shell{display:block}.gov-admin-nav{position:static;display:flex;overflow:auto;margin:10px;white-space:nowrap}.gov-admin-nav button{flex-shrink:0}.gov-kpis{gap:9px}.gov-kpi{padding:12px;min-height:105px}.gov-kpi strong{font-size:26px}.gov-chat-grid{grid-template-columns:1fr}.gov-contacts{max-height:180px}.gov-support{right:10px;bottom:68px}#adminPanel .top{position:static}.gov-support-panel{width:330px}}
}
@media print{.gov-support,.gov-admin-nav{display:none!important}}

@media screen{html[data-theme="dark"] .gov-support-panel,body.dark-mode .gov-support-panel,body.theme-dark .gov-support-panel{background:#142638;color:#e2edf7;border-color:#36506a}html[data-theme="dark"] .gov-support .gov-chat-history,body.dark-mode .gov-support .gov-chat-history,body.theme-dark .gov-support .gov-chat-history{background:#0c1c2a;border-color:#36506a}html[data-theme="dark"] .gov-support .gov-muted,body.dark-mode .gov-support .gov-muted,body.theme-dark .gov-support .gov-muted{color:#b4c6d5}}

/* V529 — único suporte operacional. DOM legado mantido para compatibilidade. */
@media screen{html[data-gds-runtime="hml"] body.shell-authenticated #btnAbrirSuporte,html[data-gds-runtime="hml"] body.shell-authenticated #btnAbrirSuporte.gds-chat-btn-loja-v211,html[data-gds-runtime="hml"] body #btnAbrirSuporte,html[data-gds-runtime="hml"] body #containerSuporte.gds-chat-loja-v211,html[data-gds-runtime="hml"] body #containerSuporte,html body #gdsChatBtnV211,html body #gdsChatPanelV211,html body #gdsChatPanelV211.gds-wa-panel-v213.open{display:none!important;visibility:hidden!important;pointer-events:none!important}.gov-support{bottom:18px;right:18px}.gov-support-toggle[data-unread]:not([data-unread=""])::after{content:attr(data-unread);margin-left:8px;background:#fff;color:#0d3b58;padding:2px 5px;border-radius:8px;font-size:11px}}
