/* Brasa · Sistema Visual: componentes.
   Toda cor, espaço e raio vem de token (tokens.json, compilado em tokens.css).
   Classes com prefixo v-. Estado por atributo ARIA quando existe um; is-* no resto. */

/* ---------- valores por tema que não são cor ---------- */
:root, [data-theme="dark"] { --ht-inv: 1; --ht-in: multiply; --ht-out: screen; color-scheme: dark; }
[data-theme="light"] { --ht-inv: 0; --ht-in: screen; --ht-out: multiply; color-scheme: light; }
:root {
  --v-sans: var(--font-sans, Geist, Inter, system-ui, sans-serif);
  --v-mono: var(--font-mono, "Geist Mono", ui-monospace, monospace);
  --v-fast: 120ms;
  --v-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- base ---------- */
body { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--v-sans); -webkit-font-smoothing: antialiased; }
.v-root { background: var(--main); color: var(--t1); font: 400 14.5px/22px var(--v-sans); font-variant-numeric: tabular-nums; }
.v-root a { color: var(--ember-text); }
.v-root a:hover { color: var(--ember-hover); }

/* foco: um anel só, em todo controle */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- utilitários ---------- */
.v-num { font-variant-numeric: tabular-nums; }
.v-mono { font-family: var(--v-mono); }
.v-time { font-family: var(--v-mono); font-size: .92em; }
.v-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.v-scroll { scrollbar-width: none; }
.v-scroll::-webkit-scrollbar { display: none; }
/* alvo de toque de 44 ou mais sem mudar o desenho (6 de cada lado; aba 38 + 4) */
.v-t44 { position: relative; }
.v-t44::after { content: ""; position: absolute; inset: -6px; }
.v-tab.v-t44::after { inset: -4px 0; }

