/* =========================================================
   RASTRO · plataforma (mesma identidade do site)
   ========================================================= */
/* Fontes Geist e Geist Mono (licença SIL OFL 1.1), servidas pelo próprio site */
@font-face { font-family: "Geist"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/Geist-Light.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/GeistMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/GeistMono-Medium.woff2") format("woff2"); }

:root {
  --ink: #1c1b19;
  --ink-2: #2a2926;
  --paper: #ece6da;
  --card: #f7f3eb;
  --accent: #d6a0c8;
  --accent-2: #c487b5;
  --accent-soft: #f1e2ec;
  --moss: #26321f;
  --line: rgba(28, 27, 25, .14);
  --line-2: rgba(28, 27, 25, .08);
  --muted: #5d5a53;
  --ok: #2f5a36;     --ok-bg: #dbe8d6;
  --warn: #7a4b00;   --warn-bg: #f6e3b8;
  --bad: #8f1f3f;    --bad-bg: #f5d9df;
  --f-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.side :focus-visible { outline-color: var(--accent); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }

.app { display: flex; height: 100vh; height: 100dvh; }

/* ---------- barra lateral ---------- */
.side { width: 240px; flex-shrink: 0; background: var(--ink); color: var(--paper); padding: 22px 14px; display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; text-decoration: none; color: var(--accent); font-weight: 600; letter-spacing: .18em; font-size: 17px; }
.brand svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side { gap: 18px; padding-top: 18px; padding-bottom: 16px; }
/* menu: Painel no topo, etapas numeradas e "Mais"; letra normal, sem caixa alta */
.side-nav { gap: 2px; }
.side-nav button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font-family: var(--f-sans); font-size: 14px; color: rgba(236, 230, 218, .82); transition: background .2s; }
.side-nav button:hover { background: rgba(236, 230, 218, .1); color: var(--paper); }
.side-nav button[aria-current="page"] { background: rgba(236, 230, 218, .14); color: var(--paper); font-weight: 600; }
.side-nav__nome { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-nav__n { width: 20px; height: 20px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(236, 230, 218, .4); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.side-nav__n.ok { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.side-nav__rot { margin: 14px 12px 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.side-nav .count { font-size: 11.5px; font-weight: 500; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(236, 230, 218, .14); color: var(--paper); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.side-link { background: none; border: 0; padding: 6px 10px; text-align: left; cursor: pointer; font-size: 13px; color: rgba(236, 230, 218, .7); text-decoration: underline; text-underline-offset: 3px; }
.side-link:hover { color: var(--accent); }
.back { display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid rgba(236, 230, 218, .35); border-radius: 999px; text-decoration: none; font-family: var(--f-sans); font-size: 13.5px; font-weight: 500; }
.back:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.back--btn { background: transparent; color: var(--paper); cursor: pointer; width: 100%; }
.note { padding: 12px; border-radius: 10px; background: rgba(236, 230, 218, .08); font-size: 12.5px; line-height: 1.45; color: rgba(236, 230, 218, .75); }

/* ---------- área principal ---------- */
.col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top { height: 64px; flex-shrink: 0; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.lab { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lab strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: #6d3a60; white-space: nowrap; }
.user { display: flex; align-items: center; gap: 10px; }
.who { text-align: right; }
.who div:first-child { font-size: 14px; font-weight: 500; }
.who div:last-child { font-size: 12px; color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.menu-btn { display: none; }
main { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; outline: none; }

.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head__top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.page-head p b { color: var(--ink); font-weight: 600; }
.page-head p { color: var(--muted); font-size: 15.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-family: var(--f-sans); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.btn:hover { background: var(--moss); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--card); border-color: var(--ink); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn__icone { width: 17px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.card .lbl { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.big { font-size: 56px; line-height: .95; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.card .sm { font-size: 13px; color: var(--muted); }
button.card { text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, transform .2s; }
button.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .link { font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- painel ---------- */
.kpis { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 14px; }
.kpi-hero { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpi-hero .lbl { color: rgba(236, 230, 218, .7); }
.kpi-hero .big { color: var(--accent); font-size: 80px; }
.kpi-hero .sm { color: rgba(236, 230, 218, .7); }
.bar { height: 8px; border-radius: 999px; background: rgba(236, 230, 218, .16); overflow: hidden; margin: 6px 0 4px; }
.bar div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .5s; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 16.5px; font-weight: 600; letter-spacing: -.005em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.textlink { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.secrow { display: flex; flex-direction: column; gap: 6px; }
.secrow .topline { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.track { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.track > * { display: block; height: 100%; border-radius: 999px; transition: width .5s; }
.foot-note { font-size: 12.5px; color: var(--muted); }

.due { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.due:last-child { border-bottom: 0; }
.due .date { width: 48px; flex-shrink: 0; text-align: center; }
.due .date b { display: block; font-size: 28px; line-height: .9; font-weight: 500; letter-spacing: -.03em; }
.due .date span { font-size: 12px; color: var(--muted); }
.due .txt { flex: 1; min-width: 0; }
.due .txt div:first-child { font-weight: 500; }
.due .txt div:last-child { font-size: 13px; color: var(--muted); }

/* etiquetas: letra normal; a primeira letra sai maiúscula mesmo quando o texto vem em minúsculas */
.tag { display: inline-block; flex-shrink: 0; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag::first-letter { text-transform: uppercase; }
.t-ok { background: var(--ok-bg); color: var(--ok); }
.t-warn { background: var(--warn-bg); color: var(--warn); }
.t-bad { background: var(--bad-bg); color: var(--bad); }
.t-neutral { background: var(--line-2); color: var(--muted); }
.t-accent { background: var(--accent-soft); color: #6d3a60; }

/* ---------- diagnóstico ---------- */
.diag { display: flex; gap: 18px; align-items: flex-start; }
.tabs { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.tabs button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 62px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; text-align: left; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs .t1 { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.tabs .t2 { display: block; font-weight: 500; }
.tabs .pct { font-family: var(--f-mono); font-size: 12px; }
.tabs button[aria-selected="true"] .pct { color: var(--accent); }
.qs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.q { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.q .head { display: flex; gap: 12px; align-items: flex-start; }
.ref { flex-shrink: 0; font-family: var(--f-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--accent); }
.q .text { font-weight: 500; font-size: 15.5px; line-height: 1.4; }
.q .ev { margin-top: 4px; font-size: 13px; color: var(--muted); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; }
.opts button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; }
.opts button:hover { border-color: var(--ink); }
.opts button[aria-pressed="true"] { font-weight: 600; }
.opts button[aria-pressed="true"][data-v="A"] { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.opts button[aria-pressed="true"][data-v="P"] { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.opts button[aria-pressed="true"][data-v="N"] { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.opts button[aria-pressed="true"][data-v="X"] { background: var(--line-2); border-color: var(--ink); }
.sec-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.aside { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.aside .card { gap: 14px; }
.aside .big { font-size: 48px; }
.ok-msg { padding: 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 13px; }
.info { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 12.5px; color: #4f2c46; }

/* ---------- plano de ação ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13.5px; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tasks { display: flex; flex-direction: column; gap: 10px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.task.is-done { opacity: .65; }
.task.is-done .task__title { text-decoration: line-through; }
.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-items: center; }
.check svg { width: 14px; height: 14px; stroke: var(--paper); fill: none; stroke-width: 3; opacity: 0; }
.task.is-done .check { background: var(--ok); border-color: var(--ok); }
.task.is-done .check svg { opacity: 1; }
.task__title { font-weight: 500; }
.task__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.task__ctrls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.field-sm { display: flex; flex-direction: column; gap: 2px; }
.field-sm label { font-size: 12px; color: var(--muted); }
.field-sm select, .field-sm input { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- documentos ---------- */
.docs { display: flex; gap: 18px; align-items: flex-start; }
.table { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.grid { display: grid; grid-template-columns: 90px minmax(170px, 1fr) 110px 56px 120px; gap: 12px; align-items: center; min-width: 600px; }
.thead { padding: 12px 20px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.row { width: 100%; min-height: 52px; padding: 8px 20px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; cursor: pointer; text-align: left; font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(214, 160, 200, .12); }
.row[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--ink); }
.detail { width: 340px; flex-shrink: 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; }
.detail .title { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.detail h3 { font-size: 14px; font-weight: 600; }
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.dot.done { background: var(--ink); border-color: var(--ink); }
.hist { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- equipamentos ---------- */
.eq { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.eq .card { gap: 10px; }
.eq__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.eq__code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.eq__name { font-size: 18px; font-weight: 500; line-height: 1.2; }
.eq__dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 4px 0; }
.eq__dl dt { color: var(--muted); }
.eq__dl dd { margin: 0; }
.eq__arqs { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.eq__arqs h3 { font-size: 14px; font-weight: 600; }

/* ---------- arquivos anexados ---------- */
.arq__lista { display: flex; flex-direction: column; }
.arq { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.arq__ext { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); min-width: 38px; text-align: center; }
.arq__info { display: flex; flex-direction: column; min-width: 0; }
.arq__nome { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.arq__meta { font-size: 12px; color: var(--muted); }
.arq__acoes { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.arq__botoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.arq__antigos { font-size: 13px; }
.arq__antigos summary { cursor: pointer; color: var(--muted); padding: 6px 0; }

/* ---------- resumo ---------- */
.resumo-ctrl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.sinal-ajuda { font-size: 13px; }
.sinal-ajuda summary { cursor: pointer; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sinal-ajuda ul { margin: 8px 0 6px; padding: 0; list-style: none; display: grid; gap: 4px; }
.sinal-ajuda p { color: var(--muted); }
.resumo-nav { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.resumo-nav .btn { min-width: 40px; padding: 0 10px; }
.tempo-head { flex-wrap: wrap; margin-bottom: 4px; }
.sinal { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; vertical-align: -1px; margin-right: 6px; }
.sinal--verde { background: var(--ok); }
.sinal--amarelo { background: #c08a1c; }
.sinal--vermelho { background: var(--bad); }
.sinais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sinais .big { font-size: 44px; }
button.resumo-lab { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s; }
button.resumo-lab:hover { border-color: var(--ink); }
.resumo-lab > .sinal { width: 16px; height: 16px; margin: 0; }
.resumo-lab .tag { white-space: normal; }
.resumo-nums { display: flex; gap: 18px; }
.resumo-nums div { display: flex; flex-direction: column; align-items: flex-end; }
.resumo-nums b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.resumo-nums span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.resumo-sinal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.resumo-sinal .tag { font-size: 11.5px; padding: 6px 12px; white-space: normal; }
.resumo-sinal .field-sm { margin-left: auto; }
.tempo { display: flex; flex-direction: column; }
.tempo-dia { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.tempo-dia:first-child { border-top: 0; }
.tempo-data { display: flex; flex-direction: column; gap: 2px; }
.tempo-data b { font-size: 14px; font-weight: 600; }
.tempo-data span { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.tempo-itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tempo-itens > li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.45; }
.tempo-cat { flex-shrink: 0; width: 104px; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; text-align: center; background: var(--line-2); color: var(--muted); }
.tempo-cat--diagnostico { background: var(--accent-soft); color: #6d3a60; }
.tempo-cat--tarefas { background: var(--ok-bg); color: var(--ok); }
.tempo-cat--documentos { background: var(--warn-bg); color: var(--warn); }
.tempo-cat--equipamentos { background: #dfe6ee; color: #2c4a66; }
.tempo-grupo details { flex: 1; }
.tempo-grupo summary { cursor: pointer; font-weight: 500; list-style: none; }
.tempo-grupo summary::-webkit-details-marker { display: none; }
.tempo-grupo summary::after { content: ' ▾'; color: var(--muted); font-size: 12px; }
.tempo-grupo details[open] summary::after { content: ' ▴'; }
.tempo-grupo details ul { margin: 8px 0 2px; padding-left: 16px; color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 600px) {
  .tempo-dia { grid-template-columns: 1fr; gap: 8px; }
  .tempo-data { flex-direction: row; gap: 8px; align-items: baseline; }
  .tempo-itens > li { flex-direction: column; gap: 4px; }
}
.aviso-mfa { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.45; }
.aviso-mfa strong { font-weight: 600; }
.mfa-passos { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.mfa-qr { display: block; margin: 0 auto 10px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.mfa-qr + .campo__dica { text-align: center; margin-bottom: 14px; word-break: break-all; }
.recurso .tag { min-width: 84px; text-align: center; }
.resumo-envio p { font-size: 14px; color: var(--muted); }
.resumo-h3 { font-size: 13px; font-weight: 600; margin-top: 4px; }
.resumo-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.resumo-lista li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.resumo-lista li:last-child { border-bottom: 0; }
.resumo-lista .tag { white-space: normal; text-align: right; }
@media (max-width: 900px) {
  .resumo-nums { grid-column: 1 / -1; justify-content: flex-start; }
  .resumo-nums div { align-items: flex-start; }
}
@media (max-width: 700px) {
  .sinais { grid-template-columns: 1fr; }
  .resumo-sinal .field-sm { margin-left: 0; }
}

/* ---------- pessoas ---------- */
.pessoa .task__title .sm { font-size: 13px; font-weight: 400; color: var(--muted); }
.pessoa .task__meta span:first-child:not(.tag) { word-break: break-all; }
.niveis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 6px; }
.campo__dica { font-size: 12.5px; color: var(--muted); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- seletor de laboratório ---------- */
.lab-select { min-height: 38px; max-width: 320px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 500; cursor: pointer; }
.lab-select:hover { border-color: var(--ink); }
body.carregando main { opacity: .6; }
.btn[disabled], .opts button[disabled], .check[disabled], select[disabled], input[disabled] { opacity: .45; cursor: not-allowed; }
.aviso-papel { padding: 10px 14px; border-radius: 12px; background: var(--line-2); color: var(--muted); font-size: 13.5px; }

/* ---------- janela de cadastro ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(28, 27, 25, .45); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.aceite { z-index: 80; background: rgba(28, 27, 25, .7); }
.aceite .modal__box > p { font-size: 14.5px; margin-bottom: 14px; }
.aceite a { text-decoration: underline; text-underline-offset: 3px; }
.aceite__check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.aceite__check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--ink); }
.aceite .actions { display: flex; gap: 8px; margin-bottom: 12px; }
.modal__box { width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.modal__box h2 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 16px; }
.campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.campo label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.campo input, .campo select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ink); }
.aviso-erro:empty { display: none; }
.aviso-erro { padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 14px; margin-bottom: 12px; }

/* ---------- aviso flutuante ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- riscos e imparcialidade ---------- */
.page-head .actions .tag { align-self: center; }
.riscos { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.riscos__lista { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.matriz { position: sticky; top: 0; }
.matriz__tab { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 12.5px; }
.matriz__tab th { font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px; }
.matriz__tab tr th:first-child { text-align: right; padding-right: 6px; }
.matriz__tab td { height: 44px; text-align: center; border-radius: 8px; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.matriz__tab td.vazio { font-weight: 400; opacity: .45; }
.n1 { background: var(--ok-bg); color: var(--ok); }
.n2 { background: var(--warn-bg); color: var(--warn); }
.n3 { background: var(--bad-bg); color: var(--bad); }
.nivel-tab { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.nivel-tab th, .nivel-tab td { border: 1px solid var(--line); padding: 5px 9px; text-align: center; }
.nivel-tab th { font-weight: 500; background: var(--line-2); }
.risco { gap: 10px; }
.risco.is-encerrado { opacity: .7; }
.risco__titulo { font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.risco__desc { font-size: 14px; color: var(--muted); }
.risco .task__meta { margin-top: 0; }
.risco__acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.risco__arqs summary { cursor: pointer; font-size: 13.5px; font-weight: 500; }
.tipicos { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; max-height: 52vh; overflow-y: auto; }
.tipicos .aceite__check { margin-bottom: 0; }
.tipicos .ref { margin-right: 4px; }
.tempo-cat--riscos { background: var(--bad-bg); color: var(--bad); }
.n0 { background: var(--line-2); color: var(--muted); }
.nop { background: var(--accent-soft); color: #6d3a60; }
.prioridades { position: sticky; top: 0; gap: 8px; }
.faixa { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.faixa:hover { border-color: var(--ink); }
.faixa[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.faixa.vazia { opacity: .55; }
.faixa__n { font-size: 26px; font-weight: 500; min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.faixa__txt { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; line-height: 1.35; }
.faixa__txt b { font-size: 14px; font-weight: 600; }
.faixa.n1 .faixa__txt span, .faixa.n2 .faixa__txt span, .faixa.n3 .faixa__txt span, .faixa.nop .faixa__txt span { color: inherit; opacity: .85; }
#modalIntro > .campo__dica { margin-bottom: 14px; }
#modalIntro > .ajuda-lista { margin-bottom: 10px; }
/* janelas de ajuda */
.ajuda-link { color: var(--muted); font-weight: 400; font-size: 13px; }
.ajuda-link:hover { color: var(--ink); }
.pe-ajuda { margin-top: 2px; }
.prioridades__pe { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
.ajuda__box { max-width: 560px; }
.ajuda__corpo { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.55; }
.ajuda__corpo h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.ajuda__corpo p { margin: 0; }
.ajuda__lead { font-size: 15px; }
.ajuda__nota { font-size: 13px; color: var(--muted); }
.ajuda__box .actions { margin-top: 20px; }
.ajuda-tab { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13.5px; table-layout: fixed; }
.ajuda-tab th { font-weight: 500; color: var(--muted); padding: 6px 4px; text-align: center; }
.ajuda-tab thead th:first-child { text-align: left; font-size: 12px; width: 34%; }
.ajuda-tab tbody th { text-align: left; color: var(--ink); }
.ajuda-tab td { text-align: center; padding: 9px 4px; border-radius: 8px; font-weight: 500; }
.ajuda-lista--sinal dt { display: flex; align-items: center; white-space: nowrap; }
.ajuda-lista--num dt { font-size: 18px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.ajuda-lista--num dd { align-self: center; color: var(--ink); }
.ajuda-lista { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--line-2); font-size: 13px; line-height: 1.4; }
.ajuda-lista dt { font-weight: 600; color: var(--ink); }
.ajuda-lista dd { margin: 0; color: var(--muted); }
.prioridade-vivo { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 6px 0 12px; }
.perfil { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 14px; }
.perfil .lbl { font-size: 13px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.perfil--falta { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* ---------- auditoria interna ---------- */
.aud-prog { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.aud-card { gap: 6px; }
.aud-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.aud-card__sit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }

.aud-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.aud-abas { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.aud-qs { display: flex; flex-direction: column; gap: 12px; }
.aud-item--nc { border-color: var(--bad); }
.aud-item--om { border-color: var(--warn); }
.aud-opts button[aria-pressed="true"][data-v="C"] { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.aud-opts button[aria-pressed="true"][data-v="NC"] { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.aud-opts button[aria-pressed="true"][data-v="OM"] { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.aud-opts button[aria-pressed="true"][data-v="NV"] { background: var(--line-2); border-color: var(--ink); }
.aud-opts button[disabled] { cursor: default; opacity: .75; }
.aud-ev { display: flex; flex-direction: column; gap: 4px; }
.aud-ev span { font-size: 13px; font-weight: 500; color: var(--ink); }
.aud-ev textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 14px; resize: vertical; }
.aud-ev textarea:focus { outline: none; border-color: var(--ink); }
.aud-ev textarea[readonly] { background: transparent; }
.aud-acao { display: flex; gap: 8px; align-items: center; }
.aud-secoes { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.aud-secoes .aceite__check { margin-bottom: 0; padding: 8px 12px; }

/* ---------- responsivo ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diag { flex-wrap: wrap; }
  .aside { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .aside > * { flex: 1 1 260px; }
  .docs { flex-direction: column; align-items: stretch; }
  .detail { width: auto; position: static; }
  .riscos { grid-template-columns: 1fr; }
  .matriz, .prioridades { position: static; }
}
@media (max-width: 900px) {
  .side { position: fixed; inset: 0 auto 0 0; z-index: 30; transform: translateX(-100%); transition: transform .25s; box-shadow: 8px 0 32px rgba(0, 0, 0, .3); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(28, 27, 25, .45); z-index: 20; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
  .top { padding: 0 16px; }
  .who, .chip { display: none; }
  main { padding: 20px 16px 40px; }
  .two { grid-template-columns: 1fr; }
  .diag { flex-direction: column; align-items: stretch; }
  main > *, .diag > * { min-width: 0; max-width: 100%; }
  .tabs { width: auto; position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tabs button { flex: 0 0 auto; min-width: 150px; }
  .task { grid-template-columns: auto 1fr; }
  .task__ctrls { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-hero { grid-column: span 2; }
  .big { font-size: 42px; }
  .kpi-hero .big { font-size: 64px; }
  .sec-nav .btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- sininho: minhas tarefas ---------- */
.sino { position: relative; }
.sino__btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s; }
.sino__btn:hover, .sino__btn[aria-expanded="true"] { background: var(--paper-2, #e1d9c9); }
.sino__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sino__n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; border: 2px solid var(--paper); }
.sino__n--atraso { background: var(--bad); color: #fff; }
.sino__painel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 340px; max-width: calc(100vw - 24px); padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35); }
.sino__topo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.sino__topo strong { font-size: 15px; font-weight: 600; }
.sino__topo span { font-size: 12.5px; color: var(--muted); }
.sino__lista { list-style: none; margin: 6px 0; padding: 0; }
.sino__lista button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font-size: 13.5px; color: var(--ink); }
.sino__lista button:hover { background: var(--line-2); }
.sino__tit { flex: 1; line-height: 1.35; }
.sino__lista .tag { flex-shrink: 0; }
.sino__vazio { margin: 14px 0; font-size: 13.5px; color: var(--muted); }
.sino__todas { width: 100%; margin-top: 4px; padding: 10px 8px 2px; border: 0; border-top: 1px solid var(--line-2); background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 500; color: var(--ink); }
.sino__todas:hover { text-decoration: underline; text-underline-offset: 3px; }
.field-sm__rot { font-size: 12px; color: var(--muted); }
.field-sm__val { min-height: 36px; display: flex; align-items: center; font-size: 13.5px; }

/* ---------- "Como funciona" de cada tela ---------- */
.guia-btn { gap: 8px; }
.guia-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.guia-btn svg path { fill: currentColor; stroke: none; }
.ajuda--larga .ajuda__box { max-width: 680px; }
.guia__passos { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: passo; display: flex; flex-direction: column; gap: 12px; }
.guia__passos li { counter-increment: passo; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; }
.guia__passos li::before { content: counter(passo); width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 600; }

/* ---------- demonstração animada ("Como funciona") ---------- */
.ajuda--demo .ajuda__box { width: auto; max-width: calc(100vw - 32px); padding: 16px 22px 18px; }
.demo__cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.demo__cab h2 { margin: 0; font-size: 1.2rem; }
.demo { display: flex; flex-direction: column; gap: 14px; }
.demo__palco { position: relative; margin: 0 auto; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.demo__tela { position: absolute; top: 0; left: 0; width: 1100px; height: 560px; transform-origin: 0 0; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); pointer-events: none; user-select: none; }
.demo__topo { height: 64px; flex-shrink: 0; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 15px; }
.demo__usuario { display: flex; align-items: center; gap: 10px; }
.demo__main { flex: 1; min-height: 0; overflow: hidden; padding: 26px 32px; display: flex; flex-direction: column; gap: 16px; }
.demo__main > * { flex-shrink: 0; }
.demo__email { position: absolute; right: 24px; bottom: 24px; width: 330px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.demo__email.visivel { opacity: 1; transform: none; }
.demo__email-de { margin: 0 0 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: #8a6a80; }
.demo__email strong { font-size: 15px; }
.demo__email span { font-size: 14px; color: var(--muted); }
.demo__email em { align-self: flex-start; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-style: normal; font-size: 12px; font-weight: 600; }
.demo__cursor { position: absolute; top: 0; left: 0; z-index: 5; width: 22px; height: 26px; pointer-events: none; transition: transform .9s cubic-bezier(.45, .05, .25, 1); }
.demo__cursor svg { width: 100%; height: 100%; fill: var(--ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.demo__cursor i { position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); opacity: 0; }
.demo__cursor.clica i { animation: demo-clique .5s ease-out; }
@keyframes demo-clique { 0% { opacity: .75; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
.demo__barra { display: flex; flex-direction: column; gap: 10px; }
.demo__progresso { height: 4px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.demo__progresso i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .4s; }
.demo__rodape { display: flex; align-items: center; gap: 10px 24px; }
.demo__texto { position: relative; flex: 1; min-width: 0; }
.demo__legenda { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }
.demo__ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.demo__ctrl [data-demo="pausar"] { min-width: 112px; }
@media (max-width: 700px) {
  .ajuda--demo .ajuda__box { padding: 14px 14px 16px; }
  .demo__rodape { flex-direction: column; align-items: stretch; }
  .demo__ctrl .btn { flex: 1; min-width: 0; padding: 0 8px; }
  .demo__ctrl [data-demo="pausar"] { min-width: 0; }
}
.demo__passo { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .demo__cursor, .demo__email, .demo__progresso i { transition: none; } .demo__cursor.clica i { animation: none; } }.demo__tela .panel h2 { margin: 0 0 14px; }
.demo__tela h3 { margin-top: 0; }

.demo__modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(28, 27, 25, .4); }
.demo__modal .modal__box { width: 460px; max-height: none; overflow: visible; }
.demo__input { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.4; }
.demo__toast { position: absolute; left: 50%; bottom: 22px; z-index: 6; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; white-space: nowrap; }
.demo__modal .modal__box { padding: 22px 24px; }
.demo__modal .campo { margin-bottom: 10px; }
.demo__modal .demo__input { min-height: 38px; padding: 8px 12px; }

/* ---------- botões no mesmo padrão em toda a plataforma ----------
   respostas (Atende, Parcial...), filtros e botões secundários: mesma letra, altura e fundo */
.btn--ghost { background: var(--card); }
.opts button, .filters button { min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-family: var(--f-sans); font-size: 13.5px; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.opts button:hover, .filters button:hover { border-color: var(--ink); }
.opts button[aria-pressed="true"] { font-weight: 600; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- topo das páginas: "Como funciona" sozinho à direita; botões da tela numa linha própria ---------- */
.page-head__top .guia-btn { flex-shrink: 0; }
.page-head__acoes { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- barra de filtros, busca e tipo (Documentos e Equipamentos) ---------- */
.lista-ferramentas { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.busca-barra { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.busca { position: relative; display: flex; align-items: center; }
.busca svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.busca input { width: 260px; min-height: 38px; padding: 0 14px 0 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; }
.busca input:focus { outline: none; border-color: var(--ink); }
.busca-barra .field-sm { flex-direction: row; align-items: center; gap: 8px; }
.busca-barra .field-sm select { min-height: 38px; border-radius: 999px; padding: 0 14px; background: var(--card); }
.grid--eq { grid-template-columns: 74px minmax(160px, 1fr) 166px 92px 112px; }
@media (max-width: 700px) { .busca input { width: 100%; } .busca, .busca-barra { width: 100%; } }

/* painel de detalhes: acompanha a rolagem, com rolagem própria quando é mais alto que a tela */
.detail { max-height: calc(100dvh - 96px); overflow-y: auto; }
.demo__tela .detail { position: static; max-height: none; overflow: visible; }
@media (max-width: 1200px) { .detail { max-height: none; overflow: visible; position: static; } }
.demo__tela * { scrollbar-width: none; }
@media (max-height: 480px) {
  .ajuda--demo .ajuda__box { padding: 10px 18px 12px; }
  .demo__cab { margin-bottom: 6px; }
  .demo__cab h2 { font-size: 1rem; }
  .demo__rodape { flex-direction: row; align-items: center; }
  .demo__ctrl .btn { flex: none; }
  .demo__legenda { font-size: 13px; }
  .demo { gap: 8px; }
}
/* resumo: faixa do envio automático */
.envio { display: flex; align-items: center; gap: 12px 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.envio__icone { width: 22px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.envio__texto { flex: 1; min-width: 0; }
.envio__texto h2 { margin: 0 0 2px; font-family: var(--f-sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.envio__texto p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.envio__texto p span { display: block; }
@media (max-width: 600px) { .envio__icone { display: none; } .envio__texto, .envio__acoes { flex-basis: 100%; } .envio__acoes .btn { width: 100%; } }
.envio__acoes { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.envio__acoes .field-sm { flex-direction: row; align-items: center; gap: 8px; }
.envio__acoes .field-sm select { min-height: 38px; border-radius: 999px; padding: 0 14px; }
@media (max-width: 1080px) { .envio { flex-wrap: wrap; } .envio__texto { flex-basis: calc(100% - 60px); } .envio__acoes { flex-wrap: wrap; } }
/* com uma janela aberta, a tela de trás não rola */
main { scrollbar-gutter: stable; }
body:has(.modal:not([hidden])) main { overflow: hidden; }
.modal, .modal__box { overscroll-behavior: contain; }

/* =========================================================
   Telas mais limpas (dez/2026): uma coisa de cada vez
   ========================================================= */
/* números dentro dos filtros (Todos 4, Prioridade alta 1) */
.filters__n { margin-left: 8px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; }
.filters button { display: inline-flex; align-items: center; }
.aviso-papel, .foot-note { line-height: 1.5; }
kbd { font-family: var(--f-mono); font-size: 11.5px; line-height: 1; padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); color: var(--ink); }
/* item aberto a partir de outra tela: pisca de leve para a pessoa achar */
.destaque { animation: destaque 1.6s ease-out; }
@keyframes destaque { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---------- diagnóstico: entrada ---------- */
.diag-cont { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.diag-cont__princ { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.diag-hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; }
.diag-hero__rot { font-size: 13.5px; color: var(--muted); }
.diag-hero h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin: 2px 0; }
.diag-hero .muted { font-size: 14px; }
.diag-secs { padding: 4px 0; gap: 0; }
.diag-sec { display: grid; grid-template-columns: 28px minmax(0, 1fr) 160px 200px; align-items: center; gap: 16px; width: 100%; padding: 14px 22px; border: 0; border-top: 1px solid var(--line-2); background: transparent; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); }
.diag-sec:first-child { border-top: 0; }
.diag-sec:hover { background: rgba(214, 160, 200, .1); }
.diag-sec__n { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.diag-sec__nome { font-weight: 500; }
.diag-sec .track { height: 6px; }
.diag-sec .tag { justify-self: end; }
.aside { width: auto; }
.diag-cont .aside { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.diag-res { gap: 8px; }
.diag-res .big { font-size: 48px; color: var(--ink); }
.diag-res .track { height: 8px; margin: 4px 0 2px; }
.diag-res .ajuda-link { font-size: 13px; }
.diag-res__acao { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.diag-res__acao .btn { align-self: flex-start; }
.diag-perfil { gap: 10px; }
.diag-perfil__cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.diag-perfil .btn { align-self: flex-start; margin-top: 2px; }
/* lista de definições em linhas: rótulo à esquerda, valor à direita */
.dl-linhas { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 14px; }
.dl-linhas dt, .dl-linhas dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--line-2); }
.dl-linhas dt:first-of-type, .dl-linhas dd:first-of-type { border-top: 0; }
.dl-linhas dt { color: var(--muted); }
.dl-linhas dd { text-align: right; font-weight: 500; }

/* ---------- diagnóstico: seção (uma pergunta por vez, fim e lista) ---------- */
.diag-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.diag-topo__links { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.diag-topo .textlink { font-size: 14px; }
.diag-cab { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.diag-cab h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.diag-cab__pos { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.passos { flex: 1; min-width: 160px; display: flex; gap: 5px; }
.passo { flex: 1; height: 8px; min-width: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(28, 27, 25, .12); cursor: pointer; transition: background .2s; }
.passo:hover { background: rgba(28, 27, 25, .3); }
.passo.ok { background: var(--ok); }
.passo.at { background: var(--ink); }
.passo[disabled] { cursor: default; }
.diag-perg { max-width: 880px; padding: 30px 34px; gap: 0; }
.diag-perg .ref { align-self: flex-start; }
.diag-perg__txt { font-size: 23px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; margin: 14px 0 18px; }
.diag-ev { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: rgba(28, 27, 25, .05); font-size: 14.5px; line-height: 1.5; }
.diag-ev svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.diag-ev b { font-weight: 600; }
.diag-opc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.diag-opc button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 76px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fbf8f2; cursor: pointer; text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.diag-opc button:hover { border-color: var(--ink); }
.diag-opc b { font-size: 15.5px; font-weight: 600; padding-right: 26px; }
.diag-opc span:last-child { font-size: 13px; color: var(--muted); line-height: 1.35; }
.diag-opc__n { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); background: var(--card); }
.diag-opc button[aria-pressed="true"][data-v="A"], .diag-opc button[aria-pressed="true"][data-v="C"] { border-color: var(--ok); background: var(--ok-bg); }
.diag-opc button[aria-pressed="true"][data-v="P"], .diag-opc button[aria-pressed="true"][data-v="OM"] { border-color: #c08a1c; background: var(--warn-bg); }
.diag-opc button[aria-pressed="true"][data-v="N"], .diag-opc button[aria-pressed="true"][data-v="NC"] { border-color: var(--bad); background: var(--bad-bg); }
.diag-opc button[aria-pressed="true"][data-v="X"], .diag-opc button[aria-pressed="true"][data-v="NV"] { border-color: var(--ink); background: rgba(28, 27, 25, .08); }
.diag-opc button[aria-pressed="true"] span:last-child { color: var(--ink); }
.diag-opc button[disabled] { cursor: default; opacity: .75; }
.diag-rod { max-width: 880px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.diag-atalhos { font-size: 13px; color: var(--muted); text-align: center; }
@media (hover: none), (max-width: 700px) { .diag-atalhos { display: none; } }
.diag-fim { max-width: 880px; padding: 28px 34px; gap: 10px; }
.diag-fim > .tag { align-self: flex-start; }
.diag-fim h2 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; margin-top: 8px; }
.diag-fim .muted { font-size: 14.5px; }
.diag-fim__aviso { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; margin-top: 6px; }
.diag-lac { list-style: none; margin: 8px 0 0; padding: 0; }
.diag-lac li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.diag-lac label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; min-width: 0; }
.diag-lac input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ink); }
.diag-fim__acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- painel: etapas e "O que fazer agora" ---------- */
.etapas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.etapa { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; text-align: left; color: var(--ink); font-size: 13.5px; line-height: 1.4; transition: border-color .2s, transform .2s; }
.etapa:hover { border-color: var(--ink); transform: translateY(-1px); }
.etapa b { font-size: 15px; font-weight: 600; margin-top: 2px; }
.etapa__rot { font-size: 12.5px; color: var(--muted); }
.etapa__txt { color: var(--muted); }
.etapa.ok { background: var(--ok-bg); border-color: rgba(47, 90, 54, .25); }
.etapa.ok .etapa__rot, .etapa.ok .etapa__txt { color: var(--ok); }
.etapa.agora { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.etapa.agora .etapa__rot { color: var(--accent); }
.etapa.agora .etapa__txt { color: rgba(236, 230, 218, .8); }
.faca-painel { gap: 10px; }
.faca-lista { display: flex; flex-direction: column; }
.faca { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px; gap: 16px; align-items: center; width: 100%; padding: 12px 10px; margin: 0 -10px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: transparent; cursor: pointer; text-align: left; color: var(--ink); font-size: 14px; width: calc(100% + 20px); }
.faca:first-child { border-top: 0; }
.faca:hover { background: rgba(214, 160, 200, .1); border-radius: 10px; }
.faca__txt { display: flex; flex-direction: column; min-width: 0; }
.faca__txt b { font-weight: 500; font-size: 15px; }
.faca__txt span { font-size: 13px; color: var(--muted); }
.faca__quem { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faca .tag { justify-self: end; }

/* ---------- riscos: lista com menu "⋯" ---------- */
.aviso-acao { display: flex; align-items: center; gap: 12px 14px; padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14.5px; }
.aviso-acao svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.aviso-acao p { flex: 1; min-width: 0; }
.aviso-acao b { font-weight: 600; }
.aviso-acao .muted { color: inherit; opacity: .8; }
.rlista { padding: 0; gap: 0; }
.rlista__vazio { padding: 22px; }
.rrow { border-top: 1px solid var(--line-2); }
.rrow:first-child { border-top: 0; }
.rrow.is-encerrado { opacity: .7; }
.rrow__linha { display: flex; align-items: center; gap: 8px; padding-right: 14px; }
.rrow__abrir { flex: 1; min-width: 0; display: grid; grid-template-columns: 6px minmax(0, 1fr) 140px 130px 172px; align-items: center; gap: 16px; padding: 14px 0; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--ink); font-size: 14px; }
.rrow__abrir:hover .rrow__txt b { text-decoration: underline; text-underline-offset: 3px; }
.rrow__cor { width: 6px; height: 40px; border-radius: 0 4px 4px 0; }
.rrow__txt { display: flex; flex-direction: column; min-width: 0; }
.rrow__txt b { font-weight: 500; font-size: 15px; line-height: 1.35; }
.rrow__txt span { font-size: 13px; color: var(--muted); }
.rrow__quem, .rrow__rev { font-size: 13.5px; color: var(--muted); }
.rrow__det { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 18px 38px; }
.rrow.is-aberto { background: rgba(28, 27, 25, .025); }
.menu-mais { position: relative; flex-shrink: 0; }
.menu-mais summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--muted); background: var(--card); }
.menu-mais summary::-webkit-details-marker { display: none; }
.menu-mais summary:hover, .menu-mais[open] summary { border-color: var(--ink); color: var(--ink); }
.menu-mais summary svg { width: 18px; height: 18px; fill: currentColor; }
.menu-mais__lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; padding: 6px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .35); }
.menu-mais__lista button { width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font-size: 14px; color: var(--ink); }
.menu-mais__lista button:hover { background: var(--line-2); }
.menu-mais__lista .menu-mais__perigo { color: var(--bad); margin-top: 4px; border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; }

/* ---------- auditoria ---------- */
.aud-resumo { gap: 10px; }
.aud-resumo__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.aud-resumo__tit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aud-resumo__tit h2 { font-size: 19px; }
.aud-resumo__acoes { display: flex; align-items: center; gap: 8px; }
.aud-resumo__meta { font-size: 14px; }
.aud-resumo__conc { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--line-2); }
.aud-resumo__prog { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.aud-resumo__prog .track { flex: 1; max-width: 360px; height: 6px; }
.aud-resumo .task__meta { margin-top: 0; }
.aud-abas__links { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.aud-abas__links .textlink { font-size: 14px; }
.aud-item__cab { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.diag-perg.aud-item { gap: 0; }
.aud-item .aud-ev { margin-top: 18px; }
.aud-item .aud-acao { margin-top: 12px; }
.aud-item .risco__arqs { margin-top: 14px; }
.diag-perg.aud-item--nc { border-color: var(--bad); }
.diag-perg.aud-item--om { border-color: #c08a1c; }

/* ---------- plano: responsável e prazo como texto clicável ---------- */
.field-sm--btn { min-width: 120px; padding: 6px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; color: var(--ink); }
.field-sm--btn:hover { border-color: var(--line); background: var(--paper); }
.field-sm--btn .field-sm__val { min-height: 0; }
.field-sm__val--vazio { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- resumo ---------- */
.tempo-head__dir { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.due + .textlink { margin-top: 6px; align-self: flex-start; }
.envio-info { margin: 0 0 4px; }
.envio-teste { margin: 10px 0 16px; }

@media (max-width: 1200px) {
  .diag-cont { grid-template-columns: 1fr; }
  .diag-cont .aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .etapas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rrow__abrir { grid-template-columns: 6px minmax(0, 1fr) 140px; }
  .rrow__quem, .rrow__rev { display: none; }
}
@media (max-width: 900px) {
  .diag-sec { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .diag-sec .track { display: none; }
  .diag-opc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faca { grid-template-columns: minmax(0, 1fr) auto; }
  .faca__quem { display: none; }
}
@media (max-width: 600px) {
  .etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diag-hero { flex-direction: column; align-items: flex-start; }
  .diag-perg, .diag-fim { padding: 22px 20px; }
  .diag-perg__txt { font-size: 19px; }
  .rrow__abrir { grid-template-columns: 6px minmax(0, 1fr); }
  .rrow__prio { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .destaque { animation: none; } }
.diag-cab, .diag-perg ~ .diag-rod, .diag-cab ~ .qs, .diag-cab ~ .sec-nav { max-width: 880px; }

/* ajustes da revisão */
.rrow__rev { white-space: nowrap; }
.card > .tag { align-self: flex-start; }
.aud-opc b { padding-right: 0; }
.filters__sub { margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.task__ctrls .field-sm { width: 150px; }
.task__ctrls .field-sm--btn { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task__ctrls > .btn { min-width: 92px; justify-content: center; }
@media (max-width: 760px) { .task__ctrls .field-sm { width: auto; } }
.filters button[aria-pressed="true"] .filters__sub { color: rgba(236, 230, 218, .7); }

/* Resumo: equipe por pessoa (gestor) */
.equipe { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.equipe .panel-head { align-items: baseline; gap: 12px; flex-wrap: wrap; }
.equipe .panel-head .muted { font-size: 13.5px; }
.carga { display: flex; flex-direction: column; }
.carga__cab, .carga__linha { display: grid; grid-template-columns: 190px minmax(0, 1fr) 96px 110px; align-items: center; gap: 16px; padding: 0 10px; }
.carga__cab { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; }
.carga__cab span:nth-child(n+3), .carga__n { text-align: right; }
.carga__linha { padding-top: 11px; padding-bottom: 11px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: transparent; cursor: pointer; text-align: left; font-size: 14px; color: var(--ink); }
.carga__linha:hover { background: rgba(28, 27, 25, .035); }
.carga__linha.is-sel { background: rgba(28, 27, 25, .05); font-weight: 500; }
.carga__nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carga__nome::after { content: ' ›'; color: var(--muted); }
.carga__linha.is-sel .carga__nome::after { content: ' ▾'; font-size: 12px; }
.carga__barra { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: rgba(28, 27, 25, .06); }
.carga__barra i, .carga__legenda i { display: block; height: 100%; }
.c-ok { background: var(--ok); } .c-dia { background: rgba(28, 27, 25, .28); } .c-atr { background: var(--bad); }
.carga__n { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.carga__n.is-atr { color: var(--bad); font-weight: 600; }
.carga__det { padding: 4px 10px 14px 24px; background: rgba(28, 27, 25, .05); }
.carga__det .faca { background: transparent; }
.carga__resto { font-size: 13.5px; color: var(--muted); margin: 2px 10px 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.carga__legenda { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); padding-left: 10px; }
.carga__legenda span { display: inline-flex; align-items: center; gap: 6px; }
.carga__legenda i { width: 10px; height: 10px; border-radius: 2px; }
@media (max-width: 760px) {
  .carga__cab { display: none; }
  .carga__linha { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .carga__barra { grid-column: 1 / -1; grid-row: 2; }
  .carga__n:last-child { display: none; }
  .carga__det { padding-left: 10px; }
}
/* Resumo: faixa compacta de números (substitui os cartões grandes) */
.faixa { padding: 18px 22px; margin-bottom: 22px; display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 16px; }
.faixa__topo { justify-content: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.faixa__topo .tag { font-size: 12.5px; padding: 6px 12px; white-space: normal; }
.faixa__nums { width: 100%; justify-items: stretch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faixa__item { display: flex; flex-direction: column; gap: 4px; padding: 2px 20px; border-left: 1px solid var(--line-2); min-width: 0; }
.faixa__item:first-child { padding-left: 0; border-left: 0; }
.faixa__rot { font-size: 13px; color: var(--muted); }
.faixa__num { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.faixa__sub { font-size: 13px; color: var(--muted); }
.faixa__sub .is-atr { color: var(--bad); font-weight: 500; }
.faixa__sub .is-ok { color: var(--ok); font-weight: 500; }
.faixa__bar { display: block; height: 5px; border-radius: 3px; background: rgba(28, 27, 25, .08); overflow: hidden; margin-top: 4px; max-width: 200px; }
.faixa__bar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 900px) {
  .faixa__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .faixa__item:nth-child(3) { padding-left: 0; border-left: 0; }
}
.faixa__nums--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faixa__rot .sinal { margin-right: 2px; }
