.price-history-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.price-history-summary > span {
  min-width: 0;
}

.price-history-summary b {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.price-history-summary b .coin {
  flex: 0 0 auto;
}

.price-history-graph-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 38px;
  padding: 0 13px;
}

.brand h1 {
  font-size: clamp(28px, 2.1vw, 34px);
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-market-word {
  color: var(--mint);
}

.item-tooltip {
  display: none !important;
}

.item-hover-popover {
  position: fixed;
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 24px));
  overflow: auto;
  border: 1px solid rgba(113, 230, 193, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 34, 49, 0.99), rgba(12, 18, 28, 0.99));
  color: #dbe8f7;
  padding: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
  pointer-events: none;
}

.item-hover-popover.hidden {
  display: none;
}

.item-hover-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.item-hover-head img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(154, 196, 239, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 38, 52, 0.8), rgba(13, 18, 27, 0.92));
  object-fit: contain;
  padding: 4px;
}

.item-hover-head span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.item-hover-head strong {
  overflow-wrap: anywhere;
  color: #f6fbff;
  font-size: 16px;
  line-height: 1.15;
}

.item-hover-head small,
.item-hover-empty {
  color: #9fb0c6;
  font-size: 12px;
  font-weight: 850;
}

.item-hover-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.item-hover-badges span {
  border: 1px solid rgba(154, 196, 239, 0.18);
  border-radius: 999px;
  background: rgba(34, 45, 63, 0.72);
  color: #c7ddf8;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}

.item-hover-popover p {
  margin: 0;
  color: #d3ddea;
  font-size: 13px;
  line-height: 1.4;
}

.item-hover-popover ul {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 7px;
  background: rgba(13, 19, 29, 0.5);
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.item-hover-popover li {
  border-bottom: 1px solid rgba(154, 196, 239, 0.11);
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.35;
}

.item-hover-popover li:last-child {
  border-bottom: 0;
}

.item-hover-popover .stat-green {
  color: #67e85d;
  font-weight: 950;
}

.item-hover-popover .stat-red {
  color: #ff5d65;
  font-weight: 950;
}

.crafting-cost-item-link {
  display: inline-flex;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.crafting-cost-item-link:hover,
.crafting-cost-item-link:focus-visible {
  color: #5fa6ff;
  text-decoration: underline;
}

.crafting-cost-item-link b {
  overflow-wrap: anywhere;
}

.recent-panel-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-width: 188px;
  border: 1px solid rgba(154, 196, 239, 0.2);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.42);
  padding: 3px;
}

.recent-panel-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #aeb8c8;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.recent-panel-toggle button:hover {
  color: #f4f7fb;
  background: rgba(154, 196, 239, 0.1);
}

.recent-panel-toggle button.active {
  color: #f5fffb;
  background: linear-gradient(180deg, rgba(66, 170, 149, 0.95), rgba(35, 117, 104, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.recent-view-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid rgba(154, 196, 239, 0.16);
  border-radius: 8px;
  background: rgba(56, 63, 84, 0.94);
  color: inherit;
  padding: 7px 10px 7px 8px;
  text-decoration: none;
}

.recent-view-card:hover,
.recent-view-card:focus-visible {
  border-color: rgba(113, 230, 193, 0.38);
  background: rgba(63, 73, 96, 0.98);
}

.recent-view-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.recent-view-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recent-view-card strong {
  overflow: hidden;
  color: #f6fbff;
  font-size: 15px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-view-card small {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(154, 196, 239, 0.24);
  border-radius: 6px;
  background: rgba(154, 196, 239, 0.1);
  color: #cfe4ff;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-subtype-field.hidden,
.subtype-filter-hidden {
  display: none !important;
}

@media (max-width: 420px) {
  .price-history-summary {
    grid-template-columns: 1fr;
  }
}
