/* Publish (Metricool) y Review (VA -> manager), espacio SFW — prefijos `.pb-` y `.rv-`.
   Mismas primitivas que `.mc-` (Meta Cleaner) sobre los tokens del studio: el tema mono las
   retinta solo. La regla ancha de `[hidden]` va primero por lo de siempre: una regla con
   `display` pisaba el `[hidden]{display:none}` del navegador y dejaba a la vista lo apagado. */
.pb-page [hidden], .rv-page [hidden], .rv-modal [hidden], .pb-viewer [hidden] { display: none !important; }

.pb-page, .rv-page { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 40px; min-width: 0; }

.pb-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 0;
}
.pb-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pb-card__title { font-size: 14px; font-weight: 650; margin: 0 0 4px; }
.pb-mt { margin-top: 16px; }
.pb-hint { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin: 0 0 10px; line-height: 1.5; }
.pb-label { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin: 10px 0 6px; }
.pb-empty { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin: 6px 0; }
.pb-msg {
  margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 12.5px;
  background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.pb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-tab {
  border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: inherit;
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
}
.pb-tab.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.pb-input {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04);
  color: inherit; font: inherit; font-size: 13px; color-scheme: dark;
}
.pb-input:focus { outline: none; border-color: var(--accent); }
.pb-textarea { min-height: 72px; resize: vertical; margin-top: 8px; }
.pb-connect { display: grid; grid-template-columns: 1fr 160px auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .pb-connect { grid-template-columns: 1fr; } }

.pb-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 1100px) { .pb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.pb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03);
  color: inherit; padding: 6px 11px; border-radius: 10px; font-size: 12.5px; cursor: pointer;
}
.pb-chip.is-on { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }
.pb-chip__sub { font-size: 11px; color: rgba(255, 255, 255, 0.45); }

.pb-files { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.pb-file {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); cursor: pointer; border: 1px solid transparent;
}
.pb-file.is-on { border-color: rgba(var(--accent-rgb), 0.5); }
.pb-file input { flex: none; }
.pb-file__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pb-file__name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-file__meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.pb-file__dest { font-size: 11.5px; color: var(--accent); }
.pb-link { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; padding: 4px; }

