/* Alabanza RDV — sistema visual inspirado en apple.com: superficies claras,
   tipografía SF grande y apretada, listas agrupadas tipo iOS y mucho aire. */
:root {
  /* RDVWORSHIP: negro absoluto como el logo, superficies grafito y un azul eléctrico de escenario. */
  --page: #000000;
  --surface: #141416;
  --raised: #1d1d20;
  --ink: #ffffff;
  --ink-2: #a8a8ad;
  --ink-3: #6f6f75;
  --line: #2c2c30;
  --hair: rgba(255, 255, 255, .08);
  --blue: #3d8bff;
  --blue-ink: #6aa6ff;
  --blue-soft: rgba(61, 139, 255, .16);
  --red: #ff4d4f;
  --red-soft: rgba(255, 77, 79, .16);
  --amber: #ffad33;
  --amber-soft: rgba(255, 173, 51, .15);
  --green: #34d17a;
  --green-soft: rgba(52, 209, 122, .14);
  --a-alabanza: #3d8bff;
  --a-sonido: #34d17a;
  --a-luces: #ffad33;
  --a-medios: #c17bff;
  --a-produccion: #a8a8ad;
  --bar: rgba(0, 0, 0, .78);
  --shadow: none;
  --r-xl: 20px; --r-lg: 14px; --r-md: 12px; --r-sm: 8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gh: calc(56px + var(--safe-t));
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 var(--font); letter-spacing: -.011em; font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
a { color: var(--blue-ink); text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
input, select, textarea { font: inherit; color: var(--ink); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Estructura ---------- */
.app { max-width: 760px; margin: 0 auto; padding: calc(var(--gh) + 4px) 16px calc(96px + var(--safe-b)); }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 8px 0 0;
}
.top:not(:has(.back, .top-actions > *)) { display: none; }
.top .mini { display: none; }

/* ---------- Encabezado global con el logo ---------- */
.gh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--gh); padding: var(--safe-t) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bar); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
.gh .logo { display: flex; align-items: center; height: 44px; padding: 0 4px 0 0; }
.gh .logo img { height: 22px; width: auto; display: block; }
.gh nav { display: none; gap: 4px; }
.gh nav a { color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 980px; letter-spacing: -.005em; }
.gh nav a.on { color: var(--ink); background: var(--raised); }
.gh .sync { color: var(--ink-3); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.gh .sync .spin { width: 12px; height: 12px; border-width: 1.5px; }
@media (min-width: 900px) { .gh nav { display: flex; } .gh { padding-left: max(24px, calc(50% - 480px)); padding-right: max(24px, calc(50% - 480px)); } }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-ink); font-size: 17px; background: none; border: 0; padding: 6px 4px 6px 0; cursor: pointer; }
.back svg { width: 20px; height: 20px; }
.top-actions { display: flex; gap: 6px; align-items: center; }

h1.title { font: 800 36px/1.08 var(--display); letter-spacing: -.04em; margin: 18px 0 6px; }
.subtitle { color: var(--ink-2); font-size: 17px; margin: 0 0 22px; }
h2.sec { font: 700 21px/1.2 var(--display); letter-spacing: -.03em; margin: 34px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
h2.sec .aside { font: 400 15px var(--font); color: var(--ink-2); letter-spacing: -.01em; }
.foot { color: var(--ink-2); font-size: 13px; margin: 8px 4px 0; letter-spacing: -.005em; }

/* ---------- Barra inferior ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 8px calc(6px + var(--safe-b));
  background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--hair); display: flex; justify-content: center;
}
.tabbar nav { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; max-width: 560px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--ink-3); font-size: 10.5px; font-weight: 500; letter-spacing: 0; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a.on { color: var(--ink); }
@media (min-width: 900px) { .tabbar { display: none; } .app { padding-bottom: 64px; } }


/* ---------- Listas agrupadas ---------- */
.group { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; position: relative;
  width: 100%; text-align: left; background: none; border: 0; color: inherit;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hair); }
