/* 多H云运营台 — 与超管主站视觉对齐 */
#duohRoot { font-size: .88rem; }

#duohRoot .dh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
#duohRoot .dh-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#duohRoot .dh-tabs button {
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  transition: background .15s, color .15s;
}
#duohRoot .dh-tabs button:hover { color: var(--text); background: var(--surface2); }
#duohRoot .dh-tabs button.on {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

#duohRoot .dh-pane { display: none; animation: dhFade .18s ease; }
#duohRoot .dh-pane.on { display: block; }
@keyframes dhFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

#duohRoot .dh-err {
  color: var(--err);
  margin-bottom: 12px;
  font-size: .85rem;
  padding: 8px 12px;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.15);
  border-radius: 8px;
}

#duohRoot .dh-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
#duohRoot .dh-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
#duohRoot .dh-stat .l {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
#duohRoot .dh-stat .v { font-size: 1.45rem; font-weight: 700; margin-top: 6px; line-height: 1.2; }

#duohRoot .dh-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
#duohRoot .dh-panel-head { margin-bottom: 14px; }
#duohRoot .dh-panel-head h3 { font-size: .95rem; font-weight: 700; margin: 0 0 4px; }
#duohRoot .dh-panel-head p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

#duohRoot .dh-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 14px;
  align-items: end;
}
#duohRoot .dh-field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
#duohRoot .dh-field input {
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .88rem;
}
#duohRoot .dh-field input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
  background: #fff;
}
#duohRoot .dh-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#duohRoot .dh-section-title {
  font-size: .88rem;
  font-weight: 700;
  margin: 4px 0 10px;
  color: var(--text);
}

#duohRoot .dh-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
#duohRoot .dh-filter input {
  width: auto;
  min-width: 220px;
  margin: 0;
}

#duohRoot .dh-passkey {
  max-width: 520px;
}
#duohRoot .dh-passkey-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
#duohRoot .dh-passkey-status.on { background: rgba(34,197,94,.12); color: var(--ok); }
#duohRoot .dh-passkey-status.off { background: var(--surface2); color: var(--muted); }
#duohRoot .dh-passkey-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
#duohRoot .dh-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
#duohRoot .dh-switch-row strong { display: block; font-size: .9rem; margin-bottom: 2px; }
#duohRoot .dh-switch-row span { font-size: .82rem; color: var(--muted); }
#duohRoot .dh-switch {
  position: relative;
  width: 44px; height: 24px; flex-shrink: 0;
}
#duohRoot .dh-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
#duohRoot .dh-switch-ui {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
#duohRoot .dh-switch-ui::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
#duohRoot .dh-switch input:checked + .dh-switch-ui { background: var(--accent); }
#duohRoot .dh-switch input:checked + .dh-switch-ui::after { transform: translateX(20px); }

#duohRoot .dh-tkt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}
#duohRoot .dh-tkt-msg {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
#duohRoot .dh-tkt-msg:last-of-type { border-bottom: none; }
#duohRoot .dh-muted { color: var(--muted); font-size: .82rem; }

#duohRoot code.mono, #duohRoot .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem;
}