/* ---------- tipografia ---------- */
.v-h1 { margin: 0; font: 600 30px/36px var(--v-sans); letter-spacing: -.02em; color: var(--t1); }
.v-h2 { margin: 0; font: 600 17px/24px var(--v-sans); color: var(--t1); }
.v-h3 { margin: 0; font: 600 15px/22px var(--v-sans); color: var(--t1); }
.v-body { margin: 0; font: 400 14.5px/22px var(--v-sans); color: var(--t2); }
.v-small { font: 500 13px/18px var(--v-sans); color: var(--t2); }
.v-desc { font: 400 13px/18px var(--v-sans); color: var(--t3); }
.v-caption { font: 500 12.5px/16px var(--v-sans); color: var(--t3); }
.v-label { font: 600 11.5px/16px var(--v-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.v-meta { font: 500 11.5px/16px var(--v-mono); color: var(--t3); }
.v-code { font: 500 12.5px/16px var(--v-mono); color: var(--t2); }

/* ---------- movimento ---------- */
@keyframes vpulse { 0% { box-shadow: 0 0 0 0 var(--live-ring); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes vblink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes vshimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes vspin { to { transform: rotate(360deg); } }
.v-pulse { animation: vpulse 1.8s ease-out infinite; }
.v-blink { animation: vblink 1.8s ease-in-out infinite; }
.v-spin { animation: vspin 1s linear infinite; }
.v-skel { display: block; border-radius: var(--radius-6); background: linear-gradient(90deg, var(--skel-a) 0, var(--skel-b) 120px, var(--skel-a) 240px); background-size: 800px 100%; animation: vshimmer 1.4s linear infinite; }
.v-hatch { background-image: repeating-linear-gradient(135deg, var(--hatch) 0 5px, transparent 5px 10px); }
.v-btn, .v-nav, .v-tab, .v-field, .v-seg > button, .v-check::before, .v-sort, .v-crumbs a, .v-field-clear, .v-table td {
  transition: background-color var(--v-fast) var(--v-ease), border-color var(--v-fast) var(--v-ease), color var(--v-fast) var(--v-ease), box-shadow var(--v-fast) var(--v-ease);
}
@media (prefers-reduced-motion: reduce) {
  .v-pulse, .v-blink, .v-skel, .v-spin { animation: none; }
  .v-btn, .v-nav, .v-tab, .v-field, .v-seg > button, .v-check::before, .v-sort, .v-crumbs a, .v-field-clear, .v-table td { transition: none; }
}

/* ---------- ícone: um conjunto, traço 1,5 px renderizado ---------- */
.v-ic { width: var(--size-icon); height: var(--size-icon); flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-ic-16 { width: var(--size-icon-sm); height: var(--size-icon-sm); stroke-width: 2.25; }
.v-ic-24 { width: 24px; height: 24px; stroke-width: 1.5; }

/* ---------- pontos (meio-tom): grade fixa + mapa de densidade + tons ---------- */
/* O TAMANHO do ponto segue o mapa (cinza escuro = ponto grande). Escuro: pontos somados ao fundo. Claro: multiplicados. */
.v-ht {
  position: absolute; inset: 0; isolation: isolate; mix-blend-mode: var(--ht-out); pointer-events: none;
  --ht-at: 80% 30%; --ht-size: 120% 90%;
  --ht-map: radial-gradient(ellipse var(--ht-size) at var(--ht-at), var(--ht-4) 0%, var(--ht-3) 22%, var(--ht-2) 42%, var(--ht-1) 60%, var(--ht-off) 78%, var(--ht-0) 84%);
  --ht-tone: radial-gradient(ellipse var(--ht-size) at var(--ht-at), var(--pt-1) 0%, var(--pt-2) 38%, var(--pt-3) 72%);
}
.v-ht::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, var(--ht-c), var(--ht-0)) 0 0 / var(--ht-step, 5px) var(--ht-step, 5px), var(--ht-map); background-blend-mode: multiply; filter: contrast(var(--ht-k, 12)) invert(var(--ht-inv)); }
.v-ht::after { content: ""; position: absolute; inset: 0; background: var(--ht-tone); mix-blend-mode: var(--ht-in); }
.v-ht-hero { --ht-map: radial-gradient(ellipse var(--ht-size) at var(--ht-at), var(--ht-4) 0%, var(--ht-3) 20%, var(--ht-2) 40%, var(--ht-1) 58%, var(--ht-off) 76%, var(--ht-0) 82%); }
.v-ht-thumb { --ht-at: 50% 50%; --ht-size: 95% 95%; --ht-map: radial-gradient(ellipse var(--ht-size) at var(--ht-at), var(--ht-4) 0%, var(--ht-3) 18%, var(--ht-2) 36%, var(--ht-1) 54%, var(--ht-off) 70%, var(--ht-0) 76%); }
.v-ht-mark { --ht-at: 28% 22%; --ht-size: 110% 110%; --ht-map: radial-gradient(ellipse var(--ht-size) at var(--ht-at), var(--ht-4) 0%, var(--ht-3) 20%, var(--ht-2) 40%, var(--ht-1) 62%, var(--ht-off) 84%, var(--ht-0) 90%); }
.v-ht-bar { --ht-map: linear-gradient(0deg, var(--ht-4) 0%, var(--ht-3) 40%, var(--ht-2) 75%, var(--ht-1) 100%); --ht-tone: linear-gradient(0deg, var(--pt-1) 0%, var(--pt-2) 55%, var(--pt-2) 100%); }
.v-ht-1 { --ht-map: linear-gradient(var(--ht-1), var(--ht-1)); --ht-tone: linear-gradient(var(--pt-3), var(--pt-3)); }
.v-ht-2 { --ht-map: linear-gradient(var(--ht-2), var(--ht-2)); --ht-tone: linear-gradient(var(--pt-2), var(--pt-2)); }
.v-ht-3 { --ht-map: linear-gradient(var(--ht-3), var(--ht-3)); --ht-tone: linear-gradient(var(--pt-2), var(--pt-2)); }
.v-ht-4 { --ht-map: linear-gradient(var(--ht-4), var(--ht-4)); --ht-tone: linear-gradient(var(--pt-1), var(--pt-1)); }
/* tudo o que fica por cima de pontos: desfoca 6 px atrás da peça e numa folga de 4 px em volta.
   --ov-r = raio da peça. Nenhum ancestral até os pontos pode ter filter, opacity < 1, mask ou backdrop-filter. */
.v-over, .ov-blur { display: flex; padding: 4px; margin: -4px; border-radius: calc(var(--ov-r, 12px) + 4px); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* miniatura de artefato e marca */
.v-thumb { position: relative; flex: none; display: block; width: var(--size-thumb); height: var(--size-thumb); border-radius: var(--radius-12); overflow: hidden; background: var(--thumb); border: 1px solid var(--line); box-sizing: border-box; }
.v-thumb-34 { width: 34px; height: 34px; border-radius: var(--radius-8); }
.v-thumb-32 { width: 32px; height: 32px; border-radius: var(--radius-8); }
.v-thumb.is-dim .v-ht { opacity: .5; }
.v-mark { --pt-1: var(--mk-pt-1); --pt-2: var(--mk-pt-2); --pt-3: var(--mk-pt-3); --ht-inv: 1; --ht-in: multiply; --ht-out: screen;
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-6); overflow: hidden; background: var(--mk-bg); border: 1px solid var(--mk-line); box-sizing: border-box; color: var(--mk-ic); }
.v-mark .v-ic { position: relative; width: var(--size-icon-sm); height: var(--size-icon-sm); stroke-width: 2.25; }
.v-mark-34 { width: 34px; height: 34px; border-radius: var(--radius-8); }
.v-mark-34 .v-ic { width: var(--size-icon); height: var(--size-icon); stroke-width: 1.8; }

/* ---------- chip ---------- */
.v-chip, .v-delta { display: inline-flex; align-items: center; gap: var(--space-6); height: var(--size-chip); padding: 0 var(--space-9); border-radius: var(--radius-pill); box-sizing: border-box; border: 1px solid transparent; font: 500 12.5px/16px var(--v-sans); white-space: nowrap; flex: none; color: var(--t2); }
.v-chip-live, .v-chip-run { color: var(--live); background: var(--live-bg); }
.v-chip-trial { color: var(--trial); background: var(--trial-bg); }
.v-chip-partial { color: var(--partial); background: var(--partial-bg); border: 1px dashed var(--partial-line); }
.v-chip-fail { color: var(--fail); background: var(--fail-bg); border-color: var(--fail-line); }
.v-chip-rec, .v-chip-closed { color: var(--rec); background: var(--rec-bg); }
.v-chip-nd { color: var(--t3); border: 1px dashed var(--nd-line); }
.v-chip-ex { color: var(--ex); border: 1px dashed var(--ex-line); }
.v-chip-win { color: var(--ember-text); background: var(--ember-soft); }
.v-chip-none, .v-chip-build, .v-chip-load, .v-chip-type { color: var(--t2); border-color: var(--line-strong); }
.v-chip-stop { color: var(--partial); border-color: var(--partial-line); }
.v-chip-tip { color: var(--tip-fg); background: var(--tip-bg); font-weight: 600; }

/* ---------- delta: a seta diz a direção, a cor diz se é bom ou ruim.
   A cor nunca vai sozinha: o desfavorável tem contorno e todo delta leva o texto .v-sr (favorável, desfavorável, dentro do ruído). ---------- */
.v-delta { width: var(--size-delta); justify-content: space-between; font-variant-numeric: tabular-nums; }
.v-delta-fav { color: var(--fav); background: var(--fav-bg); }
.v-delta-unf { color: var(--unf); background: var(--unf-bg); border-color: var(--fail-line); }
.v-delta-neu { color: var(--neu); background: var(--neu-bg); }
.v-delta.is-partial { border: 1px dashed currentColor; }
.v-delta-inline { width: auto; height: auto; padding: 0; gap: var(--space-4); border: 0; border-radius: 0; background: none; font: 600 13px/18px var(--v-sans); }

/* ---------- botão ---------- */
.v-btn { height: var(--size-control); padding: 0 var(--space-14); border-radius: var(--radius-pill); font: 600 14px/20px var(--v-sans); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-7); box-sizing: border-box; border: 1px solid var(--ctl-line); background: var(--ctl); color: var(--t1); white-space: nowrap; cursor: pointer; text-decoration: none; flex: none; margin: 0; }
.v-btn:hover { background: var(--ctl-hover); color: var(--t1); }
.v-btn:active { background: var(--active); }
.v-btn-primary { background: var(--btn1); border-color: transparent; color: var(--btn1-fg); }
.v-btn-primary:hover, .v-btn-primary:active { background: var(--btn1-hover); color: var(--btn1-fg); }
.v-btn-ghost { background: transparent; border-color: transparent; color: var(--t2); padding: 0 var(--space-11); }
.v-btn-ghost:hover { background: var(--hover); color: var(--t1); }
.v-btn-icon { width: var(--size-control); padding: 0; }
.v-btn-sm { height: var(--size-control-sm); padding: 0 var(--space-11); gap: var(--space-6); font-size: 13px; line-height: 18px; }
.v-btn-sm.v-btn-icon { width: var(--size-control-sm); padding: 0; }
.v-btn:disabled, .v-btn[aria-disabled="true"] { background: var(--btn1-off); border-color: transparent; color: var(--t3); cursor: not-allowed; pointer-events: none; }
.v-btn[aria-busy="true"] { pointer-events: none; }

/* ---------- campo ---------- */
.v-field { position: relative; display: flex; align-items: center; gap: var(--space-9); height: var(--size-control); min-width: 0; box-sizing: border-box; padding: 0 var(--space-11); border-radius: var(--radius-12); background: var(--fill); border: 1px solid var(--ctl-line); color: var(--t3); }
.v-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ember-focus); }
.v-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0; margin: 0; font: 400 14px/20px var(--v-sans); color: var(--t1); outline: none; }
.v-field input:focus-visible { outline: none; }
.v-field input::placeholder { color: var(--t3); opacity: 1; }
.v-field input::-webkit-search-cancel-button { display: none; }
.v-field[aria-invalid="true"], .v-field.is-invalid { border-color: var(--fail); }
.v-field[aria-invalid="true"]:focus-within, .v-field.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--fail-bg); }
.v-field.is-disabled { background: var(--btn1-off); border-color: transparent; pointer-events: none; }
.v-field-clear { width: 24px; height: 24px; border-radius: var(--radius-pill); border: 0; background: var(--ctl-hover); color: var(--t2); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: none; }
.v-field-clear:hover { color: var(--t1); }
.v-help { display: flex; align-items: center; gap: var(--space-6); font: 400 12.5px/16px var(--v-sans); color: var(--t3); }
.v-help-fail { color: var(--fail); }
.v-kbd { display: inline-flex; align-items: center; height: 18px; padding: 0 var(--space-6); border-radius: var(--radius-6); border: 1px solid var(--line-strong); font: 500 11.5px/16px var(--v-mono); color: var(--t3); box-sizing: border-box; flex: none; }

