html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #0d1117;
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
}

/* HEADER */
.app-header {
  display: grid;
  grid-template-columns: auto auto minmax(420px, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 15px 56px;
  background: #161b22;
  border-bottom: 1px solid #222;
}

.mobile-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.app-header-logo {
  height: 40px;
  object-fit: contain;
}

.left-group,
.center-group,
.right-group,
.header-actions {
  display: flex;
  align-items: center;
}

.center-group {
  gap: 10px;
  justify-content: flex-start;
}

.right-group {
  min-width: 0;
  justify-content: center;
}

@media (min-width: 769px) {
  .right-group {
    min-width: 420px;
  }
}

.tabs {
  display: flex;
  gap: 10px;
}

.tabs-row .tabs {
  align-items: center;
  width: fit-content;
  padding: 8px;
  background: #161b22;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tab {
  background: #21262d;
  border: none;
  padding: 8px 15px;
  color: #aaa;
  border-radius: 6px;
  cursor: pointer;
}

.tab.active {
  background: #3b82f6;
  color: white;
}

.header-actions {
  justify-content: flex-end;
}

.tab.tab-highlight-alert,
.tab.active.tab-highlight-alert,
.tab.highlight-alert,
.tab.active.highlight-alert {
  background: #facc15;
  color: #000;
}

@media (min-width: 769px) {
  .tabs-row .tab {
    font-size: 15px;
    font-weight: 600;
    padding: 9px 16px;
    line-height: 1.2;
  }

  .reset-game-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 11px;
  }

  .stats {
    font-size: 15px;
    gap: 28px;
    justify-content: center;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-item {
    flex: 0 1 auto;
    min-width: 108px;
  }

  .stats-label {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.1;
  }

  .stats-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }
}