.row.indent + .row.indent::before { left: 56px; }
button.row, a.row { cursor: pointer; }
button.row:active, a.row:active { background: var(--raised); }
.row .grow { flex: 1; min-width: 0; }
.row .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { display: block; color: var(--ink-2); font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .v { color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.row .v.empty { color: var(--ink-3); }
.chev { width: 8px; height: 13px; color: var(--ink-3); flex: none; }
.row .lab { color: var(--ink-2); font-size: 15px; width: 132px; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- Controles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--ink); color: #000; border-radius: 980px; padding: 11px 22px; font-size: 16px; font-weight: 600; min-height: 44px;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.small { padding: 7px 15px; font-size: 14px; min-height: 32px; }
.btn.ghost { background: var(--raised); color: var(--ink); }
.btn.plain { background: none; color: var(--blue-ink); padding-left: 8px; padding-right: 8px; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px 4px; letter-spacing: -.005em; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 12px 14px; font-size: 17px;
  -webkit-appearance: none; appearance: none; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
textarea.input { min-height: 88px; resize: vertical; line-height: 1.4; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.search { position: relative; margin: 0 0 12px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); }
.search input { width: 100%; border: 0; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 11px; padding: 10px 12px 10px 38px; font-size: 17px; outline: none; }

.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; border-radius: 980px; padding: 7px 14px; font-size: 14px; background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--ink); color: #000; font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 980px; padding: 2px 9px; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); white-space: nowrap; letter-spacing: -.005em; }
.pill.blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.green { background: var(--green-soft); color: var(--green); }

/* ---------- Tono (el elemento con personalidad) ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; flex: none;
  font: 700 19px/1 var(--display); letter-spacing: -.02em; background: var(--ink); color: #000;
}
.key.sm { min-width: 34px; height: 30px; font-size: 15px; border-radius: 9px; }
.key.empty { background: var(--raised); color: var(--ink-3); }
.key sup { font-size: .62em; margin-left: 1px; font-weight: 600; line-height: 1; align-self: flex-start; margin-top: .55em; }
.key.sm sup { margin-top: .45em; }
.shift { font-size: 12px; color: var(--amber); font-weight: 600; margin-left: 2px; }

/* ---------- Inicio ---------- */
.hero {
  background: radial-gradient(120% 90% at 100% 0%, rgba(61, 139, 255, .22), transparent 60%), var(--surface);
  border: 1px solid var(--hair); border-radius: var(--r-xl); padding: 22px 20px 18px; position: relative; overflow: hidden;
}
.hero .when { display: flex; align-items: flex-end; gap: 14px; }
.hero .day { font: 800 84px/.8 var(--display); letter-spacing: -.07em; }
.hero .wd { font: 600 21px/1.15 var(--display); letter-spacing: -.025em; }
.hero .wd small { display: block; font: 400 15px var(--font); color: var(--ink-2); letter-spacing: -.01em; }
.hero .roles { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero .tracks { margin: 18px 0 4px; display: grid; gap: 8px; }
.hero .track { display: flex; align-items: center; gap: 12px; }
.hero .track .t { font-weight: 500; }
.hero .cta { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.kicker { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin: 14px 0 0; }
.notice > .grow { min-width: 0; }
.notice .group .row { padding: 8px 12px; gap: 8px; }
.notice .group .row .grow { min-width: 0; }
.notice .group .row .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.notice .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue-ink); }
.notice .ic svg { width: 18px; height: 18px; }
.notice p { margin: 2px 0 10px; color: var(--ink-2); font-size: 15px; }
.notice strong { display: block; font-weight: 600; }
.meter { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }

/* ---------- Mes ---------- */
.monthbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; }
.monthbar h1 { margin: 0; }
.svc-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 4px 8px; }
.svc-head .d { font: 700 34px/1 var(--display); letter-spacing: -.04em; width: 44px; flex: none; }
.svc-head .n { flex: 1; min-width: 0; }
.svc-head .n b { display: block; font: 600 19px/1.2 var(--display); letter-spacing: -.02em; }
.svc-head .n span { color: var(--ink-2); font-size: 14px; }
.svc-head a { font-size: 15px; white-space: nowrap; }
.area-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); padding: 12px 16px 2px; font-weight: 500; letter-spacing: 0; }
.flag { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 6px; vertical-align: middle; }
.flag.red { background: var(--red); } .flag.amber { background: var(--amber); }
.status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }

/* ---------- Reunión ---------- */
.setlist { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl); overflow: hidden; }
.song-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; position: relative; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.song-row + .song-row::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: 1px solid var(--hair); }
.song-row .num { color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.song-row .t { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row .s { color: var(--ink-2); font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row .right { display: flex; align-items: center; gap: 10px; }
.song-row .stem { font-size: 13px; }
.total { display: flex; justify-content: space-between; padding: 12px 16px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--hair); }
.timeline { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.tl { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 11px 16px; align-items: baseline; position: relative; }
.tl + .tl::before { content: ""; position: absolute; top: 0; left: 86px; right: 0; border-top: 1px solid var(--hair); }
.tl .h { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.tl .d { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.tl.songs .l { color: var(--blue-ink); font-weight: 500; }
.tl.pre .h { color: var(--ink-2); font-weight: 500; }
.team-area { margin: 0 0 12px; }

/* ---------- Canciones ---------- */
.song-hero { padding: 6px 0 4px; }
.song-hero h1 { margin-bottom: 2px; }
.song-hero .by { color: var(--ink-2); font-size: 19px; margin: 0 0 18px; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--r-lg); }
.facts div { padding: 14px 10px; text-align: center; }
.facts div + div { border-left: 1px solid var(--hair); }
.facts b { display: block; font: 600 24px/1.1 var(--display); letter-spacing: -.03em; }
.facts span { color: var(--ink-2); font-size: 12px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.links a { background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.links a svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- Disponibilidad ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wh { text-align: center; color: var(--ink-3); font-size: 12px; padding: 4px 0; }
.cal button {
  aspect-ratio: 1; border-radius: 14px; border: 0; background: transparent; color: var(--ink-3); font-size: 17px; cursor: default; padding: 0;
  font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.cal button.svc { background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; }
.cal button.svc::after { content: attr(data-n); display: block; font-size: 9.5px; color: var(--ink-3); font-weight: 500; margin-top: 2px; letter-spacing: 0; }
.cal button.off { background: var(--red); color: #fff; }
.cal button.off::after { color: rgba(255, 255, 255, .85); content: "No puedo"; }
.legend { display: flex; gap: 14px; color: var(--ink-2); font-size: 13px; margin: 10px 2px 0; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Hoja inferior (sheet) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; opacity: 0; transition: opacity .25s; }
.scrim.in { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92dvh; display: flex; flex-direction: column;
  background: #0c0c0e; border: 1px solid var(--hair); border-bottom: 0; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .25, 1);
  max-width: 640px; margin: 0 auto;
}
.sheet.in { transform: none; }
@media (min-width: 700px) {
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: 600px; border-radius: 18px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .25s, opacity .2s; max-height: 86dvh; }
  .sheet.in { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.sheet-head b { font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .l { justify-self: start; } .sheet-head .r { justify-self: end; }
.sheet-head button { background: none; border: 0; color: var(--blue-ink); font-size: 17px; cursor: pointer; padding: 6px; }
.sheet-head button.strong { font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 18px 16px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 0; }
@media (min-width: 700px) { .grabber { display: none; } }

.keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0 0 8px; }
.keys button { height: 44px; border-radius: 10px; border: 0; background: var(--surface); font-weight: 600; font-size: 16px; cursor: pointer; }
.keys button.on { background: var(--ink); color: #000; }
.keys button.orig { box-shadow: inset 0 0 0 2px var(--blue); }
.keys button { color: var(--ink); }

.person-opt .tag { font-size: 12px; }

/* ---------- Avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; z-index: 80;
  background: var(--ink); color: #000; padding: 11px 18px; border-radius: 980px; font-weight: 500; font-size: 15px; transition: all .25s; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty-state b { display: block; color: var(--ink); font: 600 21px var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.empty-state p { margin: 0 0 18px; }
.loading { display: grid; place-items: center; min-height: 50dvh; color: var(--ink-3); }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--ink-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Acceso ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth .mark { margin: 0 0 30px; }
.auth .mark img { height: 40px; width: auto; display: block; }
.auth h1 { font: 800 40px/1.05 var(--display); letter-spacing: -.045em; margin: 0 0 8px; }
.auth p.lead { color: var(--ink-2); font-size: 19px; margin: 0 0 28px; letter-spacing: -.02em; }
.auth .switch { text-align: center; margin: 18px 0 0; color: var(--ink-2); font-size: 15px; }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 18px 0; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.err { color: var(--red); font-size: 15px; margin: 0 0 12px; min-height: 0; }

/* ---------- Impresión ---------- */

/* ---------- WhatsApp ---------- */
:root { --wa: #25d366; }
.btn.wa { background: var(--wa); color: #04210f; }
.btn.wa.ghost, .btn.ghost.wa { background: var(--raised); color: var(--ink); }
.icon-btn.wa-ic { background: color-mix(in srgb, var(--wa) 18%, transparent); border-color: transparent; color: var(--wa); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips .pill { cursor: pointer; border: 0; }
.cf { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; margin-left: 6px; vertical-align: 1px; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-3); flex: none; }
.cf.si { background: var(--green-soft); color: var(--green); }
.cf.no { background: var(--red-soft); color: var(--red); }
.notice.slim { align-items: center; margin: 0 0 6px; }
.notice.slim p { margin: 2px 0 0; }
.seg.mini { margin: 6px 0 0; padding: 0; width: 100%; }
.seg.mini button { padding: 5px 11px; font-size: 13px; background: var(--raised); }
.seg.mini button.on { background: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.stat-row div { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 12px 12px; min-width: 0; }
.stat-row b { display: block; font: 700 24px/1.1 var(--display); letter-spacing: -.03em; }
.stat-row b.red { color: var(--red); }
.stat-row span { font-size: 13px; color: var(--ink-2); }
.meter.red i { background: var(--red); } .meter.amber i { background: var(--amber); } .meter.green i { background: var(--green); }
.person-row { cursor: pointer; }
.person-row .tag { margin-left: 4px; vertical-align: 1px; }
.row.contact .input { width: 170px; flex: none; padding: 8px 12px; font-size: 16px; }
.row.contact .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Confirmar servicios */
.app.public { padding-top: calc(var(--gh) + 8px); }
.confirm-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl); padding: 16px; margin: 0 0 10px; }
.confirm-card.is-si { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.confirm-card.is-no { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.cc-top { display: flex; gap: 14px; align-items: center; }
.cc-top .grow { display: flex; flex-direction: column; }
.cc-top .grow span { color: var(--ink-2); font-size: 15px; }
.cc-d { font: 800 34px/1 var(--display); letter-spacing: -.04em; width: 46px; text-align: center; }
.cc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-act .btn { min-height: 44px; font-size: 15px; }
.cc-st { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Historial y letra */
.hist { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); margin: 0 0 8px; color: inherit; text-decoration: none; }
.hist .hd { display: flex; flex-direction: column; align-items: center; width: 38px; flex: none; }
.hist .hd b { font: 700 22px/1 var(--display); }
.hist .hd span { font-size: 12px; color: var(--ink-2); }
.hist .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hist .t { font-weight: 600; }
.hist .s { color: var(--ink-2); font-size: 14px; font-weight: 400; }
.hist i { font-style: normal; color: var(--blue-ink); font-size: 12px; }
.has-chart { color: var(--ink-3); display: inline-grid; }
.has-chart svg { width: 15px; height: 15px; }
.chart-prev { display: block; position: relative; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 12px 14px; margin: 0 0 10px; color: var(--ink); cursor: pointer; max-height: 190px; overflow: hidden; }
.chart-prev pre { margin: 0; font: 13px/1.35 "Roboto Mono", ui-monospace, Menlo, monospace; white-space: pre; overflow: hidden; }
.chart-prev .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--surface)); }
.input.mono { font: 14px/1.4 "Roboto Mono", ui-monospace, Menlo, monospace; white-space: pre; overflow-x: auto; }
.lyr { margin: 0 0 8px; }
.lyr .lyr-t { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 14px 16px; font-size: 17px; line-height: 1.5; }
.lyr .lyr-t b { display: block; color: var(--blue-ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 2px; }
.lyr .lyr-t b:first-child { margin-top: 0; }

/* ---------- Modo escenario ---------- */
.stage { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; display: flex; flex-direction: column; padding: var(--safe-t) 0 var(--safe-b); touch-action: pan-y; }
.st-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-height: 48px; border-bottom: 1px solid var(--hair); flex: none; }
.st-bar button, .st-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--raised); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.st-bar svg, .st-nav svg { width: 18px; height: 18px; }
.st-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.st-t b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-t span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-k { display: flex; align-items: center; gap: 6px; flex: none; }
.st-capo { font-size: 12px; color: var(--amber); white-space: nowrap; }
.st-body { flex: 1; min-height: 0; overflow: hidden; padding: 10px 14px 6px; }
.st-body.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.st-content { column-gap: 22px; column-fill: auto; height: 100%; overflow: hidden; }
.st-body.scroll .st-content { height: auto; overflow: visible; }
.st-content.mono { font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; }
.st-content.prose { font-family: var(--font); }
.st-content .sl { white-space: pre; line-height: 1.22; }
.st-content.prose .sl { white-space: pre-wrap; line-height: 1.32; }
.st-content .sl.ch { color: var(--blue-ink); font-weight: 700; }
.st-content .sl.ch i { font-style: normal; color: var(--ink-3); font-weight: 500; }
.st-content .sl.ch b { font-weight: 700; }
.st-content .sl.sec { color: var(--amber); font-weight: 700; font-size: .82em; letter-spacing: .06em; text-transform: uppercase; margin-top: .25em; }
.st-content .sl.gap { height: .55em; }
.st-content .pair { break-inside: avoid; }
.st-note { color: var(--amber); font-size: .85em; margin: 0 0 .4em; white-space: normal; font-family: var(--font); break-inside: avoid; }
.stage .empty-state { color: #fff; }
.st-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 8px; flex: none; }
.st-nav span { font-size: 13px; color: var(--ink-2); }
.st-nav button[disabled] { opacity: .3; }
.st-opts { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); z-index: 2; }
.st-row { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.st-row > span { width: 64px; flex: none; font-size: 14px; color: var(--ink-2); }
.st-row .seg { margin: 0; padding: 0; flex: 1; }
.st-step { display: flex; align-items: center; gap: 12px; }
.st-step button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--raised); color: #fff; display: grid; place-items: center; cursor: pointer; }
.st-step svg { width: 16px; height: 16px; }
.st-step b { min-width: 64px; text-align: center; font-weight: 600; }
@media print { .stage { display: none !important; } .lyr .lyr-t { border: 0; padding: 0; font-size: 12pt; } }

@media print {
  .tabbar, .top, .no-print, .toast { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .app { padding: 0; max-width: none; }
  .setlist, .timeline, .group { background: none; border: 1px solid #ccc; }
  .key { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
