:root {
  --bg: #15171c;
  --panel: #1d2027;
  --panel2: #252932;
  --line: #323743;
  --text: #e8eaef;
  --muted: #9aa1b0;
  --accent: #3b82f6;
  --live: #e5484d;
  --ok: #30a46c;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 'Segoe UI', system-ui, sans-serif;
  user-select: none;
}

body.screen {
  background: #000;
  overflow: hidden;
  cursor: none;
}
/* OBS Browser Source: solo letras sobre fondo transparente */
body.transparent,
body.transparent .canvas {
  background: transparent !important;
}
/* aviso en vez de pantalla negra cuando un video no carga o el navegador pide un toque */
.media-error {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  background: rgba(60, 20, 20, 0.9);
  border: 2px solid #e5484d;
  color: #fff;
  padding: 18px 30px;
  border-radius: 14px;
  font-size: 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  max-width: 80%;
}
.media-error span {
  font-size: 24px;
  opacity: 0.85;
}
.media-tap {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60%;
  height: 22%;
  font-size: 48px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.9);
  border: 0;
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
}
.rehearsal-black {
  position: fixed;
  inset: 0;
  background: #000;
}
.rehearsal-black.transparent {
  background: transparent;
}
.web-start {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10, 14, 24, 0.92);
  color: #fff;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 3vw;
}
.web-start b {
  font-size: 6vw;
  letter-spacing: 0.3em;
}
.web-start small {
  font-size: 1.6vw;
  opacity: 0.7;
}
.web-msg {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 22px;
  text-align: center;
  padding: 20px;
}

/* ---------- Lienzo de diapositivas */
.canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.canvas.full {
  position: fixed;
  inset: 0;
}
.canvas-inner {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
iframe.fill {
  border: 0;
}
/* el reproductor se controla desde NEW LIFE, no con clics */
iframe.yt {
  pointer-events: none;
}
.fill.contain {
  object-fit: contain;
}
.layer {
  position: absolute;
  inset: 0;
}
.fade-in {
  animation: fadein var(--t, 300ms) ease;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}
.fit-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.fit-text {
  white-space: pre-wrap;
  line-height: 1.2;
  overflow-wrap: break-word;
  width: 100%;
}
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3%;
  text-align: center;
  opacity: 0.9;
}

