.runtime-kpis {
  margin-bottom: 20px;
}

.runtime-channel-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.runtime-channel-copy {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
}

.runtime-release-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.runtime-release-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(17, 25, 54, 0.92) 0%, rgba(10, 16, 31, 0.96) 100%);
}

.runtime-release-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(20, 184, 166, 0.85));
  opacity: 0.95;
}

.runtime-release-meta {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 13px;
}

.runtime-release-meta strong {
  color: var(--text);
}

.runtime-inline-summary {
  margin-top: 12px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(20, 184, 166, 0.07);
}

.runtime-checkbox-row {
  margin: -4px 0 10px;
}

.runtime-checkbox-row .tiny-check {
  min-height: 44px;
}

.tiny-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.tiny-check input[type="checkbox"] {
  margin: 0;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-list {
  gap: 8px;
}

.diff-shell {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.diff-table-wrap .data-table {
  min-width: 960px;
}

.compact-diff-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.log-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-info {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.28);
}

.log-success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.30);
}

.log-warn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.34);
}

.log-error {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.32);
}

.danger-text {
  color: #fca5a5;
}

.warning-text {
  color: #fcd34d;
}

.accent-text {
  color: #fdba74;
}

@media (max-width: 1200px) {
  .runtime-channel-grid,
  .compact-diff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .runtime-release-meta,
  .runtime-channel-grid,
  .compact-diff-grid {
    grid-template-columns: 1fr;
  }

  .tag-row {
    justify-content: flex-start;
  }
}


/* ===== Pro responsive polish ===== */
.runtime-release-card .inline-actions,
.runtime-release-card .tag-row {
  align-items: center;
}

@media (max-width: 860px) {
  .runtime-release-grid {
    grid-template-columns: 1fr;
  }

  .runtime-release-meta {
    grid-template-columns: 1fr;
  }

  .runtime-inline-summary {
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .runtime-channel-grid,
  .compact-diff-grid {
    grid-template-columns: 1fr !important;
  }

  .runtime-release-card .inline-actions .ghost-btn,
  .runtime-release-card .inline-actions .btn {
    width: 100%;
  }

  .tag-row {
    justify-content: flex-start;
  }

  .log-pill {
    min-width: 0;
    width: fit-content;
  }
}
