.ptext-lang button {
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
  cursor: pointer;
}

.ptext-lang button.active {
  background: rgba(154, 124, 255, 0.32);
  color: #fff;
}

.ptext-content {
  display: block;
}

.ptext-content.has-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.ptext-body {
  color: #ece6da;
  font-size: 15px;
  line-height: 1.7;
}

.ptext-side {
  display: flex;
  justify-content: flex-end;
  min-width: 164px;
}

.ptext-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(154, 124, 255, 0.42);
  border-radius: 10px;
  background: rgba(154, 124, 255, 0.12);
  color: var(--violet);
  font-weight: 850;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.ptext-more span[aria-hidden="true"] {
  margin-left: 4px;
}

.ptext-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* Блок адаптации */
.create-adaptation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.create-adaptation-head strong {
  font-size: 16px;
}

.create-adaptation-head em {
  color: var(--teal);
  font-style: normal;
  font-weight: 850;
  font-size: 16px;
}

.create-adaptation-hint {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Инфо-карточки */
.create-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.create-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.create-info.catalog {
  border-color: rgba(154, 124, 255, 0.4);
  background: rgba(154, 124, 255, 0.1);
}

.create-info.created {
  border-color: rgba(63, 214, 198, 0.38);
  background: rgba(63, 214, 198, 0.08);
}

.create-info-ico {
  display: inline-flex;
  color: var(--violet);
}

.create-info.created .create-info-ico {
  color: var(--teal);
}

.create-info-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.create-info-text strong {
  font-size: 14px;
  font-weight: 850;
}

.create-info-tags {
  display: flex;
  gap: 6px;
}

.create-info-tags em {
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.create-info-cta {
  flex: 0 0 auto;
  color: var(--violet);
  font-weight: 850;
  font-size: 14px;
  white-space: nowrap;
}

.create-info.created .create-info-cta {
  color: var(--teal);
}

/* Секции */
.create-section h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 850;
}

.create-section-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.create-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.create-section-head h2 {
  margin: 0;
}

.create-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.create-character {
  border: 1px solid #2a2a33;
  border-radius: 14px;
  padding: 14px;
  background: #111116;
}

/* Жанры-чипы */
.genre-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 8px 6px 0;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.genre-chips::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  max-width: 168px;
  padding: 0 13px;
  border: 1px solid #2a2a33;
  border-radius: 19px;
  background: #111116;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.genre-chip-emoji {
  font-size: 14px;
}

