/* ════════════════════════════════════════════════════════════════════
   VeoSuno · Создать фото — стили раздела. Всё внутри корневого класса .vsp.
   Токены цветов (--bg, --card, --line…) и общие кнопки (.cf-create, .pill, .iconbtn) — из каркаса h1.css.
   Выделения — как в музыке: нажатый фильтр — фон var(--line), значок акцентный; выбранное — розовый оттенок и градиент.
   Разделы: 1. Каркас · 2. Форма · 3. Всплывающие списки · 4. Библиотека и лента · 5. Карточка генерации
            6. Выбор модели · 7. Выбор из моих фото · 8. Панель картинки · 9. Телефон · 10. Прототип
   ════════════════════════════════════════════════════════════════════ */

/* ══════════ 1. КАРКАС ══════════ */
#content {
  min-width: 0;
}

/* страница не шире окна */
.vsp {
  flex: 1;
  min-width: 0;
  display: flex;
  height: 100%;
  min-height: 0;
  position: relative;
  color: var(--fg);
  font-family: var(--font);
}

.vsp button {
  font-family: inherit;
  cursor: pointer;
}

.vsp :focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fg) 55%, transparent);
  outline-offset: 2px;
}

.vsp textarea:focus-visible,
.vsp input:focus-visible {
  outline: none;
}

.vsp-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: none;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.vsp-ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-ic:hover,
.vsp-ic[aria-expanded=true] {
  background: var(--line);
  color: var(--fg);
}

.vsp-ic.lg {
  width: 36px;
  height: 36px;
}

.vsp-ic.lg svg {
  width: 18px;
  height: 18px;
}

.vsp-ic[aria-pressed=true] {
  color: var(--fg);
}

#vspSaveBtn[aria-pressed=true] svg {
  fill: currentColor;
}

/* ══════════ 2. ФОРМА ══════════ */
.vsp-form {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-height: 0;
  background: var(--bg);
}

.vsp-mhead {
  display: none;
}

.vsp-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

/* модель */
.vsp-model {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--fg);
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}

.vsp-model:hover,
.vsp-model[aria-expanded=true] {
  border-color: var(--hover-line);
  box-shadow: var(--hover-lift);
}

.vsp-mic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  background: var(--line);
}

.vsp-model .vsp-mic {
  background: var(--grad);
}

.vsp-model-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vsp-model-t b {
  font-size: 15px;
}

.vsp-model-t small {
  font-size: 12px;
  color: var(--muted);
}

.vsp-chev {
  color: var(--muted);
  transition: transform .2s;
}

.vsp-model[aria-expanded=true] .vsp-chev {
  transform: rotate(180deg);
}

/* блок с подписью (референсы) */
.vsp-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vsp-sec-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
  padding: 0 2px;
}

.vsp-sec-h small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.vsp-refs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vsp-ref,
.vsp-ref-add {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
}

.vsp-ref {
  overflow: hidden;
  background: var(--card) center/cover;
}

.vsp-ref.over {
  opacity: .35;
}

.vsp-ref[data-refview] {
  cursor: zoom-in;
}

.vsp-ref:focus-visible {
  outline: 2px solid var(--sel);
  outline-offset: 2px;
}

/* просмотр референса крупно */
.vsp-rvm .ssheet {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  padding: 16px;
}

.vsp-rv-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  min-width: 0;
}

.vsp-rv-h span:not(.grow) {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vsp-rv-h small {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.vsp-rv-pic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--media-bg);
  border-radius: 14px;
  min-height: 200px;
}

.vsp-rv-pic img {
  display: block;
  max-width: 100%;
  max-height: min(66vh, 640px);
  border-radius: 14px;
  object-fit: contain;
}

.vsp-rv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 16, 18, .75);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.vsp-rv-nav.prev {
  left: 10px;
}

.vsp-rv-nav.next {
  right: 10px;
}

.vsp-rv-nav:disabled {
  opacity: .3;
  cursor: default;
}

.vsp-rv .cm-row {
  margin-top: 14px;
}

.vsp-ref button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .65);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity .15s;
}

.vsp-ref:hover button,
.vsp-ref button:focus-visible {
  opacity: 1;
}

.vsp-ref i {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
}

.vsp-ref-add {
  border: 1.5px dashed var(--line2);
  background: none;
  color: var(--fg2);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  transition: border-color .2s, color .2s;
}

.vsp-ref-add:hover,
.vsp-refs-row.drag .vsp-ref-add {
  border-color: color-mix(in srgb, var(--fg) 50%, transparent);
  color: var(--fg);
}

.vsp-ref-add:disabled {
  opacity: .4;
  cursor: default;
}

.vsp-refs-warn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg2);
}

.vsp-refs-warn svg {
  color: var(--warn);
  flex-shrink: 0;
}

.vsp-refs-warn .pill {
  margin-left: auto;
  flex-shrink: 0;
}

/* промпт — та же карточка, что в музыке */
.vsp-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 10px 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid transparent;
  transition: border-color .2s, box-shadow .25s;
}

.vsp-card:hover {
  border-color: var(--hover-line);
  box-shadow: var(--hover-lift);
}

.vsp-card:focus-within {
  border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(125deg, #DE642B, #E54270 55%, #A23BF5) border-box;
}

.vsp-card.invalid,
.vsp-card.invalid:focus-within {
  background: var(--card);
  border-color: var(--bad);
  animation: vsp-shake .4s;
}

.vsp-card-h {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
}

.vsp-card-h label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
}

.vsp-ta-wrap {
  position: relative;
  padding-right: 4px;
}

.vsp-card textarea {
  width: 100%;
  display: block;
  min-height: 80px;
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
  background: none;
  border: 0;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  padding: 0 22px 0 0;
  caret-color: var(--accent);
}

.vsp-ph {
  position: absolute;
  inset: 0 22px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  pointer-events: none;
  transition: opacity .3s;
}

.vsp-ph kbd {
  font: 600 11px var(--font);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  color: var(--fg2);
  vertical-align: 1px;
}

.vsp-ph.out {
  opacity: 0;
}

.vsp-clear {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.vsp-clear:hover {
  background: var(--line2);
  color: var(--fg);
}

.vsp-clear {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.vsp-card:hover .vsp-clear,
.vsp-card:focus-within .vsp-clear {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .vsp-clear {
    opacity: 1;
    pointer-events: auto;
  }
}

.vsp-card-f {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.vsp-tbtn {
  height: 30px;
  padding: 0 11px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, color .15s;
}

.vsp-tbtn:hover {
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
  color: var(--fg);
}

.vsp-tbtn.ai svg {
  color: #E54270;
}

.vsp-tbtn:disabled {
  opacity: .5;
  cursor: default;
}

.vsp-len {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* сохранённые промпты — список поверх поля (как в музыке) */
.vsp-lib-pop {
  position: absolute;
  right: 8px;
  top: 50px;
  z-index: 25;
  width: min(400px, calc(100% - 16px));
  max-height: 380px;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--card) 98%, transparent);
  border: 1px solid var(--line2);
  border-radius: 18px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 60%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: vsp-libin .2s cubic-bezier(.22, 1, .36, 1);
  transform-origin: top right;
}

@keyframes vsp-libin {
  from {
    opacity: 0;
    transform: scale(.96) translateY(-4px);
  }
}

.vsp-lib-pop[hidden] {
  display: none;
}

.vsp-lib-pop .cf-lib-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 0 14px;
  height: 40px;
  border-radius: 100px;
  background: var(--line);
  color: var(--muted);
  flex-shrink: 0;
}

.vsp-lib-pop .cf-lib-h input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.vsp-lib-list {
  overflow-y: auto;
  padding: 0 6px 8px;
}

.vsp-lib-pop .cf-lib-i .cf-ic {
  width: 28px;
  height: 28px;
}

.vsp-lib-pop .cf-lib-i [data-libdel]:hover {
  color: var(--bad);
  background: color-mix(in srgb, var(--bad) 14%, transparent);
}

.vsp-lib-empty {
  padding: 14px 14px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* настройки одной строкой */
.vsp-opts {
  position: relative;
  display: flex;
  gap: 8px;
}

.vsp-stepper,
.vsp-opt {
  height: 44px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid transparent;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  transition: border-color .2s;
}

.vsp-stepper {
  padding: 0 4px;
  gap: 2px;
}

.vsp-stepper button {
  width: 30px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg2);
  font-size: 18px;
  line-height: 1;
}

.vsp-stepper button:hover:not(:disabled) {
  background: var(--line);
  color: var(--fg);
}

.vsp-stepper button:disabled {
  opacity: .3;
  cursor: default;
}

.vsp-stepper b {
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.vsp-opt {
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
}

.vsp-opt:hover,
.vsp-opt[aria-expanded=true] {
  border-color: var(--hover-line);
  box-shadow: var(--hover-lift);
}

.vsp-opt svg {
  color: var(--fg2);
}

.vsp-frame {
  display: inline-block;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  color: var(--fg2);
  flex-shrink: 0;
}

.vsp-frame.auto {
  border-style: dashed;
}

/* ══════════ 3. ВСПЛЫВАЮЩИЕ СПИСКИ (пропорции, разрешение) ══════════ */
.vsp-pop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  background: color-mix(in srgb, var(--card) 98%, transparent);
  border: 1px solid var(--line2);
  border-radius: 16px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 60%, transparent);
  animation: vsp-in .16s ease-out;
}

.vsp-pop button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 13.5px;
  text-align: left;
}

.vsp-pop button:hover {
  background: var(--line);
  color: var(--fg);
}

.vsp-pop button[aria-selected=true] {
  background: var(--line);
  color: var(--fg);
}

.vsp-pop button b {
  color: var(--fg);
  font-weight: 600;
  min-width: 34px;
}

.vsp-pop button .vsp-frame-box {
  width: 22px;
  display: inline-flex;
  justify-content: center;
}

.vsp-pop button .r {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

.vsp-pop .h {
  padding: 8px 12px 4px;
  font-size: 12px;
  color: var(--muted);
}

@keyframes vsp-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* низ формы */
/* низ формы и низ панели картинки — одной высоты: кнопки «Создать», «Скачать» и профиль слева на одной линии
   (86 px = карточка профиля в левом меню 62 px + отступы; меню — общий каркас h1) */
.vsp {
  --foot-h: 86px;
}

.vsp-foot {
  flex-shrink: 0;
  height: var(--foot-h);
  padding: 0 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.vsp-create {
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vsp-create.need-pay {
  background: linear-gradient(135deg, #A23BF5, #E0457B);
}

@keyframes vsp-shake {

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

/* ══════════ 4. БИБЛИОТЕКА И ЛЕНТА ══════════ */
.vsp-lib {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  container-type: inline-size;
}

.vsp-lhead {
  padding: 12px 16px 0;
  flex-shrink: 0;
}

.vsp-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vsp-tabs::-webkit-scrollbar {
  display: none;
}

.vsp-tabs button {
  height: 34px;
  padding: 0 14px;
  border-radius: 100px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vsp-tabs button:hover {
  color: var(--fg);
}

.vsp-tabs button[aria-selected=true] {
  background: var(--card);
  color: var(--fg);
  font-weight: 600;
}

.vsp-gen-n {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  background: var(--line2);
}

.vsp-gen-n::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: vsp-blink 1s infinite;
}

@keyframes vsp-blink {
  50% {
    opacity: .25;
  }
}

.vsp-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.vsp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--card);
  color: var(--muted);
  flex: 1 1 140px;
  max-width: 320px;
  min-width: 120px;
}

.vsp-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}

.vsp .vsp-chip {
  height: 36px;
  flex-shrink: 0;
  background: none;
  border-color: var(--line2);
  color: var(--fg2);
}

.vsp .vsp-chip:hover {
  background: var(--hover);
  color: var(--fg);
}

.vsp .vsp-chip[aria-pressed=true] {
  background: var(--line);
  border-color: transparent;
  color: var(--fg);
}

.vsp .vsp-chip[aria-pressed=true] svg {
  color: var(--accent);
}

#vspFFav[aria-pressed=true] svg {
  fill: currentColor;
}

.vsp-logo {
  width: 58%;
  height: 58%;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.vsp .vsp-selbtn[aria-pressed=true] {
  background: var(--grad);
  color: var(--fg);
}

.vsp .vsp-selbtn[aria-pressed=true] svg {
  color: var(--fg);
}

.vsp-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  flex-shrink: 0;
}

.vsp-size input {
  width: 76px;
  accent-color: color-mix(in srgb, var(--muted) 85%, var(--bg));
}

@container (max-width: 860px) {
  .vsp .vsp-chip .t {
    display: none;
  }

  .vsp .vsp-chip:not(#vspFModel) {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

.vsp-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 24px;
  scrollbar-width: thin;
}

.vsp-group-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg2);
  padding: 14px 2px 8px;
}

.vsp-group-h small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.vsp-group:first-child .vsp-group-h {
  padding-top: 2px;
}

.vsp-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* выбор нескольких — внизу ленты, как в музыке */
.vsp-selbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 8px 8px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line2);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--shade) 55%, transparent);
  font-size: 13px;
  animation: vsp-in .18s ease-out;
}

.vsp.selecting .vsp-feed {
  padding-bottom: 80px;
}

/* плитка работы: при наведении — выбор, избранное, скачать, удалить */
.vsp-tile {
  position: relative;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}

/* «рука», а не лупа — решение 20.10.2026 */
.vsp-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1), opacity .35s;
}

.vsp-tile img.loading {
  opacity: 0;
}

.vsp-tile:hover img {
  transform: scale(1.02);
}

.vsp-ov {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent);
  opacity: 0;
  transition: opacity .2s;
}

.vsp-tile:hover .vsp-ov,
.vsp-tile:focus-visible .vsp-ov,
.vsp-tile:focus-within .vsp-ov {
  opacity: 1;
}

.vsp-tb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 16, 18, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background .15s;
}

.vsp-tb:hover {
  background: rgba(16, 16, 18, .9);
}

.vsp-tb.on {
  color: var(--accent);
}

.vsp-tb.on svg {
  fill: currentColor;
}

.vsp-tb.danger:hover {
  color: #FF6B6B;
}

.vsp-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  background: rgba(0, 0, 0, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: transparent;
}

.vsp.selecting .vsp-ov {
  opacity: 1;
  background: none;
}

.vsp.selecting .vsp-tile:not(:hover) .vsp-tb {
  visibility: hidden;
}

.vsp.selecting .vsp-tile {
  cursor: pointer;
}

.vsp-tile.sel {
  box-shadow: inset 0 0 0 2px rgba(224, 69, 123, .75);
}

.vsp-tile.sel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(224, 69, 123, .12);
  pointer-events: none;
}

.vsp-tile.sel .vsp-check {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-media);
}

.vsp-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  height: 20px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.vsp-badge.new {
  left: auto;
  right: 8px;
  background: #2BDE90;
  color: #101012;
}

/* избранное видно и без наведения — оранжевая звезда в углу */
.vsp-favmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 16, 18, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .15s;
}

.vsp-tile:hover .vsp-favmark,
.vsp-tile:focus-within .vsp-favmark {
  opacity: 0;
}

/* пустые состояния и вкладки-заглушки */
.vsp-empty {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--fg2);
}

.vsp-empty b {
  font-size: 18px;
  color: var(--fg);
}

.vsp-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.vsp-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 24px;
  scrollbar-width: thin;
}

.vsp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.vsp-cardx {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vsp-cardx b {
  font-size: 15px;
}

.vsp-cardx p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.vsp-cardx .soon {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--line);
  color: var(--fg2);
}

/* ══════════ 5. КАРТОЧКА ГЕНЕРАЦИИ ══════════ */
.vsp-tile.gen {
  cursor: default;
  background: linear-gradient(110deg, var(--gen-a) 30%, var(--gen-b) 45%, var(--gen-a) 60%) 0 0 / 300% 100%;
  animation: vsp-shim 1.8s linear infinite;
}

@keyframes vsp-shim {
  to {
    background-position: -150% 0;
  }
}

.vsp-gen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--fg2);
}

.vsp-gen b {
  font-size: 13px;
  color: var(--fg);
}

.vsp-gen-bar {
  width: min(140px, 70%);
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  overflow: hidden;
}

.vsp-gen-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #DE642B, #E54270, #A23BF5);
  transition: width .9s linear;
}

.vsp-gen-m {
  font-size: 11px;
  color: var(--muted);
}

.vsp-tile.gen.queue .vsp-gen-bar i {
  width: 6% !important;
  animation: vsp-blink 1.2s infinite;
}

.vsp-tile.gen.bad,
.vsp-tile.gen.mod {
  animation: none;
  background: var(--gen-fail);
  box-shadow: inset 0 0 0 1px var(--line);
}

.vsp-gen .refund {
  font-size: 11.5px;
  color: var(--ok);
}

.vsp-gen .pill {
  margin-top: 2px;
}

.vsp-tile.gen .vsp-tb {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gen-btn);
  color: var(--fg);
}

/* на карточке генерации нет фото — кнопка по теме */
.vsp-tile.gen .vsp-tb:hover {
  background: var(--gen-btn-hover);
}

/* ══════════ 6. ВЫБОР МОДЕЛИ (по образцу Magnific: строки, фильтры-списки, группы по провайдерам) ══════════ */
.vsp-picker {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--shade) 45%, transparent);
}

#vspPicker .vsp-pk {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: calc(var(--vsp-pk-left, 440px));
  width: min(860px, calc(100vw - var(--vsp-pk-left, 440px) - 16px));
}

.vsp-pk {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--shade) 60%, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vsp-in .16s ease-out;
}

.vsp-pk-s {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 14px 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--muted);
  flex-shrink: 0;
}

.vsp-pk-s input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.vsp-pk-f {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.vsp-pk-f .pill {
  height: 34px;
  background: var(--card);
  border-color: var(--edge);
  color: var(--fg2);
  font-size: 13px;
}

.vsp-pk-f .pill:hover {
  color: var(--fg);
  border-color: var(--hover-line);
}

.vsp-pk-f .pill.on {
  background: var(--line);
  border-color: transparent;
  color: var(--fg);
}

.vsp-pk-f .pill.on svg:last-child {
  color: var(--accent);
}

.vsp-pk-f .clr {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  padding: 0 6px;
}

.vsp-pk-f .clr:hover {
  color: var(--fg);
}

.vsp-pk {
  position: relative;
}

#vspPicker .vsp-pk {
  position: absolute;
}

.vsp-pk-dd {
  position: absolute;
  z-index: 5;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: color-mix(in srgb, var(--card) 98%, transparent);
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 60%, transparent);
  animation: vsp-in .14s ease-out;
}

.vsp-pk-dd button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 13.5px;
  text-align: left;
}

.vsp-pk-dd button:hover,
.vsp-pk-dd button:focus-visible {
  background: var(--line);
  color: var(--fg);
  outline: none;
}

.vsp-pk-dd button[aria-selected=true] {
  color: var(--fg);
}

.vsp-pk-dd button svg {
  color: var(--accent);
}

.vsp-pk-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 16px;
  scrollbar-width: thin;
}

.vsp-pk-g {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 12px 6px;
}

.vsp-mr {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: left;
}

.vsp-mr:hover {
  background: var(--hover);
}

.vsp-mr[aria-current=true] {
  background: var(--line);
}

.vsp-mr .vsp-mic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
}

.vsp-mr-n {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 0 1 300px;
}

.vsp-mr-n b {
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.vsp-mr-n small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-mr-tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.vsp-tag {
  height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--card);
  color: var(--fg2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.vsp-mr:hover .vsp-tag,
.vsp-mr[aria-current=true] .vsp-tag {
  background: var(--line2);
}

.vsp-tag.price {
  color: var(--fg);
  font-weight: 600;
}

.vsp-tag.warn {
  color: var(--warn);
}

.vsp-new {
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(224, 69, 123, .16);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.vsp-prov {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: left;
  font-size: 14.5px;
}

.vsp-prov:hover {
  background: var(--hover);
}

.vsp-prov .vsp-mic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
}

.vsp-prov small {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.vsp-prov svg {
  color: var(--muted);
  transition: transform .2s;
}

.vsp-prov[aria-expanded=true] svg {
  transform: rotate(180deg);
}

/* внутри семейства значок не повторяем — он уже в заголовке; названия моделей — ровно под названием семейства (24.11) */
.vsp-prov-b {
  padding-left: 42px;
}

.vsp-prov-b .vsp-mic {
  display: none;
}

/* выбранная модель — рамка цвета --sel, как выбранное в ките, а не только серый фон: его путали с нажатием (24.11) */
.vsp-mr[aria-current=true] {
  box-shadow: inset 0 0 0 1.5px var(--sel);
}

.vsp-pk-none {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ══════════ 7. ВЫБОР ИЗ МОИХ ФОТО ══════════ */
.vsp-picker.center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vsp-lp {
  width: 820px;
  max-width: 100%;
  height: min(720px, 88vh);
}

.vsp-lp-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px 20px;
}

.vsp-lp-h b {
  font-size: 17px;
}

.vsp-lp-h small {
  font-size: 13px;
  color: var(--muted);
}

.vsp-lp-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 12px;
}

.vsp-lp-grid .vsp-tile {
  cursor: pointer;
}

.vsp-lp-grid .vsp-ov {
  opacity: 1;
  background: none;
}

.vsp-lp-f {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.vsp .vsp-btn {
  width: auto;
  height: 40px;
  min-width: 120px;
  padding: 0 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsp-btn:not(.cf-create) {
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
}

.vsp-btn:not(.cf-create):hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
}

/* ══════════ 8. ПАНЕЛЬ КАРТИНКИ ══════════ */
.vsp-view {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  background: var(--bg);
  animation: vsp-fade .18s ease-out;
}

@keyframes vsp-fade {
  from {
    opacity: 0;
  }
}

.vsp-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vsp-stage-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  flex-shrink: 0;
}

.vsp-v-n {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.vsp-zoom {
  min-width: 54px;
  height: 30px;
  border-radius: 100px;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.vsp-zoom:hover {
  background: var(--line);
  color: var(--fg);
}

.vsp-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px 12px;
  touch-action: pan-y;
}

.vsp-canvas.zoomed {
  cursor: grab;
  touch-action: none;
}

.vsp-canvas.grab {
  cursor: grabbing;
}

.vsp-pic {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center;
  transition: transform .2s ease-out;
}

.vsp-canvas.grab .vsp-pic {
  transition: none;
}

.vsp-pic img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.vsp-cmp {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 8px;
  clip-path: inset(0 50% 0 0);
}

.vsp-cmp img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.vsp-cmp-l {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  cursor: ew-resize;
}

.vsp-cmp-l i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.vsp-cmp-t {
  position: absolute;
  top: 10px;
  height: 22px;
  padding: 0 9px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .7);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
}

.vsp-cmp-t.a {
  left: 10px;
}

.vsp-cmp-t.b {
  right: 10px;
}

.vsp-cmpwrap {
  position: absolute;
  inset: 0;
}

.vsp-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -28px;
  border-radius: 50%;
  border: 0;
  background: rgba(31, 31, 33, .85);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, opacity .15s;
}

.vsp-nav:hover {
  background: var(--line2);
}

.vsp-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.vsp-nav.prev {
  left: 12px;
}

.vsp-nav.next {
  right: 12px;
}

.vsp-vers {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 14px;
  flex-shrink: 0;
}

.vsp-ver {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  position: relative;
}

.vsp-ver img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-ver[aria-current=true] {
  border-color: var(--sel);
}

.vsp-ver span {
  position: absolute;
  left: 3px;
  bottom: 3px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .65);
}

.vsp-side {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--panel);
  min-height: 0;
}

.vsp-side-tabs {
  display: flex;
  gap: 4px;
  margin: 12px;
  padding: 3px;
  border-radius: 100px;
  background: var(--bg);
  flex-shrink: 0;
}

.vsp-side-tabs button {
  flex: 1;
  height: 32px;
  border-radius: 100px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
}

.vsp-side-tabs button[aria-selected=true] {
  background: var(--line);
  color: var(--fg);
  font-weight: 600;
}

