.mm-win {
  background: var(--si-card-bg, #fff);
  color: var(--si-body-color, #1f1f1f);
  border: 1px solid var(--si-border-color, #e2e5f1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  font-size: 13px;
}
[data-bs-theme="dark"] .mm-win {
  background: #141720;
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}
.mm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--si-border-color, rgba(255, 255, 255, 0.12));
  font-weight: 600;
}
.mm-dots { display: flex; gap: 5px; margin-right: 4px; }
.mm-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.mm-dots i:nth-child(1) { background: #ff5f57; }
.mm-dots i:nth-child(2) { background: #febc2e; }
.mm-dots i:nth-child(3) { background: #28c840; }
.mm-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px 0;
  border-bottom: 1px solid var(--si-border-color, rgba(255, 255, 255, 0.12));
  flex-wrap: wrap;
}
.mm-tab {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
}
.mm-tab.is-on { color: #6366f1; border-bottom-color: #6366f1; }
.mm-body { padding: 14px; }
.mm-field { margin-bottom: 12px; }
.mm-field > span, .mm-label { display: block; margin-bottom: 5px; font-size: 12px; }
.mm-input, .mm-select, .mm-area {
  width: 100%;
  border: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.35));
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(148, 163, 184, 0.06);
  color: inherit;
  min-height: 34px;
}
.mm-area { min-height: 76px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: pre-wrap; }
.mm-row { display: flex; gap: 10px; }
.mm-row > * { flex: 1; min-width: 0; }
.mm-pills, .mm-radios { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-pills label, .mm-check, .mm-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}
.mm-pills label {
  border: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.35));
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.mm-pills label:has(input:checked) {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}
.mm-pills input, .mm-radios input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.mm-radios label { align-items: flex-start; width: 100%; }
.mm-radios label:has(input:checked) strong { color: #6366f1; }
.mm-dot {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid #6366f1; flex: 0 0 15px; margin-top: 2px; position: relative;
}
.mm-radios label:has(input:checked) .mm-dot::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #6366f1;
}
.mm-sub { display: block; font-size: 11px; opacity: .75; font-weight: 400; }
.mm-help { font-size: 11px; opacity: .75; margin-top: 4px; }
.mm-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mm-stat {
  flex: 1; min-width: 78px;
  border: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.25));
  border-radius: 9px; padding: 8px 10px;
}
.mm-stat span { display: block; font-size: 11px; opacity: .75; }
.mm-stat b { font-size: 18px; }
.mm-ok { color: #22c55e; }
.mm-bad { color: #ef4444; }
.mm-warn { color: #eab308; }
.mm-foot {
  display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap;
  padding: 10px 14px; border-top: 1px solid var(--si-border-color, rgba(255, 255, 255, 0.12));
}
.mm-btn {
  border: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.35));
  border-radius: 8px; padding: 5px 10px; background: transparent; color: inherit; font-size: 12px;
}
.mm-btn-primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.mm-table { width: 100%; font-size: 11px; border-collapse: collapse; }
.mm-table th, .mm-table td { border-bottom: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.2)); padding: 5px 4px; text-align: left; }
.mm-card, .mm-tile {
  background: var(--si-secondary-bg, rgba(148, 163, 184, 0.08));
  color: inherit;
  border: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.2));
  border-radius: 12px;
  padding: 14px 16px;
  height: 100%;
  text-decoration: none;
  display: block;
}
.mm-card:hover { border-color: #6366f1; color: inherit; }
.mm-steps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.mm-step {
  border: 0; background: rgba(148, 163, 184, 0.12); color: inherit; cursor: pointer;
  padding: 5px 9px; border-radius: 999px; font-size: 12px;
}
.mm-step.is-on { background: #6366f1; color: #fff; }
.mm-chain { display: flex; flex-direction: column; gap: 8px; }
.mm-node {
  border: 1px dashed #6366f1; border-radius: 10px; padding: 8px 10px;
}
.mm-aside { position: sticky; top: 100px; z-index: 2; align-self: flex-start; }
.mm-nav a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: inherit; text-decoration: none;
  border: 1px solid var(--si-border-color, rgba(148, 163, 184, 0.2));
  background: var(--si-secondary-bg, rgba(148, 163, 184, 0.08));
}
.mm-nav a:hover { border-color: #6366f1; color: inherit; }
.mm-sec { margin-bottom: 2rem; }
.mm-sec:last-child { margin-bottom: 0; }
@media (min-width: 992px) {
  .docs-container { padding-right: 0 !important; }
}
@media (max-width: 767px) {
  .mm-row { flex-direction: column; }
}
