/* ============================================================
   Devonew — Corrente de Intercessão (Relógio de Oração)
   Membro (mural de turnos + Sala de Clamor) e Painel (dashboard 24h).
   Reaproveita tokens e .btn/.card/.panel/.avatar/.st/.inp.
   ============================================================ */
:root { --danger: oklch(0.58 0.17 28); --danger-tint: oklch(0.95 0.045 28); }
[data-theme="dark"] { --danger: oklch(0.68 0.16 28); --danger-tint: oklch(0.33 0.07 28); }

@keyframes prFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes prPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   MEMBRO
   ============================================================ */
/* campaign banner */
.camp-banner {
  display: flex; gap: 16px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(130% 130% at 90% -30%, var(--accent-tint), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.camp-ico {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--accent), var(--accent-strong)); color: var(--accent-ink);
}
.camp-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-strong); background: var(--accent-tint); padding: 4px 9px; border-radius: 999px;
}
.camp-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); margin: 8px 0 5px; text-wrap: balance; }
.camp-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* pre-shift alert */
.pre-alert {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--ember-tint); border: 1px solid oklch(0.85 0.06 70);
  color: oklch(0.42 0.09 60); font-size: 13.5px; line-height: 1.4;
}
[data-theme="dark"] .pre-alert { background: oklch(0.33 0.05 70); border-color: oklch(0.42 0.06 70); color: oklch(0.85 0.07 75); }
.pre-alert .ico { flex: none; }

/* thermometer */
.thermo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.thermo-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.thermo-pct { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--accent-strong); }
.thermo-lab { font-size: 13.5px; color: var(--muted); }
.thermo-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 10px; border: 1px solid var(--line); }
.thermo-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width .5s var(--ease); }
.thermo-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

/* day strip */
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.day-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: all .14s var(--ease);
}
.day-chip:hover { border-color: var(--line-strong); }
.day-chip.on { background: var(--accent-tint); color: var(--accent-strong); border-color: transparent; }
.day-today { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 2px 6px; border-radius: 6px; }

/* slot list */
.slot-list { display: flex; flex-direction: column; gap: 8px; }
.slot-row {
  display: flex; align-items: stretch; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); transition: border-color .14s var(--ease), background .14s;
}
.slot-row.free:hover { border-color: var(--accent); }
.slot-row.mine { border-color: transparent; background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.slot-row.taken { background: var(--bg-2); }
.slot-row.madruga .st-h { color: oklch(0.55 0.08 264); }
[data-theme="dark"] .slot-row.madruga .st-h { color: oklch(0.78 0.08 264); }

.slot-time { display: flex; flex-direction: column; align-items: flex-start; min-width: 58px; flex: none; padding-top: 2px; }
.slot-time .st-h { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.slot-time .st-e { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.slot-time .st-vigil { color: oklch(0.6 0.08 264); margin-top: 3px; }

.slot-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.slot-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mine-status { color: var(--accent-strong); }
.slot-people { display: flex; align-items: center; gap: 8px; min-width: 0; }
.slot-people .avatar.sm { width: 30px; height: 30px; font-size: 11px; margin-left: -6px; border: 2px solid var(--surface); }
.slot-people .avatar.sm:first-child { margin-left: 0; }
.slot-people .avatar.anon { background: var(--surface-2); color: var(--accent-strong); }
.slot-names { font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-more { color: var(--faint); font-weight: 500; }
.slot-when { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.slot-when.missed { color: var(--danger); }
.slot-when.done { color: var(--accent-strong); }
.slot-covered { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent-strong); font-weight: 600; }
.slot-release { width: 26px; height: 26px; border-radius: 50%; border: none; background: transparent; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.slot-release:hover { background: var(--danger-tint); color: var(--danger); }

.btn-assume {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px dashed var(--line-strong); background: transparent; color: var(--accent-strong);
  font-family: var(--font-text); font-weight: 600; font-size: 13.5px; transition: all .14s var(--ease);
}
.btn-assume:hover { border-color: var(--accent); border-style: solid; background: var(--accent-tint); }
.assume-bonus { font-family: var(--font-mono); font-size: 10px; background: oklch(0.55 0.08 264); color: #fff; padding: 2px 7px; border-radius: 999px; }

/* ---------- overlays (assume + prayer room) ---------- */
.pr-overlay {
  position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center;
  background: oklch(0.2 0.01 60 / 0.55); backdrop-filter: blur(6px); padding: 20px; animation: prFade .22s var(--ease) both;
}
.assume-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px; animation: prPop .28s var(--ease) both;
}
.pr-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--accent-strong); }
.assume-range { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); margin: 8px 0 10px; }
.assume-p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.assume-card .tf-anon { margin-top: 0; }
.assume-actions { display: flex; gap: 10px; margin-top: 18px; }
.assume-actions .btn { flex: 1; justify-content: center; }

/* Sala de Clamor */
.pr-room {
  width: 100%; max-width: 480px; max-height: min(92vh, 760px); overflow-y: auto;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--accent-tint), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 30px 26px 26px; position: relative; text-align: center; animation: prPop .3s var(--ease) both;
}
.pr-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.pr-close:hover { background: var(--line); color: var(--ink); }
.pr-room .pr-eyebrow { justify-content: center; display: flex; }
.pr-range { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--muted); margin-top: 4px; }
.pr-timer { margin: 18px 0 6px; }
.pr-timer-val { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 16vw, 68px); letter-spacing: -0.03em; line-height: 1; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.pr-timer-lab { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pr-vigil { display: inline-flex; align-items: center; gap: 7px; margin: 10px auto 0; font-size: 12px; font-weight: 600; color: oklch(0.5 0.08 264); background: oklch(0.94 0.03 264); padding: 6px 13px; border-radius: 999px; }
[data-theme="dark"] .pr-vigil { color: oklch(0.82 0.08 264); background: oklch(0.32 0.05 264); }

.pr-motives { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; margin: 22px 0 16px; }
.pr-motives-h { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 12px; }
.pr-motive { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-scripture); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); padding: 6px 0; }
.pr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.pr-empty { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.pr-verse { font-family: var(--font-scripture); font-style: italic; font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; }

/* nav "novo" dot (módulo recém-publicado) */
.nav-new-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; flex: none; box-shadow: 0 0 0 3px var(--accent-tint); }

