/* 晓笺 XiaoNote v2.0 —— 样式
   设计取向：极简。留白、细线、少色。只有一个强调色。
   基于 v1.6 视觉语言：移除了富文本行内编辑（fmt/自由块/附件）与私密便签遮罩、
   二次密码相关样式；新增 role 徽标、分组 chip、子任务折叠等 v2.0 样式。 */

:root{
  --ground:#F5F7F5; --surface:#FFFFFF; --ink:#191C1A; --muted:#6A7370;
  --line:#E1E6E2; --soft:#EDF0ED; --accent:#0D5C50; --accent-soft:#E3F0EC;
  --warn:#A8563F; --shadow:0 1px 2px rgba(20,30,26,.05), 0 10px 28px -18px rgba(20,30,26,.25);
  --r:12px;
}
@media (prefers-color-scheme:dark){
  /* v1.5: 跟随系统模式 = html 上没有任何 data-theme；手动浅色/深色时
     分别用 data-theme="light" 关掉本块、用 body.dark 覆盖本块 */
  :root:not([data-theme]){
    --ground:#131614; --surface:#1B1F1D; --ink:#E7EBE8; --muted:#8B948F;
    --line:#293029; --soft:#222825; --accent:#4FBFA6; --accent-soft:#1B2E2A;
    --warn:#D1796E; --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 28px -18px rgba(0,0,0,.7);
  }
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--ground); color:var(--ink);
  font:15px/1.65 "Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased; overscroll-behavior:none;
}
/* 正文区自己滚。contain 挡住浏览器自带的下拉刷新，免得整页重载 */
.body{overscroll-behavior-y:contain}
button{font:inherit; color:inherit}
[hidden]{display:none !important}

