/* =========================================================
   assets/css/mindmap.css — 마인드맵 렌더러 (모든 클래스 .mm- 접두사)
   사이트(app.css)의 색·폰트·라운드·그림자 토큰을 그대로 씀.
   다크 모드는 app.css 토큰이 바뀌면 자동으로 따라감.
   ========================================================= */

.mm {
  --mm-h: clamp(440px, 70dvh, 820px);
  --mm-sticky-bottom: calc(12px + var(--sab, 0px));
  --mm-c: var(--pen-line); --mm-ci: var(--pen); --mm-cs: var(--pen-soft);
  container: mm / inline-size;
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.mm [hidden] { display: none !important; }
.mm *, .mm *::before, .mm *::after { box-sizing: border-box; }

/* 가지 색 (사이트 단원 탭 팔레트 재사용) */
.mm .mm-b1 { --mm-c: var(--f4); --mm-ci: var(--fi4); --mm-cs: var(--fs4); }
.mm .mm-b2 { --mm-c: var(--f1); --mm-ci: var(--fi1); --mm-cs: var(--fs1); }
.mm .mm-b3 { --mm-c: var(--f3); --mm-ci: var(--fi3); --mm-cs: var(--fs3); }
.mm .mm-b4 { --mm-c: var(--f5); --mm-ci: var(--fi5); --mm-cs: var(--fs5); }
.mm .mm-b5 { --mm-c: var(--f6); --mm-ci: var(--fi6); --mm-cs: var(--fs6); }
.mm .mm-b6 { --mm-c: var(--f2); --mm-ci: var(--fi2); --mm-cs: var(--fs2); }
.mm .mm-b7 { --mm-c: var(--pen-line); --mm-ci: var(--pen); --mm-cs: var(--pen-soft); }

.mm-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; max-width: none; }
.mm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 버튼 ---------- */
.mm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2);
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.mm-btn:active { transform: scale(0.97); }
.mm-btn:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.mm-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.mm-btn-sm .mm-ico { width: 16px; height: 16px; }
.mm-primary { background: var(--pen); border-color: var(--pen); color: var(--on-pen); }
@media (hover: hover) and (pointer: fine) {
  .mm-btn:hover { color: var(--ink); border-color: var(--ink-3); }
  .mm-primary:hover { background: var(--pen-hover); border-color: var(--pen-hover); color: var(--on-pen); }
}
@media (pointer: coarse) {
  .mm-btn, .mm-btn-sm { min-height: 44px; min-width: 44px; }
}

/* ---------- 툴바 ---------- */
.mm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.mm-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.mm-seg-btn { border-color: transparent; background: transparent; min-height: 36px; border-radius: 9px; }
.mm-seg-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); border-color: var(--line); }
@media (pointer: coarse) { .mm-seg-btn { min-height: 44px; min-width: 44px; } }
.mm-group { display: inline-flex; gap: 4px; }
.mm-blank-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mm-t-short { display: none; }

.mm-search { position: relative; flex: 1 1 200px; min-width: 150px; max-width: 360px; }
.mm-search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.mm-search-input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.mm-search-input::placeholder { color: var(--ink-3); }
.mm-search-input:focus { border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
@media (pointer: coarse) { .mm-search-input { height: 44px; } }
.mm-results {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(420px, 92vw);
  max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2);
}
.mm-res { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.mm-res.is-active { background: var(--surface-2); }
.mm-res-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mm-c); flex: none; }
.mm-res-t { font-weight: 600; }
.mm-res small { margin-left: auto; padding-left: 12px; color: var(--ink-3); font-size: 12.5px; }
.mm-res-none { padding: 12px; color: var(--ink-3); font-size: 14px; }

