/* Fisggo — visual do app. Celular primeiro; no desktop a coluna fica centralizada.
   Cada tela ocupa a altura do aparelho: topo fixo, conteúdo que rola, barra de abas embaixo. */

:root {
  /* Fisggo: areia clara de fundo (leitura no sol), petróleo/turquesa nos destaques; amarelo e laranja só em marcas */
  --fundo: #f5f1e8;
  --superficie: #ffffff;
  /* Cores das categorias de gasto (pizza; paleta validada com o validador do dataviz, claro e escuro) */
  --cat-combustivel: #2a78d6; --cat-comida: #eb6834; --cat-isca: #1baf7a; --cat-hospedagem: #eda100;
  --cat-barco: #e87ba4; --cat-compras: #008300; --cat-outro: #8a9497;
  --superficie-2: #ebe5d8;
  --texto: #1f2d33;
  --suave: #526165; /* ≥ 4,5:1 também sobre --superficie-2 (auditoria ux) */
  --borda: #ddd5c4;
  --acento: #0a7470;
  --acento-texto: #ffffff;
  --petroleo: #153e38;
  --turquesa: #00c9c0;
  --amarelo: #ffd21c;
  --sol: #ad590a;
  --sol-texto: #fff; /* texto/ícone por cima de --sol */
  --perigo: #c2410c;
  --ok: #15803d;
  --sombra: 0 6px 20px rgb(21 62 56 / .12);
  --raio: 14px;
  --nav: 64px;
  color-scheme: light dark;
}
/* Tema escuro: segue o celular (Automático), a não ser que a pessoa escolha em Mais → Tema (html[data-tema]) */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema=claro]) {
    /* Escuro: o verde petróleo da marca */
    --fundo: #0f2a26;
    --superficie: #153e38;
    --superficie-2: #1c4a43;
    --texto: #eef5f3;
    --suave: #a1c0ba;
    --borda: #25564e;
    --acento: #00c9c0;
    --acento-texto: #04221f;
    --sol: #ffd21c;
    --sol-texto: #3b2f00;
    --perigo: #fb7d4a;
    --ok: #4ade80;
    --sombra: 0 6px 24px rgb(0 0 0 / .45);
    --cat-combustivel: #3987e5; --cat-comida: #d95926; --cat-isca: #199e70; --cat-hospedagem: #c98500;
    --cat-barco: #d55181; --cat-compras: #0ca30c; --cat-outro: #8aa39e;
  }
}
:root[data-tema=escuro] {
    /* Escuro: o verde petróleo da marca */
    --fundo: #0f2a26;
    --superficie: #153e38;
    --superficie-2: #1c4a43;
    --texto: #eef5f3;
    --suave: #a1c0ba;
    --borda: #25564e;
    --acento: #00c9c0;
    --acento-texto: #04221f;
    --sol: #ffd21c;
    --sol-texto: #3b2f00;
    --perigo: #fb7d4a;
    --ok: #4ade80;
    --sombra: 0 6px 24px rgb(0 0 0 / .45);
    --cat-combustivel: #3987e5; --cat-comida: #d95926; --cat-isca: #199e70; --cat-hospedagem: #c98500;
    --cat-barco: #d55181; --cat-compras: #0ca30c; --cat-outro: #8aa39e;
    color-scheme: dark;
}
:root[data-tema=claro] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 1rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
#app { max-width: 760px; margin: 0 auto; }
.carregando { text-align: center; color: var(--suave); padding-top: 40vh; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); margin: 22px 0 10px; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---- formulários ---- */
[hidden] { display: none !important; } /* regra de display (label, .segmentos...) não pode vencer o hidden */
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--suave); }
label small { font-weight: 400; }
label.linha { flex-direction: row; align-items: center; gap: 10px; color: var(--texto); font-weight: 500; }
label.linha input { width: 22px; height: 22px; accent-color: var(--acento); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borda);
  border-radius: 10px;
  background: var(--superficie);
  color: var(--texto);
  font-weight: 400;
  min-height: 48px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }
textarea { resize: vertical; min-height: 80px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-size: .9rem; font-weight: 600; color: var(--suave); padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
button, .botao {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--superficie-2);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.botao { display: inline-block; color: var(--texto); font-size: 1rem; }
button:disabled { opacity: .6; cursor: default; }
button.primario { background: var(--acento); color: var(--acento-texto); }
button.perigo { background: transparent; color: var(--perigo); }
button.link { background: none; padding: 10px 0; margin: -10px 0; color: var(--acento); font-weight: 600; text-decoration: underline; font-size: inherit; }
.erro { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--perigo) 14%, transparent); color: var(--perigo); font-size: .92rem; }
.dica { margin: 0; color: var(--suave); font-size: .88rem; text-align: center; }
.dica.esquerda { text-align: left; }
.formulario { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* rótulo que quebra linha (ex.: "opcional") não pode desalinhar o campo do vizinho: campos sempre no pé */
.dupla > label { justify-content: flex-end; }
.acoes { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.acoes.rodape {
  position: sticky; bottom: 0; z-index: 3;
  margin: 0 -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--fundo) 92%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--borda);
}
.espaco { flex: 1; }

/* ---- entrar ---- */
.entrar { padding: max(48px, env(safe-area-inset-top)) 20px 32px; display: flex; flex-direction: column; gap: 28px; }
.marca { text-align: center; }
.marca img { border-radius: 20px; box-shadow: var(--sombra); }
.marca h1 { margin-top: 14px; font-size: 1.9rem; }
.marca p { margin: 4px 0 0; color: var(--suave); font-size: 1.05rem; }
.marca .assinatura { display: block; margin-top: 6px; color: var(--acento); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cartao { background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.abas { display: grid; grid-template-columns: 1fr 1fr; background: var(--superficie-2); border-radius: 10px; padding: 4px; }
.abas button { background: transparent; padding: 9px; color: var(--suave); }
.abas button[aria-selected="true"] { background: var(--superficie); color: var(--texto); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

/* ---- tela: topo + conteúdo + abas ---- */
.tela { height: 100dvh; display: flex; flex-direction: column; position: relative; }
.topo {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) 12px 10px 16px;
}
.titulo { flex: 1; min-width: 0; }
.titulo h1 { font-size: 1.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titulo p { margin: 0; color: var(--suave); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status {
  flex: none;
  padding: 7px 12px; border-radius: 999px; font-size: .8rem; white-space: nowrap;
  background: var(--superficie); border: 1.5px solid var(--borda);
}
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--suave); vertical-align: 1px; }
.status.ok::before { background: var(--ok); }
.status.offline::before { background: var(--sol); }
.status.alerta { border-color: var(--perigo); color: var(--perigo); }
.status.alerta::before { background: var(--perigo); }
.status.girando::before { background: var(--acento); animation: pulsar 1s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .2; } }
.icone-btn { flex: none; background: transparent; padding: 9px; display: grid; place-items: center; }
.icone-btn svg, .fab svg, .abas-baixo svg { fill: currentColor; }
.conteudo { flex: 1; overflow-y: auto; padding: 4px 16px 110px; -webkit-overflow-scrolling: touch; }
.conteudo.cheio { padding: 0; overflow: hidden; position: relative; }
.premium-quadro { display: block; width: 100%; height: 100%; border: 0; background: #012826; }
.conteudo.sem-fab { padding-bottom: 0; }

.abas-baixo {
  flex: none; height: calc(var(--nav) + 14px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 1fr 14px;
  padding-bottom: env(safe-area-inset-bottom);
  /* fundo esverdeado para não se misturar com a tela (dono, 2026-11-18, maquete B) */
  background: color-mix(in srgb, var(--acento) 16%, var(--superficie)); border-top: 1px solid var(--borda);
}
.abas-baixo a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: color-mix(in srgb, var(--suave) 75%, var(--texto)); text-decoration: none; font-size: .75rem; font-weight: 600; }
.abas-baixo a.ativa { color: color-mix(in srgb, var(--acento) 75%, var(--texto)); } /* ≥ 4,5:1 sobre o fundo esverdeado da dock */
/* Toques rápidos na mesma aba: o Android selecionava o texto e arrastava uma cópia do link (a dock "tremia") */
.abas-baixo { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.abas-baixo a, .abas-baixo svg { -webkit-user-drag: none; }
.abas-baixo a[hidden] { display: none; }
.aba-pescaria { position: relative; }
.aba-pescaria .ao-vivo-ponto { position: absolute; top: 7px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 2px var(--superficie); }

/* ---- listas e cartões ---- */
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lista .dia { font-size: .8rem; font-weight: 700; color: var(--suave); text-transform: capitalize; margin: 8px 0 -2px; }
.item {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra);
  font-weight: 400;
}
.item.captura { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
.item .corpo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--superficie-2); }
.mini.sem-foto { display: grid; place-items: center; font-size: 1.8rem; }
.item-nome { font-weight: 700; font-size: 1.05rem; }
.item-sub { color: var(--suave); font-size: .88rem; }
.item-pend { color: var(--sol); font-size: .82rem; font-weight: 600; }
.item-erro { color: var(--perigo); font-size: .82rem; font-weight: 600; }
.selo { display: inline-block; vertical-align: 2px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.selo.agora { background: color-mix(in srgb, var(--sol) 20%, transparent); color: var(--sol); }
.vazio { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16vh 20px 0; text-align: center; color: var(--suave); }
.vazio svg { fill: var(--acento); opacity: .7; margin-bottom: 8px; }
.vazio svg .olho { fill: var(--fundo); }
.vazio strong { color: var(--texto); font-size: 1.1rem; }
.vazio .grande { font-size: 3rem; }
.resumo { margin: 4px 0 12px; color: var(--suave); font-size: .9rem; }
.nota { white-space: pre-wrap; background: var(--superficie); border-radius: var(--raio); padding: 14px 16px; margin: 12px 0 0; }
.faixa { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--sol) 16%, transparent); font-size: .9rem; }
.acoes-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.acoes-topo .primario { grid-column: 1 / -1; }

.fab {
  position: absolute; right: 18px; bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 18px); z-index: 4;
  width: 62px; height: 62px; border-radius: 20px; padding: 0;
  display: grid; place-items: center;
  background: var(--acento); color: var(--acento-texto); box-shadow: var(--sombra);
}

/* ---- números da pescaria ---- */
.numeros { margin-top: 16px; gap: 0; }
.numeros h3 { margin-top: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.kpis b { display: block; font-size: 1.35rem; }
.kpis span { font-size: .8rem; color: var(--suave); }
.kpis .kpi-grafico { all: unset; cursor: pointer; display: block; min-height: 44px; border-radius: 10px; text-align: center; }
.kpis .kpi-grafico:focus-visible { outline: 2px solid var(--acento); }
.kpis .kpi-grafico span { display: inline-flex; align-items: center; gap: 4px; text-decoration: underline dotted; text-underline-offset: 3px; }
/* Folha "Gastos por categoria" (pizza) */
.grafico-gastos .pizza { position: relative; width: min(240px, 66vw); margin: 0 auto; }
.grafico-gastos .pizza svg { display: block; width: 100%; height: auto; }
.grafico-gastos .fatia { fill: none; stroke-width: 28; cursor: pointer; transition: opacity .15s; }
.grafico-gastos .pizza-meio { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; padding: 0 24%; }
.grafico-gastos .pizza-meio b { font-size: 1.05rem; white-space: nowrap; }
.grafico-gastos .pizza-meio span { font-size: .8rem; color: var(--suave); }
.legenda-gastos { list-style: none; margin: 0; padding: 0; }
.legenda-gastos button { all: unset; box-sizing: border-box; width: 100%; min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; border-bottom: 1px solid var(--borda); transition: opacity .15s; }
.legenda-gastos li:last-child button { border-bottom: 0; }
.legenda-gastos .cor { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.legenda-gastos .nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legenda-gastos .pct { color: var(--suave); font-size: .9rem; min-width: 3.2em; text-align: right; }
.legenda-gastos b { min-width: 6em; text-align: right; }
.grafico-gastos .apagada { opacity: .3; }
.destaque { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--superficie-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { padding: 5px 10px; border-radius: 999px; background: var(--superficie-2); font-size: .85rem; }
.chip b { color: var(--acento); margin-left: 2px; }
.barras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 110px; align-items: end; }
.barras div { display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: 3px; position: relative; }
.barras span { width: 70%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--acento); }
.barras small { font-size: .72rem; color: var(--suave); }
.barras b { font-size: .8rem; position: absolute; top: 0; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--superficie-2); cursor: zoom-in; }