/* ---------- segmentado ---------- */
.v-seg { display: inline-flex; align-items: center; height: var(--size-control); padding: var(--space-2); gap: var(--space-2); border-radius: var(--radius-12); background: var(--fill); border: 1px solid var(--ctl-line); box-sizing: border-box; flex: none; }
.v-seg > button { height: var(--size-control-sm); padding: 0 var(--space-11); margin: 0; border-radius: var(--radius-8); font: 500 13px/20px var(--v-sans); border: 0; cursor: pointer; white-space: nowrap; color: var(--t2); background: transparent; }
.v-seg > button:hover { color: var(--t1); }
.v-seg > button[aria-pressed="true"] { color: var(--t1); background: var(--seg-on); box-shadow: inset 0 0 0 1px var(--seg-on-line); }
.v-seg > button:disabled { color: var(--t3); cursor: not-allowed; }

/* ---------- caixa de seleção (área de 34, caixa de 16) ---------- */
.v-check { position: relative; width: var(--size-control); height: var(--size-control); padding: 0; margin: 0; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; border-radius: var(--radius-6); }
.v-check::before { content: ""; width: 16px; height: 16px; border-radius: var(--radius-4); box-sizing: border-box; border: 1.5px solid var(--cb-line); background: transparent; }
.v-check::after { content: ""; position: absolute; left: calc(50% - 6px); top: calc(50% - 6px); width: 12px; height: 12px; background: var(--panel); opacity: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.v-check:hover::before { border-color: var(--t1); }
.v-check[aria-checked="true"]::before, .v-check[aria-checked="mixed"]::before { background: var(--t1); border-color: var(--t1); }
.v-check[aria-checked="true"]::after, .v-check[aria-checked="mixed"]::after { opacity: 1; }
.v-check[aria-checked="mixed"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 6h6'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 6h6'/%3E%3C/svg%3E"); }
.v-check[aria-disabled="true"] { cursor: not-allowed; pointer-events: none; opacity: .5; }

/* ---------- navegação lateral (232 · 17/14) ---------- */
.v-sidebar { width: var(--size-sidebar); flex: none; box-sizing: border-box; padding: var(--space-17) var(--space-14); background: var(--sidebar); border-right: 1px solid var(--sidebar-line); display: flex; flex-direction: column; gap: var(--space-4); }
.v-sidebar nav { display: flex; flex-direction: column; gap: var(--space-4); }
.v-sidebar > .v-label { margin: var(--space-17) 0 var(--space-4); padding: 0 var(--space-11); }
.v-brand { display: flex; align-items: center; gap: var(--space-9); height: 28px; padding: 0 var(--space-11); font: 600 17px/24px var(--v-sans); letter-spacing: -.01em; color: var(--t1); text-decoration: none; }
.v-space { display: flex; align-items: center; gap: var(--space-11); margin-top: var(--space-14); padding: var(--space-9) var(--space-11); border-radius: var(--radius-12); background: var(--fill); min-width: 0; }
.v-space > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.v-space b { font: 600 14px/20px var(--v-sans); color: var(--t1); white-space: nowrap; }
.v-space small { font: 400 12.5px/16px var(--v-sans); color: var(--t3); }
.v-nav { position: relative; display: flex; align-items: center; gap: var(--space-11); width: 100%; height: var(--size-nav); padding: 0 var(--space-11); border-radius: var(--radius-12); box-sizing: border-box; font: 500 14px/20px var(--v-sans); text-decoration: none; color: var(--t2); background: transparent; border: 0; cursor: pointer; }
.v-root a.v-nav, .v-root a.v-tab, .v-root a.v-btn, .v-root a.v-brand { color: var(--t2); }
.v-root a.v-brand, .v-root a.v-btn { color: var(--t1); }
.v-root a.v-btn-primary { color: var(--btn1-fg); }
.v-root a.v-btn-ghost { color: var(--t2); }
.v-nav .v-ic { color: var(--t3); }
.v-nav:hover, .v-root a.v-nav:hover { background: var(--hover); color: var(--t1); }
.v-nav[aria-current="page"], .v-root a.v-nav[aria-current="page"] { background: var(--active); color: var(--t1); }
.v-nav[aria-current="page"] .v-ic { color: var(--ember-line); }
.v-nav[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: calc(50% - 10px); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--ember-line); }
.v-nav-count { margin-left: auto; font: 500 12.5px/16px var(--v-mono); font-variant-numeric: tabular-nums; color: var(--t3); }
/* próximos marcos: linha de 38 como o item de menu */
.v-marcos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.v-marco { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: 18px 16px; column-gap: var(--space-11); align-items: baseline; height: var(--size-nav); padding: var(--space-2) var(--space-11); box-sizing: border-box; }
.v-marco-box { grid-row: 1 / 3; align-self: center; width: 20px; height: 20px; border-radius: var(--radius-6); display: flex; align-items: center; justify-content: center; background: var(--trial-bg); color: var(--trial); }
.v-marco-box.is-live { background: var(--live-bg); color: var(--live); }
.v-marco-title { grid-column: 2; grid-row: 1; font: 500 13px/18px var(--v-sans); color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-marco-date { grid-column: 3; grid-row: 1; font: 500 12.5px/18px var(--v-mono); font-variant-numeric: tabular-nums; color: var(--t2); white-space: nowrap; }
.v-marco-date.is-today { font-weight: 600; color: var(--live); }
.v-marco-code { grid-column: 2 / 4; grid-row: 2; font: 500 11.5px/16px var(--v-mono); color: var(--t3); }
/* rodapé "Leitura": descreve o sistema inteiro, não a página */
.v-reading { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: var(--space-2) var(--space-7); align-items: center; padding: var(--space-11); border-radius: var(--radius-12); background: var(--fill); border: 1px solid var(--line); }
.v-sidebar > .v-reading { margin-top: auto; }
.v-reading-dot { width: 8px; height: 8px; display: flex; align-items: center; justify-content: center; }
.v-reading-dot > i { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--live-dot); flex: none; }
.v-reading.is-fail .v-reading-dot > i { background: var(--fail); animation: none; }
.v-reading.is-idle .v-reading-dot > i { background: var(--t3); animation: none; }
.v-reading b { font: 600 13px/18px var(--v-sans); color: var(--t1); }
.v-reading > span:not(.v-reading-dot) { grid-column: 2; font: 500 12.5px/18px var(--v-mono); color: var(--t2); }
.v-reading small { grid-column: 2; font: 400 12.5px/16px var(--v-sans); color: var(--t3); }

/* ---------- barra superior (62) e caminho ---------- */
.v-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-11) var(--space-14); min-height: var(--size-topbar); padding: 0 var(--space-28); box-sizing: border-box; box-shadow: inset 0 -1px 0 var(--line); }
.v-topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-11); }
.v-crumbs { display: flex; align-items: center; gap: var(--space-7); min-width: 0; font: 500 14px/20px var(--v-sans); color: var(--t3); }
.v-crumbs a, .v-root .v-crumbs a { color: var(--t3); text-decoration: none; }
.v-crumbs a:hover, .v-root .v-crumbs a:hover { color: var(--t1); }
.v-crumbs [aria-current="page"] { font-weight: 600; color: var(--t1); }