/* ---------- Plantillas (bienvenida, aviso, ofrenda...) */
.tpl {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
}
.tpl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  background: var(--accent);
}
.tpl-orb.o1 {
  width: 520px;
  height: 520px;
  left: -120px;
  top: -140px;
}
.tpl-orb.o2 {
  width: 640px;
  height: 640px;
  right: -180px;
  bottom: -220px;
}
.tpl-box {
  position: absolute;
  inset: 0;
  padding: 7% 9%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tpl-content {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.tpl-eyebrow {
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  filter: brightness(1.35);
  padding-bottom: 0.25em;
  border-bottom: 0.06em solid var(--accent);
  margin-bottom: 0.25em;
}
.tpl-title {
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1.08;
  white-space: pre-wrap;
}
.tpl-verse {
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.25;
  white-space: pre-wrap;
  font-style: italic;
}
.tpl-subtitle {
  font-size: 0.58em;
  font-weight: 500;
  opacity: 0.9;
  white-space: pre-wrap;
}
.tpl-body {
  font-size: 0.52em;
  line-height: 1.35;
  opacity: 0.92;
  white-space: pre-wrap;
  max-width: 28em;
}
.tpl-detail {
  margin-top: 0.45em;
  font-size: 0.45em;
  font-weight: 700;
  padding: 0.35em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 0.05em solid var(--accent);
  white-space: pre-wrap;
}
.tpl-clock {
  font-size: 2.4em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.02em;
}
.tpl-clock.done {
  font-size: 1.3em;
}

/* ===== Encuesta en pantalla ===== */
.poll {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, #1e3a8a66, transparent 50%), radial-gradient(circle at 90% 90%, #7c3aed44, transparent 50%), #0b0f1a;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 60px 90px 40px;
  font-family: 'Segoe UI', sans-serif;
  gap: 28px;
}
.poll-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poll-type {
  font-size: 30px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}
.poll-q {
  font-size: 74px;
  font-weight: 800;
  line-height: 1.1;
}
.poll-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poll-foot {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 34px;
  color: #cbd5e1;
  min-height: 90px;
}
.pj-count {
  font-size: 46px;
  font-weight: 800;
  color: #86efac;
}
.muted-foot {
  color: #94a3b8;
  font-size: 30px;
  margin-left: auto;
}
.poll-closed {
  background: #3a1d22;
  color: #fca5a5;
  padding: 6px 20px;
  border-radius: 999px;
}
.poll-join {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: auto;
}
.poll-join img {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}
.poll-join .pj-title {
  font-size: 30px;
  font-weight: 700;
}
.poll-join .pj-url {
  font-size: 34px;
  color: #93c5fd;
  font-weight: 700;
}
.poll-join .pj-wifi {
  font-size: 26px;
  color: #cbd5e1;
}
.poll-join.big {
  margin: 0;
}
.poll-join.big img {
  width: 440px;
  height: 440px;
  padding: 18px;
  border-radius: 24px;
}
.poll-join.big .pj-title {
  font-size: 64px;
}
.poll-join.big .pj-url {
  font-size: 66px;
}
.poll-join.big .pj-wifi {
  font-size: 40px;
  margin-top: 16px;
}
.poll-res {
  display: flex;
  gap: 50px;
  width: 100%;
  align-items: center;
}
.poll-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.pb-row {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr 220px;
  align-items: center;
  gap: 24px;
  transition: opacity 0.4s;
}
.pb-row.dim {
  opacity: 0.35;
}
.pb-label {
  font-size: 44px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 18px;
}
.pb-letter {
  min-width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.pb-track {
  height: 70px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.pb-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 0.6s ease;
}
.pb-num {
  font-size: 50px;
  font-weight: 800;
  text-align: right;
}
.pb-num small {
  font-size: 28px;
  color: #94a3b8;
}
.pb-row.right .pb-label {
  color: #86efac;
}
.poll-scale {
  display: flex;
  align-items: flex-end;
  gap: 90px;
  width: 100%;
  height: 100%;
}
.ps-avg {
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  color: #fbbf24;
}
.ps-avg small {
  font-size: 70px;
  color: #94a3b8;
}
.ps-cols {
  flex: 1;
  height: 90%;
  display: flex;
  gap: 30px;
  align-items: flex-end;
}
.ps-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.ps-bar {
  width: 100%;
  min-height: 6px;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border-radius: 14px 14px 0 0;
  transition: height 0.6s ease;
}
.ps-n {
  font-size: 44px;
  font-weight: 700;
}
.ps-v {
  font-size: 30px;
  color: #fbbf24;
}
.poll-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px 40px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.05;
}
.poll-cloud span {
  transition: font-size 0.5s ease;
}
.poll-wait {
  font-size: 50px;
  color: #94a3b8;
}
.poll-qa {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  max-width: 90%;
  font-family: Georgia, serif;
}
.poll-rank {
  width: 520px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid #fbbf24;
  border-radius: 24px;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pr-title {
  font-size: 40px;
  font-weight: 800;
  color: #fbbf24;
}
.pr-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  font-size: 38px;
  align-items: center;
}
.pr-row b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== Panel de encuestas (operador) ===== */
.poll-ctl {
  border-top: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 55%;
  overflow-y: auto;
  background: #171a20;
}
.poll-ctl .pc-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.poll-ctl .pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.poll-ctl .pc-grid button {
  font-size: 12px;
  padding: 6px 4px;
}
.qa-item {
  background: var(--panel2);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qa-item.approved {
  border-left: 3px solid var(--ok);
}
.qa-item.shown {
  border-left: 3px solid var(--live);
}
.qa-item .qa-actions {
  display: flex;
  gap: 4px;
}
.poll-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poll-opts .po-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.poll-opts .po-row input[type='text'] {
  flex: 1;
}

/* ===== Diseños de plantilla (st-*) ===== */
.tpl.on-theme {
  background: transparent !important;
}
.tpl-noise {
  position: absolute;
  inset: -20%;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.tpl-noise.soft {
  opacity: 0.1;
}

/* Sello */
.tpl.st-stamp {
  background: radial-gradient(circle at 50% 45%, var(--accent-dark), #0d0b08 75%);
}
.st-stamp .tpl-content {
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  border: 0.09em solid var(--accent);
  outline: 0.04em solid var(--accent);
  outline-offset: 0.18em;
  border-radius: 0.6em;
  padding: 0.6em 1em;
  width: auto;
  max-width: 85%;
  transform: rotate(-3deg);
  text-transform: uppercase;
}
.st-stamp .tpl-eyebrow {
  border: 0;
  color: var(--accent);
  filter: none;
}
.st-stamp .tpl-title {
  color: #fff6e0;
  letter-spacing: 0.04em;
}
.st-stamp .tpl-subtitle {
  color: var(--accent);
  font-weight: 700;
}

/* Cita (versículos) */
.tpl.st-quote {
  background: linear-gradient(160deg, #101318, #1a1f29);
}
.st-quote .tpl-content {
  font-family: Georgia, 'Times New Roman', serif;
  align-items: flex-start;
  text-align: left;
  padding-left: 1.4em;
  position: relative;
}
.st-quote .tpl-content::before {
  content: '“';
  position: absolute;
  left: -0.1em;
  top: -0.35em;
  font-size: 4.2em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
}
.st-quote .tpl-eyebrow {
  border: 0;
  letter-spacing: 0.4em;
}
.st-quote .tpl-verse {
  font-style: normal;
  font-size: 1.05em;
}
.st-quote .tpl-subtitle {
  color: var(--accent);
  font-style: italic;
  border-top: 0.04em solid var(--accent);
  padding-top: 0.25em;
}

/* Brutalista (boletín) */
.tpl.st-brutal {
  background: #0a0a0a;
}
.tpl-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5%;
  background: var(--accent);
}
.st-brutal .tpl-box {
  padding-left: 11%;
}
.st-brutal .tpl-content {
  font-family: 'Arial Black', Impact, 'Segoe UI', sans-serif;
  align-items: flex-start;
  text-align: left;
  text-shadow: none;
  gap: 0.2em;
}
.st-brutal .tpl-eyebrow {
  background: var(--accent);
  color: #0a0a0a;
  filter: none;
  border: 0;
  padding: 0.15em 0.5em;
  letter-spacing: 0.08em;
}
.st-brutal .tpl-title {
  font-size: 1.55em;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.st-brutal .tpl-detail {
  background: none;
  border: 0;
  border-left: 0.12em solid var(--accent);
  border-radius: 0;
  padding-left: 0.5em;
}

/* Editorial floral */
.tpl.st-editorial {
  background: #f6f0e6;
  color: #2b2420;
}
.st-editorial .tpl-content {
  font-family: Georgia, 'Times New Roman', serif;
  text-shadow: none;
}
.st-editorial .tpl-eyebrow {
  color: var(--accent);
  filter: none;
  border-color: var(--accent);
  letter-spacing: 0.5em;
}
.st-editorial .tpl-title {
  font-weight: 400;
  font-style: italic;
  font-size: 1.4em;
}
.st-editorial .tpl-detail {
  background: transparent;
  color: var(--accent);
}
.tpl-flower {
  position: absolute;
  color: var(--accent);
  opacity: 0.35;
  font-size: 260px;
  line-height: 1;
}
.tpl-flower.f1 {
  left: 3%;
  top: 2%;
}
.tpl-flower.f2 {
  right: 4%;
  bottom: 3%;
  font-size: 320px;
}
.tpl-flower.f3 {
  right: 10%;
  top: 6%;
  font-size: 120px;
}
.tpl-frame {
  position: absolute;
  inset: 4%;
  border: 3px solid var(--accent);
  opacity: 0.35;
  pointer-events: none;
}
.tpl-frame.gold {
  border-color: #d4af37;
  opacity: 0.6;
  outline: 1px solid #d4af37;
  outline-offset: -18px;
}

/* Grano líquido */
.tpl.st-grain {
  background: #07060d;
}
.tpl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  animation: blob 16s ease-in-out infinite alternate;
}
.tpl-blob.b1 {
  width: 900px;
  height: 900px;
  left: -200px;
  top: -250px;
  background: var(--accent);
}
.tpl-blob.b2 {
  width: 800px;
  height: 800px;
  right: -250px;
  bottom: -300px;
  background: #ec4899;
  animation-duration: 20s;
}
.tpl-blob.b3 {
  width: 600px;
  height: 600px;
  left: 40%;
  top: 30%;
  background: #0ea5e9;
  opacity: 0.35;
  animation-duration: 24s;
}
@keyframes blob {
  to {
    transform: translate(180px, 120px) scale(1.2);
  }
}
.st-grain .tpl-title {
  letter-spacing: 0.02em;
}

/* Aguas */
.tpl.st-water {
  background: linear-gradient(180deg, #032b4a 0%, #0369a1 60%, #0ea5e9 100%);
}
.tpl-wave {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 40%;
  bottom: -18%;
  border-radius: 45%;
  background: rgba(255, 255, 255, 0.12);
  animation: wave 14s linear infinite;
}
.tpl-wave.w2 {
  bottom: -24%;
  background: rgba(255, 255, 255, 0.08);
  animation-duration: 20s;
  animation-direction: reverse;
}
@keyframes wave {
  to {
    transform: rotate(360deg);
  }
}

/* Pantalla LED */
.tpl.st-led {
  background: #050005;
}
.tpl-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1.6px, transparent 2px);
  background-size: 14px 14px;
}
.st-led .tpl-content {
  font-family: 'Arial Black', Impact, sans-serif;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 0.15em var(--accent), 0 0 0.5em var(--accent);
}
.st-led .tpl-eyebrow {
  border: 0;
  filter: none;
  background: var(--accent);
  color: #050005;
  text-shadow: none;
  padding: 0.1em 0.6em;
  border-radius: 0.15em;
}
.st-led .tpl-body,
.st-led .tpl-subtitle {
  color: #fff;
  text-shadow: 0 0 0.2em var(--accent);
}
.tpl-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5%;
  overflow: hidden;
  white-space: nowrap;
  font: 800 56px 'Arial Black', sans-serif;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  padding: 10px 0;
  text-transform: uppercase;
}
.tpl-ticker span {
  display: inline-block;
  animation: ticker 28s linear infinite;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Minimalista */
.tpl.st-minimal {
  background: #0d0f12;
}
.st-minimal .tpl-content {
  font-family: 'Segoe UI Light', 'Segoe UI', sans-serif;
  text-shadow: none;
}
.st-minimal .tpl-eyebrow {
  border: 0;
  font-weight: 600;
  letter-spacing: 0.6em;
}
.st-minimal .tpl-title,
.st-minimal .tpl-verse {
  font-weight: 300;
  font-style: normal;
}
.st-minimal .tpl-detail {
  background: none;
  border: 0;
}

/* Elegante */
.tpl.st-elegant {
  background: radial-gradient(circle at 50% 30%, #1c1a17, #070605 75%);
}
.st-elegant .tpl-content {
  font-family: Georgia, 'Times New Roman', serif;
}
.st-elegant .tpl-eyebrow {
  color: #d4af37;
  filter: none;
  border-color: #d4af37;
  letter-spacing: 0.5em;
}
.st-elegant .tpl-title {
  font-weight: 400;
  letter-spacing: 0.06em;
}
.st-elegant .tpl-subtitle {
  color: var(--accent);
  font-style: italic;
}
.st-elegant .tpl-detail {
  background: none;
  border-color: #d4af37;
}

/* Festivo */
.tpl.st-festive {
  background: linear-gradient(135deg, var(--accent-dark), #1e1b4b);
}
.tpl-confetti {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #facc15 6px, transparent 7px), radial-gradient(circle, #f472b6 5px, transparent 6px), radial-gradient(circle, #34d399 6px, transparent 7px), radial-gradient(circle, #60a5fa 4px, transparent 5px);
  background-size: 190px 170px, 230px 210px, 260px 240px, 150px 140px;
  background-position: 0 0, 60px 90px, 120px 40px, 30px 120px;
  opacity: 0.7;
  animation: confetti 30s linear infinite;
}
@keyframes confetti {
  to {
    background-position: 0 1700px, 60px 2190px, 120px 2440px, 30px 1520px;
  }
}
.st-festive .tpl-eyebrow {
  border: 0;
  background: var(--accent);
  color: #fff;
  filter: none;
  padding: 0.15em 0.7em;
  border-radius: 999px;
}

/* Neón */
.tpl.st-neon {
  background: radial-gradient(circle at 50% 50%, #0b1020, #000 70%);
}
.st-neon .tpl-title,
.st-neon .tpl-clock,
.st-neon .tpl-verse {
  color: #fff;
  text-shadow: 0 0 0.08em #fff, 0 0 0.25em var(--accent), 0 0 0.6em var(--accent), 0 0 1.2em var(--accent);
}
.st-neon .tpl-eyebrow {
  border-color: var(--accent);
  text-shadow: 0 0 0.3em var(--accent);
}

/* Luz cálida */
.tpl.st-light {
  background: radial-gradient(circle at 30% 20%, #fffaf0, #f3e7d3 70%);
  color: #2a211a;
}
.st-light .tpl-content {
  text-shadow: none;
}
.st-light .tpl-eyebrow {
  color: var(--accent);
  filter: none;
  border-color: var(--accent);
}
.st-light .tpl-subtitle {
  color: var(--accent);
}
.st-light .tpl-detail {
  background: rgba(0, 0, 0, 0.05);
}

/* selector de plantillas con categorías y vista previa */
.tpl-picker {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  min-height: 60vh;
}
.tpl-cats {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tpl-cats button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.tpl-cats button.on {
  background: #233150;
}
.tpl-cats .count {
  color: var(--muted);
  font-size: 12px;
}
.tpl-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  align-content: start;
  max-height: 64vh;
  overflow-y: auto;
  padding-right: 4px;
}
.preset-card {
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  text-align: left;
  white-space: normal;
}
.preset-card:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--panel2);
}
.preset-card .canvas {
  aspect-ratio: 16/9;
  height: auto;
  pointer-events: none;
}
.preset-card b {
  padding: 6px 10px 0;
  font-size: 13px;
}
.preset-card small {
  padding: 0 10px 8px;
  color: var(--muted);
  font-size: 11px;
}

/* selector y editor de plantillas */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  white-space: normal;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--panel2);
  min-height: 110px;
}
.tpl-card:hover:not(:disabled) {
  border-color: var(--accent);
  border-left-width: 4px;
}
.tpl-card-icon {
  font-size: 26px;
}
.tpl-card small {
  color: var(--muted);
  font-size: 12px;
}
.tpl-editor {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}
.tpl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tpl-form textarea {
  resize: vertical;
}
.tpl-form .field {
  flex: none;
}
.tpl-form .row .field {
  flex: 1;
}
.tpl-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tpl-preview .canvas {
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.tpl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tpl-tabs button {
  font-size: 12px;
  padding: 4px 8px;
}
.tpl-tabs button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Pantalla de escenario */
.stage {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 30px 50px;
  gap: 18px;
  font-family: 'Segoe UI', sans-serif;
}
.stage header {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 56px;
  font-weight: 700;
}
.stage .clock {
  color: #ffd166;
}
.stage .title {
  flex: 1;
  font-size: 40px;
  color: #9aa1b0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stage .timer {
  color: #4ade80;
}
.stage .timer.over {
  color: #ff5a5f;
}
.stage-msg {
  background: #e5484d;
  font-size: 54px;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 14px;
  animation: blink 1.4s ease-in-out infinite alternate;
}
@keyframes blink {
  to {
    opacity: 0.75;
  }
}
.stage .label {
  font-size: 34px;
  color: #ffd166;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.stage .current,
.stage .next {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.stage .fit-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.stage .current {
  flex: 3;
  overflow: hidden;
}
.stage .current .text {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.15;
  white-space: pre-wrap;
}
.stage .next {
  flex: 2;
  overflow: hidden;
  border-top: 3px solid #333;
  padding-top: 14px;
}
.stage .next .text {
  font-size: 56px;
  color: #8a8f99;
  white-space: pre-wrap;
  line-height: 1.15;
}
/* escenario con video karaoke de fondo */
.stage.stage-video {
  padding: 0;
  gap: 0;
}
.stage-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 36px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55));
  font-size: 46px;
  font-weight: 700;
  z-index: 2;
}
.stage-bar.bottom {
  top: auto;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55));
  font-size: 36px;
}
.stage-bar .title {
  flex: 1;
  font-size: 36px;
  color: #cfd5e1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stage-bar .remaining {
  color: #93c5fd;
  font-size: 38px;
}
.stage-bar .next-title {
  flex: 1;
  color: #cfd5e1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stage-overlays {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.stage-media {
  font-size: 80px;
  color: #60a5fa;
}
.stage footer {
  display: flex;
  gap: 16px;
}
.badge {
  font-size: 32px;
  padding: 4px 18px;
  border-radius: 10px;
  background: #3b82f6;
}
.badge.red {
  background: #e5484d;
}

.stage-note {
  background: #3a3212;
  border-left: 8px solid #ffd166;
  color: #ffe9a8;
  font-size: 40px;
  padding: 8px 22px;
  border-radius: 10px;
  white-space: pre-wrap;
}

/* ---------- Plan del culto */
.plan-summary {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}
.service-items li.plan-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 8px;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  cursor: grab;
}
.plan-section .sec-title {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fb0ff;
}
.plan-section .mins {
  font-size: 11px;
  color: var(--muted);
}
.service-items li.plan-item {
  padding-right: 6px;
}
.service-items li.done .li-title {
  text-decoration: line-through;
  opacity: 0.55;
}
.service-items li.done .ico,
.service-items li.done .num {
  opacity: 0.45;
}
.li-note {
  font-size: 11px;
  color: #ffd166;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.on-air {
  background: var(--live);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 3px;
  padding: 0 5px;
  margin-right: 6px;
}
/* reordenar manteniendo presionado */
.service-items li {
  touch-action: pan-y;
}
.service-items li.dragging {
  opacity: 0.35;
}
.service-items li.drop-before {
  box-shadow: inset 0 3px 0 0 var(--accent);
}
.service-items li.drop-after {
  box-shadow: inset 0 -3px 0 0 var(--accent);
}
.service-items.reordering li {
  cursor: grabbing;
}
.service-items.reordering .plan-actions {
  display: none !important;
}
body.reordering {
  cursor: grabbing;
  user-select: none;
}
.drag-ghost {
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 900;
  pointer-events: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0009;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* botones del elemento: aparecen encima (no le quitan espacio al título) */
.plan-actions {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 1px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 2px;
}
.service-items li:hover .plan-actions,
.plan-actions:focus-within {
  display: flex;
}
.plan-actions .proj {
  color: #ff8a8d;
}
.plan-actions .mark.on {
  color: #4ade80;
  opacity: 1;
}
.plan-actions .menu-list {
  min-width: 190px;
}

/* ---------- Operador */
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
header.top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #101216;
  border-bottom: 1px solid var(--line);
}
.brand {
  line-height: 1.1;
  margin-left: 4px;
}
.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
}
.brand-church {
  font-size: 12px;
  color: var(--muted);
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22%;
  background: linear-gradient(135deg, #2563eb, #111827);
  color: #fff;
  font-weight: 800;
  flex: none;
}
.church-logo {
  object-fit: contain;
  display: block;
  flex: none;
}
.user-btn {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-info {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

/* ---------- Registro e inicio de sesión */
.auth-back {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(circle at 30% 20%, #1e3a8a55, transparent 60%), radial-gradient(circle at 80% 90%, #7c3aed33, transparent 50%), var(--bg);
  overflow-y: auto;
  padding: 20px;
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px #0009;
  padding: 26px 30px;
  width: min(620px, 96vw);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form.login {
  width: min(360px, 90vw);
  margin: 0 auto;
}
.auth-card:has(.login) {
  width: auto;
}
.auth-form h1 {
  margin: 0;
  font-size: 22px;
}
.auth-form h3 {
  margin: 8px 0 0;
  font-size: 14px;
  color: #7fb0ff;
}
.auth-form .row {
  align-items: flex-start;
}
.auth-title {
  display: flex;
  gap: 16px;
  align-items: center;
}
.auth-title p {
  margin: 4px 0 0;
}
.login-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 8px;
}
.auth-error {
  background: #3a1d22;
  border: 1px solid var(--live);
  color: #ffb3b5;
  border-radius: 8px;
  padding: 8px 12px;
}
.auth-foot {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}
.auth-devs {
  color: #6b7385;
  font-size: 11px;
  text-align: center;
  max-width: 90vw;
}
.about-devs {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.9;
}
.about-devs li::before {
  content: '✝ ';
  color: var(--accent);
}
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.about h2 {
  margin: 8px 0 0;
}
.about h3 {
  margin: 16px 0 0;
}
.print-sections {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 40vh;
  overflow: auto;
}
.print-sec {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  align-items: center;
}
.print-sec-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.print-opts {
  display: flex;
  gap: 18px;
  margin: 12px 0 4px;
}
.logo-row {
  align-items: center;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.small {
  font-size: 12px;
}
.logo-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--panel2);
  border-radius: 10px;
  padding: 12px;
}
.logo-preview {
  width: 160px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(#2a2f3a 0 25%, #1f232b 0 50%) 0 0 / 16px 16px;
  border-radius: 8px;
  flex: none;
}
.logo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
table.users {
  width: 100%;
  border-collapse: collapse;
}
table.users th,
table.users td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
}
table.users th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
table.users .actions {
  text-align: right;
  white-space: nowrap;
}
table.users .actions button {
  margin-left: 6px;
}
.spacer {
  flex: 1;
}
.grid {
  flex: 1;
  min-height: 0;
  display: grid;
  /* biblioteca | plan del culto | en vivo (proyector + vista previa) */
  grid-template-columns: 300px minmax(320px, 1fr) minmax(440px, 1.3fr);
  gap: 8px;
  padding: 8px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  min-height: 46px;
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-head select {
  flex: 1;
  min-width: 0;
}

button {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  border-color: #4a5160;
  background: #2c313b;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.primary:hover:not(:disabled) {
  background: #2f6fd8;
}
button.live-btn {
  background: var(--live);
  border-color: var(--live);
  color: #fff;
}
button.danger {
  color: #ff8a8d;
  border-color: #6b2b2e;
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.sm {
  padding: 2px 7px;
  font-size: 12px;
}
button.big {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
}
button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.on.red {
  background: var(--live);
  border-color: var(--live);
}

input,
select,
textarea {
  background: #12141a;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
  min-width: 0;
  user-select: text;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
input[type='color'] {
  padding: 2px;
  height: 34px;
  width: 64px;
}
input[type='range'] {
  padding: 0;
  accent-color: var(--accent);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px 4px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
/* 4 pestañas en columna angosta: ícono arriba y nombre abajo */
.library .tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  padding: 6px 2px;
  line-height: 1.2;
}
.library .tabs .ti {
  font-size: 16px;
}
.tabs button.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.subtabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
}
.subtabs button {
  flex: 1;
  padding: 6px;
  font-size: 13px;
}
.subtabs button.on {
  background: #233150;
  border-color: #34508a;
}
.subtabs .count {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.tab-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tab-body[hidden] {
  display: none;
}
.lib {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lib.dropping {
  outline: 2px dashed var(--accent);
  outline-offset: -6px;
}
.lib-tools,
.lib-foot {
  display: flex;
  gap: 6px;
  padding: 8px;
  align-items: center;
}
.lib-tools > input,
.lib-tools > select:first-child {
  flex: 1;
}
.lib-foot {
  border-top: 1px solid var(--line);
}
.lib-foot > button {
  flex: 1;
}
.lib-foot > .muted {
  flex: 1;
  font-size: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.list li {
  position: relative;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}
.list li:hover {
  background: var(--panel2);
}
.list li.sel {
  background: #233150;
  border-color: #34508a;
}
.list li.empty {
  color: var(--muted);
  cursor: default;
  background: none;
  text-align: center;
  padding: 20px 10px;
}
.li-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.li-sub {
  color: var(--muted);
  font-size: 12px;
}
.li-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 2px;
  background: var(--panel2);
  border-radius: 6px;
}
.list li:hover .li-actions {
  display: flex;
}
.verses li {
  font-size: 13px;
  line-height: 1.45;
  border-left: 3px solid transparent;
}
/* versículo seleccionado: resaltado como con marcador */
.verses li.picked {
  background: #3b3413;
  border-color: #6b5d1a;
  border-left: 3px solid #fbbf24;
  color: #fff3c4;
}
.verses li.picked b {
  color: #fbbf24;
}
.verses b {
  color: #7fb0ff;
  margin-right: 4px;
}

.service-items li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-items li.live {
  border-color: var(--live);
  background: #3a1d22;
}
.service-items li.over {
  border-top: 2px solid var(--accent);
}
.service-items .num {
  color: var(--muted);
  font-size: 12px;
  width: 16px;
  text-align: right;
}
.li-main {
  min-width: 0;
  flex: 1;
}

.slide-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  align-content: start;
}
.slide-card {
  text-align: left;
  background: #0d0f13;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: normal;
}
.slide-card:hover:not(:disabled) {
  border-color: var(--accent);
  background: #0d0f13;
}
.slide-card.live {
  border-color: var(--live);
  box-shadow: 0 0 0 2px #e5484d55;
}
.sc-label {
  background: var(--panel2);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--muted);
}
.sc-label span {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}
.slide-card.live .sc-label {
  background: var(--live);
  color: #fff;
}
.sc-text {
  padding: 8px 10px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-grid {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-content: start;
}
.media-card {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #0d0f13;
}
.media-card.sel {
  border-color: var(--accent);
}
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb .kind {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 12px;
  background: #000a;
  padding: 0 5px;
  border-radius: 4px;
}
.media-name {
  font-size: 12px;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-preview {
  margin: 10px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-actions[hidden] {
  display: none;
}
.media-missing {
  margin: 10px;
  padding: 18px;
  border: 1px dashed #a46a30;
  border-radius: 10px;
  background: #2a1f14;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.media-missing .mono {
  word-break: break-all;
}
.media-card.missing {
  opacity: 0.75;
  border-color: #a46a30;
}
.thumb-missing {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffb26b;
  background: #2a1f14;
}
/* "＋ Plan" al pasar el mouse por canciones, imágenes y videos */
button.add-plan {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
button.add-plan:hover:not(:disabled) {
  background: #2f6fd8;
  border-color: #2f6fd8;
}
.media-add {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  box-shadow: 0 2px 8px #000a;
}
.media-card:hover .media-add {
  display: block;
}
.thumb .kind.yt {
  background: #c4302b;
  color: #fff;
  font-weight: 700;
}
.yt-btn,
.yt-btn:hover:not(:disabled) {
  color: #fff;
  background: #c4302b;
  border-color: #c4302b;
}
.yt-preview {
  width: 100%;
  border-radius: 8px;
}
.menu-version {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px 2px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px;
  align-items: center;
}

.livep .live-preview {
  margin: 10px auto;
  width: min(calc(100% - 20px), calc(32vh * 16 / 9));
  flex: none;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--live);
}
.live-info {
  padding: 0 12px;
}
.next-line {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-row,
.ctl-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
}
.nav-row button,
.ctl-row button {
  flex: 1;
}
.ctl-row button {
  font-size: 12px;
  padding: 7px 4px;
}
.scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 1450px) {
  .stage-tools {
    grid-template-columns: 1fr;
  }
}
/* laptops (poca altura): vista en vivo más chica para que entre la vista previa */
@media (max-height: 900px) {
  .livep .live-preview {
    width: min(calc(100% - 20px), calc(25vh * 16 / 9));
    margin: 6px auto;
  }
  .livep .nav-row button.big {
    padding: 8px 12px;
  }
}
/* vista previa dentro del panel En vivo */
.preview-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a20;
  display: flex;
  flex-direction: column;
  flex: none;
  min-height: 220px;
}
.preview-box .panel-head {
  min-height: 40px;
  flex-wrap: wrap;
}
.pv-title {
  min-width: 0;
}
.pv-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.preview-box .slide-grid {
  overflow: visible;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.preview-box .media-preview {
  max-height: 32vh;
  aspect-ratio: 16/9;
  align-self: center;
  width: min(calc(100% - 20px), calc(32vh * 16 / 9));
}
.preview-box .media-actions {
  padding-bottom: 6px;
}
.box,
.media-ctl {
  background: var(--panel2);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-ctl {
  border: 1px solid #34508a;
}
.box-title,
.mc-title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mc-row > input:not([type='checkbox']):not(.vol) {
  flex: 1;
}
.vol {
  width: 70px;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.big-time {
  font-size: 22px;
  flex: 1;
}
.over {
  color: #ff6b6f;
}
.pill {
  background: var(--live);
  border-radius: 20px;
  padding: 2px 10px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rehearsal-btn.on {
  background: #b45309;
  border-color: #f59e0b;
  color: #fff;
}
.rehearsal-tag {
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.livep.rehearsing .live-preview {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px #f59e0b44;
}
.rehearsal-note {
  margin: -4px 10px 6px;
  font-size: 12px;
  color: #fbbf24;
  text-align: center;
}
.dot-live {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 4px;
}
.out-status {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chip {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.chip.ok {
  background: #173d2a;
  border-color: var(--ok);
}
.chip.off {
  background: #3d2a17;
  border-color: #a46a30;
}

.empty {
  color: var(--muted);
  padding: 16px;
  text-align: center;
}
.big-empty {
  margin: auto;
  line-height: 1.8;
}
.muted {
  color: var(--muted);
}
.pad {
  padding: 0 12px;
}
.warn {
  color: #ffb26b;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

/* menú desplegable */
.menu {
  position: relative;
}
.menu-list {
  display: flex;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  min-width: 210px;
  flex-direction: column;
  box-shadow: 0 8px 24px #0008;
}
.menu-list button {
  border: 0;
  background: transparent;
  text-align: left;
}
/* menú dibujado sobre toda la ventana */
.menu-list.floating {
  position: fixed;
  right: auto;
  z-index: 1000;
}

/* modales */
.modal-back {
  position: fixed;
  inset: 0;
  background: #000a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(560px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px #000c;
}
.modal.wide {
  width: min(1100px, 96vw);
}
.modal-head {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-size: 17px;
  flex: 1;
}
.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-body h3 {
  margin: 10px 0 0;
  font-size: 15px;
}
.modal-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  color: var(--muted);
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.row.checks {
  gap: 20px;
  flex-wrap: wrap;
}
.editor-split {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  min-height: 0;
}
textarea.lyrics {
  min-height: 420px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.45;
}
.slide-preview-list {
  overflow-y: auto;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
}
.mini-slide {
  background: #0d0f13;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.mini-label {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  background: var(--panel2);
}
.mini-text {
  white-space: pre-wrap;
  text-align: center;
  padding: 6px;
  font-size: 13px;
}

.outputs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}
.out-card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.out-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.net-link {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #12141a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.net-link img {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 6px;
  flex: none;
}
.net-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.net-info .mc-row {
  flex-wrap: wrap;
}
.net-url {
  word-break: break-all;
  user-select: text;
  color: #7fb0ff;
}
.out-add {
  border-style: dashed;
  min-height: 120px;
}

.themes {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}
.theme-list {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.theme-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.theme-preview {
  aspect-ratio: 16/9;
  max-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
}
.pin {
  font-size: 22px;
  letter-spacing: 4px;
  color: #ffd166;
}
.qrs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.qrs figure {
  margin: 0;
  text-align: center;
}
.qrs img {
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}
.keys td {
  padding: 4px 10px 4px 0;
}
kbd {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #26303f;
  border: 1px solid #3a4a62;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 8px 24px #0009;
  max-width: 80vw;
}

@media (max-width: 1350px) {
  .grid {
    grid-template-columns: 270px minmax(280px, 1fr) minmax(400px, 1.3fr);
  }
}

/* ================= Módulos (1.14) ================= */
[hidden] {
  display: none !important;
}
.module-tabs {
  display: flex;
  gap: 2px;
  margin-left: 14px;
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.module-tabs button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  color: var(--muted);
}
.module-tabs button:hover {
  color: var(--text);
  background: #ffffff0d;
}
.module-tabs button.active {
  background: var(--accent);
  color: #fff;
}
.module-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 10px;
}
.mod-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mod-head h1 {
  font-size: 20px;
  margin: 0 8px 0 0;
}
.mod-tabs {
  display: flex;
  gap: 4px;
}
.mod-tabs button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.mod-tabs button.active {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.mod-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px;
}
.mod-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.mod-main,
.mod-scroll {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mod-scroll {
  flex: 1;
}
.stat-row {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.stat-row b {
  color: var(--text);
  font-size: 15px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
}
.data-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #ffffff0d;
  vertical-align: top;
}
.data-table tbody tr:hover {
  background: #ffffff08;
}
.module-page .data-table tbody tr {
  cursor: default;
}
.mod-main .data-table tbody tr {
  cursor: pointer;
}
.data-table.compact td {
  padding: 4px 6px;
}
.data-table .r,
.data-table th.r {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.data-table tr.void td {
  color: var(--muted);
  text-decoration: line-through;
}
.data-table tr.void td .void-reason,
.data-table tr.void td button {
  text-decoration: none;
}
.void-reason {
  color: #f59e0b;
  font-size: 12px;
}
.row-dim td {
  opacity: 0.5;
}
.pos {
  color: #4ade80;
}
.neg {
  color: #f87171;
}
.st-pill {
  font-size: 12px;
  border-radius: 20px;
  padding: 1px 9px;
  border: 1px solid var(--line);
}
.st-pill.st-miembro {
  border-color: #3b82f680;
  color: #93c5fd;
}
.st-pill.st-visitante {
  border-color: #f59e0b80;
  color: #fcd34d;
}
.st-pill.st-inactivo {
  color: var(--muted);
}
.bday-card {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.bday-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.bday-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
}
.bday-card li {
  padding: 3px 4px;
  border-radius: 5px;
  cursor: pointer;
}
.bday-card li:hover {
  background: #ffffff0d;
}
.bday-card li b {
  color: #f9a8d4;
  display: inline-block;
  width: 24px;
}
.bday-card li.today {
  background: #ec489926;
}
.member-form {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}
.member-photo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.member-photo img,
.photo-empty {
  width: 150px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  color: var(--muted);
  background: #0b0d10;
  text-transform: uppercase;
}
.member-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-fields h3 {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--accent);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.card h3 {
  margin: 0;
  font-size: 14px;
}
.kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 170px;
}
.kpi small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.kpi b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.kpi.big b {
  font-size: 26px;
}
.fin-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fin-period {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fin-period input[type='number'] {
  width: 90px;
}
.fin-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.2fr;
  gap: 12px;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.sw.in,
.bar.in {
  background: #3987e5;
}
.sw.out,
.bar.out {
  background: #d95926;
}
.bars {
  display: flex;
  align-items: stretch;
  height: 190px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-top: 6px;
}
.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 4px;
}
.bar-group.hover {
  background: #ffffff0a;
}
.bar-pair {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.bar {
  width: 38%;
  max-width: 14px;
  border-radius: 4px 4px 0 0;
  min-height: 0;
}
.bar-group span {
  font-size: 10.5px;
  color: var(--muted);
  padding: 3px 0;
}
.bar-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #26303f;
  border: 1px solid #3a4a62;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filters .field {
  flex: 0 1 160px;
}
.totals-line {
  margin: 2px 0;
}
.service-entry {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-entry h3 {
  margin: 8px 0 0;
}
.data-table.entry td {
  border: 0;
  padding: 3px 4px;
}
.data-table.entry input,
.data-table.entry select {
  width: 100%;
}
input.bad {
  border-color: #f87171 !important;
}
input.is-member {
  border-color: #3b82f6aa;
}
.entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 16px;
}
.reports,
.fin-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  align-items: start;
}
.fund-row {
  align-items: center;
}
.chk-inline {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}
.perm-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.perm-checks label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1px 8px 1px 4px;
  color: var(--muted);
  cursor: pointer;
}
.perm-checks label.on {
  border-color: #3b82f6aa;
  color: var(--text);
  background: #3b82f61f;
}
.perm-new {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.module-page.soon {
  align-items: center;
  justify-content: center;
}
.soon-card {
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
}
.soon-icon {
  font-size: 48px;
}
.soon-card h1 {
  margin: 6px 0 2px;
}
.soon-card li {
  margin: 6px 0;
}.mod-side .field {
  flex: 0 0 auto;
}
.service-entry > button.sm,
.card > button.sm {
  align-self: flex-start;
}
.member-fields .row {
  align-items: flex-start;
}
/* laptop 1536 px: el encabezado con módulos debe caber */
@media (max-width: 1750px) {
  .hdr-btn .lbl {
    display: none;
  }
  .module-tabs {
    margin-left: 6px;
  }
  .module-tabs button {
    padding: 6px 9px;
  }
}
@media (max-width: 1250px) {
  .module-tabs button {
    font-size: 0;
  }
  .module-tabs button span {
    font-size: 16px;
  }
}

/* ================= Musical (1.15) ================= */
.chord-text {
  white-space: pre-wrap;
}
.cl-line {
  min-height: 1.2em;
  line-height: 1.15;
  margin-bottom: 0.15em;
}
.cl-seg {
  display: inline-flex;
  flex-direction: column;
  vertical-align: bottom;
}
.cl-chord {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.85em;
  white-space: pre;
  padding-right: 0.35em;
  min-height: 1.15em;
}
.cl-lyric {
  white-space: pre;
}
.cl-inst {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.9em;
  margin: 0.2em 0 0.3em;
}
.cl-inst .cl-chord {
  font-size: 1em;
  padding: 0.05em 0.45em;
  border: 1px solid #fbbf2455;
  border-radius: 6px;
}
.cl-bare .cl-chord {
  border: 0;
  padding: 0;
}
.stage-chords .cl-chord {
  color: #fcd34d;
}
/* --- módulo en la PC --- */
.song-side {
  gap: 8px;
}
.song-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.song-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.song-list li:hover {
  background: #ffffff0d;
}
.song-list li.sel {
  background: #3b82f62e;
}
.song-list li.empty {
  cursor: default;
  white-space: normal;
}
.song-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.key-badge {
  font-size: 11px;
  color: #fbbf24;
  border: 1px solid #fbbf2466;
  border-radius: 5px;
  padding: 0 5px;
}
.chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.chart-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chart-head h2 {
  margin: 0;
}
.chart-head .key,
.mus .key {
  color: #fbbf24;
}
.tone-ctl {
  display: inline-flex;
}
.tone-ctl button {
  border-radius: 0;
  min-width: 42px;
}
.tone-ctl button:first-child {
  border-radius: 6px 0 0 6px;
}
.tone-ctl button:last-child {
  border-radius: 0 6px 6px 0;
}
.chart-body {
  column-width: 380px;
  column-gap: 28px;
  font-size: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.chart-sec {
  break-inside: avoid;
  margin-bottom: 14px;
}
.chart-sec h3 {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
}
.hint-box {
  background: #3b82f61a;
  border: 1px solid #3b82f655;
  border-radius: var(--radius);
  padding: 10px 14px;
}
.chord-preview {
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  overflow: auto;
  font-size: 15px;
  min-height: 0;
}
/* --- multitrack --- */
.player {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.player-meta .field:first-child {
  flex: 1.4;
}
.load-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.progress {
  width: 100%;
  height: 8px;
  background: #0b0d10;
  border-radius: 4px;
  overflow: hidden;
}
.progress div {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}
.transport {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.transport .play {
  min-width: 120px;
  font-size: 16px;
}
.transport .time {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  min-width: 110px;
}
.seek {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.seek input {
  width: 100%;
}
.seek-mark {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 8px;
  background: #fbbf24;
  pointer-events: none;
}
.seek-loop {
  position: absolute;
  bottom: -6px;
  height: 4px;
  background: #22c55e;
  border-radius: 2px;
  pointer-events: none;
}
.markers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.marker {
  display: inline-flex;
}
.marker.on button:first-child {
  border-color: #fbbf24;
  color: #fbbf24;
}
.marker small {
  color: var(--muted);
  margin-left: 4px;
}
.marker-add {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
}
.mixer {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.strip {
  min-width: 118px;
  max-width: 140px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid #3b82f6;
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  text-align: center;
}
.strip.role-click {
  border-top-color: #f59e0b;
}
.strip.role-guia {
  border-top-color: #a855f7;
}
.strip.missing {
  opacity: 0.6;
}
.strip-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip .vol {
  width: 100%;
}
.ms {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.ms .on-mute {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.ms .on-solo {
  background: #ca8a04;
  border-color: #ca8a04;
  color: #fff;
}
.out-settings .modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mode {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.mode.on {
  border-color: var(--accent);
  background: #3b82f61a;
}
.mode span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mode small {
  color: var(--muted);
}
.mini-player {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 4px;
  max-width: 230px;
}
.mini-player.playing {
  border-color: #22c55e88;
}
.mini-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: 0;
  padding: 0 4px;
  min-width: 0;
  line-height: 1.15;
}
.mini-info small {
  color: var(--muted);
  font-size: 11px;
}
.mus-admin {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 12px;
  align-items: start;
}
.mus-qr {
  align-items: center;
  text-align: center;
}
.mus-qr img {
  width: 240px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.mus-url {
  font-family: Consolas, monospace;
  font-size: 15px;
}
.mus-pin {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
}
.mus-pin b {
  font-size: 26px;
  letter-spacing: 0.15em;
  color: #fbbf24;
}
/* --- pantalla de músicos (tablet / celular) --- */
body.musicos {
  user-select: none;
  overscroll-behavior: none;
}
.mus-login {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.mus-login form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.mus-logo {
  font-size: 54px;
}
.mus-login h1 {
  margin: 0;
  font-size: 22px;
}
.mus-login input {
  font-size: 30px;
  text-align: center;
  letter-spacing: 0.3em;
  padding: 10px;
}
.mus-login button {
  font-size: 18px;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: 0;
}
.mus-error {
  color: #f87171;
}
.mus {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mus-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #101216;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  flex-shrink: 0;
}
.mus-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mus-title b {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mus-title span {
  color: var(--muted);
  font-size: 13px;
}
.mus-tone {
  display: flex;
}
.mus-tone button,
.mus-menu-btn {
  font-size: 16px;
  min-width: 44px;
  min-height: 40px;
}
.mus-tone .on {
  color: var(--muted);
}
.mus-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.mus-dot.offline,
.mus-dot.connecting {
  background: #f59e0b;
}
.mus-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 10px 12px;
  background: #15181e;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mus-menu label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mus-size {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mus-out {
  margin-left: auto;
}
.mus-warn {
  background: #92400e;
  padding: 6px 12px;
  font-size: 14px;
}
.mus-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 50vh;
  -webkit-overflow-scrolling: touch;
}
.mus-empty {
  color: var(--muted);
  text-align: center;
  margin-top: 30vh;
  font-size: 18px;
}
.mus-slide {
  padding: 8px 12px;
  margin-bottom: 8px;
  border-left: 4px solid transparent;
  border-radius: 6px;
  opacity: 0.55;
}
.mus-slide.cur {
  opacity: 1;
  border-left-color: #22c55e;
  background: #22c55e14;
}
.mus-slide.next {
  opacity: 0.8;
  border-left-color: #3b82f6;
}
.mus-label {
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 2px;
}
@media (max-width: 560px) {
  .mus-title span {
    font-size: 12px;
  }
  .mus-tone button,
  .mus-menu-btn {
    min-width: 38px;
  }
}.player-meta {
  align-items: flex-start;
}
.mod-side > button {
  white-space: normal;
}
.song-bg {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 4px 0 8px;
}
.song-bg-ctl {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.song-bg-label {
  width: 100%;
  font-weight: 600;
}
.seg {
  display: inline-flex;
}
.seg button {
  border-radius: 0;
}
.seg button:first-child {
  border-radius: 6px 0 0 6px;
}
.seg button:last-child {
  border-radius: 0 6px 6px 0;
}
.seg button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.song-bg input[type='color'] {
  width: 48px;
  height: 34px;
  padding: 2px;
}
.song-bg-dim {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.song-bg-preview {
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.song-bg-preview .canvas {
  width: 100%;
  height: 100%;
}
/* ================= Educación (1.16) ================= */
.course-ed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 980px;
}
.course-ed h3 {
  margin: 8px 0 0;
}
.course-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lesson-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lesson-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}
.lesson-list li > * {
  vertical-align: middle;
}
.lesson-list li {
  display: list-item;
}
.lesson-list li .ellipsis {
  display: inline-block;
  max-width: calc(100% - 230px);
}
.row-actions {
  float: right;
  display: inline-flex;
  gap: 4px;
}
.add-lesson {
  align-self: flex-start;
}
.enroll-list {
  max-height: 50vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  margin-top: 8px;
}
.enroll-list label {
  padding: 4px 6px;
  border-radius: 5px;
  cursor: pointer;
}
.enroll-list label.on {
  background: #3b82f61f;
}
.lesson-text {
  min-height: 260px;
  font-size: 14px;
}
.lesson-preview {
  background: #fff;
  color: #1c2230;
  border-radius: var(--radius);
  padding: 10px 16px;
  overflow: auto;
  max-height: 340px;
}
.lesson-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1px 2px 1px 10px;
  font-size: 13px;
}
.exam-ed {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.q-ed {
  background: #0b0d10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.q-ed .row {
  align-items: center;
}
.q-ed .row input {
  flex: 1;
}
.q-opts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 22px;
}
.q-opt {
  display: flex;
  gap: 8px;
  align-items: center;
}
.q-opt input[type='text'],
.q-opt input:not([type]) {
  flex: 1;
}
.q-opt.ok input:not([type='radio']),
.q-opt.ok span {
  border-color: #22c55e;
  color: #86efac;
}
.q-note {
  padding-left: 22px;
}
.mono {
  font-family: Consolas, monospace;
}
.big-code {
  font-size: 20px;
  letter-spacing: 0.12em;
  color: #fbbf24;
}
.progress-grid td.pg {
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  min-width: 42px;
}
.progress-grid td.pg small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.pg.st-aprobada {
  color: #4ade80;
}
.pg.st-leida,
.pg.st-examen-pendiente {
  color: #93c5fd;
}
.pg.st-por-calificar {
  color: #fbbf24;
}
.pg.st-reprobada {
  color: #f87171;
}
.pg.st-pendiente {
  color: #4b5263;
}
.mini-bar {
  width: 80px;
  height: 6px;
  background: #0b0d10;
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  margin-right: 6px;
}
.mini-bar div {
  height: 100%;
  background: #22c55e;
}
.attempt {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}
.attempt-head {
  margin-bottom: 6px;
}
.att-q {
  margin: 6px 0;
}
.att-a {
  padding: 3px 8px;
  border-left: 3px solid var(--line);
  margin-top: 2px;
}
.att-a.ok {
  border-color: #22c55e;
}
.att-a.bad {
  border-color: #ef4444;
}
.att-a.wait {
  border-color: #f59e0b;
}
.grade-btns {
  margin-top: 4px;
}
/* --- intranet del alumno (celular) --- */
body.aula-body-page {
  background: #f4f6fb;
  color: #1c2230;
  user-select: text;
}
.aula,
.aula-login {
  min-height: 100%;
  font-size: 16px;
}
.aula-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.aula-login form {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: 0 10px 30px #1c22301a;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.aula-logo {
  font-size: 48px;
}
.aula-login h1 {
  margin: 0;
  font-size: 22px;
}
.aula-login p {
  margin: 0;
  color: #5b6478;
}
.aula input,
.aula textarea,
.aula-login input {
  background: #fff;
  color: #1c2230;
  border: 1px solid #c9d1e0;
  border-radius: 10px;
  padding: 12px;
  font-size: 18px;
  width: 100%;
}
.aula-login input {
  text-align: center;
  letter-spacing: 0.12em;
}
.aula-login button,
.aula-main-btn {
  background: #1e40af;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
}
.aula-login button:disabled,
.aula-main-btn:disabled {
  opacity: 0.5;
}
.aula-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  padding: 8px 10px;
}
.aula-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #1e3a8a;
  color: #fff;
  padding: 10px 14px;
}
.aula-bar button {
  background: #ffffff22;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 15px;
}
.aula-hi {
  font-size: 12px;
  opacity: 0.8;
}
.aula-bar .aula-muted {
  color: #dbeafe;
}
.aula-body {
  padding: 14px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aula-empty {
  text-align: center;
  color: #5b6478;
  margin-top: 30vh;
}
.aula-muted {
  color: #5b6478;
  font-size: 14px;
}
.aula-course {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px #1c223012;
}
.aula-cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  font-weight: 700;
}
.aula-course h2 {
  margin: 2px 0 4px;
  font-size: 21px;
}
.aula-progress {
  height: 8px;
  background: #e5e9f2;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 4px;
}
.aula-progress div {
  height: 100%;
  background: #22c55e;
}
.aula-lessons {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.aula-lessons li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-top: 1px solid #edf0f6;
  cursor: pointer;
}
.aula-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2fb;
  color: #64748b;
  flex-shrink: 0;
  font-weight: 700;
}
.aula-lessons .st-aprobada .aula-ico {
  background: #dcfce7;
  color: #15803d;
}
.aula-lessons .st-por-calificar .aula-ico {
  background: #fef3c7;
  color: #b45309;
}
.aula-lessons .st-reprobada .aula-ico {
  background: #fee2e2;
  color: #b91c1c;
}
.aula-lessons .st-examen-pendiente .aula-ico,
.aula-lessons .st-leida .aula-ico {
  background: #dbeafe;
  color: #1d4ed8;
}
.aula-lt {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.aula-lt small {
  color: #5b6478;
  font-size: 13px;
}
.aula-go {
  color: #94a3b8;
  font-size: 22px;
}
.aula-title {
  margin: 4px 0 0;
  font-size: 24px;
}
.aula-content {
  line-height: 1.6;
  font-size: 17px;
}
.aula-content h2,
.aula-content h3,
.aula-content h4 {
  color: #1e3a8a;
  margin: 18px 0 6px;
}
.aula-content blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 4px solid #b08d2b;
  background: #fbf6e8;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.aula-content a {
  color: #2563eb;
}
.aula-files {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aula-files h3 {
  margin: 0;
}
.aula-files a {
  color: #1d4ed8;
  text-decoration: none;
  padding: 8px 10px;
  background: #eef2fb;
  border-radius: 8px;
}
.aula-ok {
  text-align: center;
  color: #15803d;
  font-weight: 600;
  padding: 10px;
  background: #dcfce7;
  border-radius: 10px;
}
.aula-exam {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px #1c223012;
}
.aula-exam h3 {
  margin: 0;
}
.aula-result {
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aula-result.ok {
  background: #dcfce7;
}
.aula-result.bad {
  background: #fee2e2;
}
.aula-result.wait {
  background: #fef3c7;
}
.aula-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.aula-marks span {
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffffffaa;
  font-size: 14px;
}
.aula-marks .ok {
  color: #15803d;
}
.aula-marks .bad {
  color: #b91c1c;
}
.aula-questions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aula-q {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aula-qt {
  font-weight: 600;
}
.aula-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #c9d1e0;
  border-radius: 10px;
  cursor: pointer;
}
.aula-opt.on {
  border-color: #1e40af;
  background: #eff4ff;
}
.aula-opt input {
  width: auto;
  accent-color: #1e40af;
}
.aula-link {
  background: none;
  border: 0;
  color: #5b6478;
  text-decoration: underline;
  font-size: 15px;
}/* el contenido de un modal nunca se encoge (se superponía); el modal se desplaza */
.modal-body > * {
  flex-shrink: 0;
}
.edu-lesson .editor-split {
  grid-template-columns: 1fr 1fr;
}
.edu-lesson-split {
  grid-template-columns: 1fr 1fr;
}

/* Biblia: dividir versículos largos */
.split-total {
  margin-right: auto;
}
.split-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.split-presets button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
}
.split-presets button small {
  opacity: 0.75;
  font-weight: normal;
}
.split-presets button.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.split-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}
.split-row.long {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.split-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.split-head .seg {
  margin-left: auto;
}
.split-tag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.split-pieces {
  display: flex;
  gap: 8px;
}
.split-piece {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--line) 35%, transparent);
}
.split-n {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.split-short {
  margin-top: 6px;
  font-size: 12px;
}

/* Nube */
.cloud-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
}
.cloud-chip.ok {
  border-color: color-mix(in srgb, #22c55e 55%, var(--line));
}
.cloud-chip.busy {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}
.cloud-chip.warn {
  border-color: #d97706;
  color: #f59e0b;
}
.cloud-chip.bad {
  border-color: #e5484d;
  color: #f87171;
}
.cloud-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.cloud-choice {
  border-color: #d97706;
  margin-bottom: 12px;
}
.cloud-choice button small {
  font-weight: normal;
  opacity: 0.8;
}
.web-app .module-page {
  min-height: 0;
}
@media (max-width: 760px) {
  .web-app .top .lbl,
  .web-app .brand-church {
    display: none;
  }
  .web-app .top {
    gap: 6px;
  }
}
/* pie de firmas al imprimir desde el navegador (en la PC lo pone el PDF) */
.web-print-footer {
  margin-top: 24mm;
}
/* NEW LIFE Nube en el celular: todo en una columna, pestañas y tablas con desplazamiento lateral */
@media (max-width: 760px) {
  .web-app .module-page {
    padding: 10px;
    overflow-x: hidden;
  }
  .web-app .module-page * {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .web-app .module-page .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .web-app .mod-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .web-app .mod-tabs,
  .web-app .subtabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .web-app .mod-tabs button,
  .web-app .subtabs button {
    flex: none;
  }
  .web-app .module-page table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
  .web-app .row,
  .web-app .filters {
    flex-wrap: wrap;
  }
  .web-app .modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
}

/* enlace con aspecto de botón (p. ej. ▶ Referencia de una canción) */
a.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  text-decoration: none;
  white-space: nowrap;
}
a.btn:hover {
  border-color: #4a5160;
  background: #2c313b;
}

/* Plan del culto en la web (NEW LIFE en internet) */
.warn-txt {
  color: #f59e0b;
}
.plan-web .plan-pick select {
  min-width: 220px;
}
.plan-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}
.plan-sum {
  margin-bottom: 6px;
}
.plan-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-items > li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.plan-items .plan-sec {
  background: transparent;
  border-color: transparent;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.plan-items .plan-it.done {
  opacity: 0.55;
}
.plan-ico {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.plan-txt {
  flex: 1;
  min-width: 0;
}
.plan-min {
  width: 64px;
}
.plan-acts {
  display: inline-flex;
  gap: 2px;
}
.pick-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}
.pick-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.pick-list li:hover {
  background: var(--panel2);
}
.pick-list li .ellipsis {
  flex: 1;
}
.bible-prev {
  max-height: 40vh;
  overflow-y: auto;
  font-size: 14px;
}
.bible-prev p {
  margin: 4px 0;
}
@media (max-width: 760px) {
  .plan-items > li {
    flex-wrap: wrap;
  }
  .plan-txt {
    flex-basis: calc(100% - 40px);
  }
  .web-app .plan-web .plan-pick select {
    min-width: 0;
    flex: 1;
  }
}
