#mobile-fullscreen-btn {
  display: none;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  box-shadow: none;
}
#mobile-fullscreen-btn:active {
  border: 2px inset #808080;
}
#mobile-fullscreen-btn[hidden],
body.in-game #mobile-fullscreen-hint {
  display: none !important;
}
.mobile-fullscreen-icon {
  color: #3d3d3d;
  font-size: 20px;
  line-height: 1;
}

/* Mobile homepage and FiStore sizing derived from real phone captures.
   Keep the fixed homepage chrome compact so it cannot crowd out content;
   larger gameplay touch targets are handled by the in-game HUD. */
@media (hover: none) and (pointer: coarse) {
  #landing {
    height: 100dvh;
    min-height: 100dvh;
    justify-content: center;
    padding:
      calc(env(safe-area-inset-top, 0px) + 10px)
      max(8px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 44px)
      max(8px, env(safe-area-inset-left, 0px));
    scrollbar-gutter: auto;
  }
  #login-window {
    width: min(400px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 56px);
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
  }
  #login-window > .win95-title-bar {
    flex: 0 0 auto;
  }
  #login-window > .win95-content {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .landing-panel {
    --landing-action-height: 32px;
    --landing-button-font-size: 11px;
    --landing-social-button-width: min(88px, 28vw);
  }
  .landing-account-top-btn,
  .landing-account-action-btn,
  .landing-auth-btn {
    min-height: 32px !important;
  }
  .landing-panel:not(.is-authenticated) .landing-auth-btn {
    height: 34px;
    min-height: 34px !important;
  }
  #join-btn,
  .landing-panel:not(.is-authenticated) #join-btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .landing-referral-copy-btn,
  #landing-friends-toggle-btn.landing-social-title-toggle {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px;
  }
  .landing-social-panel.is-expanded {
    width: min(560px, calc(100vw - 12px));
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 12px);
  }
  .landing-social-panel.is-expanded .landing-social-content {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 52px);
    overflow: hidden;
  }
  .landing-social-scroll,
  #landing-friends-list {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #landing-friends-list {
    max-height: none;
  }
  .landing-social-row {
    flex: 0 0 auto;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "avatar copy"
      "actions actions";
    align-items: center;
    gap: 4px 6px;
    min-height: 0;
    padding: 5px;
  }
  .landing-social-avatar {
    grid-area: avatar;
    width: 28px;
    height: 28px;
  }
  .landing-social-copy {
    grid-area: copy;
  }
  .landing-social-actions {
    grid-area: actions;
    display: flex;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: stretch;
    flex-wrap: wrap;
    gap: 4px;
  }
  .landing-social-actions .landing-social-btn {
    flex: 1 1 56px;
    width: auto;
    min-width: 52px;
    height: 30px;
    min-height: 30px;
    padding: 3px 6px;
    font-size: 10px;
  }
  .landing-social-actions .landing-social-btn.landing-social-remove-btn {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    margin-left: 0;
  }
  .landing-social-add-input {
    height: 30px;
  }
  .landing-social-add-input,
  .landing-social-add-row .landing-social-btn,
  .landing-social-tab {
    min-height: 30px;
  }
  #social-links-panel {
    bottom: max(2px, env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 3px;
    width: max-content;
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 8px);
    padding: 3px 4px;
    overflow: hidden;
  }
  .social-links-row {
    flex-wrap: nowrap;
    gap: 3px;
  }
  #social-links-panel > .social-links-row:first-child {
    flex: 0 0 auto;
  }
  #social-links-panel:has(#social-links-dropdown:not([hidden])) {
    width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 8px);
  }
  #social-links-dropdown {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  #social-links-dropdown::-webkit-scrollbar {
    display: none;
  }
  #social-links-panel .footer-link-btn {
    min-height: 28px;
    padding: 0 7px;
    font-size: 11px;
  }
  #social-links-panel .footer-link-btn .footer-link-icon {
    width: 14px;
    height: 14px;
  }
  #homepage-music-toggle,
  #discord-social-btn,
  #reddit-social-btn,
  #x-social-btn,
  #homepage-logout-btn,
  #settings-btn,
  #mobile-fullscreen-btn,
  #social-links-toggle {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }
  #mobile-fullscreen-btn:not([hidden]) {
    display: flex;
  }
  #mobile-fullscreen-hint {
    position: fixed;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 42px);
    left: max(8px, env(safe-area-inset-left, 0px));
    z-index: 1001;
    width: min(420px, calc(100vw - 16px));
    margin: 0 auto;
    padding: 8px 10px;
    border: 2px outset #ffffff;
    background: #ffffe1;
    color: #111111;
    box-sizing: border-box;
    box-shadow: 1px 1px 0 #000000;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
  }
  #mobile-fullscreen-hint[hidden] {
    display: none !important;
  }

  .fist-store-overlay {
    align-items: stretch;
    justify-content: flex-start;
    padding:
      calc(env(safe-area-inset-top, 0px) + 3px)
      max(3px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 3px)
      max(3px, env(safe-area-inset-left, 0px));
  }
  .fist-store-window {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
  }
  .fist-store-window > .fister-react95-title-bar {
    min-height: 28px;
    margin-bottom: 2px;
    box-sizing: border-box;
  }
  .fist-store-window .fister-react95-title-button {
    width: 28px !important;
    min-width: 28px !important;
    height: 24px !important;
    min-height: 24px !important;
  }
  .fist-store-tab {
    min-height: 32px;
    padding: 4px 7px;
    font-size: 11px;
  }
  .fist-store-layout {
    min-width: 0;
    overflow: hidden;
  }
  .fist-store-preview-column {
    min-width: 0;
  }
  .fist-store-wallet-panel {
    gap: 2px;
    padding: 2px;
    overflow: hidden;
  }
  .fist-store-wallet-display {
    min-height: 28px;
    padding: 2px;
    overflow: hidden;
  }
  .fister-react95-button.fist-store-wallet-button {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    font-size: 20px;
  }
  .fist-store-wallet-panel strong {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 2px;
    font-size: clamp(10px, 3.2vw, 13px);
    line-height: 1;
    overflow: hidden;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  .fist-store-wallet-amount {
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fist-store-wallet-panel .fist-store-token-icon {
    width: 14px;
    height: 14px;
  }
  .fist-store-category-switcher {
    height: 42px;
    min-height: 42px;
    padding: 2px;
  }
  .fist-store-category-btn,
  .fist-store-vote-upload-cta {
    min-height: 34px;
    padding: 3px 7px;
    font-size: 10px;
  }
  .fist-store-filter-bar,
  .fist-store-vote-filter-bar {
    height: 36px;
    min-height: 36px;
    padding: 1px 3px;
    align-items: center;
  }
  .fist-store-filter-control {
    flex-basis: 124px;
    grid-template-rows: 9px 20px;
  }
  .fist-store-filter-search {
    flex-basis: 156px;
  }
  .fist-store-filter-control .fist-store-filter-select,
  .fist-store-filter-control .fist-store-filter-input,
  .fist-store-checkbox-row {
    height: 20px;
    min-height: 20px;
    font-size: 10px;
  }
  .fist-store-card-grid {
    --fist-store-card-min-width: 160px;
    --fist-store-card-preview-size: min(164px, calc(100% - 8px));
    --fist-store-card-height: 220px;
    --fist-store-card-admin-height: 258px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .fist-store-card,
  .fist-store-offer-card {
    min-height: var(--fist-store-card-height);
  }
  .fist-store-offer-card.has-admin-tools,
  .fist-store-vote-card.has-admin-tools {
    min-height: var(--fist-store-card-admin-height);
  }
  .fist-store-hold-meter {
    flex-basis: 40px;
    height: 40px;
    min-height: 40px;
  }
  .fist-store-hold-meter-label {
    font-size: 12px;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fist-store-layout {
    grid-template-rows: clamp(170px, 27dvh, 240px) minmax(0, 1fr);
  }
  .fist-store-preview-column {
    height: 100%;
  }
  #fun-mode-button {
    top: calc(env(safe-area-inset-top, 0px) + 62px) !important;
    left: calc(env(safe-area-inset-left, 0px) + 8px) !important;
    right: auto !important;
  }
  body.mobile-fun-mode-enabled.sandbox-tools-enabled #fun-mode-button {
    top: calc(env(safe-area-inset-top, 0px) + 116px) !important;
  }
  body.mobile-fun-mode-enabled.sandbox-tools-enabled #mobile-clip-btn.in-game.clip-enabled {
    top: calc(env(safe-area-inset-top, 0px) + 170px) !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  #fun-mode-button {
    position: absolute !important;
    width: var(--mobile-landscape-action-size) !important;
    height: var(--mobile-landscape-action-size) !important;
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    bottom: auto !important;
    left: auto !important;
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 2) !important;
    transform: none;
    z-index: 220 !important;
  }
  body.mobile-fun-mode-enabled #mobile-chat-btn.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 4) !important;
  }
  body.mobile-fun-mode-enabled #mobile-emote-btn.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 5) !important;
  }
  body.mobile-fun-mode-enabled #mobile-hud-toggle.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 3) !important;
  }
  body.mobile-fun-mode-enabled.mobile-clip-enabled #mobile-chat-btn.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 5) !important;
  }
  body.mobile-fun-mode-enabled.mobile-clip-enabled #mobile-emote-btn.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 6) !important;
  }
  body.mobile-fun-mode-enabled.mobile-clip-enabled #mobile-hud-toggle.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 4) !important;
  }
  body.mobile-fun-mode-enabled.mobile-clip-enabled #mobile-sandbox-btn.in-game {
    right: calc(var(--mobile-landscape-right-gap) + var(--mobile-landscape-action-step) * 3) !important;
  }
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  #landing {
    justify-content: flex-start;
    gap: 4px;
    padding:
      calc(env(safe-area-inset-top, 0px) + 4px)
      max(8px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 40px)
      max(8px, env(safe-area-inset-left, 0px));
  }
  #login-window {
    width: min(400px, calc(100vw - 16px)) !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 48px);
  }
  #login-window > .win95-content,
  #login-window > .win95-content:has(.landing-panel.is-authenticated),
  #login-window > .win95-content:has(.landing-panel:not(.is-authenticated)) {
    padding: 6px 9px;
  }
  .landing-panel,
  .landing-panel.is-authenticated {
    --landing-action-height: 30px;
    --landing-button-font-size: 11px;
    gap: 5px;
  }
  .landing-panel.is-authenticated .landing-logo-wrap {
    min-height: 32px;
  }
  #landing-logo {
    width: min(220px, 72%);
  }
  .landing-account-top-btn,
  .landing-account-action-btn,
  .landing-auth-btn {
    min-height: 30px !important;
  }
  .landing-social-panel.is-expanded {
    width: min(560px, calc(100vw - 12px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 8px);
  }
  .landing-social-panel.is-expanded .landing-social-content {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 44px);
    padding: 5px;
    gap: 4px;
  }
  .landing-social-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px 6px;
    padding: 4px 5px;
  }
  .landing-social-avatar {
    width: 24px;
    height: 24px;
  }
  .landing-social-actions {
    gap: 4px;
  }
  .landing-social-actions .landing-social-btn {
    flex-basis: 52px;
    min-width: 48px;
    height: 28px;
    min-height: 28px;
    padding: 3px 6px;
    font-size: 10px;
  }
  .landing-social-actions .landing-social-btn.landing-social-remove-btn {
    flex-basis: 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }
  .landing-social-add-input,
  .landing-social-add-row .landing-social-btn,
  .landing-social-tab {
    min-height: 28px;
  }
  #join-btn,
  .landing-panel:not(.is-authenticated) #join-btn {
    min-height: 40px;
    padding: 6px 9px;
    font-size: 15px;
  }
  #social-links-panel {
    bottom: max(2px, env(safe-area-inset-bottom, 0px));
    padding: 2px 4px;
  }
  .social-links-row {
    gap: 3px;
  }
  #homepage-music-toggle,
  #discord-social-btn,
  #reddit-social-btn,
  #x-social-btn,
  #homepage-logout-btn,
  #settings-btn,
  #mobile-fullscreen-btn,
  #social-links-toggle {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }
  #mobile-fullscreen-hint {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 38px);
  }

  .fist-store-content {
    gap: 3px;
    padding: 3px;
  }
  .fist-store-body {
    padding: 3px;
  }
  .fist-store-layout {
    grid-template-columns: clamp(210px, 34vw, 310px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 4px;
  }
  .fist-store-preview-column {
    display: flex !important;
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    gap: 4px;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 4px;
    overflow: hidden;
  }
  .fist-store-ledger-column {
    display: none !important;
  }
  .fist-store-main-column {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .fist-store-wallet-panel {
    order: 1;
    flex: 0 0 28px;
    width: 100%;
    min-height: 28px;
    padding: 2px;
    box-sizing: border-box;
  }
  .fist-store-wallet-display {
    height: 24px;
    min-height: 24px;
  }
  .fist-store-player-preview-canvas {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
  }
  .fist-store-preview-inspector {
    order: 3;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    flex: 0 0 44px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 4px;
    gap: 4px;
    grid-column: auto;
    grid-row: auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  .fist-store-preview-inspector .cosmetic-preview-inspector-thumbnail {
    width: 30px;
    height: 30px;
  }
  .fist-store-preview-inspector .cosmetic-preview-inspector-copy {
    overflow: hidden;
  }
  .fist-store-preview-inspector .cosmetic-preview-inspector-description {
    display: none;
  }
  .fist-store-tab {
    min-height: 28px;
    padding: 3px 6px;
    font-size: 11px;
  }
  .fist-store-category-switcher {
    height: 38px;
    min-height: 38px;
    margin-bottom: 3px;
    padding: 2px;
  }
  .fist-store-category-btn,
  .fist-store-vote-upload-cta {
    min-height: 30px;
    padding: 2px 6px;
    font-size: 10px;
  }
  .fist-store-filter-bar,
  .fist-store-vote-filter-bar {
    height: 32px;
    min-height: 32px;
    margin-bottom: 3px;
    padding: 2px 3px;
  }
  .fist-store-filter-control {
    grid-template-rows: 9px 17px;
    font-size: 9px;
  }
  .fist-store-filter-control .fist-store-filter-select,
  .fist-store-filter-control .fist-store-filter-input,
  .fist-store-checkbox-row {
    height: 17px;
    min-height: 17px;
    font-size: 9px;
  }
  .fist-store-card-grid {
    --fist-store-card-min-width: 144px;
    --fist-store-card-preview-size: min(148px, calc(100% - 6px));
    --fist-store-card-height: 204px;
    --fist-store-card-admin-height: 240px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Cosmetics: persistent player preview left, inventory browser right. */
  #cosmetics-modal-overlay {
    padding:
      calc(env(safe-area-inset-top, 0px) + 3px)
      max(3px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 3px)
      max(3px, env(safe-area-inset-left, 0px));
  }
  #cosmetics-modal .cosmetics-modal-content,
  #cosmetics-modal-container,
  #cosmetics-modal .cosmetics-studio-shell {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  #cosmetics-modal .cosmetics-studio-shell {
    display: block;
  }
  #cosmetics-modal .cosmetics-loadout-top {
    display: grid;
    grid-template-columns: clamp(210px, 36vw, 320px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }
  #cosmetics-modal .cosmetics-stage-panel {
    display: flex !important;
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-direction: column;
    gap: 4px;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 4px;
    overflow: hidden;
    border: 2px inset #808080;
    background: #d4d0c8;
    box-sizing: border-box;
  }
  #cosmetics-modal .cosmetics-item-inspector {
    order: 1;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    flex: 0 0 54px;
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 4px;
    gap: 4px;
    overflow: hidden;
    box-sizing: border-box;
  }
  #cosmetics-modal .cosmetics-item-inspector .cosmetic-preview-inspector-thumbnail {
    width: 38px;
    height: 38px;
  }
  #cosmetics-modal .cosmetics-item-inspector .cosmetic-preview-inspector-copy {
    overflow: hidden;
  }
  #cosmetics-modal .cosmetics-item-inspector .cosmetic-preview-inspector-description {
    display: none;
  }
  #cosmetics-modal #cosmetics-modal-preview-canvas {
    order: 2;
    flex: 1 1 auto;
    width: 100% !important;
    height: auto;
    min-width: 0;
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
  }
  #cosmetics-modal .cosmetics-slot-rail-left {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 3px;
    overflow: hidden;
    border: 2px inset #808080;
    background: #d4d0c8;
    box-sizing: border-box;
  }
  #cosmetics-modal .cosmetics-slot-rail-left .cosmetics-slot-list {
    gap: 3px;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  #cosmetics-modal .cosmetics-cat-tab.cosmetics-slot-button {
    min-height: 30px;
    padding: 4px 7px;
    font-size: 10px;
  }
  #cosmetics-modal .cosmetics-browser-stack {
    display: block;
    grid-column: 2;
    grid-row: 2;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  #cosmetics-modal .cosmetics-browser-panel {
    height: 100%;
    min-height: 0;
    padding: 4px;
    gap: 3px;
  }
  #cosmetics-modal .cosmetics-browser-header {
    padding: 0 2px;
  }
  #cosmetics-modal .cosmetics-grid {
    --cosmetics-card-min-width: 124px;
    --cosmetics-card-height: 184px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cosmetics-card-min-width)), 1fr));
    gap: 5px;
    height: 100%;
    min-height: 0;
    padding: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #cosmetics-modal .cosmetics-grid > .cosmetic-inventory-card {
    min-height: var(--cosmetics-card-height);
  }
  #cosmetics-modal .cosmetics-grid-toolbar {
    padding: 3px;
    gap: 3px;
  }
  #cosmetics-modal .cosmetics-color-panel,
  #cosmetics-modal .cosmetics-grid.banner-editor-mode {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #cosmetics-modal .loadouts-workbench,
  #cosmetics-modal .banner-editor-panel,
  #cosmetics-modal .banner-workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  #cosmetics-modal .cosmetics-killcard-category {
    height: 100%;
    overflow-y: auto;
  }
}
