.item-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #dec88f;
}
.item-hero,
.item-description,
.item-sources {
  padding: 24px;
  margin-bottom: 20px;
}
.item-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.item-identity img {
  object-fit: contain;
  flex-shrink: 0;
  background: #111c25 var(--item-grade-background, none) center / cover;
  border: 1px solid color-mix(in srgb, var(--item-grade-color, #72858f) 50%, #26313a);
  border-radius: 3px;
}
.item-identity > div {
  min-width: 0;
}
.item-identity h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}
.item-grade {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 12px;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
.item-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 26px 0 0;
}
.item-facts dt {
  font-size: 11px;
  color: #a8b8c4;
  margin-bottom: 6px;
}
.item-facts dd {
  margin: 0;
  font-size: 14px;
}
.item-description p {
  white-space: pre-line;
  line-height: 1.7;
}
.item-description h2,
.item-sources h2 {
  margin: 0 0 14px;
}
.item-source-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: end;
  gap: 16px;
  margin-top: 24px;
}
.item-search,
.item-sort {
  display: block;
  min-width: 0;
  color: #acbdc9;
  font-size: 12px;
}
.item-search input,
.item-sort select:not(.native-select) {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
}
.item-sort .custom-select {
  width: 100%;
}
.item-sort .select-trigger {
  min-height: 44px;
  padding-right: 16px;
}
.item-sort .select-chevron {
  margin-left: auto;
}
.item-source-note {
  color: #95a9b8;
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0 22px;
}
.item-source-count {
  color: #acbdc9;
  font-size: 12px;
  margin-bottom: 12px;
}
.item-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.item-source {
  min-width: 0;
  border: 1px solid #2d3e49;
  border-radius: 10px;
  background: #14212b;
  overflow: hidden;
}
.item-source-row {
  display: grid;
  grid-template-columns: 24px minmax(180px, 1.6fr) minmax(120px, 0.8fr) minmax(
      140px,
      1fr
    );
  align-items: center;
  gap: 18px;
  padding: 18px;
}
.item-source-rank {
  color: #91a6b7;
  font:
    13px Georgia,
    serif;
  text-align: center;
}
.item-source:nth-child(-n + 3) .item-source-rank {
  color: #dec88f;
}
.item-source-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.item-source-identity > div {
  min-width: 0;
}
.item-source-portrait {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #0e1922;
  border: 1px solid #40515c;
  border-radius: 10px;
  overflow: hidden;
}
.item-source-portrait img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.item-source-placeholder {
  color: #7f929e;
  font-size: 28px;
}
.item-source h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.item-source-identity p {
  margin: 0;
  color: #9eb3c2;
  font-size: 11px;
}
.item-source-chance {
  display: grid;
  gap: 5px;
  font-variant-numeric: tabular-nums;
}
.item-source-chance small,
.item-source-chance > span {
  color: #9eb3c2;
  font-size: 10px;
}
.item-source-chance strong {
  font-size: 17px;
  color: #e4cc91;
  white-space: nowrap;
}
.item-source-chance.is-unknown strong {
  font-size: 13px;
  color: #9eb3c2;
}
.item-source-locations {
  min-width: 0;
}
.item-source-locations a {
  display: block;
  color: #ded0aa;
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.item-location-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.item-location-area {
  display: block;
  color: #edf0ef;
  margin-top: 3px;
  font-size: 11px;
}
.item-location-area > span {
  color: #9eb3c2;
}
.item-location-areas {
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: #cad7df;
}
.item-location-areas span {
  color: #9eb3c2;
}
.item-source-locations small {
  display: block;
  color: #9eb3c2;
  font-size: 10px;
  margin-top: 3px;
}
.item-source-locations p {
  color: #9eb3c2;
  font-size: 11px;
}
.item-source-details {
  border-top: 1px solid #283943;
}
.item-source-details > summary {
  cursor: pointer;
  padding: 10px 18px;
  color: #9eb3c2;
  font-size: 11px;
}
.item-source-details[open] > summary {
  color: #e4cc91;
}
.item-source-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.75fr);
  gap: 24px;
  padding: 8px 18px 18px 60px;
}
.item-source-rates {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.item-source-empty {
  color: #acbdc9;
  padding: 20px 0;
}
#item-more {
  margin-top: 18px;
}
@media (max-width: 1050px) {
  .item-source-row {
    grid-template-columns: 20px minmax(0, 1fr) 130px;
    gap: 12px;
  }
  .item-source-row > .item-source-locations {
    grid-column: 2 / -1;
    border-top: 1px solid #2d3e49;
    padding-top: 6px;
  }
}
.item-error {
  padding: 24px;
}
.item-error button {
  margin-left: 12px;
}
@media (max-width: 700px) {
  .item-hero,
  .item-description,
  .item-sources {
    padding: 16px;
  }
  .item-identity {
    gap: 12px;
    align-items: flex-start;
  }
  .item-identity img {
    width: 60px;
    height: 60px;
  }
  .item-source-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .item-source-row {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 14px;
  }
  .item-source-row > .item-source-chance {
    grid-column: 2;
  }
  .item-source-row > .item-source-locations {
    grid-column: 2;
  }
  .item-source-detail-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 6px 14px 14px;
  }
  .item-source-details > summary {
    padding: 10px 14px;
  }
  .item-source-identity {
    gap: 10px;
  }
  .item-source-chance {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
  .item-source-chance > span {
    grid-column: 1 / -1;
  }
}