/* 빈칸 모드 상태줄 */
.mm-blankbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin-bottom: 10px; padding: 8px 8px 8px 14px; border-radius: 12px;
  background: var(--amber-soft); border: 1px solid var(--amber-line);
}
.mm-blank-stat { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--ink-2); }
.mm-blank-stat b { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.mm-stat.is-ok b { color: var(--red-ink); }
.mm-blank-acts { display: flex; gap: 6px; }

/* ---------- 무대 ---------- */
.mm-stage { position: relative; }
.mm-canvas {
  position: relative; height: var(--mm-h); overflow: hidden; border-radius: var(--radius);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 22px 22px;
  border: 1px solid var(--line);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  cursor: grab; outline: none;
}
.mm.is-dragging .mm-canvas { cursor: grabbing; }
.mm-list { display: none; }
.mm[data-view="list"] .mm-canvas { display: none; }
.mm[data-view="list"] .mm-list { display: block; }

.mm-vp { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.mm.is-moving .mm-vp { will-change: transform; }
.mm-links { position: absolute; left: 0; top: 0; width: 1px; height: 1px; max-width: none; overflow: visible; pointer-events: none; }
.mm-nodes { position: absolute; left: 0; top: 0; }

.mm-link { fill: none; stroke: var(--mm-c); stroke-width: 2; stroke-opacity: 0.7; stroke-linecap: round; transition: stroke-opacity 150ms ease, stroke-width 150ms ease; }
.mm-link.is-l1 { stroke-width: 3; stroke-opacity: 0.85; }
.mm-link.is-path { stroke-opacity: 1; stroke-width: 2.75; }
.mm-link.is-l1.is-path { stroke-width: 3.5; }

/* ---------- 트리 노드 ---------- */
.mm-item { position: absolute; left: 0; top: 0; width: max-content; }
.mm-item.is-gone { visibility: hidden; pointer-events: none; }
.mm-node {
  position: relative; display: flex; align-items: center; gap: 6px;
  max-width: 196px; min-height: 36px; padding: 6px 12px; border-radius: 10px;
  font-size: 14px; line-height: 1.35; font-weight: 560; letter-spacing: -0.01em;
  color: var(--ink); text-align: left; word-break: keep-all; overflow-wrap: anywhere;
  background: color-mix(in oklch, var(--mm-cs) 55%, var(--paper));
  border: 1px solid color-mix(in oklch, var(--mm-c) 50%, var(--line));
  cursor: pointer; outline: none;
  transition: transform 160ms var(--ease-out), box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.mm-node::before { content: ""; position: absolute; inset: -5px -3px; }  /* 터치 영역 확장 */
.mm-node:active { transform: scale(0.97); }
.mm-node:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .mm-node:hover { border-color: var(--mm-c); background: color-mix(in oklch, var(--mm-cs) 85%, var(--paper)); }
}
.mm-d1 .mm-node {
  min-height: 42px; padding: 8px 14px; border-radius: 12px; max-width: 210px;
  font-size: 15px; font-weight: 720; color: var(--mm-ci);
  background: var(--mm-cs); border: 1.5px solid var(--mm-c);
}
.mm-item.is-root .mm-node {
  max-width: 250px; min-height: 52px; padding: 12px 20px; border-radius: 14px; justify-content: center; text-align: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  background: var(--ink); color: var(--paper); border: 0; box-shadow: var(--shadow-1);
}
@media (hover: hover) and (pointer: fine) { .mm-item.is-root .mm-node:hover { background: var(--ink); } }

/* 핵심어: 형광펜 */
.mm-item.is-kw .mm-node { font-weight: 760; }
.mm-item.is-kw .mm-label, .mm-li.is-kw > .mm-row .mm-ltext {
  padding: 0 2px; margin: 0 -2px; border-radius: 3px;
  background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 94%, transparent 94%);
  transition: color 200ms ease;
}
/* 공식: 고정폭 배지 */
.mm-item.is-fx .mm-node, .mm-li.is-fx > .mm-row .mm-ltext {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, var(--font-sans);
  font-size: 13px; font-weight: 600; letter-spacing: -0.02em;
}
.mm-item.is-fx .mm-node { background: var(--surface-2); border: 1px dashed color-mix(in oklch, var(--mm-c) 70%, var(--line-2)); color: var(--ink); }
.mm-fx-tag {
  display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px;
  background: var(--mm-c); color: var(--tab-ink); font-family: var(--font-sans); font-size: 10.5px; font-weight: 800; letter-spacing: 0;
}
/* 함정 */
.mm-warn { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; max-width: none; }
.mm-item.is-trap .mm-node { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-ink); font-weight: 650; }
.mm-item.is-trap.mm-d1 .mm-node { border-width: 1.5px; }
/* vs 표시 */
.mm-vs {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; height: 20px; padding: 0 8px;
  border-radius: 999px; background: var(--paper); border: 1.5px solid var(--mm-c); color: var(--mm-ci);
  font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: 0.04em; line-height: 1; pointer-events: none;
}
.mm-vs.is-gone { visibility: hidden; }

/* 선택 */
.mm-item.is-sel .mm-node { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--pen); }
.mm-item.is-root.is-sel .mm-node { box-shadow: var(--shadow-1), 0 0 0 2px var(--paper), 0 0 0 4px var(--pen); }

