/* ============================================================
   Studio Control
   Identidade validada no Claude Design. Redesign V1/V2: Instrument Sans na
   interface, Bricolage Grotesque nos títulos (Montserrat só na peça/PDF).

   F1: tokens (:root) e componentes reutilizáveis (.panel, .btn, .pill,
   .stat, .field/.input, .iconbtn, .tablewrap/.grid-table, .filters,
   .emptystate, .draft, .trackrow, .toast, .grid) foram extraídos pra
   tokens.css / components.css — ver docs/design-system.md. Este arquivo
   guarda o app-shell e os estilos específicos de cada tela.
   ============================================================ */


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-on-dark);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- Layout ---------- */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--bg);
}

.brandband {
  background: var(--gold-grad);
  position: sticky;
  top: 0;
  height: 100vh;
}
.brandband__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brandband__symbol { width: 28px; }
.brandband__name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 600;
  font-size: 12px;
  color: var(--on-gold);
  white-space: nowrap;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 30px 16px;
  flex-wrap: wrap;
}
.topbar__brand {
  flex: 0 0 auto;
  margin-right: auto;
  color: var(--ink);
  font: 600 15px var(--font-display);
  letter-spacing: .01em;
}
.topbar__meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* Botão sol/lua — tema claro/escuro (js/theme.js) */
.theme-toggle {
  flex: none;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__sun { display: none; }
  :root:not([data-theme]) .theme-toggle__moon { display: block; }
}

.nav-scroll { position: relative; min-width: 0; display: flex; }
.nav {
  display: flex;
  gap: 4px;
  background: var(--bloco-painel);
  padding: 4px;
  border-radius: 999px;
  max-width: 100%;
}
.nav a {
  text-decoration: none;
  color: var(--on-painel-2);
  font-weight: 500;
  font-size: 15px;
  padding: 0 18px;
  height: 40px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--on-painel); }
.nav .sh, .nav .nav--so-mobile { display: none; }
.nav a.nav--so-mobile { display: none; }
.nav__ico { display: none; }
.nav a.is-active { background: var(--gold); color: var(--on-gold); }

/* ---------- View / panel ---------- */
.view { flex: 1; padding: 8px 30px 40px; }

