.ops-shell { gap: 16px; }
.ops-shell [hidden], .ops-dialog [hidden] { display: none !important; }
.ops-shell [aria-current="page"], .ops-shell [aria-pressed="true"] {
  color: var(--accent); background: var(--accent-soft); border-color: var(--accent);
}
.ops-shell .ops-tabs {
  display: flex; flex-wrap: wrap; gap: 7px; padding: 8px;
}
.ops-tabs a { min-width: 0; }
.ops-shell .ops-filters {
  display: flex; align-items: end; flex-wrap: wrap; gap: 10px 14px; padding: 14px;
}
.ops-filters label {
  display: grid; flex: 0 1 auto; gap: 4px; min-width: 0; color: var(--muted); font-size: 13px;
}
.ops-filters label.ops-search { flex: 1 1 230px; }
.ops-filters :is(input,select) { width: 100%; min-width: 0; }
.ops-filters .task-search { padding-inline: 10px; }
.ops-shell .stats-row { margin-top: 0; }
.ops-body { display: grid; gap: 14px; min-width: 0; }
.ops-shell > :empty, .ops-body > :empty { display: none; }
.ops-status { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ops-toolbar, .ops-meta, .ops-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.ops-toolbar { justify-content: space-between; }
.ops-actions { margin-top: 4px; }
.ops-list {
  display: grid; margin: 0; padding: 0; list-style: none;
}
.ops-record {
  min-width: 0; padding-block: 8px;
  overflow-wrap: anywhere;
}
.ops-list > li + li { border-top: 1px solid var(--line); }
.ops-record summary {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start;
  column-gap: 8px; min-height: 52px; padding: 8px 1px;
  cursor: pointer; list-style: none;
}
.ops-record summary::-webkit-details-marker { display: none; }
.ops-record summary::after {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  content: '›'; color: var(--muted); font-size: 22px;
}
.ops-record[open] summary::after { transform: rotate(90deg); }
.ops-record summary > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ops-meta, .ops-caption { margin: 0; color: var(--muted); font-size: 13px; }
.ops-status-badge {
  display: inline-flex; align-items: center; min-height: 24px; padding: 1px 8px; border-radius: 7px;
  background: var(--canvas); color: var(--muted); font-size: 12px; white-space: nowrap;
}
.ops-status-badge[data-tone="open"], .ops-status-badge[data-tone="overdue"] {
  background: var(--accent-soft); color: var(--accent);
}
.ops-status-badge[data-tone="approved"], .ops-status-badge[data-tone="review"] {
  background: #f9efdb; color: #80531a;
}
.ops-status-badge[data-tone="closed"] { background: #e5f3eb; color: #32684d; }
.ops-record-body {
  display: grid; gap: 10px; margin-block: 2px 8px; padding: 12px; border-radius: 8px;
  background: var(--canvas);
}
.ops-record-body dl {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: 8px 14px; margin: 0;
}
.ops-record-body dt { color: var(--muted); font-size: 13px; }
.ops-record-body dd { margin: 3px 0 0; font-size: 14px; white-space: pre-wrap; }
.ops-record-body > p { margin: 0; white-space: pre-wrap; }
.ops-dialog { color: var(--ink); }
.ops-dialog h2 { margin: 0; overflow-wrap: anywhere; }
.ops-dialog .hub-form-error { margin: 0; }
.ops-dialog .hub-form-grid > * { min-width: 0; }
.ops-dialog :is(input,textarea,select):focus-visible,
.ops-shell :is(a,button,input,select,summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.ops-dialog .ops-dialog-submit { justify-content: flex-end; }
.ops-history { display: grid; gap: 8px; padding-inline-start: 20px; font-size: 14px; }
.ops-history p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ops-history small { display: block; margin-top: 2px; color: var(--muted); }
@media (max-width: 550px) {
  .ops-shell { gap: 12px; }
  .ops-shell .panel:not(.ops-tabs,.ops-filters) { padding: 14px; }
  .ops-dialog .hub-form-grid { grid-template-columns: minmax(0,1fr); }
  .ops-filters label:not(.ops-search) { flex: 1 1 105px; }
}