/* 접기 손잡이 */
.mm-knob {
  position: absolute; top: 50%; left: 100%; margin-left: 6px; transform: translateY(-50%);
  display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--mm-c); color: var(--mm-ci);
  font-size: 11.5px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: opacity 150ms ease;
}
.mm-knob::after { content: ""; position: absolute; inset: -11px -8px; }
.mm-item.is-left .mm-knob { left: auto; right: 100%; margin-left: 0; margin-right: 6px; }
.mm-item.is-root .mm-knob { border-color: var(--ink-3); color: var(--ink-2); }
.mm-item:not(.is-collapsed) .mm-knob { opacity: 0; min-width: 18px; height: 18px; padding: 0; }
.mm-item:not(.is-collapsed) .mm-knob::before { content: "−"; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .mm-item:not(.is-collapsed):hover .mm-knob { opacity: 1; } }
@media (hover: none) { .mm-item:not(.is-collapsed) .mm-knob { pointer-events: none; } }

/* 검색 결과 강조 */
.mm-item.is-hit::after {
  content: ""; position: absolute; inset: -7px; border-radius: 16px; pointer-events: none;
  border: 2.5px solid var(--amber); opacity: 0;
  animation: mm-ping 820ms var(--ease-out) 2;
}
@keyframes mm-ping { 0% { opacity: 0; transform: scale(1.18); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }

/* 빈칸 모드 */
.mm-item.is-masked .mm-label, .mm-li.is-masked > .mm-row .mm-ltext {
  color: transparent; min-width: 3.2em; display: inline-block;
  background: repeating-linear-gradient(-45deg, var(--line-2) 0 2px, transparent 2px 7px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.mm-item.is-masked .mm-node { border-style: dashed; }
.mm-item.is-ok .mm-node::after, .mm-item.is-ng .mm-node::after {
  position: absolute; top: -12px; right: -8px; font-size: 18px; font-weight: 800; line-height: 1; color: var(--red); pointer-events: none;
}
.mm-item.is-ok .mm-node::after { content: "○"; }
.mm-item.is-ng .mm-node::after { content: "／"; }
.mm-li.is-ok > .mm-row .mm-ltext::after { content: " ○"; color: var(--red); font-weight: 800; }
.mm-li.is-ng > .mm-row .mm-ltext::after { content: " ／"; color: var(--red); font-weight: 800; }

/* 안내·확대 버튼 */
.mm-hint {
  position: absolute; left: 14px; top: 12px; margin: 0; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in oklch, var(--paper) 85%, transparent); color: var(--ink-3); font-size: 12.5px;
  pointer-events: none; transition: opacity 400ms ease;
}
.mm-hint.is-off { opacity: 0; }
.mm-zoom {
  position: absolute; right: 12px; bottom: 12px; display: flex; gap: 2px; padding: 3px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-1);
}
.mm-zbtn { border-color: transparent; background: transparent; min-height: 38px; min-width: 38px; padding: 0 8px; border-radius: 9px; }
.mm-zpct { min-width: 58px; font-variant-numeric: tabular-nums; font-size: 13px; }
@media (pointer: coarse) { .mm-zbtn { min-height: 44px; min-width: 44px; } .mm-zpct { min-width: 58px; } }

/* ---------- 목록 보기 ---------- */
.mm-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 12px; }
.mm-ul { list-style: none; margin: 0; padding: 0; }
.mm-li { outline: none; }
.mm-li > .mm-ul { margin-left: 20px; padding-left: 8px; border-left: 2px solid color-mix(in oklch, var(--mm-c) 60%, transparent); }
.mm-li.is-root > .mm-ul { margin-left: 6px; padding-left: 0; border-left: 0; }
.mm-li.is-root > .mm-ul > .mm-li { margin-top: 6px; }
.mm-row {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px 4px 0; border-radius: 10px;
  cursor: pointer; font-size: 15px; line-height: 1.45;
  transition: background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .mm-row:hover { background: var(--surface); } }