/* ---------- painel ---------- */
.v-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-17); box-sizing: border-box; min-width: 0; padding: var(--space-21); }
.v-panel-flush { padding: 0; overflow: hidden; }
.v-panel-flush > .v-panel-head { padding: var(--space-21) var(--space-21) 0; }
.v-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-14); }
.v-panel-head .v-meta { text-align: right; }
.v-card { border-radius: var(--radius-12); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.v-elev { border-radius: var(--radius-12); background: var(--elev); }
.v-sq { width: var(--size-control); height: var(--size-control); border-radius: var(--radius-8); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--elev); color: var(--t2); }
/* linha de regra com rótulo à esquerda */
.v-lrow { display: flex; align-items: center; gap: var(--space-11); padding: var(--space-11) 0; box-shadow: inset 0 1px 0 var(--line); }
.v-lrow:first-child { box-shadow: none; }
.v-lrow:last-child { padding-bottom: 0; }
.v-lrow > .v-small:first-child { width: var(--lw, 84px); flex: none; color: var(--t3); }
.v-lrow > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); min-width: 0; }
/* item de lista de artefato */
.v-item { display: flex; align-items: center; gap: var(--space-11); padding: var(--space-9) var(--space-11); border-radius: var(--radius-12); min-width: 0; text-decoration: none; color: inherit; }
.v-item[aria-selected="true"], .v-item.is-selected { background: var(--active); }
.v-item-main { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; flex: 1; }
.v-item-title { font: 600 14px/20px var(--v-sans); color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-item-meta { display: flex; align-items: center; gap: var(--space-6); font: 400 12.5px/16px var(--v-sans); color: var(--t3); white-space: nowrap; }
.v-item-value { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.v-item-value b { font: 600 20px/24px var(--v-sans); letter-spacing: -.02em; color: var(--t1); font-variant-numeric: tabular-nums; }

/* ---------- indicador: rótulo, valor, observação, hora ---------- */
.v-kpis { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.v-kpi { display: flex; flex-direction: column; min-width: 0; padding: 0 var(--space-21); box-shadow: inset 1px 0 0 var(--line); }
.v-kpi:first-child { box-shadow: none; }
.v-kpi-label { font: 500 13px/18px var(--v-sans); color: var(--t2); }
.v-kpi-value { display: flex; align-items: center; gap: var(--space-9); min-height: 36px; margin-top: var(--space-4); font: 600 30px/36px var(--v-sans); letter-spacing: -.02em; color: var(--t1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-kpi-value.is-card { min-height: 32px; font-size: 24px; line-height: 32px; }
.v-kpi-note { margin-top: var(--space-4); font: 400 13px/18px var(--v-sans); color: var(--t3); }
.v-kpi > .v-stamp { margin-top: var(--space-11); }
.v-hero-num { font: 600 52px/56px var(--v-sans); letter-spacing: -.035em; color: var(--t1); font-variant-numeric: tabular-nums; }
/* todo número tem hora: selo em mono com o ícone do estado */
.v-stamp { display: inline-flex; align-items: center; gap: var(--space-6); font: 500 11.5px/16px var(--v-mono); letter-spacing: 0; color: var(--t3); white-space: nowrap; }
.v-stamp-live { color: var(--live); }
.v-stamp-trial { color: var(--trial); }
.v-stamp-partial { color: var(--partial); }
.v-stamp-fail { color: var(--fail); }
/* N/D nunca vira zero */
.v-nd { display: inline-flex; align-items: center; gap: var(--space-6); height: var(--size-control); padding: 0 var(--space-9); border-radius: var(--radius-8); border: 1px dashed var(--nd-line); box-sizing: border-box; font: 600 15px/20px var(--v-sans); letter-spacing: 0; color: var(--t3); white-space: nowrap; }
/* aviso de falha: diz o que falhou e de quando são os números que ficaram */
.v-note { display: flex; align-items: center; gap: var(--space-7); min-height: var(--size-control); padding: 0 var(--space-9); box-sizing: border-box; border-radius: var(--radius-8); background: var(--fill); border: 1px solid var(--line); color: var(--t2); font: 500 12.5px/16px var(--v-sans); }
.v-note-fail { background: var(--fail-bg); border-color: var(--fail-line); color: var(--fail); }
.v-note-partial { background: var(--partial-bg); border: 1px dashed var(--partial-line); color: var(--partial); }

/* ---------- tabela ---------- */
.v-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-11); }
.v-toolbar > .is-push { margin-left: auto; }
.v-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 500 14px/20px var(--v-sans); font-variant-numeric: tabular-nums; color: var(--t1); }
.v-table th, .v-table td { padding: 0 var(--space-11); text-align: right; vertical-align: middle; white-space: nowrap; box-shadow: inset 0 -1px 0 var(--line); }
.v-table th { height: var(--size-control); background: var(--thead); font: 500 12.5px/16px var(--v-sans); color: var(--t3); }
.v-table td { height: var(--size-row); }
.v-table.is-compact td { height: var(--size-row-compact); }
.v-table.is-comfortable td { height: var(--size-row-comfortable); }
.v-table th:first-child, .v-table td:first-child { padding-left: var(--space-21); }
.v-table th:last-child, .v-table td:last-child { padding-right: var(--space-14); }
.v-table .is-left { text-align: left; }
.v-table .is-group { box-shadow: inset 1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
.v-table .v-table-groups th { font-weight: 600; color: var(--t2); text-align: left; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.v-table .v-table-groups th.is-group { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.v-table tbody tr:hover td { background: var(--row-hover); }
.v-table tbody tr[aria-selected="true"] td { background: var(--sel); }
.v-table tfoot td { background: var(--thead); font-weight: 600; box-shadow: inset 0 1px 0 var(--line-strong); }
.v-table tfoot td.is-group { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line-strong); }
.v-table .v-check { margin-left: -9px; vertical-align: middle; }
.v-sub { display: block; font: 500 11.5px/16px var(--v-mono); color: var(--t3); }
.v-sort { display: inline-flex; align-items: center; gap: var(--space-4); height: var(--size-control); padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
.v-sort:hover { color: var(--t1); }
.v-sort .v-ic { display: none; color: var(--ember-line); }
th[aria-sort="ascending"] .v-sort, th[aria-sort="descending"] .v-sort { color: var(--t1); box-shadow: inset 0 -2px 0 var(--ember-line); }
th[aria-sort="ascending"] .v-sort .v-ic, th[aria-sort="descending"] .v-sort .v-ic { display: block; }
th[aria-sort="ascending"] .v-sort .v-ic { transform: rotate(180deg); }
.v-cell { display: flex; align-items: center; gap: var(--space-11); min-width: 0; }
.v-cell.is-end { justify-content: flex-end; }
.v-cell-main { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.v-cell-main b { font: 600 14px/20px var(--v-sans); color: var(--t1); }
.v-table tbody tr[aria-selected="true"] .v-sq { background: var(--ember); color: var(--on-ember); }
.v-cellbar { position: relative; flex: none; width: 40px; height: 4px; border-radius: var(--radius-2); background: var(--s-weak); }
.v-cellbar > i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0); border-radius: var(--radius-2); background: var(--s-strong); }
.v-table tbody tr[aria-selected="true"] .v-cellbar > i { background: var(--ember); }
.v-cellbar.is-partial > i { background-color: transparent; background-image: repeating-linear-gradient(135deg, var(--hatch) 0 5px, transparent 5px 10px); }
.v-best { display: inline-block; padding: 2px 9px; margin: -2px -9px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--ember-line); }
.v-state { display: inline-flex; align-items: flex-start; gap: var(--space-7); text-align: left; color: var(--t2); }
.v-state > .v-ic { margin-top: 1px; }
.v-state b { display: block; font: 600 13px/18px var(--v-sans); }
.v-state .v-sub { color: var(--t3); }
.v-state-trial { color: var(--trial); }
.v-state-partial { color: var(--partial); }
.v-state-live { color: var(--live); }
.v-state-fail { color: var(--fail); }
.v-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-11) var(--space-28); font: 400 13px/18px var(--v-sans); color: var(--t3); }
.v-legend > span { display: inline-flex; align-items: center; gap: var(--space-7); }
.v-legend.is-series { gap: var(--space-7) var(--space-21); font-weight: 500; color: var(--t2); }
.v-sw { width: 8px; height: 8px; border-radius: var(--radius-2); flex: none; background: var(--s-mid); }
.v-sw-strong { background: var(--s-strong); }
.v-sw-weak { background: var(--s-weak); }
.v-sw-ember { background: var(--ember); }
.v-sw-hatch { width: 10px; height: 10px; border: 1px solid var(--partial-line); box-sizing: border-box; background-color: transparent; background-image: repeating-linear-gradient(135deg, var(--hatch) 0 5px, transparent 5px 10px); }
.v-sw-best { width: 22px; height: 14px; border-radius: var(--radius-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--ember-line); }

/* ---------- barras com destaque: série neutra, brasa só no destaque ---------- */
.v-bars { position: relative; display: flex; align-items: flex-end; gap: var(--space-6); height: 126px; }
.v-bars.has-tip { margin-top: var(--space-34); }
.v-bar { position: relative; width: 24px; flex: none; height: 100%; border-radius: var(--radius-6); background: var(--s-track); }
.v-bar > i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0); border-radius: var(--radius-6); overflow: hidden; background: var(--s-mid); }
.v-bar.is-highlight > i { background: var(--ember-soft); }
.v-bar.is-partial > i { background-color: transparent; background-image: repeating-linear-gradient(135deg, var(--hatch) 0 5px, transparent 5px 10px); border: 1px dashed var(--partial-line); box-sizing: border-box; }
.v-bar > .v-over { position: absolute; left: 50%; bottom: calc(var(--h, 0px) + 9px); transform: translateX(-50%); margin: -4px 0; --ov-r: 999px; z-index: 1; }
.v-axis { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-9); }
.v-axis .is-highlight { color: var(--ember-text); }
.v-axis .is-partial { display: inline-flex; align-items: center; gap: var(--space-6); color: var(--partial); }

