.kx-cmp {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
}
.kx-cmp__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.kx-cmp__head h1 {
  font-size: var(--fs-h1);
  color: var(--color-neutral-900);
}
.kx-cmp__sub {
  font-size: var(--fs-caption);
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.kx-cmp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.kx-cmp__card {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.kx-cmp__card:hover {
  box-shadow: var(--shadow-level2);
}
.kx-cmp__card.is-selected {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 2px var(--color-primary-100);
}
.kx-cmp__card:focus-visible {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
}

.kx-cmp__thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.kx-cmp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kx-cmp__ai {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
}
.kx-cmp__check {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-600);
  color: var(--color-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}
.kx-cmp__wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-24deg);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.kx-cmp__body {
  padding: var(--space-4);
}
.kx-cmp__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.kx-cmp__title-row h2 {
  font-size: var(--fs-h3);
  color: var(--color-neutral-900);
}
.kx-cmp__reco {
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  color: var(--color-primary-700);
  background: var(--color-primary-100);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.kx-cmp__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.kx-cmp__metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-body);
}
.kx-cmp__metrics dt {
  color: var(--color-neutral-500);
}
.kx-cmp__metrics dd {
  color: var(--color-neutral-900);
  font-weight: var(--fw-semibold);
}
.kx-cmp__ok {
  color: var(--color-success);
}
.kx-cmp__warn {
  color: var(--color-warning);
}

.kx-cmp__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-2);
}
.kx-cmp__disclaimer {
  font-size: var(--fs-caption);
  color: var(--color-neutral-500);
}

@media (max-width: 1000px) {
  .kx-cmp__grid {
    grid-template-columns: 1fr;
  }
}