.genre-chip.selected {
  border-color: var(--chip, #6366f1);
  color: var(--chip, #6366f1);
  background: color-mix(in srgb, var(--chip, #6366f1) 14%, #111116);
}

/* Поле своего стиля */
/* Строка стиля (порт ВК): без иконки поиска, с анимированным плейсхолдером и крестиком очистки */
.create-style-field { position: relative; margin: 16px 0 18px; }
.create-style-field input {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 46px 0 16px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #15151d;
  color: var(--text); font: inherit; font-size: 15px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.create-style-field input:focus { outline: none; border-color: rgba(255,138,61,.6); background: #181824; box-shadow: 0 0 0 3px rgba(255,138,61,.14); }
.create-style-ph { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 62px); }
.create-style-ph-cursor { color: #ff8a3d; }
.create-style-field input:not(:placeholder-shown) ~ .create-style-ph, .create-style-field input:focus ~ .create-style-ph { display: none; }
.create-style-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.create-style-clear:hover { background: rgba(255,255,255,.16); color: var(--text); }
.create-style-clear.hidden { display: none; }

.create-style-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  margin: 16px 0 18px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #15151d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.create-style-input:focus-within {
  border-color: rgba(154, 124, 255, 0.62);
  background: #181824;
  box-shadow: 0 0 0 3px rgba(154, 124, 255, 0.12);
}

.create-style-ico {
  display: inline-flex;
  color: var(--muted);
}

.create-style-input input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.create-style-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Демо-карточка «Примерное звучание» */
.demo-card {
  position: relative;
  margin-top: 14px;
  padding: 16px;
  border: 1.5px solid rgba(154, 124, 255, 0.55);
  border-radius: 14px;
  background: rgba(154, 124, 255, 0.08);
}

.demo-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.demo-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-right: 32px;
}

.demo-card-emoji {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(154, 124, 255, 0.2);
  font-size: 18px;
}

.demo-card-top strong {
  font-size: 16px;
  font-weight: 850;
}

.demo-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-card-kicker {
  color: var(--text);
  font-weight: 850;
  font-size: 14px;
}

.demo-card-actions {
  display: flex;
  gap: 8px;
}

.demo-play-btn {
  min-width: 48px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
}

.demo-play-btn.playing {
  border-color: rgba(154, 124, 255, 0.6);
  color: #fff;
  background: rgba(154, 124, 255, 0.2);
}

.demo-card-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.character-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Sticky-футер: оферта + кнопка */
.create-foot {
  position: fixed;
  left: 50%;
  bottom: 114px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(760px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 13, 19, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.46);
}

.create-submit-btn {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--violet);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.create-submit-btn:hover {
  background: #ab90ff;
}

.create-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .create-screen {
    padding-top: calc(14px + env(safe-area-inset-top));
  }
}

@media (max-width: 520px) {
  .create-head-main h1 {
    font-size: 17px;
  }

  .create-credit-pill {
    min-height: 52px;
    min-width: 86px;
  }

  .ptext-content.has-more {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ptext-side {
    justify-content: flex-start;
    min-width: 0;
  }

  .ptext-more {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* ===== Поток «Создать»: поэты строками → стихи поэта ===== */
.create-flow {
  padding-bottom: 130px;
}

/* #11: степпер «Поэт → Стих → Жанр» в мастере создания (мобильный слой, эталон ВК). */
.cflow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
}

.cflow-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cflow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #191922;
  color: #8b8b97;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.cflow-step-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #8b8b97;
  white-space: nowrap;
}

.cflow-step.active .cflow-step-num {
  border-color: #7c6cf5;
  background: #7c6cf5;
  color: #fff;
}

.cflow-step.active .cflow-step-label {
  color: var(--text);
}

.cflow-step.done .cflow-step-num {
  border-color: #35c759;
  background: #35c759;
  color: #fff;
}

.cflow-step-tail {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.cflow-step-tail.done {
  background: #35c759;
}

@media (max-width: 360px) {
  .cflow-step-label { display: none; }
  .cflow-step-tail { width: 22px; }
}

.cflow-top {
  margin-bottom: 16px;
  text-align: center;
}

.cflow-top h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
}

.cflow-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cflow-head-main {
  min-width: 0;
  text-align: center;
  padding-right: 44px;
}

.cflow-head-main h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cflow-head-main p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cflow-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.cflow-banner.accent {
  border-color: rgba(154, 124, 255, 0.45);
  background: rgba(154, 124, 255, 0.1);
}

.cflow-banner.book {
  border-color: rgba(255, 122, 69, 0.45);
  background: rgba(255, 122, 69, 0.08);
}

.cflow-banner-ico {
  flex: 0 0 auto;
  display: inline-flex;
}

.cflow-banner.accent .cflow-banner-ico {
  color: var(--violet);
}

.cflow-banner.book .cflow-banner-ico {
  color: var(--accent);
}

.cflow-banner p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.cflow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cflow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.cflow-row:hover {
  border-color: rgba(154, 124, 255, 0.4);
}

.cflow-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(154, 124, 255, 0.16);
  color: var(--violet);
  font-weight: 850;
  font-size: 15px;
}

.cflow-row-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cflow-row-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.cflow-row-chev {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.cflow-row.skeleton {
  display: block;
  min-height: 76px;
  border-radius: 14px;
}

.cpoem-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.cpoem-card:hover {
  border-color: rgba(154, 124, 255, 0.4);
}

.cpoem-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
}

.cpoem-icon.has-tracks {
  background: rgba(154, 124, 255, 0.16);
  color: var(--violet);
}

.cpoem-icon.no-tracks {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.cpoem-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cpoem-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

