.mt-studio{--plum:#5d405b;background:#f6eddf;border:1px solid #d8c7b8;border-radius:20px;padding:12px;color:#473943;max-width:520px;margin:auto}
.mt-label{display:flex;justify-content:space-between;gap:8px;align-items:center;line-height:1.3;padding:0 2px 10px}.mt-label span{white-space:nowrap;font-size:.85rem}
.mt-frame{max-width:345px;margin:0 auto;padding:8px;border:2px solid #ad8170;border-radius:12px;background:#cda993;box-shadow:0 4px 0 #a88070}
.mt-board{position:relative;display:grid;grid-template-columns:repeat(var(--n),1fr);gap:3px;isolation:isolate;background:#f8ede1}.mt-n3{--n:3}.mt-n4{--n:4}.mt-n5{--n:5}
#hf-scene .mtc{display:grid;place-items:center;min-width:0;min-height:44px;aspect-ratio:1;margin:0;padding:2px;border:1px solid #a79589;border-radius:4px;background:var(--tile);color:var(--ink);box-shadow:inset 0 0 0 3px #ffffff55}
.mtc svg{width:64%;height:64%}#hf-scene .mt-edit{border:2px dashed #715f68;cursor:pointer}#hf-scene .mt-gap{background:#fff9ef;color:#785f71;font-size:1.25rem}
.mt-a{--tile:#f6dad5;--ink:#ad5265}.mt-b{--tile:#dceada;--ink:#446e5a}.mt-c{--tile:#ffedb9;--ink:#945f1d}.mt-d{--tile:#d8eaf1;--ink:#446b8a}.mt-e{--tile:#eadff2;--ink:#76619a}
.mt-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}.mt-lines polyline{fill:none;stroke:#55354e;stroke-width:2;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.mt-palette{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:15px auto 8px}
#hf-scene .mt-swatch{min-width:44px;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px 5px;background:var(--tile);color:#4b3741;border-radius:8px;border:1px solid #a99088;font-size:.78rem}
.mt-swatch svg{width:21px;height:21px;color:var(--ink)}#hf-scene .mt-swatch[aria-pressed=true]{outline:3px solid var(--plum);outline-offset:-3px;font-weight:750}
#hf-scene .mt-confirm{display:block;margin:auto;width:100%;max-width:345px;border-color:var(--plum);background:var(--plum);color:white;font-weight:700}#hf-scene .mt-confirm:disabled{background:#e8ddcf;color:#70636d;border-color:#c8b9af}
@media(max-width:360px){.mt-studio{padding:7px}.mt-frame{padding:4px}.mt-board{gap:2px}}
