/* ════════════════════════════════════════════════════════════════════
   VeoSuno — стили, которые не нашлись ни в разметке h1.html, ни в разметке модуля музыки.
   В основном это окна и подсказки, которые создаёт модуль музыки и вставляет в <body> (ИИ-помощник, редактор текста,
   библиотеки, онбординг, окна мастеринга), а также состояния, до которых проверка не дошла. Удалять не стоит — разбирать по одному.
   Разделено автоматически из tokens.css, nav.css, site.css, studio.css, mastering.css — правила не менялись.
   ════════════════════════════════════════════════════════════════════ */

/* ══════ из site.css ══════ */
select {
  font-family: inherit;
  color: inherit;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(90deg, #A23BF5, #E0457B 50%, #DE762B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.dim {
  opacity: .45;
  pointer-events: none;
}

.lbar {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 13px;
  color: var(--muted);
  padding: 0 8px 12px;
}

.lbar .on {
  color: var(--fg);
  font-weight: 600;
}

.trow {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
}

.trow:hover {
  background: var(--card);
}

.trow.on {
  background: var(--card);
  outline: 1px solid var(--line2);
}

.trow .th {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--line) center/cover;
  flex-shrink: 0;
}

.trow .t1 {
  font-weight: 600;
  font-size: 15px;
}

.trow .t2 {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.resizing iframe {
  pointer-events: none;
}

.wlabel {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
  background: var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.cover-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 50px;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.cover-menu label:hover {
  background: var(--line);
  color: #fff;
}

.cf-tools {
  position: absolute;
  right: 10px;
  top: 54px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-mic svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #E54270;
  stroke-width: 1.8;
}

.cf-start {
  height: 32px;
  padding: 0 16px;
  border-radius: 100px;
  border: 0;
  color: #fff;
  background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%);
}

.ssheet .row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssheet .field {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: #fff;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.live-prev {
  position: relative;
  width: 140px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  align-self: center;
}

.live-prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: vs-live 5s ease-in-out infinite;
}

.live-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 11px;
  background: rgba(0, 0, 0, .6);
  border-radius: 100px;
  padding: 2px 8px;
}

.live-prog {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.live-prog i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width .1s linear;
}

.coverwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.live-sw {
  display: inline-flex;
  padding: 3px;
  border-radius: 100px;
  background: var(--card, #1f1f21);
  border: 1px solid var(--line2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

.live-sw button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 100px;
  background: none;
  color: var(--fg2);
  font-size: 11px;
}

.live-sw button[aria-pressed=true] {
  background: var(--grad);
  color: #fff;
}

@keyframes vs-live {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }

  50% {
    transform: scale(1.06) translateY(-1.5%);
    filter: brightness(1.12) saturate(1.2);
  }
}

.cf-num {
  margin-left: auto;
  width: 64px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cf-num:focus {
  outline: none;
  border-color: #DE762B;
}

/* развёрнутый редактор текста (как на suno.com) */
.cf-editor {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cf-ed {
  width: min(860px, 100%);
  height: min(760px, 100%);
  background: var(--card);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cf-ed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.cf-ed-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.cf-ed-tags button {
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 12px;
}

.cf-ed-tags button:hover {
  background: var(--line);
  color: #fff;
}

.cf-ed textarea {
  flex: 1;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  padding: 16px 20px;
  resize: none;
  outline: none;
}

.cf-ed-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.cf-note {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 0 10px rgba(229, 66, 112, .9);
}

.trow .crt {
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trow.creating .th {
  background: linear-gradient(90deg, var(--line) 0%, #49494A 50%, var(--line) 100%) 0 0 / 200% 100%;
  animation: cf-shim 1.2s linear infinite;
}

.trow.creating {
  animation: cf-in .5s cubic-bezier(.2, 1.3, .4, 1);
}

@keyframes cf-shim {
  to {
    background-position: -200% 0;
  }
}

@keyframes cf-in {
  from {
    transform: translateY(-10px) scale(.96);
    opacity: 0;
  }
}

/* теги новичка */
.cf-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-right: -36px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cf-tagrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cf-taglab {
  font-size: 11px;
  color: var(--muted);
  width: 72px;
  flex-shrink: 0;
}

.cf-tagscroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
  padding-right: 24px;
}

.cf-tagscroll::-webkit-scrollbar {
  display: none;
}

.cf-tag {
  height: 28px;
  padding: 0 11px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--fg2);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}

.cf-tag:hover {
  color: #fff;
  border-color: var(--muted);
}

.cf-tag[aria-pressed=true] {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  animation: cf-pop .35s cubic-bezier(.2, 1.6, .4, 1);
}

.cf-tag.own {
  border-style: dashed;
}

.cf-lib-i {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.cf-lib-i:hover,
.cf-lib-i:focus-visible {
  background: var(--line);
  outline: none;
}

.cf-lib-ic {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg2);
  flex-shrink: 0;
  margin-top: 10px;
}

.cf-lib-i b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.cf-lib-i .tx {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.4;
  white-space: pre-line;
}

.cf-lib-i small {
  font-size: 11px;
  color: var(--muted);
}

.cf-lib-i .cf-ic {
  opacity: 0;
  flex-shrink: 0;
}

.cf-lib-i:hover .cf-ic,
.cf-lib-i:focus-within .cf-ic {
  opacity: 1;
}

/* полноэкранный редактор с ИИ-помощником */
.cf-editor {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.cf-ed {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: var(--panel);
}

.cf-ed-head {
  padding: 12px 16px 12px 24px;
}

.cf-ed-title {
  font-size: 16px;
}

.cf-ed-aibtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cf-ed-aibtn[aria-pressed=true] {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.cf-ed-body {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.cf-ed-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cf-ed-main .cf-ed-tags {
  justify-content: center;
}

.cf-ed-main textarea {
  flex: 1;
  padding: 24px max(24px, calc((100% - 760px) / 2));
  font-size: 16px;
  line-height: 1.7;
}

.cf-ai {
  flex: 0 0 380px;
  width: 380px;
  margin-right: -380px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--bg);
  transition: margin-right .38s cubic-bezier(.22, 1, .36, 1);
}

.ai-open .cf-ai {
  margin-right: 0;
}

.cf-ai-h {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px 10px;
}

.cf-ai-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 16px 10px;
}

.cf-ai-msg {
  max-width: 94%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: vs-drop .25s ease-out;
}

.cf-ai-msg.bot {
  background: var(--card);
  align-self: flex-start;
}

.cf-ai-msg.me {
  background: rgba(222, 118, 43, .16);
  align-self: flex-end;
}

.cf-ai-msg.demo {
  outline: 1px dashed var(--line2);
}

.cf-ai-res {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  max-height: 240px;
  overflow: auto;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
}

.cf-ai-msg .dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.cf-ai-msg .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg2);
  animation: cf-dot 1s infinite;
}

.cf-ai-msg .dots i:nth-child(2) {
  animation-delay: .15s;
}

.cf-ai-msg .dots i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes cf-dot {

  0%,
  80%,
  100% {
    opacity: .25;
    transform: none;
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.cf-ai-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 0;
}

.cf-ai-in {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 10px 16px 16px;
  padding: 8px 8px 8px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line2);
}

.cf-ai-in:focus-within {
  border-color: var(--muted);
}

.cf-ai-in textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  outline: none;
}

.cf-ai-send {
  width: 93px;
  height: 53px;
  border-radius: 6%;
  border: 0;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .cf-ai {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 100%);
    margin: 0;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    box-shadow: -12px 0 30px rgba(0, 0, 0, .5);
  }

  .ai-open .cf-ai {
    transform: none;
  }
}

.cf-ed .cf-ai-in textarea {
  flex: 1;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.45;
}

/* на телефоне поля ввода 16 px — иначе iPhone увеличивает страницу при вводе (альбом, название, промпт) */
@media (pointer: coarse) {
  select {
    font-size: 16px !important;
  }
}

.rs-tip.out {
  opacity: 0;
}

/* ── v11: форма ── */
/* теги переносятся на новые строки; лишние — по «+ ещё N» */
.cf-tagwrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cf-tagrow {
  align-items: flex-start;
}

.cf-taglab {
  padding-top: 7px;
}

.cf-tag.more {
  border-style: dashed;
  color: var(--muted);
}

.cf-tag.more:hover {
  color: #fff;
}

.cf-tag.fresh {
  animation: cf-tagin .3s cubic-bezier(.2, 1.3, .4, 1) both;
  animation-delay: calc(var(--i) * 35ms);
}

@keyframes cf-tagin {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.9);
  }
}

