.boardView, .tableView, .mindView { min-width: 0; }
.viewEmpty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--mut);
  text-align: center;
}

/* 完成任務：各檢視底部預設收合 */
.doneArchive {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(24, 24, 22, .78);
}
.doneArchive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--mut);
  font-size: 12px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}
.doneArchive summary::-webkit-details-marker { display: none; }
.doneArchive summary::after { content: "+"; color: #c2b69e; font-size: 18px; font-weight: 400; }
.doneArchive[open] summary { border-bottom: 1px solid var(--line-soft); }
.doneArchive[open] summary::after { content: "−"; }
.doneArchiveBody { background: rgba(0, 0, 0, .08); }
.doneCards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 10px;
  padding: 12px;
}
.doneArchive .card { opacity: .72; box-shadow: none; }
.doneArchive .rowItem { opacity: .76; }
.doneTableWrap { overflow: auto; }
.doneTableWrap .tbl th { position: static; }

/* 心智圖：橫向單中心曲線樹 */
.mmWrap {
  position: relative;
  height: calc(100dvh - 120px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background-color: #141412;
  background-image: radial-gradient(circle, rgba(194, 174, 135, .12) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), var(--shadow);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.mmWrap.dragging { cursor: grabbing; }
.mmEmpty {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--mut);
}
.mmCanvas {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: 0 0;
  will-change: transform;
}
.mmSvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mmBranch {
  fill: none;
  stroke: var(--branch-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: .58;
}
.mmBranch.primary { stroke-width: 2.6; opacity: .84; }
.mmNode {
  position: absolute;
  max-width: 210px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border-radius: 9px;
  color: var(--txt);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mmCenter {
  padding: 13px 20px;
  border: 1px solid #665d4c;
  background: linear-gradient(145deg, #3a352c, #292721);
  color: #f0e6d4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
  font-size: 15px;
  font-weight: 700;
}
.mmProject {
  padding: 8px 13px;
  border: 1px solid var(--branch-color);
  background: #201f1c;
  color: #d8d1c4;
  font-size: 12px;
  font-weight: 650;
}
.mmLeaf {
  min-width: 128px;
  padding: 7px 11px 7px 24px;
  border: 1px solid #37352f;
  background: #1b1b18;
  color: #c8c3ba;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}
.mmLeaf::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--todo);
}
.mmLeaf:hover { border-color: var(--branch-color); background: #24231f; color: var(--txt); }
.mmLeaf.in_progress::before { background: var(--in_progress); }
.mmLeaf.blocked::before { background: var(--blocked); }
.mmControls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(28, 27, 24, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.mmControls button {
  min-width: 34px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d7d1c6;
  cursor: pointer;
}
.mmControls button:hover { background: #2b2924; }
.mmZoomValue { min-width: 48px; color: var(--mut); font-size: 11px; text-align: center; }
.mmFit { padding-inline: 9px; font-size: 11px; }
.mmDoneCount { margin-inline: 7px 9px; color: #817e76; font-size: 10.5px; white-space: nowrap; }

@media (max-width: 900px) {
  .mmWrap { height: calc(100dvh - 210px); min-height: 500px; }
}

@media (max-width: 600px) {
  .doneCards { grid-template-columns: 1fr; }
  .mmWrap { height: calc(100dvh - 225px); min-height: 480px; }
  .mmControls { right: 9px; bottom: 9px; max-width: calc(100% - 18px); }
  .mmDoneCount { max-width: 95px; overflow: hidden; text-overflow: ellipsis; }
}
