:root {
  --bg: #F4F7FB;
  --surface: #ffffff;
  --surface-2: #F8F9FD;
  --line: #E2E8F1;
  --line-2: #EEF2F7;
  --ink: #0B1F3B;
  --ink-2: #3B4A63;
  --ink-3: #5A6880;
  --brand: #0B1F3B;
  --brand-2: #123A75;
  --accent: #0077FF;
  --accent-soft: #E6F1FF;
  --cyan: #00D6B6;
  --cyan-soft: #DDF9F4;
  --cyan-ink: #00705F;
  --good: #12B886;
  --good-soft: #DDF6EE;
  --good-ink: #0B6B4F;
  --warn: #F5A524;
  --warn-soft: #FEF3DC;
  --warn-ink: #8A5300;
  --serious: #ec835a;
  --crit: #F04461;
  --crit-soft: #FDE3E8;
  --crit-ink: #A3162F;
  --neutral: #8B90A8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: var(--display); font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 13px; margin: 0 0 8px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
:root { --side-w: 248px; --page-max: 1360px; }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--brand); color: #CDD6E4; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30; }
.logo { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; color: #fff; }
.logo svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-size: 23px; color: #fff; }
.logo small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: 11px; color: #8FA1BD; letter-spacing: 0; margin-top: 4px; }
.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav .sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #7F91AD; padding: 14px 10px 6px; }
.nav a { color: #C3CEDD; padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.active { background: rgba(0, 119, 255, .26); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--cyan); }
.nav .count { background: rgba(255, 255, 255, .16); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.nav .count.crit { background: var(--crit); }
.side-foot { margin-top: auto; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.side-foot .conn { background: rgba(255, 255, 255, .06); color: #CDD6E4; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.main > main { flex: 1; }

/* cabeçalho */
.top { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: var(--page-max); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 16px; min-height: 72px; }
.top-title { flex: 1; min-width: 0; }
.top-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .crumb { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.top .menu-btn { display: none; font-size: 18px; padding: 6px 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; margin-right: 4px; }
.user-chip .who small { color: var(--ink-3); font-size: 11.5px; }

/* conteúdo com limite de largura */
.content { max-width: var(--page-max); margin: 0 auto; padding: 24px 28px 40px; width: 100%; }

/* rodapé */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { max-width: var(--page-max); margin: 0 auto; padding: 14px 28px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand svg { width: 20px; height: 20px; }
.foot a { color: var(--ink-2); }

/* indicador de conexão */
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); }
.conn.ok i { background: var(--good); box-shadow: 0 0 0 3px rgba(18, 184, 134, .18); }
.conn.fail i { background: var(--crit); box-shadow: 0 0 0 3px rgba(240, 68, 97, .18); }
.conn.warn i { background: var(--warn); }

.scrim { display: none; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .scrim.on { display: block; position: fixed; inset: 0; background: rgba(20, 18, 43, .45); z-index: 25; }
  .top .menu-btn { display: inline-flex; }
  .user-chip .who { display: none; }
}
@media (max-width: 720px) {
  .top-in { padding: 10px 16px; flex-wrap: wrap; min-height: 60px; }
  .top-in { gap: 8px 10px; }
  .top-title { order: 1; flex: 1 1 0; }
  .top .menu-btn { order: 0; }
  .user-chip { order: 2; border: 0; padding: 0; gap: 4px; }
  .avatar { width: 30px; height: 30px; font-size: 12px; }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .filters label.f { flex: 1 1 140px; }
  .user-chip #btnPw { display: none; }
  #topActions { order: 3; flex-basis: 100%; }
  .content { padding: 16px 16px 32px; }
  .foot-in { padding: 12px 16px; justify-content: center; text-align: center; }
  h1 { font-size: 18px; }
}
/* ---------- elements ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1200px) { .g6 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .g2, .g3 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: auto; } .kpi .val { font-size: 22px; } }

.btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 13px; font: inherit; font-weight: 550; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.3; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #005FD1; }
.btn.good { background: var(--good-ink); border-color: var(--good-ink); color: #fff; }
.btn.danger { color: var(--crit-ink); border-color: #f1c4c4; }
.btn.danger:hover { background: var(--crit-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 550; color: var(--ink-2); }
label.f .hint { font-weight: 400; color: var(--ink-3); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #d4d8de; border-radius: 7px; padding: 7px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #B8D6FF; border-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
input.miss { border-color: var(--crit); background: #fffafa; }
textarea { resize: vertical; min-height: 64px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); font-weight: 500; }
.check input { width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.form-grid .w2 { grid-column: span 2; }
.form-grid .w4 { grid-column: 1 / -1; }
@media (max-width: 1000px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.filters input[type=search] { min-width: 260px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
td input, td select { width: 100%; padding: 5px 8px; font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--ink-3); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.nodot::before { display: none; }
.b-PENDENTE { background: var(--warn-soft); color: var(--warn-ink); }
.b-VALIDADA { background: var(--accent-soft); color: #005FD1; }
.b-TRANSMITINDO { background: var(--cyan-soft); color: var(--cyan-ink); }
.b-INTEGRADA { background: var(--good-soft); color: var(--good-ink); }
.b-ERRO { background: var(--crit-soft); color: var(--crit-ink); }
.b-DESCARTADA { background: #f2f2f2; color: #777; text-decoration: line-through; }
.b-ATIVO { background: var(--good-soft); color: var(--good-ink); }
.b-BLOQUEADO { background: var(--crit-soft); color: var(--crit-ink); }
.b-tipo { background: #F1F2F8; color: #3D4160; }
.b-tipo.OPME, .b-tipo.OPME_CONSIGNACAO { background: #fdf0f5; color: #a3305d; }
.b-warn { background: var(--warn-soft); color: var(--warn-ink); }

.alert { border-radius: 9px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; font-size: 13px; }
.alert .ico { font-weight: 800; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; margin-top: 1px; }
.alert.crit { background: var(--crit-soft); border-color: #f3c9c9; color: #6e1a1a; }
.alert.crit .ico { background: var(--crit); }
.alert.warn { background: var(--warn-soft); border-color: #f5dfa8; color: #5e3e00; }
.alert.warn .ico { background: #D18A0F; }
.alert.info { background: var(--accent-soft); border-color: #C7DEFF; color: #0B3A7A; }
.alert.info .ico { background: var(--accent); }
.alert.good { background: var(--good-soft); border-color: #bfe5bf; color: #0b4d0b; }
.alert.good .ico { background: var(--good-ink); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert + .alert { margin-top: 10px; }

/* KPI tiles */
.kpi { padding: 16px 18px; }
.kpi .lbl { font-size: 12px; color: var(--ink-2); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
a.kpi { color: inherit; text-decoration: none; display: block; transition: border-color .15s; }
a.kpi:hover { border-color: #c2cbd6; }

/* charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis { font-size: 11px; fill: var(--ink-3); }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; background: #14181f; color: #fff; border-radius: 7px; padding: 8px 10px; font-size: 12px; line-height: 1.5; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); white-space: nowrap; z-index: 3; transform: translate(-50%, calc(-100% - 10px)); }
.tip b { font-weight: 600; }
.hbar { display: grid; grid-template-columns: minmax(120px, 38%) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar .track { height: 10px; border-radius: 0 4px 4px 0; position: relative; }
.hbar .fill { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .v { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; }

/* detail */
.lock-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; background: #f1f3f6; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 18px; }
.fact .k { font-size: 11.5px; color: var(--ink-3); font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.fact .v { margin-top: 3px; font-weight: 550; word-break: break-word; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; background: var(--surface); }
.tabs button { appearance: none; background: none; border: 0; padding: 12px 14px; font: inherit; font-weight: 550; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.timeline .when { color: var(--ink-3); font-size: 12px; }
pre.code { background: #0f1720; color: #d6e2ee; padding: 14px; border-radius: 8px; overflow: auto; max-height: 460px; font-size: 12px; margin: 0; white-space: pre-wrap; word-break: break-all; }
.err-text { color: var(--crit-ink); font-size: 12.5px; max-width: 520px; }

/* modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--surface); border-radius: 12px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.wide { width: min(980px, 100%); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #14181f; color: #fff; padding: 11px 15px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: 420px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.toast.ok { border-left: 4px solid var(--good); }
.toast.err { border-left: 4px solid var(--crit); }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(120% 90% at 100% 100%, #123A75 0%, #0B1F3B 60%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h2 { font-family: var(--display); font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; max-width: 460px; margin: 0 0 16px; }
.login-art p { color: #AAB8CF; max-width: 440px; line-height: 1.6; }
.login-art .steps { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.login-art .steps div { display: flex; gap: 12px; align-items: center; color: #e4eef6; }
.login-art .steps b { width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 214, 182, .16); color: var(--cyan); display: grid; place-items: center; font-size: 12px; }
.login-box { display: grid; place-items: center; padding: 40px; background: var(--surface); }
.login-box form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-box h1 { font-size: 26px; }
.login-logo { display: none; align-items: center; gap: 10px; }
.login-logo .wordmark { color: var(--ink); font-size: 30px; }
.login-logo svg { width: 40px; height: 40px; }
@media (max-width: 860px) { .login-logo { display: flex; } }
.login-box input { padding: 10px 12px; }
.login-box .btn { justify-content: center; padding: 10px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

.dropzone { border: 2px dashed #c5cdd8; border-radius: 12px; padding: 44px 20px; text-align: center; background: var(--surface-2); cursor: pointer; transition: .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 48px; height: 48px; margin-bottom: 10px; }
.dropzone .big { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.mode-pill { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); white-space: nowrap; }
.mode-pill.live { background: var(--good-soft); color: var(--good-ink); }
.selbar { display: flex; gap: 10px; align-items: center; padding: 10px 18px; background: var(--accent-soft); border-bottom: 1px solid #C7DEFF; font-size: 13px; }

/* ---------- configuração NetSuite ---------- */
.cfg-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.cfg-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.cfg-side .card + .card { margin-top: 0; }
@media (max-width: 1180px) { .cfg-grid { grid-template-columns: 1fr; } .cfg-side { position: static; } }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .mode-cards { grid-template-columns: 1fr; } }
.mode-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 14px 14px 40px; position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 13px; transition: border-color .15s, background .15s; }
.mode-card span { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.mode-card input { position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; accent-color: var(--accent); }
.mode-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mono-in { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12.5px; }
.env-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--cyan-ink); background: var(--cyan-soft); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.field-err { color: var(--crit-ink); font-size: 12px; font-weight: 500; }
.field-err:empty { display: none; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--crit); background: #FFF9FA; }
details.adv { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
details.adv summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.derived { margin-top: 16px; display: grid; gap: 6px; }
.derived:empty { display: none; }
.kv { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; flex-wrap: wrap; }
.kv span { color: var(--ink-3); min-width: 110px; }
.kv code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 12px; word-break: break-all; }
.test-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.test-status b { font-size: 15px; }
.test-status .small { margin-top: 3px; line-height: 1.45; }
.big-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; background: #E4E6F1; color: var(--ink-2); }
.test-status.ok { background: var(--good-soft); border-color: #B7EBD9; color: #0B4D39; }
.test-status.ok .big-ico { background: var(--good); color: #fff; }
.test-status.fail { background: var(--crit-soft); border-color: #F7C3CD; color: #6E0F20; }
.test-status.fail .big-ico { background: var(--crit); color: #fff; }
.test-status.warn { background: var(--warn-soft); border-color: #F7DFAE; color: #5E3A00; }
.test-status.warn .big-ico { background: var(--warn); color: #fff; }
.test-status.run { background: var(--accent-soft); border-color: #C7DEFF; color: #0B3A7A; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #C7DEFF; border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.checklist .small { color: var(--ink-3); line-height: 1.45; word-break: break-word; }
.ci { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex: none; margin-top: 1px; }
.checklist li.ok .ci { background: var(--good); }
.checklist li.erro .ci { background: var(--crit); }
.checklist li.aviso .ci { background: var(--warn); }
.btn.wide { width: 100%; justify-content: center; padding: 10px; }
.dirty { font-size: 12px; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); padding: 4px 10px; border-radius: 999px; }
.help ol { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.check span .hint { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.check { align-items: flex-start; }
.check input { margin-top: 2px; flex: none; accent-color: var(--accent); }

/* login */
.login-box { position: relative; }
.login-foot { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ambiente de teste */
.env-banner { position: sticky; top: 0; z-index: 21; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 7px 16px; background: repeating-linear-gradient(135deg, #FFC94A 0 14px, #FFD36B 14px 28px); color: #3D2A00; font-size: 12.5px; text-align: center; }
.env-banner b { letter-spacing: .08em; }
.env-banner.login { position: static; border-radius: 8px; margin-bottom: 4px; }
body.is-test .top { top: 33px; }
@media (max-width: 720px) { .env-banner span { display: none; } body.is-test .top { top: 0; } .env-banner { position: static; } }
