/* Portal RPM. Tokens de identidade/DESIGN.md (v2): creme, Gabarito no título e no número, Figtree no resto,
   laranja só em ação, verde confirma, vermelho avisa. Mobile primeiro (390 px); trilho lateral a partir de 960 px. */

@font-face { font-family: 'Gabarito'; src: url(/fonts/gabarito-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --creme: #F8F6F1; --areia: #F2EDE3; --branco: #FFFFFF; --tinta: #1A1814; --superficie-dark: #24211C;
  --ink: #1A1814; --ink-2: #3A352D; --ink-mute: #6B6459; --ink-faint: #9A9284;
  --on-dark: #F4F1EA; --on-dark-mute: #B8B0A2;
  --laranja: #C25E1E; --laranja-hover: #AD531A; --laranja-txt: #A44E15; --laranja-fundo: #FBEEE4; --laranja-claro: #EF8F4A;
  --dourado: #C9A84C; --dourado-fundo: #EFE3C2;
  --verde: #1F7A4D; --verde-fundo: #E8F2EC; --verde-claro: #3FA06E;
  --alerta: #B3321F; --alerta-fundo: #FBE9E5;
  --fio: #E3DDD1;
  --display: 'Gabarito', 'Trebuchet MS', sans-serif;
  --sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --r-suave: 14px; --r-cartao: 20px; --r-grande: 28px;
  --sombra: 0 1px 2px rgb(26 24 20 / .04), 0 10px 26px -14px rgb(26 24 20 / .16);
  --sombra-alta: 0 2px 4px rgb(26 24 20 / .05), 0 18px 44px -18px rgb(26 24 20 / .22);
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--creme); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
#pagina:focus, #pagina:focus-visible { outline: none; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ícones: traço fino, um conjunto só ---------- */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.p { width: 18px; height: 18px; }
.ic.m { width: 20px; height: 20px; }
.ic.g { width: 28px; height: 28px; }

/* ---------- casca ---------- */
.app { min-height: 100dvh; }
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 58px; padding: 0 8px 0 20px; background: rgb(248 246 241 / .96); border-bottom: 1px solid var(--fio); }
.topo .logo { height: 28px; width: auto; }
.topo-acoes { display: flex; align-items: center; gap: 2px; }
.link-topo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: var(--r-suave); }
.link-topo:hover { background: var(--areia); }

.pagina { width: 100%; min-width: 0; padding: 22px 20px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.pagina > * + * { margin-top: 22px; }

.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--branco); border-top: 1px solid var(--fio); }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav a[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--laranja); }
.nav .contador, .trilho .contador { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--laranja-txt); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.nav .contador { position: absolute; top: 7px; left: calc(50% + 6px); }

.trilho { display: none; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 272px minmax(0, 1fr); }
  .topo { display: none; }
  .nav { display: none; }
  .trilho { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 28px 18px 22px; border-right: 1px solid var(--fio); background: var(--creme); }
  .trilho .logo { height: 40px; width: auto; align-self: flex-start; margin: 0 8px 28px; }
  .trilho .quem { margin: 0 8px 22px; }
  .trilho .quem b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
  .trilho .quem span { font-size: 14.5px; color: var(--ink-mute); }
  .trilho nav { display: flex; flex-direction: column; gap: 2px; }
  .trilho nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--r-suave); font-size: 16px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .trilho nav a:hover { background: var(--areia); }
  .trilho nav a[aria-current="page"] { background: var(--branco); color: var(--ink); font-weight: 700; box-shadow: var(--sombra); }
  .trilho nav .contador { margin-left: auto; }
  .trilho .rodape { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
  .pagina { padding: 44px 56px 72px; max-width: 1120px; }
}

/* tela sem trilho (esqueleto, lista da equipe): uma coluna só, com a barra de cima também no computador */
.app.solto { display: block; }
.app.solto .topo { display: flex; }
@media (min-width: 960px) { .app.solto .pagina { padding-top: 32px; } }