.vsp-side-b {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.vsp-acts {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vsp-acts .vsp-ic {
  width: 36px;
  height: 36px;
  background: var(--card);
}

.vsp-acts .vsp-ic:hover {
  background: var(--line);
}

.vsp-acts .vsp-ic.on {
  color: var(--accent);
}

.vsp-acts .vsp-ic.on svg {
  fill: currentColor;
}

.vsp-x {
  margin-left: 6px;
}

.vsp-side-f {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.vsp-side-f:has(> .vsp-dlg),
.vsp-side-f:has(> .vsp-vrep) {
  height: var(--foot-h);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vsp-vrep {
  height: 48px;
}

.vsp-side-f:empty {
  display: none;
}

.vsp-dl {
  width: 100%;
  height: 48px;
  border-radius: 100px;
  border: 0;
  background: var(--sel);
  color: var(--sel-ink);
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vsp-dl:hover {
  background: var(--sel-hover);
}

/* «Скачать» с выбором формата (как у Magnific): кнопка + стрелка, формат запоминается */
.vsp-side-f {
  position: relative;
}

.vsp-dlg {
  display: flex;
  gap: 2px;
}

.vsp-dlg .vsp-dl {
  border-radius: 100px 0 0 100px;
}

.vsp-dl span {
  font-weight: 700;
}

.vsp-dl-c {
  width: 48px;
  flex-shrink: 0;
  height: 48px;
  border: 0;
  border-radius: 0 100px 100px 0;
  background: var(--sel);
  color: var(--sel-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsp-dl-c:hover,
.vsp-dl-c[aria-expanded=true] {
  background: var(--sel-hover);
}

.vsp-dl-c[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.vsp-dlpop {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% - 12px);
  z-index: 5;
  padding: 16px;
  border-radius: 16px;
  background: var(--sheet);
  border: 1px solid var(--line2);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--shade) 50%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vsp-dlpop[hidden] {
  display: none;
}

.vsp-fmts {
  display: flex;
  gap: 18px;
}

.vsp-fmts button {
  border: 0;
  background: none;
  color: var(--fg2);
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vsp-fmts button i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  transition: border .15s;
}

.vsp-fmts button[aria-checked=true] {
  color: var(--fg);
}

.vsp-fmts button[aria-checked=true] i {
  border: 5px solid var(--sel);
}

.vsp-dlpop .vsp-meta {
  margin: 0;
}

.vsp-dlpop .vsp-dl {
  border-radius: 100px;
}

.vsp .vsp-up {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  gap: 8px;
  white-space: nowrap;
  font-size: 13.5px;
}

.vsp-up svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.vsp-up .r {
  color: var(--fg2);
  font-weight: 500;
  margin-left: 4px;
}

/* значок модели на плитке: слева внизу при наведении, название — в подсказке */
.vsp-tm {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 16, 18, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}

.vsp-tm .vsp-logo {
  width: 14px;
  height: 14px;
}

.vsp-tile:hover .vsp-tm,
.vsp-tile:focus-within .vsp-tm,
.vsp-tile:focus-visible .vsp-tm {
  opacity: 1;
}

.vsp-tm::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: #232326;
  color: var(--on-media);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}

.vsp-tm:hover::after {
  opacity: 1;
  transform: none;
}

.vsp-bdgs {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  pointer-events: none;
  transition: left .2s;
}

.vsp-bdgs:empty {
  display: none;
}

.vsp-bdgs .vsp-badge {
  position: static;
}

.vsp-badge.ic {
  width: 20px;
  padding: 0;
  justify-content: center;
}

.vsp-badge.up {
  color: #cfe3ff;
}

.vsp-tile:hover .vsp-bdgs.sh,
.vsp-tile:focus-within .vsp-bdgs.sh {
  left: 40px;
}

/* место под значок модели; у загруженных его нет */
.vsp.selecting .vsp-tm {
  display: none;
}

.vsp-side-f .vsp-edit-card {
  background: var(--card);
}

.vsp-acts .dl {
  margin-left: auto;
  height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  border: 0;
  background: var(--sel);
  color: var(--sel-ink);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vsp-acts .dl:hover {
  background: var(--sel-hover);
}

.vsp-blk {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vsp-blk-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
}

.vsp-prompt {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg);
  overflow-wrap: anywhere;
  max-height: 40vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.vsp-prompt.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none;
}

/* карточка промпта в панели картинки (как у Magnific): значки «развернуть» и «копировать», клик по тексту — копирует */
.vsp-pcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 8px 12px 14px;
  border-radius: 12px;
  background: var(--card);
  transition: box-shadow .2s;
}

.vsp-pcard .vsp-blk-h {
  gap: 2px;
  color: var(--fg);
}

.vsp-pcard .vsp-blk-h .grow {
  flex: 1;
}

.vsp-pcard .vsp-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.vsp-pcard .vsp-ic:hover {
  background: var(--tint-2);
  color: var(--fg);
}

.vsp-pcard .vsp-prompt {
  padding-right: 6px;
  color: var(--fg2);
  cursor: copy;
  border-radius: 6px;
  transition: color .15s;
}

.vsp-pcard .vsp-prompt:hover {
  color: var(--fg);
}

.vsp-pcard.copied {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent);
}

.vsp-pcard.copied [data-va=copy].vsp-ic {
  color: var(--ok);
}

/* подсказка над значком */
.vsp-tip {
  position: relative;
}

.vsp-tip::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--tip-bg);
  color: var(--tip-fg);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
  z-index: 3;
}

.vsp-tip:hover::after,
.vsp-tip:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* ручка высоты поля промпта — как в музыке */
.vsp-grip {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 44px;
  height: 10px;
  margin-left: -22px;
  cursor: ns-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vsp-grip::before {
  content: '';
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: var(--line2);
  transition: background .15s;
}

.vsp-grip:hover::before,
.vsp-grip:focus-visible::before {
  background: var(--muted);
}

/* избранные модели */
.vsp-mr {
  cursor: pointer;
}

.vsp-mstar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s, color .15s;
}

.vsp-mr:hover .vsp-mstar,
.vsp-mr:focus-within .vsp-mstar,
.vsp-mstar:focus-visible,
.vsp-mstar.on {
  opacity: 1;
}

.vsp-mstar:hover {
  color: var(--fg);
  background: var(--line2);
}

.vsp-mstar.on {
  color: var(--accent);
}

.vsp-mstar.on svg {
  fill: currentColor;
}

@media (hover: none) {
  .vsp-mstar {
    opacity: 1;
  }
}

.vsp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vsp-chips span {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
}

.vsp-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.vsp-use {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vsp-use button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 14px;
  text-align: left;
}

.vsp-use button:hover {
  background: var(--hover);
}

.vsp-use button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--fg2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-use button .r {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}

.vsp-edit-card {
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vsp-edit-card textarea {
  width: 100%;
  min-height: 84px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: none;
}

.vsp-edit-card textarea::placeholder {
  color: var(--muted);
}

.vsp-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vsp-tools-l .soon {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--line);
  color: var(--fg2);
}

/* ══════════ 9. ПЛАНШЕТ И ТЕЛЕФОН (≤ 900 px) ══════════ */
@media (max-width: 1200px) and (min-width: 901px) {
  .vsp-form {
    width: 360px;
  }

  #vspPicker .vsp-pk {
    --vsp-pk-left: 380px;
  }

  .vsp-side {
    width: 300px;
  }
}

@media (max-width: 900px) {
  .vsp-form {
    position: fixed;
    inset: 0;
    z-index: 80;
    width: auto;
    border: 0;
    transform: translateY(102%);
    transition: transform .28s cubic-bezier(.3, .7, .3, 1);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .vsp.form-open .vsp-form {
    transform: none;
  }

  .vsp-mhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
  }

  .vsp-mhead b {
    font-size: 16px;
  }

  .vsp-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .vsp-lhead {
    display: none;
  }

  .vsp-tools {
    padding: 10px 12px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .vsp-tools::-webkit-scrollbar {
    display: none;
  }

  .vsp-search {
    flex: 0 0 150px;
  }

  .vsp-size {
    display: none;
  }

  .vsp-feed {
    padding: 0 8px 16px;
  }

  .vsp-row {
    gap: 5px;
    margin-bottom: 5px;
  }

  .vsp-tile {
    border-radius: 8px;
  }

  .vsp-ov {
    opacity: 0;
  }

  .vsp-selbar {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  #vspPicker .vsp-pk {
    inset: 0;
    width: auto;
    border-radius: 0;
    border: 0;
  }

  .vsp-mr-tags {
    display: none;
  }

  .vsp-picker.center {
    padding: 0;
  }

  .vsp-lp {
    height: 100%;
    border-radius: 0;
  }

  /* панель картинки — на весь экран: фото сверху, детали ниже прокруткой */
  .vsp-view {
    position: fixed;
    inset: 0;
    z-index: 85;
    flex-direction: column;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top, 0px);
  }

  .vsp-stage {
    flex: none;
    height: 62vh;
    height: 62dvh;
  }

  .vsp-canvas {
    padding: 0 8px 8px;
  }

  .vsp-pic img {
    max-height: calc(62dvh - 70px);
  }

  .vsp-nav {
    display: none;
  }

  .vsp-side {
    width: auto;
    flex: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .vsp-side-b {
    overflow: visible;
  }

  .vsp-proto {
    display: none;
  }
}

@media (pointer: coarse) {
  .vsp-ov {
    opacity: 1;
    background: none;
  }

  .vsp-ov .vsp-tb {
    display: none;
  }

  /* «Мои фото» на телефоне: кружков выбора нет, пока не включили выбор (долгим нажатием или кнопкой) */
  .vsp:not(.selecting) .vsp-feed .vsp-ov:has(> .vsp-check) {
    opacity: 0;
    pointer-events: none;
  }

  .vsp-tile img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsp * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ══════════ 10. [ПРОТОТИП] панель проверки состояний ══════════ */
body.vsp-viewing .vsp-proto {
  display: none;
}

/* не перекрывает «Скачать» в панели картинки */
.vsp-proto {
  position: fixed;
  right: 12px;
  bottom: calc(var(--siteplayer-h, 0px) + 12px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
}

.vsp-proto-t {
  height: 28px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px dashed var(--line2);
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
}

.vsp-proto-b {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shade) 50%, transparent);
}

.vsp-proto.open .vsp-proto-b {
  display: flex;
}

.vsp-proto-b span {
  width: 100%;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
}

.vsp-proto-b button {
  height: 26px;
  padding: 0 10px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 11.5px;
}

.vsp-proto-b button[aria-pressed=true] {
  background: var(--line);
  color: var(--fg);
  border-color: transparent;
}

/* ══════════ 11. ВДОХНОВЕНИЕ ══════════ */
/* чипсы моделей: по умолчанию выбрана модель из формы */
.vsp-mchips {
  position: relative;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  scroll-padding: 0 40px;
}

.vsp-mchips::-webkit-scrollbar {
  display: none;
}

.vsp-mchips button {
  flex: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.vsp-mchips button:has(.vsp-mic) {
  padding-left: 5px;
}

.vsp-mchips button:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
}

.vsp-mchips button[aria-selected=true] {
  background: var(--line);
  border-color: transparent;
  color: var(--fg);
}

.vsp-mchips small {
  font-size: 12px;
  color: var(--muted);
}

.vsp-mchips .vsp-mic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
}

.vsp-mchips .vsp-logo {
  width: 13px;
  height: 13px;
}

/* баннер модели: что умеет и сколько стоит; справа — лучшая работа модели */
.vsp-mban {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: var(--card);
  isolation: isolate;
}

.vsp-mban::before {
  content: '';
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -1;
  background: var(--bg) center / cover no-repeat;
  opacity: .55;
  -webkit-mask: linear-gradient(90deg, transparent, #000 70%);
  mask: linear-gradient(90deg, transparent, #000 70%);
}

.vsp-mic.lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  font-size: 20px;
}

.vsp-mic.lg .vsp-logo {
  width: 26px;
  height: 26px;
}

.vsp-mban-t {
  min-width: 0;
}

.vsp-mban-t b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--fg);
}

.vsp-mban-t p {
  margin: 4px 0 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg2);
  max-width: 520px;
}

.vsp-mban-s {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vsp-mban-s span {
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--tint-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
}

.vsp-mban-s span:first-child {
  color: var(--fg);
  font-weight: 600;
}

.vsp-mban-a {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.vsp-mban-a .pill {
  text-decoration: none;
}

.vsp .pill.go,
.vsp .pill.vsp-rep {
  background: var(--sel);
  color: var(--sel-ink);
  border-color: transparent;
  font-weight: 600;
}

.vsp .pill.go:hover,
.vsp .pill.vsp-rep:hover {
  background: var(--sel-hover);
}

/* «Было → стало»: шторка идёт за курсором */
.vsp-pairs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.vsp-pair {
  --x: 50%;
  position: relative;
  flex: none;
  width: 300px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
}

.vsp-pair.drag {
  cursor: ew-resize;
}

.vsp-pair.drag .vsp-pair-l::after {
  transform: scale(1.12);
}

.vsp-pair img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-pair img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* иначе браузер начинает перетаскивать картинку и обрывает шторку */
.vsp-pair-b {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.vsp-pair-l {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .4);
  outline: none;
  cursor: ew-resize;
}

.vsp-pair-l::before {
  content: '';
  position: absolute;
  inset: 0 -14px;
}

.vsp-pair-l:focus-visible::after {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}

.vsp-pair-l::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  transition: transform .15s;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101012' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.vsp-pair-lab {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.vsp-pair-lab.r {
  left: auto;
  right: 8px;
}

.vsp-pair-f {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 32px 10px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent);
  cursor: default;
}

.vsp-pair-f b {
  font-size: 13px;
  color: var(--on-media);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-pair-f b {
  flex: 1 1 0;
  min-width: 0;
}

.vsp-pair-f .grow {
  display: none;
}

.vsp-pair-f .pill {
  flex-basis: 100%;
  justify-content: center;
}

.vsp-pair-f .vsp-tm {
  position: relative;
  left: 0;
  bottom: 0;
  flex-shrink: 0;
  opacity: 1;
}

/* плитка подборки: подсказка у значка — вниз, чтобы не обрезалась краем */
.vsp-ov .vsp-tip.dn::after {
  bottom: auto;
  top: calc(100% + 6px);
}

/* панель работы из подборки: автор, без вкладки «Редактировать» */
.vsp-view.insp .vsp-side-tabs {
  display: none;
}

.vsp-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vsp-view.insp #vspSideInfo {
  padding-top: 18px;
}

.vsp-author b {
  font-size: 14px;
  color: var(--fg);
}

.vsp-author .grow {
  flex: 1;
}

.vsp-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsp-vrep {
  width: 100%;
}

@media (max-width: 900px) {
  .vsp-mban {
    flex-wrap: wrap;
    padding: 14px;
    gap: 12px;
  }

  .vsp-mban::before {
    inset: 0;
    opacity: .25;
    -webkit-mask: none;
    mask: none;
  }

  .vsp-mic.lg {
    width: 44px;
    height: 44px;
  }

  .vsp-mban-t {
    flex: 1 1 calc(100% - 60px);
  }

  .vsp-mban-a {
    margin-left: 0;
    width: 100%;
  }

  .vsp-mban-a .pill {
    flex: 1;
    justify-content: center;
  }

  .vsp-pair {
    width: 260px;
    height: 230px;
  }
}

/* ══════════ 12. СПРАВКА — как в музыке: статьи блога, первая крупно ══════════ */
.vsp .help-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 4px 12px;
}

.vsp .help-h>div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vsp .help-h b {
  font-size: 18px;
  color: var(--fg);
}

.vsp .help-h .small {
  font-size: 13px;
  color: var(--muted);
}

.vsp .help-h .vsp-search {
  flex: 0 1 300px;
  max-width: none;
}

.vsp .help-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding-bottom: 20px;
}

.vsp .help-i {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--fg);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

.vsp .help-i:hover {
  transform: translateY(-3px);
  border-color: var(--tint-2);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 45%, transparent);
}

.vsp .help-img {
  display: block;
  aspect-ratio: 640 / 274;
  background: center / cover no-repeat, linear-gradient(135deg, #3a1d57, #5a1f3a);
  transition: transform .4s;
}

.vsp .help-i:hover .help-img {
  transform: scale(1.04);
}

.vsp .help-b {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  position: relative;
  background: var(--card);
}

.vsp .help-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(162, 59, 245, .18);
  color: color-mix(in srgb, #A23BF5 55%, var(--fg));
}

.vsp .help-i b {
  font-size: 14.5px;
  line-height: 1.35;
}

.vsp .help-i span {
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.45;
}

.vsp .help-i small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.vsp .help-i.big {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.vsp .help-i.big .help-img {
  aspect-ratio: auto;
  min-height: 220px;
  height: 100%;
}

.vsp .help-i.big .help-b {
  justify-content: center;
  padding: 22px;
}

.vsp .help-i.big b {
  font-size: 20px;
  line-height: 1.3;
}

.vsp .help-i.big span {
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .vsp .help-list {
    grid-template-columns: 1fr;
  }

  .vsp .help-i.big {
    display: flex;
  }

  .vsp .help-i.big .help-img {
    aspect-ratio: 640 / 274;
    min-height: 0;
    height: auto;
  }

  .vsp .help-i.big .help-b {
    padding: 12px 14px 14px;
  }

  .vsp .help-i.big b {
    font-size: 16px;
  }

  .vsp .help-h .vsp-search {
    flex: 1 1 100%;
  }

  .vsp {
    --foot-h: auto;
  }

  .vsp-side-f:has(> .vsp-dlg),
  .vsp-side-f:has(> .vsp-vrep) {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .vsp-foot {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* ══════════ 13. ГОСТЕВАЯ СТРАНИЦА: ниже первого экрана ══════════ */
/* «Частые вопросы» и финальная карточка (.vsp-land, .vsp-faq, .vsp-land-cta) — общий блок, uikit/shell-proto.css */
.vsp-can {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.vsp-can-i {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 14px;
  border-radius: 18px;
  background: var(--card);
}

.vsp-can-img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: center / cover no-repeat var(--line);
}

.vsp-can-i b {
  font-size: 15px;
  color: var(--fg);
  padding: 0 4px;
}

.vsp-can-i p {
  margin: 0;
  padding: 0 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vsp-can-i .pill {
  align-self: flex-start;
  margin: 2px 4px 0;
}

.vsp-tbl-w {
  overflow-x: auto;
  scrollbar-width: thin;
}

.vsp-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.vsp-tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 0 12px 8px;
  white-space: nowrap;
}

.vsp-tbl td {
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--fg);
  white-space: nowrap;
}

.vsp-tbl td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.vsp-tbl td b {
  color: var(--fg);
}

.vsp-tbl .vsp-mic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
}

.vsp-tbl .vsp-logo {
  width: 14px;
  height: 14px;
}

.vsp-tbl tr[data-lm] {
  cursor: pointer;
  transition: background .15s;
}

.vsp-tbl tr[data-lm]:hover {
  background: var(--hover);
}

.vsp-tbl tr.cur td {
  background: var(--tint-1);
}

.vsp-tbl tr.cur td:first-child::after {
  content: 'эта модель';
  font-size: 11px;
  color: var(--muted);
}

.vsp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: st;
}

.vsp-steps li {
  counter-increment: st;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
}

.vsp-steps li::before {
  content: counter(st);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--fg);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.vsp-steps b {
  font-size: 15px;
  color: var(--fg);
}

.vsp-steps span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg2);
}

@media (max-width: 900px) {
  .vsp-steps {
    grid-template-columns: 1fr;
  }
}

/* ИИ-помощник: разметка и стили редактора общие (cf-ed / cf-ai в unknow.css), только кнопки действий лежат в music.css — повторяем.
   TODO(влад): перенести .cf-sg в unknow.css, тогда это правило можно удалить */
.cf-ai .cf-sg {
  height: 30px;
  padding: 0 12px;
  border-radius: 100px;
  border: 0;
  background: var(--line);
  color: var(--fg2);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.cf-ai .cf-sg:hover {
  background: var(--line2);
  color: var(--fg);
}

/* правки гостевой страницы */
.vsp-more-g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.vsp-more-i {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  color: var(--on-media);
  text-decoration: none;
  background: var(--card);
}

.vsp-more-i::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg) center / cover no-repeat;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.vsp-more-i::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 12, .92) 15%, rgba(10, 10, 12, .2) 70%);
}

.vsp-more-i:hover::before {
  transform: scale(1.05);
}

.vsp-more-i b {
  font-size: 18px;
}

.vsp-more-i span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .8);
}

.vsp-more-i i {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* узкая плитка подборки: «Повторить» сжимается до цены, значок «со своим фото» прячется */
.vsp-tile {
  container-type: inline-size;
}

@container (max-width: 210px) {
  .vsp-rep .t {
    display: none;
  }
}

@container (max-width: 150px) {
  .vsp-ov [data-act=withphoto] {
    display: none;
  }
}

.vsp-rep::before {
  content: '';
  width: 13px;
  height: 13px;
  margin-right: 4px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.4-5.7L4 8.5M4 4v4.5h4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.4-5.7L4 8.5M4 4v4.5h4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vsp-ov .vsp-rep {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

/* гость: без «Моих фото» (вкладка и кнопка в нижней панели телефона) и без строки поиска */
body.vsp-guest .vsp-tabs [data-tab=mine],
body.vsp-guest #mTabs [data-mtab=mine],
body.vsp-guest #vspTools {
  display: none !important;
}

body.vsp-guest .vsp-feed {
  padding-top: 6px;
}

/* плавность: плитки и карточки при наведении */
.vsp-tile {
  transition: box-shadow .35s ease;
}

.vsp-tile img {
  transition: transform .7s cubic-bezier(.2, .7, .3, 1), opacity .35s, filter .35s;
}

.vsp-tile:hover img {
  transform: scale(1.035);
}

.vsp-tile:hover {
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shade) 45%, transparent);
}

.vsp-ov {
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.vsp-tile:hover .vsp-ov,
.vsp-tile:focus-visible .vsp-ov,
.vsp-tile:focus-within .vsp-ov {
  transform: none;
}

.vsp.selecting .vsp-ov,
.vsp-lp-grid .vsp-ov {
  transform: none;
}

.vsp-tm {
  transform: translateY(6px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.vsp-tile:hover .vsp-tm,
.vsp-tile:focus-within .vsp-tm,
.vsp-tile:focus-visible .vsp-tm {
  transform: none;
}

.vsp-pair-f .vsp-tm {
  transform: none;
}

.vsp .pill.vsp-rep,
.vsp .pill.go {
  transition: background .2s, transform .2s;
}

.vsp .pill.vsp-rep:active,
.vsp .pill.go:active {
  transform: scale(.96);
}

.vsp-can-i,
.vsp-steps li {
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
}

.vsp-can-i:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--shade) 40%, transparent);
}

.vsp-can-img {
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.vsp-can-i {
  overflow: hidden;
}

.vsp-mchips button {
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.vsp-mchips button:active {
  transform: scale(.96);
}

@media (pointer: coarse) {
  .vsp-ov {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .vsp-tile img,
  .vsp-ov,
  .vsp-tm,
  .vsp-can-i {
    transition: none;
  }
}

/* альбом открыт — строка над лентой, как в музыке */
.vsp-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 10px;
  font-size: 13px;
  color: var(--fg2);
  flex-shrink: 0;
}

.vsp-info[hidden] {
  display: none;
}

.vsp-info span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#vspFAlb[aria-pressed=true] .t {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .vsp-info {
    padding: 0 12px 8px;
  }
}

/* ══════════ 14. ИНСТРУМЕНТЫ ПРАВКИ ══════════ */
/* список во вкладке «Редактировать» */
.vsp-tools-l button {
  height: auto;
  min-height: 52px;
  padding: 8px 12px;
  align-items: center;
}

.vsp-tools-l .n {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vsp-tools-l .n b {
  font-weight: 500;
  font-size: 14px;
}

.vsp-tools-l .n small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-tools-l .r {
  flex-shrink: 0;
}

.soon-r {
  opacity: .55;
}

/* открытый инструмент */
.vsp-tool-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.vsp-tool-h b {
  font-size: 16px;
  color: var(--fg);
}

.vsp-tool-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--grad);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vsp-tool-ic svg,
.vsp-tcard-ic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-tool-about {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg2);
}

.vsp-tchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vsp-tchips button {
  height: 32px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.vsp-tchips button:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
}

.vsp-tchips button:active {
  transform: scale(.96);
}

.vsp-tchips button[aria-checked=true] {
  background: var(--line);
  border-color: transparent;
  color: var(--fg);
}

.vsp-tchips small {
  font-size: 11.5px;
  color: var(--muted);
}

.vsp-tin {
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
}

.vsp-tin:focus {
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
}

.vsp-tin::placeholder {
  color: var(--muted);
}

.vsp-slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vsp-slot {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.vsp-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-slot button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 16, 18, .75);
  color: var(--on-media);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsp-slot button svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.vsp-slot.add {
  border: 1.5px dashed var(--line2);
  color: var(--fg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  transition: border-color .2s, color .2s;
}

.vsp-slot.add b {
  font-size: 20px;
  font-weight: 400;
}

.vsp-slot.add:hover {
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
  color: var(--fg);
}

.vsp-tswitch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
}

.vsp-tswitch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vsp-tswitch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: var(--line2);
  transition: background .2s;
  flex-shrink: 0;
}

.vsp-tswitch i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-media);
  transition: transform .2s;
}

.vsp-tswitch input:checked+i {
  background: var(--grad);
}

.vsp-tswitch input:checked+i::after {
  transform: translateX(16px);
}

.vsp-tswitch input:focus-visible+i {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--fg) 55%, transparent);
}

.vsp-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg2);
  cursor: pointer;
  border: 1px solid transparent;
}

.vsp-consent input {
  margin-top: 2px;
  accent-color: #E54270;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.vsp-consent.err {
  border-color: color-mix(in srgb, var(--bad) 60%, transparent);
  animation: vsp-shake .35s;
}

.vsp-priv {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vsp-priv svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.vsp-tool-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vsp-tool-f .cf-create {
  height: 48px;
}

.vsp-tool-f .vsp-meta {
  text-align: center;
}

.vsp-side-f:has(> .vsp-tool-f) {
  padding: 12px 16px 16px;
}

.vsp-brush-s {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg2);
}

.vsp-brush-s input {
  flex: 1;
  accent-color: #E54270;
}

.vsp-brush-a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vsp-brush-a .vsp-meta {
  margin-left: auto;
  color: var(--ok);
}

/* кисть поверх фото */
.vsp-mask {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  opacity: .55;
  cursor: crosshair;
  touch-action: none;
}

.vsp-view.brushing .vsp-nav,
.vsp-view.brushing [data-v=cmp] {
  visibility: hidden;
}

/* применяем инструмент — фото притушено, бегущий блик */
.vsp-pic.busy img {
  opacity: .45;
  transition: opacity .3s;
}

.vsp-pic.busy::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 45%, transparent 60%) 0 0 / 300% 100%;
  animation: vsp-shim 1.4s linear infinite;
  pointer-events: none;
}

/* прозрачный фон — «шахматка» */
.vsp-pic.cut,
.vsp-tile.cut {
  background: repeating-conic-gradient(var(--checker-1) 0 25%, var(--checker-2) 0 50%) 50% / 18px 18px;
  border-radius: 8px;
}

/* «Возможности»: карточки инструментов */
.vsp-tcat h3 {
  margin: 22px 4px 10px;
  font-size: 15px;
  color: var(--fg);
}

.vsp-tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.vsp-tcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--card);
  color: var(--fg);
  text-align: left;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s, border-color .25s;
}

.vsp-tcard:hover {
  transform: translateY(-3px);
  border-color: var(--tint-2);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--shade) 40%, transparent);
}

.vsp-tcard-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.vsp-tcard b {
  font-size: 15px;
}

.vsp-tcard span:not(.vsp-tcard-ic):not(.soon) {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg2);
}

.vsp-tcard small {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.vsp-tcard .soon,
.vsp-tools-l .soon {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--line);
  color: var(--fg2);
}

.vsp-lp-f .grow {
  flex: 1;
}

