/* SAC MAXERP. Uma folha só, sem biblioteca. Claro e escuro pelo sistema de quem usa. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/estatico/fontes/InterVariable.woff2") format("woff2");
}
:root {
  --fundo: #f4f5f7;
  --superficie: #ffffff;
  --superficie-2: #f1f3f6;
  --borda: #e4e7ec;
  --borda-forte: #cdd3dc;
  --texto: #111827;
  --texto-suave: #667085;
  --marca: #e9690c;
  --marca-forte: #c4540a;
  --marca-fundo: #fff1e6;
  --azul: #1d63d8;      --azul-fundo: #e9f1fe;
  --roxo: #6f47d1;      --roxo-fundo: #f1ebfd;
  --verde: #14784a;     --verde-fundo: #e4f6ec;
  --amarelo: #8f5f00;   --amarelo-fundo: #fdf4d6;
  --vermelho: #c22b2b;  --vermelho-fundo: #fdeaea;
  --cinza: #5b6677;     --cinza-fundo: #eceff3;
  --lateral: #101623;   --lateral-2: #1b2334;  --lateral-borda: #232c40;
  --lateral-texto: #c5cddd; --lateral-suave: #7a869f;
  --sombra: 0 1px 2px rgba(16, 24, 40, .05);
  --sombra-media: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(16, 24, 40, .06);
  --sombra-alta: 0 8px 28px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --anel: 0 0 0 3px rgba(233, 105, 12, .2);
  --raio: 12px;
  --raio-campo: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #11151b;
    --superficie: #1a2029;
    --superficie-2: #232b36;
    --borda: #2c3542;
    --borda-forte: #3b4656;
    --texto: #e7ebf1;
    --texto-suave: #98a4b5;
    --marca: #ff8a2b;
    --marca-forte: #ffa459;
    --marca-fundo: #3a2812;
    --azul: #74acff;      --azul-fundo: #152844;
    --roxo: #b9a0f7;      --roxo-fundo: #2a2145;
    --verde: #5fd08f;     --verde-fundo: #12331f;
    --amarelo: #e9b949;   --amarelo-fundo: #3a2e0e;
    --vermelho: #ff8a8a;  --vermelho-fundo: #431a1a;
    --cinza: #98a4b5;     --cinza-fundo: #262e3a;
    --lateral: #0b0f15;   --lateral-2: #171d28;  --lateral-borda: #1c2330;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4);
    --sombra-media: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 16px rgba(0, 0, 0, .3);
    --sombra-alta: 0 10px 30px rgba(0, 0, 0, .55);
    --anel: 0 0 0 3px rgba(255, 138, 43, .28);
  }
}

* { box-sizing: border-box; }
html { font-size: 14.5px; }
@media (min-width: 1900px) { html { font-size: 15.5px; } }
@media (min-width: 2400px) { html { font-size: 16.5px; } }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss03";
}
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 .3rem; }
h2 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; margin: 0 0 .8rem; }
h3 { font-size: .93rem; font-weight: 650; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
::selection { background: var(--marca-fundo); color: var(--marca-forte); }
.suave { color: var(--texto-suave); }
.pequeno { font-size: .87rem; }
.direita { text-align: right; }
.centro { text-align: center; }
.escondido { display: none !important; }
.sem-quebra { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; letter-spacing: -.01em; }
.icone { flex: none; display: inline-block; vertical-align: -.2em; }

/* ---------- moldura: menu lateral ---------- */
body.com-lateral { display: grid; grid-template-columns: clamp(232px, 15vw, 290px) minmax(0, 1fr); min-height: 100vh; }
.alavanca { position: absolute; opacity: 0; pointer-events: none; }
.lateral {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
  background: var(--lateral); color: var(--lateral-texto); border-right: 1px solid var(--lateral-borda);
  display: flex; flex-direction: column; padding: .9rem .7rem .7rem; scrollbar-width: thin;
}
.lateral-topo { display: flex; align-items: center; gap: .5rem; padding: .1rem .45rem .8rem; }
.lateral .marca { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.01em; color: #fff; flex: 1; min-width: 0; }
.lateral .marca img { width: 28px; height: 28px; border-radius: 7px; background: #fff; padding: 2px; }
.lateral .marca:hover { text-decoration: none; }
.botao-menu { display: none; cursor: pointer; padding: .4rem; border-radius: 8px; color: var(--lateral-texto); }
.botao-menu:hover { background: var(--lateral-2); }
.lateral-corpo { display: flex; flex-direction: column; gap: .6rem; flex: 1; min-height: 0; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.selo-ambiente { color: #f0c35a; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.busca-rapida { position: relative; margin: 0; color: var(--lateral-suave); }
.busca-rapida .icone { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; pointer-events: none; }
.busca-rapida input[type=search] { background: var(--lateral-2); border-color: transparent; color: #fff; padding: .45rem .6rem .45rem 2rem; font-size: .9rem; min-height: 0; }
.busca-rapida input[type=search]::placeholder { color: var(--lateral-suave); }
.busca-rapida input[type=search]:focus { border-color: var(--marca); background: var(--lateral); }
.lateral nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.lateral nav .grupo { margin: .9rem 0 .25rem; padding: 0 .6rem; font-size: .68rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--lateral-suave); }
.lateral nav a { display: flex; align-items: center; gap: .65rem; padding: .45rem .6rem; border-radius: 8px; color: var(--lateral-texto); font-weight: 500; font-size: .93rem; }
.lateral nav a .icone { opacity: .75; }
.lateral nav a:hover { background: var(--lateral-2); color: #fff; text-decoration: none; }
.lateral nav a.atual { background: var(--lateral-2); color: #fff; box-shadow: inset 3px 0 0 var(--marca); }
.lateral nav a.atual .icone { opacity: 1; color: var(--marca); }
.lateral-pe { display: flex; align-items: center; gap: .3rem; border-top: 1px solid var(--lateral-borda); padding-top: .65rem; margin-top: .4rem; }
.lateral-pe form { margin: 0; }
.lateral-pe .botao.liso { color: var(--lateral-suave); padding: .4rem; }
.lateral-pe .botao.liso span { display: none; }
.lateral-pe .botao.liso:hover { background: var(--lateral-2); color: #fff; }
.lateral-pe .quem { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; padding: .3rem .4rem; border-radius: 8px; color: var(--lateral-texto); }
.lateral-pe .quem:hover { background: var(--lateral-2); text-decoration: none; }
.quem-nome { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: .88rem; line-height: 1.25; color: #fff; }
.quem-nome, .quem-nome small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quem-nome small { font-weight: 400; font-size: .76rem; color: var(--lateral-suave); }

/* janela estreita (gravador aberto pelo Max, celular): o menu vira uma barra no alto, que abre */
@media (max-width: 960px) {
  body.com-lateral { display: block; }
  .lateral { position: sticky; height: auto; max-height: 100vh; padding: .5rem .8rem; border-right: 0; border-bottom: 1px solid var(--lateral-borda); }
  .lateral-topo { padding: 0; }
  .botao-menu { display: inline-flex; }
  .lateral-corpo { display: none; padding: .7rem 0 .3rem; }
  .alavanca:checked ~ .lateral .lateral-corpo { display: flex; }
  .alavanca:focus-visible ~ .lateral .botao-menu { box-shadow: var(--anel); }
}

/* ---------- página ---------- */
/* A página ocupa a largura que a tela tiver. Só o formulário comprido (estreita) tem teto, para a
   linha de texto não ficar longa demais de ler. */
.conteudo { width: 100%; max-width: none; margin: 0 auto; padding: 1.6rem clamp(1rem, 2.2vw, 2.75rem) 3rem; }
.conteudo.estreita { max-width: clamp(780px, 56vw, 1120px); }
@media (max-width: 960px) { .conteudo { padding: 1.1rem 1rem 2.5rem; } }
.cabecalho { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.cabecalho p { margin-bottom: .3rem; }
.cabecalho .acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.cabecalho .acoes form { margin: 0; }
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 1.15rem 1.25rem; box-shadow: var(--sombra); margin-bottom: 1rem; }
.cartao > h2:first-child { margin-top: 0; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 400px); gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .duas-colunas { grid-template-columns: minmax(0, 1fr); } }
/* tela larga: a coluna do lado abre em duas, e os cartões se acomodam sem buraco */
@media (min-width: 1800px) {
  .duas-colunas { grid-template-columns: minmax(0, 1fr) clamp(660px, 40vw, 860px); gap: 1.25rem; }
  .duas-colunas > aside { columns: 2; column-gap: 1rem; }
  .duas-colunas > aside > * { break-inside: avoid; }
}
/* entre o celular e o computador (coluna única): os cartões do lado ficam lado a lado, não empilhados */
@media (min-width: 700px) and (max-width: 1100px) {
  .duas-colunas > aside { columns: 2; column-gap: 1rem; }
  .duas-colunas > aside > * { break-inside: avoid; }
}
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: .1rem 1rem; }
.grade .inteira { grid-column: 1 / -1; }

/* ---------- avisos ---------- */
.aviso { border-radius: var(--raio-campo); padding: .7rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-left-width: 4px; overflow-wrap: anywhere; }
.aviso.ok { background: var(--verde-fundo); color: var(--verde); border-color: var(--verde); }
.aviso.erro { background: var(--vermelho-fundo); color: var(--vermelho); border-color: var(--vermelho); }
.aviso.nota { background: var(--azul-fundo); color: var(--azul); border-color: var(--azul); }
.aviso.atencao { background: var(--amarelo-fundo); color: var(--amarelo); border-color: var(--amarelo); }

/* ---------- formulário ---------- */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .3rem; }
label .suave { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel],
input[type=url], input[type=date], select, textarea {
  width: 100%; min-height: 2.6rem; padding: .5rem .75rem; border: 1px solid var(--borda-forte); border-radius: var(--raio-campo);
  background: var(--superficie); color: var(--texto); font: inherit; transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--texto-suave); opacity: .75; }
select, .pesquisa > input {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("/estatico/icones/seta.svg"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 15px;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--texto-suave); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marca); box-shadow: var(--anel); }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--marca); flex: none; }
input[type=file] { font: inherit; color: var(--texto-suave); max-width: 100%; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: .7rem; padding: .4rem .8rem; border-radius: var(--raio-campo);
  border: 1px solid var(--borda-forte); background: var(--superficie); color: var(--texto); cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--superficie-2); }