/* ---------- gráfico por blocos (Brasa.blocks) ---------- */
.v-blocks { position: relative; }
.v-blocks svg { display: block; overflow: visible; }
.v-blk-t { fill: var(--s-track); }
.v-blk-a { fill: var(--s-mid); }
.v-blk-b { fill: var(--s-strong); }
.v-blk-b.is-on { fill: var(--ember); }
.v-blocks .is-partial { opacity: .55; }
.v-blocks-y { position: absolute; left: 0; text-align: right; font: 500 11.5px/16px var(--v-mono); font-variant-numeric: tabular-nums; color: var(--t3); }
.v-blocks-day { position: absolute; top: 0; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-6); }
.v-blocks-day > span { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; font: 500 11.5px/16px var(--v-mono); color: var(--t3); }
.v-blocks-day > span small { font: 500 11.5px/16px var(--v-sans); }
.v-blocks-day:hover > span, .v-blocks-day:focus-visible > span { color: var(--t1); }
.v-blocks-day[aria-pressed="true"] > span { color: var(--ember-text); font-weight: 600; }
.v-blocks-day[aria-pressed="true"] > span small { color: var(--t3); font-weight: 500; }
.v-blocks-guide { position: absolute; top: 0; width: 0; border-left: 1px dotted var(--t3); pointer-events: none; }
.v-blocks-dot { position: absolute; width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--t1); box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.v-blocks > .v-over { position: absolute; top: 0; pointer-events: none; --ov-r: 12px; }
/* cartão flutuante: tooltip de gráfico, menu */
.v-pop { width: 184px; box-sizing: border-box; border-radius: var(--radius-12); background: var(--pop); border: 1px solid var(--line-strong); box-shadow: var(--pop-shadow); }
.v-pop-head { height: var(--size-control); display: flex; align-items: center; padding: 0 var(--space-11); border-radius: 11px 11px 0 0; background: var(--thead); box-shadow: inset 0 -1px 0 var(--line); font: 500 13px/18px var(--v-sans); color: var(--t2); }
.v-pop-body { padding: var(--space-9) var(--space-11); display: flex; flex-direction: column; gap: var(--space-6); }
.v-pop-row { display: flex; align-items: center; gap: var(--space-7); font: 500 13px/18px var(--v-sans); color: var(--t2); }
.v-pop-row b { margin-left: auto; font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; }
.v-pop-body small { font: 400 12.5px/16px var(--v-sans); color: var(--t3); }

