/* Estilo "Claro sereno": fundo azulado claro, cartões brancos com sombra suave, azul como destaque */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #121826;
  --muted: #5b6475;
  --border: #e3e7ef;
  --primary: #3451d1;
  --primary-text: #ffffff;
  --primary-soft: #edf2ff;
  --danger: #c92a2a;
  --badge-bg: #edf2ff;
  --badge-text: #22389e;
  --rehearsal-bg: #fff4e0;
  --rehearsal-text: #8a4b00;
  --ok-bg: #e6fceb;
  --ok-text: #1e6e31;
  --ok-dot: #2f9e44;
  --warn-bg: #fff4e0;
  --warn-text: #8a4b00;
  --warn-dot: #e8590c;
  --todo-bg: #fff0f0;
  --todo-text: #a61e1e;
  --todo-dot: #e03131;
  --worship-bg: #e7f0ff;
  --worship-text: #1864ab;
  --upbeat-bg: #fff0e0;
  --upbeat-text: #b5410b;
  --leader-bg: #f3f0ff;
  --leader-text: #5f3dc4;
  --leader-dot: #7048e8;
  /* Funções da escala: fundo do avatar / texto */
  --role-lider-bg: #e5dbff;   --role-lider-text: #5f3dc4;
  --role-vocal-bg: #d0ebff;   --role-vocal-text: #1864ab;
  --role-teclado-bg: #c3fae8; --role-teclado-text: #087f5b;
  --role-bateria-bg: #ffe8cc; --role-bateria-text: #c2410c;
  --role-outro-bg: #eef1f6;   --role-outro-text: #495057;
  --shadow: 0 1px 2px rgb(18 24 38 / .05), 0 6px 18px rgb(18 24 38 / .05);
  --shadow-lg: 0 10px 30px rgb(52 81 209 / .25);
  --radius: 18px;
  --tabbar-h: 68px;
  color-scheme: light dark;
}

/* Tema escuro: automático (segue o aparelho) ou escolhido no app (data-theme no <html>) */
:root[data-theme="dark"] {
  --bg: #0d0f14;
  --surface: #171a22;
  --surface-2: #1f2430;
  --text: #eef0f5;
  --muted: #9aa1b2;
  --border: #262c3a;
  --primary: #7b93ff;
  --primary-text: #0d0f14;
  --primary-soft: #232b4a;
  --danger: #ff8787;
  --badge-bg: #232b4a;
  --badge-text: #c5d0ff;
  --rehearsal-bg: #3b2f12;
  --rehearsal-text: #fcd34d;
  --ok-bg: #11301d;
  --ok-text: #8ce99a;
  --ok-dot: #40c057;
  --warn-bg: #3b2a12;
  --warn-text: #ffc078;
  --warn-dot: #fd7e14;
  --todo-bg: #3d1717;
  --todo-text: #ffa8a8;
  --todo-dot: #fa5252;
  --worship-bg: #1c2b45;
  --worship-text: #a5d8ff;
  --upbeat-bg: #3b2210;
  --upbeat-text: #ffc078;
  --leader-bg: #2a2045;
  --leader-text: #d0bfff;
  --leader-dot: #9775fa;
  --role-lider-bg: #2a2045;   --role-lider-text: #d0bfff;
  --role-vocal-bg: #1c2b45;   --role-vocal-text: #a5d8ff;
  --role-teclado-bg: #12332b; --role-teclado-text: #96f2d7;
  --role-bateria-bg: #3b2210; --role-bateria-text: #ffc078;
  --role-outro-bg: #1f2430;   --role-outro-text: #ced4da;
  --shadow: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-lg: 0 10px 30px rgb(0 0 0 / .4);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f14;
    --surface: #171a22;
    --surface-2: #1f2430;
    --text: #eef0f5;
    --muted: #9aa1b2;
    --border: #262c3a;
    --primary: #7b93ff;
    --primary-text: #0d0f14;
    --primary-soft: #232b4a;
    --danger: #ff8787;
    --badge-bg: #232b4a;
    --badge-text: #c5d0ff;
    --rehearsal-bg: #3b2f12;
    --rehearsal-text: #fcd34d;
    --ok-bg: #11301d;
    --ok-text: #8ce99a;
    --ok-dot: #40c057;
    --warn-bg: #3b2a12;
    --warn-text: #ffc078;
    --warn-dot: #fd7e14;
    --todo-bg: #3d1717;
    --todo-text: #ffa8a8;
    --todo-dot: #fa5252;
    --worship-bg: #1c2b45;
    --worship-text: #a5d8ff;
    --upbeat-bg: #3b2210;
    --upbeat-text: #ffc078;
    --leader-bg: #2a2045;
    --leader-text: #d0bfff;
    --leader-dot: #9775fa;
    --role-lider-bg: #2a2045;   --role-lider-text: #d0bfff;
    --role-vocal-bg: #1c2b45;   --role-vocal-text: #a5d8ff;
    --role-teclado-bg: #12332b; --role-teclado-text: #96f2d7;
    --role-bateria-bg: #3b2210; --role-bateria-text: #ffc078;
    --role-outro-bg: #1f2430;   --role-outro-text: #ced4da;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-lg: 0 10px 30px rgb(0 0 0 / .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--primary); text-decoration: none; }
h1, h2 { line-height: 1.2; }

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
}

/* Cabeçalho da página */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 12px) 0 12px;
  background: var(--bg);
}
.topbar h1 { flex: 1; margin: 0; font-size: 1.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { font-size: 2rem; line-height: 1; padding: 0 8px 4px 0; color: var(--text); }

/* Botões */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 6px 12px; font-size: .875rem; }
.btn.block { width: 100%; margin-top: 32px; }
.btn:disabled { opacity: .5; cursor: default; }

.icon-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}
.icon-btn:disabled { opacity: .25; cursor: default; }