/* ══════════ 15. ИНСТРУМЕНТЫ: версии, пресеты-карточки, кисть, пропорции ══════════ */
/* узкая плитка: кнопки сверху не помещаются — «Скачать» и «Удалить» уходят в меню ⋯ */
@container (max-width: 210px) {

  .vsp-ov [data-act=dl],
  .vsp-ov [data-act=del] {
    display: none;
  }
}

@container (max-width: 140px) {
  .vsp-ov [data-act=fav] {
    display: none;
  }

  .vsp-ov {
    gap: 4px;
    padding: 6px;
  }
}

/* лента версий: подпись инструмента, главная, удалить одну */
.vsp-vers {
  gap: 10px;
  align-items: flex-start;
  overflow-x: auto;
  justify-content: safe center;
  scrollbar-width: none;
}

.vsp-ver-w {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vsp-ver-w .vsp-ver span {
  display: none;
}

.vsp-ver-l {
  max-width: 64px;
  font-size: 10.5px;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-ver-w.on .vsp-ver-l {
  color: var(--fg);
  font-weight: 600;
}

.vsp-ver-main {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 16, 18, .75);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsp-ver-main svg {
  width: 10px;
  height: 10px;
}

.vsp-ver-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #2a2a2e;
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}

.vsp-ver-x svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.vsp-ver-x:hover {
  background: #FF5A6E;
}

.vsp-ver-w:hover .vsp-ver-x,
.vsp-ver-x:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .vsp-ver-x {
    opacity: .9;
  }
}

.vsp-ver-mk {
  align-self: center;
  flex-shrink: 0;
  gap: 6px;
}

.vsp-ver-mk svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.vsp-ver.cut {
  background: repeating-conic-gradient(var(--checker-1) 0 25%, var(--checker-2) 0 50%) 50% / 10px 10px;
}

/* список инструментов: категории сворачиваются */
.vsp-tcat-b {
  border-top: 1px solid var(--line);
}

.vsp-tcat-h {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.vsp-tcat-h small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.vsp-tcat-h .grow {
  flex: 1;
}

.vsp-tcat-h svg {
  color: var(--fg2);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.vsp-tcat-b.open .vsp-tcat-h svg {
  transform: rotate(180deg);
}

.vsp-tcat-c {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.22, 1, .36, 1);
}

.vsp-tcat-c>div {
  overflow: hidden;
}

.vsp-tcat-b.open .vsp-tcat-c {
  grid-template-rows: 1fr;
  padding-bottom: 8px;
}

.vsp-used {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(229, 66, 112, .18);
  color: var(--brand-text);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}

#vspSideEdit {
  gap: 12px;
}

/* «Сейчас: …» и история версий инструмента */
.vsp-now {
  font-size: 13px;
  color: var(--fg2);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
}

.vsp-now b {
  color: var(--fg);
  font-weight: 600;
}

.vsp-hist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vsp-hist .vsp-ver {
  width: 48px;
  height: 48px;
}

.vsp-hist .vsp-ver.on {
  border-color: var(--sel);
}

.vsp-blk-h small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

/* пресеты карточками с превью */
.vsp-tcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vsp-tcards button {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 12px;
  text-align: left;
}

.vsp-tcards .pv {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .2s, transform .2s;
}

.vsp-tcards .pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}

.vsp-tcards button:hover .pv img {
  transform: scale(1.06);
}

.vsp-tcards .pv i {
  position: absolute;
  left: 5px;
  top: 5px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--grad);
  color: var(--on-media);
}

.vsp-tcards button[aria-checked=true] {
  color: var(--fg);
}

.vsp-tcards button[aria-checked=true] .pv {
  box-shadow: 0 0 0 2px var(--sel);
}

.vsp-tcards button[aria-checked=true] .pv::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101012' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.vsp-tcards b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-tchips button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ползунки коррекции */
.vsp-sl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--fg2);
}

.vsp-sl span {
  display: flex;
  justify-content: space-between;
}

.vsp-sl b {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vsp-sl input {
  accent-color: #E54270;
}

/* кисть: курсор — круг размером с кисть */
.vsp-mask {
  cursor: none;
}

.vsp-ring {
  --d: 34px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(0, 0, 0, .35);
  pointer-events: none;
  z-index: 3;
}

.vsp-ring[hidden] {
  display: none;
}

/* пропорции: обрезка и дорисовка краёв (в прототипе — размытая копия по краям) */
.vsp-pic.ar {
  overflow: hidden;
  border-radius: 8px;
}

.vsp-pic.extend::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--src) center / cover no-repeat;
  filter: blur(22px) brightness(.85);
}

.vsp-pic.extend img {
  position: relative;
}

.vsp-sbs {
  position: absolute;
  inset: 0 64px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.vsp-sbs[hidden] {
  display: none;
}

.vsp-sbs figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.vsp-sbs figure.extend::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--src) center / cover no-repeat;
  filter: blur(22px) brightness(.85);
}

.vsp-sbs img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.vsp-sbs figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .7);
  color: var(--on-media);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* перетаскивание фото на ленту */
.vsp-lib.drop::after {
  content: 'Отпустите — фото откроется в «Изменить»';
  position: absolute;
  inset: 8px;
  z-index: 20;
  border: 2px dashed color-mix(in srgb, var(--fg) 50%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--fg);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vsp-lib {
  position: relative;
}

/* «Возможности»: фильтр категорий */
.vsp-tfilter {
  margin: 4px 0 2px;
}

.vsp .help-h .pill {
  gap: 6px;
}

.vsp .help-h .pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .vsp-sbs {
    inset: 0 8px 8px;
    flex-direction: column;
  }
}

.vsp-tcat-b:not(.open) .vsp-tcat-c>div {
  visibility: hidden;
  transition: visibility 0s .3s;
}

/* ══════════ 16. Правки: обрезка рамкой, отсчёт после входа, плавность ══════════ */
/* крестик удаления версии не обрезается краем ленты */
.vsp-vers {
  padding-top: 8px;
}

/* обрезка рамкой */
.vsp-crop {
  position: absolute;
  inset: 0;
  z-index: 4;
  touch-action: none;
}

.vsp-crop[hidden] {
  display: none;
}

.vsp-crop-r {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(10, 10, 12, .62);
  outline: 1.5px solid #fff;
  cursor: move;
}

.vsp-crop-r .g {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% - .5px), rgba(255, 255, 255, .35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% - .5px), rgba(255, 255, 255, .35) calc(66.66% + .5px), transparent calc(66.66% + .5px));
  pointer-events: none;
}

.vsp-crop-r b {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
}

.vsp-crop-r b[data-h=nw] {
  left: -3px;
  top: -3px;
  border-width: 3px 0 0 3px;
  cursor: nwse-resize;
}

.vsp-crop-r b[data-h=ne] {
  right: -3px;
  top: -3px;
  border-width: 3px 3px 0 0;
  cursor: nesw-resize;
}

.vsp-crop-r b[data-h=sw] {
  left: -3px;
  bottom: -3px;
  border-width: 0 0 3px 3px;
  cursor: nesw-resize;
}

.vsp-crop-r b[data-h=se] {
  right: -3px;
  bottom: -3px;
  border-width: 0 3px 3px 0;
  cursor: nwse-resize;
}

.vsp-crop-r b::after {
  content: '';
  position: absolute;
  inset: -12px;
}

/* большая зона захвата для пальца */
.vsp-pic:has(.vsp-crop:not([hidden])) {
  overflow: hidden;
  border-radius: 8px;
}

.vsp-view.cropping .vsp-nav,
.vsp-view.cropping [data-v=cmp] {
  visibility: hidden;
}

/* пресет с подписью (размеры документов) */
.vsp-tchips button.sub {
  height: auto;
  padding: 8px 12px;
  border-radius: 14px;
  text-align: left;
}

.vsp-tchips button.sub span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vsp-tchips button.sub small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
}

/* после входа: «Создаём через 5…» */
.vsp-go .cm-ic {
  background: rgba(229, 66, 112, .14);
  color: var(--brand-text);
}

.vsp-go-p {
  margin: 0;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
}

.vsp-go-bar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 6px;
}

.vsp-go-bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: left;
}

/* плавное приближение при наведении: картинка на своём слое, без рывка в конце */
.vsp-tile img,
.vsp-can-img i {
  will-change: transform;
  backface-visibility: hidden;
}

.vsp-can-img {
  display: block;
  overflow: hidden;
  transition: none;
}

.vsp-can-img i {
  display: block;
  width: 100%;
  height: 100%;
  background: center / cover no-repeat;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}

.vsp-can-i:hover .vsp-can-img i {
  transform: scale(1.05);
}

.vsp-can-i {
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s;
}

/* ══════════ 17. Лента частями, «Версии», выбор из библиотеки ══════════ */
.vsp-more-s {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.vsp-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  border-top-color: var(--fg);
  animation: vsp-rot .8s linear infinite;
}

@keyframes vsp-rot {
  to {
    transform: rotate(360deg);
  }
}

.vsp-lp-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 12px;
}

.vsp-lp-tools .vsp-search {
  max-width: none;
  background: var(--line);
}

.vsp-lp-fl {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vsp-lp-fl button {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, color .2s, border-color .2s;
}

.vsp-lp-fl button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.vsp-lp-fl button:first-child svg,
.vsp-lp-fl [data-lpf=fav] svg {
  fill: currentColor;
  stroke: none;
  color: var(--accent);
}

.vsp-lp-fl button[aria-pressed=true] {
  background: var(--line);
  border-color: transparent;
  color: var(--fg);
}

.vsp-lp-up {
  gap: 8px;
}

.vsp-lp-up svg {
  flex-shrink: 0;
}

/* телефон: открыт инструмент — фото закреплено сверху и остаётся видно, пока крутите настройки */
@media (max-width: 900px) {
  .vsp-view.in-tool .vsp-stage {
    position: sticky;
    top: 0;
    z-index: 6;
    height: 40vh;
    height: 40dvh;
    background: var(--bg);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--shade) 35%, transparent);
  }

  .vsp-view.in-tool .vsp-pic img {
    max-height: calc(40dvh - 96px);
  }

  .vsp-view.in-tool .vsp-stage-top {
    height: 44px;
  }

  .vsp-view.in-tool .vsp-vers {
    padding-bottom: 6px;
  }

  .vsp-view.in-tool .vsp-ver {
    width: 40px;
    height: 40px;
  }

  .vsp-view.in-tool .vsp-ver-l {
    display: none;
  }

  .vsp-view.in-tool .vsp-side-tabs {
    display: none;
  }

  .vsp-tcards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vsp-side-f:has(> .vsp-tool-f) {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--bg);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .vsp-crop-r b {
    width: 24px;
    height: 24px;
  }
}

/* поиск в окне выбора — обычной высоты (в колонке flex растягивал его) */
.vsp-lp-tools .vsp-search {
  flex: none;
  height: 40px;
  width: 100%;
}

/* меню «Повторить в другой модели»: значок семейства вместо иконки меню */
.vm-i:has(> .grow > .vsp-mlogo)>svg.i:first-child {
  display: none;
}

.vsp-mlogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 7px;
  background: var(--tint-2);
  vertical-align: middle;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.vsp-mlogo .vsp-logo {
  width: 14px;
  height: 14px;
}

.vm-i .vsp-mnew {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ok);
  color: var(--ok-ink);
  font-size: 10px;
  font-weight: 700;
}

/* полоса версий: затемнение по краям и стрелки, когда версии не помещаются */
.vsp-vers-w {
  position: relative;
  flex-shrink: 0;
  min-width: 0;
  --fl: 0px;
  --fr: 0px;
  display: flex;
  align-items: flex-start;
}

.vsp-vers-sc {
  position: relative;
  flex: 1;
  min-width: 0;
}

.vsp-ver-mkw {
  flex-shrink: 0;
  padding: 14px 12px 0 0;
}

.vsp-ver-mkw:empty {
  display: none;
}

.vsp-ver-mkw .vsp-ver-mk {
  white-space: nowrap;
}

.vsp-vers-w.off {
  display: none;
}

.vsp-vers-w .vsp-vers {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}

.vsp-vers-w.l {
  --fl: 64px;
}

.vsp-vers-w.r {
  --fr: 64px;
}

.vsp-vers-nav {
  position: absolute;
  top: 18px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--glass);
  color: var(--fg);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--shade) 40%, transparent);
}

.vsp-vers-nav:hover {
  background: color-mix(in srgb, var(--fg) 10%, var(--card));
}

.vsp-vers-nav.l {
  left: 6px;
}

.vsp-vers-nav.r {
  right: 6px;
}

.vsp-vers-w.l .vsp-vers-nav.l,
.vsp-vers-w.r .vsp-vers-nav.r {
  display: inline-flex;
}

@media (hover: none) {
  .vsp-vers-nav {
    display: none !important;
  }
}

/* правка идёт: перелив на плитке в ленте и заглушка в полосе версий */
.vsp-busy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(10, 10, 12, .35);
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.vsp-busy i,
.vsp-gen-sh {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(229, 66, 112, .28) 40%, rgba(255, 255, 255, .32) 50%, rgba(140, 90, 255, .28) 60%, transparent 75%) 0 0 / 300% 100%;
  animation: vsp-gen 1.6s linear infinite;
}

.vsp-busy b {
  position: relative;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-media);
  white-space: nowrap;
}

.vsp-tile.busy img {
  filter: blur(3px) saturate(.8);
  transform: scale(1.04);
}

.vsp-ver-w.gen .vsp-ver {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.vsp-ver-w.gen .vsp-ver img {
  filter: blur(3px) brightness(.6);
}

.vsp-ver-w.gen .vsp-ver-l {
  color: var(--brand-text);
}

@keyframes vsp-gen {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -50% 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .vsp-busy i,
  .vsp-gen-sh {
    animation: none;
  }
}

/* версия-ролик */
.vsp-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
  z-index: 2;
  cursor: pointer;
}

.vsp-vid[hidden] {
  display: none;
}

.vsp-ver-dur {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(16, 16, 18, .8);
  color: var(--on-media);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.vsp-ver-w.vid .vsp-ver::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 10px solid rgba(255, 255, 255, .9);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6));
}

/* «Сравнить»: включено — заливка и подпись, видно с первого взгляда */
#vspCmpBtn {
  position: relative;
  transition: background .15s, color .15s;
}

#vspCmpBtn[aria-pressed=true] {
  background: var(--sel);
  color: var(--sel-ink);
}

#vspCmpBtn[aria-pressed=true] svg {
  stroke: currentColor;
}

#vspCmpBtn[aria-pressed=true]::after {
  content: 'Сравнение';
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  pointer-events: none;
}

/* низ «Деталей»: Поделиться + Опубликовать над «Скачать» */
.vsp-side-f:has(> .vsp-sharerow) {
  height: auto;
  min-height: var(--foot-h);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
}

.vsp-sharerow {
  display: flex;
  gap: 8px;
}

.vsp-sbtn {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background .15s;
}

.vsp-sbtn:hover {
  background: var(--line);
}

.vsp-sbtn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.vsp-sbtn.off {
  color: var(--muted);
}

/* поле в инструменте: подсказка видна целиком, поле растёт с текстом */
.vsp-tin {
  min-height: 88px;
  max-height: 220px;
  field-sizing: content;
  resize: vertical;
}

/* поиск в ленте: значок → поле плавно раскрывается из значка поверх фильтров, фильтры под ним гаснут */
.vsp-sw {
  position: relative;
  flex-shrink: 0;
  height: 36px;
  z-index: 6;
}

.vsp-sw-btn {
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 100px;
  border: 0;
  background: var(--card);
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: background .15s, color .15s, opacity .15s;
}

.vsp-sw-btn svg {
  flex-shrink: 0;
  display: block;
}

.vsp-sw-btn:hover {
  background: var(--line);
  color: var(--fg);
}

.vsp-sw-q {
  display: none;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fg);
}

.vsp-sw.has .vsp-sw-btn {
  padding: 0 14px 0 12px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 28%, transparent);
  color: var(--fg);
}

.vsp-sw.has .vsp-sw-q {
  display: block;
}

.vsp-sw-p {
  position: absolute;
  left: 0;
  top: 0;
  height: 36px;
  width: min(360px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 10px;
  border-radius: 100px;
  background: var(--card);
  color: var(--fg2);
  box-shadow: inset 0 0 0 1px var(--tint-3);
  clip-path: inset(0 calc(100% - 36px) 0 0 round 18px);
  opacity: 0;
  visibility: hidden;
  transition: clip-path .32s cubic-bezier(.3, .7, .2, 1), opacity .18s, visibility 0s .32s;
}

.vsp-sw-p input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}

.vsp-sw-p input::-webkit-search-cancel-button {
  display: none;
}

.vsp-sw-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s;
}

.vsp-sw.has .vsp-sw-x {
  opacity: 1;
}

.vsp-sw.open .vsp-sw-p {
  clip-path: inset(0 0 0 0 round 18px);
  opacity: 1;
  visibility: visible;
  transition: clip-path .32s cubic-bezier(.3, .7, .2, 1), opacity .12s, visibility 0s;
}

.vsp-sw.open .vsp-sw-btn {
  opacity: 0;
}

/* пока поле открыто, фильтры левой группы гаснут — поле не «наезжает» на них */
.vsp-tools>.vsp-chip {
  transition: opacity .2s;
}

.vsp-tools.searching>.vsp-chip:not(#vspUpload):not(#vspSelect) {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .vsp-sw-p,
  .vsp-sw.open .vsp-sw-p {
    transition: none;
  }
}

/* узкая лента (ноутбук с открытой формой, планшет): строка фильтров ужимается, а не вылезает */
@container (max-width: 700px) {
  .vsp-size input {
    width: 52px;
  }

  #vspFModelT {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
  }

  .vsp-tools {
    gap: 6px;
  }
}

/* правила меню VSUI.menu (подменю, телефон) переехали в uikit/shell-proto.css — они общие для всех разделов */
.vm-i:has(> .grow > .vsp-mlogo) {
  padding-left: 10px;
}

/* значки площадок в меню «Поделиться» */
.vm-i:has(> .grow > .vsp-mi)>svg.i:first-child {
  display: none;
}

.vsp-mi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1.6px solid currentColor;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: -.2px;
  vertical-align: -4px;
  line-height: 1;
}

.vsp-mi.ok {
  font-size: 7px;
}

.vsp-mi.wa,
.vsp-mi.fd {
  border: 0;
}

.vsp-mi.wa svg,
.vsp-mi.fd svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

/* пункт с выбором внутри («Повторить в другой модели»): счётчик и стрелка — видно, что откроется список */
.vsp-more-r {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.vsp-more-r .vsp-chr {
  width: 14px !important;
  height: 14px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 !important;
}

[data-va=other][aria-expanded=true] .vsp-more-r {
  color: var(--fg);
}

/* «Загрузить» в ленте — всегда с подписью (кроме совсем узкой ленты) */
@container (max-width: 860px) {
  .vsp #vspUpload.vsp-chip {
    width: auto;
    padding: 0 14px 0 12px;
    gap: 7px;
  }

  .vsp #vspUpload .t {
    display: inline;
  }
}

@container (max-width: 560px) {
  .vsp #vspUpload.vsp-chip {
    width: 36px;
    padding: 0;
  }

  .vsp #vspUpload .t {
    display: none;
  }
}

/* в форме: путь «своё фото на правку» — отдельно от референсов */
.vsp-own {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--line2);
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.vsp-own:hover,
.vsp-form.drag-own .vsp-own {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.vsp-own span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  color: var(--fg);
}

.vsp-own small {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.vsp-own svg {
  flex-shrink: 0;
  color: var(--fg2);
}

/* папка: переключатель «Всё / Фото / Видео» */
.vsp-info .vsp-kind {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 100px;
  background: var(--card);
  flex-shrink: 0;
  overflow: visible;
}

.vsp-kind button {
  height: 26px;
  padding: 0 12px;
  border-radius: 100px;
  border: 0;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.vsp-kind button[aria-pressed=true] {
  background: var(--line);
  color: var(--fg);
}

.vm-i .grow:has(> .vsp-mi) {
  display: inline-flex;
  align-items: center;
}

.vsp-use button .vsp-more-r {
  white-space: nowrap;
}

/* третий уровень меню: модели семейства при наведении на семейство («Повторить в другой модели» в меню ⋯) */
.vm-sub .vm-i:has(.vsp-sub3) {
  position: relative;
}

.vsp-sub3 {
  position: absolute;
  left: calc(100% + 6px);
  top: -6px;
  display: none;
  min-width: 230px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--shade) 60%, transparent);
  z-index: 2;
}

.vsp-sub3::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 10px;
}

.sub-left .vsp-sub3 {
  left: auto;
  right: calc(100% + 6px);
}

.sub-left .vsp-sub3::before {
  left: auto;
  right: -10px;
}

.vm-sub .vm-i:hover>.grow>.vsp-sub3 {
  display: block;
}

.vsp-sub3 .vm-i {
  cursor: pointer;
}

.vsp-sub3 .vm-p {
  opacity: 1;
}

@media (hover: none),
(max-width: 560px) {
  .vsp-sub3 {
    display: none !important;
  }
}

.vsp-sub3.to-l {
  left: auto;
  right: calc(100% + 6px);
}

.vsp-sub3.to-l::before {
  left: auto;
  right: -10px;
}

.vsp-sub3.to-r {
  right: auto;
  left: calc(100% + 6px);
}

.vsp-sub3.to-r::before {
  right: auto;
  left: -10px;
}

/* свой плеер ролика: стеклянная панель снизу, тонкая полоска с градиентом бренда */
.vsp-pic.isvid>img {
  visibility: hidden;
}

.vsp-vctl[hidden],
.vsp-pic:not(.isvid) .vsp-vbig {
  display: none !important;
}

