/* Хаб /editors: заголовок + две колонки кнопок */

.editors-hub-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) clamp(16px, 5vw, 48px)
    calc(clamp(72px, 10vh, 100px) + clamp(20px, 3vh, 36px));
  box-sizing: border-box;
}

.editors-hub-title {
  margin: 0 0 clamp(10px, 2vh, 18px);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
}

.editors-hub-notice {
  margin: 0 0 clamp(20px, 3vh, 28px);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(178, 48, 204, 0.35);
  background: rgba(178, 48, 204, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.45;
}

.editors-hub-notice__link {
  margin-left: 6px;
  color: #e8b4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editors-hub-notice__link:hover {
  color: #fff;
}

.editors-hub-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
  align-items: start;
}

@media (max-width: 640px) {
  .editors-hub-columns {
    grid-template-columns: 1fr;
  }
}

.editors-hub-column__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
}

.editors-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editors-hub-tool-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(178, 48, 204, 0.12) 100%);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.editors-hub-tool-btn:hover {
  border-color: rgba(178, 48, 204, 0.75);
  box-shadow: 0 0 0 1px rgba(178, 48, 204, 0.25), 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
  color: #fff;
}

.editors-hub-tool-btn:focus-visible {
  outline: none;
  border-color: rgba(200, 140, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(178, 48, 204, 0.35);
}

.editors-hub-tool-btn:active {
  transform: translateY(0);
}

/* Деталь редактора: Real-ESRGAN (размер + лицо) и подсказка «только Telegram» для видео */

.editors-esrgan-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.editors-esrgan-legend {
  display: block;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  color: #fff;
}

.editors-esrgan-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.editors-esrgan-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.editors-esrgan-size-pill:hover {
  border-color: rgba(178, 48, 204, 0.65);
  background: rgba(178, 48, 204, 0.15);
}

.editors-esrgan-size-input:focus-visible + .editors-esrgan-size-pill {
  outline: 2px solid rgba(200, 140, 255, 0.95);
  outline-offset: 2px;
}

.editors-esrgan-size-input:checked + .editors-esrgan-size-pill {
  border-color: rgba(178, 48, 204, 0.9);
  background: rgba(178, 48, 204, 0.35);
  color: #fff;
}

.editors-esrgan-face {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: clamp(13px, 2.2vw, 15px);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  user-select: none;
}

.editors-esrgan-face input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #b230cc;
  flex-shrink: 0;
}

.editors-hub-telegram-only {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 255, 0.35);
  background: rgba(70, 110, 220, 0.14);
  color: rgba(236, 242, 255, 0.95);
  font-size: clamp(13px, 2.3vw, 15px);
  line-height: 1.45;
  text-align: center;
}

/* Чип «Доступно» (дневной лимит бесплатных генераций картинок) */

.template-detail-chip--editors-avail .template-detail-chip__value {
  font-size: clamp(12px, 2.1vw, 14px);
  font-weight: 500;
  line-height: 1.35;
}

.editors-hub-avail-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.editors-hub-avail-line {
  display: block;
  color: rgba(255, 255, 255, 0.92);
}

.template-price-popover__line--tariffs-link {
  margin-top: 6px;
}

.editors-hub-tariffs-link {
  color: #e8b4ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editors-hub-tariffs-link:hover {
  color: #fff;
}

/* Превью в левой колонке (обёртка вместо прямых img/video у .template-detail-preview) */
.template-detail-preview .editors-preview-media {
  display: block;
  width: 100%;
  min-width: 0;
}

.template-detail-preview .editors-preview-media .editors-preview-asset,
.template-detail-preview .editors-preview-media img,
.template-detail-preview .editors-preview-media video {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(72vh, 760px);
  object-fit: cover;
  display: block;
}

.editors-hub-avail-used-prefix {
  margin-right: 0.25em;
}

/* Результат веб-редактора: превью + скачать */

.editors-hub-result-wrap {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-width: 100%;
  box-sizing: border-box;
}

.editors-hub-result-caption {
  margin: 0;
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.editors-hub-result-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.editors-hub-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

/* Результат вместо превью (левая колонка) */
.editors-hub-preview-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.editors-hub-preview-result__caption {
  margin: 0;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.editors-hub-preview-result__img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(72vh, 760px);
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.editors-hub-download-btn--preview {
  align-self: flex-start;
  margin-top: 0;
}
