/* Pastoral da Música — estilos base.
   Cores vêm dos SVGs do protótipo. O dourado #C9A227 só é usado em fundos/detalhes;
   para TEXTO sobre branco usa-se --gold-text (contraste > 4,5:1). */
:root {
  --bg: #F4F1EA;
  --screen: #FAFAF7;
  --card: #FFFFFF;
  --navy: #1E3A5F;
  --navy-soft: #EEF2F7;
  --gold: #C9A227;
  --gold-text: #7A5C00;
  --text: #1F2933;
  --muted: #5B6573;
  --line: #E5E0D5;
  --line-strong: #8A8478;
  --green: #2E7D4F;
  --green-bg: #E8F3EC;
  --amber: #8A5A00;
  --amber-bg: #FFF8E6;
  --amber-line: #F1DFA8;
  --red: #B42318;
  --red-bg: #FDECEA;
  --radius: 12px;
  --tap: 48px;
  --font: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--screen);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
@media (min-width: 520px) {
  #app { box-shadow: 0 0 0 1px var(--line); }
}

.screen { flex: 1; display: flex; flex-direction: column; padding: 24px 20px 20px; }

/* Texto */
h1 { font-size: 24px; line-height: 1.2; margin: 0; color: var(--navy); }
h2 { font-size: 20px; margin: 0; color: var(--navy); }
p { margin: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 14px; }

/* Marca */
.brand { text-align: center; margin: 24px 0 28px; }
.logo {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-size: 44px; font-weight: 700; margin: 0 auto 16px;
}
.brand p { margin-top: 4px; }
/* Crédito da Power Help na tela de entrada (logo positiva, transparente, sem caixa). */
.credito { text-align: center; margin-top: 24px; }
.credito a { display: inline-block; border-radius: 8px; }
.credito p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.credito img { display: block; margin: 0 auto; height: 44px; width: auto; max-width: 100%; }

/* Botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: var(--tap); padding: 12px 16px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost { background: none; color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.link {
  background: none; border: 0; padding: 12px 8px; min-height: 44px;
  font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.g-mark {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  font-weight: 700; color: #4285F4; font-size: 15px;
}

/* Divisor */
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Campos */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .opt { font-weight: 400; }
.input-wrap { position: relative; }
.input {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
}
.input:focus-visible, .btn:focus-visible, .link:focus-visible, .toggle-pw:focus-visible, .check input:focus-visible {
  outline: 3px solid #7FA6D6; outline-offset: 2px;
}
.input[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.input.has-toggle { padding-right: 76px; }
.toggle-pw {
  position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 64px;
  background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--navy); cursor: pointer; border-radius: 8px;
}
.error { color: var(--red); font-size: 14px; margin-top: 6px; display: none; }
.error.show { display: block; }
.hint { color: var(--muted); font-size: 14px; margin-top: 6px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 6px; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.check label { font-size: 15px; }

/* Avisos */
.notice { border-radius: var(--radius); padding: 14px 16px; font-size: 15px; margin-bottom: 16px; }
.notice-error { background: var(--red-bg); color: var(--red); border: 1px solid #F3B7B0; }
.notice-info { background: var(--navy-soft); color: var(--navy); }
.notice-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-line); }
.notice-ok { background: var(--green-bg); color: var(--green); }

