#mApp { display: none; }


  body.m-app-on .topbar,
  body.m-app-on .stats,
  body.m-app-on .layout,
  body.m-app-on .m-fab,
  body.m-app-on .today-fab { display: none !important; }
  body.m-app-on .app { padding: 0 !important; }
  body.m-app-on #mApp {
    display: flex; flex-direction: column; min-height: 100dvh;
    background: var(--bg); padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .mk-head {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .mk-group {
    display: inline-flex; align-items: center; gap: 6px; max-width: 58%;
    padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text);
  }
  .mk-group i { font-style: normal; color: var(--accent); }
  .mk-group b { color: var(--muted); font-weight: 400; }
  .mk-group span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-head-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .mk-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--text-2); }
  .mk-icon.spin { animation: mkSpin .8s linear infinite; }
  @keyframes mkSpin { to { transform: rotate(360deg); } }
  .mk-avatar {
    width: 36px; height: 36px; border-radius: 50%; border: 0; color: #fff; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, #5b6cff, #8b7bff);
  }
  .mk-avatar.lg { width: 48px; height: 48px; font-size: 20px; }
  .mk-main { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 14px; }
  .mk-today { padding: 14px 15px; border-radius: 16px; background: linear-gradient(135deg, #5b6cff, #8b7bff); color: #fff; box-shadow: 0 12px 28px rgba(79,107,255,.24); }
  .mk-date { font-size: 11.5px; opacity: .85; }
  .mk-today h1 { margin: 5px 0 0; font-size: 19px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
  .mk-segbar { display: flex; gap: 6px; margin-top: 12px; background: rgba(255,255,255,.18); border-radius: 12px; padding: 4px; }
  .mk-seg { flex: 1; border: 0; background: transparent; color: rgba(255,255,255,.9); font-size: 12.5px; padding: 8px 0; border-radius: 9px; }
  .mk-seg.on { background: #fff; color: #4f6bff; font-weight: 700; }
  .mk-sec { display: flex; flex-direction: column; gap: 8px; }
  .mk-sec-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px; }
  .mk-sec-head b { font-size: 13px; color: var(--text-2); }
  .mk-sec-head span { font-size: 11px; color: var(--muted); }
  .mk-nodes { display: flex; flex-direction: column; gap: 8px; }
  .mk-node { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .mk-node.overdue { border-color: rgba(214,69,69,.28); background: rgba(214,69,69,.04); }
  .mk-node.today { border-color: rgba(var(--accent-rgb), .35); }
  .mk-check { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; border: 2px solid var(--line); background: var(--surface); position: relative; }
  .mk-check:active, .mk-check.busy { background: var(--accent); border-color: var(--accent); }
  .mk-check.busy::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid #fff; border-top-color: transparent; animation: mkSpin .7s linear infinite; }
  .mk-node-main { flex: 1; min-width: 0; }
  .mk-node-main b { display: block; font-size: 14px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-node-main span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-when { flex: 0 0 auto; font-style: normal; font-size: 11.5px; color: var(--muted); }
  .mk-node.overdue .mk-when { color: #d64545; }
  .mk-node.today .mk-when { color: var(--accent); font-weight: 600; }
  .mk-card { display: block; width: 100%; text-align: left; padding: 12px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .mk-card:active { transform: scale(.995); }
  .mk-card-top { display: flex; align-items: center; gap: 8px; }
  .mk-card-top b { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-badge { flex: 0 0 auto; font-style: normal; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
  .mk-badge.done { background: #e7f6ef; color: #0f9d76; }
  .mk-badge.ongoing { background: #e8f7ef; color: #0f9d76; }
  .mk-badge.blocked { background: #fdecec; color: #d64545; }
  .mk-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; font-size: 11.5px; color: var(--text-2); }
  .mk-card-foot { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--muted); }
  .mk-bar { height: 4px; margin-top: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
  .mk-bar i { display: block; height: 100%; border-radius: 999px; }
  .mk-empty { padding: 16px 0; text-align: center; font-size: 12px; color: var(--muted); }
  .mk-fab { position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff; font-size: 26px; background: linear-gradient(135deg, #5b6cff, #8b7bff); box-shadow: 0 14px 30px rgba(79,107,255,.35); }
  .mk-fab:active { transform: scale(.93); }
  .mk-sheet-wrap { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; }
  .mk-sheet-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .38); opacity: 0; transition: opacity .22s; }
  .mk-sheet { position: relative; width: 100%; max-height: 82dvh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 10px 16px calc(26px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, 1.1, .3, 1); box-shadow: 0 -12px 40px rgba(23,35,66,.18); }
  .mk-sheet-wrap.open .mk-sheet-backdrop { opacity: 1; }
  .mk-sheet-wrap.open .mk-sheet { transform: none; }
  .mk-sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 4px auto 10px; }
  .mk-sheet-head { display: flex; align-items: center; margin-bottom: 8px; }
  .mk-sheet-head b { font-size: 16px; }
  .mk-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--hover); color: var(--text-2); }
  .mk-rows { display: flex; flex-direction: column; gap: 8px; }
  .mk-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 13px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text); }
  .mk-row i { font-style: normal; width: 22px; text-align: center; color: var(--accent); }
  .mk-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-row em { font-style: normal; font-size: 10.5px; color: var(--muted); }
  .mk-row.on { border-color: var(--accent); background: var(--accent-soft); }
  .mk-row.busy { opacity: .6; }
  .mk-link { width: 100%; margin-top: 10px; padding: 13px; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; }
  .mk-link.danger { color: #d64545; }
  .mk-me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .mk-me b { display: block; font-size: 15px; }
  .mk-me span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
  .mk-label { margin: 16px 2px 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .mk-chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--text-2); }
  .mk-chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; }


/* v3.59 已完成折叠 + 卡片更多操作 */
@media (max-width: 720px) and (orientation: portrait) {
  .mk-card { display: block; width: 100%; text-align: left; cursor: pointer; }
  .mk-more { flex: 0 0 auto; width: 30px; height: 30px; margin-left: 2px; border: 0; border-radius: 50%; background: var(--hover); color: var(--text-2); font-size: 16px; line-height: 1; }
  .mk-check.done { display: grid; place-items: center; background: #12b886; border-color: #12b886; color: #fff; font-size: 14px; }
  .mk-node-done { opacity: .72; background: transparent; border-style: dashed; }
  .mk-node-done .mk-node-main b { text-decoration: line-through; color: var(--muted); font-weight: 600; }
  .mk-node-done .mk-when { color: #12b886; }
  .mk-done-sec { margin-top: 4px; }
  .mk-done-head { width: 100%; border: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text-2); font-size: 13px; font-weight: 700; }
  .mk-caret { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
  .mk-done-list { margin-top: 8px; }
  .mk-row.accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
  .mk-ver { margin-top: 14px; text-align: center; font-size: 10.5px; color: var(--line); }
}

/* v3.60 切换分组修复 + 手机端动效收敛（默认轻快，去掉弹跳感） */
@media (max-width: 720px) and (orientation: portrait) {
  body.m-app-on .btn:active, body.m-app-on .mk-chip:active, body.m-app-on .mk-row:active,
  body.m-app-on .mk-card:active, body.m-app-on .mk-seg:active, body.m-app-on .mk-fab:active,
  body.m-app-on .menu-item:active, body.m-app-on .tpl-chip:active { animation: none !important; }
  body.m-app-on .mk-card, body.m-app-on .mk-fab, body.m-app-on .mk-avatar { transition: none !important; }
  body.m-app-on .mk-card:active { transform: none !important; }
  body.m-app-on .mk-fab:active { transform: none !important; opacity: .86; }
  body.m-app-on .mk-sheet { transition: transform .18s ease-out !important; }
  body.m-app-on .mk-sheet-backdrop { transition: opacity .16s linear !important; }
  body.m-app-on .mk-check:active { transform: none !important; }
}

/* v3.61 全部节点视图 + 实验内节点编辑 */
@media (max-width: 720px) and (orientation: portrait) {
  .mk-sec-head-btn { width: 100%; border: 0; background: transparent; padding: 0 2px; display: flex; align-items: baseline; gap: 8px; }
  .mk-head-more { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--accent); font-weight: 600; }
  .mk-ntabs { display: flex; gap: 6px; background: var(--line-soft); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
  .mk-ntab { flex: 1; border: 0; background: transparent; color: var(--text-2); font-size: 12.5px; padding: 9px 0; border-radius: 9px; }
  .mk-ntab.on { background: var(--surface); color: var(--accent); font-weight: 700; box-shadow: 0 2px 8px rgba(23,35,66,.08); }
  .mk-nlabel { margin: 12px 2px 6px; font-size: 11px; font-weight: 700; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
  .mk-nlabel span { font-weight: 400; color: var(--line); }
  .mk-nodeall { display: flex; flex-direction: column; gap: 8px; }
  .mk-node-sm { padding: 10px 10px; }
  .mk-node-sm .mk-node-main b { font-size: 13.5px; }
  .mk-addnode { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .mk-input { flex: 1 1 120px; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text); }
  .mk-btn { padding: 11px 16px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
  .mk-btn.busy { opacity: .6; }
}
