:root {
  --laranja: #F99F29;
  --laranja-forte: #EC8A0C;
  --laranja-escuro: #B35F00;
  --laranja-claro: #FFE7C2;
  --laranja-suave: #FFF3E0;
  --fundo: #FFF8EE;
  --cartao: #FFFFFF;
  --tinta: #1F1608;
  --tinta-2: #5E4B32;
  --tinta-3: #8E7A5F;
  --linha: #F0E1CA;
  --linha-forte: #E4CFAF;
  --verde: #23955A;
  --verde-claro: #E2F5EA;
  --vermelho: #D43F2A;
  --vermelho-claro: #FDE8E4;
  --amarelo: #C98A00;
  --raio: 18px;
  --raio-p: 12px;
  --sombra: 0 1px 2px rgba(80, 50, 10, .06), 0 6px 20px rgba(80, 50, 10, .07);
  --sombra-forte: 0 12px 40px rgba(60, 35, 0, .22);
  --fonte: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --barra-inferior: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font-family: var(--fonte); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--laranja-escuro); }
[hidden] { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Carregando ---------- */
.tela-carregando { min-height: 100dvh; display: grid; place-items: center; background: var(--laranja); }
.tela-carregando img { width: 110px; animation: pulsar 1.4s ease-in-out infinite; }
@keyframes pulsar { 50% { transform: scale(1.06); opacity: .85; } }

/* ---------- Login ---------- */
.login {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px 20px;
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 500px at -20% 110%, rgba(179,95,0,.35), transparent 60%),
    var(--laranja);
}
.login-cartao {
  width: 100%; max-width: 400px; background: var(--cartao); border-radius: 26px; padding: 30px 26px 26px;
  box-shadow: var(--sombra-forte);
}
.login-cartao .logo { display: block; width: 100%; max-width: 300px; margin: 0 auto 6px; }
.login-cartao h1 { font-size: 18px; text-align: center; margin: 14px 0 22px; font-weight: 600; color: var(--tinta-2); }
.login .credito { color: rgba(31, 22, 8, .78); }
.login .credito a { color: var(--tinta); }

.credito { font-size: 12.5px; text-align: center; margin-top: 22px; }
.credito a { text-decoration: none; font-weight: 600; }
.credito .coracao { color: var(--vermelho); }

/* ---------- Formulários ---------- */
.campo { display: block; margin-bottom: 16px; }
.campo > span, .rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--tinta-2); margin-bottom: 6px; }
.campo small { display: block; color: var(--tinta-3); font-size: 12.5px; margin-top: 5px; }
.entrada {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--raio-p);
  border: 1.5px solid var(--linha-forte); background: #fff; font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.entrada { min-height: 96px; resize: vertical; }
