/* Feed V2 shell — desktop-first layout owner (parity with feed-shell.css desktop).
   Card visuals: feed-unified.css only. No fixed overlays, no display:contents hacks. */

:root {
  --feed-v2-desktop-edge-gap: 6px;
  --feed-v2-gap: 14px;
  --feed-v2-column-max: 350px;
  --feed-v2-column-left: clamp(10px, 1vw, 14px);
  --feed-v2-panel-line-height: 20px;
  --feed-v2-composer-min-h: 64px;
  --feed-v2-composer-pad-y: 10px;
  --feed-v2-composer-pad-x: 14px;
  --feed-v2-composer-gap: 10px;
  --feed-v2-composer-action: 46px;
  --feed-v2-composer-border-top: 1px solid rgba(90, 180, 255, 0.12);
  --feed-v2-composer-bg: linear-gradient(0deg, rgba(4, 8, 14, 0.88) 0%, rgba(6, 12, 22, 0.52) 100%);
  --feed-v2-composer-input-bg: rgba(4, 12, 20, 0.72);
  --feed-v2-composer-input-border: 1px solid rgba(90, 180, 255, 0.18);
  --feed-v2-composer-input-radius: 999px;
  --feed-v2-composer-input-radius-multi: 18px;
  --feed-v2-composer-input-min-h: 42px;
  --feed-v2-composer-input-pad: 10px 16px;
  --feed-v2-composer-input-focus-border: rgba(255, 140, 0, 0.38);
  --feed-v2-composer-input-focus-ring: 0 0 0 2px rgba(255, 140, 0, 0.12);
  --feed-v2-composer-send-bg: linear-gradient(135deg, #ff9a1f, #d46a00);
  --feed-v2-composer-send-border: 1px solid rgba(255, 180, 80, 0.45);
  --feed-v2-composer-send-shadow: 0 4px 14px rgba(255, 138, 0, 0.24);
  --feed-v2-composer-send-color: #111;
  --feed-v2-bottom-reserve: 0px;
  --feed-v2-frame-max: var(--dc-bottom-nav-max-width, 430px);
}

/* S4 — cancel legacy dc-bottom-nav body reserve on all public V2 breakpoints */
body.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) {
  padding-bottom: 0 !important;
  overflow-x: hidden;
}

body.feed-v2-surface .feed-v2-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.feed-v2-workspace {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--feed-v2-gap);
  width: 100%;
  margin: 0;
  padding: 8px 12px calc(8px + var(--feed-v2-bottom-reserve, 0px) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.feed-v2-pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.feed-v2-pane-feed {
  grid-column: 1;
  grid-row: 1;
}

/* B3.3/B3.4 — Telegram-style pinned bar (outside scroll, always visible in feed pane) */
body.feed-v2-surface .feed-v2-pinned-bar {
  --feed-v2-pinned-h: 52px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: var(--feed-v2-pinned-h);
  box-sizing: border-box;
  margin: 0;
  padding: 0 0 4px;
  overflow: hidden;
  background: transparent;
}

body.feed-v2-surface .feed-v2-pinned-bar__main {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(90, 180, 255, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10, 16, 28, 0.94) 0%, rgba(5, 12, 22, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.24);
  color: rgba(232, 238, 248, 0.96);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.feed-v2-surface .feed-v2-pinned-bar__main:hover,
body.feed-v2-surface .feed-v2-pinned-bar__main:focus-visible {
  border-color: rgba(255, 140, 0, 0.38);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(255, 140, 0, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.24);
}

body.feed-v2-surface .feed-v2-pinned-bar__media {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.feed-v2-surface .feed-v2-pinned-bar__thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(90, 180, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  background: rgba(4, 10, 18, 0.6);
}

body.feed-v2-surface .feed-v2-pinned-bar__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.feed-v2-surface .feed-v2-pinned-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 18px;
  line-height: 1;
  opacity: 0.96;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.22);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

body.feed-v2-surface .feed-v2-pinned-bar__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

body.feed-v2-surface .feed-v2-pinned-bar__top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.feed-v2-surface .feed-v2-pinned-bar__title {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 176, 64, 0.96);
}

body.feed-v2-surface .feed-v2-pinned-bar__text {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(214, 224, 238, 0.94);
}

body.feed-v2-surface .feed-v2-pinned-bar__indicator {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-left: 4px;
  padding: 2px 0;
}

body.feed-v2-surface .feed-v2-pinned-bar__dot {
  display: block;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: rgba(90, 150, 210, 0.35);
  box-shadow: inset 0 0 0 1px rgba(90, 180, 255, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

body.feed-v2-surface .feed-v2-pinned-bar__dot.is-active {
  background: linear-gradient(180deg, #ffb21a 0%, #ff8500 100%);
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.45);
}

@media (min-width: 1024px) {
  body.feed-v2-surface .feed-v2-pinned-bar {
    --feed-v2-pinned-h: 56px;
    padding-inline: 12px;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__media,
  body.feed-v2-surface .feed-v2-pinned-bar__thumb,
  body.feed-v2-surface .feed-v2-pinned-bar__icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 360px) {
  body.feed-v2-surface .feed-v2-pinned-bar {
    gap: 4px;
    padding-inline: 8px;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__media,
  body.feed-v2-surface .feed-v2-pinned-bar__thumb,
  body.feed-v2-surface .feed-v2-pinned-bar__icon {
    width: 34px;
    height: 34px;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__thumb {
    border-radius: 9px;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__icon {
    border-radius: 9px;
    font-size: 15px;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__dot {
    width: 3px;
    height: 10px;
  }
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post.feed-v2-post-highlight > .tg-message-bubble {
  outline: 2px solid rgba(255, 140, 0, 0.72);
  outline-offset: 2px;
  border-radius: 14px;
  transition: outline-color 0.25s ease;
}

.feed-v2-pane-chat {
  grid-column: 1;
  grid-row: 1;
}

/* Shared scroll viewport */
.feed-v2-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 180, 255, 0.38) rgba(5, 10, 16, 0.42);
  box-sizing: border-box;
}

.feed-v2-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.feed-v2-scroll::-webkit-scrollbar-track {
  background: rgba(5, 10, 16, 0.35);
  border-radius: 8px;
}

.feed-v2-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.45), rgba(80, 180, 255, 0.4));
  border-radius: 8px;
  border: 1px solid rgba(5, 10, 16, 0.5);
}

.feed-v2-composer-slot {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.feed-v2-toggle {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 140, 0, 0.12);
  color: #ffd391;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.feed-v2-toggle[hidden] {
  display: none !important;
}

/* Chat panel shell */
.feed-v2-chat-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.feed-v2-chat-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid rgba(90, 180, 255, 0.12);
}

.feed-v2-chat-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #f4f6fb;
}

.feed-v2-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 180, 255, 0.38) rgba(5, 10, 16, 0.42);
}