.vsp-vctl {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  background: rgba(16, 16, 18, .55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}

.vsp-pic.vawake .vsp-vctl,
.vsp-pic.vpaused .vsp-vctl,
.vsp-vctl:focus-within {
  opacity: 1;
  transform: none;
}

.vsp-vctl button {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.vsp-vctl button:hover {
  background: rgba(255, 255, 255, .12);
}

.vsp-vctl svg {
  width: 18px;
  height: 18px;
}

.vsp-vt {
  flex-shrink: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .85);
  min-width: 74px;
}

.vsp-vbar {
  position: relative;
  flex: 1;
  height: 24px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.vsp-vbar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  transition: height .15s, margin .15s;
}

.vsp-vbar .fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: var(--grad, linear-gradient(90deg, #8C5AFF, #E54270, #FF8A3D));
  transition: height .15s, margin .15s;
}

.vsp-vbar .knob {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  transform: scale(0);
  transition: transform .15s;
}

.vsp-vbar:hover::before,
.vsp-vbar:hover .fill,
.vsp-vbar.drag::before,
.vsp-vbar.drag .fill {
  height: 5px;
  margin-top: -2.5px;
}

.vsp-vbar:hover .knob,
.vsp-vbar.drag .knob,
.vsp-vbar:focus-visible .knob {
  transform: scale(1);
}

.vsp-vbig {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 16, 18, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.vsp-vbig svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.vsp-pic.vpaused .vsp-vbig {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 560px) {
  .vsp-vt {
    min-width: 0;
    font-size: 11px;
  }

  .vsp-vctl {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}

/* ══════════ 18. ИНСТРУМЕНТЫ: «было → стало», сценарии, карандаш на плитке ══════════ */
/* карточка инструмента: сверху пара «было/стало», при наведении шторка проезжает сама (у знакомых инструментов — сразу «стало») */
.vsp-tcard {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.vsp-tcard-b {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 14px;
  flex: 1;
  width: 100%;
}

.vsp-tcard-b b {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vsp-tcard .vsp-tcard-ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  margin: 0;
  flex-shrink: 0;
}

.vsp-tcard .vsp-tcard-ic svg {
  width: 14px;
  height: 14px;
}

.vsp-ba {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
  --x: 50%;
}

.vsp-ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-ba .a {
  clip-path: inset(0 0 0 var(--x));
}

.vsp-ba .l {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

.vsp-ba .t {
  position: absolute;
  top: 8px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--on-media);
  opacity: 0;
  transition: opacity .2s;
}

.vsp-ba .t.b {
  left: 8px;
}

.vsp-ba .t.a {
  right: 8px;
}

@property --x {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}

@keyframes vsp-wipe {
  0% {
    --x: 100%;
  }

  45%,
  55% {
    --x: 0%;
  }

  100% {
    --x: 100%;
  }
}

.vsp-tcard:hover .vsp-ba:not(.seen),
.vsp-scard:hover .vsp-ba:not(.seen) {
  animation: vsp-wipe 2.6s cubic-bezier(.45, 0, .25, 1) infinite;
}

.vsp-tcard:hover .vsp-ba .t {
  opacity: 1;
}

.vsp-tcard:hover .vsp-ba.seen {
  --x: 0%;
  transition: --x .5s ease;
}

.vsp-ba.seen {
  transition: --x .4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .vsp-tcard:hover .vsp-ba:not(.seen) {
    animation: none;
    --x: 0%;
  }
}

.vsp-tgrid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

/* сценарии: горизонтальная лента карточек с картинкой */
.vsp-scen {
  margin-bottom: 18px;
}

.vsp-scen-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 170px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.vsp-scard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}

.vsp-scard .pv {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 4px;
}

.vsp-scard .pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.vsp-scard:hover .pv img {
  transform: scale(1.06);
}

.vsp-scard b {
  font-size: 13.5px;
}

.vsp-scard small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* карандаш на плитке: сразу в «Редактировать»; при наведении — быстрые действия */
.vsp-edw {
  position: relative;
  display: inline-flex;
}

.vsp-qa {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  min-width: 168px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(24, 24, 27, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}

.vsp-qa::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.vsp-edw:hover .vsp-qa,
.vsp-edw:focus-within .vsp-qa {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.vsp-qa button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--on-media);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.vsp-qa button:hover {
  background: rgba(255, 255, 255, .1);
}

.vsp-qa button:last-child {
  color: var(--fg2);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0 0 8px 8px;
}

.vsp-qa svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.vsp-tile:has(.vsp-edw:hover),
.vsp-tile:has(.vsp-edw:focus-within) {
  overflow: visible;
  z-index: 4;
}

.vsp-tile:has(.vsp-edw:hover)>img,
.vsp-tile:has(.vsp-edw:focus-within)>img {
  transform: none;
  border-radius: inherit;
}

.vsp-tile:has(.vsp-edw:hover) .vsp-ov {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

@container (max-width: 140px) {
  .vsp-edw {
    display: none;
  }
}

/* ══════════ 19. ФОРМА: режим «Создать / Изменить фото» ══════════ */
.vsp-mode {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 100px;
  background: var(--seg-track);
  flex-shrink: 0;
}

.vsp-mode button {
  height: 34px;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.vsp-mode button:hover {
  color: var(--fg);
}

.vsp-mode button[aria-selected=true] {
  background: var(--seg-soft);
  color: var(--fg);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shade) 25%, transparent);
}

.vsp-form.mode-edit #vspModelBtn,
.vsp-form.mode-edit #vspPromptCard,
.vsp-form.mode-edit #vspRefs,
.vsp-form.mode-edit .vsp-opts {
  display: none;
}

.vsp-ep {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vsp-ep[hidden] {
  display: none;
}

.vsp-ep .vsp-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.vsp-lnk {
  border: 0;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}

.vsp-lnk:hover {
  color: var(--fg);
}

.vsp-ep-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 14px;
  border-radius: 16px;
  border: 1.5px dashed var(--line2);
  color: var(--fg2);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.vsp-ep-drop:hover,
.vsp-ep.drag .vsp-ep-drop {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.vsp-ep-drop b {
  color: var(--fg);
  font-size: 14px;
}

.vsp-ep-drop small {
  font-size: 12px;
  color: var(--muted);
}

.vsp-ep-drop .row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.vsp-ep-pic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: var(--card);
}

.vsp-ep-pic img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.vsp-ep-pic .t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vsp-ep-pic .t b {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vsp-ep-pic .t small {
  font-size: 11.5px;
  color: var(--muted);
}

.vsp-ep.drag .vsp-ep-pic {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 45%, transparent);
}

.vsp-ep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vsp-ep-t {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 0 10px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.vsp-ep-t:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--shade) 35%, transparent);
}

.vsp-ep-t .vsp-ba {
  aspect-ratio: 4 / 3;
  margin-bottom: 6px;
}

.vsp-ep-t b,
.vsp-ep-t small {
  padding: 0 10px;
}

.vsp-ep-t b {
  font-size: 13px;
  font-weight: 600;
}

.vsp-ep-t small {
  font-size: 11.5px;
  color: var(--muted);
}

.vsp-ep-t:hover .vsp-ba:not(.seen) {
  animation: vsp-wipe 2.6s cubic-bezier(.45, 0, .25, 1) infinite;
}

.vsp-ep-t:hover .vsp-ba.seen {
  --x: 0%;
}

.vsp-ep-t .vsp-ba .t {
  display: none;
}

#vspEpGo:disabled {
  opacity: .5;
  cursor: default;
}

@media (max-width: 900px) {
  .vsp-ep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ══════════ 20. СООБЩЕСТВО: лайки, порядок, публикация ══════════ */
.vsp-chead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.vsp-chead .vsp-mchips {
  flex: 1;
  min-width: 0;
}

.vsp-csort {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: var(--card);
  flex-shrink: 0;
}

.vsp-csort button {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vsp-csort button[aria-selected=true] {
  background: var(--line);
  color: var(--fg);
}

.vsp-like {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 100px;
  background: rgba(16, 16, 18, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-media);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .15s;
}

.vsp-like svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill .15s, color .15s;
}

.vsp-like:hover {
  background: rgba(16, 16, 18, .8);
}

.vsp-like.on {
  color: #FF5A7E;
}

.vsp-like.on svg {
  fill: currentColor;
}

.vsp-like.on span {
  color: var(--on-media);
}

.vsp-like.rev {
  cursor: default;
  color: #FFC46B;
}

.vsp-pubmark {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 16, 18, .7);
  color: #2BDE90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  z-index: 2;
}

.vsp-pubmark svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.vsp-author .vsp-ic.on {
  color: var(--brand-text);
}

.vsp-author .vsp-ic svg[viewBox] path {
  stroke-linejoin: round;
}

.vsp-author .vsp-ic.on svg {
  fill: currentColor;
}

.vsp-likes-n {
  font-size: 12.5px;
  color: var(--fg2);
  font-variant-numeric: tabular-nums;
  margin-left: -2px;
}

.vsp-sbtn.on {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent);
}

.vsp-sbtn.on svg {
  color: var(--ok);
}

.vsp-pubm .vsp-pubm-pic {
  border-radius: 14px;
  overflow: hidden;
  background: var(--media-bg);
  margin: 4px 0 12px;
  display: flex;
  justify-content: center;
}

.vsp-pubm-pic img {
  max-width: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
}

.vsp-chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  margin-bottom: 10px;
}

.vsp-chk input {
  width: 18px;
  height: 18px;
  accent-color: #E54270;
  margin: 1px 0 0;
  flex-shrink: 0;
}

.vsp-chk span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}

.vsp-chk small {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .vsp-scen-row {
    grid-auto-columns: 132px;
  }
}

/* «Изменить фото»: инструменты списком + превью сбоку */
.vsp-ep-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 -6px;
}

.vsp-ep-g {
  padding: 12px 8px 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}

.vsp-ep-g:first-child {
  padding-top: 2px;
}

.vsp-ep-r {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}

.vsp-ep-r:hover,
.vsp-ep-r:focus-visible {
  background: var(--hover);
  outline: none;
}

.vsp-ep-r .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--card);
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}

.vsp-ep-r:hover .ic {
  background: var(--grad);
  color: var(--fg);
}

.vsp-ep-r .ic svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-ep-r b {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-ep-r small {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.vsp-ep-r.soon-r {
  opacity: .55;
}

.vsp-tpv {
  position: fixed;
  z-index: 70;
  width: 300px;
  border-radius: 16px;
  overflow: visible;
  background: var(--sheet);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--shade) 55%, transparent), inset 0 0 0 1px var(--tint-2);
  animation: vsp-tpvin .16s ease-out;
  pointer-events: none;
  --ay: 40px;
}

.vsp-tpv[hidden] {
  display: none;
}

.vsp-tpv::before {
  content: '';
  position: absolute;
  left: -6px;
  top: var(--ay);
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--sheet);
  transform: rotate(45deg);
  box-shadow: -1px 1px 0 var(--tint-2);
}

.vsp-tpv .vsp-ba {
  aspect-ratio: 4 / 3;
  border-radius: 16px 16px 0 0;
  animation: vsp-wipe 2.6s cubic-bezier(.45, 0, .25, 1) infinite;
}

.vsp-tpv .vsp-ba.isv {
  animation: none;
}

.vsp-tpv .vsp-ba .t {
  opacity: 1;
}

.vsp-tpv .tx {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.vsp-tpv .tx b {
  font-size: 15px;
}

.vsp-tpv .tx span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg2);
}

.vsp-tpv .tx small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

@keyframes vsp-tpvin {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}

/* ролик «стало» в карточке: поверх, без шторки */
.vsp-ba .v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s;
}

.vsp-ba.isv .a {
  clip-path: inset(0 0 0 50%);
}

.vsp-tcard:hover .vsp-ba.isv,
.vsp-ep-t:hover .vsp-ba.isv {
  animation: none;
}

.vsp-tcard:hover .vsp-ba.isv .v,
.vsp-tpv .vsp-ba.isv .v {
  opacity: 1;
}

.vsp-tcard:hover .vsp-ba.isv .l,
.vsp-tpv .vsp-ba.isv .l,
.vsp-tcard:hover .vsp-ba.isv .t,
.vsp-tpv .vsp-ba.isv .t {
  display: none;
}

/* вкладка «Инструменты» — облегчённая: картинка, название, цена */
.vsp-th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.vsp-th b {
  font-size: 22px;
  letter-spacing: -.01em;
}

.vsp-scen h3,
.vsp-tcat h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--fg);
}

.vsp-scen {
  margin-bottom: 28px;
}

.vsp-scen-row {
  grid-auto-columns: minmax(160px, 180px);
  gap: 12px;
}

.vsp-scard .pv {
  margin: 0;
  aspect-ratio: 4 / 5;
}

.vsp-scard .pv::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

.vsp-scard .pv b {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: 14px;
  line-height: 1.25;
  color: var(--on-media);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.vsp-tfilter {
  margin-bottom: 8px;
}

.vsp-tcat {
  margin: 18px 0 30px;
}

.vsp-tgrid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.vsp-tcard {
  border-radius: 16px;
  background: none;
  border: 0;
}

.vsp-tcard:hover {
  transform: none;
  box-shadow: none;
}

.vsp-tcard .vsp-ba {
  aspect-ratio: 1;
  border-radius: 16px;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
}

.vsp-tcard:hover .vsp-ba {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--shade) 45%, transparent);
}

.vsp-tcard-b {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 2px 0;
}

.vsp-tcard-b b {
  font-size: 14px;
  font-weight: 600;
}

.vsp-tcard-b small {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.vsp-tcard.soon-r .vsp-ba {
  filter: grayscale(.6) brightness(.7);
}

@media (max-width: 560px) {
  .vsp-tgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vsp-th b {
    font-size: 19px;
  }
}

/* «Вдохновение»: семейства моделей, у выбранного — модели второй строкой */
.vsp-fam2 {
  padding-top: 0;
  margin-top: -4px;
}

.vsp-fam2 button {
  height: 28px;
  font-size: 12.5px;
  background: none;
}

.vsp-chead-f {
  flex: 1;
  min-width: 0;
}

/* превью инструмента: лента за ним гаснет, у самого превью — светящаяся рамка */
.vsp-lib,
.vsp-view {
  transition: filter .25s ease;
}

body.vsp-tpv-on .vsp-lib,
body.vsp-tpv-on .vsp-view:not([hidden]) {
  filter: brightness(.32) saturate(.5) blur(1.5px);
}

.vsp-tpv {
  box-shadow: 0 24px 60px color-mix(in srgb, var(--shade) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent), 0 0 40px rgba(229, 66, 112, .18);
}

.vsp-pubmark.rev {
  color: #FFC46B;
}

/* «Изменить фото»: кнопки у выбранного фото */
.vsp-ep-pic .acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vsp-ep-pic .vsp-ic[data-ep=del]:hover {
  color: var(--bad);
}

/* «Вдохновение»: выбранное семейство со стрелкой выбора модели */
.vsp-fam button.dd {
  padding-right: 10px;
}

.vsp-fam button.dd svg:last-child {
  margin-left: 4px;
}

/* горизонтальные ленты без полосы прокрутки: затемнение краёв + стрелки */
.vsp-hs {
  position: relative;
  --fl: 0px;
  --fr: 0px;
}

.vsp-hs-row {
  scrollbar-width: none;
  padding-bottom: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}

.vsp-hs-row::-webkit-scrollbar {
  display: none;
}

.vsp-hs.l {
  --fl: 72px;
}

.vsp-hs.r {
  --fr: 72px;
}

.vsp-hs-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  border: 0;
  background: var(--glass);
  color: var(--fg);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--shade) 45%, transparent);
}

.vsp-hs-nav:hover {
  background: color-mix(in srgb, var(--fg) 10%, var(--card));
}

.vsp-hs-nav .vsp-chr {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-hs-nav.l {
  left: 4px;
}

.vsp-hs-nav.r {
  right: 4px;
}

.vsp-hs.l .vsp-hs-nav.l,
.vsp-hs.r .vsp-hs-nav.r {
  display: inline-flex;
}

@media (hover: none) {
  .vsp-hs-nav {
    display: none !important;
  }
}

/* больше воздуха на вкладке «Инструменты» */
#vspPane:has(.vsp-th) {
  padding-left: 28px;
  padding-right: 28px;
}

.vsp-th {
  margin: 10px 0 26px;
}

.vsp-scen {
  margin-bottom: 40px;
}

.vsp-scen h3,
.vsp-tcat h3 {
  margin-bottom: 16px;
}

.vsp-tcat {
  margin: 26px 0 44px;
}

.vsp-tgrid {
  gap: 22px 18px;
}

.vsp-tfilter {
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  #vspPane:has(.vsp-th) {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* «Ракурс в 3D»: кубик-камера показывает, откуда смотрим */
.vsp-cam3d {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 60%, rgba(229, 66, 112, .14), transparent 65%), var(--card);
  perspective: 500px;
  margin-bottom: 4px;
}

.vsp-cam3d .cube {
  position: relative;
  width: 54px;
  height: 54px;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(-20deg);
  transition: transform .12s ease-out;
}

.vsp-cam3d .cube i {
  position: absolute;
  inset: 0;
  border: 1.5px solid color-mix(in srgb, var(--fg) 55%, transparent);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

.vsp-cam3d .cube .f {
  transform: translateZ(27px);
  background: linear-gradient(135deg, rgba(162, 59, 245, .5), rgba(229, 66, 112, .5));
  border-color: var(--sel);
}

.vsp-cam3d .cube .b {
  transform: rotateY(180deg) translateZ(27px);
}

.vsp-cam3d .cube .l {
  transform: rotateY(-90deg) translateZ(27px);
}

.vsp-cam3d .cube .r {
  transform: rotateY(90deg) translateZ(27px);
}

.vsp-cam3d .cube .t {
  transform: rotateX(90deg) translateZ(27px);
}

.vsp-cam3d .cube .d {
  transform: rotateX(-90deg) translateZ(27px);
}

.vsp-cam3d .eye {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--sel);
  box-shadow: 0 0 10px #E54270;
}

.vsp-view.in-tool #vspImg {
  transform-origin: center;
}

/* шторка «было/стало»: обе половины обрезаются по линии, подписи — вместе со своей половиной */
.vsp-ba .hb,
.vsp-ba .ha {
  position: absolute;
  inset: 0;
}

.vsp-ba .hb {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.vsp-ba .ha {
  clip-path: inset(0 0 0 var(--x));
}

.vsp-ba .hb img,
.vsp-ba .ha img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vsp-ba .hb .t {
  left: 8px;
}

.vsp-ba .ha .t {
  right: 8px;
}

@keyframes vsp-wipe2 {

  0%,
  8% {
    --x: 82%;
  }

  46%,
  54% {
    --x: 18%;
  }

  92%,
  100% {
    --x: 82%;
  }
}

.vsp-tcard:hover .vsp-ba:not(.isv),
.vsp-scard:hover .vsp-ba:not(.isv),
.vsp-ep-t:hover .vsp-ba:not(.isv),
.vsp-tpv .vsp-ba:not(.isv) {
  animation: vsp-wipe2 3.2s ease-in-out infinite;
}

.vsp-tcard:hover .vsp-ba .t,
.vsp-scard:hover .vsp-ba .t {
  opacity: 1;
}

.vsp-ba.isv .ha {
  clip-path: inset(0 0 0 50%);
}

.vsp-scard .pv .vsp-ba {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.vsp-scard .pv .vsp-ba:not(:hover) .l {
  opacity: 0;
}

.vsp-scard:not(:hover) .vsp-ba {
  --x: 0%;
}

.vsp-scard .pv::after {
  z-index: 2;
  pointer-events: none;
}

.vsp-scard .pv b {
  z-index: 3;
}

.vsp-scard .vsp-ba .t {
  display: none;
}

.vsp-scard:hover .pv .vsp-ba img {
  transform: none;
}

.vsp-scard .pv .vsp-ba .t {
  top: 8px;
}

/* «Ракурс в 3D»: тянуть картинку */
.vsp-view.in-tool:has(.vsp-cam3d) .vsp-pic {
  cursor: grab;
}

.vsp-canvas.cam-drag .vsp-pic {
  cursor: grabbing;
}

.vsp-canvas.cam-drag #vspImg {
  transition: none !important;
}

.vsp-camhint {
  font-size: 11.5px;
  margin-top: -4px;
}

/* свернуть форму */
.vsp-mrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.vsp-mrow .vsp-mode {
  flex: 1;
  margin-bottom: 0;
}

.vsp-fmin svg,
.vsp-rail .vsp-ic svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-fmin.vsp-tip::after,
.vsp-rail .vsp-tip::after {
  right: auto;
  left: 0;
}

.vsp-rail {
  display: none;
}

.vsp-form {
  transition: width .28s cubic-bezier(.3, .7, .2, 1);
}

.vsp.fm-anim .vsp-form,
.vsp.form-min .vsp-form {
  overflow: hidden;
}

.vsp.form-min .vsp-form {
  width: 64px;
}

.vsp.form-min .vsp-form> :not(.vsp-rail) {
  display: none;
}

.vsp.form-min .vsp-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.vsp-rail .vsp-tip::after {
  left: calc(100% + 8px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}

.vsp-rail .vsp-tip:hover::after {
  transform: translateY(-50%);
}

.vsp-rail-new {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: var(--grad);
  color: var(--on-media);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(229, 66, 112, .35);
}

.vsp-rail-new svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

@media (max-width: 900px) {
  .vsp-fmin {
    display: none;
  }
}

/* тултип кнопки «Свернуть панель» — снизу, а не над краем экрана */
.vsp-fmin.vsp-tip::after {
  bottom: auto;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  transform: translateY(-3px);
  z-index: 30;
}

.vsp-fmin.vsp-tip:hover::after {
  transform: none;
}

/* плавное сворачивание формы: лента на время гаснет и проявляется уже пересобранной */
.vsp-feed,
.vsp-pane,
.vsp-canvas {
  transition: opacity .28s ease, transform .35s cubic-bezier(.22, 1, .36, 1), filter .28s ease;
}

.vsp.fm-anim .vsp-feed,
.vsp.fm-anim .vsp-pane,
.vsp.fm-anim .vsp-canvas {
  opacity: 0;
  transform: scale(.985);
  filter: blur(4px);
  transition-duration: .14s;
}

.vsp-form {
  transition: width .3s cubic-bezier(.3, .7, .2, 1);
}

.vsp-rail {
  animation: vsp-railin .3s ease both;
}

@keyframes vsp-railin {
  from {
    opacity: 0;
  }
}

/* сценарии — «дороже»: рамка с градиентом при наведении, свечение, лёгкий подъём */
.vsp-scard .pv {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px color-mix(in srgb, var(--shade) 35%, transparent);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s;
}

.vsp-scard .pv::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #A23BF5, #E0457B 55%, #DE762B);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.vsp-scard:hover .pv {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 50%, transparent), 0 0 30px rgba(229, 66, 112, .22);
}

.vsp-scard:hover .pv::before,
.vsp-scard.promo .pv::before {
  opacity: 1;
}

.vsp-scard .pv b {
  font-size: 14.5px;
  letter-spacing: -.01em;
}

.vsp-sbadge,
.vsp-sprice {
  position: absolute;
  z-index: 5;
  font-style: normal;
  font-weight: 700;
  border-radius: 100px;
}

.vsp-sbadge {
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  font-size: 12px;
  background: var(--grad);
  color: var(--on-media);
  box-shadow: 0 4px 12px rgba(229, 66, 112, .4);
}

.vsp-sprice {
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  font-size: 12px;
  background: rgba(16, 16, 18, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
}

.vsp-sprice s {
  opacity: .55;
  font-weight: 500;
  margin-left: 2px;
}

.vsp-scard.promo .pv {
  box-shadow: 0 0 0 1px rgba(229, 66, 112, .4), 0 10px 30px rgba(229, 66, 112, .2);
}

/* приветствие нового пользователя */
.vsp-welcome {
  margin: 8px 0 28px;
  padding: 26px;
  border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(162, 59, 245, .22), transparent 55%), radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--card);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 7%, transparent);
}

.vsp-wel-h h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.02em;
}

.vsp-wel-h p {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg2);
}

.vsp-gift {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent);
}

.vsp-gift .g {
  font-size: 22px;
}

.vsp-gift>span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.vsp-gift small {
  font-size: 12.5px;
  color: var(--fg2);
}

.vsp-wgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.vsp-wcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--tint-1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .25s, background .25s, box-shadow .25s;
}

.vsp-wcard:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  box-shadow: inset 0 0 0 1px var(--tint-3), 0 12px 28px color-mix(in srgb, var(--shade) 35%, transparent);
}

.vsp-wcard .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.vsp-wcard.hot .ic {
  background: var(--grad);
}

.vsp-wcard .ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-wcard b {
  font-size: 15px;
}

.vsp-wcard small {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg2);
}

@media (max-width: 700px) {
  .vsp-wgrid {
    grid-template-columns: 1fr;
  }

  .vsp-welcome {
    padding: 18px;
  }

  .vsp-wel-h h2 {
    font-size: 20px;
  }
}

/* ══════════ 21. ДОРАБОТКИ 15.10 ══════════ */
/* карточка генерации: этап с точками, полоска на всю ширину с переливом и свечением, процент, модель */
.vsp-tile.gen {
  background: radial-gradient(120% 90% at 50% 120%, var(--gen-glow), transparent 60%), radial-gradient(90% 70% at 0% 0%, var(--gen-glow-2), transparent 60%), linear-gradient(110deg, var(--gen-a) 30%, var(--gen-c) 45%, var(--gen-a) 60%) 0 0 / 300% 100%;
}

/* перелив — единственный слой с цветом карточки, его и двигает vsp-shim */
.vsp-gen {
  gap: 10px;
  padding: 16px;
}

.vsp-gen-st {
  font-size: 14px !important;
  letter-spacing: -.01em;
}

.vsp-gen-st .dots::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: vsp-dots 1.4s steps(4) infinite;
}

@keyframes vsp-dots {
  0% {
    content: '';
  }

  25% {
    content: '.';
  }

  50% {
    content: '..';
  }

  75% {
    content: '...';
  }
}

.vsp-gen-bar {
  position: relative;
  width: min(220px, 82%);
  height: 6px;
  border-radius: 6px;
  background: var(--tint-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 5%, transparent);
  overflow: visible;
}

.vsp-gen-bar i {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #A23BF5, #E0457B 55%, #DE762B);
  box-shadow: 0 0 12px rgba(229, 66, 112, .55);
  transition: width .9s linear;
  overflow: hidden;
  animation: none;
}

.vsp-gen-bar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-100%);
  animation: vsp-sheen 1.4s ease-in-out infinite;
}

@keyframes vsp-sheen {
  to {
    transform: translateX(100%);
  }
}

.vsp-gen-bar.q i {
  width: 30% !important;
  animation: vsp-qslide 1.6s ease-in-out infinite;
}

@keyframes vsp-qslide {
  0% {
    margin-left: 0;
  }

  50% {
    margin-left: 70%;
  }

  100% {
    margin-left: 0;
  }
}

.vsp-tile.gen.queue .vsp-gen-bar i {
  width: 30% !important;
}

.vsp-gen-m {
  font-size: 11.5px;
  color: var(--fg2);
  font-variant-numeric: tabular-nums;
}

.vsp-gen-m .pc {
  color: var(--fg);
  font-weight: 700;
}

.vsp-gen-mdl {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 3px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 11px;
  color: var(--fg2);
}

.vsp-gen-mdl .vsp-logo {
  width: 13px;
  height: 13px;
}

.vsp-gen-mdl> :first-child {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.vsp-tile.gen.bad,
.vsp-tile.gen.mod {
  background: radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--warn) var(--gen-fail-glow), transparent), transparent 60%), var(--gen-fail);
}

.vsp-gen-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--warn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsp-gen-ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-tile.gen.bad b,
.vsp-tile.gen.mod b {
  font-size: 14px;
}

.vsp-gen .refund {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vsp-gen .refund svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* карточка генерации подстраивается под размер плитки (ползунок масштаба, узкие пропорции):
   средняя — без пояснения; маленькая — короткие подписи «Не вышло» / «Модерация», «Вернули +8 ₽», «Поправить»;
   полный текст — в подсказке при наведении (title) */
.vsp-tile.gen {
  container-type: size;
}

.vsp-gen-s,
.vsp-gen .rs,
.vsp-gen .pill .bs {
  display: none;
}

@container (max-width: 250px) or (max-height: 240px) {

  .vsp-tile.gen.bad .vsp-gen,
  .vsp-tile.gen.mod .vsp-gen {
    gap: 6px;
    padding: 30px 10px 10px;
  }

  .vsp-tile.gen.bad .vsp-gen-d,
  .vsp-tile.gen.mod .vsp-gen-d,
  .vsp-tile.gen .vsp-gen-p {
    display: none;
  }

  .vsp-tile.gen.bad b,
  .vsp-tile.gen.mod b {
    font-size: 13px;
    line-height: 1.25;
  }

  .vsp-gen .refund {
    font-size: 11.5px;
  }

  .vsp-gen-ic {
    width: 30px;
    height: 30px;
  }

  .vsp-gen-ic svg {
    width: 16px;
    height: 16px;
  }
}

@container (max-width: 170px) or (max-height: 170px) {

  .vsp-tile.gen.bad .vsp-gen,
  .vsp-tile.gen.mod .vsp-gen {
    gap: 5px;
    padding: 26px 6px 8px;
  }

  .vsp-gen-t {
    display: none;
  }

  .vsp-gen-s {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--fg);
  }

  .vsp-gen .rl,
  .vsp-gen .pill .bl {
    display: none;
  }

  .vsp-gen .rs,
  .vsp-gen .pill .bs {
    display: inline;
  }

  .vsp-gen .refund {
    font-size: 11.5px;
    gap: 3px;
  }

  .vsp-gen .pill.sm {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }

  .vsp-gen-ic {
    width: 26px;
    height: 26px;
  }

  .vsp-gen-ic svg {
    width: 14px;
    height: 14px;
  }

  .vsp-tile.gen .vsp-gen-mdl {
    display: none;
  }
}

@container (max-width: 120px) or (max-height: 120px) {

  .vsp-gen-ic,
  .vsp-tile.gen.bad .vsp-gen .pill,
  .vsp-tile.gen.mod .vsp-gen .pill {
    display: none;
  }

  .vsp-tile.gen.bad .vsp-gen,
  .vsp-tile.gen.mod .vsp-gen {
    padding: 24px 4px 6px;
  }
}

