@media (min-width: 741px) {
  body.xn-launch-hub #hubApp.hub-layout {
    width: min(calc(100% - 40px), 1272px) !important;
    max-width: 1272px !important;
    grid-template-columns: 216px minmax(0, 1fr) 266px !important;
    gap: clamp(14px, 1.7vw, 26px) !important;
    margin-inline: auto !important;
    padding-top: 12px;
  }

  body.xn-launch-hub #hubApp .hub-main { min-width: 0; }

  #hubApp .hub-sidebar {
    height: auto !important;
    max-height: calc(100dvh - 16px);
    top: 8px;
    gap: 10px !important;
    padding: 9px 2px 14px !important;
  }

  #hubApp .hub-brand { margin: 0 0 3px; gap: 8px; padding: 4px 8px; }
  #hubApp .hub-brand-official-icon { width: 38px; height: 38px; }
  #hubApp .hub-brand-words strong { font-size: 14px; }
  #hubApp .hub-brand-words small { display: none; }

  #hubApp .hub-side-links { display: grid; gap: 2px; }
  #hubApp :is(.hub-side-links,.hub-side-social,.hub-side-bottom) button {
    min-height: 39px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    gap: 9px !important;
  }
  #hubApp :is(.hub-side-links,.hub-side-social,.hub-side-bottom) .hub-icon { width: 18px; height: 18px; }
  #hubApp .hub-side-post { display: none !important; }

  #hubApp .hub-top {
    min-height: 52px !important;
    height: 52px !important;
    padding: 4px 0 6px !important;
    margin: 0 0 7px;
    gap: 8px;
    border-bottom: 1px solid #ebe4e9;
    background: var(--bg, #faf9fb);
    box-shadow: none;
  }
  #hubApp .hub-top > strong { font-size: 19px !important; line-height: 1.15; }
  #hubApp .hub-top-actions { gap: 7px; }
  #hubApp .hub-top-actions > button:not(.hub-top-publish) { width: 38px; height: 38px; }
  #hubApp .hub-top-publish { min-height: 38px !important; padding: 5px 11px !important; font-size: 13px !important; }
  #hubApp:has(#hubCompose) .hub-top-publish { display: none !important; }

  #hubApp .hub-feed-head {
    margin: 0 0 7px !important;
    align-items: center;
  }
  #hubApp .hub-feed-head h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #hubApp .hub-feed-head a { margin-inline-start: auto; font-size: 12px; }

  #hubApp .hub-tabs {
    min-height: 42px;
    padding: 0 3px !important;
    border: 0 !important;
    border-bottom: 1px solid #ebe4e9 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #hubApp .hub-tabs button { min-height: 42px; padding: 4px !important; }

  #hubApp .hub-feed-filters { gap: 5px; margin: 8px 0 9px !important; }
  #hubApp .hub-feed-filters button { min-height: 32px; padding: 4px 9px !important; font-size: 12px !important; }
  #hubApp .hub-home-actions { display: none !important; }

  #hubApp #hubCompose {
    min-height: 0;
    padding: 13px !important;
    margin: 0 0 10px !important;
    border-radius: 14px !important;
    box-shadow: none;
  }
  #hubApp #hubCompose > .hub-avatar { width: 37px; height: 37px; }
  #hubApp #hubCompose textarea { min-height: 45px !important; font-size: 15px !important; }
  #hubApp #hubCompose .hub-compose-bottom { padding-top: 5px !important; }

  #hubApp .hub-post-social { padding: 13px !important; border-radius: 14px; }
  #hubApp .hub-trends {
    position: static;
    height: auto;
    max-height: none;
    padding: 8px 0 12px !important;
    overflow: visible;
  }
  #hubApp .hub-trends-title { margin: 0 0 10px; }
  #hubApp .hub-rail-journal { display: none !important; }
  #hubApp .hub-trend-box { padding: 12px !important; margin-bottom: 10px !important; border-radius: 13px; }
  #hubApp .hub-trend-box h2 { margin: 0 0 10px; font-size: 15px; }
  #hubApp .hub-social-row { gap: 6px; }
  #hubApp .hub-social-person { min-width: 0; }
  #hubApp .hub-social-person .hub-profile-link strong { white-space: normal; overflow-wrap: anywhere; }
}

@media (min-width: 741px) and (max-width: 1099px) {
  body.xn-launch-hub #hubApp.hub-layout {
    width: min(calc(100% - 32px), 925px) !important;
    grid-template-columns: 186px minmax(0, 1fr) !important;
  }
  #hubApp .hub-trends { display: none; }
}