/* ---------- painel-herói: o que está rodando vem primeiro ---------- */
.v-hero { position: relative; overflow: hidden; border-radius: var(--radius-17); background: var(--hero); border: 1px solid var(--line); min-height: 290px; box-sizing: border-box; min-width: 0; }
.v-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 45% at 80% 30%, var(--glow), transparent 70%); }
.v-hero > .v-panel-head { position: relative; padding: var(--space-21); align-items: center; }
.v-hero > .v-panel-head > .v-over { --ov-r: 999px; }
.v-hero > .v-over { position: absolute; left: 21px; bottom: 21px; --ov-r: 17px; }
.v-glass { box-sizing: border-box; min-width: 221px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-17); padding: var(--space-17) var(--space-21); display: flex; flex-direction: column; gap: var(--space-4); }
.v-glass > .v-chip, .v-glass > .v-stamp { margin-top: var(--space-7); align-self: flex-start; }
.v-pill { display: inline-flex; align-items: center; gap: var(--space-4); height: var(--size-chip); padding: 0 var(--space-9); border-radius: var(--radius-pill); background: var(--pill); border: 1px solid var(--line-strong); color: var(--t1); font: 500 13px/16px var(--v-sans); white-space: nowrap; box-sizing: border-box; }
.v-pill-tip { background: var(--tip-bg); border-color: transparent; color: var(--tip-fg); font-weight: 600; }
/* linha do tempo: trecho feito cheio, o que falta tracejado */
.v-tl { position: absolute; height: 128px; }
.v-tl-done { position: absolute; left: 0; bottom: -1px; width: var(--done, 0); height: 2px; border-radius: 2px; background: var(--rail); }
.v-tl-rest { position: absolute; left: var(--done, 0); right: 4px; bottom: 0; border-top: 1px dashed var(--rail-dash); }
.v-tl-pt { position: absolute; left: var(--x, 0); bottom: 0; width: 0; height: 0; }
.v-tl-pt::before { content: ""; position: absolute; left: -.5px; bottom: 0; width: 1px; height: var(--h, 0); background: var(--stem); }
.v-tl-pt::after { content: ""; position: absolute; left: -4px; bottom: -4px; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--c, var(--t1)); box-shadow: 0 0 0 3px var(--hero); }
.v-tl-pt > .v-over { position: absolute; left: 0; bottom: var(--h, 0); transform: translateX(-50%); margin: -4px 0; --ov-r: 999px; }
.v-tl-pt.is-end > .v-over { transform: translateX(-100%); margin: -4px 0 -4px 4px; }
.v-tl-date { position: absolute; top: 137px; left: var(--x, 0); transform: translateX(-50%); font: 500 11.5px/16px var(--v-mono); color: var(--t3); }
.v-tl-date.is-start { transform: none; }
.v-tl-date.is-end { left: auto; right: 0; transform: none; }
/* sem largura para a linha do tempo, ela sai e o cartão ocupa a largura toda */
@media (max-width: 720px) {
  .v-hero > .v-tl { display: none; }
  .v-hero > .v-over { right: 21px; }
  .v-hero .v-glass { flex: 1; }
}

