/* Base visual herdada do protótipo v124 (paleta provisória da Numen IT). */
html, body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
/* Layout: menu lateral fixo à esquerda, tela central rolável. Paleta provisória da Numen IT, trocar nos tokens abaixo. */
:root {
  color-scheme: dark;
  --bg: #0e1029;
  --side: #0a0c22;
  --panel: #171a40;
  --panel-2: #1f2354;
  --line: #2d3270;
  --fg: #eceeff;
  --muted: #9ba1d0;
  --brand: #7b61ff;
  --brand-2: #b4a7ff;
  --ok: #43d39e;
  --div: #f4b942;
  --miss: #ff6b7a;
  --info: #f08bd0;
  --pend: #5db7ff;
  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 10px;
}
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 14px; line-height: 1.5; }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.app { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); height: 100%; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 28px; overflow: auto; min-width: 0; }
.brand { display: flex; flex-direction: column; gap: 4px; position: sticky; top: -22px; margin-top: -22px; padding: 22px 0 14px; background: var(--side); z-index: 5; }
.logo { display: block; width: 7.25rem; height: auto; margin-bottom: 4px; }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.wordmark i { width: 14px; height: 14px; border-radius: 4px; background: var(--brand); display: inline-block; }
.wordmark b { color: var(--brand-2); font-weight: 700; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; text-align: left; cursor: pointer; color: var(--muted); }
.nav button:hover { background: var(--panel); color: var(--fg); }
.nav button[aria-current="page"] { background: var(--panel-2); border-color: var(--line); color: var(--fg); font-weight: 500; }
.nav button[aria-current="page"] svg { color: var(--brand-2); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.subnav[hidden] { display: none; }
.nav .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.subnav { display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px 20px; padding-left: 8px; border-left: 1px solid var(--line); }
.nav .subnav button { padding: 6px 10px; font-size: 13px; justify-content: space-between; border-radius: 6px; }
.subnav .bd { font: 500 11px var(--f-mono); color: var(--muted); }
.nav .subnav button[aria-current="page"] .bd { color: var(--brand-2); }
.side-foot { margin-top: auto; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

.main { overflow: auto; min-width: 0; padding-block: 26px 56px; padding-inline: clamp(16px, 3vw, 36px); }
.view { max-width: 80rem; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.page-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; }
.page-h > div { min-width: 0; }
h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin: 0 0 4px; }
.lede { color: var(--muted); margin: 6px 0 0; max-width: 62ch; }
.stamp { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.note { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; max-width: 70ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 16px; }
.scroll { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.mono { font-family: var(--f-mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
tr.pick { cursor: pointer; }
tr.pick:hover td { background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
tr.sel td { background: var(--panel-2); }

.chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
.chip .g { font-family: var(--f-mono); font-weight: 600; }
.pf-ic { background: none; border: 0; padding: 4px 5px; cursor: pointer; border-radius: 6px; line-height: 0; }
.pf-ic:hover { background: var(--panel-2); }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 11.5px; color: var(--brand-2); background: color-mix(in srgb, var(--brand) 16%, transparent); border-radius: 6px; padding: 2px 6px; margin: 1px 4px 1px 0; white-space: nowrap; }
.s-ok { --c: var(--ok); } .s-div { --c: #ff4747; } .s-miss { --c: #f7941f; } .s-info { --c: #4ae3d6; } .s-red { --c: var(--miss); } .s-amb { --c: var(--div); } .s-pink { --c: var(--info); } .s-pend { --c: var(--pend); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }

.btn { background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.btn:hover { background: color-mix(in srgb, var(--brand) 85%, #fff); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
input:not([type]), input[type="search"], input[type="text"], input[type="number"], input[type="time"], input[type="password"], select { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
label.fl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.switch { position: relative; display: block; width: 36px; height: 20px; flex: none; margin: 0 auto; }
#ptab td:last-child, #ptab th:last-child { text-align: center; vertical-align: middle; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; background: #3b4468; box-shadow: inset 0 0 0 1px #5a6490; border-radius: 999px; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--brand); box-shadow: none; }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 12px; }
.s-tot { --c: var(--brand-2); } .s-nok { --c: #ff9f7a; }
.kpi { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
button.kpi { cursor: pointer; }
button.kpi:hover { background: var(--panel-2); }
.kpis.kpis-g { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.kgrp { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; min-width: 0; background: color-mix(in srgb, var(--panel) 40%, transparent); }
.kgrp h3 { margin: 0 0 10px; font: 600 12px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kgrp-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; }
.kgrp:nth-child(3) { grid-column: 1; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.cfg-card { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; color: var(--fg); position: relative; }
.cfg-card:hover { border-color: var(--brand-2); }
.cfg-card .n { font: 600 12px var(--f-mono); color: var(--brand-2); }
.cfg-card .muted { font-size: 12.5px; }
.cfg-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cfg-flow.v { flex-direction: column; align-items: flex-start; gap: 4px; }
.cfg-flow .arr { color: var(--muted); font-size: 16px; }
.cfg-step { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--fg); text-align: left; }
button.cfg-step { cursor: pointer; width: 100%; min-width: 13rem; }
button.cfg-step:hover { border-color: var(--brand-2); }
button.cfg-step.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cfg-split { display: grid; grid-template-columns: minmax(13rem, 17rem) 1fr; gap: 24px; align-items: start; }
.cfg-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cfg-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 12px; }
.cfg-rule { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.cfg-rule h3 { margin: 0 0 10px; font-size: 14px; }
.cfg-rule .se { margin-bottom: 10px; }
.cfg-rule .en > strong { display: block; margin-bottom: 6px; }
.pm-grp { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; margin: 0 0 12px; min-width: 0; }
.pm-grp legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--brand-2); }
.pm-diag { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pm-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pm-row.sm { gap: 8px; margin-top: 6px; }
.pm-box { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; min-width: 11rem; font-size: 13px; }
.pm-box.top { font-weight: 600; letter-spacing: .04em; font-size: 12.5px; }
.pm-box.acc { background: var(--brand); border-color: var(--brand); color: #fff; }
.pm-t { font: 600 11px var(--f-mono); color: var(--brand-2); letter-spacing: .06em; }
.pm-pill { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; background: var(--bg); }
.pm-arr { color: var(--muted); font-size: 18px; line-height: 1; }
@media (max-width: 760px) { .cfg-split { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .kpis.kpis-g { grid-template-columns: minmax(0, 1fr); } }
button.kpi[aria-pressed="true"] { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--panel)); }
.k-l { font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.k-v { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1.15; color: var(--c, var(--fg)); font-variant-numeric: tabular-nums; }
.k-s { font-size: 12px; color: var(--muted); }

.tower { display: flex; align-items: flex-end; gap: 8px; height: 280px; padding-top: 24px; }
.tw-c { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; background: none; border: 1px solid transparent; border-radius: 8px; padding: 2px 0 4px; cursor: pointer; color: var(--fg); font: inherit; }
.tw-c:hover { border-color: var(--line); }
.tw-c.on { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.tw-t { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.tw-v { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-weight: 700; font-size: 13px; }
.tw-b { position: relative; width: 70%; max-width: 56px; background: var(--c, var(--brand)); border-radius: 6px 6px 0 0; min-height: 2px; }
.tw-c { position: relative; }
.tw-l { font-size: 10.5px; letter-spacing: -.1px; color: var(--muted); text-align: center; line-height: 1.2; height: 2.6em; overflow: hidden; width: 100%; }
.tw-b.stk { display: flex; flex-direction: column; background: none; }
.tw-b.stk i { font-style: normal; display: flex; align-items: center; justify-content: center; min-height: 16px; overflow: hidden; }
.tw-b.stk i b { color: #000; font-size: 12px; font-weight: 800; line-height: 1; }
.tw-b.stk i:first-of-type { border-radius: 6px 6px 0 0; }
.tw-c[aria-pressed="true"] { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.tw-s { font-size: 10.5px; color: var(--pend); line-height: 1; }
.bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; display: flex; min-width: 4rem; }
.bar i { display: block; height: 100%; background: var(--c, var(--brand)); }
.fillrow { display: flex; align-items: center; gap: 10px; }
.fillrow .bar { flex: 1; }
.dept { width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 8px; cursor: pointer; display: grid; gap: 6px; }
.dept:hover { background: var(--panel-2); }
.dept[aria-pressed="true"] { border-color: var(--brand); background: var(--panel-2); }
.dept .top { display: flex; justify-content: space-between; gap: 10px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.toolbar input[type="search"] { flex: 1 1 14rem; max-width: 22rem; }
label.ck .switch { margin: 0; }
label.ck { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 13px; }
.toolbar label.ck { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }

.mx { max-height: 32rem; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.mx table { min-width: 52rem; }
.mx thead th { position: sticky; top: 0; background: var(--panel); z-index: 2; }
.mx .c1 { position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 6.5rem; }
.mx .c2 { position: sticky; left: 6.5rem; background: var(--panel); z-index: 1; min-width: 11rem; border-right: 1px solid var(--line); }
.mx thead .c1, .mx thead .c2 { z-index: 3; }
.mx th.ph { cursor: pointer; text-align: center; line-height: 1.25; }
.mx th.ph:hover { color: var(--fg); }
.mx th.ph[aria-pressed="true"] { color: var(--fg); background: var(--panel-2); }
.mx th.ph small { display: block; font-family: var(--f-mono); font-size: 10.5px; opacity: .8; }
.mx td.cc { text-align: center; padding: 6px 4px; }
.cell { width: 30px; height: 28px; border-radius: 7px; cursor: pointer; font: 600 13px var(--f-mono); color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.cell.s-ok { background: transparent; border-color: var(--line); opacity: .8; }
.cell:hover { transform: translateY(-1px); border-color: var(--c); }
.cell.dim { opacity: .22; }
.cell { position: relative; }
.cell.tk::after { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--pend); border: 2px solid var(--panel); }
.s-none { --c: var(--brand-2); }
.lg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 8px 18px; }
.lg-cols .lg-i { display: flex; align-items: flex-start; gap: 8px; }
.lg-cols .lg-i > .chip { flex: none; }
.legend.lg-cols .lg-t { display: block; line-height: 1.4; }
.legend.lg-cols .lg-d { display: inline; }
.lg-cols .lg-d { color: var(--muted); }
.lg-cols strong { color: var(--fg); font-weight: 500; }
.resp { min-width: 13rem; }
.resp-i { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; white-space: nowrap; line-height: 1.55; }
.lg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pend); }

.sys { display: flex; flex-direction: column; gap: 14px; }
.sys-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sys-h h2 { font-size: 1.1rem; margin: 0; }
.kv { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg button { background: transparent; border: 0; border-radius: 7px; padding: 7px 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 500; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; align-items: end; }

.drawer-ov { position: fixed; inset: 0; background: rgba(5, 6, 20, .55); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(28rem, 100%); background: var(--panel); border-left: 1px solid var(--line); z-index: 31; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer h3 { font-family: var(--f-display); font-size: 1.1rem; margin: 0; }
.drawer .x { align-self: flex-end; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--brand); border-radius: 10px; padding: 10px 16px; z-index: 40; max-width: calc(100% - 32px); }

.quad { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.quad .qh, .quad .qy { font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.quad .qh { justify-content: center; text-align: center; }
.qc { min-height: 7rem; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--bg); min-width: 0; }
.qc.hot { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); background: color-mix(in srgb, var(--brand) 11%, var(--bg)); }
.qc b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.bubs { display: flex; flex-wrap: wrap; gap: 6px; }
.bub { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--brand); background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--fg); font: 600 13px var(--f-mono); cursor: pointer; }
.bub:hover { background: var(--brand); }
.road { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 14px; }
.road h3 { font-family: var(--f-display); font-size: 13px; margin: 0 0 8px; color: var(--brand-2); }
.road ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.road .lk { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--fg); }
.road .lk:hover { color: var(--brand-2); text-decoration: underline; }
.imp { display: grid; gap: 14px; }
.imp-h { display: flex; gap: 12px; align-items: flex-start; }
.imp-h .num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 14px var(--f-mono); flex: none; }
.imp h3 { font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin: 0 0 8px; }
.imp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px 20px; }
.imp-meta > div { min-width: 0; overflow-wrap: anywhere; }
.imp-meta .l { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--brand-2); } 100% { box-shadow: 0 0 0 0 transparent; } }

@media (max-width: 1100px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { position: static; margin: 0; padding: 0; }
  .brand small, .side-foot { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .subnav { flex-direction: row; flex-wrap: wrap; margin: 0; padding: 0; border: 0; }
  .nav button { padding: 8px 10px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .cell:hover { transform: none; } .flash { animation: none; } }

.pf-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pf-al li { display: flex; gap: 12px; align-items: flex-start; }
.pf-al .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; }
.toolbar select { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; }

/* ---------------------------------------------------------------- acréscimos da aplicação funcional */
textarea { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 4.5rem; resize: vertical; }
input[type="email"] { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
a { color: var(--brand-2); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--miss) 60%, var(--line)); color: var(--miss); }
.side-foot b { color: var(--fg); font-weight: 500; }
.side-foot .btn { margin-top: 8px; width: 100%; }
.nav a.demo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--muted); text-decoration: none; border-radius: 8px; font-size: 13px; }
.nav a.demo:hover { background: var(--panel); color: var(--fg); }

.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login form { width: min(24rem, 100%); display: flex; flex-direction: column; gap: 14px; }
.login .logo { margin: 0 auto 6px; }
.login h1 { text-align: center; font-size: 1.35rem; }

.alerta { border: 1px solid color-mix(in srgb, var(--c, var(--div)) 55%, var(--line)); background: color-mix(in srgb, var(--c, var(--div)) 10%, var(--panel)); border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; }
.alerta.erro { --c: var(--miss); }
.alerta.ok { --c: var(--ok); }
.alerta b { color: var(--fg); }

.drop { display: flex; flex-direction: column; gap: 10px; background: var(--panel-2); border: 1px dashed var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.drop.cheio { border-style: solid; border-color: var(--brand-2); }
.drop input[type="file"] { color: var(--muted); max-width: 100%; }
.drop .cols { display: flex; flex-wrap: wrap; gap: 4px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); border: 2px solid var(--panel); }
.timeline .q { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.timeline .q b { font-weight: 500; }
.timeline .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }

.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.vs > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.vs .l { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.vs .v { font-family: var(--f-mono); font-size: 14px; }
.vs .vazio { color: var(--muted); font-style: italic; font-family: var(--f-body); }

.acoes { display: grid; gap: 10px; }
.acoes .linha { display: flex; flex-wrap: wrap; gap: 8px; }
.frame-email { width: 100%; height: 34rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.vazio-grande { text-align: center; padding: 36px 16px; color: var(--muted); }
.vazio-grande .btn { margin-top: 12px; }
.ev-json { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); max-width: 36rem; overflow-wrap: anywhere; }
.carregando { color: var(--muted); padding: 24px 0; }
@media (max-width: 640px) { .vs { grid-template-columns: minmax(0, 1fr); } }
a.btn { display: inline-block; text-decoration: none; }
.mx table { min-width: 44rem; }
@media (max-width: 820px) { .side-foot { display: block; width: 100%; } .side-foot .btn { width: auto; } }