/* свёрнутая форма: подсказки полоски видны поверх ленты */
.vsp.form-min:not(.fm-anim) .vsp-form {
  overflow: visible;
  position: relative;
  z-index: 30;
}

/* сценарии: место под подъём и рамку, стильные подписи, видео без шторки */
.vsp-scen-row {
  padding: 10px 6px 14px;
  margin: -10px -6px -14px;
}

.vsp-scard .pv b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.vsp-scard .pv .tt {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vsp-scard .pv .tt b {
  position: static;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.vsp-scard .pv .tt small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.vsp-scard .pv::after {
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(8, 8, 10, .85));
}

.vsp-scard .vsp-ba.isv .ha {
  clip-path: none;
}

.vsp-scard .vsp-ba.isv .hb,
.vsp-scard .vsp-ba.isv .l {
  display: none;
}

.vsp-scard:hover .vsp-ba.isv .v {
  opacity: 1;
}

.vsp-scard:not(:hover) .vsp-ba.isv {
  --x: 50%;
}

.vsp-hs-row {
  scroll-behavior: auto;
}

/* подарок — своя иконка вместо эмодзи */
.vsp-gift .g {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2BDE90, #1FA9C9);
  color: #0d1a14;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0;
}

.vsp-gift .g svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* приветствие нового пользователя — без «коробок», больше воздуха */
.vsp-welcome {
  position: relative;
  margin: 26px 0 46px;
  padding: 34px 4px 8px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.vsp-welcome::before {
  content: '';
  position: absolute;
  left: -10%;
  top: -40px;
  width: 520px;
  height: 260px;
  background: radial-gradient(closest-side, rgba(162, 59, 245, .22), transparent), radial-gradient(closest-side at 70% 60%, rgba(229, 66, 112, .16), transparent);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.vsp-welcome>* {
  position: relative;
  z-index: 1;
}

.vsp-welcome h2 {
  margin: 18px 0 10px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
  max-width: 640px;
}

.vsp-welcome h2 .gr {
  background: linear-gradient(90deg, #C77DFF, #FF6F91 55%, #FFA25B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vsp-welcome p {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg2);
}

.vsp-welcome .vsp-gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 5px 12px 5px 5px;
  border: 0;
  border-radius: 100px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.vsp-welcome .vsp-gift:hover {
  background: color-mix(in srgb, var(--ok) 18%, transparent);
}

.vsp-welcome .vsp-gift .g {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.vsp-welcome .vsp-gift .g svg {
  width: 14px;
  height: 14px;
}

.vsp-gift .go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  display: block;
}

.vsp-wacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
}

.vsp-wmain {
  width: auto !important;
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.vsp-wmain svg,
.vsp-wlink svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-wlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s;
}

.vsp-wlink:hover {
  opacity: 1;
}

.vsp-wlink svg {
  color: var(--fg2);
}

@media (max-width: 700px) {
  .vsp-welcome h2 {
    font-size: 26px;
  }

  .vsp-wmain {
    width: 100% !important;
    justify-content: center;
  }
}

/* «Изменить фото»: неактивная кнопка у нового пользователя */
.vsp-ep-drop .pill:disabled {
  opacity: 1;
  color: color-mix(in srgb, var(--fg) 35%, transparent);
  background: var(--tint-1);
  cursor: default;
}

.vsp-ep-drop .pill.vsp-tip::after {
  opacity: 0;
  background: var(--tip-bg);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--shade) 50%, transparent);
  color: var(--tip-fg);
}

.vsp-ep-drop .pill.vsp-tip:hover::after {
  opacity: 1;
}

.vsp-ep-drop .vsp-tip::after {
  right: auto;
  left: 50%;
  transform: translate(-50%, 3px);
  white-space: normal;
  width: 210px;
  text-align: center;
}

.vsp-ep-drop .vsp-tip:hover::after {
  transform: translate(-50%, 0);
}

/* несколько моделей сразу */
.vsp-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 12px;
}

.vsp-xm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 4px 0 4px;
  border-radius: 100px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(229, 66, 112, .35);
  font-size: 12.5px;
}

.vsp-xm .vsp-mic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 10px;
}

.vsp-xm .vsp-mic .vsp-logo {
  width: 13px;
  height: 13px;
}

.vsp-xm small {
  color: var(--muted);
  font-size: 11.5px;
}

.vsp-xm button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vsp-xm button:hover {
  background: var(--line);
  color: var(--fg);
}

.vsp-xadd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 9px;
  border: 1px dashed var(--line2);
  border-radius: 100px;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.vsp-xadd:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
}

.vsp-xadd svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.vsp-extra:not(.on) .vsp-xadd {
  border-color: transparent;
  padding-left: 4px;
}

.vsp-form.mode-edit .vsp-extra {
  display: none;
}

.vsp-tile.gen.queue .vsp-gen-bar i {
  animation: vsp-qslide 1.6s ease-in-out infinite;
}

.vsp-scard .pv .tt small {
  display: none;
}

/* ══════════ 22. ДОРАБОТКИ 15.10 (2) ══════════ */
.vsp-oldp {
  margin-left: 8px;
  font-weight: 400;
  opacity: .6;
  text-decoration-thickness: 1.5px;
}

/* подарок новичку — строка под кнопкой «Применить» */
.vsp-bonus-n {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ok);
}

.vsp-bonus-n i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}

.vsp-bonus-n svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-bonus-n+.vsp-meta {
  margin-top: 4px;
}

/* приветствие: по центру, уже, две равные кнопки и ссылка */
.vsp-welcome {
  max-width: 620px;
  margin: 9vh auto 40px;
  padding: 0 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vsp-welcome::before {
  left: 50%;
  top: -70px;
  transform: translateX(-50%);
  width: 560px;
  height: 280px;
}

.vsp-welcome h2 {
  font-size: 36px;
  margin: 20px 0 12px;
}

.vsp-welcome p {
  max-width: 460px;
}

.vsp-wacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 30px;
}

.vsp-wbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--tint-2);
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
}

.vsp-wbtn:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 16%, transparent), 0 14px 30px color-mix(in srgb, var(--shade) 40%, transparent);
}

.vsp-wbtn>svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: var(--line);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-wbtn.hot>svg {
  background: var(--grad);
}

.vsp-wbtn.hot {
  box-shadow: inset 0 0 0 1px rgba(229, 66, 112, .45), 0 10px 30px rgba(229, 66, 112, .15);
}

.vsp-wbtn span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vsp-wbtn b {
  font-size: 15px;
}

.vsp-wbtn small {
  font-size: 12.5px;
  color: var(--fg2);
}

.vsp-wmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  border: 0;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.vsp-wmore:hover {
  color: var(--fg);
}

.vsp-wmore svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 700px) {
  .vsp-wacts {
    grid-template-columns: 1fr;
  }

  .vsp-welcome {
    margin-top: 24px;
  }

  .vsp-welcome h2 {
    font-size: 27px;
  }
}

/* подсказка у неактивной «Из моих фото» — под кнопкой, на плотном фоне */
.vsp-ep-drop .vsp-tip::after {
  bottom: auto !important;
  top: calc(100% + 8px);
  background: var(--tip-bg);
  z-index: 5;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shade) 40%, transparent);
}

.vsp-ep-drop .row {
  position: relative;
}

/* поля сценария в инструменте */
.vsp-scf {
  padding: 12px;
  border-radius: 14px;
  background: rgba(229, 66, 112, .06);
  box-shadow: inset 0 0 0 1px rgba(229, 66, 112, .25);
}

.vsp-scf-f {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--fg2);
}

.vsp-scf .vsp-meta {
  margin: 8px 0 0;
  font-size: 11.5px;
}

/* «Сделать обложкой трека» */
.vsp-covm .ssheet {
  width: min(820px, calc(100vw - 24px));
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.vsp-cov-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  font-size: 17px;
}

.vsp-cov-b {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  padding: 8px 18px 18px;
}

.vsp-cov-l {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vsp-cov-s {
  max-width: none;
  margin-bottom: 8px;
  flex: none;
}

.vsp-cov-f {
  margin-bottom: 8px;
  flex: none;
}

.vsp-cov-f button {
  cursor: pointer;
}

.vsp-cov-f [data-cf=fav] svg {
  fill: currentColor;
  stroke: none;
  color: var(--accent);
}

.vsp-cov-s svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.vsp-cov-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 380px;
  overflow-y: auto;
}

.vsp-cov-t {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vsp-cov-t:hover {
  background: var(--hover);
}

.vsp-cov-t.on {
  background: var(--line);
}

.vsp-cov-t .cv {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.vsp-cov-t .tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vsp-cov-t b {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-cov-t small {
  font-size: 11.5px;
  color: var(--muted);
}

.vsp-cov-t>svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-cov-r {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vsp-cov-pv {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  background-size: cover;
  background-color: var(--media-bg);
  cursor: grab;
  touch-action: none;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shade) 45%, transparent);
}

.vsp-cov-pv.drag {
  cursor: grabbing;
}

.vsp-cov-pv .hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .7);
  font-size: 11.5px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .2s;
}

.vsp-cov-pv.drag .hint {
  opacity: 0;
}

.vsp-cov-pv .hint svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.vsp-cov-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vsp-cov-info b {
  font-size: 14px;
}

.vsp-cov-info small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.vsp-cov-r .cf-create:disabled {
  opacity: .5;
}

@media (max-width: 700px) {
  .vsp-cov-b {
    grid-template-columns: 1fr;
  }

  .vsp-cov-list {
    max-height: 200px;
  }
}

/* ══════════ 23. Свежий взгляд: правки по итогам аудита (16.10) ══════════ */
/* сценарии: метка и цена — плашкой над названием, верх картинки чистый */
.vsp-splate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 2px;
}

.vsp-splate .vsp-sbadge,
.vsp-splate .vsp-sprice {
  position: static;
  box-shadow: none;
}

.vsp-splate .vsp-sprice {
  background: rgba(255, 255, 255, .16);
}

/* «Загрузить фото» во вкладке «Инструменты» — как в ленте */
.vsp-th .vsp-upbtn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* гость: подарок за регистрацию над примерами */
.vsp-gift-g {
  width: 100%;
  margin: 4px 0 14px;
  border: 0;
  color: var(--fg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vsp-gift-g .g {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2BDE90, #1FB5C9);
  color: #0d1f17;
  flex-shrink: 0;
}

.vsp-gift-g .g svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-gift-g b {
  color: var(--ok-text);
  font-size: 14px;
}

.vsp-gift-g small {
  font-size: 12px;
  color: var(--muted);
}

.vsp-gift-g .go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ok-text);
  stroke-width: 2;
}

/* сценарий в инструменте: пример результата */
.vsp-scf-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vsp-scf-top>span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vsp-scf-top b {
  font-size: 13.5px;
}

.vsp-scf-top small {
  font-size: 11.5px;
  color: var(--muted);
}

.vsp-scf-ex {
  width: 52px;
  height: 64px;
  border-radius: 9px;
  background: center / cover no-repeat var(--line);
  flex-shrink: 0;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--shade) 35%, transparent);
}

.vsp-scf .vsp-scf-f:first-of-type {
  margin-top: 10px;
}

/* таблица моделей на гостевой: на узком месте — 4 главные колонки */
.vsp-tbl-w {
  container-type: inline-size;
}

@container (max-width: 860px) {

  .vsp-tbl th:nth-child(n+6),
  .vsp-tbl td:nth-child(n+6) {
    display: none;
  }
}

@container (max-width: 480px) {

  .vsp-tbl th:nth-child(3),
  .vsp-tbl td:nth-child(3) {
    display: none;
  }

  .vsp-tbl td,
  .vsp-tbl th {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* поиск по инструментам в «Редактировать» */
.vsp-tq {
  max-width: none;
  flex: none;
  margin: 2px 0 10px;
  height: 38px;
}

.vsp-tq svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.vsp-tq-empty {
  padding: 8px 4px;
  line-height: 1.45;
}

/* пакетная правка: меню инструментов */
.vsp-bt-ic {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -5px;
}

.vsp-bt-ic svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-i:has(> .grow > .vsp-bt-ic)>svg.i:first-child {
  display: none;
}

.vsp-batch {
  background: var(--grad) !important;
  border-color: transparent !important;
  color: var(--fg) !important;
}

.vsp-batch svg {
  margin-right: 2px;
}

.vsp-batch:disabled {
  opacity: .45;
}

/* телефон: окно фото — картинка сверху, главные действия сразу под ней */
.vsp-mqa {
  display: none;
}

@media (max-width: 900px) {
  .vsp-stage {
    height: auto;
    max-height: 64dvh;
  }

  .vsp-canvas {
    flex: none;
    align-items: flex-start;
    padding-top: 4px;
  }

  .vsp-pic img {
    max-height: calc(64dvh - 72px);
  }

  .vsp-mqa {
    display: flex;
    gap: 6px;
    padding: 12px 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .vsp-mqa:empty {
    display: none;
  }

  .vsp-mqa button {
    flex: 1 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px 8px;
    border: 0;
    border-radius: 14px;
    background: var(--card);
    color: var(--fg);
    font: inherit;
    font-size: 11.5px;
  }

  .vsp-mqa button:first-child {
    background: var(--grad);
  }

  .vsp-mqa svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .vsp-view.in-tool .vsp-mqa {
    display: none;
  }
}

.vsp .vsp-th .vsp-upbtn.vsp-chip:not(#vspFModel) {
  width: auto;
  padding: 0 14px 0 12px;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
}

.vsp .vsp-th .vsp-upbtn .t {
  display: inline;
}

/* «Часто используете» — свои частые инструменты над категориями */
.vsp-freq {
  margin-bottom: 6px;
}

.vsp-freq-h {
  padding: 4px 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

/* подписи в меню: «как обычно» у формата, пояснение у вариантов сохранения */
.vsp-dl-def {
  margin-left: 6px;
  font-size: 11px;
  color: var(--muted);
}

.vsp-sv-s {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

/* ══════════ 24. Аудит 2 (16.10): правки ══════════ */
/* мобильное меню: у гостя «Войти» на месте «Мои фото» — «Создать» всегда по центру */
body:not(.vsp-guest) #mTabs [data-mtab=login] {
  display: none !important;
}

/* звезда избранного — везде одного цвета (акцентный): на плитке, в окне фото, в фильтрах (аудит 4) */
/* «Инструменты» на компьютере — по 4 в ряд, без дыр в рядах */
@media (min-width: 901px) {
  .vsp-tgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

/* новая работа проявляется в ленте */
@keyframes vsp-born {
  0% {
    opacity: 0;
    transform: scale(.94);
    filter: blur(10px) brightness(1.6);
  }

  60% {
    opacity: 1;
    filter: blur(0) brightness(1.15);
  }

  100% {
    transform: none;
    filter: none;
  }
}

.vsp-tile.born {
  animation: vsp-born .9s cubic-bezier(.22, 1, .36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .vsp-tile.born {
    animation: none;
  }
}

/* обязательный выбор без значения по умолчанию */
.vsp-gh {
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.vsp-need .vsp-gh {
  color: var(--brand-text);
}

/* пример результата в панели инструмента без вариантов */
.vsp-tex-ba .vsp-ba {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.vsp-tex .vsp-blk-h small {
  margin-left: 8px;
  font-weight: 400;
  color: var(--muted);
}

/* «Сделать видео (первый кадр)»: кадр → плёнка */
.vsp-gov {
  position: relative;
  display: block;
  overflow: hidden;
}

.vsp-gov img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.vsp-gov::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65));
}

.vsp-gov-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(8, 8, 10, .8);
  z-index: 1;
}

.vsp-gov-strip i {
  width: 14%;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
}

.vsp-gov-t {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-media);
}

.vsp-gov-t svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.vsp-tcard:hover .vsp-gov img {
  transform: scale(1.05);
}

/* сценарий: при наведении в углу проявляется «было» */
.vsp-sbefore {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 10px;
  width: 30%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 255, 255, .85);
  opacity: 0;
  transform: translateY(-6px) scale(.9) rotate(4deg);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.vsp-sbefore img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-sbefore b {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .7);
  font-size: 9.5px;
  font-weight: 600;
}

.vsp-scard.has-b:hover .vsp-sbefore,
.vsp-scard.has-b:focus-visible .vsp-sbefore {
  opacity: 1;
  transform: rotate(4deg);
}

@media (hover: none) {
  .vsp-sbefore {
    display: none;
  }
}

/* «Для рекламы» в выборе модели */
.vsp-new.ads {
  margin-left: 6px;
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok-text);
}

/* «Было → стало» на гостевой: ровный ряд из трёх, автошторка при наведении, больше воздуха между блоками */
.vsp-pairs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.vsp-pair {
  width: auto;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
}

@keyframes vsp-pairwipe {

  0%,
  6% {
    --x: 50%;
  }

  30%,
  38% {
    --x: 8%;
  }

  62%,
  70% {
    --x: 92%;
  }

  94%,
  100% {
    --x: 50%;
  }
}

.vsp-pair:not(.touched):not(.drag):hover {
  animation: vsp-pairwipe 3.6s ease-in-out infinite;
}

.vsp-feed .vsp-group+.vsp-group,
.vsp-feed .vsp-mban+.vsp-group {
  margin-top: 30px;
}

.vsp-mban {
  min-height: 168px;
}

@media (max-width: 900px) {
  .vsp-pairs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .vsp-pair {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsp-pair:hover {
    animation: none !important;
  }
}

/* ══════════ 25. Аудит 3 (16.10) ══════════ */
/* приветствие: подсветка идёт за курсором — по умолчанию «Создать», при наведении на «Изменить» — она */
.vsp-wacts:has(.vsp-wbtn:not(.hot):hover) .vsp-wbtn.hot {
  box-shadow: inset 0 0 0 1px var(--tint-2);
}

.vsp-wacts:has(.vsp-wbtn:not(.hot):hover) .vsp-wbtn.hot>svg {
  background: var(--line);
}

.vsp-wbtn:not(.hot):hover {
  box-shadow: inset 0 0 0 1px rgba(229, 66, 112, .45), 0 10px 30px rgba(229, 66, 112, .15);
}

.vsp-wbtn:not(.hot):hover>svg {
  background: var(--grad);
}

.vsp-wbtn>svg {
  transition: background .25s;
}

/* звезда избранного в «Деталях» — белая, как на плитках */
.vsp-acts .vsp-ic.on {
  color: var(--accent);
}

/* избранное — оранжевое, как на плитке и в выборе модели */
.vsp-acts .vsp-ic.on svg {
  fill: currentColor;
}

/* уведомления в окне фото — над лентой версий */
body.vsp-viewing .stoast {
  bottom: 128px !important;
}

@media (max-width: 900px) {
  body.vsp-viewing .stoast {
    bottom: 24px !important;
  }
}

/* «Применяем…»: картинка не тускнеет, по ней идёт мягкий перелив в цветах бренда */
.vsp-pic.busy img {
  opacity: .82;
  filter: saturate(.85);
}

.vsp-pic.busy::after {
  background: linear-gradient(110deg, transparent 25%, rgba(229, 66, 112, .22) 40%, rgba(255, 255, 255, .28) 50%, rgba(140, 80, 255, .22) 60%, transparent 75%) 0 0 / 300% 100%;
  animation-duration: 1.8s;
}

/* подсказка «Tab» — только с клавиатурой; на телефоне — «Вставить пример» */
.vsp-ph-ins {
  display: none;
}

@media (hover: none) {
  .vsp-ph kbd {
    display: none;
  }

  .vsp-ph {
    pointer-events: none;
  }

  .vsp-ph-ins {
    display: inline-flex;
    pointer-events: auto;
    margin-left: 6px;
    height: 24px;
    padding: 0 10px;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--line2);
    background: var(--card);
    color: var(--fg2);
    font: 600 12px var(--font);
    vertical-align: 1px;
  }
}

/* меню «Папки» без папок — пояснение */
.vsp-fhint {
  display: block;
  max-width: 240px;
  white-space: normal;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* поиск в «Изменить фото» (форма) */
#vspEp .vsp-tq {
  margin: 2px 0 6px;
}

/* телефон: окно фото без вкладок «Детали / Редактировать» — переключает первая кнопка под фото */
@media (max-width: 900px) {
  .vsp-view:not(.insp) .vsp-side-tabs {
    display: none;
  }
}

/* телефон: настройки (сколько, пропорции, качество) — сразу под моделью; карточка модели компактнее */
@media (max-width: 900px) {

  /* порядок полей — как на компьютере: промпт, референсы, потом «сколько · пропорции · качество» (16.10) */
  .vsp-model {
    padding: 8px 12px;
    min-height: 0;
  }

  .vsp-model .vsp-mic {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .vsp-model-t {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
}

/* инструмент без своего фото: пример на фоне, призыв загрузить — по центру */
.vsp-view.demo .vsp-nav,
.vsp-view.demo #vspVN,
.vsp-view.demo .vsp-side-tabs,
.vsp-view.demo #vspVersW,
.vsp-view.demo .vsp-mqa,
.vsp-view.demo [data-v=zin],
.vsp-view.demo [data-v=zout],
.vsp-view.demo [data-v=fit] {
  display: none !important;
}

.vsp-view.demo #vspPic {
  filter: blur(3px) brightness(.45);
  transform: scale(.98);
}

.vsp-demo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 5;
}

.vsp-demo-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 380px;
  padding: 28px 26px 22px;
  border-radius: 22px;
  background: rgba(20, 20, 22, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .5);
  text-align: center;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
}

.vsp-view.drag .vsp-demo-c,
.vsp-demo-c:hover {
  box-shadow: inset 0 0 0 1.5px rgba(229, 66, 112, .7), 0 24px 60px rgba(229, 66, 112, .18);
}

.vsp-view.drag .vsp-demo-c {
  transform: scale(1.03);
}

.vsp-demo-c .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad);
  margin-bottom: 4px;
}

.vsp-demo-c .ic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--on-media);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-demo-c b {
  font-size: 18px;
}

.vsp-demo-c small {
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.45;
}

.vsp-demo-c .row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.vsp-demo-c .cf-create.sm {
  width: auto;
  height: 40px;
  padding: 0 18px;
}

.vsp-demo-g {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2BDE90;
}

.vsp-demo-g i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(43, 222, 144, .14);
}

.vsp-demo-g svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* сравнение: что с чем и как */
.vsp-cmpctl {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--shade) 40%, transparent);
}

.vsp-cmpctl[hidden] {
  display: none;
}

.vsp-cmp-a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 100px;
  background: var(--line);
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.vsp-cmp-a b {
  color: var(--fg);
  font-weight: 600;
}

.vsp-cmp-s {
  display: inline-flex;
  padding: 2px;
  border-radius: 100px;
  background: var(--card);
}

.vsp-cmp-s button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.vsp-cmp-s button[aria-pressed=true] {
  background: var(--sel);
  color: var(--sel-ink);
  font-weight: 600;
}

/* «Шторка» недоступна (разные пропорции, референс): видна приглушённой, по нажатию — тост с причиной */
.vsp-cmp-s button[aria-disabled=true] {
  opacity: .45;
  cursor: help;
}

/* роль референса */
.vsp-ref-role {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 20px;
  border: 0;
  border-radius: 100px;
  background: rgba(16, 16, 18, .72);
  color: rgba(255, 255, 255, .7);
  font: 600 10.5px var(--font);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}

.vsp-ref:hover .vsp-ref-role,
.vsp-ref-role.on,
.vsp-ref:focus-within .vsp-ref-role {
  opacity: 1;
}

.vsp-ref-role.on {
  background: var(--grad);
  color: var(--on-media);
}

@media (hover: none) {
  .vsp-ref-role {
    opacity: 1;
  }
}

/* перетаскивание фото на карточку инструмента */
.vsp-drop-on {
  outline: 2px dashed rgba(229, 66, 112, .9);
  outline-offset: 4px;
  border-radius: 16px;
}

/* метки сохранённых промптов */
.vsp-lib-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 10px 6px;
}

.vsp-lib-tags:empty {
  display: none;
}

.vsp-lib-tags button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line2);
  border-radius: 100px;
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.vsp-lib-tags button[aria-pressed=true] {
  background: var(--line);
  border-color: transparent;
  color: var(--fg);
}

.vsp-lib-tg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  align-items: center;
}

.vsp-lib-tg i {
  font-style: normal;
  font-size: 11px;
  color: var(--brand-text);
}

.vsp-lib-tg button,
.vsp-lib-tin {
  height: 20px;
  padding: 0 8px;
  border: 1px dashed var(--line2);
  border-radius: 100px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}

.cf-lib-i:hover .vsp-lib-tg button,
.vsp-lib-tin {
  opacity: 1;
}

.vsp-lib-tin {
  width: 120px;
  color: var(--fg);
  outline: none;
  cursor: text;
}

.vsp-ph.out .vsp-ph-ins {
  pointer-events: none;
}

body:has(#vspSelBar:not([hidden])) .stoast {
  bottom: 84px !important;
}

/* выбор нескольких: уведомление над панелью выбора */
.vsp-ref .vsp-ref-role {
  top: auto;
  right: 4px;
  left: 26px;
  bottom: 4px;
  width: auto;
  height: 18px;
  border-radius: 100px;
  padding: 0 6px;
  font-size: 10px;
}

.vsp-ref:hover .vsp-ref-role,
.vsp-ref .vsp-ref-role.on {
  opacity: 1;
}

@media (hover: none) {
  .vsp-ref .vsp-ref-role {
    opacity: 1;
  }
}

/* ══════════ 26. Правки 16.10 (гость, сценарии, вход) ══════════ */
/* галочка выбранного варианта видна и на белом превью */
.vsp-tcards button[aria-checked=true] .pv::after {
  width: 20px;
  height: 20px;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(16, 16, 18, .85), 0 2px 8px rgba(0, 0, 0, .45);
}

.vsp-tcards button[aria-checked=true] .pv {
  box-shadow: 0 0 0 2px var(--sel), 0 0 0 4px rgba(229, 66, 112, .55);
}

/* поиск по инструментам — с отступом от верха панели */
#vspSideEdit>.vsp-tq {
  margin-top: 12px;
}

/* «Поделиться» у работы из подборки — подсказка вниз-влево, не прячется за краем */
.vsp-author .vsp-tip::after {
  bottom: auto;
  top: calc(100% + 6px);
  right: 0;
}