.pb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .pb-fields { grid-template-columns: 1fr; } }
.pb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pb-field .pb-label { margin: 0; }
.pb-modes { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pb-radio { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; margin-top: 6px; }

.pb-plan { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.pb-plan__row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
  font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03);
}
.pb-plan__row.is-bad { color: #ff8a8a; }
.pb-plan__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* El texto del post de esa fila, en su propia línea debajo. */
/* Textos que ya traen los ficheros (Spoof), puestos y editables en el paso Caption. */
.pb-owncaps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pb-owncap { display: flex; flex-direction: column; gap: 4px; }
.pb-owncap__who { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.pb-owncap__text { min-height: 52px; }
.pb-plan__row .pb-plan__cap { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.5); font-size: 11.5px; }
@media (max-width: 720px) { .pb-plan__row { grid-template-columns: 1fr; } }

.pb-queue { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pb-post {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.035);
}
.pb-post__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.pb-post__title { font-size: 13px; font-weight: 600; }
.pb-post__meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.pb-post__err { font-size: 12px; color: #ffb4a0; }
.pb-post__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-status {
  flex: none; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.pb-status--scheduled, .pb-status--pending, .pb-status--sending { background: rgba(var(--accent-rgb), 0.18); }
.pb-status--published { background: rgba(80, 200, 120, 0.22); }
.pb-status--error { background: rgba(255, 90, 90, 0.22); }
.pb-status--uncertain { background: rgba(255, 180, 60, 0.25); }
.pb-status--cancelled { opacity: .6; }

.pb-cal__month { font-size: 14px; min-width: 150px; text-align: center; }
.pb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.pb-cal__dow { font-size: 11px; color: rgba(255, 255, 255, 0.45); text-align: center; padding: 4px 0; }
.pb-cal__cell {
  min-height: 86px; border-radius: 8px; padding: 5px; background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.pb-cal__cell.is-empty { background: transparent; }
.pb-cal__num { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.pb-cal__item {
  font-size: 10.5px; padding: 2px 5px; border-radius: 5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; background: rgba(var(--accent-rgb), 0.16);
}
.pb-cal__item.is-ext { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.7); }
.pb-cal__more { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }
@media (max-width: 720px) { .pb-cal__cell { min-height: 56px; } .pb-cal__item { font-size: 9.5px; } }

.pb-viewer, .rv-modal {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pb-viewer { z-index: 9010; box-sizing: border-box; }
.pb-viewer__inner { display: flex; flex-direction: column; gap: 10px; align-items: center; max-height: 100%; }
.pb-viewer__inner video, .pb-viewer__inner img { max-height: 80vh; max-width: min(92vw, 1100px); border-radius: 12px; background: #000; }

/* --- Review --------------------------------------------------------------------------- */
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-mine { margin-top: 0; }
.rv-board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; }
@media (max-width: 1100px) { .rv-board { grid-template-columns: 1fr; } }
.rv-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rv-col__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 4px 2px; }
.rv-col__count { margin-left: auto; color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.rv-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.rv-dot--proposed { background: #f5b942; }
.rv-dot--approved { background: var(--accent); }
.rv-dot--scheduled { background: #a98bff; }
.rv-dot--published { background: #5fd38a; }
.rv-dot--rejected { background: #ff7a7a; }
.rv-empty { font-size: 12px; color: rgba(255, 255, 255, 0.3); margin: 0 4px; }
.rv-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.035);
  color: inherit; border-radius: 10px; padding: 10px 11px; cursor: pointer; min-width: 0; width: 100%;
}
.rv-card:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.rv-card__title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rv-card__meta { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.rv-card__tag { font-size: 11px; color: var(--accent); }
.rv-card__note { font-size: 11.5px; color: #ffb4a0; }
.rv-modal__box {
  width: min(960px, 100%); max-height: 100%; overflow: auto; border-radius: 16px; padding: 16px 18px;
  background: var(--bg-secondary, #0a0a0a); border: 1px solid rgba(255, 255, 255, 0.12); box-sizing: border-box;
}
.rv-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rv-modal__body { display: flex; flex-direction: column; gap: 8px; }
.rv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .rv-pair { grid-template-columns: 1fr; } }
.rv-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0; }
.rv-fig figcaption { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.rv-media { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 12px; background: #000; }
.rv-media--none { display: flex; align-items: center; justify-content: center; min-height: 160px; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.rv-text { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-actions { margin-top: 8px; }
.rv-pick { max-height: 260px; }
.rv-propose { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.rv-sched { margin-top: 10px; }

/* Publish es de admin/owner: la cuenta de Metricool es de la organización y el VA propone en
   Review. Es solo la cara visible; navigateTo lo rebota (no está en VA_PAGES) y el backend da 403. */
html:not(.is-admin) .sidebar__item[data-page="sfw-publish"] { display: none !important; }

/* --- Modal de programar (lo abren otras secciones: Spoof) ------------------------------ */
body.pb-modal-open { overflow: hidden; }
.pb-modal [hidden] { display: none !important; }
.pb-modal {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, 0.72);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto;
}
.pb-modal__box {
  width: min(720px, 100%); display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 16px; background: #0b0b0d;
}
.pb-modal__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pb-modal__box { box-sizing: border-box; min-width: 0; }
.pb-single { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 10px; }
.pb-single__frame { min-width: 0; padding: 6px; border-radius: 12px; background: #000; cursor: zoom-in; }
.pb-single__video {
  display: block; width: 100%; height: min(44vh, 360px); min-height: 180px;
  object-fit: contain; border-radius: 8px;
}
.pb-single__enlarge { align-self: flex-start; }
.pb-single__status { overflow-wrap: anywhere; margin: 0; }

/* Línea de estado de Metricool arriba de Publish (la conexión vive en Settings). */
.pb-acct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pb-acct__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); flex: none; }
.pb-acct__dot.is-on { background: #3ecf8e; }
.pb-acct__txt { flex: 1; min-width: 0; }
#settings-metricool-body .pb-connect { margin-top: 8px; }

/* --- Schedule v2: rejilla de ficheros, pasos en tarjetas y barra fija -------------------- */
.pb-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pb-files__tools { display: flex; align-items: center; gap: 4px; margin: 2px 0 8px; }
.pb-files__tools .pb-count { margin-left: auto; }
.pb-count { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.pb-files {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px;
  max-height: 560px; overflow-y: auto; align-content: start; padding: 2px;
}
.pb-files > .pb-empty { grid-column: 1 / -1; }
.pb-tile {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: pointer;
  border-radius: 12px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02); transition: border-color .15s, background .15s;
}
.pb-tile:hover { border-color: rgba(255, 255, 255, 0.22); }
.pb-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pb-tile.is-on { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.10); }
.pb-tile__thumb {
  position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden;
  background: #111; display: flex; align-items: center; justify-content: center;
}
.pb-tile__thumb img, .pb-tile__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
.pb-tile__ph { font-size: 11px; color: rgba(255, 255, 255, 0.35); }
.pb-tile__check {
  position: absolute; top: 6px; left: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.35);
}
.pb-tile.is-on .pb-tile__check { background: var(--accent); border-color: var(--accent); }
.pb-tile.is-on .pb-tile__check::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pb-tile__play {
  position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; cursor: pointer;
}
.pb-tile__play:hover { background: rgba(0, 0, 0, 0.85); }
.pb-tile__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 2px 2px; }
.pb-tile__name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-tile__meta { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }
.pb-tile__dest { font-size: 10.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pb-quick { margin-top: 8px; }
.pb-quick .pb-chip { font-size: 11.5px; }
.pb-emojis { margin-top: 8px; min-width: 0; }
.pb-emojis[hidden] { display: none !important; }
.pb-emojis__toggle {
  width: fit-content; min-width: 0; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; color: inherit; background: transparent;
}
.pb-emojis__toggle:hover { background: rgba(255, 255, 255, 0.06); }
.pb-emojis__toggle:focus-visible, .pb-emojis__close:focus-visible,
.pb-emojis__tab:focus-visible, .pb-emoji:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pb-emojis__panel {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box;
  width: min(392px, calc(100vw - 16px)); height: min(432px, calc(100dvh - 16px));
  max-width: none; max-height: none; min-width: 0; padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px;
  background: #1b1b20; color: #f5f5f7; font: 12px/1.4 var(--font, sans-serif);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.pb-emojis__panel:popover-open { display: flex; flex-direction: column; gap: 8px; }
.pb-emojis__panel::backdrop { background: transparent; }
.pb-emojis__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.pb-emojis__tools .pb-emojis__search { flex: 1; width: 0; min-width: 0; box-sizing: border-box; }
.pb-emojis__close {
  flex: 0 0 auto; min-width: 0; padding: 7px 8px; border: 0; border-radius: 8px;
  color: rgba(255, 255, 255, 0.7); background: transparent; font: inherit; cursor: pointer;
}
.pb-emojis__close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pb-emojis__tabs {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; flex: 0 0 auto; min-width: 0;
}
.pb-emojis__tab {
  display: flex; align-items: center; justify-content: center; height: 36px;
  width: 100%; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: transparent; cursor: pointer;
}
.pb-emojis__tab:hover { background: rgba(255, 255, 255, 0.06); }
.pb-emojis__tab[aria-selected="true"] {
  background: rgba(var(--accent-rgb), 0.16); border-color: var(--accent);
}
.pb-emojis__category { flex: 0 0 auto; min-width: 0; margin: 0; font: inherit; font-weight: 600; }
.pb-emojis__status { flex: 0 0 auto; margin: 0; color: rgba(255, 255, 255, 0.55); font-size: 11.5px; }
.pb-emojis__grid {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; align-content: start;
  flex: 1 1 0; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; padding: 2px; scrollbar-gutter: stable;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.pb-emojis__sentinel { grid-column: 1 / -1; height: 1px; pointer-events: none; }
.pb-emoji {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 38px;
  min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
}
.pb-emoji__art {
  display: block; flex: 0 0 28px; width: 28px; height: 28px; pointer-events: none;
  background: url("assets/emojis/noto-3d-18.0.webp") no-repeat;
  background-size: 1792px 1764px;
}
.pb-emoji:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 480px) {
  .pb-emojis__tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pb-emojis__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.pb-steps .pb-count, .pb-modal .pb-count { display: block; text-align: right; margin-top: 4px; }

.pb-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 16, 0.94); backdrop-filter: blur(8px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.pb-bar__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pb-bar__sum { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; font-size: 13px; }
.pb-bar__meta { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.pb-bar__warn { margin: 0; font-size: 12px; color: #ff8a8a; }

.pb-day { margin: 10px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.pb-day:first-child { margin-top: 0; }
.pb-post__cap { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.pb-cal__cell.is-today { box-shadow: inset 0 0 0 1px var(--accent); }
.pb-cal__cell.is-today .pb-cal__num { color: var(--accent); font-weight: 700; }

/* --- When v2: franja diaria + selectores propios ---------------------------------------- */
.pb-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); margin-bottom: 10px; }
.pb-seg__btn { border: 0; background: transparent; color: rgba(255, 255, 255, 0.6); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 12.5px; }
.pb-seg__btn.is-on { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pb-when { display: flex; flex-direction: column; gap: 10px; }
.pb-fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .pb-fields--3 { grid-template-columns: 1fr; } }
.pb-mix { align-items: center; flex-wrap: wrap; }
.pb-mix[hidden] { display: none !important; }

.pb-picker { position: relative; }
.pb-picker__btn { width: 100%; text-align: left; cursor: pointer; }
.pb-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 252px;
  padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: #121214; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.pb-pop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.pb-pop__nav { border: 0; background: transparent; color: inherit; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.pb-pop__nav:hover { background: rgba(255, 255, 255, 0.08); }
.pb-pop__grid { display: grid; grid-template-columns: repeat(7, 32px); gap: 2px; }
.pb-pop__dow { text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, 0.4); padding: 4px 0; }
.pb-pop__day { height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-size: 12.5px; }
.pb-pop__day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.pb-pop__day:disabled { opacity: .25; cursor: default; }
.pb-pop__day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.pb-pop__day.is-on { background: var(--accent); color: #fff; }
.pb-pop__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 150px; }
.pb-pop__col { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
.pb-pop__opt { border: 0; border-radius: 8px; background: transparent; color: inherit; padding: 6px 0; cursor: pointer; font-size: 13px; }
.pb-pop__opt:hover { background: rgba(255, 255, 255, 0.08); }
.pb-pop__opt.is-on { background: var(--accent); color: #fff; }
.pb-plan__day { margin-top: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.pb-plan__day:first-child { margin-top: 0; }

/* El acento puede ser BLANCO (tema mono): lo que va encima de él se pinta oscuro. */
.pb-pop__day.is-on, .pb-pop__opt.is-on { color: #0b0b0d; font-weight: 700; }
.pb-tile.is-on .pb-tile__check::after { border-color: #0b0b0d; }
.pb-files { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 480px; }
.pb-pop__col, .pb-files { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.pb-bar .pb-plan { max-height: 34vh; }

/* Barra de "Preparing files N / M" mientras se programa fichero a fichero. */
.pb-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 10px; }
.pb-progress__fill { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }

/* Subir a Publish un vídeo o foto ya terminado (se manda tal cual). */
.pb-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.pb-upload__state { font-size: 12px; color: var(--accent); }
.pb-upload__hint { flex-basis: 100%; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.pb-card.is-drop { outline: 2px dashed var(--accent); outline-offset: -6px; }
.pb-tile__rm { align-self: flex-start; padding: 2px 0; font-size: 11.5px; }
