@media (max-width: 900px) {
  body.is-poems-route .site-header,
  body.is-poems-route .site-footer {
    display: none !important;
  }

  body.poems-drawer-open {
    overflow: hidden;
  }

  body.is-poems-route .poems-screen {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 10px calc(118px + env(safe-area-inset-bottom));
  }

  body.is-poems-route .poems-mobile-header {
    display: block;
    margin: 0 0 4px;
  }

  body.is-poems-route .poems-top-row {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 12px;
    margin: 0 0 4px;
  }

  body.is-poems-route .poems-mobile-header .android-icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #14141c;
  }

  body.is-poems-route .poems-title-pill,
  body.is-poems-route .poems-header-search-pill {
    min-height: 54px;
    border-radius: 18px;
    background: #12121a;
  }

  body.is-poems-route .poems-title-pill strong {
    font-size: 20px;
    font-weight: 950;
  }

  body.is-poems-route .poems-header-search-pill {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(167, 139, 250, 0.58);
    color: #f8fafc;
  }

  body.is-poems-route .poems-header-search-pill input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 800;
  }

  body.is-poems-route .poems-header-search-pill input::placeholder {
    color: #6b7280;
  }

  body.is-poems-route .poems-toolbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
  }

  body.is-poems-route .poems-screen.search-open .poems-toolbar {
    display: none;
  }

  body.is-poems-route .poems-fav-btn {
    flex: 0 0 54px;
    width: 54px;
    height: 40px;
    padding: 0 8px;
    justify-content: center;
    border-radius: 14px;
    font-size: 11px;
  }

  body.is-poems-route .poems-fav-btn svg {
    width: 18px;
    height: 18px;
  }

  body.is-poems-route .poems-seg {
    flex: 0 0 auto;
    height: 40px;
    padding: 3px;
    border-radius: 14px;
  }

  body.is-poems-route .poems-seg a {
    min-width: 38px;
    height: 32px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 12px;
  }

  body.is-poems-route .poems-clear-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  body.is-poems-route .poems-filter-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    height: 40px;
    gap: 7px;
    padding: 0 10px;
    border-radius: 14px;
  }

  body.is-poems-route .poems-filter-btn > svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
  }

  body.is-poems-route .poems-filter-title {
    font-size: 13px;
    line-height: 1.05;
  }

  body.is-poems-route .poems-filter-sub {
    font-size: 11px;
    line-height: 1.05;
  }

  body.is-poems-route .poems-filter-arrow {
    font-size: 18px;
  }

  body.is-poems-route .poem-feed {
    gap: 10px;
  }

  body.is-poems-route .pcard {
    grid-template-columns: 48px minmax(0, 1fr) 40px;
    gap: 8px 12px;
    min-height: 118px;
    padding: 12px;
    border-radius: 14px;
    background: #111116;
  }

  body.is-poems-route .pcard-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  body.is-poems-route .pcard-title {
    font-size: 15px;
    line-height: 1.28;
  }

  body.is-poems-route .pcard-year {
    font-size: 11px;
  }

  body.is-poems-route .pcard-author {
    font-size: 12px;
  }

  body.is-poems-route .pcard-preview {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.42;
  }

  body.is-poems-route .pcard-controls {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
  }

  body.is-poems-route .pcard-lang button {
    min-width: 40px;
    height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }

  body.is-poems-route .pcard-make {
    width: auto;
    min-width: 126px;
    height: 34px;
    margin-left: auto;
    padding: 0 10px;
    justify-content: center;
    border-radius: 11px;
    font-size: 11px;
  }

  body.is-poems-route .pcard-fav,
  body.is-poems-route .pcard-expand {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body.is-poems-route .pcard-expand {
    height: 34px;
    align-self: end;
  }

  body.is-poems-route .poems-drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    background: rgba(0, 0, 0, 0.56);
  }

  body.is-poems-route .poems-drawer-panel {
    position: relative;
    z-index: 1;
    width: min(304px, 74vw);
    min-height: 100svh;
    padding: calc(10px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    border-right: 1px solid #17171e;
    background: #070709;
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.45);
  }

  body.is-poems-route .poems-drawer-backdrop {
    flex: 1 1 auto;
  }

  body.is-poems-route .poems-drawer-profile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
  }

  body.is-poems-route .poems-drawer-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background: #ff5a7a;
    color: #fff;
    font-weight: 900;
  }

  body.is-poems-route .poems-drawer-profile strong,
  body.is-poems-route .poems-drawer-profile span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.is-poems-route .poems-drawer-profile strong {
    font-size: 15px;
    font-weight: 800;
  }

  body.is-poems-route .poems-drawer-profile span {
    margin-top: 2px;
    color: #8f919a;
    font-size: 11px;
    font-weight: 700;
  }

  body.is-poems-route .poems-drawer-close {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #e5e7eb;
  }

  body.is-poems-route .poems-drawer-nav {
    display: grid;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid #17171e;
  }

  body.is-poems-route .poems-drawer-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 6px;
    border-radius: 12px;
    color: #f1f5f9;
  }

  body.is-poems-route .poems-drawer-nav a.active {
    background: rgba(99, 102, 241, 0.22);
  }

  body.is-poems-route .poems-drawer-nav span {
    width: 20px;
    color: #d6d6de;
    text-align: center;
    font-weight: 900;
  }

  body.is-poems-route .poems-drawer-nav strong {
    font-size: 15px;
    font-weight: 600;
  }

  body.app-drawer-open {
    overflow: hidden;
  }

  body.app-drawer-open .poems-drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    background: rgba(0, 0, 0, 0.56);
  }

  body.app-drawer-open .poems-drawer-panel {
    position: relative;
    z-index: 1;
    width: min(304px, 74vw);
    min-height: 100svh;
    padding: calc(10px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    border-right: 1px solid #17171e;
    background: #070709;
    box-shadow: 18px 0 46px rgba(0, 0, 0, 0.45);
  }

  body.app-drawer-open .poems-drawer-backdrop {
    flex: 1 1 auto;
  }

  body.app-drawer-open .poems-drawer-profile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
  }

  body.app-drawer-open .poems-drawer-avatar {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background: #ff5a7a;
    color: #fff;
    font-weight: 900;
  }

  body.app-drawer-open .poems-drawer-profile strong,
  body.app-drawer-open .poems-drawer-profile span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.app-drawer-open .poems-drawer-profile strong {
    font-size: 15px;
    font-weight: 800;
  }

  body.app-drawer-open .poems-drawer-profile span {
    margin-top: 2px;
    color: #8f919a;
    font-size: 11px;
    font-weight: 700;
  }

  body.app-drawer-open .poems-drawer-close {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #e5e7eb;
  }

  body.app-drawer-open .poems-drawer-nav {
    display: grid;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid #17171e;
  }

  body.app-drawer-open .poems-drawer-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    padding: 0 6px;
    border-radius: 12px;
    color: #f1f5f9;
  }

  body.app-drawer-open .poems-drawer-nav a.active {
    background: rgba(99, 102, 241, 0.22);
  }

  body.app-drawer-open .poems-drawer-nav span {
    width: 20px;
    color: #d6d6de;
    text-align: center;
    font-weight: 900;
  }

  body.app-drawer-open .poems-drawer-nav strong {
    font-size: 15px;
    font-weight: 600;
  }

  body.app-drawer-open .poems-drawer-divider {
    height: 1px;
    margin: 12px 0;
    background: #17171e;
  }

  /* Блок «Мы на площадках» — мобильный слой (drawer-меню + экран профиля). */
  .mob-platforms { padding: 8px 4px 2px; }
  .mob-platforms-title { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #74747f; margin: 0 0 11px; padding: 0 2px; }
  /* 7 площадок (с App Store, 2026-07-29) — все в один ряд, без «сироты» во второй строке. */
  .mob-platforms-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
  .mob-plat { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #14141c; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 10px rgba(0,0,0,.42); transition: transform .12s ease; }
  .mob-plat svg { width: 106%; height: 106%; display: block; }
  .mob-plat:active { transform: scale(.93); }
  /* На экране профиля — оформлено карточкой, как остальные app-profile-card. */
  .mob-platforms-profile { background: #121219; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 15px 15px 11px; margin-bottom: 12px; }
  .mob-platforms-profile .mob-platforms-title { text-align: center; }

  body.app-drawer-open .poems-drawer-language {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 6px;
    color: #f1f5f9;
  }

  body.app-drawer-open .poems-drawer-language > span {
    color: #d6d6de;
    text-align: center;
    font-weight: 900;
  }

  body.app-drawer-open .poems-drawer-language > strong {
    font-size: 15px;
    font-weight: 600;
  }

  body.app-drawer-open .poems-drawer-language-chips {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
  }

  body.app-drawer-open .poems-drawer-language-chips button {
    min-width: 42px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    color: #9ca3af;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
  }

  body.app-drawer-open .poems-drawer-language-chips button.active {
    color: #fff;
    background: #8b5cf6;
  }
}

/* ===== Экран «Создать» (как в приложении) ===== */
.create-screen {
  max-width: 760px;
  margin: 0 auto;
  padding: 112px 16px 244px;
}

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

.create-back-label { display: none; } /* мобильная кнопка назад = иконка (ВК-стиль); подпись только на десктопе v2 */
.create-back {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.create-head-main {
  min-width: 0;
  text-align: center;
}

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

.create-head-main p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.create-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 122, 69, 0.4);
  border-radius: 14px;
  background: rgba(255, 122, 69, 0.1);
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.create-credit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 7px;
  min-height: 52px;
  min-width: 86px;
  padding: 0 10px;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 18px;
  background: #14151d;
  box-shadow: inset 0 0 0 1px rgba(103, 96, 133, 0.1);
  color: #f4f5fb;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
}

.create-credit-pill > span,
.create-credit-pill em {
  color: var(--accent);
}

.create-credit-pill em {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin: 30px -12px 0 -2px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

.create-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Панель текста стихотворения */
.ptext-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}

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

.ptext-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ptext-lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