/* пример в инструменте: шторка ездит сама при наведении и один раз при открытии; у видео — ролик; у сценария — картинка результата */
.vsp-tex .vsp-ba:not(.isv):not(.vsp-rf) {
  animation: vsp-wipe2 3.2s ease-in-out 1 .3s;
}

.vsp-tex:hover .vsp-ba:not(.isv):not(.vsp-rf) {
  animation: vsp-wipe2 3.2s ease-in-out infinite;
}

.vsp-tex .vsp-ba .t {
  opacity: 1;
}

.vsp-tex-v,
.vsp-tex-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--card);
}

.vsp-tex.sc .vsp-tex-img {
  aspect-ratio: 4 / 5;
  max-height: 360px;
}

/* вернулись из инструмента к сценарию — он подсвечивается в ряду */
.vsp-scard.vsp-back .pv {
  animation: vsp-backglow 1.3s ease-out;
}

@keyframes vsp-backglow {
  0% {
    box-shadow: 0 0 0 3px var(--sel), 0 0 30px rgba(229, 66, 112, .7);
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ===== 27. Аудит 4 (16.10) ===== */
/* метка на углу кнопки применения: «Подарок» покачивается, «Бесплатно» — спокойная */
.vsp-tool-f .cf-create {
  position: relative;
  overflow: visible;
}

.vsp-rib {
  position: absolute;
  top: -9px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px 0 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--on-media);
  pointer-events: none;
  transform: rotate(-4deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.vsp-rib.free {
  background: #1FA971;
  padding: 0 9px;
}

.vsp-rib.gift {
  background: linear-gradient(135deg, #2BDE90, #12A86B);
  transform-origin: 20% 100%;
  animation: vsp-rib 4s ease-in-out infinite;
}

.vsp-rib i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
}

.vsp-rib svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-rib.gift i {
  animation: vsp-rib-i 4s ease-in-out infinite;
}

.vsp-rib.gift::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: vsp-rib-sh 4s ease-in-out infinite;
}

@keyframes vsp-rib {

  0%,
  70%,
  100% {
    transform: rotate(-4deg);
  }

  76% {
    transform: rotate(-10deg) translateY(-2px);
  }

  82% {
    transform: rotate(2deg);
  }

  88% {
    transform: rotate(-6deg);
  }

  94% {
    transform: rotate(-3deg);
  }
}

@keyframes vsp-rib-i {

  0%,
  72%,
  100% {
    transform: none;
  }

  78% {
    transform: translateY(-3px) scale(1.15) rotate(-12deg);
  }

  86% {
    transform: translateY(0) scale(1);
  }
}

@keyframes vsp-rib-sh {

  0%,
  60% {
    background-position: 150% 0;
  }

  85%,
  100% {
    background-position: -100% 0;
  }
}

.vsp-free {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {

  .vsp-rib.gift,
  .vsp-rib.gift i,
  .vsp-rib.gift::after {
    animation: none;
  }
}

/* применить нельзя: кнопка приглушена и говорит, чего не хватает; по нажатию — подсветка поля */
.vsp-tool-f .cf-create.wait {
  background: color-mix(in srgb, var(--fg) 15%, var(--panel));
  color: var(--fg2);
  box-shadow: none;
}

.vsp-tool-f .cf-create.wait:hover {
  background: color-mix(in srgb, var(--fg) 18%, var(--panel));
}

.vsp-tool-f .cf-create.wait .vsp-rib {
  opacity: .55;
  animation: none;
}

.vsp-miss {
  border-radius: 12px;
  outline: 2px solid transparent;
  outline-offset: 6px;
  animation: vsp-miss 2s ease-out;
}

@keyframes vsp-miss {

  0%,
  40% {
    outline-color: var(--bad);
  }

  6% {
    transform: translateX(-5px);
  }

  12% {
    transform: translateX(5px);
  }

  18% {
    transform: none;
  }

  100% {
    outline-color: transparent;
  }
}

/* телефон: в инструменте фото крупнее, карточки пресетов — горизонтальной лентой */
@media (max-width: 900px) {
  .vsp-view.in-tool .vsp-stage {
    height: 44vh;
    height: 44dvh;
  }

  .vsp-view.in-tool .vsp-pic img {
    max-height: calc(44dvh - 74px);
  }

  .vsp-tcards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 3px 16px 4px;
    scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent);
  }

  .vsp-tcards::-webkit-scrollbar {
    display: none;
  }

  .vsp-tcards b {
    font-size: 11.5px;
  }
}

/* баннер модели: одна кнопка; «Как писать промпты» — ссылкой в описании */
.vsp-mban-l {
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 35%, transparent);
  transition: border-color .2s;
}

.vsp-mban-l:hover {
  border-color: var(--sel);
}

.vsp-mban-a .pill.go {
  padding: 0 22px;
}

/* телефон: баннер компактный — примеры «Было → стало» попадают на первый экран */
@media (max-width: 700px) {
  .vsp-mban {
    min-height: 0;
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .vsp-mban .vsp-mic.lg {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .vsp-mban-t b {
    font-size: 16px;
  }

  .vsp-mban-t p {
    margin: 3px 0 8px;
    font-size: 12.5px;
  }

  .vsp-mban-s {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .vsp-mban-s span {
    height: 22px;
    padding: 0 8px;
    font-size: 11.5px;
    flex: none;
  }

  .vsp-mban-s span:nth-child(n+4) {
    display: none;
  }

  .vsp-mban {
    flex-wrap: wrap;
  }

  .vsp-mban-t {
    flex: 1 1 0;
  }

  .vsp-mban-s {
    display: none;
  }

  .vsp-mban-a {
    flex-basis: 100%;
    width: auto;
    margin: 0 0 0 46px;
  }

  .vsp-mban-a .pill.go {
    height: 34px;
    padding: 0 16px;
    font-size: 13px;
    flex: none;
  }
}

/* «Сделать видео»: первый кадр и перекрёстные ссылки с «Оживить» */
.vsp-ff {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.vsp-ff img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vsp-ff span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--on-media);
}

.vsp-ff i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vsp-ff svg {
  width: 18px;
  height: 18px;
  fill: var(--on-media);
  stroke: none;
  margin-left: 2px;
}

.vsp-xlink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  background: none;
  color: var(--fg2);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.vsp-xlink b {
  color: var(--fg);
  font-weight: 600;
  font-size: 13.5px;
}

.vsp-xlink:hover {
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

/* мелкий серый текст — чуть крупнее и светлее, читается на ноутбуке при ярком свете */
.vsp {
  --muted: #A0A0A8;
}

[data-theme="light"] .vsp {
  --muted: inherit;
}

/* в светлой теме — общий --muted */
.vsp-meta {
  font-size: 13px;
}

.vsp-blk-h small,
.vsp-gh {
  font-size: 12px;
}

.vsp-tchips button.sub small {
  font-size: 12px;
}

.vsp-tool-f .vsp-meta {
  font-size: 12.5px;
}

/* «Подарить другу первую правку»: пункт в «Поделиться» и окно с условиями */
.vsp-refi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-weight: 600;
}

.vsp-refi i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  animation: vsp-rib-i 4s ease-in-out infinite;
}

.vsp-refi svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vm-i:has(> .grow > .vsp-refi)>svg.i:first-child {
  display: none;
}

/* телефон: в сравнении подписи «Было/Стало» по углам не нужны — всё сказано в панели сверху */
@media (max-width: 900px) {
  .vsp-cmp-t {
    display: none !important;
  }

  #vspCmpBtn[aria-pressed=true]::after {
    display: none;
  }

  .vsp-cmpctl {
    top: 4px;
    transform: translateX(-50%) scale(.9);
  }
}

/* долгое нажатие: исходник на весь кадр — шторку и панель сравнения прячем */
.vsp-view:has(.vsp-pic.orig) #vspCmp,
.vsp-view:has(.vsp-pic.orig) .vsp-cmpctl {
  display: none !important;
}

/* ===== 28. Правки 16.10 (вечер) ===== */
/* телефон, инструмент: миниатюры версий не наезжают на заголовок — всё помещается в закреплённую область */
@media (max-width: 900px) {
  .vsp-view.in-tool .vsp-stage {
    overflow: hidden;
    max-height: none;
  }

  .vsp-view.in-tool .vsp-canvas {
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    padding: 0 8px 2px;
  }

  .vsp-view.in-tool .vsp-pic img {
    max-height: calc(44dvh - 106px);
  }

  .vsp-view.in-tool .vsp-vers-w {
    height: 56px;
    overflow: hidden;
  }

  .vsp-view.in-tool .vsp-vers {
    padding-top: 6px;
  }
}

/* «N повторов» — всегда в одну строку */
.vsp-sbuzz {
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-sbuzz svg {
  flex: none;
}

/* «Аватарка»: соцсети — значок площадки и размер, компактной сеткой */
.vsp-nets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
}

.vsp-nets button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px 0 7px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.vsp-nets button:hover {
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
  color: var(--fg);
}

.vsp-nets button[aria-checked=true] {
  background: var(--line);
  border-color: var(--sel);
  color: var(--fg);
}

.vsp-ni {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-style: normal;
}

.vsp-ni svg {
  width: 15px;
  height: 15px;
}

.vsp-ni b {
  font-size: 8.5px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -.02em;
}

.vsp-nets-n {
  display: block;
  margin-top: 6px;
}

/* «Приглашайте друзей»: компактное окно — шапка с подарком, «другу / вам», ссылка с копированием */
.vsp-refmw .ssheet {
  width: min(420px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
}

.vsp-refm {
  position: relative;
  padding: 0 18px 18px;
}

.vsp-refm-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--tint-2);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.vsp-refm-x:hover {
  background: color-mix(in srgb, var(--fg) 16%, transparent);
}

.vsp-refm-hero {
  margin: 0 -18px 14px;
  padding: 26px 24px 20px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--ok) 28%, transparent), color-mix(in srgb, var(--ok) 0%, transparent) 70%);
}

.vsp-refm-ic {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2BDE90, #12A86B);
  color: var(--on-media);
  box-shadow: 0 10px 30px rgba(43, 222, 144, .35);
  animation: vsp-rib-i 4s ease-in-out infinite;
}

.vsp-refm-ic svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-refm-hero b {
  display: block;
  margin-top: 12px;
  font-size: 19px;
  color: var(--fg);
}

.vsp-refm-hero p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--fg2);
}

.vsp-refm-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vsp-refm-two div {
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
}

.vsp-refm-two small {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ok);
  font-weight: 600;
}

.vsp-refm-two b {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--fg);
  font-weight: 600;
}

.vsp-refm-l {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 5px 5px 14px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--shade) 25%, transparent);
}

.vsp-refm-l span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--fg2);
}

.vsp-refm-l button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: var(--sel);
  color: var(--sel-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.vsp-refm-l button.ok {
  background: var(--ok);
}

.vsp-refm-s {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.vsp-refm-s a {
  display: inline-grid;
  text-decoration: none;
  transition: transform .15s;
}

.vsp-refm-s a:hover {
  transform: translateY(-1px);
}

.vsp-refm-s .vsp-ni {
  width: 28px;
  height: 28px;
}

.vsp-refm-s .vsp-ni svg {
  width: 17px;
  height: 17px;
}

.vsp-refm-s .vsp-ni b {
  font-size: 10px;
}

.vsp-refm-s .grow {
  flex: 1;
}

.vsp-refm-t {
  font-size: 12.5px;
  color: var(--fg2) !important;
  border-bottom: 1px solid var(--line2);
}

/* «Оживить здесь / В разделе „Видео“»: две дорожки, переключатель одинаковый в обоих инструментах */
.vsp-vseg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: var(--seg-track);
}

.vsp-vseg button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--fg2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.vsp-vseg button b {
  font-size: 13.5px;
  font-weight: 600;
}

.vsp-vseg button small {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
}

.vsp-vseg button:hover {
  color: var(--fg);
}

.vsp-vseg button[aria-selected=true] {
  background: var(--seg-strong);
  color: var(--seg-strong-ink);
  box-shadow: var(--seg-shadow);
}

.vsp-vseg button[aria-selected=true] small {
  color: color-mix(in srgb, var(--seg-strong-ink) 68%, var(--seg-strong));
}

/* подарок на кнопке: вариант D (выбран 16.10) — блик по кнопке и строка «Первая правка — подарок» под ней.
   html[data-gv=d] ставит раздел; B (белая метка «Подарок») — запасной, включается html[data-gv=b] */
.vsp-gsh,
.vsp-gline {
  display: none;
}

.vsp-tool-f .vsp-gline {
  margin-top: 2px;
}

[data-gv=d] .vsp-rib.gift {
  display: none;
}

[data-gv=b] .vsp-rib.gift {
  background: #fff;
  color: #E54270;
  transform: none;
  animation: vsp-rib-b 4s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(229, 66, 112, .35);
}

[data-gv=b] .vsp-rib.gift::after {
  display: none;
}

@keyframes vsp-rib-b {

  0%,
  72%,
  100% {
    transform: translateY(0);
  }

  80% {
    transform: translateY(-4px);
  }

  88% {
    transform: translateY(0);
  }

  93% {
    transform: translateY(-2px);
  }
}

[data-gv=d] .vsp-gsh {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

[data-gv=d] .vsp-gsh::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: vsp-gsh 3.6s ease-in-out infinite;
}

@keyframes vsp-gsh {

  0%,
  55% {
    left: -50%;
  }

  85%,
  100% {
    left: 120%;
  }
}

[data-gv=d] .vsp-gline {
  display: flex;
}

.cf-create.wait .vsp-gsh {
  opacity: .5;
  animation: none;
}

/* [ПРОТОТИП] рамка «Телефон 390×844» */
.vsp-phonew {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(8, 8, 10, .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.vsp-phone-dev {
  position: relative;
  width: 390px;
  height: 844px;
  padding: 12px;
  box-sizing: content-box;
  border-radius: 56px;
  background: #000;
  box-shadow: 0 0 0 2px #2c2c30, 0 30px 80px rgba(0, 0, 0, .7);
  transform: scale(var(--k, 1));
  transform-origin: center;
  flex: none;
}

.vsp-phone-dev {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vsp-phone-dev iframe {
  display: block;
  width: 390px;
  height: 664px;
  border: 0;
  background: #101012;
  flex: none;
}

.vsp-phone-sb {
  position: relative;
  height: 47px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 36px;
  border-radius: 44px 44px 0 0;
  background: #101012;
  color: var(--on-media);
  font-size: 15px;
}

.vsp-phone-sb span {
  font-size: 10px;
  letter-spacing: 1px;
}

.vsp-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 160px;
  height: 32px;
  margin-left: -80px;
  border-radius: 0 0 20px 20px;
  background: #000;
}

.vsp-phone-bb {
  height: 133px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding-top: 12px;
  border-radius: 0 0 44px 44px;
  background: #1c1c1e;
}

.vsp-phone-bb span {
  width: 340px;
  height: 44px;
  border-radius: 12px;
  background: #2c2c2e;
  display: grid;
  place-items: center;
  color: var(--on-media);
  font-size: 15px;
}

.vsp-phone-bb i {
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #fff;
}

.vsp-phone-side {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--fg2);
  font-size: 13px;
  line-height: 1.45;
}

.vsp-phone-side b {
  color: var(--on-media);
  font-size: 16px;
}

.vsp-phone-side p {
  margin: 0;
}

@media (max-width: 900px) {
  .vsp-phone-side {
    display: none;
  }
}

/* внутри рамки: без полос прокрутки, панель «Прототип» не нужна */
html.vsp-phone ::-webkit-scrollbar {
  display: none;
}

html.vsp-phone * {
  scrollbar-width: none;
}

html.vsp-phone #vspProto {
  display: none;
}

/* подсказка в пустом промпте — заметно тише текста, с «Например:»; под полем — заготовки */
.vsp-ph {
  color: color-mix(in srgb, var(--muted) 65%, var(--bg));
}

.vsp-ph-pre {
  color: color-mix(in srgb, var(--muted) 85%, var(--bg));
}

.vsp-starters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.vsp-starters[hidden] {
  display: none;
}

.vsp-starters button {
  height: 28px;
  padding: 0 11px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.vsp-starters button:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
  background: var(--tint-1);
}

html.vsp-phone .vsp-ph kbd {
  display: none;
}

html.vsp-phone .vsp-ph-ins {
  display: inline-flex;
  pointer-events: auto;
  margin-left: 6px;
  height: 24px;
  padding: 0 10px;
  align-items: center;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--fg2);
  font: 600 12px var(--font);
  vertical-align: 1px;
}

.vsp-form.mode-edit #vspStarters {
  display: none;
}

@media (max-width: 900px) {
  .vsp.kb-open .vsp-form {
    bottom: auto;
  }

  .vsp.kb-open .vsp-foot {
    padding-bottom: 8px;
  }
}

/* телефон: жесты на фото — листание, «смахнуть вниз», щипок — обрабатываем сами */
@media (max-width: 900px) {
  .vsp-canvas {
    touch-action: none;
  }
}

/* телефон: «язычок» у шторок — понятно, что её можно потянуть вниз */
@media (max-width: 900px) {
  .vsp-mhead {
    position: relative;
    touch-action: none;
    padding-top: 18px;
  }

  .vsp-mhead::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 38px;
    height: 5px;
    margin-left: -19px;
    border-radius: 3px;
    background: var(--tint-4);
  }

  .vsp-form {
    border-radius: 18px 18px 0 0;
  }
}

/* идущая генерация: крупная карточка с промптом */
.vsp-gen-p {
  margin: 0;
  max-width: 92%;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--fg2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vsp-tile.gen.draw .vsp-gen,
.vsp-tile.gen.queue .vsp-gen {
  gap: 8px;
}

.vsp-tile.gen .vsp-gen-bar {
  width: min(240px, 80%);
}

@media (max-width: 900px) {

  .vsp-tile.gen.draw .vsp-gen-st,
  .vsp-tile.gen.queue .vsp-gen-st {
    font-size: 15px;
  }

  .vsp-tile.gen .vsp-gen-m,
  .vsp-tile.gen .vsp-gen-mdl {
    font-size: 12px;
  }
}

/* телефон: шторка «Фото готово» */
.vsp-res {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.vsp-res-bg {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shade) 55%, transparent);
  opacity: 0;
  transition: opacity .25s;
}

.vsp-res.on .vsp-res-bg {
  opacity: 1;
}

.vsp-res-s {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--sheet);
  box-shadow: 0 -20px 50px color-mix(in srgb, var(--shade) 50%, transparent);
  transform: translateY(105%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.vsp-res.on .vsp-res-s {
  transform: none;
}

.vsp-res-s::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38px;
  height: 5px;
  margin-left: -19px;
  border-radius: 3px;
  background: var(--tint-4);
}

.vsp-res-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  touch-action: none;
}

.vsp-res-h b {
  font-size: 17px;
  color: var(--fg);
}

.vsp-res-h small {
  font-size: 12px;
  color: var(--muted);
}

.vsp-res-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--tint-2);
  color: var(--fg2);
  display: grid;
  place-items: center;
  align-self: center;
}

.vsp-res-x:hover {
  color: var(--fg);
}

.vsp-res.still .vsp-res-s,
.vsp-res.still .vsp-res-bg {
  transition: none;
  animation: none;
}

/* дополненная шторка не выезжает заново */
.vsp-res-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.vsp-res-row.many {
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 0 14px;
}

.vsp-res-i {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  height: min(52dvh, calc((100vw - 28px) / var(--ar)));
  aspect-ratio: var(--ar);
  max-width: calc(100vw - 28px);
  scroll-snap-align: center;
  animation: vsp-res-in .5s cubic-bezier(.22, 1, .36, 1);
}

.vsp-res-row.many .vsp-res-i {
  max-width: 80vw;
  height: min(46dvh, calc(80vw / var(--ar)));
}

.vsp-res-i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes vsp-res-in {
  from {
    opacity: 0;
    transform: scale(.94);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.vsp-res-p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  touch-action: none;
}

.vsp-res-a {
  display: flex;
  gap: 8px;
}

.vsp-res-a .cf-create {
  flex: 1;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14.5px;
}

.vsp-res-a .pill {
  height: 46px;
  padding: 0 14px;
  gap: 6px;
  flex: none;
}

.vsp-res-a svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* телефон: строка последнего промпта над нижним меню */
.vsp-qbar {
  display: none;
}

@media (max-width: 900px) {
  .vsp-qbar:not([hidden]) {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--mtab-h, 62px) + var(--siteplayer-h, 0px) + 8px);
    /* над мини-плеером, если играет музыка */
    z-index: 74;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 5px 0 12px;
    border-radius: 16px;
    border: 1px solid var(--line2);
    background: color-mix(in srgb, var(--card) 94%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--fg2);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 45%, transparent);
    animation: vsp-in .2s ease-out;
  }

  .vsp-qbar .ic svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
  }

  .vsp-qbar .t {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .vsp-qbar .go {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: var(--fg);
  }

  .vsp-qbar .go svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.form-open .vsp-qbar,
  body.vsp-viewing .vsp-qbar,
  body:has(.vsp-selbar:not([hidden])) .vsp-qbar,
  body:has(.vsp-res) .vsp-qbar {
    display: none !important;
  }

  /* лента не прячется под строкой */
  body:has(.vsp-qbar:not([hidden])) .vsp-feed {
    padding-bottom: 72px;
  }
}

@media (max-width: 900px) {
  body:has(.vsp-qbar:not([hidden])):not(.form-open):not(.vsp-viewing) .stoast {
    bottom: calc(var(--mtab-h, 62px) + 62px) !important;
  }

  body.vsp-viewing:has(.vsp-view.in-tool) .stoast {
    bottom: 118px !important;
  }
}

/* восстановлено (16.10) */
/* «Повторили N раз»: тихая плашка на одной карточке сценария */
.vsp-sbuzz {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px 0 7px;
  border-radius: 8px;
  background: rgba(16, 16, 18, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--on-media);
  pointer-events: none;
  animation: vsp-sbuzz 4.2s ease-in-out forwards;
}

.vsp-sbuzz svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes vsp-sbuzz {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  12%,
  82% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
  }
}

/* долгое нажатие на телефоне: исходник с подписью */
.vsp-pic.orig::before {
  content: 'Исходник';
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 6;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(16, 16, 18, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-media);
  pointer-events: none;
}

@media (pointer: coarse) {
  .vsp-pic img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* «Аватарка»: превью стилей кругом — сразу видно, как будет в соцсети, и не путается со «Сменить стиль» */
.vsp-tcards.round .pv {
  border-radius: 50%;
}

.vsp-tcards.round button {
  align-items: center;
  text-align: center;
}

.vsp-tcards.round button[aria-checked=true] .pv::after {
  right: 50%;
  top: auto;
  bottom: 2px;
  transform: translateX(50%);
}

.vsp-tcards.round b {
  max-width: 100%;
}

.vsp-vseg button b,
.vsp-vseg button small {
  white-space: nowrap;
}

/* крупная карточка генерации: модель — в верхнем углу, не наезжает на проценты */
.vsp-tile.gen.draw .vsp-gen-mdl,
.vsp-tile.gen.queue .vsp-gen-mdl {
  top: 10px;
  bottom: auto;
}

.vsp-tile.gen.draw .vsp-gen,
.vsp-tile.gen.queue .vsp-gen {
  padding-top: 30px;
}

/* шторка результата: предложение оживить первое фото */
.vsp-res-anim {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  color: var(--fg);
  font: inherit;
  text-align: left;
}

.vsp-res-anim>svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-res-anim>svg:first-child {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 10px;
  background: var(--ok);
  fill: var(--ok-ink);
  stroke: none;
}

.vsp-res-anim span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vsp-res-anim b {
  font-size: 14px;
}

.vsp-res-anim small {
  font-size: 12px;
  color: var(--fg2);
}

/* телефон: панель ролика помещается и в узкий (квадратный) кадр */
@media (max-width: 900px) {
  .vsp-vctl {
    left: 6px;
    right: 6px;
    bottom: 6px;
    height: 36px;
    padding: 0 4px;
    gap: 2px;
    border-radius: 12px;
  }

  .vsp-vctl button {
    width: 28px;
    height: 28px;
  }

  .vsp-vctl svg {
    width: 16px;
    height: 16px;
  }

  .vsp-vt {
    min-width: 0;
    font-size: 10.5px;
    letter-spacing: -.01em;
  }
}

.vsp-qa.l {
  right: auto;
  left: 0;
}

.vsp-view.brush-pan #vspMask {
  pointer-events: none;
}

.vsp-view.brush-pan .vsp-canvas {
  cursor: grab;
}

@media (hover: none) {
  .vsp-brush-z {
    display: none;
  }
}

/* по каким референсам сделано: значок на плитке и блок в деталях */
.vsp-refb {
  position: absolute;
  left: 40px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px 0 5px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
  font-size: 11px;
  font-weight: 600;
}

.vsp-refb svg {
  width: 12px;
  height: 12px;
}

.vsp-wrefs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vsp-wref {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}

.vsp-wref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.vsp-wref:hover img {
  transform: scale(1.06);
}

.vsp-wref i {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .65);
  color: var(--on-media);
  font: 600 10px var(--font);
  font-style: normal;
}

.vsp-wref-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.vsp-wref-go:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
}

.vsp-wref-go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* референс крупно: карточка с шапкой, картинка в рамке, листание */
.vsp-wrefmw .ssheet {
  width: min(560px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px color-mix(in srgb, var(--shade) 60%, transparent);
}

.vsp-wrefm-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.vsp-wrefm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: 100px;
  background: rgba(229, 66, 112, .14);
  color: var(--brand-text);
  font-size: 12.5px;
  font-weight: 600;
}

.vsp-wrefm-tag svg {
  width: 14px;
  height: 14px;
}

.vsp-wrefm-h b {
  font-size: 14px;
  color: var(--fg);
}

.vsp-wrefm-h small {
  font-size: 12px;
  color: var(--muted);
}

.vsp-wrefm-h .grow {
  flex: 1;
}

