/* DanceKut Gallery — event panel (organization + filmmakers). Brand per docs/BRAND.md. */

:root {
  --pur: #a855f7; --or: #ff7b00; --tx: #f4f4f6; --tx2: #9ca3af;
  --bg: #0a0a0f; --card: #14141c; --line: #26263a;
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Scrollbars styled like the DanceKut app — global, so the app's embedded view
   (iframe) gets them too instead of the OS default. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }
::-webkit-scrollbar-corner { background: transparent; }
/* Explicit emoji fallbacks: inside the app's embedded view, Inter alone renders 🪪/📤 as tofu. */
body { background: var(--bg); color: var(--tx); font: 14.5px/1.5 Inter, -apple-system, "Segoe UI", Roboto, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--pur); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--tx); background: #101018; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 11px; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--pur); }
textarea { resize: vertical; min-height: 80px; }

.pn-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.pn-boot .kb, .pn-brand .kb {
  width: 46px; height: 46px; border-radius: 13px; color: #fff;
  background: linear-gradient(135deg, var(--pur), var(--or));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px;
}
.pn-boot .kb { animation: kpulse 1.1s ease-in-out infinite; }
@keyframes kpulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

.pn-shell { max-width: 980px; margin: 0 auto; padding: 20px 16px 80px; }
.pn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pn-brand { display: flex; align-items: center; gap: 9px; }
.pn-brand .kb { width: 32px; height: 32px; border-radius: 9px; font-size: 19px; }
.pn-brand .wm { font-weight: 800; font-size: 19px; letter-spacing: -0.0625em; }
/* Kalllery (2026-10-03): the mark draws its own gradient ring — nothing behind it */
.pn-boot .kb.kal, .pn-brand .kb.kal { background: none; border-radius: 27.5%; }
.pn-boot .kb.kal svg, .pn-brand .kb.kal svg { width: 100%; height: 100%; display: block; }
.pn-brand .wm .d { color: var(--tx); } .pn-brand .wm .k { background: linear-gradient(90deg, var(--pur), var(--or)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pn-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pn-role { font-size: 12px; color: var(--tx2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.pn-h1 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 4px 0 14px; }
.pn-h1 a { font-size: 14px; font-weight: 600; margin-left: 10px; }

.pn-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.pn-card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pn-hint { color: var(--tx2); font-size: 13px; margin: 6px 0 0; }
.pn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .pn-grid2 { grid-template-columns: 1fr; } }
.pn-field { margin-bottom: 10px; }
.pn-field label { display: block; font-size: 12px; color: var(--tx2); margin-bottom: 4px; font-weight: 600; }

.pn-btn { padding: 9px 16px; border-radius: 11px; background: #1b1b28; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; transition: all .13s; white-space: nowrap; }
.pn-btn:hover { border-color: var(--pur); }
.pn-btn.pri { background: linear-gradient(135deg, var(--pur), var(--or)); border-color: transparent; color: #fff; }
.pn-btn.pri:hover { filter: brightness(1.08); }
.pn-btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.pn-btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; }
.pn-btn:disabled { opacity: .5; cursor: default; }

.pn-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pn-badge.ok { background: rgba(34,197,94,.14); color: var(--ok); }
.pn-badge.bad { background: rgba(239,68,68,.14); color: var(--bad); }
.pn-badge.warn { background: rgba(245,158,11,.14); color: var(--warn); }
.pn-badge.dim { background: #1b1b28; color: var(--tx2); }

.pn-code { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 20px; letter-spacing: 3px; background: #101018; border: 1px dashed #3a3a55; border-radius: 12px; padding: 10px 16px; }
/* URLs and other long strings: same box, readable type (the tracked 20px style is for CODES). */
.pn-code.plain { font-size: 14px; letter-spacing: 0; font-weight: 600; word-break: break-all; }

.pn-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pn-table th { text-align: left; color: var(--tx2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; padding: 6px 8px; }
.pn-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.pn-table select, .pn-table input { padding: 5px 8px; font-size: 13px; }
.pn-table .revoked td { opacity: .45; }
.pn-scroll { overflow-x: auto; }
/* La capa de lo que no tiene vuelta atras: se distingue del resto ANTES de leerla. */
.pn-card.pn-danger { border-color: rgba(239, 68, 68, .38); background: linear-gradient(180deg, rgba(239,68,68,.05), transparent); }
.pn-card.pn-danger h2 { color: #fca5a5; }
/* Tablas largas (sesiones): alto acotado con barra PROPIA, y la cabecera pegada arriba — sin
   esto, un evento semanal con cientos de sesiones empuja el resto de la pagina fuera de vista
   y hay que hacer scroll de pagina entera para volver a los botones. */
.pn-scroll.tall { max-height: 58vh; overflow-y: auto; }
.pn-scroll.tall thead th { position: sticky; top: 0; z-index: 2; background: #0f0f17; }

.pn-links-editor .lrow { display: flex; gap: 8px; margin-bottom: 8px; }
.pn-links-editor .lrow input:first-child { max-width: 160px; }

.pn-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #1b1b28; border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; font-weight: 600; z-index: 999; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.pn-toast.bad { border-color: var(--bad); }

.pn-banner { border-radius: 14px; padding: 13px 16px; margin-bottom: 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pn-banner.bad { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); }

/* login */
.pn-login { max-width: 430px; margin: 8vh auto 0; }
/* Scrolls sideways INSIDE itself instead of pushing the page: five tabs with long labels
   (German "⚙️ Einstellungen") overflowed a 375px phone and scrolled the whole document. */
.pn-tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pn-tabs::-webkit-scrollbar { display: none; }
.pn-tabs > * { flex: 0 0 auto; }
.pn-tab { flex: 1; text-align: center; padding: 9px; border-radius: 11px; background: #101018; border: 1px solid var(--line); font-weight: 700; }
.pn-tab.on { background: linear-gradient(135deg, var(--pur), var(--or)); border-color: transparent; color: #fff; }

/* event picker */
.pn-events { display: flex; flex-direction: column; gap: 10px; }
.pn-event-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.pn-event-btn:hover { border-color: var(--pur); }
.pn-event-btn .sl { color: var(--tx2); font-weight: 400; font-size: 12.5px; }

/* split view: config column + sticky live preview of the public page */
.pn-shell.wide { max-width: 1720px; }
.pn-split { display: flex; gap: 18px; align-items: flex-start; }
.pn-main { flex: 0 1 700px; max-width: 700px; min-width: 0; }
.pn-pv { flex: 1; min-width: 400px; position: sticky; top: 12px; height: calc(100vh - 24px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pn-pv-head { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pn-pv-head .ttl { font-weight: 700; font-size: 13px; }
.pn-pv-scale { margin-right: auto; font-size: 11px; color: var(--tx2); background: #1b1b28; border-radius: 6px; padding: 1px 6px; }
.pn-pv-scale:empty { display: none; }
/* a logo size that follows the others (panel.js logoCard · deriveLogo) */
.pn-chip .pn-auto { font-size: 10px; opacity: .65; margin-left: 4px; font-weight: 600; }
/* A miniature of the REAL page (panel.js pvFitter): the iframe is drawn at the device width and scaled down. */
.pn-pv-body { flex: 1; background: #050508; position: relative; overflow: hidden; }
.pn-pv-body iframe { border: 0; width: 100%; height: 100%; background: var(--bg); position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; }
/* device widths — the logo card switches these so each format is judged in its own frame */
.pn-pv.mobile .pn-pv-body iframe { width: 390px; }
.pn-pv.tablet .pn-pv-body iframe { width: 820px; }
.pn-pv-tab { position: static; height: calc(100vh - 190px); min-height: 420px; margin-bottom: 16px; }

/* searchable session combobox — ONE behaviour for every picker (attachCombo in panel.js) */
.pn-combo { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
.pn-combo-list { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; background: #101018; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.pn-combo-list.up { top: auto; bottom: calc(100% + 4px); }
.pn-combo-empty { padding: 10px 12px; font-size: 12px; color: var(--tx2); }
.pn-combo-it { padding: 8px 12px; cursor: pointer; font-size: 13px; }
.pn-combo-it:hover { background: #1b1b28; }
/* keyboard highlight: the row ↑/↓ moved onto and Enter would pick */
.pn-combo-it.hl { background: #1b1b28; box-shadow: inset 3px 0 0 var(--pur); }
/* Las acciones de una fila (✎ 🗑), a la derecha del todo, tenues hasta pasar por encima (UI-PATTERNS §1.5). */
.pn-combo-it.has-acts { position: relative; padding-right: 60px; }
.pn-combo-acts { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }
.pn-combo-act { padding: 3px 6px; border-radius: 6px; opacity: 0.45; cursor: pointer; }
.pn-combo-act:hover, .pn-combo-it.hl .pn-combo-act { opacity: 1; }
.pn-combo-act:hover { background: rgba(255, 255, 255, 0.1); }
/* closed, the field READS as a button; the caret appears once it has focus */
.pn-combo-inp { cursor: pointer; }
.pn-combo-inp:focus { cursor: text; }
/* La flecha del desplegable: cerrado, el control tiene que LEERSE como un boton con lista
   detras y no como un campo de texto cualquiera. Solo la llevan los combobox de verdad
   (los `alwaysOpen`, que ya ensenan su lista, no la necesitan). */
.pn-combo.has-caret .pn-combo-inp { padding-right: 26px; }
.pn-combo-caret { position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  pointer-events: auto; cursor: pointer; color: var(--tx2); font-size: 12px; line-height: 1; }
.pn-combo.has-caret:hover .pn-combo-caret { color: var(--tx); }
/* popover flavour (a button opens a filter field + the list) */
/* `relative`, not `static`: the list must stay the offsetParent of its rows or
   attachCombo's scroll-into-view measures every offsetTop against the popover instead
   (visually identical, the highlight just scrolls to the wrong place). */
.pn-combo-new { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 4px 2px; font-size: 13px; }

/* choice chips (publish now / schedule, cover scope, logo alignment) */
.pn-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #101018; font-weight: 700; font-size: 12.5px; }
.pn-chip.on { background: linear-gradient(135deg, var(--pur), var(--or)); border-color: transparent; color: #fff; }

/* collapsible card header (editions) — the chevron is drawn with borders (▸/▾),
   discreet and muted, instead of an emoji glyph */
.pn-collhead { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font-weight: 700; font-size: 15px; padding: 0; }
.pn-collhead .chev { margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--tx2); border-bottom: 2px solid var(--tx2); transform: rotate(-45deg); transition: transform .15s; }
.pn-collhead.open .chev { transform: rotate(45deg); }

/* Interruptor chiquito: dice el ESTADO actual, no la accion. Vive debajo de los botones de
   publicar, donde se hace la pregunta que responde. */
/* Una NOTA al pie del formulario, no un boton del formulario: a tamano de boton competia
   con «Publicar ya», que es lo que se viene a pulsar. */
.pn-toggle-mini { padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line);
  background: #101018; color: var(--tx2); font-size: 8.5px; font-weight: 600; cursor: pointer;
  line-height: 1.6; letter-spacing: .2px; }
.pn-toggle-mini:hover { color: var(--tx); border-color: var(--pur); }
.pn-toggle-mini.on { color: var(--tx); border-color: rgba(124,92,252,.55); }

/* hero covers strip (items / YouTube / flyers) */
.pn-cstrip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pn-cov { position: relative; width: 92px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #101018; }
.pn-cov img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pn-cov .yt { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 10.5px; font-weight: 700; color: #fff; background: #7f1d1d; word-break: break-all; padding: 4px; text-align: center; }
.pn-cov .ops { display: flex; justify-content: space-between; padding: 2px 3px; background: #0a0a0f; }
.pn-cov .ops button { font-size: 11px; padding: 1px 4px; color: var(--tx2); }
.pn-cov .ops button:hover { color: var(--tx); }

/* logo preview chip (checker so transparent logos read) */
.pn-logochip { display: inline-flex; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(#1b1b28 0% 25%, #101018 0% 50%) 0 0 / 16px 16px; }
.pn-logochip img { max-height: 72px; max-width: 240px; display: block; }

/* 📥 one contribution from the external-filmmaker portal */
.pn-contrib { border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin-bottom: 8px; background: #101018; }
.pn-contrib .pn-hint { margin: 2px 0 0; word-break: break-all; }

/* 🖱 in-page right-click menu (the native one is missing inside the App's view) */
.pn-ctxmenu { position: fixed; z-index: 1400; min-width: 168px; background: #14141c; border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.pn-ctxit { display: block; width: 100%; text-align: left; padding: 7px 12px; border-radius: 7px; font-size: 13px; }
.pn-ctxit:hover { background: #1b1b28; }

/* 🖼 logo size slider (the global input rule would paint it as a text box) */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; border: 0; padding: 0; height: 22px; }
input[type=range]:focus { border: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: #1b1b28; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: linear-gradient(135deg, var(--pur), var(--or)); border: 0; cursor: pointer; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: #1b1b28; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--pur); border: 0; cursor: pointer; }

/* mini popover host (session picker on a button) */
.pn-pop { position: relative; display: inline-block; }

/* full-panel drag&drop overlay (pointer-events off: the document handles the drop) */
.pn-drop-ov { position: fixed; inset: 0; z-index: 1200; background: rgba(10,10,15,.82); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pn-drop-ov .in { border: 3px dashed var(--pur); border-radius: 22px; padding: 40px 56px; max-width: 84vw; font-size: 22px; font-weight: 800; text-align: center; line-height: 1.5; background: rgba(20,20,28,.75); }

/* floating drag&drop upload progress pill (a drop can land on any tab) */
.pn-dndpill { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1100; background: #1b1b28; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 280px; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.5); font-size: 13px; font-weight: 600; }
.pn-dndpill .bar { background: #101018; border-radius: 6px; height: 6px; margin-top: 6px; overflow: hidden; }
.pn-dndpill .bar .in { height: 100%; width: 0; background: linear-gradient(90deg, var(--pur), var(--or)); transition: width .2s; }

/* weekday chips (automatic sessions) — single letters; display order is per-locale
   (Monday-first for es/fr/de, Sunday-first for en), values stay 0 = Sunday */
.pn-chip.day { width: 30px; padding: 5px 0; text-align: center; }

/* sessions table: keep checkboxes their natural size (inputs default to 100%) */
.pn-table input[type=checkbox] { width: auto; }
/* a disabled checkbox must LOOK unavailable, not just refuse clicks (🌐 outside an edition) */
.pn-table input[type=checkbox]:disabled { opacity: .35; cursor: not-allowed; }
/* 🌐 global category: its date only sorts the row — the page hangs the session under
   every day of the edition — so the date reads as secondary information */
/* the checkbox columns never wrap their emoji header onto two lines */
.pn-table th[title] { white-space: nowrap; }

/* tab notification dots (Equipo: pending review · Ajustes: Drive trouble) */
.pn-tab { position: relative; }
.pn-navdot { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; padding: 0 4px; box-shadow: 0 0 0 2px var(--bg); }
.pn-navdot.warn { background: var(--warn); color: #14141c; }

/* tiny autosave state indicator (Portada card header) */
.pn-autosave { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--tx2); white-space: nowrap; }
.pn-autosave.err { color: var(--warn); }
.pn-autosave button { font-size: 11.5px; font-weight: 600; color: var(--pur); text-decoration: underline; padding: 0; }

/* logo fine-position nudger (Diseño): checker box so transparent logos read */
.pn-nudge { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pn-nudgebox { position: relative; width: 170px; height: 96px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#1b1b28 0% 25%, #101018 0% 50%) 0 0 / 16px 16px; }
.pn-nudgebox img { position: absolute; left: 50%; top: 50%; max-width: 80%; max-height: 72%; transform: translate(-50%, -50%); }
.pn-nudgepad { display: grid; grid-template-columns: repeat(3, 30px); gap: 4px; }
.pn-nudgepad .pn-btn { padding: 3px 0; text-align: center; }

/* 🔗 links & blocks (Diseño): one card, six sections. The Premium ones render dimmed
   with a 💎 next to their heading — their controls are disabled in JS, so nothing they
   hold can travel below tier 2. */
.pn-bl-sec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.pn-bl-sec.first { border-top: 0; margin-top: 4px; padding-top: 0; }
.pn-bl-sec.locked { opacity: .5; }
.pn-bl-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--tx2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.pn-bl-lockbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #101018; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: var(--tx2); }
.pn-bl-lockbar .tx { flex: 1; min-width: 200px; }

/* one editable row (link / network / date) — reorder arrows, fields, remove */
.pn-blrow { display: flex; gap: 8px; align-items: flex-start; background: #101018; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.pn-blrow .ord { display: flex; flex-direction: column; gap: 2px; flex: none; }
.pn-blrow .ord button { color: var(--tx2); font-size: 10px; line-height: 1; padding: 3px 4px; border-radius: 6px; }
.pn-blrow .ord button:hover:not(:disabled) { color: var(--tx); background: #1b1b28; }
.pn-blrow .ord button:disabled { opacity: .25; cursor: default; }
.pn-blrow .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pn-blrow .ln { display: flex; gap: 6px; align-items: center; }
.pn-blrow input { padding: 6px 9px; font-size: 13px; }
/* font-weight so the lettered marks (Facebook 'f', X) read as marks, not stray letters */
.pn-blrow .ico { flex: none; width: 38px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: #14141c; font-size: 16px; font-weight: 800; line-height: 1; }
.pn-blrow .ico:hover:not(:disabled) { border-color: var(--pur); }
.pn-blrow .ico:disabled { opacity: .5; cursor: default; }
.pn-blrow .x { flex: none; color: var(--tx2); padding: 4px 6px; font-size: 13px; }
.pn-blrow .x:hover:not(:disabled) { color: var(--bad); }
/* clicks of ONE link in the last 30 days (the all-time total lives in the tooltip) */
.pn-clicks { flex: none; font-size: 11.5px; font-weight: 600; color: var(--tx2); background: #1b1b28; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
/* the network picker is a combobox, but a narrow one */
.pn-combo.sm { flex: 0 1 190px; min-width: 150px; max-width: 190px; }

/* icon palette of a link row (emoji shortlist + the known networks + free emoji) */
.pn-iconpop { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: 264px; max-width: 78vw; background: #101018; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.55); padding: 8px; }
.pn-iconpop .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pn-iconpop .ic { height: 32px; border-radius: 8px; border: 1px solid transparent; font-size: 16px; font-weight: 800; line-height: 1; }
.pn-iconpop .ic:hover { background: #1b1b28; }
.pn-iconpop .ic.on { background: #1b1b28; border-color: var(--pur); }
/* The networks' own marks (inline SVG, one colour) — same drawing as the public page. */
.pn-soc-ic { width: 17px; height: 17px; display: block; margin: 0 auto; }
.pn-blnet-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #14141c; border: 1px solid var(--line); color: var(--tx); }
.pn-blnet-ic:empty { display: none; }
.pn-iconpop input { margin-top: 8px; padding: 6px 9px; font-size: 13px; }

/* accent colour + typeface chips (blocks → style); each chip previews its own face */
input[type=color] { width: 46px; height: 32px; flex: none; padding: 2px; border-radius: 9px; background: #101018; cursor: pointer; }
.pn-fontchip { font-size: 14px; }

/* 📱 QR of the public page (Ajustes) — white plate so a phone reads it off the screen */
.pn-qr { flex: none; background: #fff; border-radius: 12px; padding: 8px; line-height: 0; }
.pn-qr canvas { display: block; width: 180px; height: 180px; }

/* styled confirm/prompt modals (replace the browser-native ones) */
.pn-modal-ov { position: fixed; inset: 0; z-index: 1300; background: rgba(4,4,8,.9); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.pn-modal { width: 440px; max-width: 96vw; margin: auto; }
.pn-modal p { margin: 0; white-space: pre-line; }
.pn-btn.danger-solid { background: var(--bad); border-color: transparent; color: #fff; }
.pn-btn.danger-solid:hover { filter: brightness(1.1); border-color: transparent; color: #fff; }

/* ── Upload card: three doors, one destination ─────────────────────────────
   The session picker and the pending/now/scheduled chips live ABOVE these tabs, so
   whichever door content comes through it lands in the same place. */
.pn-subtabs { display: flex; gap: 6px; margin: 12px 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pn-subtabs::-webkit-scrollbar { display: none; }
.pn-subtab {
  flex: 0 0 auto; padding: 8px 13px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--tx2); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.pn-subtab:hover { color: var(--tx); }
.pn-subtab.on { color: var(--tx); border-bottom-color: var(--acc); }

/* A visible target for the drag. The whole window still accepts drops. */
.pn-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 16px; border: 1px dashed var(--line2); border-radius: 14px;
  background: rgba(var(--acc-w), .04); text-align: center;
}
.pn-drop-ico { font-size: 26px; line-height: 1; opacity: .8; }
.pn-drop-t { color: var(--tx2); font-size: 13px; }

/* Text field with its own clear button */
.pn-inclear { position: relative; flex: 1; min-width: 220px; display: flex; }
.pn-inclear input { flex: 1; min-width: 0; padding-right: 30px; }
.pn-inclear-x {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  color: var(--tx2); font-size: 12px; line-height: 1; opacity: .6;
}
.pn-inclear-x:hover { opacity: 1; background: rgba(255, 255, 255, .09); }

/* One folder of an inspected link + its preview layer */
.pn-impfolder { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.pn-impfolder-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-prev { margin-top: 8px; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.pn-prev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pn-prev-cell {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: #101018; display: flex; align-items: center; justify-content: center;
}
.pn-prev-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn-prev-cell.noimg::before { content: '🖼'; font-size: 20px; opacity: .35; }
.pn-prev-vid {
  position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 9px;
  display: flex; align-items: center; justify-content: center;
}
.pn-prev-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 5px 3px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  color: #fff; font-size: 9.5px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Checkbox + label as one clickable unit. A state that is ON or OFF has to LOOK like a
   checkbox: as a highlighted chip nobody could tell "MIX is on" from "press to turn on". */
.pn-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; color: var(--tx2); user-select: none; }
.pn-check input { cursor: pointer; margin: 0; }
.pn-check:hover { color: var(--tx); }

/* A YouTube cover shows its real poster. The old cell was a dark-red rectangle with the raw
   video id printed across it — it read as an error state, not as a cover. */
.pn-cov .ytimg { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pn-cov .ytplay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
/* Fallback only: a video that no longer exists. Quiet, not alarming. */
.pn-cov .yt { background: #1b1b26; color: var(--tx2); }

/* ── Mock of a chat link preview ──────────────────────────────────────────
   Nobody should have to send themselves a WhatsApp to find out what their link looks
   like. Proportions follow the real bubble: square image, title, one grey line, host. */
.pn-bubble {
  display: flex; gap: 10px; align-items: stretch;
  max-width: 420px; margin: 10px 0;
  padding: 8px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
}
.pn-bubble-img {
  width: 72px; height: 72px; flex: 0 0 auto;
  border-radius: 8px; object-fit: cover; background: #0a0a0f; display: block;
}
.pn-bubble-tx { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.pn-bubble-t {
  font-size: 13px; font-weight: 700; color: var(--tx);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pn-bubble-d {
  font-size: 12px; color: var(--tx2); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pn-bubble-u { font-size: 11px; color: var(--tx2); opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A cover tab carries its own on/off — the tab picks what you EDIT, the box picks what the
   page SHOWS, and they are different questions. */
.pn-subtab input[type=checkbox] { margin: 0 6px 0 0; vertical-align: -1px; cursor: pointer; }
/* Crop editor for one cover */
.pn-frame {
  margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(var(--acc-w), .05);
  display: flex; flex-direction: column; gap: 6px;
}

/* ── 🖼️ La cola de la App, a la vista (docs/GALLERY.md §5r) ─────────────────────────────────
   Bolita por evento en la lista, total encima y punto en la pestaña Contenido; dentro, lo de cada
   fecha vive en el Contenido por apartados (§5s: «Subiendo ahora» y «Ahora mismo»). Gira mientras sube; ⏳ ámbar si todo
   espera (Drive pidió calma, sin red); roja si algo está PARADO por un fallo mayor. El giro no se
   apaga con «reducir movimiento»: es información, no adorno. */
@keyframes pnActSpin { to { transform: rotate(360deg); } }
.pn-event-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.pn-act-slot:empty { display: none; }
.pn-act { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px;
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(135deg, #c026d3, #8b5cf6); color: #fff; }
.pn-act .spin, .pn-navdot.act .spin {
  display: inline-block; width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: pnActSpin .8s linear infinite; flex: none; }
.pn-act .ico { font-style: normal; font-size: 11px; line-height: 1; }
.pn-act.wait { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1c1305; }
.pn-act.paused { background: #262636; color: var(--tx2); }
.pn-act.blocked { background: linear-gradient(135deg, #f97316, #ef4444); }
.pn-act-total { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; color: var(--tx2); font-size: 13px; }
.pn-navdot.act { display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(135deg, #c026d3, #8b5cf6); }
.pn-navdot.act .spin { width: 9px; height: 9px; border-width: 1.5px; }
.pn-navdot.act.wait { background: var(--warn); color: #14141c; }
.pn-navdot.act.paused { background: #3a3a4e; }
.pn-navdot.act.blocked { background: var(--bad); }

/* ══ 📤 CONTENIDO POR APARTADOS (docs/GALLERY.md §5s) ═══════════════════════════════════════
   Izquierda, DÓNDE estás (las fechas); derecha, QUÉ hay ahí (apartados). Dos niveles de
   selección que NO se pintan igual: la pestaña de arriba lleva el degradado; la fecha elegida,
   un contorno lila (lista y bloques del móvil) — si no, las dos filas se leían como una. */
.pn-split.cb-split .pn-main { flex: 0 1 1000px; max-width: 1000px; }
.pn-shell:not(.wide) .cb-wrap { margin: 0 -2px; }
.cb-grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.cb-side { position: sticky; top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  max-height: calc(100vh - 24px); display: flex; flex-direction: column; min-width: 0; }
.cb-side-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; }
.cb-side-h b { flex: 1; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--tx2); }
.cb-side-x { display: none !important; }
.cb-q { margin: 0 0 8px; }
.cb-q input { padding: 7px 10px; font-size: 13px; }
.cb-list { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; min-height: 60px; }
.cb-add { margin-top: 10px; width: 100%; text-align: center; padding: 9px; border-radius: 11px; border: 1px dashed #3a3a55; color: var(--pur); font-weight: 700; font-size: 13px; }
.cb-add:hover { border-color: var(--pur); }
.cb-year { font-size: 13px; font-weight: 800; color: var(--tx); margin: 12px 6px 2px; }
.cb-mrow { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px; border-radius: 10px; font-size: 12.5px; font-weight: 800;
  color: var(--tx2); text-transform: uppercase; letter-spacing: .4px; }
.cb-mrow:hover { background: #1b1b28; color: var(--tx); }
.cb-mrow .car { width: 12px; transition: transform .15s; }
.cb-mrow.open .car { transform: rotate(90deg); }
.cb-mrow small { margin-left: auto; font-size: 11.5px; font-weight: 600; text-transform: none; letter-spacing: 0; white-space: nowrap; flex: none; }
.cb-mrow .cb-spin, .cb-mrow .cb-dot { margin-left: 4px; }
.cb-row { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.cb-row:hover { background: #1b1b28; }
.cb-row.on { background: rgba(168, 85, 247, .14); box-shadow: 0 0 0 1.5px var(--pur) inset; }
.cb-row.child { padding-left: 22px; }
.cb-row.off .nm { color: var(--tx2); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.cb-row.virt { border: 1px dashed #3a3a55; }
.cb-row.auto { color: var(--tx2); border: 1px dashed #3a3a55; margin: 2px 0; }
.cb-row .d { width: 34px; flex: none; text-align: center; line-height: 1.05; }
.cb-row .d b { display: block; font-size: 16px; font-weight: 800; }
.cb-row .d small { font-size: 10.5px; color: var(--tx2); font-weight: 600; text-transform: uppercase; }
.cb-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-row .n { font-size: 11.5px; color: var(--tx2); font-weight: 600; flex: none; }
.cb-dayh { display: flex; align-items: baseline; gap: 6px; padding: 8px 8px 2px; font-size: 12px; color: var(--tx2); font-weight: 700; }
.cb-glob { font-size: 11px; font-weight: 800; color: var(--tx2); text-transform: uppercase; letter-spacing: .5px; margin: 8px 6px 2px; }
.cb-noq { padding: 14px 8px; font-size: 13px; color: var(--tx2); text-align: center; }
/* Congreso: cada EDICIÓN es una caja con borde; plegada, sólo su cabecera (un desplegable claro) */
.cb-edbox { border: 1px solid #2e2e46; border-radius: 12px; padding: 4px; margin: 10px 0; background: rgba(255,255,255,.015); }
.cb-edbox.folded { background: transparent; border-color: transparent; padding: 0; }
.cb-ed { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; background: #101018;
  border: 1px solid #34344c; font-size: 12.5px; font-weight: 800; color: var(--tx); }
.cb-ed:hover { border-color: var(--pur); }
.cb-ed .car { color: var(--tx2); transition: transform .15s; }
.cb-ed.folded .car { transform: rotate(-90deg); }
.cb-ed .en { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-ed small { margin-left: auto; color: var(--tx2); font-weight: 600; }
.cb-spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #e9a1f9;
  animation: cbspin .8s linear infinite; flex: none; vertical-align: middle; }
.cb-spin.sm { width: 10px; height: 10px; border-width: 1.5px; }
@keyframes cbspin { to { transform: rotate(360deg); } }
.cb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.cb-pdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c084fc; opacity: .8; flex: none; }
.cb-ico { flex: none; font-size: 12px; line-height: 1; }
.cb-ico.bad { color: #fff; background: var(--bad); border-radius: 50%; width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10px; }
.cb-ico.dim { opacity: .6; }
/* «Ahora mismo»: lo que se mueve en TODO el evento (no son próximos eventos) */
.cb-status { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border-radius: 12px; background: #101018; border: 1px solid var(--line); font-size: 12.5px; margin-bottom: 10px; }
.cb-status .hd { font-size: 11px; font-weight: 800; color: var(--tx2); text-transform: uppercase; letter-spacing: .5px; }
.cb-status .ln { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.cb-status .ln:hover { color: #fff; }
.cb-status .ln .tx { flex: 1; min-width: 0; line-height: 1.35; font-weight: 600; }
.cb-status .ln small { display: block; color: var(--tx2); font-size: 11.5px; font-weight: 400; }
.cb-status .ln .cb-spin, .cb-status .ln .cb-dot, .cb-status .ln .cb-ico { margin-top: 3px; }
.cb-status .more { color: var(--tx2); font-size: 11.5px; padding-left: 20px; }

.cb-main { min-width: 0; }
.cb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cb-head .tt { flex: 1 1 260px; min-width: 0; }
.cb-head .t { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
/* 📅 the date of the title is a button: press it to move the date, with everything in it (2026-10-04) */
.cb-head .cb-tdate { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 6px; margin: -2px -6px; border-radius: 9px; color: inherit; font: inherit; font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-align: left; cursor: pointer; }
.cb-head .cb-tdate .ed { font-size: .62em; opacity: .45; transition: opacity .15s; }
.cb-head .cb-tdate:hover { background: rgba(255,255,255,.06); }
.cb-head .cb-tdate:hover .ed, .cb-head .cb-tdate:focus-visible .ed { opacity: 1; }
.cb-hbtns { display: inline-flex; gap: 8px; align-items: center; }
.cb-hint { font-size: 12.5px; color: var(--tx2); }
.cb-hint a { cursor: pointer; }
.cb-hint.bad { color: #fca5a5; } .cb-hint.warn { color: #fcd34d; }
.cb-hint2 { font-size: 12px; color: var(--tx2); margin-left: 8px; }
.cb-sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.cb-sec > .cb-lot:last-child, .cb-sec > .cb-lot:last-child > .cb-lot-h:last-child { border-radius: 0 0 16px 16px; }
.cb-sec-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.cb-sec-h .ttl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--tx2); flex: 1; }
.cb-sec-h .ttl b { color: var(--tx); margin-left: 6px; }
.cb-sec-h .ttl em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; }
.cb-link { cursor: pointer; font-size: 13px; font-weight: 700; }
.cb-lot { border-top: 1px solid var(--line); }
.cb-lot-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.cb-lot-h:hover { background: #17171f; }
.cb-lot-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.cb-lot-ic.hold { background: rgba(245,158,11,.14); } .cb-lot-ic.at { background: rgba(168,85,247,.16); } .cb-lot-ic.up { background: rgba(233,161,249,.14); }
.cb-lot-tx { flex: 1; min-width: 0; }
.cb-lot-tx .a { font-weight: 800; font-size: 14px; }
.cb-car { color: var(--tx2); width: 16px; text-align: center; flex: none; transition: transform .15s; }
.cb-lot.open > .cb-lot-h .cb-car { transform: rotate(90deg); }
.cb-lot-body, .cb-webbody { padding: 0 16px 14px 62px; }
.cb-webbody { padding-left: 16px; }
.cb-bar { height: 5px; border-radius: 3px; background: #26263a; overflow: hidden; margin-top: 7px; max-width: 360px; }
.cb-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--pur), var(--or)); transition: width .5s; }
.cb-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; color: var(--tx2); }
.cb-tools b { color: var(--tx); }
.cb-tools .sp { flex: 1; }
/* Las portadas que se hacen SOLAS (§5t): en «Ahora mismo», una barra y N/Total. Sin botón ni texto. */
.cb-status .ln.fx { cursor: default; align-items: center; }
.cb-status .ln.fx .cb-ico { margin-top: 0; }
.cb-status .ln.fx .cb-bar { display: block; margin-top: 5px; max-width: none; }
.cb-status .ln.fx .nn { flex: none; font-size: 12px; font-weight: 700; color: var(--tx2); font-variant-numeric: tabular-nums; }
.cb-grid-it { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.cb-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; padding: 0 16px 14px; }
/* La mano de siempre, no una lupa (campo 2026-10-02): tocar una miniatura es una acción más (abrirla, elegirla). */
.cb-it { position: relative; aspect-ratio: 1; border-radius: 9px; cursor: pointer; overflow: hidden; background: #1b1b28;
  outline: 2px solid transparent; outline-offset: -2px; }
.cb-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-it.noimg::after { content: '🎞️'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: .45; }
.cb-it.dim { opacity: .55; }
.cb-it.hid img { opacity: .45; filter: grayscale(.6); }
.cb-it .v { position: absolute; right: 5px; bottom: 3px; font-size: 11px; color: #fff; text-shadow: 0 1px 5px #000; }
.cb-it .h { position: absolute; left: 5px; top: 4px; font-size: 11px; }
/* la portada, con un punto en la esquina: verde = animada · ámbar = sólo la fija · rojo = sin WebP */
.cb-it .ck { position: absolute; left: 5px; bottom: 5px; width: 18px; height: 18px; border-radius: 5px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.4);
  display: none; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.picking .cb-it { cursor: pointer; } .picking .cb-it .ck { display: flex; }
.cb-it.sel { outline-color: var(--pur); } .cb-it.sel .ck { background: var(--pur); border-color: var(--pur); }
.cb-it.add { background: #101018; border: 1px dashed #3a3a55; display: flex; align-items: center; justify-content: center; color: var(--pur); font-size: 22px; cursor: pointer; }
.cb-it.add:hover { border-color: var(--pur); }
.cb-empty { text-align: center; padding: 40px 16px 34px; }
.cb-empty .big { font-size: 34px; }
.cb-empty .t { font-weight: 800; font-size: 15px; margin-top: 6px; }
.cb-loading { padding: 26px; text-align: center; color: var(--tx2); }
.cb-morew { position: relative; flex: none; }
.cb-more { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #1b1b28; font-size: 15px; line-height: 1; }
.cb-more:hover { border-color: var(--pur); }
.cb-menu { position: absolute; right: 0; top: 34px; z-index: 30; min-width: 220px; background: #16161f; border: 1px solid #34344c; border-radius: 12px; padding: 5px;
  box-shadow: 0 12px 30px rgba(0,0,0,.55); text-align: left; }
.cb-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cb-menu button:hover { background: #262640; }
.cb-menu button.danger { color: #fca5a5; }
.cb-menu .mob-only { display: none; }
.cb-files { margin: 0 16px 12px 62px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; }
.cb-file { display: grid; grid-template-columns: 22px minmax(0, 1fr) 44px 30px; gap: 6px; align-items: center; padding: 4px 10px; border-top: 1px solid rgba(255,255,255,.04); }
.cb-file:first-child { border-top: 0; }
.cb-file.hd { color: var(--tx2); font-size: 11px; position: sticky; top: 0; background: var(--card); }
.cb-file .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-file .s { text-align: center; color: var(--tx2); }
.cb-file.ok .s { color: #86efac; } .cb-file.bad .s { color: #fca5a5; } .cb-file.run .n { color: #fff; }

/* hojas (nueva fecha, ajustes, añadir, ¿cuándo?) */
body.cb-noscroll { overflow: hidden; }
.cb-ov { position: fixed; inset: 0; background: rgba(4,4,8,.82); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.cb-sheet { width: 560px; max-width: 100%; max-height: var(--dk-dialog-max-h, 90vh); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.cb-sheet.sm { width: 440px; }
.cb-sheet.wide { width: 680px; }
/* 📥 IMPORTAR EVENTOS (docs/GALLERY.md §5y) */
.cb-add.ie { margin-top: 6px; border-style: solid; border-color: var(--line); color: var(--tx); font-weight: 600; }
.cb-add.ie:hover { border-color: var(--pur); }
.cb-sheet.ie { width: 820px; }
.ie-src .pn-row { gap: 6px; }
.ie-src .pn-inclear { flex: 1; min-width: 220px; }
.ie-status { margin: 10px 0 6px; min-height: 1em; }
.ie-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.ie-sum { margin: 0 0 0 auto !important; }
.ie-list { max-height: min(46vh, 460px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #101018; }
.ie-row { display: grid; grid-template-columns: 22px 150px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid #1c1c2a; cursor: pointer; }
.ie-row:last-child { border-bottom: 0; }
.ie-row:hover { background: #15151f; }
.ie-row.on { background: rgba(168, 85, 247, .07); }
.ie-row.done, .ie-row.run { opacity: .45; }
.ie-row.done.on, .ie-row.run.on { opacity: .75; }
.ie-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--pur); margin: 0; }
.ie-row .pn-date.ie-date { width: 100%; min-width: 0; padding: 5px 8px; font-size: 12.5px; }
.ie-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ie-name b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-name small { color: var(--tx2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-cnt { color: var(--tx2); font-size: 11.5px; white-space: nowrap; }
.ie-badge { font-size: 11.5px; color: var(--tx2); white-space: nowrap; }
.ie-row.done .ie-badge { color: var(--ok); }
.ie-opts { margin-top: 10px; }
/* the import's choices + the Import button: a dock pinned to the bottom of the sheet, always in sight */
.cb-sheet.ie { padding-bottom: 0; }
.ie-dock { position: sticky; bottom: 0; z-index: 3; margin: 10px -20px 0; padding: 4px 20px 16px; background: var(--card);
  border-top: 1px solid var(--line); box-shadow: 0 -14px 26px rgba(0, 0, 0, .45); }
.ie-dock .cb-foot { margin-top: 12px; }
.ie-dock .ie-opts:empty + .cb-foot { margin-top: 12px; }
/* the import's progress — dialog and Content strip (panel.js ieMount / iePaintView) */
.ie-prog { background: #101018; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; }
.ie-prog.strip { margin: 0 0 12px; padding: 8px 12px; }   /* arriba, a lo ancho, bajo las pestañas del evento */
.ie-prog-h { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.ie-prog-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ie-prog-t > span { color: var(--tx2); font-size: 11.5px; }
.ie-prog.strip .ie-prog-t b { font-size: 12.5px; }
.ie-prog-pct { font-size: 12px; font-weight: 700; color: var(--tx); font-variant-numeric: tabular-nums; }
.ie-chev { width: 22px; height: 22px; border-radius: 6px; color: var(--tx2); font-size: 12px; flex: none; }
.ie-chev:hover { background: #1b1b28; color: var(--tx); }
.ie-chev.sm { width: auto; height: auto; font-size: 10px; }
.ie-spin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(168, 85, 247, .25); border-top-color: var(--pur); vertical-align: -1px; animation: ieSpin .8s linear infinite; }
@keyframes ieSpin { to { transform: rotate(360deg); } }
/* the bar: gradient, a SHIMMER sweeping along what is done, and a glowing TIP where it is going */
.ie-prog-bar { position: relative; height: 8px; border-radius: 8px; background: #1b1b28; margin: 8px 0; }
.ie-prog-bar .in { position: relative; height: 100%; border-radius: 8px; min-width: 6px; background: linear-gradient(90deg, var(--pur), var(--or)); transition: width .5s linear; overflow: visible; }
.ie-prog-bar .in::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 45%, transparent 70%) no-repeat; background-size: 220px 100%; animation: ieSheen 2.2s linear infinite; mix-blend-mode: screen; }
.ie-prog-bar .in::after { content: ""; position: absolute; right: -7px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 214, 160, .95) 22%, rgba(255, 123, 0, .55) 45%, rgba(255, 123, 0, 0) 72%); filter: blur(.5px); animation: ieTip 1.4s ease-in-out infinite; }
@keyframes ieSheen { from { background-position: -220px 0; } to { background-position: calc(100% + 220px) 0; } }
@keyframes ieTip { 0%, 100% { opacity: .75; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ie-prog-bar .in::before { animation: none; opacity: 0; } }
.ie-prog-bar.paused .in { background: #4b4b66; }
.ie-prog-bar.paused .in::before, .ie-prog-bar.paused .in::after, .ie-prog-bar.done .in::before, .ie-prog-bar.done .in::after { display: none; }
.ie-prog-bar.disc { height: 4px; margin: 6px 0 0; }
.ie-prog-now { font-size: 11.5px; color: var(--tx2); margin: -2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-file { color: var(--tx); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; }
.ie-prog .pn-row { gap: 8px; align-items: center; }
.ie-prog .pn-hint { margin: 0; }
.ie-tasks { margin-top: 8px; border-top: 1px solid #1c1c2a; padding-top: 6px; max-height: 50vh; overflow-y: auto; }
.ie-task { padding: 5px 2px; border-bottom: 1px solid #16161f; }
.ie-task-h { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.ie-task-h .b { width: 14px; text-align: center; }
.ie-task-h .lbl { flex: 1; min-width: 0; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-task-h .n { color: var(--tx2); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ie-task-bar { height: 4px; border-radius: 4px; background: #1b1b28; margin: 4px 0 0 20px; overflow: hidden; }
.ie-task-bar .in { height: 100%; background: linear-gradient(90deg, var(--pur), var(--or)); transition: width .5s linear; }
.ie-task.done .ie-task-bar .in { background: var(--ok); }
.ie-task.error .ie-task-bar .in { background: var(--bad); }
.ie-task.paused .ie-task-bar .in { background: #4b4b66; }
.ie-task-d { margin: 6px 0 2px 20px; }
.ie-task-d .err { color: var(--warn); }
.ie-file-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 11px; }
.ie-task-bar.file { margin-left: 0; height: 3px; }
.cb-imp:empty { display: none; }
@media (max-width: 700px) {
  .ie-row { grid-template-columns: 22px 1fr auto; }
  .ie-row .ie-name { grid-column: 2 / 4; }
  .ie-row .ie-cnt, .ie-row .ie-badge { grid-column: 2 / 4; }
}
.cb-sheet h3 { margin: 0 0 4px; font-size: 17px; }
.cb-qrow { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin-top: 14px; font-size: 13.5px; }
.cb-qrow > .lb { color: var(--tx2); font-weight: 600; }
.cb-qrow input { max-width: 280px; }
.cb-qrow .pn-combo { max-width: 280px; }
.cb-qrow .pn-combo input { max-width: none; }
.cb-seg { display: inline-flex; flex-wrap: wrap; background: #101018; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.cb-seg button { padding: 6px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--tx2); }
.cb-seg button.on { background: #1f1f2e; color: var(--tx); box-shadow: 0 0 0 1px #34344c inset; }
.cb-sugg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cb-preview { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: #101018; border: 1px solid var(--line); font-size: 13.5px; }
.cb-preview.exists { border-color: rgba(245,158,11,.45); }
.cb-tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cb-tog:first-of-type { margin-top: 12px; }
.cb-tog small { display: block; color: var(--tx2); font-size: 12px; font-weight: 400; margin-top: 2px; }
.cb-sw { width: 38px; height: 22px; border-radius: 999px; background: #26263a; position: relative; flex: none; }
.cb-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.cb-sw.on { background: var(--pur); } .cb-sw.on::after { left: 19px; }
.cb-sw:disabled { opacity: .35; cursor: not-allowed; }
.cb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.cb-foot .sp { flex: 1; }
.cb-addbody { margin-top: 16px; }
.cb-drop { cursor: pointer; }
.cb-pickcombo { margin-top: 12px; }
.cb-pickcombo .pn-combo-list { position: static; max-height: 320px; }

/* el visor */
.cb-viewer { position: fixed; inset: 0; background: #050508; z-index: 1150; display: flex; flex-direction: column; }
.cb-vtop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.cb-vtop .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-vstage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.cb-vmedia { position: relative; max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.cb-vmedia img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 6px; display: block; }
.cb-vmedia iframe { width: min(88vw, 1280px); aspect-ratio: 16 / 9; max-height: calc(100vh - 130px); border: 0; border-radius: 6px; background: #000; }
.cb-vmedia iframe.vert { width: auto; height: calc(100vh - 130px); aspect-ratio: 9 / 16; }
.cb-vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.7); color: #fff; font-size: 24px; padding-left: 4px; }
.cb-vplay:hover { background: var(--pur); border-color: var(--pur); }
.cb-vnote { position: absolute; left: 0; right: 0; bottom: -26px; text-align: center; font-size: 12px; color: var(--tx2); }
.cb-varrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 22px; color: #fff; }
.cb-varrow:hover { background: rgba(255,255,255,.16); }
.cb-varrow.prev { left: 12px; } .cb-varrow.next { right: 12px; }
.cb-vbot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.cb-vbot .pn-hint { margin: 0; flex: 1; }
.cb-vacts { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* el tipo de evento */
.cb-kind { position: relative; display: inline-flex; vertical-align: middle; margin-left: 10px; }
.cb-kind > button { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: #1b1b28; font-size: 12.5px; font-weight: 700; }
.cb-kind > button:not(:disabled):hover { border-color: var(--pur); }
.cb-kind > button:disabled { cursor: default; opacity: .9; }
.cb-kind-pop { position: absolute; left: 0; top: 34px; z-index: 40; width: 360px; max-width: 86vw; background: #16161f; border: 1px solid #34344c; border-radius: 14px;
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.55); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.cb-kind-pop button, .cb-kopt { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px; border-radius: 10px; }
.cb-kind-pop button:hover, .cb-kopt:hover { background: #262640; }
.cb-kind-pop button.on, .cb-kopt.on { background: rgba(168,85,247,.14); box-shadow: 0 0 0 1.5px var(--pur) inset; }
.cb-kind-pop .i, .cb-kopt .i { font-size: 20px; line-height: 1.2; }
.cb-kind-pop b, .cb-kopt b { display: block; font-size: 14px; }
.cb-kind-pop small, .cb-kopt small { color: var(--tx2); font-size: 12.5px; }
.cb-kind-pop .ft { padding: 6px 10px 4px; color: var(--tx2); font-size: 12px; }
.cb-kopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cb-kopt { border: 1px solid var(--line); }

/* móvil: bloques con las últimas fechas; la lista se abre a pantalla completa */
.cb-mob { display: none; }
.cb-md { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 9px; border-radius: 12px; background: #101018;
  border: 1px solid var(--line); text-align: left; position: relative; }
.cb-md b { font-size: 18px; font-weight: 800; line-height: 1.05; }
.cb-md .w { font-size: 11px; color: var(--tx2); font-weight: 700; text-transform: uppercase; }
.cb-md .nm { font-size: 12.5px; font-weight: 700; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.cb-md.on { background: rgba(168, 85, 247, .16); border-color: var(--pur); box-shadow: 0 0 0 1px var(--pur) inset; }
.cb-md.on b { color: #e9d5ff; }
.cb-md.on .w { color: #d8b4fe; }
.cb-md .st { position: absolute; top: 8px; right: 8px; }
.cb-md.more { align-items: center; justify-content: center; text-align: center; border-style: dashed; color: var(--pur); }
.cb-md.more b { font-size: 17px; }
.cb-md.more .w { color: var(--tx2); text-transform: none; font-weight: 600; font-size: 11.5px; }
@media (max-width: 760px) {
  .cb-grid { grid-template-columns: 1fr; }
  .cb-side { display: none; }
  body .cb-mob { display: grid; gap: 8px; margin-bottom: 12px; }
  body.cb-mob-list .cb-side { display: flex; position: fixed; inset: 0; z-index: 1050; max-height: none; border-radius: 0; border: 0; padding: 14px; }
  body.cb-mob-list { overflow: hidden; }
  .cb-side-x { display: inline-flex !important; }
  .cb-head .t { font-size: 17px; }
  .cb-hbtns { flex: 1; } .cb-hbtns .pn-btn.pri { flex: 1; }
  .cb-lot-h { padding: 12px; gap: 10px; }
  .cb-lot-body { padding: 0 12px 12px; }
  .cb-files { margin: 0 12px 12px; }
  .cb-grid-it { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .cb-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 12px 12px; }
  .cb-strip .cb-it:nth-child(n+5) { display: none; }
  .cb-menu { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; min-width: 0; border-radius: 16px; padding: 8px; z-index: 1200;
    box-shadow: 0 0 0 100vmax rgba(4,4,8,.6), 0 12px 30px rgba(0,0,0,.55); }
  .cb-menu button { padding: 13px 12px; font-size: 15px; white-space: normal; }
  .cb-menu button.mob-only { display: block; text-align: center; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-weight: 800; color: var(--tx2); }
  .cb-ov { align-items: flex-end; padding: 0; }
  .cb-sheet { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .cb-qrow { grid-template-columns: 1fr; gap: 6px; }
  .cb-seg button { flex: 1 1 auto; }
  .cb-kopts { grid-template-columns: 1fr; }
  .cb-vstage { padding: 0; }
  .cb-varrow { display: none; }
  .cb-vmedia img, .cb-vmedia iframe { border-radius: 0; }
}

/* «Hay una versión nueva del panel · Recargar» (la página llevaba abierta desde antes de subirlo) */
.pn-newver { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1400; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px; border-radius: 12px; background: #16161f; border: 1px solid var(--pur); box-shadow: 0 12px 30px rgba(0,0,0,.55);
  font-size: 13px; font-weight: 600; max-width: calc(100vw - 32px); }
.cb-dropnote:empty { display: none; }
.cb-dropnote { margin-top: 14px; }

/* ── El calendario de la casa (pnDateField / pnDateTimeField) — no el blanco del navegador ── */
.pn-date { display: inline-flex; align-items: center; gap: 8px; min-width: 160px; max-width: 100%; font: inherit; color: var(--tx);
  background: #101018; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; cursor: pointer; text-align: left; }
.pn-date:hover, .pn-date:focus-visible { border-color: var(--pur); outline: none; }
.pn-date .ic { font-size: 14px; line-height: 1; flex: none; }
.pn-date .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pn-date .tx.ph { color: var(--tx2); font-weight: 500; }
.pn-dt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pn-dt .pn-time { flex: 0 0 auto; min-width: 0; width: 118px; }
.pn-dt .pn-time .pn-combo-list { max-height: 220px; }
.pn-cal-ov { position: fixed; inset: 0; z-index: 1250; background: transparent; }
.pn-cal { position: fixed; width: 292px; max-width: calc(100vw - 16px); background: #14141f; border: 1px solid #34344c; border-radius: 16px;
  padding: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.65); animation: pnCalIn .14s ease-out; }
@keyframes pnCalIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.pn-cal .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pn-cal .hd b { font-size: 14px; font-weight: 800; }
.pn-cal .nv { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #101018; color: var(--tx); font-size: 18px; line-height: 1; cursor: pointer; }
.pn-cal .nv:hover { border-color: var(--pur); }
.pn-cal .wd, .pn-cal .gr { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pn-cal .wd span { text-align: center; font-size: 10.5px; font-weight: 800; color: var(--tx2); text-transform: uppercase; padding: 2px 0 4px; }
.pn-cal .gr .d { position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; color: var(--tx); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pn-cal .gr .d:hover { background: #22222f; }
.pn-cal .gr .d.td { box-shadow: inset 0 0 0 1.5px rgba(168,85,247,.7); }
.pn-cal .gr .d.fc { background: #22222f; }
.pn-cal .gr .d.on { background: linear-gradient(135deg, var(--pur), var(--or)); color: #fff; font-weight: 800; box-shadow: none; }
.pn-cal .gr .d.mk::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #e9a1f9; }
.pn-cal .gr .d.on.mk::after { background: #fff; }
.pn-cal .gr .d.off { opacity: .3; pointer-events: none; }
.pn-cal .ft { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ── Acciones con respuesta (campo 2026-10-01: «que se vea cómo se clica el botón, un spinner sobre él, una barra») ── */
.pn-btn:active:not(:disabled) { transform: scale(.95); filter: brightness(1.15); }
.pn-btn:disabled { cursor: default; }
.pn-btn.working { display: inline-flex; align-items: center; gap: 7px; opacity: .92; }
.pn-btn.working .cb-spin { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.cb-busy { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--tx); }
.cb-busy .cb-busy-n { font-variant-numeric: tabular-nums; color: #e9a1f9; }
.cb-tools.working { gap: 12px; }
.cb-tools.working .cb-busy-bar { flex: 1 1 160px; margin-top: 0; }
.cb-it.busy::after { content: ''; position: absolute; inset: 0; background: rgba(10,10,15,.45); }
.cb-it.busy::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 2; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: pnSpin .8s linear infinite; }
.cb-it.busy.bzdone::after { background: rgba(10,10,15,.2); }
.cb-it.busy.bzdone::before { animation: none; border: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; content: '✓'; color: #fff; font-weight: 900; font-size: 13px;
  line-height: 22px; text-align: center; background: linear-gradient(135deg, var(--pur), var(--or)); }
@keyframes pnSpin { to { transform: rotate(360deg); } }
/* «Plof»: se hincha un poco y desaparece; lo de alrededor se desliza a su sitio (cbPlof, FLIP). */
.cb-it.plof { animation: cbPlof .28s ease-in forwards; pointer-events: none; z-index: 3; }
@keyframes cbPlof { 0% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(.2); opacity: 0; } }

/* «Mis eventos»: buscar y ordenar; uno que se está borrando va apagado y dice cuándo. */
.pn-evtools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.pn-evtools input[type=search] { flex: 1 1 220px; min-width: 0; }
.pn-event-btn.deleting { opacity: .62; }

/* Contenido ▸ una fecha (§5x): buscar un archivo por su nombre, el tamaño de las miniaturas, y las portadas
   que se están rehaciendo — una barra debajo de «En la web» y una barrita dentro de cada miniatura. */
.cb-ftools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.cb-ftools[hidden] { display: none; }
.cb-ftools .sp { flex: 1; }
.cb-ftools .cb-fk button { padding: 5px 11px; font-size: 12.5px; }   /* Todo · Fotos · Vídeos */
.cb-fq { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 380px; min-width: 0; }
.cb-fq .i { position: absolute; left: 10px; font-size: 12px; opacity: .7; pointer-events: none; }
.cb-fq input { width: 100%; padding: 7px 30px 7px 31px; font-size: 13px; }
.cb-fq .x { position: absolute; right: 3px; background: none; border: 0; color: var(--tx2); cursor: pointer; padding: 4px 8px; font-size: 12px; }
.cb-fq .x:hover { color: var(--tx); }
.cb-fq .x[hidden] { display: none; }
.cb-fq input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }   /* la ✕ es la nuestra */
.cb-fqn { font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.cb-sz { display: flex; align-items: center; gap: 7px; color: var(--tx2); cursor: default; }
.cb-sz .s { font-size: 9px; } .cb-sz .b { font-size: 15px; }
.cb-sz input[type=range] { width: 130px; padding: 0; accent-color: var(--pur); background: none; border: 0; }
#cb-secs.sized .cb-grid-it { grid-template-columns: repeat(auto-fill, minmax(var(--cbt), 1fr)); }
#cb-secs.sized .cb-strip { grid-template-columns: repeat(auto-fill, minmax(var(--cbt), 1fr)); grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; overflow: hidden; }
#cb-secs.sized .cb-strip .cb-it:nth-child(n) { display: block; }
.cb-rgbar { padding: 0 16px 12px; }
.cb-rgbar[hidden] { display: none; }
.cb-rgbar .tx { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; }
.cb-rgbar .tx .cb-hint { font-weight: 400; }
.cb-rgbar .cb-bar { max-width: none; margin-top: 6px; }
.cb-it .rg { display: none; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.7);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18); overflow: hidden; z-index: 2; }
.cb-it .rg > i { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: 3px; background: linear-gradient(90deg, var(--pur), var(--or)); }
.cb-it.rgq .v, .cb-it.rgw .v { bottom: 14px; }   /* el ▶︎ del vídeo, por encima de la barrita */
.cb-it.rgq .rg, .cb-it.rgw .rg { display: block; }
.cb-it.rgq .rg > i { width: 100%; background: rgba(255,255,255,.25); }
.cb-it.rgw .rg > i { animation: cbRgRun 1.1s ease-in-out infinite; }
.cb-it.rgq img, .cb-it.rgw img { filter: brightness(.72); }
@keyframes cbRgRun { 0% { left: -38%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .cb-it.rgw .rg > i { animation: none; left: 0; width: 62%; } }

/* ⚑ «Pedir que se quite» (§5w): el aviso de arriba del evento y la hoja para revisarlos. */
.pn-banner.rep { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); }
.pn-banner.rep .ic { color: #f87171; font-size: 18px; line-height: 1; }
.pn-banner.rep .tx { flex: 1 1 200px; }
.rep-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rep-none { text-align: center; padding: 18px 0; }
.rep-card { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.rep-card.focus { border-color: rgba(239,68,68,.7); box-shadow: inset 0 0 0 1px rgba(239,68,68,.7); }
.rep-card.gone, .rep-card.hid { opacity: .78; }
.rep-th { flex: none; position: relative; width: 96px; height: 96px; border-radius: 9px; overflow: hidden; background: #1b1b28; border: 0; padding: 0; cursor: pointer; }
.rep-th:disabled { cursor: default; }
.rep-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rep-th.v::after { content: '▶︎'; position: absolute; right: 6px; bottom: 4px; font-size: 11px; color: #fff; text-shadow: 0 1px 5px #000; }
.rep-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rep-nm { font-weight: 700; overflow-wrap: anywhere; }
.rep-why b { color: #fca5a5; }
.rep-at { color: var(--tx2); font-size: 12px; }
.rep-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(255,255,255,.05); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; }
.rep-who { font-size: 12.5px; color: var(--tx2); overflow-wrap: anywhere; }
.rep-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 560px) { .rep-th { width: 72px; height: 72px; } .cb-sz input[type=range] { width: 100px; } }

/* 📷 who shot it (panel.js crField) */
.cr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cr-field .pn-combo { width: 100%; }
.cr-add { align-self: flex-start; }
.cr-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cr-form input { flex: 1; min-width: 120px; }
