.ops-view { min-width: 0; letter-spacing: 0; }
.ops-view h1 { font-size: 23px; margin: 0; }
.ops-view h2, .ops-trace h2 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.ops-view h3, .ops-trace h3 { font-size: 14px; margin: 0 0 10px; }
.ops-view p, .ops-trace p { margin: 7px 0; }
.ops-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ops-toolbar > h1, .ops-toolbar > h2 { flex: 1; min-width: 180px; }
.ops-muted { color: var(--text-muted); font-size: 12px; }
.ops-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.ops-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; min-width: 0; }
.ops-field input, .ops-field select, .ops-field textarea, .ops-toolbar select, .ops-toolbar input {
  min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font: inherit; background: var(--surface); color: var(--text); box-sizing: border-box;
}
.ops-toolbar select, .ops-toolbar input { width: auto; max-width: 100%; }
.ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ops-span { grid-column: 1 / -1; }
.ops-error { padding: 10px 12px; background: var(--surface); border-left: 3px solid var(--danger); color: var(--danger); margin: 12px 0; font-size: 13px; }
.ops-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-block: 1px solid var(--border); margin: 16px 0; }
.ops-stats > div { padding: 16px; }
.ops-stats strong { font-size: 25px; display: block; margin-top: 5px; }
.ops-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 18px 0; gap: 6px; }
.ops-tabs button { padding: 10px 12px; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--text-muted); }
.ops-tabs button[aria-selected="true"] { border-bottom-color: var(--teal); color: var(--text); font-weight: 600; }
.ops-table-wrap { overflow-x: auto; max-width: 100%; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 680px; }
.ops-table th, .ops-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ops-table th { color: var(--text-muted); font-weight: 500; background: var(--surface); }
.ops-table td:first-child { min-width: 150px; max-width: 310px; overflow-wrap: anywhere; }
.ops-table .btn { white-space: nowrap; }
.ops-empty { padding: 30px 8px; color: var(--text-muted); text-align: center; font-size: 13px; }
.ops-pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.ops-trace { width: min(800px, calc(100vw - 28px)); max-height: 92dvh; display: flex; flex-direction: column; border-radius: 8px; }
.modal-backdrop:has(.ops-trace) { z-index: 2147481900; }
body:has(.ops-trace) .install-banner,
body:has(.ops-trace) .app-version-cluster { display: none; }
.ops-trace .modal-body { overflow-y: auto; min-height: 0; }
.ops-trace .modal-header, .ops-trace .modal-footer { flex-shrink: 0; }
.ops-note-form { display: flex; align-items: end; gap: 12px; }
.ops-note-form .ops-field { flex: 1; }
.ops-note-form textarea { resize: vertical; max-height: 140px; }
.ops-timeline { list-style: none; padding: 0 0 0 15px; margin: 14px 0; border-left: 2px solid var(--teal); }
.ops-timeline li { padding: 0 0 18px 8px; font-size: 12px; }
.ops-timeline .ops-toolbar { margin-bottom: 5px; }
.ops-timeline time { color: var(--text-muted); font-size: 11px; }
.ops-goal-status { font-weight: 600; }
.ops-goal-status.is-good { color: var(--success); }
.ops-goal-status.is-risk { color: var(--danger); }
.ops-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.ops-kpi-card { border: 1px solid var(--border); border-top: 3px solid var(--border-strong); padding: 14px; background: var(--surface); border-radius: 8px; min-width: 0; }
.ops-kpi-card.is-good { border-top-color: var(--success); }
.ops-kpi-card.is-risk { border-top-color: var(--danger); }
.ops-kpi-card h3 { min-height: 34px; margin: 10px 0 4px; line-height: 1.35; }
.ops-kpi-head, .ops-kpi-meta, .ops-row-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ops-kpi-head > span:first-child { font-weight: 800; color: var(--text); }
.ops-kpi-state { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.ops-kpi-card.is-good .ops-kpi-state { color: var(--success); }
.ops-kpi-card.is-risk .ops-kpi-state { color: var(--danger); }
.ops-kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 800; margin: 16px 0 9px; }
.ops-kpi-meta { color: var(--text-muted); font-size: 11px; padding-top: 7px; border-top: 1px solid var(--border); }
.ops-kpi-card > .ops-toolbar { margin: 12px 0 0; }
.ops-check { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ops-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.ops-detail-summary > div { padding: 14px; color: var(--text-muted); font-size: 11px; }
.ops-detail-summary strong { display: block; margin-top: 5px; color: var(--text); font-size: 17px; }
.ops-detail-row { padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 12px; overflow-wrap: anywhere; }
.ops-source-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-source-list span { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; background: var(--surface); }
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .ops-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-note-form { flex-direction: column; align-items: stretch; }
  .ops-trace .modal-header, .ops-trace .modal-body, .ops-trace .modal-footer { padding: 14px; }
  .ops-toolbar > input { width: 100%; }
  .ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-detail-summary { grid-template-columns: minmax(0, 1fr); }
}
