/* 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: 100%;
  --feed-v2-column-left: clamp(10px, 1vw, 14px);
  --feed-v2-panel-line-height: 20px;
  --feed-v2-composer-min-h: 52px;
  --feed-v2-composer-pad-y: 7px;
  --feed-v2-composer-pad-x: 10px;
  --feed-v2-composer-gap: 7px;
  --feed-v2-composer-action: 36px;
  --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: 34px;
  --feed-v2-composer-input-pad: 7px 12px;
  --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-keyboard-offset: 0px;
  --feed-v2-vv-top: 0px;
  --feed-v2-vv-height: 100dvh;
  --feed-v2-chat-composer-h: 52px;
  --feed-v2-chat-chrome-bottom: 0px;
  --feed-v2-chat-thread-pad-bottom: 6px;
  --feed-v2-frame-max: var(--dc-bottom-nav-max-width, 430px);
  --dc-header-h: 56px;
  --dc-bottom-chrome-h: 72px;
  --feed-v2-workspace-h: calc(100dvh - var(--dc-header-h) - var(--dc-bottom-chrome-h) - var(--dc-safe-top, env(safe-area-inset-top, 0px)) - env(safe-area-inset-bottom, 0px));
}

/* Feed V2: shell main uses workspace chrome, not generic bottom reserve */
body.feed-v2-surface.feed-publications-open .dc-shell-top-guard{
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  flex: 0 0 0 !important;
}

body.feed-v2-surface.feed-publications-open .dc-shell-main,
body.feed-v2-surface.dc-shell-open.user-mode:not(.auth-mode) .dc-shell-main{
  padding-bottom: 0 !important;
}

/* S4 — cancel legacy dc-bottom-nav body reserve on all public V2 breakpoints */
body.feed-v2-surface.public-feed-open{
  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 pinned bar (rounded glass card + vertical stripe stack) */
body.feed-v2-surface{
  --feed-v2-pinned-inset-x: 0px;
  --feed-v2-pinned-radius: 16px;
  --feed-v2-pinned-gap-below: 0px;
}

body.feed-v2-surface .feed-v2-pinned-bar{
  --feed-v2-pinned-h: 44px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 6px var(--feed-v4-column-gutter, 14px) 0;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

body.feed-v2-surface .feed-v2-pinned-bar__main{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--feed-v2-pinned-h);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 138, 0, 0.22);
  border-radius: var(--feed-v2-pinned-radius);
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.14) 0%, rgba(255, 138, 0, 0.04) 28%, rgba(14, 20, 32, 0.78) 58%, rgba(10, 16, 26, 0.74) 100%);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 28px rgba(255, 138, 0, 0.1);
  color: rgba(236, 244, 255, 0.92);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  isolation: isolate;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

body.feed-v2-surface .feed-v2-pinned-bar__main:hover,
body.feed-v2-surface .feed-v2-pinned-bar__main:focus-visible,
body.feed-v2-surface .feed-v2-pinned-bar__main.is-active{
  border-color: rgba(255, 138, 0, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.18) 0%, rgba(255, 138, 0, 0.06) 28%, rgba(16, 22, 34, 0.82) 58%, rgba(12, 18, 28, 0.78) 100%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 36px rgba(255, 138, 0, 0.14);
  outline: none;
  transform: translateY(-1px);
}

body.feed-v2-surface .feed-v2-pinned-bar__rails{
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  width: 3px;
  min-width: 3px;
  height: 28px;
}

body.feed-v2-surface .feed-v2-pinned-bar__rails--single,
body.feed-v2-surface .feed-v2-pinned-bar__rails--column{
  flex-direction: column;
}

body.feed-v2-surface .feed-v2-pinned-bar__rail{
  flex: 1 1 0;
  width: 3px;
  min-height: 0;
  height: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 176, 88, 0.95), rgba(255, 106, 0, 0.72));
  box-shadow: 0 0 8px rgba(255, 138, 0, 0.2);
}

body.feed-v2-surface .feed-v2-pinned-bar__rails--single .feed-v2-pinned-bar__rail{
  flex: 1 1 auto;
  height: 28px;
  box-shadow: 0 0 12px rgba(255, 138, 0, 0.22);
}

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

body.feed-v2-surface .feed-v2-pinned-bar__thumb{
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}

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__thumb--voice{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: #000;
  color: rgba(255, 255, 255, 0.88);
}

body.feed-v2-surface .feed-v2-pinned-bar__voice-icon{
  display: block;
  width: 100%;
  height: 100%;
}

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

