.app--card-check .main {
  padding-bottom: 48px;
}

.app--card-check input {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
}

.metric-grid--card-check {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attachment-panel {
  margin-top: 18px;
}

.status-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.attachment-list {
  display: grid;
  gap: 10px;
}

.attachment-row {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr) 148px 156px;
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.attachment-row__cell {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.attachment-row__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.attachment-row__main {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.attachment-row__sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.attachment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
}

.attachment-status--checked,
.attachment-status--exported,
.attachment-status--attached {
  background: var(--green-2);
  color: var(--green);
}

.attachment-status--skipped {
  background: var(--red-2);
  color: var(--red);
}

.preview-box {
  width: 132px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #f8fbfb;
  display: grid;
  place-items: center;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.preview-box__empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.attachment-row__actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.attachment-row__actions .button {
  width: 100%;
}

.output-panel {
  margin-top: 18px;
}

.output-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.output-list dt {
  color: var(--muted);
  font-weight: 800;
}

.output-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .metric-grid--card-check {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attachment-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .attachment-row,
  .metric-grid--card-check {
    grid-template-columns: 1fr;
  }

  .preview-box {
    width: 100%;
    max-width: 260px;
  }
}
