/* Copy of the in-game GameVisuals menu (ClickGui): dark window, orange accent, rounded rows and switches. */
.mm {
  display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 430px; max-width: 1000px; margin: 0 auto;
  background: linear-gradient(180deg, #17171c, #121216); border: 1px solid #2a2a33; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px #0008, inset 0 1px 0 #ffffff08; font-family: Inter, system-ui, sans-serif; color: #e9e8ee;
}
.mm-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: #15151a; border-right: 1px solid #ffffff0c; }
.mm-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; font-weight: 700; font-size: 16px; color: #ff8a1e; letter-spacing: -.2px; }
.mm-brand img { width: 26px; height: 26px; border-radius: 7px; }
.mm-nav { display: flex; flex-direction: column; gap: 3px; }
.mm-cat {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent;
  color: #8a8a94; font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.mm-cat svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; }
.mm-cat .mm-count { margin-left: auto; font-size: 11px; color: #5f5f69; font-weight: 500; }
.mm-cat:hover { background: #ffffff07; color: #d8d7de; }
.mm-cat.on { background: #ff8a1e1f; color: #ffb36b; box-shadow: inset 3px 0 0 #ff8a1e; }
.mm-cat.on .mm-count { color: #ff8a1e; }
.mm-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid #ffffff0c; }
.mm-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #ffb36b, #ff8a1e); color: #1a1208; font-weight: 800; }
.mm-foot b { display: block; font-size: 13px; font-weight: 600; }
.mm-foot small { font-size: 11px; color: #ff9c4b; }

.mm-main { padding: 22px 24px; min-width: 0; }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mm-head h3 { margin: 0; font-size: 22px; letter-spacing: -.4px; color: #f5f5f7; }
.mm-list { display: flex; flex-direction: column; gap: 7px; }
.mm-hint { font-size: 12px; color: #7d7d88; margin: 0 0 4px; }
.mm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer;
  background: #1b1b21; border: 1px solid #ffffff08; border-radius: 12px; transition: background .15s, border-color .15s;
}
.mm-row:hover { border-color: #ffffff18; }
.mm-row.active { background: #ff8a1e12; border-color: #ff8a1e33; }
.mm-name { font-size: 14px; font-weight: 500; color: #e9e8ee; }
.mm-row:not(.active) .mm-name { color: #a6a5b0; }
.mm-chev { color: #6f6e7a; font-size: 18px; }
.mm-switch { position: relative; width: 42px; height: 24px; border: 0; border-radius: 999px; background: #3a3a44; cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.mm-switch .mm-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e9e8ee; transition: transform .2s; }
.mm-switch.on { background: #ff8a1e; }
.mm-switch.on .mm-knob { transform: translateX(18px); background: #fff; }
.mm-switch:focus-visible, .mm-cat:focus-visible, .mm-reset:focus-visible { outline: 2px solid #ff8a1e; outline-offset: 2px; }
.mm-color { width: 22px; height: 22px; border-radius: 7px; border: 1px solid #ffffff26; }
.mm-reset { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid #ff8a1e55; background: #ff8a1e14; color: #ffb36b; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mm-reset:hover { background: #ff8a1e22; }

@media (max-width: 720px) {
  .mm { grid-template-columns: 1fr; }
  .mm-side { flex-direction: column; border-right: 0; border-bottom: 1px solid #ffffff0c; padding: 12px; }
  .mm-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .mm-cat { flex: 0 0 auto; white-space: nowrap; }
  .mm-cat .mm-count { display: none; }
  .mm-foot { display: none; }
  .mm-main { padding: 16px; }
  .mm-head h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .mm-switch, .mm-switch .mm-knob, .mm-row, .mm-cat { transition: none; } }

/* tools, module rows with descriptions and the settings panel */
.mm-head { gap: 12px; flex-wrap: wrap; }
.mm-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mm-total { font-size: 12px; color: #7d7d88; white-space: nowrap; }
.mm-search { width: 190px; max-width: 100%; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #ffffff14; background: #1b1b21; color: #e9e8ee; font: inherit; font-size: 13px; }
.mm-search::placeholder { color: #6f6e7a; }
.mm-search:focus { outline: none; border-color: #ff8a1e66; box-shadow: 0 0 0 3px #ff8a1e1f; }
.mm-item { display: flex; flex-direction: column; gap: 6px; }
.mm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mm-desc { font-size: 11.5px; color: #7d7d88; line-height: 1.4; }
.mm-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.mm-gear { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #ffffff12; background: #ffffff06; color: #b8b8c2; cursor: pointer; font-size: 15px; line-height: 1; }
.mm-gear:hover { color: #ffb36b; border-color: #ff8a1e55; }
.mm-gear[aria-expanded="true"] { color: #ff8a1e; border-color: #ff8a1e66; background: #ff8a1e14; }
.mm-panel { display: flex; flex-direction: column; gap: 4px; padding: 12px; margin: 0 0 4px; border-radius: 12px; background: #16161b; border: 1px solid #ff8a1e22; }
.mm-set { display: flex; flex-direction: column; gap: 8px; padding: 9px 4px; border-bottom: 1px solid #ffffff08; }
.mm-set:last-child { border-bottom: 0; }
.mm-set-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-set-name { font-size: 13px; color: #d8d7de; }
.mm-set-val { font-size: 12px; color: #ffb36b; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.mm-slider-wrap { display: flex; align-items: center; gap: 10px; }
.mm-range { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #ff8a1e, #ff8a1e) 0 / var(--p, 50%) 100% no-repeat, #3a3a44; outline: none; }
.mm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px #0008; cursor: pointer; }
.mm-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; }
.mm-range:focus-visible { outline: 2px solid #ff8a1e; outline-offset: 3px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid #ffffff14; background: #1b1b21; color: #b8b8c2; font: inherit; font-size: 12px; cursor: pointer; }
.mm-chip.on { border-color: #ff8a1e66; background: #ff8a1e1a; color: #ffb36b; }
.mm-key { font-size: 12px; color: #7d7d88; border: 1px dashed #ffffff22; border-radius: 8px; padding: 4px 10px; }
.mm-btn { padding: 7px 14px; border-radius: 10px; border: 1px solid #ff8a1e55; background: #ff8a1e14; color: #ffb36b; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mm-hint { font-size: 13px; color: #7d7d88; margin: 4px 0; }
.mm-list { max-height: 520px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #ff8a1e55 transparent; }
@media (max-width: 720px) { .mm-search { width: 150px; } .mm-tools { margin-left: 0; width: 100%; } }