/* ============================================================
   PAINEL ADMIN
   ============================================================ */
.cov-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .cov-summary { grid-template-columns: repeat(4, 1fr); } }
.cov-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.cov-kpi .n { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.cov-kpi .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cov-kpi.danger .n { color: var(--danger); }

.cov-warn { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r-md); background: var(--danger-tint); border: 1px solid var(--danger); color: var(--danger); font-size: 13px; line-height: 1.4; margin-bottom: 16px; }
.cov-warn .ico { flex: none; }

.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cov-cell { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); min-height: 64px; display: flex; flex-direction: column; gap: 7px; }
.cov-cell.empty.blind { border-color: var(--danger); background: var(--danger-tint); }
.cov-cell.empty.blind-mad { border-color: var(--danger); background: var(--danger-tint); box-shadow: inset 0 0 0 1px var(--danger); }
.cov-cell.now { box-shadow: 0 0 0 2px var(--accent); border-color: transparent; }
.cc-time { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cc-time .ico { color: oklch(0.6 0.08 264); }
.cc-live { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 1px 5px; border-radius: 5px; margin-left: auto; }
.cc-alloc { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border-radius: 8px; border: 1px dashed var(--danger); background: transparent; color: var(--danger); font-size: 12px; font-weight: 600; }
.cc-alloc:hover { background: var(--surface); }
.cc-people { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-person { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.cc-person .avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.cc-person .avatar.anon { background: var(--bg-2); color: var(--accent-strong); }
.cc-done { color: var(--accent); }
.cc-release { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: none; background: transparent; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.cc-release:hover { background: var(--danger-tint); color: var(--danger); }

/* segmented control */
.seg-group { display: inline-flex; gap: 6px; }
.seg-group.wrap { flex-wrap: wrap; }
.seg { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); transition: all .14s var(--ease); }
.seg.sm { padding: 7px 12px; font-size: 12px; }
.seg:hover { border-color: var(--line-strong); }
.seg.on { background: var(--accent-tint); color: var(--accent-strong); border-color: transparent; }

.perday-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.ci-publish { display: flex; align-items: center; gap: 14px; }
.ci-publish-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-publish-txt b { font-size: 14.5px; color: var(--ink); }
.ci-publish-txt .muted { font-size: 12.5px; }

.ci-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 50px 20px; }
.ci-empty-ico { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-strong); margin-bottom: 18px; }
.ci-empty-t { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.ci-empty p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 42ch; margin: 0 0 22px; }

.ci-panel-gap > .panel { margin-bottom: 16px; }
