/* Supplies grow with their labels instead of inheriting legacy fixed rows. */
.tools-drawer-r48 .tools {
  grid-auto-rows: auto;
}

.tools-drawer-r48 .tools button:disabled {
  opacity: 1;
  color: #adc4b5;
  background: #0c252e;
  border-color: #46675d;
}

.tools-drawer-r48 .tools button:disabled b,
.tools-drawer-r48 .tools button:disabled small {
  color: #b4c9bd;
}

.tools-drawer-r48 .tools button:disabled > span {
  color: #789a89;
}

@media (max-width: 600px) {
  body {
    min-width: 0;
  }

  .tools-drawer-r48 .tools button {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 28px auto auto;
    align-items: start;
    align-content: start;
    justify-items: center;
    gap: 5px 0;
    min-height: 110px;
    padding: 10px 6px;
    text-align: center;
  }

  .tools-drawer-r48 .tools button > span {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    margin: 0;
    align-self: center;
  }

  .tools-drawer-r48 .tools button > b,
  .tools-drawer-r48 .tools button > small {
    grid-column: 1;
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .tools-drawer-r48 .tools button > b {
    grid-row: 2;
    font: 12px/1.25 system-ui, sans-serif;
  }

  .tools-drawer-r48 .tools button > small {
    grid-row: 3;
    font: 11px/1.3 system-ui, sans-serif;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .topbar.wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 44px 44px;
    height: auto;
    min-height: 100px;
    padding: 4px 10px;
    gap: 4px 8px;
  }

  .topbar .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
  }

  .topbar .wallet-bar {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 0;
  }

  .topbar .top-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .topbar .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    margin: 0;
    gap: 4px;
  }

  .topbar .main-nav .nav {
    min-width: 0;
    min-height: 44px;
    padding: 6px;
    font: 12px/1.2 system-ui, sans-serif;
    white-space: normal;
  }

  .tools-drawer-r48 .tools button {
    min-height: 84px;
  }

  .mission-card .hearts {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .mission-card .lanterns {
    height: auto;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .mission-card .lantern {
    flex: 0 0 26px;
    width: 26px;
    height: 44px;
  }
}