/* ---- fotos no formulário ---- */
.fotos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.fotos-grade:empty { display: none; }
.foto-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--superficie-2); display: grid; place-items: center; }
.foto-item img { width: 100%; height: 100%; object-fit: cover; }
.foto-item button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; font-size: .8rem; }
.foto-item button.estrela-capa { right: auto; left: 4px; display: grid; place-items: center; } /* não é .capa: essa é a capa das músicas (44 px) */
.foto-item button.estrela-capa .ic { width: 16px; height: 16px; opacity: .75; }
.foto-item button.estrela-capa.ligada { background: var(--sol, #ffd21c); color: #1b1b1b; }
.foto-item button.estrela-capa.ligada .ic { opacity: 1; }
/* gostei (coração): no canto de baixo, o ícone no centro do círculo como a estrela */
.foto-item button.coracao-gostei { top: auto; right: auto; left: 4px; bottom: 4px; display: grid; place-items: center; }
.foto-item button.coracao-gostei .ic { width: 16px; height: 16px; opacity: .8; }
.foto-item button.coracao-gostei.ligada { background: #e53950; }
/* foto da régua escolhida para medir (câmera nativa, #115): selo no canto de baixo à direita */
.foto-item .selo-medida { position: absolute; right: 4px; bottom: 4px; display: flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 99px; background: rgb(0 0 0 / .65); color: #fff; font-size: .72rem; font-weight: 700; pointer-events: none; }
.foto-item .selo-medida .ic { width: 14px; height: 14px; }
.foto-item button.coracao-gostei.ligada .ic { opacity: 1; }
.dica-gostei { margin: 6px 2px 0; font-size: .85rem; line-height: 1.4; }
.dica-gostei .ic { width: 15px; height: 15px; vertical-align: -2px; }
.dica-gostei[hidden] { display: none; }
.processando { color: var(--suave); animation: pulsar 1s infinite; font-size: 1.5rem; }
.fotos-botoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
dialog.visor { padding: 0; border: 0; background: #000; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
dialog.visor > img, dialog.visor .visor-palco img, dialog.visor .visor-palco canvas.foto-pronta { width: 100%; height: 100%; object-fit: contain; } /* não pega o avatar da barra */
dialog.visor { touch-action: pan-y; overflow: hidden; }
dialog.visor .visor-palco { position: absolute; inset: 0; display: grid; grid-template: 100% / 100%; place-items: center; transition: transform .22s ease-out; }
dialog.visor .visor-palco:has(video) { bottom: calc(76px + env(safe-area-inset-bottom)); } /* o vídeo e os controles acima da barra */
dialog.visor .visor-conta { position: absolute; top: max(22px, calc(env(safe-area-inset-top) + 10px)); left: 0; right: 0; text-align: center; color: rgb(255 255 255 / .8); font-size: .85rem; pointer-events: none; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
/* ▶ e olho na foto aberta (opção A): canto de cima à esquerda; o fechar fica à direita */
dialog.visor .visor-marcas { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: 8px; display: flex; gap: 4px; }
dialog.visor .visor-marcas .marca-m { position: static; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
dialog.visor .visor-marcas .marca-m i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; background: rgb(0 0 0 / .45); color: #fff; }
dialog.visor .visor-marcas .marca-m .ic { width: 20px; height: 20px; }
dialog.visor .visor-marcas .marca-m.entra.ligada i { background: #FFD21C; border-color: #FFD21C; color: #153E38; }
dialog.visor .visor-marcas .marca-m.fora.ligada i { background: #fff; color: #153E38; }
dialog.visor .fechar { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; background: rgb(255 255 255 / .2); color: #fff; border-radius: 50%; width: 44px; height: 44px; padding: 0; }

/* ---- clima ---- */
.clima { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clima-item { background: var(--superficie); border-radius: 10px; padding: 10px 12px; font-size: .88rem; display: flex; gap: 8px; align-items: center; }
.clima-item b { font-size: 1.15rem; font-weight: 400; }
.clima-aviso { grid-column: 1 / -1; color: var(--suave); font-size: .86rem; }
.gps { font-weight: 400; font-size: .82rem; color: var(--acento); }

/* ---- mapas ---- */
.mini-mapa { height: 200px; border-radius: 12px; overflow: hidden; background: var(--superficie-2); z-index: 0; }
.mini-mapa { position: relative; }
.mapa-trava { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 500; pointer-events: none; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / .62); color: #fff; font-size: .82rem; font-weight: 600; transition: opacity .2s; }
.mini-mapa:not(.travado) .mapa-trava { opacity: 0; }
.mapa { position: absolute; inset: 0; background: var(--superficie-2); z-index: 0; }
.mapa-botoes { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; border-radius: 14px; background: var(--superficie); box-shadow: var(--sombra); overflow: hidden; }
.mapa-botoes button { width: 48px; height: 48px; padding: 0; border-radius: 0; background: var(--superficie); font-size: 1.3rem; }
.mapa-botoes button + button { border-top: 1px solid var(--borda); }
/* peixe acima das camadas (dono, 2026-11-18, maquete B): vai para a pescaria acontecendo; com ele, o grupo desce */
.mapa-peixe { position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px; padding: 0; min-height: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--acento); color: var(--acento-texto); box-shadow: var(--sombra); }
.mapa-peixe[hidden] { display: none; }
.mapa-peixe .ic { width: 26px; height: 26px; }
.mapa-peixe:not([hidden]) + .mapa-botoes { top: 70px; }
.mapa-chip { position: absolute; top: 12px; left: 12px; right: 72px; z-index: 2; background: var(--superficie); box-shadow: var(--sombra); border-radius: 999px; padding: 8px 14px; font-size: .85rem; }
.mapa-chip a { margin-left: 6px; color: var(--perigo); text-decoration: none; font-weight: 700; }
.mapa-dica { position: absolute; left: 12px; right: 86px; bottom: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; margin: 0; text-align: left; font-size: .8rem; padding: 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--superficie) 90%, transparent); color: var(--suave); }
.pino { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 2px 6px rgb(0 0 0 / .35); border: 2px solid #fff; font-size: 16px; }
.pino span { transform: rotate(45deg); line-height: 1; }
.pino-captura { background: var(--acento); }
.pino-ponto { background: var(--sol); }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 12px 14px; font-size: .9rem; line-height: 1.4; }
.popup-acoes { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.popup-acoes button { padding: 9px 12px; font-size: .88rem; }
/* balão do Leaflet nas cores do app: o padrão (branco, texto #333) deixava os botões escuros com texto escuro */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--superficie); color: var(--texto); box-shadow: 0 3px 14px rgb(0 0 0 / .45); }
.leaflet-container a.leaflet-popup-close-button { color: var(--suave); }
.popup-acoes button { color: var(--texto); }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-control-attribution .logo-google { height: 13px; width: auto; vertical-align: -3px; }

/* ---- carteira ---- */
.faixa-validade { display: block; margin: 8px 0 12px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--texto); }
.faixa-validade.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.faixa-validade.atencao { background: color-mix(in srgb, var(--sol) 22%, transparent); }
.faixa-validade.vencida { background: color-mix(in srgb, var(--perigo) 22%, transparent); color: var(--perigo); }
.cena { perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; margin: 4px 0 6px; }
.cartao3d { position: relative; width: 100%; aspect-ratio: 1.61; transform-style: preserve-3d; }
.cartao3d .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 4.5% / 7.2%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 28px rgb(0 0 0 / .3); background: var(--superficie-2); pointer-events: none; }
.cartao3d .verso { transform: rotateY(180deg); }
.item.doc { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
.doc-mini { flex: none; width: 92px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--superficie-2); box-shadow: 0 2px 6px rgb(0 0 0 / .2); }
.doc-mini.sem-foto { display: grid; place-items: center; font-size: 1.6rem; }
.sit { font-size: .82rem; font-weight: 600; }
.sit.ok { color: var(--ok); }
.sit.atencao { color: var(--sol); }
.sit.vencida { color: var(--perigo); }
.sit.sem { color: var(--suave); }
.cena.so-frente { cursor: default; }
.botoes-coluna { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.botoes-coluna .botao, .botoes-coluna button { width: 100%; }
.botao.primario { background: var(--acento); color: var(--acento-texto); }
.dados { margin-top: 16px; }
.dados dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.dados dt { color: var(--suave); font-size: .85rem; }
.dados dd { margin: 0; font-weight: 600; word-break: break-word; }
#avisos { margin-top: 16px; }
#avisos h3 { margin-top: 0; }
dialog.fiscal { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: #10171a; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
dialog.fiscal:not([open]) { display: none; }
dialog.fiscal #grande { width: min(94vw, calc((100dvh - 80px) * 1.61)); }
dialog.fiscal .cena { touch-action: none; }
/* Em pé: cartão deitado na tela (girado 90°), ocupando a altura, como as carteiras digitais */
@media (orientation: portrait) {
  dialog.fiscal #grande { width: min(calc(100dvh - 96px), calc(94vw * 1.61)); flex: none; transform: rotate(90deg); }
}
.fiscal-barra { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: rgb(0 0 0 / .55); color: #fff; font-size: .85rem; }
.fiscal-barra span { flex: 1; opacity: .8; }
.fiscal-barra button { background: rgb(255 255 255 / .16); color: #fff; }
dialog.original .original-rolagem { position: absolute; inset: 0 0 64px; overflow: auto; --zoom: 1; background: #fff; }
dialog.original .original-rolagem > img { width: calc(100% * var(--zoom)); height: auto; object-fit: initial; display: block; }
.original-fotos { display: flex; flex-direction: column; gap: 12px; padding: 12px; width: calc(100% * var(--zoom)); }
.original-fotos img { width: 100%; height: auto; border-radius: 10px; }
.processando-texto { margin: 0; font-weight: 600; }
dialog.recortador { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: #10171a; color: #fff; }
dialog.recortador[open] { display: flex; flex-direction: column; }
.recortador-topo { padding: max(14px, env(safe-area-inset-top)) 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.recortador-topo span { font-size: .85rem; opacity: .8; }
.recortador-area { position: relative; flex: 1; overflow: hidden; touch-action: none; }
.recortador-area canvas { position: absolute; }
.recorte { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgb(0 0 0 / .55); border-radius: 8px; cursor: move; touch-action: none; }
.recorte .canto { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--sol); border: 3px solid #fff; cursor: nwse-resize; }
dialog.recortador .acoes { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
dialog.recortador .acoes button:not(.primario) { background: rgb(255 255 255 / .16); color: #fff; }

/* ---- listas ---- */
.atalhos { margin: 18px 0 0; text-align: center; }
.atalhos a { color: var(--acento); font-weight: 600; text-decoration: none; }
.progresso { display: block; height: 8px; border-radius: 99px; background: var(--superficie-2); overflow: hidden; margin-top: 6px; }
.progresso span { display: block; height: 100%; background: #f59e0b; border-radius: 99px; transition: width .3s, background-color .3s; } /* falta item: âmbar */
.progresso.completa span { background: var(--ok); } /* tudo feito: verde */
.lista-cartao { gap: 2px; }
.novo-item { display: flex; gap: 8px; margin: 4px 0 12px; }
.novo-item button { width: 52px; font-size: 1.4rem; padding: 0; }
.itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.itens li { display: flex; align-items: center; gap: 4px; background: var(--superficie); border-radius: 12px; padding: 4px 4px 4px 12px; }
.itens label { flex: 1; flex-direction: row; align-items: center; gap: 12px; color: var(--texto); font-weight: 500; font-size: 1rem; min-height: 44px; }
.itens input[type=checkbox] { width: 24px; height: 24px; min-height: 0; accent-color: var(--ok); flex: none; }
.itens li.feito label > span { text-decoration: line-through; color: var(--suave); }
/* Sincronizar com minhas listas (#118, maquete A): duas seções com caixinhas */
.folha-sinc h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.folha-sinc .sinc-de { margin: -8px 0 0; color: var(--suave); font-size: .9rem; }
.folha-sinc .sinc-rolar { max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.folha-sinc h3 { margin: 6px 0 -4px; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.folha-sinc h3 small { color: var(--suave); font-weight: 500; }
.folha-copiar .itens small { color: var(--suave); font-weight: 500; }
.folha-sinc .itens label { gap: 12px; }
.folha-sinc .sinc-dica { margin: 0; color: var(--suave); font-size: .85rem; }
.itens .icone-btn { font-size: .95rem; opacity: .7; }
.tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tipo { position: relative; } /* o rádio invisível fica dentro do próprio rótulo (sem isso ele media a largura da folha e passava por cima dos vizinhos) */
.tipo input { position: absolute; opacity: 0; }
.tipo span { display: block; text-align: center; padding: 10px 4px; border-radius: 10px; background: var(--superficie-2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto); border: 2px solid transparent; }
.tipo input:checked + span { border-color: var(--acento); }
.menu h3 { margin: 6px 0 0; }
.menu small { font-weight: 400; color: var(--suave); }

/* ---- sugestões ao digitar ---- */
.com-sugestoes { position: relative; }
.sugestoes { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; margin-top: 4px; background: var(--superficie); border: 1.5px solid var(--borda);
  border-radius: 10px; box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.sugestoes[hidden] { display: none; }
.sugestoes button { background: none; border-radius: 0; text-align: left; font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--borda); }
.sugestoes button:last-child { border-bottom: 0; }

/* ---- folhas (dialog) ---- */
dialog.folha {
  width: min(100%, 560px); max-width: 100%; max-height: 92dvh;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--superficie); color: var(--texto); box-shadow: var(--sombra);
}
@media (min-width: 600px) { dialog.folha { margin: auto; border-radius: 20px; } }
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog.folha form, .menu { padding: 22px 20px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
dialog h2 { font-size: 1.3rem; }
.menu .quem { margin: 0; }
.menu .quem span, .sync-info { color: var(--suave); font-size: .9rem; }
.sync-info { margin: 0; }
.menu button { width: 100%; }
progress { width: 100%; height: 12px; accent-color: var(--acento); }

/* ---- aviso rápido ---- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav) + 90px + env(safe-area-inset-bottom)); z-index: 50;
  top: auto; right: auto; margin: 0; border: 0; overflow: visible; /* é popover (camada de cima): sem o inset/margem/borda padrão */
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--texto); color: var(--fundo); font-size: .92rem; box-shadow: var(--sombra);
  transition: opacity .2s, transform .2s;
}
#toast.visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---- grupo (Fase 3) ---- */
.selo.autor { background: color-mix(in srgb, var(--acento) 18%, transparent); color: var(--acento); text-transform: none; letter-spacing: 0; }
.turma, .convites, .placar { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.turma li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--superficie-2); }
.avatar { --tam: 32px; position: relative; flex: none; width: var(--tam); height: var(--tam); border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  font-weight: 700; font-size: calc(var(--tam) * .45); line-height: 1; background: color-mix(in srgb, var(--acento) 25%, transparent); color: var(--acento); }
.avatar.sem-app .ic { width: 72%; height: 72%; }
.chips-sem-app { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sem-app .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 1px solid var(--borda); color: var(--texto); }
.avatar .avatar-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.balao .quem { display: inline-flex; align-items: center; gap: 6px; }
.conta-mais .trocar-foto { padding: 0; min-height: 0; background: none; border-radius: 50%; position: relative; }
.conta-mais .trocar-foto .mini-cam { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento); color: var(--acento-texto); border: 2px solid var(--superficie); }
.conta-mais .trocar-foto .mini-cam .ic { width: 13px; height: 13px; }
.turma .corpo { flex: 1; }
/* Turma com barco (dono, 2026-11-11, maquete B): cada barco num bloco "Tripulação · Fissura I"; linha "Nome · posto" */
.bloco-barco { border: 1px solid var(--borda, rgb(0 0 0 / .1)); border-radius: 16px; padding: 10px; margin: 12px 0; background: var(--superficie); }
.bloco-barco h3 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; }
.bloco-barco h3 .ic { width: 20px; height: 20px; fill: var(--acento); flex: none; }
.bloco-barco .turma { margin: 0; }
.turma .linha-posto { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.turma .linha-posto em { font-style: normal; font-weight: 600; color: var(--suave); }
.turma .linha-posto em.capitao { color: var(--acento); font-weight: 800; }
.turma small { color: var(--suave); margin-left: 4px; }
.convites li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.convites li button { margin-left: auto; }
.placar { counter-reset: p; }
.placar li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--borda); }
.placar li::before { counter-increment: p; content: counter(p) "º"; color: var(--acento); font-weight: 700; margin-right: 6px; }
.placar li b { flex: 1; }
.placar li b .ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--acento); }
.cartao.convite h2 { margin: 4px 0; }
.cartao.convite { margin-bottom: 14px; }
dl.dados { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
dl.dados dt { color: var(--suave); }
dl.dados dd { margin: 0; font-weight: 600; }
button.discreto { background: none; border: 0; color: var(--suave); padding: 4px 8px; min-height: 40px; min-width: 40px; } /* alvo ≥ 40 px (skill ux) */
.selo.frito, .selo.solto { text-transform: none; letter-spacing: 0; }
.selo.frito { background: color-mix(in srgb, var(--sol) 20%, transparent); color: var(--sol); }
.dica-destino { margin: -4px 0 0; font-size: .85rem; }

/* ---- gastos ---- */
.saldos, .acerto { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.saldos li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 6px 2px; border-bottom: 1px solid var(--borda); }
.saldos li span:first-of-type { color: var(--suave); font-size: .9rem; }
.saldos li span:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; }
.saldos .recebe { color: var(--ok); }
.saldos .deve { color: var(--perigo); }
.acerto li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--superficie-2); }
.acerto li span { flex: 1; }
.item.gasto { display: flex; align-items: center; gap: 12px; }
.item.gasto .corpo { flex: 1; display: flex; flex-direction: column; }
.item.gasto .valor { white-space: nowrap; }
.gasto-icone { font-size: 1.5rem; }
.categorias-gasto { grid-template-columns: repeat(3, 1fr); }
fieldset.participantes { border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
fieldset.participantes legend { color: var(--suave); padding: 0 4px; }

/* ---- previsão de atividade ---- */
.lugares { margin-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
.lugares .chip { border: 1px solid var(--borda); color: var(--texto); white-space: nowrap; min-height: 40px; }
.lugares .chip.sel, .lugares .outro-lugar.sel { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.lugares .outro-lugar { width: auto; flex: 0 1 auto; min-width: 0; max-width: 60%; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.dias-previsao { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.dia-prev { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--borda); background: var(--superficie); color: var(--texto); min-height: 0; font-size: .8rem; }
.dia-prev small { color: var(--suave); font-size: .7rem; }
.dia-prev b { font-size: 1.05rem; }
.dia-prev.sel { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento); }
.nv.otima, .nv-texto.otima { color: var(--ok); }
.nv.boa, .nv-texto.boa { color: var(--acento); }
.nv.regular, .nv-texto.regular { color: var(--sol); }
.nv.fraca, .nv-texto.fraca { color: var(--suave); }
.nota-dia { display: flex; align-items: baseline; gap: 10px; }
.nota-dia b { font-size: 2.6rem; line-height: 1; }
.nota-dia span { font-weight: 700; font-size: 1.1rem; }
.grafico-horas { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 120px; align-items: end; margin-top: 10px; border-bottom: 1px solid var(--borda); }
.grafico-horas .barra { height: 100%; padding: 0; margin: 0; border: 0; background: none; min-height: 0; display: flex; align-items: flex-end; cursor: pointer; border-radius: 0; }
.grafico-horas .barra span { display: block; width: 100%; background: var(--acento); opacity: .45; border-radius: 4px 4px 0 0; }
.grafico-horas .barra.melhor span { opacity: 1; }
.grafico-horas .barra.passou span { opacity: .2; }
.grafico-horas .barra.sel span { opacity: 1; background: var(--texto); }
.eixo-horas { display: flex; justify-content: space-between; color: var(--suave); font-size: .7rem; margin: 2px 0 10px; }
.hora-detalhe p { margin: 6px 0; }
.motivos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.motivos li { display: flex; gap: 8px; align-items: baseline; }
.motivos li span { min-width: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.motivos li.mais span { color: var(--ok); }
.motivos li.menos span { color: var(--perigo); }
.dia-prev span { font-size: .72rem; font-weight: 700; }
.info-prev p { margin: 4px 0; }
.info-prev h3 { margin-top: 0; }

/* versão do app: no rodapé (embaixo das abas) e no menu */
.versao-app { grid-column: 1 / -1; text-align: center; font-size: .7rem; line-height: 14px; color: color-mix(in srgb, var(--suave) 75%, var(--texto)); font-variant-numeric: tabular-nums; }
.versao-menu { text-align: center; font-size: .75rem; color: var(--suave); margin: 0; }
.quem .link { font-size: .85rem; }
/* local da pescaria: busca + mini mapa no formulário */
fieldset.lugar-pescaria { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
fieldset.lugar-pescaria legend { font-weight: 600; color: var(--suave); font-size: .9rem; padding: 0; margin-bottom: 4px; }
.busca-local { display: flex; gap: 6px; }
.busca-local input { flex: 1; min-width: 0; }
.busca-local button { flex: none; }
.resultados-local { display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow-y: auto; }
.item.lugar { padding: 10px 12px; box-shadow: none; border: 1px solid var(--borda); }
#mapaPescaria { height: 190px; }
.resultados-local[hidden], #mapaPescaria[hidden] { display: none; }

/* ---- página da pescaria em abas ---- */
.acoes-pescaria { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.acoes-pescaria .primario { flex: 1; }
.atalhos-pescaria { display: flex; gap: 6px; }
.atalhos-pescaria button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 6px 8px; min-width: 56px; font-size: 1.15rem; line-height: 1.1; }
.atalhos-pescaria button span { font-size: .72rem; font-weight: 600; color: var(--suave); }
.abas-pescaria { position: sticky; top: -4px; z-index: 3; display: flex; gap: 2px; overflow-x: auto; margin: 12px -16px 12px; padding: 6px 16px; background: var(--fundo); border-bottom: 1px solid var(--borda); scrollbar-width: none; }
.abas-pescaria::-webkit-scrollbar { display: none; }
/* abas das listas no editor da lista (dono, 2026-11-18, maquete A): nome + feitos/total; a aberta sublinhada; + no fim */
.abas-listas { position: sticky; top: -4px; z-index: 3; display: flex; gap: 2px; overflow-x: auto; margin: -4px -16px 10px; padding: 6px 16px; background: var(--fundo); border-bottom: 1px solid var(--borda); scrollbar-width: none; }
.abas-listas::-webkit-scrollbar { display: none; }
.abas-listas button { flex: none; width: auto; background: none; color: var(--suave); padding: 8px 12px; border-radius: 10px; font-size: .9rem; min-height: 44px; white-space: nowrap; }
.abas-listas button small { font-size: .75rem; opacity: .85; font-variant-numeric: tabular-nums; }
.abas-listas button[aria-selected="true"] { background: var(--superficie-2); color: var(--texto); font-weight: 700; box-shadow: inset 0 -3px 0 var(--acento); }
.abas-listas .nova-aba { min-width: 44px; display: grid; place-items: center; color: var(--acento); }
.abas-listas .nova-aba .ic { width: 22px; height: 22px; }
/* item repetido: o que já estava pisca (dono, 2026-11-18) */
.itens li.repetido { animation: repetido 1.6s ease-out; }
@keyframes repetido { 0%, 40% { box-shadow: 0 0 0 3px var(--acento); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .itens li.repetido { animation: none; outline: 3px solid var(--acento); } }
.abas-pescaria button { flex: 1 0 auto; background: none; color: var(--suave); padding: 8px 10px; border-radius: 10px; font-size: .88rem; min-height: 42px; white-space: nowrap; }
.abas-pescaria .nome-aba { position: relative; display: inline-block; }
/* contador como selo de notificação do celular: bolinha colorida no canto de cima, na diagonal do nome */
.abas-pescaria button:has(small) { padding-right: calc(10px + .9em); }
.abas-pescaria button small { position: absolute; top: -.7em; left: calc(100% - .15em); display: block; box-sizing: border-box; min-width: 1.45em;
  padding: .34em .3em; border-radius: 999px; text-align: center; font-size: .7rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic; /* a caixa fica da altura do algarismo e o padding centra (flex não centrava: sobrava espaço da fonte embaixo) */
  color: var(--suave); background: var(--superficie-2); }
/* vermelho só com novidade da turma (public/js/vistos.js) */
.abas-pescaria button small.novo { color: #fff; background: var(--perigo); box-shadow: 0 0 0 2px var(--fundo); }
.abas-pescaria button[aria-selected="true"] small.novo { box-shadow: 0 0 0 2px var(--superficie); }
.abas-pescaria button[aria-selected="true"] { background: var(--superficie); color: var(--acento); box-shadow: inset 0 -2px 0 var(--acento); }
.blocos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bloco { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); text-align: left; color: var(--texto); font-weight: 400; min-height: 0; }
.bloco .bloco-icone { font-size: 1.3rem; }
.bloco b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bloco span:last-child { color: var(--suave); font-size: .82rem; }
.fab { bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 18px); }
.faixa.instalar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.faixa.instalar span { flex: 1; }
.faixa.instalar .primario { padding: 8px 12px; min-height: 0; }
ol.passos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
/* abas da pescaria cabendo em 360–412 px */
.abas-pescaria { gap: 0; padding: 6px 10px; margin: 10px -16px; }
.abas-pescaria button { flex: 1 1 auto; padding: 8px 5px; font-size: .8rem; }
.abas-pescaria button:has(small) { padding-right: calc(5px + .9em); }
.bloco { padding: 12px; }
.bloco b { font-size: 1.15rem; }
.bloco .bloco-icone { font-size: 1.1rem; }
.atalhos-pescaria button { min-width: 50px; padding: 6px 4px; }

/* ---- música ---- */
.mini-player { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--superficie); border-top: 1px solid var(--borda); box-shadow: 0 -4px 12px rgb(0 0 0 / .06); }
.mini-player[hidden] { display: none; }
.mini-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; padding: 0; text-align: left; color: var(--texto); font-weight: 400; min-height: 44px; }
.mini-info .corpo { display: flex; flex-direction: column; min-width: 0; }
.mini-info b, .mini-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info small { color: var(--suave); }
.mini-capa { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--superficie-2); }
.mini-btn { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; font-size: 1.2rem; background: var(--superficie-2); }
.acoes-musica { display: flex; gap: 8px; margin: 4px 0 10px; }
.acoes-musica .primario { flex: 1; }
.busca-musica input { width: 100%; margin-bottom: 10px; }
.item.musica, .item.grupo { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px; }
.item.musica .corpo, .item.grupo .corpo { flex: 1; }
.item.musica small { color: var(--suave); font-variant-numeric: tabular-nums; }
.item.musica.tocando { box-shadow: inset 3px 0 0 var(--acento), var(--sombra); }
.item.musica.tocando .item-nome { color: var(--acento); }
.lista.musicas, .grupos-musica { gap: 6px; }
.grupos-musica > li > .lista { margin: 6px 0 4px 18px; }
.capa { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--superficie-2); font-size: 1.2rem; }
.tocar-grupo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--acento-texto); flex: none; }
dialog.tocando .menu { align-items: stretch; }
.tocando-capa { display: flex; justify-content: center; }
.capa-grande { width: min(70vw, 280px); aspect-ratio: 1; border-radius: 16px; object-fit: cover; display: grid; place-items: center; background: var(--superficie-2); font-size: 4rem; }
.tocando-texto { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tocando-texto b { font-size: 1.15rem; }
.tocando-texto span { color: var(--suave); }
.tempo { width: 100%; accent-color: var(--acento); }
.tempos { display: flex; justify-content: space-between; color: var(--suave); margin-top: -8px; }
.controles { display: flex; justify-content: space-around; align-items: center; }
.controles button { width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; font-size: 1.3rem; background: var(--superficie-2); }
.controles button.grande { width: 68px; height: 68px; font-size: 1.6rem; }
.controles button .ic { width: 26px; height: 26px; }
.controles button.primario { background: var(--acento); color: var(--acento-texto); }
.controles button.grande .ic { width: 34px; height: 34px; color: inherit; }
.tocar-grupo .ic { width: 22px; height: 22px; }
.controles button.ligado { background: color-mix(in srgb, var(--acento) 25%, transparent); }
.fila { list-style: none; margin: 0; padding: 0; max-height: 30vh; overflow-y: auto; }
.fila button { width: 100%; text-align: left; background: none; padding: 8px 4px; font-weight: 400; color: var(--texto); border-bottom: 1px solid var(--borda); border-radius: 0; min-height: 0; }
.fila small { color: var(--suave); }
.tela.com-player .fab { bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 18px + 58px); }
.selo.privada { background: var(--superficie-2); color: var(--suave); text-transform: none; letter-spacing: 0; }
fieldset.quem-ve { border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
fieldset.quem-ve legend { color: var(--suave); padding: 0 4px; }
.quem-ve-faixa .link { margin-left: 4px; }
/* gastos em lista compacta (uma linha por lançamento; dezenas cabem na tela) */
.acoes-topo.um { grid-template-columns: 1fr; margin-bottom: 4px; }
.linhas-gasto { list-style: none; margin: 0; padding: 0; background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.linhas-gasto li + li { border-top: 1px solid var(--borda); }
.linha-gasto { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 48px; background: none; border-radius: 0; text-align: left; color: var(--texto); font-weight: 400; }
.linha-gasto .gasto-icone { font-size: 1.1rem; width: 24px; text-align: center; flex: none; }
.linha-gasto .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linha-gasto .nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-gasto small { color: var(--suave); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha-gasto .valor { flex: none; font-variant-numeric: tabular-nums; }
.linha-gasto .pend { color: var(--sol); font-size: .7rem; }
h3 small { font-weight: 600; color: var(--suave); text-transform: none; letter-spacing: 0; }
.linha-gasto { padding: 5px 12px; min-height: 42px; line-height: 1.2; }
.linha-gasto .nome { font-size: .92rem; }
.linha-gasto small { font-size: .72rem; }
.linha-gasto .valor { font-size: .92rem; }
.linha-gasto .gasto-icone { font-size: 1rem; }

/* estado do sync: só o ícone, tamanho fixo (nada muda de largura no topo) */
.status { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 0; color: var(--suave); background: transparent; border: 0; }
.status[hidden] { display: none; }
.status::before { content: none; display: none; }
.status svg { fill: currentColor; }
.status.ok { color: var(--ok); }
.status.pendente, .status.offline { color: var(--sol); }
.status.alerta { color: var(--perigo); border-color: var(--perigo); }
/* rede lenta (modo econômico): amarelo escuro no claro, o amarelo da marca no escuro */
.status.economico { color: #9a7b00; }
:root[data-tema=escuro] .status.economico { color: var(--amarelo); }
@media (prefers-color-scheme: dark) { :root:not([data-tema=claro]) .status.economico { color: var(--amarelo); } }
.status.girando { color: var(--acento); }
.status.girando svg { animation: girar 1.1s linear infinite; }
@keyframes girar { to { transform: rotate(-360deg); } }
/* Spotify: conta, marca de baixada, offline */
.sp-conta { margin: 2px 0 10px; color: var(--suave); font-size: .88rem; }
.sp-conta b { color: var(--texto); }
.item-sub .baixada { color: var(--ok); font-weight: 600; }
.sp-acoes { margin: 6px 0 6px 18px; }
.sp-acoes button { min-height: 0; padding: 7px 12px; font-size: .85rem; background: var(--superficie-2); color: var(--texto); }
.sp-acoes button.ligado { color: var(--ok); }
.lista.fora .item { opacity: .6; }
.sp-linha { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sp-linha .corpo { display: flex; flex-direction: column; min-width: 0; }
.sp-linha small { color: var(--suave); }
.escolher-pl { gap: 0; background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); }
.escolher-pl li + li { border-top: 1px solid var(--borda); }
.escolher-pl label { padding: 10px 14px; display: flex; gap: 10px; align-items: center; }
.escolher-pl small { color: var(--suave); }
.fontes + #corpoMusica .sp-conta:first-child { margin-top: 12px; }

/* ---- rádio ---- */
.radio-barra { flex: none; position: relative; display: grid; place-items: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.radio-online { flex: none; display: flex; align-items: center; min-height: 43px; /* mesma altura carregando, vazia e com gente: a lista não pula */ gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 16px; border-bottom: 1px solid color-mix(in srgb, var(--texto) 10%, transparent); font-size: .82rem; }
.radio-online[hidden] { display: none; }
.radio-online .rotulo { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--suave); font-weight: 600; margin-right: 2px; }
.radio-online .rotulo i { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px color-mix(in srgb, #2ecc71 25%, transparent); }
.radio-online .buscando { flex: none; width: 16px; height: 16px; margin: 4px 0; border-radius: 50%; border: 2px solid var(--borda); border-top-color: var(--acento); animation: girar .8s linear infinite; }
.radio-online .rotulo.ninguem { font-weight: 400; } /* não é .vazio: essa é a dos estados vazios (padding grande) */
.radio-online .pessoa { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--superficie-2); white-space: nowrap; }
.radio-barra[hidden] { display: none; }
.radio-barra .botao-radio.falar-grande { width: 76px; height: 76px; margin: 0; border: none; }
.radio-barra .botao-radio.falar-grande .ic { width: 34px; height: 34px; }
.radio-barra .falando { bottom: calc(100% + 4px); }
.config-radio fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.config-radio fieldset:disabled { opacity: .45; }
.faixa.radio-mudo { display: flex; align-items: center; gap: 10px; }
.faixa.radio-mudo .ic { flex: none; width: 1.4rem; height: 1.4rem; }
.faixa.radio-mudo span { flex: 1; }
.faixa.radio-sequencia { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--acento) 18%, var(--fundo)); }
.faixa.radio-sequencia > .ic { flex: none; width: 1.3rem; height: 1.3rem; }
.faixa.radio-sequencia span { flex: 1; }
.faixa.radio-sequencia button { flex: none; padding: 8px 14px; }
.radio-sozinho { margin: 4px 0 10px; color: var(--suave); font-size: .88rem; }
.radio-msgs { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.radio-msgs li { display: flex; flex-direction: column; align-items: flex-start; }
.radio-msgs li.meu { align-items: flex-end; }
.radio-msgs .balao { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } /* segurar = reagir (#16) */
/* reações do rádio: pílula colada embaixo do balão (toque = quem reagiu) e a folha com os 4 emojis */
.reacoes-pilula { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 2px; min-height: 0; margin: -6px 10px 0; padding: 2px 8px;
  border-radius: 999px; background: var(--superficie); box-shadow: var(--sombra); color: var(--texto); font-weight: 400; border: 1px solid var(--borda); }
.reacoes-pilula.minha { border-color: color-mix(in srgb, var(--acento) 55%, transparent); }
.reacoes-pilula .emoji { font-size: .95rem; line-height: 1.2; }
.reacoes-pilula small { font-size: .72rem; font-weight: 700; color: var(--suave); margin-right: 2px; }
.pop-reacoes { position: fixed; z-index: 60; max-width: calc(100vw - 16px); padding: 4px; border-radius: 22px; background: var(--superficie);
  border: 1px solid var(--borda); box-shadow: 0 6px 24px rgb(0 0 0 / .22); animation: pop-reacoes .12s ease-out; }
@keyframes pop-reacoes { from { opacity: 0; transform: scale(.9); } }
.reacoes-escolha { display: flex; gap: 2px; }
.reacoes-escolha button { display: flex; align-items: center; gap: 2px; min-height: 0; padding: 6px 8px; border-radius: 999px; background: transparent; color: var(--texto); }
.reacoes-escolha button[aria-pressed=true] { background: color-mix(in srgb, var(--acento) 20%, transparent); }
.reacoes-escolha .emoji { font-size: 1.6rem; line-height: 1; }
.reacoes-escolha small { font-size: .72rem; font-weight: 700; color: var(--suave); }
.reacoes-quem { list-style: none; margin: 4px 6px 2px; padding: 0; max-height: 30vh; overflow-y: auto; border-top: 1px solid var(--borda); font-size: .85rem; }
.reacoes-quem li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.reacoes-quem .nome { flex: 1; }
.reacoes-quem .emoji { font-size: 1.1rem; }
.balao { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; max-width: 80%; padding: 8px 12px; border-radius: 16px 16px 16px 4px;
  background: var(--superficie); box-shadow: var(--sombra); color: var(--texto); font-weight: 400; text-align: left; min-height: 0; }
.radio-msgs li.meu .balao { border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--acento) 14%, var(--superficie)); }
.radio-msgs li.novo .balao { box-shadow: inset 3px 0 0 var(--sol), var(--sombra); }
.balao .quem { font-size: .78rem; font-weight: 700; color: var(--acento); }
.balao .onda { font-size: 1rem; font-variant-numeric: tabular-nums; }
.balao .play { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--acento); color: var(--acento-texto); font-size: .8rem; margin-right: 4px; }
.balao.tocando .play { background: var(--sol); }
.balao small { color: var(--suave); font-size: .72rem; }
/* balão de áudio enxuto: [play 0:04 · hora] numa linha só, o nome em cima; largura pelo conteúdo */
.radio-msgs .balao:not(.balao-texto) { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px; row-gap: 2px; min-width: 0; padding: 6px 10px 6px 8px; }
.radio-msgs .balao:not(.balao-texto) .quem { grid-column: 1 / -1; padding-left: 2px; }
.radio-msgs .balao:not(.balao-texto) .onda { display: inline-flex; align-items: center; gap: 6px; }
.radio-msgs .balao:not(.balao-texto) .play { margin-right: 0; }
.radio-msgs .balao:not(.balao-texto) small { justify-self: end; align-self: end; }
.radio-msgs .balao-texto { min-width: 0; padding: 6px 12px; }
.radio-msgs .balao-texto small { align-self: flex-end; }
/* pontos no rádio: cartão com os nomes e "Ver e salvar no mapa" */
.radio-msgs .balao-pontos { min-width: 230px; }
.balao-pontos .pontos-titulo { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.radio-msgs .balao-pontos small.pontos-nomes { align-self: stretch; margin: 2px 0 4px; font-size: .8rem; }
.balao-pontos [data-ver-pontos] { align-self: stretch; min-height: 44px; margin: 4px 0 2px; }
.com-selo { position: relative; }
.selo-n { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--perigo); color: #fff; font-size: .68rem; line-height: 18px; padding: 0 4px; }

/* dock: 4 abas, ou 4 + o botão do rádio no centro (pescaria em grupo acontecendo) */
.abas-baixo.sem-centro { grid-template-columns: repeat(4, 1fr); }
.centro-dock[hidden] { display: none; }
.centro-dock { display: grid; place-items: center; }
.botao-radio { position: relative; width: 58px; height: 58px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--acento); color: var(--acento-texto); box-shadow: 0 4px 14px color-mix(in srgb, var(--acento) 45%, transparent); border: 3px solid var(--superficie); }
.botao-radio svg { fill: currentColor; }
.botao-radio.ativa { background: var(--texto); }
.botao-radio .selo-n { top: -2px; right: -2px; }
.abas-baixo a.botao-radio, .abas-baixo .botao-radio { color: var(--acento-texto); }

/* botão do centro: segurar para falar */
.botao-radio { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; padding: 0; min-height: 0; }
.botao-radio.gravando { background: var(--perigo); transform: scale(1.12); box-shadow: 0 0 0 8px color-mix(in srgb, var(--perigo) 30%, transparent); }
.botao-radio .selo-n[hidden] { display: none; }
/* Rádio desligado (aqui ou na pescaria): o microfone cortado, apagado; câmera e story continuam */
.centro-dock.radio-off .botao-radio { background: var(--superficie-2); color: var(--suave); box-shadow: none; }
.centro-dock { position: relative; }
.falando { position: absolute; bottom: calc(100% + 30px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: var(--perigo); color: #fff; font-size: .85rem; font-weight: 700; box-shadow: var(--sombra); pointer-events: none; }
.falando[hidden] { display: none; }
.falando { z-index: 20; } .abas-baixo { position: relative; z-index: 6; }
.menu a.botao { display: block; text-align: center; padding: 12px; border-radius: 12px; background: var(--superficie-2); color: var(--texto); text-decoration: none; font-weight: 600; }

/* ---- ícones (MDI) ---- */
.ic { width: 1.2em; height: 1.2em; fill: currentColor; vertical-align: -0.22em; flex: none; }
.ic.grande { width: 2.4em; height: 2.4em; }
.vazio .grande .ic, .grande > .ic { width: 3.2rem; height: 3.2rem; color: var(--acento); }
.bloco-icone .ic { width: 1.5rem; height: 1.5rem; color: var(--acento); }
.atalhos-pescaria .ic, .agora-atalhos .ic { width: 1.5rem; height: 1.5rem; }
.gasto-icone .ic { color: var(--acento); }
.sem-foto .ic, .sem-capa .ic { width: 55%; height: 55%; color: var(--suave); }
.pino .ic { width: 18px; height: 18px; fill: #fff; vertical-align: middle; }
.icone-btn .ic, .mapa-botoes .ic { width: 22px; height: 22px; }
.tipo .ic { width: 1.6rem; height: 1.6rem; color: var(--acento); }

/* ---- Início: pescaria agora ---- */
.cartao.agora { border: 2px solid var(--acento); }
.agora-rotulo { margin: 0; color: var(--acento); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.cartao.agora h2 { margin: 2px 0; }
.cartao.agora h2 a { color: var(--texto); text-decoration: none; }
.grande-acao { width: 100%; min-height: 56px; font-size: 1.05rem; margin: 10px 0 8px; }
.agora-atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.agora-atalhos button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: .78rem; min-height: 0; }

/* ---- Mais ---- */
.conta-mais { display: flex; align-items: center; gap: 12px; }
.conta-mais .ic.grande { color: var(--acento); }
.conta-mais .corpo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.conta-mais small { color: var(--suave); overflow: hidden; text-overflow: ellipsis; }
.mais-lista { gap: 0; background: var(--superficie); border-radius: var(--raio); box-shadow: var(--sombra); overflow: hidden; }
.mais-lista li + li { border-top: 1px solid var(--borda); }
.item.mais-item { flex-direction: row; align-items: center; gap: 14px; box-shadow: none; border-radius: 0; padding: 12px 14px; }
.item.mais-item > .ic { width: 1.5rem; height: 1.5rem; color: var(--acento); }
.mais-lista li.apk-novo .item-nome { color: var(--acento); font-weight: 700; }
.cartao.agora p, .cartao.agora h2 { margin-top: 2px; margin-bottom: 2px; }
.cartao.agora .item-sub { margin-top: 4px; }
.cartao.conta-mais { flex-direction: row; align-items: center; text-align: left; margin-bottom: 12px; }
.cartao.conta-mais .corpo { align-items: flex-start; }
.cartao.conta-mais { cursor: pointer; }
.conta-mais > .ic { flex: none; width: 1.4rem; height: 1.4rem; color: var(--suave); }
.conta-mais small.falta { color: var(--acento); font-weight: 600; }
/* folha "Seu perfil" (foto, nome, celular, texto e tema) */
.perfil-folha .conta-mais button { width: auto; }
.perfil-folha .mais-lista { box-shadow: none; border: 1px solid var(--borda); }
.mais-lista + h3 { margin-top: 18px; }
.cartao.agora { gap: 2px; padding: 16px; } .cartao.conta-mais { gap: 12px; padding: 14px 16px; }

/* mini player no estilo do Spotify: cartão arredondado em cima da dock, com a barrinha de progresso embaixo */
.mini-player { position: relative; margin: 0 8px 6px; padding: 6px 6px 8px 8px; border: 0; border-radius: 10px; gap: 4px;
  background: color-mix(in srgb, var(--acento) 22%, var(--superficie)); box-shadow: 0 4px 14px rgb(0 0 0 / .18); }
.mini-player[data-fonte="spotify"] { background: color-mix(in srgb, #1db954 16%, var(--superficie)); }
.mini-capa { width: 42px; height: 42px; border-radius: 6px; }
.mini-capa svg { fill: currentColor; color: var(--suave); }
.mini-info b { font-size: .9rem; }
.mini-info small { font-size: .76rem; }
.mini-fonte { color: #1db954; font-weight: 700; }
.mini-btn { width: 40px; height: 40px; background: none; color: var(--texto); }
.mini-btn svg { fill: currentColor; }
.mini-fechar { width: 30px; color: var(--suave); }
.mini-progresso { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--texto) 18%, transparent); overflow: hidden; }
.mini-progresso span { display: block; height: 100%; width: 0; background: var(--texto); transition: width .9s linear; }
.tela.com-player .fab { bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 18px + 64px); }

/* Convite com QR code e leitor pela câmera */
.convite-qr .qr { background: #fff; border-radius: 12px; padding: 8px; width: min(72vw, 280px); margin: 4px auto 0; }
.convite-qr .qr svg { display: block; width: 100%; height: auto; }
.convite-qr .dica { text-align: center; }
dialog.leitor-qr { inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
dialog.leitor-qr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
dialog.leitor-qr .mira { position: absolute; left: 50%; top: 45%; width: min(66vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 3px solid rgb(255 255 255 / .9); border-radius: 18px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .45); }
dialog.leitor-qr p { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; margin: 0; font-weight: 600; text-shadow: 0 1px 3px #000; }
dialog.leitor-qr .botoes-leitor { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; gap: 8px; justify-content: center; }
dialog.leitor-qr .botoes-leitor > * { background: rgb(255 255 255 / .18); color: #fff; }

/* Faixas com ✕ (fechar o aviso) */
.fechavel { display: flex; align-items: flex-start; gap: 6px; padding-right: 6px; }
.fechavel .faixa-corpo { flex: 1; color: inherit; text-decoration: none; }
.faixa-x { flex: none; width: 40px; height: 40px; min-height: 0; padding: 0; margin: -10px -6px -10px 0; border-radius: 50%; background: transparent; color: inherit; opacity: .7; display: grid; place-items: center; }
.faixa-x .ic { width: 18px; height: 18px; }

/* Ao vivo: pescaria acontecendo (farol pulsando) */
.ao-vivo { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 999px; vertical-align: .15em;
  background: color-mix(in srgb, #e53935 14%, transparent); color: #e53935; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.ao-vivo i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #e53935; flex: none; }
.ao-vivo i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #e53935; animation: farol 1.6s ease-out infinite; }
@keyframes farol { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ao-vivo i::after { animation: none; } }
h1 .ao-vivo { font-size: .55rem; }
.radio-rodape { text-align: center; margin: 14px 0 6px; color: var(--suave); font-size: .85rem; }
.radio-rodape small { color: var(--suave); }

/* Título com selo: o nome corta com reticências, o selo fica sempre à vista */
.titulo h1.com-selo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; }
.titulo h1.com-selo .nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.titulo h1.com-selo .ao-vivo { flex: none; font-size: .6rem; }
/* Pescaria ao vivo: o farol vira um selo no canto do nome; editar fica na engrenagem do topo (#36) */
.titulo h1.com-selo:has(.selo-nome) { gap: 2px; }
.selo-nome { position: relative; flex: none; align-self: flex-start; width: 10px; height: 10px; margin: 3px 0 0 3px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 2px var(--fundo); }
.selo-nome::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #e53935; animation: farol 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .selo-nome::after { animation: none; } }
.topo .engrenagem, .topo .acao-topo { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--texto); display: grid; place-items: center; }
.topo .engrenagem .ic, .topo .acao-topo .ic { width: 24px; height: 24px; }

/* Registrar captura discreto: "+ câmera peixe" no lugar do botão grande */
.atalhos-pescaria { flex: 1; }
.atalhos-pescaria button { flex: 1; }
.nova-captura .ic.foto-peixe { width: 1.75rem; height: 1.75rem; color: var(--acento); }
.agora-atalhos { margin-top: 12px; }
.agora-atalhos .nova-captura, .atalhos-pescaria .nova-captura { justify-content: center; }

/* Ao vivo só com a bolinha pulsando (pedido do dono: o texto sobrava) */
.ao-vivo { padding: 0; background: none; font-size: 0; gap: 0; width: 8px; height: 8px; justify-content: center; }
.ao-vivo i { width: 8px; height: 8px; }
.ao-vivo i::after { animation-name: farol-discreto; }
@keyframes farol-discreto { from { transform: scale(1); opacity: .55; } to { transform: scale(2.4); opacity: 0; } }
/* Discreto, no canto de cima à direita (pedido do dono: no meio do título parecia um ponto perdido) */
.topo { position: relative; }
.titulo h1.com-selo { font-size: 1.45rem; }
.titulo h1.com-selo .ao-vivo { position: absolute; top: 12px; right: 14px; }
.cartao.agora { position: relative; }
.cartao.agora h2 .ao-vivo { position: absolute; top: 14px; right: 14px; }
.cartao.agora h2 { padding-right: 18px; }
button.item:has(.ao-vivo) { position: relative; }
.item-nome .ao-vivo { position: absolute; top: 12px; right: 12px; }

/* escolher o mapa (folha) */
.escolher-mapa .item { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; box-shadow: none; }
.escolher-mapa .item > .ic { flex: none; width: 1.5rem; height: 1.5rem; color: var(--acento); }
.escolher-mapa .item .corpo { flex: 1; display: flex; flex-direction: column; }
.escolher-mapa .item .item-sub { color: var(--suave); font-size: .82rem; font-weight: 400; }
.escolher-mapa .item.ligado { outline: 2px solid var(--acento); }
.escolher-mapa .item .ic.marcado { color: var(--acento); }

/* ---- galeria da pescaria ---- */
.acoes-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.acoes-galeria.segunda { grid-template-columns: 1fr 1fr; }
.acoes-galeria:not(.segunda) > * { flex-direction: column; gap: 4px; }
.acoes-galeria .ic { width: 1.4rem; height: 1.4rem; }
.acoes-galeria > button, .acoes-galeria > .botao { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; min-height: 44px;
  border-radius: 12px; background: var(--superficie-2); color: var(--texto); font-weight: 600; font-size: .92rem; text-align: center; }
.acoes-galeria > .primario { background: var(--acento); color: var(--acento-texto); }
.grade-midia { margin-bottom: 8px; }
.midia { position: relative; padding: 0; min-height: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--superficie-2); }
.midia img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; -webkit-touch-callout: none; user-select: none; } /* segurar = apagar (sem o menu de imagem do Android) */
.midia img { -webkit-user-drag: none; }
.midia .marca-selecao { display: none; position: absolute; z-index: 2; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgb(0 0 0 / .25); place-items: center; }
.midia .marca-selecao .ic { width: 16px; height: 16px; fill: #fff; opacity: 0; }
.selecionando .midia .marca-selecao { display: grid; }
.midia.selecionada .marca-selecao { background: var(--acento); border-color: var(--acento); }
.midia.selecionada .marca-selecao .ic { opacity: 1; }
.midia.selecionada img { transform: scale(.86); border-radius: 8px; transition: transform .12s; }
.barra-selecao { position: fixed; left: 12px; right: 12px; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 20px); /* acima da dock (e do botão do rádio, que sobe 22 px) */ border-radius: 14px; background: var(--superficie); box-shadow: var(--sombra); max-width: 100%; box-sizing: border-box; font-size: .9rem; }
.barra-selecao[hidden] { display: none; }
.faixa.resumo-import { display: flex; align-items: flex-start; gap: 8px; }
.faixa.resumo-import button { flex: none; margin-left: auto; }
.selecionando { padding-bottom: 72px; } /* a última fileira não fica atrás da barra */
.tela.com-player .barra-selecao { bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 76px); } /* empilha em cima do mini player */
.barra-selecao span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-selecao button { flex: none; white-space: nowrap; padding: 8px 10px; }
.barra-selecao .perigo-cheio { background: #c62828; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.midia .selo-video { position: absolute; left: 50%; transform: translateX(-50%); bottom: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 3px; border-radius: 999px;
  background: rgb(0 0 0 / .6); color: #fff; font-size: .72rem; font-weight: 700; }
.midia .selo-video .ic { width: 14px; height: 14px; }
.midia .selo-captura { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; }
.midia .selo-captura .ic { width: 14px; height: 14px; }
.midia .autor-midia { position: absolute; right: 4px; bottom: 4px; }
.midia .autor-midia .avatar { border: 2px solid #fff; }
dialog.visor video { max-width: 100vw; max-height: calc(100dvh - 76px - env(safe-area-inset-bottom)); display: block; margin: 0 auto; } /* os controles do vídeo ficam acima da barra de ações */
dialog.visor .visor-acoes { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 14px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
dialog.visor .visor-acoes:empty { display: none; }
dialog.visor .visor-acoes button { background: rgb(255 255 255 / .18); color: #fff; border-radius: 999px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; }
dialog.visor .visor-acoes button.perigo { background: #c62828; color: #fff; }
dialog.visor .visor-acoes .de-quem { color: rgb(255 255 255 / .85); display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }

/* gravador (story: em pé, até 60 s) */
dialog.gravador { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
dialog.gravador video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* o que aparece = o que grava */
dialog.gravador video.revisao { object-fit: contain; background: #000; }
.topo-gravador { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 12px 12px; }
.topo-gravador button { width: 44px; height: 44px; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; padding: 0; min-height: 0; }
.tempo-gravador { font-variant-numeric: tabular-nums; font-weight: 700; background: rgb(0 0 0 / .45); padding: 4px 10px; border-radius: 999px; }
.barra-gravador { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgb(255 255 255 / .2); }
.barra-gravador i { display: block; height: 100%; width: 0; background: #e53935; }
.base-gravador { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: center; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
.base-gravador .rec { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: transparent; padding: 0; display: grid; place-items: center; min-height: 0; }
.base-gravador .rec span { width: 58px; height: 58px; border-radius: 50%; background: #e53935; transition: all .2s; }
.base-gravador .rec.gravando span { width: 30px; height: 30px; border-radius: 8px; }
.base-gravador .rec[hidden], .base-gravador .depois[hidden] { display: none; }
.base-gravador .depois { display: flex; gap: 10px; width: 100%; }
.base-gravador .depois button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
/* câmera do app (gravador.js): modos Galeria · Captura · Foto · Story, arrastar para o lado */
/* Foto da medida (escolherMedida.js, #115): uma foto da régua por vez, em tela cheia, para comparar e escolher uma */
dialog.escolher-medida { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; }
.escolher-medida .em-palco { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.escolher-medida .em-palco img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; }
.escolher-medida .em-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 12px 12px; background: linear-gradient(rgb(0 0 0 / .7), transparent); }
.escolher-medida .em-topo button { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; display: grid; place-items: center; flex: none; }
.escolher-medida .em-titulo { display: grid; line-height: 1.25; }
.escolher-medida .em-titulo span { font-size: .85rem; opacity: .85; }
.escolher-medida .em-seta { position: absolute; top: 50%; z-index: 2; width: 44px; height: 64px; min-height: 0; margin-top: -32px; padding: 0; border-radius: 12px; background: rgb(0 0 0 / .4); color: #fff; font-size: 2rem; line-height: 1; }
.escolher-medida .em-ant { left: 6px; } .escolher-medida .em-prox { right: 6px; }
.escolher-medida .em-seta[hidden] { display: none; }
.escolher-medida.ampliada .em-seta, .escolher-medida.ampliada .em-dica { visibility: hidden; }
.escolher-medida .em-base { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 10px; padding: 24px 16px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .75) 30%); }
.escolher-medida .em-info, .escolher-medida .em-dica { margin: 0; font-size: .85rem; text-align: center; text-shadow: 0 1px 3px #000; }
.escolher-medida .em-info { font-weight: 700; font-variant-numeric: tabular-nums; }
.escolher-medida .em-tiras { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 2px; }
.escolher-medida .em-tiras button { flex: none; width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #222; opacity: .7; }
.escolher-medida .em-tiras button.sel { border-color: #fff; opacity: 1; }
.escolher-medida .em-tiras img { width: 100%; height: 100%; object-fit: cover; }
.escolher-medida .em-usar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; font-size: 1.05rem; }
dialog.camera-app { touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
dialog.camera-app video.ao-vivo-cam { object-fit: cover; }
dialog.camera-app[data-cam-modo="galeria"] video.ao-vivo-cam { filter: blur(14px) brightness(.6); }
dialog.camera-app .base-gravador { gap: 12px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
.camera-app .vao { width: 44px; }
.camera-app .clarao { position: absolute; inset: 0; background: #fff; opacity: .75; pointer-events: none; }
.camera-app .clarao[hidden], .camera-app .tempo-gravador[hidden], .camera-app .linha-disparo[hidden] { display: none; }
.camera-app .dica-camera { margin: 0; font-size: .9rem; font-weight: 600; text-align: center; text-shadow: 0 1px 3px #000; }
.camera-app.gravando .dica-camera, .camera-app.gravando .modos-camera, .camera-app.gravando .lateral { visibility: hidden; }
.camera-app .linha-disparo { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.camera-app .lateral { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; display: grid; place-items: center; }
.camera-app .rec span { display: grid; place-items: center; }
.camera-app:not([data-cam-modo="story"]) .rec span { background: #fff; color: #0b6e6e; }
.camera-app .rec span .ic { width: 28px; height: 28px; }
.camera-app .modos-camera { position: relative; width: 100%; height: 40px; overflow: hidden; }
.camera-app .fita { position: absolute; left: 50%; top: 0; display: flex; transition: transform .2s; }
.camera-app .fita button { background: none; color: rgb(255 255 255 / .6); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; padding: 8px 12px; min-height: 40px; white-space: nowrap; }
.camera-app .fita button.sel { color: #fff; }

/* melhores momentos (stories) */
dialog.momentos { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.barras-momentos { position: absolute; z-index: 3; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; }
.barras-momentos span { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .3); overflow: hidden; }
.barras-momentos i { display: block; height: 100%; width: 0; background: #fff; }
.fechar-momentos { position: absolute; z-index: 3; top: max(22px, calc(env(safe-area-inset-top) + 12px)); right: 10px; width: 44px; height: 44px; border-radius: 50%; padding: 0; background: rgb(0 0 0 / .35); color: #fff; min-height: 0; }
.palco { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.cena-m { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: grid; place-items: center; overflow: hidden;
  isolation: isolate; } /* cada cena é uma camada só: a figurinha/cartão (z-index 2) da cena que sai não fica por cima da que entra */
.cena-m.entrou { opacity: 1; }
/* A foto inteira (contain) e ela mesma desfocada atrás; movimento bem leve (antes o "cover" + zoom cortava quase tudo) */
.cena-m img, .cena-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cena-m img.fundo-momento { object-fit: cover; filter: blur(28px) brightness(.55); transform: scale(1.15); animation: none; }
.cena-video video { object-fit: contain; background: transparent; }
.cena-m img:not(.fundo-momento) { animation: 4.8s ease-out forwards; }
.cena-m img.ken-0 { animation-name: ken0; } .cena-m img.ken-1 { animation-name: ken1; } .cena-m img.ken-2 { animation-name: ken2; } .cena-m img.ken-3 { animation-name: ken3; }
@keyframes ken0 { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes ken1 { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes ken2 { from { transform: scale(1.03) translateX(-1%); } to { transform: scale(1.03) translateX(1%); } }
@keyframes ken3 { from { transform: scale(1.01) translateY(1%); } to { transform: scale(1.04) translateY(-1%); } }
dialog.momentos.pausado .cena-m img { animation-play-state: paused; }
/* foto de captura pronta num canvas (cartaoCaptura.js canvasPronta): como a foto, com o mesmo zoom leve */
.cena-m canvas.pronta-m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: 4.8s ease-out forwards; }
.cena-m canvas.ken-0 { animation-name: ken0; } .cena-m canvas.ken-1 { animation-name: ken1; } .cena-m canvas.ken-2 { animation-name: ken2; } .cena-m canvas.ken-3 { animation-name: ken3; }
dialog.momentos.pausado .cena-m canvas.pronta-m { animation-play-state: paused; }
.cartao-momentos { background: radial-gradient(circle at 30% 20%, #1f6b62, #0f2a26 70%); text-align: center; padding: 24px; }
.cartao-momentos div { display: flex; flex-direction: column; gap: 10px; animation: subir 1s ease both; }
.cartao-momentos b { font-size: 2rem; line-height: 1.15; }
.cartao-momentos span { color: rgb(255 255 255 / .8); font-size: 1.05rem; }
@keyframes subir { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Assinatura de quem tirou a foto/vídeo no app (dono, 2026-11-12, maquete B): câmera + nome manuscrito com traço, acima da
   marca d'água. Fonte Dancing Script 600 (public/vendor, OFL 1.1) */
@font-face { font-family: 'Assinatura'; src: url(/vendor/dancing-script-600-latin/dancing-script-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
.assinatura-m { position: absolute; z-index: 2; right: 22px; bottom: max(94px, calc(env(safe-area-inset-bottom) + 82px)); max-width: calc(100% - 44px);
  display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 2px 6px rgb(0 0 0 / .6); pointer-events: none; }
.assinatura-m svg { width: 20px; height: 20px; flex: none; fill: #fff; opacity: .85; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
.assinatura-m b { font: 600 30px 'Assinatura', cursive; border-bottom: 1.5px solid rgb(255 255 255 / .7); padding: 0 4px 2px;
  text-align: right; line-height: 1.15; overflow-wrap: anywhere; }

/* Opção com interruptor (padrão Android / One UI): texto à esquerda, chave à direita, a linha inteira toca */
.opcao { display: flex; flex-direction: row; align-items: center; gap: 16px; color: var(--texto); font-size: 1rem; padding: 12px 2px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opcao > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.opcao > span small { color: var(--suave); font-size: .82rem; font-weight: 400; }
.opcao + .opcao, fieldset > .opcao:first-child { border-top: 1px solid var(--borda); }
/* nível do lago (folha do mapa, lagos.js): logo abaixo do interruptor da profundidade */
.nivel-lago { display: flex; flex-direction: column; gap: 4px; padding: 0 2px 12px; text-align: left; }
.nivel-lago[hidden] { display: none; }
.nivel-lago > label { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.nivel-campo { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.nivel-campo input { width: 76px; text-align: right; padding: 10px 12px; font-size: 1rem; }
.nivel-lago small { color: var(--suave); font-size: .82rem; line-height: 1.35; }
.nivel-lago small button.link { font-size: .82rem; text-align: left; }
.popup-prof { margin: 0 0 6px; font-size: .95rem; line-height: 1.35; }
.popup-prof[hidden] { display: none; }
.popup-prof svg { width: 18px; height: 18px; fill: #1565c0; vertical-align: -3px; margin-right: 4px; }
.popup-prof b { white-space: nowrap; }
.popup-prof small { color: var(--suave); font-size: .82rem; white-space: nowrap; } /* uma linha: 43 m · Nível atual: 40,8% (dono, 2026-11-15) */
input.interruptor { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; min-height: 0; margin: 0; padding: 0;
  border: 2px solid var(--suave); border-radius: 999px; background: var(--superficie-2); box-shadow: none; cursor: pointer; transition: background .2s, border-color .2s; }
input.interruptor::before { content: ''; position: absolute; top: 50%; left: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--suave);
  transform: translateY(-50%); transition: left .2s, width .2s, height .2s, background .2s; }
input.interruptor:checked { background: var(--acento); border-color: var(--acento); }
input.interruptor:checked::before { left: 24px; width: 22px; height: 22px; background: var(--acento-texto); }
input.interruptor:focus { box-shadow: none; }
input.interruptor:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
fieldset:disabled .opcao { cursor: default; }

/* ---- navegação na água ---- */
.pino-pesqueiro { background: var(--sol); color: var(--sol-texto); }
.pino.pino-pesqueiro .ic { fill: var(--sol-texto); }
.pino-galhada { background: #6d4c2f; }
.pino-pedra { background: #546e7a; }
.pino-rampa { background: #1976d2; }
.pino-pousada { background: #e65100; }
.pino-perigo { background: #d32f2f; }
.pino-outro { background: #7e57c2; }
.pino-ilha { background: #2e7d32; }
/* ponto de terra submerso no nível de hoje (opção A): transparente, água com crista branca até a metade */
.pino.submerso { position: relative; overflow: hidden; opacity: .6; }
.pino .agua-pino { position: absolute; inset: -50%; transform: rotate(45deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 6 Q3 0 6 3 T12 3 V6Z' fill='%230d47a1' fill-opacity='.9'/%3E%3Cpath d='M0 6 Q3 0 6 3 T12 3' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x 0 calc(50% - 3px) / 12px 6px, linear-gradient(to bottom, transparent 50%, rgb(13 71 161 / .9) 50%); }
.pino-flutuante { background: #00838f; }
.pino-balsa { background: #3949ab; }
.pino .ic { width: 18px; height: 18px; fill: #fff; }
.pino-turma { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.pino-turma.velho { opacity: .55; }
.nav-painel { position: absolute; z-index: 500; top: 10px; left: 10px; right: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 16px; background: var(--superficie); box-shadow: var(--sombra); }
.nav-painel[hidden] { display: none; }
.nav-seta { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); }
.nav-seta svg { width: 34px; height: 34px; fill: var(--acento-texto); transition: transform .3s; }
.nav-seta.norte { background: var(--suave); }
.nav-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-texto b { font-size: 1.5rem; line-height: 1.1; }
.nav-texto .nav-sub { font-size: .85rem; color: var(--suave); }
.nav-texto small { font-size: .8rem; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-parar { flex: none; width: 40px; height: 40px; border-radius: 50%; padding: 0; min-height: 0; background: var(--superficie-2); }
.escolher-mapa .opcao { border-top: 1px solid var(--borda); }
.mapa-botoes button.gravando { background: #e53935; color: #fff; }
.grava-chip { position: absolute; z-index: 500; left: 12px; right: 86px; bottom: 20px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px;
  border-radius: 999px; background: var(--superficie); box-shadow: var(--sombra); font-weight: 600; font-size: .9rem; }
.grava-chip[hidden] { display: none; }
.grava-chip i { width: 10px; height: 10px; border-radius: 50%; background: #e53935; animation: pulsar 1.2s infinite; flex: none; }
.grava-chip button { margin-left: auto; background: #e53935; color: #fff; padding: 6px 14px; border-radius: 999px; min-height: 0; font-weight: 700; }
.grava-chip:not([hidden]) ~ .mapa-dica { display: none; }
.nav-vel { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 4px 6px; border-radius: 12px; background: var(--superficie-2); }
.nav-vel b { font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nav-vel small { font-size: .7rem; color: var(--suave); }
.importar .botao { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--acento); color: var(--acento-texto); font-weight: 700; }
.previa-importar { display: flex; flex-direction: column; gap: 8px; }
.previa-importar p { margin: 0; }
.colar-coord { display: flex; gap: 8px; }
.colar-coord input { flex: 1; min-width: 0; }
.colar-coord button { flex: none; width: 48px; padding: 0; display: grid; place-items: center; }
.trilha-momentos { position: absolute; z-index: 3; top: max(22px, calc(env(safe-area-inset-top) + 12px)); left: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: rgb(0 0 0 / .35); color: #fff; font-weight: 700; font-size: .85rem; min-height: 0; }
.trilha-momentos .ic { width: 18px; height: 18px; }
.credito-trilha { position: absolute; left: 16px; right: 16px; bottom: max(24px, env(safe-area-inset-bottom)); color: rgb(255 255 255 / .6); font-size: .7rem; text-align: center; }
.escolher-trilha .item { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; box-shadow: none; }
.escolher-trilha .item > .ic { flex: none; width: 1.4rem; height: 1.4rem; color: var(--acento); }
.escolher-trilha .item .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.escolher-trilha .item .item-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.escolher-trilha .item .item-sub { color: var(--suave); font-size: .8rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.escolher-trilha .item.ligado { outline: 2px solid var(--acento); }
.escolher-trilha .lista-trilhas { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow: auto; }
dialog.momentos dialog.folha { color: var(--texto); }

/* melhores momentos: abertura (foto do maior peixe) e colagem final */
.marca-momentos { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .9); }
.marca-momentos img { width: 26px; height: 26px; border-radius: 7px; }
.abertura-momentos { place-items: end stretch; }
.fundo-abertura { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: abertura-zoom 6s ease-out forwards; }
.fundo-abertura.sem-foto { background: radial-gradient(circle at 25% 20%, #00a59d, #012826 70%); animation: none; }
@keyframes abertura-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.abertura-momentos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .35), transparent 30%, transparent 45%, rgb(1 40 38 / .92)); }
.texto-abertura { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 0 24px max(70px, calc(env(safe-area-inset-bottom) + 56px)); }
.texto-abertura h1 { margin: 4px 0 0; font-size: 2.6rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 16px rgb(0 0 0 / .45); animation: subir .9s .2s ease both; }
.texto-abertura p { margin: 0; font-size: 1.05rem; color: rgb(255 255 255 / .85); animation: subir .9s .45s ease both; }
.texto-abertura .marca-momentos { animation: subir .9s ease both; }
.numeros-momentos { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #ffd21c; color: #1f2d33; font-weight: 800; font-size: .85rem; animation: subir .9s .7s ease both; }
.colagem-momentos { background: #012826; place-items: center; }
.grade-colagem { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-auto-rows: 1fr; gap: 3px; padding: 3px; }
.grade-colagem img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; opacity: 0; animation: peca .5s ease forwards; }
@keyframes peca { from { opacity: 0; transform: scale(.7) rotate(-3deg); } to { opacity: .55; transform: none; } }
.texto-colagem { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 26px; margin: 0 20px; border-radius: 22px; text-align: center;
  background: rgb(1 40 38 / .82); backdrop-filter: blur(6px); box-shadow: 0 10px 40px rgb(0 0 0 / .4); animation: subir 1s 1.2s ease both; }
.texto-colagem b { font-size: 2rem; line-height: 1.1; }
.texto-colagem span { color: rgb(255 255 255 / .85); }

/* as regras de .cena-m img (foto inteira, por cima de tudo) não valem para o fundo da abertura, o ícone da marca e a colagem */
.cena-m img.fundo-abertura { object-fit: cover; }
.cena-m .marca-momentos img, .cena-m .grade-colagem img, .cena-m .assinatura-app img, .marca-dagua img { position: static; inset: auto; }
.cena-m .marca-momentos img { width: 26px; height: 26px; }
.cena-m .grade-colagem img { width: 100%; height: 100%; object-fit: cover; }
/* crédito do app: marca-d'água em todas as cenas e assinatura no fim */
.marca-dagua { position: absolute; z-index: 3; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 999px; background: rgb(0 0 0 / .32); color: rgb(255 255 255 / .9); font-size: .72rem; font-weight: 800; letter-spacing: .04em; pointer-events: none; }
.marca-dagua img { width: 20px; height: 20px; border-radius: 6px; }
.assinatura-app { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .18); }
.assinatura-app img { width: 44px; height: 44px; border-radius: 12px; }
.assinatura-app b { font-size: 1rem; }
.assinatura-app small { color: rgb(255 255 255 / .75); font-size: .8rem; }
.cena-m .grade-colagem img { opacity: 0; animation: peca .5s ease forwards; }
.grade-colagem canvas { position: static; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; min-width: 0; min-height: 0; }
.credito-trilha { bottom: max(52px, calc(env(safe-area-inset-bottom) + 44px)); }

/* capa dos melhores momentos (sem foto): degradê da marca, anzóis da marca (marca.svg) ao fundo, ondas animadas */
.abertura-momentos { background: radial-gradient(120% 90% at 85% 10%, #0b6b63 0%, #01403b 38%, #012826 75%); place-items: center start; overflow: hidden; }
.abertura-momentos::after { display: none; }
.cena-m img.ocelo-capa { position: absolute; inset: auto; top: -6%; right: -14%; width: 90%; height: auto; object-fit: contain; opacity: .14; transform: rotate(-12deg);
  animation: ocelo-gira 9s ease-out forwards; }
@keyframes ocelo-gira { from { transform: rotate(-20deg) scale(1.08); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: .14; } }
.ondas-capa { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26%; }
.ondas-capa path { transform-box: fill-box; }
.ondas-capa .onda-1 { fill: rgb(0 201 192 / .22); animation: onda 9s linear infinite; }
.ondas-capa .onda-2 { fill: rgb(0 201 192 / .38); animation: onda 6s linear infinite reverse; }
@keyframes onda { from { transform: translateX(0); } to { transform: translateX(-33.3%); } }
.texto-abertura { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 0 28px 10vh; max-width: 100%; }
.texto-abertura .apresenta { font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #ffd21c; animation: subir .9s ease both; }
.texto-abertura h1 { margin: 0; font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1; font-weight: 900; letter-spacing: -.02em; color: #fff;
  text-shadow: 0 4px 30px rgb(0 0 0 / .35); animation: subir .9s .2s ease both; overflow-wrap: anywhere; }
.texto-abertura .local-capa { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; color: #00e0d6; animation: subir .9s .45s ease both; }
.texto-abertura .local-capa .ic { width: 20px; height: 20px; }
.texto-abertura .quando-capa { margin: 0; font-size: 1rem; color: rgb(255 255 255 / .8); animation: subir .9s .6s ease both; }
.texto-abertura .numeros-momentos { margin-top: 6px; animation: subir .9s .8s ease both; }
/* transições sorteadas dos melhores momentos */
.cena-m.t-deslizar { transform: translateX(10%); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.cena-m.t-zoom { transform: scale(1.08); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.cena-m.t-deslizar.entrou, .cena-m.t-zoom.entrou { transform: none; }
/* opções dos melhores momentos */
.segmentos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--superficie-2); }
.segmentos button { min-height: 42px; padding: 8px; border-radius: 10px; background: transparent; color: var(--suave); font-weight: 700; }
.segmentos button[aria-pressed=true] { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra); }
.opcoes-momentos .linha-musica { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; box-shadow: none; }
.opcoes-momentos .linha-musica > .ic { color: var(--acento); width: 1.4rem; height: 1.4rem; }
.opcoes-momentos .linha-musica .corpo { flex: 1; display: flex; flex-direction: column; }
.opcoes-momentos .linha-musica .item-sub { color: var(--suave); font-size: .82rem; font-weight: 400; }
.opcoes-momentos .linha-musica > span:last-child { color: var(--acento); font-weight: 700; font-size: .85rem; }
.opcoes-momentos > button { display: flex; align-items: center; justify-content: center; gap: 8px; }
/* gerando o vídeo */
dialog.gerando-video { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.tela-gerando { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; }
.tela-gerando canvas, .tela-gerando .previa-video { flex: 1; min-height: 0; max-width: 100%; aspect-ratio: 9 / 16; height: auto; max-height: 62dvh; border-radius: 14px; background: #111; }
.painel-gerando { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.painel-gerando small { color: rgb(255 255 255 / .7); }
.painel-gerando progress { width: 100%; height: 10px; accent-color: #00c9c0; }
.painel-gerando button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.linha-tema { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.linha-tema > span { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.linha-tema > span .ic { width: 1.5rem; height: 1.5rem; color: var(--acento); }
.segmentos.tres { grid-template-columns: repeat(3, 1fr); }
/* melhores momentos por dia (#59): Tudo · Dia 1 · Dia 2… numa fila que rola de lado; muitos dias viram uma lista */
.segmentos.dias-momentos { display: flex; overflow-x: auto; scrollbar-width: none; }
.segmentos.dias-momentos button { flex: 1 0 auto; width: auto; min-width: 64px; justify-content: center; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.segmentos.dias-momentos small { font-size: .72rem; font-weight: 600; opacity: .8; }
.dia-momentos { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dia-momentos select { flex: 1; }

/* ---- turma no mapa: balão de estado e rótulo "Fulano · 12 min" embaixo do pino ---- */
.turma-chip { position: absolute; top: 12px; left: 12px; right: 72px; z-index: 450; display: flex; align-items: center; gap: 8px; width: auto;
  min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--superficie); color: var(--texto); box-shadow: var(--sombra);
  font: inherit; font-size: .85rem; font-weight: 600; text-align: left; justify-content: flex-start; }
.turma-chip[hidden] { display: none; }
/* sem corte (dono, 2026-11-11): textos curtos e, se não couber, até duas linhas */
.turma-chip span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; text-align: left; }
.turma-chip.comigo { background: #e8f5e9; color: #1b5e20; }
.turma-chip i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.turma-chip.buscando i { background: var(--acento); animation: pulsar 1s infinite; }
.turma-chip.velha i { background: var(--suave); }
.turma-chip.perigo { background: #c62828; color: #fff; }
.turma-chip.perigo i { background: #fff; animation: pulsar .8s infinite; }
.mapa-chip:not([hidden]) ~ .turma-chip { top: 58px; }
.pino-turma { position: relative; }
.pino-rotulo { position: absolute; top: 42px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 1px 7px; border-radius: 999px;
  background: rgb(0 0 0 / .72); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; pointer-events: none; }
.pino-turma.velho .pino-rotulo { background: rgb(60 60 60 / .8); }
.pino-turma.sos { background: #c62828; padding: 3px; box-shadow: 0 0 0 0 rgb(198 40 40 / .7); animation: sos-pulso 1.4s infinite; opacity: 1; }
.pino-turma.sos .pino-rotulo { background: #c62828; }
@keyframes sos-pulso { 0% { box-shadow: 0 0 0 0 rgb(198 40 40 / .7); } 70% { box-shadow: 0 0 0 18px rgb(198 40 40 / 0); } 100% { box-shadow: 0 0 0 0 rgb(198 40 40 / 0); } }
b.perigo { color: var(--perigo); }
.turma-folha .item .avatar { flex: none; }

/* ---- S.O.S: faixa em qualquer tela e o botão ---- */
.sos-faixa { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: flex; flex-direction: column; gap: 6px;
  padding: calc(env(safe-area-inset-top) + 6px) 8px 6px; background: var(--fundo); }
/* a tela desce para a faixa não cobrir o título nem os botões do mapa (--sos-h vem do sos.js) */
body.com-sos .tela { height: calc(100dvh - var(--sos-h, 0px)); margin-top: var(--sos-h, 0px); }
.sos-faixa[hidden] { display: none; }
.sos-linha { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 8px 10px 8px 12px; max-width: 744px; width: 100%; margin: 0 auto; box-sizing: border-box;
  border-radius: 14px; background: #c62828; color: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
.sos-linha b { grid-column: 1; font-size: .92rem; line-height: 1.25; }
.sos-linha small { grid-column: 1; opacity: .92; font-size: .76rem; line-height: 1.3; }
.sos-linha a, .sos-linha button { grid-column: 2; grid-row: 1 / span 2; padding: 8px 12px; border-radius: 10px; background: #fff; color: #c62828;
  font-weight: 700; text-decoration: none; font-size: .85rem; min-height: 0; }
.sos-linha.meu { background: #8e1b1b; }
.sos-linha.bem { background: var(--ok); }
.sos-linha.bem button { color: var(--ok); }
.sos-botao { display: flex; align-items: center; justify-content: center; gap: 8px; background: #c62828 !important; color: #fff !important; font-weight: 700; }
.sos-botao.ligado { background: var(--ok) !important; }
.sos-botao svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- Mais → Modo teste (rede) ---- */
.teste-rede { display: flex; flex-direction: column; gap: 10px; }
.teste-rede p { margin: 0; }
.teste-rede small { color: var(--suave); }
.teste-rede .linha-botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.teste-rede .linha-botoes button { flex: 1; }

/* ---- chamados da turma: cores por nível (vermelho emergência, laranja ajuda, azul reunir) ---- */
:root { --ch-emergencia: #c62828; --ch-ajuda: #e8710a; --ch-reunir: #1e6fd9; }
.sos-linha { grid-template-columns: 1fr; }
.sos-linha.nivel-ajuda { background: var(--ch-ajuda); }
.sos-linha.nivel-reunir { background: var(--ch-reunir); }
.sos-linha.meu.nivel-ajuda { background: #b85a08; }
.sos-linha.meu.nivel-reunir { background: #16529f; }
.sos-linha .ch-de { font-weight: 500; opacity: .9; }
/* ✕: tira da faixa (fica no mapa). Alvo de 44 px no canto, o texto não passa por baixo */
.sos-linha { position: relative; }
.sos-linha.com-x { padding-right: 44px; }
.sos-linha .ch-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  background: none; color: #fff; border-radius: 0 14px 0 10px; grid-column: auto; grid-row: auto; }
.sos-linha .ch-x .ic { width: 20px; height: 20px; }
.ch-botoes { grid-column: 1; display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sos-linha .ch-botoes a, .sos-linha .ch-botoes button { grid-column: auto; grid-row: auto; flex: 1; min-width: 72px; text-align: center; padding: 7px 10px; }
.sos-linha .ch-botoes [aria-pressed=true] { background: #ffe9a8; }
.sos-linha.nivel-ajuda .ch-botoes a, .sos-linha.nivel-ajuda .ch-botoes button { color: #9a4a00; }
.sos-linha.nivel-reunir .ch-botoes a, .sos-linha.nivel-reunir .ch-botoes button { color: #16529f; }
.sos-mais { display: block; max-width: 744px; margin: 0 auto; width: 100%; text-align: center; padding: 6px; border-radius: 12px; background: var(--superficie); color: var(--texto); font-weight: 700; font-size: .85rem; text-decoration: none; }
.pino-turma.ch { padding: 3px; opacity: 1; }
.pino-turma.ch.nivel-emergencia { background: var(--ch-emergencia); animation: sos-pulso 1.4s infinite; }
.pino-turma.ch.nivel-ajuda { background: var(--ch-ajuda); }
.pino-turma.ch.nivel-reunir { background: var(--ch-reunir); }
.pino-turma.ch .pino-rotulo { background: inherit; }
.pino-turma.resposta { width: 34px; height: 34px; }
.pino-turma.resposta .pino-rotulo { top: 36px; background: rgb(21 62 56 / .9); }
.pino-encontro { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.pino-encontro .ic { width: 20px; height: 20px; fill: currentColor; }
.pino-encontro.nivel-reunir { background: var(--ch-reunir); animation: encontro-pulso 1.8s infinite; }
.pino-encontro .pino-rotulo { top: 38px; background: var(--ch-reunir); }
@keyframes encontro-pulso { 0% { box-shadow: 0 0 0 0 rgb(30 111 217 / .6); } 70% { box-shadow: 0 0 0 16px rgb(30 111 217 / 0); } 100% { box-shadow: 0 0 0 0 rgb(30 111 217 / 0); } }
.turma-chip.ch.nivel-emergencia { background: var(--ch-emergencia); color: #fff; }
.turma-chip.ch.nivel-ajuda { background: var(--ch-ajuda); color: #fff; }
.turma-chip.ch.nivel-reunir { background: var(--ch-reunir); color: #fff; }
.turma-chip.ch i { background: #fff; animation: pulsar .9s infinite; }
.mapa-chamar { position: absolute; right: 18px; bottom: 94px; z-index: 450; width: 52px; height: 52px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ch-ajuda); color: #fff; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.mapa-chamar[hidden] { display: none; }
.mapa-chamar .ic { width: 26px; height: 26px; }
#mapa.escolhendo { cursor: crosshair; outline: 3px dashed var(--ch-reunir); outline-offset: -3px; }
.ch-titulo.nivel-emergencia { color: var(--ch-emergencia); }
.ch-titulo.nivel-ajuda { color: #b85a08; }
.ch-titulo.nivel-reunir { color: var(--ch-reunir); }
.turma-folha .ch-item .ic { flex: none; width: 28px; height: 28px; }
.turma-folha .ch-item.nivel-emergencia .ic { fill: var(--ch-emergencia); }
.turma-folha .ch-item.nivel-ajuda .ic { fill: var(--ch-ajuda); }
.turma-folha .ch-item.nivel-reunir .ic { fill: var(--ch-reunir); }
/* folha "Chamar a turma" */
.chamar-folha .chamar-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chamar-grade button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; font-weight: 700; color: #fff; }
.chamar-grade button .ic { width: 30px; height: 30px; fill: currentColor; }
.chamar-grade .chamar-ajuda { background: var(--ch-ajuda); }
.chamar-grade .chamar-reunir { background: var(--ch-reunir); }
.chamar-folha .chips button[aria-pressed=true] { background: var(--ch-reunir); color: #fff; }
.chamar-folha .lugar-chamado { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.chamar-folha .lugar-chamado legend { font-weight: 700; color: var(--suave); padding: 0 0 4px; }
.opcao-radio { display: flex; align-items: center; gap: 10px; padding: 9px 2px; flex-direction: row; font-weight: 500; }
.opcao-radio small { color: var(--suave); margin-left: auto; }
.chamar-folha .chips button { width: auto; flex: none; min-height: 0; padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.opcao-radio { justify-content: flex-start; text-align: left; color: var(--texto); }
.opcao-radio input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--ch-reunir); }
/* faixa dos chamados compacta: texto à esquerda, botões pequenos embaixo */
.sos-linha { padding: 7px 10px; }
.sos-linha b { font-size: .88rem; }
.sos-linha small { font-size: .74rem; }
.ch-botoes { margin-top: 5px; gap: 5px; }
.sos-linha .ch-botoes a, .sos-linha .ch-botoes button { padding: 5px 8px; font-size: .8rem; border-radius: 8px; }
.pino-turma.ch .avatar, .pino-turma.resposta .avatar { background: #e3f2f0; }
/* rádio em texto (rede lenta) */
.radio-texto { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 4px; }
.radio-texto[hidden] { display: none; }
.radio-texto .dica { margin: 0; font-size: .78rem; color: #9a7b00; text-align: center; }
.radio-texto .linha { display: flex; gap: 8px; }
.radio-texto input { flex: 1; min-width: 0; }
.radio-texto button { flex: none; width: 52px; padding: 0; display: grid; place-items: center; }
.radio-texto .conta { align-self: flex-end; color: var(--suave); font-size: .72rem; }
.radio-barra.em-texto { padding-left: 12px; padding-right: 12px; }
.balao-texto { cursor: default; }
.balao-texto .texto { display: block; font-size: 1rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0; }
.radio-barra [hidden] { display: none !important; }
/* Preparar para a pescaria (e Permissões do aparelho, #137) */
.item-sub.perm-falta { color: var(--perigo); }
.prep-lista .prep { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.prep-lista .prep .prep-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie-2); }
.prep-lista .prep .prep-ic .ic { width: 18px; height: 18px; }
.prep-lista .prep.ok .prep-ic { background: color-mix(in srgb, var(--ok) 20%, transparent); fill: var(--ok); }
.prep-lista .prep.ok .prep-ic .ic { fill: var(--ok); }
.prep-lista .prep.falta .prep-ic .ic { fill: var(--perigo); }
.prep-lista .prep .corpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prep-lista .prep small { color: var(--suave); line-height: 1.35; }
.prep-lista .prep-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prep-lista .prep-acoes button { width: auto; min-height: 0; padding: 7px 12px; font-size: .85rem; }
.radio-alternar { position: absolute; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.radio-alternar .ic { width: 22px; height: 22px; }
.radio-barra.em-texto .radio-alternar { position: static; flex: none; }
.radio-barra.em-texto { display: flex; align-items: flex-end; gap: 8px; }
.radio-barra.em-texto .radio-texto { flex: 1; }

/* Tamanho do texto (Mais → Texto): tudo que é em rem cresce junto; a dock e os ícones ficam iguais */
:root[data-texto=grande] { font-size: 112.5%; }
:root[data-texto=maior] { font-size: 125%; }
:root[data-texto] .abas-pescaria button { flex: 1 0 auto; } /* com letra maior: esticam até a borda se couber; senão rolam para o lado */
/* Início: atalhos do card em uma linha só (o resto em "Mais") */
.agora-atalhos { grid-template-columns: repeat(4, 1fr); }
.agora-atalhos .nova-captura .ic, .agora-atalhos .nova-captura svg { width: 1.5rem; height: 1.5rem; }
.cartao.agora[data-abrir] { cursor: pointer; }
/* Checkup antes do rio (Início) */
.faixa.checkup { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--raio); background: color-mix(in srgb, var(--sol) 16%, var(--superficie)); color: var(--texto); font-weight: 500; min-height: 0; }
.faixa.checkup .ic { flex: none; fill: var(--sol); }
.checkup-folha .checkup-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.checkup-folha .checkup-item .corpo { display: flex; flex-direction: column; }
.checkup-folha .checkup-item small { color: var(--suave); }
.checkup-folha .checkup-acoes { display: flex; gap: 8px; }
.checkup-folha .checkup-acoes button { flex: 1; min-height: 0; padding: 8px; }
/* Turma: rótulo do membro (ícone + texto) e a folha de edição */
.rotulo-membro { display: inline-flex; align-items: center; gap: 4px; color: var(--suave); }
.rotulo-membro .ic { width: 14px; height: 14px; fill: currentColor; }
.turma .barco-membro { display: flex; margin: 2px 0 0; }
.opcao-np { display: flex; flex-direction: column; gap: 10px; padding: 12px 2px; border-top: 1px solid var(--borda); }
.opcao-np > span { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.opcao-np > span small { color: var(--suave); font-size: .82rem; font-weight: 400; }
.np-horario { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-horario[hidden] { display: none; }
.config-radio .secao-turma { margin: 14px 2px 0; font-weight: 700; color: var(--suave); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.barco-membro .ic { width: 16px; height: 16px; }
.icones-rotulo { display: flex; gap: 8px; }
.icones-rotulo button { width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
.icones-rotulo button[aria-pressed=true] { background: var(--acento); color: var(--acento-texto); }
.icones-rotulo .ic { width: 24px; height: 24px; fill: currentColor; }
/* Espectador: sem os botões de registrar (o servidor também recusa) */
.so-acompanha [data-g="camera"], .so-acompanha [data-g="gravar"], .so-acompanha [data-g="galeria-app"], .so-acompanha label:has(> [data-g="galeria"]),
.so-acompanha .nova-captura, .so-acompanha [data-aba="gastos"] { display: none !important; }
/* Contas do app (dono) */
.contas-admin li { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.contas-admin li .corpo { display: flex; flex-direction: column; }
.contas-admin li small { color: var(--suave); }
.contas-admin li.bloqueada b { text-decoration: line-through; color: var(--suave); }
.contas-admin .acoes-conta { display: flex; gap: 8px; }
.contas-admin .acoes-conta button { flex: 1; min-height: 0; padding: 7px; font-size: .85rem; }
/* melhores momentos: recortar o vídeo e enquadrar a foto (folhas do visor, cortar.js) */
.cena-m img.recortada { inset: auto; max-width: none; object-fit: fill; }
dialog.visor .visor-acoes button.com-corte { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.folha-corte .menu { gap: 12px; }
.folha-corte .video-corte { width: 100%; max-height: 46dvh; border-radius: 12px; background: #000; display: block; }
.trilho-corte { position: relative; height: 44px; margin: 4px 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
.trilho-corte::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 4px; background: var(--borda); }
.trilho-corte .trecho-corte { position: absolute; top: 14px; height: 16px; border-radius: 4px; background: var(--acento); opacity: .8; cursor: grab; }
.trilho-corte .agulha-corte { position: absolute; top: 8px; width: 2px; height: 28px; margin-left: -1px; background: var(--texto); pointer-events: none; }
.folha-corte .menu .alca-corte { position: absolute; top: 0; width: 28px; height: 44px; min-height: 0; padding: 0; margin-left: -14px; border-radius: 10px;
  background: var(--superficie); border: 2px solid var(--acento); box-shadow: var(--sombra); touch-action: none; }
.folha-corte .menu .alca-corte::after { content: ''; position: absolute; left: 9px; top: 12px; width: 2px; height: 16px; border-left: 2px solid var(--acento); border-right: 2px solid var(--acento); }
.folha-corte .tempo-corte { margin: 0; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.enquadrar { display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; background: #000; border-radius: 12px; padding: 8px; overflow: hidden; cursor: move; }
.enquadrar-foto { position: relative; line-height: 0; overflow: hidden; }
.enquadrar-foto img { display: block; max-width: 100%; max-height: 52dvh; pointer-events: none; }
.enquadrar-foto .quadro-corte { position: absolute; box-shadow: 0 0 0 9999px rgb(0 0 0 / .6); outline: 2px solid #fff; pointer-events: none; }
.folha-corte label.zoom-corte { display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--suave); }
.folha-corte .zoom-corte .ic { flex: none; width: 22px; height: 22px; }
.folha-corte .zoom-corte input { flex: 1; width: auto; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--acento); }
/* Visor: reações (ícones, com total) acima da barra de ações */
.visor-reacoes { position: absolute; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 3; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgb(0 0 0 / .45); }
.visor-reacoes:empty { display: none; }
.visor-reacoes button { display: flex; align-items: center; gap: 3px; min-height: 0; padding: 7px 10px; border-radius: 999px; background: transparent; color: #fff; }
.visor-reacoes button .ic { width: 22px; height: 22px; fill: currentColor; }
.visor-reacoes button small { font-size: .8rem; font-weight: 700; }
.visor-reacoes button[aria-pressed=true] { background: rgb(255 255 255 / .22); color: var(--amarelo); }
/* Emojis nas reações e nos rótulos */
.visor-reacoes .emoji { font-size: 1.35rem; line-height: 1; }
.visor-reacoes button[aria-pressed=true] { background: rgb(255 255 255 / .28); }
.rotulo-membro .emoji { font-size: .95rem; }
.icones-rotulo { flex-wrap: wrap; }
.icones-rotulo .emoji { font-size: 1.5rem; line-height: 1; }
.icones-rotulo button[aria-pressed=true] { background: color-mix(in srgb, var(--acento) 25%, transparent); box-shadow: inset 0 0 0 2px var(--acento); }
.selo.tamanho { background: color-mix(in srgb, var(--amarelo) 30%, transparent); color: var(--texto); text-transform: none; letter-spacing: 0; }
/* Captura: foto da galeria da pescaria / quadro de vídeo */
.escolher-pescaria .grade-escolher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 60vh; overflow-y: auto; }
.escolher-pescaria .grade-escolher button { position: relative; padding: 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; min-height: 0; }
.escolher-pescaria .grade-escolher img { width: 100%; height: 100%; object-fit: cover; display: block; }
.escolher-pescaria .eh-video::after { content: "▶"; position: absolute; right: 6px; bottom: 4px; color: #fff; text-shadow: 0 1px 3px #000; font-size: .9rem; }
.quadro-video video { width: 100%; max-height: 50vh; border-radius: 10px; background: #000; }
.quadro-video input[type=range] { width: 100%; }
.fotos-botoes { flex-wrap: wrap; }
.frase-captura { margin: 8px 0; font-size: 1.25rem; font-weight: 800; font-style: italic; color: var(--texto); }
/* ---- Melhores momentos 2 (2026-11-08): foto enquadrada como o jeito da foto, trechos e quadro do vídeo, reordenar a galeria,
   cartão da captura com a frase do pescador ---- */
/* quadro 9:16: caixa com a imagem posicionada pela janela (corte.js → estiloJanela) */
.quadro-916 { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; }
.quadro-916 img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; object-fit: fill; border-radius: 0; }
.midia img.fundo-quadro { filter: blur(6px) brightness(.55); transform: scale(1.15); }
.midia .quadro-916 { position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; transform: translateX(-50%); }
.midia.selecionada .quadro-916 { transform: translateX(-50%) scale(.86); transition: transform .12s; }
.midia.selecionada .quadro-916 img { transform: none; }
.midia.selecionada img.fundo-quadro { transform: scale(1.15); border-radius: 0; }
dialog.visor .visor-palco .visor-quadro { height: min(100dvh, calc(100vw * 16 / 9)); max-width: 100vw; }
dialog.visor .visor-palco .visor-quadro img { object-fit: fill; }
.cena-m video.recortada { inset: auto; max-width: none; object-fit: fill; }
/* folha do vídeo: o vídeo no tamanho dele (o quadro por cima casa com a imagem), trechos em fichas */
.enquadrar-video { padding: 0; cursor: default; }
.enquadrar-video.mexendo { cursor: move; }
.folha-corte .enquadrar-video .video-corte { width: auto; max-width: 100%; max-height: 42dvh; border-radius: 0; pointer-events: none; }
.folha-corte .segmentos .ic { width: 18px; height: 18px; vertical-align: -3px; }
.passo-trechos, .passo-quadro { display: flex; flex-direction: column; gap: 10px; }
.passo-trechos[hidden], .passo-quadro[hidden] { display: none; }
.trilho-corte .trecho-corte { opacity: .35; }
.trilho-corte .trecho-corte.sel { opacity: .85; }
.chips-trecho { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip-trecho { display: inline-flex; align-items: center; border-radius: 999px; background: var(--superficie-2); color: var(--texto); }
.chip-trecho.sel { background: var(--acento); color: var(--acento-texto); }
.folha-corte .menu .chips-trecho button { width: auto; min-height: 36px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }
.folha-corte .menu .chip-trecho button { background: transparent; color: inherit; box-shadow: none; }
.folha-corte .menu .chip-trecho .tirar-trecho { padding: 6px 10px 6px 0; }
.chip-trecho .ic { width: 16px; height: 16px; fill: currentColor; }
/* reordenar a galeria */
.linha-ordem { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 6px; color: var(--suave); font-size: .85rem; }
.linha-ordem span { flex: 1; }
.linha-ordem button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; }
.linha-ordem .ic { width: 18px; height: 18px; fill: currentColor; }
.reordenando .midia { cursor: grabbing; }
/* a galeria não seleciona texto (segurar uma foto selecionava o texto em volta e quebrava o arrastar) */
.grade-midia, .barra-selecao, .linha-ordem, .grade-midia * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.reordenando .midia.arrastando { z-index: 5; pointer-events: none; opacity: .9; box-shadow: 0 10px 24px rgb(0 0 0 / .45); transition: none; }
.reordenando .midia.solta-antes::after, .reordenando .midia.solta-depois::after { content: ''; position: absolute; z-index: 4; top: 0; bottom: 0; width: 6px; background: var(--acento); }
.reordenando .midia.solta-antes::after { left: 0; }
.reordenando .midia.solta-depois::after { right: 0; }
.barra-ordem .primario { background: var(--acento); color: var(--acento-texto); }
/* cena de captura nos momentos: a figurinha da frase (canvas, figurinha.js) e embaixo espécie, medida, quem e as tags */
.cena-m canvas.figurinha-momentos { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none;
  animation: figurinha-pop .5s cubic-bezier(.2, 1.5, .4, 1) .3s both; }
@keyframes figurinha-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.cena-m canvas.cartao-captura-m { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* visor da galeria, foto de captura: a foto pronta (cartaoCaptura.js), acima das reações e dos botões */
dialog.visor .visor-acoes, dialog.visor .visor-reacoes, dialog.visor .fechar, dialog.visor .visor-conta { z-index: 3; }
/* captura: a figurinha da frase sobre a capa em 9:16 (arrastar posiciona; Placa, Balão, Faixa) */
.arte-frase { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arte-frase[hidden] { display: none; }
.arte-frase small { color: var(--suave); }
.arte-frase .segmentos { width: 100%; max-width: 320px; }
.previa-frase { position: relative; width: min(56vw, 220px); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.previa-frase img.fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(.55); transform: scale(1.15); }
.previa-frase .quadro-916 { position: absolute; inset: 0; }
.previa-frase .quadro-916 img.inteira { object-fit: contain; }
.previa-frase canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }

/* prévia do tempo dos melhores momentos (folha) e o quanto cada vídeo põe neles (miniatura) */
.tempo-momentos { margin: 2px 0 0; font-size: .95rem; color: var(--suave); }
.tempo-momentos b { color: var(--texto); font-size: 1.05rem; }
.tempo-momentos .falta { color: var(--laranja, #F28A18); font-weight: 700; }
.linha-musica .tirar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.midia .selo-momentos { position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); top: 4px; padding: 1px 6px; border-radius: 999px; background: #FFD21C; color: #153E38;
  font-size: .7rem; font-weight: 800; line-height: 1.4; font-variant-numeric: tabular-nums; }

/* Compartilhar a posição (botão do mapa): ligado fica verde; o meu pino ganha o farol pulsando */
.pino-eu .avatar { position: relative; z-index: 1; box-shadow: 0 0 0 3px #16a34a; }
.pino-eu .farol-anel { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgb(22 163 74 / .45); animation: farol-eu 2s ease-out infinite; pointer-events: none; }
.pino-eu .farol-anel + .farol-anel { animation-delay: 1s; }
.pino-eu .pino-rotulo { background: #16a34a; }
@keyframes farol-eu { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pino-eu .farol-anel { animation: none; } }
.mapa-botoes #eu.seguindo { background: #2b7de9; color: #fff; }
/* Profundidade (dono, 2026-11-15): botão das ondas azul quando ligado; segurar abre a transparência ao lado */
.mapa-botoes button[hidden] { display: none; }
.mapa-botoes #prof.ligado { background: #2b7de9; color: #fff; }
.prof-transp { position: absolute; right: 72px; z-index: 500; transform: translateY(-50%); display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: var(--superficie); box-shadow: var(--sombra); font-size: .9rem; }
.prof-transp input, .transp-folha input { width: 140px; min-height: 44px; accent-color: #2b7de9; }
.prof-transp b, .transp-folha b { min-width: 3.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.transp-folha { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.transp-folha input { flex: 1; width: auto; }
/* Represa salva offline (#91): na folha do mapa, embaixo da profundidade */
.represa-off { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--borda); }
.represa-off .rep-topo { display: flex; align-items: center; gap: 10px; }
.represa-off .rep-topo span { flex: 1; min-width: 0; }
.represa-off .rep-topo b { font-variant-numeric: tabular-nums; }
.represa-off progress { width: 100%; height: 8px; accent-color: #2b7de9; }
.represa-off .link { flex: none; width: auto; min-height: 44px; padding: 0 4px; color: var(--perigo); font-weight: 700; background: none; }
.represa-off small { color: var(--suave); }
.represa-off[hidden] { display: none; }
/* Tela do raio (#94, opção A): mira fixa no meio, régua do raio e o tamanho */
.raio-tela { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; background: var(--fundo); color: var(--texto); }
.raio-tela:not([open]) { display: none; }
.raio-topo { display: flex; align-items: center; gap: 8px; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top, 0px)); font-weight: 700; font-size: 1.1rem; background: var(--superficie); border-bottom: 1px solid var(--borda); }
.raio-mapa { flex: 1; position: relative; min-height: 0; }
.raio-leaflet { position: absolute; inset: 0; }
.raio-mira { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; z-index: 500; pointer-events: none; }
.raio-mira::before, .raio-mira::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.raio-mira::before { left: 13px; top: 0; width: 2px; height: 28px; }
.raio-mira::after { top: 13px; left: 0; height: 2px; width: 28px; }
.raio-dica { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 500; margin: 0; background: var(--superficie); border-radius: 999px; padding: 8px 14px; font-size: .85rem; box-shadow: var(--sombra); pointer-events: none; }
.raio-painel { padding: 14px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); background: var(--superficie); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -2px 10px rgb(0 0 0 / .12); }
.raio-linha { display: flex; align-items: center; gap: 12px; }
.raio-linha input { flex: 1; min-height: 44px; accent-color: #2b7de9; }
.raio-linha b { min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; }
.raio-tam { font-size: 1.05rem; }
.raio-tam small { display: block; color: var(--suave); font-size: .8rem; }
.raio-botoes { display: flex; gap: 10px; }
.raio-botoes button { flex: 1; min-height: 48px; }
.represa-sugestao h2 .ic { width: 1.2em; height: 1.2em; vertical-align: -0.2em; color: #2b7de9; } /* gravando: o mapa segue a minha posição */
/* Gravando o trajeto: o barco (visto de cima) com a proa no rumo, no lugar do ponto azul */
.barco-gps { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.barco-gps .casco { width: 54px; height: 54px; transition: transform .2s linear; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45)); position: relative; z-index: 1; }
.barco-gps .casco path { fill: #2b7de9; stroke: #fff; stroke-width: 1.4; }
.barco-gps .casco .cabine { fill: #fff; stroke: none; opacity: .9; }
/* luzes de navegação (dono, 2026-11-10): bombordo vermelha, boreste verde, meia-lua para fora do contorno (máscara #casco-fora), só a luz com brilho */
.barco-gps .casco .luz { stroke: none; }
.barco-gps .casco .bombordo { fill: #ff3b30; filter: drop-shadow(0 0 1.2px #ff3b30); }
.barco-gps .casco .boreste { fill: #34e35c; filter: drop-shadow(0 0 1.2px #34e35c); }
.barco-gps .casco.sem-rumo path:first-child { fill: #6b8fbf; }
.barco-gps.compartilhando .casco path:first-child { fill: #16a34a; }
.barco-gps .farol-anel { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  background: rgb(22 163 74 / .45); animation: farol-eu 2s ease-out infinite; pointer-events: none; }
.barco-gps .farol-anel + .farol-anel { animation-delay: 1s; }
/* profundidade embaixo do barco (dono, 2026-11-13) */
.barco-gps .barco-prof { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 2; padding: 2px 9px; border-radius: 999px;
  background: rgb(10 30 60 / .85); color: #fff; font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: 0 1px 3px rgb(0 0 0 / .4); pointer-events: none; }
.barco-gps .barco-prof[hidden] { display: none; }
.grava-chip.navegando { cursor: default; }
.com-barco .eu-ponto { display: none; } /* o ponto azul some; o círculo da precisão fica */
/* parado (dono, 2026-11-15): sem o casco; o avatar com anel azul (foto ou inicial, 34 px) e os metros embaixo dele.
   Do zoom 17 para perto (#mapa.perto) o avatar sai e fica o ponto azul pequeno com contorno escuro (opção E) */
.barco-gps.parado .casco { display: none; }
.barco-gps.parado .barco-prof { top: 56px; }
.eu-avatar { position: relative; z-index: 1; display: grid; }
.eu-avatar .avatar { border: 3px solid #2b7de9; box-shadow: 0 0 0 2px #fff, 0 0 4px 2px rgb(0 0 0 / .55); background: #e3f2f0; color: #0b5e55; } /* fundo sólido: o padrão é translúcido e some na água */
.com-avatar:not(.perto) .eu-ponto { display: none; }
.perto .barco-gps.parado .eu-avatar { display: none; }
.perto .barco-gps.parado .barco-prof, .barco-gps.parado:not(:has(.eu-avatar)) .barco-prof { top: 44px; }
.eu-ponto, .nav-alvo { filter: drop-shadow(0 0 0.6px #000) drop-shadow(0 0 0.6px #000) drop-shadow(0 0 2px rgb(0 0 0 / .6)); }
@media (prefers-reduced-motion: reduce) { .barco-gps .farol-anel { animation: none; } .barco-gps .casco { transition: none; } }
/* Escolher ponto (busca): o ícone com a cor do tipo do ponto */
.escolher-ponto input[type=search] { margin-bottom: 4px; }
.escolher-ponto .lista-pontos { display: flex; flex-direction: column; gap: 2px; max-height: 55vh; overflow-y: auto; }
.escolher-ponto .ic-ponto { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.escolher-ponto .ic-ponto .ic { width: 18px; height: 18px; }
.opcao-radio [data-trocar] { color: var(--acento); font-weight: 600; }

/* Mapa enxuto: botão + (marcar, gravar, trajetos), painel da gravação, escala */
.mapa-fab { position: relative; }
.mapa-fab.com-gravacao::after { content: ''; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 2px var(--superficie); }
.marcar-ponto .mais-acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--borda); }
.marcar-ponto .mais-acoes button { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
.marcar-ponto .mais-acoes .perigo-texto { color: #e53935; font-weight: 700; }
.grava-chip { cursor: pointer; }
.grava-chip.aberto { flex-direction: column; align-items: stretch; border-radius: 18px; padding: 10px 12px 12px 14px; gap: 6px; }
.grava-chip .gp-topo { display: flex; align-items: center; gap: 8px; }
.grava-chip .gp-corpo { display: flex; align-items: center; gap: 14px; }
.grava-chip .gp-vel { display: flex; flex-direction: column; align-items: center; min-width: 76px; line-height: 1; }
.grava-chip .gp-vel b { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.grava-chip .gp-vel small { color: var(--suave); font-size: .8rem; margin-top: 2px; }
.grava-chip dl { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.grava-chip dt { font-size: .72rem; font-weight: 600; color: var(--suave); }
.grava-chip dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.mapa .leaflet-control-scale { margin: 70px 0 0 14px; }
.mapa .leaflet-control-scale-line { border-color: rgba(0,0,0,.55); background: rgba(255,255,255,.7); font-size: .7rem; color: #222; }
/* Coordenadas embaixo da escala (dono, 2026-11-16, #126): texto simples, do tamanho da escala; tocar copia */
.mapa .mapa-coord { clear: both; margin: 4px 0 0 14px; padding: 0 5px; border: none; background: rgba(255,255,255,.7); font: .7rem/1.5 ui-monospace, monospace; color: #222; cursor: pointer; min-height: 0; min-width: 0; border-radius: 0; box-shadow: none; }
/* Créditos numa linha só, letra menor (opção B do dono, 2026-11-16, #125): os controles de baixo ficam acima dela */
.mapa .leaflet-control-attribution { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100vw; font-size: 9px; line-height: 14px; padding: 0 6px; }
.nomear-trajeto input { width: 100%; margin: 4px 0 2px; font-size: 1.05rem; }
/* Bússola: botão de posição no modo rumo e agulha do Norte (só com o mapa girado) */
.mapa-botoes #eu.rumo { background: #2b7de9; color: #fff; }
.mapa-norte { position: absolute; z-index: 2; left: 12px; top: 104px; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--superficie); box-shadow: var(--sombra); display: grid; place-items: center; min-height: 0; }
.mapa-norte[hidden] { display: none; }
.mapa-norte svg { width: 30px; height: 30px; transition: transform .2s; }
.mapa-norte svg path { fill: #9aa3ab; }
.mapa-norte svg path.n { fill: #e53935; }
.mapa-norte b { position: absolute; top: 1px; font-size: .55rem; color: #e53935; display: none; }
.leaflet-rotate-pane { will-change: transform; }
.fonte-lugar { margin-bottom: 8px; } .fonte-lugar button { display: flex; align-items: center; justify-content: center; gap: 6px; } .fonte-lugar .ic { width: 18px; height: 18px; flex: none; }
/* Lista de Compras → gastos */
.itens .chip-gasto { min-height: 0; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.itens-gasto .linha { font-weight: 500; }
/* Faixa que some sozinha: barrinha do tempo embaixo; ao acabar, recolhe */
.fechavel.some { position: relative; overflow: hidden; transition: opacity .25s, max-height .3s, margin .3s, padding .3s; max-height: 200px; }
.fechavel .faixa-tempo { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .35; transform-origin: left; animation: faixa-tempo linear forwards; }
@keyframes faixa-tempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.fechavel.saindo { opacity: 0; max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
/* Turma: tag de pescador / espectador */
.turma .nome-papel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-papel { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.4; }
.tag-papel .ic { width: 13px; height: 13px; }
.tag-papel.pescador { background: color-mix(in srgb, var(--acento) 15%, transparent); color: var(--acento); }
.tag-papel.espectador { background: color-mix(in srgb, var(--suave) 18%, transparent); color: var(--suave); }
/* Melhores momentos com capa da pescaria: 1º só "Fisggo apresenta…", 2º a foto com título, lugar, datas e turma */
.so-apresenta { place-items: center; }
.so-apresenta .texto-abertura { align-items: center; text-align: center; padding: 0 28px; }
.so-apresenta .apresenta { font-size: 1.15rem; letter-spacing: .28em; }
.so-apresenta .apresenta i { font-style: normal; display: inline-block; animation: pisca-ret 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes pisca-ret { from { width: 0; } to { width: 1.2em; } }
.capa-momentos .texto-capa-foto { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 30vh 26px max(80px, calc(env(safe-area-inset-bottom) + 64px)); background: linear-gradient(to top, rgb(1 40 38 / .92) 0%, rgb(1 40 38 / .6) 45%, transparent 100%); color: #fff; }
.texto-capa-foto h1 { margin: 0; font-size: clamp(2.2rem, 10vw, 3.3rem); line-height: 1; font-weight: 900; letter-spacing: -.02em; text-shadow: 0 4px 24px rgb(0 0 0 / .45); animation: subir .9s .2s ease both; overflow-wrap: anywhere; }
.texto-capa-foto p { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.texto-capa-foto .local-capa { font-size: 1.1rem; font-weight: 700; color: #00e0d6; animation: subir .9s .4s ease both; }
.texto-capa-foto .quando-capa { font-size: 1rem; color: rgb(255 255 255 / .85); animation: subir .9s .55s ease both; }
.texto-capa-foto .turma-capa { font-size: 1rem; font-weight: 700; color: #ffd21c; animation: subir .9s .7s ease both; }
.texto-capa-foto .ic { width: 20px; height: 20px; flex: none; }
.texto-capa-foto .numeros-momentos { animation: subir .9s .85s ease both; }
/* Capa da pescaria no formulário */
.capa-pescaria .arte-frase { margin-bottom: 8px; }
/* Ícone em imagem (máscara): pinta com a cor do texto, como os SVG */
.ic-mascara { display: inline-block; background-color: currentColor; -webkit-mask: var(--mascara) center / contain no-repeat; mask: var(--mascara) center / contain no-repeat; }
.rotulo-ic { display: inline-flex; align-items: center; gap: 6px; } .rotulo-ic .ic { width: 1.3em; height: 1.3em; }
/* Capa da pescaria no topo da página (estilo capa do Facebook) */
.capa-topo { position: relative; margin: -4px -16px 8px; aspect-ratio: 16 / 9; max-height: 240px; width: calc(100% + 32px); overflow: hidden; background: var(--superficie-2); }
.capa-topo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.capa-topo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgb(0 0 0 / .45), transparent); pointer-events: none; }
.capa-turma { position: absolute; z-index: 1; left: 16px; bottom: 10px; display: flex; align-items: center; }
.capa-turma > * { margin-right: -8px; border: 2px solid #fff; border-radius: 50%; }
.capa-turma span { margin-left: 12px; border: 0; color: #fff; font-weight: 700; font-size: .85rem; }
/* Lista de Compras: Item + Valor */
.novo-item.com-valor #novoValor { width: 92px; flex: none; }
.itens .valor-item { display: flex; align-items: center; gap: 4px; flex: none; }
.itens .valor-item input { width: 84px; min-height: 0; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.itens .valor-item small { color: var(--suave); font-size: .72rem; font-weight: 600; }
/* item com valor: chip de quem divide embaixo do valor (dono, 2026-11-18, igual às linhas do cupom) */
.itens .valor-item.com-quem { flex-direction: column; align-items: flex-end; gap: 4px; }
.itens .valor-item .valor-linha { display: flex; align-items: center; gap: 4px; }
.itens .chip-quem { min-height: 28px; max-width: 120px; padding: 2px 10px; font-size: .75rem; }
.itens li.feito .valor-item input { color: var(--ok); font-weight: 700; }

/* ---- cupom fiscal na lista de Compras (public/js/cupom.js) ---- */
.importar-cupom { width: 100%; margin: -4px 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fotos-cupom { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos-cupom:empty { display: none; }
.fotos-cupom figure { position: relative; margin: 0; border: 1px solid var(--borda); width: 72px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--borda); }
.fotos-cupom img { width: 100%; height: 100%; object-fit: cover; }
.fotos-cupom .icone-btn { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; background: rgb(0 0 0 / .55); color: #fff; border-radius: 50%; min-width: 28px; min-height: 28px; padding: 2px; }
.conferir-cupom .faixa { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.faixa.confere { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.faixa.aviso-cupom { background: color-mix(in srgb, var(--amarelo) 22%, transparent); }
.linhas-cupom { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.linhas-cupom li { display: grid; grid-template-columns: auto 1fr 84px; gap: 8px; align-items: start; padding: 8px; border-radius: 10px; border: 1px solid var(--borda); }
.linhas-cupom li.duvida { border-color: var(--amarelo); background: color-mix(in srgb, var(--amarelo) 10%, transparent); }
.linhas-cupom li.fora { opacity: .45; }
.linhas-cupom .marca { padding-top: 8px; }
.linha-cupom { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.linha-cupom input, .linha-cupom select { min-height: 0; padding: 6px 8px; }
.linha-cupom small { color: var(--suave); font-size: .78rem; overflow-wrap: anywhere; }
.linhas-cupom [data-valor] { min-height: 0; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.linha-desconto { display: flex; flex-direction: row; gap: 10px; align-items: center; font-size: .9rem; font-weight: normal; text-align: left; color: var(--texto); }
.linha-desconto input, .linhas-cupom .marca input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; }
.chip-cupom { display: inline-flex; align-items: center; gap: 4px; }
.chip-cupom .ic { width: 16px; height: 16px; }
.linhas-detalhe { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.linhas-detalhe li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borda); }
.linhas-detalhe li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linhas-detalhe small { color: var(--suave); font-size: .78rem; overflow-wrap: anywhere; }
.linhas-detalhe b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.linhas-detalhe li.duvida > div > span::after { content: ' ⚠'; color: var(--amarelo); }
.linhas-detalhe li.tirada { opacity: .5; }
.linhas-detalhe li.tirada span, .linhas-detalhe li.tirada b { text-decoration: line-through; }
.detalhes-cupom .icone-btn, .detalhes-cupom .link { width: auto; flex: none; }
/* de quem é cada linha do cupom (dono, 2026-11-18, opção A): chip embaixo do valor; a escolha na mesma folha */
.linhas-detalhe li > .valor-quem { flex: none; flex-direction: column; align-items: flex-end; gap: 4px; }
.detalhes-cupom .chip-quem, .itens .chip-quem { width: auto; min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--borda); background: var(--superficie-2);
  color: var(--suave); font-size: .8rem; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detalhes-cupom .chip-quem.sel, .itens .chip-quem.sel { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); font-weight: 700; }
.detalhes-cupom .chip-quem:disabled { opacity: 1; }
.detalhes-cupom .opcao-quem, .detalhes-cupom .pessoas-quem label { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; color: var(--texto); font-size: 1rem; text-align: left; }
.detalhes-cupom .opcao-quem { font-weight: 600; }
.detalhes-cupom .opcao-quem input, .detalhes-cupom .pessoas-quem input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; }
.detalhes-cupom .pessoas-quem { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; padding-left: 32px; }
.detalhes-cupom .pessoas-quem span { min-width: 0; overflow-wrap: anywhere; }
.detalhes-cupom .pessoas-quem small { color: var(--suave); }
.conferencia-cupom h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin-top: 12px; }
.conferencia-cupom h3 .ic { width: 18px; height: 18px; }
.conferencia-cupom h3 small { color: var(--suave); font-weight: 500; }
.conferencia-cupom .item-conf { margin: 8px 0 0; font-weight: 700; }
.conferencia-cupom .linha-conf { flex-wrap: wrap; }
.conferencia-cupom .linha-conf select { flex-basis: 100%; min-height: 40px; padding: 6px 8px; font-size: .9rem; }
.faltou-conf { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.faltou-conf span { padding: 6px 12px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--amarelo); font-weight: 600; }
/* inline-block: não herda o risco do item feito */
.itens label .do-cupom { display: inline-block; width: 100%; text-decoration: none; color: var(--suave); font-size: .78rem; font-weight: 400; overflow-wrap: anywhere; }
.itens label .do-cupom .ic { width: 13px; height: 13px; vertical-align: -2px; }
.total-cupom { margin: 0; text-align: right; font-size: 1.05rem; }
.total-cupom small { color: var(--suave); }

/* ---- listas da pescaria: Coletivas × Pessoais ---- */
.selo.coletiva, .selo.pessoal { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 3px; }
.selo.coletiva { background: color-mix(in srgb, var(--turquesa) 20%, transparent); color: color-mix(in srgb, var(--turquesa) 70%, var(--texto)); }
.selo.pessoal { background: color-mix(in srgb, var(--sol) 22%, transparent); color: color-mix(in srgb, var(--sol) 60%, var(--texto)); }
.selo.coletiva .ic, .selo.pessoal .ic { width: 13px; height: 13px; }
.titulo-listas { display: flex; align-items: center; gap: 8px; }
.titulo-listas::before { content: ''; width: 4px; height: 1em; border-radius: 2px; }
.titulo-listas.coletiva::before { background: var(--turquesa); }
.titulo-listas.pessoal::before { background: var(--sol); }
.recolhe-pessoais > summary { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); margin: 22px 0 10px; min-height: 44px; cursor: pointer; list-style: none; }
.recolhe-pessoais > summary::-webkit-details-marker { display: none; }
.recolhe-pessoais > summary small { font-weight: 600; color: var(--suave); text-transform: none; letter-spacing: 0; }
.recolhe-pessoais > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 auto; transition: transform .15s; }
.recolhe-pessoais[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pessoais-turma { margin: 4px 0 12px; }
.pessoais-turma summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--suave); }
.pessoais-turma summary small { font-weight: 400; }
.lancados { margin: 8px 0 12px; }
.lancados summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--suave); background: color-mix(in srgb, var(--ok) 10%, transparent); list-style: none; }
.lancados summary::-webkit-details-marker { display: none; }
.lancados summary .ic { width: 18px; height: 18px; color: var(--ok); }
.lancados summary small { margin-left: auto; font-weight: 700; }
.lancados summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 4px; transition: transform .15s; }
.lancados[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lancados > .itens { margin-top: 8px; }
.de-quem { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.de-quem label { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px solid var(--borda); border-radius: 12px; font-weight: 600; }
.de-quem label:has(input:checked) { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 12%, transparent); }
.de-quem input { position: absolute; opacity: 0; pointer-events: none; }
.selo-da-lista { margin: 0 0 8px; } .selo-da-lista small { color: var(--suave); }
dialog.leitor-qr .botoes-leitor [aria-pressed=true] { background: #ffd54a; color: #222; }
/* espera com movimento: .roda (não confundir com .status.girando do topo) + segundos */
@keyframes rodar { to { transform: rotate(360deg); } }
.roda { display: inline-block; vertical-align: -3px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--acento) 25%, transparent); border-top-color: var(--acento); animation: rodar .8s linear infinite; flex: none; }
.esperando { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.esperando b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--suave); font-weight: 600; }
.fotos-cupom figure.preparando { display: grid; place-items: center; }

button.ocupado, .botao.ocupado { opacity: .85; }
button.primario .roda { border-color: rgb(255 255 255 / .35); border-top-color: #fff; }
.grade-escolher .baixando { position: relative; } .grade-escolher .baixando::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; border: 4px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: rodar .8s linear infinite; }
#previsao.trocando { opacity: .4; transition: opacity .2s; pointer-events: none; }
/* Régua do mapa (menu do mapa → Medir): o toque nos pinos passa para o mapa */
#mapa.medindo { cursor: crosshair; }
#mapa.medindo .leaflet-marker-icon { pointer-events: none; }
.regua-painel { flex-wrap: wrap; row-gap: 8px; }
.regua-acoes { display: flex; gap: 6px; order: 3; flex-basis: 100%; }
.regua-acoes:empty { display: none; }
.regua-acoes button { min-height: 0; padding: 8px 10px; border-radius: 999px; display: flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; background: var(--superficie-2); }
.regua-acoes button.primario { background: var(--acento); color: var(--acento-texto); }
.regua-acoes .ic { width: 18px; height: 18px; }

/* ---- isca da captura (#24): tipo, nome e cor da artificial ---- */
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cores-isca { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 0 -8px 4px; }
.cores-isca button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 0; padding: 4px 0 6px; border-radius: 12px;
  background: none; color: var(--texto); font-size: .75rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; border: 2px solid transparent; text-align: center; }
.cores-isca .amostra { width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.cores-isca button[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, var(--superficie)); }
.isca-nome { display: flex; align-items: stretch; gap: 8px; }
.isca-nome > label { flex: 1; min-width: 0; }
.cor-isca-btn { flex: none; display: grid; place-items: center; width: 48px; min-height: 48px; padding: 0; border-radius: 12px;
  background: var(--superficie-2); color: var(--suave); border: 1px solid var(--borda); }
.cor-isca-btn[hidden] { display: none; }
.cor-isca-btn .amostra { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.cor-isca-btn > .ic { width: 26px; height: 26px; }

/* ---- canal do rádio (#15): o nome da pescaria embaixo do título troca o canal ---- */
.titulo p.radio-sub { display: flex; align-items: center; gap: 4px; min-width: 0; }
.radio-sub .ic { flex: none; width: 16px; height: 16px; }
.radio-sub .canal-rotulo { flex: none; }
.radio-sub .canal-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--texto); }
.radio-sub .trocar-canal { flex: none; width: auto; min-height: 44px; margin: -12px 0; padding: 0 4px 0 0; font-size: .88rem; font-weight: 700; }
/* o ponto fica fora do sublinhado do link (inline-block não herda o text-decoration) */
.radio-sub .trocar-canal::before { content: '·'; display: inline-block; margin-right: .35em; color: var(--suave); font-weight: 400; text-decoration: none; }
.radio-sub .trocar-canal[hidden] { display: none; }
.estado-envio { display: inline-flex; vertical-align: -3px; margin-left: 4px; }
.estado-envio .ic { width: 15px; height: 15px; }
.estado-envio.recebido { color: var(--acento); }
.canais-radio [data-canal] { display: flex; text-align: left; border: 2px solid transparent; }
.canais-radio [data-canal] span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.canais-radio [data-canal] b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canais-radio [data-canal].sel { border-color: var(--acento); }
.canais-radio .dica { margin: 0; }

/* ---- alarme de âncora (#1): chip igual ao da gravação; com os dois, a âncora vai em cima ---- */
.ancora-chip .ic { width: 20px; height: 20px; fill: #1e88e5; flex: none; }
.ancora-chip.alarme { background: #e53935; color: #fff; animation: alarme-ancora 1s infinite; }
@keyframes alarme-ancora { 50% { box-shadow: 0 0 0 8px rgb(229 57 53 / .35); } }
.ancora-chip.alarme .ic { fill: #fff; }
.ancora-chip.alarme button { background: #fff; color: #e53935; }
.grava-chip:not(.ancora-chip):not([hidden]) ~ .ancora-chip { bottom: 76px; }
.grava-chip.aberto:not([hidden]) ~ .ancora-chip { bottom: 174px; }
.ancora-chip:not([hidden]) ~ .mapa-dica { display: none; }
.chips-raio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chips-raio button { min-height: 44px; border: 2px solid transparent; }
.chips-raio button[aria-checked=true] { border-color: var(--acento); background: var(--superficie); }
/* #3: o cartão da captura na prévia da figurinha (a cena dos momentos em miniatura: palco de 360 px escalado) */
.previa-frase canvas.previa-cartao { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Tipos de ponto em ícones redondos (dono, 2026-11-11): editar ponto, marcar aqui; o Outro pede o nome do tipo */
.tipos-redondos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; }
.tipos-redondos button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; min-height: 0; background: transparent; color: var(--texto); font-weight: 600; font-size: .85rem; border-radius: 14px; }
.tipos-redondos button:disabled { opacity: .45; }
.tipos-redondos .bola { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.tipos-redondos .bola.pino-pesqueiro { color: var(--sol-texto); }
.tipos-redondos .bola .ic { width: 26px; height: 26px; }
.tipos-redondos .tipo-nome { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tipos-redondos button[aria-checked=true] { background: color-mix(in srgb, var(--acento) 14%, transparent); }
.tipos-redondos button[aria-checked=true] .bola { box-shadow: 0 0 0 3px var(--superficie), 0 0 0 6px var(--acento); }
.tipo-livre[hidden] { display: none; }

/* Compartilhar pontos (#35): quem manda e quem recebe com o mesmo jeito (ícone pequeno, nome, coordenadas) */
.pontos-compart { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.pontos-compart li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 2px; border-bottom: 1px solid var(--borda); text-align: left; }
.menu .pontos-compart li > label { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0; flex: 1; min-width: 0; text-align: left; }
.pontos-compart input[type=checkbox], .pontos-compart input[type=radio] { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--acento); }
.pinozinho { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.pinozinho.pino-pesqueiro { color: var(--sol-texto); }
.pinozinho.pino-rota { background: #455a64; }
.pinozinho .ic { width: 18px; height: 18px; }
.pontos-compart .txt { flex: 1; min-width: 0; font-weight: 600; color: var(--texto); overflow: hidden; text-overflow: ellipsis; }
.pontos-compart .txt small { display: block; color: var(--suave); font-weight: 400; font-size: .8rem; }
.menu .pontos-compart button { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; color: var(--suave); }
.menu .pontos-compart button .ic { width: 20px; height: 20px; }
.filtro-tipos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.menu .filtro-tipos .chip { white-space: nowrap; flex: none; width: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; }
.filtro-tipos .chip[aria-pressed=true] { background: var(--acento); color: var(--acento-texto); }
.menu .marcar-todos { align-self: flex-end; width: auto; min-height: 44px; }

/* Mapa: o + embaixo à direita abre as ações com a descrição (dono, 2026-11-11, opção B: Chamar a turma fica fora) */
.mapa-fab { position: absolute; right: 14px; bottom: 20px; z-index: 450; width: 60px; height: 60px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--acento-texto); box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.mapa-fab .ic { width: 30px; height: 30px; }
.mapa-fab.aberto { background: var(--superficie); color: var(--texto); }
dialog.acoes-mapa { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
dialog.acoes-mapa::backdrop { background: rgb(0 20 22 / .62); }
.acoes-mapa .mapa-fab { position: fixed; }
.acoes-lista { position: fixed; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.acao-item { display: flex; align-items: center; gap: 12px; width: auto; min-height: 52px; padding: 0; background: none; color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.acao-item .bola { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--superficie); color: var(--acento); box-shadow: 0 3px 10px rgb(0 0 0 / .3); }
.acao-item .bola .ic { width: 26px; height: 26px; }
.acao-item .bola.cheia { background: var(--acento); color: var(--acento-texto); }
.acao-item .bola.vermelha { background: #e53935; color: #fff; }
.acao-item .bola.azul { background: #1e88e5; color: #fff; }

/* Encontro marcado (#39): "Avisar antes" na folha e o aviso na hora (folha + bip de sonar) */
.avisar-antes[hidden] { display: none; }
.avisar-antes .sub { margin: 4px 0 8px; font-weight: 600; color: var(--suave); font-size: .9rem; }
.aviso-encontro .menu { text-align: left; }
.aviso-encontro .ae-topo { display: flex; align-items: center; gap: 12px; }
.aviso-encontro .ae-topo h2 { margin: 0; }
.aviso-encontro .ae-topo .dica { margin: 2px 0 0; }
.aviso-encontro .ae-icone { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ch-reunir, #1e88e5); color: #fff; }
.aviso-encontro .ae-icone .ic { width: 26px; height: 26px; }
.aviso-encontro .ae-longe { margin: 12px 0 0; font-size: 1.05rem; }

/* Espécies e tamanhos da pescaria (#22, #25; opção B do dono): a linha-resumo no Editar pescaria e a folha */
.resumo-esp { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; }
.resumo-esp .corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resumo-esp .seta { font-size: 1.6rem; line-height: 1; color: var(--suave); }
.resumo-esp small { color: var(--suave); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.especies-folha { text-align: left; }
.especies-folha .sub { margin: 12px 0 6px; font-weight: 700; font-size: .9rem; color: var(--texto); }
.esp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.menu .esp-chips .chip { width: auto; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; }
.esp-chips .chip[aria-pressed=true] { background: var(--acento); color: var(--acento-texto); }
.esp-outra { display: flex; gap: 8px; margin-top: 8px; } .esp-outra[hidden] { display: none; }
.esp-outra input { flex: 1; min-width: 0; } .menu .esp-outra button { width: auto; padding: 0 16px; }
.tags-grade { display: grid; grid-template-columns: 74px 1fr; gap: 8px 10px; align-items: center; }
.tags-grade span { font-weight: 600; color: var(--suave); font-size: .9rem; }
.medidas { width: 100%; border-collapse: collapse; font-size: .9rem; }
.medidas th { text-align: left; color: var(--suave); font-weight: 600; padding: 4px 2px; font-size: .78rem; }
.medidas td { padding: 4px 2px; } .medidas td:first-child { font-weight: 600; }
.medidas input { width: 100%; text-align: center; padding: 8px 4px; }

/* Novidades (Mais): poucas linhas por versão; pontinho até abrir a versão nova */
.novidades { text-align: left; }
.novidades section { margin: 4px 0 8px; }
.novidades h3 { margin: 8px 0 4px; font-size: .95rem; color: var(--acento); text-transform: none; letter-spacing: normal; }
.novidades ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.novidades li { font-size: .92rem; line-height: 1.35; }
.mais-lista li.com-novidade .item { position: relative; }
.mais-lista li.com-novidade .item::after { content: ''; position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: #e53935; }
/* Captura nova: primeiro a foto (dono, 2026-11-11) */
.passo-foto { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.passo-foto h2 { margin: 4px 0 0; }
.passo-foto .dica { margin: 0; }
.passo-foto-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.passo-foto-grade button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px;
  border-radius: 16px; border: 2px dashed var(--borda); background: var(--superficie); color: var(--texto); font-size: 1.1rem; }
.passo-foto-grade .ic { width: 48px; height: 48px; color: var(--acento); }
.passo-foto-grade small { color: var(--suave); font-weight: 400; font-size: .85rem; }
.passo-foto .link { align-self: center; margin-top: 6px; }

/* + das abas Fotos e Listas da pescaria (como o do mapa) e o + da Câmera nos atalhos */
.fab.fab-aba { border-radius: 50%; width: 60px; height: 60px; }
.fab.fab-aba .ic { width: 30px; height: 30px; }
.atalhos-pescaria .nova-captura { position: relative; }
.mais-camera { position: absolute; top: 6px; left: calc(50% + 8px); width: 11px; height: 11px; border-radius: 50%; background: var(--acento); color: var(--acento-texto); display: grid; place-items: center; }
.atalhos-pescaria .mais-camera .ic { width: 9px; height: 9px; vertical-align: 0; }
/* câmera: várias fotos seguidas; a última com o número e "Pronto" no topo */
.camera-app .lateral[hidden], .camera-app .topo-gravador .pronto-camera[hidden] { display: none; }
.camera-app .tiradas { position: relative; overflow: visible; border: 2px solid #fff; border-radius: 10px; }
.camera-app .tiradas img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.camera-app .tiradas b { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--acento); color: var(--acento-texto); font-size: .8rem; line-height: 22px; text-align: center; }
.camera-app .topo-gravador .pronto-camera { width: auto; height: 44px; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-weight: 700; }

/* captura salva: cartão travado (toque = tela cheia), "Editar" no lugar de Placa/Balão/Faixa */
.arte-frase.travada .segmentos, .arte-frase.travada .dica-arrastar, .arte-frase:not(.travada) .dica-cheia, .arte-frase:not(.travada) .editar-arte { display: none; }
.arte-frase.travada .previa-frase { cursor: zoom-in; }
.arte-frase .editar-arte { width: 100%; max-width: 320px; display: flex; align-items: center; justify-content: center; gap: 6px; }
dialog.cartao-cheio { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; display: grid; place-items: center; }
dialog.cartao-cheio:not([open]) { display: none; }
dialog.cartao-cheio canvas { width: 100%; height: 100%; object-fit: contain; }
dialog.cartao-cheio .dica { color: #fff; }
.cartao-cheio .fechar-cheio { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 1; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; display: grid; place-items: center; }
.trazer-minhas { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }

/* Sonar de profundidade (#67): parado no centro do mapa; arrastar o mapa sonda o fundo por baixo (beacon laranja) */
.sonar { position: absolute; left: 50%; top: 50%; z-index: 600; pointer-events: none; width: 0; height: 0; }
.sonar-alvo { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.sonar-alvo i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid #fff; }
.sonar-alvo i:nth-child(1) { width: 64px; height: 64px; opacity: .35; animation: sonar-pulso 2s ease-out infinite; }
.sonar-alvo i:nth-child(2) { width: 42px; height: 42px; border-width: 2.5px; opacity: .75; }
.sonar-alvo i:nth-child(3) { width: 20px; height: 20px; border-width: 3px; background: radial-gradient(#fff 0 3px, #ff8f00 3.5px); }
.sonar-prof { position: absolute; left: 0; bottom: 30px; transform: translateX(-50%); min-width: 52px; padding: 3px 12px; border-radius: 999px;
  background: #0b2545; color: #fff; border: 2px solid #fff; font-size: 1.15rem; font-weight: 700; text-align: center; white-space: nowrap;
  box-shadow: 0 1px 3px rgb(0 0 0 / .45); }
@keyframes sonar-pulso { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sonar-alvo i:nth-child(1) { animation: none; } }
/* câmera do cupom em partes (#10, variante A): o fim da parte anterior transparente no topo, com linha amarela tracejada */
dialog.camera-cupom { overflow: hidden; }
.camera-cupom .faixa-cupom { position: absolute; background: no-repeat center bottom / 100% auto; opacity: .45; border-bottom: 2px dashed #ffd54f; pointer-events: none; }
.camera-cupom .dica-faixa { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; font-size: .85rem; font-weight: 700; text-align: center; color: #ffd54f; background: rgb(0 0 0 / .7); padding: 5px 12px; border-radius: 999px; pointer-events: none; }
.camera-cupom .parte-cupom { font-weight: 700; background: rgb(0 0 0 / .45); padding: 4px 12px; border-radius: 999px; }
.camera-cupom .topo-gravador .pronto-camera { width: auto; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; background: var(--acento); color: var(--acento-texto); font-weight: 700; }
.camera-cupom .clarao { position: absolute; inset: 0; background: #fff; opacity: .75; pointer-events: none; }
.camera-cupom .clarao[hidden] { display: none; }
.camera-cupom .rec span { background: #fff; }
.camera-cupom .rec:disabled { opacity: .4; }

/* Marcas dos melhores momentos (dono, 2026-11-15, maquete A+C): ▶ embaixo à esquerda, olho cortado em cima à direita,
   alvo de 40 px com o círculo de 28 px; a de fora fica cinza. O selo do vídeo e o "+tempo" ficam no meio. */
/* a miniatura isola as camadas dela: ▶/olho, seleção e selos não passam por cima das abas presas no topo ao rolar (#99) */
.midia { isolation: isolate; }
.midia .marca-m { position: absolute; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; }
.midia .marca-m.entra { left: 0; bottom: 0; }
.midia .marca-m.fora { right: 0; top: 0; }
.midia .marca-m i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff;
  background: rgb(0 0 0 / .35); color: #fff; }
.midia .marca-m .ic { width: 16px; height: 16px; }
.midia .marca-m.entra.ligada i { background: #FFD21C; border-color: #FFD21C; color: #153E38; }
.midia .marca-m.fora.ligada i { background: #fff; color: #153E38; }
.selecionando .midia .marca-m { display: none; }
.midia.fora-dos-momentos img { opacity: .35; filter: grayscale(1); }
.resumo-marcas { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 8px; font-size: .9rem; color: var(--texto-2, inherit); }
.resumo-marcas span { display: inline-flex; gap: 4px; align-items: center; }
.resumo-marcas .ic { width: 16px; height: 16px; }
.barra-selecao.com-acoes { justify-content: space-between; gap: 2px; }
.barra-selecao.com-acoes button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 6px 8px; }
.barra-selecao.com-acoes button small { font-size: .75rem; font-weight: 600; }
.barra-selecao.com-acoes .contagem { flex-direction: row; gap: 4px; }
.barra-selecao.com-acoes .perigo-texto { color: var(--perigo); }
.teste-rede + .teste-rede { margin-top: 12px; } /* modo teste: o cartão do app com SMS separado do da rede */

/* Mini dock do centro (dono, 2026-11-15, maquete A1 ajustada): microfone no alto, câmera embaixo à esquerda e story
   embaixo à direita, os dois por baixo da borda do microfone. Com eles, a barra da música, o + e a barra de seleção
   sobem 16 px (o microfone mais alto ficava embaixo da barra da música). */
.centro-dock .botao-radio { z-index: 2; margin-top: -46px; }
.dock-lado { position: absolute; z-index: 1; bottom: 4px; width: 44px; height: 44px; padding: 0; min-height: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--superficie); color: var(--texto); border: 1px solid var(--borda); }
.dock-lado svg { fill: currentColor; }
.dock-lado::after { content: ''; position: absolute; inset: -5px; }
.dock-camera { left: calc(50% - 52px); }
.dock-story { right: calc(50% - 52px); }
.tela.com-trio .mini-player { margin-bottom: 22px; }
.tela.com-trio.com-player .fab { bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 18px + 80px); }
.tela.com-trio.com-player .barra-selecao { bottom: calc(var(--nav) + 14px + env(safe-area-inset-bottom) + 92px); }

/* Lugares da comunidade (#97, dono 2026-11-15, opção A): placa branca com borda e ícone na cor do tipo (não confunde com a
   gota dos seus pontos); nome embaixo, que some de longe (zoom < 13) */
.pino-lugar { position: relative; width: 28px; height: 28px; }
.pino-lugar .placa { box-sizing: border-box; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 2.5px solid var(--c); box-shadow: 0 1px 4px rgb(0 0 0 / .4); display: grid; place-items: center; }
.pino-lugar .placa .ic { width: 16px; height: 16px; fill: var(--c); color: var(--c); }
/* o seu, visto de longe (fora dos 30 km; opção A do dono, 2026-11-16, #122): apagado e tracejado */
.pino-lugar.fora .placa { opacity: .55; border-style: dashed; }
.pino-lugar-nome { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap; font: 600 11px/1.2 system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.lugares-longe .pino-lugar-nome { display: none; }
.lg-conf { display: flex; gap: 4px 10px; flex-wrap: wrap; margin: 6px 0 2px; font-size: .85rem; }
.lg-conf:empty { display: none; }
.lg-conf span { display: inline-flex; align-items: center; gap: 4px; }
.lg-conf .ic { width: 16px; height: 16px; }
.lg-ok { color: #2e7d32; } .lg-ok .ic { fill: #2e7d32; }
.lg-nao { color: #c62828; } .lg-nao .ic { fill: #c62828; }
[data-tema=escuro] .lg-ok { color: #81c784; } [data-tema=escuro] .lg-ok .ic { fill: #81c784; }
[data-tema=escuro] .lg-nao { color: #ef9a9a; } [data-tema=escuro] .lg-nao .ic { fill: #ef9a9a; }
.leaflet-popup-content .lg-com, .leaflet-popup-content .lg-nota-lugar, .lg-com { margin: 6px 0 0; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--texto) 7%, transparent); font-size: .85rem; }
.leaflet-popup-content .lg-nota-lugar { background: none; padding: 0; }
.lg-com small { color: var(--suave); }
.lg-meu { color: var(--suave); text-align: center; }
.lg-votos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lg-votos button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lg-votos button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--acento); background: color-mix(in srgb, var(--acento) 14%, var(--superficie)); }
.lg-votos .ic { width: 18px; height: 18px; flex: none; }
.lg-titulo { display: flex; align-items: center; gap: 10px; }
.lg-titulo h2 { margin: 0; font-size: 1.2rem; }
.lg-titulo small { display: block; color: var(--suave); font-size: .85rem; }
.lg-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 40dvh; overflow: auto; }
.lg-lista li { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--texto) 6%, transparent); font-size: .9rem; overflow-wrap: anywhere; }
.lg-lista li.lg-vazio { background: none; color: var(--suave); }
.lg-lista small { color: var(--suave); display: block; font-size: .78rem; }
.lg-coment { display: flex; gap: 8px; }
.lg-coment input { flex: 1; min-width: 0; }
.menu .lg-coment button { width: auto; flex: none; }
.lg-nota { color: var(--suave); font-size: .85rem; margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.lg-nota .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: currentColor; }
/* Painel do app (#/admin): abas Contas · Lugares e filtros dos lugares */
.abas-admin, .filtros-lugares { margin-bottom: 12px; }
.abas-admin button, .filtros-lugares button { min-height: 40px; border-radius: 999px; padding: 6px 14px; }
.abas-admin button[aria-selected=true], .filtros-lugares button[aria-pressed=true] { background: var(--acento); color: #fff; }
.lugares-admin li { align-items: flex-start; }
.lugares-admin .pinozinho { margin-top: 4px; }

/* Alarme de água rasa (dono e Pavin, 2026-11-15): o mesmo vermelho piscando do alarme de âncora, no alto do mapa */
.grava-chip.raso-chip { top: 12px; bottom: auto !important; right: 86px; }
.raso-chip span { min-width: 0; }
.raso-limites[hidden] { display: none; }

/* Pontos e trajetos (#124): filtros e o ícone colorido dos lugares da comunidade */
.lista-salvos .filtro-salvos { display: flex; flex-wrap: wrap; gap: 6px; }
.lista-salvos .filtro-salvos .chip { width: auto; flex: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; }
.lista-salvos .filtro-salvos .chip.sel { background: var(--acento); color: var(--acento-texto); }
.lista-salvos .filtro-salvos small { color: inherit; opacity: .8; }
.lista-salvos .pinozinho { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.lista-salvos .pinozinho .ic { width: 16px; height: 16px; fill: #fff; color: #fff; }
.lista-salvos [hidden] { display: none !important; }
/* Pontos e trajetos: segurar seleciona vários para apagar */
.lista-salvos .sel-caixa { display: none; }
dialog.selecionando .lista-salvos .sel-caixa { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--suave); color: transparent; }
dialog.selecionando .lista-salvos .sel-caixa .ic { width: 16px; height: 16px; }
dialog.selecionando .lista-salvos .item.marcado { background: color-mix(in srgb, var(--acento) 14%, transparent); }
dialog.selecionando .lista-salvos .item.marcado .sel-caixa { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }
dialog.selecionando .lista-salvos .item:not([data-pode]) { opacity: .45; }
.lista-salvos .sel-acoes { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--superficie); padding-top: 8px; }
.lista-salvos .sel-acoes button { flex: 1; }
.lista-salvos .sel-acoes .perigo { background: var(--perigo); color: #fff; }
dialog.selecionando .lista-salvos .item:not([data-pode]) .sel-caixa { visibility: hidden; }
/* Mover o seu lugar da comunidade (dono, 2026-11-16): barra em cima do mapa e o pino pulsando */
.lg-mover { position: absolute; z-index: 600; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--superficie); color: var(--texto); box-shadow: 0 4px 14px rgb(0 0 0 / .3); font-size: .9rem; }
.lg-mover span { flex: 1; min-width: 0; }
.lg-mover button { flex: none; min-height: 40px; padding: 6px 12px; }

.lg-arrastando .placa { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 40%, transparent), 0 2px 8px rgb(0 0 0 / .5); }
/* Painel do "Ir até" embaixo (dono, 2026-11-19): em cima ele tapava o trajeto. Fica ao lado do +, e a gravação e a âncora
   sobem para cima dele */
#nav.nav-painel { top: auto; bottom: 20px; left: 12px; right: 86px; gap: 8px; padding: 8px 10px; }
#nav .nav-seta { width: 48px; height: 48px; }
#nav .nav-seta svg { width: 30px; height: 30px; }
#nav:not([hidden]) ~ .mapa-dica { display: none; }
#nav .nav-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#nav:not([hidden]) ~ .grava-chip:not(.raso-chip) { bottom: 132px; }
#nav:not([hidden]) ~ .grava-chip:not(.ancora-chip):not([hidden]) ~ .ancora-chip { bottom: 188px; }
#nav:not([hidden]) ~ .grava-chip.aberto:not([hidden]) ~ .ancora-chip { bottom: 286px; }
/* Folha de recortar o vídeo: som nos melhores momentos (do vídeo ou a música segue) */
.folha-corte .rotulo-som { margin: 4px 0 -6px; font-size: .85rem; font-weight: 700; color: var(--suave); }
.folha-corte .som-corte button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