/* Acesso real: o shell inteiro some antes que qualquer tela do produto seja desenhada. */
.acesso-bloqueado { background: var(--canvas); }
.acesso { min-height: 100dvh; display: grid; align-items: center; padding: clamp(24px, 6vw, 88px); background: var(--canvas); border-left: clamp(16px, 2.2vw, 32px) solid var(--gold); }
.acesso__in { width: min(100%, 880px); }
.acesso__marca { display: block; margin: 0 0 clamp(40px, 8vh, 80px); font: 600 22px/1 var(--font-display); letter-spacing: -.015em; }
.acesso__quem { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 16px; font-weight: 600; }
.acesso__quem::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--gold); box-shadow: inset 0 0 0 2px var(--ink); }
.acesso__in h1 { margin: 0; font: 500 clamp(40px, 7vw, 88px)/.98 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.acesso__in h1 em { font-style: normal; box-shadow: inset 0 -.3em 0 var(--gold); }
.acesso__lead { margin: 32px 0 0; max-width: 34em; color: var(--ink); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; text-wrap: pretty; }
.acesso__acao { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.acesso__entrar { min-height: 56px; padding: 0 32px; font-size: 18px; justify-content: center; }
.acesso__demo { color: var(--ink); font-size: 16px; font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 2px; }
.acesso__demo:hover { text-decoration-color: var(--gold); }
.acesso__aviso { min-height: 1.4em; margin: 14px 0 0; color: var(--danger-ink); font-size: 14px; line-height: 1.45; }
.acesso__fato { max-width: 40em; margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.acesso__assinar { display: block; width: fit-content; margin: 18px 0 0; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.acesso__assinar:hover { color: var(--ink); }
@media (max-width: 480px) { .acesso { padding: 32px 20px; } .acesso__entrar { width: 100%; } }

@media (max-width: 720px) {
  /* Celular: a faixa lateral vira uma tira horizontal de 44px no topo (como no
     mock) e o layout vira fluxo de bloco, 100% de largura. */
  .app { display: block; }
  .brandband { position: static; height: 44px; }
  .brandband__inner { flex-direction: row; padding: 0 16px; }
  .brandband__symbol { width: 22px; }
  .brandband__name { writing-mode: horizontal-tb; transform: none; font-size: 11px; }
}

/* ---------- Forms (campos específicos de tela — .field/.input/.textarea
   genéricos estão em components.css) ---------- */
.hint { font-size: 12px; color: var(--ink-3); }

/* Nota explicativa presa a UM campo (dentro do .field, logo abaixo do
   controle) — em vez de flutuar solta numa coluna vizinha com label vazio. */
.field-note { font-size: 12px; line-height: 1.45; color: var(--ink-3); margin: 0; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }

/* items in two columns */
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .items { grid-template-columns: 1fr; } }
.item {
  background: transparent;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
}
.item .field:last-child { margin-bottom: 0; }
.item__del {
  position: absolute; top: 8px; right: 8px;
  border: none; background: color-mix(in srgb, var(--ink) 8%, transparent);
  width: 24px; height: 24px; border-radius: 999px;
  cursor: pointer; color: var(--panel-muted); font-weight: 700;
}

/* Célula "Projeto" do Histórico: selos (novo/faturado/aprovação) numa linha
   acima, nome do orçamento embaixo — em vez de tudo espremido numa linha só
   com o nome alinhado à direita, difícil de ler em títulos longos. */
.cell-projeto__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.cell-projeto__title { font-weight: 600; }

/* Barra anterior/próximo no form de edição do Histórico */
.edit-nav {
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
  gap: 10px;
}
.edit-nav .btn[disabled] { opacity: .35; }

/* ---------- Reference box (category ticket) ---------- */
.refbox {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.refbox .stat__value { font-size: 20px; }

/* ---------- Preview / PDF proposals ---------- */






/* The proposal canvas — cloned & scaled for PDF export */
.proposal {
  background: var(--pdf-bg); /* fundo claro chapado, uma cor só (igual ao PDF) */
  color: #1D1B18;
  font-family: var(--font-pdf);
  display: flex;
  overflow: hidden;
  position: relative;
}
.proposal__band {
  background: var(--gold-grad);
  color: #1C1407;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.proposal__body { flex: 1; display: flex; flex-direction: column; }
.proposal__label {
  align-self: flex-start;
  background: #0B0B0B;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
.proposal__title { font-weight: 800; line-height: 1.08; }
.proposal__client { color: #4A443B; font-weight: 700; text-transform: uppercase; }
.proposal__card {
  background: #FFFFFF;
  color: #2A2724;
  border-radius: 18px;
  flex: 1;
}
.proposal__items { display: block; }
.proposal__foot { color: #6B6459; }
.proposal__value {
  background: var(--gold-grad);
  color: #1C1407;
  border-radius: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

/* ---------- Import preview ---------- */


.dupe td { background: var(--tint-butter) !important; }

/* ---------- Contact footer ---------- */
.contactbar {
  padding: 16px 30px 22px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.contactbar a { text-decoration: none; }
.contactbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-on-dark);
  font-weight: 600;
  font-size: 13px;
  transition: color .15s;
}
.contactbar__item svg { display: block; }
.contactbar a:hover .contactbar__item { color: var(--ink-2); }

/* ============================================================
   Mobile (≤ 720px) — testado a 360 e 414
   ============================================================ */
@media (max-width: 720px) {
  html { overflow-x: hidden; }
  body { overflow-x: clip; } /* clip não cria contêiner de rolagem: o menu fixo (sticky) continua valendo */

  /* Topbar: marca + versão na 1ª linha; menu ocupa a 2ª linha inteira */
  .topbar { padding: 14px 14px 10px; gap: 10px 12px; }
  .topbar__brand { order: 1; }
  .topbar__meta { order: 2; margin-left: auto; }
  .theme-toggle { order: 2; width: 36px; height: 36px; }
  .nav-scroll { order: 3; flex-basis: 100%; overflow: hidden; }

  /* Menu rola na horizontal, com fade na borda indicando que há mais itens */
  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { scroll-snap-align: start; }
  .nav-scroll::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40px;
    pointer-events: none;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(to right, transparent, var(--canvas));
  }

  /* Conteúdo fluido — nada de largura fixa */
  .view { padding: 6px 14px 96px; }

  .refbox { grid-template-columns: 1fr; }

  .items { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .row > * { min-width: 0; }

  .contactbar { padding: 14px 16px 20px; }
}

/* Histórico: célula "Projeto" no breakpoint de cards (regra genérica
   .grid-table--cards está em components.css) */
@media (max-width: 720px) {
  /* Nome do orçamento em bloco próprio, ocupando a largura toda — sem o
     rótulo "PROJETO" competindo por espaço nem o texto forçado à direita. */
  .grid-table--cards td.cell-projeto {
    display: block;
    text-align: left;
  }
  .grid-table--cards td.cell-projeto::before { content: ""; }
  .grid-table--cards td.cell-projeto .cell-projeto__title { font-size: 14px; }
}

/* ---------- Orçamentos (ex-Visão geral) — pares de painéis lado a lado ---------- */
/* Por categoria|Por cliente e Últimos orçamentos|Rascunhos em andamento:
   mesma largura e altura entre os dois (align-items:stretch, padrão). */
.vg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vg-pair > .panel { min-width: 0; }
.vg-pair > .panel + .panel { margin-top: 0; }
@media (max-width: 1080px) {
  .vg-pair { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .vg-pair { gap: 14px; }
}

/* ---------- Evolução dos orçamentos (Visão geral) ---------- */





/* Nota explicativa do gráfico — discreta de propósito, pra não competir com
   o gráfico pelo espaço da "hero" (topo de Orçamentos). */
.evo__note { margin-top: 10px; font-size: 12px; line-height: 1.45; }

.evo__legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2px; }
.evo__lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--panel-muted);
}
.evo__sw { width: 11px; height: 11px; border-radius: 3px; flex: none; display: block; }
.evo__sw--orcado { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.evo__sw--aprovado { background: var(--ink); }
.evo__sw--conv { position: relative; width: 16px; height: 2px; border-radius: 0; background: var(--conv); }
.evo__sw--conv::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--conv);
  transform: translate(-50%, -50%);
}

.evo__chart-wrap { min-width: 0; }


/* Sem min-width aqui de propósito: o viewBox do SVG agora acompanha a
   largura real do container via JS (evolucaoOrcamentosPanel/svgEvolucao) —
   forçar uma largura mínima por CSS reintroduziria uma pequena escala
   (viewBox menor que o CSS width), inflando o texto de novo. */
.evo__chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.evo__chart svg { width: 100%; height: auto; display: block; }
/* Faixa zebrada bem discreta — profundidade sutil sem sombra nem gradiente
   (continua flat), só de leve pra guiar o olho entre meses alternados. */



.evo-axis { font: 500 12px var(--font); fill: var(--panel-muted); font-variant-numeric: tabular-nums; }
.evo-axis--l { text-anchor: end; }
.evo-axis--r { text-anchor: start; }
.evo-mlabel {
  font: 500 12px var(--font);
  fill: var(--panel-muted);
  text-anchor: middle;
}




.evo-line { fill: none; stroke: var(--conv); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.evo-dot { fill: var(--surface); stroke: var(--conv); stroke-width: 2; }


/* ---------- Orçamentos — KPIs do período (5 cards) ---------- */


/* Destaque do valor aprovado: fica escuro nos dois modos (o amarelo precisa de fundo escuro). */








/* ---------- Orçamentos — listas "Por categoria"/"Por cliente" (barra de progresso) ---------- */
.plist { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.plist__row { padding: 10px; border-radius: 10px; cursor: pointer; }
.plist__row:hover { background: var(--surface-2); }
.plist__top { display: flex; align-items: baseline; gap: 10px; }
.plist__name { font-size: 13.5px; font-weight: 500; color: var(--panel-ink); }
.plist__jobs { font-size: 12px; color: var(--panel-muted); }
.plist__value { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--panel-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plist__bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 7px; overflow: hidden; }
.plist__bar > span { display: block; height: 6px; border-radius: 99px; background: var(--c, var(--ink)); }

/* ---------- Rodapé "Acervo" (números do histórico inteiro) ---------- */
.acervo { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 16px 30px; background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.acervo__label { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.acervo__item { display: flex; align-items: baseline; gap: 8px; }
.acervo__n { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.acervo__lbl { font-size: 13px; color: var(--ink-2); }
.acervo__link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.acervo__link:hover { color: var(--ink-2); }
@media (max-width: 720px) {
  .plist { gap: 8px; }
  .acervo { padding: 14px 18px; gap: 16px; }
  .acervo__link { display: none; }
}

/* ---------- misc ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--panel-muted); }



code.k { background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 2px 6px; border-radius: 6px; font-size: 12px; }



/* ============================================================
   V3 — Orçamentos (Visão geral, Histórico, Novo orçamento)
   ============================================================ */

/* Cabeçalho de página: migalha + título grande + ações à direita */
.pghead { margin: 4px 0 var(--s5); }
.crumb { display: flex; align-items: center; gap: var(--s2); color: var(--ink-3); font-size: 13px; margin-bottom: var(--s2); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.pghead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.pghead h1 { margin: 0; font: 600 clamp(40px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -.04em; }
.pghead p { margin: 12px 0 0; font-size: 17px; color: var(--ink); opacity: .85; max-width: 64ch; }
.pghead__acoes { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.pghead__acoes .btn { white-space: nowrap; }

/* Tiles tintados (sobre .panel) e número grande */
.panel--butter { background: var(--tint-butter); }
.panel--sage { background: var(--tint-sage); }
.panel--stone { background: var(--tint-stone); }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.tile__title { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.tile__sub { color: var(--ink-3); font-size: 13px; }
.panel--butter .tile__sub, .panel--sage .tile__sub, .panel--stone .tile__sub { color: var(--ink-2); }
.panel--butter .hint, .panel--sage .hint, .panel--stone .hint { color: var(--ink-2); }
.bignum { font-family: var(--font-display); font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; }
.bignum--xl { font-size: clamp(64px, 9vw, 112px); }
.bignum--lg { font-size: 48px; }
.bignum small { font-size: .38em; letter-spacing: 0; font-weight: 400; color: var(--ink-2); margin: 0 .12em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--gold); color: var(--on-gold); }

/* Visão geral */
.vg { display: flex; flex-direction: column; gap: var(--s4); }
.vg > .panel, .vg .vg__top > .panel, .vg-pair > .panel, .stat4 > .panel { margin-top: 0; }
.vg__top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.vg__top > .panel { min-width: 0; }
.hero { display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.hero__foot { display: flex; align-items: center; gap: var(--s3); color: var(--ink-2); flex-wrap: wrap; }
.stat4 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.stat4__tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); min-width: 0; }
.stat4__tile .tile__title { margin-bottom: 0; }
.stat4__tile .bignum--lg { white-space: nowrap; }
@media (max-width: 1080px) { .vg__top { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .hero { min-height: 220px; }
  .bignum--lg { font-size: 40px; }
  .stat4 { gap: var(--s3); }
}

/* Seletor 3M/6M/12M */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* Rankings (Por categoria / Por cliente) sobre tile tintado */
.panel--sage .plist__bar, .panel--stone .plist__bar { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.panel--sage .plist__row:hover, .panel--stone .plist__row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.plist { gap: var(--s2); margin-top: var(--s2); }
.plist__name { font-size: 15px; font-weight: 500; }
.plist__value { font-weight: 600; }

/* Tabela do Histórico dentro do tile: sem moldura, linhas leves */
.panel .tablewrap { border: 0; border-radius: 0; }
.panel .grid-table th { padding: 0 var(--s3) var(--s3); background: transparent; border-bottom: 1px solid var(--line); }
.panel .grid-table td { padding: 14px var(--s3); vertical-align: middle; }
.panel .grid-table tbody tr:hover td { background: var(--surface-2); }
.panel .grid-table tbody tr:hover td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.panel .grid-table tbody tr:hover td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Barra de busca e filtros (Histórico) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: flex-end; margin-bottom: var(--s4); }
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: var(--s2); height: 48px; padding: 0 16px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; cursor: text;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; display: block; }
.search .input, .search .input:focus { flex: 1; border: 0; background: transparent; outline: 0; padding: 0; height: 100%; min-width: 0; border-radius: 0; }
.toolbar .filters { display: contents; }
.toolbar .field { margin: 0; flex: 0 1 170px; }
.toolbar .field > label { font-size: 12px; font-weight: 500; color: var(--ink-3); padding-left: 16px; }
.toolbar .input, .toolbar .select { border-radius: 999px; padding: 0 16px; border-color: var(--line-strong); background: transparent; }
.toolbar .select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.toolbar .filters .field > .btn { height: 48px; }

/* Novo orçamento: formulário + resumo fixo */
.form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); align-items: start; }
.form > .panel { margin-top: 0; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
.fields > .field { margin-bottom: 0; min-width: 0; }
.fields > :empty { display: none; }
.f2 { grid-column: span 2; } .f3 { grid-column: span 3; } .f6 { grid-column: span 6; }
.row--janela { align-items: center; }
.row--janela > * { flex: 0 1 auto; min-width: 0; }
.sect { margin: var(--s6) 0 var(--s4); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.sect h2 { margin: 0; font-size: 20px; font-weight: 500; }
.sect-obs { margin-top: var(--s5); }
.sect-obs .field { margin-bottom: 0; }
.form__lado { position: sticky; top: var(--s5); display: grid; gap: var(--s4); }
.form__lado .panel { margin-top: 0; }
.form__lado .bignum--lg { margin-top: var(--s3); }
.sum { margin-top: var(--s4); }
.sum__row { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.sum__row:last-child { border-bottom: 0; }
.sum__row span:first-child { color: var(--ink-2); flex: none; }
.sum__row span:last-child { text-align: right; overflow-wrap: anywhere; font-weight: 500; }
.form__acoes { display: grid; gap: var(--s2); }
.form__acoes .btn { justify-content: center; width: 100%; }
.form__acoes .tile__sub { text-align: center; margin: 0; }
.form-secao { padding: 22px 0; border-top: 1px solid var(--line); }
.form-secao:first-of-type { padding-top: 0; border-top: 0; }
.form-secao__head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 18px; }
.form-secao__head > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 700; }
.form-secao__head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.form-secao__head p { margin: 3px 0 0; color: var(--ink-3); font-size: 13px; }
.form-secao__context { display: grid; gap: 8px; margin-top: 12px; }
.form-secao__head--items { margin-top: var(--s6); }
@media (max-width: 1080px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__lado { position: static; }
}
@media (max-width: 720px) {
  .fields { grid-template-columns: 1fr; }
  .f2, .f3, .f6 { grid-column: auto; }
  .pghead__acoes .btn { flex: 1; justify-content: center; }

  /* Produção e Cronograma: quatro sinais operacionais entram no primeiro olhar,
     sem empurrar o quadro ou a linha do tempo para baixo. */
  .grid--kpi--operacao { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid--kpi--operacao .kpicard { min-height: 116px; padding: 15px 14px; }
  .grid--kpi--operacao .kpicard__eyebrow { gap: 6px; font-size: 12px; line-height: 1.15; }
  .grid--kpi--operacao .kpicard__eyebrow::before { width: 6px; height: 6px; }
  .grid--kpi--operacao .kpicard__row { display: block; margin-top: 12px; }
  .grid--kpi--operacao .kpicard__value { display: block; font-size: 32px; line-height: .95; }
  .grid--kpi--operacao .kpicard__sub { display: block; margin-top: 5px; font-size: 11px; line-height: 1.2; }
}

/* Animações de entrada da Visão geral (ver router() em app.js) */
@media (prefers-reduced-motion: no-preference) {
  .view.is-entering .evo-cap { transform-box: fill-box; transform-origin: bottom; animation: v3-grow .8s cubic-bezier(.2,.8,.2,1) both; }
  .view.is-entering .evo-cap--apr { animation-delay: .15s; }
  @keyframes v3-grow { from { transform: scaleY(0); } }
  @keyframes v3-fill { from { transform: scaleX(0); } }
  @keyframes v3-draw { from { stroke-dashoffset: 1; } }
  @keyframes v3-fade { from { opacity: 0; } }
  
  
  .view.is-entering .evo-line { stroke-dasharray: 1; animation: v3-draw 1.3s .6s cubic-bezier(.4,.1,.2,1) both; }
  .view.is-entering .evo-dot { animation: v3-fade .5s both; animation-delay: calc(.7s + var(--k, 0) * .3s); }
  .view.is-entering .plist__bar > span { transform-origin: left; animation: v3-fill .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.8s + var(--i, 0) * .12s); }
}

/* ============================================================
   V4 — Produção, detalhe do job, Novo job, Cronograma
   ============================================================ */
.pagebody { display: flex; flex-direction: column; gap: 0; }
.pagebody > .grid--kpi { margin-bottom: var(--s4); }


.kpicard--stack .kpicard__value { font-size: 32px; }
.progress { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .4s cubic-bezier(.2,.8,.2,1); }

/* Cronograma: régua dentro de tile sem padding */
.panel--flush { padding: 0; overflow: hidden; }












/* ============================================================
   V5 — Faturas, Importar, Ajustes
   ============================================================ */
.f4 { grid-column: span 4; }
@media (max-width: 720px) { .f4 { grid-column: auto; } }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.kpicard--sage { background: var(--tint-sage); }
.kpicard--sage .kpicard__sub { color: var(--ink-2); }

/* Faturas */
.fat__sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fat__sub--late { color: var(--danger-ink); font-weight: 700; }
.spill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.spill--open { background: var(--gold-soft); color: var(--ink); }
.spill--late { background: var(--tint-clay); color: var(--danger-ink); }
.spill--paid { background: var(--ok); color: #fff; }
.tag--warn { background: var(--gold); color: var(--on-gold); }
.tot { font: 300 40px/1 var(--font-display); letter-spacing: -.02em; margin-top: var(--s4); font-variant-numeric: tabular-nums; }
.fedit__sub { font: 600 16px var(--font); margin: var(--s5) 0 var(--s2); }

/* Importar */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 22%, transparent); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); transition: transform .2s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }
@media (max-width: 1080px) { .impgrid { grid-template-columns: minmax(0, 1fr); } }

/* Ajustes: menu lateral + seções */
.panel--butter .grid-table th, .panel--sage .grid-table th, .panel--stone .grid-table th { color: var(--ink-2); }

/* ============================================================
   V6 — Preview e exportação
   ============================================================ */
.pvgrid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.pvcard { display: grid; gap: var(--s3); min-width: 0; }
.pvcard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.pvframe { position: relative; overflow: hidden; border-radius: 14px; background: var(--pdf-bg); box-shadow: 0 30px 60px -34px rgba(25, 25, 23, .55), 0 0 0 1px var(--line); }
.pvframe--169 { aspect-ratio: 16 / 9; }
.pvframe--916 { aspect-ratio: 9 / 16; }
.pf { position: absolute; top: 0; left: 0; transform-origin: top left; }
.pvfile { display: grid; gap: 2px; }
.pvfile small { color: var(--ink-3); font-size: 12px; }
.pvfile code { font: 500 12.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-2); overflow-wrap: anywhere; user-select: all; }
@media (max-width: 1080px) { .pvgrid { grid-template-columns: minmax(0, 1fr); } .pvcard--916 { max-width: 420px; } }

/* ============================================================
   Novo orçamento + Preview (studio-0.4.20) — grade única de terços no
   formulário, uma ação principal, itens sem caixa dentro da caixa;
   no preview, 16:9 e 9:16 com a mesma altura, lado a lado.
   ============================================================ */
.pghead p { text-wrap: pretty; }

/* Formulário: 6 colunas e campos de 2, 4 ou 6 — toda borda cai num terço. */
.form--novo .fields { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); }
.form--novo .f2 { grid-column: span 2; } .form--novo .f4 { grid-column: span 4; } .form--novo .f6 { grid-column: span 6; }
.form--novo .form-secao__context { margin-top: var(--s4); }
.form--novo .form-secao__context:not(:has(> :not(:empty))) { display: none; }
.form--novo .duracao { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s2); }
.form--novo .field--acao { justify-content: flex-end; }
.form--novo .field--acao .btn { width: 100%; justify-content: center; min-height: 48px; }
.form--novo #janela-livre { margin: calc(var(--s2) * -1) 0 0; }
/* Referência da categoria: três números chapados nos mesmos terços dos campos, sem caixa dentro da caixa */
.form--novo .refbox { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); padding: var(--s4) 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.form--novo .refbox .stat { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.form--novo .refbox .stat__value { font-variant-numeric: tabular-nums; }
.form--novo #refbox > .btn { margin-top: var(--s3) !important; }
/* Seção com ações à direita do título (Itens e escopo) */
.form-secao__head--acoes { display: flex !important; align-items: flex-start; gap: var(--s4); }
.form-secao__head--acoes > div:first-of-type { flex: 1; min-width: 0; }
.form-secao__head--acoes .sect__acoes { flex: none; }
/* Itens: lista plana separada por fio, na mesma grade do formulário */
.items--lista { display: block; }
.item--linha { padding: var(--s4) 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.item--linha:first-child { padding-top: 0; border-top: 0; }
.item__head { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: var(--s2); }
.item__n { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.item__rem { margin-right: -8px; }
.item--linha .textarea { min-height: 74px; }
.items__add { width: 100%; justify-content: center; margin-top: var(--s2); border-style: dashed; }
/* Lado: prévia + resumo com as ações; uma ação principal, salvar agrupado embaixo */
.form--novo .panel--previa .pvframe { box-shadow: 0 0 0 1px var(--line); }
.panel--resumo .bignum--lg { margin-top: var(--s2); font-variant-numeric: tabular-nums; }
.form__acoes--novo { margin-top: var(--s5); }
.form__acoes-par { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.form__acoes--novo .hint { margin: 0; text-align: center; text-wrap: pretty; }
.panel--previa .pager, .pvcard__head .pager { margin: 0; padding: 0; border: 0; }
@media (max-width: 720px) {
  .form--novo .fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .form--novo .f2, .form--novo .f4, .form--novo .f6 { grid-column: auto; }
  .form-secao__head--acoes { flex-direction: column; gap: var(--s3); }
  .form-secao__head--acoes .sect__acoes { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

/* Preview: colunas na razão 256:81 — a 16:9 e a 9:16 ficam com a mesma altura (sem vão ao lado da mais baixa).
   Subgrade: cabeçalho, peça e nome do arquivo alinhados entre os dois cartões. */
.pvgrid { grid-template-columns: minmax(0, 256fr) minmax(0, 81fr); grid-template-rows: auto auto auto; column-gap: var(--s5); row-gap: var(--s3); align-items: start; }
.pvcard { grid-row: span 3; grid-template-rows: subgrid; gap: 0; }
.pvcard__head { flex-wrap: nowrap; gap: var(--s2); min-width: 0; }
.pvcard__fmt { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.pvcard__fmt b { font: 600 15px var(--font); color: var(--ink); }
.pvcard__fmt small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pvcard__head .spacer { flex: 1; }
.pvframe { box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 1080px) {
  .pvgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--s6); }
  .pvcard { grid-row: auto; grid-template-rows: none; gap: var(--s3); }
  .pvcard--916 { max-width: 360px; width: 100%; }
}

/* ============================================================
   Acabamento V3–V5 (comparação com o mock)
   ============================================================ */
/* Gráfico: mês em andamento (hachurado) e destaque do melhor mês */
.evo-hach { stroke-width: 1.2; }
.evo-hach--o { stroke: var(--ink-3); }
.evo-hach--a { stroke: var(--ink); stroke-width: 2.4; }


.evo__sw--parcial { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--ink-3) 3px 4px); box-shadow: inset 0 0 0 1px var(--ink-3); }



/* Histórico: filtros em uma linha, categoria com ponto, ações neutras */
.toolbar .filters .input { width: 128px; flex: 0 0 auto; }
.toolbar .filters .select { width: auto; flex: 0 1 auto; min-width: 0; max-width: 210px; }
.toolbar .filters > .btn { margin-left: var(--s2); }
.cat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink-2); }
.cat i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.panel .grid-table td[data-label="Cliente"], .panel .grid-table td[data-label="Ano/mês"] { white-space: nowrap; }
/* Novo orçamento: itens empilhados, como no mock */
.items { grid-template-columns: 1fr; }

/* Cronograma: dia da semana na régua, hoje com linha, fins de semana sombreados (como no mock) */









/* Produção: andamento na cor do cliente e contador de arquivados */

.chip-toggle__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); font-size: 12px; font-weight: 600; }
.chip-toggle.is-active .chip-toggle__n { background: color-mix(in srgb, var(--on-ink) 22%, transparent); }

/* Histórico: paginação (mock .pager) */
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); color: var(--ink-3); font-size: 13px; }
.pager .seg button[disabled] { opacity: .35; cursor: default; }
.pager__gap { padding: 6px 4px; color: var(--ink-3); }

/* Legenda do Gantt (mock): prazo combinado neutro, estimativa hachurada */



/* Diálogos e anexos (mock) */
.radio { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-top: 8px; cursor: pointer; font-weight: 500; }
.radio input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.dialog fieldset { border: 0; padding: 0; margin: 0; }
.dialog .field { margin-top: var(--s4); margin-bottom: 0; }
.anexo { display: flex; align-items: center; gap: var(--s3); padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: var(--s2); }
.anexo > div { min-width: 0; flex: 1; }
.anexo b { display: block; font-weight: 600; }
.anexo small { color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.danger-text { color: var(--danger-ink); }

/* ---------- Cronograma — régua do mock (g-*) ---------- */

































 











@media (prefers-reduced-motion: no-preference) {
  .is-entering .g-bar { animation: v3-fill .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
  .is-entering .g-load i { animation: v3-grow .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: .15s; }
}


/* ---------- Histórico no celular: lista compacta que abre ao toque (como o mock) ---------- */
.hrow__tog { display: none; }
@media (max-width: 720px) {
  .panel .grid-table.hist-lista tr {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 92px 28px;
    grid-template-areas: "chk title val tog" "chk cat bdg tog";
    column-gap: 6px; row-gap: 2px; align-items: center;
    background: transparent; border: 0; border-bottom: 1px solid var(--panel-line); border-radius: 0;
    box-shadow: none; margin: 0; padding: 12px 0; cursor: pointer;
  }
  .panel .grid-table.hist-lista tr.is-open { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: var(--radius-sm); padding: 12px 8px; border-bottom-color: transparent; }
  .panel .grid-table.hist-lista td { display: block; padding: 0; border: 0; text-align: left; }
  .panel .grid-table.hist-lista td + td { border-top: 0; }
  .panel .grid-table.hist-lista td::before { content: none; }
  .panel .grid-table.hist-lista td.cell-projeto { display: contents; }
  .panel .grid-table.hist-lista td.cell-projeto::before { content: none; }

  .panel .grid-table.hist-lista td:nth-child(1) { grid-area: chk; align-self: center; }
  .panel .grid-table.hist-lista .cell-projeto__title { grid-area: title; font-size: 15px; line-height: 1.3; }
  .panel .grid-table.hist-lista td:nth-child(6) { grid-area: val; text-align: right; font-size: 14px; white-space: nowrap; }
  .panel .grid-table.hist-lista td:nth-child(5) { grid-area: cat; font-size: 13px; min-width: 0; }
  .panel .grid-table.hist-lista td:nth-child(5) .cat { font-size: 13px; max-width: 100%; }
  .panel .grid-table.hist-lista td:nth-child(5) .cat { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel .grid-table.hist-lista td:nth-child(5) .cat i { display: inline-block; margin-right: 8px; vertical-align: 1px; }
  .panel .grid-table.hist-lista .cell-projeto__badges { grid-area: bdg; justify-content: flex-end; margin: 0; max-width: 128px; }
  .panel .grid-table.hist-lista tr:not(.is-open) .mini-pill--novo { display: none; }
  .panel .grid-table.hist-lista .hrow__tog {
    grid-area: tog; display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--ink-3); cursor: pointer; justify-self: end;
  }
  .panel .grid-table.hist-lista .hrow__tog svg { width: 20px; height: 20px; transition: transform .2s; }
  .panel .grid-table.hist-lista .hrow__tog[aria-expanded="true"] svg { transform: rotate(180deg); }

  /* detalhes: só quando aberto */
  .panel .grid-table.hist-lista td:nth-child(2), .panel .grid-table.hist-lista td:nth-child(3), .panel .grid-table.hist-lista td.cell-acao { display: none; }
  .panel .grid-table.hist-lista tr.is-open td:nth-child(2), .panel .grid-table.hist-lista tr.is-open td:nth-child(3) {
    display: flex; justify-content: space-between; gap: 14px; grid-column: 1 / -1; padding: 10px 0 0; margin-top: 10px; border-top: 1px solid var(--panel-line);
  }
  .panel .grid-table.hist-lista tr.is-open td:nth-child(3) { margin-top: 0; border-top: 0; padding-top: 6px; }
  .panel .grid-table.hist-lista tr.is-open td:nth-child(2)::before, .panel .grid-table.hist-lista tr.is-open td:nth-child(3)::before { content: attr(data-label); font-size: 12px; font-weight: 500; color: var(--ink-3); }
  .panel .grid-table.hist-lista tr.is-open td.cell-acao { display: block; grid-column: 1 / -1; padding: 10px 0 0; }
  .panel .grid-table.hist-lista tr.is-open td.cell-acao::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { .panel .grid-table.hist-lista .hrow__tog svg { transition: none; } }

/* ---------- Cabeçalho e filtros mais leves no celular (0.2.48) ---------- */
.contactbar__ver { display: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toolbar__filtros { display: none; }
@media (max-width: 720px) {
  /* versão sai do cabeçalho e vai pro rodapé */
  .topbar__meta { display: none; }
  .contactbar__ver { display: inline; }
  /* menu e título já dizem onde você está: o caminho (migalha) some */
  .pghead .crumb { display: none; }
  .pghead { margin-top: var(--s2); }

  /* Histórico: busca + botão "Filtros"; o resto abre sob demanda */
  .toolbar { align-items: center; }
  .toolbar .search { flex: 1 1 0; min-width: 0; }
  .toolbar .toolbar__filtros { display: inline-flex; flex: none; }
  .toolbar .filters { display: none; }
  .toolbar.is-open .filters { display: flex; flex-wrap: wrap; gap: var(--s2); width: 100%; }
  .toolbar.is-open .filters .field, .toolbar.is-open .filters > .input, .toolbar.is-open .filters > .select { flex: 1 1 calc(50% - var(--s2)); min-width: 0; }
  .toolbar .toolbar__filtros[aria-expanded="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

  /* chips de cliente (Produção e Cronograma): uma fileira que rola na horizontal */
  #view .filterbar {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: -14px; margin-right: -14px; padding: 0 14px 2px; scroll-padding: 0 14px;
  }
  #view .filterbar::-webkit-scrollbar { display: none; }
  #view .filterbar > * { flex: none; }
  #view .filterbar > .chip-toggle--danger { margin-left: 0 !important; }

  /* KPIs mais baixos no celular */
  .kpicard { padding: var(--s4); }
  .kpicard__row { margin-top: var(--s3); }
  .kpicard__value { font-size: 40px; }
}

/* ---------- Alvos de toque ≥ 44px (touch ou tela estreita), sem mexer no desenho ---------- */
/* A área tocável cresce com um pseudo-elemento invisível; o botão em si não muda de tamanho. */
@media (pointer: coarse), (max-width: 720px) {
  .seg button, .iconbtn, .btn--sm, .btn--ghost, .btn--text, .chip-toggle, .hrow__tog,
  .acervo__link { position: relative; }
  .seg button::after, .btn--sm::after, .btn--ghost::after, .btn--text::after, .chip-toggle::after,
  .acervo__link::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
  .iconbtn::after { content: ""; position: absolute; inset: -5px; }
  .iconrow { gap: 10px; }
  /* menu e botão de tema: tamanho real (ficam dentro de contêineres que cortam o pseudo-elemento) */
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .theme-toggle { width: 44px; height: 44px; }
  /* a bolinha de cor dentro do chip é pequena demais para o dedo: no toque o chip só filtra (a cor se escolhe em Ajustes) */
  .chip-toggle .cliente-swatch { pointer-events: none; }
}
@media (pointer: coarse) { .chip-toggle .cliente-swatch { pointer-events: none; } }

/* Ordenação do Histórico: só no celular (no desktop os cabeçalhos da tabela ordenam) */
.filters__ordem { display: none; }
@media (max-width: 720px) {
  .toolbar.is-open .filters .filters__ordem { display: block; flex: 1 1 100%; }
}

/* "Mover…" no cartão do kanban: só em telas de toque/estreitas (arrastar não é confiável no toque) */

.dialog__lista { display: grid; gap: var(--s2); margin-top: var(--s4); }
.dialog__lista .btn { width: 100%; justify-content: flex-start; }

@media (pointer: coarse), (max-width: 720px) {
  .hrow__tog::after { content: ""; position: absolute; inset: -8px; }
  .contactbar a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Crítica UX/UI (0.2.48) ---------- */
/* "← voltar" nas telas internas: só no celular, onde a migalha completa some */
.crumb__voltar { display: none; }
@media (max-width: 720px) {
  .pghead .crumb__voltar {
    display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 var(--s2) -4px; padding: 0 4px;
    color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none;
  }
  .pghead .crumb__voltar:hover { color: var(--ink); }
.crumb__voltar { text-decoration: none; }
}

/* ---------- Faturas: seleção de orçamentos, bloco dobrável e layout no celular (0.2.48) ---------- */
.pick__lista { display: grid; gap: 2px; margin-top: var(--s4); max-height: 46vh; overflow-y: auto; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); padding: 10px 6px; border-radius: var(--radius-sm); cursor: pointer; }
.pick[hidden] { display: none; }
.pick:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pick input { width: 20px; height: 20px; accent-color: var(--ink); }
.pick__t { display: grid; font-weight: 600; min-width: 0; }
.pick__t small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.pick__v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick__tot { margin: var(--s3) 0 0; color: var(--ink-2); }
.fedit__itens { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fedit__itens > summary { display: flex; align-items: center; gap: var(--s2); padding: 14px var(--s4); min-height: 48px; cursor: pointer; font: 600 16px var(--font); list-style: none; }
.fedit__itens > summary::-webkit-details-marker { display: none; }
.fedit__itens > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.fedit__itens[open] > summary::after { transform: rotate(-135deg); }
.fedit__corpo { padding: 0 var(--s4) var(--s4); display: grid; gap: var(--s3); }
.fedit__add { justify-self: start; }
.fedit__dados { margin-top: var(--s5); }
@media (prefers-reduced-motion: reduce) { .fedit__itens > summary::after { transition: none; } }
@media (max-width: 720px) {
  /* resumo (total) no topo, campos depois, "Salvar" sempre à mão na base da tela */
  .form--fatura { display: flex; flex-direction: column; align-items: stretch; }
  .form--fatura .form__lado { display: contents; }
  .form--fatura .form__lado > .panel { order: -1; }
  .form--fatura > .panel, .form--fatura .fedit__col { display: flex; flex-direction: column; }
  .form--fatura .fedit__dados { order: -1; margin-top: 0; }
  .form--fatura .fedit__itens { margin-top: var(--s4); }
  /* barra fixa na base da tela (sticky não funciona: html/body têm overflow-x:hidden no celular) */
  .app:has(.form--fatura) .contactbar { padding-bottom: 104px; } /* a barra fixa não cobre o rodapé do site */
  .form--fatura .form__acoes {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: var(--s2);
    padding: var(--s3) 14px calc(var(--s3) + env(safe-area-inset-bottom, 0px)); background: var(--canvas);
    box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .45);
  }
  .form--fatura .form__acoes .btn--gold { flex: 1; }
  .form--fatura .form__acoes .btn--text { width: auto; flex: none; }
}

/* ---------- Rodapé com função (0.2.48) ---------- */
.contactbar { justify-content: space-between; row-gap: var(--s2); }
.contactbar__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; }
.contactbar__estado { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s4); font-size: 12px; color: var(--ink-3); }
.contactbar__linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s3); }
.contactbar__alerta { color: var(--gold-text); font-weight: 600; }
.contactbar__atalho, .contactbar__topo {
  font: 600 12px var(--font); color: var(--ink-2); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.contactbar__topo { text-decoration: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-strong); }
.contactbar__atalho:hover, .contactbar__topo:hover { color: var(--ink); }
.legenda > summary { display: flex; align-items: center; gap: var(--s2); min-height: 44px; cursor: pointer; font: 600 14px var(--font); color: var(--ink-2); list-style: none; }
.legenda > summary::-webkit-details-marker { display: none; }
.legenda > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.legenda[open] > summary::after { transform: rotate(-135deg); }
.legenda .legend-row { margin-top: var(--s2); }
.pagebody .legenda { margin-top: var(--s3); }
@media (prefers-reduced-motion: reduce) { .legenda > summary::after { transition: none; } }
@media (max-width: 720px) {
  /* rodapé do site: uma fileira de ícones + linha de estado (de 188px para ~100px) */
  .contactbar { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; padding: 6px 16px 14px; gap: 0; }
  .contactbar__links { justify-content: center; gap: var(--s2); }
  .contactbar__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contactbar__links a { min-width: 44px; justify-content: center; }
  .contactbar__links a .contactbar__item svg { width: 22px; height: 22px; }
  .contactbar__estado { display: grid; justify-items: center; gap: 2px; text-align: center; }
  .contactbar__linha { justify-content: center; }
  .contactbar__topo { padding: 4px 10px; }
  .contactbar__atalho, .contactbar__topo { position: relative; }
  .contactbar__atalho::after, .contactbar__topo::after { content: ""; position: absolute; inset: -12px -6px; }
  /* legenda do Cronograma em 2 linhas */
  
}

/* "Abrir Histórico" do Acervo agora é botão: sem sublinhado e com o texto centralizado */
.btn.acervo__link { text-decoration: none; justify-content: center; text-align: center; }

/* ---------- Resposta do cliente direto da lista do Histórico (0.2.48) ---------- */
.mini-pill--btn { border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.mini-pill--btn:hover { filter: brightness(1.08); }
.mini-pill--vazio {
  background: transparent; color: var(--ink-3); border: 1px dashed var(--line-strong); font: 600 12px var(--font); cursor: pointer;
  display: none; /* só aparece ao passar o mouse / com a linha aberta / com foco */
}
.hist-lista tbody tr:hover .mini-pill--vazio, .hist-lista tbody tr:focus-within .mini-pill--vazio, .hist-lista tbody tr.is-open .mini-pill--vazio { display: inline-block; }
.mini-pill--vazio:hover { color: var(--ink); border-color: var(--ink-2); }
.resp-opts { display: grid; gap: var(--s2); margin: var(--s4) 0 0; }
.resp-opt {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s3); width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--ctrl-line); background: transparent; color: var(--ink);
  font: 600 15px var(--font); cursor: pointer;
}
.resp-opt i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.resp-opt--aprovado i { background: var(--ok); }
.resp-opt--recusado i { background: var(--danger); }
.resp-opt--substituido i { background: var(--ink-3); }
.resp-opt__t { display: grid; gap: 2px; }
.resp-opt__t small { font: 400 13px var(--font); color: var(--ink-2); }
.resp-opt:hover:not([disabled]) { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.resp-opt[aria-pressed="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: inset 0 0 0 1px var(--ink); }
.resp-opt[disabled] { opacity: .45; cursor: not-allowed; }
@media (pointer: coarse), (max-width: 720px) {
  .mini-pill--btn, .mini-pill--vazio { position: relative; }
  .mini-pill--btn::after, .mini-pill--vazio::after { content: ""; position: absolute; left: -4px; right: -4px; top: -9px; bottom: -9px; }
}

/* ---------- Orçamentos: Acervo e Rascunhos mais enxutos (0.2.48) ---------- */
a.acervo { text-decoration: none; color: inherit; transition: background .15s; }
a.acervo:hover { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.acervo__item { display: inline-flex; align-items: baseline; gap: 6px; }
.panel--faixa { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s4); padding-bottom: var(--s4); align-self: start; }
.panel--faixa__txt { display: grid; gap: 2px; min-width: 0; }
.panel--faixa h2 { font-size: 18px; margin: 0; }
.panel--faixa .hint { margin: 0; }
@media (max-width: 720px) {
  /* Acervo vira um resumo de 2 linhas, o cartão todo é o toque, com seta à direita */
  a.acervo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 14px 44px 14px 18px; position: relative; min-height: 64px; }
  a.acervo::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; color: var(--ink-3); }
  .acervo__label { flex-basis: 100%; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
  .acervo__ext { display: none; }
  .acervo__item { gap: 5px; }
  .panel--faixa { padding: var(--s3) var(--s4); gap: var(--s3); }
}

/* ---------- Histórico: barra de busca e filtros organizada (0.2.48) ---------- */
/* "Período" junta De–Até num só controle. */
.periodo {
  display: flex; align-items: center; gap: 4px; min-width: 0; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
}
.periodo:focus-within { border-color: var(--ink); }
.toolbar .periodo .input {
  flex: 1 1 0; width: 0; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 4px; text-align: center;
  box-shadow: none; outline: 0; -moz-appearance: textfield; appearance: textfield;
}
.periodo .input::-webkit-outer-spin-button, .periodo .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.periodo__sep { color: var(--ink-3); flex: none; }
@media (min-width: 721px) {
  /* Linha 1: busca + Limpar. Linha 2: os 5 filtros em colunas iguais (sem item solto na linha de baixo). */
  .toolbar {
    display: grid; align-items: center; gap: var(--s2) var(--s3);
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr);
  }
  .toolbar > .search { grid-column: 1 / 5; grid-row: 1; min-width: 0; }
  .toolbar .filters > .btn--text { grid-column: 5; grid-row: 1; justify-self: end; }
  .toolbar .select, .toolbar .periodo { width: 100%; min-width: 0; }
  .toolbar .select { padding-left: 14px; padding-right: 30px; text-overflow: ellipsis; }
  .toolbar .filters__ordem { display: none; }
}
@media (max-width: 720px) {
  .toolbar.is-open .filters > .periodo { flex: 1 1 100%; }
  .periodo__sep { display: none; }
}
.anexo b,.anexo small{ overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Evolução — layout de celular (svgEvolucaoMobile) ---------- */

.evo-axis--in { text-anchor: end; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.evo-svg--mob .evo-mlabel--m { font: 600 14px var(--font); fill: var(--panel-ink); }
.evo-svg--mob .evo-mlabel--y { font: 500 11px var(--font); fill: var(--panel-muted); }

.evo-svg--mob .evo-dot { stroke-width: 2.5; }
.evo-svg--mob .evo-line { stroke-width: 3; }

@media (max-width: 720px) {
  .evo__legend { gap: 10px 16px; margin: 14px 0 6px; }
  .evo__lg { white-space: nowrap; }
  
  
}

/* ---------- Evolução — cartão premium (cápsulas, detalhe do mês) ---------- */
.panel--evo {
  position: relative;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.evo__detail { margin: 18px 0 4px; }
.evo__dhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evo__mes { font: 600 13px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.evo__mes-sub { margin-top: 2px; font-size: 13px; color: var(--panel-muted); }
.evo__go {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--panel-ink); font: 500 20px var(--font);
  display: grid; place-items: center; transition: background .15s, color .15s, transform .15s;
}
.evo__go:hover, .evo__go:focus-visible { background: var(--gold); color: var(--on-gold); transform: translateX(2px); }
.evo__stats { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr; gap: 10px; margin-top: 16px; }
.evo__st { min-width: 0; }
.evo__stv { font: 500 26px/1.05 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evo__stv small { font-size: 13px; font-weight: 500; letter-spacing: 0; margin-right: 3px; color: var(--panel-muted); }
.evo__stv small.evo__un { margin: 0 0 0 2px; }
.evo__st--ouro .evo__stv { color: var(--gold); }
.evo__st--conv .evo__stv { color: var(--conv); }
.evo__stl { margin-top: 6px; font-size: 13px; color: var(--panel-muted); }
.panel--evo .evo__legend { margin: 20px 0 6px; }
.panel--evo .evo__lg { font-size: 12px; }
.panel--evo .evo__sw--aprovado { background: var(--gold); }
.panel--evo .evo__sw--orcado { background: color-mix(in srgb, var(--ink) 24%, transparent); box-shadow: none; }

.evo-track { fill: var(--surface-2); }
.evo-hit { fill: transparent; cursor: pointer; }
.evo-cap { transition: opacity .2s, filter .2s; }
.evo-cap--orc { fill: color-mix(in srgb, var(--ink) 24%, transparent); }
.evo-cap--apr { fill: var(--gold); opacity: .5; }
.evo-col.is-on .evo-cap--apr { opacity: 1; filter: drop-shadow(0 0 9px color-mix(in srgb, var(--gold) 55%, transparent)); }
.evo-col.is-on .evo-cap--orc { fill: color-mix(in srgb, var(--ink) 34%, transparent); }
.evo-cap--orc.evo-cap--parcial { fill: url(#evo-hach-o); stroke: var(--ink-3); stroke-dasharray: 3 3; }
.evo-cap--apr.evo-cap--parcial { fill: url(#evo-hach-a); stroke: var(--gold); }
.evo-col .evo-mlabel--m { font: 500 13px var(--font); fill: var(--panel-muted); transition: fill .2s; }
.evo-col.is-on .evo-mlabel--m { fill: var(--panel-ink); font-weight: 700; }
.evo-seldot { fill: var(--gold); }
.evo-guia { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; }
.evo-svg--mob .evo-axis--in { text-anchor: end; font-size: 11px; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.evo-line-halo { fill: none; stroke: var(--panel); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.evo-svg--mob .evo-line { stroke-width: 2.4; }
.evo-svg--mob .evo-dot { fill: var(--conv); stroke: var(--panel); stroke-width: 2; }
.evo-svg--mob .evo-dot--on { stroke-width: 3; }
.evo-pulso { fill: color-mix(in srgb, var(--conv) 22%, transparent); }
.evo-bolha rect, .evo-bolha polygon { fill: var(--conv); }
.evo-bolha text { font: 700 13px var(--font); fill: var(--panel); text-anchor: middle; font-variant-numeric: tabular-nums; }

.evo__foot { margin-top: 20px; }
.evo__seg { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.evo__seg > span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.evo__foot-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.evo__fv { font: 500 20px/1.1 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.evo__fl { margin-top: 5px; font-size: 12px; color: var(--panel-muted); display: flex; align-items: center; gap: 6px; }
.evo__foot-row > div:last-child .evo__fl { justify-content: flex-end; }
.evo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.evo__dot--ouro { background: var(--gold); box-shadow: none; }


.vg__sec { margin: 0; padding-top: var(--s3); font: 600 12px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--panel-muted); display: flex; align-items: center; gap: 12px; }
.vg__sec-nota { font: 500 12px var(--font); letter-spacing: 0; text-transform: none; opacity: .8; }
.vg__sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vg > .vg__sec:first-child { padding-top: 0; }
@media (max-width: 720px) {
  .vg { gap: var(--s3); }
  .vg__sec { padding-top: var(--s4); }
}

/* ============================================================
   Home (Visão geral) — acabamento premium em toda a página
   Cartões com fio de borda + brilho de canto, números grandes e leves
   com unidade pequena, cápsulas nas barras, botões circulares.
   ============================================================ */
.vg .panel, .vg a.acervo {
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.vg .tile__title, .vg .tile__head .tile__title { font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.vg .stat4__tile .tile__title { display: flex; align-items: center; gap: 8px; }
.vg .stat4__tile .tile__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.vg .bignum { font-weight: 300; letter-spacing: -.035em; }
.vg .bignum small { font-weight: 400; opacity: .7; }
.vg .tile__sub { font-size: 13px; }

/* Hero: cápsula de conversão sob o número */
.hero__meter { display: grid; gap: var(--s3); }
.hero__seg { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.hero__seg > span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }

/* Rankings: posição, cápsulas grossas, cor de acento */
.vg .plist { gap: 4px; margin-top: var(--s3); }
.vg .plist__row { padding: 12px 10px 12px; border-radius: 14px; }
.vg .plist__top { align-items: center; gap: 12px; }
.plist__rk { font: 500 12px var(--font); color: var(--panel-muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 20px; }
.vg .plist__name { font-size: 15px; font-weight: 500; letter-spacing: -.005em; }
.vg .plist__value { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.vg .plist__bar { height: 10px; margin-top: 10px; margin-left: 32px; border-radius: 999px; }
.vg .plist__bar > span { height: 10px; border-radius: 999px; background: var(--c, var(--gold)); }

/* Listas (últimos orçamentos, rascunhos): fio de borda e respiro */
.vg .trackrow, .vg .draft { border-radius: 16px; padding: 14px 16px; background: color-mix(in srgb, var(--ink) 4%, transparent); border-color: var(--line); }
.vg .trackrow__title, .vg .draft__title { font-weight: 500; letter-spacing: -.005em; }
.vg .panel__head h2 { font-weight: 500; letter-spacing: -.015em; }

/* Acervo: rodapé em cápsula */
.vg a.acervo { border-radius: 999px; padding: 14px 28px; }
.vg .acervo__label { color: var(--gold); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.vg .acervo__n { font-weight: 500; font-size: 17px; }

/* Evolução: grade (mobile empilhado; desktop em duas colunas) */
.evo__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.evo__grid > * { min-width: 0; }
.evo__chart-wrap { margin-top: 0; }
@media (min-width: 1000px) {
  .evo__grid {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    grid-template-areas: "detail legend" "detail chart" "foot chart" "note note";
    grid-template-rows: auto auto 1fr auto;
    column-gap: 44px;
  }
  .evo__detail { grid-area: detail; margin-top: 8px; }
  .evo__legend { grid-area: legend; margin: 14px 0 0; justify-content: flex-end; }
  .evo__chart-wrap { grid-area: chart; }
  .evo__foot { grid-area: foot; align-self: end; }
  .evo__note { grid-area: note; margin-top: 24px; }
  .evo__stats { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .evo__st { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .evo__st:last-child { border-bottom: 0; }
  .evo__stv { font-size: 34px; order: 2; }
  .evo__stl { margin: 0; order: 1; font-size: 14px; }
  .evo__mes { font-size: 14px; }
  .evo__mes-sub { font-size: 14px; }
}
.vg .plist__name { flex: 1 1 auto; min-width: 0; }
.vg .plist__jobs { flex: none; white-space: nowrap; }
.vg .plist__value { flex: none; margin-left: 0; }

/* Ajuste: cantos menos arredondados nas barras; Acervo no mesmo padrão dos cartões */
.evo__seg, .evo__seg > span, .hero__seg, .hero__seg > span { border-radius: 5px; }
.vg .plist__bar, .vg .plist__bar > span { border-radius: 5px; }
.vg a.acervo { border-radius: var(--radius); padding: 18px 28px; }
/* Acervo: faixa de 4 números com fios, seta circular no canto */
@media (max-width: 720px) {
  .vg a.acervo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 0; padding: 12px 14px 14px; min-height: 0; align-items: start; }
  .vg a.acervo::after {
    content: "→"; position: absolute; top: 8px; right: 12px; transform: none;
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface-2); color: var(--panel-ink); font-size: 16px; line-height: 1;
  }
  .vg .acervo__label { grid-column: 1 / -1; flex-basis: auto; padding: 2px 0 0 4px; font-size: 12px; }
  .vg .acervo__item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 2px 0 0 12px; border-left: 1px solid var(--line); min-width: 0; }
  .vg .acervo__item:nth-of-type(1) { padding-left: 4px; border-left: 0; }
  .vg .acervo__n { font-size: 22px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
  .vg .acervo__lbl { font-size: 12px; line-height: 1.2; color: var(--panel-muted); }
}

/* ============================================================
   Acabamento premium no site inteiro (mesma linguagem da Visão geral):
   fio de borda + brilho de canto nos cartões, números leves, barras
   de progresso em degradê dourado, títulos mais finos, foco dourado.
   ============================================================ */
.view .panel:not(.panel--evo):not(.panel--flush),
.view .kpicard, .view .kb-col:not(.kb-col--arquivado), .view .semdata__item {
  box-shadow: none; /* direção C: sem borda por dentro, a separação vem do tom (regras-ui 13.2) */
}
.view .panel--flush { box-shadow: none; }
.view .kb-col:not(.kb-col--arquivado) { box-shadow: none; }
.view .panel__head h2, .view .sect h2, .view .panel > h2 { font-weight: 500; letter-spacing: -.015em; }

/* KPIs de Produção/Cronograma: ponto dourado no título, número leve */
.kpicard__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .01em; }
.kpicard__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.kpicard--danger .kpicard__eyebrow::before { background: var(--danger); }
.kpicard__value { font-weight: 300; letter-spacing: -.035em; }
.bignum { font-weight: 300; letter-spacing: -.035em; }

/* Barras de progresso (jobs, etapas): retas e em degradê */
.etapas-prog__bar, .progress { border-radius: 5px; }
.etapas-prog__fill, .progress i { border-radius: 5px; }

.view .kb-card .etapas-prog__fill { background: var(--cc, var(--gold)); }
.progress i { background: var(--gold); }

/* Tabelas: cabeçalho em caixa alta discreta */
.view .panel .grid-table th { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

/* Campos: foco dourado com halo */
.view .input:focus, .view .select:focus, .view textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 24%, transparent); outline: 0; }
.view .search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 24%, transparent); }

/* Estados vazios e ícones de destaque */
.view .draft, .view .trackrow { border-radius: 16px; }

/* Texto dourado legível nos dois temas (usa --gold-text, mais escuro no tema claro) */
.evo__mes, .evo__st--ouro .evo__stv, .vg .acervo__label { color: var(--gold-text, var(--gold)); }

/* ============================================================
   Identidade visual dos clientes (monogramas) e tendências nos tiles
   ============================================================ */
.mono {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  font-family: var(--font); font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase;
  background: var(--cc); color: #17150F; /* cor escolhida para o cliente; cinza se ainda não escolheu (store.corMonograma) */
}
.mono--sm { width: 26px; height: 26px; font-size: 12px; }
.mono--md { width: 38px; height: 38px; font-size: 13px; }
.mono--lg { width: 46px; height: 46px; font-size: 15px; }

.cliente-badge { display: inline-flex; align-items: center; gap: 8px; }
.cliente-badge::before { content: none; }
.cliente-badge__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-cli { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.cell-projeto__cli { display: none; }
.vg .plist__top .mono { margin-right: -2px; }
.trackrow > .mono, .draft > .mono { align-self: center; }
.trackrow, .draft { gap: 14px; }

/* Histórico no celular: monograma à esquerda do título */
@media (max-width: 720px) {
  .panel .grid-table.hist-lista tr {
    grid-template-columns: 32px 30px minmax(0, 1fr) 92px 28px;
    grid-template-areas: "chk mono title val tog" "chk mono cat bdg tog";
  }
  .panel .grid-table.hist-lista .cell-projeto__cli { display: grid; grid-area: mono; place-items: center; }
  .panel .grid-table.hist-lista .cell-projeto__cli > span:not(.mono) { display: none; }
  .panel .grid-table.hist-lista .cell-projeto__cli .mono { width: 26px; height: 26px; font-size: 12px; }
}

/* Tendência nos tiles: chip de variação + minigráfico */
.delta { margin-left: auto; font: 600 12px var(--font); font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 6px; white-space: nowrap; letter-spacing: 0; }
.delta--up { color: var(--conv); background: color-mix(in srgb, var(--conv) 16%, transparent); }
.delta--down { color: var(--danger-ink); background: color-mix(in srgb, var(--danger) 16%, transparent); }
.delta--flat, .delta--novo { color: var(--panel-muted); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tile__head .delta { margin: 0 6px 0 0; }
.spark { position: relative; width: 100%; margin: 2px 0 0; }
.spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.spark__line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark__area { fill: color-mix(in srgb, var(--gold) 16%, transparent); }
.spark__dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 28%, transparent), 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent); }
.hero .spark { margin: var(--s3) 0 var(--s4); }

/* Celular: título + variação cabem numa linha nos tiles estreitos */
@media (max-width: 720px) {
  .vg .stat4__tile { padding: 20px 18px; }
  .vg .stat4__tile .tile__title { font-size: 13px; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
  .vg .stat4__tile .tile__title::before { display: none; }
  .stat4__tile .delta { font-size: 12px; padding: 2px 5px; }
}

/* ============================================================
   Mais visual: prévia ao vivo, panorama de cobrança, faixa de anos,
   capa nos cartões do kanban, "hoje" no Cronograma e ilustrações.
   ============================================================ */

/* Ilustrações dos estados vazios */
.ilus { width: 168px; height: 116px; margin: 0 auto var(--s4); color: var(--ink-3); }
.ilus svg { width: 100%; height: 100%; display: block; }

/* Prévia ao vivo (Novo orçamento) */
.panel--previa .panel__head { margin-bottom: var(--s3); }
.panel--previa .pvframe--estreita { max-width: 220px; margin: 0 auto; }
@media (min-width: 1280px) {
  .form { grid-template-columns: minmax(0, 1fr) 460px; }
}

/* Panorama de cobrança (Faturas) */
.pano__bar { display: flex; height: 14px; border-radius: 5px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.pano__bar > span { display: block; height: 100%; }
.pano__pago { background: var(--conv); }
.pano__aberto { background: var(--gold); }
.pano__venc { background: var(--danger); }
.pano__legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.pano__leg { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.pano__dot { width: 10px; height: 10px; border-radius: 3px; margin-top: 7px; flex: none; }
.pano__v { font: 500 22px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pano__l { margin-top: 3px; font-size: 12px; color: var(--panel-muted); }
@media (max-width: 720px) { .pano__legs { gap: var(--s3); } .pano__v { font-size: 17px; } }

/* Capa de imagem nos cartões do kanban */
 /* o que sobra em volta da arte é a cor do cliente */
 /* arte inteira, sem cortar */

/* Cronograma: "hoje" em destaque */




/* Início: logo (faixa dourada) e "Studio Control" levam à Visão geral */
a.brandband__inner { text-decoration: none; color: inherit; cursor: pointer; transition: opacity .15s; }
a.brandband__inner:hover { opacity: .78; }
a.brandband__inner:focus-visible { outline: 2px solid var(--on-gold); outline-offset: -4px; }
a.topbar__brand { text-decoration: none; cursor: pointer; transition: color .15s; }
a.topbar__brand:hover { color: var(--gold-text, var(--gold)); }

/* Alvo de toque: "Studio Control" (link para o início) com 44px de altura no celular */
@media (max-width: 720px) {
  a.topbar__brand { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
}

/* Histórico no celular: colunas laterais mais estreitas para o título quebrar em menos linhas */
@media (max-width: 720px) {
  .panel .grid-table.hist-lista tr {
    grid-template-columns: 26px 28px minmax(0, 1fr) 84px 24px;
    column-gap: 4px;
  }
  .panel .grid-table.hist-lista td:nth-child(6) { font-size: 13px; }
}

/* Cronograma: "hoje" em destaque dourado (cabeçalho do eixo e coluna) */



.vg__legenda { margin: calc(var(--s2) * -1) 0 0; font-size: 12px; color: var(--panel-muted); }

/* ---- Marca do cliente: primeiro uso e seletor de logo/cor ---- */
.bv { position: fixed; inset: 0; z-index: 200; overflow-y: auto; background: var(--canvas); display: flex; justify-content: center; align-items: center; padding: var(--s5) var(--s4); transition: opacity .3s, transform .3s; }
.bv.is-saindo { opacity: 0; transform: scale(1.02); pointer-events: none; }
.bv__card { position: relative; width: 100%; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s7); align-items: center; margin: 0; }
.bv__col { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.bv__t { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 5vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.bv__s { margin: var(--s3) 0 var(--s5); color: var(--ink-2); font-size: 16px; }
.bv__msg { min-height: 1.2em; margin: 0; color: var(--danger-ink); }
ol.bv-trilha { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s2); align-items: center; }
.bv-trilha__i { display: flex; align-items: center; gap: var(--s2); color: var(--ink-3); font: 600 13px var(--font); }
.bv-trilha__i + .bv-trilha__i::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--line-strong); margin-right: var(--s2); transition: background .4s; }
.bv-trilha__i.is-on, .bv-trilha__i.is-feito { color: var(--ink); }
.bv-trilha__i.is-on::before, .bv-trilha__i.is-feito::before { background: var(--gold); }
.bv-trilha__b { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: var(--surface); transition: background .3s, border-color .3s, color .3s, transform .3s; }
.bv-trilha__b .bv-ico svg, .bv-trilha__ok svg { width: 18px; height: 18px; }
.bv-trilha__ok { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s; }
.bv-trilha__i.is-on .bv-trilha__b { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: scale(1.1); }
.bv-trilha__i.is-feito .bv-trilha__b { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.bv-trilha__i.is-feito .bv-trilha__b .bv-ico { opacity: 0; }
.bv-trilha__i.is-feito .bv-trilha__ok { opacity: 1; transform: none; }
.bv-trilha__r { display: none; }
.bv-trilha__i.is-on .bv-trilha__r { display: inline; }
.bv__painel { min-height: 240px; }
.bv-p[hidden] { display: none; }
.bv-in { display: flex; align-items: center; gap: var(--s3); height: 52px; padding: 0 var(--s4); border-radius: 999px; background: var(--campo); border: 1.5px solid var(--campo-line); transition: border-color .15s, box-shadow .15s; }
.bv-in:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); }
.bv-in .input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; height: 100%; padding: 0; outline: 0; }
.bv-ico { display: inline-grid; place-items: center; flex: none; color: var(--ink-2); }
.bv-ico svg { width: 22px; height: 22px; }
.bv-in--grande { height: 68px; }
.bv-in--grande .input { font: 400 22px var(--font-display); }
.bv-in--grande .bv-ico svg { width: 26px; height: 26px; color: var(--ink); }
.bv__ct { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.bv__acoes { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.bv__acoes .btn { gap: var(--s2); }
.bv__acoes .btn .bv-ico { color: inherit; }
.bv__acoes .btn .bv-ico svg { width: 18px; height: 18px; }
.bv__fechar { position: fixed; top: var(--s4); right: var(--s4); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.bv__fechar:hover { background: var(--surface-2); }
.bv__fechar svg { width: 20px; height: 20px; }
.bv__prev { display: grid; place-items: center; perspective: 1200px; }
.bv-prev { position: relative; display: flex; width: 100%; max-width: 400px; aspect-ratio: 4 / 3.1; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), 0 40px 80px -40px rgba(0,0,0,.45); transform: rotateY(-8deg) rotateX(3deg); transform-style: preserve-3d; }
.bv-prev__band { position: relative; width: 18%; flex: none; background: var(--mp); color: var(--mp-on); display: grid; place-items: center; overflow: hidden; transition: background .4s, color .4s; }
.bv-prev__rot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 600 13px var(--font); letter-spacing: .3em; text-transform: uppercase; }
.bv-prev__rot img { width: 26px; height: 26px; object-fit: contain; transform: rotate(90deg); }
.bv-prev__rot span { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.bv-prev__doc { flex: 1; padding: 6% 7%; display: flex; flex-direction: column; gap: 5%; justify-content: center; min-width: 0; }
.bv-prev__top { display: flex; gap: 5px; margin-bottom: 4%; }
.bv-prev__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.bv-prev i { display: block; border-radius: 6px; background: var(--line-strong); }
.bv-prev__t { height: 16px; width: 78%; background: var(--ink); opacity: .85; }
.bv-prev__t.is-s { height: 16px; width: 52%; }
.bv-prev__cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; height: 54px; }
.bv-prev__cards i { height: 100%; border-radius: 12px; background: var(--surface-2); }
.bv-prev__cards i.is-a { background: var(--mp); transition: background .4s; }
.bv-prev__rows { display: flex; flex-direction: column; gap: 8px; }
.bv-prev__rows i { height: 8px; width: 90%; }
.bv-prev__rows i:nth-child(2) { width: 70%; }
.bv-prev__rows i:nth-child(3) { width: 40%; }
.bv-prev__preco { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2%; }
.bv-prev__preco i { height: 14px; width: 34%; }
.bv-prev__preco b { padding: 8px 18px; border-radius: 999px; background: var(--mp); color: var(--mp-on); font: 700 13px var(--font); letter-spacing: .04em; transition: background .4s, color .4s; }
@media (prefers-reduced-motion: no-preference) {
  .bv__card { animation: bv-sobe .7s cubic-bezier(.2,.8,.2,1) both; }
  .bv-prev { animation: bv-prev-in .9s .15s cubic-bezier(.2,.8,.2,1) both, bv-pairar 7s 1s ease-in-out infinite alternate; }
  .bv-prev__t, .bv-prev__t.is-s, .bv-prev__cards i, .bv-prev__rows i { transform-origin: left; animation: bv-barra .7s cubic-bezier(.2,.8,.2,1) both; }
  .bv-prev__t.is-s { animation-delay: .1s; } .bv-prev__cards i:nth-child(1) { animation-delay: .2s; } .bv-prev__cards i:nth-child(2) { animation-delay: .28s; } .bv-prev__cards i:nth-child(3) { animation-delay: .36s; }
  .bv-prev__rows i:nth-child(1) { animation-delay: .45s; } .bv-prev__rows i:nth-child(2) { animation-delay: .52s; } .bv-prev__rows i:nth-child(3) { animation-delay: .59s; }
  .bv-prev__preco b { animation: bv-pulsa 2.6s 1.2s ease-in-out infinite; }
  .bv__painel.is-vai .bv-p { animation: bv-vai .45s cubic-bezier(.2,.8,.2,1) both; }
  .bv__painel.is-volta .bv-p { animation: bv-volta .45s cubic-bezier(.2,.8,.2,1) both; }
  .bv-p .bv__ct > *, .bv-p .marca-sel__col > * { animation: bv-sobe .5s cubic-bezier(.2,.8,.2,1) both; }
  .bv-p .bv__ct > :nth-child(2), .bv-p .marca-sel__col > :nth-child(2) { animation-delay: .06s; }
  .bv-p .bv__ct > :nth-child(3) { animation-delay: .12s; } .bv-p .bv__ct > :nth-child(4) { animation-delay: .18s; }
  .marca-sw__b { transition: transform .2s cubic-bezier(.3,1.6,.5,1); } .bv .marca-sw__b:hover { transform: scale(1.18); } .bv .marca-sw__b.is-on { transform: scale(1.12); }
  @keyframes bv-sobe { from { opacity: 0; transform: translateY(18px); } }
  @keyframes bv-prev-in { from { opacity: 0; transform: rotateY(-30deg) rotateX(8deg) translateX(40px); } }
  @keyframes bv-pairar { to { transform: rotateY(-3deg) rotateX(1deg) translateY(-8px); } }
  @keyframes bv-barra { from { transform: scaleX(0); opacity: 0; } }
  @keyframes bv-pulsa { 50% { transform: scale(1.08); } }
  @keyframes bv-vai { from { opacity: 0; transform: translateX(36px); } }
  @keyframes bv-volta { from { opacity: 0; transform: translateX(-36px); } }
}
@media (max-width: 820px) {
  .bv { align-items: flex-start; padding: var(--s4) var(--s3); }
  .bv__card { grid-template-columns: 1fr; gap: var(--s5); }
  .bv__prev { order: -1; } .bv-prev { max-width: 280px; transform: none; }
  .bv__painel { min-height: 0; }
}
@media (max-width: 520px) { .bv__ct { grid-template-columns: 1fr; } .bv-in--grande .input { font-size: 18px; } }

/* Onboarding no celular: concluir uma etapa é mais importante que admirar a
   prévia. O conteúdo principal cabe no primeiro olhar; detalhes continuam
   acessíveis, sem disputar espaço com o avanço. */
@media (max-width: 720px) {
  .bv { align-items: stretch; padding: 18px 16px 0; }
  .bv__card { display: block; width: 100%; max-width: 540px; margin: 0 auto; }
  .bv__prev { display: none; }
  .bv__col { min-height: 100%; gap: 18px; }
  ol.bv-trilha { gap: 8px; min-height: 32px; }
  .bv-trilha__i { gap: 7px; font-size: 12px; }
  .bv-trilha__i + .bv-trilha__i::before { width: 22px; margin-right: 0; }
  .bv-trilha__b { width: 30px; height: 30px; border-width: 1px; }
  .bv-trilha__b .bv-ico svg, .bv-trilha__ok svg { width: 15px; height: 15px; }
  .bv-trilha__i.is-on .bv-trilha__b { transform: none; }
  .bv__painel { min-height: 0; }
  .bv__t { font-size: clamp(32px, 10vw, 42px); line-height: 1.04; letter-spacing: -.035em; }
  .bv__s { margin: 10px 0 18px; font-size: 15px; line-height: 1.35; }
  .bv-in { height: 50px; padding: 0 15px; }
  .bv-in--grande { height: 62px; }
  .bv-in--grande .input { font-size: 19px; }
  .bv__ct { gap: 10px; }
  .bv-demo { gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; }
  .bv-demo .bv-ico svg { width: 21px; height: 21px; }
  .bv-demo__t { gap: 1px; }
  .bv-demo__t b { font-size: 14px; }
  .bv-demo__t small { font-size: 12px; line-height: 1.3; }
  .bv-drive .btn { min-height: 36px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
  .bv__acoes { position: sticky; bottom: 0; z-index: 1; margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent 0, var(--canvas) 28%); }
  .bv__acoes .btn { min-height: 48px; }
  .bv__acoes .btn--gold { margin-left: auto; }
  .bv__link { width: 100%; margin: -2px 0 0; justify-content: center; font-size: 13px; }
  .bv .marca-sel { gap: 18px; }
  .bv .marca-sel__col { gap: 14px; }
  .bv .marca-sel .field { gap: 7px; }
  .bv .marca-sel .hint { font-size: 12px; line-height: 1.35; }
  .bv .marca-sw { gap: 11px; }
  .bv .marca-sw__b, .bv .marca-sw__bola { width: 34px; height: 34px; }
}

/* Alguns navegadores móveis reportam uma viewport larga. O onboarding mantém
   sua composição de uma coluna até 960 px, em vez de voltar ao layout de
   desktop no meio do fluxo. Progresso é textual e numerado, não decorativo. */
@media (max-width: 960px) {
  .bv { align-items: flex-start; padding: 28px 24px 0; }
  .bv__card { display: block; max-width: 580px; margin: 0 auto; }
  .bv__prev { display: none; }
  .bv__col { align-items: center; }
  .bv__painel, .bv-p { width: 100%; }
  .bv-p { text-align: center; }
  .bv__t { font-size: clamp(34px, 7vw, 46px); }
  .bv__t, .bv__s { text-wrap: balance; }
  .bv__ct, .bv-in { width: 100%; text-align: left; }
  .bv .marca-sel, .bv .marca-sel__col { justify-items: center; align-items: center; }
  .bv .marca-sel .field { width: 100%; align-items: center; }
  .bv .marca-sel__acoes, .bv .marca-sw { justify-content: center; }
  ol.bv-trilha { justify-content: center; width: 100%; gap: 8px; }
  .bv-trilha__i { gap: 7px; color: var(--ink-2); font-size: 13px; }
  .bv-trilha__i + .bv-trilha__i::before { width: 24px; margin-right: 0; background: color-mix(in srgb, var(--ink) 48%, transparent); }
  .bv-trilha__b { width: 32px; height: 32px; border: 2px solid color-mix(in srgb, var(--ink) 58%, transparent); background: var(--surface); color: var(--ink); transform: none; }
  .bv-trilha__b .bv-ico, .bv-trilha__ok { display: none !important; }
  ol.bv-trilha { counter-reset: bv-passo; }
  .bv-trilha__i { counter-increment: bv-passo; }
  .bv-trilha__b::after { content: counter(bv-passo); font: 700 13px/1 var(--font); }
  .bv-trilha__i.is-feito .bv-trilha__b { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
  .bv-trilha__i.is-on .bv-trilha__b { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: none; }
  .bv-trilha__i.is-feito, .bv-trilha__i.is-on { color: var(--ink); }
  .bv-trilha__r { display: inline; font-weight: 650; }
  .bv__acoes { justify-content: center; width: 100%; }
  .bv__acoes .btn--gold { margin-left: 0; }
  .bv__link { margin-left: 0; }
}
.marca-sel.marca-sel--solo { grid-template-columns: 1fr; }
.marca-sel { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 640px) { .marca-sel { grid-template-columns: 1fr; } }
.marca-sel__col { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.marca-sel__acoes { display: flex; flex-wrap: wrap; gap: var(--s2); }
.marca-prev { display: flex; height: 112px; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.marca-prev__band { width: 36px; flex: none; background: var(--mp); color: var(--mp-on); display: grid; place-items: center; overflow: hidden; }
.marca-prev__rot { transform: rotate(-90deg); display: flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 8px var(--font); letter-spacing: .3em; text-transform: uppercase; }
.marca-prev__rot img { width: 14px; height: 14px; object-fit: contain; display: block; transform: rotate(90deg); }
.marca-prev__doc { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.marca-prev__doc i { display: block; height: 8px; border-radius: 4px; background: var(--line-strong); width: 80%; }
.marca-prev__doc i:nth-child(2) { width: 55%; }
.marca-prev__doc i.is-acento { background: var(--mp); width: 45%; height: 14px; margin-top: 4px; }
.marca-sw { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.marca-sw__b { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.marca-sw__b.is-on { border-color: var(--ink); outline: 2px solid var(--canvas); outline-offset: -5px; }
.marca-sw__b:focus-visible, .marca-sw__custom:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.marca-sw__outra { position: relative; display: inline-flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--ink-2); cursor: pointer; }
.marca-sw__bola { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); background: conic-gradient(from 0deg, #ff5a5a, #ffc209, #3ddc84, #3b82f6, #a855f7, #ff5a5a) border-box; background-origin: border-box; background-repeat: no-repeat; flex: none; }
.marca-sw__bola.is-on { border-color: var(--ink); outline: 2px solid var(--canvas); outline-offset: -5px; }
.marca-sw__custom { position: absolute; right: 0; top: 0; width: 36px; height: 36px; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.marca-sw__outra:focus-within .marca-sw__bola { outline: 2px solid var(--ink); outline-offset: 2px; }

/* linha de campos alinhada pela base no desktop; empilhada e esticada no celular */
.row--fim { align-items: flex-end; }
@media (max-width: 720px) { .row--fim { align-items: stretch; } }

/* ---- Estados vazios: um componente (estadoVazio), três tamanhos ---- */
.vazio { display: grid; justify-items: center; text-align: center; gap: var(--s3); color: var(--ink-3); }
.vazio .ilus { margin: 0 auto; color: var(--ink-3); }
.vazio .ilus .g { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gold) 55%, transparent)); }
.vazio__corpo { display: grid; justify-items: center; gap: var(--s2); min-width: 0; }
.vazio h2 { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
.vazio__t { font-size: 15px; font-weight: 600; color: var(--panel-ink); }
.vazio p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 14px; }
.vazio__acoes { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-top: var(--s3); }
.vazio--pagina { padding: var(--s7) var(--s5); }
.vazio--pagina .ilus { width: 220px; height: 152px; }
.vazio--pagina p { font-size: 15px; }
.vazio--painel { padding: var(--s6) var(--s4); }
.vazio--painel .ilus { width: 148px; height: 102px; }
.vazio--linha { display: flex; align-items: center; justify-content: flex-start; text-align: left; gap: var(--s4); padding: var(--s4) var(--s5); border: 1.5px dashed var(--line-strong); border-radius: 16px; }
.vazio--linha .ilus { width: 84px; height: 58px; flex: none; margin: 0; }
.vazio--linha .vazio__corpo { justify-items: start; flex: 1; }
.vazio--linha .vazio__acoes { margin: 0 0 0 auto; }
.vazio--linha p { font-size: 13px; }
td > .vazio--linha, .panel .vazio--linha { margin: var(--s2) 0; }
@media (max-width: 720px) {
  .vazio--linha { flex-wrap: wrap; padding: var(--s4); }
  .vazio--linha .ilus { display: none; }
  .vazio--linha .vazio__acoes { margin: var(--s2) 0 0; }
  .vazio--pagina .ilus { width: 180px; height: 124px; }
}
@media (prefers-reduced-motion: no-preference) {
  .vazio .ilus { animation: vz-flutua 6s ease-in-out infinite alternate; }
  .vazio .ilus svg > * { transform-box: fill-box; transform-origin: center; animation: vz-entra .6s cubic-bezier(.2,.8,.2,1) both; }
  .vazio .ilus svg > :nth-child(2) { animation-delay: .08s; } .vazio .ilus svg > :nth-child(3) { animation-delay: .16s; }
  .vazio .ilus svg > :nth-child(4) { animation-delay: .24s; } .vazio .ilus svg > :nth-child(5) { animation-delay: .32s; }
  .vazio .ilus svg > :nth-child(n+6) { animation-delay: .4s; }
  .vazio .ilus .g { animation: vz-entra .6s .3s cubic-bezier(.2,.8,.2,1) both, vz-brilho 3.4s 1s ease-in-out infinite; }
  .vazio__corpo > * { animation: vz-sobe .5s .15s cubic-bezier(.2,.8,.2,1) both; }
  .vazio__corpo > :nth-child(2) { animation-delay: .22s; } .vazio__corpo > :nth-child(3) { animation-delay: .3s; }
  @keyframes vz-flutua { to { transform: translateY(-5px); } }
  @keyframes vz-entra { from { opacity: 0; transform: translateY(8px) scale(.94); } }
  @keyframes vz-sobe { from { opacity: 0; transform: translateY(10px); } }
  @keyframes vz-brilho { 50% { opacity: .78; } }
}

/* ---- Modo demonstração: faixa de aviso e opção na boas-vindas ---- */
.demobar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: 0 var(--s5) var(--s3); padding: 8px var(--s4); border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); } /* aviso: neutro, o dourado fica para a ação */
.demobar[hidden] { display: none; }
.demobar__ic svg { width: 20px; height: 20px; display: block; color: var(--ink); }
.demobar__t { flex: 1; min-width: 200px; }
.demobar__t b { font-weight: 600; }
@media (max-width: 720px) { .demobar { margin: 0 var(--s3) var(--s3); border-radius: 20px; } }
.bv-demo { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: 20px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--gold) 50%, transparent); cursor: pointer; }
.bv-demo .bv-ico svg { width: 24px; height: 24px; color: var(--ink); }
.bv-demo__t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.bv-drive { cursor: default; }
.bv-drive.is-ok { border-color: var(--ok); }
.bv-demo__t small { color: var(--ink-2); font-size: 13px; }
.demosw { display: inline-flex; align-items: center; gap: var(--s2); flex: none; cursor: pointer; }
.demosw__r { font: 600 13px var(--font); color: var(--ink-2); min-width: 5.2em; text-align: right; }
.demobar .demosw { margin-left: auto; }

/* Caixa "nova versão" no Novo orçamento */
.versao { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: 18px; background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent); cursor: pointer; }
.versao__t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.versao__t small { color: var(--ink-2); font-size: 13px; }

/* Seletor de página da peça (escopo em mais de uma página) */
.pager { display: inline-flex; align-items: center; gap: var(--s2); }
.pager[hidden] { display: none; }
.pager__t { font: 600 13px var(--font); color: var(--ink-2); min-width: 2.6em; text-align: center; font-variant-numeric: tabular-nums; }
.pager .iconbtn { font-size: 20px; line-height: 1; }
.pager .iconbtn:disabled { opacity: .35; cursor: default; }

/* Colar escopo: diálogo com os itens reconhecidos */
.sect__acoes { display: flex; flex-wrap: wrap; gap: var(--s2); }
.dialog--larga { width: min(720px, calc(100vw - 32px)); }
.colar__ta { width: 100%; min-height: 150px; margin-top: var(--s3); }
.colar__lista { display: grid; gap: var(--s2); margin-top: var(--s3); max-height: 38vh; overflow: auto; }
.colar__item { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: 16px; background: var(--surface-2); }
.colar__n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font: 700 12px var(--font); }
.colar__t { display: flex; gap: var(--s3); justify-content: space-between; align-items: baseline; }
.colar__v { font: 600 13px var(--font); color: var(--ink-2); white-space: nowrap; }
.colar__item p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }

/* Backup no Drive: link de recuperação na boas-vindas */
.bv__link { display: inline-flex; align-items: center; gap: var(--s2); margin-left: auto; border: 0; background: none; color: var(--ink-2); font: 500 14px var(--font); cursor: pointer; text-decoration: none; }
.bv__link[hidden] { display: none; }
.bv__link:hover { color: var(--ink); }
.bv__link:disabled { opacity: .5; cursor: default; }
.bv__link .bv-ico svg { width: 18px; height: 18px; }

/* ---------- Demonstração pura (?demo=1): barra amarela no topo e tudo desligado, exceto links ---------- */
.demomarquee { position: sticky; top: 0; z-index: 70; display: flex; align-items: stretch; background: #ffc209; color: #191917; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.demomarquee__faixa { flex: 1; overflow: hidden; display: flex; align-items: center; padding: 9px 0; font: 700 14px/1 var(--font); letter-spacing: .04em; white-space: nowrap; }
.demomarquee__trilho { display: flex; width: max-content; animation: demo-corre 40s linear infinite; }
.demomarquee__trilho span { padding-right: .5em; }
@keyframes demo-corre { to { transform: translateX(-50%); } }
.demomarquee__cta { flex: none; display: flex; align-items: center; padding: 0 16px; background: #191917; color: #ffc209; font: 700 13px var(--font); text-decoration: none; letter-spacing: .02em; }
.demomarquee__cta:hover { background: #000; color: #ffd54a; }
@media (prefers-reduced-motion: reduce) { .demomarquee__trilho { animation: none; } }
.demo-puro .demo-off, .demo-puro input:disabled, .demo-puro textarea:disabled, .demo-puro select:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); pointer-events: auto; }
.demo-puro .cr-bar { cursor: pointer; }
.demo-puro a[href] { cursor: pointer; }

/* Arrastar com o dedo (celular): cartões da Produção e barras do Cronograma */









/* ---------- Visão geral: "O que exige sua atenção agora?" ---------- */
.agora { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.agora > .panel { min-width: 0; margin-top: 0; }
.agora > .panel + .panel { margin-top: 0; }
.agora__cap { grid-column: 1 / -1; }
/* painel único "Agora": ocupa a linha inteira quando não há o painel Comercial ao lado */
.agora__geral:only-of-type { grid-column: 1 / -1; }
.agora > .agora__geral:nth-last-child(2) { grid-column: 1 / -1; }
.agora__sub { margin: var(--s4) 0 var(--s2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.agora__geral .panel__head + .agora__sub { margin-top: var(--s3); }
.agora__mais { margin-top: var(--s3); }
.agora__big { display: flex; align-items: baseline; gap: 12px; margin: var(--s4) 0 var(--s3); }
.agora__big b { font: 300 56px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.agora__big span { font-size: 15px; color: var(--ink-2); }
.agora__lista { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.agora__lista a { color: var(--ink); font-weight: 600; }
.agora__lista a:hover { text-decoration: underline; }
.agora__lista span { color: var(--ink-2); }
.agora__linhas { display: grid; gap: 4px; }
.agora__linha { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 0 -12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.agora__linha:hover { background: var(--surface-2); }
.agora__ponto { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.agora__linha.is-late .agora__ponto { background: var(--danger); }
.agora__linha.is-wait .agora__ponto { background: var(--gold); }
.agora__txt { flex: 1; min-width: 0; }
.agora__val { flex: none; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.agora__seta { flex: none; color: var(--ink-3); }
.agora__ok { margin: var(--s3) 0 0; font-size: 15px; color: var(--ink-2); }
.agora__acao { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.agora__acao:first-child { border-top: 0; }
.agora__acao-main { flex: 1; min-width: 0; display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.agora__acao-t { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.agora__acao-s { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agora__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--s3); }
.agora__stat { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); color: var(--ink); text-decoration: none; }
a.agora__stat:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.agora__stat-r { font-size: 13px; color: var(--ink-2); }
.agora__stat-v { font: 400 26px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.agora__stat-s { font-size: 12px; color: var(--ink-3); }
.agora__cap-barras { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: var(--s3); }
.agora__cap-dia { display: grid; gap: 6px; justify-items: center; }
.agora__cap-n { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.agora__cap-b { width: 100%; height: 72px; display: flex; align-items: flex-end; background: var(--track); border-radius: 10px; overflow: hidden; }
.agora__cap-b i { display: block; width: 100%; background: var(--gold); border-radius: 10px 10px 0 0; }
.agora__cap-dia.is-cheia .agora__cap-b i { background: var(--ink); }
.agora__cap-r { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.agora__cap .hint { margin-top: var(--s3); }
@media (max-width: 900px) { .agora { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .agora__big b { font-size: 44px; }
  .agora__stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .agora__cap-barras { gap: 6px; }
  .agora__acao { flex-wrap: wrap; }
  .agora__acao-main { flex-basis: 100%; }
}

/* ---------- Modelos e itens (diálogo do Novo Orçamento) ---------- */
.modelos__corpo { margin-top: var(--s4); display: grid; gap: var(--s3); }
.modelos__lista { display: grid; gap: 8px; max-height: 46vh; overflow: auto; }
.modelos__linha { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.modelos__txt { flex: 1; min-width: 0; display: grid; gap: 2px; cursor: default; }
.modelos__txt small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modelos__acoes { display: flex; gap: 6px; }
.modelos__novo { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.modelos__novo .input { flex: 1 1 220px; }

/* Seis itens no menu: em telas médias o menu fica mais compacto e a versão sai do cabeçalho (fica no rodapé). */
@media (min-width: 721px) and (max-width: 1180px) {
  .nav a { padding: 8px 13px; }
  .topbar { padding-left: 24px; padding-right: 24px; gap: 14px; }
  .topbar__meta { display: none; }
  .contactbar__ver { display: inline; }
}

/* ============================================================
   Visão geral (estudo 12): cartão Agora, Operação, Comercial e Desempenho.
   Escala tipográfica: 12 rótulo/chip/eixo · 13 apoio · 15 corpo · 19 título de cartão.
   Cores: vermelho = atraso; cinza = parado; verde = ok; amarelo só no botão principal e nos dados de valor.
   ============================================================ */
.vx-wrap { container-type: inline-size; min-width: 0; margin-top: var(--s4); }
.vx { --g-grupo: clamp(30px, 4.4cqi, 52px); --pad: clamp(18px, 2.6cqi, 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g-grupo); min-width: 0; }
.vx > * { min-width: 0; }
.vx-sec { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vx-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.vx-sec small { font: 400 13px var(--font); letter-spacing: 0; text-transform: none; }
.vx-col > .vx-sec { margin-bottom: 0; }
.vx-card { background-color: var(--surface); border-radius: 32px; padding: var(--pad); min-width: 0;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.vx-svg { width: 23px; height: 23px; display: block; }

/* caixa de ícone: mesma caixa em todo lugar; só o papel muda a cor */
.vx-ic { --ic: var(--ink-2); width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; flex: none; color: var(--ic);
  background: color-mix(in srgb, var(--ic) 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic) 30%, transparent); }
.vx-ic--sm { width: 36px; height: 36px; border-radius: 12px; } .vx-ic--sm .vx-svg { width: 19px; height: 19px; }
.vx-ic--alerta { --ic: var(--danger-ink); } .vx-ic--foco { --ic: var(--info-ink); } .vx-ic--ok { --ic: var(--conv); }
.vx-go { display: inline-grid; place-items: center; color: var(--ink-3); } .vx-go .vx-svg { width: 18px; height: 18px; }
.vx-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.vx-h h2 { font: 500 19px var(--font-display); letter-spacing: -.015em; min-width: 0; }
.vx-h a { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; text-decoration: none; }
.vx-sub-r { font-size: 13px; color: var(--ink-3); }

/* linha de item: ícone, texto, valor, seta */
.vx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; padding: 14px 6px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.vx-row:first-child, .vx-grp + .vx-row { border-top: 0; }
a.vx-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: 18px; }
.vx-row__t { font-weight: 600; font-size: 15px; line-height: 1.25; min-width: 0; color: inherit; text-decoration: none; }
.vx-row__t small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.vx-row__v { font: 500 15px var(--font); color: var(--ink-2); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.vx-row__v.is-late { color: var(--danger-ink); font-weight: 700; }

/* Agora */
.vx-hero { display: grid; grid-template-columns: minmax(0, 5fr) 1px minmax(0, 7fr); padding: 0; overflow: hidden; border-radius: 40px; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.vx-hero__l { padding: clamp(24px, 4cqi, 52px); display: grid; gap: 28px; align-content: space-between; min-width: 0; }
.vx-hero__r { padding: clamp(16px, 2.4cqi, 28px) clamp(16px, 2.6cqi, 32px); display: grid; align-content: start; min-width: 0; }
.vx-hero__fio { background: var(--line); }
.vx-hero__txt { display: grid; gap: 12px; }
.vx-num { font: 300 clamp(110px, 20cqi, 230px)/.8 var(--font-display); letter-spacing: -.08em; margin-left: -.04em; }
.vx-frase { font: 500 clamp(20px, 2.4cqi, 28px)/1.2 var(--font-display); letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.vx-frase em { font-style: normal; color: var(--danger-ink); }
.vx-frase--ok { font-size: clamp(26px, 4cqi, 44px); max-width: none; letter-spacing: -.03em; }
.vx-sub { font-size: 15px; color: var(--ink-2); max-width: 36ch; }
.vx-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.vx-selo { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; color: var(--gold-text);
  background: color-mix(in srgb, var(--gold) 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 34%, transparent); }
.vx-selo .vx-svg { width: 34px; height: 34px; stroke-width: 1.8; }
.vx-selo--ok { color: var(--conv); background: color-mix(in srgb, var(--conv) 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--conv) 34%, transparent); }
.vx-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.vx-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 7px; }
.vx-leg i.late { background: var(--danger-ink); } .vx-leg i.neu, .vx-leg i.hoje { background: var(--ink-3); }
.vx-leg i.ok { background: var(--conv); } .vx-leg i.neg { background: var(--gold); } .vx-leg i.rec { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.vx-leg i.sem { background: color-mix(in srgb, var(--ink) 52%, transparent); } .vx-leg i.val { background: var(--danger-ink); }
.vx-leg--lista { display: grid; gap: 8px; }
.vx-leg--lista span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.vx-leg--lista i { margin: 0; } .vx-leg--lista em { font-style: normal; }
.vx-leg--lista b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.vx-grp { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 4px 6px 8px; }
.vx-grp--2 { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.vx-grp__t { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vx-grp__t i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.vx-grp__t b { font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); letter-spacing: 0; text-transform: none; }
.vx-grp__t.is-late { color: var(--danger-ink); } .vx-grp__t.is-late i { background: var(--danger-ink); }
.vx-grp__t.is-late b { background: color-mix(in srgb, var(--danger-ink) 14%, transparent); color: var(--danger-ink); }
.vx-grp__t.is-ok { color: var(--conv); } .vx-grp__t.is-ok i { background: var(--conv); }
.vx-hero .vx-ic:not(.vx-ic--alerta) { --ic: var(--ink-2); }
.vx-nota { margin: 2px 6px 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.vx-sw { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ink-2); font: 600 13px var(--font); }
.vx-sw__t { width: 40px; height: 24px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); position: relative; transition: background .2s; flex: none; }
.vx-sw__t i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--canvas); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s; }
.vx-sw[aria-checked="true"] .vx-sw__t { background: var(--ink); } .vx-sw[aria-checked="true"] .vx-sw__t i { transform: translateX(16px); }
.vx-sw[aria-checked="true"] .vx-sw__l { color: var(--ink); }
.vx-passo__n { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font: 600 15px var(--font); color: var(--ink-2); flex: none;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.vx-passo__n .vx-svg { width: 20px; height: 20px; }
.vx-passo.is-feito .vx-passo__n { color: var(--conv); background: color-mix(in srgb, var(--conv) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--conv) 34%, transparent); }
.vx-passo.is-feito .vx-row__t { color: var(--ink-3); }

/* Operação e Comercial */
.vx-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.vx-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.vx-col > .panel { margin: 0; border-radius: 32px; }
.vx-prod { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 22px; align-items: end; margin-bottom: 20px; }
.vx-prod__leg { display: grid; gap: 10px; min-width: 0; padding-bottom: 8px; }
.vx-big { font: 300 clamp(36px, 4.4cqi, 48px)/.9 var(--font-display); letter-spacing: -.06em; }
.vx-big small { font-size: 15px; letter-spacing: 0; color: var(--ink-3); margin-left: .3em; }
.vx-meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; gap: 3px; }
.vx-meter span { display: block; height: 100%; border-radius: 999px; background: var(--gold); }
.vx-meter span.late { background: var(--danger); }
.vx-trilho { position: relative; display: grid; padding-left: 4px; }
.vx-trilho::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.vx-et { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 7px 0; }
.vx-et .vx-ic { z-index: 1; } .vx-et.is-vazio { opacity: .5; }
.vx-et__l { font-weight: 500; font-size: 15px; } .vx-et__n { font: 600 15px var(--font); } .vx-et.is-pico .vx-et__n { color: var(--gold-text); }
.vx-cap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.vx-cap__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.vx-cap__t b { color: var(--ink); font-weight: 600; font-size: 15px; }
.vx-cap__area { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 120px; }
.vx-cap__lim { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--ink-3); opacity: .6; }
.vx-cap__d { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.vx-cap__b { display: block; flex: none; width: 100%; max-width: 30px; border-radius: 10px 10px 6px 6px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.vx-cap__d.is-cheia .vx-cap__b { background: var(--ink); }
.vx-cap__d.is-hoje .vx-cap__b { background: var(--gold); }
.vx-cap__r { font-size: 12px; line-height: 14px; height: 14px; color: var(--ink-3); }
.vx-cap__d.is-hoje .vx-cap__r { color: var(--ink); font-weight: 700; }
.vx-acao { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.vx-acao:first-of-type { border-top: 0; }
.vx-ck { width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid var(--line-strong); background: none; display: grid; place-items: center; color: transparent; cursor: pointer; padding: 0; }
.vx-ck .vx-svg { width: 16px; height: 16px; stroke-width: 2.4; }
.vx-ck:hover { border-color: var(--conv); color: var(--conv); }
.vx-quando { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.vx-quando.is-late { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger-ink); }
.vx-quando.is-hoje { background: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--gold-text); }
.vx-vazio { font-size: 13px; color: var(--ink-3); padding: 4px 6px; }
.vx-bloco { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.vx-bloco:first-of-type { border-top: 0; padding-top: 0; }
.vx-bloco__r { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.vx-bloco__s { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.vx-valor { font: 300 clamp(34px, 4.4cqi, 48px)/1 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.vx-valor small { font-size: 15px; letter-spacing: 0; color: var(--ink-3); margin-right: .25em; font-weight: 400; }
.vx-valor--sm { font-size: 22px; text-align: right; }
.vx-bloco--linha { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.vx-stack { display: flex; gap: 3px; height: 12px; }
.vx-stack span { display: block; height: 100%; border-radius: 999px; min-width: 6px; }
.vx-stack .ok { background: var(--conv); } .vx-stack .late, .vx-stack .val { background: var(--danger); } .vx-stack .neg { background: var(--gold); }
.vx-stack .rec { background: color-mix(in srgb, var(--ink) 22%, transparent); } .vx-stack .sem { background: color-mix(in srgb, var(--ink) 52%, transparent); }
.vx-orc .field-note { margin-top: 0; }
.vx-rasc { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); flex-wrap: wrap; }
.vx-rasc__ic { color: var(--ink-2); display: grid; } .vx-rasc__ic .vx-svg { width: 20px; height: 20px; }
.vx-rasc__t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.vx-rasc__t b { font-size: 15px; font-weight: 600; }
.vx-rasc__t small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-rasc__lista { margin-top: 10px; }
.vx-rasc__lista[hidden] { display: none; }

/* Desempenho */
.vx-colunica { display: grid; gap: 20px; min-width: 0; }
.vx-colunica > .panel { margin: 0; border-radius: 32px; }
.vx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vx-kpi { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 6px; align-content: start; padding: 16px 18px 14px; border-radius: 22px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.vx-kpi__r { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.25; white-space: nowrap; }
.vx-kpi__v { font: 300 clamp(26px, 3cqi, 32px)/1 var(--font-display); letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vx-kpi__s { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.vx-kpi__g { margin-top: 10px; display: grid; gap: 4px; align-self: end; min-width: 0; }
.vx-kpi__ax { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.vx-bars { display: grid; gap: 5px; align-items: end; height: 40px; }
.vx-bars span { position: relative; display: block; border-radius: 7px 7px 4px 4px; background: var(--gold); overflow: hidden; }
.vx-bars span.is-parcial { background: repeating-linear-gradient(135deg, var(--gold) 0 3px, color-mix(in srgb, var(--gold) 38%, transparent) 3px 6px); }
.vx-bars span.tem-sub { background: color-mix(in srgb, var(--ink) 24%, transparent); }
.vx-bars span > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gold); border-radius: 0 0 4px 4px; }
.vx-spark .spark { height: 40px; margin: 0; padding-right: 6px; }
.vx-spark--conv .spark__line { stroke: var(--conv); } .vx-spark--conv .spark__area { fill: color-mix(in srgb, var(--conv) 14%, transparent); }
.vx-spark--conv .spark__dot { background: var(--conv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--conv) 28%, transparent); }
.vx-spark--ink .spark__line { stroke: var(--ink-2); } .vx-spark--ink .spark__area { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.vx-spark--ink .spark__dot { background: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.vx-nota-kpi { margin: 14px 4px 0; font-size: 13px; color: var(--ink-3); }
.vx-rank__rot { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 8px; display: none; }
.vx-rank__col[hidden] { display: none; }
.vx-faixa { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.vx-faixa h2 { font: 500 19px var(--font-display); }
.vx-acervo { margin-top: var(--g-grupo, 32px); }

@container (min-width: 901px) {
  .vx-rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .vx-rank .vx-h { grid-column: 1 / -1; }
  .vx-rank .seg { display: none; }
  .vx-rank__col[hidden] { display: block; }
  .vx-rank__rot { display: block; }
  .vx-colunica .panel--evo .evo__grid { column-gap: 32px; }
}
@container (max-width: 980px) { .vx-duo { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 760px) {
  .vx-hero { grid-template-columns: minmax(0, 1fr); border-radius: 32px; } .vx-hero__fio { display: none; }
  .vx-hero__r { padding-top: 0; }
  .vx-hero__txt:not(.vx-hero__txt--sel) { grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 8px; align-items: center; }
  .vx-hero__txt:not(.vx-hero__txt--sel) .vx-num { grid-row: 1 / span 2; font-size: clamp(104px, 34cqi, 150px); }
  .vx-hero__txt:not(.vx-hero__txt--sel) .vx-frase { align-self: end; max-width: none; }
  .vx-hero__txt:not(.vx-hero__txt--sel) .vx-leg { align-self: start; flex-direction: column; gap: 4px; }
  .vx-hero__txt--sel { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .vx-hero__txt--sel .vx-selo { grid-row: 1 / span 2; }
  .vx-hero__txt--sel .vx-frase { align-self: end; }
  .vx-hero__txt--sel .vx-sub { grid-column: 2; align-self: start; font-size: 13px; }
  .vx-acoes .btn { flex: 1 1 100%; justify-content: center; padding: 14px 18px; }
}
@container (max-width: 560px) {
  /* Mobile = triagem: uma decisão por vez, grupos compactos e o detalhe no destino de cada link. */
  .vx { --g-grupo: 28px; --pad: 17px; }
  .vx-sec { margin-bottom: 10px; gap: 9px; font-size: 11px; }
  .vx-card { border-radius: 24px; }
  .vx-h { gap: 10px; margin-bottom: 14px; }
  .vx-h h2 { font-size: 18px; }
  .vx-h a { padding: 7px 0; }
  .vx-ic { width: 38px; height: 38px; border-radius: 13px; }
  .vx-ic .vx-svg { width: 20px; height: 20px; }
  .vx-row { grid-template-columns: auto minmax(0, 1fr); padding: 11px 2px; gap: 3px 11px; }
  .vx-row .vx-go { display: none; }
  .vx-row .vx-ic { width: 34px; height: 34px; border-radius: 11px; }
  .vx-row .vx-ic .vx-svg { width: 18px; height: 18px; }
  .vx-row__t { font-size: 14px; }
  .vx-row__t small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vx-row__v { grid-column: 2; text-align: left; font-size: 13px; }
  .vx-hero__l { padding: 22px 18px 18px; gap: 18px; }
  .vx-hero__r { padding: 10px 18px 16px; background: color-mix(in srgb, var(--ink) 3%, var(--surface)); border-top: 1px solid var(--line); }
  .vx-hero__txt:not(.vx-hero__txt--sel) { column-gap: 13px; }
  .vx-hero__txt:not(.vx-hero__txt--sel) .vx-num { font-size: clamp(68px, 23cqi, 94px); }
  .vx-frase { font-size: 21px; line-height: 1.12; }
  .vx-leg { gap: 4px 10px; font-size: 12px; }
  .vx-leg i { width: 7px; height: 7px; margin-right: 5px; }
  .vx-grp { padding: 9px 2px 6px; }
  .vx-grp--2 { margin-top: 10px; padding-top: 12px; }
  .vx-grp__t { font-size: 10px; letter-spacing: .09em; }
  .vx-acoes .btn { padding: 12px 16px; }
  .vx-prod { grid-template-columns: 1fr; }
  .vx-prod { gap: 8px; margin-bottom: 14px; }
  .vx-prod__leg { padding-bottom: 0; }
  .vx-big { font-size: 42px; }
  .vx-trilho { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0; }
  .vx-trilho::before { display: none; }
  .vx-et { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; min-height: 48px; padding: 7px 8px; border-radius: 14px; background: var(--surface-2); }
  .vx-et .vx-ic { width: 28px; height: 28px; border-radius: 9px; }
  .vx-et .vx-ic .vx-svg { width: 15px; height: 15px; }
  .vx-et__l { font-size: 12px; line-height: 1.15; }
  .vx-et__n { font-size: 14px; }
  .vx-cap { margin-top: 14px; padding-top: 13px; }
  .vx-cap__area { height: 92px; gap: 5px; }
  .vx-cap__r { font-size: 10px; }
  .vx-acao { grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 8px 12px; }
  .vx-acao .vx-ck { margin-top: 4px; grid-row: 1 / span 2; } .vx-acao .mono, .vx-acao .monogram { grid-row: 1 / span 2; }
  .vx-acao .vx-row__t { grid-column: 3; grid-row: 1; } .vx-acao .vx-quando { grid-column: 3; grid-row: 2; justify-self: start; }
  .vx-valor { font-size: 36px; }
  .vx-bloco { gap: 7px; padding: 13px 0; }
  .vx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vx-kpi { min-height: 132px; padding: 13px; gap: 5px; border-radius: 17px; }
  .vx-kpi__r { font-size: 10px; white-space: normal; }
  .vx-kpi__v { font-size: 26px; }
  .vx-kpi__s { font-size: 11px; gap: 3px; line-height: 1.2; }
  .vx-kpi__g { display: none; }
  .vx-nota-kpi { margin: 10px 2px 0; font-size: 12px; }
  .vx-rasc { flex-wrap: wrap; }
  .vx-rank .plist__jobs { display: none; }
}

/* ============================================================
   Navegação e rodapé (estudo 12): ícones duotone, cápsula fixa no celular, rodapé em pílulas.
   ============================================================ */
.nav a { display: inline-flex; align-items: center; gap: 8px; }
.contactbar { position: relative; margin-top: var(--s5); padding-top: 22px; color: var(--ink-3); }
.contactbar::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: var(--line); }
.contactbar__item { padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; }
.contactbar a:hover .contactbar__item { background: var(--surface-2); color: var(--ink); }
.contactbar__ver { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); display: inline; }
.contactbar__estado { font-size: 13px; }
.contactbar__dot { display: inline-flex; align-items: center; gap: 8px; }
.contactbar__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--conv); }
.contactbar__dot.contactbar__alerta::before { background: var(--danger-ink); }
.contactbar__alerta { color: var(--danger-ink); }
.contactbar__atalho { font: 600 13px var(--font); text-decoration: none; }
.contactbar__atalho[href="#/ajustes"] { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); }
.contactbar__atalho:hover { color: var(--ink); text-decoration: underline; }
.contactbar__topo { font-size: 13px; padding: 8px 14px; background: var(--surface); }

@media (max-width: 720px) {
  .shell { position: relative; }
  /* o menu precisa ficar fixo na rolagem da página inteira: o topbar some do fluxo e o menu vira filho direto do .shell */
  .topbar { display: contents; }
  .shell > * { order: 5; }
  .topbar__brand { order: 1; padding: 8px 64px 8px 14px; margin: 0; font-size: 17px; min-height: 60px; display: flex; align-items: center; }
  .topbar__meta { display: none; }
  .theme-toggle { position: absolute; top: 4px; right: 14px; z-index: 21; width: 40px; height: 40px; }
  .nav-scroll { order: 2; flex-basis: auto; overflow: visible; position: fixed; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; margin: 0; }
  .contactbar { order: 9; }
  .nav-scroll::after { display: none; }
  .nav { width: 100%; overflow: visible; gap: 4px; padding: 6px; background: var(--nav-bg); }
  .nav a { flex: 1; justify-content: center; height: 48px; padding: 0 4px; font-size: 12px; color: var(--nav-fg); }
  .nav a.nav--so-desk { display: none; }
  .nav a.nav--so-mobile { display: inline-flex; }
  .nav .lg { display: none; } .nav .sh { display: inline; }
  .nav a.is-active { background: transparent; color: var(--nav-fg); font-weight: 500; }
  .nav a.is-active-m { background: var(--gold); color: var(--on-gold); font-weight: 700; }
  .contactbar { justify-content: center; text-align: center; margin-top: var(--s4); }
  .contactbar::before { left: 16px; right: 16px; }
  .contactbar__links { justify-content: center; }
  .contactbar__item { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .contactbar__estado { justify-content: center; }
  .contactbar__linha { justify-content: center; }
}

/* Navegadores embutidos de celular podem reportar uma viewport de 900px.
   Para toque em retrato, a composição segue o modo móvel mesmo nessa largura. */
@media (pointer: coarse) and (orientation: portrait) {
  html { overflow-x: hidden; }
  body { overflow-x: clip; }
  .shell { position: relative; }
  .topbar { display: contents; }
  .shell > * { order: 5; }
  .topbar__brand { order: 1; min-height: 48px; padding: 6px 58px 6px 16px; margin: 0; display: flex; align-items: center; font-size: 16px; }
  .topbar__meta { display: none; }
  .theme-toggle { position: absolute; top: 4px; right: 14px; z-index: 21; width: 40px; height: 40px; }
  .nav-scroll { order: 2; flex-basis: auto; position: fixed; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; margin: 0; overflow: visible; }
  .nav-scroll::after { display: none; }
  .nav { width: 100%; gap: 4px; padding: 6px; overflow: visible; background: var(--nav-bg); }
  .nav a { flex: 1; justify-content: center; height: 48px; padding: 0 4px; font-size: 12px; color: var(--nav-fg); }
  .nav a.nav--so-desk { display: none; }
  .nav a.nav--so-mobile { display: inline-flex; }
  .nav .lg { display: none; } .nav .sh { display: inline; }
  .nav a.is-active { background: transparent; color: var(--nav-fg); font-weight: 500; }
  .nav a.is-active-m { background: var(--gold); color: var(--on-gold); font-weight: 700; }
  .view { padding: 6px 14px 96px; }
  .pghead { margin: 12px 0 22px; }
  .pghead .crumb { display: none; }
  .pghead h1 { font-size: 40px; }
  .pghead p { font-size: 15px; }
  .demobar { margin: 0 14px 8px; padding: 8px 12px; min-height: 42px; border-radius: 15px; gap: 8px; font-size: 12px; flex-wrap: nowrap; }
  .demobar__ic svg { width: 17px; height: 17px; }
  .demobar__t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0; }
  .demobar__t b { margin-right: 3px; font-size: 12px; }
  .demobar .demosw { margin-left: auto; }
  /* faixa da prévia: o aviso inteiro precisa aparecer no celular (a demobar comum mostra só o negrito) */
  #previaBar { align-items: flex-start; }
  #previaBar .demobar__t { white-space: normal; overflow: visible; text-overflow: clip; font-size: 12px; line-height: 1.35; }
  .demosw__r { display: none; }
  .form { gap: 16px; }
  .form > .panel { padding: 20px 18px; border-radius: 24px; }
  .form-secao { padding: 18px 0; }
  .form-secao__head { margin-bottom: 14px; }
  .form-secao__head h2 { font-size: 17px; }
  .form-secao__head p { font-size: 12px; }
  .fields { gap: 14px; }
  .field { margin-bottom: 0; }
  .input, .select, .textarea { font-size: 16px; }
  
  
  
  
  
}

/* ============================================================
   Sistema comum (studio-0.4.17) — mesma base em todas as telas.
   Linguagem do estudo 19 da Visão geral: tudo chapado (sem degradê,
   brilho nem sombra projetada), separação por fio de 1px, uma só cor
   de painel, cabeçalhos com a mesma hierarquia, status em cápsula
   tingida com vocabulário único, números alinhados à direita.
   ============================================================ */

/* A barra de rolagem reserva o espaço sempre: o menu não pula entre telas curtas e longas. */
html { scrollbar-gutter: stable; }

/* Trilha: telas do menu não têm, mas a linha fica reservada para o título começar no mesmo ponto. */
.pghead .crumb { min-height: 20px; }

/* ---------- Superfícies ---------- */
.panel, .kpicard, .vx-card, .view .panel--flush { box-shadow: none; }
.panel--butter, .panel--sage, .panel--stone { background: var(--panel); }
.toast { box-shadow: var(--shadow-pop); }

/* Números de resumo: um só painel dividido por fios (como o Pulso da Visão geral), não cartões coloridos. */
.grid--kpi { gap: 0; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.grid--kpi > .kpicard { background: transparent; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); }
.grid--kpi > .kpicard:first-child { border-left: 0; }
.kpicard--gold, .kpicard--graphite, .kpicard--sage, .kpicard--danger { background: transparent; }
.kpicard__eyebrow { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.kpicard__eyebrow::before { display: none; }
.kpicard__sub, .kpicard--gold .kpicard__sub, .kpicard--graphite .kpicard__sub, .kpicard--sage .kpicard__sub { color: var(--ink-2); }
.kpicard--danger .kpicard__eyebrow, .kpicard--danger .kpicard__sub { color: var(--ink-3); }
.kpicard--danger .kpicard__value { color: var(--danger-ink); }
@media (max-width: 720px) {
  .grid--kpi:not(.grid--kpi--operacao) { grid-template-columns: minmax(0, 1fr); }
  .grid--kpi:not(.grid--kpi--operacao) > .kpicard { border-left: 0; }
  .grid--kpi:not(.grid--kpi--operacao) > .kpicard + .kpicard { border-top: 1px solid var(--line); }
  .grid--kpi--operacao { gap: 0; }
  .grid--kpi--operacao > .kpicard:nth-child(odd) { border-left: 0; }
  .grid--kpi--operacao > .kpicard:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid--kpi--operacao .kpicard__eyebrow { font-size: 11px; }
  .grid--kpi--operacao .kpicard__sub { font-size: 12px; }
}

/* ---------- Cabeçalhos ----------
   Nível 1: título da página (h1). Nível 2: título de painel ou de grupo, 19 px Bricolage 500,
   com uma linha de apoio de 13 px. Nível 3: subgrupo, 15 px Instrument 600, separado por fio.
   Rótulos-chave em caixa alta ("PANORAMA", "FATURAS") e números em círculo saem: o título já diz. */
.panel__head h2, .op-grupo__head h2, .form-secao__head h2, .view .panel > h2 { font: 500 19px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.op-grupo__k, .aj-kicker, .form-secao__head > span, .aj-grupo__n { display: none; }
.op-grupo__head, .form-secao__head { display: block; margin: 0 0 var(--s5); }
.op-grupo__head p, .form-secao__head p, .aj-grupo__head p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.4; }

@media (max-width: 720px) {
  .op-grupo__head h2, .form-secao__head h2 { font-size: 18px; }
  
}
/* Rótulo de seção fora dos painéis: mesma regra da Visão geral (caixa alta + fio). */
.vx-sec::after { background: var(--line); }

/* ---------- Status ----------
   Um só componente. Tons: ok verde · late atraso · neg em andamento/atenção · off encerrado · neutro. */
.st { position: relative; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 0; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: .01em; white-space: nowrap; vertical-align: middle;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.st__ic { display: inline-grid; place-items: center; margin-right: 5px; }
.st__ic .vx-svg { width: 14px; height: 14px; }
/* Três níveis (regras-ui 13.6): crítico = vermelho cheio; hoje = destaque; leve = tracejado. Em dia = tom médio; encerrado = escuro neutro. */
.st--late { background: var(--alerta); color: var(--on-alerta); box-shadow: none; }
.st--neg { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.st--ok { background: var(--bloco-medio); color: var(--on-medio); box-shadow: none; }
.st--off { background: color-mix(in srgb, var(--ink) 14%, transparent); box-shadow: none; color: var(--ink-2); }
button.st { cursor: pointer; }
button.st:hover { filter: brightness(1.08); box-shadow: inset 0 0 0 1px currentColor; }
button.st::after { content: ""; position: absolute; inset: -10px -4px; } /* área de toque de 44 px sem aumentar o desenho */

/* ---------- Tabelas ---------- */
.grid-table th { color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.grid-table th.num, .grid-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid-table td.num { font-weight: 600 !important; }
.grid-table tr:hover td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.grid-table input[type="checkbox"]{ width: 18px; height: 18px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.iconbtn { width: 40px; height: 40px; }
.iconbtn--gold { background: transparent; color: var(--ink-2); }
.iconbtn--gold:hover { background: var(--surface); color: var(--ink); opacity: 1; box-shadow: inset 0 0 0 1px var(--line-strong); }
.iconrow { gap: 2px; }

/* ---------- Rodapé ----------
   Uma faixa só, sem cápsulas: estado dos dados à esquerda, institucional à direita. */
.contactbar { margin-top: var(--s7); padding: var(--s5) 30px var(--s6); border-top: 1px solid var(--line); gap: var(--s3) var(--s6); color: var(--ink-3); font-size: 13px; }
.contactbar::before { display: none; }
.contactbar__item { padding: 0; background: none; box-shadow: none; color: var(--ink-2); font-weight: 500; }
.contactbar a:hover .contactbar__item { background: none; color: var(--ink); }
.contactbar__estado { flex: 1; justify-content: space-between; gap: var(--s3) var(--s6); font-size: 13px; }
.contactbar__linha { gap: 4px var(--s5); }
.contactbar__ver { padding: 0; background: none; box-shadow: none; font-weight: 500; color: var(--ink-3); }
.contactbar__atalho, .contactbar__atalho[href="#/ajustes"], .contactbar__topo { padding: 0; border: 0; background: none; box-shadow: none; font: 500 13px var(--font); color: var(--ink-2); text-decoration: none; cursor: pointer; }
.contactbar__atalho--forte { font-weight: 600 !important; color: var(--ink) !important; text-decoration: none !important; }
.contactbar__atalho:hover, .contactbar__topo:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) {
  .contactbar { padding: var(--s5) 16px var(--s6); }
  .contactbar__estado { justify-content: center; }
}
.contactbar__links:empty { display: none; }

/* ============================================================
   Orçamentos (studio-0.4.18) — filtros em grade, colunas fixas,
   ações que aparecem na linha em foco, paginação legível.
   ============================================================ */
@media (min-width: 721px) {
  /* busca + Limpar na primeira linha; cinco filtros de mesma largura na segunda, alinhados à tabela */
  .toolbar--hist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s3); align-items: center; margin-bottom: var(--s5); }
  .toolbar--hist .search { grid-column: 1 / 5; grid-row: 1; margin: 0; }
  .toolbar--hist .filters > * { grid-row: 2; width: 100%; max-width: none; min-width: 0; margin: 0; }
  .toolbar--hist .filters > .btn { grid-row: 1; grid-column: 5; justify-self: end; width: auto; margin: 0; }
  .toolbar--hist .filters .select { width: 100%; max-width: none; }
  .toolbar--hist .periodo { display: flex; align-items: center; height: 48px; padding: 0 16px; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .toolbar--hist .periodo .input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; text-align: center; }
  .toolbar--hist .periodo:focus-within { border-color: var(--gold); }

  /* colunas: seleção, mês, cliente, projeto (livre), categoria, valor, ações */
  .grid-table.hist-lista { table-layout: fixed; width: 100%; }
  .hist-lista th:nth-child(1) { width: 48px; }
  .hist-lista th:nth-child(2) { width: 104px; }
  .hist-lista th:nth-child(3) { width: 21%; }
  .hist-lista th:nth-child(5) { width: 15%; }
  .hist-lista th:nth-child(6) { width: 132px; }
  .hist-lista th:nth-child(7) { width: 176px; }
  .hist-lista td { vertical-align: middle; }
  .hist-lista td:nth-child(2) { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .hist-lista .cell-cli, .hist-lista .cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .hist-lista .cell-projeto__badges { display: flex; gap: 6px; margin-bottom: 4px; }
  .hist-lista .cell-projeto__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hist-lista td.num { padding-right: var(--s5); }
  .hist-lista .cell-acao .iconrow { justify-content: flex-end; flex-wrap: nowrap; }
  /* ações discretas até a linha ganhar foco ou passar o mouse */
  .hist-lista .cell-acao .iconbtn { opacity: .45; transition: opacity .15s; }
  .hist-lista tr:hover .cell-acao .iconbtn, .hist-lista tr:focus-within .cell-acao .iconbtn { opacity: 1; }
}
.th-chk { text-align: center; }
.hist-lista td:first-child { text-align: center; }

/* paginação: botões de 40 px, contagem legível */
.pager { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pager .seg button { min-width: 40px; height: 40px; font-size: 14px; }

/* ============================================================
   Faturas (studio-0.4.18) — legenda do panorama no padrão de pontos;
   no celular cada fatura é um cartão de 4 linhas, não um formulário.
   ============================================================ */
.pano__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; }
.pano__l { font-size: 13px; color: var(--ink-2); }
.fat-lista td:nth-child(4) .fat__sub { font-size: 12px; }
@media (min-width: 721px) {
  .fat-lista { table-layout: fixed; width: 100%; }
  .fat-lista th:nth-child(1) { width: 128px; }
  .fat-lista th:nth-child(3) { width: 104px; }
  .fat-lista th:nth-child(4) { width: 144px; }
  .fat-lista th:nth-child(5) { width: 132px; }
  .fat-lista th:nth-child(6) { width: 116px; }
  .fat-lista th:nth-child(7) { width: 104px; }
  .fat-lista th:nth-child(8) { width: 120px; white-space: nowrap; }
  .fat-lista th:nth-child(9) { width: 208px; }
  .fat-lista td:nth-child(4) .fat__sub { white-space: nowrap; }
  .fat-lista td.num { padding-right: var(--s5); }
  .fat-lista .cell-acao .iconrow { justify-content: flex-end; flex-wrap: nowrap; }
}
@media (max-width: 720px) {
  .grid-table--cards.fat-lista tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 16px; box-shadow: none; }
  .grid-table--cards.fat-lista td { display: block; width: auto; padding: 0; border: 0; text-align: left; min-width: 0; }
  .grid-table--cards.fat-lista td::before { content: none; }
  .fat-lista td:nth-child(1) { grid-area: 1 / 1; font-weight: 600; }
  .fat-lista td:nth-child(5) { grid-area: 1 / 2; text-align: right; }
  .fat-lista td:nth-child(2) { grid-area: 2 / 1; }
  .fat-lista td:nth-child(7) { grid-area: 2 / 2; text-align: right; }
  .fat-lista td:nth-child(4) { grid-area: 3 / 1; color: var(--ink-2); font-size: 14px; }
  .fat-lista td:nth-child(8) { grid-area: 3 / 2; text-align: right; }
  .grid-table--cards.fat-lista td:nth-child(9) { grid-area: 4 / 1 / 5 / 3; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
  .fat-lista td:nth-child(9) .iconrow { justify-content: space-between; }
  .fat-lista td:nth-child(3), .fat-lista td:nth-child(6) { display: none !important; }
}

/* ============================================================
   Ajustes, Clientes e Primeiro uso (studio-0.4.25) — sobre o Sistema comum:
   rótulos numa só linha de alinhamento, tabelas com cabeçalho único,
   colunas fixas para valores e status, primeiro uso chapado e estável.
   ============================================================ */

/* ---------- Ajustes ---------- */
/* Prévia da marca vai para a direita: Nome, Logo e Cor de destaque começam na mesma linha vertical. */
.ax .marca-sel { grid-template-columns: minmax(0, 1fr) 200px; gap: var(--s6); }
.ax .marca-sel > .marca-sel__col:first-child { order: 2; }
.ax .marca-sel .marca-prev { height: 132px; }
.marca-sel .field { margin: 0; }
.marca-sel .field > .hint, .aj .field > .hint { margin: 0; }
.marca-sel .hint:empty { display: none; }
@media (max-width: 640px) { .aj .marca-sel { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } .aj .marca-sel .marca-prev { height: 88px; } }
/* Subgrupos do painel (Marca, Contatos): fio + título de nível 3, como .aj-grupo. */
/* Prévia da fatura: um só nível (fio em cima e a faixa de valores), não caixa dentro de caixa. */
/* Índice IPCA: grade de anos na largura do painel. */
@media (max-width: 720px) { .ipca { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ipca__ano .input { max-width: 96px; } }
/* Cores por cliente: nome uma vez só (o monograma mostra a cor aplicada), em colunas. */
@media (max-width: 720px) { .cor { grid-template-columns: 40px minmax(0, 1fr) auto; } .cor > :last-child { grid-column: auto; } }

/* ---------- Importar ---------- */
/* Área de arrastar e "Como preparar" com a mesma altura; ilustração sem brilho. */

/* ---------- Primeiro uso ---------- */
/* As etapas ocupam a mesma célula: o bloco tem a altura da etapa mais alta e título e botões não pulam. */
.bv__painel { display: grid; min-height: 0; }
.bv-p { grid-area: 1 / 1; min-width: 0; }
.bv-p.is-oculta { visibility: hidden; }
@media (min-width: 961px) {
  .bv { align-items: flex-start; padding-top: clamp(40px, 13vh, 150px); }
  .bv__card { align-items: center; }
}
/* Prévia chapada: sem inclinação 3D nem sombra projetada. */
.bv-prev { transform: none; box-shadow: none; border-color: var(--line-strong); }
/* Campos da etapa Visual: rótulo, controle e ajuda com o mesmo respiro. */
.bv .marca-sel__col { gap: var(--s5); }
.bv .marca-sel .field { gap: 8px; }
/* Opções da última etapa: um bloco neutro com fio entre as duas; o destaque fica só no botão Começar. */
.bv-opcoes { margin-top: var(--s5); border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; text-align: left; }
.bv-opcoes .bv-demo { margin: 0; padding: 14px 18px; border: 0; border-radius: 0; background: transparent; }
.bv-opcoes .bv-demo + .bv-demo { border-top: 1px solid var(--line); }
.bv-opcoes .bv-demo .bv-ico svg { color: var(--ink-2); }
.bv-opcoes .bv-drive.is-ok .bv-ico svg { color: var(--conv); }
@media (prefers-reduced-motion: no-preference) {
  /* troca de etapa curta e sem ficar em branco */
  .bv__painel.is-vai .bv-p, .bv__painel.is-volta .bv-p { animation: bv-troca .18s ease-out both; }
  .bv__painel.is-volta .bv-p { animation-name: bv-troca-volta; }
  .bv-p .bv__ct > *, .bv-p .marca-sel__col > * { animation: none; }
  .bv-prev { animation: bv-entra .5s .1s cubic-bezier(.2,.8,.2,1) both; }
  .bv-prev__preco b { animation: none; }
  @keyframes bv-troca { from { opacity: .4; transform: translateX(10px); } }
  @keyframes bv-troca-volta { from { opacity: .4; transform: translateX(-10px); } }
  @keyframes bv-entra { from { opacity: 0; transform: translateY(12px); } }
}
@media (max-width: 720px) {
  .bv-opcoes { margin-top: 12px; border-radius: 16px; }
  .bv-opcoes .bv-demo { padding: 12px 14px; }
}

/* ============================================================
   Cronograma, Produção e job (studio-0.4.19)
   ============================================================ */

/* ---------- Cronograma ----------
   A cor da barra é a situação do prazo, não o cliente (a cor do cliente
   fica no ponto do rótulo): combinado dourado, estimativa tracejada,
   entregue verde, atrasado vermelho. Datas sempre legíveis sobre a barra. */











/* carga: neutra até o limite, vermelha acima dele (mesma regra da Visão geral) */




@media (max-width: 720px) {
  /* rótulo estreito (título em até 2 linhas, sem a linha de cliente): cabem ~9 dias em 375 px */
  
  
  
  
  
  
  
  
  
}

/* ---------- Primeiro uso (estudo 26) ---------- */
.bv-doc { width: 100%; max-width: 400px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.bv-doc__band { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--mp); color: var(--mp-on); font-weight: 600; transition: background .4s; }
.bv-doc__band img { width: 28px; height: 28px; object-fit: contain; }
.bv-doc__band span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-doc__sym { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--mp-on) 18%, transparent); font-size: 12px; }
.bv-doc__c { display: grid; gap: 6px; padding: 20px; font-size: 13px; color: var(--ink-2); }
.bv-doc__c small { font-weight: 600; letter-spacing: .1em; color: var(--ink-3); }
.bv-doc__c h3 { margin: 0; font: 500 22px/1.15 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.bv-doc__its { display: grid; margin-top: 10px; }
.bv-doc__its div, .bv-doc__tot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bv-doc__its b, .bv-doc__tot b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.bv-doc__tot { font-weight: 600; color: var(--ink); }
.bv-doc__ok { justify-self: start; margin-top: 8px; padding: 8px 18px; border-radius: 999px; background: var(--mp); color: var(--mp-on); font-weight: 600; transition: background .4s; }
.bv-doc__pe { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.bv-doc__pe .is-falta { font-style: italic; }
.bv-opcs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s3); }
.bv-opc { position: relative; display: grid; gap: 8px; align-content: start; padding: 28px; border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.bv-opc input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bv-opc:has(input:checked) { box-shadow: inset 0 0 0 2px var(--gold); }
.bv-opc:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.bv-opc b { font-size: 17px; }
.bv-opc p { margin: 0; font-size: 14px; color: var(--ink-2); }
.bv-opc ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.bv-opc li::before { content: "✓ "; color: var(--ink-2); }
.bv-opc__ok { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); }
.bv-opc__ok svg { width: 14px; height: 14px; }
.bv-opc:has(input:checked) .bv-opc__ok { display: grid; }
.bv-seguro b { color: var(--ink); }
@media (max-width: 560px) { .bv-opcs { grid-template-columns: minmax(0,1fr); } }

/* Botão Sair (js/sessao.js): ao lado do tema; some quando não há sessão */
.sair-toggle[hidden] { display: none; }
@media (max-width: 720px) {
  .sair-toggle { right: 60px; }
  .drive-alerta { right: 106px; }
  .topbar__brand { padding-right: 112px; }
  .topbar:has(.drive-alerta:not([hidden])) .topbar__brand { padding-right: 158px; }
}

/* Tela de entrada/licença: ocupa a janela inteira (o #app é uma grade com a faixa de marca ao lado) */
.acesso-bloqueado .app { display: block; }
.acesso-bloqueado .acesso { width: 100%; }

/* ícone de estado dentro do selo */
.st__ic { display: inline-flex; width: 14px; height: 14px; margin-right: 5px; flex: none; }
.st__ic svg { width: 100%; height: 100%; display: block; stroke-width: 2; }

/* Entrada: as três promessas (regras-ui 13.4) */
.bv-prom { margin: 0 0 var(--s5); padding: 0; list-style: none; display: grid; gap: 8px; }
.bv-prom li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.bv-prom li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Estado vazio: ícone duotone em caixa de tom médio (regras-ui 13.4b) */
.vazio__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--bloco-medio); color: var(--on-medio); }
.vazio__ic svg { width: 32px; height: 32px; }
.vazio--linha .vazio__ic { width: 52px; height: 52px; flex: none; }
/* Um botão cheio por tela (13.3): com o estado vazio na página, a ação do cabeçalho vira contorno */
.view:has(.vazio--pagina) .pghead .btn--gold, .view:has(.vazio--pagina) .pghead__acoes .btn--gold { background: transparent; color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--ink) 30%, transparent); }

/* Cabeçalho de página do canvas: título, abas e ação principal na mesma linha; no celular o subtítulo some e as abas descem */
.pghead__row { align-items: flex-end; }
.pghead__acoes { gap: 16px; }
@media (max-width: 720px) {
  .pghead__row { flex-wrap: wrap; align-items: center; gap: 12px; }
  .pghead__row > div:first-child { order: 1; flex: 1 1 auto; min-width: 0; }
  .pghead p { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; }
  .pghead__acoes { display: contents; }
  .pghead__acoes > .orc-abas { order: 3; flex: 1 1 100%; width: 100%; }
  .pghead__acoes > .orc-abas a { flex: 1; justify-content: center; }
  .pghead__acoes > .btn { order: 2; flex: none; min-height: 48px; padding: 0 18px; }
}

.t-sh { display: none; }
@media (max-width: 720px) {
  .t-lg { display: none; } .t-sh { display: inline; }
  .nav a[data-route="visao-geral"] { order: 1; } .nav a[data-route="historico"] { order: 2; } .nav a[data-route="producao"] { order: 3; }
  .nav a[data-route="cronograma"] { order: 4; } .nav a[data-route="mais"] { order: 5; }
}

/* Menu fixo do celular (0.4.220): o rodapé da página (contatos, estado do backup) rola até aparecer inteiro acima do menu, e o menu ganha um anel na cor do fundo para não se misturar com cartões escuros. */
@media (max-width: 720px), (pointer: coarse) and (orientation: portrait) {
  .shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .view { padding-bottom: 20px; }
  .nav { box-shadow: 0 0 0 1px var(--nav-edge), 0 0 0 6px var(--bg), 0 10px 28px rgba(0, 0, 0, .3); }
  /* fundo sob o menu fixo: o conteúdo não aparece nas frestas em volta nem embaixo do menu (0.4.326) */
  .nav-scroll::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
    height: calc(110px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 0, var(--bg) calc(84px + env(safe-area-inset-bottom)), transparent); }
}

/* Barras de ação flutuantes no celular (0.4.220): "Alterações não salvas" (Ajustes, Job), confirmar importação e aviso (toast) flutuam acima do menu fixo e deixam de ser pílula: texto em cima, botões lado a lado, largura cheia. */
@media (max-width: 720px), (pointer: coarse) and (orientation: portrait) {
  html .ax-salvar, html .jb-salvar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 28px; bottom: calc(96px + env(safe-area-inset-bottom)); }
  html .ax-salvar > span, html .jb-salvar > .jb-salvar__aviso { grid-column: 1 / -1; margin: 0; }
  html .ax-salvar .btn, html .jb-salvar .btn { width: 100%; justify-content: center; white-space: nowrap; }
  html .jb-salvar .btn { grid-column: 1 / -1; }
  html .ax-salvar[hidden], html .jb-salvar[hidden] { display: none; }
  html .toast { bottom: calc(100px + env(safe-area-inset-bottom)); left: 14px; right: 14px; width: auto; transform: none; max-width: 460px; margin-inline: auto; border-radius: 22px; padding: 12px 14px 12px 18px; }
  html .toast--acao { justify-content: space-between; }
  html .toast__acao { flex: none; min-height: 36px; padding: 0 16px; }
}

/* Raios no celular (0.4.220, regras-ui 13): bloco 30, cartão interno 24. Nada de pílula em caixa com mais de uma linha (passos de Importar e Novo orçamento). */
@media (max-width: 720px), (pointer: coarse) and (orientation: portrait) {
  :root { --radius: 30px; }
  html .im-drop { border-radius: 30px; }
  html .cr-dec { border-radius: 24px; }
  html .im-passos, html .nv-steps { border-radius: 24px; }
  html .im-passos { width: 100%; flex-wrap: nowrap; }
  html .im-passos li { flex: 1 1 0; min-width: 0; }
  html .im-passos li > * { width: 100%; justify-content: center; padding: 0 8px; gap: 6px; }
}

/* Aviso rápido: raio de 22 px em qualquer largura (pílula total vira bolha quando o texto quebra). */
html .toast { border-radius: 22px; }

/* ---- Avisos fixos no topo (canvas "Avisos"): bloco médio, selo, título, texto e ação ---- */
.avs { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 var(--s5) var(--s3); padding: 22px 28px; border-radius: 32px; background: var(--bloco-medio); color: var(--on-medio); }
.avs[hidden] { display: none; }
.avs__l { display: grid; gap: 6px; min-width: 0; flex: 1 1 320px; justify-items: start; }
.avs__selo { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--on-medio) 10%, transparent); font: 700 13px var(--font); }
.avs__selo svg { width: 16px; height: 16px; display: block; }
.avs__selo.is-late { background: var(--alerta); color: var(--on-alerta); }
.avs__t { font: 600 24px/1.1 var(--font-display); letter-spacing: -.03em; }
.avs__x { font-size: 15px; line-height: 1.4; max-width: 70ch; opacity: .85; }
.avs__a { display: flex; gap: 10px; flex-wrap: wrap; }
.avs .btn--ghost { border-color: color-mix(in srgb, var(--on-medio) 35%, transparent); color: var(--on-medio); }
@media (max-width: 720px) {
  .avs { margin: 0 14px 10px; padding: 20px; border-radius: 28px; }
  .avs__t { font-size: 20px; }
  .avs__a { width: 100%; }
  .avs__a .btn { flex: 1 1 100%; }
}

/* "‹ Voltar" no desktop também (canvas): a migalha completa dá lugar ao link da tela anterior */
.pghead .crumb { display: none; }
.pghead .crumb__voltar { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 var(--s2) -4px; padding: 0 4px; min-height: 32px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.pghead .crumb__voltar:hover { color: var(--ink); }

/* Celular (canvas): quando a tela tem um só botão de ação, ele fica na linha do título; a descrição passa para baixo, de ponta a ponta. */
@media (max-width: 720px) {
  .pghead__row:has(.pghead__acoes > .btn):not(:has(.pghead__acoes > .btn ~ .btn)):not(:has(.nv-steps)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .pghead__row:has(.pghead__acoes > .btn):not(:has(.pghead__acoes > .btn ~ .btn)):not(:has(.nv-steps)) > div:first-child { display: contents; }
  .pghead__row:has(.pghead__acoes > .btn):not(:has(.pghead__acoes > .btn ~ .btn)):not(:has(.nv-steps)) h1 { grid-column: 1; grid-row: 1; }
  .pghead__row:has(.pghead__acoes > .btn):not(:has(.pghead__acoes > .btn ~ .btn)):not(:has(.nv-steps)) h1 + p { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .pghead__row:has(.pghead__acoes > .btn):not(:has(.pghead__acoes > .btn ~ .btn)):not(:has(.nv-steps)) .pghead__acoes > .btn { grid-column: 2; grid-row: 1; order: 0; }
  .pghead__row:has(.pghead__acoes > .btn):not(:has(.pghead__acoes > .btn ~ .btn)):not(:has(.nv-steps)) .pghead__acoes > .orc-abas { grid-column: 1 / -1; grid-row: 3; order: 0; }
}
@media (max-width: 720px) {
  .pghead__row:has(.pghead__acoes > .cl-so-d) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .pghead__row:has(.pghead__acoes > .cl-so-d) > div:first-child { display: contents; }
  .pghead__row:has(.pghead__acoes > .cl-so-d) h1 { grid-column: 1; grid-row: 1; }
  .pghead__row:has(.pghead__acoes > .cl-so-d) h1 + p { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .pghead__row:has(.pghead__acoes > .cl-so-d) .pghead__acoes > .btn { grid-column: 2; grid-row: 1; order: 0; }
}

/* Menu do celular em ícones: o item ativo mostra ícone e texto */
.nav .ni { display: none; }
@media (max-width: 720px), (pointer: coarse) and (orientation: portrait) {
  .nav .ni { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; }
  .nav .ni svg { width: 24px; height: 24px; display: block; }
  .nav a { gap: 8px; }
  .nav .sh { display: none; }
  .nav a.is-active-m .sh { display: inline; }
  .nav a.is-active-m { flex: 2.2 1 0; }
}

/* Ícones premium do menu (Phosphor): duotone nos inativos, preenchido no ativo */
.nav .ni { position: relative; }
.nav .ni__f { display: none; }
@media (max-width: 720px), (pointer: coarse) and (orientation: portrait) {
  .nav .ni, .nav .ni svg { width: 26px; height: 26px; }
  .nav a.is-active-m .ni__d { display: none; } .nav a.is-active-m .ni__f { display: block; }
  .nav a:not(.is-active-m) .ni { opacity: .9; }
}

/* Cópia do Drive pausada: ícone de alerta ao lado do "sair" (no lugar do aviso grande no topo) */
.drive-alerta { background: var(--alerta); color: var(--on-alerta); box-shadow: none; }
.drive-alerta:hover { opacity: .85; }
.drive-alerta--auto { background: var(--verde); color: var(--on-alerta); }
.drive-alerta .da__ok { display: none; } .drive-alerta--auto .da__ok { display: inline; } .drive-alerta--auto .da__x { display: none; }
.drive-alerta[hidden] { display: none; }

/* ---------- Rodapé, refino (0.4.326) ----------
   Grade de 2 linhas: contatos à esquerda e backup à direita (mesma linha); versão, termos e privacidade numa linha
   própria, menor e à direita. O fio e o texto seguem a largura dos cards (--cb-pad). Bolinha de estado com cor de estado. */
.contactbar { --cb-pad: 30px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3) var(--s6); margin-top: var(--s6); padding: var(--s5) var(--cb-pad) var(--s5); border-top: 0; }
.contactbar::before { content: ""; display: block; position: absolute; top: 0; left: var(--cb-pad); right: var(--cb-pad); height: 1px; background: var(--line); }
.contactbar__links { grid-column: 1; grid-row: 1; }
.contactbar__estado { display: contents; }
.contactbar__estado > .contactbar__linha:first-child { grid-column: 2; grid-row: 1; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; gap: 4px var(--s4); }
.contactbar__legal { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; gap: 4px var(--s4); font-size: 12px; }
.contactbar__legal .contactbar__ver, .contactbar__legal .contactbar__atalho, .contactbar__legal .contactbar__topo { font-size: 12px; color: var(--ink-3); }
.contactbar__legal .contactbar__atalho:hover, .contactbar__legal .contactbar__topo:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contactbar__item, .contactbar__estado { font-size: 13px; color: var(--ink-2); }
.contactbar__dot--neutro::before { background: var(--ink-3); }
.contactbar__dot--ok::before { background: var(--verde); }
.contactbar a.contactbar__backup { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink) !important; font-weight: 600; }
.contactbar a.contactbar__backup:hover { background: var(--surface); }
@media (max-width: 1100px) {
  .contactbar { grid-template-columns: minmax(0, 1fr); }
  .contactbar__links { grid-column: 1; }
  .contactbar__estado > .contactbar__linha:first-child { grid-column: 1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .contactbar__legal { grid-row: 3; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .contactbar { --cb-pad: 16px; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--s2); }
  .contactbar__estado > .contactbar__linha:first-child, .contactbar__legal { justify-content: center; }
  .contactbar__estado > .contactbar__linha:first-child { flex-wrap: wrap; }
}

/* ============================================================
   Chip único (0.4.326, regras-ui 13.6): um só tamanho, letra, respiro e mapa de tons em todo o sistema.
   24 px de altura, 12 px/600, 12 px de respiro, ícone Bold de 14 px antes do texto. Quem é botão não muda de forma.
   Tons: ok = verde cheio (concluído: aprovado, faturado, pago, anexado, em dia) · late = vermelho (crítico) ·
   neg = destaque da marca (hoje, em andamento) · off = cinza neutro com traço (encerrado, recusado) · "" = contorno (neutro).
   Os chips do kanban (.kb-card__chip) seguem o mesmo padrão no fim de quadro.css (carrega depois deste arquivo).
   ============================================================ */
.st, button.st, .vp button.st, .spill { display: inline-flex; align-items: center; gap: 0; height: 24px; padding: 0 12px; border: 0; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st--ok { background: var(--st-ok-bg); color: var(--st-ok-fg); box-shadow: none; }
.st--fim, .spill--paid { background: var(--st-fim-bg); color: var(--st-fim-fg); box-shadow: none; }
.vp button.st--ok { color: var(--st-ok-fg); }
.vp button.st--fim { color: var(--st-fim-fg); }
.spill--late { background: var(--alerta); color: var(--on-alerta); box-shadow: none; }
