@media (max-width: 767px) {
  body.nitrugen-route-account,
  body.nitrugen-route-community,
  body.nitrugen-route-plans,
  body.nitrugen-route-shorts {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.nitrugen-route-account .account-app,
  body.nitrugen-route-account .account-shell,
  body.nitrugen-route-account .account-content,
  body.nitrugen-route-community .community-app,
  body.nitrugen-route-community .community-shell,
  body.nitrugen-route-plans .plans-app,
  body.nitrugen-route-plans .plans-page-content,
  body.nitrugen-route-shorts .shorts-shell,
  body.nitrugen-route-shorts .shorts-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.nitrugen-route-account .account-content {
    padding-inline: 12px !important;
  }

  body.nitrugen-route-account .account-profile-hero {
    min-height: 292px !important;
  }

  body.nitrugen-route-account .account-stats {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body.nitrugen-route-account .account-stats .stat-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 96px !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 11px !important;
    padding: 15px !important;
  }

  body.nitrugen-route-account .stat-card > div {
    min-width: 0 !important;
  }

  body.nitrugen-route-account .stat-card small {
    font-size: 10px !important;
    line-height: 1.7 !important;
  }

  body.nitrugen-route-account .stat-card strong {
    overflow-wrap: anywhere !important;
    font-size: clamp(18px, 5.7vw, 23px) !important;
    line-height: 1.45 !important;
  }

  body.nitrugen-route-account .stat-card p {
    font-size: 9px !important;
    line-height: 1.7 !important;
  }

  body.nitrugen-route-account .account-dashboard-grid,
  body.nitrugen-route-account .account-primary-column,
  body.nitrugen-route-account .account-secondary-column,
  body.nitrugen-route-account .account-panel {
    min-width: 0 !important;
  }

  body.nitrugen-route-community .community-shell {
    padding: 18px 12px 110px !important;
  }

  body.nitrugen-route-community .community-layout,
  body.nitrugen-route-community .community-primary,
  body.nitrugen-route-community .community-side,
  body.nitrugen-route-community .community-section,
  body.nitrugen-route-community .community-composer,
  body.nitrugen-route-community .community-feed-shell,
  body.nitrugen-route-community .community-directory-block {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.nitrugen-route-community .community-tabs {
    max-width: 100% !important;
    gap: 6px !important;
    padding: 6px !important;
    overscroll-behavior-inline: contain !important;
    scroll-padding-inline: 6px !important;
    touch-action: pan-x pan-y !important;
  }

  body.nitrugen-route-community .community-tabs button {
    min-height: 44px !important;
    padding-inline: 15px !important;
    font-size: 11px !important;
  }

  body.nitrugen-route-community .recommendation-rail {
    width: auto !important;
    max-width: none !important;
    margin-inline: -18px !important;
    padding-inline: 18px !important;
    overscroll-behavior-inline: contain !important;
    scroll-padding-inline: 18px !important;
    touch-action: pan-x pan-y !important;
  }

  body.nitrugen-route-community .recommendation-card {
    flex: 0 0 clamp(168px, 62%, 200px) !important;
    min-width: 0 !important;
  }

  body.nitrugen-route-community .recommendation-card h3 {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  body.nitrugen-route-community .recommendation-card small,
  body.nitrugen-route-community .recommendation-card b {
    font-size: 8.5px !important;
  }

  body.nitrugen-route-community .recommendation-card > p {
    min-height: 0 !important;
    padding: 12px !important;
    font-size: 9.5px !important;
    line-height: 1.85 !important;
  }

  body.nitrugen-route-community .community-section > header h2,
  body.nitrugen-route-community .community-side h2,
  body.nitrugen-route-community .community-feed-shell > header h2 {
    font-size: clamp(19px, 5.8vw, 22px) !important;
    line-height: 1.55 !important;
  }

  body.nitrugen-route-community .community-empty {
    min-height: 132px !important;
    place-content: center !important;
    padding: 24px 18px !important;
    font-size: 11px !important;
    line-height: 1.9 !important;
  }

  body.nitrugen-route-community .community-composer button,
  body.nitrugen-route-community .recommendation-form button,
  body.nitrugen-route-community .community-feed-composer button,
  body.nitrugen-route-community .community-club-hero button {
    min-height: 44px !important;
    font-size: 10px !important;
  }

  body.nitrugen-route-community .community-comments textarea,
  body.nitrugen-route-community .community-composer textarea,
  body.nitrugen-route-community .community-feed-composer textarea {
    min-height: 46px !important;
    font-size: 11px !important;
  }

  body.nitrugen-route-plans .plans-page-content,
  body.nitrugen-route-plans .plans-page-content.sidebar-is-collapsed {
    margin-right: 0 !important;
    padding-inline: 12px !important;
  }

  body.nitrugen-route-plans .plans-page-intro,
  body.nitrugen-route-plans .plans-page-notice,
  body.nitrugen-route-plans .home-plans-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.nitrugen-route-plans .plans-page-intro h1 {
    overflow-wrap: anywhere !important;
    font-size: clamp(28px, 9vw, 34px) !important;
  }

  body.nitrugen-route-plans .home-plans-section {
    padding-inline: 18px !important;
  }

  body.nitrugen-route-plans .plans-rail {
    width: auto !important;
    max-width: none !important;
    grid-auto-columns: min(84vw, 320px) !important;
    margin-inline: -12px !important;
    padding-inline: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-inline: contain !important;
    scroll-padding-inline: 12px !important;
    touch-action: pan-x pan-y !important;
  }

  body.nitrugen-route-plans .home-plan-card,
  body.nitrugen-route-plans .home-plan-card.is-featured {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 390px !important;
    padding: 21px !important;
  }

  body.nitrugen-route-plans .home-plan-card header small,
  body.nitrugen-route-plans .home-plan-card header p span,
  body.nitrugen-route-plans .plans-heading > span {
    font-size: 9px !important;
  }

  body.nitrugen-route-plans .home-plan-card li {
    font-size: 11px !important;
    line-height: 1.65 !important;
  }

  body.nitrugen-route-plans .home-plan-card > a {
    min-height: 46px !important;
    font-size: 11px !important;
  }

  body.nitrugen-route-plans .plan-billing button {
    min-height: 44px !important;
    font-size: 10px !important;
  }

  body.nitrugen-route-shorts .shorts-loading,
  body.nitrugen-route-shorts .shorts-empty {
    min-height: calc(100dvh - 170px) !important;
    padding: 20px !important;
  }

  body.nitrugen-route-shorts .shorts-loading span,
  body.nitrugen-route-shorts .shorts-empty p {
    max-width: 280px !important;
    font-size: 10px !important;
    line-height: 1.9 !important;
  }

  body.nitrugen-route-shorts .shorts-empty h2 {
    font-size: clamp(19px, 6vw, 23px) !important;
    line-height: 1.55 !important;
  }

  body.nitrugen-route-shorts .shorts-empty a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-app {
    background: radial-gradient(circle at 15% 8%, rgba(var(--accent-rgb), .1), transparent 25%), #eaf1f8 !important;
    color: #1b2c40 !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-hero,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-composer,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-section,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-side > section,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-tabs,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-directory-block,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-feed-shell,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-feed-card {
    border-color: rgba(25, 50, 76, .1) !important;
    background: rgba(255, 255, 255, .68) !important;
    color: #1b2c40 !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-cover {
    background: linear-gradient(105deg, rgba(246, 250, 253, .98), rgba(233, 243, 251, .8), rgba(var(--accent-rgb), .12)) !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-identity p,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-post__text,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-feed-card,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-community .community-empty {
    color: #51647a !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .plans-app {
    background: radial-gradient(circle at 78% -8%, rgba(var(--accent-rgb), .12), transparent 28rem), linear-gradient(140deg, #eef3f9, #f8fafc 48%, #e9eff7) !important;
    color: #202b3e !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .plans-page-intro h1,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .plans-heading h2,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .home-plan-card header h3 {
    color: #202b3e !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .home-plans-section,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .home-plan-card {
    border-color: rgba(34, 48, 70, .09) !important;
    color: #273246 !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .home-plans-section {
    background: linear-gradient(155deg, #fff, #edf2f8) !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .home-plan-card {
    background: rgba(255, 255, 255, .76) !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .home-plan-card li,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .plans-page-intro p,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-plans .plans-heading p {
    color: #5f6d81 !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-shorts .shorts-shell {
    background: radial-gradient(circle at 32% 20%, rgba(var(--accent-rgb), .1), transparent 34%), #eaf1f8 !important;
    color: #14243a !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-shorts .shorts-loading span,
  html[data-nitrugen-appearance="light"] body.nitrugen-route-shorts .shorts-empty p {
    color: #566a82 !important;
  }

  html[data-nitrugen-appearance="light"] body.nitrugen-route-account .account-app {
    color-scheme: light !important;
  }
}

@media (max-width: 359px) {
  body.nitrugen-route-account .account-profile-hero {
    min-height: 272px !important;
    padding-inline: 17px !important;
  }

  body.nitrugen-route-account .profile-identity {
    right: 17px !important;
    left: 17px !important;
    gap: 11px !important;
  }

  body.nitrugen-route-account .profile-avatar-large {
    width: 72px !important;
    height: 72px !important;
  }

  body.nitrugen-route-community .community-identity {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.nitrugen-route-community .community-identity > img {
    width: 68px !important;
    height: 68px !important;
    border-radius: 22px !important;
  }

  body.nitrugen-route-community .community-identity h1 {
    overflow-wrap: anywhere !important;
    font-size: 24px !important;
  }

  body.nitrugen-route-community .community-tabs button {
    padding-inline: 12px !important;
  }

  body.nitrugen-route-community .community-comment.is-reply,
  body.nitrugen-route-community .short-comment.is-reply {
    margin-right: 24px !important;
  }

  body.nitrugen-route-plans .home-plans-section {
    padding-inline: 15px !important;
  }

  body.nitrugen-route-plans .plans-rail {
    grid-auto-columns: min(86vw, 286px) !important;
    margin-inline: -9px !important;
    padding-inline: 9px !important;
  }

  body.nitrugen-route-shorts .short-card__bottom {
    right: 14px !important;
    left: 66px !important;
  }

  body.nitrugen-route-shorts .short-card__actions {
    left: 8px !important;
  }

  body.nitrugen-route-shorts .short-action {
    width: 46px !important;
  }

  body.nitrugen-route-shorts .short-card__content {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }

  body.nitrugen-route-shorts .short-card__content > span:last-child {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nitrugen-route-account *,
  body.nitrugen-route-community *,
  body.nitrugen-route-plans *,
  body.nitrugen-route-shorts * {
    scroll-behavior: auto !important;
  }
}
