.mm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.mm__box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem .9rem; margin: 0 0 1rem; background: var(--surface); min-width: 0; }
.mm__box legend { font: 700 .95rem/1.2 var(--font-display); padding: 0 .35rem; color: var(--ink); }
.mm__box .calc__row { margin-bottom: .6rem; }
.mm__wide { flex: 2 1 220px; }
.mm__speeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem .7rem; align-items: end; margin-bottom: .5rem; }
.mm__abil { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; }
.mm__ab { border: 1px solid var(--line); border-radius: 8px; padding: .4rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; align-items: center; }
.mm__ab > label:first-child { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); }
.mm__ab input[type=number] { width: 100%; text-align: center; padding: .3rem .2rem; }
.mm__ab output { font-weight: 700; font-size: .9rem; }
.mm__save { font-size: .74rem; display: flex; gap: .2rem; align-items: center; cursor: pointer; }
.mm__skills .chip { cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); font: 600 .8rem/1.2 var(--font-body); padding: .3rem .6rem; border-radius: 999px; color: var(--ink-soft); min-height: 30px; }
.mm__skills .chip[data-v="1"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.mm__skills .chip[data-v="2"] { background: var(--gold); color: #2a1d0e; border-color: var(--gold); }
.mm__list { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
.mm__list-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mm__list-head h4 { margin: 0; flex: 1; font-size: 1rem; }
.mm__entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem; margin-top: .5rem; padding: .5rem; border: 1px dashed var(--line-strong); border-radius: 8px; }
.mm__entry input { font-weight: 600; }
.mm__entry textarea { grid-column: 1 / -1; min-height: 64px; }
.mm__entry .mm__tools { display: flex; gap: .2rem; }
.mm__entry .mm__tools button { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); }
.mm__legn { max-width: 160px; margin-top: .4rem; }
.mm__atk { border: 1px solid var(--accent); background: var(--surface-2, var(--surface)); border-radius: 8px; padding: .7rem; margin-top: .6rem; }
.mm__sticky { position: sticky; top: 1rem; }
.mm__preview .statblock { max-width: none; }
.statblock .sb-tbls { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: .2rem .6rem; }
.statblock .sb-tbl { width: 100%; border-collapse: collapse; margin: .3rem 0; font-size: .88rem; }
.statblock .sb-tbl th { color: #7c1f18; font-size: .72rem; text-transform: uppercase; font-weight: 700; padding: .1rem; }
.statblock .sb-tbl td { text-align: center; padding: .15rem .1rem; background: rgba(156,42,34,.06); border: 2px solid #fdf6e3; }
.statblock .sb-tbl td.ab { font-weight: 700; color: #7c1f18; text-align: left; padding-left: .3rem; }
.statblock .sb-desc { font-style: italic; color: #5a4632; }
#mm-mine { max-width: 220px; min-height: 36px; }
@media (max-width: 980px) { .mm { grid-template-columns: minmax(0, 1fr); } .mm__sticky { position: static; } .mm__preview { order: -1; } }
@media (max-width: 560px) { .mm__abil { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media print {
  .site-header, .site-footer, .breadcrumbs, .tool-head, .calc__bar, .tool-aside, .prose, .faq, .related, .ad, .gen-actions, .mm__form { display: none !important; }
  .calc { box-shadow: none; border: 0; padding: 0; } .calc::before { display: none; }
  .mm { display: block; } .statblock { box-shadow: none; }
}
.mm__form, .mm__preview { min-width: 0; }
