/* Editorial Atelier — Sprint 3 automation operations */

.automation-operations {
  margin: 0 0 22px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .88);
}

.automation-operations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.automation-operations-head h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.025em;
}

.automation-operations-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.operations-refresh {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--brown);
  font-weight: 650;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
}

.operations-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 247, 238, .55);
  overflow: hidden;
}

.operations-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.operations-panel-head strong {
  color: var(--brown);
  font-size: 13px;
}

.operations-panel-head span {
  color: var(--muted);
  font-size: 11px;
}

.operations-list {
  display: grid;
}

.operation-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(221, 207, 187, .72);
}
.operation-row:last-child { border-bottom: 0; }
.operation-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.operation-row[data-state="good"] .operation-dot { background: var(--forest); }
.operation-row[data-state="warning"] .operation-dot { background: #a56f24; }
.operation-row[data-state="danger"] .operation-dot { background: var(--brick); }
.operation-copy strong,
.operation-copy small { display: block; }
.operation-copy strong {
  color: var(--brown);
  font-size: 12px;
  line-height: 1.35;
}
.operation-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.operation-meta {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.operation-retry {
  min-height: 32px;
  margin-top: 7px;
  padding: 0 10px;
  border: 1px solid rgba(154, 69, 56, .35);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brick);
  font-size: 11px;
  font-weight: 700;
}
.operation-retry:disabled { opacity: .55; cursor: wait; }

.operations-empty {
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.operations-empty strong { display: block; margin-bottom: 4px; color: var(--brown); }

.operations-safety-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--forest);
  background: rgba(47, 107, 79, .05);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.operations-safety-note strong { color: var(--brown); }

.queue-semantics-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .operations-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .automation-operations { padding: 16px 12px; }
  .automation-operations-head { align-items: flex-start; flex-direction: column; }
  .operations-refresh { width: 100%; }
  .operation-row { grid-template-columns: 10px minmax(0, 1fr); }
  .operation-meta { grid-column: 2; }
}
