/* ============================================================
   美维斯 · 手机端（无线端）
   只在 html.is-mobile + body.m-on 时生效；桌面端完全不加载影响。
   主题仅清透(aurora)/夜幕(midnight)，默认清透；令牌沿用 themes.css。
   ============================================================ */

html.is-mobile.m-mobile body.m-on { height: 100% !important; overflow: hidden !important; }
html.is-mobile.m-mobile body.m-on #shell { display: none !important; }

#m-app { display: none; }
body.m-on #m-app {
  display: flex; flex-direction: column;
  position: fixed; inset: 0; z-index: 900;
  background: var(--t-page-bg, var(--bg));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.m-screen { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.m-page { position: absolute; inset: 0; display: none; flex-direction: column; }
.m-page.on { display: flex; }

/* ---------- 顶栏：左 logo / 右主题（30px 同高） ---------- */
.m-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 0;
}
.m-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-logo {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #7961d9, #4f6bfa);
  box-shadow: 0 6px 16px -8px rgba(121, 97, 217, .9);
}
.m-logo svg { display: block; width: 18px; height: 18px; }
.m-icon-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-dim);
}
.m-icon-btn svg { width: 16px; height: 16px; }
.m-icon-btn:active { transform: scale(.94); }
.m-meta {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 18px 0;
  font-size: 12px; color: var(--text-dim);
}
.m-chip {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px; border-radius: 20px;
  font-size: 11px; color: var(--accent-text);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.m-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- 滚动区 ---------- */
.m-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 16px calc(96px + env(safe-area-inset-bottom, 0px));
}
.m-scroll.no-tab { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* ---------- 筛选 ---------- */
.m-filters { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px 4px; }
.m-pill {
  width: 100%; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  border-radius: 18px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-pill .car { font-size: 9px; opacity: .5; }
.m-pill.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* ---------- 项目卡片 ---------- */
.m-group { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; }
.m-group h3 { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--text-dim); letter-spacing: .02em; }
.m-group .n { font-size: 10.5px; color: var(--text-dim); background: var(--panel-2); border-radius: 20px; padding: 1px 7px; }
.m-group .line { flex: 1; height: 1px; background: var(--line); }
.m-card {
  position: relative;
  padding: 15px 15px 12px;
  margin-bottom: 11px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="midnight"] .m-card {
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}
.m-card:active { transform: scale(.988); }
.m-card-top { display: flex; align-items: flex-start; gap: 8px; }
.m-card h4 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; line-height: 1.4; font-weight: 750; letter-spacing: -.01em; }
.m-unread {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: var(--accent-text); background: var(--accent-soft);
  border-radius: 20px; padding: 2px 7px;
}
.m-unread i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.m-cell {
  display: flex; gap: 8px; margin-top: 10px;
  background: var(--panel-2); border-radius: 12px; padding: 9px 10px;
}
html[data-theme="midnight"] .m-cell { background: rgba(255, 255, 255, .04); }
.m-cell-bar { flex: 0 0 3px; align-self: stretch; border-radius: 0; } /* 业务底色：不圆角、不透明、不滤镜 */
.m-cell-main { min-width: 0; }
.m-cell-meta { display: flex; gap: 8px; font-size: 10.5px; color: var(--text-dim); margin-bottom: 3px; }
.m-cell-text { font-size: 12.5px; line-height: 1.65; color: var(--text-2, var(--text)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 11px; color: var(--text-dim); flex-wrap: wrap; }
.m-card-foot .sep { width: 1px; height: 9px; background: var(--line); }
.m-state { font-size: 10.5px; border-radius: 20px; padding: 2px 8px; background: var(--panel-2); color: var(--text-dim); }

/* ---------- 待办 ---------- */
.m-seg { flex: 0 0 auto; display: flex; gap: 4px; margin: 10px 16px 0; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.m-seg button { flex: 1; height: 34px; border: 0; border-radius: 11px; background: transparent; color: var(--text-dim); font: inherit; font-size: 13px; font-weight: 600; }
.m-seg button.on { background: var(--accent-soft); color: var(--accent-text); }
.m-todo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 12px; margin-bottom: 9px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="midnight"] .m-todo { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.m-check {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; background: transparent;
}
.m-check:active { transform: scale(.9); }
.m-todo.done .m-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.m-todo.done .m-todo-title { text-decoration: line-through; color: var(--text-dim); }
.m-todo-main { flex: 1 1 auto; min-width: 0; }
.m-todo-title { font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.m-todo-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 10.5px; color: var(--text-dim); }
.m-tag { border-radius: 20px; padding: 2px 7px; background: var(--panel-2); }
.m-tag.warn { background: var(--warn-soft); color: var(--warn); }
.m-tag.kind { background: var(--accent-soft); color: var(--accent-text); }
.m-todo .m-bar-strip { flex: 0 0 3px; align-self: stretch; border-radius: 0; }

/* 浮钮 */
.m-fab {
  position: absolute; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: 0; box-shadow: 0 14px 28px -12px var(--accent);
  z-index: 20;
}
.m-fab svg { width: 24px; height: 24px; }

/* ---------- 底栏 ---------- */
.m-tabbar {
  position: absolute; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  height: 58px; z-index: 60;
  display: flex; align-items: center; gap: 2px; padding: 6px;
  border-radius: 29px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px -22px rgba(20, 30, 60, .4);
}
html[data-theme="midnight"] .m-tabbar { background: rgba(20, 27, 40, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-color: rgba(255,255,255,.1); }
.m-tabbar button {
  flex: 1 1 0; min-width: 0; height: 100%; border: 0; border-radius: 23px;
  background: transparent; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; font-size: 10px; font-weight: 600;
}
.m-tabbar button svg { width: 21px; height: 21px; }
.m-tabbar button.on { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- 抽屉 ---------- */
.m-sheet-wrap { position: absolute; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.m-sheet-wrap.open { visibility: visible; pointer-events: auto; }
.m-scrim { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity .24s ease; }
.m-sheet-wrap.open .m-scrim { opacity: 1; }
.m-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 62%; display: flex; flex-direction: column;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: var(--bg-soft, var(--panel));
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 60px -30px rgba(20, 30, 60, .5);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22, .8, .28, 1), height .3s cubic-bezier(.22, .8, .28, 1);
  overflow: hidden;
}
html[data-theme="midnight"] .m-sheet { background: #101826; }
.m-sheet-wrap.open .m-sheet { transform: translateY(0); }
.m-sheet.full { height: 90%; }
.m-grab { flex: 0 0 auto; padding: 10px 0 6px; display: grid; place-items: center; touch-action: none; }
.m-grab span { width: 38px; height: 4px; border-radius: 3px; background: var(--line-strong); }
.m-sheet-close { position: absolute; right: 12px; top: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text-dim); display: grid; place-items: center; font-size: 16px; }
.m-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 18px 20px; }

/* 抽屉内项目 */
.m-detail-head { display: flex; align-items: center; gap: 8px; margin: 2px 34px 6px 0; }
.m-detail-head .no { font-size: 11px; color: var(--text-dim); }
.m-detail h2 { margin: 4px 0 2px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; }
.m-detail .en { font-size: 11px; color: var(--text-dim); margin-bottom: 12px; }
.m-kv { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 13px 14px 4px; margin-bottom: 12px; }
.m-kv .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.m-kv .k { font-size: 10.5px; color: var(--text-dim); }
.m-kv .v { font-size: 13px; font-weight: 650; margin-top: 2px; }
.m-formula { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; margin-bottom: 14px; }
.m-formula .lb { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-dim); margin-bottom: 5px; }
.m-formula svg { width: 13px; height: 13px; }
.m-formula p { margin: 0; font-size: 12.5px; line-height: 1.7; }
.m-sect { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.m-sect h3 { margin: 0; font-size: 13px; font-weight: 750; }
.m-sect .n { font-size: 10.5px; color: var(--text-dim); background: var(--panel-2); border-radius: 20px; padding: 1px 7px; }
.m-sect .line { flex: 1; height: 1px; background: var(--line); }
.m-tl { list-style: none; margin: 0; padding: 0; }
.m-tl li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.m-tl li::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: -14px; width: 1px; background: var(--line); }
.m-tl li:last-child::before { display: none; }
.m-tl .dot { position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; }
.m-tl .dot.hollow { border: 1.5px solid var(--line-strong); background: transparent; }
.m-tl .tl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
html[data-theme="midnight"] .m-tl .tl-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.m-tl .tl-head { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--text-dim); margin-bottom: 4px; flex-wrap: wrap; }
.m-tl .tl-head .lane { color: var(--text); font-weight: 650; }
.m-tl .tl-head .date { margin-left: auto; }
.m-tl .tl-text { margin: 0; font-size: 12.5px; line-height: 1.7; }
.m-hint { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin: 12px 0 4px; }
.m-hint svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* 待办编辑 */
.m-field { margin: 10px 0; }
.m-field > label { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 5px; }
.m-field input, .m-field select, .m-field textarea {
  width: 100%; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 13.5px; padding: 10px 11px; outline: none;
}
.m-field textarea { resize: none; line-height: 1.6; }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.m-actions { display: flex; gap: 10px; margin-top: 16px; }
.m-actions button { flex: 1; height: 46px; border-radius: 14px; font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.m-actions button.primary { border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.m-actions button.ghost { background: transparent; color: var(--text-dim); }
.m-actions button.danger { color: var(--danger); }
.m-title { font-size: 19px; font-weight: 800; line-height: 1.4; margin: 2px 34px 6px 0; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---------- 知识库 ---------- */
.m-kb-lib { display: flex; align-items: flex-start; gap: 13px; padding: 15px; margin-bottom: 11px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
html[data-theme="midnight"] .m-kb-lib { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.m-kb-ico { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.m-kb-ico svg { width: 30px; height: 30px; }
.m-kb-ico.industry { color: #3568ed; }
.m-kb-ico.shared { color: #16a37b; }
.m-kb-ico.personal { color: #4f6bfa; }
.m-kb-main { flex: 1 1 auto; min-width: 0; }
.m-kb-title { display: flex; align-items: center; gap: 8px; }
.m-kb-title h3 { margin: 0; font-size: 16.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-kb-title .n { flex: 0 0 auto; font-size: 10.5px; color: var(--accent-text); background: var(--accent-soft); border-radius: 20px; padding: 1px 8px; }
.m-kb-desc { margin: 4px 0 0; font-size: 12px; line-height: 1.65; color: var(--text-dim); }
.m-row { display: flex; align-items: center; gap: 10px; padding: 12px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
html[data-theme="midnight"] .m-row { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.m-row .r-ico { flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); color: var(--text-dim); }
.m-row .r-ico svg { width: 16px; height: 16px; }
.m-row .r-main { flex: 1 1 auto; min-width: 0; }
.m-row .r-title { font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.m-row .r-sub { font-size: 10.5px; color: var(--text-dim); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.m-row .r-go { flex: 0 0 auto; color: var(--text-dim); }
.m-row .r-go svg { width: 16px; height: 16px; }
.m-crumb { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 16px 0; font-size: 11.5px; color: var(--text-dim); }
.m-crumb button { border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 11.5px; padding: 0; }
.m-sec-title { display: flex; align-items: center; gap: 8px; margin: 12px 2px 8px; font-size: 11.5px; color: var(--text-dim); }
.m-sec-title .line { flex: 1; height: 1px; background: var(--line); }
.m-empty { padding: 26px 8px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.m-doc h2 { font-size: 17px; line-height: 1.45; margin: 4px 0 6px; font-weight: 750; }
.m-doc .m-meta-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.m-doc .m-seg-text { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 13px 14px; margin-bottom: 10px; font-size: 12.8px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.m-doc .m-seg-text .seg-no { display: block; font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.m-back { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text-dim); display: grid; place-items: center; }
.m-back svg { width: 16px; height: 16px; }

/* ---------- 美维斯（复用桌面对话面板） ---------- */
.m-vm-host { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; position: relative; }
.m-vm-host .col-vm {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  grid-column: auto !important; grid-row: auto !important;
  z-index: auto !important;
}
.m-vm-host .vm-head { display: none !important; }
.m-vm-host .vm-scroll { flex: 1 1 auto; min-height: 0; padding: 4px 14px 10px; }
.m-vm-host .vm-composer { flex: 0 0 auto; padding: 10px 12px calc(84px + env(safe-area-inset-bottom, 0px)); background: transparent; border-top: 1px solid var(--line); }
.m-vm-host .conversation-panel {
  position: absolute !important; inset: 0 !important; z-index: 40;
  border-radius: 18px; background: var(--bg-soft, var(--panel));
  border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.m-vm-host .vm-greet { margin: 2px 0 8px; }
.m-vm-host .vm-messages { padding-bottom: 6px; }

/* ---------- 通用 ---------- */
.m-toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  max-width: 78vw; padding: 10px 14px; border-radius: 12px;
  background: rgba(23, 28, 44, .92); color: #fff; font-size: 12.5px; line-height: 1.5;
  transition: opacity .2s ease, transform .2s ease; z-index: 1200;
}
.m-toast.show { opacity: 1; transform: translate(-50%, 0); }
.m-loading { padding: 40px 0; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.m-refresh { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 11.5px; padding: 0; }

/* 屏幕较矮时压缩一点 */
@media (max-height: 720px) {
  .m-bar { padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
  .m-scroll { padding-top: 6px; }
}

/* ---------- 待办：汇总 / 筛选 / 子任务 / 依赖 / 附件（与桌面端能力对齐） ---------- */
.m-seg4 button { font-size: 12px; }
.m-sum { flex: 0 0 auto; display: flex; gap: 7px; padding: 9px 16px 0; overflow-x: auto; scrollbar-width: none; }
.m-sum::-webkit-scrollbar { display: none; }
.m-sum-chip {
  flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-dim);
  font: inherit; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
}
.m-sum-chip b { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.m-sum-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.m-sum-chip.on b { color: var(--accent-text); }
.m-sum-chip.over b { color: var(--danger); }
.m-sum-chip.is-zero { opacity: .55; }
.m-sum-clear { flex: 0 0 auto; height: 32px; padding: 0 10px; border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 11.5px; }
.m-filter-line {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px; margin: 8px 16px 0; padding: 0 2px;
  border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 600;
}
.m-filter-line { color: var(--text-dim); }
.m-filter-line > span:empty { display: none; }
.m-filter-line > span { color: var(--text); font-weight: 500; }
.m-filter-line > span.on { color: var(--accent-text); }
.m-filter-sec { margin: 10px 0 2px; }
.m-filter-sec h5 { margin: 0 0 6px; font-size: 11.5px; color: var(--text-dim); font-weight: 650; }
.m-fchips { display: flex; flex-wrap: wrap; gap: 7px; }
.m-fchip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 600; }
.m-fchip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.m-sub-block { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.m-sub-block h5 { margin: 0 0 6px; font-size: 12px; color: var(--text-dim); font-weight: 650; }
.m-sub-items { display: flex; flex-direction: column; gap: 4px; }
.m-sub-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.m-sub-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-sub-item .is-done { text-decoration: line-through; color: var(--text-dim); }
.m-sub-check { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: transparent; color: transparent; display: grid; place-items: center; }
.m-sub-check svg { width: 12px; height: 12px; }
.m-sub-check.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.m-inline-add { display: flex; gap: 8px; margin-top: 6px; }
.m-inline-add input, .m-inline-add select {
  flex: 1; min-width: 0; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-size: 13px; padding: 0 10px;
}
.m-link { border: 0; background: transparent; color: var(--accent-text); font: inherit; font-size: 12px; padding: 0 2px; }
.m-link.danger { color: var(--danger); }
.m-muted { margin: 0; font-size: 11.5px; color: var(--text-dim); }
.m-attach-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.m-attach-item a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-text); }
.m-attach-size { font-size: 10.5px; color: var(--text-dim); }
.m-attach-add { display: inline-flex; align-items: center; margin-top: 6px; font-size: 12px; color: var(--accent-text); }
.m-meta-line { margin: 10px 0 0; font-size: 11px; color: var(--text-dim); line-height: 1.7; }
.m-todo-note { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-sub-preview { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.m-sub-preview i { font-style: normal; font-size: 10.5px; color: var(--text-dim); background: var(--panel-2); border-radius: 20px; padding: 1px 7px; }
.m-sub-preview i.on { text-decoration: line-through; opacity: .65; }
.m-sub-preview em { font-style: normal; font-size: 10px; color: var(--accent-text); margin-left: auto; }
.m-dep-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: 0 0 7px; }
.m-dep-dot.on { background: var(--ok-text); border-color: var(--ok-text); }