/* Formulários */
input, select, textarea {
  width: 100%;
  font: inherit; /* 16px evita zoom automático no iOS */
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.search { margin-bottom: 12px; }
.search-form { display: flex; gap: 8px; margin-bottom: 12px; }

.segmented { display: flex; padding: 3px; margin-bottom: 12px; background: var(--surface-2); border-radius: 999px; }
.segmented button { flex: 1; padding: 6px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

/* Cartões e listas */
.card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 1.05rem; }

.list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  font: inherit;
  text-align: left;
}
button.list-item { cursor: pointer; }
button.list-item:disabled { opacity: .45; cursor: default; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
a.grow { color: inherit; }
.grow strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grow small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.thumb { flex-shrink: 0; width: 64px; height: 36px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.thumb.placeholder { display: grid; place-items: center; color: var(--muted); }
.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-weight: 700;
}

.badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: .8rem;
  font-weight: 700;
}
.badge.ensaio { background: var(--rehearsal-bg); color: var(--rehearsal-text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.empty { padding: 24px 8px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.center { text-align: center; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Agenda */
.event-date { flex-shrink: 0; width: 44px; text-align: center; line-height: 1.1; }
.event-date b { display: block; font-size: 1.4rem; }
.event-date small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; }

/* Repertório do evento */
.pos { flex-shrink: 0; width: 18px; color: var(--muted); font-weight: 700; text-align: center; }
.key-select { flex-shrink: 0; width: auto; padding: 6px 8px; font-weight: 700; }
.reorder { display: flex; flex-direction: column; }
.reorder .icon-btn { height: 24px; }

/* Música */
.video { aspect-ratio: 16 / 9; margin-bottom: 16px; overflow: hidden; border-radius: var(--radius); background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 12px 0; }
.facts div { padding: 8px; background: var(--surface-2); border-radius: 10px; text-align: center; }
.facts dt { color: var(--muted); font-size: .75rem; }
.facts dd { margin: 0; font-weight: 700; }

/* Situação do ensaio */
.status-ensaiada { --st-bg: var(--ok-bg); --st-text: var(--ok-text); --st-dot: var(--ok-dot); }
.status-repassar { --st-bg: var(--warn-bg); --st-text: var(--warn-text); --st-dot: var(--warn-dot); }
.status-ensaiar { --st-bg: var(--todo-bg); --st-text: var(--todo-text); --st-dot: var(--todo-dot); }
.status-none { --st-dot: var(--border); }
.badge[class*="status-"] { background: var(--st-bg); color: var(--st-text); }

/* Resumo do repertório (também filtra pela situação) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--st-dot);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stat b { font-size: 1.4rem; line-height: 1.1; }
.stat small { color: var(--muted); font-size: .78rem; }
.stat.active { background: var(--st-bg); border-color: var(--st-dot); }
.stat.active small { color: var(--st-text); }

/* Filtros */
.chips { display: flex; gap: 6px; margin: 0 -16px 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-text); font-weight: 600; }
.count { margin: 4px 0 8px; font-size: .85rem; }

/* Ministro + tom de cada versão na lista */
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: .75rem;
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-dot); }
.pill b { color: var(--badge-text); }

/* Versões por ministro (tela da música) */
.version { padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.version-head { display: flex; align-items: center; gap: 12px; }
.version-head .grow { align-items: flex-start; gap: 2px; }
.key-big {
  flex-shrink: 0;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}
.version-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; font-size: .875rem; }
.version-facts dt { color: var(--muted); font-size: .75rem; }
.version-facts dd { margin: 0; font-weight: 600; }
.version-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }

.checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; }
.checks legend { margin-bottom: 4px; padding: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .875rem;
  cursor: pointer;
}
.checks input { width: auto; margin: 0; accent-color: var(--primary); }
.checks label:has(input:checked) { border-color: var(--primary); background: var(--badge-bg); color: var(--badge-text); font-weight: 600; }

/* Equipe */
.member-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }

/* Janela inferior (bottom sheet) */
dialog.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  margin: auto auto 0;
  padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow-y: auto;
}
dialog.sheet::backdrop { background: rgb(0 0 0 / .45); }
@media (min-width: 640px) {
  dialog.sheet { margin: auto; border-radius: 20px; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-head h2 { margin: 0; font-size: 1.2rem; }
.sheet-actions { display: flex; gap: 8px; margin-top: 8px; }
.sheet-actions .spacer { flex: 1; }

/* Navegação inferior */
.tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.tabbar a, .tabbar .theme-toggle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.tabbar a.active { color: var(--primary); }
.theme-toggle { border: 0; background: none; font: inherit; font-size: .75rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #121826;
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgb(0 0 0 / .2);
}

/* Estilo musical */
.badge.style { font-weight: 600; }
.badge.style-adoracao { background: var(--worship-bg); color: var(--worship-text); }
.badge.style-agitada { background: var(--upbeat-bg); color: var(--upbeat-text); }
.style-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; font-size: .85rem; color: var(--muted); }

/* Líder, folga */
.leader { --st-bg: var(--leader-bg); --st-text: var(--leader-text); --st-dot: var(--leader-dot); }
.badge.leader { background: var(--leader-bg); color: var(--leader-text); }
.badge.off { background: var(--surface-2); color: var(--muted); }
.list-item.is-off { opacity: .7; }

/* Linhas de filtro: rótulo + botões roláveis */
.filter-row { display: flex; align-items: center; gap: 8px; margin: 0 -16px 8px 0; }
.filter-label { flex-shrink: 0; width: 64px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.filter-row .chips { flex: 1; min-width: 0; margin: 0; padding: 0 16px 0 0; }

.actions { display: flex; gap: 6px; }
.hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--text);
  font-size: .875rem;
}
.hint[hidden] { display: none; }
.small { font-size: .85rem; }
.chevron { color: var(--muted); font-size: 1.4rem; }

