/* ops console section */
.ops-section {
  background: var(--canvas);
  padding: 16px clamp(20px, 4vw, 48px) 16px;
  position: relative;
  overflow: hidden;
}
.ops-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(255, 128, 31, 0.08), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(90, 60, 200, 0.05), transparent 60%);
}

.ops-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ops-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.ops-label {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.ops-num { color: var(--accent); }
.ops-title { color: var(--ink); font-weight: 500; }
.ops-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.ops-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(17, 255, 153, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

/* panel */
.ops-panel {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.7);
}

/* chrome row */
.ops-chrome {
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--charcoal);
}
.ops-chrome-left { display: flex; align-items: center; gap: 14px; }
.ops-traffic {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.ops-traffic + .ops-traffic { margin-left: -4px; }
.ops-traffic:nth-of-type(1) { background: #ff605c; opacity: 0.7; }
.ops-traffic:nth-of-type(2) { background: #ffbd44; opacity: 0.7; }
.ops-traffic:nth-of-type(3) { background: #00ca4e; opacity: 0.7; }
.ops-chrome-path { margin-left: 8px; }
.ops-chrome-right { display: inline-flex; align-items: center; gap: 14px; }
.ops-cursor { animation: blink 1s steps(2) infinite; color: var(--ash); }
@keyframes blink { 50% { opacity: 0; } }

/* tabs */
.ops-tabs {
  height: 42px;
  padding: 0 16px;
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ops-tab { color: var(--ash); position: relative; padding: 4px 0; cursor: default; }
.ops-tab.is-active { color: var(--ink); }
.ops-tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -12px;
  height: 1px; background: var(--accent);
}

/* metric strip */
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 700px) { .ops-metrics { grid-template-columns: repeat(4, 1fr); } }
.ops-metric {
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--hairline);
}
.ops-metric:last-child { border-right: 0; }
.ops-metric-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ash);
}
.ops-metric-v {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* rows */
.ops-rows {
  border-bottom: 1px solid var(--hairline);
}
.ops-row {
  display: grid;
  grid-template-columns: 70px 56px 1fr 100px 78px 64px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.ops-row.is-alt { background: var(--surface-elevated); }
.ops-row-srv  { color: var(--ash); }
.ops-row-slug { color: var(--ink); }
.ops-row-desc {
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ops-row-spark svg { display: block; }
.ops-row-time { color: var(--ash); text-align: right; }
.ops-row-status { display: flex; }

.ops-pill {
  display: inline-flex;
  height: 22px;
  padding: 0 8px;
  align-items: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.ops-pill-ok     { background: rgba(17,255,153,0.10); color: var(--live);   border: 1px solid rgba(17,255,153,0.28); }
.ops-pill-deploy { background: rgba(255,128,31,0.12); color: var(--accent); border: 1px solid rgba(255,128,31,0.32); }
.ops-pill-queued { background: rgba(255,255,255,0.06); color: var(--charcoal); border: 1px solid var(--hairline); }

/* log feed */
.ops-log {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  min-height: 160px;
}
.ops-log-line {
  display: flex; gap: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .3s;
}
.ops-log-stamp { color: var(--ash); flex-shrink: 0; }
.ops-log-body  { color: var(--charcoal); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ops-log-line.is-fresh .ops-log-body { color: var(--ink); }
.ops-log-line.is-fresh .ops-log-stamp { color: var(--accent); }
.ops-log-line.is-1 { opacity: 0.75; }
.ops-log-line.is-2 { opacity: 0.5; }
.ops-log-line.is-3 { opacity: 0.32; }
.ops-log-line.is-4 { opacity: 0.18; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* responsive */
@media (max-width: 720px) {
  .ops-row {
    grid-template-columns: 60px 50px 1fr 70px;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }
  .ops-row-desc, .ops-row-time { display: none; }
}
