:root {
  --fundo: #f5f5f7;
  --superficie: #ffffff;
  --superficie-2: #fbfbfd;
  --tinta: #1d1d1f;
  --tinta-2: #6e6e73;
  --tinta-3: #86868b;
  --linha: rgba(0, 0, 0, 0.08);
  --linha-forte: rgba(0, 0, 0, 0.14);
  --azul: #0071e3;
  --azul-claro: rgba(0, 113, 227, 0.1);
  --vermelho: #d70015;
  --vermelho-claro: rgba(215, 0, 21, 0.07);
  --verde: #248a3d;
  --verde-claro: rgba(36, 138, 61, 0.1);
  --laranja: #c93400;
  --laranja-claro: rgba(255, 149, 0, 0.14);
  --vidro: rgba(251, 251, 253, 0.78);
  --sombra: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --sombra-alta: 0 24px 64px rgba(0, 0, 0, 0.18);
  --raio: 18px;
  --raio-p: 12px;
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #000000; --superficie: #1c1c1e; --superficie-2: #161618; --tinta: #f5f5f7; --tinta-2: #a1a1a6;
    --tinta-3: #8e8e93; --linha: rgba(255,255,255,0.1); --linha-forte: rgba(255,255,255,0.18); --azul: #2997ff;
    --azul-claro: rgba(41,151,255,0.16); --vermelho: #ff453a; --vermelho-claro: rgba(255,69,58,0.12); --verde: #30d158;
    --verde-claro: rgba(48,209,88,0.14); --laranja: #ff9f0a; --laranja-claro: rgba(255,159,10,0.16);
    --vidro: rgba(22,22,24,0.72); --sombra: 0 1px 0 rgba(255,255,255,0.04), 0 12px 32px rgba(0,0,0,0.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #000000; --superficie: #1c1c1e; --superficie-2: #161618; --tinta: #f5f5f7; --tinta-2: #a1a1a6;
  --tinta-3: #8e8e93; --linha: rgba(255,255,255,0.1); --linha-forte: rgba(255,255,255,0.18); --azul: #2997ff;
  --azul-claro: rgba(41,151,255,0.16); --vermelho: #ff453a; --vermelho-claro: rgba(255,69,58,0.12); --verde: #30d158;
  --verde-claro: rgba(48,209,88,0.14); --laranja: #ff9f0a; --laranja-claro: rgba(255,159,10,0.16);
  --vidro: rgba(22,22,24,0.72); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta); font: 17px/1.47 var(--fonte);
  letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--azul); text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }

/* navegação translúcida */
.nav { position: sticky; top: 0; z-index: 40; background: var(--vidro); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--linha); }
.nav-in { max-width: 1240px; margin: 0 auto; height: 52px; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; color: var(--tinta); letter-spacing: -0.03em; }
.marca-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--vermelho); box-shadow: 0 0 0 3px var(--vermelho-claro); }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: var(--tinta-2); font-size: 14px; transition: color .2s; }
.nav-links a:hover, .nav-links a.ativo { color: var(--tinta); }

/* botões */
.botao { appearance: none; border: 0; cursor: pointer; border-radius: 980px; padding: 9px 18px; font-size: 15px;
  background: var(--azul); color: #fff; font-weight: 500; transition: transform .15s, opacity .2s, background .2s; white-space: nowrap; }
.botao:hover { opacity: .9; }
.botao:active { transform: scale(.97); }
.botao:disabled { opacity: .35; cursor: default; transform: none; }
.botao-pilula { padding: 6px 14px; font-size: 14px; }
.botao-escuro { background: var(--tinta); color: var(--fundo); }
.botao-claro { background: var(--azul-claro); color: var(--azul); }
.botao-neutro { background: var(--superficie); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linha-forte); }
.botao-grande { padding: 13px 24px; font-size: 17px; }
.link-voltar { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--azul); cursor: pointer; background: none; border: 0; padding: 0; }

