/* #110 operator surfaces only. Original tokens live in brand/makeled-v2.
   Theme follows theme.js / the saved account setting; no new storage contract.
   Custom and inherited white label pages do not receive this adapter. */
.ml-operator {
  --bg:var(--ml-bg);--card:var(--ml-surface);--text:var(--ml-text);
  --muted:var(--ml-muted);--line:var(--ml-line);--line2:var(--ml-control-line);
  --soft:var(--ml-raised);--soft2:var(--ml-raised);
  --brand:var(--ml-action);--brand-d:var(--ml-action-hover);
  --on-brand:var(--ml-on-action);--brand-l:var(--ml-action);
  --link:var(--ml-text);--focus:var(--ml-focus);--radius:var(--ml-radius);
  --shadow:none;--sel-bg:var(--ml-raised);--chip-bg:var(--ml-raised);
  --chip-text:var(--ml-text);--muted-strong:var(--ml-muted);
  --ok:var(--ml-success);--ok-text:var(--ml-success);--ok-bg:var(--ml-raised);
  --warn:var(--ml-warning);--warn-text:var(--ml-warning);--warn-bg:var(--ml-raised);
  --err:var(--ml-danger);--err-text:var(--ml-danger);--err-bg:var(--ml-raised);
  --err-line:var(--ml-danger);--off:var(--ml-muted);--off-bg:var(--ml-raised);
  --err-row:var(--ml-raised);--warn-row:var(--ml-raised);
  font:16px/1.5 var(--ml-font);
}
/* Light tokens are the supplied data-mode=light values, adapted to the existing
   html[data-theme] contract. System theme reacts to OS changes without JS. */
html[data-theme="light"] .ml-operator {
  color-scheme:light;--ml-bg:#F4EFE3;--ml-surface:#FFFCF4;--ml-raised:#EEE8D8;
  --ml-line:#CCC2AE;--ml-control-line:#757867;--ml-text:#182F24;--ml-muted:#4E6253;
  --ml-focus:#86602B;--ml-success:#20643A;--ml-warning:#734B12;
  --ml-danger:#9E322A;--ml-info:#225A89;--ml-disabled:#596659;
}
@media (prefers-color-scheme:light) {
  html[data-theme="system"] .ml-operator {
    color-scheme:light;--ml-bg:#F4EFE3;--ml-surface:#FFFCF4;--ml-raised:#EEE8D8;
    --ml-line:#CCC2AE;--ml-control-line:#757867;--ml-text:#182F24;--ml-muted:#4E6253;
    --ml-focus:#86602B;--ml-success:#20643A;--ml-warning:#734B12;
    --ml-danger:#9E322A;--ml-info:#225A89;--ml-disabled:#596659;
  }
}
.ml-operator.card,.ml-operator .card,.ml-operator.dlg {
  background:var(--card);color:var(--text);border:1px solid var(--line);
  border-radius:var(--ml-radius);box-shadow:none;
}
.ml-operator .btn {min-height:44px;border-color:var(--ml-control-line);border-radius:var(--ml-field-radius)}
.ml-operator .btn.primary {border-color:var(--brand)}
.ml-operator .btn.danger,.ml-operator .btn.danger-outline {border-color:var(--err);color:var(--err)}
.ml-operator .btn:disabled {opacity:1;color:var(--ml-disabled);background:var(--soft);border-color:var(--line)}
.ml-operator input,.ml-operator select,.ml-operator textarea {border-color:var(--ml-control-line);border-radius:var(--ml-field-radius);accent-color:var(--brand)}
.ml-operator input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.ml-operator select {min-height:44px}
.ml-operator button:focus-visible,.ml-operator a:focus-visible,
.ml-operator input:focus-visible,.ml-operator select:focus-visible,.ml-operator textarea:focus-visible {
  outline:2px solid var(--ml-focus);outline-offset:3px;
}
.ml-operator h2 .ml-icon {margin-right:6px}
.ml-operator .ml-icon {width:20px;height:20px;vertical-align:middle;flex:none;pointer-events:none}
.ml-operator .badge {border:1px solid currentColor;border-radius:6px}
.ml-operator .alert.info {background:var(--soft);color:var(--ml-info)}
.ml-operator .pair-code {color:var(--text);letter-spacing:.12em;font-variant-numeric:tabular-nums}
.ml-operator .cred {overflow-wrap:anywhere}
.ml-operator .ml-operator-heading {display:flex;align-items:center;gap:16px}
.ml-operator .ml-operator-heading img {
  flex:none;background:#13281F;padding:8px;border-radius:8px;box-sizing:content-box;
}
.ml-operator .table-wrap {max-width:100%;overflow:auto}
.ml-operator .btn-row {flex-wrap:wrap}
.ml-operator .ph-text {color:var(--text);background:var(--bg)}
@media (max-width:700px) {
  .ml-operator .grid-2 {grid-template-columns:1fr}
  .ml-operator .ml-operator-heading {align-items:flex-start;flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce) {
  .ml-operator .btn {transition:none}
}
