.ops {
  --op-faint: color-mix(in srgb, var(--text) 4%, transparent);
  --op-accent-bg: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
  display: grid;
  gap: 16px;
  min-width: 0;
}
.ops *, .ops *::before, .ops *::after { box-sizing: border-box; }
.ops p, .ops h2, .ops h3, .ops dl, .ops dd { margin: 0; }
.ops h2 { color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.ops h3 { font-size: 13px; font-weight: 600; }
.ops .op-muted { color: var(--muted); }
.op-card, .op-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.op-head, .op-row, .op-tools, .op-compact { display: flex; align-items: center; gap: 10px; }
.op-head { min-height: 51px; padding: 12px 17px; justify-content: space-between; border-bottom: 1px solid var(--border); }
.op-head > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.op-head svg, .op-tools svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); }
.op-meta, .op-time, .op-id, .op-code, .op-summary small, .op-badge, .op-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.op-meta { color: var(--muted); font-size: 10px; }
.op-id { color: var(--accent); font-size: 11px; }
.op-badge { color: var(--tone,var(--accent)); border: 1px solid color-mix(in srgb,var(--tone,var(--accent)) 26%,transparent); background: color-mix(in srgb,var(--tone,var(--accent)) 8%,transparent); display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; padding: 3px 7px; border-radius: 4px; }
.op-badge::before, .op-dot { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.op-info { --tone: var(--accent); }
.op-warning { --tone: var(--warning); }
.op-critical { --tone: var(--danger); }
.op-healthy { --tone: var(--healthy); }
.op-neutral { --tone: var(--muted); }
.op-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.op-summary > div { position: relative; padding: 16px 18px; display: grid; align-content: start; gap: 6px; min-width: 0; }
.op-summary > div + div { border-left: 1px solid var(--border); }
.op-summary span { font-size: 12px; color: var(--muted); }
.op-summary strong { color: var(--tone,var(--text)); font-size: clamp(21px,2.2vw,32px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; font-weight: 570; }
.op-summary small { color: var(--muted); font-size: 10px; }
.op-split { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(265px,.85fr); gap: 16px; align-items: start; }
.op-stack { display: grid; align-content: start; gap: 16px; min-width: 0; }
.op-pad { padding: 16px 18px; }
.op-fields { padding: 3px 17px; }
.op-fields > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding: 10px 0; }
.op-fields > div:last-child { border-bottom: 0; }
.op-fields dt, .op-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.op-fields dd { text-align: right; font-weight: 550; font-size: 12px; }
.op-empty { padding: 23px 17px; color: var(--muted); font-size: 13px; }
.op-intro { display: flex; gap: 12px; align-items: center; padding: 18px; }
.op-intro h3 { margin: 2px 0 4px; font-size: 16px; }
.op-icon { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 5px; background: color-mix(in srgb,var(--tone,var(--accent)) 9%,var(--surface)); color: var(--tone,var(--accent)); border: 1px solid color-mix(in srgb,var(--tone,var(--accent)) 21%,var(--border)); }
.op-icon svg { width: 20px; height: 20px; }
.op-foot { padding: 12px 17px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ops button, .ops select { font: inherit; cursor: pointer; }
.op-button, .op-select { color: var(--text); border: 1px solid var(--border); background: var(--surface-2); padding: 7px 10px; border-radius: 4px; font-size: 12px !important; }
.op-button[aria-pressed=true], .op-button.op-primary { color: var(--accent); border-color: color-mix(in srgb,var(--accent) 50%,var(--border)); background: var(--op-accent-bg); }
.ops :is(button,select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ops button:disabled, .ops select:disabled { opacity: .75; cursor: default; }
.op-stream { list-style: none; padding: 6px 16px; margin: 0; }
.op-stream li { display: grid; grid-template-columns: 65px 16px 1fr; column-gap: 9px; position: relative; align-items: start; }
.op-stream li > :first-child, .op-stream li > div { padding: 10px 0; }
.op-stream li > div { border-bottom: 1px solid var(--border); min-width: 0; }
.op-stream li:last-child > div { border: 0; }
.op-stream li > i { display: grid; justify-items: center; align-self: stretch; }
.op-stream li > i::before { content:''; position: absolute; top: 16px; bottom:-16px; width: 1px; background: var(--border); }
.op-stream li:last-child > i::before { display:none; }
.op-stream li > i::after { content:''; width: 7px; height: 7px; border-radius: 50%; margin-top: 16px; background: var(--tone); z-index: 1; box-shadow: 0 0 0 3px var(--surface); }
.op-time { font-size: 10px; color: var(--muted); line-height: 1.8; white-space: nowrap; }
.op-stream strong { font-size: 12px; display: block; font-weight: 560; }
.op-stream p { font-size: 11px; margin-top: 3px; color: var(--muted); line-height: 1.45; }
.op-tools { justify-content: space-between; flex-wrap: wrap; }
.op-tools-label { font-size: 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.op-segment { display: inline-flex; align-items: center; gap: 4px; }
.op-table-wrap { overflow-x: auto; }
.ops table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; text-align: left; }
.ops th { background: var(--op-faint); font-weight: 550; font-size: 10px; color: var(--muted); }
.ops td, .ops th { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.ops tbody tr:last-child td { border-bottom: 0; }
.ops td small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.op-spark { width: 100px; height: 26px; vertical-align: middle; overflow: visible; }
.op-code { overflow-x: auto; white-space: pre; line-height: 1.85; font-size: 11px; margin: 0; color: var(--text); background: var(--bg); border-top: 1px solid var(--border); padding: 12px 17px; }
.op-timeline-caption { padding: 11px 16px; font-size: 11px; color: var(--muted); background: var(--op-faint); }
@media(max-width: 1100px) { .op-split { grid-template-columns: minmax(0,1.45fr) minmax(215px,.85fr); } .op-summary > div { padding: 12px; } }
@media(max-width: 820px) { .op-split { grid-template-columns: 1fr; } .op-summary { grid-template-columns: repeat(2,1fr); } .op-summary > div:nth-child(3) { border-left: 0; } .op-summary > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
.op-planes { margin: 0; padding: 13px 17px; background: var(--op-faint); border-bottom: 1px solid var(--border); }
.op-planes figcaption { font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.op-lane { display: grid; grid-template-columns: 75px 1fr; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; margin: 5px 0; }
.op-lane svg { display: block; width: 100%; height: 8px; border-radius: 2px; overflow: hidden; shape-rendering: crispEdges; }
.op-axis { display: flex; margin-left: 81px; justify-content: space-between; font: 9px var(--mono); color: var(--muted); }
.op-key { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 10px; color: var(--muted); margin-top: 9px; }
.op-key span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 1px; background: var(--healthy); margin-right: 4px; }
.op-key span:nth-child(2)::before { background: var(--danger); }
.op-key span:nth-child(3)::before { background: var(--unknown); }