.vsp-wrefm-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--tint-2);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.vsp-wrefm-x:hover {
  background: color-mix(in srgb, var(--fg) 16%, transparent);
}

.vsp-wrefm-pic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 10px;
  border-radius: 16px;
  background: repeating-conic-gradient(var(--checker-2) 0 25%, var(--checker-1) 0 50%) 0 0 / 18px 18px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
}

.vsp-wrefm-pic img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  border-radius: 10px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 45%, transparent);
}

.vsp-wrefm-n {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 16, 18, .75);
  color: var(--on-media);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.vsp-wrefm-n.l {
  left: 10px;
}

.vsp-wrefm-n.r {
  right: 10px;
}

.vsp-wrefm-n:disabled {
  opacity: .3;
  cursor: default;
}

.vsp-wrefm-c {
  margin: 12px 2px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vsp-wrefm-f {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.vsp-wrefm-f svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ===== 29. Правки после аудита 5 (17.10) ===== */
/* телефон: поля формы не сжимаются (карточка модели была «срезанной» полоской) */
@media (max-width: 900px) {
  .vsp-scroll>* {
    flex-shrink: 0;
  }

  .vsp-model {
    min-height: 52px;
    padding: 8px 12px 8px 8px;
    border: 1px solid var(--line2);
  }

  .vsp-model .vsp-chev {
    margin-left: auto;
  }
}

/* «?» у референсов и подсказки к качеству */
.vsp-q {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 6px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font: 600 11px var(--font);
  vertical-align: 1px;
  cursor: help;
}

.vsp-q:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
}

.vsp-optt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.vsp-optt small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
}

.vsp-pop button:has(.vsp-optt) {
  height: auto;
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* шпаргалка горячих клавиш и разовая подсказка в окне фото */
.vsp-keysw .ssheet {
  width: min(420px, calc(100vw - 24px));
  padding: 16px 18px 18px;
  border-radius: 20px;
  background: var(--sheet);
  border: 1px solid var(--line2);
}

.vsp-keys-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vsp-keys-h b {
  font-size: 17px;
  color: var(--fg);
}

.vsp-keys-g {
  padding: 10px 0 4px;
  border-top: 1px solid var(--line);
}

.vsp-keys-g:first-of-type {
  border-top: 0;
}

.vsp-keys-g small {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.vsp-keys-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13.5px;
}

.vsp-keys-r em {
  font-style: normal;
  color: var(--fg2);
  text-align: right;
}

.vsp-keys kbd,
.vsp-keyhint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--fg) 5%, var(--card));
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--shade) 35%, transparent), inset 0 0 0 1px var(--tint-2);
  color: var(--fg);
  font: 600 12px var(--font);
}

.vsp-keyhint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  border: 0;
  background: rgba(16, 16, 18, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--fg2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  animation: vsp-in .3s ease-out;
  transition: opacity .5s;
}

.vsp-keyhint span {
  margin: 0 4px 0 6px;
}

.vsp-keyhint kbd {
  min-width: 20px;
  height: 20px;
  font-size: 11px;
}

.vsp-keyhint.out {
  opacity: 0;
}

/* сравнение с референсом: всегда «рядом», переключатель шторки не нужен */
.vsp-cmpctl.ref .vsp-cmp-s {
  display: none;
}

.vsp-sbs figure.ref {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--media-bg);
  box-shadow: inset 0 0 0 1px var(--tint-2);
}

.vsp-sbs figure.ref img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vsp-sbs figure.ref figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 8px;
  background: rgba(229, 66, 112, .85);
  color: var(--on-media);
  font-size: 11.5px;
  font-weight: 600;
}

.vsp-sbs figure.ref figcaption svg {
  width: 12px;
  height: 12px;
}

.vsp-wrefm-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.vsp-wrefm-b .vsp-wrefm-f {
  margin: 0;
}

/* телефон: полоса объявления сверху прячется при прокрутке ленты вниз (TODO(влад): перенести в h1, если понравится) */
@media (max-width: 900px) {

  body.has-strip .app,
  .pstrip {
    transition: margin-top .25s ease, height .25s ease, opacity .2s ease, transform .25s ease;
  }

  body.has-strip.vsp-strip-off {
    --strip-h: 0px;
  }

  body.vsp-strip-off .pstrip {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
  }
}

/* «Сообщить, когда готово» на карточке генерации */
.vsp-gen-bell {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px 0 7px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--fg2);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

.vsp-gen-bell:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 35%, transparent);
}

.vsp-gen-bell svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-sbuzz.c {
  left: 50%;
  top: 10px;
  margin-left: 0;
  translate: -50% 0;
  z-index: 4;
}

/* библиотека промптов: «Недавние» */
.vsp-lib-rec {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.vsp-lib-rec>small {
  display: block;
  padding: 4px 10px 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.cf-lib-i.rec .cf-lib-p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: var(--fg);
}

.cf-lib-i.rec small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

.cf-lib-i.rec .cf-lib-ic svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* открыт инструмент — вкладки «Детали / Редактировать» не нужны, назад — стрелкой в шапке инструмента */
.vsp-view.in-tool .vsp-side-tabs {
  display: none;
}

/* кнопка стала активной — короткая вспышка */
.vsp-tool-f .cf-create.ready {
  animation: vsp-ready .7s ease-out;
}

@keyframes vsp-ready {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 66, 112, .7);
    transform: scale(.98);
  }

  40% {
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(229, 66, 112, 0);
    transform: none;
  }
}

/* «?» с подсказкой — как в музыке: всплывает под знаком при наведении или фокусе */
.vsp-qw {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 2px;
}

.vsp-qtip {
  display: none;
  position: absolute;
  left: -8px;
  top: calc(100% + 6px);
  z-index: 30;
  width: 250px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sheet);
  color: var(--fg2);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shade) 50%, transparent);
  white-space: normal;
}

.vsp-qw:hover .vsp-qtip,
.vsp-q:focus+.vsp-qtip {
  display: block;
}

@media (max-width: 900px),
(hover: none) {
  .vsp-keyb {
    display: none;
  }
}

/* роль референса — круглым значком в углу плитки; название — в подсказке */
.vsp-ref .vsp-ref-role {
  left: auto;
  top: auto;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.vsp-ref .vsp-ref-role svg {
  width: 13px;
  height: 13px;
}

.vsp-ref .vsp-ref-role:not(.on) {
  border: 1px dashed rgba(255, 255, 255, .5);
  background: rgba(16, 16, 18, .6);
}

/* кисть: кнопки в ряд, «Область отмечена» — отдельной строкой под ними */
.vsp-brush-a {
  flex-wrap: wrap;
  row-gap: 6px;
}

.vsp-brush-a #vspBrushN {
  flex-basis: 100%;
  margin: 0;
}

.vsp-brush-a #vspBrushN:empty {
  display: none;
}

/* плавающие элементы фото живут в <body>, а не в странице раздела: в другом разделе (переход по левому меню без
   перезагрузки) их не видно. data-section на <html> ставит uikit/shell-proto.js. TODO(влад): то же — в каркасе */
html[data-section]:not([data-section="photo"]) :is(#vspQbar, #vspRes, #vspTpv) {
  display: none !important;
}


/* ══════════ аудит светлой темы 18.10.26: фото ══════════
   Только светлая тема (:where(light) — специфичность исходных правил); тёмная не меняется. */
/* Ф-Н001: окно выбора модели — страница под ним темнеет, как под остальными окнами */
:where([data-theme="light"]) .vsp-picker {
  background: var(--backdrop);
}

/* Ф-Н002: «Скачать» в просмотрщике — главная кнопка градиентом, как «Скачать WAV» в музыке; стрелки — белые круги */
:where([data-theme="light"]) .vsp-dl,
:where([data-theme="light"]) .vsp-dl-c {
  background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%);
  color: var(--on-media);
}

:where([data-theme="light"]) .vsp-dl-c {
  background: radial-gradient(140% 200% at 120% 20%, #E54270 0%, #D9456F 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .28);
}

:where([data-theme="light"]) .vsp-dl:hover,
:where([data-theme="light"]) .vsp-dl-c:hover,
:where([data-theme="light"]) .vsp-dl-c[aria-expanded=true] {
  background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%);
  filter: brightness(1.07);
}

:where([data-theme="light"]) .vsp-nav {
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-1);
}

:where([data-theme="light"]) .vsp-nav:hover {
  background: var(--card);
  box-shadow: var(--shadow-2);
}

/* Ф-Н003: «Создать фото» в карточке модели — градиент главного действия, а не чёрная кнопка (цена — в чипе «от N ₽» рядом) */
:where([data-theme="light"]) .vsp-mban-a .pill.go {
  background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%);
  color: var(--on-media);
}

:where([data-theme="light"]) .vsp-mban-a .pill.go:hover {
  background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%);
  filter: brightness(1.07);
}

/* Ф-Н004: полоса горячих клавиш в просмотрщике — светлая плашка с читаемым текстом */
:where([data-theme="light"]) .vsp-keyhint {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--fg2);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
}

/* Ф-Н005: подсказка в пустом промпте — «Например:» и пример читаются, но тише введённого текста */
:where([data-theme="light"]) .vsp-ph {
  color: var(--ph);
}

:where([data-theme="light"]) .vsp-ph-pre {
  color: var(--muted);
}

/* Ф-Н006: выбранный пункт (пропорции, качество, модель в шторке, фильтры) — розовая подложка и галочка, не как наведение */
:where([data-theme="light"]) .vsp-pop button[aria-selected=true] {
  background: var(--brand-soft);
  color: var(--fg);
}

:where([data-theme="light"]) .vsp-pop button[aria-selected=true]::after {
  content: "✓";
  margin-left: auto;
  color: var(--brand-text);
  font-weight: 700;
}

:where([data-theme="light"]) .vsp-pop button:hover:not([aria-selected=true]) {
  background: var(--hover);
}

:where([data-theme="light"]) .vsp-mr[aria-current=true] {
  /* как в тёмной: серый фон и рамка --sel (графит), решение 24.11 — раньше розовая подложка */
  background: var(--line);
  box-shadow: inset 0 0 0 1.5px var(--sel);
}

:where([data-theme="light"]) .vsp-mr[aria-current=true] .vsp-tag {
  background: var(--card);
}

:where([data-theme="light"]) .vsp-pk-f .pill.on {
  background: var(--brand-soft);
  color: var(--fg);
}

/* Ф-Н007: заготовки «Портрет / Товар / Афиша…» — кнопки на белом, наведение заметно */
:where([data-theme="light"]) .vsp-starters button {
  background: var(--card);
}

:where([data-theme="light"]) .vsp-starters button:hover {
  background: var(--card);
  border-color: var(--brand-text);
  color: var(--fg);
}

/* Ф-Н009: просмотрщик на телефоне — карточки «Повторить / Скачать / Поделиться / Ещё» с краем */
:where([data-theme="light"]) .vsp-mqa button {
  box-shadow: 0 0 0 1px var(--line);
}

/* Ф-Н010: фокус с клавиатуры — оранжевый, как в музыке */
:where([data-theme="light"]) .vsp :focus-visible {
  outline-color: var(--accent);
}

/* ══════════ 26. Правки по независимому аудиту 05.11.26 ══════════ */
/* «Сменить пропорции» — схема вместо шторки: рамка «Было» внутри широкого кадра, края проявляются */
.vsp-ba.vsp-rf {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--media-bg);
}

.vsp-tex-ba .vsp-ba.vsp-rf {
  aspect-ratio: 16 / 9;
}

.vsp-rf .rf-in {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.vsp-rf .rf-dim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 21.875%;
  background: var(--media-bg);
  animation: vsp-rf-dim 3.6s ease-in-out .4s 1 both;
}

.vsp-rf .rf-dl {
  left: 0;
}

.vsp-rf .rf-dr {
  right: 0;
}

.vsp-rf .rf-box {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21.875%;
  width: 56.25%;
  border: 1.5px dashed var(--on-media);
  box-shadow: 0 0 0 1px var(--media-scrim);
  pointer-events: none;
}

.vsp-rf .rf-box .t {
  left: 6px;
  right: auto;
}

.vsp-rf .t.rf-a {
  right: 8px;
  left: auto;
  animation: vsp-rf-in 3.6s ease-in-out .4s 1 both;
}

/* подпись вертикально по центру поля — в узкую полосу горизонтально не помещается */
.vsp-rf .rf-lb {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 21.875%;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .04em;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--on-media);
  text-shadow: 0 1px 3px var(--media-scrim);
  animation: vsp-rf-in 3.6s ease-in-out .4s 1 both;
}

.vsp-rf .rf-ll {
  left: 0;
}

.vsp-rf .rf-lr {
  right: 0;
}

.vsp-tex:hover .vsp-rf .rf-dim,
.vsp-tcard:hover .vsp-rf .rf-dim {
  animation: vsp-rf-dim 3.6s ease-in-out infinite;
}

.vsp-tex:hover .vsp-rf .rf-a,
.vsp-tex:hover .vsp-rf .rf-lb,
.vsp-tcard:hover .vsp-rf .rf-a,
.vsp-tcard:hover .vsp-rf .rf-lb {
  animation: vsp-rf-in 3.6s ease-in-out infinite;
}

/* края пустые → проявляются и держатся; «Стало» и «дорисовано» появляются вместе с ними */
@keyframes vsp-rf-dim {
  0%, 22% {
    opacity: 1;
  }

  48%, 100% {
    opacity: 0;
  }
}

@keyframes vsp-rf-in {
  0%, 30% {
    opacity: 0;
  }

  52%, 100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vsp-rf .rf-dim {
    animation: none;
    opacity: 0;
  }

  .vsp-rf .rf-a,
  .vsp-rf .rf-lb {
    animation: none;
    opacity: 1;
  }
}

/* шапка инструмента: значок по центру строки, не прилипает к верху панели */
.vsp-tool-h {
  margin-top: 6px;
  min-height: 34px;
}

.vsp-tool-h .vsp-tool-ic {
  align-self: center;
}

/* быстрые правки на плитке: цена справа (Ф-Н018) */
.vsp-qa-p {
  margin-left: auto;
  padding-left: 12px;
  font-style: normal;
  font-size: 11.5px;
  color: color-mix(in srgb, var(--on-media) 70%, transparent);
  font-variant-numeric: tabular-nums;
}

/* карандаш на плитке телефона — открывает быстрые правки шторкой (Ф-Н017) */
.vsp-tqa {
  display: none;
}

@media (hover: none), (max-width: 900px) {
  .vsp-tile .vsp-tqa {
    display: inline-flex;
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 4;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    align-items: center;
    justify-content: center;
    background: rgba(16, 16, 18, .62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--on-media);
    pointer-events: auto;
  }

  .vsp-tile .vsp-tqa svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
  }

  .vsp.selecting .vsp-tqa {
    display: none;
  }
}

/* сценарии: цена появляется при наведении, на телефоне видна всегда (Ф-Н016) */
.vsp-splate.hov {
  opacity: 0;
  transition: opacity .15s;
}

.vsp-scard:hover .vsp-splate.hov,
.vsp-scard:focus-visible .vsp-splate.hov {
  opacity: 1;
}

@media (hover: none) {
  .vsp-splate.hov {
    opacity: 1;
  }
}

