#operations {
  --op-pad: clamp(18px, 1.85vw, 30px);
  --op-line: #dee7f4;
  min-width: 0;
  color: var(--ink);
}
.op-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
  gap: clamp(16px, 1.55vw, 25px);
}
.op-card {
  min-width: 0;
  background: var(--surface);
  padding: var(--op-pad);
  border-radius: 25px;
  box-shadow: var(--shadow);
  margin: 0;
}
.op-card h2,
.op-dialog h2 {
  letter-spacing: normal;
  line-height: 1.25;
  margin: 0;
  font-size: var(--type-card);
}
.op-headrow,
.op-heading,
.op-index-head,
.op-actions,
.op-shortcuts,
.op-search-row,
.op-beat,
.op-chip,
.op-heading h2,
.op-shortcut,
.op-types,
.op-listhead,
.op-pager,
.op-line {
  display: flex;
  align-items: center;
}
.op-headrow {
  justify-content: space-between;
  gap: 8px;
}
.op-heading {
  gap: clamp(12px, 1.25vw, 20px);
}
.op-heading h2 {
  gap: 0.6em;
  flex-wrap: wrap;
}
.op-heading p {
  font-size: var(--type-support);
  color: var(--muted);
  margin: 5px 0 0;
}
.op-tile {
  width: clamp(52px, 4.9vw, 75px);
  height: clamp(52px, 4.9vw, 75px);
  display: grid;
  place-items: center;
  flex: none;
  background: #e3ecff;
  color: #255efa;
  border-radius: 18px;
}
.op-tile .icon {
  width: 53%;
  height: 53%;
}
.op-version {
  line-height: 1.3;
  border-radius: 11px;
  background: #e9f0ff;
  color: #245cdd;
  font:
    700 var(--type-meta)/1.35 Manrope,
    sans-serif;
  padding: 4px 12px;
  letter-spacing: 0;
}
.op-link {
  background: transparent;
  color: #235bd1;
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  font-weight: 650;
  box-shadow: none;
}
.op-link:hover {
  background: #edf3ff;
}
.op-headrow > .op-link,
.op-index-head > .op-link {
  font-size: 14px;
  white-space: nowrap;
  color: #465f86;
}
.op-beats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 16px);
  margin: clamp(20px, 2vw, 30px) 0;
}
.op-beat {
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 6px;
  background: #fff6e6;
  border-radius: 12px;
  padding: clamp(8px, 0.88vw, 14px);
  font-size: var(--type-body);
}
.op-beat.is-up {
  background: #eef9f2;
}
.op-chip {
  display: inline-flex;
  gap: 4px;
  border-radius: 8px;
  padding: 3px 9px;
  color: #46597b;
  background: #edf2fa;
  font-size: 0.94em;
  line-height: 1.45;
  font-weight: 680;
  white-space: nowrap;
}
.op-chip .icon {
  height: 1em;
  width: 1em;
}
.op-chip.good {
  color: #146839;
  background: #ddf4e3;
}
.op-chip.warn,
.op-chip.bad {
  color: #83571a;
  background: #fff0cf;
}
.op-values {
  border: 1px solid var(--op-line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.5;
}
.op-values > div {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  min-height: clamp(47px, 3.94vw, 60px);
}
.op-values > div + div {
  border-top: 1px solid var(--op-line);
}
.op-values dt,
.op-values dd {
  margin: 0;
  align-content: center;
  padding: 10px clamp(12px, 1.3vw, 21px);
  overflow-wrap: anywhere;
}
.op-values dt {
  color: #425575;
  background: #f5f7fb;
  font-weight: 600;
}
.op-values dd {
  font-weight: 660;
  font-variant-numeric: tabular-nums;
}
.op-values code {
  background: none;
  padding: 0;
  font:
    650 0.94em/1.4 ui-monospace,
    monospace;
}
.op-values small,
.op-line small {
  color: var(--muted);
  font-size: 14px;
  display: block;
  font-weight: 500;
}
.op-policy {
  display: flex;
  flex-direction: column;
}
.op-policy .op-values {
  margin: clamp(20px, 2vw, 30px) 0;
}
.op-policy .op-values > div {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: clamp(60px, 5.2vw, 80px);
}
.op-policy .op-values dt {
  background: transparent;
}
.op-policy .op-values dd {
  text-align: right;
  max-width: 13ch;
}
.op-actions {
  margin-top: auto;
  gap: clamp(12px, 1.6vw, 26px);
  padding: 8px 0 clamp(0px, 0.8vw, 14px);
  flex-wrap: wrap;
}
.op-actions .primary {
  min-height: clamp(46px, 3.8vw, 58px);
  padding: 10px clamp(19px, 2.3vw, 36px);
  font-size: var(--type-control);
}
.op-index-card {
  grid-column: 1/-1;
}
.op-index-head {
  gap: clamp(10px, 1.15vw, 18px);
  flex-wrap: wrap;
}
.op-index-head .op-tile {
  width: clamp(40px, 3.7vw, 56px);
  height: clamp(40px, 3.7vw, 56px);
  border-radius: 13px;
}
.op-count {
  padding-left: clamp(10px, 1.4vw, 22px);
  border-left: 1px solid #b8c6db;
  color: var(--muted);
  font-size: var(--type-body);
  font-weight: 620;
}
.op-index-head > .op-link {
  margin-left: auto;
}
.op-search-row {
  gap: clamp(18px, 3.1vw, 48px);
  margin: clamp(18px, 1.45vw, 24px) 0 clamp(20px, 2vw, 32px);
}
.op-search {
  position: relative;
  display: block;
  flex: 0 1 64%;
}
.op-search .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 21px;
  color: #657b99;
}
.op-search input {
  width: 100%;
  min-height: clamp(46px, 3.6vw, 55px);
  padding-left: 46px;
  border: 1px solid #bfcee2;
  background: white;
  font-size: var(--type-body);
}
.op-check,
.config-editor-fields > label.op-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
  font-weight: 600;
  line-height: 1.45;
  width: auto;
}
.op-check input:not([role='switch']) {
  flex: none;
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 0;
  accent-color: var(--primary);
}
.op-shortcuts {
  gap: clamp(10px, 1.35vw, 22px);
  flex-wrap: wrap;
  padding-top: clamp(18px, 1.9vw, 30px);
  border-top: 1px solid var(--op-line);
}
.op-shortcuts strong {
  margin-right: 4px;
  padding-right: clamp(14px, 2vw, 32px);
  border-right: 1px solid #b8c6db;
}
.op-shortcut {
  gap: 10px;
  justify-content: center;
  background: #f0f5fd;
  color: var(--ink);
  border-radius: 14px;
  padding: 11px clamp(13px, 1.55vw, 24px);
  min-height: 46px;
  box-shadow: none;
}
.op-shortcut:hover {
  background: #e6eefe;
}
.op-shortcut .icon {
  width: 20px;
  height: 20px;
}
.op-shortcuts .op-shortcut {
  min-height: clamp(46px, 3.9vw, 60px);
  font-size: var(--type-control);
}
#op-results {
  margin: 0 0 24px;
}
.op-listhead,
.op-line {
  justify-content: space-between;
  gap: 12px;
}
.op-listhead {
  font-size: 15px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.op-result,
.op-line,
.op-detail-block {
  border-top: 1px solid var(--op-line);
  padding: 12px 0;
}
.op-result summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.op-result summary:before {
  content: '›';
  color: #426baf;
  font-size: 22px;
  line-height: 1;
}
.op-result[open] summary:before {
  transform: rotate(90deg);
}
.op-result summary > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.op-result code,
.op-host code,
.op-line,
.op-dialog,
.op-mapping {
  overflow-wrap: anywhere;
}
.op-result code,
.op-mapping,
.op-line time {
  font-size: 14px;
  color: var(--muted);
}
.op-result code {
  display: block;
}
.op-mapping {
  padding: 8px 0 0 21px;
}
.op-mapping p {
  margin: 5px 0;
}
.op-pager {
  gap: 10px;
  margin-top: 12px;
}
.op-dialog h2 {
  font-size: var(--type-card);
}
.op-dialog h3 {
  font-size: var(--type-item);
  margin: 0;
}
.op-detail-block:first-child {
  border: 0;
  padding-top: 0;
}
.op-detail-block p,
.op-host p {
  margin: 8px 0 14px;
}
.op-detail-block:last-child {
  padding-bottom: 0;
}
.op-dialog .op-values {
  font-size: 15px;
}
.op-dialog .op-values > div {
  min-height: 42px;
}
.op-note,
.op-hint,
.op-caption,
.op-empty {
  color: var(--muted);
  line-height: 1.55;
}
.op-hint {
  font-size: 14px;
  margin-top: -12px !important;
}
.op-caption {
  font-size: 14px;
  color: #2754a9;
  font-weight: 650;
}
.op-dialog fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.op-dialog legend {
  margin-bottom: 10px;
  font-weight: 650;
}
.op-types {
  gap: 12px 18px;
  flex-wrap: wrap;
}
.op-empty,
.op-warning,
.op-banner {
  padding: 13px 16px;
  border-radius: 12px;
  background: #f1f5fb;
}
.op-warning,
.op-banner:has([role='alert']) {
  background: #fff5e2;
  color: #75501a;
}
.op-banner {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.op-banner p {
  margin: 4px 0 0;
}
.op-line time {
  text-align: right;
}
.op-host summary {
  cursor: pointer;
  color: #315d9c;
  font-weight: 650;
}
@media (min-width: 761px) and (max-width: 1150px) {
  .op-grid {
    grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  }
  .op-headrow {
    flex-wrap: wrap;
  }
  .op-beats {
    gap: 5px;
  }
  .op-beat {
    padding: 7px 5px;
  }
  .op-beat .op-chip {
    padding: 3px 5px;
  }
}
@media (max-width: 760px) {
  .op-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .op-card {
    border-radius: 20px;
  }
  .op-headrow {
    flex-wrap: wrap;
    gap: 3px;
  }
  .op-beats {
    gap: 6px;
  }
  .op-beat {
    flex-direction: column;
    align-items: flex-start;
    padding: 9px;
    gap: 4px;
  }
  .op-values > div {
    min-height: 44px;
  }
  .op-policy .op-values > div {
    min-height: 50px;
  }
  .op-actions {
    padding: 0;
  }
  .op-search-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .op-search {
    flex: auto;
  }
  .op-index-head {
    gap: 8px;
  }
  .op-index-head > .op-link {
    padding-inline: 3px;
  }
  .op-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .op-shortcuts strong {
    grid-column: 1/-1;
    border: 0;
    margin: 0 0 4px;
    padding: 0;
  }
  .op-shortcut {
    min-width: 0;
    padding: 10px;
    gap: 6px;
  }
  .op-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .op-card {
    padding: 15px;
  }
  .op-index-head h2 {
    font-size: var(--type-card);
  }
  .op-index-head .op-tile {
    width: 34px;
    height: 34px;
  }
  .op-count {
    padding-left: 7px;
  }
  .op-shortcuts {
    grid-template-columns: 1fr;
  }
}
