/* Mobile layout baseline designed for a 430 px viewport. */
@media (max-width: 800px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  body {
    padding-right: env(safe-area-inset-right, 0);
    padding-left: env(safe-area-inset-left, 0);
  }

  .app-shell,
  .public-shell,
  .layout,
  .main-column,
  .main-column > *,
  .card,
  .content-card,
  .post-card,
  .page-header,
  .chat-card {
    min-width: 0;
    max-width: 100%;
  }

  img,
  video,
  audio,
  iframe,
  canvas,
  input,
  textarea,
  select {
    max-width: 100%;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
  }

  .topbar-actions,
  .user-chip,
  .brand,
  .global-search {
    min-width: 0;
  }

  .settings-menu,
  .mood-picker form {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 88px);
  }

  .page-header > *,
  .friends-header-actions,
  .inline-search,
  .inline-search input,
  .stack-form,
  .field-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .post-card,
  .content-card,
  .page-header,
  .chat-card,
  .member-card,
  .community-card,
  .empty-state {
    overflow-wrap: anywhere;
  }

  .post-author-copy,
  .post-copy,
  .comment-copy,
  .community-info,
  .conversation-copy,
  .notification-copy,
  .message-bubble,
  .message-file,
  .message-location {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .post-actions {
    gap: 8px 12px;
  }

  .post-reaction-picker {
    width: min(278px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
  }

  .attachment-menu,
  .chat-action-menu,
  .post-menu,
  .media-item-menu > div,
  .photo-item-menu > div {
    max-width: calc(100vw - 24px);
  }

  .message-thread {
    min-height: clamp(320px, 52dvh, 560px);
    max-height: 62dvh;
  }

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

  .message-audio,
  .message-file,
  .message-location {
    width: 100%;
    min-width: 0;
  }

  .message-attachment-grid .message-image,
  .message-attachment-grid .message-video {
    height: auto;
    min-height: 120px;
    max-height: 260px;
  }

  .chat-form {
    padding-bottom: max(13px, env(safe-area-inset-bottom, 0));
  }

  .photos-gallery-cell,
  .photos-gallery-item,
  .video-card,
  .music-track-row {
    min-width: 0;
  }

  .photo-viewer {
    padding: 0;
  }

  .photo-viewer-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(42dvh, 1fr) minmax(0, 48dvh);
    border: 0;
    border-radius: 0;
  }

  .photo-viewer-stage {
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .photo-viewer-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .photo-viewer-sidebar {
    width: 100%;
    min-width: 0;
    height: 48dvh;
    max-height: 48dvh;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .photo-viewer-description {
    display: none;
  }

  .photo-viewer-comments {
    display: block;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
  }

  .photo-viewer-comment-form {
    padding: 10px 10px max(10px, env(safe-area-inset-bottom, 0));
  }

  .photo-viewer-author,
  .photo-viewer-actions {
    flex: 0 0 auto;
  }

  .photo-viewer-nav {
    width: 42px;
    height: 42px;
  }

  .photo-viewer-prev {
    left: 8px;
  }

  .photo-viewer-next {
    right: 8px;
  }
}

@media (max-width: 520px) {
  .app-shell,
  .public-shell {
    width: calc(100% - 12px);
    margin-right: auto;
    margin-left: auto;
  }

  .topbar {
    grid-template-columns: 40px 40px 40px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .mobile-menu-button,
  .brand-mark,
  .global-search,
  .settings-button,
  .notification-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .topbar-actions {
    justify-content: flex-end;
    gap: 5px;
  }

  .mood-picker summary {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 16px;
  }

  .mood-picker summary span,
  .user-chip {
    display: none;
  }

  .topbar.global-search-open .global-search {
    width: auto;
    position: absolute;
    inset: 6px;
    z-index: 120;
    background: var(--focus-surface);
  }

  .global-search.is-open input {
    width: 100%;
  }

  .global-search-panel {
    max-height: min(520px, calc(100dvh - 82px));
    padding: 10px;
    border-radius: 13px;
  }

  .global-search-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-search-tab {
    min-height: 34px;
    font-size: 10px;
  }

  .page-header,
  .post-card,
  .content-card {
    padding: 14px;
  }

  .post-quote-card {
    padding: 11px;
    gap: 9px;
    border-radius: 12px;
  }

  .post-quote-source {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
  }

  .post-quote-avatar,
  .post-quote-avatar > img,
  img.post-quote-avatar {
    width: 34px;
    height: 34px;
  }

  .post-quote-text {
    font-size: 12px;
  }

  .post-quote-media {
    max-height: 220px;
  }

  .post-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .post-form-actions > .attachment-menu-wrap,
  .post-form-actions > .post-visibility-control {
    width: 100%;
    min-width: 0;
  }

  .post-form-actions .file-button {
    width: 100%;
    margin: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .post-form-actions .post-visibility-control select {
    width: 100%;
    min-width: 0;
  }

  .post-form-actions > button[type="submit"] {
    width: 100%;
    grid-column: 1 / -1;
    justify-content: center;
    white-space: nowrap;
  }

  .page-header h1,
  .photos-hero h1 {
    font-size: 24px;
  }

  .button,
  button,
  summary {
    touch-action: manipulation;
  }

  .inline-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .friends-header-actions > .button,
  .music-page-header > .button,
  .video-page-header > .button {
    width: 100%;
  }

  .community-card {
    min-height: 0;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .community-cover {
    width: 68px;
    height: 68px;
  }

  .community-info {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "title" "description" "meta" "action";
    gap: 4px;
  }

  .community-info h2 {
    font-size: 15px;
  }

  .community-info > .button {
    width: fit-content;
    margin-top: 4px;
    justify-self: start;
  }

  .profile-media-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .profile-media-tabs button {
    min-width: 68px;
    flex: 0 0 auto;
  }

  .member-card > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    width: 100%;
  }

  .member-card > div .button {
    min-width: 0;
    justify-content: center;
  }

  .friend-state-button {
    width: 44px;
  }

  .message-thread {
    padding: 10px;
  }

  .message-bubble {
    max-width: 94%;
    padding-right: 34px;
  }

  .message-attachment-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .attachment-menu {
    width: calc(100vw - 32px);
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom, 0));
    left: 16px;
  }

  /* Базовое правило композера задаёт меню top: 100%. Для fixed-меню на
     мобильном это помещало весь список ниже видимой области экрана. */
  .post-form .attachment-menu {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom, 0));
  }

  .inbox-filters {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .inbox-filters a {
    flex: 0 0 auto;
  }

  .photo-viewer-author {
    padding: 10px;
  }

  .photo-viewer-actions {
    padding: 8px 10px;
  }

  .photo-viewer-comments {
    padding: 10px;
  }
}

/* Новые сценарии сообщений: управлять ими удобно и на узком экране. */
@media (max-width: 700px) {
  select:not([multiple]):not([size]) {
    min-height: 42px;
    padding-right: 40px;
    background-position: right 13px center;
    font-size: 16px;
  }

  .message-header-actions {
    width: 100%;
    gap: 6px;
    justify-content: stretch;
  }

  .message-header-actions .button {
    min-height: 40px;
    flex: 1 1 132px;
  }

  .inbox-notification-panel {
    min-height: 44px;
    padding: 5px 6px 5px 12px;
    gap: 8px;
  }

  .inbox-notification-panel .inbox-notification-action {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .section-overview > summary {
    min-height: 56px;
    padding: 0 15px;
  }

  .section-overview > summary h1 {
    font-size: 18px;
  }

  .section-overview-content.page-header {
    padding: 16px;
    gap: 15px;
  }

  .section-overview-body {
    padding: 15px 16px 16px;
  }

  .section-overview-composer {
    padding: 0 16px 16px;
  }

  .section-overview-actions,
  .section-overview-actions.is-single {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-overview-actions.is-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-overview-actions .button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 10px;
  }

  .section-overview-search {
    padding: 8px;
  }

  .section-overview > .section-overview-search {
    margin: 0 16px 16px;
  }

  .section-overview-search > form {
    padding-left: 10px;
  }

  .section-overview-search input {
    font-size: 16px;
  }

  .section-overview-search form .button {
    min-height: 38px;
    padding-inline: 11px;
  }

  .inbox-channel-result {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 9px;
  }

  .inbox-channel-result .conversation-kind-icon {
    width: 38px;
    height: 38px;
  }

  .inbox-channel-result > b {
    grid-column: 2;
  }

  .conversation-row-shell {
    align-items: stretch;
  }

  .conversation-row-shell .conversation-row {
    min-height: 74px;
    padding: 13px 10px 13px 13px;
  }

  .conversation-row-shell > .chat-menu-wrap {
    margin: 0 6px 0 0;
    display: flex;
    align-items: center;
  }

  .conversation-row-shell .chat-menu-button {
    width: 42px;
    height: 42px;
  }

  .inbox-filters {
    margin-inline: -2px;
    padding: 5px;
    flex-wrap: nowrap;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 4px;
  }

  .inbox-filters::-webkit-scrollbar {
    display: none;
  }

  .inbox-filters a {
    min-height: 38px;
    padding-inline: 11px;
    white-space: nowrap;
  }

  .inbox-filter-separator {
    display: none;
  }

  .message-reactions {
    gap: 5px;
  }

  .message-footer {
    gap: 4px;
  }

  .message-footer .message-reactions {
    align-items: flex-end;
    gap: 3px;
  }

  .message-footer .message-reaction-summary {
    gap: 3px;
  }

  .message-footer .message-reaction-chip {
    min-height: 24px;
    padding: 3px 5px;
    border-radius: 8px;
  }

  .message-footer .message-reaction-emoji {
    font-size: 13px;
  }

  .message-footer .message-reaction-count {
    font-size: 9px;
  }

  .message-footer .message-reaction-add {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 15px;
  }

  .message-reaction-picker {
    --message-picker-cell: 34px;
    width: max-content;
    max-width: calc(100vw - 36px);
  }

  .message-reaction-picker button {
    width: var(--message-picker-cell);
    height: var(--message-picker-cell);
  }

  .music-track-row {
    min-height: 62px;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    gap: 9px;
  }

  .music-track-play {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
  }

  .music-track-actions {
    min-width: 34px;
    justify-self: end;
    justify-content: flex-end;
  }

  .music-track-actions time {
    display: none;
  }

  .music-track-actions .media-item-menu > summary {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  .message-delivery-failure-menu {
    right: -4px;
    width: min(174px, calc(100vw - 36px));
  }

  .message-video-note {
    width: min(210px, 66vw);
  }

  .channel-comment-form {
    gap: 6px;
  }

  .channel-comment-form input {
    min-height: 38px;
    font-size: 16px;
  }

  .channel-comment-form button {
    width: 40px;
    min-height: 38px;
  }

  .chat-action-menu {
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .chat-action-menu button {
    min-height: 44px;
    font-size: 12px;
  }

  .conversation-create-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .conversation-create-heading h1 {
    font-size: 29px;
  }

  .conversation-type-grid,
  .conversation-fields-grid,
  .conversation-members-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-type-option {
    min-height: 68px;
    padding: 11px;
  }

  .conversation-type-option {
    grid-template-columns: 18px 36px minmax(0, 1fr) 18px;
  }

  .conversation-members-field {
    padding: 12px;
  }

  .conversation-member-search {
    min-height: 44px;
  }

  .conversation-member-search input {
    font-size: 16px;
  }

  .conversation-members-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .conversation-member-option {
    min-height: 48px;
  }

  .conversation-create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .conversation-create-actions .button {
    width: 100%;
    min-height: 46px;
  }

  .conversation-comments-option {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 11px;
  }

  .moderation-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .moderation-tabs a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .support-request-card {
    padding: 14px;
  }

  .support-request-actions,
  .support-request-actions form {
    width: 100%;
  }

  .support-request-actions form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .support-request-actions select,
  .support-request-actions .button {
    width: 100%;
    min-height: 42px;
  }

  .conversation-manage-card { padding: 16px; }
  .conversation-manage-section { padding: 14px; }
  .conversation-member-add { align-items: stretch; flex-direction: column; }
  .conversation-manage-member-search { width: 100%; min-width: 0; }
  .conversation-member-add .button { width: 100%; min-height: 42px; }
  .conversation-manage-member { grid-template-columns: 30px minmax(0, 1fr); }
  .conversation-manage-member-actions { grid-column: 1 / -1; width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .conversation-manage-member-actions form { min-width: 0; flex: 1 1 160px; }
  .conversation-manage-member-actions select { min-width: 0; flex: 1; max-width: none; }
  .conversation-delete-zone { align-items: flex-start; flex-direction: column; }
  .conversation-delete-zone .conversation-delete-link { width: auto; min-height: 38px; justify-content: center; }
  .conversation-delete-card .conversation-delete-link { width: 100%; min-height: 44px; justify-content: center; }

  .voice-recorder-panel {
    align-items: stretch;
  }

  .voice-recorder-panel > span:nth-child(2) {
    min-width: 0;
  }

  .voice-recorder-panel .button {
    flex: 1 1 130px;
  }

  .birth-date-widget {
    grid-template-columns: minmax(70px, .75fr) minmax(0, 1.35fr) minmax(84px, .9fr);
    gap: 6px;
  }

  .birth-date-widget input,
  .birth-date-widget select {
    min-height: 44px;
    padding-inline: 9px;
  }
}

/* Composer action icons retain their compact layout after the generic mobile
   select skin is applied. */
@media (max-width: 520px) {
  .post-form-actions { display: flex; }
  .post-form-actions > .attachment-menu-wrap,
  .post-form-actions .file-button,
  .post-form-actions > .post-visibility-control {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .post-form-actions > button[type="submit"] {
    width: auto;
    grid-column: auto;
    flex: 0 0 auto;
  }
  .post-form-actions .post-visibility-control select,
  .post-form-actions .post-visibility-control .post-visibility-select {
    min-height: 0;
    height: 100%;
    padding: 0;
    font-size: 0;
  }

  .channel-short-link-card {
    align-items: stretch;
    flex-direction: column;
  }

  .channel-short-link-card button {
    min-height: 38px;
    justify-content: center;
  }

  .channel-share-modal {
    padding: 0;
    align-items: end;
  }

  .channel-share-dialog {
    width: 100%;
    max-height: min(84dvh, 760px);
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .channel-share-header {
    padding: 14px;
  }

  .channel-share-header small {
    max-width: 235px;
  }

  .channel-share-tabs {
    padding-inline: 14px;
    gap: 18px;
  }

  .channel-share-tabs button {
    min-height: 46px;
    font-size: 12px;
  }

  .channel-share-panel {
    padding: 13px 14px 16px;
  }

  .channel-share-choice > span {
    min-height: 60px;
  }

  .channel-share-choice strong {
    font-size: 12px;
  }

  .channel-share-target {
    padding-left: 0;
  }

  .channel-share-target select {
    min-height: 44px;
    font-size: 16px;
  }

  .channel-share-submit {
    width: 100%;
    min-height: 44px;
  }

  .channel-share-copy-panel > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-share-copy-panel input,
  .channel-share-copy-panel .button {
    min-height: 44px;
    font-size: 14px;
  }

  .video-share-modal {
    padding: 0;
    align-items: end;
  }

  .video-share-dialog {
    width: 100%;
    max-height: min(84dvh, 760px);
    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .video-share-header {
    padding: 14px;
  }

  .video-share-header small {
    max-width: 235px;
  }

  .video-share-panel {
    padding: 13px 14px 16px;
  }

  .video-share-choice > span {
    min-height: 60px;
  }

  .video-share-choice strong {
    font-size: 12px;
  }

  .video-share-target {
    padding-left: 0;
  }

  .video-share-target select {
    min-height: 44px;
    font-size: 16px;
  }

  .video-share-submit {
    width: 100%;
    min-height: 44px;
  }
}



/* Channel photo thumbnails and image-only viewer. */
@media (max-width: 520px) {
  .channel-chat-card .channel-publication .channel-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .channel-chat-card .channel-publication .channel-photo-thumb {
    height: 132px;
    padding: 4px;
    border-radius: 9px;
  }

  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb.is-landscape,
  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb.is-square {
    height: auto;
  }

  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb.is-landscape img,
  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb.is-square img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb.is-portrait {
    height: min(70dvh, 500px);
  }

  .channel-chat-card .channel-publication .channel-photo-grid:has(.channel-photo-thumb:only-child) .channel-photo-thumb.is-portrait img {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  .channel-photo-viewer {
    padding: 0;
  }

  .channel-photo-viewer-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .channel-photo-viewer-image {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
    padding: 0;
    object-fit: contain !important;
    object-position: center;
  }

  .channel-photo-viewer-nav {
    width: 40px;
    height: 52px;
  }
}

/* Keep the action groups on one baseline, including mobile Safari. */
@media (max-width: 800px) {
  .chat-form[data-message-form] .chat-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  .chat-form[data-message-form] .chat-tools > .attachment-menu-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
  .chat-form[data-message-form] .chat-send-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    margin-left: auto;
  }
  .chat-form[data-message-form] .chat-tools .attachment-trigger,
  .chat-form[data-message-form] .chat-tools .chat-voice-button,
  .chat-form[data-message-form] .chat-tools .chat-video-button {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    line-height: 1;
  }
  .chat-form[data-message-form] .chat-tools .chat-submit {
    flex: 0 0 96px;
    width: 96px;
    height: 36px;
    margin: 0;
    white-space: nowrap;
  }
  .chat-form[data-message-form] .video-recorder-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .chat-form[data-message-form] .video-recorder-panel[hidden] { display: none; }
  .video-recorder-panel .voice-recorder-pulse { display: none; }
  .video-recorder-panel > span:nth-child(2),
  .video-recorder-panel .video-recorder-preview { grid-column: 1 / -1; }
  .video-recorder-panel .video-recorder-preview { justify-self: center; width: min(240px, 100%); height: auto; aspect-ratio: 1; }
}

/* Translation preserves the document flow, so the feed never jumps. */
@media (max-width: 800px) {
  .topbar { transition: transform 180ms ease, opacity 180ms ease; }
  .topbar.is-scroll-hidden {
    transform: translateY(calc(-100% - 32px - env(safe-area-inset-top, 0px)));
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}
