@media (max-width: 860px) {
  html,
  body {
    overflow-x: hidden;
  }

  body::before {
    background-size: 24px 24px;
    opacity: 0.38;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    padding: 8px 8px 8px;
  }

  .app-frame,
  .layout,
  .content-grid,
  .forum-home-grid,
  .forum-directory-grid,
  .forum-section-grid,
  .thread-view-grid,
  .messages-layout,
  .messages-layout-rich,
  .settings-layout,
  .profile-shell,
  .profile-main-grid,
  .compose-intro-grid,
  .compose-layout,
  .compose-form-grid,
  .forum-home-actions-bar,
  .forum-map-list,
  .wallet-request-grid,
  .listing-grid,
  .search-grid,
  .hero-search,
  .profile-info-table,
  .profile-content-tabs,
  .profile-wallet-actions,
  .profile-metrics-compact {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .side-menu {
    display: none !important;
  }

  .page-main,
  .main-column,
  .sidebar,
  .thread-view-main,
  .thread-view-side,
  .message-sidebar,
  .message-main,
  .profile-aside,
  .profile-main-column,
  .profile-wall-feed,
  .profile-dashboard,
  .forum-home-copy,
  .forum-home-summary {
    min-width: 0;
    width: 100%;
  }

  .panel,
  .hero,
  .ticker,
  .auth-panel,
  .auth-side-card,
  .thread-compose-page,
  .thread-article-card,
  .thread-discussion-panel,
  .thread-reply-panel,
  .forum-home-promo,
  .forum-home-hot,
  .forum-home-sections,
  .forum-section-hero,
  .forum-directory-hero,
  .thread-view-header,
  .message-sidebar,
  .message-main,
  .profile-main-card,
  .profile-photo-card,
  .profile-deposit-card,
  .profile-note-card,
  .profile-posts-stream,
  .profile-dashboard,
  .profile-wall-card,
  .wallet-request-card,
  .listing-card,
  .sidebar-panel {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .profile-main-hero,
  .profile-info-grid,
  .profile-content-tabs,
  .profile-hero-metrics {
    grid-template-columns: 1fr !important;
  }

  .profile-photo-meta {
    display: grid;
    text-align: left;
  }

  .profile-photo-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    gap: 14px !important;
    padding: 18px 16px !important;
  }

  .profile-photo-card .avatar-giant {
    width: 132px;
    max-width: 132px;
    min-width: 132px;
    height: 132px;
    aspect-ratio: 1 / 1;
    border-radius: 28px !important;
  }

  .profile-photo-meta {
    align-content: center;
    gap: 6px;
  }

  .profile-photo-meta strong {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .profile-photo-meta span {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .profile-photo-card .profile-edit-button {
    grid-column: 1 / -1;
    width: min(100%, 280px);
  }

  .topbar-clean {
    position: sticky;
    top: 8px;
    z-index: 220;
    isolation: isolate;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px !important;
    min-height: 58px;
    height: 58px;
    padding: 8px 10px !important;
    border-radius: 20px !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    background: linear-gradient(180deg, #181818 0%, #101010 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 44px rgba(0, 0, 0, 0.34) !important;
  }

  .topbar-clean > .brand {
    display: none !important;
  }

  .topbar-clean > .topbar-center {
    display: none !important;
  }

  .topbar-clean > .topbar-quick-user {
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: max-content;
    height: 100%;
    margin-left: auto;
  }

  .topbar-clean > .topbar-quick-user.guest-tools,
  .topbar-clean > .guest-tools {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    width: auto !important;
    height: 100%;
  }

  .topbar-clean > .topbar-menu-toggle {
    order: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
    border-radius: 14px !important;
    color: #f5f5f5 !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
  }

  .topbar-quick-user .topbar-name {
    display: none !important;
  }

  .topbar-quick-user .topbar-icon {
    display: none !important;
  }

  .topbar-quick-user .topbar-profile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
  }

  .topbar-clean .topbar-auth {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 40px;
    white-space: nowrap;
    border-color: rgba(255, 118, 42, 0.28) !important;
    background: rgba(255, 90, 31, 0.13) !important;
    color: #fff !important;
  }

  .topbar-mobile-menu {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
  }

  .topbar-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(6, 9, 13, 0.76);
  }

  .mobile-menu-panel {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    gap: 14px;
    width: min(84vw, 320px);
    height: 100%;
    padding: 18px 14px 22px;
    overflow-y: auto;
    background: linear-gradient(180deg, #1b1b1b 0%, #101010 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 70px rgba(0, 0, 0, 0.42);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  body.mobile-menu-open .topbar-clean {
    z-index: 40;
  }

  .topbar-mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-search input {
    min-height: 46px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.09);
    color: #f5f5f5;
  }

  .mobile-menu-section,
  .mobile-nav-primary,
  .mobile-nav-secondary {
    display: grid !important;
    gap: 0;
  }

  .mobile-menu-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 2px;
    color: #8d98a8;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-menu-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-primary a,
  .mobile-nav-secondary a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #d7d7d7;
    background: transparent;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .mobile-nav-primary a:hover,
  .mobile-nav-secondary a:hover,
  .mobile-nav-primary a:active,
  .mobile-nav-secondary a:active {
    transform: translateX(1px);
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 90, 31, 0.18), rgba(255, 255, 255, 0.055));
    border-color: rgba(255, 118, 42, 0.24);
  }

  .burger-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #d8d8d8;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.92;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .burger-link-icon.is-image {
    font-size: 0;
    background: transparent;
    border: 0;
  }

  .burger-link-icon-img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    opacity: 0.88;
    filter: grayscale(0.04) brightness(1.06);
  }

  .mobile-nav-primary a:last-child,
  .mobile-nav-secondary a:last-child {
    border-bottom: 0;
  }

  .profile-hover-card {
    position: fixed !important;
    top: 72px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding: 14px !important;
    border-radius: 22px !important;
    z-index: 1300;
  }

  .profile-hover-card::before {
    display: none !important;
  }

  .profile-hover-head {
    justify-items: start;
    text-align: left;
    gap: 6px;
  }

  .profile-hover-head .avatar-giant {
    width: 52px;
    height: 52px;
  }

  .profile-hover-balance {
    padding: 12px 14px;
  }

  .profile-hover-balance strong {
    font-size: 1.2rem;
  }

  .profile-hover-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .profile-hover-grid a,
  .topbar-logout {
    min-height: 46px !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .topbar-clean .profile-menu-card {
    width: auto !important;
    right: 8px !important;
  }

  .rules-hero-panel,
  .rules-dashboard-page .rules-page-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .rules-hero-panel h1 {
    font-size: 2.2rem !important;
  }

  .rules-dashboard-page .rules-list li {
    padding: 12px 12px 12px 52px;
  }

  .forum-home-actions-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .admin-overview-grid,
  .admin-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .forum-home-actions-bar .link-button,
  .forum-section-actions .link-button,
  .thread-reply-panel .accent-button,
  .thread-reply-panel .ghost-button,
  .auth-panel .accent-button,
  .auth-panel .ghost-button,
  .auth-side-card .accent-button,
  .listing-card .accent-button,
  .listing-card .ghost-button,
  .settings-form .accent-button,
  .wallet-request-card .accent-button {
    width: 100%;
    justify-content: center;
  }

  .forum-home-promo-list {
    display: grid;
    gap: 8px;
  }

  .forum-home-promo-item {
    display: block;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .forum-home-promo-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .forum-home-hot-head,
  .section-head,
  .forum-section-headline,
  .thread-view-header,
  .message-room-head,
  .profile-main-head,
  .wallet-row,
  .wallet-row-side,
  .profile-action-row,
  .message-thread-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .forum-thread-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .forum-thread-row-main,
  .forum-thread-row-side,
  .forum-thread-author,
  .forum-card-head,
  .thread-article-head,
  .thread-article-author,
  .article-author-strip,
  .article-author-main {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
  }

  .forum-thread-row-side {
    display: none !important;
  }

  .forum-thread-row-meta,
  .thread-page-meta,
  .thread-chip-row,
  .comment-actions,
  .message-room-actions,
  .wallet-actions,
  .profile-breadcrumbs,
  .profile-section-tabs,
  .forum-section-stats,
  .forum-map-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .forum-thread-row-main {
    display: grid !important;
    gap: 6px;
    min-width: 0;
  }

  .forum-thread-row-meta {
    gap: 6px 10px;
    font-size: 0.84rem;
    color: var(--muted);
  }

  .forum-thread-row-meta a {
    color: inherit;
  }

  .thread-meta-label,
  .thread-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .thread-meta-label {
    color: #cbd5e1;
    font-weight: 600;
  }

  .thread-meta-label.subtle,
  .thread-meta-item {
    color: var(--muted);
  }

  .forum-thread-row h3,
  .thread-view-header h1,
  .forum-directory-hero h1,
  .forum-section-hero h1,
  .auth-panel-rich h1,
  .profile-main-head h1 {
    margin: 0;
    font-size: 1.45rem !important;
    line-height: 1.14;
  }

  .forum-thread-row h3 {
    font-size: 1rem !important;
    line-height: 1.28;
  }

  .thread-view-hero,
  .thread-hero-stats,
  .thread-view-grid {
    grid-template-columns: 1fr !important;
  }

  .thread-article-head,
  .thread-article-author,
  .thread-side-author {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .thread-article-author-side {
    justify-items: start !important;
  }

  .forum-thread-stream {
    display: grid;
    gap: 0;
  }

  .forum-thread-stream .forum-thread-row:first-child {
    padding-top: 6px !important;
  }

  .forum-thread-stream .forum-thread-row:last-child {
    border-bottom: 0;
    padding-bottom: 6px !important;
  }

  .forum-directory-hero .forum-home-hot-head .ghost-button {
    display: none !important;
  }

  .forum-map-card,
  .forum-card,
  .mini-card {
    min-width: 0;
  }

  .notifications-popover {
    right: -72px;
    width: min(360px, calc(100vw - 20px));
  }

  .notifications-popover-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .notifications-tabs {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .thread-view-grid,
  .forum-section-headline {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .thread-view-main,
  .thread-view-side,
  .thread-discussion-panel,
  .thread-reply-panel {
    min-width: 0;
  }

  .rich-content,
  .rich-content * {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .post-card.comment-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px !important;
  }

  .post-card.comment-card.comment-card-apple {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    border-radius: 18px !important;
  }

  .post-body.comment-body,
  .message-thread-copy {
    min-width: 0;
  }

  .post-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .comment-actions form {
    margin: 0;
  }

  .comment-action {
    min-height: 38px;
  }

  .auth-layout,
  .auth-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .auth-side-card {
    order: 2;
  }

  .auth-panel .form-stack,
  .auth-side-card .feature-list,
  .settings-form,
  .wallet-request-card,
  .message-start-card {
    min-width: 0;
  }

  .message-thread-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .message-stream {
    max-height: none;
    padding-right: 0;
  }

  .message-bubble {
    max-width: 100%;
  }

  .message-member-row,
  .settings-user-chip {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
  }

  .wallet-request-grid,
  .listing-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-hero-grid,
  .wallet-deposit-grid,
  .wallet-tab-panel,
  .wallet-operations-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-hero-stats,
  .wallet-asset-grid,
  .wallet-asset-grid.compact,
  .wallet-withdraw-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nickname-editor-grid,
  .nickname-preset-grid,
  .static-sections-grid,
  .nickname-preview-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-amount-input {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-history,
  .settings-nav,
  .message-thread-list {
    gap: 10px !important;
  }

  .thread-compose-page,
  .compose-intro-copy,
  .compose-breadcrumbs,
  .forum-directory-hero,
  .forum-section-hero {
    min-width: 0;
  }

  .compose-breadcrumbs,
  .profile-breadcrumbs {
    overflow: hidden;
    white-space: normal;
    padding-bottom: 0;
  }

  .compose-breadcrumbs {
    display: none !important;
  }

  .compose-intro-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .compose-intro-copy h1 {
    font-size: 1.2rem !important;
    line-height: 1.16;
  }

  .compose-intro-copy .section-copy {
    font-size: 0.98rem;
    line-height: 1.5;
  }

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

  .compose-title-field,
  .compose-grid-wide,
  .compose-submit,
  .compose-back-link {
    width: 100% !important;
  }

  .compose-back-link {
    justify-content: center;
  }

  .thread-compose-form-page .editor-input,
  .thread-compose-form-page .editor-surface {
    min-height: 220px !important;
  }

  .editor-toolbar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(34px, 1fr));
    gap: 8px;
  }

  .editor-toolbar .editor-tool,
  .editor-toolbar .editor-preview-toggle {
    min-width: 0;
    justify-content: center;
    padding-inline: 10px;
  }

  .compose-extra {
    padding: 12px !important;
  }

  .search-shell,
  .search-grid,
  .search-grid > * {
    min-width: 0;
  }

  .collapsible-filters:not(.is-open) {
    display: none !important;
  }

  .collapsible-filters.is-open {
    display: grid !important;
  }

  .listing-card form.inline-form,
  .listing-card .form-stack,
  .wallet-request-card form,
  .thread-reply-panel form,
  .thread-report-details .panel form {
    width: 100%;
  }

  .forum-home-stats,
  .profile-metrics-compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 1120px) {
  .market-layout,
  .market-hero,
  .market-hero-head {
    grid-template-columns: 1fr !important;
  }

  .market-filters-form {
    grid-template-columns: 1fr !important;
  }

  .market-stat-grid,
  .market-quick-strip,
  .market-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .market-listing-card {
    padding: 16px !important;
  }

  .market-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .market-stat-grid,
  .market-quick-strip,
  .market-category-grid,
  .market-card-actions {
    grid-template-columns: 1fr !important;
  }

  .market-card-head,
  .market-card-main,
  .market-hero-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .market-card-bottom {
    grid-template-columns: 1fr;
  }

  .market-card-chip-row {
    gap: 8px;
  }

  .market-card-price {
    width: fit-content;
    align-self: flex-start;
  }

  .market-card-actions-inline {
    width: 100%;
    justify-content: stretch;
  }

  .market-card-actions-inline .accent-button,
  .market-card-actions-inline .ghost-button {
    flex: 1 1 auto;
  }

  .market-seller-line {
    flex-wrap: wrap;
  }

  .market-listing-body h3,
  .market-card-title-block h3 {
    white-space: normal;
  }

  .market-shell,
  .market-filter-panel,
  .market-list-panel,
  .market-summary-card,
  .deal-control-panel {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .market-listing-dialog {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 6px 6px 18px;
  }

  .topbar-clean {
    top: 6px;
    padding: 8px !important;
  }

  .topbar-clean > .brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .topbar-quick-user {
    gap: 6px !important;
  }

  .topbar-quick-user .topbar-icon,
  .topbar-quick-user .topbar-profile {
    min-width: 36px;
    min-height: 36px;
  }

  .mobile-menu-panel {
    width: min(88vw, 320px);
    padding: 16px 12px 20px;
  }

  .forum-home-actions-bar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .forum-home-stats,
  .profile-metrics-compact,
  .forum-section-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .profile-wallet-actions,
  .profile-content-tabs {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .wallet-hero-copy h1,
  .wallet-section-head h2 {
    font-size: 1.24rem !important;
    line-height: 1.14;
  }

  .wallet-hero-stats,
  .wallet-asset-grid,
  .wallet-asset-grid.compact,
  .wallet-tabs,
  .wallet-withdraw-methods {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .nickname-preview-meta strong {
    font-size: 1.16rem !important;
  }

  .wallet-hero-panel,
  .wallet-deposit-form,
  .wallet-sidebar-card,
  .static-hero-panel,
  .static-copy-card {
    padding: 16px !important;
  }

  .wallet-dashboard-hero,
  .wallet-dashboard .wallet-deposit-form,
  .wallet-dashboard .wallet-sidebar-card {
    border-radius: 18px !important;
  }

  .wallet-dashboard .wallet-hero-copy h1 {
    font-size: 2.35rem !important;
  }

  .wallet-orange-card {
    min-height: 150px;
  }

  .wallet-method-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-thread-row-meta,
  .thread-page-meta,
  .forum-map-meta {
    font-size: 0.86rem;
  }

  .thread-view-header h1,
  .forum-directory-hero h1,
  .forum-section-hero h1,
  .auth-panel-rich h1,
  .profile-main-head h1 {
    font-size: 1.28rem !important;
  }

  .auth-center-layout {
    min-height: auto !important;
    place-items: start !important;
  }

  .auth-id-card {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .auth-id-card .auth-title-block h1 {
    font-size: 2.25rem !important;
  }

  .auth-id-plate {
    min-height: 72px;
    border-radius: 16px;
  }

  .auth-id-plate > span {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .profile-main-head p,
  .profile-main-head .profile-status,
  .profile-last-seen,
  .profile-info-card span {
    font-size: 0.94rem !important;
  }

  .profile-role-chip {
    font-size: 0.84rem !important;
  }

  .profile-metric-fold summary {
    padding: 16px !important;
  }

  .profile-metric-fold summary span {
    font-size: 0.95rem !important;
  }

  .profile-metric-fold summary strong {
    font-size: 1.2rem !important;
  }

  .forum-section-hero-compact .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-card.comment-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .message-thread-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .messages-layout-rich {
    grid-template-columns: 1fr !important;
    min-height: auto;
    gap: 12px;
  }

  .messages-layout-rich.is-list-open .message-main-apple {
    display: none;
  }

  .messages-layout-rich.is-room-open .message-sidebar-apple {
    display: none;
  }

  .messages-layout-rich.is-room-open .message-main-apple {
    display: flex;
    min-height: calc(100dvh - 92px);
    height: calc(100dvh - 92px);
  }

  .message-sidebar-apple,
  .message-main-apple {
    border-radius: 20px;
  }

  .message-sidebar-head-apple,
  .message-room-head-apple,
  .message-composer-shell,
  .message-stream-apple {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .message-sidebar-title {
    align-items: flex-start;
  }

  .message-sidebar-title h1 {
    font-size: 1.25rem;
  }

  .message-thread-list-apple {
    max-height: none;
    padding: 10px;
  }

  .message-room-shell {
    min-height: 0;
    height: 100%;
  }

  .message-room-head-apple {
    align-items: center;
    gap: 10px;
    padding-top: 12px !important;
    padding-bottom: 10px !important;
    padding-right: 68px !important;
  }

  .message-room-identity {
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .message-room-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .message-room-copy h2 {
    font-size: 1rem;
  }

  .message-room-copy .eyebrow {
    margin-bottom: 4px;
  }

  .message-mobile-back {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .message-room-utility {
    gap: 10px;
    top: 12px;
    right: 14px;
  }

  .message-room-popover {
    width: min(248px, calc(100vw - 48px));
    right: 0;
  }

  .message-room-searchbar {
    padding: 10px 14px 0;
  }

  .message-stream-apple {
    gap: 12px;
    min-height: 0;
    max-height: none;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .message-line,
  .message-line.is-own {
    max-width: 100%;
  }

  .message-line {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .message-line-avatar {
    width: 34px;
    height: 34px;
  }

  .message-bubble {
    border-radius: 18px;
    padding: 12px 14px;
  }

  .message-meta-pack {
    justify-content: flex-start;
    gap: 6px;
  }

  .message-delivery-status {
    font-size: 0.7rem;
    padding: 3px 7px;
  }

  .message-attachment-gallery {
    grid-template-columns: 1fr;
  }

  .message-composer-card-apple {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    border-radius: 16px;
    padding: 8px 8px 8px 12px;
  }

  .message-composer-card-apple textarea {
    min-height: 24px;
    max-height: 84px;
    padding-top: 6px;
  }

  .message-composer-actions-apple {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .message-attach-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .message-send-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .message-empty-room-apple {
    min-height: 240px;
  }

  .pagination {
    gap: 8px;
  }

  .page-chip {
    min-width: 40px;
    padding: 8px 12px;
  }
}