.feed-v2-chat-thread::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.feed-v2-chat-thread::-webkit-scrollbar-track {
  background: rgba(5, 10, 16, 0.35);
  border-radius: 8px;
}

.feed-v2-chat-thread::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 140, 0, 0.45), rgba(80, 180, 255, 0.4));
  border-radius: 8px;
  border: 1px solid rgba(5, 10, 16, 0.5);
}

.feed-v2-chat-hint {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 246, 251, 0.45);
}

.feed-v2-chat-empty {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(244, 246, 251, 0.55);
}

.feed-v2-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.feed-v2-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255, 138, 0, 0.45);
  color: #ffb347 !important;
  background: rgba(255, 138, 0, 0.1);
}

.feed-v2-chat-btn--primary {
  background: linear-gradient(180deg, #ff8a00, #e56a00);
  border-color: transparent;
  color: #0a0c10 !important;
}

.feed-v2-chat-composer,
.feed-panel-composer {
  flex: 0 0 auto;
  margin: 0;
  min-height: var(--feed-v2-composer-min-h);
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--feed-v2-composer-action);
  gap: var(--feed-v2-composer-gap);
  align-items: center;
  padding: var(--feed-v2-composer-pad-y) var(--feed-v2-composer-pad-x);
  border-top: var(--feed-v2-composer-border-top);
  background: var(--feed-v2-composer-bg);
  box-sizing: border-box;
}

.feed-panel-input {
  width: 100%;
  min-width: 0;
  min-height: var(--feed-v2-composer-input-min-h);
  margin: 0;
  border-radius: var(--feed-v2-composer-input-radius);
  padding: var(--feed-v2-composer-input-pad);
  resize: none;
  overflow-y: hidden;
  background: var(--feed-v2-composer-input-bg);
  border: var(--feed-v2-composer-input-border);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: var(--feed-v2-panel-line-height);
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feed-panel-input::placeholder {
  color: rgba(244, 246, 251, 0.38);
}

.feed-panel-input:focus {
  border-color: var(--feed-v2-composer-input-focus-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--feed-v2-composer-input-focus-ring);
}

.feed-panel-send-btn {
  width: var(--feed-v2-composer-action);
  height: var(--feed-v2-composer-action);
  min-width: var(--feed-v2-composer-action);
  min-height: var(--feed-v2-composer-action);
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--feed-v2-composer-send-bg);
  border: var(--feed-v2-composer-send-border);
  color: var(--feed-v2-composer-send-color);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: default;
  box-shadow: var(--feed-v2-composer-send-shadow);
}

.feed-panel-send-btn span {
  display: block;
  transform: translateX(1px);
}

/* Acting banner */
body.feed-v2-surface .admin-acting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 179, 71, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 153, 0, 0.13), rgba(255, 255, 255, 0.035));
}

body.feed-v2-surface .admin-acting-banner strong {
  display: block;
  color: #ffd391;
  font-size: 13px;
}

body.feed-v2-surface .admin-acting-banner span {
  display: block;
  margin-top: 3px;
  color: rgba(242, 246, 249, 0.66);
  font-size: 12px;
}