/* «Отправим: …» над кнопкой создания у новичка */
.cf-preview {
  font-size: 12px;
  color: var(--fg2);
  padding: 0 6px 8px;
  line-height: 1.45;
  animation: vs-drop .25s ease-out;
}

.cf-preview .pv-l {
  color: var(--muted);
}

.cf-preview .pv-plus {
  color: #DE762B;
  font-weight: 700;
}

/* сохранённые: название с карандашом, переименование прямо в списке */
.cf-lib-t {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
}

.cf-lib-ren {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity .15s;
}

.cf-lib-i:hover .cf-lib-ren,
.cf-lib-i:focus-within .cf-lib-ren {
  opacity: 1;
}

.cf-lib-ren:hover {
  color: #fff;
  background: var(--line2);
}

@media (hover: none) {
  .cf-lib-ren {
    opacity: .8;
  }
}

.cf-lib-in {
  width: 100%;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--line);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 10px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(222, 118, 43, .5);
}

/* корзина краснеет при наведении */
.cf-lib-i [data-libdel]:hover {
  color: #FF5A6E;
  background: rgba(255, 90, 110, .14);
}

/* новичок: три выпадающие кнопки вместо рядов тегов */
.cf-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: 100px;
  border: 1px solid var(--line2);
  transition: border-color .15s, background .15s;
}

.cf-pick:hover {
  border-color: var(--muted);
}

.cf-pick.on {
  border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(125deg, #DE642B, #E54270 55%, #A23BF5) border-box;
}

.cf-pickb {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--fg2);
  font-size: 13px;
  border-radius: 100px;
}

.cf-pick.on .cf-pickb {
  color: #fff;
  padding-right: 4px;
}

.cf-pickb svg {
  transition: transform .2s;
}

.cf-pick.open .cf-pickb svg {
  transform: rotate(180deg);
}

.pk-x {
  width: 26px;
  height: 26px;
  margin-right: 4px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--fg2);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pk-x:hover {
  background: var(--line);
  color: #fff;
}

.cf-pickm {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 190px;
  max-height: 280px;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: cf-libin .18s cubic-bezier(.22, 1, .36, 1);
  transform-origin: top left;
}

.cf-pickm .g {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
}

.cf-pickm .sep {
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}

.cf-pickm button {
  display: flex;
  align-items: center;
  text-align: left;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg2);
  font-size: 13px;
}

.cf-pickm button:hover,
.cf-pickm button[aria-selected=true] {
  background: var(--line);
  color: #fff;
}

.cf-pickm .ck {
  margin-left: auto;
  color: #DE762B;
  font-weight: 700;
}

/* ══════ из nav.css ══════ */
.sn-pay {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 60%, #A23BF5 130%);
  box-shadow: 0 6px 18px rgba(229, 66, 112, .3);
  transition: transform .15s, box-shadow .2s;
}

.sn-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(229, 66, 112, .5);
}

.sn-pay:active {
  transform: scale(.97);
}

.sn-pay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: cf-glint 4.5s ease-in-out infinite;
}

.sn-pay,
.sn-pay .sn-t {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  opacity: 1 !important;
}

.sn-pay>* {
  position: relative;
  z-index: 1;
}

/* ══════ из studio.css ══════ */
.vp-i.on {
  background: rgba(224, 69, 123, .14);
}

.vp-i.pending {
  opacity: .6;
}

.vp-ok {
  color: var(--ok);
  font-weight: 700;
}

.au-info b {
  color: #fff;
}

