.ops-page { min-width: 0; }
.ops-heading { gap: 16px; }
.ops-title, .ops-meta { display: flex; align-items: center; gap: 12px; }
.ops-title h1 { margin-bottom: 4px; }
.ops-title-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--brand);
  background: #e8e6fe;
}
.ops-meta { flex-wrap: wrap; justify-content: flex-end; }
.ops-meta small, .ops-list .m-card-head p { color: var(--muted); font-size: .8rem; }
.ops-list .m-card-head p { margin-top: 5px; }
.ops-page-body { display: grid; gap: 16px; min-width: 0; }
.ops-filter-card { padding-block: 13px; }
.ops-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}
.ops-filters label, .ops-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #52617a;
  font-size: .8rem;
  font-weight: 680;
}
.ops-filters label { flex: 1 1 115px; max-width: 200px; }
.ops-filters label.ops-search { flex: 2 1 210px; max-width: 330px; }
.ops-filters input, .ops-filters select, .ops-fields input, .ops-fields select, .ops-fields textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
}
.ops-fields textarea {
  resize: vertical;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}
.ops-fields textarea:focus-visible { outline: 2px solid #7870fa; outline-offset: 3px; }
.ops-search-input { position: relative; }
.ops-search-input svg { position: absolute; inset: 11px auto auto 10px; color: #73829a; pointer-events: none; }
.ops-search-input input { padding-inline-start: 33px; }
.ops-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.ops-metric {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.ops-metric-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; }
.ops-tone-purple { color: #5342d1; background: #edeaff; }
.ops-tone-blue { color: #3559b4; background: #e9efff; }
.ops-tone-teal { color: #0d795d; background: #ddf8f2; }
.ops-tone-amber { color: #935708; background: #fdf2d5; }
.ops-metric > div { display: grid; gap: 2px; min-width: 0; }
.ops-metric > div > span { color: var(--muted); font-size: .79rem; }
.ops-metric strong { color: var(--ink); font-size: 1.24rem; font-variant-numeric: tabular-nums; line-height: 1.22; overflow-wrap: anywhere; }
.ops-metric small { color: var(--muted); font-size: .7rem; font-weight: 650; }
.ops-list .m-card-head { min-height: 29px; margin-bottom: 13px; }
.ops-count { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.ops-table .data-table { min-width: 100%; }
.ops-table .data-table th { background: #f4f6fb; }
.ops-table .data-table :is(th, td) { padding-block: 9px; }
.ops-table .data-table td { vertical-align: middle; }
.ops-table th, .ops-table td.ops-number { white-space: nowrap; }
.ops-table .ops-number { text-align: right; font-variant-numeric: tabular-nums; }
.ops-table .data-table tbody tr:hover { background: #fafaff; }
.ops-amount { font-variant-numeric: tabular-nums; }
.ops-amount small { color: var(--muted); font-size: .78em; }
.ops-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 12px; color: var(--ink); text-align: center; }
.ops-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--brand); background: #edeaff; }
.ops-empty p { color: var(--muted); font-size: .85rem; }

.ops-channel-groups { display: grid; gap: 18px; }
.ops-channel-group h3 { margin: 0 0 9px; color: #52617a; font-size: .87rem; }
.ops-channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.ops-channel { padding: 13px; border: 1px solid var(--border); border-radius: 11px; min-width: 0; }
.ops-channel header, .ops-channel footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ops-channel h4 { margin: 0; font-size: 1.03rem; }
.ops-channel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.ops-channel dl > div { display: grid; gap: 6px; padding: 8px; border-radius: 7px; background: #f6f8fc; min-width: 0; }
.ops-channel dt { display: flex; align-items: center; gap: 6px; color: #52617a; font-size: .78rem; font-weight: 700; }
.ops-channel dd { display: grid; justify-items: start; gap: 4px; margin: 0; }
.ops-channel small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }

.ops-dialog {
  width: min(640px, calc(100vw - 28px));
  max-height: min(82dvh, 780px);
  padding: 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 24px 70px #151c3e33;
}
.ops-dialog::backdrop { background: #11192c70; }
.ops-dialog-heading, .ops-preview-result header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.ops-dialog-heading { margin-bottom: 13px; }
.ops-dialog-heading h2 { font-size: 1.22rem; }
.ops-preview-result h3 { font-size: .96rem; }
.ops-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ops-details > div { display: grid; gap: 4px; padding: 9px 10px; min-width: 0; background: #fff; }
.ops-details dt { color: var(--muted); font-size: .76rem; }
.ops-details dd { margin: 0; font-size: .88rem; white-space: pre-line; overflow-wrap: anywhere; }
.ops-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ops-preview-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #efeeff;
  color: #5144a6;
  font-size: .8rem;
  font-weight: 650;
}
.ops-targets { margin: 0 0 12px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.ops-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ops-wide-field { grid-column: 1 / -1; }
.ops-preview-result { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.ops-rate-preview { margin: 0; padding: 0; list-style: none; }
.ops-rate-preview li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--border); font-size: .81rem; }
.ops-rate-preview li strong { flex: none; color: var(--brand); font-variant-numeric: tabular-nums; }

@media (max-width: 740px) {
  .ops-heading { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .ops-meta { justify-content: flex-start; }
  .ops-filters label, .ops-filters label.ops-search { max-width: none; }
}
@media (max-width: 450px) {
  .ops-dialog { padding: 14px; }
  .ops-fields, .ops-details { grid-template-columns: 1fr; }
}