body.feed-v2-surface .feed-v2-pinned-bar__title{
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.15;
  color: rgba(255, 176, 88, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.feed-v2-surface .feed-v2-pinned-bar__text{
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.feed-v2-surface .feed-v2-pinned-bar__pin{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 2px;
  color: rgba(255, 176, 88, 0.88);
  opacity: 1;
}

body.feed-v2-surface .feed-v2-pinned-bar__pin-svg{
  display: block;
  width: 22px;
  height: 22px;
}

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

body.feed-v2-surface .feed-v2-pinned-bar__dot{
  display: block;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.2s ease;
}

body.feed-v2-surface .feed-v2-pinned-bar__dot.is-active{
  background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 1024px) {
  body.feed-v2-surface .feed-v2-pinned-bar{
    --feed-v2-pinned-h: 46px;
    padding-bottom: 0;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__main{
    padding: 7px 12px;
  }

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

@media (max-width: 360px) {
  body.feed-v2-surface .feed-v2-pinned-bar__media,
  body.feed-v2-surface .feed-v2-pinned-bar__thumb{
    width: 28px;
    height: 28px;
  }

  body.feed-v2-surface .feed-v2-pinned-bar__rails{
    height: 26px;
  }
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post.feed-v2-post-highlight{
  position: relative;
  z-index: 1;
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post.feed-v2-post-highlight > .tg-message-bubble{
  outline: none;
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post.feed-v2-post-highlight::before{
  content: "";
  position: absolute;
  inset: -5px -7px;
  border: 2px solid rgba(255, 140, 0, 0.78);
  border-radius: calc(var(--feed-v4-card-radius, 18px) + 6px);
  pointer-events: none;
  z-index: 4;
  box-sizing: border-box;
  animation: feed-v4-pinned-highlight-ring 2s ease forwards;
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post.feed-v2-post-highlight.feed-post--video-circle::before,
body.feed-v2-surface .feed-v2-pane-feed .feed-post.feed-v2-post-highlight.feed-post--voice::before{
  content: none;
  display: none;
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post--video-circle .feed-video-circle-stage.feed-v2-post-highlight,
body.feed-v2-surface .feed-v2-pane-feed .feed-post.tg-channel-post-circle .feed-video-circle-stage.feed-v2-post-highlight{
  outline: 2px solid rgba(255, 140, 0, 0.82);
  outline-offset: 3px;
  border-radius: 50%;
  animation: feed-v4-pinned-highlight-outline 2s ease forwards;
}

body.feed-v2-surface .feed-v2-pane-feed .feed-post--voice > .tg-message-bubble.feed-v2-post-highlight,
body.feed-v2-surface .feed-v2-pane-feed .feed-post.tg-channel-post-voice > .tg-message-bubble.feed-v2-post-highlight{
  outline: 2px solid rgba(255, 140, 0, 0.82);
  outline-offset: 3px;
  border-radius: calc(var(--feed-v4-card-radius, 18px) + 2px);
  animation: feed-v4-pinned-highlight-outline 2s ease forwards;
}

@keyframes feed-v4-pinned-highlight-outline{
  0%{
    outline-color: rgba(255, 140, 0, 0.82);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.12), 0 0 22px rgba(255, 138, 0, 0.16);
  }
  65%{
    outline-color: rgba(255, 140, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.06), 0 0 12px rgba(255, 138, 0, 0.08);
  }
  100%{
    outline-color: transparent;
    box-shadow: none;
  }
}

@keyframes feed-v4-pinned-highlight-ring{
  0%{
    opacity: 1;
    border-color: rgba(255, 140, 0, 0.82);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.12), 0 0 22px rgba(255, 138, 0, 0.16);
  }
  65%{
    opacity: 0.9;
    border-color: rgba(255, 140, 0, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.06), 0 0 12px rgba(255, 138, 0, 0.08);
  }
  100%{
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
  }
}

.feed-v2-pane-chat{
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.feed-v2-pane-chat > .feed-v2-chat-panel{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* 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 */
/* Cancel style.css header:not(.dc-app-header) on in-panel chat head */
body.feed-v2-surface .feed-v2-pane-chat header.feed-v2-chat-head,
body.feed-v2-surface .feed-v2-pane-chat .feed-v2-chat-head{
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 8px 12px 6px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(90, 180, 255, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-height: 0 !important;
}

.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: stretch;
  padding: 8px 12px 6px;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid rgba(90, 180, 255, 0.12);
}

.feed-v2-chat-head-main{
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-v2-chat-head-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

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

.feed-v2-chat-online{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  max-width: 55%;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: #fff;
  background: rgba(8, 24, 14, 0.82);
  border: 1px solid rgba(74, 222, 128, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.feed-v2-chat-online [data-community-online-label]{
  color: #fff;
  font-weight: 400;
  text-shadow: none;
}

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

.feed-v2-chat-online-dot{
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dff84;
  box-shadow: 0 0 0 2px rgba(61, 255, 132, 0.38);
  filter: drop-shadow(0 0 2px rgba(61, 255, 132, 0.95));
  animation: feed-v2-chat-online-pulse 2.2s ease-in-out infinite;
  isolation: isolate;
}

@keyframes feed-v2-chat-online-pulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.92; transform: scale(0.96); }
}

.feed-v2-chat-guest-hint{
  display: none !important;
}

.feed-v2-chat-typing{
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.25;
  color: rgba(255, 179, 71, 0.9);
  font-style: italic;
}

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

.feed-v2-chat-pinned{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(90, 180, 255, 0.1);
  background: rgba(90, 180, 255, 0.06);
  cursor: pointer;
}

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

.feed-v2-chat-pinned-inner{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(244, 246, 251, 0.78);
}

.feed-v2-chat-pinned-inner b{
  display: block;
  color: #7ec8ff;
  font-size: 11px;
}

.feed-v2-chat-pinned-inner span{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.feed-v2-chat-thread-wrap{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feed-v2-chat-thread-wrap > .feed-v2-chat-thread{
  flex: 1 1 auto;
  min-height: 0;
}

.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: stretch;
  justify-content: flex-start;
  gap: 1px;
  padding: 0 10px var(--feed-v2-chat-thread-pad-bottom, 6px);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 180, 255, 0.38) rgba(5, 10, 16, 0.42);
  box-sizing: border-box;
}

.feed-v2-chat-thread > .feed-v2-chat-date-sep:first-child{
  margin-top: 4px;
}

.feed-v2-chat-thread[data-community-thread]{
  justify-content: flex-start;
  gap: 2px;
}

.feed-v2-chat-loading{
  margin: 24px auto;
  font-size: 14px;
  color: rgba(244, 246, 251, 0.45);
  text-align: center;
}

/* Composer omitted server-side for guests (data-can-post="0"); no dock, no API load. */

.feed-v2-chat-guest-placeholder{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px 0;
  pointer-events: none;
  user-select: none;
}

.feed-v2-chat-guest-placeholder > span{
  display: block;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(34, 44, 58, 0.9), rgba(24, 32, 44, 0.75));
}

.feed-v2-chat-guest-placeholder > span:nth-child(2){
  width: 72%;
  margin-left: 12%;
}

.feed-v2-chat-guest-placeholder > span:nth-child(3){
  width: 84%;
}

.feed-v2-chat-guest-placeholder > span:nth-child(4){
  width: 58%;
  margin-left: 24%;
}

.feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-head,
.feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-pinned,
.feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-thread-wrap{
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}

.feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-thread-wrap{
  position: relative;
}

.feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-thread-wrap::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.feed-v2-chat-guest-lock{
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  box-sizing: border-box;
  pointer-events: auto;
}

body.feed-v2-desktop-active .feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-guest-lock{
  display: flex;
}

body.feed-v2-surface.feed-v2-chat-active:not(.feed-v2-desktop-active) .feed-v2-chat-panel[data-can-post="0"] .feed-v2-chat-guest-lock{
  display: none;
}

.feed-v2-chat-panel[data-can-post="0"]{
  position: relative;
}

.feed-v2-chat-guest-lock__card{
  width: min(100%, 360px);
  padding: 16px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 22, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.feed-v2-chat-guest-lock__eyebrow{
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff8a00;
  font-weight: 400;
}

.feed-v2-chat-guest-lock__title{
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
  color: #fff;
  font-weight: 400;
}

.feed-v2-chat-guest-lock__copy{
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  font-weight: 400;
}

.feed-v2-chat-guest-lock__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feed-v2-chat-composer[hidden],
[data-community-composer][hidden] {
  display: none !important;
}

.feed-v2-chat-msg{
  display: flex;
  align-items: flex-end;
  gap: 4px;
  max-width: 100%;
  margin-top: 0;
}

.feed-v2-chat-msg.is-group-single,
.feed-v2-chat-msg.is-group-start{
  margin-top: 6px;
}

.feed-v2-chat-msg:first-child{
  margin-top: 0 !important;
}

.feed-v2-chat-msg.is-mine{
  flex-direction: row-reverse;
}

.feed-v2-chat-msg.is-grouped:not(.is-group-start) .feed-v2-chat-avatar{
  visibility: hidden;
}

.feed-v2-chat-msg.is-grouped:not(.is-group-start) .feed-v2-chat-author{
  display: none;
}

.feed-v2-chat-avatar{
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #4a5d78;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

.feed-v2-chat-bubble{
  position: relative;
  max-width: min(88%, 380px);
  padding: 4px 7px 3px;
  border-radius: 10px 10px 10px 3px;
  background: #1d2733;
  border: 0;
  box-shadow: none;
}

.feed-v2-chat-msg.is-other.is-group-start .feed-v2-chat-bubble,
.feed-v2-chat-msg.is-other.is-group-single .feed-v2-chat-bubble{
  border-top-left-radius: 10px;
  border-bottom-left-radius: 3px;
}

.feed-v2-chat-msg.is-other.is-group-mid .feed-v2-chat-bubble,
.feed-v2-chat-msg.is-other.is-group-end .feed-v2-chat-bubble{
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.feed-v2-chat-msg.is-other.is-group-end .feed-v2-chat-bubble,
.feed-v2-chat-msg.is-other.is-group-single .feed-v2-chat-bubble{
  border-bottom-left-radius: 10px;
}

.feed-v2-chat-msg.is-other.is-group-end .feed-v2-chat-bubble::before,
.feed-v2-chat-msg.is-other.is-group-single .feed-v2-chat-bubble::before{
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid #1d2733;
}

.feed-v2-chat-msg.is-mine .feed-v2-chat-bubble{
  background: #2b5278;
  border-radius: 10px 10px 3px 10px;
}

.feed-v2-chat-msg.is-mine.is-group-start .feed-v2-chat-bubble,
.feed-v2-chat-msg.is-mine.is-group-single .feed-v2-chat-bubble{
  border-top-right-radius: 10px;
  border-bottom-right-radius: 3px;
}

.feed-v2-chat-msg.is-mine.is-group-mid .feed-v2-chat-bubble,
.feed-v2-chat-msg.is-mine.is-group-end .feed-v2-chat-bubble{
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.feed-v2-chat-msg.is-mine.is-group-end .feed-v2-chat-bubble,
.feed-v2-chat-msg.is-mine.is-group-single .feed-v2-chat-bubble{
  border-bottom-right-radius: 10px;
}

.feed-v2-chat-msg.is-mine.is-group-end .feed-v2-chat-bubble::after,
.feed-v2-chat-msg.is-mine.is-group-single .feed-v2-chat-bubble::after{
  content: "";
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid #2b5278;
}

.feed-v2-chat-msg.is-pending .feed-v2-chat-bubble{
  opacity: 0.72;
}

.feed-v2-chat-msg.is-pending .feed-v2-chat-time::after{
  content: " · …";
  font-size: 10px;
}

.feed-v2-chat-author{
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 1px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  cursor: pointer;
}

.feed-v2-chat-content{
  display: block;
  min-width: 40px;
  line-height: 1.3;
}

.feed-v2-chat-text,
.feed-v2-chat-deleted{
  font-size: 13px;
  line-height: 1.28;
  color: #f0f3f7;
  word-break: break-word;
}

.feed-v2-chat-deleted{
  font-size: 12px;
  font-style: italic;
  color: rgba(240, 243, 247, 0.45);
}

.feed-v2-chat-meta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: 1px;
  min-height: 14px;
}

.feed-v2-chat-meta--photo{
  padding: 2px 5px 3px;
}

.feed-v2-chat-time{
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.feed-v2-chat-reply{
  margin: 0 0 3px;
  padding: 2px 5px 2px 4px;
  border-left: 2px solid #6ab3f2;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  line-height: 1.2;
  color: rgba(240, 243, 247, 0.72);
  max-width: 100%;
  cursor: pointer;
}

.feed-v2-chat-reply b{
  display: block;
  color: #6ab3f2;
  margin: 0 0 1px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.feed-v2-chat-reply span{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.feed-v2-chat-msg.is-mine .feed-v2-chat-reply{
  border-left-color: #8ec5ff;
  background: rgba(0, 0, 0, 0.14);
}

.feed-v2-chat-msg.is-mine .feed-v2-chat-reply b{
  color: #8ec5ff;
}

.feed-v2-chat-reply-bar[hidden]{
  display: none !important;
}

.feed-v2-chat-reply-bar{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(90, 180, 255, 0.1);
  border: 1px solid rgba(90, 180, 255, 0.18);
  font-size: 12px;
  color: rgba(244, 246, 251, 0.8);
}

.feed-v2-chat-reply-bar button{
  border: 0;
  background: transparent;
  color: rgba(244, 246, 251, 0.65);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.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-empty{
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(244, 246, 251, 0.55);
}

.feed-v2-chat-date-sep{
  align-self: center;
  margin: 8px 0 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 246, 251, 0.55);
  background: rgba(90, 180, 255, 0.08);
  border: 1px solid rgba(90, 180, 255, 0.12);
}

.feed-v2-chat-avatar-img{
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
}

.feed-v2-chat-avatar-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-v2-chat-msg.is-highlight .feed-v2-chat-bubble{
  box-shadow: 0 0 0 2px rgba(255, 179, 71, 0.55);
}

.feed-v2-chat-edited{
  margin-left: 4px;
  font-size: 9px;
  opacity: 0.7;
}

.feed-v2-chat-text .community-link{
  color: #7ec8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feed-v2-chat-text .community-mention{
  color: #ffb347;
  font-weight: 600;
}

.feed-v2-chat-col,
.feed-v2-chat-stack{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: min(88%, 420px);
  gap: 0;
}

.feed-v2-chat-msg.is-mine .feed-v2-chat-col,
.feed-v2-chat-msg.is-mine .feed-v2-chat-stack{
  align-items: flex-end;
}

.feed-v2-chat-col .feed-v2-chat-bubble,
.feed-v2-chat-stack .feed-v2-chat-bubble{
  max-width: 100%;
  width: fit-content;
}

.feed-v2-chat-bubble--photo{
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.feed-v2-chat-bubble--photo .feed-v2-chat-meta--photo{
  background: #1d2733;
}

.feed-v2-chat-msg.is-mine .feed-v2-chat-bubble--photo .feed-v2-chat-meta--photo{
  background: #2b5278;
}

.feed-v2-chat-media-in{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  line-height: 0;
}

.feed-v2-chat-bubble--photo .feed-v2-chat-media-in{
  border-radius: 10px 10px 0 0;
}

.feed-v2-chat-bubble:not(.feed-v2-chat-bubble--photo) .feed-v2-chat-media-in{
  margin: 0 -2px 4px;
  border-radius: 8px;
}

.feed-v2-chat-media{
  display: block;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.feed-v2-chat-media img{
  display: block;
  width: 100%;
  max-width: min(220px, 68vw);
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: inherit;
}

.feed-v2-chat-media-cap{
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
}

.feed-v2-chat-media-cap .feed-v2-chat-time{
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.feed-v2-chat-msg.is-media-only .feed-v2-chat-bubble{
  padding: 0;
}

.feed-v2-chat-reactions{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0 auto 0 0;
  max-width: calc(100% - 36px);
}

.feed-v2-chat-react-chip,
.feed-v2-chat-react-add{
  border: 0;
  background: rgba(90, 130, 180, 0.28);
  border-radius: 8px;
  min-height: 16px;
  height: 16px;
  padding: 0 5px;
  font-size: 9px;
  line-height: 1;
  color: #f0f3f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.feed-v2-chat-react-chip span{
  font-size: 11px;
  line-height: 1;
}

.feed-v2-chat-react-chip.is-active{
  background: rgba(106, 179, 242, 0.38);
}

.feed-v2-chat-msg.is-mine .feed-v2-chat-react-chip.is-active{
  background: rgba(142, 197, 255, 0.34);
}

.feed-v2-chat-react-chip b{
  margin-left: 0;
  font-size: 9px;
  font-weight: 600;
  opacity: 0.85;
}

.feed-v2-chat-react-add{
  width: 16px;
  min-width: 16px;
  padding: 0;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.35;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}

.feed-v2-chat-bubble:hover .feed-v2-chat-react-add,
.feed-v2-chat-bubble:focus-within .feed-v2-chat-react-add,
.feed-v2-chat-react-add:focus-visible{
  opacity: 1;
}

@media (hover: none) {
.feed-v2-chat-react-add{
    opacity: 0.65;
  }
}

.feed-v2-chat-react-picker{
  position: fixed;
  z-index: 1450;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.98);
  border: 1px solid rgba(90, 180, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  width: min(168px, calc(100vw - 16px));
}

.feed-v2-chat-react-pick{
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.feed-v2-chat-react-pick:hover,
.feed-v2-chat-react-pick:focus-visible{
  background: rgba(90, 180, 255, 0.16);
  transform: scale(1.08);
}

.feed-v2-chat-load-older{
  flex: 0 0 auto;
  margin: 6px auto 0;
  border: 0;
  background: rgba(90, 180, 255, 0.1);
  color: rgba(244, 246, 251, 0.75);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.feed-v2-chat-load-older[hidden],
.feed-v2-chat-jump[hidden]{
  display: none !important;
}

.feed-v2-chat-jump{
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 3;
  border: 1px solid rgba(90, 180, 255, 0.25);
  background: rgba(10, 16, 26, 0.92);
  color: #f4f6fb;
  border-radius: 999px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.feed-v2-chat-jump b{
  font-size: 10px;
  background: #ff8a00;
  color: #111;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
}

.feed-v2-chat-menu{
  position: fixed;
  z-index: 1400;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 18, 28, 0.98);
  border: 1px solid rgba(90, 180, 255, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.feed-v2-chat-menu button{
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: #f4f6fb;
  font-size: 13px;
  cursor: pointer;
}

.feed-v2-chat-menu button:hover{
  background: rgba(90, 180, 255, 0.12);
}

.feed-v2-toggle-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.feed-v2-toggle{
  position: relative;
}

.feed-v2-chat-composer[data-community-composer]{
  grid-template-columns: auto minmax(0, 1fr) var(--feed-v2-composer-action);
}

.feed-v2-chat-attach{
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(90, 180, 255, 0.1);
  color: rgba(244, 246, 251, 0.8);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.comment-profile-overlay-layer{
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
}

.comment-profile-overlay-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.comment-profile-overlay-stage{
  position: relative;
  width: min(100%, 420px);
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 16px;
  background: #0d121c;
  border: 1px solid rgba(90, 180, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.comment-profile-overlay-close{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #f4f6fb;
  font-size: 20px;
  cursor: pointer;
}

.comment-profile-overlay-content{
  padding: 14px;
}

.comment-profile-loading{
  padding: 24px 12px;
  text-align: center;
  color: rgba(244, 246, 251, 0.7);
}

.comment-profile-loading.is-error{
  color: #ff8a8a;
}

.feed-v2-chat-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: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: default;
  box-shadow: var(--feed-v2-composer-send-shadow);
}

.feed-v2-pane-chat .feed-panel-send-btn,
.feed-v2-chat-composer .feed-panel-send-btn{
  box-shadow: 0 2px 8px rgba(255, 138, 0, 0.2);
}

.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;
  }

/* Feed V2 site header — flex tweaks only; layout authority: dc-app-header.css */
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.feed-v2-workspace--desktop-split{
    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;
  }

  body.feed-v2-surface.feed-v2-layout-full_feed .feed-v2-workspace:not(.feed-v2-workspace--desktop-split),
  body.feed-v2-surface.feed-v2-layout-full_chat .feed-v2-workspace:not(.feed-v2-workspace--desktop-split){
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 0;
  }

  /* Prevent FOUC: stretch on mobile/tablet; desktop left column after JS adds .feed-v2-desktop-active */
body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts, body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-publication.tg-channel-post,
  body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState, body.feed-v2-surface.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState{
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
    width: 100% !important;
    max-width: var(--feed-v4-col-text-post, 460px) !important;
  }

  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts, body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts > .feed-publication.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts > #feedEmptyState, body.feed-v2-surface.public-feed-open.feed-v2-desktop-active .feed-v2-workspace--desktop-split .feed-v2-pane-feed > #feedPosts > #feedEmptyState{
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
    width: 100% !important;
    max-width: min(100%, var(--feed-v4-col-text, 520px)) !important;
  }

  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active:not(.feed-publications-shell) .feed-v2-workspace:not(.feed-v2-workspace--desktop-split) .feed-v2-pane-feed > #feedPosts,
  body.feed-v2-surface.feed-publications-open.feed-v2-desktop-active:not(.feed-publications-shell) .feed-v2-workspace:not(.feed-v2-workspace--desktop-split) .feed-v2-pane-feed > #feedPosts {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active:not(.feed-publications-shell) .feed-v2-workspace:not(.feed-v2-workspace--desktop-split) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  body.feed-v2-surface.public-feed-open.feed-v2-desktop-active:not(.feed-publications-shell) .feed-v2-workspace:not(.feed-v2-workspace--desktop-split) .feed-v2-pane-feed > #feedPosts > .feed-publication.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  body.feed-v2-surface.feed-publications-open.feed-v2-desktop-active:not(.feed-publications-shell) .feed-v2-workspace:not(.feed-v2-workspace--desktop-split) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  body.feed-v2-surface.feed-publications-open.feed-v2-desktop-active:not(.feed-publications-shell) .feed-v2-workspace:not(.feed-v2-workspace--desktop-split) .feed-v2-pane-feed > #feedPosts > .feed-publication.tg-channel-post {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    width: 100% !important;
    max-width: min(100%, var(--feed-v4-col-text, 520px)) !important;
  }

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

body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .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;
  }

  /* Fixed site header is outside .wrap (dc-shell-open); mirror mobile header reserve */
body.feed-v2-desktop-active.feed-v2-surface.public-feed-open.dc-shell-open:not(.comments-mode) .wrap{
    padding-top: var(--admin-header-height, calc(76px + var(--dc-safe-top, env(safe-area-inset-top, 0px)))) !important;
  }

body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .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.public-feed-open .wrap > .feed-v2-page,
  body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .wrap > .dc-shell-main > .feed-v2-page,
body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .dc-shell-main > .feed-v2-page{
    order: 1 !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* Public desktop — shell frame (feed lives in .dc-shell-main, not direct .wrap child) */
body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .wrap > .dc-shell-main{
    order: 1 !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .dc-shell-main > .dc-shell-top-guard{
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    flex: 0 0 0 !important;
  }

body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .feed-v2-workspace.feed-v2-workspace--desktop-split{
    margin-top: 0 !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    gap: 2px !important;
    padding: 0 !important;
    --feed-v2-gap: 2px;
    --feed-v2-desktop-edge-gap: 0;
    align-content: stretch !important;
    align-items: stretch !important;
  }

  body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .feed-v2-pane-feed,
body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .feed-v2-pane-chat{
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    align-self: stretch !important;
  }

/* Public feed desktop bottom nav (dock/tabs/legal): authority in dc-bottom-nav.css */

  /* Center separator — desktop split only */
.feed-v2-workspace.feed-v2-workspace--desktop-split::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;
  }

body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .feed-v2-pane-feed{
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

.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-v2-workspace[data-active-pane="feed"] .feed-v2-pane-chat{
    display: flex !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 > #feedPosts.feed-v2-scroll,
  body.feed-v2-desktop-active.admin-mode.site-feed-admin-page .feed-v2-pane-feed > #feedPosts,
body.feed-v2-desktop-active.user-mode.public-feed-open .feed-v2-pane-feed > #feedPosts, 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, 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;
  }

  /* Feed column — channel rhythm: left-aligned readable width */
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  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 > #feedPosts > .feed-publication.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  body.feed-v2-desktop-active.feed-v2-surface .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:not(.tg-channel-post-voice):not(.feed-post--video-circle):not(.tg-channel-post-circle),
  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{
    width: 100% !important;
    max-width: min(100%, var(--feed-v4-col-text, 520px)) !important;
    min-width: 0 !important;
    margin: 0 !important;
    margin-inline: 0 !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 .feed-post:not(.tg-channel-post-media) .tg-channel-image-wrap,
  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .feed-post:not(.tg-channel-post-media) .tg-channel-gallery,
  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .feed-publication:not(.tg-channel-post-media) .tg-channel-image-wrap,
  body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .feed-post:not(.tg-channel-post-media) .feed-img,
body.user-mode.public-feed-open.feed-v2-surface .feed-v2-pane-feed .feed-post:not(.tg-channel-post-media) 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;
  }

  /* Admin feed has NO bottom dock, so the public-feed dock reserve (~90px) just
     left a gap below the publication composer, floating the input higher than the
     viewport bottom. Drop the reserve so the composer sits at the bottom. */
body.feed-v2-desktop-active.site-feed-admin-page.public-feed-open .wrap{
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 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: 0;
    height: auto;
    padding: 8px 14px 6px !important;
    margin: 0 !important;
    gap: 0;
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid rgba(90, 180, 255, 0.12) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

.feed-v2-pane-chat .feed-v2-chat-thread{
    padding: 0 12px var(--feed-v2-chat-thread-pad-bottom, 8px);
    background: transparent;
  }

/* Desktop split: workspace ends above fixed bottom nav — no pane padding gap */
body.feed-v2-desktop-active.user-mode:not(.admin-mode) .feed-v2-workspace.feed-v2-workspace--desktop-split{
    height: calc(100% - var(--feed-v2-chat-chrome-bottom, var(--dc-bottom-nav-shell-h, var(--dc-bottom-nav-measured, 72px)))) !important;
    max-height: calc(100% - var(--feed-v2-chat-chrome-bottom, var(--dc-bottom-nav-shell-h, var(--dc-bottom-nav-measured, 72px)))) !important;
  }

body.feed-v2-desktop-active.user-mode:not(.admin-mode) .feed-v2-pane-chat{
    box-sizing: border-box;
    padding-bottom: 0;
  }

body.feed-v2-desktop-active.user-mode:not(.admin-mode) .feed-v2-pane-chat .feed-v2-chat-panel{
    height: 100%;
    max-height: 100%;
  }

/* Desktop split: composer lives inside chat pane — no extra bottom-nav reserve in thread */
body.feed-v2-desktop-active.user-mode:not(.admin-mode) .feed-v2-pane-chat .feed-v2-chat-thread{
    padding-bottom: var(--feed-v2-chat-thread-pad-bottom, 8px) !important;
    scroll-padding-bottom: var(--feed-v2-chat-thread-pad-bottom, 8px) !important;
  }

  .feed-v2-pane-chat .feed-v2-chat-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 nav.user-bottom-nav.dc-bottom-nav:not(.dc-bottom-nav--composer-slot){
    z-index: var(--dc-bottom-nav-z-index, 99999);
  }

  /* ------------------------------------------------------------------
   * Desktop admin publication composer — parity with feed-shell.css
   * ------------------------------------------------------------------ */
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer:not(.dc-composer--admin-feed),
body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > form.mobile-admin-composer:not(.dc-composer--admin-feed){
    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;
  }

  /* Desktop admin composer: allow emoji panel to pop above the row without clipping */
  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot{
    overflow: visible !important;
  }

  body.feed-v2-desktop-active.site-feed-admin-page .feed-v2-composer-slot > #mobileAdminComposer.emoji-open{
    overflow: visible !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.public-feed-open .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.public-feed-open .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 > #feedPosts > .feed-post.tg-channel-post{
    width: var(--feed-v2-column-max, 100%) !important;
    max-width: 100% !important;
  }

  /* Public desktop feed — side breathing room */
  body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .feed-v2-pane-feed > #feedPosts,
body.feed-v2-desktop-active.feed-v2-surface.public-feed-open .feed-v2-pane-feed > .feed-v2-scroll{
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

}

/* ==========================================================================
   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:not(.feed-v2-desktop-active){
    --feed-v2-mobile-gap: 6px;
    --feed-v2-mobile-nav-h: var(--dc-bottom-nav-measured, var(--dc-bottom-nav-shell-h, 84px));
    --feed-v2-mobile-dock-h: var(--dc-bottom-nav-measured, var(--dc-bottom-nav-shell-h, 84px));
    --feed-v2-mobile-toggle-h: var(--feed-v2-fab-size, 56px);
    --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: var(--admin-header-height, calc(76px + 6px + var(--dc-safe-top, env(safe-area-inset-top, 0px))));
    --feed-v2-mobile-scroll-chrome: calc(var(--feed-v2-fab-size, 56px) + var(--feed-v2-fab-gap, 8px) + 12px);
    --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: transparent;
  }

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

body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active){
    --feed-v2-mobile-dock-h: var(--feed-v2-composer-min-h, 52px);
  }

  /* 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.public-feed-open: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.feed-v2-desktop-active.public-feed-open.dc-shell-open:not(.comments-mode) .wrap{
    padding-top: var(--admin-header-height, calc(76px + var(--dc-safe-top, env(safe-area-inset-top, 0px)))) !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active){
    --feed-v2-frame-max: 100%;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active) .wrap{
    max-width: 100%;
  }

/* Feed V2 site header — flex tweaks only; layout authority: dc-app-header.css */
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 fills the viewport (behind the docked nav); the inner feed
     scroll reserves the nav via padding-bottom (--dc-shell-nav-reserve), same as the
     home shell. Capping the page height here too double-counted the nav + safe-area
     reserve and left a black strip / large offset above the nav in PWA. */
body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-page{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  /* Guest/user chat: page ends above bottom nav (dock is in-flow inside panel) */
body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-page{
    flex: 0 0 auto;
    height: calc(
      100dvh
      - var(--feed-v2-mobile-header-reserve)
      - var(--feed-v2-nav-h-stable, var(--feed-v2-mobile-nav-h, 72px))
      - var(--feed-v2-mobile-gap)
      - env(safe-area-inset-bottom, 0px)
    );
    max-height: calc(
      100dvh
      - var(--feed-v2-mobile-header-reserve)
      - var(--feed-v2-nav-h-stable, var(--feed-v2-mobile-nav-h, 72px))
      - var(--feed-v2-mobile-gap)
      - env(safe-area-inset-bottom, 0px)
    );
  }

  /* Admin feed: scroll inside #feedPosts like user feed (no double height cap) */
  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-page{
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  /* Admin feed/chat with fixed composer: page ends above dock */
  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active).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 > #feedPosts{
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    gap: 10px;
    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,
body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > .feed-v2-pinned-bar{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
    border: none;
    box-shadow: none;
  }

  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,
body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > .feed-v2-pinned-bar .feed-v2-pinned-bar__main{
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Public mobile feed — full column width (card sizing in feed-v2-responsive.css) */
body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active),
body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active){
    --feed-v2-public-side-pad: 0;
  }

body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-workspace,
body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-workspace{
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  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.admin-mode.site-feed-admin-page: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 > .feed-publication.tg-channel-post,
  html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-publication.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.admin-mode.site-feed-admin-page: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, html body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState,
html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState, html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState{
    margin-left: 0 !important;
    margin-right: 0 !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.admin-mode.site-feed-admin-page: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.admin-mode.site-feed-admin-page: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-publication.tg-channel-post-media,
  html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-publication.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-publication.tg-channel-post-publication-text,
  html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-publication.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, 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,
html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post-text, html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post-text{
    width: 100% !important;
    max-width: min(100%, var(--feed-v4-col-text-post, 460px)) !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), 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),
html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:has(.tg-channel-title), html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post:has(.tg-channel-title){
    width: 100% !important;
    max-width: min(100%, var(--feed-v4-col-text-post, 460px)) !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, 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,
html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts .feed-post.tg-channel-post > .tg-feed-reaction-row, html body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts .feed-post.tg-channel-post > .tg-feed-reaction-row{
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !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 > #feedPosts{
    flex: 1 1 auto;
    min-height: 0;
    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 > #feedPosts{
    padding-bottom: calc(var(--feed-v2-fab-anchor-h, var(--feed-v2-mobile-scroll-chrome)) + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(var(--feed-v2-fab-anchor-h, 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, body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-pane-feed > #feedPosts{
    /* Reserve exactly the nav (height + its own safe-area padding) — same as the home
       shell. The old FAB-chrome + separate env(safe-area) double-counted the inset and
       left a dark navy strip above the nav on scroll in iOS PWA. */
    padding-bottom: max(var(--dc-shell-nav-reserve, 84px), var(--feed-v2-mobile-scroll-chrome, 76px));
    scroll-padding-bottom: max(var(--dc-shell-nav-reserve, 84px), var(--feed-v2-mobile-scroll-chrome, 76px));
  }

  /* Mobile FAB — fixed above bottom nav / admin dock */
  body.feed-v2-surface:not(.feed-v2-desktop-active){
    --feed-v2-fab-size: 48px;
    --feed-v2-fab-gap: 8px;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-workspace > .feed-v2-toggle.feed-v2-fab{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(
      var(--feed-v2-nav-h-stable, var(--feed-v2-mobile-nav-h, 72px))
      + var(--feed-v2-mobile-toggle-gap, 8px)
      + env(safe-area-inset-bottom, 0px)
      + var(--feed-v2-fab-user-offset-y, 0px)
    );
    z-index: var(--feed-v2-mobile-toggle-z, 99995);
    width: auto;
    min-width: var(--feed-v2-mobile-toggle-h, 48px);
    height: var(--feed-v2-mobile-toggle-h, 48px);
    min-height: var(--feed-v2-mobile-toggle-h, 48px);
    padding: 0 18px;
    margin: 0;
    border: 1px solid rgba(255, 140, 0, 0.42);
    border-radius: 999px;
    background: rgba(18, 22, 30, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 138, 0, 0.08);
    color: #ffd391;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    transition: bottom 0.18s ease, box-shadow 0.18s ease, opacity 0.16s ease;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active) .feed-v2-workspace > .feed-v2-toggle.feed-v2-fab.feed-v2-fab--dragging{
    transition: none;
    opacity: 0.92;
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.45),
      0 0 0 2px rgba(255, 138, 0, 0.2);
  }

  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-workspace > .feed-v2-toggle.feed-v2-fab{
    bottom: calc(
      var(--feed-v2-mobile-dock-h, 52px)
      + var(--feed-v2-mobile-toggle-gap, 8px)
      + env(safe-area-inset-bottom, 0px)
      + var(--feed-v2-fab-user-offset-y, 0px)
    );
  }

  body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-workspace > .feed-v2-toggle.feed-v2-fab{
    bottom: calc(
      var(--feed-v2-chat-dock-h, var(--feed-v2-mobile-dock-h, 52px))
      + var(--feed-v2-mobile-toggle-gap, 8px)
      + env(safe-area-inset-bottom, 0px)
      + var(--feed-v2-fab-user-offset-y, 0px)
    );
  }

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: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    z-index: var(--feed-v2-mobile-dock-z);
    flex: none;
    min-height: var(--feed-v2-mobile-dock-h);
    height: auto;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  @media (max-width: 767px) {
body.feed-v2-surface.admin-mode.site-feed-admin-page:not(.feed-v2-desktop-active):not(.feed-v2-chat-active) .feed-v2-composer-slot{
      left: 0 !important;
      right: 0 !important;
      transform: none !important;
      width: 100% !important;
      max-width: 100% !important;
    }
  }

  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) .feed-v2-composer-slot > #mobileAdminComposer:not(.dc-composer--admin-feed),
body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) .feed-v2-composer-slot > form.mobile-admin-composer:not(.dc-composer--admin-feed){
    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:not(.dc-composer--admin-feed) .composer-tip,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:not(.dc-composer--admin-feed) .composer-emoji,
  body.feed-v2-surface.site-feed-admin-page.admin-mode:not(.feed-v2-desktop-active) #mobileAdminComposer:not(.dc-composer--admin-feed) .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: 0;
    padding: 8px 12px 6px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(90, 180, 255, 0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* 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 10px var(--feed-v2-chat-thread-pad-bottom, 6px);
    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: var(--feed-v2-chat-thread-pad-bottom, 6px);
    scroll-padding-bottom: var(--feed-v2-chat-thread-pad-bottom, 6px);
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-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(.admin-mode):not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-composer{
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto;
    margin: 0;
    min-height: var(--feed-v2-mobile-dock-h);
    height: auto;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(90, 180, 255, 0.14);
  }

  body.feed-v2-surface.user-mode:not(.feed-v2-desktop-active).feed-v2-chat-active .feed-v2-pane-chat .feed-v2-chat-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{
    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);
  }

  /* PWA / mobile keyboard — visualViewport-driven layout (composer above keyboard) */
body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open{
    overflow: hidden !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .wrap{
    overflow: hidden !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-page{
    position: fixed !important;
    left: 0;
    right: 0;
    top: var(--feed-v2-vv-top, 0px) !important;
    width: 100% !important;
    height: var(--feed-v2-vv-height, 100dvh) !important;
    max-height: var(--feed-v2-vv-height, 100dvh) !important;
    margin: 0 !important;
    flex: none !important;
    z-index: 2;
    overflow: hidden !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-workspace{
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat .feed-v2-chat-thread-wrap{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat .feed-v2-chat-thread{
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: calc(var(--feed-v2-chat-composer-h, 52px) + 8px) !important;
    scroll-padding-bottom: calc(var(--feed-v2-chat-composer-h, 52px) + 8px) !important;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat .feed-v2-chat-composer{
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--feed-v2-keyboard-offset, 0px) + var(--feed-v2-nav-h-stable, 72px) + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: var(--feed-v2-chat-composer-h, 52px) !important;
    max-height: min(42vh, 180px) !important;
    transition: bottom 0.16s ease;
    z-index: calc(var(--feed-v2-mobile-dock-z, 99990) + 2) !important;
  }

  body.feed-v2-surface.admin-mode:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat .feed-v2-chat-composer{
    bottom: calc(var(--feed-v2-keyboard-offset, 0px) + env(safe-area-inset-bottom, 0px)) !important;
  }

body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat .feed-panel-input{
    max-height: min(28vh, 120px);
    overflow-y: auto;
  }

  body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-toggle,
body.feed-v2-surface:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-chat-jump{
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.feed-v2-surface.feed-v2-pwa-standalone:not(.feed-v2-desktop-active).feed-v2-chat-active.feed-v2-keyboard-open .feed-v2-pane-chat .feed-v2-chat-composer{
    border-radius: 14px 14px 0 0;
  }

  /* Public feed nav z-index (dock layout/background: dc-bottom-nav.css) */
  body.feed-v2-surface nav.user-bottom-nav.dc-bottom-nav:not(.dc-bottom-nav--composer-slot),
body.feed-v2-surface.user-mode.public-feed-open:not(.feed-v2-desktop-active) .user-bottom-nav:not(.dc-bottom-nav--composer-slot){
    z-index: var(--dc-bottom-nav-z-index, 99999);
  }

.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;
  }

  @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);
    }
  }

  /* Tablet single-pane: full width (see feed-v2-responsive.css authority) */
  body.feed-v2-surface.feed-v2-tablet-active:not(.feed-v2-desktop-active){
    --feed-v2-frame-max: 100%;
    --dc-bottom-nav-max-width: 100%;
  }

  body.feed-v2-surface.feed-v2-tablet-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .feed-post.tg-channel-post,
  body.feed-v2-surface.feed-v2-tablet-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > .tg-channel-empty,
  body.feed-v2-surface.feed-v2-tablet-active:not(.feed-v2-desktop-active) .feed-v2-pane-feed > #feedPosts > #feedEmptyState{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box;
  }

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

/* ==========================================================================
   S4.1 — phone landscape (tier class feed-v2-phone-landscape-active): compact single-pane
   ========================================================================== */
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));
    --feed-v2-mobile-header-reserve: var(--admin-header-height, calc(68px + var(--dc-safe-top, env(safe-area-inset-top, 0px))));
    --feed-v2-mobile-nav-h: 40px;
    --feed-v2-mobile-dock-h: 44px;
    --feed-v2-mobile-toggle-h: 28px;
    --feed-v2-mobile-toggle-gap: 4px;
    --feed-v2-mobile-gap: 4px;
    --feed-v2-mobile-scroll-chrome: 18px;
    --feed-v2-composer-action: 30px;
    --feed-v2-composer-input-min-h: 32px;
    --feed-v2-composer-gap: 6px;
    --feed-v2-composer-min-h: 40px;
    --feed-v2-column-max: min(100%, clamp(300px, 55vw, 480px));
    --feed-v4-col-text-post: clamp(300px, 55vw, 480px);
    --dc-feed-circle-size: clamp(72px, min(28vh, 22vw), 100px);
    --feed-v2-pinned-h: 28px;
  }

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);
  }

  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 > #feedPosts{
    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 > #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{
    width: 100% !important;
    max-width: var(--feed-v4-col-text-post, clamp(300px, 55vw, 480px)) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !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;
    left: auto;
    transform: none;
    bottom: calc(
      var(--feed-v2-nav-h-stable, var(--feed-v2-mobile-nav-h, 40px))
      + var(--feed-v2-mobile-toggle-gap, 4px)
      + env(safe-area-inset-bottom, 0px)
      + var(--feed-v2-fab-user-offset-y, 0px)
    );
    right: max(
      8px,
      calc((100vw - min(100%, calc(100vw - 16px))) / 2 + 8px)
    );
  }

  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-toggle{
    bottom: calc(
      var(--feed-v2-mobile-dock-h, 44px)
      + var(--feed-v2-mobile-toggle-gap, 4px)
      + env(safe-area-inset-bottom, 0px)
      + var(--feed-v2-fab-user-offset-y, 0px)
    );
  }

  /* Layout authority: dc-bottom-nav.css + dc-bottom-nav.js — no separate grid dock in landscape */
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{
    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{
    max-width: min(calc(100vw - 16px), calc(100% - 16px));
  }

