.ops-view {
  max-width: 1400px;
  margin: 0 auto;
  padding: 38px 38px 58px;
  --ops-border: #dde6db;
  --ops-ink: #203e38;
  --ops-muted: #566d64;
  --ops-tint: #edf4ec;
}
#open-ops[aria-current] { background: #dcebd5; color: #194738; border-color: #bad0b5; }
.ops-header,
.ops-card-heading,
.ops-section-heading,
.ops-timeline li > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ops-header h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: 0; font-weight: 650; }
.ops-header p { margin: 7px 0 0; color: var(--ops-muted); }
.ops-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ops-view .primary, .ops-view .secondary, .ops-dialog .primary, .ops-dialog .secondary { font-size: 13px; }
.ops-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--ops-border); margin: 26px 0 18px; }
.ops-tabs button {
  font-size: 14px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 9px 3px 12px;
  color: var(--ops-muted);
}
.ops-tabs button[aria-pressed=true] { color: #205c45; border-bottom-color: #327658; font-weight: 650; }
.ops-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.ops-stats div { border: 1px solid var(--ops-border); background: #fbfcf9; border-radius: 8px; padding: 13px 15px; display: grid; gap: 4px; }
.ops-stats span { color: var(--ops-muted); font-size: 12px; }
.ops-stats strong { color: var(--ops-ink); font-size: 25px; font-variant-numeric: tabular-nums; font-weight: 620; }
.ops-layout { display: grid; grid-template-columns: minmax(215px, 0.72fr) minmax(0, 1.8fr); gap: 16px; align-items: start; }
.ops-card { background: white; border: 1px solid var(--ops-border); border-radius: 10px; min-width: 0; }
.ops-card h2, .ops-card h3, .ops-card h4 { color: var(--ops-ink); margin: 0; }
.ops-card-heading { padding: 15px 16px; border-bottom: 1px solid var(--ops-border); }
.ops-card-heading h2, .ops-card h3 { font-size: 15px; font-weight: 650; }
.ops-card-heading span { font-size: 12px; color: var(--ops-muted); }
.ops-card select, .ops-search input {
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid #cddacc;
  border-radius: 5px;
  color: var(--ops-ink);
  background: #fff;
  font-size: 12px;
}
.ops-search { padding: 12px 12px 0; }
.ops-search input { width: 100%; }
.ops-list { display: grid; gap: 4px; max-height: 55vh; min-height: 78px; overflow: auto; padding: 8px; }
.ops-row { background: white; border: 1px solid transparent; border-radius: 6px; text-align: left; color: var(--ops-ink); padding: 12px; min-width: 0; }
.ops-row:hover { background: #f6f9f4; }
.ops-row[aria-pressed=true] { background: var(--ops-tint); border-color: #cddfcb; }
.ops-row strong { display: block; margin-top: 6px; overflow-wrap: anywhere; line-height: 1.5; }
.ops-row small { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--ops-muted); }
.ops-device-row { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:12px 16px; border-bottom:1px solid var(--ops-border); }
.ops-device-row:last-child { border-bottom:0; }
.ops-device-row p, .ops-device-row small { margin:4px 0; color:var(--ops-muted); font-size:12px; overflow-wrap:anywhere; }
.ops-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ops-muted); font-size: 12px; }
.ops-badge { display: inline-block; border-radius: 4px; padding: 3px 7px; background: #eef4eb; color: #355b47; font-size: 11px; line-height: 1.3; }
.ops-priority-p1 { background: #f9e6e1; color: #8c362e; font-weight: 650; }
.ops-priority-p2 { background: #f8edd9; color: #79501e; font-weight: 650; }
.ops-priority-p3 { background: #e7efe5; color: #375f45; font-weight: 650; }
.ops-detail { overflow-wrap: anywhere; }
.ops-detail-head, .ops-detail-section { padding: 18px 20px; }
.ops-detail-head h2 { font-size: 21px; margin: 8px 0; }
.ops-detail-head p, .ops-timeline p { line-height: 1.65; white-space: pre-wrap; }
.ops-detail-section { border-top: 1px solid var(--ops-border); }
.ops-detail-section h4 { margin-top: 10px; }
.ops-empty { padding: 10px; margin: 0; color: var(--ops-muted); line-height: 1.6; font-size: 13px; }
.ops-detail > .ops-empty { padding: 20px; }
.ops-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; gap: 12px; background: #f6f8f4; padding: 14px; border-radius: 6px; }
.ops-meta dt, .ops-procedure dt, .ops-section-label { color: var(--ops-muted); font-size: 12px; font-weight: 650; }
.ops-meta dd, .ops-procedure dd { margin: 4px 0 0; color: var(--ops-ink); line-height: 1.55; }
.ops-meta dd small { display: block; color: var(--ops-muted); font-size: 11px; }
.ops-alert { margin-left: 5px; font-size: 11px; font-weight: 650; color: #913b29; }
.ops-plan-meta { margin-top: 10px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ops-muted); }
.ops-link { border: 0; background: none; padding: 4px 0; color: #1c6249; text-align: left; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ops-muted, .ops-message { color: var(--ops-muted); font-size: 12px; }
.ops-steps, .ops-questions { line-height: 1.65; padding-inline-start: 24px; }
.ops-steps li + li { margin-top: 5px; }
.ops-procedure { background: #f3f7f2; border-left: 3px solid #a2bca4; border-radius: 4px; padding: 12px; margin: 14px 0; }
.ops-procedure div + div { margin-top: 10px; }
.ops-timeline { list-style: none; padding: 0; margin: 10px 0 0; }
.ops-timeline li { border-left: 2px solid #cbdcce; padding: 7px 0 10px 12px; }
.ops-timeline time, .ops-timeline small { font-size: 11px; color: var(--ops-muted); }
.ops-timeline p { margin: 4px 0 0; }
.ops-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-version { display: flex; align-items: center; gap: 8px; color: var(--ops-muted); font-size: 13px; }
.ops-source a { text-decoration: underline; text-underline-offset: 3px; }
.ops-dialog { width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 42px); color: #233b35; }
.ops-form { display: grid; gap: 13px; }
.ops-form label { display: grid; gap: 4px; font-size: 13px; }
.ops-dialog .ops-form input, .ops-dialog .ops-form textarea, .ops-dialog .ops-form select {
  width: 100%; margin: 0; border: 1px solid #cddacc; border-radius: 5px; padding: 8px 9px; background: white; color: #1f3d35;
}
.ops-form textarea { resize: vertical; }
.ops-form p { margin: 0; font-size: 13px; line-height: 1.65; }
.ops-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ops-form .ops-buttons { justify-content: flex-end; }
.ops-example { justify-self: start; }
.ops-monitor-heading, .ops-monitor-service-top, .ops-monitor-ticket-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.ops-monitor-heading { margin-bottom: 12px; }
.ops-monitor-heading h2 { margin: 0; color: var(--ops-ink); font-size: 16px; font-weight: 650; }
.ops-monitor-status {
  background: #fbf7eb; border: 1px solid #eadbc0; border-radius: 6px; color: #725b37;
  line-height: 1.6; margin: 0 0 12px; padding: 10px 12px; font-size: 13px;
}
#ops-monitor-pane[data-monitor-state=loading] .ops-monitor-status,
#ops-monitor-pane[data-monitor-state=empty] .ops-monitor-status { background: #fff; border-color: var(--ops-border); color: var(--ops-muted); }
.ops-monitor-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ops-monitor-service {
  display: grid; align-content: start; gap: 6px; text-align: left; color: var(--ops-ink);
  min-width: 0; padding: 13px 15px; border: 1px solid var(--ops-border); border-radius: 8px; background: #fff;
}
.ops-monitor-service:hover { background: #f7faf6; }
.ops-monitor-service[aria-pressed=true] { border-color: #6c987e; box-shadow: inset 0 0 0 1px #6c987e; background: #f8fbf7; }
.ops-monitor-service strong { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; margin: 2px 0 0; }
.ops-monitor-kind, .ops-monitor-state { border-radius: 4px; padding: 3px 7px; font-size: 11px; line-height: 1.3; }
.ops-monitor-kind { background: #eef3ef; color: #436356; }
.ops-monitor-kind.is-exercise { background: #faeed6; color: #7d5520; }
.ops-monitor-state { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; background: #ebefed; color: #536961; }
.ops-monitor-state::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.ops-monitor-state[data-state=healthy] { background: #e1f0e6; color: #226041; }
.ops-monitor-state[data-state=degraded] { background: #f8edd5; color: #7d5114; }
.ops-monitor-state[data-state=incident] { background: #f9e5e0; color: #94392b; }
.ops-monitor-state[data-state=recovering] { background: #e4eef5; color: #2c5874; }
.ops-monitor-probe, .ops-monitor-probe-detail { font-size: 12px; color: var(--ops-muted); line-height: 1.45; overflow-wrap: anywhere; }
.ops-monitor-probe time, .ops-monitor-timeline time { font-variant-numeric: tabular-nums; }
.ops-monitor-detail { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.52fr); gap: 16px; align-items: start; }
.ops-monitor-activity, .ops-monitor-routing { overflow-wrap: anywhere; }
.ops-monitor-activity .ops-card-heading { flex-wrap: wrap; }
.ops-monitor-section { padding: 15px 16px; }
.ops-monitor-section + .ops-monitor-section { border-top: 1px solid var(--ops-border); }
.ops-monitor-section .ops-empty { padding: 8px 0 0; }
.ops-monitor-ticket-head { margin-top: 9px; }
.ops-monitor-ticket-head .ops-link { font-weight: 650; }
.ops-monitor-facts { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 10px 0; font-size: 12px; }
.ops-monitor-facts dt { color: var(--ops-muted); font-size: 11px; }
.ops-monitor-facts dd { margin: 3px 0 0; color: var(--ops-ink); }
.ops-monitor-next { margin: 9px 0 0; border-radius: 5px; padding: 8px 10px; background: #f0f5ee; line-height: 1.6; font-size: 12px; }
.ops-monitor-next strong { color: var(--ops-ink); margin-right: 4px; }
.ops-monitor-timeline { margin-top: 10px; }
.ops-monitor-timeline li > div { flex-wrap: wrap; gap: 2px 8px; }
.ops-monitor-timeline li > div strong { font-size: 13px; }
.ops-monitor-timeline p { font-size: 12px; }
.ops-monitor-timeline a { display: inline-block; }
.ops-monitor-routing .ops-form { padding: 15px 16px; }
.ops-monitor-routing select, .ops-monitor-routing input {
  width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #cddacc;
  border-radius: 5px; background: #fff; color: var(--ops-ink); font-size: 13px;
}
.ops-monitor-routing select:disabled, .ops-monitor-routing input:disabled { background: #f4f6f3; }
.ops-monitor-routing .ops-monitor-facts { margin: 0; padding-top: 10px; border-top: 1px solid var(--ops-border); }
.ops-monitor-routing .ops-form > p { font-size: 12px; }
.ops-monitor-routing button:disabled { cursor: default; }
@media (max-width: 1050px) {
  .ops-view { padding: 24px 22px 42px; }
  .ops-layout { grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.5fr); }
  .ops-header { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 850px) {
  .ops-layout, .ops-monitor-detail { grid-template-columns: minmax(0, 1fr); }
  .ops-list { max-height: 230px; }
}
@media (max-width: 600px) {
  .ops-view { padding: 20px 16px 36px; }
  .ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-detail-head, .ops-detail-section { padding: 14px; }
  .ops-section-heading { flex-wrap: wrap; }
}