/* Agenda */
.summary { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card { align-items: flex-start; }
.event-card .badge { margin-top: 2px; }
.planned { border-style: dashed; background: transparent; align-items: center; }

/* Escala do mês */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.month-nav h2 { margin: 0; font-size: 1.1rem; }
.month-nav .icon-btn { display: grid; place-items: center; width: 36px; height: 36px; padding-bottom: 3px; font-size: 1.5rem; line-height: 1; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.roster-day { align-items: flex-start; }
.roster-day.past { opacity: .65; }
.role-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: .875rem; }
.role-lines small { display: inline-block; width: 64px; color: var(--muted); font-size: .75rem; }
.role-lines .leader { color: var(--leader-text); font-weight: 700; }
.roster-actions { display: flex; flex-direction: column; gap: 4px; }
.summary-row .badge { font-weight: 600; }
.empty .btn { margin-top: 8px; }

/* Página da pessoa */
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.profile .grow { gap: 2px; }
.avatar.big { width: 56px; height: 56px; font-size: 1.3rem; }
.stats .stat:not(button) { cursor: default; }
.month-title { margin: 16px 0 6px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pills.end { justify-content: flex-end; margin: 0; }
details.more summary { padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--primary); font-weight: 600; cursor: pointer; }
details.more[open] summary { margin-bottom: 8px; }

/* Grade da escala (pessoas × cultos) */
.grid-scroll { margin: 0 -16px; padding: 0 16px; overflow-x: auto; }
.roster-grid { border-collapse: separate; border-spacing: 3px; font-size: .85rem; }
.roster-grid th, .roster-grid td { padding: 0; text-align: center; }
.roster-grid .sticky { position: sticky; left: 0; z-index: 1; background: var(--bg); text-align: left; }
.roster-grid .name { padding-right: 8px; white-space: nowrap; font-weight: 600; }
.roster-grid .name a { color: var(--text); }
.roster-grid tr.group th { padding: 10px 0 2px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.roster-grid th.day { min-width: 42px; padding-bottom: 4px; line-height: 1.1; }
.roster-grid th.day small { display: block; color: var(--muted); font-size: .65rem; font-weight: 600; text-transform: uppercase; }
.roster-grid th.day b { display: block; font-size: 1rem; }
.roster-grid th.day .missing { display: block; color: var(--todo-text); font-size: .62rem; font-weight: 700; }
.roster-grid th.day.warn b { color: var(--todo-dot); }
.roster-grid .total { min-width: 44px; padding: 0 4px; color: var(--muted); font-weight: 700; }
.roster-grid td.total { border-radius: 8px; background: var(--surface); color: var(--text); }
.roster-grid td.total small { color: var(--leader-text); }
.roster-grid td.total.high, .total-chip.high { background: var(--todo-bg); color: var(--todo-text); }
.roster-grid td.total.low, .total-chip.low { background: var(--ok-bg); color: var(--ok-text); }
.total-chip { padding: 0 6px; border-radius: 6px; font-weight: 700; }

.cell {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.cell.voice { background: var(--worship-bg); border-color: transparent; color: var(--worship-text); }
.cell.lead { background: var(--leader-dot); border-color: transparent; color: #fff; }
.cell.inst { background: var(--upbeat-bg); border-color: transparent; color: var(--upbeat-text); }
.cell.streak { box-shadow: inset 0 0 0 2px var(--warn-dot); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 12px 0 4px; font-size: .8rem; color: var(--muted); }
.legend .cell { width: 26px; height: 22px; font-size: .75rem; cursor: default; }

/* ---------- Estilo A: acabamento dos componentes ---------- */
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.topbar h1 { font-weight: 800; letter-spacing: -.02em; }
.page-sub { margin: -4px 0 16px; font-size: .9rem; }
.card, .list-item, .version, .stat { border-color: transparent; box-shadow: var(--shadow); }
.list-item { padding: 12px 14px; transition: transform .12s ease, box-shadow .12s ease; }
a.list-item:active, button.list-item:active, .person:active { transform: scale(.98); }
.planned { border: 1.5px dashed var(--border); box-shadow: none; }
.btn { min-height: 44px; font-weight: 700; transition: transform .12s ease, filter .12s ease; }
.btn.small { min-height: 36px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { box-shadow: 0 4px 14px rgb(52 81 209 / .25); }
.btn.ok { background: var(--ok-dot); border-color: var(--ok-dot); color: #fff; box-shadow: 0 4px 14px rgb(47 158 68 / .25); }
.btn.whatsapp { background: var(--ok-bg); border-color: transparent; color: var(--ok-text); }
.link { padding: 8px 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.icon-btn { width: 44px; height: 44px; }
.segmented { padding: 4px; }
.segmented button { min-height: 36px; }
.chip { min-height: 36px; }
.chips.wrap { flex-wrap: wrap; margin: 0 0 8px; padding: 0; overflow: visible; }
.label { margin: 16px 0 8px; font-size: .85rem; font-weight: 700; }

/* Bloco de data: "DOM 04 OUT" em quadradinho */
.event-date { display: flex; flex-direction: column; justify-content: center; width: 48px; height: 54px; border-radius: 14px; background: var(--surface-2); }
.event-date b { font-size: 1.3rem; font-weight: 800; }
.event-date small { font-size: .62rem; font-weight: 700; }
.is-today .event-date { background: var(--primary); color: var(--primary-text); }
.is-today .event-date small { color: inherit; opacity: .85; }

/* Avatares coloridos por função */
.avatar { width: 40px; height: 40px; font-size: .85rem; font-weight: 800; }
.avatar.role-lider { background: var(--role-lider-bg); color: var(--role-lider-text); }
.avatar.role-vocal { background: var(--role-vocal-bg); color: var(--role-vocal-text); }
.avatar.role-teclado { background: var(--role-teclado-bg); color: var(--role-teclado-text); }
.avatar.role-bateria { background: var(--role-bateria-bg); color: var(--role-bateria-text); }
.avatar.role-outro { background: var(--role-outro-bg); color: var(--role-outro-text); }
.avatar.pending { outline: 2px dashed var(--warn-dot); outline-offset: 2px; }

/* Respostas à escala */
.badge.reply-confirmado { background: var(--ok-bg); color: var(--ok-text); }
.badge.reply-pendente { background: var(--warn-bg); color: var(--warn-text); }
.badge.reply-troca { background: var(--todo-bg); color: var(--todo-text); }

/* Cartão de culto na escala */
.day-card { display: flex; flex-direction: column; gap: 12px; }
.day-card.is-today { box-shadow: var(--shadow), 0 0 0 2px var(--primary); }
.day-card.past { opacity: .6; }
.day-card.needs-reply { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--warn-bg); }
.day-head { display: flex; align-items: center; gap: 12px; }
.day-head .grow strong { font-weight: 800; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 12px; background: var(--surface-2); color: var(--text); transition: transform .12s ease; }
.person .avatar { width: 30px; height: 30px; font-size: .7rem; }
.person > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.person b { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person::after { content: ""; position: absolute; top: 4px; left: 30px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--surface-2); }
.person.reply-confirmado::after { background: var(--ok-dot); }
.person.reply-pendente::after { display: none; }
.person.reply-troca::after { background: var(--todo-dot); }
.person.reply-troca { background: var(--todo-bg); }
.day-actions { display: flex; justify-content: flex-end; gap: 6px; }

/* Minha escala */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--ok-dot); transition: width .3s ease; }
.progress-label { margin: 6px 0 14px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.reply-actions { display: flex; gap: 8px; }
.reply-actions .btn { flex: 1; border-radius: 14px; }
.reply-actions .btn.primary, .reply-actions .btn.ok { flex: 1.4; }
.reply-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--muted); }
.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sub { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.sub b { font-size: .85rem; }
.sub small { font-size: .72rem; color: var(--muted); }
.sub.active { border-color: var(--primary); background: var(--primary-soft); }
.sub .avatar { width: 36px; height: 36px; }

/* Aviso na agenda */
.callout { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn-text); }
.callout small { color: inherit; opacity: .85; }
.callout > b { flex-shrink: 0; padding: 8px 0; }

/* Painel do líder */
.leader-panel { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.leader-panel .stats { margin: 0; }
.stat { border-left: 0; border-radius: 16px; }
.stat b { font-size: 1.6rem; font-weight: 800; color: var(--st-dot); }
.swap-card { display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--todo-bg); }
.swap-card .hint { margin: 0; }

/* Grade: marca de resposta em cada célula */
.cell { position: relative; }
.cell.reply-confirmado::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok-dot); border: 2px solid var(--bg); }
.cell.reply-troca { outline: 2px dashed var(--todo-dot); outline-offset: -2px; }

/* Navegação inferior */
.tabbar { box-shadow: 0 -4px 20px rgb(18 24 38 / .04); }
.tabbar a.active svg { stroke-width: 2.4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Início ---------- */
.home { padding-top: calc(env(safe-area-inset-top) + 20px); display: flex; flex-direction: column; gap: 14px; }
.home .section { margin-top: 10px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-head h1 { margin: 2px 0 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.home-date { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 500; }
.home-head .avatar.big { width: 48px; height: 48px; font-size: 1rem; }

.hero { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 22px; background: var(--primary); color: var(--primary-text); box-shadow: var(--shadow-lg); transition: transform .12s ease; }
.hero:active { transform: scale(.98); }
.hero p { margin: 0; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero-title { margin-top: 6px !important; font-size: 1.4rem; font-weight: 800; }
.hero-sub { margin-top: 2px !important; font-size: .9rem; opacity: .9; }
.hero-date { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 62px; border-radius: 16px; background: rgb(255 255 255 / .16); line-height: 1; }
.hero-date small { font-size: .7rem; font-weight: 700; text-transform: uppercase; opacity: .85; }
.hero-date b { margin-top: 2px; font-size: 1.45rem; font-weight: 800; }
.hero-people { display: flex; align-items: center; gap: 10px; font-size: .85rem; opacity: .95; }
.stack { display: flex; }
.stack .avatar { width: 30px; height: 30px; font-size: .68rem; border: 2px solid var(--primary); }
.stack .avatar + .avatar { margin-left: -8px; }
.stack .avatar.more { background: rgb(255 255 255 / .22); color: inherit; }

.callout-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: var(--surface); font-size: 1.1rem; }

.setlist { display: block; padding: 0; overflow: hidden; color: var(--text); }
.setlist-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.setlist-row + .setlist-row { border-top: 1px solid var(--surface-2); }
.setlist-row .grow strong { font-weight: 700; }
.key-chip { flex-shrink: 0; min-width: 38px; padding: 6px 8px; border-radius: 10px; background: var(--primary-soft); color: var(--badge-text); font-weight: 800; text-align: center; }
.setlist-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setlist-empty p { margin: 0; }

/* Abas internas da Escala */
.subnav a { flex: 1; display: grid; place-items: center; min-height: 36px; border-radius: 999px; color: var(--muted); font-size: .9rem; }
.subnav a.active { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.who-title { margin: 8px 0 4px; font-size: 1.2rem; }

/* Ícones de traço dentro de botões */
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn .icon { margin-right: 2px; }
.btn.whatsapp { gap: 6px; }

/* Lembrete em destaque: verde do WhatsApp */
.remind { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.remind summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #1f9d55; color: #fff; cursor: pointer; list-style: none; }
.remind summary::-webkit-details-marker { display: none; }
.remind summary small { color: rgb(255 255 255 / .85); }
.remind-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / .18); }
.remind-icon .icon { width: 22px; height: 22px; }
.remind-count { flex-shrink: 0; min-width: 32px; padding: 4px 10px; border-radius: 99px; background: #fff; color: #1f7a45; font-weight: 800; text-align: center; }
.remind[open] summary { border-radius: var(--radius) var(--radius) 0 0; }
.remind > .list { padding: 10px; }
.remind .list-item { box-shadow: none; background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .remind summary { background: #1a7f46; } }
:root[data-theme="dark"] .remind summary { background: #1a7f46; }

/* Tom original com botão de busca */
.key-field { display: flex; gap: 6px; }
.key-field select { flex: 1; min-width: 0; }
.key-hint { margin: -4px 0 12px; }
.key-hint:empty { display: none; }

/* ---------- Perfil ---------- */
.profile { margin-bottom: 12px; }
.profile .grow { gap: 2px; }
.profile-name { font-size: 1.2rem; font-weight: 800; }

/* Atalhos rápidos */
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; text-align: center; cursor: pointer; transition: transform .12s ease; }
.quick:active { transform: scale(.96); }
.quick-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.quick-icon .icon { width: 20px; height: 20px; }

/* Card em destaque: músicas que o músico sabe tocar */
.known-card { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 4px; padding: 18px; border-radius: 22px; background: var(--primary); color: var(--primary-text); box-shadow: var(--shadow-lg); }
.known-top { display: flex; align-items: center; gap: 14px; }
.known-top .grow { gap: 2px; }
.known-top small { opacity: .85; font-size: .8rem; }
.known-top b { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.known-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: rgb(255 255 255 / .18); }
.known-icon .icon { width: 24px; height: 24px; }
.known-actions { display: flex; gap: 8px; }
.known-actions .btn { flex: 1; border: 0; background: #fff; color: #22389e; box-shadow: none; }
.known-actions .btn.ghost-light { background: rgb(255 255 255 / .16); color: inherit; }

/* Resumo */
.summary-card { display: flex; flex-direction: column; gap: 4px; }
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.metric-row div { padding: 8px 2px; border-radius: 12px; background: var(--surface-2); }
.metric-row b { display: block; font-size: 1.2rem; font-weight: 800; }
.metric-row small { color: var(--muted); font-size: .72rem; }
.metric-title { margin: 14px 0 6px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.style-bar { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.seg.adoracao, .dot.adoracao { background: var(--worship-text); }
.seg.agitada, .dot.agitada { background: var(--upbeat-text); }
.seg.other, .dot.other { background: var(--border); }
.legend-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .82rem; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .9rem; }
.mini-list li + li { border-top: 1px solid var(--surface-2); }
.mini-list a { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.stat { cursor: pointer; }

/* Configurações */
.settings .segmented { margin-bottom: 4px; }
.settings-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--surface-2); }
.known-top .grow small { color: rgb(255 255 255 / .85); }
.stat.off-stat { --st-dot: var(--muted); }

/* Início: card do líder da semana */
.leader-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: var(--leader-bg); color: var(--text); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--role-lider-bg); }
.leader-top { display: flex; align-items: flex-start; gap: 12px; }
.leader-top .grow { gap: 2px; }
.leader-top .grow small { color: var(--leader-text); font-weight: 700; font-size: .78rem; white-space: normal; }
.leader-top strong { font-size: 1.1rem; font-weight: 800; }
.leader-text { color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leader-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; background: var(--leader-dot); color: #fff; font-size: 1.2rem; }
.leader-card .btn { background: var(--leader-dot); border-color: var(--leader-dot); color: #fff; box-shadow: 0 4px 14px rgb(112 72 232 / .28); }
.leader-card.done .leader-icon { background: var(--ok-dot); }
.leader-card.done .btn { background: var(--surface); border-color: transparent; color: var(--leader-text); box-shadow: none; }

/* Lembrete: verde suave */
.remind summary { background: var(--ok-bg); color: var(--ok-text); }
.remind summary small { color: var(--ok-text); opacity: .8; }
.remind-icon { background: var(--surface); color: var(--ok-dot); }
.remind-count { background: var(--ok-dot); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .remind summary { background: var(--ok-bg); } }
:root[data-theme="dark"] .remind summary { background: var(--ok-bg); }

/* Escala: minhas próximas escalas (rolagem lateral) */
.my-upcoming .section-head { margin: 4px 0 8px; }
.my-upcoming-row { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.my-upcoming-row::-webkit-scrollbar { display: none; }
.my-day { flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-width: 170px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.my-day .grow { gap: 4px; align-items: flex-start; }
.my-day .grow strong { font-size: .9rem; }
.my-day.reply-pendente { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--warn-bg); }

/* Botão "+" central da barra */
.tab-add { flex: 1; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.tab-add span { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: var(--primary); color: var(--primary-text); box-shadow: 0 6px 18px rgb(52 81 209 / .35), 0 0 0 5px var(--surface); transition: transform .12s ease; }
.tab-add:active span { transform: scale(.92); }
.tabbar .tab-add svg { width: 26px; height: 26px; stroke-width: 2.6; }
.add-options { display: flex; flex-direction: column; gap: 10px; }
.add-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 16px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.add-option strong, .add-option small { display: block; }
.add-option small { color: var(--muted); font-size: .82rem; }

/* Card de evento na Agenda: líder, backing e botão do repertório */
.event-link { color: inherit; }
.event-link::after { content: ''; position: absolute; inset: 0; }
.event-card { position: relative; }
.voice-line { display: block; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-line b { font-weight: 700; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.repertoire-btn { position: relative; z-index: 1; margin-top: 8px; background: var(--primary-soft); border-color: transparent; color: var(--badge-text); font-weight: 700; }

/* Perfil: cards de número clicáveis e gráfico de estilos mais suave */
a.stat, button.stat { color: inherit; text-align: left; cursor: pointer; }
.metric-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.style-rows { display: flex; flex-direction: column; gap: 10px; }
.style-row { display: grid; grid-template-columns: 84px 1fr 28px; align-items: center; gap: 10px; font-size: .85rem; }
.style-row b { text-align: right; }
.style-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.style-fill { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.style-fill.adoracao { opacity: .85; }
.style-fill.agitada { opacity: .5; }
.style-fill.other { background: var(--muted); opacity: .35; }
.event-side { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.repertoire-link { font-size: .78rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.repertoire-chip { padding: 5px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: .75rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.planned { align-items: flex-start; }

/* Repertório nos cards: "+ Criar repertório" com cara de ação; "♪ n músicas" quando já existe */
.repertoire-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.repertoire-chip.add { border: 1px dashed var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.repertoire-chip .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.repertoire-chip:active { transform: scale(.96); }
.voice-line b { font-size: .8rem; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* Repertório do culto: nome da música inteiro, controles na linha de baixo */
.set-item { flex-wrap: wrap; align-items: flex-start; row-gap: 6px; }
.set-title { flex: 1 1 calc(100% - 48px); min-width: 0; color: inherit; }
.set-title strong { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.set-title small { display: block; white-space: normal; }
.set-controls { display: flex; align-items: center; gap: 4px; width: 100%; justify-content: flex-end; }
.set-controls .key-select { margin-right: auto; margin-left: 36px; }

/* Sininho do Início */
.home-actions { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.bell .icon { width: 22px; height: 22px; }
.bell-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg, var(--surface)); }

/* Notificações (protótipo) */
.notif-group { margin-top: 6px; }
.notif { position: relative; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.notif.unread { background: linear-gradient(0deg, var(--primary-soft), var(--primary-soft)); }
.notif.unread::before { content: ''; position: absolute; top: 18px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.notif-main { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.notif-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.notif-icon .icon, .notif-badge .icon { width: 20px; height: 20px; }
.notif-avatar { position: relative; flex-shrink: 0; }
.notif-avatar .avatar { width: 40px; height: 40px; }
.notif-badge { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--primary-text); box-shadow: 0 0 0 2px var(--surface); }
.notif-badge .icon { width: 12px; height: 12px; }
.notif-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-right: 14px; }
.notif-head strong { line-height: 1.3; }
.notif-head small { flex-shrink: 0; color: var(--muted); font-size: .75rem; }
.notif-text { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.notif-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 52px; }
.notif-lider .notif-icon { background: var(--warn-bg); color: var(--warn-text); }
.notif-ensaio .notif-icon { background: var(--ok-bg); color: var(--ok-text); }
.notif-rules { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px 16px; list-style: none; }
.notif-rules li { display: flex; flex-direction: column; }
.notif-rules small { color: var(--muted); }

.notif-nova .notif-badge { background: var(--ok-dot); }

/* Início: lembrete de escalas sem resposta */
.callout-btn { flex-shrink: 0; padding: 8px 14px; border-radius: 99px; background: var(--surface); color: var(--text); font-weight: 700; font-size: .85rem; }

/* Culto: aprovar o repertório e compartilhar */
.approve-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--primary-soft); box-shadow: var(--shadow); }
.approve-bar strong, .approve-bar small { display: block; }
.approve-bar small { color: var(--muted); font-size: .8rem; }
.approve-bar .btn { flex-shrink: 0; }
.share-link { display: block; margin: 8px auto 0; color: var(--ok-text); }
.share-preview { display: block; width: 100%; max-height: 52vh; object-fit: contain; margin: 4px 0 8px; border-radius: 14px; background: var(--surface-2); }

.details-btn { flex-shrink: 0; }

/* Tamanho da letra (Configurações): o app inteiro usa rem, então basta mudar a base */
html[data-font="grande"] { font-size: 112.5%; }

/* Configurações */
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.button-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.button-row .icon { width: 16px; height: 16px; }
.btn[aria-disabled="true"] { opacity: .5; }
.settings .link { margin-top: 6px; }
.settings strong, .settings small { display: block; }
.settings small { color: var(--muted); }
.font-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.font-option { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border: 2px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.font-option b { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.font-option.font-grande b { font-size: 1.6rem; }
.font-option small { color: var(--muted); font-size: .8rem; }
.font-option.active { border-color: var(--primary); background: var(--primary-soft); }
.toggle-list { margin: 8px 0 4px; padding: 0; list-style: none; }
.toggle-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.toggle-list li + li { border-top: 1px solid var(--surface-2); }
.toggle-list small { font-size: .8rem; }
.switch { position: relative; flex-shrink: 0; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider { position: absolute; inset: 0; border-radius: 99px; background: var(--border); transition: background .15s ease; }
.switch .slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s ease; }
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--primary); outline-offset: 2px; }
.admin-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.admin-icon.on { background: var(--ok-bg); color: var(--ok-text); }
.admin-icon .icon { width: 20px; height: 20px; }

/* Escala protegida por senha */
.admin-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.admin-bar strong, .admin-bar small { display: block; }
.admin-bar small { color: var(--muted); font-size: .8rem; }
.admin-bar.on { background: var(--ok-bg); color: var(--ok-text); }
.admin-bar.on small { color: inherit; opacity: .8; }
.admin-bar .lock { font-size: 1.2rem; }
.admin-box { display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.check-row input { width: auto; margin: 0; accent-color: var(--primary); }
.or-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: .85rem; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn.block { width: 100%; }
.requests { margin-bottom: 12px; }
.request-card { display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--primary-soft); }
.request-card small { display: block; color: var(--muted); }
.diff { margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.diff .add { color: var(--ok-text); }
.diff .del { color: var(--danger); }

/* Cifras (Cifra Club) */
.cifra-btn { flex-shrink: 0; padding: 5px 10px; font-size: .78rem; font-weight: 700; }
.cifra-logo { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #ff7a00; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: -.02em; }
.cifra-search { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 10px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cifra-search strong, .cifra-search small { display: block; }
.cifra-search small { color: var(--muted); font-size: .8rem; }

/* Sugestões de ensaio */
.suggestion { align-items: center; }
.sug-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.sug-dot.level-1 { background: var(--danger); }
.sug-dot.level-2 { background: var(--warn-dot); }
.sug-dot.level-3 { background: var(--primary); }
.suggestion small { white-space: normal; }

/* Notificações novas */
.notif-semtom .notif-icon { background: var(--warn-bg); color: var(--warn-text); }
.notif-repassar .notif-icon { background: var(--todo-bg); color: var(--todo-text); }
.notif-pedido .notif-badge { background: var(--ok-dot); }

/* Textos explicativos quebram a linha (não cortam com "…") */
.admin-bar .grow small, .settings .grow small, .toggle-list .grow small, .cifra-search .grow small { white-space: normal; }

/* Entrar / convite (sem a barra de abas) */
body.auth .tabbar { display: none; }
body.auth #app { padding-bottom: 24px; }
.auth-page { display: flex; flex-direction: column; gap: 16px; max-width: 440px; margin: 0 auto; padding: 32px 16px; }
.auth-head { display: flex; flex-direction: column; gap: 6px; }
.auth-head h1 { margin: 6px 0 0; font-size: 1.75rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.auth-head p { margin: 0; }
.auth-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--primary); color: var(--primary-text); font-size: 1.6rem; font-weight: 800; }
.auth-team { color: var(--primary); font-weight: 700; font-size: .9rem; }
.auth-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card .chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
.auth-card .or-line { margin: 4px 0; }
.center-link { align-self: center; }
.label-sm { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.google-box { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; }
.google-box small { text-align: center; font-size: .78rem; }
.google-off { display: inline-flex; align-items: center; justify-content: center; gap: 10px; opacity: .6; }
.google-logo { width: 18px; height: 18px; }
.code-input { height: 60px; font-size: 1.8rem; font-weight: 800; letter-spacing: .4em; text-align: center; }
.test-code { margin: 0; }

/* Equipe: plano e acesso de cada pessoa */
.plan-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.plan-bar-top { display: flex; align-items: center; gap: 12px; }
.plan-bar strong, .plan-bar small { display: block; }
.plan-bar small { color: var(--muted); font-size: .8rem; white-space: normal; }
.plan-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.plan-track span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.plan-bar.full .plan-track span { background: var(--warn-dot); }
.member-row { gap: 10px; }
.member-row .member-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; }
.row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.row-buttons { display: flex; gap: 4px; }
.badge.pending { background: var(--warn-bg); color: var(--warn-text); }
.badge.muted-badge { background: var(--surface-2); color: var(--muted); }
.badge.admin-badge { margin-left: 6px; padding: 1px 7px; font-size: .68rem; vertical-align: middle; background: var(--ok-bg); color: var(--ok-text); }
.access-card { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.access-card .settings-row + .settings-row { border-top: 1px solid var(--surface-2); }
.access-card strong, .access-card small { display: block; }
.access-card small { color: var(--muted); white-space: normal; }
.invite-link { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; word-break: break-all; color: var(--muted); }
.sheet .btn.block + .btn.block { margin-top: 8px; }

/* Planos */
.plan-cards { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.plan-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); }
.plan-card.current { box-shadow: inset 0 0 0 2px var(--primary); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan-top strong, .plan-top small { display: block; }
.plan-top small { color: var(--muted); font-size: .8rem; }
.plan-annual { color: var(--ok-text); font-weight: 600; }

/* Trazer músicas (importação) */
.import-text { min-height: 180px; font-family: inherit; line-height: 1.5; }
.import-link { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--primary-soft); color: var(--badge-text); }
.import-link small { color: inherit; opacity: .85; }
.resume { display: flex; align-items: center; gap: 10px; }
.col-select { width: auto; max-width: 150px; font-weight: 600; }
.import-count { margin: 12px 0 2px; font-size: 1.05rem; }
.section-title { margin: 4px 0 8px; font-size: 1.1rem; }
.import-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.import-progress span { display: block; height: 100%; background: var(--primary); }
.import-card { display: flex; flex-direction: column; gap: 12px; }
.import-song { display: flex; align-items: flex-start; gap: 12px; }
.import-song strong { display: block; font-size: 1.15rem; }
.import-song small { white-space: normal; }
.import-video { display: flex; align-items: center; gap: 12px; }
.import-video strong { display: block; font-size: .92rem; line-height: 1.3; }
.import-video .thumb { width: 112px; height: 63px; }
.import-actions { display: flex; flex-direction: column; gap: 8px; }
.import-actions .row { gap: 8px; }
.import-actions .row .btn { flex: 1; }
.import-done { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; background: var(--ok-bg); color: var(--ok-text); }

/* Equipes: troca no topo do Início e lista */
.team-switch { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 2px; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.team-caret { font-size: .75rem; }
.team-option.current { box-shadow: var(--shadow), inset 0 0 0 2px var(--primary); }
.team-initials { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.add-team { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--border); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.add-team strong, .add-team small { display: block; }
.add-team small { color: var(--muted); }
.add-team-plus { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); color: var(--primary); font-size: 1.4rem; font-weight: 800; }
.btn.danger.ghost { color: var(--danger); }

/* Perfil: sugestões de ensaio recolhidas */
.suggest-card { margin: 0 0 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.suggest-card > summary { display: flex; align-items: center; gap: 12px; padding: 14px; list-style: none; cursor: pointer; }
.suggest-card > summary::-webkit-details-marker { display: none; }
.suggest-card strong, .suggest-card summary small { display: block; }
.suggest-card summary small { color: var(--muted); font-size: .82rem; white-space: normal; }
.suggest-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); }
.suggest-icon .icon { width: 20px; height: 20px; }
.suggest-more { flex-shrink: 0; padding: 6px 12px; border-radius: 99px; background: var(--primary-soft); color: var(--badge-text); font-size: .82rem; font-weight: 700; }
.suggest-card[open] .suggest-more { font-size: 0; }
.suggest-card[open] .suggest-more::after { content: 'Fechar'; font-size: .82rem; }
.suggest-card > .list { padding: 0 10px 10px; }
.suggest-card .list-item { box-shadow: none; background: var(--surface-2); }

/* Repertório do culto: arrastar para reordenar */
.drag-handle { flex-shrink: 0; align-self: center; padding: 4px 2px; color: var(--muted); font-size: 1rem; letter-spacing: -.15em; line-height: 1; cursor: grab; touch-action: none; user-select: none; }
.sort-list .set-item { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.set-item .set-title { flex: 1 1 calc(100% - 80px); }
.set-controls .key-chip { margin-right: auto; margin-left: 52px; text-decoration: none; }
.sorting .set-item { transition: none; }
.set-item.dragging { position: relative; z-index: 2; transform: scale(1.02); box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary); cursor: grabbing; }

/* Escala: status de cada pessoa (no lugar da bolinha) */
.person::after { content: none; }
.reply-icon { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; font-size: .78rem; font-weight: 800; line-height: 1; }
.reply-icon.reply-confirmado { background: var(--ok-bg); color: var(--ok-text); }
.reply-icon.reply-pendente { background: var(--warn-bg); color: var(--warn-text); }
.reply-icon.reply-troca { background: var(--todo-bg); color: var(--todo-text); }

/* "Criar repertório" no padrão dos outros botões (sem pontilhado) */
.repertoire-chip, .repertoire-chip.add { padding: 7px 12px; border: 0; border-radius: 999px; font-size: .78rem; }
.repertoire-chip.add { background: var(--primary-soft); color: var(--badge-text); }

/* Escala: Cultos/Grade + Sugerir */
.escala-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.escala-tools .segmented { flex: 1; margin: 0; }
.escala-tools .btn { flex-shrink: 0; }
.suggest-day { display: flex; flex-direction: column; gap: 8px; }
.suggest-roles p { margin: 2px 0; font-size: .9rem; }
.suggested { padding: 1px 6px; border-radius: 6px; background: var(--primary-soft); color: var(--badge-text); font-weight: 700; }

/* Filtros em listas suspensas */
.filter-selects { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.filter-select { flex: 1 1 140px; min-width: 0; }
.filter-select select { width: 100%; height: 40px; padding: 0 10px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.filter-select.on select { border-color: var(--primary); background: var(--primary-soft); color: var(--badge-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reply-icon .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.filter-select { flex: 1 1 96px; }
.filter-select select { padding: 0 6px; font-size: .85rem; }

/* Culto: setas e X em cima à direita, tom embaixo */
.set-item { flex-wrap: nowrap; align-items: stretch; }
.set-item .set-title { flex: 1; min-width: 0; }
.set-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; flex-shrink: 0; }
.set-side .set-controls { width: auto; margin: 0; gap: 0; }
.set-side .set-controls .icon-btn { width: 32px; height: 32px; font-size: .8rem; }
.set-side .key-chip { margin: 0; text-decoration: none; }
.sort-list .set-item { touch-action: pan-y; }

/* Música: Editar em cima, tom abaixo (menor), Ensaiada hoje embaixo à direita */
.version-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.version-head { align-items: flex-start; }
.key-big { min-width: 40px; padding: 4px 8px; font-size: .95rem; }

/* Funções da pessoa */
.roles-picker { display: flex; flex-direction: column; gap: 8px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Escala: grade por função (funções × cultos) */
.role-grid { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .8rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.role-grid th, .role-grid td { padding: 4px 3px; vertical-align: top; }
.role-grid thead th { padding: 8px 4px; background: var(--surface-2); text-align: center; }
.role-grid thead th small { display: block; color: var(--muted); font-size: .66rem; font-weight: 700; }
.role-grid thead th b { font-size: 1.1rem; }
.role-grid thead th.past { opacity: .5; }
.role-grid .sticky { position: sticky; left: 0; z-index: 1; min-width: 66px; background: var(--surface); text-align: left; }
.role-grid thead .sticky { background: var(--surface-2); }
.role-grid tbody tr + tr th, .role-grid tbody tr + tr td { border-top: 1px solid var(--surface-2); }
.role-name { padding: 10px 8px !important; font-weight: 800; }
.role-name.role-lead { color: var(--leader-dot); }
.role-name.role-voice { color: var(--worship-text); }
.role-name.role-keys { color: var(--ok-text); }
.role-name.role-drums { color: var(--upbeat-text); }
.role-cell { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 70px; min-height: 34px; padding: 3px; border: 0; border-radius: 10px; background: transparent; font: inherit; cursor: pointer; }
.cell-name { padding: 5px 4px; border-radius: 8px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-lead .cell-name { background: var(--role-lider-bg); color: var(--role-lider-text); }
.role-voice .cell-name { background: var(--role-vocal-bg); color: var(--role-vocal-text); }
.role-keys .cell-name { background: var(--role-teclado-bg); color: var(--role-teclado-text); }
.role-drums .cell-name, .role-other .cell-name { background: var(--role-bateria-bg); color: var(--role-bateria-text); }
.role-other .cell-name { background: var(--role-outro-bg); color: var(--role-outro-text); }
.cell-add { padding: 5px 4px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-weight: 700; text-align: center; }
.role-cell.missing .cell-add { background: var(--warn-bg); color: var(--warn-text); }
.grid-status td { padding: 8px 3px; font-size: .72rem; font-weight: 800; text-align: center; }
.grid-status td.ok { color: var(--ok-text); }
.grid-status td.warn { color: var(--warn-text); }
.grid-status th { padding: 8px; font-size: .72rem; color: var(--muted); }
.pick-row.picked { box-shadow: var(--shadow), inset 0 0 0 2px var(--primary); }
.pick-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--primary); font-weight: 800; }
.pick-row.picked .pick-mark { background: var(--primary); color: var(--primary-text); }

/* Nova escala */
.new-month { display: flex; flex-direction: column; gap: 4px; }
.new-month h3 { margin: 0; font-size: 1.15rem; }
.escala-tools .segmented button { padding: 6px 4px; font-size: .85rem; }

/* Agenda: "Criar repertório" em verde, diferente do selo "Culto" */
.repertoire-chip.add { background: var(--ok-bg); color: var(--ok-text); }

/* Grade: mês logo acima, "+" para pôr mais um */
.grid-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; padding: 4px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); }
.grid-month strong { font-size: 1rem; }
.cell-add.more { padding: 2px; background: transparent; font-size: .9rem; opacity: .7; }
.role-cell.missing .cell-add.more { opacity: 1; background: var(--warn-bg); color: var(--warn-text); }
/* Nova escala: quantos de cada função */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 4px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.slot input { width: 52px; padding: 6px; text-align: center; }
.slot-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.slot input { width: 44px; flex-shrink: 0; }

/* Novas para você */
.discover-icon { background: var(--primary-soft); color: var(--primary); }
.discover-row { align-items: center; }
.discover-row strong { font-size: .9rem; line-height: 1.3; white-space: normal; }
.discover-row small { white-space: normal; }
.discover-row .thumb { width: 72px; height: 41px; }
.discover-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.swap-card .reply-actions { flex-wrap: wrap; }
.swap-card .reply-actions .btn { flex: 1 1 120px; }
.grid-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.danger-link { color: var(--danger); }
.grid-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.grid-top p { margin: 0; }
.grid-top .btn { flex-shrink: 0; }
.church-name { font-size: 1.1rem; }
.home-church { margin: -2px 0 2px; font-size: .75rem; color: var(--muted); }
.who-question { margin: 4px 0 8px; font-size: 1.4rem; font-weight: 800; text-align: center; }
.logout-btn { margin-top: 24px; color: var(--danger); }
