:root{--navy:#071d38;--navy2:#0b3768;--gold:#d8a437;--gold2:#f1cf75;--bg:#f4f7fb;--ink:#11243e;--muted:#65758a;--line:#dce4ee;--green:#159447;--blue:#1475d1;--orange:#e77817;--purple:#7442c8;--red:#cc3150;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}header{background:linear-gradient(135deg,var(--navy),#0a4179);color:#fff;border-bottom:4px solid var(--gold);padding:22px 28px;position:sticky;top:0;z-index:20}header h1{margin:0;font-family:Georgia,serif;letter-spacing:.04em;font-size:30px;color:var(--gold2)}header p{margin:5px 0 0;color:#e6edf7}.shell{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 92px)}nav{background:#082543;color:#fff;padding:18px;position:sticky;top:92px;height:calc(100vh - 92px)}nav button{width:100%;margin:5px 0;padding:12px;border:0;border-radius:9px;text-align:left;background:transparent;color:#dfe9f5;font-weight:700;cursor:pointer}nav button.active,nav button:hover{background:#123c67;color:#fff;border-left:3px solid var(--gold)}main{padding:24px}.section{display:none}.section.active{display:block}.hero{background:linear-gradient(120deg,#082543,#0b4b84);color:#fff;border-radius:16px;padding:24px;border-bottom:4px solid var(--gold);margin-bottom:20px}.hero h2{margin:0 0 6px;font-size:24px}.hero small{color:#dfe9f5}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 6px 18px rgba(16,38,63,.06)}.metric strong{display:block;font-size:28px;color:var(--navy2)}.metric span{color:var(--muted);font-size:13px}.flow{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:18px}.flow .step{background:#fff;border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:12px;padding:12px;font-size:12px;min-height:96px}.step b{display:block;font-size:13px;margin-bottom:7px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}input,select,textarea,button{font:inherit}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:12px;font-weight:700;color:#40536a}.field input,.field select,.field textarea{border:1px solid #cdd7e4;border-radius:8px;padding:10px;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.btn{border:0;border-radius:8px;padding:10px 14px;font-weight:700;cursor:pointer}.btn.primary{background:var(--navy2);color:#fff}.btn.gold{background:var(--gold);color:#10233d}.btn.light{background:#eaf0f7;color:#183656}.status{padding:5px 9px;border-radius:999px;background:#edf3fa;font-size:12px;font-weight:700}.status.ok{background:#e4f6ea;color:#15763d}.split{display:grid;grid-template-columns:340px 1fr;gap:14px}.list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.list-item{padding:13px;border-bottom:1px solid var(--line);cursor:pointer}.list-item:hover,.list-item.active{background:#eef5fb}.list-item b{display:block}.list-item small{color:var(--muted)}.chat{background:#e9eef2;border-radius:14px;padding:14px;min-height:500px;display:flex;flex-direction:column}.messages{flex:1;overflow:auto;padding:8px}.bubble{max-width:72%;padding:10px 12px;border-radius:12px;margin:7px 0;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}.bubble.out{margin-left:auto;background:#d8f7d0}.bubble small{display:block;color:#6c7787;margin-top:4px}.composer{display:flex;gap:8px}.composer input{flex:1;border:1px solid #cbd4df;border-radius:999px;padding:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:11px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.table th{background:#eef3f8}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.integration-card h3{margin-top:0}.note{font-size:12px;color:var(--muted);background:#f7f9fc;padding:10px;border-radius:8px}.session{background:#fff8e8;border:1px solid #eed79d;margin-bottom:16px}.output{font-family:ui-monospace,Consolas,monospace;font-size:12px;white-space:pre-wrap;background:#0d1c2c;color:#d9e5f1;padding:12px;border-radius:9px;max-height:220px;overflow:auto}.tag{display:inline-block;padding:3px 7px;border-radius:6px;font-size:11px;background:#e9f1f9;color:#244766}.warn{color:#a64e00}.oktext{color:#16783b}@media(max-width:1100px){.grid{grid-template-columns:repeat(2,1fr)}.flow{grid-template-columns:repeat(4,1fr)}.integration-grid{grid-template-columns:1fr}.split{grid-template-columns:1fr}}@media(max-width:760px){.shell{grid-template-columns:1fr}nav{position:static;height:auto;display:flex;overflow:auto}nav button{min-width:145px}.grid,.form-grid,.flow{grid-template-columns:1fr 1fr}main{padding:14px}}.auth-gate{position:fixed;inset:0;background:rgba(3,18,35,.88);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:18px}.auth-gate.hidden{display:none}.auth-card{width:min(460px,100%);background:#fff;border:1px solid #cfd9e6;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.35);border-top:5px solid var(--gold)}.auth-card h2{margin:0 0 4px;color:var(--navy)}.auth-card p{margin:0 0 18px;color:var(--muted)}.auth-card .field{margin-bottom:10px}.auth-card .btn{width:100%;margin-top:6px}.auth-divider{display:flex;align-items:center;gap:10px;margin:18px 0 12px;color:var(--muted);font-size:12px;font-weight:700}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.userbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px}.userbar .note{padding:0;background:transparent;margin-top:3px}.nav-hidden{display:none!important}
/* ============================================================
   NEXORA VISUAL BASELINE — APPROVED / FROZEN
   Keeps runtime UI aligned with the approved NEXORA modal.
   ============================================================ */
:root{
  --navy:#061a2d;
  --navy2:#0a3155;
  --gold:#c9993c;
  --gold2:#e4c375;
  --bg:#f2f5f9;
  --ink:#10243c;
  --muted:#6c7d90;
  --line:#dce5ef;
}
body{background:linear-gradient(180deg,#edf3f8,#f8fafc)}
header{
  background:linear-gradient(120deg,#051528 0,#092949 54%,#082d50 100%);
  border-bottom:3px solid var(--gold);
  box-shadow:0 4px 16px rgba(10,31,56,.24);
  padding:18px 28px
}
header h1{color:var(--gold2);font-size:32px;letter-spacing:.025em}
.shell{grid-template-columns:218px 1fr}
nav{
  background:radial-gradient(circle at 50% 0%,#0d426f 0,#082743 28%,#041321 72%);
  border-right:1px solid rgba(201,153,60,.38);
  padding:18px 0
}
nav button{
  border-radius:0;margin:0;padding:13px 18px;color:#d5e2ed;
  border-left:4px solid transparent;font-weight:700
}
nav button.active,nav button:hover{
  background:linear-gradient(90deg,rgba(201,153,60,.31),rgba(201,153,60,.07));
  border-left-color:var(--gold);color:#fff
}
main{padding:18px}
.hero{
  background:linear-gradient(115deg,#07213c,#0b416f);
  border:1px solid #174c78;border-bottom:3px solid var(--gold);
  border-radius:13px;padding:17px 20px;margin-bottom:14px;
  box-shadow:0 5px 18px rgba(14,42,70,.08)
}
.hero h2{font-size:20px;margin:0 0 4px}.hero small{font-size:12px}
.card,.list,.chat,.integration-card{
  position:relative;background:#fff;border:1px solid var(--line);
  border-radius:13px;box-shadow:0 5px 18px rgba(14,42,70,.08)
}
.card:before,.list:before,.chat:before{
  content:"";position:absolute;left:0;right:0;top:0;height:2px;
  background:linear-gradient(90deg,transparent,rgba(201,153,60,.56),transparent);
  opacity:.72;pointer-events:none
}
.card{padding:16px}
.metric strong{font-size:26px;color:var(--navy2)}
.flow{gap:7px;margin-top:14px}
.flow .step{
  border:1px solid var(--line);border-top:3px solid var(--gold);
  border-radius:11px;padding:11px;min-height:92px;
  box-shadow:0 3px 10px rgba(17,43,70,.05)
}
.btn{border-radius:8px;padding:9px 13px}
.btn.primary{background:linear-gradient(135deg,#0b416f,#082743)}
.btn.gold{background:linear-gradient(135deg,#d1a348,#a77624);color:#fff}
.btn.light{background:#edf3f8;color:#173e65;border:1px solid #d7e1eb}
.field input,.field select,.field textarea{
  border:1px solid #ccd7e4;border-radius:8px;padding:9px 10px
}
.session{background:#fff;border:1px solid var(--line)}
.table{border-radius:10px;overflow:hidden}
.table th{
  background:linear-gradient(180deg,#edf3f8,#e5edf5);
  color:#173d64;font-size:12px
}
.table td{font-size:12px}
.list{overflow:hidden}
.list-item{padding:12px;background:#fff}
.list-item:hover,.list-item.active{background:#eaf3fd}
.chat{
  background:linear-gradient(#f8fafc,#f3f6f9);
  padding:12px;min-height:500px
}
.bubble{font-size:12px;border-radius:10px}
.bubble.out{
  background:linear-gradient(135deg,#0e3a66,#0a2747);
  color:#fff;margin-left:auto
}
.bubble.out small{color:#d6e3ef}
.composer input{background:#fff}
.integration-grid{gap:12px}
.integration-card{
  overflow:hidden;padding:16px
}
.integration-card h3{color:#0a345a;margin-bottom:12px}
.integration-card .output{border:1px solid #183b5e}
.note{background:#f3f7fb;border:1px solid #e0e8f1;color:#607489}
.output{
  background:linear-gradient(145deg,#071b30,#0b2a48);
  border-radius:9px;color:#dbe7f2
}
.auth-gate{background:rgba(3,18,35,.9)}
.auth-card{
  border-radius:16px;border:1px solid #cfd9e6;border-top:4px solid var(--gold);
  box-shadow:0 24px 70px rgba(0,0,0,.35)
}
.auth-card h2{color:#082d50;font-family:Georgia,serif}
.userbar{border-top:2px solid var(--gold)}
@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}}
@media(max-width:760px){nav{border-right:0;border-bottom:1px solid rgba(201,153,60,.35)}}

.runtime-brand{display:flex;align-items:center;gap:16px}
.runtime-seal{width:82px;height:auto;max-height:72px;object-fit:contain;filter:drop-shadow(0 3px 8px rgba(0,0,0,.22))}
.auth-seal{display:block;width:118px;height:auto;margin:0 auto 10px;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(5,22,39,.16))}
@media(max-width:760px){.runtime-seal{width:58px}.runtime-brand{gap:10px}header h1{font-size:24px}}

.module-hub{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:10px}
.module-card{min-height:108px;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:11px;background:#fff;padding:14px;text-decoration:none;color:var(--navy2);box-shadow:0 3px 10px rgba(17,43,70,.05);display:flex;flex-direction:column;gap:8px;text-align:left}
.module-card:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(17,43,70,.11)}
.module-card b{font-size:14px}.module-card span{font-size:11px;color:#607489;line-height:1.45}
.module-card-action{font:inherit;cursor:pointer}
.module-live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.module-live-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.module-live-head h3{margin:0}.module-live-head .note{margin:5px 0 10px;padding:6px 8px}
.module-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.module-status-grid span{padding:10px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;font-size:11px}
.module-status-grid b{color:#1b7f4b}
@media(max-width:1100px){.module-hub{grid-template-columns:repeat(2,minmax(170px,1fr))}}
@media(max-width:760px){.module-hub,.module-live-grid,.module-status-grid{grid-template-columns:1fr}}


/* NEXORA R17.2 login — modal baseado no layout autenticador do SILICON.
   Identidade visual permanece própria da NEXORA, sem importar SAML/credenciais. */
.auth-gate{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  padding:20px;overflow-y:auto;
  background:rgba(16,24,40,.78);backdrop-filter:blur(5px);
}
.auth-gate.hidden{display:none}
.auth-card{
  width:min(430px,100%);max-height:calc(100dvh - 40px);overflow:auto;
  background:#fff;border:1px solid #e4e7ec;border-top:4px solid var(--gold);
  border-radius:16px;padding:24px;box-shadow:0 24px 64px rgba(16,24,40,.30);
  color:#101828;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:5px;margin-bottom:12px}
.auth-brand .auth-seal{width:100px;max-height:84px;object-fit:contain;margin:0}
.auth-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:800;color:#667085;text-align:center}
.auth-card h2{margin:0 0 8px;font:700 22px/1.25 system-ui,sans-serif;color:#101828;text-align:center}
.auth-card > p#authDescription{margin:0 0 20px;font:400 14px/1.5 system-ui,sans-serif;color:#667085;text-align:center}
.auth-card .field{margin-bottom:13px}
.auth-card .field label{font-size:12px;color:#344054}
.auth-card .field input{min-height:44px;width:100%;padding:11px 12px;border-radius:9px}
.auth-card .field input:focus-visible{outline:3px solid rgba(201,153,60,.28);outline-offset:1px;border-color:#ba8b36}
.auth-submit{width:100%;min-height:44px;margin-top:6px;display:flex;align-items:center;justify-content:center}
.auth-submit:disabled,.auth-bootstrap button:disabled{cursor:wait;opacity:.7}
.auth-bootstrap{border-top:1px solid #e4e7ec;margin-top:19px;padding-top:13px}
.auth-bootstrap summary{cursor:pointer;font-size:12px;font-weight:700;color:#344054;line-height:1.45}
.auth-bootstrap summary:focus-visible{outline:2px solid #ba8b36;outline-offset:3px}
.auth-bootstrap-body{padding-top:14px}
.auth-bootstrap-body p{margin:0 0 14px;font-size:12px;line-height:1.5;color:#667085}
.auth-bootstrap-body .btn{width:100%;min-height:44px}
.auth-feedback{margin-top:16px;color:#344054;background:#f2f4f7;border:1px solid #e4e7ec;border-radius:9px;padding:10px 12px;font-size:12px;line-height:1.5;white-space:pre-wrap}
.auth-feedback.error{color:#912018;background:#fff3f1;border-color:#f3cac5}
.auth-feedback.success{color:#05603a;background:#ecfdf3;border-color:#a6f4c5}
.auth-card .auth-footnote{margin:12px 0 0;color:#667085;font:400 11px/1.5 system-ui,sans-serif;text-align:center}
body.nexora-auth-active{overflow:hidden}
@media(max-width:460px){.auth-gate{padding:10px}.auth-card{padding:18px;max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){.auth-gate,.auth-card{scroll-behavior:auto;transition:none}}
