.item-photo {
  position: relative;
}
.item-photo .photo-kind {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #43515d;
  border: 1px solid #d9dfe3;
  font:
    700 0.62rem/1.2 Inter,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.color-link {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  color: #52606b;
  font-size: 0.75rem;
}
.color-link i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(23, 38, 60, 0.22);
}
.color-link code {
  color: #267060;
  font-size: 0.7rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 5px 8px;
  border: 1px solid #cad2d7;
  color: #52606b;
  background: #f4f6f7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-badge.replace {
  border-color: #d6bd85;
  color: #836522;
  background: #fff9ec;
}
.status-badge.dislike {
  border-color: #deb0a9;
  color: #994d43;
  background: #fff4f2;
}
.status-badge.wanted {
  border-color: #9fc9bd;
  color: #286f60;
  background: #eff8f5;
}
.status-badge.color_pending {
  border-style: dashed;
  color: #687681;
}
.color-pending {
  margin: 8px 0;
  color: #687681;
  font-size: 0.75rem;
}
.viewer-dialog {
  width: min(1100px, calc(100% - 20px));
  height: min(92vh, 900px);
  max-height: 92vh;
  padding: 44px 12px 16px;
  background: #fff;
  border: 1px solid #d9dfe3;
  overflow: hidden;
}
.viewer-close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #d9dfe3;
  border-radius: 50%;
  background: #f4f6f7;
  color: #17263c;
  font-size: 1.4rem;
}
#viewerContent {
  height: calc(100% - 46px);
  display: grid;
  place-items: center;
  overflow: auto;
}
#viewerContent img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.viewer-color {
  width: min(78vw, 560px);
  height: min(60vh, 560px);
  border: 1px solid rgba(23, 38, 60, 0.18);
  box-shadow: 0 24px 80px rgba(23, 38, 60, 0.16);
}
.viewer-caption {
  text-align: center;
  margin-top: 12px;
  color: #17263c;
  font:
    500 1rem Georgia,
    serif;
}
.viewer-caption small {
  display: block;
  color: #377f70;
  font:
    500 0.8rem Inter,
    sans-serif;
  margin-top: 3px;
}
.reference-strip button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.reference-strip img,
.inspiration-card img,
.item-photo img {
  cursor: zoom-in;
}
.inspiration-card .image-open {
  position: static;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  display: block;
}
.inspiration-card .image-open img {
  width: 100%;
  display: block;
}
