/* Panel de Dilema Diario (16/10): básico, con los colores de la marca (rojo arriba / azul abajo, como los vídeos) y
   fácil de navegar. Claro por defecto y oscuro si el dispositivo lo pide. Todos los colores salen de las variables de
   :root: para retocar la marca basta con cambiarlas ahí. */
[hidden] { display: none !important; }  /* que .btn { display: ... } no anule el atributo hidden */
:root {
  color-scheme: light dark;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --line: #e0e3ec;
  --line-strong: #c8cddb;
  --text: #151a2d;
  --muted: #5b6278;
  --red: #e5304a;          /* marca: mitad A */
  --red-ink: #b81d35;
  --red-soft: #fde8eb;
  --blue: #2563eb;         /* marca: mitad B */
  --blue-ink: #1d4ed8;
  --blue-soft: #e7eefe;
  --green: #15803d;
  --green-soft: #dcf5e4;
  --amber: #92400e;
  --amber-soft: #fef3c7;
  --on-brand: #ffffff;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
  --radius: 12px;
  --nav-w: 248px;
  /* nombres antiguos que aún usan algunas reglas */
  --yellow: var(--blue);
  --card: var(--surface);
  --bg2: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1120;
    --surface: #161a2c;
    --surface-2: #1c2136;
    --line: #2a3048;
    --line-strong: #3a4263;
    --text: #edf0f8;
    --muted: #a3a9c0;
    --red: #ff4d63;
    --red-ink: #ff8a98;
    --red-soft: #3a1720;
    --blue: #5b8cff;
    --blue-ink: #8fb0ff;
    --blue-soft: #18264b;
    --green: #34d399;
    --green-soft: #0f2e22;
    --amber: #fbbf24;
    --amber-soft: #33260a;
    --focus: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h, 0px) + 16px); }
html.big-text { font-size: 18px; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--blue-ink); }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 6px; font-size: .9em; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: 1rem; color: var(--text); margin-top: 1.1em; }
::placeholder { color: var(--muted); opacity: .8; }
.ico { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------ marca */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 850;
  letter-spacing: .01em; font-size: 1.05rem; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(var(--red) 50%, var(--blue) 50%); color: #fff; font-weight: 900; font-size: 1rem;
  box-shadow: inset 0 0 0 2px #ffffff55; }

/* ------------------------------------------------------------------ estructura: menú lateral (PC) y cajón (móvil) */
.topbar { display: none; }
.no-nav .topbar { display: flex; align-items: center; padding: 14px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line); }
.sidenav { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); z-index: 40; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line); padding: 14px 12px 14px;
  display: flex; flex-direction: column; gap: 2px; }
.side-brand { padding: 2px 8px 10px; }
.new-video { margin: 2px 4px 6px; justify-content: center; }
.nav-group { display: grid; gap: 1px; margin-top: 2px; }
.nav-label { margin: 8px 10px 2px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; min-height: 40px;
  color: var(--text); text-decoration: none; font-weight: 600; }
.nav-link .ico { color: var(--muted); }
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
.nav-link[aria-current="page"] .ico { color: var(--blue-ink); }
.nav-link .badge { margin-left: auto; }
.nav-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.nav-foot .nav-link { flex: 1; }
.has-nav .page { margin-left: var(--nav-w); min-width: 0; }
.nav-scrim { position: fixed; inset: 0; background: #0008; z-index: 35; }

@media (max-width: 1023px) {
  .has-nav .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30;
    padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); background: var(--surface);
    border-bottom: 1px solid var(--line); }
  .has-nav .topbar .brand { flex: 1; min-width: 0; font-size: 1rem; }
  .has-nav .topbar .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
  .new-btn { flex: none; }
  .sidenav { transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); width: min(84vw, 300px); }
  .nav-open .sidenav { transform: none; }
  .has-nav .page { margin-left: 0; }
  .side-brand { display: none; }
}
@media (min-width: 1024px) { .nav-toggle, .new-btn, .nav-scrim { display: none !important; } }