/* página */
.pagina { max-width: 1240px; margin: 0 auto; padding: 44px 22px 140px; animation: entrar .45s cubic-bezier(.2,.8,.2,1); }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--vermelho); letter-spacing: -0.01em; margin: 0 0 6px; }
.titulo-grande { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.subtitulo { font-size: clamp(19px, 2.2vw, 24px); color: var(--tinta-2); font-weight: 400; margin: 10px 0 0; letter-spacing: -0.02em; line-height: 1.3; }
.cabeca { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }

/* barra de ferramentas */
.ferramentas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.busca { flex: 1; min-width: 220px; max-width: 360px; position: relative; }
.busca input { width: 100%; border: 0; border-radius: 12px; padding: 10px 14px 10px 38px; font: inherit; font-size: 15px;
  background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); color: var(--tinta); outline: none; transition: box-shadow .2s; }
.busca input:focus { box-shadow: inset 0 0 0 2px var(--azul); }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tinta-3); }
.segmentado { display: inline-flex; background: rgba(118,118,128,.12); border-radius: 10px; padding: 2px; overflow-x: auto; max-width: 100%; }
.segmentado button { border: 0; background: none; padding: 6px 13px; font-size: 13px; border-radius: 8px; cursor: pointer; color: var(--tinta); white-space: nowrap; transition: background .2s, box-shadow .2s; }
.segmentado button.ativo { background: var(--superficie); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); font-weight: 500; }
.contador { font-size: 14px; color: var(--tinta-2); margin-left: auto; }

/* grade de coletas */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cartao { position: relative; background: var(--superficie); border-radius: var(--raio); padding: 20px 20px 18px; cursor: pointer;
  box-shadow: var(--sombra); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; border: 2px solid transparent; }