.entrada:focus { border-color: var(--laranja); box-shadow: 0 0 0 4px rgba(249, 159, 41, .22); }
select.entrada { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E4B32' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.com-olho { position: relative; }
.com-olho .entrada { padding-right: 52px; }
.com-olho button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; background: none; color: var(--tinta-3); border-radius: 10px; display: grid; place-items: center; }
.erro-form { background: var(--vermelho-claro); color: #9B2414; border-radius: var(--raio-p); padding: 11px 14px; font-size: 14px; margin-bottom: 14px; font-weight: 500; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  background: var(--laranja); color: var(--tinta); font-weight: 600; font-size: 15px;
  box-shadow: 0 2px 0 var(--laranja-forte); transition: transform .08s, filter .15s; text-decoration: none; white-space: nowrap;
}
.botao:hover { filter: brightness(1.04); }
.botao:active { transform: translateY(1px); box-shadow: none; }
.botao:disabled { opacity: .55; pointer-events: none; }
.botao.cheio { width: 100%; min-height: 54px; font-size: 16px; }
.botao.sec { background: var(--laranja-suave); color: var(--laranja-escuro); box-shadow: none; }
.botao.claro { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linha-forte); }
.botao.verde { background: var(--verde); color: #fff; box-shadow: 0 2px 0 #187142; }
.botao.perigo { background: var(--vermelho-claro); color: #A82B19; box-shadow: none; }
.botao.peq { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.botao-icone { width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: inherit; }
.botao-icone:hover { background: rgba(0,0,0,.05); }

.chave { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; user-select: none; }
.chave input { position: absolute; opacity: 0; pointer-events: none; }
.chave .trilho { width: 46px; height: 28px; border-radius: 99px; background: var(--linha-forte); position: relative; flex: none; transition: background .15s; }
.chave .trilho::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.chave input:checked + .trilho { background: var(--laranja); }
.chave input:checked + .trilho::after { transform: translateX(18px); }
.chave input:focus-visible + .trilho { box-shadow: 0 0 0 4px rgba(249, 159, 41, .3); }
.chave .txt b { display: block; font-weight: 600; font-size: 14.5px; }
.chave .txt small { color: var(--tinta-3); font-size: 12.5px; }

.segmentos { display: flex; background: var(--laranja-suave); padding: 4px; border-radius: 14px; gap: 4px; }
.segmentos button { flex: 1; min-height: 42px; border: 0; background: transparent; border-radius: 11px; font-weight: 600; color: var(--tinta-2); font-size: 14px; padding: 0 10px; }
.segmentos button.ativo { background: #fff; color: var(--tinta); box-shadow: 0 1px 4px rgba(120, 70, 0, .15); }

.dias { display: flex; gap: 6px; flex-wrap: wrap; }
.dias button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linha-forte); background: #fff; font-weight: 600; font-size: 13px; }
.dias button.ativo { background: var(--laranja); border-color: var(--laranja); }

.marcas { display: flex; flex-wrap: wrap; gap: 8px; }
.marca-opcao { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--linha-forte); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.marca-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.marca-opcao:has(input:checked) { background: var(--laranja-claro); border-color: var(--laranja); }
.marca-opcao .ponto { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Estrutura ---------- */
.app { min-height: 100dvh; }
.lateral { display: none; }
.topo {
  position: sticky; top: 0; z-index: 30; background: var(--laranja); color: var(--tinta);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 10px rgba(150, 80, 0, .18);
}
.topo .marca-topo { height: 34px; }
.topo .titulo-topo { flex: 1; min-width: 0; }
.topo .titulo-topo b { display: block; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo .titulo-topo small { display: block; font-size: 12.5px; color: rgba(31,22,8,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { text-decoration: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; color: var(--laranja-escuro); flex: none; border: 0; }
.avatar.grande { width: 52px; height: 52px; font-size: 17px; }

.conteudo { padding: 16px 16px calc(var(--barra-inferior) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }

.barra-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; display: flex;
  border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(80, 50, 10, .06);
}
.barra-inferior a { flex: 1; min-width: 0; height: var(--barra-inferior); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--tinta-3); font-size: 11.5px; font-weight: 600; position: relative; }
.barra-inferior a svg { width: 24px; height: 24px; }
.barra-inferior a.ativo { color: var(--tinta); }
.barra-inferior a.ativo .ic-fundo { background: var(--laranja); }
.barra-inferior .ic-fundo { width: 52px; height: 30px; border-radius: 99px; display: grid; place-items: center; transition: background .15s; }
.selo { position: absolute; top: 7px; left: calc(50% + 8px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--vermelho); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

@media (min-width: 1000px) {
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .topo, .barra-inferior { display: none; }
  .lateral {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    background: linear-gradient(180deg, var(--laranja) 0%, #F49317 100%); padding: 22px 14px 16px; color: var(--tinta);
  }
  .lateral .logo-caixa { background: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 22px; box-shadow: 0 4px 14px rgba(120, 60, 0, .18); }
  .lateral .logo { width: 100%; max-width: 190px; margin: 0 auto; display: block; }
  .lateral nav { display: flex; flex-direction: column; gap: 3px; }
  .lateral nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; text-decoration: none; color: var(--tinta); font-weight: 600; font-size: 14.5px; position: relative; }
  .lateral nav a:hover { background: rgba(255,255,255,.28); }
  .lateral nav a.ativo { background: #fff; box-shadow: 0 2px 10px rgba(120, 60, 0, .18); }
  .lateral nav a .selo { position: static; margin-left: auto; border: 0; }
  .lateral .pe { margin-top: auto; padding-top: 18px; }
  .lateral .quem { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.3); border-radius: 14px; padding: 10px; }
  .lateral .quem b { display: block; font-size: 14px; line-height: 1.2; }
  .lateral .quem small { font-size: 12px; color: rgba(31,22,8,.7); }
  .lateral .quem > div { flex: 1; min-width: 0; }
  .lateral .credito { margin-top: 14px; color: rgba(31,22,8,.75); font-size: 12px; }
  .lateral .credito a { color: var(--tinta); }
  .conteudo { padding: 28px 32px 40px; }
}

/* ---------- Títulos e blocos ---------- */
.cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecalho h1 { font-size: 24px; line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: 0; }
.cabecalho p { margin: 4px 0 0; color: var(--tinta-3); font-size: 14px; }
.cabecalho .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 999px) { .cabecalho h1 { font-size: 21px; } }

.cartao { background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); padding: 18px; }
.cartao + .cartao { margin-top: 14px; }
.secao-titulo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-2); margin: 22px 2px 10px; }
.secao-titulo .cont { background: var(--laranja-claro); color: var(--laranja-escuro); border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.secao-titulo.vermelho { color: var(--vermelho); }
.secao-titulo.vermelho .cont { background: var(--vermelho-claro); color: var(--vermelho); }
.secao-titulo.verde { color: var(--verde); }
.secao-titulo.verde .cont { background: var(--verde-claro); color: var(--verde); }

.vazio { text-align: center; padding: 34px 18px; color: var(--tinta-3); }
.vazio .ilustra { width: 76px; height: 76px; border-radius: 50%; background: var(--laranja-claro); display: grid; place-items: center; margin: 0 auto 12px; color: var(--laranja-escuro); }
.vazio .ilustra svg { width: 36px; height: 36px; }
.vazio b { display: block; color: var(--tinta); font-size: 16px; margin-bottom: 4px; }

.etiqueta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--laranja-suave); color: var(--tinta-2); white-space: nowrap; }
.etiqueta svg { width: 14px; height: 14px; }
.etiqueta.vermelho { background: var(--vermelho-claro); color: #A82B19; }
.etiqueta.verde { background: var(--verde-claro); color: #17703F; }
.etiqueta.amarelo { background: #FFF1C9; color: #8A5D00; }
.etiqueta.neutro { background: #F3EEE6; color: var(--tinta-2); }
.ponto-setor { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Herói do dia (funcionário) ---------- */
.heroi {
  background: linear-gradient(135deg, var(--laranja) 0%, #F7B24F 100%); border-radius: 24px; padding: 20px; color: var(--tinta);
  display: flex; align-items: center; gap: 18px; box-shadow: 0 10px 30px rgba(236, 138, 12, .3); position: relative; overflow: hidden;
}
.heroi::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.18); }
.heroi .txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.heroi h2 { margin: 0 0 2px; font-size: 21px; line-height: 1.2; }
.heroi p { margin: 0; color: rgba(31,22,8,.75); font-size: 14px; }
.heroi .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.heroi .chips .etiqueta { background: rgba(255,255,255,.75); }
.heroi .chips .etiqueta.vermelho { background: #fff; }
.anel { position: relative; width: 96px; height: 96px; flex: none; z-index: 1; }
.anel svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.anel circle { fill: none; stroke-width: 10; }
.anel .base { stroke: rgba(255,255,255,.45); }
.anel .valor { stroke: var(--tinta); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }
.anel .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 22px; line-height: 1; }
.anel .num small { display: block; font-size: 11px; font-weight: 600; margin-top: 3px; color: rgba(31,22,8,.7); }

/* ---------- Lista de tarefas ---------- */
.lista { display: flex; flex-direction: column; gap: 10px; }
.tarefa {
  display: flex; align-items: stretch; background: #fff; border-radius: var(--raio); box-shadow: var(--sombra);
  border: 1.5px solid transparent; transition: transform .15s, opacity .3s, border-color .15s; overflow: hidden;
}
.tarefa.atrasada { border-color: #F3B3A8; background: #FFFBFA; }
.tarefa.feita { background: #FCFAF6; box-shadow: none; border-color: var(--linha); }
.tarefa .marcar {
  width: 70px; flex: none; border: 0; background: transparent; display: grid; place-items: center; padding: 0;
}
.tarefa .marcar .bola {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--linha-forte); display: grid; place-items: center;
  background: #fff; transition: all .18s; color: transparent;
}
.tarefa .marcar:hover .bola { border-color: var(--laranja); background: var(--laranja-suave); color: var(--laranja); }
.tarefa .marcar .bola svg { width: 22px; height: 22px; stroke-width: 3; }
.tarefa.atrasada .marcar .bola { border-color: #EE9A8C; }
.tarefa.feita .marcar .bola { background: var(--verde); border-color: var(--verde); color: #fff; }
.tarefa.marcando .marcar .bola { animation: estalo .45s ease; background: var(--verde); border-color: var(--verde); color: #fff; }
@keyframes estalo { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.tarefa .corpo { flex: 1; min-width: 0; padding: 14px 14px 14px 0; border: 0; background: transparent; text-align: left; display: block; }
.tarefa .corpo b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tarefa.feita .corpo b { color: var(--tinta-3); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.tarefa .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; align-items: center; }
.tarefa .meta .txt { font-size: 12.5px; color: var(--tinta-3); display: inline-flex; align-items: center; gap: 4px; }
.tarefa .meta .txt svg { width: 14px; height: 14px; }
.tarefa .seta { display: grid; place-items: center; padding-right: 12px; color: var(--linha-forte); }
.tarefa .obs-feita { margin-top: 7px; font-size: 13px; color: var(--tinta-2); background: var(--laranja-suave); border-radius: 10px; padding: 6px 10px; overflow-wrap: anywhere; }
.tarefa .faixa { width: 5px; flex: none; }

/* ---------- Painel da gestão ---------- */
.indicadores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .indicadores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.indicador { background: #fff; border-radius: var(--raio); padding: 14px 16px; box-shadow: var(--sombra); border: 0; text-align: left; min-width: 0; }
.indicador small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--tinta-3); }
.indicador small svg { width: 16px; height: 16px; }
.indicador b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.indicador.destaque { background: var(--laranja); }
.indicador.destaque small { color: rgba(31,22,8,.72); }
.indicador.vermelho b { color: var(--vermelho); }
.indicador.verde b { color: var(--verde); }
button.indicador { cursor: pointer; }
button.indicador.selecionado { box-shadow: 0 0 0 2.5px var(--tinta), var(--sombra); }

.barra-progresso { height: 8px; border-radius: 99px; background: #F3E8D8; overflow: hidden; }
.barra-progresso > i { display: block; height: 100%; border-radius: 99px; background: var(--verde); transition: width .5s ease; }

.grade-setores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
@media (max-width: 699px) { .grade-setores { grid-template-columns: repeat(2, minmax(0, 1fr)); } .setor-cartao { padding: 12px; } .setor-cartao .linha1 { font-size: 13.5px; } .setor-cartao .icone-setor { width: 30px; height: 30px; } }
.setor-cartao { background: #fff; border-radius: var(--raio); padding: 14px 16px; box-shadow: var(--sombra); border: 2px solid transparent; text-align: left; cursor: pointer; min-width: 0; }
.setor-cartao.selecionado { border-color: var(--tinta); }
.setor-cartao .linha1 { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; min-width: 0; }
.setor-cartao .linha1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setor-cartao .linha2 { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 13px; color: var(--tinta-3); gap: 6px; flex-wrap: wrap; }
.setor-cartao .linha2 b { color: var(--tinta); }
.icone-setor { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.icone-setor svg { width: 19px; height: 19px; }

.painel-grade { display: grid; gap: 18px; }
@media (min-width: 1200px) { .painel-grade { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .painel-grade .coluna-avisos { position: sticky; top: 20px; } .coluna-avisos .feed { max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; margin-right: -8px; padding-right: 8px; } }
@media (min-width: 1000px) and (max-width: 1199px) { .painel-grade .coluna-avisos { display: none; } }
@media (max-width: 999px) { .painel-grade .coluna-avisos { display: none; } }

.filtros { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filtro { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--linha-forte); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--tinta-2); display: inline-flex; align-items: center; gap: 6px; }
.filtro.ativo { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.filtro .n { font-size: 12px; opacity: .75; }

.navegar-dia { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; box-shadow: var(--sombra); padding: 3px; }
.navegar-dia .botao-icone { width: 40px; height: 40px; }
.navegar-dia input { border: 0; background: transparent; font-weight: 600; font-size: 14px; padding: 0 4px; min-height: 40px; max-width: 150px; outline: none; }

/* ---------- Feed de avisos ---------- */
.feed { display: flex; flex-direction: column; }
.aviso { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.aviso:last-child { border-bottom: 0; }
.aviso .ic-aviso { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.aviso .ic-aviso svg { width: 18px; height: 18px; }
.aviso .ic-aviso.feita { background: var(--verde-claro); color: var(--verde); }
.aviso .ic-aviso.anotacao { background: #E6EEFB; color: #2B5DB8; }
.aviso .ic-aviso.atrasada { background: var(--vermelho-claro); color: var(--vermelho); }
.aviso .ic-aviso.resumo { background: var(--laranja-claro); color: var(--laranja-escuro); }
.aviso .ic-aviso.desfeita { background: #F1ECE4; color: var(--tinta-3); }
.aviso .txt { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.aviso .txt b { font-weight: 600; }
.aviso .txt .det { display: block; margin-top: 4px; font-size: 13px; color: var(--tinta-2); background: var(--laranja-suave); border-radius: 10px; padding: 6px 10px; }
.aviso .txt time { display: block; font-size: 12px; color: var(--tinta-3); margin-top: 3px; }
.aviso.novo { animation: chegou 1.6s ease; }
@keyframes chegou { 0% { background: var(--laranja-claro); } 100% { background: transparent; } }
.ao-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--verde); }
.ao-vivo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: piscar 1.6s infinite; }
.ao-vivo.off { color: var(--tinta-3); }
.ao-vivo.off::before { animation: none; }
@keyframes piscar { 50% { opacity: .3; } }

/* ---------- Listas de cadastro ---------- */
.linhas { display: flex; flex-direction: column; }
.linha-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--linha); background: #fff; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; min-width: 0; }
.linha-item:last-child { border-bottom: 0; }
.linha-item:hover { background: #FFFCF7; }
.linha-item .txt { flex: 1; min-width: 0; }
.linha-item .txt b { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.linha-item .txt .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.linha-item .txt .meta .txt2 { font-size: 12.5px; color: var(--tinta-3); display: inline-flex; align-items: center; gap: 4px; }
.linha-item .txt .meta .txt2 svg { width: 14px; height: 14px; }
.linha-item.inativa { opacity: .55; }
.lista-cartao { background: #fff; border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.grupo-titulo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 12px 16px; background: var(--laranja-suave); border-bottom: 1px solid var(--linha); }
.busca { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.busca svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tinta-3); }
.busca .entrada { padding-left: 42px; min-height: 44px; }

.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-3); padding: 10px 12px; border-bottom: 1px solid var(--linha); font-weight: 700; }
.tabela td { padding: 11px 12px; border-bottom: 1px solid var(--linha); vertical-align: top; overflow-wrap: anywhere; }
.tabela tr:last-child td { border-bottom: 0; }
.rolagem-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.barras-dias { display: flex; flex-direction: column; gap: 10px; }
.barra-dia { display: grid; grid-template-columns: 92px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 13.5px; }
.barra-dia .dia { font-weight: 600; }
.barra-dia .pct { text-align: right; color: var(--tinta-2); font-weight: 600; }

/* ---------- Gaveta e janela ---------- */
.fundo-modal { position: fixed; inset: 0; z-index: 80; background: rgba(31, 22, 8, .45); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .18s ease; }
@keyframes aparecer { from { opacity: 0; } }
.modal {
  background: #fff; width: 100%; max-width: 560px; max-height: 92dvh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column;
  animation: subir .25s cubic-bezier(.2,.8,.2,1); box-shadow: var(--sombra-forte);
}
@keyframes subir { from { transform: translateY(40px); opacity: .4; } }
.modal .puxador { width: 44px; height: 5px; border-radius: 99px; background: var(--linha-forte); margin: 10px auto 0; flex: none; }
.modal-topo { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px 10px; }
.modal-topo h2 { flex: 1; margin: 6px 0 0; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.modal-corpo { padding: 4px 18px 18px; overflow-y: auto; overscroll-behavior: contain; }
.modal-pe { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); display: flex; gap: 10px; flex-wrap: wrap; }
.modal-pe .botao { flex: 1; }
@media (min-width: 700px) {
  .fundo-modal { align-items: center; padding: 20px; }
  .modal { border-radius: 24px; max-height: 88dvh; }
  .modal .puxador { display: none; }
  .modal-pe { padding-bottom: 16px; }
}
.detalhe-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.descricao { background: var(--laranja-suave); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.recados { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.recado { background: #F7F3EC; border-radius: 14px; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.recado small { display: block; color: var(--tinta-3); font-size: 12px; margin-bottom: 3px; font-weight: 600; white-space: normal; }
.feita-info { display: flex; align-items: center; gap: 12px; background: var(--verde-claro); color: #17703F; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.feita-info svg { width: 26px; height: 26px; flex: none; }
.feita-info b { color: #0F5A31; }

.paleta { display: flex; flex-wrap: wrap; gap: 10px; }
.paleta button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--linha-forte); }
.paleta button.ativo { box-shadow: 0 0 0 3px var(--tinta); }
.icones-escolha { display: flex; flex-wrap: wrap; gap: 8px; }
.icones-escolha button { width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--linha-forte); background: #fff; display: grid; place-items: center; }
.icones-escolha button.ativo { background: var(--laranja-claro); border-color: var(--laranja); }

/* ---------- Aviso flutuante ---------- */
.avisos-flutuantes { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: calc(var(--barra-inferior) + 16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
@media (min-width: 1000px) { .avisos-flutuantes { bottom: 24px; left: auto; right: 24px; transform: none; } }
.flutuante { pointer-events: auto; background: var(--tinta); color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sombra-forte); animation: subir .25s ease; font-size: 14px; }
.flutuante svg { color: var(--laranja); }
.flutuante .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.flutuante button { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 13.5px; }
.flutuante.erro { background: #8E2313; }
.flutuante.erro svg { color: #fff; }
.flutuante.saindo { opacity: 0; transform: translateY(10px); transition: all .25s; }

.convite { display: flex; gap: 14px; align-items: center; background: #fff; border: 2px dashed var(--laranja); border-radius: var(--raio); padding: 14px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.convite .txt { flex: 1; min-width: 200px; font-size: 14px; }
.convite .txt b { display: block; font-size: 15px; }
.convite > svg { width: 30px; height: 30px; color: var(--laranja-escuro); }

.grade-2 { display: grid; gap: 14px; }
@media (min-width: 800px) { .grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lado-a-lado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.mais-menu a { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: var(--tinta); font-weight: 600; border-bottom: 1px solid var(--linha); }
.mais-menu a:last-child { border-bottom: 0; }
.mais-menu a .icone-setor { background: var(--laranja-claro); color: var(--laranja-escuro); }
.mais-menu a small { display: block; font-weight: 400; color: var(--tinta-3); font-size: 13px; }

.carregando-linha { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--laranja-claro), var(--laranja), var(--laranja-claro)); background-size: 200% 100%; animation: correr 1s linear infinite; margin: 30px auto; max-width: 200px; }
@keyframes correr { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Tabela que vira lista no celular */
@media (max-width: 699px) {
  .tabela.empilha { min-width: 0 !important; }
  .tabela.empilha thead { display: none; }
  .tabela.empilha tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--linha); }
  .tabela.empilha tr:last-child { border-bottom: 0; }
  .tabela.empilha td { padding: 0; border: 0; font-size: 13px; color: var(--tinta-2); }
  .tabela.empilha td:nth-child(2) { flex-basis: 100%; order: -1; color: var(--tinta); font-size: 14.5px; }
  .tabela.empilha td:empty { display: none; }
}

/* ---------- Comemoração ao concluir ---------- */
.confete { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }
.mais-um { position: fixed; z-index: 201; pointer-events: none; transform: translate(-50%, -50%); font-weight: 800; font-size: 22px; color: var(--verde); text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255,255,255,.9); animation: subir-um 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes subir-um { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

.tarefa .marcar .bola { position: relative; }
.tarefa .marcar .bola svg path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.tarefa .marcar .bola::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--verde); opacity: 0; pointer-events: none; }
.tarefa .marcar:active .bola { transform: scale(.88); }
.tarefa.marcando .marcar .bola { animation: estalo .5s cubic-bezier(.3,1.6,.5,1); background: var(--verde); border-color: var(--verde); color: #fff; }
.tarefa.marcando .marcar .bola svg path { animation: desenhar .35s .08s ease-out both; }
.tarefa.marcando .marcar .bola::after { animation: onda .6s ease-out; }
.tarefa.marcando { border-color: #9BDDB7; background: linear-gradient(90deg, var(--verde-claro), #fff 70%); }
.tarefa.marcando .corpo b { color: var(--tinta-3); text-decoration: line-through; text-decoration-color: var(--verde); transition: color .3s; }
.tarefa.saindo { animation: sair-cartao .45s cubic-bezier(.4,0,.2,1) forwards; overflow: hidden; }
@keyframes estalo { 0% { transform: scale(.7); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes desenhar { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes onda { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes sair-cartao { 0% { opacity: 1; transform: translateX(0); } 40% { opacity: 1; transform: translateX(8px); } 100% { opacity: 0; transform: translateX(60px); max-height: 0; margin-top: -10px; padding: 0; border-width: 0; } }

.anel.pulo { animation: pulo-anel .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes pulo-anel { 40% { transform: scale(1.1); } }
.heroi.completo { background: linear-gradient(135deg, #2BB36B 0%, #7FD9A4 100%); box-shadow: 0 10px 30px rgba(35,149,90,.32); }
.heroi.completo .anel .valor { stroke: #fff; }
.heroi.completo .anel .base { stroke: rgba(255,255,255,.35); }

.faixa-dia { position: fixed; left: 50%; top: 22%; z-index: 190; transform: translate(-50%, 0); background: #fff; border-radius: 26px; padding: 22px 26px; width: min(360px, calc(100% - 32px)); text-align: center; box-shadow: var(--sombra-forte); animation: faixa-entra .6s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.faixa-dia .trofeu { width: 72px; height: 72px; border-radius: 50%; margin: -58px auto 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--laranja), #FFC56B); color: var(--tinta); box-shadow: 0 8px 24px rgba(236,138,12,.4); }
.faixa-dia .trofeu svg { width: 36px; height: 36px; }
.faixa-dia b { display: block; font-size: 21px; }
.faixa-dia span { color: var(--tinta-2); font-size: 14.5px; }
.faixa-dia.saindo { transition: opacity .4s, transform .4s; opacity: 0; transform: translate(-50%, -20px); }
@keyframes faixa-entra { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.8); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