body.feed-v2-surface .admin-acting-banner a {
  color: #ffd391 !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0 11px;
  border: 1px solid rgba(255, 179, 71, 0.24);
  border-radius: 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Desktop parity (1024+) — authoritative layout, mirrors feed-shell.css
   ========================================================================== */
@media (min-width: 1024px) {
  body.feed-v2-surface {
    overflow: hidden;
    height: 100dvh;
  }

  body.feed-v2-surface .wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.feed-v2-surface .wrap > header.dc-app-header {
    flex: 0 0 auto;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  body.feed-v2-surface .wrap > .admin-acting-banner {
    flex: 0 0 auto;
    margin: 8px 12px 0;
  }

  body.feed-v2-surface .wrap > .flash {
    flex: 0 0 auto;
  }

  body.feed-v2-surface .feed-v2-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .feed-v2-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: var(--feed-v2-gap);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 var(--feed-v2-desktop-edge-gap, 6px);
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  /* Public desktop — in-flow header + workspace top/bottom gaps (feed-shell G2.1 parity) */
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) {
    --feed-v2-desktop-bottom-dock-height: 90px;
    --feed-v2-desktop-workspace-bottom-gap: 6px;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-bottom: calc(
      var(--feed-v2-desktop-bottom-dock-height, 90px)
      + var(--feed-v2-desktop-workspace-bottom-gap, 6px)
      + env(safe-area-inset-bottom, 0px)
    ) !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap > header.dc-app-header {
    order: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap > .feed-v2-page {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .feed-v2-workspace.feed-v2-workspace--desktop-split {
    margin-top: 6px;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap > .user-bottom-nav {
    order: unset !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: env(safe-area-inset-bottom, 0px) !important;
    top: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 1200 !important;
  }

  /* Public desktop bottom nav — G2.1 parity (public-feed-base box-sizing for feed-shell-surface) */
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav,
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav a,
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav .dc-bottom-legal,
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav .dc-bottom-legal a,
  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav .user-bottom-nav-placeholder {
    box-sizing: border-box !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav > a {
    flex: 0 0 74px !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 6px !important;
    border-radius: 14px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.01em !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav > a.nav-live-link {
    flex: 0 0 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 1 !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .user-bottom-nav .dc-bottom-legal a {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    font-size: 8px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Center separator */
  .feed-v2-workspace::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 140, 0, 0.35) 38%,
      rgba(80, 180, 255, 0.22) 62%,
      transparent 100%
    );
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.12);
  }

  .feed-v2-pane-feed {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-width: 0;
    border-radius: 16px;
    border-top: 1px solid rgba(90, 180, 255, 0.14);
    border-left: 1px solid rgba(90, 180, 255, 0.14);
    border-bottom: 1px solid rgba(90, 180, 255, 0.14);
    border-right: none;
    background: rgba(3, 8, 14, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(90, 180, 255, 0.1),
      inset 1px 0 0 rgba(255, 140, 0, 0.07),
      inset 0 -1px 0 rgba(90, 180, 255, 0.08),
      0 0 14px rgba(90, 180, 255, 0.04);
    position: relative;
    z-index: 1;
  }

  .feed-v2-pane-chat {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    position: relative;
    z-index: 1;
  }

  .feed-v2-toggle {
    display: none !important;
  }

  /* Feed scroll viewport — full pane width; scrollbar at pane edge */
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > .feed-v2-scroll,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts.feed-v2-scroll,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #mobileAdminFeedList.feed-v2-scroll,
  body.feed-v2-desktop-active.admin-mode.site-feed-admin-page .feed-v2-pane-feed > #mobileAdminFeedList,
  body.feed-v2-desktop-active.user-mode.public-feed-open .feed-v2-pane-feed > #feedPosts {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 1 1 auto;
    min-height: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 0 !important;
    padding-inline: 0 !important;
    gap: 16px !important;
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    align-self: stretch !important;
  }

  body.feed-v2-desktop-active.user-mode:not(.admin-mode) .feed-v2-pane-feed > #feedPosts.feed-v2-scroll {
    scroll-padding-bottom: var(--dc-bottom-nav-desktop-reserve, 110px);
    padding-bottom: calc(16px + var(--dc-bottom-nav-desktop-reserve, 110px)) !important;
  }

  /* 350px feed column — direct children (public + admin) */
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts > #feedEmptyState,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #mobileAdminFeedList > .feed-post.tg-channel-post,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #mobileAdminFeedList > .tg-channel-empty,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #mobileAdminFeedList > #mobileAdminFeedEmpty {
    width: var(--feed-v2-column-max, 350px) !important;
    max-width: 360px !important;
    min-width: 0 !important;
    margin: 0 !important;
    margin-left: var(--feed-v2-column-left, clamp(10px, 1vw, 14px)) !important;
    margin-right: auto !important;
    align-self: flex-start !important;
    box-sizing: border-box;
  }


  .feed-v2-pane-feed .feed-post,
  .feed-v2-pane-feed .tg-message-bubble,
  .feed-v2-pane-feed .feed-img,
  .feed-v2-pane-feed .tg-channel-gallery,
  .feed-v2-pane-feed .tg-feed-video-card,
  .feed-v2-pane-feed img,
  .feed-v2-pane-feed video {
    max-width: 100%;
    box-sizing: border-box;
  }

  .feed-v2-pane-feed .feed-post > .tg-message-bubble,
  .feed-v2-pane-feed .feed-post.tg-channel-post > .tg-message-bubble,
  .feed-v2-pane-feed .feed-post.tg-channel-post-voice > .tg-message-bubble {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed .feed-post.tg-channel-post:not(.tg-channel-post-publication-text):not(.tg-channel-post-text) > .tg-message-bubble {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed .feed-post.tg-channel-post > .tg-feed-reaction-row {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .tg-channel-image-wrap,
  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .tg-channel-gallery,
  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .feed-img,
  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed img {
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  .feed-v2-pane-feed .feed-post.feed-post--video-circle .feed-video-circle-card,
  .feed-v2-pane-feed .feed-post.feed-post--video-circle .feed-video-circle-preview {
    max-width: 300px;
    box-sizing: border-box;
  }

  .feed-v2-pane-feed img,
  .feed-v2-pane-feed video {
    height: auto;
  }

  /* Composer dock */
  .feed-v2-composer-slot {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    min-height: var(--feed-v2-composer-min-h);
    height: auto;
    border-top: var(--feed-v2-composer-border-top);
    background: var(--feed-v2-composer-bg);
    padding: var(--feed-v2-composer-pad-y) var(--feed-v2-composer-pad-x);
    position: relative;
    z-index: 2;
    box-sizing: border-box;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-pane-feed .feed-v2-composer-slot {
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Chat panel — right work area */
  .feed-v2-pane-chat .feed-v2-chat-panel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(90, 180, 255, 0.12);
    background:
      radial-gradient(circle at 78% 14%, rgba(255, 140, 0, 0.075), transparent 42%),
      radial-gradient(circle at 24% 40%, rgba(55, 145, 210, 0.11), transparent 48%),
      linear-gradient(180deg, rgba(8, 17, 28, 0.66) 0%, rgba(4, 9, 16, 0.5) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 20px rgba(90, 180, 255, 0.05),
      0 0 24px rgba(255, 140, 0, 0.035);
  }

  .feed-v2-pane-chat .feed-v2-chat-head {
    min-height: 58px;
    height: 58px;
    padding: 0 14px;
    gap: 10px;
    border-radius: 16px 16px 0 0;
  }

  .feed-v2-pane-chat .feed-v2-chat-thread {
    padding: 16px 18px;
    background: transparent;
  }

  body.feed-v2-desktop-active.user-mode:not(.admin-mode) .feed-v2-pane-chat .feed-v2-chat-thread {
    padding-bottom: var(--dc-bottom-nav-desktop-reserve, 110px) !important;
    scroll-padding-bottom: var(--dc-bottom-nav-desktop-reserve, 110px) !important;
  }

  .feed-v2-pane-chat .feed-v2-chat-composer,
  .feed-v2-pane-chat .feed-panel-composer {
    border-radius: 0 0 16px 16px;
    background: linear-gradient(0deg, rgba(3, 8, 14, 0.9) 0%, rgba(6, 12, 22, 0.5) 100%);
    box-shadow: none;
  }

  body.feed-v2-surface .wrap > .user-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    top: auto;
    transform: none;
    z-index: 1200;
    width: 100%;
    max-width: none;
  }

  /* ------------------------------------------------------------------
   * Desktop admin publication composer — parity with feed-shell.css
   * ------------------------------------------------------------------ */
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > form.mobile-admin-composer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: var(--feed-v2-composer-action) minmax(0, 1fr) var(--feed-v2-composer-action) !important;
    grid-template-rows: var(--feed-v2-composer-action) !important;
    gap: var(--feed-v2-composer-gap) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: var(--feed-v2-composer-action) !important;
    height: var(--feed-v2-composer-action) !important;
    max-height: var(--feed-v2-composer-action) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.composer-multiline {
    grid-template-rows: auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    align-items: end !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .feed-composer-context:not([hidden]) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin-bottom: var(--feed-v2-composer-gap) !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer:has(.feed-composer-context:not([hidden])) {
    grid-template-rows: auto auto !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .attach-action,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .composer-input-wrap,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .mode-action,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .send-action {
    grid-row: 2 !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer > input[type="file"],
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer > input[type="hidden"] {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .attach-action {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: var(--feed-v2-composer-action) !important;
    height: var(--feed-v2-composer-action) !important;
    min-width: var(--feed-v2-composer-action) !important;
    min-height: var(--feed-v2-composer-action) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    justify-self: start !important;
    align-self: center !important;
    position: static !important;
    background: var(--feed-v2-composer-input-bg) !important;
    border: var(--feed-v2-composer-input-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #d8eaff !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .attach-action .feed-composer-attach-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    line-height: 0 !important;
    color: inherit !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .attach-action .feed-composer-attach-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Desktop admin composer icons — feed-shell + admin-feed-unified parity, scoped to V2 page */
  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .attach-action::before,
  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .mode-action::before,
  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .send-action::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    filter: none !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .round-action.attach-action,
  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .round-action.mode-action {
    background: var(--feed-v2-composer-input-bg) !important;
    border: var(--feed-v2-composer-input-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #d8eaff !important;
    font-weight: normal !important;
    transition:
      border-color 0.16s ease,
      box-shadow 0.16s ease,
      background 0.16s ease !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .attach-action:hover {
    border-color: rgba(90, 180, 255, 0.32) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 2px rgba(90, 180, 255, 0.12) !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .attach-action:focus-visible {
    outline: none !important;
    border-color: rgba(90, 180, 255, 0.38) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 2px rgba(90, 180, 255, 0.16) !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminMode.mode-action,
  body.feed-v2-desktop-active .feed-v2-page #mobileAdminMode.mode-action.tg-dynamic-action {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminMode.mode-action:not(.is-record-glow)::before {
    content: none !important;
    display: none !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminMode .dc-record-action-icon,
  body.feed-v2-desktop-active .feed-v2-page #dcRecordActionIcon.dc-record-action-icon {
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    z-index: 2 !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #eef6ff !important;
    pointer-events: none !important;
    flex: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 0 !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminMode .dc-record-action-icon[hidden] {
    display: none !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminMode .dc-record-action-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .send-action:not([hidden]) .feed-composer-send-icon {
    display: block !important;
    transform: translateX(1px) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--feed-v2-composer-send-color) !important;
  }

  body.feed-v2-desktop-active .feed-v2-page #mobileAdminComposer .send-action:not([hidden]):hover:not(:disabled) {
    filter: brightness(1.06) !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .mode-action {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: var(--feed-v2-composer-action) !important;
    height: var(--feed-v2-composer-action) !important;
    min-width: var(--feed-v2-composer-action) !important;
    min-height: var(--feed-v2-composer-action) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    justify-self: end !important;
    align-self: center !important;
    position: static !important;
    background: var(--feed-v2-composer-input-bg) !important;
    border: var(--feed-v2-composer-input-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #d8eaff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .send-action:not([hidden]) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: var(--feed-v2-composer-action) !important;
    height: var(--feed-v2-composer-action) !important;
    min-width: var(--feed-v2-composer-action) !important;
    min-height: var(--feed-v2-composer-action) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    justify-self: end !important;
    align-self: center !important;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: var(--feed-v2-composer-send-bg) !important;
    border: var(--feed-v2-composer-send-border) !important;
    box-shadow: var(--feed-v2-composer-send-shadow) !important;
    color: var(--feed-v2-composer-send-color) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .send-action[hidden] {
    display: none !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .composer-input-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
    align-self: center !important;
    box-sizing: border-box !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .round-action {
    width: var(--feed-v2-composer-action) !important;
    height: var(--feed-v2-composer-action) !important;
    min-width: var(--feed-v2-composer-action) !important;
    min-height: var(--feed-v2-composer-action) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    flex: none !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer #mobileAdminText,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer textarea {
    width: 100% !important;
    min-width: 0 !important;
    height: var(--feed-v2-composer-input-min-h) !important;
    min-height: var(--feed-v2-composer-input-min-h) !important;
    max-height: calc(var(--feed-v2-panel-line-height) * 10 + 22px) !important;
    margin: 0 !important;
    padding: var(--feed-v2-composer-input-pad) !important;
    padding-right: 44px !important;
    resize: none !important;
    overflow-y: hidden !important;
    display: block !important;
    border-radius: var(--feed-v2-composer-input-radius) !important;
    border: var(--feed-v2-composer-input-border) !important;
    background: var(--feed-v2-composer-input-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: var(--feed-v2-panel-line-height) !important;
    box-sizing: border-box !important;
    outline: none !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer #mobileAdminText:focus,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer textarea:focus {
    border-color: var(--feed-v2-composer-input-focus-border) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      var(--feed-v2-composer-input-focus-ring) !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.has-text #mobileAdminText,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.has-text textarea,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.composer-textarea-scroll #mobileAdminText,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.composer-textarea-scroll textarea {
    border-radius: var(--feed-v2-composer-input-radius-multi) !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .composer-emoji {
    position: absolute !important;
    right: 7px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: rgba(244, 246, 251, 0.78) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .composer-tip,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .tg-feed-toast {
    display: none !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer .composer-emoji-panel {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(100% + 6px) !important;
    top: auto !important;
    display: none !important;
    z-index: 4 !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.emoji-open .composer-emoji-panel {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    border: var(--feed-v2-composer-input-border) !important;
    background: rgba(4, 8, 14, 0.98) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32) !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot .mobile-admin-composer-backdrop,
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot .mobile-admin-recbar {
    display: none !important;
  }
}

/* S4 — compact split tablet landscape / small desktop (1024–1279) */
@media (min-width: 1024px) and (max-width: 1279px) {
  body.feed-v2-surface {
    --feed-v2-gap: 12px;
    --feed-v2-desktop-edge-gap: 8px;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode) .wrap > .feed-v2-page {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #mobileAdminFeedList > .feed-post.tg-channel-post {
    width: var(--feed-v2-column-max, 350px) !important;
    max-width: 350px !important;
  }
}

/* ==========================================================================
   Mobile/tablet — dashboard-style page frame (not fixed overlay layers)
   ========================================================================== */
@media (max-width: 1023px) {
  html:has(body.feed-v2-surface:not(.feed-v2-desktop-active)) {
    overflow: hidden;
    height: 100%;
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) {
    --admin-header-height: 68px;
    --feed-v2-mobile-header-reserve: calc(var(--admin-header-height, 68px) + env(safe-area-inset-top, 0px));
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) {
    --feed-v2-mobile-gap: 6px;
    --feed-v2-mobile-nav-h: var(--dc-bottom-nav-shell-h, 84px);
    --feed-v2-mobile-dock-h: var(--dc-bottom-nav-shell-h, 84px);
    --feed-v2-mobile-toggle-h: 34px;
    --feed-v2-mobile-toggle-gap: 8px;
    --feed-v2-mobile-toggle-anchor-h: max(var(--feed-v2-mobile-nav-h), var(--feed-v2-mobile-dock-h));
    --feed-v2-mobile-header-reserve: calc(var(--admin-header-height, 76px) + 6px + env(safe-area-inset-top, 0px));
    --feed-v2-mobile-scroll-chrome: calc(var(--feed-v2-mobile-toggle-h) + var(--feed-v2-mobile-toggle-gap) + 8px);
    --feed-v2-mobile-dock-z: 99990;
    --feed-v2-mobile-toggle-z: 99995;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    background: #000;
  }

  /* S3.1 — cancel dc-bottom-nav / public-feed-base body reserve on public V2 mobile */
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) {
    padding-bottom: 0 !important;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .wrap {
    padding-bottom: 0 !important;
    overflow: hidden;
  }

  /* Public mobile: pinned flush under fixed header (no legacy +6px gap) */
  html body.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode):not(.feed-v2-desktop-active):not(.comments-mode) .wrap {
    padding-top: var(--feed-v2-mobile-header-reserve) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) {
    padding-bottom: 0 !important;
  }

  body.feed-v2-surface {
    --feed-v2-mobile-toggle-reserve: 0px;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding-top: var(--feed-v2-mobile-header-reserve);
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.feed-v2-surface.feed-v2-desktop-active .wrap {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-height: 100dvh;
    height: auto;
    padding-left: 12px;
    padding-right: 12px;
    overflow: visible;
    box-sizing: border-box;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) {
    --feed-v2-frame-max: var(--dc-bottom-nav-max-width, 430px);
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .wrap {
    max-width: var(--feed-v2-frame-max, 430px);
  }

  body.feed-v2-surface .wrap > header.dc-app-header {
    flex: unset;
    width: auto;
    margin: unset;
    border-radius: unset;
  }

  body.feed-v2-surface .wrap > .admin-acting-banner {
    margin: 0 0 10px;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-page {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Public feed: page bottom = nav top - 6px */
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-page {
    flex: 0 0 auto;
    height: calc(
      100dvh
      - var(--feed-v2-mobile-header-reserve)
      - var(--feed-v2-mobile-nav-h)
      - var(--feed-v2-mobile-gap)
      - env(safe-area-inset-bottom, 0px)
    );
    max-height: calc(
      100dvh
      - var(--feed-v2-mobile-header-reserve)
      - var(--feed-v2-mobile-nav-h)
      - var(--feed-v2-mobile-gap)
      - env(safe-area-inset-bottom, 0px)
    );
  }

  /* Public/admin chat + admin feed: page bottom = dock top - 6px */
  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-page,
  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-page {
    flex: 0 0 auto;
    height: calc(
      100dvh
      - var(--feed-v2-mobile-header-reserve)
      - var(--feed-v2-mobile-dock-h)
      - var(--feed-v2-mobile-gap)
      - env(safe-area-inset-bottom, 0px)
    );
    max-height: calc(
      100dvh
      - var(--feed-v2-mobile-header-reserve)
      - var(--feed-v2-mobile-dock-h)
      - var(--feed-v2-mobile-gap)
      - env(safe-area-inset-bottom, 0px)
    );
  }

  .feed-v2-workspace {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    --feed-v2-bottom-reserve: 0px;
  }

  .feed-v2-pane {
    flex: 1 1 auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    grid-column: unset;
    grid-row: unset;
  }

  .feed-v2-pane-feed > .feed-v2-scroll,
  .feed-v2-pane-feed > #feedPosts,
  .feed-v2-pane-feed > #mobileAdminFeedList {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 12px;
    gap: 14px;
    display: flex;
    flex-direction: column;
  }

  /* ------------------------------------------------------------------
   * Mobile V2 bottom dock — fixed composers/toggles like bottom nav
   * ------------------------------------------------------------------ */
  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-workspace {
    position: relative;
    gap: 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > .feed-v2-pinned-bar {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > .feed-v2-pinned-bar .feed-v2-pinned-bar__main {
    box-sizing: border-box;
    width: 100%;
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(90, 180, 255, 0.28);
    border-top: 0;
    padding-left: 12px;
    padding-right: 12px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 6px 18px rgba(0, 0, 0, 0.24);
  }

  /* Public mobile feed — ~5% smaller cards + left inset so borders stay visible */
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) {
    --feed-v2-mobile-post-scale: 0.95;
    --feed-v2-mobile-post-inset-left: 5px;
    --feed-v2-mobile-post-max-text: 266px;
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-pane-feed > #feedPosts {
    padding-left: calc(2px + var(--feed-v2-mobile-post-inset-left, 5px)) !important;
    padding-right: 4px !important;
  }

  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
  }

  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post-media,
  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post-publication-text,
  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post-text {
    width: min(74.1vw, var(--feed-v2-mobile-post-max-text, 266px)) !important;
    max-width: min(74.1vw, var(--feed-v2-mobile-post-max-text, 266px)) !important;
    min-width: 0 !important;
  }

  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:has(.tg-channel-title) {
    width: 95% !important;
    max-width: 95% !important;
  }

  html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts .feed-post.tg-channel-post > .tg-feed-reaction-row {
    max-width: 95% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed,
  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-chat {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > .feed-v2-scroll,
  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts,
  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-pane-feed > .feed-v2-scroll,
  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-pane-feed > #mobileAdminFeedList {
    padding-bottom: calc(var(--feed-v2-mobile-scroll-chrome) + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(var(--feed-v2-mobile-scroll-chrome) + env(safe-area-inset-bottom, 0px));
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-pane-feed > .feed-v2-scroll,
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-pane-feed > #feedPosts {
    padding-bottom: calc(var(--feed-v2-mobile-scroll-chrome) + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(var(--feed-v2-mobile-scroll-chrome) + env(safe-area-inset-bottom, 0px));
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-toggle {
    position: fixed;
    left: auto;
    right: 12px;
    z-index: var(--feed-v2-mobile-toggle-z);
    grid-column: unset;
    grid-row: unset;
    flex: none;
    align-self: auto;
    margin: 0;
    min-height: var(--feed-v2-mobile-toggle-h);
    height: var(--feed-v2-mobile-toggle-h);
    padding: 0 14px;
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 999px;
    background: rgba(8, 12, 20, 0.94);
    color: #ffd391;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    bottom: calc(
      var(--feed-v2-mobile-toggle-anchor-h)
      + var(--feed-v2-mobile-gap)
      + var(--feed-v2-mobile-toggle-gap)
      + env(safe-area-inset-bottom, 0px)
    );
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-toggle {
    right: max(
      12px,
      calc((100vw - var(--feed-v2-frame-max, var(--dc-bottom-nav-max-width, 430px))) / 2 + 12px)
    );
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-toggle:active {
    border-color: rgba(255, 160, 60, 0.55);
    background: rgba(12, 18, 28, 0.98);
  }

  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-composer-slot {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    width: min(calc(100% - 24px), var(--feed-v2-frame-max, 430px));
    max-width: var(--feed-v2-frame-max, 430px);
    z-index: var(--feed-v2-mobile-dock-z);
    flex: none;
    min-height: var(--feed-v2-mobile-dock-h);
    height: var(--feed-v2-mobile-dock-h);
    margin: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(90, 180, 255, 0.14);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background:
      linear-gradient(180deg, rgba(8, 17, 28, 0.98) 0%, rgba(4, 9, 16, 0.96) 100%);
    box-shadow:
      0 -10px 28px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) .feed-v2-composer-slot > #mobileAdminComposer,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) .feed-v2-composer-slot > form.mobile-admin-composer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: var(--feed-v2-composer-action) !important;
    height: auto !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: var(--feed-v2-composer-action) minmax(0, 1fr) var(--feed-v2-composer-action) !important;
    grid-template-rows: var(--feed-v2-composer-action) !important;
    gap: var(--feed-v2-composer-gap) !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-sizing: border-box !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer::before,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer::after {
    content: none !important;
    display: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) .feed-v2-composer-slot .mobile-admin-composer-backdrop,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) .feed-v2-composer-slot .mobile-admin-recbar:not(.active),
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .composer-tip,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .tg-feed-toast,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .composer-emoji,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .composer-emoji-panel,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .tg-composer-lock[hidden],
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .tg-audio-inline-record[aria-hidden="true"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .attach-action::before,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .mode-action::before,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .send-action::before {
    content: none !important;
    display: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .round-action {
    width: var(--feed-v2-composer-action) !important;
    height: var(--feed-v2-composer-action) !important;
    min-width: var(--feed-v2-composer-action) !important;
    min-height: var(--feed-v2-composer-action) !important;
    max-width: var(--feed-v2-composer-action) !important;
    max-height: var(--feed-v2-composer-action) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    flex: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    font-weight: normal !important;
    background: var(--feed-v2-composer-input-bg) !important;
    border: var(--feed-v2-composer-input-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #d8eaff !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .attach-action {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .attach-action .feed-composer-attach-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    line-height: 0 !important;
    color: inherit !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .attach-action .feed-composer-attach-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .composer-input-wrap {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    align-self: center !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer #mobileAdminText,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer textarea {
    width: 100% !important;
    min-width: 0 !important;
    height: var(--feed-v2-composer-input-min-h) !important;
    min-height: var(--feed-v2-composer-input-min-h) !important;
    max-height: calc(var(--feed-v2-panel-line-height) * 6 + 20px) !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    resize: none !important;
    overflow-y: hidden !important;
    display: block !important;
    border-radius: var(--feed-v2-composer-input-radius) !important;
    border: var(--feed-v2-composer-input-border) !important;
    background: var(--feed-v2-composer-input-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: var(--feed-v2-panel-line-height) !important;
    box-sizing: border-box !important;
    outline: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer #mobileAdminText::placeholder,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer textarea::placeholder {
    color: rgba(244, 246, 251, 0.38) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer #mobileAdminText:focus,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer textarea:focus {
    border-color: var(--feed-v2-composer-input-focus-border) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      var(--feed-v2-composer-input-focus-ring) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer.has-text #mobileAdminText,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer.has-text textarea,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer.composer-textarea-scroll #mobileAdminText,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer.composer-textarea-scroll textarea {
    border-radius: var(--feed-v2-composer-input-radius-multi) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .mode-action {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .mode-action:not(.is-record-glow)::before {
    content: none !important;
    display: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .dc-record-action-icon {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #eef6ff !important;
    pointer-events: none !important;
    line-height: 0 !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .dc-record-action-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer.has-text .mode-action {
    display: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .send-action[hidden] {
    display: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .send-action:not([hidden]) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    display: grid !important;
    place-items: center !important;
    background: var(--feed-v2-composer-send-bg) !important;
    border: var(--feed-v2-composer-send-border) !important;
    box-shadow: var(--feed-v2-composer-send-shadow) !important;
    color: var(--feed-v2-composer-send-color) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .send-action:not([hidden])::before {
    content: none !important;
    display: none !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .send-action:not([hidden]) .feed-composer-send-icon {
    display: block !important;
    transform: translateX(1px) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: var(--feed-v2-composer-send-color) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer .feed-composer-context:not([hidden]) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin: 0 0 var(--feed-v2-composer-gap) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:has(.feed-composer-context:not([hidden])) {
    grid-template-rows: auto var(--feed-v2-composer-action) !important;
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .attach-action,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .composer-input-wrap,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .mode-action,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:has(.feed-composer-context:not([hidden])) .send-action:not([hidden]) {
    grid-row: 2 !important;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-chat-panel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-chat .feed-v2-chat-head {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 0 10px;
    border: 0;
    background: transparent;
  }

  /* S4.2 — admin mobile chat: undo style.css header:not(.dc-app-header) fixed top:0 pin */
  html body.feed-v2-surface.site-feed-admin-page.admin-mode.feed-v2-mobile-active.feed-v2-chat-active:not(.feed-v2-desktop-active) .feed-v2-pane-chat header.feed-v2-chat-head,
  body.feed-v2-surface.site-feed-admin-page.admin-mode.feed-v2-mobile-active.feed-v2-chat-active:not(.feed-v2-desktop-active) .feed-v2-pane-chat .feed-v2-chat-head {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    z-index: 2 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-chat .feed-v2-chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-thread {
    padding-bottom: calc(var(--feed-v2-mobile-gap) + var(--feed-v2-mobile-scroll-chrome) + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(var(--feed-v2-mobile-gap) + var(--feed-v2-mobile-scroll-chrome) + env(safe-area-inset-bottom, 0px));
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer,
  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-composer {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    width: calc(100% - 24px);
    z-index: var(--feed-v2-mobile-dock-z);
    flex: none;
    margin: 0;
    min-height: var(--feed-v2-mobile-dock-h);
    height: var(--feed-v2-mobile-dock-h);
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid rgba(90, 180, 255, 0.14);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background:
      linear-gradient(180deg, rgba(8, 17, 28, 0.98) 0%, rgba(4, 9, 16, 0.96) 100%);
    box-shadow:
      0 -10px 28px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.feed-v2-surface.user-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer,
  body.feed-v2-surface.user-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-composer {
    max-width: min(calc(var(--feed-v2-frame-max, 430px) - 24px), calc(100vw - 24px));
  }

  body.feed-v2-surface.admin-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer,
  body.feed-v2-surface.admin-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-composer {
    max-width: none;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-input {
    min-height: var(--feed-v2-composer-input-min-h);
    border-radius: var(--feed-v2-composer-input-radius);
    background: var(--feed-v2-composer-input-bg);
    border: var(--feed-v2-composer-input-border);
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-send-btn {
    border-radius: 50%;
    background: var(--feed-v2-composer-send-bg);
    border: var(--feed-v2-composer-send-border);
    box-shadow: var(--feed-v2-composer-send-shadow);
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav,
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav > a,
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav .dc-bottom-legal,
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav .dc-bottom-legal a,
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav .user-bottom-nav-placeholder {
    box-sizing: border-box;
  }

  body.feed-v2-surface .wrap > .user-bottom-nav,
  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, var(--feed-v2-frame-max, var(--dc-bottom-nav-max-width, 430px))) !important;
    max-width: var(--feed-v2-frame-max, var(--dc-bottom-nav-max-width, 430px)) !important;
    z-index: var(--dc-bottom-nav-z-index, 99999);
  }

  /* Public mobile: nav shell fills safe-area — no black strip under dock */
  html body.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode):not(.feed-v2-desktop-active) nav.user-bottom-nav.dc-bottom-nav {
    bottom: 0 !important;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.94), rgba(0, 0, 0, 0.98)) !important;
  }

  /* Beat dc-bottom-nav.css 700–899px max-width:760px on V2 tablet portrait */
  @media (min-width: 768px) and (max-width: 1023px) {
    html body.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode):not(.feed-v2-desktop-active) .wrap > .user-bottom-nav,
    html body.feed-v2-surface.user-mode.public-feed-open:not(.admin-mode):not(.feed-v2-desktop-active) .user-bottom-nav {
      width: min(100%, 640px) !important;
      max-width: 640px !important;
    }
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .wrap > .user-bottom-nav.dc-bottom-nav {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .wrap > .user-bottom-nav:not(.dc-bottom-nav) {
    height: var(--feed-v2-mobile-nav-h);
    min-height: var(--feed-v2-mobile-nav-h);
    max-height: var(--feed-v2-mobile-nav-h);
  }

  .feed-v2-workspace[data-active-pane="feed"] .feed-v2-pane-chat {
    display: none;
  }

  .feed-v2-workspace[data-active-pane="chat"] .feed-v2-pane-feed {
    display: none;
  }

  body.feed-v2-surface.feed-v2-chat-active.user-mode:not(.admin-mode) .wrap > .user-bottom-nav {
    display: none !important;
  }

  /* S4.2 — phone-landscape chat: beat S4.1 nav display:grid !important */
  html body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open.feed-v2-chat-active:not(.admin-mode):not(.feed-v2-desktop-active) .wrap > .user-bottom-nav,
  html body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open.feed-v2-chat-active:not(.admin-mode):not(.feed-v2-desktop-active) .user-bottom-nav,
  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open.feed-v2-chat-active:not(.admin-mode):not(.feed-v2-desktop-active) .wrap > .user-bottom-nav,
  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open.feed-v2-chat-active:not(.admin-mode):not(.feed-v2-desktop-active) .user-bottom-nav {
    display: none !important;
  }

  @media (min-width: 431px) {
    body.feed-v2-surface .wrap {
      box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 70px rgba(255, 138, 0, 0.08);
    }
  }

  /* S4 — tablet portrait frame (768–1023), single-pane centered */
  @media (min-width: 768px) and (max-width: 1023px) {
    body.feed-v2-surface:not(.feed-v2-desktop-active) {
      --feed-v2-frame-max: 640px;
      --dc-bottom-nav-max-width: 640px;
    }

    body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
    body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
    body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState,
    body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList > .feed-post.tg-channel-post,
    body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList > .tg-channel-empty,
    body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList > #mobileAdminFeedEmpty {
      width: var(--feed-v2-column-max, 350px) !important;
      max-width: 350px !important;
      min-width: 0 !important;
      margin-left: var(--feed-v2-column-left, clamp(10px, 1vw, 14px)) !important;
      margin-right: auto !important;
      align-self: flex-start !important;
      box-sizing: border-box;
    }

    body.feed-v2-surface.admin-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer,
    body.feed-v2-surface.admin-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-composer {
      max-width: min(calc(var(--feed-v2-frame-max, 640px) - 24px), calc(100vw - 24px));
    }
  }
}

/* ==========================================================================
   S4.1 — phone landscape (wide 768–1023, short ≤560): compact single-pane
   ========================================================================== */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1023px) {
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) {
    --feed-v2-frame-max: min(100%, calc(100vw - 16px));
    --dc-bottom-nav-max-width: min(100%, calc(100vw - 16px));
    --admin-header-height: 52px;
    --feed-v2-mobile-header-reserve: calc(52px + 4px + env(safe-area-inset-top, 0px));
    --feed-v2-mobile-nav-h: 48px;
    --feed-v2-mobile-dock-h: 60px;
    --feed-v2-mobile-toggle-h: 30px;
    --feed-v2-mobile-toggle-gap: 6px;
    --feed-v2-mobile-gap: 6px;
    --feed-v2-mobile-scroll-chrome: calc(var(--feed-v2-mobile-toggle-h) + var(--feed-v2-mobile-toggle-gap) + 6px);
    --feed-v2-composer-action: 42px;
    --feed-v2-composer-input-min-h: 38px;
    --feed-v2-composer-gap: 8px;
    --feed-v2-column-max: 320px;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .wrap {
    max-width: min(100%, calc(100vw - 16px));
    padding-left: 8px;
    padding-right: 8px;
    padding-top: var(--feed-v2-mobile-header-reserve);
  }

  html body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .wrap > header.dc-app-header,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .wrap > header.dc-app-header {
    min-height: 52px !important;
    max-height: 58px !important;
    height: 52px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .wrap > header.dc-app-header .brand-app-icon {
    width: 32px !important;
    height: 32px !important;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > .feed-v2-scroll,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList {
    padding: 0 0 8px;
    gap: 10px;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList > .feed-post.tg-channel-post,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList > .tg-channel-empty,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #mobileAdminFeedList > #mobileAdminFeedEmpty {
    width: var(--feed-v2-column-max, 320px) !important;
    max-width: 320px !important;
    min-width: 0 !important;
    margin-left: var(--feed-v2-column-left, clamp(8px, 1vw, 12px)) !important;
    margin-right: auto !important;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active) .feed-v2-toggle {
    height: var(--feed-v2-mobile-toggle-h);
    min-height: var(--feed-v2-mobile-toggle-h);
    font-size: 11px;
    padding: 0 12px;
    right: max(
      8px,
      calc((100vw - min(100%, calc(100vw - 16px))) / 2 + 8px)
    );
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav .dc-bottom-legal {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Beat dc-bottom-nav.css @media (min-width:900px) desktop dock on wide-short phone landscape */
  html body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.admin-mode):not(.feed-v2-desktop-active) .wrap > .user-bottom-nav,
  html body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.admin-mode):not(.feed-v2-desktop-active) .user-bottom-nav,
  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.feed-v2-desktop-active) .wrap > .user-bottom-nav {
    width: min(100%, calc(100vw - 16px)) !important;
    max-width: min(100%, calc(100vw - 16px)) !important;
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    padding-top: 3px !important;
    padding-right: 6px !important;
    padding-left: 6px !important;
    padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35) !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 2px !important;
    overflow: hidden !important;
    --dc-bottom-nav-gap: 2px;
    --dc-bottom-nav-padding-top: 3px;
    --dc-bottom-nav-padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px));
    --dc-bottom-nav-item-min-height: 38px;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav > a,
  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav .user-bottom-nav-placeholder {
    min-height: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    padding: 1px 2px !important;
    gap: 1px !important;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav .nav-label {
    font-size: 10px !important;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-composer-slot {
    width: min(calc(100% - 16px), calc(100vw - 16px));
    max-width: min(100%, calc(100vw - 16px));
    min-height: var(--feed-v2-mobile-dock-h);
    height: var(--feed-v2-mobile-dock-h);
    padding: 8px 10px;
    border-radius: 14px 14px 0 0;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer #mobileAdminText,
  body.feed-v2-surface.feed-v2-phone-landscape-active.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer textarea {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-head {
    min-height: 32px;
    padding: 4px 0 6px;
    font-size: 13px;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer,
  body.feed-v2-surface.feed-v2-phone-landscape-active:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-composer {
    width: min(calc(100% - 16px), calc(100vw - 16px));
    max-width: min(100%, calc(100vw - 16px));
    min-height: var(--feed-v2-mobile-dock-h);
    height: var(--feed-v2-mobile-dock-h);
    padding: 8px 10px;
    border-radius: 14px 14px 0 0;
  }

  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer,
  body.feed-v2-surface.feed-v2-phone-landscape-active.user-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-panel-composer {
    max-width: min(calc(100vw - 16px), calc(100% - 16px));
  }
}