/* ── 登录 ───────────────────────────────────────────── */
.login{position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--ground); z-index:50; padding:24px}
.loginBox{display:flex; flex-direction:column; gap:10px; width:100%; max-width:300px; text-align:center}
.brand{font-size:34px; font-weight:600; letter-spacing:6px; color:var(--accent); margin-right:-6px}
.brandEn{font-size:12px; letter-spacing:3px; color:var(--muted); margin-bottom:18px}
.loginBox input{padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); color:var(--ink); outline:none; text-align:center}
.loginBox input:focus{border-color:var(--accent)}
.loginBox button{padding:12px; border:0; border-radius:10px; background:var(--accent);
  color:#fff; cursor:pointer}
.loginErr{color:var(--warn); font-size:13px}

/* ── 布局 ───────────────────────────────────────────── */
.app{display:flex; height:100%}
.side{width:250px; flex:none; background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; z-index:30}
.sideHead{display:flex; align-items:center; justify-content:space-between;
  padding:16px 14px 10px}
.logo{font-size:17px; font-weight:600; letter-spacing:3px; color:var(--accent)}
.nav{flex:1; overflow-y:auto; padding:4px 8px 12px}
.sideFoot{border-top:1px solid var(--line); padding:8px}

.main{flex:1; min-width:0; display:flex; flex-direction:column}
.bar{display:flex; align-items:center; gap:8px; padding:14px 20px 10px;
  border-bottom:1px solid var(--line); background:var(--ground)}
.noteTitle{flex:1; min-width:0; margin:0; font-size:19px; font-weight:600; line-height:1.4;
  outline:none; overflow-wrap:anywhere}
.noteTitle[contenteditable="true"]:focus{border-bottom:1px solid var(--accent)}
.barRight{display:flex; gap:2px; flex:none}
.body{flex:1; overflow-y:auto; padding:18px 20px 120px}

.icon{background:transparent; border:0; cursor:pointer; color:var(--muted);
  width:32px; height:32px; border-radius:8px; font-size:16px; line-height:1; flex:none}
.icon:hover{background:var(--soft); color:var(--ink)}
.icon:focus-visible,button:focus-visible{outline:2px solid var(--accent); outline-offset:1px}

/* ── 侧栏条目 ───────────────────────────────────────── */
.navGroup{margin-bottom:6px}
.navList{display:flex; align-items:center; gap:4px; padding:6px 8px; color:var(--muted);
  font-size:12px; letter-spacing:.04em}
.navList .t{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  outline:none; cursor:text}
.navList .icon{width:24px; height:24px; font-size:13px; opacity:0; transition:opacity .12s}
.navGroup:hover .navList .icon{opacity:1}
.navItem{display:flex; align-items:center; gap:8px; width:100%; text-align:left;
  background:transparent; border:0; cursor:pointer; padding:7px 10px; border-radius:8px;
  color:var(--ink); font-size:14px; overflow:hidden}
.navItem .tx{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.navItem:hover{background:var(--soft)}
.navItem.on{background:var(--accent-soft); color:var(--accent); font-weight:500}
.navItem.quiet{color:var(--muted); font-size:13px}
.gi{width:18px; text-align:center; flex:none; font-size:13px; opacity:.85}
.navAdd{color:var(--muted); font-size:13px}

/* ── 分区与条目 ─────────────────────────────────────── */
.sections{display:flex; flex-direction:column; gap:18px; max-width:760px}
.sections.grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:1100px}
.sections.cols{display:flex; flex-direction:row; gap:16px; overflow-x:auto; max-width:none}
.sections.cols .sec{min-width:280px; flex:none}

.sec{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:12px 14px 8px; box-shadow:var(--shadow); min-width:0}
.secHead{display:flex; align-items:center; gap:6px; margin-bottom:6px}
.secTitle{flex:1; min-width:0; font-size:13px; font-weight:600; color:var(--accent);
  letter-spacing:.04em; outline:none; overflow-wrap:anywhere}
.secTitle:empty::before{content:"未命名分区"; color:var(--muted); font-weight:400}
.secHead .icon{width:24px; height:24px; font-size:13px; opacity:0}
.sec:hover .secHead .icon,.sec:focus-within .secHead .icon{opacity:1}
.secCount{font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; flex:none}

.rows{display:flex; flex-direction:column}
.row{display:flex; align-items:flex-start; gap:9px; padding:5px 0;
  border-top:1px solid var(--soft)}
.rows .row:first-child{border-top:0}
.tick{appearance:none; -webkit-appearance:none; margin:5px 0 0; width:17px; height:17px; flex:none;
  border:1.5px solid var(--line); border-radius:50%; background:transparent; cursor:pointer;
  position:relative; transition:border-color .12s}
.tick:hover{border-color:var(--accent)}
.row.done .tick{background:var(--accent); border-color:var(--accent)}
.row.done .tick::after{content:""; position:absolute; inset:0; margin:auto; width:4px; height:7px;
  border:solid #fff; border-width:0 1.5px 1.5px 0; transform:translateY(-1px) rotate(45deg)}
.tx{flex:1; min-width:0; outline:none; padding:1px 0; overflow-wrap:anywhere; line-height:1.6}
.tx:empty::before{content:"写点什么…"; color:var(--muted)}
.row.done .tx{color:var(--muted); text-decoration:line-through; text-decoration-thickness:1px}
.rowTools{display:flex; gap:1px; flex:none; opacity:0; transition:opacity .12s}
.row:hover .rowTools,.row:focus-within .rowTools{opacity:1}
.rowTools .icon{width:26px; height:26px; font-size:12px}
.due{font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap;
  align-self:center; flex:none}
.due.soon{color:var(--warn)}
.addRow{display:flex; align-items:center; gap:9px; padding:6px 0 4px; color:var(--muted);
  font-size:13px; cursor:pointer; background:transparent; border:0; width:100%; text-align:left}
.addRow:hover{color:var(--accent)}

.secAdd{margin-top:2px}
.doneHead{font-size:11px; color:var(--muted); letter-spacing:.05em; padding:8px 0 2px;
  display:flex; align-items:center; gap:8px}
.doneHead::after{content:""; flex:1; height:1px; background:var(--line)}

/* ── 空状态 ─────────────────────────────────────────── */
.empty{color:var(--muted); text-align:center; padding:60px 20px; font-size:14px}
.empty b{display:block; font-size:16px; color:var(--ink); margin-bottom:6px; font-weight:600}

/* ── 日历 ───────────────────────────────────────────── */
.calBar{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.calBar .m{font-size:16px; font-weight:600; font-variant-numeric:tabular-nums}
.cal{display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--r); overflow:hidden}
.cal .wd{background:var(--surface); text-align:center; font-size:11px; color:var(--muted); padding:6px 0}
.cal .d{background:var(--surface); min-height:92px; padding:5px 6px; font-size:12px; min-width:0}
.cal .d.out{background:var(--soft)}
.cal .d .n{font-variant-numeric:tabular-nums; color:var(--muted); font-size:11px}
.cal .d.today .n{color:#fff; background:var(--accent); border-radius:50%;
  width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center}
.ev{display:block; width:100%; text-align:left; background:var(--accent-soft); color:var(--accent);
  border:0; border-radius:5px; padding:2px 5px; margin-top:3px; font-size:11px; cursor:pointer;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; line-height:1.5}
.ev.done{background:var(--soft); color:var(--muted); text-decoration:line-through}

/* ── 搜索（常驻）─────────────────────────────────────── */
.sideSearch{padding:0 10px 8px}
.searchBar{width:100%; padding:8px 11px; border:1px solid var(--line); border-radius:9px;
  background:var(--ground); color:var(--ink); outline:none; font:inherit; font-size:13px;
  -webkit-appearance:none; appearance:none}
.searchBar:focus{border-color:var(--accent); background:var(--surface)}
.listSearch{max-width:520px; margin-bottom:14px; padding:11px 14px; font-size:15px;
  background:var(--surface)}

/* ── 便签列表页 ─────────────────────────────────────── */
.noteList{max-width:760px}
.listLabel{font-size:11px; color:var(--muted); letter-spacing:.06em; margin:16px 0 6px}
.noteList > .listLabel:first-child{margin-top:0}
.ncard{display:block; width:100%; text-align:left; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--r); padding:11px 13px; margin-bottom:8px;
  cursor:pointer; box-shadow:var(--shadow)}
.ncard:hover{border-color:var(--accent)}
.ncTop{display:flex; align-items:center; gap:8px}
.ncTitle{flex:1; min-width:0; font-size:15px; font-weight:600; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.ncCount{flex:none; font-size:11px; font-variant-numeric:tabular-nums; color:var(--accent);
  background:var(--accent-soft); border-radius:9px; padding:1px 7px}
.ncPrev{margin-top:3px; font-size:12px; line-height:1.55; color:var(--muted);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.addNote{margin-top:10px}

.hit{display:block; width:100%; text-align:left; background:var(--surface); border:1px solid var(--line);
  border-radius:10px; padding:10px 12px; margin-bottom:8px; cursor:pointer; max-width:760px}
.hit:hover{border-color:var(--accent)}
.hit .w{font-size:11px; color:var(--muted); margin-bottom:2px}
.hit .c{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* ── 私密遮挡（v2.0：私密由后端可见性查询 enforcement，前端只显示 🔒 标识）── */

/* ── 下拉刷新 ───────────────────────────────────────── */
.ptr{text-align:center; font-size:12px; color:var(--muted); padding:8px 0;
  background:var(--ground); border-bottom:1px solid var(--line)}
.hit{display:block; width:100%; text-align:left; background:var(--surface); border:1px solid var(--line);
  border-radius:10px; padding:10px 12px; margin-bottom:8px; cursor:pointer; max-width:760px}
.hit:hover{border-color:var(--accent)}
.hit .w{font-size:11px; color:var(--muted); margin-bottom:2px}
.hit .c{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

/* ── 浮动工具条（v2.0 已移除富文本行内编辑，此处保留空位避免旧缓存类名报错）── */

.sheet{position:fixed; inset:0; z-index:45; background:rgba(15,22,19,.35);
  display:flex; align-items:center; justify-content:center; padding:20px}
.sheetBox{background:var(--surface); border-radius:14px; box-shadow:var(--shadow);
  width:100%; max-width:340px; padding:18px; max-height:85vh; overflow-y:auto}
.sheetBox h3{margin:0 0 12px; font-size:15px}
.sheetBox label{display:block; font-size:12px; color:var(--muted); margin:10px 0 4px}
.sheetBox input,.sheetBox select{width:100%; padding:9px 10px; border:1px solid var(--line);
  border-radius:8px; background:var(--ground); color:var(--ink); outline:none; font:inherit}
.sheetBox input:focus,.sheetBox select:focus{border-color:var(--accent)}
.sheetRow{display:flex; gap:8px; margin-top:16px}
.sheetRow button{flex:1; padding:10px; border:0; border-radius:9px; cursor:pointer; font-size:14px}
.btnMain{background:var(--accent); color:#fff}
.btnGhost{background:var(--soft); color:var(--ink)}
.btnDanger{background:transparent; color:var(--warn); border:1px solid var(--line) !important}
.pickList button{display:block; width:100%; text-align:left; background:transparent; border:0;
  padding:10px 8px; border-radius:8px; cursor:pointer; font-size:14px}
.pickList button:hover{background:var(--soft)}
.pickList button.on{color:var(--accent); font-weight:500}
.pickList .hint{font-size:11px; color:var(--muted); display:block; margin-top:1px; font-weight:400}

.toast{position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:60;
  background:var(--ink); color:var(--ground); padding:9px 16px; border-radius:20px; font-size:13px;
  box-shadow:var(--shadow); max-width:90vw}

.scrim{position:fixed; inset:0; background:rgba(15,22,19,.3); z-index:25}

/* ── 手机 ───────────────────────────────────────────── */
.only-s{display:none}
@media (max-width:760px){
  .only-s{display:inline-block}
  .side{position:fixed; inset:0 auto 0 0; transform:translateX(-100%);
    transition:transform .22s ease; box-shadow:var(--shadow); width:80vw; max-width:280px}
  .side.open{transform:none}
  .bar{padding:12px 14px 10px}
  .body{padding:14px 14px 140px}
  .sections.grid{grid-template-columns:1fr}
  .cal .d{min-height:64px}
  .rowTools{opacity:1}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important}}

/* ── 日历：月/周 切换 ───────────────────────────────── */
.calBar{flex-wrap:wrap}
.calSeg{margin-left:auto; display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden}
.calSeg button{border:0; background:var(--surface); color:var(--muted); padding:5px 13px;
  cursor:pointer; font-size:13px}
.calSeg button.on{background:var(--accent); color:#fff}

/* ── 日历周视图：竖向一天一行，内容完整显示 ─────────── */
.week{display:flex; flex-direction:column; gap:10px; max-width:760px}
.wday{background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:10px 13px 11px; box-shadow:var(--shadow)}
.wday.today{border-color:var(--accent)}
.wdayHead{display:flex; align-items:baseline; gap:8px; margin-bottom:4px}
.wdayN{font-size:14px; font-weight:600; font-variant-numeric:tabular-nums}
.wday.today .wdayN{color:var(--accent)}
.wdayW{font-size:11px; color:var(--muted)}
.wdayNone{color:var(--muted); font-size:13px; padding:2px 0}
.wev{display:block; width:100%; text-align:left; background:transparent; border:0;
  border-top:1px solid var(--soft); padding:7px 0 6px; cursor:pointer; color:var(--ink)}
.wev:first-of-type{border-top:0}
.wev:hover{background:var(--soft); border-radius:6px}
.wevT{display:inline-block; font-size:11px; color:var(--accent); background:var(--accent-soft);
  border-radius:4px; padding:0 5px; margin-right:6px; font-variant-numeric:tabular-nums;
  vertical-align:1px}
.wevX{white-space:normal; overflow-wrap:anywhere; line-height:1.55}   /* 关键：不截断 */
.wevFrom{display:block; font-size:11px; color:var(--muted); margin-top:2px}
.wev.done .wevX{color:var(--muted); text-decoration:line-through}

/* ── 私密便签的锁 ───────────────────────────────────── */
.lockTag{flex:none; font-size:13px; line-height:1; opacity:.75}
.lockTag.open{opacity:.45}
#noteLock{margin-right:2px; font-size:15px}

/* ── 拖动排序 ───────────────────────────────────────── */
.grip{flex:none; width:16px; margin-top:4px; color:var(--line); font-size:12px; line-height:1;
  cursor:grab; text-align:center; touch-action:none; user-select:none; -webkit-user-select:none}
.row:hover .grip,.row:focus-within .grip{color:var(--muted)}
.grip:active{cursor:grabbing}
.noteGroup{display:block}
.dragSrc{opacity:.32}
.dragGhost{position:fixed; z-index:70; pointer-events:none; opacity:.92;
  box-shadow:0 8px 24px -6px rgba(20,30,26,.35); border-radius:10px;
  background:var(--surface); padding:4px 8px; margin:0}
.dragGhost .grip{color:var(--accent)}
body.isDragging{user-select:none; -webkit-user-select:none; cursor:grabbing}
body.isDragging .tx{pointer-events:none}

/* ── 删除清单的确认 ─────────────────────────────────── */
.delWarn{background:#FDF0ED; border-left:3px solid var(--warn); border-radius:6px;
  padding:10px 12px; font-size:13px; line-height:1.6}
.delWarn b{display:block; color:var(--warn); margin-bottom:3px}
.delNames{color:var(--muted); font-size:12px; margin-bottom:4px; overflow-wrap:anywhere}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]) .delWarn{background:#2A1E1B}
}
body.dark .delWarn{background:#2A1E1B}

/* ── 附件 / 链接（v2.0：标题为纯文本，相关行内样式移除）── */

/* ── 手机 ───────────────────────────────────────────── */
@media (max-width:760px){
  .grip{color:var(--muted); width:18px}
  .calSeg{margin-left:0}
}

/* ── 自由视图（v2.0：标题纯文本，行首序号/符号/缩进已移除，键盘流保留）── */

/* ══════════════════════════════════════════════════════════════
   v1.5 新增样式：智能清单 / 优先级 / 任务详情 / 快速添加 /
   子任务 / 今日聚焦 / 深色模式 / 标签颜色
   ══════════════════════════════════════════════════════════════ */

/* ── 深色模式：body.dark 强制深色（深灰底 #1a1d1b 系，品牌绿点缀）──
   品牌绿 #0d5c50 在深底上做文字对比度不够，这里用提亮后的同色系
   #4FBFA6（与跟随系统深色模式的 accent 一致），按钮白字依然可读 */
body.dark{
  --ground:#1a1d1b; --surface:#222624; --ink:#E7EBE8; --muted:#8B948F;
  --line:#2E332F; --soft:#282D2A; --accent:#4FBFA6; --accent-soft:#1B2E2A;
  --warn:#D1796E; --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 28px -18px rgba(0,0,0,.7);
}

/* ── 智能清单侧栏分组 ── */
.navLabel{font-size:11px; color:var(--muted); letter-spacing:.08em; padding:10px 10px 4px}
.navGroup:first-child .navLabel{padding-top:4px}
.cnt{flex:none; font-size:11px; font-variant-numeric:tabular-nums; color:var(--muted);
  background:var(--soft); border-radius:9px; padding:1px 7px; min-width:22px; text-align:center}
.navItem.on .cnt{background:var(--accent); color:#fff}
.cnt.hot{background:#FBE9E7; color:#C0392B}
body.dark .cnt.hot{background:#3A2220; color:#E88}

/* ── 快速添加 ── */
.qa{max-width:760px; margin-bottom:12px}
.qa input{width:100%; padding:11px 14px; border:1px solid var(--line); border-radius:11px;
  background:var(--surface); color:var(--ink); outline:none; font:inherit; font-size:15px;
  box-shadow:var(--shadow)}
.qa input:focus{border-color:var(--accent)}
.chips{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.chip{font-size:12px; background:var(--accent-soft); color:var(--accent); border-radius:8px;
  padding:2px 9px}
.chip b{font-weight:600; margin-right:2px}

/* ── 任务卡片（智能清单）── */
.tcards{max-width:760px; display:flex; flex-direction:column; gap:8px}
.tcard{display:flex; align-items:flex-start; gap:10px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--r); padding:10px 12px; box-shadow:var(--shadow)}
.tcard .tick{margin-top:3px}
.tcMain{flex:1; min-width:0}
.tcTop{display:flex; align-items:center; gap:7px}
.tcTitle{flex:1; min-width:0; text-align:left; background:transparent; border:0; cursor:pointer;
  font-size:14px; font-weight:500; color:var(--ink); padding:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tcTitle:hover{color:var(--accent)}
.tcMeta{display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:4px; font-size:12px}
.tcRight{display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex:none}
.tcFrom{font-size:11px; color:var(--muted); max-width:110px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; text-align:right}
.tcRight .icon{width:26px; height:26px; font-size:13px}
.due.over{color:#C0392B; font-weight:600}
body.dark .due.over{color:#E88}
.repTag{color:var(--accent); font-size:11px}

/* ── 优先级色点 / 标签 pills / 子任务计数 ── */
.priDot{flex:none; width:9px; height:9px; border-radius:50%; align-self:center}
.priDot.big{width:12px; height:12px}
.pills{display:inline-flex; flex-wrap:wrap; gap:4px}
.pill{font-size:11px; line-height:1.5; padding:0 8px; border-radius:9px; white-space:nowrap;
  background:var(--soft); color:var(--muted); border:1px solid var(--line)}
.pill[style]{background:color-mix(in srgb, var(--tc) 13%, transparent);
  border-color:color-mix(in srgb, var(--tc) 60%, transparent); color:var(--ink)}
.subCnt{flex:none; font-size:11px; color:var(--muted); background:transparent; border:0;
  cursor:pointer; padding:2px 4px; border-radius:6px; white-space:nowrap; align-self:center}
.subCnt:hover{color:var(--accent); background:var(--soft)}

/* ── 任务详情 sheet ── */
.sheetBox.wide{max-width:520px}
.sheetBox textarea{width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:8px;
  background:var(--ground); color:var(--ink); outline:none; font:inherit; resize:vertical;
  min-height:64px}
.sheetBox textarea:focus{border-color:var(--accent)}
.priRow{display:flex; gap:6px}
.priRow button{flex:1; border:1px solid var(--line); background:var(--ground); color:var(--muted);
  border-radius:8px; padding:8px 0; cursor:pointer; font-size:13px}
.priRow button.on{border-color:var(--pc, var(--accent)); color:var(--ink); font-weight:600;
  background:var(--soft)}
.priRow button.on:not(:first-child){box-shadow:inset 0 -3px 0 var(--pc)}
.repExtra{margin-top:8px; font-size:13px; display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.repExtra input[type=number]{width:64px; flex:none}
.repDay{display:inline-flex; align-items:center; gap:4px; font-size:13px; cursor:pointer;
  border:1px solid var(--line); border-radius:7px; padding:4px 8px; margin:0}
.repDay input{width:auto; accent-color:var(--accent)}
.subs{display:flex; flex-direction:column; gap:2px; margin-top:2px}
.subHead{font-size:12px; color:var(--muted); margin:6px 0 2px}
.sub{display:flex; align-items:center; gap:8px; padding:5px 2px; border-top:1px solid var(--soft)}
.sub input[type=checkbox]{width:15px; height:15px; flex:none; accent-color:var(--accent)}
.subName{flex:1; min-width:0; outline:none; font-size:14px; overflow-wrap:anywhere}
.sub.done .subName{color:var(--muted); text-decoration:line-through}
.sub .icon{width:24px; height:24px; font-size:13px; opacity:0}
.sub:hover .icon{opacity:1}
.subAdd{display:flex; align-items:center; gap:8px; margin-top:4px; color:var(--muted)}
.subAdd input{flex:1}
.sheetBtnFull{width:100%; margin-top:14px; padding:10px; border:0; border-radius:9px;
  cursor:pointer; font-size:14px}

/* ── 设置：标签颜色 ── */
.tagColors{display:flex; flex-direction:column; gap:4px; margin-top:4px; max-height:260px; overflow-y:auto}
.tagRow{display:flex; align-items:center; gap:9px; padding:6px 4px; border-top:1px solid var(--soft)}
.tagRow:first-child{border-top:0}
.tagDot{flex:none; width:12px; height:12px; border-radius:50%; border:1px solid var(--line)}
.tagName{flex:1; min-width:0; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tagRow input[type=color]{width:34px; height:26px; flex:none; padding:0; border:1px solid var(--line);
  border-radius:6px; background:var(--surface); cursor:pointer}
.tagRow .icon{width:26px; height:26px; font-size:13px}
.muted13{font-size:13px; color:var(--muted); padding:6px 2px}

/* ── 今日聚焦 ── */
.focusBtn{display:block; max-width:760px; width:100%; margin:0 0 14px; padding:12px;
  border:1px solid var(--accent); background:var(--accent-soft); color:var(--accent);
  border-radius:11px; cursor:pointer; font-size:15px; font-weight:600}
.focusBtn:hover{filter:brightness(.98)}
.focusOv{position:fixed; inset:0; z-index:44; background:var(--ground);
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px}
.focusProg{font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; margin-bottom:14px}
.focusCard{background:var(--surface); border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--shadow); width:100%; max-width:480px; padding:28px 26px; text-align:center}
.focusTitle{margin:6px 0 10px; font-size:22px; line-height:1.45; overflow-wrap:anywhere}
.focusNote{font-size:14px; color:var(--muted); margin:0 0 10px; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden}
.focusMeta{display:flex; flex-wrap:wrap; gap:8px; justify-content:center; font-size:12px;
  color:var(--muted); margin-bottom:20px}
.focusActs{display:flex; gap:10px}
.focusActs button{flex:1; padding:13px 0; border-radius:11px; cursor:pointer; font-size:15px; border:0}
.fDone{background:var(--accent); color:#fff; font-weight:600}
.fPost{background:var(--soft); color:var(--ink)}
.fSkip{background:transparent; color:var(--muted); border:1px solid var(--line) !important}
.focusDone{font-size:44px; margin-bottom:8px}
.focusCard h2{margin:0 0 8px; font-size:20px}
.focusStat{color:var(--muted); margin:0 0 18px}
.focusX{position:absolute; top:16px; right:18px; width:38px; height:38px; border-radius:50%;
  border:1px solid var(--line); background:var(--surface); color:var(--muted); cursor:pointer; font-size:15px}
.focusX:hover{color:var(--ink)}

/* ── 手机：弹层改底部抽屉式，聚焦全屏 ── */
@media (max-width:760px){
  .sheet{padding:0; align-items:flex-end}
  .sheetBox,.sheetBox.wide{max-width:none; width:100%; border-radius:18px 18px 0 0;
    max-height:92vh; padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .sub .icon{opacity:1}
  .focusOv{padding:16px}
  .focusCard{padding:24px 20px}
  .focusActs{flex-direction:column}
}

/* ══════════════════════════════════════════════════════════════
   v1.6 新增样式：多用户 / 视图切换器（看板/表格/甘特）/ 模板库 / 评论 / 动态
   ══════════════════════════════════════════════════════════════ */

/* ── 头像字 ── */
.avatar{flex:none; width:24px; height:24px; border-radius:50%; display:inline-flex;
  align-items:center; justify-content:center; font-size:12px; font-weight:600}
.avatar.sm{width:20px; height:20px; font-size:11px}

/* ── 共享 / 成员管理 ── */
.shareRows{display:flex; flex-direction:column; gap:2px; margin:4px 0 6px; max-height:280px; overflow-y:auto}
.shareRow{display:flex; align-items:center; gap:9px; padding:7px 2px; border-top:1px solid var(--soft)}
.shareRow:first-child{border-top:0}
.shareName{flex:1; min-width:0; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.shareName.code{font-family:ui-monospace,monospace; font-size:13px}
.shareRow select{width:auto; flex:none}
.shareRow .icon{width:26px; height:26px; font-size:13px}
.shareAdd{display:flex; gap:6px; margin-top:6px}
.shareAdd input{flex:1}
.shareAdd select{width:auto; flex:none}
.shareAdd button{flex:none; padding:9px 14px}
.roBanner{background:var(--accent-soft); color:var(--accent); border-radius:8px;
  padding:8px 12px; font-size:13px; margin-bottom:12px}

/* ── 看板 ── */
.board{display:flex; gap:14px; overflow-x:auto; align-items:flex-start;
  padding-bottom:20px; max-width:none}
.bcol{flex:none; width:288px; background:var(--soft); border-radius:var(--r); padding:10px;
  max-height:calc(100vh - 220px); display:flex; flex-direction:column}
.bcol.done{background:transparent; border:1px dashed var(--line)}
.bcolHead{display:flex; align-items:center; gap:6px; padding:2px 4px 8px}
.bcolTitle{flex:1; min-width:0; font-size:13px; font-weight:600; color:var(--accent);
  outline:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.bcolHead .icon{width:24px; height:24px; font-size:13px; opacity:0}
.bcol:hover .bcolHead .icon{opacity:1}
.bcolCards{display:flex; flex-direction:column; gap:8px; overflow-y:auto; min-height:40px;
  padding:2px}
.bcard{background:var(--surface); border:1px solid var(--line); border-radius:10px;
  padding:9px 11px; box-shadow:var(--shadow); cursor:default}
.bcard.done{opacity:.62}
.bcard.done .btitle{text-decoration:line-through; color:var(--muted)}
.bTop{display:flex; align-items:flex-start; gap:7px}
.btitle{flex:1; min-width:0; font-size:14px; line-height:1.5; overflow-wrap:anywhere;
  cursor:pointer; outline:none}
.btitle:hover{color:var(--accent)}
.bmeta{display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:7px}
.cmtCnt{font-size:11px; color:var(--muted)}
.msTag{font-size:11px; color:var(--accent)}
body.isDragging .bcard{pointer-events:none}

/* ── 表格 ── */
.twrap{overflow-x:auto; max-width:none}
.ttable{border-collapse:collapse; width:100%; min-width:860px; font-size:13px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden}
.ttable thead th{position:sticky; top:0; background:var(--soft); text-align:left;
  font-weight:600; font-size:12px; color:var(--muted); padding:9px 10px;
  border-bottom:1px solid var(--line); white-space:nowrap; z-index:2}
.ttable td{padding:7px 10px; border-bottom:1px solid var(--soft); vertical-align:middle}
.ttable tr.tsec td{background:var(--ground); padding-top:12px}
.ttable tr.done td{color:var(--muted)}
.ttable tr.done .tTitle{text-decoration:line-through}
.tTitle{background:transparent; border:0; cursor:pointer; font-size:13px; color:var(--ink);
  text-align:left; padding:0; max-width:280px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; display:block}
.tTitle:hover{color:var(--accent)}
.ttable select{width:auto; max-width:130px; padding:5px 6px; font-size:13px}
.ttable input[type=date]{width:auto; padding:5px 6px; font-size:13px}

/* ── 甘特 ── */
.gwrap{max-width:none}
.gtopbar{display:flex; align-items:center; gap:12px; margin-bottom:10px; flex-wrap:wrap}
.gseg{display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden}
.gseg button{border:0; background:var(--surface); color:var(--muted); padding:5px 14px;
  cursor:pointer; font-size:13px}
.gseg button.on{background:var(--accent); color:#fff}
.gbody{overflow:auto; border:1px solid var(--line); border-radius:var(--r);
  background:var(--surface); max-height:calc(100vh - 240px)}
.gtable{min-width:100%}
.grow{display:flex; border-bottom:1px solid var(--soft)}
.grow:last-child{border-bottom:0}
.ghead{position:sticky; top:0; z-index:5; background:var(--soft); height:56px}
.ghead.one{height:30px}
.ghead .gcell-tree{background:var(--soft)}
.gcell-tree{position:sticky; left:0; z-index:4; width:300px; flex:none;
  background:var(--surface); border-right:1px solid var(--line); padding:6px 8px;
  overflow:hidden}
.gcell-time{position:relative; flex:none}
.ghT{font-size:12px; font-weight:600; color:var(--muted)}
.ghT2{display:block; font-size:11px; color:var(--muted); font-weight:400}
.gmonrow{position:relative; height:26px; border-bottom:1px solid var(--line)}
.gmon{position:absolute; top:0; height:26px; line-height:26px; font-size:11px; color:var(--muted);
  padding-left:6px; border-left:1px solid var(--line); overflow:hidden; white-space:nowrap}
.gdayrow{position:relative; height:30px}
.gdayrow.one{height:30px; border-bottom:0}
.gday{position:absolute; top:0; height:30px; line-height:30px; text-align:center;
  font-size:11px; color:var(--muted); border-left:1px solid var(--soft);
  font-variant-numeric:tabular-nums; overflow:hidden}
.gday.we{background:var(--soft)}
.grow .gcell-tree{height:42px; display:flex; flex-direction:column; justify-content:center}
.gtName{background:transparent; border:0; cursor:pointer; text-align:left; font-size:13px;
  color:var(--ink); padding:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  max-width:100%}
.gtName:hover{color:var(--accent)}
.gtMeta{display:flex; align-items:center; gap:6px; font-size:11px; color:var(--muted);
  font-variant-numeric:tabular-nums}
.gprog{margin-left:auto; font-weight:600; color:var(--accent)}
.grow .gcell-time{height:42px}
.gshade{position:absolute; top:0; bottom:0; background:var(--soft); opacity:.7; pointer-events:none}
.gbar{position:absolute; top:11px; height:20px; background:var(--accent-soft);
  border:1px solid var(--accent); border-radius:6px; cursor:grab; touch-action:none;
  overflow:hidden}
.gbar.done{opacity:.55}
.gfill{height:100%; background:var(--accent); opacity:.75; border-radius:4px}
.ghandle{position:absolute; right:0; top:0; bottom:0; width:10px; cursor:ew-resize}
.ghandle::after{content:""; position:absolute; right:3px; top:4px; bottom:4px; width:2px;
  background:var(--accent); border-radius:1px; opacity:.6}
.gmile{position:absolute; top:13px; width:14px; height:14px; margin-left:-7px;
  background:var(--accent); transform:rotate(45deg); border-radius:3px; cursor:pointer}
.gdue{position:absolute; top:13px; width:12px; height:12px; margin-left:-6px;
  border:2px solid var(--warn); transform:rotate(45deg); border-radius:2px; cursor:pointer;
  background:var(--surface)}
.gtoday{position:absolute; width:0; border-left:2px dashed #C0392B; z-index:3; pointer-events:none}
.gdep{position:absolute; left:0; top:0; pointer-events:none; z-index:2; overflow:visible}
.gdepPath{fill:none; stroke:var(--muted); stroke-width:1.4}
.gnodate{position:absolute; left:8px; top:12px; font-size:11px; color:var(--muted)}

/* ── 模板库 ── */
.tplCards{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:6px 0 4px}
.tplCard{text-align:left; background:var(--ground); border:1px solid var(--line);
  border-radius:10px; padding:10px 12px; cursor:pointer}
.tplCard:hover{border-color:var(--accent)}
.tplCard b{display:block; font-size:14px; margin-bottom:2px}
.tplCard .hint{font-size:11px; color:var(--muted); display:block; line-height:1.5}

/* ── 评论 ── */
.cmts{display:flex; flex-direction:column; gap:2px; margin:2px 0 6px; max-height:300px; overflow-y:auto}
.cmt{display:flex; gap:8px; padding:7px 2px; border-top:1px solid var(--soft); align-items:flex-start}
.cmt:first-child{border-top:0}
.cmtMid{flex:1; min-width:0}
.cmtHead{display:flex; align-items:baseline; gap:8px; font-size:12px}
.cmtHead b{font-size:13px}
.cmtTime{color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums}
.cmtMid div:last-child{font-size:14px; overflow-wrap:anywhere; line-height:1.6}
.at{color:var(--accent); background:var(--accent-soft); border-radius:4px; padding:0 4px}
.cmt .icon{width:24px; height:24px; font-size:12px; opacity:0; flex:none}
.cmt:hover .icon{opacity:1}
.cmtAdd{display:flex; gap:6px; margin-top:4px}
.cmtAdd input{flex:1}
.cmtAdd button{flex:none; padding:9px 14px}
.mentionPop{position:fixed; z-index:70; background:var(--surface); border:1px solid var(--line);
  border-radius:10px; box-shadow:var(--shadow); padding:4px; min-width:200px; max-height:220px;
  overflow-y:auto}
.mentionPop button{display:block; width:100%; text-align:left; background:transparent; border:0;
  padding:8px 10px; border-radius:7px; cursor:pointer; font-size:13px}
.mentionPop button:hover{background:var(--soft)}

/* ── 进度 slider / 里程碑 ── */
.progRow{display:flex; align-items:center; gap:10px}
.progRow input[type=range]{flex:1; accent-color:var(--accent)}
.progT{font-size:13px; font-variant-numeric:tabular-nums; min-width:44px; text-align:right;
  color:var(--accent); font-weight:600}
.msRow{display:flex !important; align-items:center; gap:8px; font-size:14px !important;
  color:var(--ink) !important; cursor:pointer; margin-top:12px !important}
.msRow input{width:auto !important; accent-color:var(--accent)}

/* ── 动态 ── */
.acts{max-width:760px; display:flex; flex-direction:column; gap:8px}
.act{display:block; width:100%; text-align:left; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--r); padding:10px 13px; cursor:pointer;
  box-shadow:var(--shadow)}
.act:hover{border-color:var(--accent)}
.actTop{display:flex; gap:9px; align-items:flex-start}
.actTx{flex:1; min-width:0; font-size:14px; line-height:1.55; overflow-wrap:anywhere}
.actTx b{font-weight:600}
.actExtra{font-size:12px; color:var(--muted); margin-top:2px; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.actTime{font-size:11px; color:var(--muted); margin-top:5px; padding-left:33px;
  font-variant-numeric:tabular-nums}

/* ── 手机 ── */
@media (max-width:760px){
  .bcol{width:248px}
  .tplCards{grid-template-columns:1fr}
  .gcell-tree{width:200px}
  .cmt .icon{opacity:1}
}

/* ══════════════════════════════════════════════════════════════
   v2.0 新增样式：role 徽标 / 分组 chip / 子任务折叠 / 甘特已完成行
   ══════════════════════════════════════════════════════════════ */

/* ── role 标识（侧栏清单行、全部清单卡片）── */
.roleBadge{flex:none; font-size:10px; color:var(--muted); border:1px solid var(--line);
  border-radius:8px; padding:0 6px; line-height:1.7; white-space:nowrap}
.navItem.on .roleBadge{color:var(--accent); border-color:var(--accent)}
.ncTop .roleBadge{margin-left:auto}

/* ── 看板卡片上的分组 chip / 进行中标签 ── */
.secChip{font-size:11px; color:var(--muted); background:var(--soft);
  border-radius:6px; padding:0 7px; white-space:nowrap}
.stTag{font-size:11px; color:var(--accent); background:var(--accent-soft);
  border-radius:6px; padding:0 7px; white-space:nowrap}

/* ── 子任务递归：折叠按钮 / 内层容器 ── */
.subFold{padding:4px 0}
.foldBtn{background:transparent; border:0; cursor:pointer; color:var(--accent);
  font-size:12px; padding:4px 2px}
.foldBtn:hover{text-decoration:underline}
.subInner{display:flex; flex-direction:column}

/* ── 甘特已完成行 ── */
.grow.gdone .gtName{color:var(--muted); text-decoration:line-through}

/* ── 智能清单已完成卡片 ── */
.tcard.done{opacity:.72}
.tcard.done .tcTitle{text-decoration:line-through; color:var(--muted)}

/* ── 表格子任务行 ── */
.tTitle.sub{color:var(--muted)}
.tTitle.sub::before{content:"└ "; color:var(--line)}

/* ── 时间轴子任务缩进（行内 margin-left 由 JS 设置）── */
.rows .row{transition:margin-left .12s}

/* ── 清单颜色点（侧栏标识）── */
.navItem .gi.dot{font-size:10px}

/* ── 表单内错误提示（删除清单确认等）── */
.maskErr{color:var(--warn); font-size:13px}

/* ── 笔记本与笔记（v2.1）────────────────────────────────── */
.nbRow{display:flex; align-items:center; gap:2px}
.nbRow .navItem{flex:1; min-width:0}
.nbRow .nbExp{width:22px; height:28px; font-size:11px}
.nbExpPad{width:22px; flex:none}
.nbRow .nbMenu{width:26px; height:28px; font-size:14px; opacity:0}
.nbRow:hover .nbMenu,.nbRow:focus-within .nbMenu{opacity:1}
.nbBar{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:14px; max-width:760px}
.nbBar .searchBar{flex:1; min-width:160px; max-width:320px}
.nbBar .btnMain,.nbBar .btnGhost{padding:9px 14px; border:0; border-radius:9px; cursor:pointer; font-size:14px}
.nbBar .btnGhost{background:var(--soft); color:var(--ink)}
.nbMeta{display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; font-size:12px; color:var(--muted)}
.nbBadge{font-size:11px; background:var(--accent-soft); color:var(--accent); border-radius:9px; padding:1px 7px}
.nbSrc{font-size:12px; color:var(--muted); word-break:break-all; margin-bottom:4px}
.nbSrc a{color:var(--accent)}
.sheetBox.xwide{max-width:640px}
.nbToolbar{display:flex; gap:2px; flex-wrap:wrap; margin-top:2px}
.tbBtn{min-width:30px; height:30px; padding:0 7px; border:1px solid var(--line); border-radius:7px;
  background:var(--ground); color:var(--ink); cursor:pointer; font-size:13px}
.tbBtn:hover{border-color:var(--accent)}
.nbEditor{min-height:180px; border:1px solid var(--line); border-radius:8px; padding:10px 12px;
  background:var(--ground); color:var(--ink); outline:none; overflow-wrap:anywhere; line-height:1.65}
.nbEditor[contenteditable="true"]:focus{border-color:var(--accent)}
.nbEditor img{max-width:100%; height:auto}
.nbEditor table{border-collapse:collapse}
.nbEditor td,.nbEditor th{border:1px solid var(--line); padding:4px 8px}
.nbEditor pre{background:var(--soft); border-radius:6px; padding:8px 10px; overflow-x:auto}
.nbEditor blockquote{border-left:3px solid var(--accent); margin:8px 0; padding:2px 10px; color:var(--muted)}
.attRow{display:flex; align-items:center; gap:8px; padding:6px 0; border-top:1px solid var(--soft)}
.attRow:first-child{border-top:0}
.attRow a{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--accent)}
.attThumb{width:44px; height:44px; object-fit:cover; border-radius:6px; flex:none}

/* ═════ v3.0 MD 编辑器 / 预览 / 收件箱 / 看板 ═════ */
.mdViewBar{display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:6px 0}
.mdModeBtn{height:28px; padding:0 10px; border:1px solid var(--line); border-radius:14px;
  background:var(--ground); color:var(--ink); cursor:pointer; font-size:12px}
.mdModeBtn.on{background:var(--accent); border-color:var(--accent); color:#fff}
.mdToolbar{display:flex; gap:2px; flex-wrap:wrap; margin-top:2px}
.mdWrap{display:flex; gap:10px; align-items:stretch}
.mdWrap[data-mode="edit"] .mdPreview{display:none}
.mdWrap[data-mode="preview"] .mdEditor{display:none}
.mdEditor{flex:1; min-width:0; min-height:260px; border:1px solid var(--line); border-radius:8px;
  padding:10px 12px; background:var(--ground); color:var(--ink); outline:none;
  font:14px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize:vertical}
.mdEditor:focus{border-color:var(--accent)}
.mdPreview{flex:1; min-width:0; min-height:260px; border:1px solid var(--line); border-radius:8px;
  padding:10px 12px; background:var(--ground); overflow-y:auto; max-height:60vh}
.mdWrap[data-mode="edit"] .mdEditor{width:100%}
.mdWrap[data-mode="preview"] .mdPreview{width:100%}
.mdBody{line-height:1.7; overflow-wrap:anywhere}
.mdBody h1{font-size:20px; margin:10px 0 6px}
.mdBody h2{font-size:17px; margin:10px 0 6px}
.mdBody h3,.mdBody h4{font-size:15px; margin:8px 0 4px}
.mdBody p{margin:6px 0}
.mdBody blockquote{border-left:3px solid var(--accent); margin:8px 0; padding:2px 10px; color:var(--muted)}
.mdBody pre{background:var(--soft); border-radius:6px; padding:8px 10px; overflow-x:auto; margin:8px 0}
.mdBody code{background:var(--soft); border-radius:4px; padding:0 4px}
.mdBody pre code{background:none; padding:0}
.mdBody mark{background:#fff3a3; color:inherit; border-radius:2px; padding:0 2px}
.mdBody table.mdTable{border-collapse:collapse; margin:8px 0; width:100%}
.mdBody table.mdTable th,.mdBody table.mdTable td{border:1px solid var(--line); padding:4px 8px; text-align:left}
.mdBody img.mdImg{max-width:100%; height:auto; border-radius:6px}
.mdBody .mdVideo{display:block; margin:8px 0}
.mdBody .mdVideo video{max-width:100%; border-radius:6px; display:block}
.mdBody .mdVideo a{font-size:12px; color:var(--accent)}
.mdTodo{display:flex; flex-wrap:wrap; align-items:flex-start; gap:4px 8px; padding:3px 0}
.mdTodo.done .mdTodoTx{text-decoration:line-through; color:var(--muted)}
.mdTodoTx{flex:1 1 140px; min-width:100px}
.mdTodo .due{font-size:12px}
.mdTodo .mdAsg{font-size:12px; color:var(--accent)}
.mdTodoGroup{font-size:15px; margin:12px 0 4px; color:var(--ink)}
.mdNote{margin:2px 0 2px 30px; color:var(--muted); font-size:13px}
.conflictBar{background:#fff4e0; border:1px solid #f0c36d; color:#7a5200; border-radius:8px;
  padding:8px 10px; margin-bottom:8px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:13px}
.legacyHtml{white-space:pre-wrap; word-break:break-word; max-height:50vh; overflow:auto;
  background:var(--soft); border-radius:6px; padding:10px; font-size:12px}
.docTodoSec{margin-top:10px}
.docTodoHost{margin-top:6px}
.nbBoardHost{margin-top:8px}
.inboxBar{display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:8px 0}
.inboxTip{background:var(--accent-soft); border-radius:8px; padding:8px 10px; font-size:13px; margin-bottom:8px}
.inboxCard{display:flex; align-items:flex-start; gap:8px}
.inboxCard .tcard{flex:1; min-width:0}
.triBtn{flex:none; margin-top:8px}
.batchBar{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:6px 0;
  background:var(--soft); border-radius:8px; padding:6px 10px}
@media (max-width:760px){
  .mdWrap[data-mode="split"]{flex-direction:column}
  .mdPreview{max-height:40vh}
}
/* v3.0：sheet 内的通用 input 规则（width:100%）会撑大待办勾选框，这里按 .tick 尺寸覆盖回来 */
.mdPreview .tick, .mdTodo .tick, .docTodoSec .tick{width:17px !important; height:17px; flex:none; padding:0; margin:5px 0 0}

/* v3.0 WYSIWYG 编辑器（2026-11-17）：渲染界面即编辑界面，textarea 已移除 */
.wysEditor{flex:1; min-width:0; min-height:260px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; line-height:1.7; overflow-wrap:anywhere; cursor:text; outline:none}
.wysEditor:focus{border-color:var(--accent)}
.wysEditor:empty::before{content:'写点什么…'; color:var(--muted)}
.wysEditor h1{font-size:20px; margin:10px 0 6px}
.wysEditor h2{font-size:17px; margin:10px 0 6px}
.wysEditor h3,.wysEditor h4{font-size:15px; margin:8px 0 4px}
.wysEditor p{margin:6px 0}
.wysEditor p.wys-blank{margin:0; min-height:1.2em}
.wysEditor blockquote{border-left:3px solid var(--accent); margin:8px 0; padding:2px 10px; color:var(--muted)}
.wysEditor pre{background:var(--soft); border-radius:6px; padding:8px 10px; overflow-x:auto; margin:8px 0}
.wysEditor code{background:var(--soft); border-radius:4px; padding:0 4px}
.wysEditor pre code{background:none; padding:0}
.wysEditor mark{background:#fff3a3; color:inherit; border-radius:2px; padding:0 2px}
.wysEditor table.mdTable{border-collapse:collapse; margin:8px 0; width:100%}
.wysEditor table.mdTable th,.wysEditor table.mdTable td{border:1px solid var(--line); padding:4px 8px; text-align:left}
.wysEditor img.mdImg{max-width:100%; height:auto; border-radius:6px}
.wysEditor .mdVideo{display:block; margin:8px 0}
.wysEditor .mdVideo video{max-width:100%; border-radius:6px; display:block}
.wysEditor .mdVideo a{font-size:12px; color:var(--accent)}
.wysEditor .mdTodoTx{outline:none; min-width:2em}
.wysEditor .mdTodoTx:focus{background:var(--soft); border-radius:4px}
.wysEditor .mdNote{color:var(--muted)}
.structBar{background:#fff4e0; border:1px solid #f0c36d; color:#7a5200; border-radius:8px; padding:8px 10px; margin:6px 0; font-size:13px}
