/* Страницы паков «Табло»: библиотека, превью, редактор */
.pk-tabs { max-width: 420px; margin: 18px 0 20px; }
.pk-filter { display: flex; gap: 10px; margin-bottom: 12px; }
.pk-filter input { flex: 1; min-width: 0; }
.pk-filter select { width: auto; }
.pk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pk-tags button { border: 0; background: var(--surface-2); color: #d4d4d8; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pk-tags button:hover { background: var(--surface-3); }
.pk-tags button.active { background: var(--accent); color: #fff; }

.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.pk-grid > .empty { grid-column: 1 / -1; }
.pk-card { display: flex; gap: 14px; background: var(--surface); border-radius: 14px; padding: 14px; text-decoration: none; color: inherit; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.pk-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pk-logo { width: 84px; height: 84px; flex: none; border-radius: 12px; overflow: hidden; background: radial-gradient(70% 70% at 50% 30%, #3a0b12, #1a1a1e); display: grid; place-items: center; font: 900 34px var(--font); color: #ffd21f; }
.pk-logo img { width: 100%; height: 100%; object-fit: cover; }
.pk-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-title { font-size: 16px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pk-meta, .pk-stats { color: var(--muted); font-size: 13px; }
.pk-stats { color: #d4d4d8; }
.pk-tagline { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pk-tagline i { font-style: normal; font-size: 11.5px; background: var(--surface-2); color: #c9c9cf; border-radius: 99px; padding: 2px 8px; }
.pk-status { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; background: var(--surface-3); color: #d4d4d8; }
.pk-status.s-pending, .pk-status.s-processing { background: var(--warn); color: #111; }
.pk-status.s-approved { background: var(--ok); color: #0b1a10; }
.pk-status.s-rejected, .pk-status.s-error { background: var(--accent); color: #fff; }
.pk-reason { font-size: 12.5px; color: #ffb4bd; }

.pk-actions { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.pk-actions .btn.big { height: 100%; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 26px 16px; text-align: center; cursor: pointer; color: var(--muted); }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--text); }
.drop b { color: var(--text); }
#uploads { display: grid; gap: 8px; margin-bottom: 14px; }
.up { background: var(--surface); border-radius: 10px; padding: 10px 14px; }
.up .top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.up .top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Превью пака */
.pv-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; margin: 18px 0 24px; }
.pv-head .pk-logo { width: 160px; height: 160px; font-size: 60px; border-radius: 18px; }
.pv-title { font: 900 clamp(28px, 4.5vw, 46px)/1.05 var(--font); letter-spacing: -.02em; margin: 6px 0 10px; }
.pv-desc { color: #d4d4d8; white-space: pre-wrap; max-width: 760px; margin: 10px 0; }
.pv-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pv-buttons .btn.liked { background: var(--accent); color: #fff; }
.pv-notice { background: var(--surface); border-left: 4px solid var(--warn); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.pv-notice.bad { border-color: var(--accent); }
.pv-notice ul { margin: 6px 0 0; padding-left: 18px; }
.review-box { background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 16px; margin-bottom: 20px; display: grid; gap: 10px; }
.review-box h3 { margin: 0; }
.review-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.review-box textarea { width: 100%; }

.pv-round { margin-bottom: 26px; }
.pv-round h2 { font-size: 22px; margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.pv-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; }
.pv-theme { background: var(--surface); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; }
.pv-theme span { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Полный вид для автора и модерации */
.fq-theme { background: var(--surface); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.fq-theme > summary { padding: 12px 16px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.fq-theme > summary::-webkit-details-marker { display: none; }
.fq-theme > summary span { color: var(--muted); font-weight: 600; font-size: 13px; }
.fq-theme[open] > summary { border-bottom: 1px solid var(--line); }
.fq { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fq:last-child { border-bottom: 0; }
.fq-price { font: 900 22px var(--font); color: #ffd21f; }
.fq-price small { display: block; font: 800 10.5px var(--font); text-transform: uppercase; color: var(--accent); letter-spacing: .05em; margin-top: 4px; }
.fq-items { display: grid; gap: 6px; align-content: start; }
.fq-items img, .fq-items video { max-width: 100%; max-height: 220px; border-radius: 8px; background: #000; }
.fq-items audio { width: 100%; }
.fq-items iframe { width: 100%; height: 220px; border: 0; border-radius: 8px; background: #000; }
.fq-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fq-right { color: var(--ok); font-weight: 700; }
.fq-wrong { color: #ff8a98; font-size: 13px; }
.fq-note { color: var(--muted); font-size: 13px; }
.fq-opts { display: grid; gap: 4px; }
.fq-opts div { background: var(--surface-2); border-radius: 6px; padding: 4px 8px; font-size: 14px; }
.fq-opts div.ok { outline: 2px solid var(--ok); }
.fq-pin { position: relative; display: inline-block; }
.fq-pin i { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--ok); box-shadow: 0 0 0 2px #000; }

@media (max-width: 760px) {
  .pk-actions { grid-template-columns: 1fr; }
  .pv-head { grid-template-columns: 1fr; }
  .pv-head .pk-logo { width: 110px; height: 110px; }
  .fq { grid-template-columns: 1fr; }
}
.review-box .row { justify-content: flex-start; margin: 0; }
.review-box .error:empty, #err:empty { display: none; }

/* Светлая тема */
:root[data-theme="light"] :is(.pk-tags button, .pk-stats, .pk-tagline i, .pv-desc) { color: var(--soft); }
:root[data-theme="light"] .pk-tags button.active { color: #fff; }
:root[data-theme="light"] .pk-logo { --text: #fff; color: #fff; }
:root[data-theme="light"] :is(.pk-reason, .fq-wrong) { color: #c0162b; }
:root[data-theme="light"] .fq-price { color: #a86f00; }