.au-persona {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.au-persona input,
.vw-in {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.au-persona input:focus,
.vw-in:focus {
  border-color: #6b6b6d;
}

.vw-in.bad {
  border-color: var(--bad);
}

.ph-h {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ph-h b {
  font-size: 14px;
}

.ph-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ph {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: center/cover var(--line);
}

.ph-open {
  position: absolute;
  inset: 0;
  border: 0;
  background: none;
  border-radius: 12px;
  cursor: zoom-in;
}

.ph-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: var(--line2);
  color: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ph-del:hover {
  background: var(--bad);
}

.ph-add {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1.5px dashed var(--line2);
  background: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ph-add:hover {
  color: #fff;
  border-color: #6b6b6d;
}

.ph-view img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
}

.ph-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.smodal.wide .ssheet {
  width: 640px;
}

.cf-libs-l {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}

.vlib-jump {
  border: 0;
  background: var(--line);
  color: #fff;
  border-radius: 100px;
  font-size: 11.5px;
  padding: 1px 8px;
  margin-left: 2px;
}

.vlib-i.on {
  color: #fff;
}

.vlib-i.on .vlib-ck {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.vlib-i.on .vlib-ck svg {
  display: none;
}

.vlib-i.on .vlib-ck::after {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
}

.vlib-i.pop .vlib-ck {
  animation: cf-pop .4s cubic-bezier(.2, 1.6, .4, 1);
}

.vlib-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* запись с микрофона и мастер «свой голос» */
.rec-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rec-meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 76px;
}

.rec-meter i {
  width: 5px;
  height: 6px;
  border-radius: 3px;
  background: var(--grad);
  transition: height .06s;
}

.rec-time {
  text-align: center;
}

.rec-time b {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.rec-phrase {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line2);
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.vw {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vw-steps {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.vw-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex: 1;
}

.vw-steps li i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.vw-steps li.on {
  color: #fff;
}

.vw-steps li.on i {
  background: var(--grad);
}

.vw-steps li.done i {
  background: var(--ok);
  color: var(--bg);
}

@media (max-width: 560px) {
  .vw-steps li span {
    display: none;
  }

  .vw-steps li.on span {
    display: inline;
  }
}

.vw-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vw-body p {
  margin: 0;
  line-height: 1.45;
}

.vw-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vw-choice button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: #fff;
  text-align: left;
}

.vw-choice button:hover {
  border-color: #6b6b6d;
}

.vw-choice small {
  color: var(--muted);
  font-size: 12px;
}

.vw-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  text-align: center;
}

.vw-wait small {
  color: var(--muted);
}

.vw-spin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: #E0457B;
  animation: vw-spin 1s linear infinite;
}

@keyframes vw-spin {
  to {
    transform: rotate(360deg);
  }
}

.vw-wave {
  height: 80px;
}

.tg-pub,
.tg-sep {
  background: rgba(43, 222, 144, .14);
  color: var(--ok);
}

.tg-err {
  background: rgba(255, 107, 107, .15);
  color: var(--bad);
}

.tr-trash {
  color: var(--accent);
}

.pulse {
  animation: pulse-ring 1.2s ease-out 2;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 69, 123, .7);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(224, 69, 123, 0);
  }
}

/* ошибки */
.tr-err {
  cursor: default;
  box-shadow: inset 3px 0 0 var(--bad);
  background: rgba(255, 107, 107, .05);
}

.tr-err.is-mod {
  box-shadow: inset 3px 0 0 var(--accent);
  background: rgba(222, 118, 43, .06);
}

.err-cov {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, .12);
  color: var(--bad);
}

.is-mod .err-cov {
  background: rgba(222, 118, 43, .14);
  color: var(--accent);
}

.is-mod .tg-err {
  background: rgba(222, 118, 43, .16);
  color: var(--accent);
}

.tr-err .tr-s {
  -webkit-line-clamp: 3;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
  padding-top: 6px;
}