/* ---------- tipografia de tela ---------- */
.sobrancelha { display: flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--laranja-txt); }
.sobrancelha::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--laranja); flex: none; }
h1.titulo { font-size: clamp(28px, 7vw, 38px); line-height: 1.06; letter-spacing: -.026em; }
.sub { color: var(--ink-mute); font-size: 16px; }
.cab { display: flex; flex-direction: column; gap: 6px; }
.cab .sobrancelha { margin-bottom: 4px; }
h2.secao { font-size: 22px; line-height: 1.15; letter-spacing: -.018em; }
.secao-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.secao-cab .sub { font-size: 14.5px; }
.mini { font-size: 14.5px; color: var(--ink-mute); line-height: 1.45; }
.num { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- cartão (nunca dentro de outro cartão) ---------- */
.cartao { background: var(--branco); border-radius: var(--r-cartao); box-shadow: var(--sombra); padding: 20px; }
.cartao.escuro { background: var(--tinta); color: var(--on-dark); box-shadow: none; border-radius: var(--r-grande); padding: 24px 22px; }
.cartao.sem-pad { padding: 0; overflow: hidden; }
.divisor > * + * { border-top: 1px solid var(--fio); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-suave); background: var(--laranja); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .005em; text-decoration: none; text-align: center; border: 0; transition: background .15s, transform .08s; }
.btn:hover { background: var(--laranja-hover); }
.btn:active { transform: scale(.985); }
.btn.cheio { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--fio); color: var(--ink-mute); cursor: not-allowed; transform: none; }
.btn.sec { background: transparent; color: var(--laranja-txt); box-shadow: inset 0 0 0 1.5px var(--laranja); }
.btn.sec:hover { background: var(--laranja-fundo); }
.btn.sec[disabled] { box-shadow: inset 0 0 0 1.5px var(--fio); background: transparent; color: var(--ink-mute); }
.btn.neutro { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--fio); }
.btn.neutro:hover { background: var(--areia); }
.btn.peq { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.escuro { background: var(--tinta); color: var(--on-dark); }
.btn.escuro:hover { background: var(--superficie-dark); }
.btn-icone { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.btn-icone:hover { background: rgb(26 24 20 / .07); }
.btn-texto { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 700; color: var(--laranja-txt); text-decoration: none; }
.btn-texto:hover { text-decoration: underline; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.acoes > .btn { flex: 1 1 0; }

/* ---------- selos de situação (só aqui há pílula) ---------- */
.selo { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; background: var(--areia); color: var(--ink-2); }
.selo .ic { width: 15px; height: 15px; stroke-width: 2; }
.selo.laranja { background: var(--laranja-fundo); color: var(--laranja-txt); }
.selo.verde { background: var(--verde-fundo); color: var(--verde); }
.selo.alerta { background: var(--alerta-fundo); color: var(--alerta); }
.selo.dourado { background: var(--dourado-fundo); color: var(--ink-2); }

/* ---------- linhas de lista ---------- */
.linha { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 20px; text-align: left; text-decoration: none; color: inherit; background: none; border: 0; }
a.linha:hover, button.linha:hover { background: var(--creme); }
.linha .corpo { flex: 1; min-width: 0; }
.linha .t { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.linha .d { font-size: 14.5px; color: var(--ink-mute); line-height: 1.4; }
.linha .ic.seta { color: var(--ink-faint); }
.corta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corta2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { width: 44px; aspect-ratio: 9 / 16; flex: none; border-radius: 9px; background: var(--areia); object-fit: cover; }
.thumb.g { width: 56px; border-radius: 10px; }

/* ---------- início: foco ---------- */
.foco { display: flex; flex-direction: column; gap: 18px; }
.foco .grande { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foco .grande .num { font-size: clamp(56px, 16vw, 84px); line-height: .9; color: var(--laranja-txt); }
.foco .grande .t { font-family: var(--display); font-weight: 700; font-size: clamp(21px, 5.6vw, 26px); line-height: 1.12; letter-spacing: -.02em; }
.foco .ajuda { color: var(--ink-mute); }
.em-dia .t { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 8vw, 40px); line-height: 1.05; letter-spacing: -.026em; }
.em-dia .ajuda { color: var(--on-dark-mute); margin-top: 8px; }
.em-dia .hoje { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--superficie-dark); }
.em-dia .hoje .l { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--dourado); }
.em-dia .hoje .v { font-size: 17px; font-weight: 600; }
.em-dia .verde-claro { color: var(--verde-claro); }
.em-dia .ic.g { width: 30px; height: 30px; margin-bottom: 14px; }

.passos li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 20px; }
.passo-marca { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.7px var(--ink-faint); color: #fff; margin-top: 1px; }
.passo-marca .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.passo.feito .passo-marca { background: var(--verde); box-shadow: none; }
.passo.feito .t { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--ink-faint); }
.passos .t { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.passos .d { font-size: 14.5px; color: var(--ink-mute); margin-top: 2px; line-height: 1.45; }
button.passo-hit { flex: none; width: 44px; height: 44px; margin: -8px -8px -8px -8px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
button.passo-hit:hover .passo-marca { box-shadow: inset 0 0 0 1.7px var(--verde); }

.mes .barra-mes { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--areia); margin: 4px 0 16px; }
.mes .barra-mes i { display: block; height: 100%; }
.mes .tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mes .tres b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mes .tres span { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-mute); margin-top: 5px; }
.mes .tres span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.c-ar { --c: var(--verde); } .c-prog { --c: var(--ink-2); } .c-prod { --c: #D8CDB4; }

.resultados .tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.resultados .tres b { display: block; font-family: var(--display); font-size: clamp(24px, 6.4vw, 32px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.resultados .tres span { display: block; font-size: 14px; color: var(--ink-mute); margin-top: 5px; }
.resultados .tres small { display: block; font-size: 14px; font-weight: 700; color: var(--verde); margin-top: 2px; }
.resultados .nota { font-size: 14px; color: var(--ink-mute); margin: -8px 0 18px; }
.top5 li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.top5 li + li { border-top: 1px solid var(--fio); }
.top5 .pos { width: 22px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-mute); text-align: center; }
.top5 .v { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vazio-res { display: flex; gap: 14px; align-items: flex-start; }
.vazio-res .ic { color: var(--ink-mute); margin-top: 2px; }

.grid-inicio { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1100px) {
  .grid-inicio { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px 24px; align-items: start; }
  .grid-inicio > * + * { margin-top: 0; }
  .grid-inicio .col { display: flex; flex-direction: column; gap: 22px; }
  .grid-inicio .largo { grid-column: 1 / -1; }
}
.col { display: flex; flex-direction: column; gap: 22px; }

/* ---------- aprovar ---------- */
.progresso { display: flex; flex-direction: column; gap: 12px; }
.progresso .linha-p { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progresso .grande { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.progresso .grande small { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-mute); margin-left: 4px; }
.trilha { height: 10px; border-radius: 5px; background: var(--areia); overflow: hidden; }
.trilha i { display: block; height: 100%; border-radius: 5px; background: var(--laranja); transition: width .3s ease; }
.trilha.verde i { background: var(--verde); }
.segmentos { display: flex; flex-wrap: wrap; gap: 8px; }
.segmentos button { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-suave); font-size: 15px; font-weight: 600; color: var(--ink-2); background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--fio); }
.segmentos button[aria-pressed="true"] { background: var(--tinta); color: var(--on-dark); box-shadow: none; }
.segmentos button span { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 4px; }
.confirma { background: var(--laranja-fundo); border-radius: var(--r-cartao); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.confirma p { font-size: 16.5px; line-height: 1.4; }
.confirma .acoes .btn { min-height: 48px; }

.grade-reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.tile { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; }
.tile .capa { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-suave); overflow: hidden; background: var(--areia); }
.tile .capa img { width: 100%; height: 100%; object-fit: cover; }
.tile .marca { position: absolute; right: 7px; bottom: 7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tinta); color: #fff; box-shadow: 0 0 0 2px rgb(248 246 241 / .9); }
.tile .marca .ic { width: 16px; height: 16px; stroke-width: 2.3; }
.tile .marca.verde { background: var(--verde); }
.tile .marca.alerta { background: var(--alerta); }
.tile .marca.escura { background: var(--ink-2); }
.tile .info { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.2; }
.tile .info b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.tile .info span { font-size: 13.5px; font-weight: 600; color: var(--ink-mute); }
.tile.pend .info span { color: var(--laranja-txt); }
.tile:focus-visible { outline-offset: 4px; }
@media (min-width: 640px) { .grade-reels { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; } }
@media (min-width: 960px) { .grade-reels { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grade-reels { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.lotes-troca { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.lotes-troca button { text-align: left; min-height: 56px; padding: 8px 16px; border-radius: var(--r-suave); background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--fio); }
.lotes-troca button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.lotes-troca b { display: block; font-size: 15.5px; line-height: 1.25; }
.lotes-troca span { font-size: 13.5px; color: var(--ink-mute); }

.aviso-equipe { background: var(--dourado-fundo); border-radius: var(--r-cartao); padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.aviso-equipe p { font-size: 15.5px; line-height: 1.4; }

/* ---------- visor de vídeo (tela cheia no celular, caixa no computador) ---------- */
.visor { position: fixed; inset: 0; z-index: 60; background: var(--tinta); display: flex; animation: aparece .16s ease-out; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.visor-caixa { display: flex; flex-direction: column; width: 100%; height: 100%; }
.visor-palco { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--tinta); padding: 60px 14px 8px; touch-action: pan-y; }
.visor-palco video { height: 100%; width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-suave); background: #000; object-fit: contain; }
.visor-topo { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--on-dark); z-index: 2; }
.visor-topo .pos { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.visor-topo .btn-icone:hover { background: rgb(244 241 234 / .12); }
.seta-visor { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-dark); background: rgb(26 24 20 / .55); z-index: 2; }
.seta-visor:hover { background: rgb(26 24 20 / .8); }
.seta-visor[disabled] { opacity: .25; cursor: default; }
.seta-visor.e { left: 6px; } .seta-visor.d { right: 6px; }
.visor-folha { flex: none; max-height: 46dvh; overflow-y: auto; background: var(--creme); border-radius: var(--r-grande) var(--r-grande) 0 0; padding: 20px 20px 0; overscroll-behavior: contain; }
.visor-folha .bloco + .bloco { margin-top: 16px; }
.visor-folha .rot { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.visor-folha .grande { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.018em; }
.visor-folha .legenda { font-size: 16px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.visor-folha .legenda.fechada { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.palavra { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-suave); background: var(--areia); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.visor-acoes { position: sticky; bottom: 0; margin: 16px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--creme); border-top: 1px solid var(--fio); display: flex; flex-direction: column; gap: 10px; }
.visor-acoes .par { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.estado-decisao { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.estado-decisao p { font-size: 16px; line-height: 1.4; }
.ajuste-box { display: flex; flex-direction: column; gap: 10px; }
.historico li { font-size: 14.5px; color: var(--ink-mute); padding: 5px 0; line-height: 1.4; }
.historico li b { color: var(--ink-2); font-weight: 700; }
.historico li q { quotes: none; display: block; color: var(--ink-2); margin-top: 2px; }
.equipe-box { margin-top: 18px; padding: 16px; border-radius: var(--r-cartao); background: var(--dourado-fundo); display: flex; flex-direction: column; gap: 12px; }
.equipe-box .rot { color: var(--ink-2); }
.equipe-box .dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 900px) {
  .visor { align-items: center; justify-content: center; background: rgb(26 24 20 / .78); }
  .visor-caixa { flex-direction: row; width: min(1000px, calc(100vw - 64px)); height: min(860px, calc(100dvh - 48px)); border-radius: var(--r-grande); overflow: hidden; box-shadow: var(--sombra-alta); }
  .visor-palco { flex: 0 0 auto; width: min(44%, 430px); padding: 64px 22px 22px; }
  .visor-folha { flex: 1 1 0; max-height: none; border-radius: 0; padding: 30px 30px 0; display: flex; flex-direction: column; }
  .visor-folha .grande { font-size: 26px; }
  .visor-acoes { margin: auto -30px 0; padding: 14px 30px 20px; }
  .visor-corpo { flex: 1 1 auto; min-height: 0; }
}

/* ---------- enviar ---------- */
.regras { position: sticky; top: 58px; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 -20px; padding: 10px 20px; background: var(--areia); border-bottom: 1px solid var(--fio); }
.regras li { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink-2); }
.regras .ic { width: 22px; height: 22px; color: var(--laranja-txt); }
@media (min-width: 960px) { .regras { top: 0; margin: 0 -56px; padding: 12px 56px; } .regras li { flex-direction: row; justify-content: center; gap: 10px; font-size: 14.5px; } }
.grupo-take > h2 { font-size: 21px; margin-bottom: 10px; letter-spacing: -.018em; }
.take { display: flex; flex-direction: column; gap: 14px; }
.take + .take { margin-top: 12px; }
.take .cab-take { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.take h3 { font-family: var(--sans); font-size: 18px; line-height: 1.25; letter-spacing: -.005em; }
.take .como { font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.take .meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-mute); }
.take .meta span { display: inline-flex; align-items: center; gap: 6px; }
.pontos { display: flex; gap: 5px; flex-wrap: wrap; }
.pontos i { width: 10px; height: 10px; border-radius: 50%; background: var(--fio); }
.pontos i.on { background: var(--verde); }
.falta { font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--laranja-txt); font-variant-numeric: tabular-nums; }
.falta.ok { color: var(--verde); }
.arquivos { display: flex; flex-direction: column; border-top: 1px solid var(--fio); }
.arquivo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; min-height: 56px; }
.arquivo + .arquivo { border-top: 1px solid var(--fio); }
.arquivo > .ic { color: var(--ink-mute); }
.arquivo .corpo { flex: 1; min-width: 0; }
.arquivo .n { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.arquivo .d { font-size: 13.5px; color: var(--ink-mute); }
.arquivo .motivo { flex-basis: 100%; padding-left: 32px; font-size: 15px; color: var(--alerta); line-height: 1.4; font-weight: 600; }
.arquivo .linha-extra { flex-basis: 100%; padding-left: 32px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.barra-env { height: 6px; border-radius: 3px; background: var(--areia); overflow: hidden; margin-top: 6px; }
.barra-env i { display: block; height: 100%; width: 0; background: var(--laranja); transition: width .15s linear; }
.refazer-topo { display: flex; flex-direction: column; gap: 6px; }
.refazer-topo .item { background: var(--alerta-fundo); border-radius: var(--r-cartao); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.refazer-topo .t { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.refazer-topo .motivo { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.aviso-env { font-size: 14.5px; color: var(--ink-2); background: var(--dourado-fundo); border-radius: var(--r-suave); padding: 10px 14px; margin-top: 6px; line-height: 1.4; }
input[type="file"].escondido { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- calendário ---------- */
.cal-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cal-cab .mes-nome { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.018em; text-transform: capitalize; white-space: nowrap; min-width: 8.5em; text-align: center; }
.cal-nav { display: flex; align-items: center; gap: 2px; }
.alternar { display: inline-flex; background: var(--areia); border-radius: var(--r-suave); padding: 3px; }
.alternar button { min-height: 44px; padding: 0 16px; border-radius: 11px; font-size: 15px; font-weight: 600; color: var(--ink-mute); }
.alternar button[aria-pressed="true"] { background: var(--branco); color: var(--ink); font-weight: 700; box-shadow: var(--sombra); }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grade .sem { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); padding: 4px 0 6px; }
.cal-dia { position: relative; min-height: 64px; border-radius: 12px; background: var(--branco); padding: 5px 4px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cal-dia.fora { background: transparent; color: var(--ink-faint); }
.cal-dia.hoje b { background: var(--tinta); color: var(--on-dark); }
.cal-dia b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-dia .mini-capas { display: flex; gap: 2px; justify-content: center; }
.cal-dia .mini-capas img { width: 15px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; }
.cal-dia .mais { font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
button.cal-dia { cursor: pointer; }
button.cal-dia:hover { box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
button.cal-dia[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
@media (min-width: 640px) { .cal-dia { min-height: 92px; } .cal-dia .mini-capas img { width: 20px; } }
.dia-grupo > h3 { font-family: var(--sans); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin: 0 0 8px 4px; }
.dia-grupo.hoje > h3 { color: var(--laranja-txt); }
.dia-grupo + .dia-grupo { margin-top: 22px; }
.lista-cal .linha .hora { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 52px; }

/* ---------- pedidos ---------- */
.pedido .topo-p { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tipo-rotulo { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.conversa { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.msg .txt { display: block; white-space: pre-wrap; }
.msg .quem { display: block; font-size: 13px; font-weight: 700; color: var(--ink-mute); margin-bottom: 2px; }
.msg.deles { align-self: flex-start; background: var(--branco); border-bottom-left-radius: 6px; box-shadow: var(--sombra); }
.msg.meu { align-self: flex-end; background: var(--areia); border-bottom-right-radius: 6px; }
.msg .anexo-msg { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--laranja-txt); text-decoration: none; }
.msg .quando { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
.compor { display: flex; gap: 8px; align-items: flex-end; }
@media (min-width: 960px) { .conversa, .compor { max-width: 720px; } }
.compor textarea { flex: 1; min-height: 52px; max-height: 160px; }
.nav-voltar { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; padding: 0 10px 0 4px; font-size: 15.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-radius: var(--r-suave); }
.nav-voltar:hover { background: var(--areia); }

/* ---------- formulário ---------- */
.campo { display: flex; flex-direction: column; gap: 7px; }
.campo > label, .campo > .rot-campo { font-size: 15px; font-weight: 700; color: var(--ink-2); }
input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="url"], input[type="number"], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-suave); border: 0; background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--fio); font-size: 16px; line-height: 1.4; appearance: none; -webkit-appearance: none; }
textarea { resize: vertical; min-height: 110px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6459' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
::placeholder { color: var(--ink-faint); }
.erro-texto { font-size: 15px; font-weight: 600; color: var(--alerta); line-height: 1.4; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes button { min-height: 44px; padding: 0 16px; border-radius: var(--r-suave); font-size: 15.5px; font-weight: 600; background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--fio); color: var(--ink-2); }
.opcoes button[aria-pressed="true"] { background: var(--tinta); color: var(--on-dark); box-shadow: none; }
.folha-novo { position: fixed; inset: 0; z-index: 55; background: rgb(26 24 20 / .5); display: flex; align-items: flex-end; justify-content: center; animation: aparece .16s ease-out; }
.folha-novo .caixa { width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto; background: var(--creme); border-radius: var(--r-grande) var(--r-grande) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.folha-novo .caixa > header { display: flex; align-items: center; justify-content: space-between; }
.folha-novo h2 { font-size: 24px; letter-spacing: -.02em; }
@media (min-width: 640px) { .folha-novo { align-items: center; } .folha-novo .caixa { border-radius: var(--r-grande); } }
.anexo-nome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-suave); background: var(--areia); font-size: 15px; font-weight: 600; }
.anexo-nome .corpo { flex: 1; min-width: 0; }

/* ---------- login ---------- */
.entrada { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 20px; }
.entrada .caixa { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 26px; }
.entrada .logo { height: 46px; width: auto; align-self: flex-start; }
.entrada h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.05; letter-spacing: -.028em; }
.entrada form { display: flex; flex-direction: column; gap: 16px; }
.entrada .rodape-l { font-size: 15px; color: var(--ink-mute); }
.entrada .rodape-l a { color: var(--ink-2); font-weight: 700; }
.nomes-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- equipe: lista de clientes ---------- */
.cartao-cliente { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.cartao-cliente:hover { box-shadow: var(--sombra-alta); }
.cartao-cliente .nome { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.cartao-cliente .pend { display: flex; flex-wrap: wrap; gap: 8px; }
.cartao-cliente .numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--fio); }
.cartao-cliente .numeros b { display: block; font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cartao-cliente .numeros span { font-size: 13.5px; color: var(--ink-mute); }
.equipe-painel { background: var(--dourado-fundo); border-radius: var(--r-cartao); padding: 18px 20px; }
.equipe-painel h2 { font-size: 18px; font-family: var(--sans); font-weight: 700; margin-bottom: 8px; }
.equipe-painel li + li { border-top: 1px solid rgb(26 24 20 / .1); }
.equipe-painel .linha { padding: 12px 0; min-height: 52px; }
.equipe-painel a.linha:hover { background: transparent; text-decoration: underline; }

/* ---------- estados: carregando, vazio, erro, sem conexão ---------- */
.carregando-inicial { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-mute); font-weight: 600; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--fio); border-top-color: var(--ink-2); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.esqueleto { display: flex; flex-direction: column; gap: 14px; }
.esqueleto i { display: block; border-radius: var(--r-cartao); background: var(--areia); animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .55; } }
.vazio { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.vazio .ic { color: var(--ink-mute); width: 30px; height: 30px; }
.vazio .t { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.018em; line-height: 1.15; }
.vazio p { color: var(--ink-mute); max-width: 36ch; }
.erro-tela { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.erro-tela .t { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.faixa-offline { position: sticky; top: 0; z-index: 40; background: var(--tinta); color: var(--on-dark); padding: 10px 20px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.faixa-offline .ic { color: var(--laranja-claro); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); background: var(--tinta); color: var(--on-dark); border-radius: var(--r-suave); padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; box-shadow: var(--sombra-alta); animation: aparece .16s ease-out; }
.toast .txt { flex: 1; line-height: 1.35; }
.toast button { min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 700; color: var(--laranja-claro); }
.toast button:hover { background: rgb(244 241 234 / .1); }
.toast.erro { background: var(--alerta); color: #fff; }
.toast.erro button { color: #fff; }
@media (min-width: 960px) { .toast { bottom: 28px; } }
/* sobre o visor o aviso vai no alto, pra não tapar Aprovar e Pedir ajuste */
.toast.sobre-visor { top: calc(62px + env(safe-area-inset-top)); bottom: auto; z-index: 95; background: #2E2A24; box-shadow: 0 0 0 1px rgb(244 241 234 / .22), var(--sombra-alta); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (min-width: 640px) { .progresso .btn.cheio { width: auto; align-self: flex-start; } }

/* celular estreito: botões de confirmar empilham, filtros em duas colunas */
@media (max-width: 559px) {
  .segmentos { display: grid; grid-template-columns: 1fr 1fr; }
  .segmentos button { justify-content: center; text-align: center; }
  .confirma .acoes .btn { flex: 1 1 100%; }
}

/* texto na tela: mantém as linhas como no vídeo */
.visor .bloco .grande { white-space: pre-line; font-size: 17px; line-height: 1.42; }
