/* =========================
   Shared Header
========================= */

.mobile-drawer-toggle,
.mobile-drawer-overlay,
.mobile-nav-drawer,
.mobile-platform-nav,
.mobile-group-back {
  display: none;
}

.mobile-drawer-overlay[hidden] {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  html.soshix-feed-html,
  html:has(> body.soshix-feed-body) {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

body.soshix-feed-body {
  --soshix-feed-mobile-header-height: 58px;
  --soshix-feed-mobile-bottom-nav-height: calc(72px + env(safe-area-inset-bottom, 0px));
  --soshix-feed-mobile-bottom-space: var(--soshix-feed-mobile-bottom-nav-height);
  --soshix-feed-mobile-modal-nav-gap: 12px;
  --soshix-feed-mobile-modal-available-height: calc(100dvh - var(--soshix-feed-mobile-header-height, 58px) - var(--soshix-feed-mobile-bottom-space, 0px) - var(--soshix-feed-mobile-modal-nav-gap, 12px) - 20px);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

  body {
    padding-top: 58px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .site-header {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "primary left account";
    align-items: center;
    gap: 8px 12px;
    padding: 8px 12px 10px;
  }

  .header-left {
    grid-area: left;
    min-width: 0;
  }

  .header-logo a {
    padding: 5px 8px;
  }

  .header-logo img {
    height: 30px;
    max-width: 132px;
    object-fit: contain;
  }

  .header-search-wrap {
    flex: 1;
    min-width: 0;
  }

  .header-search {
    min-width: 0;
    width: 100%;
    padding: 7px 10px;
  }

  .header-center-nav {
    grid-area: primary;
    position: static;
    transform: none;
    justify-content: center;
    gap: 0;
    width: auto;
    overflow: visible;
    padding: 0;
  }

  .header-center-nav::-webkit-scrollbar {
    display: none;
  }

  .center-nav-link {
    flex: 1 0 auto;
    justify-content: center;
    gap: 6px;
    min-width: 68px;
    padding: 7px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  .center-nav-link i,
  .center-nav-link .center-nav-logo {
    font-size: 17px;
  }

  .center-nav-link .center-nav-logo {
    width: 28px;
    height: 28px;
  }

  .center-nav-link.vox-link .center-nav-logo {
    width: 32px;
    height: 32px;
  }

  .mobile-drawer-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }

  .mobile-drawer-toggle span {
    display: none;
  }

  .header-center-nav > a.center-nav-link {
    display: none;
  }

  .header-nav {
    grid-area: account;
    align-self: center;
    gap: 6px;
  }

  .header-nav a {
    margin-left: 0;
  }

  .header-nav .header-icon {
    margin-right: 0;
  }

  .profile-dropdown {
    top: 42px;
    right: 0;
  }

  #notifDropdown {
    top: 42px;
    right: 0;
    max-width: calc(100vw - 24px);
  }

  .echoes-panel {
    top: 108px;
    right: 8px;
    width: min(360px, calc(100vw - 16px));
    height: calc(100vh - 116px);
  }

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

  .mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(2, 6, 23, 0.62);
    z-index: 19000;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 19001;
    display: flex;
    flex-direction: column;
    width: min(320px, 86vw);
    padding: 16px;
    background: #0b1020;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .mobile-nav-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-drawer-header strong {
    color: #ffffff;
    font-size: 18px;
  }

  .mobile-drawer-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    flex: 1;
  }

  .mobile-drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    text-decoration: none;
  }

  .mobile-drawer-profile strong,
  .mobile-drawer-profile small {
    display: block;
    min-width: 0;
  }

  .mobile-drawer-profile strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
  }

  .mobile-drawer-profile small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-drawer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 0;
  }

  .mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #c7d2fe;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-drawer-link i {
    width: 22px;
    font-size: 20px;
    text-align: center;
  }

  .mobile-drawer-link[href="/feedback"] i {
    color: #818cf8;
  }

  .mobile-drawer-link[href="/support"] i {
    color: #38bdf8;
  }

  .mobile-drawer-divider {
    height: 1px;
    margin: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-drawer-link.active,
  .mobile-drawer-link:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
  }

  .mobile-platform-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 16, 32, 0.96);
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
  }

  .mobile-platform-nav-link {
    --mobile-platform-color: #22c55e;
    position: relative;
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 12px;
    color: color-mix(in srgb, var(--mobile-platform-color) 74%, #ffffff);
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    transition:
      background 0.16s ease,
      color 0.16s ease,
      transform 0.16s ease;
  }

  .mobile-platform-nav-link i {
    color: currentColor;
    font-size: 20px;
    line-height: 1;
  }

  .mobile-platform-nav-link::after {
    display: none;
  }

  .mobile-platform-nav-logo {
    width: 23px;
    height: 23px;
    object-fit: contain;
  }

  .mobile-platform-nav-link[href="/"] .mobile-platform-nav-logo {
    width: 30px;
    height: 23px;
  }

  .mobile-platform-nav-link.vox-link .mobile-platform-nav-logo {
    width: 27px;
    height: 27px;
    margin-bottom: -2px;
  }

  .mobile-platform-nav-link[href="/aura"] {
    --mobile-platform-color: #a855f7;
  }

  .mobile-platform-nav-link.vox-link {
    --mobile-platform-color: #1d9bf0;
  }

  .mobile-platform-nav-link[href="/canvas"] {
    --mobile-platform-color: #ef4444;
  }

  .mobile-platform-nav-link[href="/flux"] {
    --mobile-platform-color: #ec4899;
  }

  .mobile-platform-nav-link.active,
  .mobile-platform-nav-link:hover,
  .mobile-platform-nav-link:focus-visible {
    background:
      radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--mobile-platform-color) 28%, transparent), transparent 48%),
      color-mix(in srgb, var(--mobile-platform-color) 22%, rgba(255, 255, 255, 0.08));
    color: #ffffff;
    outline: none;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--mobile-platform-color) 58%, rgba(255, 255, 255, 0.14)),
      0 8px 18px color-mix(in srgb, var(--mobile-platform-color) 20%, transparent);
  }

  .mobile-platform-nav-link.active {
    color: color-mix(in srgb, var(--mobile-platform-color) 14%, #ffffff);
    text-shadow: 0 0 12px color-mix(in srgb, var(--mobile-platform-color) 34%, transparent);
  }

  .mobile-platform-nav-link.active i,
  .mobile-platform-nav-link.active .mobile-platform-nav-logo {
    filter: brightness(1.15) saturate(1.08) drop-shadow(0 0 8px color-mix(in srgb, var(--mobile-platform-color) 48%, transparent));
  }

  .mobile-platform-nav-link.active::after {
    display: none;
  }

  .chat-window {
    --soshix-mobile-chat-viewport-height: var(--soshix-chat-visual-height, 100vh);
    --soshix-mobile-chat-large-viewport-height: 100vh;
    position: fixed !important;
    top: var(--soshix-chat-visual-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--soshix-chat-keyboard-offset, 0px) !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(var(--soshix-mobile-chat-viewport-height), var(--soshix-mobile-chat-large-viewport-height)) !important;
    min-height: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 20050 !important;
  }

  .chat-window .chat-header,
  .chat-window .chat-platform-tabs,
  .chat-window .chat-typing,
  .chat-window .chat-preview,
  .chat-window .chat-upload-progress,
  .chat-window .chat-input {
    flex: 0 0 auto !important;
  }

  .chat-window .chat-header {
    touch-action: none;
  }

  .chat-window.chat-window-dragging {
    transition: none !important;
    will-change: transform;
  }

  .chat-window.chat-window-dismissing {
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
  }

  .chat-window .chat-body {
    flex: 1 1 auto !important;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .chat-window .chat-input {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    background: #0b1020 !important;
  }

  .chat-window .chat-text {
    max-height: 96px;
    overflow-y: auto;
  }

  body.soshix-mobile-chat-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  @supports (height: 100svh) {
    .chat-window {
      --soshix-mobile-chat-viewport-height: var(--soshix-chat-visual-height, 100svh);
    }
  }

  @supports (height: 100lvh) {
    .chat-window {
      --soshix-mobile-chat-large-viewport-height: 100lvh;
    }
  }

  @supports (height: 100dvh) {
    .chat-window {
      --soshix-mobile-chat-viewport-height: var(--soshix-chat-visual-height, 100dvh);
    }
  }

  @supports (-webkit-touch-callout: none) {
    .chat-window {
      bottom: 0 !important;
      height: var(--soshix-chat-visual-height, 100dvh) !important;
      max-height: none !important;
      display: flex !important;
      flex-direction: column !important;
    }

    .chat-window .chat-body {
      flex: 1 1 0 !important;
      height: auto !important;
      max-height: none !important;
    }
  }

  .mobile-drawer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
  }

  .mobile-drawer-avatar-fallback {
    display: inline-grid;
    place-items: center;
    background: #6366f1;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-drawer-footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .mobile-drawer-footer a,
  .mobile-drawer-footer span {
    color: #9ca3af;
    font-size: 12px;
    text-decoration: none;
  }

  .mobile-drawer-footer a[href="/advertising"] {
    text-align: center;
  }

  .mobile-drawer-footer a:hover,
  .mobile-drawer-footer a.active {
    color: #e5e7eb;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: 58px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .header-left {
    gap: 8px;
  }

  .header-search {
    display: flex;
  }

  .header-search input {
    font-size: 13px;
  }

  .center-nav-link span {
    display: none;
  }

  .center-nav-link {
    min-width: 48px;
    padding: 8px 10px;
  }

  .center-nav-link i {
    font-size: 19px;
  }

  .header-icon,
  .profile-avatar-img,
  .profile-avatar {
    width: 32px;
    height: 32px;
  }

  .header-icon i {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  body.soshix-feed-body {
    --soshix-feed-mobile-header-height: 54px;
  }

  body {
    padding-top: 54px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .header-inner {
    padding: 8px 10px;
  }

  .header-logo img {
    height: 28px;
    max-width: 112px;
  }

  .header-search {
    gap: 8px;
    padding: 7px 9px;
  }

  .header-search-dropdown {
    position: fixed;
    top: 56px;
    left: 10px;
    right: 10px;
    width: auto;
  }

  .header-center-nav {
    justify-content: center;
  }

  .center-nav-link {
    min-width: 46px;
  }

  .profile-dropdown {
    right: -2px;
  }

  #notifDropdown {
    position: fixed;
    top: 56px;
    left: 10px;
    right: 10px;
    width: auto;
  }

  .echoes-panel {
    top: 104px;
    right: 0;
    width: 100vw;
    height: calc(100vh - 104px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

/* =========================
   Feed Page
========================= */

@media (max-width: 900px) {
  .home-layout.feed-page {
    display: flex !important;
    height: auto !important;
    min-height: calc(100dvh - var(--soshix-feed-mobile-header-height, 58px) - var(--soshix-feed-mobile-bottom-space, 0px));
  }

  .feed-page .column-left,
  .feed-page .column-right {
    display: none;
  }

  .feed-page .column-center {
    height: auto !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 12px 12px;
    overflow: visible;
  }

  .feed-page .feed-item,
  .feed-page .post-card {
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .feed-page .pulse-create-shell {
    display: none !important;
  }

  .feed-news-banner {
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
  }

  .create-post-inner {
    gap: 10px;
  }

  .create-post-input input {
    min-width: 0;
  }

  .post-header {
    gap: 10px;
  }

  .post-header-left {
    min-width: 0;
  }

  .post-meta,
  .shared-meta {
    min-width: 0;
  }

  .post-author,
  .post-subline,
  .shared-author,
  .shared-time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .post-content {
    overflow-wrap: anywhere;
  }

  .post-actions {
    gap: 4px;
  }

  .post-action-btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 8px 6px;
  }

  .suggested-users:not(.is-hidden) {
    display: block;
    padding: 12px 10px;
  }

  .suggested-wrapper {
    width: 100%;
    min-width: 0;
  }

  .suggested-row {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 0 2px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .suggested-row::-webkit-scrollbar {
    display: none;
  }

  .suggested-card {
    min-width: 116px;
    padding: 8px;
  }

  .suggested-avatar img,
  .suggested-avatar .avatar-fallback {
    height: 108px;
  }

  .suggested-arrow {
    display: none;
  }

  .post-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

body.soshix-feed-body #postModal.is-mobile-soshix-top-composer {
  --soshix-feed-mobile-composer-bottom-clearance: calc(var(--soshix-feed-mobile-bottom-nav-height, calc(72px + env(safe-area-inset-bottom, 0px))) + 14px);
  align-items: center;
  justify-content: center;
  padding: 10px;
  top: var(--soshix-feed-mobile-header-height, 58px);
  bottom: var(--soshix-feed-mobile-composer-bottom-clearance);
  max-height: none;
  overflow: hidden;
}

  .post-modal {
    max-width: 100%;
    max-height: calc(100vh - 18px);
    border-radius: 14px 14px 0 0;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal {
    border-radius: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 84%;
    max-height: 84%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal-header,
  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal-divider,
  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal-user {
    flex: 0 0 auto;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal form {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    min-height: 0;
    overflow: hidden;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal textarea {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal-footer {
    grid-column: 5;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-modal-footer:empty {
    display: none;
    margin: 0;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-emoji-wrap {
    grid-column: 1 / 4;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-media-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .image-upload-btn {
    grid-column: 2;
    grid-row: 2;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .video-upload-btn {
    grid-column: 3;
    grid-row: 2;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .image-preview,
  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .video-preview {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .share-preview:not(.hidden) {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-btn {
    width: auto;
    min-width: 64px;
    min-height: 40px;
    margin-left: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--soshix-platform-soshix), #16a34a);
    color: #04130a;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0;
    padding: 0 16px;
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--soshix-platform-soshix) 55%, rgba(255, 255, 255, 0.16)) inset,
      0 10px 22px color-mix(in srgb, var(--soshix-platform-soshix) 28%, transparent);
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-btn:not(:disabled):hover,
  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-btn:not(:disabled):focus-visible {
    background: linear-gradient(135deg, #4ade80, var(--soshix-platform-soshix));
    outline: none;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-btn:disabled,
  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-btn.disabled {
    background: #1e293b;
    color: #64748b;
    box-shadow: none;
  }

  body.soshix-feed-body #postModal.is-mobile-soshix-top-composer .post-btn.is-loading {
    cursor: wait;
    opacity: 0.92;
  }

  .mobile-post-composer-overlay {
    position: fixed;
    inset: var(--soshix-feed-mobile-header-height, 58px) 0 var(--soshix-feed-mobile-bottom-nav-height, calc(72px + env(safe-area-inset-bottom, 0px)));
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(2, 6, 23, 0.85);
    overflow: hidden;
  }

  .mobile-post-composer-overlay.show {
    display: flex;
  }

  .mobile-post-composer {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    height: 84%;
    max-height: 84%;
    min-height: 0;
    padding: 14px;
    border: 2px solid color-mix(in srgb, var(--soshix-platform-soshix) 58%, rgba(255, 255, 255, 0.2));
    border-radius: 14px;
    background:
      radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--soshix-platform-soshix) 18%, transparent), transparent 42%),
      linear-gradient(180deg, #1e2b45 0%, #142138 56%, #101b2f 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 0 6px color-mix(in srgb, var(--soshix-platform-soshix) 9%, transparent),
      0 0 48px color-mix(in srgb, var(--soshix-platform-soshix) 44%, transparent),
      0 34px 90px rgba(0, 0, 0, 0.86),
      0 70px 140px rgba(0, 0, 0, 0.72);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .mobile-post-composer-header {
    position: relative;
    flex: 0 0 auto;
    padding-bottom: 10px;
    text-align: center;
  }

  .mobile-post-composer-header h3 {
    margin: 0;
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 600;
  }

  .mobile-post-composer-close {
    position: absolute;
    top: -2px;
    right: 0;
    border: 0;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
  }

  .mobile-post-composer-user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    margin-bottom: 12px;
    border-top: 1px solid #1e293b;
  }

  .mobile-post-composer-avatar img,
  .mobile-post-composer-avatar .avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-post-composer-name {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-post-composer-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    scrollbar-color: var(--soshix-platform-soshix) rgba(2, 6, 23, 0.42);
    scrollbar-width: thin;
    overflow-y: auto;
  }

  .mobile-post-composer-form::-webkit-scrollbar {
    width: 10px;
  }

  .mobile-post-composer-form::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.42);
    border-radius: 999px;
  }

  .mobile-post-composer-form::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--soshix-platform-soshix) 72%, #0f172a);
    border: 2px solid rgba(2, 6, 23, 0.82);
    border-radius: 999px;
  }

  .mobile-post-composer-form::-webkit-scrollbar-thumb:hover {
    background: var(--soshix-platform-soshix);
  }

  .mobile-post-composer-form textarea {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: #020617;
    color: #e5e7eb;
    font-size: 14px;
    resize: none;
    overflow-y: auto;
  }

  .mobile-post-composer-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    width: 100%;
    margin: 10px 0 0;
  }

  .mobile-post-emoji-toggle,
  .mobile-post-media-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #1f2937;
    border-radius: 999px;
    background: #020617;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 18px;
  }

  .mobile-post-emoji-toggle {
    width: 36px;
    height: 36px;
    color: #facc15;
  }

  .mobile-post-submit {
    flex: 0 0 auto;
    width: auto;
    min-width: 64px;
    min-height: 40px;
    margin-left: auto;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--soshix-platform-soshix), #16a34a);
    color: #04130a;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0;
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--soshix-platform-soshix) 55%, rgba(255, 255, 255, 0.16)) inset,
      0 10px 22px color-mix(in srgb, var(--soshix-platform-soshix) 28%, transparent);
  }

  .mobile-post-submit:disabled,
  .mobile-post-submit.disabled {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
  }

  .mobile-post-submit.is-loading {
    cursor: wait;
    opacity: 0.92;
  }

  .mobile-post-emoji-picker {
    position: absolute;
    right: 0;
    bottom: 46px;
    z-index: 80;
    display: none;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: min(320px, 48vh);
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: #020617;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
  }

  .mobile-post-emoji-picker.is-open {
    display: grid;
  }

  .mobile-post-emoji-picker button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }

  .mobile-post-image-preview,
  .mobile-post-video-preview {
    flex: 0 0 auto;
    margin-top: 10px;
    overflow-y: auto;
  }

  .mobile-post-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }

  .mobile-post-image-preview.hidden,
  .mobile-post-video-preview.hidden {
    display: none;
  }

  .mobile-share-composer-user {
    min-width: 0;
  }

  .mobile-share-destination-wrap {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .mobile-share-destination-wrap select {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #020617;
    color: #e5e7eb;
  }

  .mobile-share-friend-picker {
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  .mobile-share-friend-picker input {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #1f2937;
    border-radius: 10px;
    background: #020617;
    color: #e5e7eb;
    outline: none;
  }

  .mobile-share-friend-list {
    display: grid;
    gap: 6px;
    max-height: 130px;
    margin-top: 8px;
    overflow-y: auto;
  }

  .mobile-share-preview {
    flex: 0 0 auto;
    max-height: 140px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #1f2937;
    border-radius: 10px;
    background: #020617;
    overflow-y: auto;
  }

  .mobile-share-preview.hidden {
    display: none;
  }

  .mobile-post-shared-preview {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }

  .mobile-share-actions {
    margin-top: 10px;
  }

  #commentModal .post-modal {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .feed-page .column-center {
    padding: 0 8px 10px;
  }

  .feed-page .feed-item,
  .feed-page .post-card {
    padding: 12px;
  }

  .create-post-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .create-post-avatar img,
  .create-post-avatar .avatar-fallback {
    width: 38px;
    height: 38px;
  }

  .create-post-input {
    flex: 1 1 calc(100% - 50px);
  }

  .create-post-actions {
    width: 100%;
    justify-content: flex-end;
    padding-left: 50px;
  }

  .feed-page .create-post-inner {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .feed-page .create-post-input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .feed-page .create-post-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
    padding-left: 0;
  }

  .post-icon {
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .post-avatar img,
  .post-avatar .avatar-fallback {
    width: 38px;
    height: 38px;
  }

  .post-content {
    font-size: 14px;
    line-height: 1.45;
  }

  .post-count-row {
    align-items: flex-start;
    gap: 8px;
  }

  .post-count-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
    font-size: 12px;
  }

  .post-action-btn {
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    line-height: 1.15;
  }

  .pulse-soshix-item .post-action-btn.like-btn {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .feed-filter-panel[data-soshix-feed-panel="soshix"] .post-action-btn.like-btn {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  .pulse-soshix-item .post-action-btn.like-btn .like-icon,
  .pulse-soshix-item .post-action-btn.like-btn .like-text,
  .feed-filter-panel[data-soshix-feed-panel="soshix"] .post-action-btn.like-btn .like-icon,
  .feed-filter-panel[data-soshix-feed-panel="soshix"] .post-action-btn.like-btn .like-text {
    flex: 0 0 auto;
    line-height: 1;
  }

  .post-media-grid {
    max-height: none;
  }

  .post-media-grid.count-3,
  .post-media-grid.count-4,
  .post-media-grid.count-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-media-grid.count-1 img {
    max-height: 60vh;
  }

  .post-media-grid video,
  .video-wrapper {
    max-height: 320px;
  }

  .shared-post-embed {
    padding: 9px;
  }
}

@media (max-width: 420px) {
  .feed-page .column-center {
    padding: 0 6px 8px;
  }

  .feed-page .feed-item,
  .feed-page .post-card {
    padding: 10px;
  }

  .feed-news-banner {
    font-size: 13px;
  }

  .create-post-input input {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .post-menu-btn {
    padding: 2px 4px;
  }

  .post-actions {
    justify-content: stretch;
  }

  .post-action-btn {
    padding: 7px 4px;
  }

  .suggested-card {
    min-width: 106px;
  }

  .suggested-avatar img,
  .suggested-avatar .avatar-fallback {
    height: 98px;
  }

  .suggested-name,
  .suggested-add-btn {
    font-size: 12px;
  }

  .post-modal {
    padding: 14px;
  }

  .post-modal textarea {
    min-height: 110px;
    font-size: 14px;
  }
}

/* =========================
   Edit Profile Page
========================= */

@media (max-width: 900px) {
  .home-layout.profile-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .profile-page .column-left,
  .profile-page .column-right {
    display: none;
  }

  .profile-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .profile-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .profile-page .feed-item h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .profile-mobile-edit-title {
    display: block !important;
    margin: 18px 0 10px;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .profile-page .feed-item > h2 + .profile-mobile-edit-title,
  .profile-page .feed-item form > .profile-mobile-edit-title:first-of-type {
    margin-top: 14px;
  }

  .profile-edit-wrapper {
    display: block !important;
    margin-top: 16px !important;
    position: relative;
  }

  .profile-header-edit-row {
    justify-content: space-between;
    width: 100%;
  }

  .profile-header-edit-row .avatar-upload-btn {
    margin-bottom: 0 !important;
  }

  .profile-edit-menu-toggle {
    display: inline-flex !important;
  }

  .profile-edit-tabs {
    position: fixed;
    top: var(--profile-edit-menu-top, 96px);
    right: var(--profile-edit-menu-right, 12px);
    z-index: 25;
    display: none;
    width: var(--profile-edit-menu-width, min(270px, calc(100vw - 32px))) !important;
    padding: 8px !important;
    margin: 0 !important;
    overflow: visible;
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  }

  .profile-edit-tabs.is-open {
    display: grid;
    gap: 4px;
  }

  .profile-edit-tabs button {
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    white-space: normal;
    text-align: left !important;
  }

  .profile-edit-content {
    width: 100%;
    padding: 14px !important;
  }

  .field-with-privacy {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .privacy-select {
    margin-top: -4px !important;
  }

  .profile-page input,
  .profile-page textarea,
  .profile-page select {
    min-height: 40px;
    font-size: 16px;
  }

  .profile-page textarea {
    min-height: 96px;
  }

  .profile-header-preview img {
    max-height: 180px !important;
  }

  .avatar-row {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap;
  }

  .profile-avatar-preview img {
    width: 96px !important;
    height: 96px !important;
  }

  .avatar-upload-btn {
    max-width: 100%;
    text-align: center;
  }

  .work-form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .work-top {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .work-dates {
    white-space: normal !important;
  }

  .work-title,
  .work-sub,
  .work-desc {
    overflow-wrap: anywhere;
  }

  .work-delete-btn,
  .work-add-btn,
  .profile-page .btn-primary {
    width: 100%;
  }

  .profile-page .btn-primary {
    margin-top: 14px;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .profile-page .column-center {
    padding: 10px 8px;
  }

  .profile-page .feed-item {
    padding: 12px;
  }

  .profile-edit-tabs button {
    font-size: 13px !important;
  }

  .profile-edit-content {
    padding: 12px !important;
  }

  .profile-page input,
  .profile-page textarea,
  .profile-page select {
    margin-bottom: 10px !important;
  }

  .form-group-edit {
    margin-bottom: 14px !important;
  }

  .avatar-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .profile-header-preview img {
    max-height: 150px !important;
  }
}

@media (max-width: 380px) {
  .profile-page .column-center {
    padding: 8px 6px;
  }

  .profile-edit-tabs button {
    font-size: 12px !important;
  }

  .profile-edit-content {
    padding: 10px !important;
  }
}

/* =========================
   Aura Page
========================= */

@media (max-width: 900px) {
  .home-layout.aura-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .aura-page .column-left,
  .aura-page .column-right {
    display: none;
  }

  .aura-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .aura-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .aura-page .feed-item h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .aura-page .feed-item h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .aura-page .feed-item p {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 520px) {
  .aura-page .column-center {
    padding: 10px 8px;
  }

  .aura-page .feed-item {
    padding: 12px;
  }

  .aura-page .feed-item p {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .aura-page .column-center {
    padding: 8px 6px;
  }

  .aura-page .feed-item {
    padding: 10px;
  }
}

/* =========================
   Soshix After Dark Page
========================= */

@media (max-width: 900px) {
  .home-layout.afterdark-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .afterdark-page .column-left,
  .afterdark-page .column-right {
    display: none;
  }

  .afterdark-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .afterdark-page .feed-item {
    padding: 12px;
    border-radius: 8px;
  }

  .afterdark-page .afterdark-container {
    min-height: calc(100vh - 170px);
  }
}

@media (max-width: 560px) {
  .afterdark-page .column-center {
    padding: 10px 8px;
  }

  .afterdark-page .feed-item {
    padding: 10px;
  }

  .afterdark-page .afterdark-header {
    font-size: 20px;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .afterdark-page .column-center {
    padding: 8px 6px;
  }
}

/* =========================
   Games Hub Page
========================= */

@media (max-width: 900px) {
  .home-layout.games-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .games-page .column-left,
  .games-page .column-right {
    display: none;
  }

  .games-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .games-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .games-container {
    padding: 8px !important;
  }

  .games-header {
    font-size: 22px !important;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .games-card {
    min-height: 132px;
    padding: 18px 12px !important;
  }

  .games-icon {
    font-size: 36px !important;
  }

  .games-section-modern {
    padding: 14px !important;
  }
}

@media (max-width: 520px) {
  .games-page .column-center {
    padding: 10px 8px;
  }

  .games-page .feed-item {
    padding: 12px;
  }

  .games-container {
    padding: 4px !important;
  }

  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .games-card {
    min-height: 112px;
  }

  .games-section {
    margin-top: 22px !important;
  }
}

@media (max-width: 380px) {
  .games-page .column-center {
    padding: 8px 6px;
  }

  .games-page .feed-item {
    padding: 10px;
  }

  .games-header {
    font-size: 20px !important;
  }
}

/* =========================
   Events Page
========================= */

@media (max-width: 900px) {
  .home-layout.events-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .events-page .column-left,
  .events-page .column-right {
    display: none;
  }

  .events-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .events-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .events-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .events-hero h2 {
    font-size: clamp(2rem, 12vw, 3rem) !important;
  }

  .events-date-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
  }

  .events-date-card {
    min-height: 84px !important;
  }

  .events-feature-grid {
    grid-template-columns: 1fr !important;
  }

  .events-feature {
    min-height: 0;
  }

  .events-type-list span {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .events-page .column-center {
    padding: 10px 8px;
  }

  .events-page .feed-item {
    padding: 12px;
  }

  .events-hero p,
  .events-panel p,
  .events-feature span {
    font-size: 14px;
    line-height: 1.5;
  }

  .events-date-card {
    min-height: 74px !important;
  }

  .events-date-card strong {
    font-size: 1.65rem !important;
  }

  .events-type-list {
    gap: 6px !important;
  }

  .events-type-list span {
    padding: 8px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .events-page .column-center {
    padding: 8px 6px;
  }

  .events-page .feed-item {
    padding: 10px;
  }
}

/* =========================
   Groups Pages
========================= */

@media (max-width: 900px) {
  .home-layout.layout-no-right {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .home-layout.layout-no-right .column-left {
    display: block !important;
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 0;
    overflow: visible;
  }

  .home-layout.group-detail-layout .column-left {
    display: none !important;
  }

  .mobile-group-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #c7d2fe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-group-back:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
  }

  .home-layout.layout-no-right .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px !important;
    overflow: visible;
  }

  .group-view-layout .column-center {
    padding: 12px !important;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] {
    height: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] .side-nav-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] > .side-nav-scroll > .side-link {
    flex-direction: column;
    gap: 5px;
    min-height: 62px;
  }

  .groups-header,
  .group-search-wrapper,
  .groups-create-wrap,
  .groups-divider,
  .groups-joined-header {
    grid-column: 1 / -1;
  }

  .groups-header,
  .groups-joined-header {
    margin-bottom: 0;
    font-size: 16px;
  }

  .group-search-wrapper {
    margin-bottom: 2px;
  }

  .group-search-input {
    min-height: 40px;
    font-size: 16px;
  }

  .group-search-results {
    z-index: 20002;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] .side-link {
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 8px;
    text-align: center;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] .side-link i {
    width: auto;
    font-size: 20px;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] > .side-nav-scroll > .side-link span {
    font-size: 12px;
    line-height: 1.15;
  }

  .groups-create-wrap {
    margin: 2px 0;
  }

  .groups-create-btn {
    min-height: 42px;
  }

  .groups-divider {
    margin: 6px 0;
  }

  .group-sidebar-item {
    min-width: 0;
    padding: 8px;
    background: rgba(15, 23, 42, 0.55);
  }

  .group-sidebar-avatar {
    width: 36px;
    height: 36px;
  }

  .group-sidebar-meta {
    min-width: 0;
  }

  .group-sidebar-name,
  .group-sidebar-last {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .group-view-layout .group-banner {
    height: auto !important;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .group-view-layout .group-banner img {
    display: block;
    height: auto;
    object-fit: contain;
  }

  .group-info h2 {
    font-size: 21px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .group-members-row {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .group-members-preview {
    flex: 1 1 auto;
    min-width: 0;
  }

  .group-members-action {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 0;
  }

  .group-member-actions,
  .group-members-action form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
  }

  .group-join-btn,
  .group-request-btn,
  .group-member-badge,
  .group-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: auto;
    margin-bottom: 0;
    white-space: nowrap;
    text-align: center;
  }

  .group-member-badge {
    background: #16a34a;
    border: 1px solid #16a34a;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
  }

  .group-edit-btn {
    background: #6366f1;
    border: 1px solid #6366f1;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
  }

  .group-edit-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
  }

  .group-tabs,
  .group-media-tabs {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .group-tabs::-webkit-scrollbar,
  .group-media-tabs::-webkit-scrollbar {
    display: none;
  }

  .group-tab,
  .group-media-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .group-discussion-layout {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .group-about-card,
  .group-people-card {
    width: 100% !important;
    max-width: 100%;
  }

  .group-card-grid,
  .groups-grid,
  .groups-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .groups-horizontal .group-card {
    height: auto;
    min-height: 240px;
  }

  .group-card-image,
  .group-view-layout .groups-horizontal .group-card-image {
    height: 140px;
  }

  .group-form input[type="text"],
  .group-form textarea,
  .group-form input[type="file"] {
    min-height: 42px;
    font-size: 16px;
  }

  .group-privacy {
    flex-wrap: wrap;
    gap: 10px;
  }

  .group-submit-btn {
    width: 100%;
    min-height: 44px;
  }

  .group-header-preview {
    max-width: 100%;
  }

  .group-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .group-create-post-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .group-create-post-input {
    flex: 1 1 calc(100% - 50px);
  }

  .group-create-post-actions {
    width: 100%;
    justify-content: flex-end;
    padding-left: 48px;
  }
}

@media (max-width: 560px) {
  .home-layout.layout-no-right .column-left {
    padding: 10px 8px 0;
  }

  .home-layout.layout-no-right .column-center {
    padding: 10px 8px !important;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] {
    padding: 12px;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] .side-nav-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] .side-link {
    justify-content: center;
    text-align: center;
  }

  .groups-header,
  .group-search-wrapper,
  .groups-create-wrap,
  .groups-divider,
  .groups-joined-header,
  .group-sidebar-item,
  .group-sidebar-last {
    grid-column: 1 / -1;
  }

  .group-sidebar-item {
    width: 100%;
  }

  .group-card-grid,
  .groups-grid,
  .groups-horizontal {
    grid-template-columns: 1fr !important;
  }

  .group-card-image,
  .group-view-layout .groups-horizontal .group-card-image {
    height: 160px;
  }

  .group-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-about-row {
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .home-layout.layout-no-right .column-left {
    padding: 8px 6px 0;
  }

  .home-layout.layout-no-right .column-center {
    padding: 8px 6px !important;
  }

  .home-layout.layout-no-right .side-nav[aria-label="Groups"] {
    padding: 10px;
  }
}

/* =========================
   Friends Page
========================= */

@media (max-width: 900px) {
  .home-layout.friends-layout {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .friends-layout .column-left,
  .friends-layout .column-right {
    display: none;
  }

  .friends-layout .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .friends-page {
    padding: 14px;
    border-radius: 8px;
  }

  .friends-page-header {
    align-items: flex-start;
  }

  .friends-page h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .friends-tabs {
    gap: 8px;
    margin: 14px -2px 16px;
    padding-bottom: 2px;
  }

  .tab-btn {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .search-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    margin-bottom: 16px;
  }

  .search-filters input,
  .search-filters select {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    font-size: 16px;
  }

  .search-btn,
  .clear-btn {
    min-height: 40px;
  }

  .friends-page .friends-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .friends-page .friend-card {
    padding: 10px;
    border-radius: 8px;
  }

  .friends-page .friend-name {
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 34px;
  }

  .friends-page .friend-actions button.btn {
    min-height: 36px;
  }
}

@media (max-width: 560px) {
  .friends-layout .column-center {
    padding: 10px 8px;
  }

  .friends-page {
    padding: 12px;
  }

  .friends-tabs {
    margin-left: -4px;
    margin-right: -4px;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .search-filters {
    grid-template-columns: 1fr;
  }

  .friends-page .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .friends-page .friend-card {
    padding: 9px;
  }

  .friends-page .friend-avatar,
  .friends-page .friend-avatar-placeholder {
    margin-bottom: 8px;
  }

  .friends-page .friend-name {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .friends-layout .column-center {
    padding: 8px 6px;
  }

  .friends-page {
    padding: 10px;
  }

  .friends-page .friends-grid {
    gap: 8px;
  }

  .friends-page .friend-actions button.btn {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
}

/* =========================
   Public Profile Page
========================= */

@media (max-width: 900px) {
  .home-layout.profiles-layout {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .profiles-layout .column-left,
  .profiles-layout .column-right {
    display: none;
  }

  .profiles-layout .column-center {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: visible !important;
  }

  .profiles-layout .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .profiles-layout .profile-header {
    height: clamp(150px, 38vw, 220px);
    margin-top: -14px;
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 8px 8px 0 0;
  }

  .profiles-layout .profile-header-row {
    align-items: flex-start;
    gap: 14px;
  }

  .profiles-layout .profile-header-left {
    min-width: 0;
    align-items: flex-end;
    gap: 12px;
  }

  .profiles-layout .profile-avatar {
    width: 104px !important;
    height: 104px !important;
  }

  .profiles-layout .profile-identity {
    min-height: 104px;
    min-width: 0;
  }

  .profiles-layout .profile-display-name {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }

  .profiles-layout .profile-friend-count,
  .profiles-layout .profile-location {
    font-size: 13px !important;
  }

  .profiles-layout .profile-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .profiles-layout .profile-btn {
    min-height: 40px;
    padding: 9px 12px;
  }

  .profile-tabs,
  .profile-friends-tabs,
  .profile-photos-tabs {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar,
  .profile-friends-tabs::-webkit-scrollbar,
  .profile-photos-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab,
  .friends-tab,
  .photos-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #profile-tab-content {
    margin-top: 14px;
  }

  .profile-posts-layout,
  .profile-about-layout,
  .profile-friends-layout {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .profile-card,
  .profile-friend-card {
    border-radius: 8px;
    padding: 12px;
  }

  .profile-friends-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .profile-friends-search {
    width: 100%;
  }

  .profile-friends-search input {
    width: 100%;
  }

  .profile-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }
}

@media (max-width: 600px) {
  .profiles-layout .column-center {
    padding: 10px 8px !important;
  }

  .profiles-layout .feed-item {
    padding: 12px;
  }

  .profiles-layout .profile-header {
    height: 150px;
    margin-top: -12px;
    margin-left: -12px;
    margin-right: -12px;
  }

  .profiles-layout .profile-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profiles-layout .profile-header-left {
    align-items: center;
  }

  .profiles-layout .profile-avatar {
    width: 86px !important;
    height: 86px !important;
  }

  .profiles-layout .profile-identity {
    min-height: 0;
    justify-content: center;
  }

  .profiles-layout .profile-header-actions {
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
  }

  .profiles-layout .profile-header-actions > *,
  .profiles-layout .profile-header-actions .profile-btn {
    width: auto;
    min-width: 0;
  }

  .profiles-layout .profile-header-actions > .friend-dropdown,
  .profiles-layout .profile-header-actions > .profile-message-btn,
  .profiles-layout .profile-header-actions > .toggle-friend,
  .profiles-layout .profile-header-actions > [disabled] {
    flex: 1 1 0;
  }

  .profiles-layout .profile-header-actions .friend-toggle,
  .profiles-layout .profile-header-actions > .profile-message-btn,
  .profiles-layout .profile-header-actions > .toggle-friend,
  .profiles-layout .profile-header-actions > [disabled] {
    min-height: 44px;
    padding: 9px 10px;
    width: 100%;
  }

  .profiles-layout .profile-header-actions .profile-btn i {
    margin-right: 6px;
  }

  .profile-more-dropdown {
    display: block;
    flex: 0 0 44px;
    width: 44px;
  }

  .profiles-layout .profile-more-icon-toggle {
    height: 44px;
    min-width: 44px;
    width: 44px;
  }

  .profile-more-menu {
    left: auto;
    right: 0;
    width: min(240px, calc(100vw - 24px));
  }

  .profile-more-menu.is-block-confirming,
  .profile-more-menu.is-reporting {
    left: 50%;
    min-width: 0;
    width: min(380px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .profile-block-confirm-actions,
  .profile-report-actions {
    justify-content: stretch;
  }

  .profile-more-menu .profile-block-confirm-actions button,
  .profile-more-menu .profile-report-actions button {
    flex: 1 1 130px;
  }

  .profiles-layout .profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .friend-dropdown {
    display: block;
  }

  .friend-menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .friend-menu.is-confirming {
    left: 50%;
    min-width: 0;
    width: min(320px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .friend-remove-actions {
    justify-content: stretch;
  }

  .friend-menu .friend-remove-actions button {
    flex: 1 1 120px;
  }

  .profiles-layout .profile-section-divider {
    margin: 16px 0 14px;
  }

  .profile-tabs {
    margin-top: 6px;
  }

  .profile-tab {
    padding: 10px 4px;
    font-size: 14px;
  }

  .profile-friends-content .profile-friends-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 12px;
  }

  .profile-friends-content .profile-friends-column {
    min-width: 0;
  }

  .profile-friends-content .profile-friend-card {
    display: block;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    text-align: center;
  }

  .profile-friends-content .profile-friend-card .friend-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }

  .profile-friends-content .profile-friends-layout .friend-info img,
  .profile-friends-content .profile-friends-layout .friend-avatar-placeholder {
    width: 72px !important;
    height: 72px !important;
  }

  .profile-friends-content .profile-friends-layout .friend-info img {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
  }

  .profile-friends-content .profile-friends-layout .friend-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.2;
  }

  .profile-friends-content .profile-friend-card .friend-name {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-friends-content .profile-friend-card .friend-action-btn {
    display: none;
  }

  .profile-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .profiles-layout .column-center {
    padding: 8px 6px !important;
  }

  .profiles-layout .feed-item {
    padding: 10px;
  }

  .profiles-layout .profile-header {
    margin-top: -10px;
    margin-left: -10px;
    margin-right: -10px;
  }

  .profiles-layout .profile-display-name {
    font-size: 1.05rem;
  }

  .profiles-layout .profile-avatar {
    width: 74px !important;
    height: 74px !important;
  }

  .profile-card p,
  .profile-card h4 {
    overflow-wrap: anywhere;
  }
}

/* =========================
   Welcome Page
========================= */

@media (max-width: 900px) {
  .home-layout.welcome-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .welcome-page .column-left,
  .welcome-page .column-right {
    display: none;
  }

  .welcome-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .welcome-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .welcome-page .feed-item h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .welcome-page .feed-item h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .welcome-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    max-width: 100%;
    text-align: center;
  }

  .welcome-check {
    display: flex !important;
    width: fit-content;
    margin: 8px 0 0 !important;
  }
}

@media (max-width: 520px) {
  .welcome-page .column-center {
    padding: 10px 8px;
  }

  .welcome-page .feed-item {
    padding: 12px;
  }

  .welcome-page .btn {
    width: 100%;
  }

  .welcome-muted {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .welcome-page .column-center {
    padding: 8px 6px;
  }

  .welcome-page .feed-item {
    padding: 10px;
  }
}

/* =========================
   Flux Page
========================= */

@media (max-width: 900px) {
  .home-layout.flux-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .flux-page .column-left,
  .flux-page .column-right {
    display: none;
  }

  .flux-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .flux-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .flux-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .flux-hero h2 {
    font-size: clamp(2rem, 12vw, 3rem) !important;
  }

  .flux-phone-preview {
    justify-content: flex-start !important;
  }

  .flux-phone-screen {
    width: 140px !important;
  }

  .flux-feature-grid {
    grid-template-columns: 1fr !important;
  }

  .flux-feature {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .flux-page .column-center {
    padding: 10px 8px;
  }

  .flux-page .feed-item {
    padding: 12px;
  }

  .flux-hero p,
  .flux-panel p,
  .flux-notes p,
  .flux-feature span {
    font-size: 14px;
    line-height: 1.5;
  }

  .flux-phone-screen {
    width: 126px !important;
    border-radius: 16px;
  }

  .flux-play-ring i {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.55rem !important;
  }
}

@media (max-width: 380px) {
  .flux-page .column-center {
    padding: 8px 6px;
  }

  .flux-page .feed-item {
    padding: 10px;
  }
}

/* =========================
   Terms Page
========================= */

@media (max-width: 900px) {
  .home-layout.terms-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .terms-page .column-left,
  .terms-page .column-right {
    display: none;
  }

  .terms-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .terms-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .terms-page .terms-card h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .terms-page .terms-section h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .terms-page .terms-section p,
  .terms-page .terms-section li,
  .terms-page .terms-muted {
    font-size: 15px;
    line-height: 1.6;
  }

  .terms-page .terms-meta {
    gap: 8px;
  }

  .terms-page .terms-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .terms-page .column-center {
    padding: 10px 8px;
  }

  .terms-page .feed-item {
    padding: 12px;
  }

  .terms-page .terms-toc {
    grid-template-columns: 1fr;
  }

  .terms-page .terms-toc a {
    min-height: 40px;
    padding: 10px;
  }

  .terms-page .terms-meta span {
    width: 100%;
    border-radius: 8px;
  }

  .terms-page .terms-section ul {
    margin-left: 16px;
  }

  .terms-page .terms-callout {
    padding: 11px 12px;
  }
}

@media (max-width: 380px) {
  .terms-page .column-center {
    padding: 8px 6px;
  }

  .terms-page .feed-item {
    padding: 10px;
  }

  .terms-page .terms-section p,
  .terms-page .terms-section li,
  .terms-page .terms-muted {
    font-size: 14px;
  }
}

/* =========================
   Privacy Policy Page
========================= */

@media (max-width: 900px) {
  .home-layout.privacy-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .privacy-page .column-left,
  .privacy-page .column-right {
    display: none;
  }

  .privacy-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .privacy-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .privacy-page .policy-card h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .privacy-page .policy-section h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .privacy-page .policy-section p,
  .privacy-page .policy-section li,
  .privacy-page .policy-muted {
    font-size: 15px;
    line-height: 1.6;
  }

  .privacy-page .policy-meta {
    gap: 8px;
  }

  .privacy-page .policy-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .privacy-page .column-center {
    padding: 10px 8px;
  }

  .privacy-page .feed-item {
    padding: 12px;
  }

  .privacy-page .policy-toc {
    grid-template-columns: 1fr;
  }

  .privacy-page .policy-toc a {
    min-height: 40px;
    padding: 10px;
  }

  .privacy-page .policy-meta span {
    width: 100%;
    border-radius: 8px;
  }

  .privacy-page .policy-section ul {
    margin-left: 16px;
  }

  .privacy-page .policy-callout {
    padding: 11px 12px;
  }
}

@media (max-width: 380px) {
  .privacy-page .column-center {
    padding: 8px 6px;
  }

  .privacy-page .feed-item {
    padding: 10px;
  }

  .privacy-page .policy-section p,
  .privacy-page .policy-section li,
  .privacy-page .policy-muted {
    font-size: 14px;
  }
}

/* =========================
   Vox Page
========================= */

@media (max-width: 900px) {
  .home-layout.vox-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .vox-page .column-left,
  .vox-page .column-right {
    display: none;
  }

  .vox-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .vox-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .vox-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .vox-hero h2 {
    font-size: clamp(2rem, 12vw, 3rem) !important;
  }

  .vox-thread-preview {
    min-height: 150px !important;
  }

  .vox-feature {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .vox-page .column-center {
    padding: 10px 8px;
  }

  .vox-page .feed-item {
    padding: 12px;
  }

  .vox-hero p,
  .vox-panel p,
  .vox-feature span {
    font-size: 14px;
    line-height: 1.5;
  }

  .vox-thread-preview {
    min-height: 120px !important;
  }

  .vox-thread-bubble {
    height: 44px !important;
  }
}

@media (max-width: 380px) {
  .vox-page .column-center {
    padding: 8px 6px;
  }

  .vox-page .feed-item {
    padding: 10px;
  }
}

/* =========================
   Settings Page
========================= */

@media (max-width: 900px) {
  .home-layout.settings-page {
    display: block;
    height: auto;
    min-height: calc(100vh - 116px);
  }

  .settings-page .column-left,
  .settings-page .column-right {
    display: none;
  }

  .settings-page .column-center {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    overflow: visible;
  }

  .settings-page .feed-item {
    padding: 14px;
    border-radius: 8px;
  }

  .settings-page .feed-item h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .settings-tabs {
    overflow-x: auto;
    gap: 8px !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .settings-tabs::-webkit-scrollbar {
    display: none;
  }

  .settings-tab {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .settings-form {
    gap: 12px !important;
  }

  .settings-form input,
  .settings-form select {
    min-height: 42px;
    font-size: 16px !important;
  }

  .settings-form button,
  .settings-page .btn {
    min-height: 42px;
  }

  .settings-form button {
    align-self: stretch !important;
    width: 100%;
  }

  .settings-row {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px !important;
  }

  .settings-row select {
    min-width: 0 !important;
    width: 100%;
  }

  .privacy-optin {
    gap: 14px;
  }

  .privacy-optin span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .danger-zone {
    display: grid;
    gap: 10px;
  }

  .danger-zone .btn {
    width: 100%;
  }

  .danger-modal {
    align-items: flex-end !important;
  }

  .danger-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 16px !important;
  }

  .danger-actions {
    flex-direction: column-reverse;
  }

  .danger-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .settings-page .column-center {
    padding: 10px 8px;
  }

  .settings-page .feed-item {
    padding: 12px;
  }

  .settings-tabs {
    margin-left: -2px;
    margin-right: -2px;
  }

  .settings-tab {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  .settings-page .feed-item h3 {
    font-size: 15px;
  }

  .settings-muted,
  .settings-row span,
  .settings-note {
    line-height: 1.4;
  }

  .password-field .toggle-password {
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 380px) {
  .settings-page .column-center {
    padding: 8px 6px;
  }

  .settings-tab {
    font-size: 12px !important;
  }

  .danger-modal-content {
    padding: 14px !important;
  }
}

/* =========================
   Phone Landscape
========================= */

@media (orientation: landscape) and (max-height: 600px) and (hover: none),
  (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .home-layout {
    display: block !important;
    height: auto !important;
    min-height: calc(100dvh - 58px);
  }

  .home-layout > .column-left,
  .home-layout > .column-right {
    display: none !important;
  }

  .home-layout > .column-center {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  .home-layout.feed-page {
    display: flex !important;
    height: auto !important;
    min-height: calc(100dvh - var(--soshix-feed-mobile-header-height, 58px) - var(--soshix-feed-mobile-bottom-space, 0px));
  }

  .home-layout.feed-page > .column-center {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-height: auto;
    padding: 0 10px 10px !important;
    overflow: visible !important;
  }

  .home-layout .feed-item {
    border-radius: 8px;
  }
}