/* Cartão de instalação */
.install-group { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.install {
  background: var(--navy-soft); border-radius: 14px;
  padding: 14px 16px; display: flex; gap: 12px; align-items: center;
}
.install strong { display: block; color: var(--navy); font-size: 15px; }
.install span { color: var(--muted); font-size: 14px; }
.install .btn { width: auto; min-height: 44px; padding: 8px 16px; font-size: 15px; flex: none; }
.login-links { display: flex; flex-direction: column; align-items: center; margin: 8px 0 20px; }

/* Cabeçalho de telas internas */
.topbar {
  display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: 4px 8px; border-bottom: 1px solid var(--line); background: var(--screen);
}
.topbar h1 { font-size: 19px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; font-size: 24px; color: var(--navy); cursor: pointer; border-radius: 10px;
}

/* Estrutura das telas internas */
.shell { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.content { flex: 1; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; color: inherit; text-decoration: none;
}
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
a.card:focus-visible, .tab:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.card-aviso { background: var(--amber-bg); border-color: var(--amber-line); }
.card-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 4px 0; line-height: 1.3; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--gold-text); }
.eyebrow-amber { color: var(--amber); }
.chev { font-size: 28px; color: var(--navy); line-height: 1; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-btns .btn { font-size: 15px; padding: 10px 8px; }
.btn-green:disabled { opacity: 1; background: var(--green-bg); color: var(--green); border-color: var(--green); }
.nivel-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.nivel-nome { font-size: 20px; font-weight: 700; color: var(--navy); }
.nivel-pts { font-size: 15px; font-weight: 600; }
.progress { height: 10px; background: #E8E2D6; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 5px; }

/* Sino com contador */
.bell { position: relative; font-size: 22px; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* Tela 03 — Escalas */
.link-top {
  background: none; border: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px;
  font-weight: 700; color: var(--navy); cursor: pointer; border-radius: 10px;
}
.link-top:focus-visible, .chip:focus-visible, .dia:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 20px; font: inherit; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--text); border: 1px solid var(--line-strong); cursor: pointer;
}
.chip-navy.ativo { background: var(--navy); color: #fff; border-color: var(--navy); }
/* Dourado só como fundo com texto escuro: o branco sobre #C9A227 não passa no contraste. */
.chip-gold.ativo { background: var(--gold); color: #1F2933; border-color: var(--gold); }
.semana-nav { display: flex; align-items: center; justify-content: space-between; }
.semana-rotulo { font-weight: 700; color: var(--navy); }
.dias { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.dia {
  display: flex; flex-direction: column; align-items: center; min-height: 64px; padding: 6px 0 2px;
  border-radius: 12px; border: 1px solid transparent; background: none; font: inherit; color: var(--text); cursor: pointer;
}
.dia-sem { font-size: 13px; font-weight: 600; color: var(--muted); }
.dia-num { font-size: 18px; font-weight: 700; }
.dia-ponto { font-size: 18px; line-height: 10px; height: 10px; color: var(--gold-text); }
.dia.hoje { border-color: var(--line-strong); }
.dia.ativo { background: var(--navy); color: #fff; }
.dia.ativo .dia-sem, .dia.ativo .dia-ponto { color: #fff; }
.escala-lista { display: flex; flex-direction: column; gap: 6px; }
.dia-bloco { scroll-margin-top: 8px; }
.dia-titulo { font-size: 15px; font-weight: 700; color: var(--navy); margin: 10px 0 8px; }
.cel { margin-bottom: 10px; }
.cel-topo { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cel-hora { font-size: 22px; font-weight: 700; }
.cel-local { font-size: 15px; font-weight: 600; color: var(--muted); }
.cel-topo .pill { margin-left: auto; }
.pill-gold { background: #C9A22733; color: #6B5000; }
.pessoas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pessoa { padding: 4px 12px; border-radius: 14px; background: var(--navy-soft); color: var(--navy); font-size: 14px; font-weight: 600; }
.pessoa.eu { background: var(--navy); color: #fff; }
.reserva { display: flex; gap: 8px; font-size: 14px; margin-top: 4px; }
.reserva-pos { font-weight: 700; color: var(--muted); min-width: 26px; display: inline-block; }
.lista-limpa { list-style: none; margin: 4px 0 0; padding: 0; }
.linha-pessoa { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.linha-pessoa:last-child { border-bottom: 0; }
.fab {
  position: fixed; bottom: 84px; right: max(16px, calc((100vw - 480px) / 2 + 16px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #1F2933;
  display: grid; place-items: center; font-size: 30px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25); z-index: 10;
}
.fab:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 3px; }
textarea.input { font-family: inherit; }

/* Tela 04 — Avisar ausência */
.resumo { background: var(--navy-soft); border-color: var(--navy-soft); }
.aviso-prazo { color: var(--red); }
.prazo-ok { color: var(--amber); }
.lista-avisados { margin: 6px 0 0; padding-left: 20px; }
.lista-avisados li { margin-bottom: 2px; }
.pill-red { background: #B4231822; color: var(--red); }
.pessoa.ausente { text-decoration: line-through; opacity: .7; }

/* Tela 05 — Chamado de reserva */
.notif { background: #1C2433; color: #fff; border-radius: 16px; padding: 14px 16px; }
.notif-topo { font-size: 12px; font-weight: 700; color: #B8C2D4; letter-spacing: .03em; }
.notif-titulo { font-size: 16px; font-weight: 700; margin-top: 6px; }
.notif-texto { font-size: 15px; color: #E3E8F0; margin-top: 2px; }
.resposta { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.resposta-nomes { flex: 1; font-weight: 600; }
.riscado { text-decoration: line-through; opacity: .7; }
.link-linha { display: inline-block; margin-top: 6px; color: var(--navy); font-weight: 600; font-size: 14px; }
.card-alerta { background: var(--red-bg); border-color: #F3B7B0; }
.eyebrow-red { color: var(--red); }

/* Tela 06 — Check-in */
.visor {
  position: relative; background: #1C2433; border-radius: 18px; height: 300px; overflow: hidden;
  display: grid; place-items: center;
}
.visor-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visor-aviso { position: relative; color: #D7DDE8; font-size: 15px; text-align: center; padding: 0 28px; }
.canto { position: absolute; width: 34px; height: 34px; border: 5px solid var(--gold); }
.c1 { top: 56px; left: 56px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.c2 { top: 56px; right: 56px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.c3 { bottom: 56px; left: 56px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.c4 { bottom: 56px; right: 56px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.ok-card { display: flex; gap: 14px; align-items: center; background: var(--green-bg); border: 1px solid #B9DCC6; border-radius: 14px; padding: 16px; }
.ok-icone { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: none; }
.ok-titulo { font-size: 16px; font-weight: 700; color: var(--green); }
.ok-sub { font-size: 14px; font-weight: 600; }

/* Tela 07 — Músicas do dia */
.data-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.data-dia { font-size: 16px; font-weight: 700; }
.pill-btn { min-height: 44px; border-radius: 22px; font-size: 15px; }
.musica { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0; }
.musica-link { flex: 1; min-width: 0; padding: 14px 0 14px 16px; color: inherit; text-decoration: none; border-radius: 14px 0 0 14px; }
.musica-link:focus-visible { outline: 3px solid #7FA6D6; outline-offset: -3px; }
.musica-titulo { font-size: 16px; font-weight: 600; margin-top: 2px; }
.musica-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 10px 12px 10px 0; }
.estrela { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; border-radius: 10px; }
.estrela.ativa { color: var(--gold-text); }
.estrela:disabled { cursor: default; }
.estrela:focus-visible { outline: 3px solid #7FA6D6; }
.estrela-qtd { font-size: 14px; font-weight: 700; }
.pill-ia { background: #7C3AED22; color: #5B21B6; }
.linha-log { padding: 8px 0; border-bottom: 1px solid var(--line); }
.linha-log:last-child { border-bottom: 0; }
.edit-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.edit-linha { padding: 10px 0; border-top: 1px solid var(--line); }
.edit-titulo { font-weight: 600; margin-bottom: 8px; }
.edit-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { min-height: 40px; min-width: 44px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.mini:disabled { opacity: .4; cursor: default; }
.mini-perigo { color: var(--red); border-color: var(--red); }
.mini:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }

/* Tela 08 — Música */
.player { display: flex; align-items: center; gap: 12px; background: var(--navy-soft); border-radius: 14px; padding: 12px 14px; }
.play { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 18px; cursor: pointer; }
.play:disabled { opacity: .5; cursor: default; }
.play:focus-visible, .barra:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.player-meio { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tempo { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.barra { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer; }
.barra::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--navy) var(--p, 0%), #D5D0C4 var(--p, 0%)); }
.barra::-moz-range-track { height: 6px; border-radius: 3px; background: #D5D0C4; }
.barra::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--navy); }
.barra::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--navy); }
.barra::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; }
.barra:disabled { opacity: .5; cursor: default; }
.cifra-controles { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tom { display: flex; align-items: center; gap: 6px; }
.tom-valor { min-width: 44px; text-align: center; font-size: 18px; font-weight: 700; color: var(--navy); }
.cifra-cartao { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto; }
.cifra-cartao:focus-visible { outline: 3px solid #7FA6D6; }
.cifra-secao { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 4px; }
.cifra-vazia { height: 8px; }
.cifra-linha pre { margin: 0; font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace; font-size: 14px; line-height: 1.35; white-space: pre; }
.acordes { color: #B45309; font-weight: 700; }
.letra { color: var(--text); }

/* Tela 09 — Editar cifra */
.cifra-editor {
  width: 100%; min-height: 280px; padding: 14px; resize: vertical; background: #fff; color: var(--text);
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace; font-size: 14px; line-height: 1.5;
  border: 1px solid var(--line-strong); border-radius: 12px; white-space: pre; overflow-x: auto;
}
.cifra-editor:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.dif { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; overflow-x: auto; }
.dif-linha { display: flex; gap: 8px; padding: 2px 6px; border-radius: 6px; font-size: 13px; white-space: pre; }
.dif-linha code { font-family: 'JetBrains Mono', Consolas, monospace; }
.dif-sinal { font-weight: 700; }
.dif-nova { background: var(--green-bg); color: #1E5B38; }
.dif-removida { background: var(--red-bg); color: #8E1B12; }
.acorde-previa { color: var(--navy); }

/* Tela 16 — Área da coordenação */
.abas { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.aba { flex: none; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 22px; cursor: pointer; }
.aba.ativa { background: var(--navy); color: #fff; border-color: var(--navy); }
.aba:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.aba-n { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--gold); color: #1F2933; font-size: 13px; font-weight: 700; }
.perm-lista { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.opcoes { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.opcao { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.opcao input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.opcao-longa { align-items: flex-start; padding: 8px 0; line-height: 1.35; }
.opcao-longa input { margin-top: 1px; }
.opcao-longa .muted { display: block; margin-top: 2px; }
.dif-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dif-col { min-width: 0; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.dif-l { font-size: 12px; white-space: pre; border-radius: 4px; padding: 0 4px; }
.dif-l code { font-family: 'JetBrains Mono', Consolas, monospace; }
.dif-l.dif-nova { background: var(--green-bg); color: #1E5B38; }
.dif-l.dif-removida { background: var(--red-bg); color: #8E1B12; }
.log-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.log-datas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Telas 10 a 15 e central de notificações */
.pill-gray { background: #5B657322; color: var(--muted); }
.caminho { margin-top: 10px; font-size: 14px; color: var(--muted); }
.caminho-atual { color: var(--navy); font-weight: 700; }
.botao-card { width: 100%; font: inherit; cursor: pointer; background: #fff; text-align: left; }
.ok-mini { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 14px; }
.alternativas { display: flex; flex-direction: column; gap: 8px; }
.alternativa { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; font: inherit; font-size: 16px; text-align: left; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.alternativa.escolhida { border-color: var(--navy); background: var(--navy-soft); font-weight: 600; }
.alternativa:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.letra-alt { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 700; }
.alternativa.escolhida .letra-alt { background: var(--navy); color: #fff; }
.perfil-topo { text-align: center; display: flex; flex-direction: column; align-items: center; }
.avatar-g { width: 72px; height: 72px; font-size: 24px; }
.pessoa.pendente { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.podio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; margin: 4px 0; }
.podio-col { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.podio-col.p1 { padding-bottom: 22px; border-color: var(--gold); }
.podio-col.eu { background: var(--navy-soft); }
.podio-col:focus-visible, .linha-rank:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.podio-pos { font-weight: 700; color: var(--gold-text); }
.linha-rank { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; font: inherit; text-align: left; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.linha-rank.eu { background: var(--navy-soft); border-color: var(--navy); }
.rank-pos { width: 32px; font-weight: 700; color: var(--muted); }
.rank-nome { flex: 1; display: flex; flex-direction: column; }
.rank-pts { font-weight: 700; }
.aviso { position: relative; padding: 0; }
.aviso-urgente { border-color: var(--amber-line); background: var(--amber-bg); }
.aviso-corpo { display: block; width: 100%; padding: 14px 52px 14px 16px; font: inherit; text-align: left; color: inherit; background: none; border: 0; border-radius: 14px; cursor: pointer; }
.aviso-corpo:focus-visible { outline: 3px solid #7FA6D6; outline-offset: -3px; }
.aviso-mais { position: absolute; top: 6px; right: 6px; }
.aviso-resumo { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ponto-azul { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #2563EB; }
.pessoa-edit { display: inline-flex; align-items: center; gap: 2px; padding-right: 4px; }
.pessoa-edit small { font-weight: 400; opacity: .85; }
.pessoa-edit.indisp { background: var(--red-bg); color: var(--red); border: 1px solid #F3B7B0; }
.pessoa-edit .x { min-width: 40px; min-height: 40px; margin: -8px -6px -8px 0; background: none; border: 0; font-size: 18px; color: inherit; cursor: pointer; border-radius: 50%; }
.pessoa-edit .x:focus-visible { outline: 3px solid #7FA6D6; }
.account.indisp small:first-of-type { color: var(--red); }
.account:disabled { opacity: .6; cursor: default; }

/* Modo apresentação */
.apres { position: fixed; inset: 0; z-index: 40; background: #0F1624; color: #fff; display: flex; flex-direction: column; }
.apres-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #2A3550; font-size: 16px; }
.apres-tom { color: #FBBF24; font-weight: 700; }
.apres-corpo { flex: 1; min-height: 0; overflow: auto; padding: 18px 18px 40vh; --fonte: 22px; }
.apres-corpo .cifra-secao { color: #9AA8C2; font-size: calc(var(--fonte) * .6); }
.apres-corpo .cifra-linha pre { font-size: var(--fonte); line-height: 1.3; }
.apres-corpo .acordes { color: #FBBF24; }
.apres-corpo .letra { color: #fff; }
.apres-rodape { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #2A3550; }
.apres-btn { min-height: 48px; min-width: 48px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: #25314D; border: 1px solid #3B4A6B; border-radius: 12px; cursor: pointer; }
.apres-btn:focus-visible { outline: 3px solid #7FA6D6; outline-offset: 2px; }
.apres-rotulo { font-size: 14px; color: #D7DDE8; min-width: 92px; text-align: center; }

/* Menu inferior */
.bottom-nav {
  position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px;
  padding: 4px 0; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 12px;
}
.tab-icon { font-size: 18px; font-weight: 700; padding: 2px 16px; border-radius: 14px; line-height: 1.3; }
.tab.active { color: var(--navy); font-weight: 700; }
.tab.active .tab-icon { background: #1E3A5F1A; }

/* Pílulas de status */
.pill-blue { background: #1E3A5F22; color: var(--navy); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill-amber { background: #B7791F22; color: var(--amber); }
.pill-green { background: #2E7D4F22; color: var(--green); }

/* Sobreposições (sheet) */
#overlay-root .backdrop {
  position: fixed; inset: 0; background: rgba(28, 36, 51, .5);
  display: flex; align-items: flex-end; justify-content: center; z-index: 20;
}
.sheet {
  background: #fff; width: 100%; max-width: 480px; max-height: 88dvh; overflow: auto;
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}
.sheet h2 { margin-bottom: 8px; }
.sheet p + p { margin-top: 10px; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.sheet ol { padding-left: 20px; margin: 10px 0 0; }
.sheet li { margin-bottom: 8px; }
.account {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 60px; padding: 10px 12px; margin-top: 8px; font: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy-soft);
  color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: none;
}
.account small { display: block; color: var(--muted); font-size: 14px; }

/* Toast */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; display: flex; justify-content: center; pointer-events: none; }
.toast {
  background: #1C2433; color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 15px; max-width: 420px; margin: 0 16px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Estado centralizado (aguardando) */
.status-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 24px auto 20px;
  display: grid; place-items: center; font-size: 36px; background: var(--amber-bg); border: 1px solid var(--amber-line);
}

@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: up .18s ease-out; }
  @keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}
