.operator-body {
  --card-radius: 18px;
  --op-gutter: clamp(16px, 4vw, 32px);
  --gap: 18px;
}

:root:has(.operator-body dialog[open]) { overflow: hidden; }

.operator-body .top { background: var(--ground); }
.operator-body .top-inner,
.operator-body .canvas { width: min(1160px, calc(100% - 2 * var(--op-gutter))); }
.operator-body .top-inner { min-height: 62px; justify-content: space-between; gap: 8px; }
.operator-body .brand { gap: 8px; font-size: 1.08rem; }
.operator-body .brand img { flex: none; border-radius: 9px; }
.operator-body .brand-role { font-size: .77rem; margin-inline-start: 2px; }
.operator-body .operator-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  min-height: 44px;
  gap: 5px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.operator-body .operator-app-link:hover { color: var(--accent); }

.operator-body .canvas { margin-block: clamp(20px, 5vw, 38px) 44px; }
.operator-body .op-heading { align-items: center; flex-direction: row; margin-block-end: 17px; }
.operator-body h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
.operator-body h2 { font-size: 1.05rem; }
.operator-body h3 { font-size: .91rem; }
.operator-body .op-heading p { margin-top: 4px; }
.operator-body .op-login { max-width: 416px; margin: clamp(12px, 7vh, 70px) auto 0; }
.operator-body .op-login .form { margin-top: 20px; }

.operator-body .op-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  max-width: 652px;
  margin-block-end: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}
.operator-body .op-nav .nav-link {
  gap: 7px;
  padding: 7px 5px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.operator-body .op-nav .nav-link:hover:not([aria-current]) { background: var(--raised); color: var(--text); }
.operator-body .op-nav .nav-link[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
.operator-body .op-glyph {
  display: block;
  flex: none;
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: var(--op-icon) center / contain no-repeat;
  mask: var(--op-icon) center / contain no-repeat;
  forced-color-adjust: none;
}
.operator-body .op-glyph-tasks { --op-icon: url('./media/glyph-tasks.png'); }
.operator-body .op-glyph-activity { --op-icon: url('./media/glyph-activity.png'); }
.operator-body .op-glyph-wallet { --op-icon: url('./media/glyph-wallet.png'); }
.operator-body .op-glyph-other { --op-icon: url('./media/glyph-other.png'); }
.operator-body .op-glyph-refresh { --op-icon: url('./media/glyph-refresh.png'); }

.operator-body .op-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.operator-body .opsearch { min-width: 0; flex: 1 1 230px; }
.operator-body .opsearch label { min-width: 0; }
.operator-body .card { overflow-wrap: anywhere; }
.operator-body .card-head { padding-block: 15px 11px; border-bottom: 1px solid var(--border); }
.operator-body .card-head .row-actions { margin: 0; }
.operator-body .panel,
.operator-body .card-head,
.operator-body .list-group > li,
.operator-body .empty { padding-inline: clamp(14px, 2vw, 20px); }
.operator-body .list-group > li { padding-block: 12px; }
.operator-body .list-group p { margin-top: 3px; }
.operator-body .activity-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 5px 10px; }
.operator-body .offer-amount { min-width: 0; white-space: normal; }
.operator-body .offer-amount .tag { justify-self: end; }
.operator-body .empty { min-height: 98px; padding-block: 16px; }
.operator-body :is(.tiny, .reference) { font-size: .8125rem; }
.operator-body .op-campaigns { container-type: inline-size; }
.operator-body .op-legacy summary {
  min-height: 44px;
  padding: 12px clamp(14px, 2vw, 20px);
  cursor: pointer;
  font-weight: 700;
}
.operator-body .op-legacy[open] summary { border-bottom: 1px solid var(--border); }
.operator-body .op-campaign-row {
  display: grid;
  grid-template-areas: 'offer amount' 'target amount' 'actions actions';
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 3px 16px;
}
.operator-body .op-campaign-name { grid-area: offer; }
.operator-body .op-campaign-market { grid-area: target; }
.operator-body .op-campaign-row .offer-amount { grid-area: amount; }
.operator-body .op-campaign-row .row-actions { grid-area: actions; margin: 4px 0 0; }
.operator-body .balance-value { color: var(--accent); margin-block: 8px 14px; }
.operator-body .money-lines > div { flex-wrap: wrap; }

.operator-body .primary { background: var(--accent); color: #121810; }
.operator-body .primary:hover:not(:disabled) { background: #e6ffa0; }
.operator-body .secondary { background: transparent; color: var(--text); }
.operator-body .secondary:hover:not(:disabled) { background: var(--raised); }
.operator-body .tag { border-radius: 999px; gap: 5px; font-size: .72rem; }
.operator-body .tag.blue { color: #c1dded; background: #26343a; }
.operator-body :is(input, select, textarea) { background-color: var(--ground); }
.operator-body textarea { min-height: 90px; }
.operator-body .dialog-body { padding: clamp(16px, 4vw, 24px); overflow-wrap: anywhere; }
.operator-body dialog { width: min(100% - 32px, 590px); }
.operator-body dialog::backdrop { background: rgb(6 9 7 / .72); }
.operator-body .toast { background: var(--text); color: var(--ground); }

@media (max-width: 500px) {
  .operator-body .op-nav .nav-link { flex-direction: column; gap: 2px; font-size: .72rem; }
  .operator-body .op-nav .op-glyph { width: 17px; height: 17px; }
  .operator-body .brand-role { display: none; }
  .operator-body .operator-app-link { font-size: .75rem; }
  .operator-body dialog { position: fixed; inset: auto 0 0; margin: 0; max-width: 100%; width: 100%; border-radius: 22px 22px 0 0; }
}

@container (min-width: 640px) {
  .operator-body .op-campaign-row {
    grid-template-areas: 'offer target amount actions';
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(105px, .7fr) 174px;
  }
  .operator-body .op-campaign-row .row-actions { justify-content: end; margin: 0; }
}