/* STATS */
.stats {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #aaa;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}

.stats-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.stats-label,
.stats-value {
  display: block;
  text-align: center;
}

.stats-change {
  font-weight: 600;
}

.stats-change.positive {
  color: #22c55e;
}

.stats-change.negative {
  color: #ef4444;
}

.stats-change.neutral {
  color: #aaa;
}

.reset-game-btn {
  background: #b91c1c;
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.reset-game-btn:hover {
  background: #991b1b;
}

/* SECTIONS */
main {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.trade-tab-active main {
  max-width: none;
  height: calc(100vh - var(--trade-header-height, 80px));
  display: flex;
  flex-direction: column;
  padding-left: 0;
  padding-right: 0;
}

.section-title {
  margin: 20px 30px;
  font-size: 22px;
}

/* =========================
   INVESTMENT GRID
========================= */

.asset-filter,
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

.category-filter-shell {
  margin: 16px 40px;
  padding: 12px;
  background: #161b22;
  border-radius: 16px;
}

.asset-filter__button,
.portfolio-filter__button {
  background: #21262d;
  border: 1px solid #2d3748;
  padding: 8px 14px;
  color: #aaa;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.asset-filter__button.active,
.portfolio-filter__button.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

@media (min-width: 769px) {
  .asset-filter__button,
  .portfolio-filter__button {
    font-size: 15px;
    font-weight: 600;
    padding: 9px 15px;
  }
}

.portfolio-filter__button.category-highlight-alert,
.portfolio-filter__button.active.category-highlight-alert {
  background: #facc15;
  border-color: #facc15;
  color: #000;
}

.investment-container,
.portfolio-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  align-items: start !important;
  justify-items: center;
  justify-content: center;
}

.investment-container {
  padding: 20px 40px 40px;
}

.card {
  width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #161b22;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 16px;
  scroll-snap-align: center;
  transition: transform 0.2s ease;
  will-change: transform;
  opacity: 0.6;
}

.card * {
  flex-shrink: 0;
}

.card-header {
  width: 100%;
  min-height: 48px;
  max-height: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-body {
  width: 100%;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  overflow: visible;
}

.card-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.invest-card {
  width: 260px;
  height: 344px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  justify-content: flex-start;
}

.invest-card .card-header {
  min-height: 44px;
  max-height: 44px;
}

.invest-card .card-title {
  min-height: 44px;
  max-height: 44px;
  margin-bottom: 0;
  font-size: 18px;
}

.invest-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  flex-grow: 0;
}

.invest-card .card-footer {
  min-height: auto;
  margin-top: 8px;
  justify-content: flex-start;
}

.invest-card .button-group {
  gap: 0;
}

.portfolio-card {
  width: 260px;
  height: 492px;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.portfolio-card .card-title-area {
  min-height: 36px;
  max-height: 36px;
}

.portfolio-card .card-title {
  min-height: 36px;
  max-height: 36px;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 600;
}

.portfolio-card .card-body {
  flex-grow: 0;
  gap: 10px;
  margin-top: 10px;
}

.portfolio-card .card-image-area {
  width: 100%;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-card .card-text-area {
  width: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.portfolio-card .card-button-area {
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 12px;
}

.card button {
  width: 100%;
  box-sizing: border-box;
}

.asset-card:hover {
  transform: translateY(-4px);
}

/* IMAGE */

.asset-card img,
.card-image {
  width: 100%;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.asset-media-rotator,
.asset-media-stage {
  width: 100%;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  overflow: hidden;
  border-radius: 8px;
}

/* TEXT */

.asset-card h3 {
  margin: 0;
  font-size: 20px;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  line-height: 1.2;
}

.card-title {
  min-height: 48px;
  max-height: 48px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 8px;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.asset-card .card-title {
  margin-bottom: 8px;
}

.asset-card p {
  margin: 2px 0;
  font-size: 15px;
  color: #aaa;
  max-width: 100%;
  overflow-wrap: break-word;
}

.card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.asset-card .asset-meta {
  font-size: 13px;
  color: #22c55e;
}

@media (min-width: 769px) {
  .asset-card h3 {
    font-size: 21px;
    line-height: 1.25;
  }

  .card-body p {
    font-size: 14px;
    line-height: 1.45;
  }

  .asset-card .asset-meta {
    font-size: 14px;
    font-weight: 600;
  }

  .asset-card button {
    font-size: 14px;
    font-weight: 600;
    padding: 9px 14px;
  }
}

/* BUTTON */

.asset-card button {
  margin-top: 0;
  padding: 8px 14px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.asset-card button:hover {
  background: #2563eb;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* =========================
   PORTFOLIO
========================= */

.portfolio-container {
  overflow: hidden;
}

.asset-card.portfolio-card {
  position: relative;
  background: #1f2937;
  opacity: 1;
  justify-self: center;
}

.portfolio-card img {
  width: 100%;
  height: 130px;
  min-height: 130px;
  max-height: 130px;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.portfolio-card h3,
.portfolio-card p {
  color: #fff;
}

.portfolio-card .portfolio-metric {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.portfolio-card .card-text-area .portfolio-metric:first-of-type {
  font-size: 14px;
  font-weight: 600;
}

.portfolio-card .asset-class-label {
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.portfolio-card .portfolio-metric--positive {
  font-size: 13px;
  color: #22c55e;
}

.portfolio-card .portfolio-metric--negative {
  font-size: 13px;
  color: #ef4444;
}

.portfolio-card .portfolio-metric--neutral {
  font-size: 13px;
  color: #cbd5e1;
}

.portfolio-card .portfolio-metric--income {
  color: #93c5fd;
}

.portfolio-card .event-label {
  font-size: 13px;
  color: #3b82f6;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.timer-text {
  font-size: 12px;
  color: #6aa6ff;
  white-space: nowrap;
}

.portfolio-card .timer-text {
  font-size: 12px;
  color: #6aa6ff;
  white-space: nowrap;
}

.portfolio-card .event-timer {
  font-size: 12px;
  font-weight: 600;
  color: #6aa6ff;
  text-align: center;
  display: block;
  font-variant-numeric: tabular-nums;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  margin: 0;
  white-space: nowrap;
}

.portfolio-card .sale-elapsed-timer {
  display: inline-block;
  width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.portfolio-card .income {
  color: #22c55e;
  font-weight: bold;
}

.portfolio-card .uncollected-income {
  margin-bottom: 8px;
}

.portfolio-card .loss {
  color: #ef4444;
  font-weight: bold;
}

.portfolio-card .button-group {
  align-items: center;
  gap: 10px;
}

.portfolio-card .button-group button {
  height: 32px;
  padding: 6px 10px;
  margin-top: 0;
}

.portfolio-card .collect-btn,
.portfolio-card .book-loss-btn,
.portfolio-card .sell-btn,
.portfolio-card .cancel-sale-btn,
.portfolio-card .complete-sale-btn,
.portfolio-card .liquid-add-btn,
.portfolio-card .liquid-withdraw-btn {
  height: 32px;
}

.portfolio-card .collect-btn {
  background: #22c55e;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.portfolio-card .collect-btn:hover {
  background: #16a34a;
}

.portfolio-card .book-loss-btn {
  background-color: #ef4444;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.portfolio-card .book-loss-btn:hover {
  background-color: #dc2626;
}

.portfolio-card .cancel-sale-btn {
  background-color: #6b7280;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 13px;
}

.portfolio-card .cancel-sale-btn:hover {
  background-color: #4b5563;
}

.portfolio-card .complete-sale-btn {
  background-color: #16a34a;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.portfolio-card .complete-sale-btn:hover {
  background-color: #15803d;
}

.portfolio-card .liquid-add-btn {
  background-color: #0f766e;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 13px;
}

.portfolio-card .liquid-add-btn:hover {
  background-color: #0f5f59;
}

.portfolio-card .liquid-withdraw-btn {
  background-color: #0369a1;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 13px;
}

.portfolio-card .liquid-withdraw-btn:hover {
  background-color: #075985;
}

.portfolio-card .sale-status {
  color: #92400e;
  font-weight: 700;
}

.portfolio-card .loss-helper {
  margin: 0;
  font-size: 12px;
  color: #fca5a5;
}

@media (min-width: 769px) {
  .portfolio-card .portfolio-metric {
    font-size: 14px;
    line-height: 1.45;
  }

  .portfolio-card .card-text-area .portfolio-metric:first-of-type {
    font-size: 15px;
  }

  .portfolio-card .asset-class-label {
    font-size: 13px;
  }

  .portfolio-card .event-label,
  .portfolio-card .event-timer,
  .portfolio-card .timer-text {
    font-size: 13px;
  }

  .portfolio-card .button-group button {
    height: 34px;
    font-size: 14px;
    font-weight: 600;
  }
}

/* =========================
   INVESTMENT MODAL
========================= */

.investment-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.investment-modal.hidden {
  display: none;
}

.investment-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.investment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.76);
  backdrop-filter: blur(3px);
}

.investment-modal__panel {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid #2d3748;
  border-radius: 18px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.investment-modal.visible .investment-modal__panel {
  transform: translateY(0);
}

.investment-modal__title {
  margin: 0 0 8px;
  font-size: 24px;
}

.investment-modal__subtitle {
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: 14px;
}

.investment-modal__label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 14px;
  text-align: left;
}

.investment-modal__label[hidden],
.investment-modal__input[hidden] {
  display: none;
}

.investment-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 16px;
}

.investment-modal__input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.investment-modal__error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #f87171;
  font-size: 13px;
  text-align: left;
}

.investment-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.investment-modal__button {
  min-width: 100px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.investment-modal__button--primary {
  background: #3b82f6;
}

.investment-modal__button--primary:hover {
  background: #2563eb;
}

.investment-modal__button--secondary {
  background: #334155;
}

.investment-modal__button--secondary:hover {
  background: #475569;
}

/* =========================
   TABS
========================= */

.tab-content {
  display: none;
  height: auto;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.tab-content.active {
  display: block;
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

@media (min-width: 1025px) {
  #assetsTab.active,
  #portfolioTab.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - var(--trade-header-height, 80px));
    overflow: hidden;
  }

  #assetsTab .investment-container,
  #portfolioTab #portfolioList.portfolio-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
  }
}

#trade-section {
  width: 100%;
  height: calc(100vh - var(--trade-header-height, 80px) - var(--trade-tabs-height, 76px));
  padding: 0;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

body.trade-tab-active #trade-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: calc(100vh - var(--trade-header-height, 80px) - var(--trade-tabs-height, 76px));
}

#trade-section iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  margin: 0 !important;
  max-height: none !important;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
  }

  html {
    height: auto !important;
    min-height: 100%;
  }

  body {
    height: var(--app-mobile-vh, 100dvh) !important;
    min-height: var(--app-mobile-vh, 100dvh) !important;
    display: block !important;
    overflow-y: hidden !important;
    touch-action: pan-y;
  }

  main,
  #trade-section,
  #assetsTab,
  #portfolioTab,
  .investment-container,
  #portfolioList {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  main {
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
    height: calc(var(--app-mobile-vh, 100dvh) - var(--trade-mobile-header-height, 120px));
    overflow: hidden;
  }

  #assetsTab.active,
  #portfolioTab.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  #assetsTab .category-filter-shell,
  #portfolioTab .category-filter-shell {
    flex: 0 0 auto;
  }

  #assetsTab .investment-container,
  #portfolioTab #portfolioList.portfolio-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    align-content: start;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
  }

  body.trade-tab-active {
    overflow-y: hidden !important;
  }

  body:not(.trade-tab-active) #trade-section iframe,
  body:not(.trade-tab-active) #trade-section canvas {
    pointer-events: none !important;
  }

  body:not(.trade-tab-active) #indicator-settings-overlay,
  body:not(.trade-tab-active) #order-modal-root,
  body:not(.trade-tab-active) #newsTooltip {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .app-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo tabs reset"
      "metrics metrics metrics";
    align-items: center;
    justify-items: stretch;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 6px 8px 5px;
    row-gap: 4px;
    column-gap: 6px;
    overflow: visible;
  }

  .top-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    grid-area: logo;
  }

  .app-header-logo {
    height: 24px;
    width: 24px;
    margin: 0;
    display: block;
  }

  .reset-game-btn {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.05;
    white-space: nowrap;
  }

  .header-actions,
  .mobile-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-area: reset;
    min-width: 0;
  }

  .tabs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: tabs;
    min-width: 0;
    margin: 0;
    gap: 4px;
  }

  .tabs-row .tabs {
    margin-left: auto;
    margin-right: auto;
  }

  .metrics-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    width: 100%;
    grid-area: metrics;
  }

  .right-group {
    display: flex;
    align-items: center;
    justify-content: stretch;
    grid-area: metrics;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: center;
    font-size: 12px;
    padding-top: 1px;
  }

  .stats-item {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    text-align: center;
  }

  .stats-label {
    font-size: 11px;
    line-height: 1.1;
    opacity: 0.9;
  }

  .stats-value {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
  }

  body.trade-tab-active main {
    padding-left: 0;
    padding-right: 0;
    height: calc(var(--app-mobile-vh, 100dvh) - var(--trade-mobile-header-height, 120px));
  }

  .tabs-row .tabs {
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 2px;
    gap: 3px;
    border-radius: 8px;
    box-shadow: none;
    flex-wrap: nowrap;
  }

  .tabs-row .tab {
    flex: 0 0 auto;
    min-width: fit-content;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
  }

  .category-filter-shell {
    margin: 16px 0;
    padding: 10px;
  }

  .asset-filter,
  .portfolio-filter {
    justify-content: center;
    gap: 8px;
  }

  .asset-filter__button,
  .portfolio-filter__button {
    padding: 6px 10px;
    font-size: 13px;
  }

  .investment-container,
  .portfolio-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    justify-items: stretch;
    justify-content: stretch;
    width: 100%;
  }

  .investment-container {
    padding: 10px 0 32px;
  }

  .card,
  .invest-card,
  .portfolio-card {
    width: 100%;
  }

  #trade-section {
    height: calc(var(--app-mobile-vh, 100dvh) - var(--trade-mobile-header-height, 120px) - var(--trade-mobile-tabs-height, 64px));
  }
}
