/* ============ Louvor IBIC ============ */
:root {
  --bg: #0d0b0c;
  --bg-2: #141112;
  --card: #171314;
  --card-2: #1e191a;
  --line: #2a2324;
  --line-2: #3a3132;
  --text: #f6f2f2;
  --muted: #a39a9b;
  --faint: #6f6667;
  --red: #ef1f4b;
  --orange: #ff7a3d;
  --grad: linear-gradient(135deg, #ef1f4b 0%, #ff5a3d 60%, #ff7a3d 100%);
  --green: #3ddc84;
  --green-bg: rgba(61, 220, 132, .12);
  --yellow: #ffc04d;
  --yellow-bg: rgba(255, 192, 77, .12);
  --danger: #ff5470;
  --danger-bg: rgba(255, 84, 112, .12);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f3f3;
  --bg-2: #efeaea;
  --card: #ffffff;
  --card-2: #f7f3f3;
  --line: #e7dfdf;
  --line-2: #d8cdcd;
  --text: #1b1516;
  --muted: #6d6263;
  --faint: #9b9091;
  --green: #129a52;
  --green-bg: rgba(18, 154, 82, .1);
  --yellow: #b07800;
  --yellow-bg: rgba(255, 176, 0, .14);
  --danger: #d6153b;
  --danger-bg: rgba(214, 21, 59, .08);
  --shadow: 0 8px 24px rgba(60, 20, 20, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; }
.hidden { display: none !important; }

.boot { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot img { width: 84px; height: 84px; border-radius: 22px; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex: none; position: sticky; top: 0; height: 100vh;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.sidebar-inner {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px 12px; display: flex; flex-direction: column; gap: 6px; overflow: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; }
.brand b { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand > div { min-width: 0; }
.brand small { display: block; font-size: 10.5px; line-height: 1.3; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 1px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border: 0; background: none; cursor: pointer; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--card-2); color: var(--text); }
.nav-item.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(239, 31, 75, .35); }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item .count { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.nav-item.active .count { background: rgba(255,255,255,.25); }
.side-user { margin-top: auto; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; background: var(--card); }
.side-user b { display: block; font-size: 14px; }
.side-user .tag { margin-top: 3px; }

.main { flex: 1; min-width: 0; padding: 28px 32px 60px; max-width: 1180px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
h1.title { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; margin: 0; letter-spacing: -.04em; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mobile-head { display: none; }
.bottom-nav { display: none; }

/* App só para celular: no PC aparece centralizado na largura de um celular */
body { max-width: 520px; margin: 0 auto; height: auto; min-height: 100vh; min-height: 100dvh; }
/* bordas laterais fixas na tela inteira (não dependem da altura do conteúdo) */
body::before {
  content: ''; position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(520px, 100%); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  pointer-events: none; z-index: 0;
}
#app { position: relative; z-index: 1; }
.bottom-nav { max-width: 520px; margin: 0 auto; }
.modal { max-width: 520px !important; }
@media all {
  .sidebar { display: none; }
  .main { padding: 14px 16px calc(96px + var(--safe-b)); }
  .mobile-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-head .brand { padding: 0; }
  .mobile-head .brand img { width: 36px; height: 36px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b));
  }
  .bottom-nav button {
    border: 0; background: none; color: var(--faint); display: grid; justify-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; padding: 6px 0; border-radius: 12px; cursor: pointer; position: relative;
  }
  .bottom-nav button svg { width: 22px; height: 22px; }
  .bottom-nav button.active { color: var(--text); }
  .bottom-nav button.active svg { color: var(--red); }
  .bottom-nav .dot { position: absolute; top: 3px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
}

/* ---------- Components ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.section-head h2 { font-size: 20px; margin: 0; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.1); }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(239, 31, 75, .3); }
.btn.green { background: #1fa855; border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-bg); }
.btn.sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 18px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--green); background: var(--green-bg); }
.pill.wait { color: var(--yellow); background: var(--yellow-bg); }
.pill.no { color: var(--danger); background: var(--danger-bg); }
.pill.plain::before { display: none; }
.pill.plain { color: var(--muted); background: var(--card-2); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(239,31,75,.15); color: #ff5f7e; }
:root[data-theme="light"] .tag { color: var(--red); background: rgba(239,31,75,.08); }

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--card-2); display: grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden; }
.avatar.s28 { width: 28px; height: 28px; font-size: 12px; }
.avatar.s36 { width: 36px; height: 36px; font-size: 14px; }
.avatar.s44 { width: 44px; height: 44px; font-size: 16px; }
.avatar.s96 { width: 96px; height: 96px; font-size: 34px; }
.avatar-stack { display: flex; }
.avatar-stack > * { margin-left: -8px; border: 2px solid var(--card); }
.avatar-stack > *:first-child { margin-left: 0; }

/* ---------- Hero (próximo culto) ---------- */
.hero { display: grid; grid-template-columns: 240px 1fr; overflow: hidden; }
.hero-date {
  position: relative; padding: 26px 26px; color: #fff; min-height: 260px; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(239,31,75,.75), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(255,122,61,.95), transparent 60%),
    #1a0c10;
}
.hero-date .dow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-date .day { font-size: 104px; line-height: .9; font-weight: 800; letter-spacing: -.06em; margin-top: 6px; }
.hero-date .month { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero-date .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.hero-date .when { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 22px; }
.bars i { width: 4px; background: #fff; border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .2s } .bars i:nth-child(3) { animation-delay: .4s } .bars i:nth-child(4) { animation-delay: .1s } .bars i:nth-child(5) { animation-delay: .3s }
@keyframes eq { 0%,100% { height: 30% } 50% { height: 100% } }
.hero-body { padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.hero-body h3 { font-size: 28px; margin: 4px 0 4px; letter-spacing: -.03em; }
.label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.label:first-child { margin-top: 0; }
.team-row { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 4px 0; }
.team-row .fn { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.team-row .who { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; text-transform: uppercase; min-width: 0; }
.song-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.song-list li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--card-2); font-size: 14px; }
.song-list .n { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.song-list .key { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--muted); }

@media all { .hero-body { grid-template-columns: minmax(0, 1fr); } }
@media all {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-date { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; }
  .hero-date .day { font-size: 64px; margin: 0; }
  .hero-date .foot { margin: 0 0 0 auto; padding: 0; flex-direction: column; align-items: flex-end; gap: 8px; }
  .hero-body { padding: 18px; }
  .team-row { grid-template-columns: 96px minmax(0,1fr) auto; gap: 8px; }
  .team-row .pill { padding: 4px 8px; font-size: 11px; }
}

/* ---------- Listas ---------- */
.month-group { padding: 16px; }
.month-group h4 { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.event-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; cursor: pointer; }
.event-row:hover { background: var(--card-2); }
.date-chip { width: 52px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: rgba(239,31,75,.14); color: #ff4d6e; }
:root[data-theme="light"] .date-chip { color: var(--red); background: rgba(239,31,75,.08); }
.date-chip b { display: block; font-size: 20px; line-height: 1; }
.date-chip small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.date-chip.past { filter: grayscale(1); opacity: .6; }
.stack { grid-template-columns: minmax(0, 1fr); }
.event-row .info { min-width: 0; }
.event-row .avatar-stack { display: none !important; }
.event-row .pill { flex: none; }
.event-row .info b { display: block; font-size: 15px; }
.event-row .info small { color: var(--muted); font-size: 12.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { padding: 18px; }
.stat .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .ic svg { width: 18px; height: 18px; }
.stat b { font-size: 34px; letter-spacing: -.04em; display: block; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; }
@media all { .stats { grid-template-columns: repeat(2, 1fr); } }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item b { display: block; font-size: 15px; }
.list-item small { color: var(--muted); font-size: 12.5px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }

.bday { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(239,31,75,.18), rgba(255,122,61,.14)); border: 1px solid rgba(255,122,61,.3); margin-bottom: 14px; }
.bday .big { font-size: 28px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; opacity: .5; margin-bottom: 8px; }

.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search input { border: 0; background: none; outline: none; padding: 11px 0; flex: 1; min-width: 0; }
.search svg { width: 17px; height: 17px; color: var(--muted); }

/* Minha escala */
.my-card { padding: 16px; display: grid; gap: 12px; }
.my-card .top { display: flex; gap: 14px; align-items: center; }
.my-card .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; font-size: 15px;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,31,75,.18); }
textarea.input { resize: vertical; min-height: 80px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.check-tile { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; }
.check-tile input { display: none; }
.check-tile.on { border-color: var(--red); background: rgba(239,31,75,.12); }
.check-tile .em { font-size: 18px; }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(18px); }

/* Slots na edição da escala */
.slot { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.slot-fn { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }

/* ---------- Auth / Onboarding ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(60% 40% at 0% 0%, rgba(239,31,75,.25), transparent 70%),
  radial-gradient(50% 40% at 100% 100%, rgba(255,122,61,.2), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 480px; padding: 26px 22px; }
.auth-logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; padding: 8px; object-fit: contain; margin: 0 auto 14px; box-shadow: 0 10px 30px rgba(239,31,75,.35); }
.auth h1 { text-align: center; margin: 0; font-size: 28px; letter-spacing: -.03em; }
.auth p.sub { text-align: center; color: var(--muted); margin: 6px 0 22px; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice { font-size: 13px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-bg); color: var(--yellow); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); }
.notice.info { background: var(--card-2); color: var(--muted); border-color: var(--line); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; backdrop-filter: blur(3px); }
.modal { background: var(--bg-2); border: 1px solid var(--line); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + var(--safe-b)); animation: up .2s ease; }
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 22px; padding: 24px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; position: sticky; bottom: calc(-20px - var(--safe-b)); background: var(--bg-2); padding: 12px 0 0; }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(30px); opacity: 0 } }
pre.wa { white-space: pre-wrap; background: #0b141a; color: #e9edef; border-radius: 14px; padding: 16px; font-family: inherit; font-size: 14px; line-height: 1.45; margin: 0; border: 1px solid #1f2c34; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); z-index: 200; display: grid; gap: 8px; width: max-content; max-width: 92vw; }
.toast { background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: up .2s; }

/* ---------- v2: avisos, abas, louvores ---------- */
.notice-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--orange); margin-bottom: 14px; }
.notice-card .big { font-size: 24px; }
.bday.green { background: rgba(31,168,85,.12); border-color: rgba(31,168,85,.4); }
.bday.red { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.bday > .btn, .bday > button { flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--grad); color: #fff; }
.chip.on { background: var(--red); color: #fff; border-color: transparent; }
button.chip { cursor: pointer; }
/* filtros: quebram em linhas, alinhados com a busca, todas as opções visíveis */
.scroll-x { flex-wrap: wrap; gap: 8px; }
.scroll-x .chip { flex: none; padding: 7px 12px; font-size: 13px; }
.input.mini { padding: 5px 8px; font-size: 12px; width: auto; border-radius: 9px; }
.slot-note { font-size: 12px; color: var(--danger); margin: -2px 0 6px 104px; font-style: italic; }
.song-list li.rich { flex-wrap: wrap; }
.song-ctrl { display: flex; gap: 4px; width: 100%; justify-content: flex-end; }
.icon-btn.xs { width: 30px; height: 30px; border-radius: 9px; }
.icon-btn.xs svg { width: 15px; height: 15px; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.my-card .btns .btn { width: 100%; }

.demo-bar { font-size: 12px; text-align: center; padding: 6px 10px; background: var(--yellow-bg); color: var(--yellow); border-bottom: 1px solid color-mix(in srgb, var(--yellow) 25%, transparent); }
.demo-bar button { background: none; border: 0; text-decoration: underline; color: inherit; font-weight: 700; cursor: pointer; padding: 0 4px; }

/* ---------- Tipo de escala / local ---------- */
.place { --pc: #f2652b; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent);
  padding: 3px 9px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place svg { width: 13px; height: 13px; flex: none; }
.place em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .85; }
.place em::before { content: '·'; margin-right: 5px; }
.place.big { font-size: 12.5px; padding: 5px 11px; }
.place.big svg { width: 15px; height: 15px; }
.event-row .info .place { display: flex; width: fit-content; margin: 3px 0 3px; }
.event-row .info small { display: block; }
.k-sede { --pc: #f2652b; }
.k-inez { --pc: #3ea6ff; }
.k-dom  { --pc: #e5202e; }
.k-outro { --pc: #a39a9b; }
[data-theme=light] .k-sede { --pc: #c9481a; }
[data-theme=light] .k-inez { --pc: #1a73c9; }

.kind-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kind-opt { --pc: #f2652b; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; border-radius: 14px; cursor: pointer;
  background: var(--card-2); border: 1.5px solid var(--line); color: var(--text); font: inherit; }
.kind-opt b { font-size: 13.5px; }
.kind-opt small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.kind-opt small svg { width: 12px; height: 12px; color: var(--pc); flex: none; }
.kind-opt.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, var(--card-2)); }
.kind-opt.on b { color: var(--pc); }

/* cadastros aguardando aprovação */
.pending-list { border-color: color-mix(in srgb, #ffc04d 45%, var(--line)); }
.pending-item { flex-wrap: wrap; }
.pending-btns { display: flex; gap: 8px; width: 100%; padding-left: 56px; }
.pending-btns .btn { flex: 1; justify-content: center; }
.pending-btns .btn svg { width: 16px; height: 16px; }

/* histórico de louvores */
.date-chip.sm { width: 44px; padding: 5px 0; }
.date-chip.sm b { font-size: 17px; }
.chip.key { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--text); border-color: transparent; font-weight: 800; }
.hist-row .chip { flex: none; }
.chip.on .faint { color: inherit; opacity: .75; }

/* aviso "Instalar na tela inicial" (só no celular, fora do app instalado) */
.install-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 40;
  width: min(500px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: install-in .35s ease;
}
.install-banner.above-nav { bottom: calc(82px + var(--safe-b)); }
.install-banner img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.install-banner b { display: block; font-size: 14px; }
.install-banner small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.install-banner .grow { min-width: 0; }
@keyframes install-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.install-step { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; }
.install-step > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.install-step > div { padding-top: 4px; }
.kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card-2); font-weight: 700; }body.has-install .main { padding-bottom: calc(170px + var(--safe-b)); }
body.has-install .auth { padding-bottom: 100px; }
