/* Chat18 — a mesma faixa do Blog, adaptada ao header NATIVO de cada módulo.
 * Nenhum header extra, nenhum iframe. Apenas páginas do LAB recebem a classe.
 */
.lab-direct-standard-header{
 --lab-bar-bg:#1d232b;--lab-bar-border:#354250;--lab-bar-text:#f6f8fa;
 --lab-bar-strong:#f2c43e;box-sizing:border-box!important;
 background:var(--lab-bar-bg)!important;color:var(--lab-bar-text)!important;
 border-bottom:1px solid var(--lab-bar-border)!important;
 display:flex!important;align-items:center!important;gap:clamp(8px,1.6vw,18px)!important;
 flex-wrap:wrap!important;min-height:78px!important;padding:10px clamp(12px,3vw,26px)!important;
}
.lab-direct-standard-header .lab-direct-identity{
 order:-5;display:flex;align-items:flex-start;flex-direction:column;
 flex:0 0 auto;min-width:0;gap:5px;color:var(--lab-bar-text);
}
.lab-direct-standard-header .lab-direct-idrow{display:flex;align-items:center;gap:9px}
.lab-direct-standard-header .lab-direct-home{
 display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;
 border:1px solid var(--lab-bar-border);border-radius:10px;
 color:var(--lab-bar-strong);background:#161e27;text-decoration:none;
}
.lab-direct-standard-header .lab-direct-word{
 font:850 clamp(29px,4vw,42px)/1 system-ui,sans-serif;
 letter-spacing:-.065em;color:var(--lab-bar-text);text-decoration:none;
}
.lab-direct-standard-header .lab-direct-degree{
 display:block;position:relative;flex:0 0 31px;width:31px;height:31px;
 border:0!important;border-radius:50%!important;padding:0!important;
 background:transparent!important;cursor:pointer!important;box-shadow:none!important;
}
.lab-direct-standard-header .lab-direct-degree>svg{width:100%;height:100%;display:block;transform:rotate(-90deg)}
.lab-direct-standard-header .lab-direct-degree circle{fill:none;stroke:#6f7b87;stroke-width:4}
.lab-direct-standard-header .lab-direct-degree .lab-direct-progress{stroke:#f5c641;stroke-linecap:round;stroke-dasharray:91 9}
.lab-direct-standard-header .lab-direct-symbol{position:absolute;inset:0;display:grid;place-items:center;color:#f5c641;font-size:13px}
.lab-direct-standard-header .lab-direct-environment{
 font:700 13px/1.2 system-ui,sans-serif;color:#b6c2cd;
 margin:0;padding:0;white-space:nowrap;
}
.lab-direct-standard-header .lab-direct-identity~.l360-header-brand,
.lab-direct-standard-header .lab-direct-identity~.l360-brand{display:none!important}
.lab-direct-standard-header .l360-header-actions,
.lab-direct-standard-header .l360-header-right{order:2;display:flex;align-items:center;margin-left:auto;gap:7px}
.lab-direct-standard-header .l360-header-search{order:1;min-width:130px;flex:1 1 220px;margin-left:auto}
.lab-direct-standard-header .l360-header-search input{min-width:0}
.lab-direct-standard-header .l360-header-user strong,
.lab-direct-standard-header .l360-header-user small,
.lab-direct-standard-header .l360-header-user>span:not(.l360-user-avatar){display:none!important}
.lab-direct-standard-header .l360-evolution-column{order:3;flex:1 1 100%;max-width:none}
.lab-direct-standard-header .lab-direct-portal{display:grid;place-items:center;
 margin-left:auto;width:44px;height:44px;border-radius:11px;
 border:1px solid var(--lab-bar-border);background:#161e27;color:#f2c43e;
 text-decoration:none}
.lab-direct-standard-header .lab-direct-home:focus-visible,
.lab-direct-standard-header .lab-direct-degree:focus-visible,
.lab-direct-standard-header .lab-direct-portal:focus-visible{
 outline:2px solid #f2c43e;outline-offset:3px;
}
body.lab-direct-body-index > header.lab-direct-standard-header{
 position:relative!important;top:auto!important;left:auto!important;right:auto!important;
 z-index:8!important;width:100%;max-width:none;margin:0;
}
body.lab-direct-body-index .lab-direct-standard-header .header-container,
body.lab-direct-body-index .lab-direct-standard-header .header-actions{display:none!important}
body.lab-direct-body-index .hero{padding-top:clamp(45px,8vh,90px)!important}
@media(max-width:760px){
 .lab-direct-standard-header{min-height:72px!important;padding:9px 12px!important}
 .lab-direct-standard-header .lab-direct-word{font-size:34px}
 .lab-direct-standard-header .lab-direct-home{width:36px;height:36px;flex-basis:36px}
 .lab-direct-standard-header .lab-direct-degree{width:28px;height:28px;flex-basis:28px}
 .lab-direct-standard-header .lab-direct-environment{font-size:12px}
 .lab-direct-standard-header .l360-header-search{order:3;flex:1 1 100%;max-width:none}
 .lab-direct-standard-header .l360-header-actions,
 .lab-direct-standard-header .l360-header-right{order:2;margin-left:auto}
}
@media(max-width:390px){
 .lab-direct-standard-header .lab-direct-idrow{gap:6px}
 .lab-direct-standard-header .lab-direct-word{font-size:30px}
 .lab-direct-standard-header .lab-direct-portal{width:38px;height:38px}
}

/* Recuperação de regressão: o botão NATIVO de tema permanece visível no único cabeçalho. */
.lab-direct-standard-header .lab-direct-idrow > .lab-direct-native-theme{display:grid!important;position:relative!important;place-items:center!important;flex:0 0 31px!important;width:31px!important;height:31px!important;min-width:31px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important}
.lab-direct-standard-header .lab-direct-idrow > .lab-direct-native-theme:focus-visible{outline:2px solid #f2c43e;outline-offset:3px}

/* Index LAB: página original sem faixa/cabeçalho. O bonequinho do portal
   pertence ao documento, não a um header visual. O modal OTP nativo
   continua disponível por clique programático (#btnDashboardLogin). */
body.lab-index-no-header{position:relative}
body.lab-index-no-header > header{display:none!important}
body.lab-index-no-header > .lab-index-portal{
 position:absolute;z-index:12;top:clamp(14px,3vw,28px);right:clamp(15px,3vw,30px);
 width:43px;height:43px;display:grid;place-items:center;border-radius:11px;
 border:1px solid rgba(165,171,181,.45);background:rgba(22,28,35,.82);
 color:#f2c43e;text-decoration:none;box-shadow:0 3px 15px rgba(0,0,0,.12);
}
body.lab-index-no-header > .lab-index-portal:hover{border-color:#f2c43e}
body.lab-index-no-header > .lab-index-portal:focus-visible{
 outline:2px solid #f2c43e;outline-offset:3px;
}
html[data-theme="light"] body.lab-index-no-header > .lab-index-portal{
 background:#f9fafb;color:#8d6200;border-color:#abb5c0;
}
@media(max-width:760px){
 body.lab-index-no-header > .lab-index-portal{
  top:14px;right:15px;width:40px;height:40px;
 }
 body.lab-index-no-header .hero{padding-top:clamp(78px,15vh,130px)!important}
}

/* Chat32 — identidade do Diagnóstico com contraste explícito no tema claro.
   Não altera Index, TAY, Gestão nem a marca no tema escuro. */
body.theme-light .lab-direct-standard-header.lab-direct-diagnostico{
 --lab-bar-bg:#f8fafc;--lab-bar-border:#cbd5df;
 --lab-bar-text:#14212c;--lab-bar-strong:#956300;
 background:#f8fafc!important;color:#14212c!important;
 border-color:#cbd5df!important;
}
body.theme-light .lab-direct-diagnostico .lab-direct-word{color:#14212c!important}
body.theme-light .lab-direct-diagnostico .lab-direct-environment{color:#516171!important}
body.theme-light .lab-direct-diagnostico .lab-direct-home{background:#fff!important;color:#8c6400!important;border-color:#bcc7d3!important}
body.theme-light .lab-direct-diagnostico .lab-direct-native-theme{color:#263647!important}
body.theme-light .lab-direct-diagnostico .l360-header-actions .icon-btn,
body.theme-light .lab-direct-diagnostico .l360-header-actions .icon-btn i{color:#263647!important}
body.theme-light .lab-direct-diagnostico .l360-header-actions .icon-btn:hover i{color:#956300!important}

/* Chat32 — modal TAY acompanha o tema do Diagnóstico. */
body:not(.theme-light) #l360AttendanceDialog{color-scheme:dark;background:#1b212a!important;color:#ecf2f8!important;border-color:#455362!important}
body:not(.theme-light) #l360AttendanceDialog .attendance-empty,
body:not(.theme-light) #l360AttendanceDialog .attendance-loading,
body:not(.theme-light) #l360AttendanceDialog .attendance-center{color:#ecf2f8!important}
body:not(.theme-light) #l360AttendanceDialog textarea{background:#222c38!important;color:#f5f7fa!important;border-color:#556579!important}
body.theme-light #l360AttendanceDialog{color-scheme:light;background:#fff!important;color:#17212b!important;border-color:#cbd5df!important}
body.theme-light #l360AttendanceDialog .attendance-empty,
body.theme-light #l360AttendanceDialog .attendance-loading,
body.theme-light #l360AttendanceDialog .attendance-center{color:#17212b!important}
body.theme-light #l360AttendanceDialog textarea{background:#fff!important;color:#17212b!important;border-color:#a5b2bf!important}
#l360AttendanceDialog::backdrop{background:rgba(8,14,24,.65)}
@media(max-width:760px){#l360AttendanceDialog{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 18px)!important}}