/* «Улучшить промпт · бесплатно / 3 ₽» (Ф-Н015) */
.vsp-tbp {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.vsp-tbp.free {
  color: var(--ok-text, var(--ok));
}

/* «Что дальше» после применения инструмента (Ф-Н013) */
.vsp-next-r {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vsp-next-r .pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* выбор модели: «Закрыть» на телефоне (Ф-Н021) */
.vsp-pk-x {
  display: none;
}

@media (max-width: 900px) {
  .vsp-pk {
    position: relative;
  }

  /* крестик — по центру строки поиска (поиск: отступ 14 px, высота 48 px), 05.11.2026 */
  .vsp-pk-x {
    display: inline-flex;
    position: absolute;
    top: 22px;
    right: 14px;
    z-index: 3;
  }

  .vsp-pk-s {
    margin-right: 56px;
  }

  /* цены и «реф · с · K» видны и на телефоне — строкой под названием */
  .vsp-mr {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .vsp-mr-n {
    flex: 1 1 0;
    min-width: 0;
  }

  .vsp-mstar {
    order: 2;
  }

  .vsp-mr-tags {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    padding-left: 44px;
  }
}

/* Ф-Н035 (05.11.2026): телефон, «Вдохновение» — «Повторить · N ₽» не лежит поверх верха картинки:
   внизу справа, напротив значка модели, коротко «↻ N ₽» (как плитка витрины на главной — подписи видны всегда, но не закрывают кадр) */
@media (pointer: coarse) {
  .vsp-ov:has(> .vsp-rep) {
    inset: auto 0 0 auto;
    padding: 8px;
    pointer-events: none;
  }

  .vsp-ov:has(> .vsp-rep) .grow {
    display: none;
  }

  .vsp-ov > .vsp-rep {
    pointer-events: auto;
  }

  .vsp-ov > .vsp-rep .t {
    display: none;
  }
}

/* 05.11.2026 (Станис): выбранная вкладка не прилипает к картинкам ленты — отступ под вкладками */
.vsp-lhead {
  padding-bottom: 10px;
}

/* Ф-Н024 (05.11.2026): телефон, окно фото — главные действия одним рядом, без повторов ниже */
@media (max-width: 900px) {
  .vsp-mqa {
    overflow: visible;
  }

  .vsp-mqa button {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 2px 8px;
    font-size: 11px;
  }

  .vsp-mqa button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vsp-mqa button.ic {
    flex: 0 0 42px;
    justify-content: center;
  }

  .vsp-mqa button.ic.on {
    color: var(--accent);
  }

  .vsp-mqa-p {
    position: absolute;
    top: -6px;
    right: -2px;
    padding: 1px 6px;
    border-radius: 100px;
    background: var(--fg);
    color: var(--bg);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
  }

  .vsp-view:not(.insp) #vspSideInfo .vsp-acts,
  .vsp-view:not(.insp) #vspSideInfo .vsp-use > [data-va=tools],
  .vsp-view:not(.insp) #vspSideInfo .vsp-use > [data-va=repeat],
  .vsp-view:not(.insp) #vspSideFoot .vsp-sharerow [data-va=share] {
    display: none;
  }
}

/* Ф-Н041 (05.11.2026): окно «Мои фото» — загрузка своего фото первой, крупно, с перетаскиванием */
.vsp-lp-drop {
  margin: 4px 0 14px;
  padding: 28px 14px;
}

.vsp-lp-drop svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-lp-drop.drag {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

/* Ф-Н038: отсчёт до автозапуска — строкой под полоской */
.vsp-go-n {
  display: block;
  margin-top: -2px;
}

.vsp-go-n b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Ф-Н029 (05.11.2026): фото из сравнения моделей — имя модели видно на плитке и в шторке результата */
.vsp-tm.vsp-tm-n {
  width: auto;
  max-width: calc(100% - 16px);
  gap: 6px;
  padding: 0 10px 0 0;
  border-radius: 100px;
  transform: none;
}

.vsp-tm-n b {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vsp-res-i {
  position: relative;
}

.vsp-res-m {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(16, 16, 18, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--on-media);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}

/* Ф-Н032 (05.11.2026): статус публикации на плитке «Моих фото» */
.vsp-badge.pub {
  left: auto;
  right: 8px;
}

.vsp-badge.new ~ .vsp-badge.pub {
  bottom: 32px;
}

/* Ф-Н033: своё фото гостя в инструменте — видно как есть, не как затемнённый пример */
.vsp-view.demo.mine #vspPic {
  filter: none;
  transform: none;
}

/* Ф-Н029: имя модели у фото из сравнения видно сразу, без наведения */
.vsp-tile .vsp-tm.vsp-tm-n {
  opacity: 1;
}

/* Ф-Н037 (05.11.2026): пустой промпт — подсказка внизу карточки поля, как в музыке (.cf-err); так же в видео */
.vsp-ferr {
  margin: 6px 0 0;
  color: var(--bad);
  font-size: 12px;
  line-height: 1.4;
}

/* Ф-Н039 (05.11.2026): отказ модели — две кнопки рядом; в маленькой плитке остаётся «Поправить» */
.vsp-gen-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

@container (max-width: 170px) or (max-height: 170px) {
  .vsp-gen-btns [data-gact=model] {
    display: none;
  }
}

/* Ф-Н044 (05.11.2026): «Подарите другу первую правку» под действиями шторки первого результата */
.vsp-res-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 13.5px;
}

.vsp-res-ref > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ф-Н036: «Показать ещё» под примерами витрины — как у роликов в видео (.vsv-reels-more) */
.vsp-insp-more {
  display: flex;
  margin: 16px auto 0;
}

/* Ф-Н039: в средней плитке причина важнее значка — значок прячем, причину показываем в 3 строки */
@container (min-width: 171px) and (min-height: 171px) and (max-height: 260px) {
  .vsp-tile.gen.mod .vsp-gen-ic,
  .vsp-tile.gen.bad .vsp-gen-ic {
    display: none;
  }

  .vsp-tile.gen.mod .vsp-gen-d,
  .vsp-tile.gen.bad .vsp-gen-d {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
  }
}

/* ИИ-помощник (05.11.2026): «Новый диалог» — в углу шапки, как в музыке (music.css .cf-ai-new); «Отменить замену» — тостом */
.cf-ai-h {
  position: relative;
  padding-right: 130px;
}

.cf-ai-h .cf-ai-new {
  position: absolute;
  top: 14px;
  right: 16px;
}

/* Ф-Н034 (05.11.2026): «⋯» над лентой — только на телефоне; там же прячем папки, загрузку и выбор */
.vsp-fmore {
  display: none !important;
}

@media (max-width: 900px) {
  .vsp-tools .vsp-fmore {
    display: inline-flex !important;
  }

  .vsp-tools #vspFAlb,
  .vsp-tools #vspUpload,
  .vsp-tools #vspSelect {
    display: none !important;
  }
}

/* Ф-Н042 (05.11.2026): метки @1, @2 — нажимаются (вставка в промпт), под рядом — что они значат */
.vsp-ref .vsp-ref-at {
  cursor: pointer;
}

.vsp-ref .vsp-ref-at:hover {
  background: var(--grad);
  color: var(--on-media);
}

.vsp-refs-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.vsp-refs-hint b {
  color: var(--fg);
  font-weight: 600;
}

/* Ф-Н030 (05.11.2026): компьютер — уведомление внизу по центру ленты, в окне фото — по центру сцены над лентой версий.
   Сверху оно ложилось на вкладки «Мои фото / Вдохновение», «Создать / Изменить фото» и зум. «Вернуть» (undo) — по-прежнему у кнопки */
@media (min-width: 901px) {
  body:has(#vspLib) .stoast:not(.undo) {
    top: auto !important;
    bottom: 24px !important;
    left: var(--vsp-toast-cx, 50%) !important;
  }

  /* у правила выше в :has() стоит id — здесь тоже, иначе не перебить */
  body.vsp-viewing:has(#vspLib) .stoast:not(.undo) {
    bottom: 128px !important;
  }

  body:has(#vspLib):has(#vspSelBar:not([hidden])) .stoast:not(.undo) {
    bottom: 84px !important;
  }
}

/* Ф-Н056 (05.11.2026): «Вдохновение» вошедшего — «Поделиться» на плитке рядом с лайком; лупа поиска — в ряду «Популярное / Новое» */
.vsp-likes {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.vsp-likes .vsp-like {
  position: static;
}

.vsp-like.vsp-lshare {
  width: 26px;
  padding: 0;
  justify-content: center;
}

.vsp-like.vsp-lshare svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsp-sw-slot {
  display: inline-flex;
  flex: none;
}

.vsp-sw-slot:empty {
  display: none;
}

/* телефон: «Повторить · N ₽» стоит внизу справа (Ф-Н035) — лайк и «Поделиться» уходят наверх, чтобы не накладываться */
@media (pointer: coarse) {
  .vsp-likes {
    top: 8px;
    bottom: auto;
  }
}

/* узкая плитка: на «Поделиться» места нет — остаётся лайк, поделиться можно из окна фото */
@container (max-width: 150px) {
  .vsp-lshare {
    display: none !important;
  }
}

/* Ф-Н062 (06.11.2026): у правил выше, которые ставят уведомление снизу (bottom), сверху оставался top от shell-proto —
   без жёсткой высоты уведомление растягивалось между ними в серый блок на пол-экрана. Снизу — значит без top */
body.vsp-viewing .stoast:not(.undo),
body:has(#vspSelBar:not([hidden])) .stoast:not(.undo) {
  top: auto !important;
}

@media (min-width: 901px) {
  body:has(#vspLib) .stoast:not(.undo) {
    top: auto !important;
  }
}

@media (max-width: 900px) {
  body:has(.vsp-qbar:not([hidden])):not(.form-open):not(.vsp-viewing) .stoast,
  body.vsp-viewing:has(.vsp-view.in-tool) .stoast {
    top: auto !important;
  }
}

/* Ф-Н085 (06.11.2026): картинка-фон баннера «Подборка VeoSuno» (на ней бывают свои надписи) — правее и тише, не под текстом и кнопкой */
@media (min-width: 901px) {
  .vsp-mban::before {
    inset: 0 0 0 52%;
    opacity: .4;
  }
}

/* Ф-Н072 (06.11.2026): телефон — «Вставить пример» не посреди поля, а под примером справа: тап в поле ставит курсор, а не вставляет пример */
@media (hover: none) {
  .vsp-ph-ins {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    margin: 0;
  }
}

/* Ф-Н088 (06.11.2026): пакетная правка — у групп с вариантами «от N ₽» за все выбранные фото */
.vsp-mfrom { margin-left: 6px; color: var(--fg2); font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Ф-Н077 (06.11.2026): требования к исходнику в панели инструмента — до оплаты */
.vsp-req ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--fg2); font-size: 13px; line-height: 1.4; }

/* Ф-Н067, Ф-Н069 (06.11.2026): меню карандаша на компьютере — подарок одной строкой сверху;
   меню всегда тёмное (поверх фото), поэтому «Все инструменты» — светлым текстом и в светлой теме */
.vsp-qa-g { padding: 6px 10px 4px; color: #2BDE90; /* как у метки «Подарок»: меню тёмное в обеих темах */ font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.vsp-qa button:last-child { color: color-mix(in srgb, var(--on-media) 78%, transparent); }

/* ══════════ ГОСТЕВАЯ СТРАНИЦА РАЗДЕЛА — фото и видео (кит: «Гостевая страница раздела») ══════════
   Классы с префиксом .vsv- исторически из видео; видео подключает photo.css первым, поэтому копия одна — здесь. */
/* таблица моделей: галочка «есть» и прочерк «нет» */
.vsv-yes { display: inline-flex; color: var(--ok-text); }
.vsv-yes svg { width: 16px; height: 16px; }
.vsv-no { color: var(--muted); }
/* ═══ 06.11.2026 · страница модели для гостя (Станис: «не продаётся такое») ═══
   Перенесено из video.css 06.11.2026: фото собрано из тех же блоков (Станис: «собрать страницу фото из тех же блоков, что видео»).
   Общие блоки — один в один из других разделов (правило кита 24). TODO(влад): при переносе каркаса — в unknow.css,
   копии удалить: шапка ТОП-30 (.top-head) и баннер гостю (.top-ad) — из css/music.css, шаги (.vsh-steps) — из css/home.css */
.top-head { position: relative; overflow: hidden; margin: 6px 0 14px; padding: 22px 24px 20px; border-radius: 24px; isolation: isolate;
  background: radial-gradient(80% 120% at 0% 0%, rgba(222,118,43,.16), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(162,59,245,.2), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.top-head-30 { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); z-index: -1; font: 900 190px/1 Inter, Arial, sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 12%, transparent); }
.top-head h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; max-width: 620px; }
.top-head h2 .g { background: var(--grad, linear-gradient(90deg, #DE762B, #E0457B, #A23BF5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-head p { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; color: var(--fg2, var(--muted)); max-width: 600px; }
/* факты о ТОПе — просто строка с иконками, без рамок: не похожи на кнопки-фильтры (М-Н131) */
.top-head-c { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.top-head-c span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg2, var(--fg)); }
.top-head-c .i, .top-head-c svg { width: 14px; height: 14px; }
.top-ad { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin: 16px 0; border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); min-height: 260px; }
.top-ad-img { grid-column: 2; grid-row: 1; background: center / cover; position: relative; margin-left: -140px; }
.top-ad-30 .top-ad-img { background-position: center 25%; } /* сцена: вывеска VeoSuno и певица в кадре */
.top-ad-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--card) 0%, color-mix(in srgb, var(--card) 40%, transparent) 30%, transparent 70%); }
.top-ad-t { grid-column: 1; grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 8px 26px 26px; }
.top-ad-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--grad, linear-gradient(90deg, #DE762B, #E0457B)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-ad-t b { margin-top: 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.top-ad-t p { margin: 8px 0 14px; max-width: 320px; font-size: 13.5px; line-height: 1.5; color: var(--muted); } /* текст не заходит на картинку */
.top-ad-g { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.top-ad-i { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-right: 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.top-ad-i .i, .top-ad-i svg { width: 15px; height: 15px; color: #E0457B; }
.top-ad-i small { color: var(--muted); font-size: 11.5px; }
.top-ad .fx-go { width: auto; padding: 0 22px; height: 44px; }
.top-ad-btn { height: 42px; padding: 0 20px; }
.vsh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vsh-step { --st: 162, 59, 245; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 16px; border-radius: 16px; overflow: visible;
  background: radial-gradient(110% 80% at 0% 0%, rgba(var(--st), .2), transparent 62%), var(--card);
  box-shadow: inset 0 0 0 1px rgba(var(--st), .22), inset 0 2px 0 rgba(var(--st), .75); transition: transform .2s, box-shadow .2s; }
.vsh-step[data-n="2"] { --st: 193, 64, 168; }
.vsh-step[data-n="3"] { --st: 224, 69, 123; }
.vsh-step[data-n="4"] { --st: 222, 118, 43; }
.vsh-step:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(var(--st), .4), inset 0 2px 0 rgba(var(--st), .9), 0 14px 34px rgba(var(--st), .14); }
.vsh-step:not(:last-child)::after { content: ''; position: absolute; right: -14px; top: 30px; width: 14px; height: 2px; background: linear-gradient(90deg, rgba(var(--st), .8), transparent); }
.vsh-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: rgb(var(--st)); color: var(--on-media); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 5px rgba(var(--st), .16); }
.vsh-step > b { font-size: 17px; }
.vsh-step > small { font-size: 12.5px; line-height: 1.4; color: var(--fg2); margin-bottom: 10px; }
.vsh-step ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.vsh-step li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-size: 13px; }
.vsh-step li .i, .vsh-step li svg { color: rgb(var(--st)); }
:where([data-theme="light"]) .vsh-step { background: radial-gradient(110% 80% at 0% 0%, rgba(var(--st), .12), transparent 62%), var(--card); }
.vsh-step li em { font-style: normal; font-size: 12.5px; color: var(--fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vsh-step li em.vsh-free { color: var(--ok-text); }
.vsh-soon { padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.vsh-step-w { margin-top: auto; padding-top: 14px; }
@media (max-width: 900px) {
  .top-head { padding: 14px 16px 14px; margin-bottom: 10px; border-radius: 20px; }
  .top-head h2 { font-size: 21px; }
  .top-head p { font-size: 13px; margin: 6px 0 10px; }
  .top-head-30 { font-size: 130px; right: -16px; top: 18%; }
  .top-ad { grid-template-columns: 1fr; min-height: 0; }
  .top-ad-img { grid-column: 1; grid-row: 1; aspect-ratio: 5 / 2; margin-left: 0; }
  .top-ad-g { margin-bottom: 14px; }
  .top-ad-img::before { background: linear-gradient(0deg, var(--card) 0%, transparent 55%); }
  .top-ad-t { grid-row: 2; padding: 0 18px 20px; margin-top: -26px; }
  .top-ad-t > button { align-self: stretch; justify-content: center; }
  .vsh-steps { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vsh-step { scroll-snap-align: start; }
  .vsh-step:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vsh-step { transition: none; transform: none; } }
/* лучший пример модели справа в шапке (у видео — ролик, у фото — картинка), кнопка и «Смотреть примеры» под фактами */
.vsv-lhead.has-v { padding-right: calc(30% + 24px); min-height: 250px; }
.vsv-lhead .top-head-30 { right: auto; left: 52%; }
.vsv-lhead-v { position: absolute; top: 0; right: 0; bottom: 0; width: 34%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.vsv-lhead-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsv-lhead h2 .vsp-new { vertical-align: 5px; margin-left: 8px; }
.vsv-lhead-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.vsv-lhead-a .cf-create { width: auto; min-width: 250px; padding: 0 26px; height: 52px; }
.vsv-lhead-a .pill { height: 44px; padding: 0 18px; }
.vsv-how { margin: 6px 0 22px; container-type: inline-size; }
.vsv-how .vsh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vsv-how .vsh-step:nth-child(2n)::after { display: none; }
.vsv-how .vsh-step li svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsv-lhead .top-head-c svg, .vsv-ad .top-ad-i svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsv-ad { margin: 22px 0; }
@container (min-width: 1040px) { .vsv-how .vsh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vsv-how .vsh-step:nth-child(2n):not(:last-child)::after { display: block; } }
@media (max-width: 900px) {
  .vsv-lhead.has-v { padding-right: 16px; padding-top: calc(56% + 14px); min-height: 0; }
  .vsv-lhead-v { left: 0; width: auto; bottom: auto; height: auto; aspect-ratio: 100 / 62; /* картинка кончается там, где начинается заголовок */ -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .vsv-lhead .top-head-30 { display: none; }
  .vsv-lhead-a { flex-direction: column; align-items: stretch; }
  .vsv-lhead-a .cf-create { min-width: 0; width: 100%; }
  .vsv-lhead-a .pill { justify-content: center; }
  .vsv-how .vsh-steps { grid-template-columns: none; }
}
.vsv-lhead.has-v .top-head-30 { display: none; } /* ролик справа — декоративная цифра не нужна */
/* «Вдохновение»: колонки вместо рядов (06.11.2026) — ширина плитки одна, высота по пропорциям ролика */
.vsv-mas { display: flex; align-items: flex-start; margin-bottom: 10px; }
.vsv-mas-c { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.vsv-mas-c > .vsp-tile { width: 100% !important; }
/* текст о сервисе (для поисковиков и сомневающихся) — в карточке шапки ТОП-30: вводная, сценарии плитками, факты строкой */
.vsv-seo { margin: 0; padding: 26px 28px 24px; }
.vsv-seo h2 { font-size: 22px; }
.vsv-seo > p { max-width: 720px; margin: 10px 0 18px; font-size: 14.5px; line-height: 1.6; }
.vsv-seo-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 4px; }
.vsv-seo-i { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 13px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.vsv-seo-i b { font-size: 14.5px; }
.vsv-seo-i small { font-size: 12.5px; line-height: 1.45; color: var(--fg2); }
.vsv-seo-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; background: var(--brand-soft); color: var(--brand-text); }
.vsv-seo-ic svg, .vsv-seo .top-head-c svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsv-seo .top-head-c { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .vsv-seo { padding: 18px 16px 16px; } .vsv-seo h2 { font-size: 19px; } .vsv-seo-g { grid-template-columns: 1fr; } }
.vsv-wsteps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.vsv-wsteps li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--fg2); }
.vsv-wsteps i { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad, linear-gradient(135deg, #a34cf0, #ef4d6d)); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
/* телефон: факты обложки — ровной сеткой по 2 в ряд, плашками (было вразброс: 3 строки в одном столбце и 1 во втором) */
@media (max-width: 900px) {
  .vsv-lhead .top-head-c { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .vsv-lhead .top-head-c span { min-width: 0; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 45%, transparent); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 1.3; }
  .vsv-lhead .top-head-c svg { flex-shrink: 0; }
}
/* телефон: шаги «Как это работает» листаются вбок — у ленты запас сверху, чтобы приподнятая карточка и её верхняя
   градиентная кромка не обрезались; на касание карточка не «прыгает» (Станис 06.11) */
@media (max-width: 900px) { .vsv-how .vsh-steps { padding-top: 6px; margin-top: -6px; padding-bottom: 8px; } }
@media (hover: none) { .vsv-how .vsh-step:hover { transform: none; } }
/* «Как создать видео нейросетью»: способы — карточками-кнопками во всю ширину: значок, что это, цена и стрелка */
.vsv-seo-g { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.vsv-seo-i { position: relative; flex-direction: row; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; border: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: box-shadow .2s, transform .2s, background .2s; }
.vsv-seo-i:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--bg) 35%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-text) 35%, transparent), 0 10px 26px rgba(0,0,0,.18); }
.vsv-seo-i:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.vsv-seo-ic { flex-shrink: 0; width: 44px; height: 44px; margin: 0; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(224, 69, 123, .25); }
.vsv-seo .vsv-seo-ic svg { width: 20px; height: 20px; }
.vsv-seo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vsv-seo-t em { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 100px; background: var(--tint-1); font-style: normal; font-size: 12px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.vsv-seo-go { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint-1); color: var(--fg2); transition: transform .2s, color .2s; }
.vsv-seo-i:hover .vsv-seo-go { transform: translateX(2px); color: var(--fg); }
@media (max-width: 900px) { .vsv-seo-g { grid-template-columns: 1fr; } }
/* баннер «Возможности»: кнопка белая, как «Повторить» (Станис 06.11: серая пилюля терялась); «Смотреть примеры» в обложке —
   прозрачная с обводкой, чтобы рядом с главной кнопкой не было серого пятна */
.vsv-ad .pill.top-ad-btn { background: var(--sel); color: var(--sel-ink); border-color: transparent; font-weight: 700; }
.vsv-ad .pill.top-ad-btn:hover { background: var(--sel-hover, color-mix(in srgb, var(--sel) 88%, var(--brand-text))); }
.vsv-lhead-a .pill[data-lgo="ex"] { background: transparent; border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); color: var(--fg); }
.vsv-lhead-a .pill[data-lgo="ex"]:hover { background: var(--tint-1); }
/* способы — без «сироты» во втором ряду: узко — список строками, широко — три в ряд */
.vsv-seo { container-type: inline-size; }
.vsv-seo-g { grid-template-columns: 1fr; gap: 10px; }
@container (min-width: 900px) { .vsv-seo-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* первый визит (фото 11b-onb.js, видео 14d-onb.js): подсветка блока формы — как в music.css; стрелки и подписи — общие .onb* (unknow.css) */
.onb-hl { position: relative; z-index: 2; box-shadow: 0 0 0 2px rgba(255,140,185,.9), 0 0 0 7px rgba(224,69,123,.18), 0 0 28px rgba(224,69,123,.35) !important; border-radius: 18px; transition: box-shadow .35s; }
.cf-create.onb-hl { border-radius: 100px; }
.onb.drawn .onb-a { animation: none; stroke-dashoffset: 0; }
.onb.drawn .onb-h, .onb.drawn .onb-l { animation: none; opacity: 1; }
/* фото: пока видны подсказки — приветствие правее подписей (подписи занимают ~300 px у формы) */
.onb-on #vspFeed .vsp-welcome { margin-left: 330px; margin-top: 6px; }
.onb-on #vspFeed .vsp-welcome h2 { font-size: 26px; }
.onb-on #vspFeed .vsp-wacts { grid-template-columns: 1fr; }
/* «Что умеет модель»: сильная сторона без своего примера — значок модели вместо кадра */
.vsv-can-n .vsp-can-img { display: flex; align-items: center; justify-content: center; background: var(--tint-1); }
/* кнопка обложки — цена второй строкой (.cf-cl с <small>, как в видео и музыке; TODO(влад): общий элемент — в unknow.css) */
.vsv-lhead-a .cf-cl { display: inline-flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; min-width: 0; max-width: 100%; }
.vsv-lhead-a .cf-cl > small { font-size: 11.5px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* фото: в обложке справа — картинка лучшего примера (у видео — ролик) */
.vsv-lhead-v img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* подарок строкой в обложке (06.11.2026): вместо зелёной плашки над лентой — под кнопками, зелёным текстом; ведёт ко входу */
.vsx-gift { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 4px 10px 4px 4px; border: 0; border-radius: 100px; background: none; color: var(--ok-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .15s; }
.vsx-gift .g { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--ok-soft); }
.vsx-gift .g svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsx-gift b { font-weight: 700; }
.vsx-gift .t { color: var(--fg2); }
.vsx-gift > svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vsx-gift:hover { background: var(--ok-soft); }
.vsx-gift:focus-visible { outline: 2px solid var(--ok-text); outline-offset: 2px; }
@media (max-width: 900px) { .vsx-gift { flex-wrap: wrap; row-gap: 0; margin-top: 12px; } .vsx-gift .t { flex-basis: 100%; padding-left: 34px; margin-top: -4px; font-size: 12px; } .vsx-gift > svg { display: none; } }
/* ══════════ КАРТОЧКА ПРИМЕРА — стандарт плиток главной (Станис 06.11) ══════════
   Одна для «Вдохновения» видео и фото и витрин главной (home.css: .vsh-w, .vsh-w-t, .vsh-rep). При наведении: затемнение
   снизу, название и значок модели, под ними белая кнопка «↻ Повторить · N ₽»; значок модели и длительность в углу прячутся.
   Телефон: подписи не нужны (нажатие открывает просмотр) — только короткое «↻ N ₽» внизу справа, видно всегда.
   TODO(влад): одинаково в video.css и photo.css — перенести в unknow.css одним блоком (и главную на эти классы) */
.vsx .vsx-sh { position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(8, 8, 10, .82)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.vsx .vsx-t { position: absolute; left: 12px; right: 12px; bottom: 54px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.vsx .vsx-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 700; line-height: 1.3; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.vsx .vsx-t .vsx-m { display: grid; place-items: center; width: 22px; height: 22px; color: #fff; font-size: 12px; font-weight: 700; }
.vsx .vsx-t .vsx-m .vsp-logo { width: 18px; height: 18px; }
.vsx .vsx-rep { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); height: 34px; padding: 0 5px 0 12px; border: 0; border-radius: 100px; background: var(--sel); color: var(--sel-ink); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s, box-shadow .2s; }
.vsx .vsx-rep::before { content: ''; width: 15px; height: 15px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.vsx .vsx-rep b { padding: 3px 8px; border-radius: 100px; background: color-mix(in srgb, var(--sel-ink) 10%, transparent); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vsx .vsx-rep:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.vsx:hover .vsx-sh, .vsx:focus-within .vsx-sh, .vsx:hover .vsx-t, .vsx:focus-within .vsx-t, .vsx:hover .vsx-rep, .vsx:focus-within .vsx-rep { opacity: 1; transform: none; }
.vsx:hover .vsp-tm, .vsx:focus-within .vsp-tm, .vsx:hover .vsp-bdgs.sh, .vsx:focus-within .vsp-bdgs.sh { opacity: 0 !important; }
.vsx .vsp-ov { z-index: 3; background: none; } /* сверху — только «со своим фото» и «Нравится»: без своей тени поверх затемнения */
@container (max-width: 170px) { .vsx .vsx-rep .t, .vsx .vsx-t b { display: none; } .vsx .vsx-rep { padding-left: 10px; } .vsx .vsx-t { bottom: 50px; } }
@media (hover: none) {
  .vsx .vsx-sh, .vsx .vsx-t { display: none; }
  .vsx .vsx-rep { opacity: 1; transform: none; left: auto; right: 8px; bottom: 8px; height: 28px; padding: 0 3px 0 8px; gap: 3px; font-size: 12px; }
  .vsx .vsx-rep .t { display: none; }
  .vsx .vsx-rep b { background: none; padding: 0 4px 0 0; }
  .vsx:has(.vsp-like) .vsx-rep, .vsx:has(.vsp-likes) .vsx-rep { bottom: 40px; }
}

/* ══════════ ПОДВАЛ ГОСТЕВОЙ СТРАНИЦЫ — как на главной (home.css, .vsh-foot*; разметка — guestFootHTML) ══════════
   Только гостю, под «Вдохновением»: разделы, модели, помощь, документы и оплата (Станис 06.11). Без огромного «VeoSuno»
   внизу — на главной его отметил аудит (Г-Н031). TODO(влад): одинаково в home.css, video.css и photo.css — в unknow.css */
.vsh-foot { position: relative; overflow: hidden; margin-top: 40px; background: radial-gradient(60% 80% at 10% 0%, rgba(162, 59, 245, .12), transparent 60%), radial-gradient(50% 80% at 95% 30%, rgba(222, 118, 43, .08), transparent 60%), var(--media-bg); container-type: inline-size; }
.vsh-foot-line { height: 1px; background: linear-gradient(90deg, transparent, #A23BF5 20%, #E0457B 50%, #DE762B 80%, transparent); opacity: .7; }
.vsh-foot-in { max-width: 1180px; margin: 0 auto; padding: 56px 32px 0; display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 40px 64px; }
.vsh-fb { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.vsh-flogo { display: inline-flex; }
.vsh-flogo .vs-logo { height: 28px; width: auto; }
.vsh-fb p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg2); max-width: 260px; }
.vsh-fsoc { display: flex; gap: 8px; }
.vsh-fsoc a, .vsh-fsoc button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: transparent; color: var(--fg); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.vsh-fsoc a:hover, .vsh-fsoc button:hover { transform: translateY(-2px); border-color: transparent; background: linear-gradient(135deg, #A23BF5, #E0457B 60%, #DE762B); color: #fff; }
.vsh-fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.vsh-fc b { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--fg); }
.vsh-fc b svg { color: var(--brand-text); margin-left: -2px; } /* у значка внутренний отступ — выравниваем по ссылкам */
.vsh-fc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.vsh-fc a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg2); text-decoration: none; background: linear-gradient(90deg, #E0457B, #DE762B) left bottom / 0 1px no-repeat; transition: color .15s, background-size .25s; }
.vsh-fc a:hover { color: var(--fg); background-size: 100% 1px; }
.vsh-fc a em { font-style: normal; font-size: 11px; color: var(--muted); }
.vsh-fc a:focus-visible, .vsh-flogo:focus-visible, .vsh-fbot a:focus-visible { outline: 2px solid var(--vsh-focus, var(--brand-text)); outline-offset: 2px; border-radius: 4px; }
.vsh-fbot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.vsh-fbot a { color: var(--muted); text-decoration: none; }
.vsh-fbot a:hover { color: var(--fg); }
.vsh-fpay { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.vsh-fpay i { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line2); font-style: normal; font-weight: 700; font-size: 11px; color: var(--fg2); }
.vsh-fpay span { margin-left: 4px; }
/* «Наверх» (Г-У008): в подвале — заметная кнопка; плюс плавающая (09-nav.js), когда ушли далеко вниз */
.vsh-ftop { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 100px; background: var(--brand-soft); color: var(--brand-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.vsh-ftop svg { transform: rotate(-90deg); }
.vsh-ftop:hover { background: color-mix(in srgb, var(--brand-text) 22%, transparent); transform: translateY(-1px); }
.vsh-ftop:focus-visible { outline: 2px solid var(--vsh-focus, var(--brand-text)); outline-offset: 2px; }
@container (max-width: 900px) {
  .vsh-foot-in { grid-template-columns: minmax(0, 1fr); padding: 40px 16px 0; gap: 32px; }
  .vsh-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .vsh-fpay { margin-left: 0; }
}
/* телефон: под подвалом — место для нижней панели (#mTabs), иначе её перекрывает край подвала */
@media (max-width: 900px) { .vsh-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

.vsx-foot { margin: 40px -20px 0; border-radius: 0; }
.vsx-foot .vsh-foot-in { padding-bottom: 28px; }
@media (max-width: 900px) { .vsx-foot { margin: 32px -8px 0; } }
/* ══════════ ПЛАВНОЕ ПОЯВЛЕНИЕ — как на главной (home.css .vsh-rv-i / .vsh-in, home/js/12-reveal.js) ══════════
   Элемент появляется, когда доезжает до экрана; вошедшие вместе — по очереди через 75 мс. «Меньше движения» — сразу.
   TODO(влад): одинаково в home.css, video.css и photo.css — в unknow.css */
.vsx-rv { opacity: 0; transform: translateY(18px); }
.vsx-rv.vsx-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .3, 1); transition-delay: calc(var(--ri, 0) * 75ms); }
@media (prefers-reduced-motion: reduce) { .vsx-rv { opacity: 1; transform: none; } }

/* ══════════ ПЛАШКА НАД ЛЕНТОЙ — объявление для вошедших (кит: «Плашка над лентой»; 18.11.2026 — перенос работ) ══════════
   Стоит между строкой фильтров и лентой, не прокручивается вместе с лентой.
   Крестик скрывает насовсем (localStorage). Цвет — бренд (новое в разделе), не --ok (подарок) и не --warn (сбой). Общая для фото и видео: video.css подключает photo.css. */
.vsp-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand-text) 28%, transparent);
  flex-shrink: 0;
}
.vsp-note[hidden], html.vs-guest .vsp-note { display: none; }
.vsp-note-ic { flex: none; margin-top: 1px; color: var(--brand-text); }
.vsp-note p { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--fg2); }
.vsp-note b { color: var(--fg); font-weight: 600; }
/* крестик — как у промострочки каркаса (.ps-x): закрытие запоминается в браузере (js раздела) */
.vsp-note-x { flex: none; width: 30px; height: 30px; margin: -6px -8px -6px 0; border: 0; border-radius: 8px; background: none; color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.vsp-note-x:hover { background: var(--tint-2); color: var(--fg); }
.vsp-note-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vsp-note { transition: opacity .25s, transform .25s; }
.vsp-note.out { opacity: 0; transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .vsp-note { transition: none; } }
@media (max-width: 900px) {
  .vsp-note { margin: 0 8px 10px; padding: 10px 12px; }
  .vsp-note p { font-size: 13px; }
}

/* ── Выбор модели на телефоне — шторка снизу (жалоба 22.11: «длинный список с фильтрами на весь экран») ──
   Шапка «Модель» с язычком (тянут вниз — закрывается), над шторкой видно форму; фильтры — одной строкой с прокруткой;
   в строке модели — название, одна строка описания и параметры текстом через точку, а не четыре плашки */
.vsp-pk-h { display: none; }
@media (max-width: 900px) {
  #vspPicker .vsp-pk {
    inset: auto 0 0 0;
    top: auto;
    height: min(86dvh, calc(100dvh - 56px));
    border-radius: 18px 18px 0 0;
    border: 0;
    animation: vm-sheet .24s cubic-bezier(.2, .8, .2, 1);
  }
  .vsp-pk-h { display: flex; align-items: center; position: relative; padding: 20px 16px 2px; touch-action: none; font-size: 16px; }
  .vsp-pk-h::before { content: ''; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: var(--tint-4); }
  .vsp-pk-x { top: 12px; }
  .vsp-pk-s { margin-right: 14px; }
  .vsp-pk-f { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .vsp-pk-f::-webkit-scrollbar { display: none; }
  .vsp-pk-f .pill, .vsp-pk-f .clr { flex-shrink: 0; }
  .vsp-mr { min-height: 0; padding: 8px 10px; }
  .vsp-mr-n small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .vsp-mr-tags { gap: 0; padding-left: 44px; font-size: 12px; color: var(--fg2); }
  .vsp-mr-tags .vsp-tag, .vsp-mr[aria-current=true] .vsp-mr-tags .vsp-tag { height: auto; padding: 0; border: 0; background: none; font-size: 12px; color: var(--fg2); }
  .vsp-mr-tags .vsp-tag + .vsp-tag::before { content: '·'; margin: 0 6px; color: var(--muted); }
  .vsp-mr-tags .vsp-tag.price { color: var(--fg); font-weight: 600; }
  .vsp-prov-b { padding-left: 44px; }
  .vsp-prov-b .vsp-mr-tags { padding-left: 0; }
  /* фильтр «Модели» на телефоне не нужен — ниже тот же список по семействам; остальные фильтры помещаются в строку */
  #vspPkFilters [data-f=fam] { display: none; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { #vspPicker .vsp-pk { animation: none; } }