.container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.container.narrow { max-width: 620px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 4px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  margin-bottom: 18px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.warn { color: var(--amber); }
.error { color: var(--red-ink); font-weight: 600; }
.ok-text { color: var(--green); font-weight: 700; }
.card.warn { background: var(--amber-soft); border-color: #f2d58a; color: var(--amber); }
.notice { padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; font-weight: 600; }
.notice.ok { background: var(--green-soft); color: var(--green); }
.notice.bad { background: var(--red-soft); color: var(--red-ink); }
.stack { display: grid; gap: 4px; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  min-height: 44px; padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; text-decoration: none;
  font-size: .95rem; line-height: 1.2; font-family: inherit;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-brand); }
.btn.primary:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.danger { background: transparent; border-color: #f3b2bd; color: var(--red-ink); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { min-height: 36px; padding: 7px 12px; font-size: .88rem; border-radius: 8px; }
.btn .ico { width: 18px; height: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ formularios */
input, textarea, select {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 1rem; min-height: 44px;
}
textarea { min-height: 88px; line-height: 1.45; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--blue-soft); }
input[type=range] { padding: 0; accent-color: var(--blue); }
input[type=range], input[type=file], input[type=color] { min-height: 0; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--blue); }
label { display: block; margin: 10px 0; font-weight: 650; font-size: .95rem; }
label > input, label > select, label > textarea { margin-top: 5px; font-weight: 400; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 4px 0; line-height: 1.4; }
label.check input { width: auto; margin-top: 2px; }
.check.big { font-size: 1.05em; margin: .5em 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.login { max-width: 420px; margin: 60px auto; }
.account { font-size: .88rem; margin: 0; }

/* ------------------------------------------------------------------ listas y etiquetas */
.filters { display: grid; grid-template-columns: 1fr 220px 200px; gap: 8px; margin-bottom: 12px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover, table.list tbody tr:focus-within { background: var(--surface-2); }
table.list td a { color: var(--text); font-weight: 650; text-decoration: none; }
table.list td a:hover { color: var(--blue-ink); text-decoration: underline; }
.table-scroll { overflow-x: auto; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag-done, .tag-renderizado { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag-error { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.tag-running, .tag-queued { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.tag-cancelled { opacity: .8; }
.pill { justify-self: start; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800;
  background: var(--blue-soft); color: var(--blue-ink); }
.pill.grey { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 1em; background: var(--red); color: #fff;
  font-size: .78em; font-weight: 800; text-align: center; line-height: 1.5; }

/* ------------------------------------------------------------------ nuevo vídeo (asistente) */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 6px 0 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 4px 12px 4px 6px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: .8rem; }
.steps li.on { color: var(--text); border-color: var(--blue); }
.steps li.on::before { background: var(--blue); color: #fff; }
.when { display: grid; gap: 6px; }
.when label { margin: 0; }
.group-title { margin: 22px 0 10px; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.format-card { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: var(--radius); text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s; }
.format-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.format-card strong { font-size: 1.02rem; }
.format-split { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); margin-bottom: 4px; }

.assistant > summary { font-size: 1.05rem; }
.assist-steps { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 14px; }
.assist-steps > li { padding-left: 4px; }
.assist-steps > li::marker { font-weight: 900; color: var(--red); }
.assist-steps .ai-row { margin-top: 8px; }
.assist-steps textarea { margin-top: 8px; }
.more-opts { margin-top: 8px; }
.more-opts > summary { font-size: .9rem; color: var(--muted); font-weight: 650; }

/* ------------------------------------------------------------------ editor */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; max-width: 1400px; margin: 20px auto; padding: 0 20px; }
.title-input { font-size: 1.35rem; font-weight: 800; background: transparent; border-color: transparent; padding-left: 0; }
.title-input:hover, .title-input:focus { border-color: var(--line-strong); padding-left: 10px; }
.sticky { position: sticky; top: calc(var(--topbar-h, 0px) + 16px); max-height: calc(100vh - var(--topbar-h, 0px) - 32px); overflow: auto; }
details > summary { cursor: pointer; font-weight: 800; color: var(--text); }
details[open] > summary { margin-bottom: 10px; }
.ai-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.ai-row select { width: auto; }
.option { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 10px 0; background: var(--surface); }
.option legend { padding: 0 6px; font-weight: 800; }
.option-body { display: grid; grid-template-columns: 240px 1fr; gap: 12px; align-items: start; }
/* La miniatura usa la misma proporción y color de fondo que en el vídeo */
.thumb { width: 240px; aspect-ratio: 900 / 480; border-radius: 10px; background: center/cover no-repeat;
  border: 2px dashed #ffffff88; display: grid; place-items: center; color: #ffffffee; font-size: .8rem;
  text-align: center; padding: 8px; cursor: pointer; }
.thumb.team-a { background-color: #ea3048; }
.thumb.team-b { background-color: #2a64e8; }
.thumb.cutout { background-size: contain; }
.thumb:hover { border-color: #fff; }
.option.team-a legend { color: var(--red-ink); }
.option.team-b legend { color: var(--blue-ink); }
.option.active, .option.dragging { border-color: var(--blue); }
.option.dragging { background: var(--blue-soft); }
.img-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.img-bar > div { flex: 1; min-width: 240px; display: grid; gap: 2px; }
.img-bar > .btns { flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.img-bar.dragging { outline: 2px dashed var(--blue); outline-offset: 4px; }
.missing { border: 1px solid #f2d58a; background: var(--amber-soft); border-radius: 10px; padding: 10px 12px; margin: 8px 0; color: var(--amber); }
.missing ul { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
.option-fields { display: grid; gap: 8px; }
.inline { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.inline .pct { width: 180px; flex: none; }
.inline .val { width: 170px; flex: none; }
.list-field { margin: 16px 0; }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: var(--surface-2); }
.item-head { display: flex; align-items: center; gap: 6px; }
.spacer { flex: 1; }
.danger-row { display: flex; gap: 10px; justify-content: flex-end; margin: 10px 0 40px; }
details.list-item > summary { cursor: pointer; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.list-item[open] > summary { margin-bottom: 8px; color: var(--blue-ink); }
.import-list { display: grid; gap: 6px; max-height: 55vh; overflow: auto; margin: 12px 0; }
.editor-side { min-width: 0; }

.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.previews img { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--line); }
.previews.wide { grid-template-columns: repeat(2, 1fr); }
.previews figure.pv { position: relative; margin: 0; cursor: pointer; }
.previews figure.pv img { border: 2px solid transparent; }
.previews figure.pv.cover img { border-color: var(--blue); }
.previews figure.pv figcaption { position: absolute; left: 4px; top: 4px; background: var(--blue); color: #fff;
  font-size: .7rem; font-weight: 800; border-radius: 6px; padding: 0 5px; }
.previews figure.pv figcaption:empty { display: none; }
.previews .safe { display: none; position: absolute; inset: 0; pointer-events: none; border-radius: 8px;
  /* abajo ~22 %: título, descripción y música; derecha ~14 %: botones de me gusta, comentar, compartir */
  background: linear-gradient(to top, #ff3b5c88 0 22%, transparent 22%), linear-gradient(to left, #ff3b5c66 0 14%, transparent 14%); }
.previews.show-safe .safe { display: block; }
.previews.wide .safe { background: none; }

.job textarea { font-family: ui-monospace, Consolas, monospace; }
.jobs { display: grid; gap: 10px; margin: 8px 0; }
.job { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-2); display: grid; gap: 6px;
  overflow-wrap: anywhere; min-width: 0; }
.job-head { display: flex; justify-content: space-between; gap: 8px; }
.job-error { border-color: #f3b2bd; }
.job-done { border-color: #9fdcb5; }
.job video { width: 100%; max-height: 420px; border-radius: 8px; background: #000; }
.bar { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); transition: width .4s; }

.dialog { width: min(900px, 94vw); background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: #000a; }
.dialog-head { display: flex; gap: 8px; align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 12px 0; max-height: 60vh; overflow: auto; }
.photo-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.photo-grid img:hover { outline: 3px solid var(--blue); }
.photo-grid.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-grid.fotos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-grid.fotos .lib-item img { object-fit: cover; }
/* Licencia de cada foto libre: verde = sin condiciones, azul = con crédito, ámbar = solo si no hay otra */
.lic { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: .78rem; line-height: 1.5; }
.lic-0 { background: var(--green-soft); color: var(--green); }
.lic-1 { background: var(--blue-soft, var(--surface-2)); color: var(--blue); }
.lic-2 { background: var(--amber-soft); color: var(--amber); }

.checks { list-style: none; padding: 0; display: grid; gap: 4px; }
.checks li::before { content: "✕ "; color: var(--red-ink); font-weight: 800; }
.checks li.ok::before { content: "✓ "; color: var(--green); }
.today .checks li.no::before { content: "○ "; color: var(--amber); }

.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: 12px; z-index: 100; max-width: 90vw;
  font-size: 1rem; box-shadow: var(--shadow-lg); }
.toast.ok { background: var(--green); color: #fff; }
.toast.error { background: var(--red-ink); color: #fff; }

.hooks-box { display: grid; gap: 6px; margin: 8px 0; }
.hooks-box .choice { text-align: left; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; }
.hooks-box .choice:hover { border-color: var(--blue); }

/* ------------------------------------------------------------------ ajustes, calendario, ideas, biblioteca */
.sections { display: grid; gap: 8px; margin: 10px 0; }
.section-row { display: grid; grid-template-columns: 110px 1fr 220px; gap: 8px; align-items: center; }
.section-row.three { grid-template-columns: 110px 1fr 180px 180px 180px; }
.section-row.five { grid-template-columns: 110px minmax(140px, 1fr) repeat(5, minmax(120px, 160px)); }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.calendar .day { margin: 0; padding: 12px; min-height: 220px; }
.calendar .day.today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.calendar .day h3 { margin: 0 0 2px; }
.slot { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 8px; margin-top: 8px; display: grid; gap: 6px; }
.slot.extra { border-top: 1px dashed var(--line-strong); padding-top: .4em; }
.slot-title { color: var(--text); font-weight: 700; text-decoration: none; }
.slot select { width: 100%; }
.slot-time { font-size: .75rem; font-weight: 800; color: var(--blue-ink); letter-spacing: .04em; }
.cal-actions { margin: 6px 0 14px; align-items: center; }

.idea-form, .quick-idea { display: flex; gap: 8px; flex-wrap: wrap; }
.idea-form input, .quick-idea input { flex: 1; min-width: 200px; }
.ideas { display: grid; gap: 10px; }
.idea { margin: 0; padding: 12px 14px; }
.idea p { margin: 0 0 8px; font-size: 1.02rem; }
.idea.used { opacity: .55; }

.lib-search { min-width: 260px; }
.lib-item { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  color: var(--text); text-decoration: none; cursor: pointer; font: inherit; text-align: left; }
.lib-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.lib-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-item:hover { border-color: var(--blue); }

/* ------------------------------------------------------------------ Móvil (lo que más usa el operario) */
.movil { max-width: 640px; }
.tabs { display: flex; gap: 8px; margin: 4px 0 14px; position: sticky; top: var(--topbar-h, 0px); background: var(--bg); padding: 8px 0; z-index: 5; }
.tab { flex: 1; min-height: 44px; padding: 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-weight: 700; font-size: 1rem; font-family: inherit; cursor: pointer; }
.tab.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.video { margin-bottom: 14px; padding: 12px; display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  scroll-margin-top: calc(var(--topbar-h, 0px) + 76px); }
.video.done { opacity: .85; }
.video.done .head h2::before { content: "✓ "; color: var(--green); }
.video.flash { outline: 2px solid var(--blue); }
.video .media { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(var(--red) 50%, var(--blue) 50%); display: grid; place-items: center; align-self: start; }
.video .media.vertical { aspect-ratio: 9 / 16; }
.video .media.horizontal { aspect-ratio: 16 / 9; grid-column: 1 / -1; }
.video .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #ffffffe6; color: #1b1630;
  display: grid; place-items: center; font-size: 15px; padding-left: 3px; }
.video .head { display: grid; gap: 6px; align-content: start; min-width: 0; }
.video .head h2 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.video .body { grid-column: 1 / -1; display: grid; gap: 10px; }
.video .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.video .row .btn:not(.small) { flex: 1; }
.video .row.copies .btn.small { min-height: 40px; }
.btn.primary.ready { background: var(--green); border-color: var(--green); color: #fff; }
.chip { min-height: 38px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.on::before { content: "✓ "; }
.link { background: none; border: 0; color: var(--muted); font-size: 1rem; min-height: 40px; cursor: pointer; text-decoration: underline;
  padding: 6px 0; font-family: inherit; }
.link:hover { color: var(--text); }
.link.danger { color: var(--red-ink); }
.empty { text-align: center; padding: 30px 10px; }
.player { position: fixed; inset: 0; background: #000e; z-index: 50; display: grid; place-items: center; padding: 16px; }
.player video { max-width: 100%; max-height: 100%; border-radius: 12px; background: #000; }
.player .close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: #fff; color: #1b1630; font-size: 20px; font-weight: 800; }
.tips ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* ------------------------------------------------------------------ comprobar datos, estadísticas, imágenes de la semana */
.facts-box { display: grid; gap: 8px; margin-top: 8px; }
.fact { border-left: 4px solid var(--line-strong); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.fact-ok { border-left-color: var(--green); }
.fact-dudoso { border-left-color: var(--amber); }
.fact-falso { border-left-color: var(--red); background: var(--red-soft); }

.spark { color: var(--blue); vertical-align: middle; }
.ypp-row { display: grid; gap: 4px; margin: 10px 0; }
.ypp-label { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ypp .bar { height: 10px; }
.ypp .bar span { background: var(--green); }
.replies { display: grid; gap: 10px; margin-top: 10px; }
.reply p { margin: 0 0 6px; }
.reply textarea { width: 100%; }

.week-video .row-head { align-items: baseline; }
.week-video h3 { margin: 0; }
.week-opt { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px;
  border: 1px dashed transparent; border-radius: 10px; }
.week-opt + .week-opt { border-top: 1px solid var(--line); }
.week-opt.dragging { border-color: var(--blue); background: var(--blue-soft); }
.week-opt.busy { opacity: .6; }
.week-opt.done .week-text strong::after { content: "  ✓"; color: var(--green); }
.week-text { display: grid; gap: 2px; min-width: 0; }
.week-text .small { overflow-wrap: anywhere; }
.week-thumb { width: 64px; height: 64px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2);
  color: var(--muted); font-weight: 900; overflow: hidden; }
.week-thumb img { width: 100%; height: 100%; object-fit: contain; }
.week-tools .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.week-tools .row strong { min-width: 9em; }

/* Prompt para la IA de pago mensual */
.prompt-dialog { display: grid; gap: 10px; }
.prompt-dialog:not([open]) { display: none; }
.prompt-dialog textarea, #ai-prompt { width: 100%; font: 13px/1.4 ui-monospace, Consolas, monospace; }
.prompt-dialog p { margin: 0; }

/* «¿Qué es esto?»: elegir el punto del zoom tocando la foto */
.zoom-picker { display: grid; gap: 6px; margin-top: 8px; }
.zp-stage { position: relative; justify-self: start; max-width: 100%; overflow: hidden; border-radius: 10px; cursor: crosshair; line-height: 0; }
.zp-stage img { display: block; max-width: 100%; max-height: 360px; user-select: none; }
.zp-start { position: absolute; border: 3px solid var(--blue); border-radius: 6px; box-shadow: 0 0 0 9999px #0008; pointer-events: none; }
.zp-end { position: absolute; border: 2px dashed #fff; border-radius: 8px; pointer-events: none; }
.zp-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; transform: translate(-50%, -50%); pointer-events: none; }
.warn.block { display: block; margin-top: 4px; }
.credit { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.cmp-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; margin: 8px 0; }
.cmp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmp-results { display: grid; gap: 10px; margin-top: 10px; }
.cmp-result { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.cmp-result audio { width: 100%; }

/* Previews (página pública para revisar las muestras desde el móvil) */
.previews-page .pv-section { margin-top: 24px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.pv-item { display: grid; gap: 8px; align-content: start; margin: 0; color: var(--text); text-decoration: none; }
.pv-item.wide { grid-column: 1 / -1; }
.pv-item h3 { margin: 0; color: var(--text); }
.pv-item video, .pv-item img { width: 100%; border-radius: 10px; background: #000; display: block; }
.pv-item:not(.wide) video { aspect-ratio: 9 / 16; }
.pv-item.wide video { aspect-ratio: 16 / 9; max-height: 70vh; }
.pv-item p { margin: 0; }
.pv-texts { display: grid; gap: 10px; margin-top: 14px; }
.pv-text { display: grid; gap: 6px; margin: 0; }
.pv-text textarea { width: 100%; resize: vertical; font-size: .9rem; }
.pv-text .btn { justify-self: start; }

/* Páginas legales (públicas) */
.legal-text { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal-text h2 { margin-top: 1.2em; }

/* Avisos, motor parado y subida a YouTube */
.banner-warn { margin: 0; padding: .7em 1.2em; background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid #f2d58a;
  font-size: 1rem; line-height: 1.5; }
.banner-warn code { font-size: .9em; }
.aviso.unread { border-left: 4px solid var(--red); }
.aviso h2 { font-size: 1.05em; margin: 0 0 .2em; }
.pre { white-space: pre-wrap; }
.yt-up { margin: .5em 0; padding: .55em .7em; border: 1px dashed var(--line-strong); border-radius: 10px; }
.yt-up .yt-status { margin: 0 0 .3em; }
.yt-up .yt-status:empty { display: none; }
.yt-up .row { flex-wrap: wrap; align-items: center; gap: .4em; }
.yt-up .yt-when { max-width: 13.5em; padding: .3em .4em; }

/* Publicación automática: etiquetas por red */
.pchips { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.pchip { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: .8em; font-weight: 700; line-height: 1.6;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pchip-programado, .pchip-subiendo, .pchip-en_buzon, .pchip-aviso_enviado { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.pchip-publicado, .pchip-hecho_a_mano { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pchip-error, .pchip-caducado { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }

/* Ayuda */
.help ol, .help ul { padding-left: 1.3em; display: grid; gap: 8px; margin: 0; }
.help li { line-height: 1.55; }
.help ul.legend { list-style: none; padding-left: 0; }
.help ul.legend .pchip { min-width: 9.5em; text-align: center; margin-right: 6px; }
kbd { background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font: inherit; font-size: .9em; }

/* Imágenes con Google Flow (/flow) */
.flow-check { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0; }
.flow-check .chk { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--red-soft); color: var(--red-ink); font-weight: 900; margin-right: 6px; }
.flow-check li.ok .chk { background: var(--green-soft); color: var(--green); }
#fl-prompt-text, #fl-answer { width: 100%; margin: 10px 0; font: inherit; font-size: .85rem; }
#fl-state { font-weight: 700; }
.flow-queue { display: grid; gap: 8px; margin-top: 10px; }
.flow-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.flow-item .what { flex: 1 1 220px; min-width: 0; }
.flow-item .what .small { overflow-wrap: anywhere; }
.flow-item .thumbs { display: flex; gap: 6px; }
.flow-item .thumbs img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #ff8a2a; }
.flow-item .thumbs img.chosen { outline: 3px solid var(--blue); }
.flow-item.st-pendiente .pchip { background: var(--blue-soft); color: var(--blue-ink); }
.flow-item.st-generando .pchip { background: var(--amber-soft); color: var(--amber); }
.flow-item.st-hecha .pchip { background: var(--green-soft); color: var(--green); }
.flow-item.st-error .pchip { background: var(--red-soft); color: var(--red-ink); }

/* ------------------------------------------------------------------ accesibilidad
   Foco visible con el teclado, toque mínimo de 44 px, enlace para saltar el menú, letra grande («A+») y menos
   movimiento o más contraste si el sistema lo pide. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--blue); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 8px; }
.text-size { min-width: 44px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-weight: 800; cursor: pointer; font-size: .95rem; justify-self: start; font-family: inherit; }
.text-size[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.card p a:not(.btn), .card li a:not(.btn), .muted a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .editor-layout { grid-template-columns: 1fr; }
  .sticky { position: static; max-height: none; }
  .grid2 { grid-template-columns: 1fr; }
  .ai-row { grid-template-columns: 1fr; }
  .ai-row select { width: 100%; }
  .option-body { grid-template-columns: 1fr; }
  .thumb { width: 100%; height: 180px; }
  .filters { grid-template-columns: 1fr; }
  table.list th:nth-child(4), table.list td:nth-child(4), table.list th:nth-child(5), table.list td:nth-child(5) { display: none; }
}
@media (max-width: 1000px) { .calendar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .container { margin: 14px auto; padding: 0 14px; }
  .editor-layout { padding: 0 14px; }
  .card { padding: 16px; }
  .video { grid-template-columns: 84px 1fr; }
  .video .row .btn, .video .row .chip { flex: 1 1 auto; }
  .actions .btn { flex: 1 1 auto; }
  .page-head .btn { width: 100%; }
  table.list th:nth-child(6), table.list td:nth-child(6) { display: none; }
}
@media (max-width: 700px) { .section-row, .section-row.three, .section-row.five { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .week-opt { grid-template-columns: 48px 1fr; } .week-opt .btns { grid-column: 1 / -1; } .week-thumb { width: 48px; height: 48px; } }
@media (max-width: 560px) { .calendar { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: light) {
  :root { --line: #8a91a8; --line-strong: #5b6278; --muted: #2f3448; }
  .btn { border-width: 2px; }
}
table.list.compact td, table.list.compact th { padding: 9px 8px; }
table.list.compact tbody tr { cursor: default; }

/* Calendario (16/10): más ancho, etiquetas que no se salen de la columna y huecos pasados en silencio */
.container.wide { max-width: 1500px; }
.slot .tag { white-space: normal; justify-self: start; }
.slot .pchips { flex-wrap: wrap; margin-left: 0; }
.slot select { font-size: .88rem; min-height: 38px; padding: 6px 8px; }
.slot .btn { white-space: normal; text-align: center; }
.slot-title { overflow-wrap: anywhere; }
@media (max-width: 1023px) { .page-head > .btn.primary { display: none; } }   /* en el móvil ya está «Nuevo» arriba */
/* Índice de páginas largas (Ajustes) */
.toc { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.toc a { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  text-decoration: none !important; font-weight: 650; font-size: .9rem; }
.toc a:hover { border-color: var(--blue); color: var(--blue-ink); }
.nowrap { white-space: nowrap; }
/* Nuevo vídeo: portada del último vídeo de cada formato */
.format-thumb { width: 100%; height: 150px; object-fit: contain; border-radius: 8px; margin-bottom: 4px;
  background: linear-gradient(var(--red) 50%, var(--blue) 50%); }
/* Revisión automática antes del render */
.missing.review.ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.missing.review li + li { margin-top: 3px; }

/* ------------------------------------------------------------------ panel simple (18/10)
   Portada, «Crear vídeo», «Pendientes», selector de canal y «Pedir ayuda». Mismos colores y medidas que el resto:
   tarjetas de 14 px de radio, separaciones de 8/12/16/24 px y un solo color fuerte por pantalla (el rojo de «Crear»). */
:root { --radius: 14px; --gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card { border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 1.05rem; }
.card > h2:first-child, .row-head h2 { margin-bottom: 10px; }

.hero { margin: 4px 0 18px; }
.hero h1 { font-size: 1.9rem; margin: 2px 0 2px; }
.hero p { margin: 0; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 20px; }
.quick-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 18px 20px; min-height: 120px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.quick-card .ico { width: 28px; height: 28px; color: var(--blue-ink); margin-bottom: 6px; }
.quick-card strong { font-size: 1.1rem; }
.quick-card span { color: var(--muted); font-size: .92rem; }
.quick-card.primary { background: linear-gradient(135deg, var(--red) 0%, #f0546a 55%, var(--blue) 140%); border-color: transparent; color: #fff; }
.quick-card.primary .ico, .quick-card.primary span { color: #ffffffe0; }
.quick-card .badge { position: absolute; top: 14px; right: 14px; font-size: .85rem; }

.home-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.home-grid .card, .home-side .card { margin-bottom: var(--gap); }
.preview-card { display: grid; gap: 8px; }
.preview-card h2 { margin: 0; }
.preview-video { width: 100%; aspect-ratio: 9 / 16; max-height: 560px; border-radius: 12px; background: #000; object-fit: contain; }
.preview-title { margin: 0; font-weight: 750; line-height: 1.3; }
.preview-title a { color: var(--text); text-decoration: none; }
.preview-title a:hover { color: var(--blue-ink); }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; }
.day-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); }
.day-row:last-child { border-bottom: 0; }
.day-row .time { min-width: 3.6em; font-size: .82rem; font-weight: 800; color: var(--blue-ink); font-variant-numeric: tabular-nums; }
.day-row a { color: var(--text); text-decoration: none; font-weight: 600; flex: 1 1 200px; min-width: 0; }
.day-row a:hover { color: var(--blue-ink); }
.day-row.empty .muted { font-style: italic; }
.day-row .pchips { margin-left: 0; }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); }
.todo-item .todo-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.todo-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.todo-item.lvl-bad { background: var(--red-soft); border-color: transparent; }
.todo-item.lvl-bad .dot { background: var(--red); }
.todo-item.lvl-warn .dot { background: var(--amber); }
.todo-item.lvl-info .dot { background: var(--blue); }
.todo-item .btn { flex: none; }
.empty-state { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--green); font-weight: 650; }

/* «Crear vídeo» */
.cr-step { max-width: 1100px; }
.card.cr-step { max-width: 760px; }
.step-title { font-size: 1.25rem; margin-bottom: 14px; }
button.format-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.choice-group { border: 0; padding: 0; margin: 14px 0 6px; display: grid; gap: 8px; }
.choice-group legend { font-weight: 650; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 12px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice input { margin-top: 2px; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--muted); font-size: .88rem; }
.cr-step .btns { margin-top: 16px; }
.notice { font-weight: 600; }
.notice:not(.ok):not(.bad) { background: var(--amber-soft); color: var(--amber); }

/* «Pedir ayuda»: botón flotante en todas las páginas */
.assist-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex;
  align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--text); color: var(--surface); font: inherit; font-weight: 750; box-shadow: var(--shadow-lg); }
.assist-fab:hover { background: var(--blue-ink); color: #fff; }
.assist-dialog { width: min(560px, 94vw); padding: 20px; }
.assist-form { display: grid; gap: 8px; }
.assist-form h2 { margin: 0; }
.assist-form label { margin: 4px 0 0; }
@media (max-width: 760px) { .assist-fab span { display: none; } .assist-fab { padding: 0 14px; } }

/* Menú: «Más herramientas» plegado y «Cambiar de canal» */
.nav-more > summary { list-style: none; color: var(--muted); }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { margin-bottom: 2px; }
.nav-more .nav-group { padding-left: 6px; }
.channel-switch { display: flex; align-items: center; gap: 8px; margin: -4px 8px 8px; font-size: .85rem; font-weight: 650;
  color: var(--muted); text-decoration: none; }
.channel-switch:hover { color: var(--blue-ink); }
.channel-switch .ico { width: 16px; height: 16px; }

/* Selector de canal */
.channels-head { text-align: center; margin: 24px 0 18px; }
.channels-head .logo-canales { display: inline-block; margin-bottom: 8px; }
.channel-list { display: grid; gap: 12px; }
.channel-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.channel-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.channel-card.off { opacity: .7; }
.channel-card > .ico { color: var(--muted); }
.channel-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; color: #fff;
  font-weight: 900; font-size: 1.3rem; background: linear-gradient(var(--red) 50%, var(--blue) 50%); }
.channel-mark.ch-sinasfalto { background: linear-gradient(135deg, #3f7d4e, #c99a3b); }
.channel-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.channel-text strong { font-size: 1.08rem; }

@media (max-width: 900px) {
  .quick { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
  .home-grid { grid-template-columns: 1fr; }
  .preview-video { max-height: 70vh; }
}

/* Barras de desplazamiento finas y del color del tema (la clara del menú lateral ensuciaba el panel oscuro) */
html, .sidenav, .sticky, .import-list, .photo-grid, .cmp-list, textarea { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