.feat {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feat-tag {
  height: 26px;
  padding: 0 10px;
  border-radius: 100px;
  background: #fff;
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.feat-price {
  height: 26px;
  padding: 0 10px;
  border-radius: 100px;
  background: rgba(222, 118, 43, .18);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.feat h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.feat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg2);
}

.feat details {
  font-size: 13px;
  color: var(--fg2);
}

.feat summary {
  cursor: pointer;
  color: #fff;
  font-weight: 600;
}

.feat ol {
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feat-go {
  align-self: flex-start;
  margin-top: auto;
}

.tp-tag {
  color: var(--muted);
  font-size: 12px;
}

.pl-fav.on {
  color: var(--accent);
}

.pl-fav.on svg {
  fill: currentColor;
}

@media (max-width: 900px) {
  .mtop-b {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pl-fav {
    display: none;
  }
}

@media (max-width: 480px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .vw-choice {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 560px) {
  .tr-err {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .tr-err .tr-cov {
    width: 48px;
    height: 48px;
  }

  .tr-err .tr-r {
    grid-column: 2;
    justify-content: flex-start;
  }

  .tr-err .tr-s {
    -webkit-line-clamp: 4;
  }
}

/* ИИ-помощник: счётчик бесплатных сообщений и цены */
.cf-ai-quota {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg2);
}

.q-dots {
  display: inline-flex;
  gap: 3px;
}

.q-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line2);
}

.q-dots i.on {
  background: var(--grad);
}

.ai-p {
  margin-left: 6px;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--line);
  color: var(--fg2);
}

.ai-cost {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: .7;
}

.cm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.cm .sh-t {
  font-size: 17px;
  line-height: 1.35;
}

.cm>.small {
  font-size: 13px;
  line-height: 1.5;
  max-width: 300px;
}

.cm-ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(222, 118, 43, .14);
  color: var(--accent);
  margin-bottom: 4px;
}

.cm-ic.danger {
  background: rgba(255, 107, 107, .14);
  color: var(--bad);
}

.cm-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.cm-row .pill,
.cm-row .cf-create {
  height: 40px;
  min-width: 120px;
  padding: 0 20px;
  width: auto;
  font-size: 14px;
}

.cm-left {
  align-items: stretch;
  text-align: left;
}

.cm-left .cm-row {
  justify-content: flex-end;
}

.cm-left>.small {
  max-width: none;
}

.rp-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.rp-i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--fg2);
  transition: background .15s, border-color .15s;
}

.rp-i:hover {
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.rp-i:has(input:checked) {
  border-color: transparent;
  background: linear-gradient(#26262a, #26262a) padding-box, var(--grad) border-box;
  color: #fff;
}

.rp-i input {
  accent-color: #E0457B;
  margin: 0;
}

.pd-f {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pd-sw {
  height: auto;
  padding: 10px 12px 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 13.5px;
  text-align: left;
}

.pd-sw small {
  flex-basis: 100%;
  padding-left: 35px;
  color: var(--muted);
  font-size: 12px;
}

.pd-rules {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  line-height: 1.45;
}

/* метки публикации и лайк */
.tg-wait {
  background: rgba(222, 118, 43, .16);
  color: var(--accent);
}

.tg-top {
  background: var(--grad);
  color: #fff;
}

.hm-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hm-h>b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.hm-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .22);
  border: 1px dashed rgba(255, 255, 255, .14);
}

.hm-mic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 0 0 6px rgba(224, 69, 123, .14), 0 10px 26px rgba(224, 69, 123, .35);
  animation: hm-breath 2.4s ease-in-out infinite;
}

@keyframes hm-breath {
  50% {
    box-shadow: 0 0 0 11px rgba(224, 69, 123, .06), 0 10px 26px rgba(224, 69, 123, .35);
  }
}

.hm-t b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.hm-t small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg2);
}

.hm-box.err {
  border-color: rgba(255, 107, 107, .35);
}

.hm-box.err .hm-mic {
  background: rgba(255, 107, 107, .18);
  color: var(--bad);
  box-shadow: none;
  animation: none;
}

.hm-go {
  align-self: center;
  min-width: 160px;
}

.hm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF4D4F;
  box-shadow: 0 0 0 0 rgba(255, 77, 79, .6);
  animation: hm-dot 1.2s ease-out infinite;
}

@keyframes hm-dot {
  100% {
    box-shadow: 0 0 0 10px rgba(255, 77, 79, 0);
  }
}

.hm-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hm-time b {
  font-size: 18px;
  color: #fff;
}

.hm-wave {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
  display: block;
}

.hm-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hm-row .pill {
  height: 40px;
}

.lt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 4px 0 10px;
  border-radius: 100px;
  font-size: 12.5px;
  color: #fff;
  background: #2a2a2e;
  border: 1px solid rgba(224, 69, 123, .45);
}

