.ops-container {
  overflow: visible;
}

.ops-content {
  overflow: visible;
}

.ops-header-link,
.ops-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  font-weight: 700;
}

.ops-secondary-link {
  color: #0f766e;
  background: #e6fffb;
  border-color: #99f6e4;
}

.ops-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1.25;
}

.ops-subtitle,
.panel-caption {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ops-toolbar-actions,
.retry-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ops-icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.ops-monitor {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ops-metric {
  min-height: 96px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-metric.state {
  border-left: 4px solid #0ea5e9;
}

.ops-metric.warning {
  border-left: 4px solid #f59e0b;
}

.ops-metric.danger {
  border-left: 4px solid #ef4444;
}

.metric-label,
.metric-note {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.metric-value {
  display: block;
  margin: 6px 0 4px;
  color: #0f172a;
  font-size: 1.7rem;
  line-height: 1.1;
}

.mini-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.mini-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #0ea5e9;
  transition: width 0.2s ease;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 16px;
}

.ops-job-panel,
.ops-temporal-panel,
.retry-panel {
  border-radius: 8px;
  box-shadow: none;
}

.ops-job-panel .panel-title,
.ops-temporal-panel .panel-title,
.retry-panel .panel-title {
  color: #0f172a;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-badge.muted {
  color: #475569;
  background: #e2e8f0;
}

.ops-badge.running {
  color: #92400e;
  background: #fef3c7;
}

.ops-badge.completed {
  color: #166534;
  background: #dcfce7;
}

.ops-badge.failed {
  color: #991b1b;
  background: #fee2e2;
}

.empty-state {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.job-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.job-line {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.job-line.wide {
  grid-column: 1 / -1;
}

.job-line span,
.temporal-compact span,
.confirm-grid span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 0.78rem;
}

.job-line strong,
.temporal-compact strong,
.confirm-grid strong {
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.temporal-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.temporal-compact div {
  min-height: 80px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.temporal-compact strong {
  font-size: 1.35rem;
}

.retry-header {
  align-items: flex-start;
}

.bucket-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bucket-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
}

.bucket-btn.active {
  color: #0f766e;
  border-color: #5eead4;
  background: #ccfbf1;
}

.bucket-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  text-align: center;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ops-search,
.ops-select {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.92rem;
}

.ops-search {
  flex: 1;
  min-width: 220px;
  padding: 0 12px;
}

.ops-select {
  padding: 0 10px;
}

.retry-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.retry-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.retry-table th,
.retry-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}

.retry-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475569;
  background: #f8fafc;
  font-weight: 800;
}

.retry-table tr:last-child td {
  border-bottom: none;
}

.group-cell strong {
  display: block;
  color: #0f172a;
  line-height: 1.3;
}

.group-cell span,
.error-cell {
  color: #64748b;
  line-height: 1.35;
}

.error-cell {
  max-width: 320px;
}

.row-chip,
.bucket-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}

.bucket-chip.retryable {
  color: #166534;
  background: #dcfce7;
}

.bucket-chip.review {
  color: #92400e;
  background: #fef3c7;
}

.bucket-chip.delete {
  color: #991b1b;
  background: #fee2e2;
}

.bucket-chip.waiting {
  color: #1d4ed8;
  background: #dbeafe;
}

.detail-btn {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #bae6fd;
  border-radius: 7px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 800;
  cursor: pointer;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  color: #475569;
}

.ops-page-btn {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.ops-page-btn:disabled,
.detail-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .ops-monitor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ops-toolbar,
  .retry-header,
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ops-monitor {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-body,
  .temporal-compact {
    grid-template-columns: 1fr;
  }

  .retry-actions,
  .ops-toolbar-actions {
    justify-content: flex-start;
  }
}