.mm-chev { display: grid; place-items: center; align-self: stretch; width: 36px; flex: none; color: var(--ink-3); }
.mm-chev .mm-ico { width: 16px; height: 16px; transition: transform 160ms var(--ease-out); }
.mm-li[aria-expanded="true"] > .mm-row .mm-chev .mm-ico { transform: rotate(90deg); }
.mm-ltext { min-width: 0; }
.mm-count { margin-left: auto; flex: none; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mm-li.is-root > .mm-row { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.mm-li.mm-d1 > .mm-row { background: var(--mm-cs); color: var(--mm-ci); font-weight: 720; }
.mm-li.mm-d1 > .mm-row .mm-chev { color: var(--mm-ci); }
.mm-li.is-kw > .mm-row { font-weight: 720; }
.mm-li.is-trap > .mm-row { color: var(--red-ink); }
.mm-li.is-sel > .mm-row { box-shadow: inset 0 0 0 2px var(--pen); }
.mm-li:focus-visible > .mm-row { outline: 2px solid var(--pen); outline-offset: 1px; }
.mm-li.is-hit > .mm-row { animation: mm-flash 1.4s ease; }
@keyframes mm-flash { 0%, 60% { background-color: var(--amber-soft); } 100% { background-color: transparent; } }
.mm-li.mm-d1.is-hit > .mm-row { animation: none; }
.is-vsgroup > .mm-li + .mm-li::before {
  content: "vs"; display: block; margin: 0 0 0 40px; font-size: 12px; font-weight: 800; font-style: italic; color: var(--mm-ci); line-height: 1.4;
}

/* ---------- 상세 카드 ---------- */
.mm-card {
  position: absolute; z-index: 10; top: 12px; right: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  padding: 12px 16px 16px; border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--mm-c); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  overscroll-behavior: contain;
}
.mm-card.is-open { opacity: 1; transform: none; }
.mm-card.is-closing { transition-duration: 140ms; }
.mm-card-head { display: flex; align-items: flex-start; gap: 8px; }
.mm-crumbs { display: flex; flex-wrap: wrap; gap: 2px 0; flex: 1; min-width: 0; margin: 0; padding: 8px 0 0; list-style: none; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.mm-crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--line-2); }
.mm-x { margin-left: auto; border-color: transparent; background: transparent; min-height: 36px; min-width: 36px; padding: 0; margin-right: -8px; }
@media (pointer: coarse) { .mm-x { min-height: 44px; min-width: 44px; margin-top: -4px; } }
.mm-card-title { margin: 2px 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; outline: none; word-break: keep-all; }
.mm-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mm-card-tags:empty { display: none; }
.mm-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.mm-tag .mm-ico { width: 13px; height: 13px; }
.mm-tag-lv { background: var(--mm-cs); color: var(--mm-ci); }
.mm-tag-kw { background: var(--hl); color: var(--ink); }
.mm-tag-fx { font-family: ui-monospace, Consolas, var(--font-sans); }
.mm-tag-trap { background: var(--red-soft); color: var(--red-ink); }
.mm-tag-trap .mm-ico { stroke: var(--red); }
.mm-card-detail { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }
.mm-grade { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.mm-grade-q { font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin-right: 2px; }
.mm-ox-mark { color: var(--red); font-weight: 800; }
.mm-ox[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red-line); color: var(--red-ink); }
.mm-card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 좁은 폭: 카드는 화면 아래에 붙는 시트(캔버스가 화면보다 길어도 보이도록 sticky) */
@container mm (max-width: 699px) {
  .mm-card {
    position: sticky; top: auto; left: auto; right: auto; bottom: var(--mm-sticky-bottom);
    width: 100%; max-height: 62vh; margin-top: 10px;
    transform: translateY(10px); transform-origin: 50% 100%; border-radius: 16px;
  }
  .mm-card.is-open { transform: none; }
}
/* 목록 보기: 카드가 화면 아래에 붙어 따라옴 */
.mm[data-view="list"] .mm-card {
  position: sticky; top: auto; left: auto; right: auto; bottom: var(--mm-sticky-bottom);
  width: min(380px, 100%); max-height: 60vh; margin: 12px 0 0 auto;
}
@media (max-width: 819px) {
  .mm { --mm-sticky-bottom: calc(58px + var(--sab, 0px) + 10px); }
}
@media (max-width: 599px) {
  .mm { --mm-h: clamp(360px, calc(100dvh - 230px), 680px); }
}

/* ---------- 반응형 툴바 ---------- */
@container mm (max-width: 1000px) {
  .mm-group .mm-t { display: none; }
  .mm-group .mm-btn { padding: 0 10px; }
}
@container mm (max-width: 640px) {
  .mm-toolbar { gap: 6px; }
  .mm-seg .mm-t { display: none; }
  .mm-seg-btn { padding: 0 10px; }
  .mm-blank-toggle .mm-t { display: none; }
  .mm-blank-toggle .mm-t-short { display: inline; }
  .mm-blank-toggle { margin-left: auto; }
  .mm-search { order: 10; flex: 1 1 100%; max-width: none; }
  .mm-results { width: 100%; max-width: none; }
  .mm-hint { display: none; }
  .mm-zoom { right: 8px; bottom: 8px; }
  .mm-blankbar { padding-left: 12px; }
  .mm-blank-acts { width: 100%; }
  .mm-blank-acts .mm-btn { flex: 1; }
}
@container mm (max-width: 360px) {
  .mm-zpct { display: none; }
}

/* ---------- 빈 상태 ---------- */
.mm-empty { padding: 48px 16px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--paper); }

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
  .mm-card, .mm-card.is-open { transform: none !important; transition: opacity 120ms ease; }
  .mm-btn:active, .mm-node:active { transform: none; }
  .mm-chev .mm-ico { transition: none; }
  .mm-item.is-hit::after { animation: mm-fade 1.4s ease 1; transform: none; }
  @keyframes mm-fade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
}