.cartao:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 22px 48px rgba(0,0,0,.1); }
.cartao.selecionado { border-color: var(--azul); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 18px; color: #fff; margin-bottom: 14px; }
.cartao h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.cartao .funcao { margin: 2px 0 12px; color: var(--tinta-2); font-size: 14px; min-height: 20px; }
.cartao .trecho { font-size: 13px; color: var(--tinta-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 980px; background: rgba(118,118,128,.12); color: var(--tinta-2); display: inline-flex; align-items: center; gap: 4px; }
.chip-azul { background: var(--azul-claro); color: var(--azul); }
.chip-verde { background: var(--verde-claro); color: var(--verde); }
.chip-vermelho { background: var(--vermelho-claro); color: var(--vermelho); }
.chip-laranja { background: var(--laranja-claro); color: var(--laranja); }
.marcar { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--linha-forte);
  background: var(--superficie); display: grid; place-items: center; cursor: pointer; transition: all .2s; padding: 0; }
.marcar svg { opacity: 0; transform: scale(.6); transition: all .2s; }
.cartao.selecionado .marcar { background: var(--azul); border-color: var(--azul); color: #fff; }
.cartao.selecionado .marcar svg { opacity: 1; transform: none; }
.progresso-linha { height: 4px; border-radius: 4px; background: rgba(118,118,128,.16); overflow: hidden; margin-top: 12px; }
.progresso-linha > span { display: block; height: 100%; background: var(--azul); border-radius: 4px; transition: width .6s; }

/* barra flutuante de seleção */
.barra-selecao { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 22px; border-radius: 980px; background: var(--vidro); backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--sombra-alta); border: 1px solid var(--linha); animation: subir .35s cubic-bezier(.2,.8,.2,1); }
@keyframes subir { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.barra-selecao span { font-size: 15px; font-weight: 500; }
.barra-selecao .link-voltar { font-size: 14px; }

/* folha (modal) */
.camada { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.32); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.folha { width: min(860px, 100%); max-height: 88vh; overflow: auto; background: var(--superficie); border-radius: 22px; box-shadow: var(--sombra-alta);
  padding: 30px; animation: abrir .4s cubic-bezier(.2,.8,.2,1); }
@keyframes abrir { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.folha h2 { font-size: 28px; margin: 0 0 4px; letter-spacing: -0.03em; }
.folha .sub { color: var(--tinta-2); margin: 0 0 22px; font-size: 15px; }
.folha-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fechar { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(118,118,128,.14); cursor: pointer; display: grid; place-items: center; color: var(--tinta-2); flex: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tile { text-align: left; border: 0; background: var(--superficie-2); border-radius: 16px; padding: 18px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--linha);
  transition: transform .2s, box-shadow .2s, background .2s; display: flex; flex-direction: column; gap: 6px; }
.tile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--azul), var(--sombra); background: var(--superficie); }
.tile:disabled { opacity: .45; cursor: default; }
.tile .icone { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.tile b { font-size: 16px; font-weight: 600; }
.tile small { color: var(--tinta-2); font-size: 13px; line-height: 1.4; }
.tile .formato { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--tinta-3); }

/* envio */
.soltar { border: 2px dashed var(--linha-forte); border-radius: 18px; padding: 38px 20px; text-align: center; color: var(--tinta-2); cursor: pointer; transition: all .2s; }
.soltar.sobre { border-color: var(--azul); background: var(--azul-claro); color: var(--azul); }
.soltar b { display: block; color: var(--tinta); font-size: 17px; margin: 10px 0 4px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.campo label { display: block; font-size: 13px; color: var(--tinta-2); margin-bottom: 6px; }
.campo input, .campo textarea { width: 100%; border: 0; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; background: var(--superficie-2);
  box-shadow: inset 0 0 0 1px var(--linha-forte); color: var(--tinta); outline: none; resize: vertical; }
.campo input:focus, .campo textarea:focus { box-shadow: inset 0 0 0 2px var(--azul); }

/* página da coleta */
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.painel { background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); }
.painel-cab { padding: 18px 22px; border-bottom: 1px solid var(--linha); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.painel-cab h2 { margin: 0; font-size: 17px; font-weight: 600; }
.transcricao { max-height: calc(100vh - 230px); overflow: auto; padding: 8px 0; scroll-behavior: smooth; }
.fala { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 8px 22px; transition: background .4s; }
.fala:hover { background: var(--superficie-2); }
.fala.realce { background: var(--azul-claro); }
.fala .num { font-size: 12px; color: var(--tinta-3); text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.fala .voz { font-size: 12px; font-weight: 600; color: var(--tinta-2); margin-bottom: 1px; display: flex; gap: 8px; align-items: center; }
.fala .voz .tempo { font-weight: 500; color: var(--azul); cursor: pointer; }
.fala p { margin: 0; font-size: 15px; line-height: 1.5; }
.fala.voz-2 .voz { color: var(--vermelho); }
.lateral { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; }
.tiles-coluna { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.tiles-coluna .tile { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
.tiles-coluna .tile .icone { margin: 0; flex: none; width: 34px; height: 34px; }
.tiles-coluna .tile div { display: flex; flex-direction: column; }
.lista-simples { list-style: none; margin: 0; padding: 6px 0; }
.lista-simples li a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 22px; color: var(--tinta); font-size: 15px; }
.lista-simples li a:hover { background: var(--superficie-2); }
.vazio { padding: 18px 22px; color: var(--tinta-3); font-size: 14px; }
audio { width: 100%; height: 36px; }
.transcrevendo { padding: 40px 22px; text-align: center; }
.anel { width: 74px; height: 74px; margin: 0 auto 14px; }
.anel circle { fill: none; stroke-width: 6; }
.anel .trilho { stroke: rgba(118,118,128,.16); }
.anel .valor { stroke: var(--azul); stroke-linecap: round; transition: stroke-dashoffset .6s; transform: rotate(-90deg); transform-origin: 50% 50%; }

/* material ao vivo */
.material-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.ao-vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--vermelho); }
.ao-vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--vermelho); animation: pulso 1.2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(215,0,21,.5); } 70% { box-shadow: 0 0 0 9px rgba(215,0,21,0); } 100% { box-shadow: 0 0 0 0 rgba(215,0,21,0); } }
.layout-material { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }

.papel { background: #fff; color: #111; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 16px 48px rgba(0,0,0,.1); padding: 44px 46px 40px;
  margin-bottom: 22px; min-height: 420px; font-family: Calibri, "Carlito", -apple-system, sans-serif; letter-spacing: 0; position: relative; }