/* ---------- toque: o controle cresce ----------
   Em tela de toque (pointer: coarse) botão, campo e segmentado sobem de 34 para 40,
   o botão pequeno de 28 para 36 e o segmento de 28 para 34. Aba e item do menu (38)
   e a área da caixa de seleção (34) não mudam: .v-t44 leva o alvo a 44 ou mais. */
@media (pointer: coarse) {
  .v-btn, .v-field, .v-seg { height: var(--size-control-touch); }
  .v-btn-icon { width: var(--size-control-touch); }
  .v-btn-sm { height: var(--size-control-sm-touch); }
  .v-btn-sm.v-btn-icon { width: var(--size-control-sm-touch); }
  .v-seg > button { height: var(--size-control); }
}

/* ---------- celular (390): barra 48, caixas 34, toque 44 ---------- */
.v-mbar { display: flex; align-items: center; height: var(--size-mbar); padding: 0 var(--space-14); box-shadow: inset 0 -1px 0 var(--line); }
.v-mbar-brand { display: flex; align-items: center; gap: var(--space-9); height: var(--size-touch); font: 600 17px/24px var(--v-sans); color: var(--t1); text-decoration: none; }
.v-root a.v-mbar-brand { color: var(--t1); }
.v-mbar-actions { margin-left: auto; display: flex; gap: var(--space-11); }
.v-tabs { display: flex; gap: var(--space-7); padding: var(--space-11) var(--space-14); overflow-x: auto; }
.v-tab { display: inline-flex; align-items: center; gap: var(--space-7); height: var(--size-nav); padding: 0 var(--space-14); border-radius: var(--radius-pill); box-sizing: border-box; white-space: nowrap; flex: none; text-decoration: none; font: 500 14px/20px var(--v-sans); background: transparent; color: var(--t2); border: 1px solid var(--line); cursor: pointer; }
.v-tab:hover, .v-root a.v-tab:hover { background: var(--hover); color: var(--t1); }
.v-tab[aria-current="page"], .v-tab[aria-selected="true"], .v-root a.v-tab[aria-current="page"] { background: var(--seg-on); color: var(--t1); border-color: var(--ctl-line); }
.v-tab .v-nav-count { margin-left: 0; }
.v-kv { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.v-kv > span:first-child { font: 500 12.5px/16px var(--v-sans); color: var(--t3); }
.v-kv b { font: 600 17px/24px var(--v-sans); color: var(--t1); font-variant-numeric: tabular-nums; }

/* ---------- vazio ---------- */
.v-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-7); padding: var(--space-41) var(--space-21); text-align: center; }
.v-empty > .v-sq { margin-bottom: var(--space-7); }
.v-empty .v-btn { margin-top: var(--space-11); }
