.mm-card{--mm-border:#cbd8cd;--mm-cream:#f6f8ef;--mm-dark:#103a31;min-width:0;overflow-wrap:break-word}
.mm-card [hidden]{display:none!important}.mm-head h2,.mm-card h3,.mm-card p{margin:0}.mm-head p,.mm-controls p,.mm-diagnosis>p{margin-block:.4rem}.mm-stats{display:flex;flex-wrap:wrap;gap:.45rem;margin-block:.9rem}.mm-stats>div{flex:1 1 145px;background:var(--mm-cream);border:1px solid var(--mm-border);border-radius:10px;padding:.6rem .8rem}.mm-stats span,.mm-stats bdi{display:block}.mm-stats span,.mm-label{color:#486557;font-size:.9rem;font-weight:600}.mm-stats bdi{font-variant-numeric:tabular-nums;font-size:1.02rem;font-weight:650}
.mm-stage{overflow:hidden;border-radius:13px;background:var(--mm-dark);color:#e4efd9}.mm-board{position:relative;max-width:650px;margin:auto}.mm-board svg{width:100%;height:auto;display:block}.mm-wires,.mm-leads{fill:none;stroke-linecap:round;stroke-linejoin:round}.mm-wires{stroke:#85d3b9;stroke-width:2.2}.mm-wires .mm-resistor{stroke:#eac286;stroke-width:2.6}.mm-wires .mm-source{stroke:#e8e8c9;stroke-width:3}.mm-legend,.mm-sockets text{fill:#e3ebd3;text-anchor:middle;font:600 16px ui-monospace,monospace}.mm-sockets text{font-size:12px;fill:#b6cbbf}.mm-red-outline,.mm-black-outline{stroke:#b9c8bd;stroke-width:4}.mm-red-lead{stroke:#d97366;stroke-width:2.7}.mm-black-lead{stroke:#182822;stroke-width:2.6;stroke-dasharray:5 2}.mm-red-jack{fill:#d97366;stroke:#f4d2bf;stroke-width:1.1}.mm-black-jack{fill:#101d19;stroke:#c0cdbf;stroke-width:1.2}
.mm-card .mm-node{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);height:44px;width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#133b2a}.mm-card .mm-node:active:not(:disabled){transform:translate(-50%,-50%)}.mm-node span{display:grid;place-items:center;min-width:23px;height:23px;border:2px solid #88b29c;border-radius:50%;background:#d5ecd2;font:700 12px ui-monospace,monospace}.mm-node[data-contact~=red] span{box-shadow:-3px -1px 0 #f18b79}.mm-node[data-contact~=black] span{border-color:#223c2e;outline:1px dashed #e2ecd8;outline-offset:1px}.mm-node:focus-visible{outline:3px solid #f0bd79!important;outline-offset:-3px!important}
.mm-face{display:flex;justify-content:space-between;align-items:center;gap:.75rem;border-block-start:1px solid #496d5c;padding:.6rem 1.1rem;flex-wrap:wrap}.mm-face span{font-size:.85rem;font-weight:650;color:#d4e0ce}.mm-face output{font:600 clamp(1.35rem,4vw,1.9rem) ui-monospace,monospace;color:#dcf6a5;line-height:1.2;font-variant-numeric:tabular-nums}
.mm-controls,.mm-loghead,.mm-diagnosis,.mm-restart{margin-block-start:1rem}.mm-probes,.mm-choices,.mm-loghead,.mm-restart{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.mm-loghead{justify-content:space-between}.mm-probes,.mm-choices{margin-block:.4rem}.mm-card .mi-button,.mm-card .mm-action{border:1px solid #a1b8a5;border-radius:9px;padding:.42rem .8rem;background:#fcfcf6;color:#224a37;min-height:42px;font:inherit;font-size:.94rem;font-weight:650;cursor:pointer}.mm-card .mm-action{background:#224b3b;color:white;border-color:#224b3b}.mm-card .mi-button:disabled,.mm-card .mm-action:disabled{opacity:.55;cursor:default}.mm-card .mm-probe{display:flex;align-items:center;gap:.4rem;touch-action:none;user-select:none;cursor:grab;min-height:44px}.mm-card .mm-probe:active{cursor:grabbing}.mm-card .mm-probe[aria-pressed=true]{border-color:#325f48;background:#dfecd9;box-shadow:inset 0 0 0 1px #325f48}.mm-probe i{border-radius:100%;width:.62rem;height:.62rem;border:1px solid #3a4d41;background:#1e2a23}.mm-red i{background:#b84e41;border-color:#853d33}.mm-probe bdi{font:.85rem ui-monospace,monospace;background:#fff;border:1px solid #c6d8c8;border-radius:5px;padding:.08rem .28rem}
.mm-log{list-style:none;display:flex;gap:.35rem;flex-wrap:wrap;padding:0;margin:.6rem 0 0}.mm-log:empty{display:none}.mm-log li{display:flex;align-items:center;gap:.6rem;padding:.28rem .55rem;border-radius:7px;background:#edf3e8;border:1px solid var(--mm-border);font:.86rem ui-monospace,monospace}.mm-log li strong{color:#244a33}.mm-log-red{color:#993e31}.mm-log-black{color:#172d22}.mm-card .mm-live{margin-block-start:.4rem}.mm-card .mm-live:empty,.mm-card [data-mm=error]:empty{display:none}.mm-diagnosis{border-block-start:1px solid var(--mm-border);padding-block-start:1rem}.mm-feedback[data-result=solved]{color:#245b36;font-weight:650}.mm-feedback[data-result=retry]{color:#874421}.mm-results{margin-block:.55rem;padding:.62rem .85rem;border:1px solid #c4d9be;border-radius:8px;background:#eef5e7;display:flex;gap:.3rem .9rem;flex-wrap:wrap}.mm-results span{flex-basis:100%;color:#40624c;font-size:.9rem}.mm-results bdi{font-weight:650}.mm-results small{font-size:.83rem;color:#536957}.mm-restart span{font-size:.87rem}
@media(max-width:520px){.mm-stats>div{flex-basis:110px}.mm-face{padding:.5rem .75rem}.mm-legend{font-size:19px}.mm-sockets text{font-size:16px}.mm-card .mm-probes{gap:.4rem}.mm-card .mm-probe{padding-inline:.55rem}.mm-head p,.mm-controls p,.mm-diagnosis p{font-size:.95rem}}
.mm-card .mm-unit,.mm-setup-fields input{border:1px solid var(--mm-border);border-radius:.45rem;background:#fff;color:var(--mm-dark);font:inherit;min-height:40px;max-width:100%;padding:.3rem .55rem;box-sizing:border-box}
.mm-card .mm-unit{margin-block-start:.35rem;min-width:4.5rem}
.mm-settings{margin-block:0 .9rem;border:1px solid var(--mm-border);border-radius:.65rem;padding:.55rem .75rem}
.mm-settings summary{cursor:pointer;font-weight:650;color:var(--mm-dark)}
.mm-setup-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.65rem;margin-block:.65rem}
.mm-setup-fields label{min-width:0;font-size:.95rem;font-weight:600}.mm-setup-fields input{display:block;width:100%;margin-block-start:.2rem}
.mm-setup-action{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.mm-setup-action small{font-size:.86rem}.mm-settings [data-mm=setupError]{color:#923812}