.papel-cab { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; border-bottom: 2px solid #111; padding-bottom: 14px; margin-bottom: 14px; }
.papel-marca { font-weight: 700; font-size: 12px; letter-spacing: .08em; color: #c8102e; }
.papel h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -0.01em; }
.papel .papel-sub { font-style: italic; color: #444; font-size: 14px; }
.papel-meta { text-align: right; font-size: 12px; color: #444; line-height: 1.5; }
.papel-linhas { font-size: 12.5px; color: #333; display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 10px; }
.papel table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.papel th, .papel td { border: 1px solid #222; padding: 6px 8px; text-align: left; vertical-align: top; }
.papel th { font-size: 12px; background: #fff; }
.papel .col-marca { width: 42px; text-align: center; }
.papel tr.grupo td { font-weight: 700; background: #f0f0f0; font-size: 12.5px; }
.papel tr.item { cursor: pointer; transition: background .3s; }
.papel tr.item:hover, .papel tr.item.foco { background: #eef5ff; }
.papel-rodape { margin-top: 14px; font-size: 12px; color: #333; line-height: 2; }
.papel-pag { position: absolute; top: 14px; right: 18px; font-size: 11px; color: #888; }
.novo { animation: chegar .7s cubic-bezier(.2,.8,.2,1); }
@keyframes chegar { 0% { opacity: 0; transform: translateY(6px); background: rgba(0,113,227,.18); } 60% { opacity: 1; transform: none; background: rgba(0,113,227,.12); } 100% { background: transparent; } }
.cursor-ia { display: inline-block; width: 8px; height: 16px; background: var(--azul); border-radius: 2px; vertical-align: -2px; animation: piscar 1s steps(2) infinite; margin-left: 4px; }
@keyframes piscar { 50% { opacity: 0; } }
.fontes-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--azul); margin-left: 6px; vertical-align: 2px; opacity: .55; }

.mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.praca { border: 1px solid #ddd; border-radius: 12px; overflow: hidden; }
.praca h3 { margin: 0; padding: 10px 14px; background: #111; color: #fff; font-size: 13px; letter-spacing: .04em; }
.insumo { padding: 9px 14px; border-top: 1px solid #eee; cursor: pointer; font-size: 13.5px; }
.insumo:hover, .insumo.foco { background: #eef5ff; }
.insumo b { display: block; font-weight: 600; }
.insumo small { color: #555; }
.manual h3 { font-size: 15px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .02em; }
.manual ul { margin: 0; padding-left: 20px; }
.manual li { margin: 5px 0; cursor: pointer; font-size: 14.5px; }
.manual li:hover, .manual li.foco { background: #eef5ff; }
.manual .destaque { color: #c8102e; font-weight: 700; }
.manual .objetivo { text-align: center; font-style: italic; color: #444; }
.lembrete { margin-top: 26px; background: #c8102e; color: #fff; border-radius: 10px; padding: 14px 18px; font-weight: 700; text-align: center; }
.roteiro-bloco h3 { font-size: 14px; margin: 22px 0 6px; }
.pergunta { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 6px; border-top: 1px solid #eee; cursor: pointer; }
.pergunta:hover, .pergunta.foco { background: #eef5ff; }
.pergunta .bola { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; }
.pergunta b { font-weight: 600; font-size: 14.5px; display: block; }
.pergunta small { color: #555; font-size: 13px; }
.cobertura { display: flex; gap: 22px; align-items: center; margin: 4px 0 8px; }
.cobertura .num { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.legenda { display: flex; gap: 14px; font-size: 13px; color: #444; flex-wrap: wrap; }
.legenda span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--c); }

/* inspetor */
.inspetor { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 90px); overflow: auto; padding-bottom: 20px; }
.cartao-i { background: var(--superficie); border-radius: 16px; box-shadow: var(--sombra); padding: 16px 18px; }
.cartao-i h4 { margin: 0 0 10px; font-size: 13px; color: var(--tinta-2); font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numeros div b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.numeros div span { font-size: 12px; color: var(--tinta-2); }
.numeros .alerta b { color: var(--vermelho); }
.etapas { list-style: none; padding: 0; margin: 0; }
.etapas li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--tinta-3); transition: color .3s; }
.etapas li .ic { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--linha-forte); display: grid; place-items: center; flex: none; transition: all .3s; }
.etapas li.feita { color: var(--tinta); }
.etapas li.feita .ic { background: var(--verde); border-color: var(--verde); color: #fff; }
.etapas li.atual { color: var(--tinta); font-weight: 500; }
.etapas li.atual .ic { border-color: var(--azul); border-top-color: transparent; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pensando { font-size: 13px; color: var(--tinta-2); line-height: 1.45; font-style: italic; max-height: 76px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.pend { border-radius: 12px; padding: 12px 14px; background: var(--vermelho-claro); margin-bottom: 8px; }
.pend b { font-size: 14px; display: block; margin-bottom: 2px; }
.pend p { margin: 0; font-size: 13px; color: var(--tinta-2); line-height: 1.4; }
.pend .pergunta-p { margin-top: 6px; font-size: 13px; color: var(--tinta); }
.pend.resolvida { background: var(--verde-claro); }
.pend textarea { margin-top: 8px; min-height: 54px; }
.uso-coleta { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; }
.uso-coleta small { display: block; color: var(--tinta-2); font-size: 12.5px; line-height: 1.35; }
.fonte-vazia { font-size: 13px; color: var(--tinta-3); }
.citacao { border-left: 3px solid var(--azul); padding: 4px 0 4px 12px; margin: 8px 0; font-size: 14px; line-height: 1.45; }
.citacao small { display: block; font-size: 12px; color: var(--tinta-3); margin-bottom: 2px; }
.citacao button { margin-top: 4px; }
.erro-caixa { background: var(--vermelho-claro); color: var(--vermelho); border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* listas de materiais */
.lista-materiais { background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.linha-mat { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--linha); color: var(--tinta); }
.linha-mat:first-child { border-top: 0; }
.linha-mat:hover { background: var(--superficie-2); }
.linha-mat .icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.linha-mat b { display: block; font-weight: 600; font-size: 16px; }
.linha-mat small { color: var(--tinta-2); font-size: 13px; }

.roteiro-pagina .bloco { background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); padding: 22px 24px; margin-bottom: 14px; }
.roteiro-pagina h3 { margin: 0 0 10px; font-size: 19px; }
.roteiro-pagina ol { margin: 0; padding-left: 22px; color: var(--tinta); }
.roteiro-pagina li { padding: 5px 0; font-size: 15.5px; }

.aviso { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--tinta); color: var(--fundo); padding: 10px 18px;
  border-radius: 980px; font-size: 14px; box-shadow: var(--sombra-alta); animation: fade .25s; max-width: calc(100vw - 32px); }
.esqueleto { background: linear-gradient(90deg, rgba(118,118,128,.08), rgba(118,118,128,.16), rgba(118,118,128,.08)); background-size: 200% 100%;
  animation: brilho 1.4s infinite; border-radius: 8px; height: 14px; margin: 10px 0; }
@keyframes brilho { to { background-position: -200% 0; } }

@media (max-width: 980px) {
  .duas-colunas, .layout-material { grid-template-columns: 1fr; }
  .lateral, .inspetor { position: static; max-height: none; }
  .transcricao { max-height: 60vh; }
}
@media (max-width: 640px) {
  .nav-in { padding: 0 16px; gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a[data-rota="roteiro"] { display: none; }
  .pagina { padding: 28px 16px 140px; }
  .papel { padding: 26px 18px; }
  .campos { grid-template-columns: 1fr; }
  .linha-mat { grid-template-columns: 36px 1fr; }
  .linha-mat > :nth-child(n+3) { grid-column: 2; }
  .barra-selecao { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  @keyframes subir { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== versão 2: login, painel, diagnóstico, gravador ===== */
.usuario-nav { display: flex; align-items: center; gap: 10px; position: relative; }
.usuario-nav button.eu { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 980px; font-size: 14px; color: var(--tinta); }
.usuario-nav button.eu:hover { background: rgba(118,118,128,.12); }
.mini-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.menu-eu { position: absolute; right: 0; top: 40px; min-width: 200px; background: var(--superficie); border-radius: 14px; box-shadow: var(--sombra-alta); padding: 6px; border: 1px solid var(--linha); animation: abrir .25s cubic-bezier(.2,.8,.2,1); }
.menu-eu div { padding: 8px 12px 6px; font-size: 13px; color: var(--tinta-2); }
.menu-eu button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--vermelho); }
.menu-eu button:hover { background: rgba(118,118,128,.12); }

.hero { padding: 8px 0 34px; }
.hero .titulo-grande { font-size: clamp(40px, 6.2vw, 72px); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linha); border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); margin: 34px 0 44px; }
.kpis div { background: var(--superficie); padding: 22px 24px; }
.kpis b { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpis span { display: block; margin-top: 8px; color: var(--tinta-2); font-size: 14px; }
.kpis .vermelho b { color: var(--vermelho); }
.secao-titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.secao-titulo h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 700; }
.secao-titulo p { margin: 0; color: var(--tinta-2); font-size: 15px; }
.atalhos { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-bottom: 56px; }
.atalho { position: relative; border: 0; text-align: left; cursor: pointer; border-radius: 26px; padding: 28px; min-height: 250px; display: flex; flex-direction: column;
  overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; box-shadow: var(--sombra); color: var(--tinta); background: var(--superficie); }
.atalho:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 8px 20px rgba(0,0,0,.08), 0 30px 60px rgba(0,0,0,.14); }
.atalho:disabled { opacity: .6; cursor: progress; }
.atalho small { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.atalho h3 { margin: 8px 0 8px; font-size: 27px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; max-width: 16ch; }
.atalho p { margin: 0; font-size: 15px; line-height: 1.45; max-width: 34ch; opacity: .78; }
.atalho .ir { margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.atalho.foto { color: #fff; background: #111 url('/img/operacao.jpg') center/cover; }
.atalho.foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.82)); }
.atalho.foto > * { position: relative; }
.atalho.foto small { color: #ff8a80; }
.atalho.escuro { background: #1d1d1f; color: #f5f5f7; }
.atalho.escuro small { color: #ff6961; }
.atalho.vermelho { background: linear-gradient(160deg, #ff375f, #d70015); color: #fff; }
.atalho.vermelho small { color: rgba(255,255,255,.85); }
.atalho .mic { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 12px; }
.chip-roxo { background: rgba(94,92,230,.12); color: #5e5ce6; }
.temas { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 12px; }
.temas span { font-size: 11px; color: var(--tinta-3); }
.temas span + span::before { content: "· "; }

.tile-grupo { font-size: 13px; font-weight: 600; color: var(--tinta-2); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.tile-grupo:first-child { margin-top: 0; }
.tiles-coluna .tile-grupo { margin: 10px 4px 2px; }

/* painel de gestão */
.grade-painel { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bloco-p { background: var(--superficie); border-radius: 22px; box-shadow: var(--sombra); padding: 22px 24px; }
.bloco-p h3 { margin: 0 0 14px; font-size: 17px; letter-spacing: -0.02em; }
.c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.barra-h { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; margin: 9px 0; font-size: 14px; }
.barra-h .trilho { height: 10px; border-radius: 6px; background: rgba(118,118,128,.12); overflow: hidden; }
.barra-h .trilho i { display: block; height: 100%; border-radius: 6px; background: var(--azul); transform-origin: left; animation: crescer .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes crescer { from { transform: scaleX(0); } }
.barra-h b { text-align: right; font-variant-numeric: tabular-nums; }
.pend-linha { display: block; padding: 12px 0; border-top: 1px solid var(--linha); color: var(--tinta); }
.pend-linha:first-of-type { border-top: 0; }
.pend-linha b { display: block; font-size: 15px; }
.pend-linha small { color: var(--tinta-2); font-size: 13px; }
.pend-linha em { font-style: normal; font-size: 12px; color: var(--azul); }
.anel-grande { display: flex; align-items: center; gap: 20px; }
.anel-grande svg { width: 120px; height: 120px; flex: none; }
.anel-grande circle { fill: none; stroke-width: 12; }

/* raciocínio da IA enquanto pensa */
.pensando-papel { min-height: 460px; display: flex; flex-direction: column; }
.pensando-papel .rotulo { display: flex; align-items: center; gap: 10px; font-family: var(--fonte); font-size: 14px; color: #6e6e73; margin: 26px 0 10px; letter-spacing: -0.01em; }
.pensando-papel .rotulo i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #0071e3; border-top-color: transparent; animation: girar .8s linear infinite; }
.pensando-texto { font-family: var(--fonte); font-size: 21px; line-height: 1.5; color: #1d1d1f; letter-spacing: -0.02em; font-weight: 400; min-height: 200px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%); mask-image: linear-gradient(to bottom, transparent 0, #000 35%); max-height: 260px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.pensando-texto span { animation: chegar-texto .8s ease both; }
@keyframes chegar-texto { from { opacity: 0; filter: blur(4px); } }
.lendo-coletas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.lendo-coletas span { font-family: var(--fonte); font-size: 13px; padding: 6px 12px; border-radius: 980px; background: #f2f2f4; color: #1d1d1f; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: #0071e3; margin-left: 2px; vertical-align: -2px; animation: piscar .9s steps(2) infinite; }
.progresso-topo { position: fixed; top: 52px; left: 0; right: 0; height: 3px; z-index: 39; background: transparent; }
.progresso-topo i { display: block; height: 100%; background: linear-gradient(90deg, #0071e3, #5e5ce6, #ff375f); transition: width .8s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(0,113,227,.6); }

/* diagnóstico */
.classe { display: inline-block; font-family: var(--fonte); font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; color: #fff; background: #8e8e93; text-transform: uppercase; }
.classe.fato { background: #1d1d1f; } .classe.percepcao { background: #8e8e93; } .classe.problema { background: #d70015; } .classe.orientacao { background: #0071e3; }
.classe.decisao { background: #248a3d; } .classe.hipotese { background: #c93400; } .classe.contradicao { background: #8944ab; } .classe.positivo { background: #248a3d; } .classe.confirmar { background: #0071e3; }
.org h3 { font-size: 14px; margin: 24px 0 6px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid #ddd; padding-bottom: 6px; }
.org .achado { padding: 8px 6px; font-size: 14.5px; line-height: 1.5; cursor: pointer; border-radius: 6px; }
.org .achado:hover, .org .achado.foco { background: #eef5ff; }
.org .achado small { color: #777; font-style: italic; }
.org .sintese { background: #f5f5f7; border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.5; margin: 6px 0 4px; }
.legenda-classes { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.problema-card { border: 1px solid #e3e3e3; border-radius: 14px; padding: 16px 18px; margin: 12px 0; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.problema-card:hover, .problema-card.foco { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.problema-card h4 { margin: 0 0 10px; font-size: 16px; letter-spacing: -0.01em; }
.problema-card dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; line-height: 1.45; }
.problema-card dt { color: #6e6e73; font-weight: 600; }
.problema-card dd { margin: 0; }
.problema-card dd.obs { color: #0071e3; font-weight: 500; }
.problema-card dd.hip { color: #c93400; }

/* gravador */
.abas { display: inline-flex; background: rgba(118,118,128,.12); border-radius: 10px; padding: 2px; margin-bottom: 18px; }
.abas button { border: 0; background: none; padding: 7px 16px; font-size: 14px; border-radius: 8px; cursor: pointer; color: var(--tinta); }
.abas button.ativo { background: var(--superficie); box-shadow: 0 3px 8px rgba(0,0,0,.12); font-weight: 500; }
.gravador { text-align: center; padding: 18px 0 8px; }
.gravador canvas { width: 100%; height: 90px; display: block; margin: 0 auto 10px; }
.tempo-grav { font-size: 52px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0 18px; }
.botao-grav { width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--linha-forte); background: var(--superficie); cursor: pointer; display: inline-grid; place-items: center; transition: transform .15s; }
.botao-grav:active { transform: scale(.95); }
.botao-grav i { width: 56px; height: 56px; border-radius: 50%; background: #ff3b30; transition: all .3s cubic-bezier(.2,.8,.2,1); }
.botao-grav.gravando i { width: 30px; height: 30px; border-radius: 8px; }
.gravador .dica { color: var(--tinta-2); font-size: 14px; margin-top: 14px; }
.gravador audio { margin-top: 16px; }

@media (max-width: 980px) {
  .atalhos { grid-template-columns: 1fr; }
  .atalho { min-height: 200px; }
  .grade-painel > * { grid-column: span 12; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .problema-card dl { grid-template-columns: 1fr; }
  .barra-h { grid-template-columns: 110px 1fr 32px; }
  .usuario-nav .nome-eu { display: none; }
}

/* barra de abas no celular */
.nav-links svg { display: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .nav-links { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 0; justify-content: space-around; align-items: flex-start;
    height: calc(56px + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom); background: var(--vidro);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--linha); }
  .nav-links a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--tinta-3); letter-spacing: 0; }
  .nav-links a.ativo { color: var(--azul); }
  .nav-links svg { display: block; }
  .nav-links a[data-rota="roteiro"] { display: flex; }
  .nav-in { justify-content: space-between; }
  .pagina { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .barra-selecao { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .secao-titulo { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero .titulo-grande { font-size: 40px; }
  .kpis b { font-size: 32px; }
  .material-cab .acoes { width: 100%; }
}
@media (max-width: 640px) {
  /* backdrop-filter no cabeçalho prenderia a barra de abas dentro dele */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--superficie-2); }
}