.lt-chip.new {
  animation: cf-pop .4s cubic-bezier(.2, 1.6, .4, 1);
}

.lt-chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lt-chip button:hover {
  background: var(--bad);
}

.lt-all {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
}

.lt-all:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.tp-need {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 107, 107, .1);
  border: 1px solid rgba(255, 107, 107, .3);
  color: #ffb0b0;
  font-size: 13px;
}

.cm-row .pill,
.cm-row .cf-create {
  white-space: nowrap;
  justify-content: center;
}

@keyframes pay-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 66, 112, .6);
  }

  100% {
    box-shadow: 0 0 0 12px rgba(229, 66, 112, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sn-pay::after {
    animation: none !important;
  }
}

/* ИИ-помощник: баланс виден, когда сообщения платные; не хватает — понятное сообщение и «Пополнить» */
.ai-bal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  max-width: 100%;
  padding: 3px 4px 3px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  transition: background .3s;
}

.ai-bal.low {
  background: rgba(240, 138, 44, .16);
  color: #ffc48f;
}

.ai-bal.empty {
  background: rgba(255, 107, 107, .16);
  color: #ffb0b0;
}

.ai-bal.tick {
  animation: ai-tick .6s ease-out;
}

@keyframes ai-tick {
  30% {
    background: rgba(224, 69, 123, .35);
  }
}

.ai-bal button {
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 100px;
}

.cf-ai-quota {
  flex-wrap: wrap;
}

.ai-nomoney {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-nomoney .pill {
  align-self: flex-start;
}

.cf-ai-send.nomoney {
  background: var(--line2);
}

/* счётчик новых готовых треков на вкладке */
.nb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  animation: cf-pop .4s cubic-bezier(.2, 1.6, .4, 1);
}

.next-hint {
  position: absolute;
  right: 8px;
  top: calc(100% + 8px);
  z-index: 4;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #262428;
  border: 1px solid rgba(224, 69, 123, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  cursor: default;
  animation: vm-in .2s ease-out;
}

.next-hint::before {
  content: '';
  position: absolute;
  right: 60px;
  top: -6px;
  width: 10px;
  height: 10px;
  background: #2a2430;
  border-left: 1px solid #E0457B;
  border-top: 1px solid #E0457B;
  transform: rotate(45deg);
}

.next-hint b {
  font-size: 13.5px;
}

.next-hint span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg2);
}

.next-hint .pill {
  align-self: flex-end;
}

/* первый визит: тонкие плавные стрелки к форме */
.onb {
  position: fixed;
  inset: 0;
  z-index: 44;
  pointer-events: none;
}

.onb-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(224, 69, 123, .55));
}

.onb-a,
.onb-h {
  fill: none;
  stroke: rgba(255, 170, 200, .85);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onb-a {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: onb-draw 1s ease-out forwards;
}

.onb-h {
  opacity: 0;
  animation: onb-in .3s ease-out .8s forwards;
}

@keyframes onb-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.onb-l {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 220px;
  padding: 2px 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #fff;
  animation: onb-in .5s ease-out both;
}

.onb-l i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  color: #ff9ac0;
  border: 1px solid rgba(224, 69, 123, .65);
  background: rgba(16, 16, 18, .8);
}

@keyframes onb-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.onb-x {
  position: absolute;
  pointer-events: auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 6px;
}

.onb-x:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .onb-a {
    stroke-dashoffset: 0;
    animation: none;
  }
}

.onb-l {
  max-width: 220px;
}

.tg-mv {
  background: rgba(224, 69, 123, .14);
  color: #ff9ac0;
}

/* вложенное аудио: границы фрагмента — полями; курсор при перетаскивании не прыгает */
.au-t {
  width: 54px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.au-t:hover {
  border-color: #6b6b6d;
}

.au-t:focus {
  border-color: #E0457B;
}

.onb-l,
.onb-g {
  transition: opacity .35s;
}

.onb-l:not(.on),
.onb-g:not(.on) {
  opacity: .45;
}

.onb-g.on .onb-a,
.onb-g.on .onb-h {
  stroke: #ffb3cf;
  stroke-width: 2;
}

.onb-l.on i {
  background: #E0457B;
  color: #fff;
  border-color: #E0457B;
}