/* Operations evidence and observation desk. Existing enterprise shell owns
   navigation and typography; this layer stays scoped and installs no assets. */
.operations-watch {
  --ow-ink: var(--en-ink, #18313f);
  --ow-muted: var(--en-muted, #536875);
  --ow-line: var(--en-line, #e5edf0);
  --ow-surface: var(--en-surface, #fff);
  --ow-raised: var(--en-raised, #f7fafb);
  --ow-blue: var(--gy-blue, #336a9e);
  --ow-blue-wash: var(--gy-blue-wash, #eef5fc);
  --ow-warning: var(--en-warning, #875208);
  --ow-warning-wash: var(--en-warning-wash, #fbf3e6);
  --ow-danger: var(--en-danger, #a83238);
  --ow-danger-wash: var(--en-danger-wash, #fbebec);
  display: grid;
  gap: 20px;
  min-width: 0;
  color: var(--ow-ink);
  font-size: 14px;
  line-height: 1.6;
}
.operations-watch *, .operations-watch *::before, .operations-watch *::after { box-sizing: border-box; }
.operations-watch :is(h1, h2, h3, p, ul, ol, dl) { margin: 0; }
.operations-watch svg { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.operations-watch :is(button, input, select, summary) { font: inherit; }
.operations-watch :is(button, select, summary) { cursor: pointer; }
.operations-watch :is(button, input, select, summary):focus-visible { outline: 2px solid var(--ow-blue); outline-offset: 3px; }
.operations-watch button:disabled { opacity: .55; cursor: not-allowed; }
.ow-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 1px solid var(--ow-line); padding-bottom: 20px; }
.ow-header > div:first-child { min-width: 0; }
.ow-eyebrow { display: block; color: var(--ow-blue); font-size: 10px; font-weight: 600; letter-spacing: .15em; margin-bottom: 7px; }
.ow-header h1 { font-size: 26px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.ow-header p { margin-top: 8px; color: var(--ow-muted); font-size: 13px; }
.ow-header-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; flex: none; }
.operations-watch .ow-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--ow-line); border-radius: 6px; color: var(--ow-ink); background: var(--ow-surface); font-size: 13px; line-height: 1.5; font-weight: 500; white-space: nowrap; box-shadow: none; transition: background-color .16s ease, border-color .16s ease; }
.operations-watch .ow-button:hover:not(:disabled) { border-color: var(--ow-blue); background: var(--ow-blue-wash); color: var(--ow-blue); }
.operations-watch .ow-button-primary { border-color: var(--ow-blue); color: #fff; background: var(--ow-blue); }
.operations-watch .ow-button-primary:hover:not(:disabled) { background: var(--ow-ink); border-color: var(--ow-ink); color: #fff; }
.operations-watch .ow-button-link { color: var(--ow-blue); border-color: var(--ow-line); }
.ow-reading-note { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: -7px; color: var(--ow-muted); font-size: 12px; }
.ow-reading-note > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ow-reading-note svg { width: 15px; height: 15px; }
.ow-reading-note time { font-variant-numeric: tabular-nums; }
.ow-live-note { color: var(--ow-blue); font-size: 13px; }
.ow-live-note:empty { display: none; }
.ow-message { padding: 14px 16px; border: 1px solid var(--ow-line); border-left: 3px solid var(--ow-blue); border-radius: 6px; background: var(--ow-raised); overflow-wrap: anywhere; }
.ow-message-error { color: var(--ow-danger); border-color: var(--ow-danger); background: var(--ow-danger-wash); }
.ow-message p { margin-top: 4px; font-size: 13px; }
.ow-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ow-metrics > div { display: grid; gap: 5px; padding: 17px 18px; border: 1px solid var(--ow-line); border-radius: 8px; background: var(--ow-surface); min-width: 0; }
.ow-metrics span { color: var(--ow-muted); font-size: 12px; }
.ow-metrics strong { color: var(--ow-ink); font-size: 29px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.ow-metrics small { color: var(--ow-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.ow-section-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 11px; }
.ow-section-heading h3, .ow-queue-heading h3 { color: var(--ow-ink); font-size: 16px; line-height: 1.4; font-weight: 600; }
.ow-section-heading > span { color: var(--ow-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ow-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ow-source { display: grid; gap: 8px; min-width: 0; padding: 15px 16px 0; background: var(--ow-surface); border: 1px solid var(--ow-line); border-radius: 8px; }
.ow-source-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.ow-source-top h3 { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.ow-status { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 100%; color: var(--ow-muted); font-size: 11px; line-height: 1.8; white-space: nowrap; }
.ow-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.ow-status-fresh { color: var(--ow-blue); }
.ow-status-stale, .ow-status-missing { color: var(--ow-warning); }
.ow-source-range { min-width: 0; overflow-wrap: anywhere; color: var(--ow-ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.ow-source-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: var(--ow-muted); font-size: 11px; }
.ow-source-meta strong { color: var(--ow-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ow-source > p { color: var(--ow-muted); font-size: 12px; line-height: 1.6; }
.ow-details { min-width: 0; }
.ow-details > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ow-muted); list-style: none; font-size: 12px; }
.ow-details > summary::-webkit-details-marker { display: none; }
.ow-details > summary:hover { color: var(--ow-blue); }
.ow-chevron { display: inline-block; width: 7px; height: 7px; flex: none; margin-left: auto; margin-right: 3px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
.ow-details[open] > summary .ow-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.ow-source-evidence { margin-top: 3px; border-top: 1px solid var(--ow-line); }
.ow-source-evidence .ow-facts { margin-bottom: 12px; }
.ow-facts { display: grid; gap: 8px; min-width: 0; }
.ow-facts > div { display: grid; grid-template-columns: minmax(70px, .28fr) minmax(0, 1fr); gap: 10px; min-width: 0; }
.ow-facts dt { color: var(--ow-muted); font-size: 12px; font-weight: 400; }
.ow-facts dd { margin: 0; color: var(--ow-ink); font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.ow-panel { border: 1px solid var(--ow-line); border-radius: 8px; background: var(--ow-surface); min-width: 0; }
.ow-queue-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 20px 16px; }
.ow-queue-heading p { margin-top: 5px; color: var(--ow-muted); font-size: 12px; }
.ow-queue-count { flex: none; color: var(--ow-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ow-filters { display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px; gap: 10px; padding: 0 20px 16px; border-bottom: 1px solid var(--ow-line); }
.ow-filters label { display: grid; gap: 6px; min-width: 0; }
.ow-label { color: var(--ow-muted); font-size: 11px; }
.ow-search-box { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 11px; background: var(--ow-surface); border: 1px solid var(--en-control, var(--ow-line)); border-radius: 6px; }
.ow-search-box:focus-within { border-color: var(--ow-blue); outline: 2px solid var(--ow-blue); outline-offset: 2px; }
.ow-search-box > svg { color: var(--ow-muted); width: 16px; height: 16px; }
.operations-watch .ow-filters .ow-search-box input[type="search"] { width: 100%; min-width: 0; height: 40px; padding: 0 !important; color: var(--ow-ink); background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; font-size: 13px; }
.operations-watch .ow-filters select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; color: var(--ow-ink); border: 1px solid var(--en-control, var(--ow-line)); background: var(--ow-surface); border-radius: 6px; font-size: 13px; }
.ow-issue-list { padding: 0; list-style: none; }
.ow-issue { min-width: 0; padding: 15px 20px 0; border-bottom: 1px solid var(--ow-line); }
.ow-issue:last-child { border-bottom: 0; }
.ow-issue-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ow-priority { flex: none; color: var(--ow-blue); background: var(--ow-blue-wash); font-size: 11px; line-height: 24px; padding: 0 7px; border-radius: 4px; white-space: nowrap; }
.ow-issue-high .ow-priority { color: var(--ow-danger); background: var(--ow-danger-wash); }
.ow-issue-medium .ow-priority { color: var(--ow-warning); background: var(--ow-warning-wash); }
.ow-issue h3 { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; color: var(--ow-ink); font-size: 14px; line-height: 1.5; font-weight: 600; }
.ow-issue-state { margin-left: auto; flex: none; color: var(--ow-muted); font-size: 11px; white-space: nowrap; }
.ow-issue-resolved .ow-issue-state { color: var(--ow-blue); }
.ow-issue-context { margin-top: 6px !important; color: var(--ow-blue); font-size: 12px; overflow-wrap: anywhere; }
.ow-issue-excerpt { margin-top: 5px !important; color: var(--ow-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-issue > .ow-details { margin-top: 2px; }
.ow-evidence-count { color: var(--ow-muted); font-size: 11px; }
.ow-issue-detail { padding: 1px 0 16px; }
.ow-issue-detail > p { margin: 0 0 13px; overflow-wrap: anywhere; color: var(--ow-muted); font-size: 13px; }
.ow-issue-detail > .ow-button { margin-top: 14px; }
.ow-empty, .ow-placeholder { padding: 34px 20px; text-align: center; color: var(--ow-muted); }
.ow-empty strong { display: block; color: var(--ow-ink); font-size: 14px; font-weight: 500; }
.ow-empty p { max-width: 60ch; margin: 6px auto 0; font-size: 12px; line-height: 1.7; }
.ow-placeholder { grid-column: 1 / -1; border: 1px dashed var(--ow-line); border-radius: 8px; font-size: 13px; }
.ow-empty-inline { color: var(--ow-muted); font-size: 12px; }
.ow-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ow-bottom-grid > .ow-details > summary { min-height: 52px; padding: 12px 18px; color: var(--ow-ink); font-size: 14px; font-weight: 500; }
.ow-small-count { font-size: 12px; color: var(--ow-muted); font-weight: 400; }
.ow-history-body { padding: 0 18px 17px; }
.ow-change-list, .ow-history-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.ow-change-list strong { font-size: 12px; font-weight: 500; }
.ow-change-list p { margin-top: 3px; color: var(--ow-muted); font-size: 12px; overflow-wrap: anywhere; }
.ow-version-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 4px 0 9px; min-width: 0; }
.ow-version-comparison > div { min-width: 0; }
.ow-version-comparison > div > strong { display: block; margin-bottom: 9px; color: var(--ow-blue); }
.ow-version-comparison .ow-facts > div { display: block; }
.ow-version-comparison .ow-facts dd { margin-top: 3px; }
.ow-history-list li { display: flex; flex-wrap: wrap; gap: 3px 14px; justify-content: space-between; font-size: 12px; }
.ow-history-list time { color: var(--ow-ink); font-variant-numeric: tabular-nums; }
.ow-history-list li > span { color: var(--ow-muted); font-variant-numeric: tabular-nums; }
.ow-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--ow-line); }
.ow-pagination > span { color: var(--ow-muted); font-size: 12px; }
.ow-pagination > div { display: flex; gap: 8px; }
.ow-footer { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 7px 20px; padding-top: 2px; color: var(--ow-muted); font-size: 11px; }
.ow-footer > span { overflow-wrap: anywhere; }
@media (max-width: 1120px) { .ow-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ow-header { align-items: start; } }
@media (max-width: 760px) {
  .operations-watch { gap: 17px; }
  .ow-header { flex-direction: column; gap: 16px; }
  .ow-header-actions { width: 100%; justify-content: start; }
  .ow-header h1 { font-size: 24px; }
  .ow-header p { font-size: 12px; }
  .ow-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ow-metrics > div { padding: 13px; }
  .ow-metrics strong { font-size: 27px; }
  .ow-sources { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .ow-bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .ow-version-comparison { grid-template-columns: minmax(0, 1fr); }
  .ow-queue-heading { padding: 15px 14px 14px; align-items: start; }
  .ow-queue-count { padding-top: 2px; }
  .ow-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 14px; }
  .ow-search { grid-column: 1 / -1; }
  .ow-issue { padding: 14px 14px 0; }
  .ow-issue-line { flex-wrap: wrap; gap: 6px 8px; }
  .ow-issue h3 { flex: 1; font-size: 13px; }
  .ow-issue-state { flex-basis: 100%; margin-left: 0; }
  .ow-issue-context, .ow-issue-excerpt { font-size: 12px; }
  .ow-facts > div { grid-template-columns: 74px minmax(0, 1fr); }
  .ow-pagination { padding: 12px 14px; }
  .ow-source { padding: 14px 14px 0; }
}
@media (prefers-reduced-motion: reduce) { .operations-watch *, .operations-watch *::before, .operations-watch *::after { transition: none !important; scroll-behavior: auto !important; } }