:focus-visible { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, .botao:focus-visible { box-shadow: var(--anel); border-radius: var(--raio-campo); }
.campo { margin-bottom: .95rem; }
.ajuda { color: var(--texto-suave); font-size: .83rem; margin-top: .3rem; }
.marcar { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .93rem; cursor: pointer; }
.marcar input { margin-top: .2rem; }
.em-linha { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.em-linha .campo { margin-bottom: 0; flex: 1; min-width: 150px; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.6rem; padding: .5rem 1rem;
  border-radius: var(--raio-campo); border: 1px solid var(--borda-forte); background: var(--superficie); color: var(--texto);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: var(--sombra); transition: background .12s, border-color .12s, transform .05s;
}
.botao:hover { background: var(--superficie-2); text-decoration: none; }
.botao:active { transform: translateY(1px); }
.botao.principal { background: var(--marca); border-color: var(--marca); color: #fff; }
.botao.principal:hover { background: var(--marca-forte); border-color: var(--marca-forte); }
.botao.perigo { color: var(--vermelho); border-color: var(--vermelho); }
.botao.perigo:hover { background: var(--vermelho-fundo); }
.botao.pequeno { min-height: 0; padding: .32rem .7rem; font-size: .85rem; }
.botao.liso { border-color: transparent; background: transparent; color: var(--texto-suave); box-shadow: none; }
.botao.liso:hover { background: var(--superficie-2); color: var(--texto); }
.botao.cheio { width: 100%; }
.botao:disabled { opacity: .5; cursor: not-allowed; }
.filtros { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filtros .campo { margin: 0; flex: 1 1 170px; max-width: 320px; min-width: 150px; }
.filtros .pesquisa > input::placeholder { color: var(--texto); opacity: 1; }
.filtros label { font-size: .78rem; color: var(--texto-suave); font-weight: 600; }
.filtros input, .filtros select { min-height: 2.3rem; padding-top: .35rem; padding-bottom: .35rem; }

/* ---------- escolha com pesquisa (no lugar da lista comprida) ---------- */
.pesquisa { position: relative; }
.pesquisa-lista {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 290px; overflow-y: auto;
  margin: 0; padding: .3rem; list-style: none; background: var(--superficie); border: 1px solid var(--borda);
  border-radius: 10px; box-shadow: var(--sombra-alta); min-width: 220px;
}
.pesquisa-lista.solta { position: fixed; right: auto; }
.pesquisa-lista li { padding: .45rem .65rem; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.pesquisa-lista li.ativo { background: var(--superficie-2); }
.pesquisa-lista li[aria-selected=true] { color: var(--marca-forte); font-weight: 600; }
.pesquisa-lista li.nada { color: var(--texto-suave); cursor: default; }
.pesquisa-lista mark { background: var(--marca-fundo); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- etiquetas ---------- */
.etiqueta { display: inline-flex; align-items: center; border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--cinza-fundo); color: var(--cinza); line-height: 1.5; }
.cor-azul { background: var(--azul-fundo); color: var(--azul); }
.cor-roxo { background: var(--roxo-fundo); color: var(--roxo); }
.cor-verde { background: var(--verde-fundo); color: var(--verde); }
.cor-amarelo { background: var(--amarelo-fundo); color: var(--amarelo); }
.cor-vermelho { background: var(--vermelho-fundo); color: var(--vermelho); }
.cor-cinza { background: var(--cinza-fundo); color: var(--cinza); }
.urgencia-impeditivo { background: var(--vermelho); color: #fff; }
.urgencia-alta { background: var(--vermelho-fundo); color: var(--vermelho); }
.urgencia-media { background: var(--amarelo-fundo); color: var(--amarelo); }
.urgencia-baixa { background: var(--cinza-fundo); color: var(--cinza); }
.tipo-erro { background: var(--vermelho-fundo); color: var(--vermelho); }
.tipo-melhoria { background: var(--azul-fundo); color: var(--azul); }
.tipo-nova_funcao { background: var(--roxo-fundo); color: var(--roxo); }
.tipo-personalizacao { background: var(--verde-fundo); color: var(--verde); }
.tipo-duvida { background: var(--cinza-fundo); color: var(--cinza); }
.tipo-tarefa { background: var(--cinza-fundo); color: var(--texto); }
.tipo-epico { background: var(--roxo); color: #fff; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--marca-fundo); color: var(--marca-forte); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.lateral .avatar { background: var(--marca); color: #fff; width: 32px; height: 32px; }

/* ---------- tabela ---------- */
.tabela-rolagem { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-suave); padding: .55rem .7rem; border-bottom: 1px solid var(--borda); white-space: nowrap; }
td { padding: .7rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover td { background: var(--superficie-2); }
td .titulo, td.titulo { font-weight: 600; color: var(--texto); }
td input[type=text], td input[type=number], td select { min-height: 2.2rem; padding-top: .3rem; padding-bottom: .3rem; }
.vazio { text-align: center; color: var(--texto-suave); padding: 2.75rem 1rem; }
.paginas { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: 1rem; }

/* ---------- quadro ---------- */
.quadro { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; min-height: 60vh; }
.coluna { flex: 1 0 280px; max-width: 460px; background: var(--superficie-2); border: 1px solid var(--borda); border-radius: var(--raio); max-height: calc(100vh - 205px); display: flex; flex-direction: column; }
.coluna header { padding: .7rem .85rem .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 650; font-size: .86rem; letter-spacing: -.005em; }
.coluna header .quantos { background: var(--superficie); border: 1px solid var(--borda); border-radius: 999px; padding: 0 .5rem; font-size: .74rem; font-weight: 600; color: var(--texto-suave); }
.coluna header .quantos.cheio { background: var(--vermelho-fundo); color: var(--vermelho); border-color: transparent; }
.coluna .lista { padding: .25rem .5rem .55rem; overflow-y: auto; flex: 1; min-height: 80px; display: flex; flex-direction: column; gap: .5rem; scrollbar-width: thin; }
.coluna.alvo { outline: 2px dashed var(--marca); outline-offset: -3px; background: var(--marca-fundo); }
.ficha { background: var(--superficie); border: 1px solid var(--borda); border-left: 3px solid transparent; border-radius: 10px; padding: .65rem .75rem; cursor: grab; box-shadow: var(--sombra); transition: box-shadow .12s, transform .12s, border-color .12s; }
.ficha:hover { box-shadow: var(--sombra-media); transform: translateY(-1px); border-color: var(--borda-forte); }
.ficha:active { cursor: grabbing; }
.ficha.arrastando { opacity: .45; }
.ficha.impeditivo { border-left-color: var(--vermelho); }
.ficha.alta { border-left-color: var(--amarelo); }
.ficha .linha { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .76rem; color: var(--texto-suave); }
.ficha .titulo { display: block; font-weight: 600; color: var(--texto); margin: .3rem 0; font-size: .92rem; line-height: 1.35; }
.ficha .titulo:hover { color: var(--marca-forte); text-decoration: none; }
.ficha .rodape { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; margin-top: .45rem; }

/* ---------- chamado ---------- */
.conversa { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.fala { border: 1px solid var(--borda); border-radius: var(--raio); padding: .8rem 1rem; background: var(--superficie); }
.cartao > .fala { border: 0; padding: 0; }
.fala.equipe { border-left: 3px solid var(--marca); }
.fala.interna { background: var(--amarelo-fundo); border-color: transparent; border-left: 3px solid var(--amarelo); }
.fala .quem { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--texto-suave); margin-bottom: .35rem; flex-wrap: wrap; }
.fala .quem strong { color: var(--texto); }
.fala .corpo { overflow-wrap: anywhere; }
.passo { font-size: .84rem; color: var(--texto-suave); padding: .1rem 0 .1rem .9rem; border-left: 2px solid var(--borda); margin-left: .4rem; }
.anexos { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.anexo { border: 1px solid var(--borda); border-radius: var(--raio-campo); padding: .35rem .6rem; font-size: .85rem; background: var(--superficie-2); display: inline-flex; gap: .4rem; align-items: center; }
.anexo img { max-height: 110px; max-width: 180px; border-radius: 5px; display: block; }
.anexo.imagem { padding: .3rem; flex-direction: column; align-items: flex-start; }
.dados { display: grid; grid-template-columns: auto 1fr; gap: .4rem .85rem; font-size: .92rem; margin: 0; }
.dados dt { color: var(--texto-suave); }
.dados dd { margin: 0; overflow-wrap: anywhere; }
.andamento { display: flex; gap: .25rem; margin: .5rem 0 0; flex-wrap: wrap; }
.andamento span { flex: 1; min-width: 70px; text-align: center; font-size: .75rem; padding: .35rem .2rem; border-radius: 6px; background: var(--superficie-2); color: var(--texto-suave); }
.andamento span.feito { background: var(--verde-fundo); color: var(--verde); }
.andamento span.agora { background: var(--marca); color: #fff; font-weight: 700; }
/* andamento ao vivo do chamado (vídeo em preparo, análise rodando) */
.progresso-vivo { background: var(--azul-fundo); border: 1px solid color-mix(in srgb, var(--azul) 25%, transparent); border-radius: var(--raio); padding: .75rem 1rem; margin: .75rem 0 1rem; }
.progresso-vivo-titulo { margin: 0 0 .5rem; font-weight: 600; color: var(--azul); }
.progresso-vivo-etapas { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.progresso-vivo-etapas li { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: .1rem; padding: .45rem .6rem; border-radius: 6px; background: var(--superficie); border: 1px solid var(--borda); font-size: .85rem; }
.progresso-vivo-situacao { font-size: .75rem; color: var(--texto-suave); }
.progresso-vivo-etapas li.etapa-feito { background: var(--verde-fundo); border-color: transparent; color: var(--verde); }
.progresso-vivo-etapas li.etapa-feito .progresso-vivo-situacao { color: var(--verde); }
.progresso-vivo-etapas li.etapa-agora { border-color: var(--azul); font-weight: 600; }
.progresso-vivo-etapas li.etapa-agora .progresso-vivo-situacao::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--azul); margin-right: .3rem; animation: piscar 1.2s ease-in-out infinite; }
.progresso-vivo-etapas li.etapa-falhou { background: var(--vermelho-fundo); border-color: transparent; color: var(--vermelho); }
.painel-ia .progresso-vivo-etapas { margin-bottom: .5rem; }
.painel-ia .progresso-vivo-etapas li { min-width: 105px; }
.acabou-de-mudar { animation: acabou-de-mudar 2s ease-out; }
@keyframes acabou-de-mudar { from { box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 45%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
details.caixa { border: 1px solid var(--borda); border-radius: var(--raio); padding: .7rem 1rem; margin-bottom: .75rem; background: var(--superficie); box-shadow: var(--sombra); }
details.caixa summary { cursor: pointer; font-weight: 600; }
details.caixa[open] summary { margin-bottom: .6rem; }
pre.bruto { background: var(--superficie-2); border-radius: var(--raio-campo); padding: .7rem; overflow-x: auto; font-size: .82rem; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- entrada ---------- */
body.sem-lateral { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, var(--marca-fundo), transparent 70%), var(--fundo); }
.porta { max-width: 410px; margin: 9vh auto 0; padding: 0 1rem; }
.porta .cartao { padding: 2rem 1.9rem 1.7rem; border-radius: 16px; box-shadow: var(--sombra-alta); }
.porta .logo { text-align: center; margin-bottom: .8rem; }
.porta .logo img { width: 58px; height: 58px; }
.porta h1 { text-align: center; }
.porta .botao.principal { width: 100%; margin-top: .3rem; }
.codigo-grande { font-size: 1.6rem; letter-spacing: .4rem; text-align: center; }
.rodape-da-pagina { text-align: center; color: var(--texto-suave); font-size: .82rem; padding: 1.5rem 1rem; }

/* ---------- gravação ---------- */
.medidor { height: 10px; border-radius: 999px; background: var(--superficie-2); overflow: hidden; margin: .5rem 0; border: 1px solid var(--borda); }
.medidor span { display: block; height: 100%; width: 0; background: var(--verde); transition: width .08s linear; }
.contagem { font-size: 5rem; font-weight: 700; line-height: 1; margin: .5rem 0; color: var(--marca); }
.bolinha-gravando { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--vermelho); margin-right: .3rem; animation: piscar 1.2s ease-in-out infinite; }
@keyframes piscar { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .bolinha-gravando, .acabou-de-mudar, .progresso-vivo-etapas li .progresso-vivo-situacao::before { animation: none; } .ficha, .botao { transition: none; } }
video, audio { width: 100%; max-width: 100%; border-radius: var(--raio); display: block; }
video { background: #000; }
.gravacao { margin-top: .6rem; }
.gravacao video { max-height: 70vh; }
#gravador ul { padding-left: 1.2rem; margin: 0 0 1rem; }
#gravador li { margin-bottom: .5rem; }

/* ---------- análise e transcrição ---------- */
.analise ol { padding-left: 1.3rem; margin: 0 0 .75rem; }
.analise li { margin-bottom: .25rem; }
.analise h3 { margin-top: .9rem; }
.transcricao { max-height: 320px; overflow-y: auto; }
.transcricao p { margin: 0 0 .35rem; }
.tempo { font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; border: 0; border-radius: 5px; padding: .05rem .4rem; background: var(--marca-fundo); color: var(--marca-forte); cursor: pointer; }
.tempo:hover { background: var(--marca); color: #fff; }
.caixa-formulario { border: 1px solid var(--borda); border-radius: var(--raio); padding: .9rem 1rem; margin-bottom: .75rem; }

/* ---------- indicadores e gráficos ---------- */
/* Cores das séries: escolhidas por último e validadas por script nos dois temas (docs/decisoes.md).
   Texto nunca usa a cor da série: valores e rótulos ficam na cor de texto. */
:root { --serie-1: #2a78d6; --serie-2: #eb6834; --grade: #e3e7ec; }
@media (prefers-color-scheme: dark) { :root { --serie-1: #3987e5; --serie-2: #d95926; --grade: #303a47; } }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.indicador { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: .9rem 1.1rem; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: .15rem; }
.indicador .rotulo { font-size: .8rem; color: var(--texto-suave); font-weight: 500; }
.indicador .valor { font-size: 1.95rem; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.indicador .nota { font-size: .8rem; color: var(--texto-suave); }
.duas-iguais { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1rem; }
.grafico { margin: 0 0 1rem; }
.grafico figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafico details { margin-top: .5rem; }
.legenda { display: flex; gap: 1rem; font-size: .85rem; color: var(--texto-suave); margin: 0; }
.legenda span { display: inline-flex; align-items: center; gap: .35rem; }
.area-do-grafico { position: relative; }
.linha { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.linha.serie-1 { stroke: var(--serie-1); } .linha.serie-2 { stroke: var(--serie-2); }
.marcador { stroke: var(--superficie); stroke-width: 2; }
.marcador.serie-1, .barra.serie-1 { fill: var(--serie-1); } .marcador.serie-2 { fill: var(--serie-2); }
svg .grade { stroke: var(--grade); stroke-width: 1; }
.mira { stroke: var(--texto-suave); stroke-width: 1; }
.eixo { font-size: 11px; fill: var(--texto-suave); font-variant-numeric: tabular-nums; }
.eixo.fim { text-anchor: end; } .eixo.meio { text-anchor: middle; }
.rotulo-ponta { font-size: 12px; font-weight: 600; fill: var(--texto); }
.alvo { fill: transparent; cursor: default; }
.alvo:focus { outline: none; }
.alvo:hover, .alvo:focus-visible { fill: var(--texto); fill-opacity: .06; }
.dica { position: absolute; pointer-events: none; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-campo); box-shadow: var(--sombra-alta); padding: .45rem .65rem; font-size: .84rem; min-width: 130px; z-index: 5; }
.dica-titulo { color: var(--texto-suave); margin-bottom: .15rem; }
.dica-linha { display: flex; align-items: center; gap: .4rem; }
.dica-linha strong { font-variant-numeric: tabular-nums; }
.dica-linha span:last-child { color: var(--texto-suave); }
.dica-chave { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.dica-chave.serie-1 { background: var(--serie-1); } .dica-chave.serie-2 { background: var(--serie-2); }
td.numero, th.numero { font-variant-numeric: tabular-nums; }

/* ---------- desenvolvimento: sprints, épicos e subtarefas ---------- */
.cabecalho-do-cartao { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.cabecalho-do-cartao h2 { margin: 0; }
progress.avanco { width: 140px; height: 8px; vertical-align: middle; margin-left: .4rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: var(--superficie-2); overflow: hidden; }
progress.avanco::-webkit-progress-bar { background: var(--superficie-2); border-radius: 4px; }
progress.avanco::-webkit-progress-value { background: var(--verde); border-radius: 4px; }
progress.avanco::-moz-progress-bar { background: var(--verde); border-radius: 4px; }
td.estreita, th.estreita { width: 2rem; }

/* ---------- ajuda da IA: sempre em roxo, para a pessoa reconhecer o que foi a IA que escreveu ---------- */
.painel-ia { background: var(--roxo-fundo); border: 1px solid color-mix(in srgb, var(--roxo) 22%, transparent); border-radius: var(--raio); padding: .9rem 1rem; margin-bottom: 1.1rem; }
.painel-ia > label { color: var(--roxo); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.painel-ia textarea { min-height: 5rem; margin-bottom: .6rem; border-color: color-mix(in srgb, var(--roxo) 30%, transparent); }
.painel-ia textarea:focus { border-color: var(--roxo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--roxo) 20%, transparent); }
.painel-ia .em-linha { align-items: center; }
.painel-ia .ajuda { margin-top: 0; }
.botao.ia { background: var(--superficie); color: var(--roxo); border-color: color-mix(in srgb, var(--roxo) 45%, transparent); }
.botao.ia:hover { background: var(--roxo); color: var(--superficie); border-color: var(--roxo); }
.botao.ocupado { opacity: .7; cursor: progress; }
.preenchido-pela-ia { border-color: var(--roxo) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--roxo) 16%, transparent); }

/* ---------- celular ---------- */
@media (max-width: 640px) {
  h1 { font-size: 1.3rem; }
  .cartao { padding: .95rem .9rem; border-radius: 10px; }
  .cabecalho .acoes, .cabecalho .acoes .botao { width: 100%; }
  /* filtros de dois em dois, para a lista aparecer logo; a busca ocupa a linha inteira */
  .filtros .campo { flex: 1 1 calc(50% - .3rem); max-width: none; min-width: 0; }
  .filtros .campo:has(input[type=search]) { flex-basis: 100%; }
  .filtros .botao { flex: 1; }
  .em-linha .campo { min-width: 100%; }
  .coluna { flex: 0 0 84vw; max-width: none; }
  .dados { grid-template-columns: 1fr; gap: .1rem; }
  .dados dd { margin-bottom: .45rem; }
  td, th { padding-left: .45rem; padding-right: .45rem; }
  /* lista vira cartões: uma linha por bloco, com o nome da coluna antes do valor */
  table.empilhada thead { display: none; }
  table.empilhada, table.empilhada tbody, table.empilhada tr, table.empilhada td { display: block; width: 100%; }
  table.empilhada tr { padding: .75rem .1rem; border-bottom: 1px solid var(--borda); }
  table.empilhada tr:last-child { border-bottom: 0; }
  table.empilhada td { border: 0; padding: .12rem .3rem; text-align: left; }
  table.empilhada td:empty { display: none; }
  table.empilhada td[data-rotulo]::before { content: attr(data-rotulo) ": "; color: var(--texto-suave); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-right: .2rem; }
  table.empilhada td .titulo, table.empilhada td.titulo { font-size: 1rem; }
  .porta { margin-top: 4vh; }
  .porta .cartao { padding: 1.5rem 1.2rem; }
}

/* ---------- formulário do chamado: texto de um lado, classificação do outro ---------- */
.formulario-largo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.75rem; max-width: 1800px; }
.formulario-largo .fl-classificacao { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 0 1rem; align-content: start; }
.formulario-largo .fl-pe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding-top: .3rem; }
@media (min-width: 1200px) {
  .formulario-largo { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); }
  .formulario-largo .fl-classificacao { grid-template-columns: minmax(0, 1fr); border-left: 1px solid var(--borda); padding-left: 1.75rem; }
  .formulario-largo .fl-pe { grid-column: 1 / -1; border-top: 1px solid var(--borda); padding-top: 1rem; margin-top: .5rem; }
}
@media (min-width: 2000px) { .formulario-largo .fl-classificacao { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* gravador: na revisão, o vídeo fica ao lado do formulário quando a tela dá */
.conteudo:has(#passo-revisao:not(.escondido)) { max-width: 1800px; }
@media (min-width: 1200px) {
  #passo-revisao { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); gap: 1rem; align-items: start; }
  #passo-revisao > .cartao { margin-bottom: 0; }
}

/* ---------- respostas prontas ---------- */
.com-respostas { position: relative; }
.rotulo-com-acao { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.menu-respostas { position: absolute; left: 0; right: 0; z-index: 20; max-height: 300px; overflow-y: auto; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-campo); box-shadow: var(--sombra-alta); padding: .25rem; }
.menu-respostas [role=option] { padding: .45rem .6rem; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.menu-respostas [role=option][aria-selected=true], .menu-respostas [role=option]:hover { background: var(--marca-fundo); }
.menu-respostas [role=option] small { color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-respostas .vazio-menu { padding: .5rem .6rem; color: var(--texto-suave); font-size: .9rem; }

/* ---------- filas da lista ---------- */
.abas-filas { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; border-bottom: 1px solid var(--borda); padding-bottom: .5rem; }
.aba-fila { display: inline-flex; align-items: center; border-radius: 999px; background: var(--superficie-2); border: 1px solid transparent; }
.aba-fila a { padding: .35rem .75rem; color: var(--texto); text-decoration: none; font-size: .88rem; display: inline-flex; gap: .4rem; align-items: center; }
.aba-fila .quantos { font-size: .75rem; color: var(--texto-suave); background: var(--superficie); border-radius: 999px; padding: 0 .45rem; }
.aba-fila.ativa { background: var(--marca-fundo); border-color: var(--marca); }
.aba-fila.ativa a { color: var(--marca); font-weight: 600; }
.aba-fila form { display: inline; }
.apagar-fila { border: 0; background: none; color: var(--texto-suave); cursor: pointer; padding: 0 .55rem 0 0; font-size: 1rem; line-height: 1; }
.apagar-fila:hover { color: var(--vermelho); }
.salvar-fila { margin: -.25rem 0 1rem; }
.salvar-fila summary { cursor: pointer; color: var(--marca); font-size: .9rem; }
.salvar-fila form { margin-top: .5rem; align-items: flex-end; }

/* ---------- ações em lote ---------- */
.barra-lote { position: sticky; top: .5rem; z-index: 15; display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; background: var(--superficie); border: 1px solid var(--marca); border-radius: var(--raio); box-shadow: var(--sombra-alta); padding: .6rem .9rem; margin: 0 0 .8rem; }
.barra-lote .campo { margin: 0; min-width: 150px; }
.barra-lote strong { align-self: center; margin-right: .3rem; }
th.marcar-linha, td.marcar-linha { width: 2rem; text-align: center; }
tr.marcada td { background: var(--marca-fundo); }

/* ---------- gravar campo a campo ---------- */
form.grava-sozinho .gravar-manual { display: none; }
.salvo-situacao { font-size: .78rem; font-weight: 500; color: var(--verde); margin-left: .4rem; }
.salvo-situacao.erro { color: var(--vermelho); }
.campo.salvando select, .campo.salvando input { opacity: .6; }
.campo.salvo select, .campo.salvo input { border-color: var(--verde); transition: border-color .3s; }

/* campo travado (vem de fora, como o cadastro do Max): visível, mas sem cara de editável */
input[readonly], textarea[readonly], select:disabled { background: var(--superficie-2); color: var(--texto-suave); cursor: not-allowed; }
