/* ============================================================================
 *  待办「斜场」· css/app.css
 *
 *  一条 12° 的斜缝（tan12° = 0.21256）把整屏切成左浅右深两块。
 *  所有形状都沿这条缝剪切：任务带、chip、状态签、按钮、柱状条、弹出面板，
 *  以及那条被缝剖开、跨线换色的巨型用户签名（未登录不画字，但位置照旧留着）。
 *
 *  硬规矩：零圆角、零投影、零红色；电青 #00D9C0 只出现在深场里；
 *  任何面板都不许是直角矩形 —— 一律平行四边（斜切）形。
 *
 *  动画：全站同一缓动 --ease，时长 120–220ms，位移 ≤8px、缩放 0.97–1.02，
 *  不回弹；prefers-reduced-motion: reduce 时全部关掉。
 * ==========================================================================*/

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root{
  /* —— 色板 —— */
  --bg:#F2F4F7;          /* 页面底 / 浅侧 */
  --surface:#FFFFFF;     /* 亮面：卡片、chip */
  --mid:#E3E8EF;         /* 中层：已完成行、签底 */
  --t1:#D6FBF6;          /* T1 薄荷 */
  --deep-a:#1A2233;      /* 深场渐变浅端 */
  --deep-b:#111633;      /* 深场渐变深端 / 主文字 */
  --accent:#00D9C0;      /* 电青：只许出现在深场 */
  --amber:#FF9A3D;       /* 琥珀：逾期，全屏 ≤1% 面积 */
  --ink:#111633;
  --ink2:#5B6478;
  --ink3:#8A93A6;
  --line:#D3DAE4;
  --line-soft:#E9EDF3;

  /* —— 动效 —— */
  --ease:cubic-bezier(.2,.8,.2,1);
  --d1:140ms;            /* chip / 勾选 / 删除 */
  --d2:180ms;            /* 行 / 面板 / 搜索条 */
  --d3:200ms;            /* 柱状图 / 巨号 */

  /* —— 斜缝几何：由 js/app.js 按视口算好写进来（单位 px） —— */
  --tan:0.21256;         /* tan 12°：全站唯一倾角 */
  --seam-top:66%;
  --seam-bot:52%;
  --content-right:760px; /* 亮面内容右边界：永远落在缝的最左极值以内 */
  --num-x:56%;           /* 巨型签名的水平中心：正好压在缝上 */
  --sig-top:7px;         /* 窄屏签名行盒顶（由 js/app.js 算：让 ink 中线落在斜角带上） */

  /* —— 签名（深场出血巨号）的字体栈：全部本地字体，零网络字体 ——
     高对比度展示衬线优先（Didot / Bodoni / Playfair 这类「艺术字体」），
     再退到 Windows / Linux 一定有的衬线；末尾几档是中文回落，
     用户名含汉字时落到宋体系统（宋体-简 / 思源宋体 / 新宋体），不出方块。 */
  --sig-face:"Didot", "Bodoni MT", "Bodoni 72", "Playfair Display", "Big Caslon",
             "Baskerville", "Palatino Linotype", Palatino, "Book Antiqua",
             Garamond, "EB Garamond", Georgia, "Times New Roman",
             "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", SimSun,
             "Liberation Serif", "DejaVu Serif", serif;

  --deep-top:#1A2233;
  --deep-mid:#161D38;
  --deep-bot:#111633;
}

html{ -webkit-text-size-adjust:100%; }
html, body{ margin:0; padding:0; height:100%; }
body{
  background:var(--bg);
  color:var(--ink);
  font:400 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
       "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}
button{ font-family:inherit; }
input{ font-family:inherit; }
::selection{ background:var(--mid); color:var(--ink); }

/* ===================================================== 斜切：唯一定义 ===
   斜缝是 12°，所以全站每一个平行四边形按钮 / 面板 / 卡片的斜边也必须是 12°：
   切量 = 元素自己的高 × tan12°（--tan）。

   反面教材是「随手写一个固定 px 切量」：14px 的切量放在 260px 高的视图弹出
   面板上只有 3°，看上去就是直角矩形，跟斜缝、跟旁边那些按钮都不平行。
   所以下面这张表里的元素一律只声明 --h（自己多高），切量由 --h × --tan 算；
   定高元素写成 height:var(--h)，两者永远对得上；
   高度由内容决定的（.row / .bcard / .pop / .leditor）由 js/app.js 实测写 --h。

   注意：伪元素不继承「已经解析好的」--c（自定义属性在声明它的元素上就解析完了），
   所以描边内层这类伪元素自己要出现在下面的表里，并声明自己的 --h。 */
.chip, .lsearch, .row, .cb, .tag, .tag::before, .bch, .bcard, .bcard .bt::before,
.calnav, .cell, .ifield, .leditor input, .ebtn, .newbtn, .fchip, .leditor,
.mitem, .pop, #toast span, .mrow input, .mrow .ifield, .mbtn, .mbtn::before,
.mteam, .rolechip, .mini, .mini::before, .codebox, .mbox,
.rday, .rday::before, .soonchip{
  --c:calc(var(--h, 0px) * var(--tan));
  clip-path:polygon(var(--c) 0, 100% 0, calc(100% - var(--c)) 100%, 0 100%);
}

/* ============================================================== 亮面 === */

#light{
  position:fixed; inset:0; z-index:1;
  background:var(--bg);
  clip-path:polygon(0 0, var(--seam-top) 0, var(--seam-bot) 100%, 0 100%);
}

.lwrap{
  width:var(--content-right);
  height:100%;
  padding:clamp(20px, 3.5vh, 34px) 0 var(--pad-b, 200px) 72px;
  display:flex; flex-direction:column; min-width:0;
}

/* ------------------------------------------------------------- 页头 --- */

/* 页头：第一行 = 巨号标题「今天」+ 右侧三个斜切 chip（搜索 · 同步 · 视图），
   三个 chip 共用 .chip 一条规则 -> 高度 / 间距 / 斜切参数严格一致；
   「10月7日 · 周三」独占标题正下方那一行。 */
.lhead{ min-width:0; }
.lhead-row{ display:flex; align-items:center; gap:24px; min-width:0; }
#tTitle{
  margin:0; flex:0 1 auto; min-width:0;
  font:700 60px/1 "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC",
        "SimSun", Georgia, serif;
  letter-spacing:.02em; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%;
}
.lh-sub{
  margin-top:10px; min-width:0; font-size:19px; color:var(--ink2); letter-spacing:.04em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lnk{ border:0; background:none; padding:0; font:inherit; color:var(--ink); cursor:pointer; letter-spacing:.04em; }
.lnk:hover{ text-decoration:underline; }
.dot{ margin:0 8px; color:var(--ink3); }
.hchips{ display:flex; gap:14px; flex:0 0 auto; margin-left:auto; }

.chip{
  --h:46px;
  height:var(--h); padding:0 clamp(16px, 2.6vw, 40px); border:0; cursor:pointer;
  background:linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  color:var(--ink); font-size:19px; letter-spacing:.06em;
  transition:background var(--d1) var(--ease), color var(--d1) var(--ease),
             transform var(--d1) var(--ease);
}
.chip:hover{ background:linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%); }
.chip:active{ transform:scale(.98); }
.chip.on{ background:linear-gradient(180deg, #1A2233 0%, #111633 100%); color:#fff; }
.chip.on:active{ transform:scale(.98); }

/* 「账号」chip 的极轻状态。不引新配色：
   同步中 -> 文字压灰；失败 -> 琥珀底的浅色版（禁红，失败也只用琥珀）。
   文案永远是「账号」两字，同步状态写进 title 与菜单里那一行。 */
#hchips [data-menu="acct"].sy-busy{ color:var(--ink3); }
#hchips [data-menu="acct"].sy-err{ background:linear-gradient(180deg, #FFE7CF 0%, #FFDCB8 100%); }
#hchips [data-menu="acct"].sy-err:hover{ background:linear-gradient(180deg, #FFE0C0 0%, #FFD3A8 100%); }

/* --------------------------------------------------------- 搜索条 --- */

.lsearch{
  --h:46px;
  margin:20px 0 0 -9px; height:var(--h); display:flex; align-items:center;
  background:var(--surface); padding:0 16px; overflow:hidden;
  max-height:var(--h); opacity:1;
  transition:max-height var(--d2) var(--ease), opacity var(--d2) var(--ease),
             margin-top var(--d2) var(--ease);
}
.lsearch.pre{ max-height:0; opacity:0; margin-top:0; }
.sic{ width:15px; height:15px; flex:0 0 15px; fill:none; stroke:var(--ink3); stroke-width:1.6; }
.lsearch input{
  flex:1 1 auto; min-width:0; height:100%; border:0; outline:0; background:none;
  font-size:16px; color:var(--ink); padding:0 10px;
}
.lsearch input::placeholder{ color:var(--ink3); }
.sx{ border:0; background:none; color:var(--ink2); font-size:23px; line-height:1; cursor:pointer; padding:0 2px; }

/* --------------------------------------------------------- 任务带 --- */

.llist{
  flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden;
  margin:clamp(16px, 4vh, 38px) 0 0 -9px; padding-bottom:6px;
  scrollbar-width:thin; scrollbar-color:var(--line) transparent;
}
.llist::-webkit-scrollbar{ width:8px; }
.llist::-webkit-scrollbar-thumb{ background:var(--line); }

.row{
  position:relative; display:flex; align-items:center;
  /* 行高由视口决定，切量因此不能在 css 里写死：--h 交给 js/app.js 实测
     （内联写进来），--c = 实测高 × tan12°，斜边永远是精确 12°。 */
  --h:clamp(48px, 5.95vh, 57px);
  height:var(--h); padding:0 18px 0 16px; margin-bottom:11px;
  background:linear-gradient(180deg, #FFFFFF 0%, #FCFDFE 100%);
  color:var(--ink);
  transition:background var(--d2) var(--ease), color var(--d2) var(--ease);
}
.row.s-overdue{ background:linear-gradient(180deg, #131936 0%, #111633 100%); color:#fff; }
.row.s-done   { background:linear-gradient(180deg, #E6EAF1 0%, #E3E8EF 100%); color:var(--ink3); }

.cb{
  --h:22px;
  width:22px; height:var(--h); flex:0 0 22px; border:0; padding:0; cursor:pointer;
  background:var(--mid);
  position:relative;
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.cb:active{ transform:scale(.94); }
.row.s-overdue .cb{ background:#3A4570; }
.row.s-done .cb{ background:var(--ink); }
.cb svg{ position:absolute; inset:0; width:100%; height:100%; display:none; }
.cb svg polyline{ fill:none; stroke:#fff; stroke-width:2.8; stroke-linecap:butt; stroke-linejoin:miter; }
.row.s-done .cb svg{ display:block; }

.row .title{
  flex:1 1 auto; min-width:0; margin-left:16px;
  font-size:19px; line-height:1.25; letter-spacing:.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.row.s-done .title{ text-decoration:line-through; text-decoration-thickness:2px; text-underline-offset:0; }

/* 子事项计数：行右侧、截止签左边，不加底色不加边框 */
.subcnt{
  flex:0 0 auto; margin-left:14px; font-size:13px; letter-spacing:.04em;
  color:var(--ink3); font-variant-numeric:tabular-nums;
}
.row.s-overdue .subcnt{ color:#8592B0; }

/* 团队事项：是谁确认完成的（服务端记的 doneBy），标在事项右侧。
   个人空间不渲染这个节点，所以两种空间不互相影响。 */
.bydone{
  flex:0 0 auto; margin-left:14px; font-size:13px; letter-spacing:.04em;
  color:var(--ink3); white-space:nowrap;
}
.row.s-overdue .bydone{ color:#8592B0; }
.row.s-done .bydone{ color:#A9B3C2; }
/* 状态签：高 36 / 字号 19 / 左右内边距 18（旧版尺寸）。
    宽度由内容决定；切量 = 高 36 × tan12° = 7.65，形心仍在 box 中心。 */
.tag{
  --h:36px;
  flex:0 0 auto; height:var(--h); padding:0 18px; margin-left:14px;
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:0;      /* 建层叠上下文，下面那层 1px 描边才画得出来 */
  font-size:19px; font-weight:700; letter-spacing:.05em;
  font-variant-numeric:tabular-nums;
  background:var(--mid); color:var(--ink2); overflow:hidden; white-space:nowrap;
  transition:background var(--d2) var(--ease), color var(--d2) var(--ease);
}
.tag > span{ position:relative; z-index:1; }
/* 描边内层：跟外壳同一个倾角，所以切量要按它自己的高算（36 − 1.5×2 = 33） */
.tag::before{ content:""; position:absolute; inset:0; --h:36px; }
.row.s-overdue .tag{ background:var(--amber); color:var(--ink); }
/* 有截止时间：描边签，签里就是那个时间 */
.row.s-due .tag{ background:var(--line); color:var(--ink2); }
.row.s-due .tag::before{ inset:1.5px; --h:33px; background:#fff; }
.row.s-done .tag{ background:#EDF1F6; color:var(--ink3); }

/* 倒计时三天内的截止时间：**电青底 + 深墨字**。
   这是浅侧唯一允许出现电青的地方（用户指定的例外，其余场景电青仍只属于深场）。
   放在 .row.s-due 规则之后，同权重靠后覆盖。 */
.row.s-soon .tag{ background:var(--accent); color:var(--ink); }
.row.s-soon .tag::before{ background:var(--accent); }
/* 看板卡上的那行截止时间同样处理，用一个小斜切块 */
.soonchip{
  display:inline-block; height:20px; line-height:20px; padding:0 8px;
  background:var(--accent); color:var(--ink); --h:20px;
}

.del{
  flex:0 0 26px; width:26px; height:26px; margin-left:12px; padding:0;
  border:0; background:none; cursor:pointer; color:var(--ink); opacity:.62;
  transition:opacity var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.del svg{ width:100%; height:100%; }
.del svg line{ stroke:currentColor; stroke-width:1.9; stroke-linecap:butt; }
.del:hover{ opacity:1; }
.del:active{ transform:scale(.9); }
.row.s-overdue .del{ color:var(--amber); opacity:.92; }
.row.s-done .del{ color:#B4BDCC; }

.empty{
  margin:16px 0 0 0; padding:40px 8px 0 12px; color:var(--ink2);
}
.empty .e1{ font-size:21px; color:var(--ink); }
.empty .e2{ font-size:15px; margin-top:10px; color:var(--ink3); }

/* ------------------------------------------------------- 看板 / 日历 --- */

.lstage{ flex:1 1 auto; min-height:0; overflow:auto; margin:34px 0 0 -9px; }

.board{ display:flex; gap:12px; align-items:flex-start; padding-bottom:8px; }
.bcol{ flex:1 1 0; min-width:0; }
.bch{
  --h:34px;
  height:var(--h); display:flex; align-items:center; justify-content:space-between;
  padding:0 14px; font-size:14px; letter-spacing:.08em; color:var(--ink2);
  background:var(--mid);
}
.bch b{ font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
/* 看板卡：高矮由标题行数决定 -> --h 由 js/app.js 实测，切量 = 实测高 × tan12°。
   内边距：左上角那道斜边会切掉 tan12° × 该处 y，所以勾选块与正文要往里让。 */
.bcard{
  position:relative; margin-top:10px; padding:12px 20px 11px 14px; cursor:pointer;
  background:linear-gradient(180deg, #FFFFFF 0%, #FCFDFE 100%); color:var(--ink);
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.bcard:hover{ background:linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%); }
.bcard.s-overdue{ background:linear-gradient(180deg,#131936 0%,#111633 100%); color:#fff; }
.bcard.s-done   { background:linear-gradient(180deg,#E6EAF1 0%,#E3E8EF 100%); color:var(--ink3); }
.bcard .bt{
  font-size:15px; line-height:1.35; word-break:break-word; padding-left:36px; position:relative;
}
.bcard .bt::before{
  content:""; position:absolute; left:8px; top:3px; width:14px; height:14px; background:var(--mid);
  --h:14px;
}
.bcard.s-overdue .bt::before{ background:#3A4570; }
.bcard.s-done .bt::before{ background:var(--ink); }
.bcard.s-done .bt{ text-decoration:line-through; }
.bcard .bd{ margin-top:8px; font-size:12.5px; letter-spacing:.08em; color:var(--ink2); }
.bcard.s-overdue .bd{ color:#9AA6C0; }
.bcard .subcnt{ margin-left:6px; font-size:12px; }

.calhead{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.calhead .cn{ font-size:22px; font-weight:700; }
.calnav{
  --h:34px;
  border:0; cursor:pointer; background:var(--surface); color:var(--ink);
  width:44px; height:var(--h); font-size:16px;
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.calnav:active{ transform:scale(.97); }
.cal{ display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; }
.calw{ font-size:13px; color:var(--ink3); text-align:center; letter-spacing:.1em; }
/* 日历格：切量 = 高 64 × tan12° = 13.6，所以左上角的日期数字要往右下让出斜边 */
.cell{
  --h:64px;
  height:var(--h); padding:9px calc(var(--c) + 1px) 8px calc(var(--c) + 1px);
  cursor:pointer; border:0; text-align:left;
  background:var(--surface); color:var(--ink); font-size:14px;
  position:relative;
  transition:background var(--d1) var(--ease), color var(--d1) var(--ease),
             transform var(--d1) var(--ease);
}
.cell:active{ transform:scale(.98); }
.cell.out{ background:#EAEEF3; color:#B7BFCC; cursor:default; }
.cell.today{ background:linear-gradient(180deg,#1C2440 0%,#111633 100%); color:#fff; }
.cell.sel{ outline:0; background:var(--mid); }
.cell .dn{ font-variant-numeric:tabular-nums; }
.cell .bars{ position:absolute; left:9px; bottom:9px; display:flex; gap:4px; }
.cell .bars i{ display:block; width:4px; height:13px; background:var(--ink2); transform:skewX(-12deg); }
/* 日历在亮面，不许用青：完成用深墨，未完成用中灰 */
.cell .bars i.cy{ background:var(--ink); }
.cell.today .bars i{ background:#7E8BB0; }
.cell.today .bars i.cy{ background:#fff; }

/* --------------------------------------------------------- 编辑器 --- */

.leditor{
  /* 高矮 = 两行输入 ＋ 上下内边距，不写死 -> --h 由 js/app.js 实测。
     左右内边距直接吃掉切量（--c = 实测高 × tan12°），里面的输入框 / 按钮
     一个都不会被斜边切到，面板自己仍是严格 12° 的平行四边形。 */
  margin:0 0 12px -9px; background:var(--surface);
  padding:14px calc(var(--c, 0px) + 12px) 15px calc(var(--c, 0px) + 10px);
}
.erow{ display:flex; gap:10px; align-items:center; }
.erow + .erow{ margin-top:10px; }
/* 输入框：外壳 = 1px 描边色 + 同一套 12° 斜切；内层 input 是 1px 内缩的实心平行四边形。
   <input> 上挂不了伪元素，所以描边交给外壳 —— 描边因此也沿斜缝走，
   1px 也不再是"直角矩形边框"。焦点 / 出错只换外壳底色，宽度不变。
   切量各自按自己的高算：外壳 36px -> 7.65px，内层 input 34px -> 7.23px。 */
.ifield{
  display:block; min-width:0; --h:36px; height:var(--h); padding:1px;
  background:var(--line);
  transition:background var(--d1) var(--ease);
}
.ifield:focus-within{ background:var(--ink); }
.ifield.bad{ background:var(--amber); }
/* 周期开着时日期由规则决定，那个输入框置灰 */
.ifield.off{ opacity:.4; }
.leditor input{
  display:block; width:100%; --h:34px; height:var(--h); border:0; background:#F7F9FC; color:var(--ink);
  padding:0 12px 0 14px; font-size:15px; outline:0; min-width:0;
}
.leditor input:focus{ background:#fff; }
.ifield.w1{ flex:1 1 auto; }
.ifield.w2{ flex:0 0 190px; }
.ifield.w3{ flex:0 0 96px; }
.ebtn{
  --h:36px;
  flex:0 0 auto; height:var(--h); padding:0 20px; border:0; cursor:pointer; font-size:15px;
  background:var(--mid); color:var(--ink);
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.ebtn:active{ transform:scale(.98); }
.ebtn.ok{ background:linear-gradient(180deg,#1A2233 0%,#111633 100%); color:#fff; font-weight:600; }
/* 「周期」按钮：开着的时候实心深墨，一眼能看出这条是重复的 */
.ebtn.on{ background:linear-gradient(180deg,#1A2233 0%,#111633 100%); color:#fff; font-weight:600; }

/* 周期 / 时间段：展开的那一行（周期是像闹钟的星期块，时间段是两个截止输入框） */
.erow.rep, .erow.span{ gap:8px; margin-top:10px; }
.rday{
  --h:32px;
  position:relative; z-index:0;
  width:40px; height:var(--h); flex:0 0 auto; padding:0; border:0; cursor:pointer;
  background:var(--line); color:var(--ink); font-size:15px; font-weight:700;
  transition:background var(--d1) var(--ease), color var(--d1) var(--ease),
             transform var(--d1) var(--ease);
}
.rday::before{
  content:""; position:absolute; inset:1px; z-index:-1; background:#fff; --h:30px;
  transition:background var(--d1) var(--ease);
}
.rday:hover::before{ background:var(--bg); }
.rday:active{ transform:scale(.96); }
.rday.on{ background:var(--ink); color:#fff; }
.rday.on::before{ background:var(--ink); }
.etail{ font-size:13px; color:var(--ink3); letter-spacing:.04em; flex:1 1 auto; text-align:right; }

/* ----------------------------------------------------------- 页脚 --- */

.lfoot{
  flex:0 0 auto; display:flex; align-items:center; gap:18px;
  margin:14px 0 0 -9px; padding-bottom:0;
}
.newbtn{
  --h:56px;
  flex:1 1 auto; height:var(--h); border:0; cursor:pointer;
  background:linear-gradient(180deg, #1A2233 0%, #111633 100%);
  color:#fff; font-size:19px; font-weight:600; letter-spacing:.06em;
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.newbtn:hover{ background:linear-gradient(180deg, #232C47 0%, #161D38 100%); }
.newbtn:active{ transform:scale(.99); }
.fnote{
  flex:0 0 196px; text-align:right; font-size:13px; line-height:1.5;
  color:var(--ink3); letter-spacing:.03em; font-variant-numeric:tabular-nums;
}

/* ============================================================== 深场 === */

#field{ position:fixed; inset:0; z-index:3; pointer-events:none; }

.fbg{
  position:absolute; inset:0;
  background:linear-gradient(168deg, var(--deep-top) 0%, var(--deep-mid) 46%, var(--deep-bot) 100%);
  clip-path:polygon(var(--seam-top) 0, 100% 0, 100% 100%, var(--seam-bot) 100%);
}

.fin{
  position:absolute; top:0; right:4.6%; bottom:0; width:23%; z-index:3;
  display:flex; flex-direction:column; padding-top:clamp(40px, 6.5vh, 62px);
  pointer-events:auto;
}
.fmodes{ display:flex; gap:12px; }
.fchip{
  --h:30px;
  height:var(--h); padding:0 20px; border:0; cursor:pointer;
  background:#2A3560; color:#C9D2E6; font-size:14px; letter-spacing:.08em;
  transition:background var(--d1) var(--ease), color var(--d1) var(--ease),
             transform var(--d1) var(--ease);
}
.fchip:active{ transform:scale(.97); }
.fchip.on{ background:var(--accent); color:var(--ink); font-weight:700; }
/* 深场分隔线：2px 高的细线。这里是个物理下限 —— 12° 的斜边在 2px 高的条上
   只能推出 2 × tan12° = 0.43px，端头看上去就是直角方头（违反「不许直角」）。
   所以细线不走 12° 切角，而是沿斜缝方向削尖（切量 12px，端头是斜的，
   与斜缝同向），代价是端头倾角 9.5° 而非 12°：2px 的线上这一点点差别
   肉眼不可见，但"方头 / 斜头"一眼就能看出来。 */
.frule{
  margin-top:clamp(18px, 4.4vh, 43px); height:2px; flex:0 0 auto;
  background:rgba(255,255,255,.13);
  clip-path:polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.flabel{ margin-top:clamp(18px, 4.4vh, 42px); font-size:13px; letter-spacing:.08em; color:#8FA0BF; flex:0 0 auto; }
.fcap{ margin-top:clamp(16px, 4vh, 38px); font-size:13px; letter-spacing:.08em; color:#8FA0BF; flex:0 0 auto; }
/* 完成率搬进这条口径行：数字用电青咬住，才不会被小字吞掉（电青只许在深场，这里正是深场） */
.fcap .fnum{ color:var(--accent); font-weight:700; font-variant-numeric:tabular-nums; }

.fchart{ margin-top:clamp(16px, 4.6vh, 44px); height:min(264px, 30vh); max-height:min(264px, 30vh); min-height:90px; flex:0 1 auto; display:flex; align-items:flex-end; }
.fslot{ flex:1 1 0; position:relative; height:100%; min-width:0; }
.fslot.in{ animation:fBarIn var(--d3) var(--ease) both; }
.fbar{
  position:absolute; bottom:0;
  background:#2E3A63;
  transition:height var(--d3) var(--ease), width var(--d3) var(--ease),
             clip-path var(--d3) var(--ease), background var(--d2) var(--ease);
}
.fbar.cy{ background:var(--accent); }
.flbl{
  position:absolute; bottom:-24px; left:50%; transform:translateX(-50%);
  font-size:13px; color:#7E8BB0; letter-spacing:.1em;
}
/* -------------------------------------------------- 巨号用户签名跨缝 ---
   深场底部那个出血巨号 = 用户签名（登录后显示账号名，未登录一个字都不画），
   不再是完成率。
   .sig-a 是浅侧那半边（深靛，压在 .fbg 之下），.sig-b 是深侧那半边（电青，浮在
   .fbg 之上）—— 两份同样的文字，各自按 12° 斜缝裁一半，跨线换色。
   字号 --sig-size 由 js/app.js 按名字实测宽度算好写进来（不出画布、不压可点元素）。
   字体 = 高对比度展示衬线 × 斜体（本地字体栈，见 :root 的 --sig-face）；
   400 字重，笔画细、分量轻，主次让回给标题「今天」。 */

.sig{ position:absolute; inset:0; pointer-events:none; }
.sig span{
  position:absolute; bottom:0; left:var(--num-x); transform:translateX(-50%);
  font-family:var(--sig-face, Georgia, serif);
  font-style:italic; font-weight:400;
  line-height:1; white-space:nowrap;
  font-size:var(--sig-size, 10vw);
}
.sig span.bump{ animation:sigIn var(--d3) var(--ease) both; }
.sig-a{
  z-index:-1; color:var(--ink);
  clip-path:polygon(0 0, var(--seam-top) 0, var(--seam-bot) 100%, 0 100%);
}
.sig-b{
  z-index:2; color:var(--accent);
  clip-path:polygon(var(--seam-top) 0, 100% 0, 100% 100%, var(--seam-bot) 100%);
}
/* 量尺：只参与度量，永远看不见、点不到、不参与布局。
   必须 inline-block + max-content，否则 block 盒的 rect 宽 = 父宽，量不到字宽。
   字体 / 字重 / 斜体必须与 .sig span 逐字一致，否则量出来的宽度不算数。 */
.sigprobe{
  position:absolute; left:-99999px; top:0; visibility:hidden; pointer-events:none;
  display:inline-block; width:max-content;
  white-space:nowrap; line-height:1; font-size:100px;
  font-family:var(--sig-face, Georgia, serif);
  font-style:italic; font-weight:400;
}

/* ========================================================== 弹出菜单 ===
   所有弹出面板的外壳一律平行四边（12° 斜切）形，绝不允许直角矩形。 */

.pop{
  /* 高矮由菜单项数量决定（2–6 项），所以 --h 由 js/app.js 实测写进来，
     切量 = 实测高 × tan12°。以前这里写死 14px —— 在 260px 高的「视图」面板上
     只有 3°，看上去就是个直角矩形，跟斜缝、跟页头那三个 chip 都不平行。
     左右内边距交给 js/app.js 的 popInset() 逐行算：每行的文字起点跟着斜边
     走，整列文字的左边缘就是一条 12° 斜线（字本身保持正立）。 */
  position:fixed; z-index:60; min-width:228px;
  padding:9px 0;
  background:var(--line);
  animation:popIn var(--d1) var(--ease) both;
}
/* 1px 描边 = 外壳底色露出的那一圈：内层实心面 1px 内缩，切量也按它自己的高
   重算（高 − 2px -> 切量 − 2 × tan12° = 0.43px），两条斜边才是同一个倾角。 */
.pop::before{
  content:""; position:absolute; inset:1px; z-index:-1; background:var(--surface);
  clip-path:polygon(calc(var(--c, 0px) - 0.43px) 0, 100% 0,
                    calc(100% - var(--c, 0px) + 0.43px) 100%, 0 100%);
}
.pop.closing{ animation:popOut 120ms var(--ease) both; }
.mitem{
  --h:42px;
  display:flex; align-items:center; gap:14px; width:100%; border:0; cursor:pointer;
  background:none; text-align:left; height:var(--h); padding:0 26px;
  font-size:15px; color:var(--ink); white-space:nowrap;
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.mitem:active{ transform:scale(.99); }
.mitem:hover{ background:var(--bg); }
.mitem.on{ font-weight:700; }
/* 面板里的文字**不斜**，正立；跟着斜边走的是每一行的左边缘：
   第 i 行文字的左内边距 = 该行中线处斜边已经回退掉的那一段（js/app.js 的
   popInset() 实测写进来），于是整列文字的左边沿是一条 12° 斜线，
   与面板左右斜边平行、间距恒定 —— 不再出现「面板是斜的、文字却是一根
   竖直柱子」的别扭。只动内边距，字本身一个字都不斜。 */
.mitem .mr{ margin-left:auto; color:var(--ink3); font-size:13px; font-variant-numeric:tabular-nums; }
.mitem .mk{ width:9px; height:9px; flex:0 0 9px; background:var(--ink); transform:skewX(-12deg); visibility:hidden; }
.mitem.on .mk{ visibility:visible; }
/* 面板里的分隔线：2px 高的一条，同样交给 skewX(-12deg) —— 左右两端就是
   12° 的斜边（切量 = 2px × tan12° = 0.43px），与弹窗里的按钮 / 输入框同倾角，
   不再出现"这里切 8px 那里切 22px"的各说各话。 */
.msep{
  height:2px; background:var(--line-soft); margin:6px 14px;
  transform:skewX(-12deg);
}
.mhead{ padding:8px 26px 4px; font-size:12px; letter-spacing:.12em; color:var(--ink3); }
/* 同步 / 上传这类会等待的操作：按钮自己呼吸，幅度只有透明度 */
.busy{ animation:busy var(--d3) var(--ease) infinite; }

/* ============================================================== 弹窗 ===
   弹窗里**所有带底色 / 边框的元素同一个倾角：12°**（tan12° = 0.21256），
   与那条斜缝、任务带、状态签同源。手法统一成一种：

     · 定高控件（.mbtn 按钮 / .mrow input 输入框 / .ifield 描边外壳）
       用 clip-path 平行四边形，切量 = 高 × tan12°：
         按钮 40px → 8.5px   按钮内层 38px → 8.08px
         输入框 36px → 7.65px 输入框外壳 38px → 8.08px
       切量随各自的高度走，所以斜边是**精确 12°**，形状不出盒，
       相邻按钮也不会被斜切撑得叠在一起（斜切只切盒内四角）。
     · 壳体 .mbox 也走同一套：clip-path 平行四边形，切量由 js 按实测高写进
       --h（高度由内容决定，css 算不出来）。以前这里用两片 skewX 的伪元素
       画壳、壳体左右各外扩 --mcut —— 那套没法跟"正文贴斜边"和自绘滚动条
       共存（正文要往外扩区里长，跟 overflow 容器打架）。改成 clip-path 后，
       正文与滚动条都待在盒内：正文逐行内缩（前后留白跟着斜边走），
       滚动条贴着右斜边往下漂。
     · 正文一个字都不斜，正立；跟着斜边走的是每一行的左/右留白。 */

#modal{
  position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center;
  background:rgba(17,22,51,.55);
  animation:fadeIn var(--d2) var(--ease) both;
}
#modal.closing{ animation:fadeOut 120ms var(--ease) both; }
/* 直版弹窗（说明书这条长文本用）：不斜切的正长方形 + 背景虚化，
   颜色只用主题白（面板）和主题黑（文字 / 描边），没有别的色。 */
#modal.plain{
  background:rgba(17,22,51,.30);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
}
#modal.plain .mbox{
  width:min(560px, 100vw - 32px);
  max-height:min(84vh, 620px);
  clip-path:none;
  background:var(--ink);
}
#modal.plain .mbox::before{
  inset:1px; clip-path:none; background:#fff;
}
#modal.plain #modalBody{
  padding:24px 26px 22px; max-height:min(84vh, 620px);
  scrollbar-width:thin; scrollbar-color:var(--ink3) transparent;
}
#modal.plain #modalBody::-webkit-scrollbar{ display:block; width:8px; }
#modal.plain #modalBody::-webkit-scrollbar-track{ background:transparent; }
#modal.plain #modalBody::-webkit-scrollbar-thumb{ background:var(--ink3); }
#modal.plain #mboxInner{ animation:none; translate:none; }
.mbox{
  position:relative; z-index:0;     /* 建层叠上下文，下面那层白面才画得出来 */
  background:var(--line);
  width:min(520px, 100vw - 24px);
  max-height:min(86vh, 520px);
  animation:boxIn var(--d2) var(--ease) both;
}
/* 1px 描边 = 外壳底色露出的那一圈：内层实心面 1px 内缩，切量也按它自己的高
   重算（高 − 2px -> 切量 − 2 × tan12° = 0.43px），两条斜边才是同一个倾角。 */
.mbox::before{
  content:""; position:absolute; inset:1px; z-index:-1; background:var(--surface);
  clip-path:polygon(calc(var(--c, 0px) - 0.43px) 0, 100% 0,
                    calc(100% - var(--c, 0px) + 0.43px) 100%, 0 100%);
}
#modal.closing .mbox{ animation:boxOut 120ms var(--ease) both; }
/* 正文：左右内边距交给 js 的 mboxInset() 逐行算（跟着壳体斜边走），
   这里只管上下留白 + 纵向滚动。原生滚动条藏掉，换成下面那条自绘的。 */
#modalBody{
  padding:26px 0 24px; max-height:min(86vh, 520px);
  overflow-y:auto; overflow-x:hidden;
  scrollbar-width:none;
}
#modalBody::-webkit-scrollbar{ display:none; }
/* 正文 / 滚动条沿 12° 斜线一起滑 —— 关键在"锁死"：
   横向位移不能等 scroll 事件回来再补（合成器滚动的设备上会晚一帧，
   看上去就是先竖再横）。所以用滚动时间线驱动动画：进度直接绑在滚动位置上，
   竖直（原生滚动）与横向（translate）在合成器上同一帧生效。
   js 只把"总位移"算一次写进 --msc-dx / --msc-tdx / --msc-tdy。
   浏览器不支持滚动时间线时，退回 js 逐帧重算（见 mboxPaint）。 */
@keyframes mboxSlide { from { translate:0 0; } to { translate:var(--msc-dx, 0px) 0; } }
@keyframes mscThumb { from { translate:0 0; } to { translate:var(--msc-tdx, 0px) var(--msc-tdy, 0px); } }
@supports (animation-timeline: scroll()) and (timeline-scope: --x) {
  #modalBody{ scroll-timeline: --mbox block; }
  .mbox{ timeline-scope: --mbox; }        /* 让兄弟节点 .mscroll 也能用这条时间线 */
  #mboxInner{ animation:mboxSlide linear both; animation-timeline:scroll(nearest block); }
  .mscroll{ animation:mscThumb linear both; animation-timeline:--mbox; }
}
/* 自绘滚动条：一条 7px 厚的滑块，位置贴着壳体右斜边（越高越靠右）。
   注意这里必须用 skewX 而不是 clip-path —— 细长条做不了平行四边形：
   7px 宽的条要切出 12°，切量 = 高度 × tan12°，几百 px 高就切没了。
   skewX 让整条随斜边倒过去，厚度不变，左右两条边正好是离竖直 12°，
   与壳体右斜边严格平行（跟 .msep / .mk 是同一手法）。 */
.mscroll{
  position:absolute; z-index:2; width:7px;
  background:var(--ink3); opacity:.8;
  transform:skewX(-12deg);
}
.mtitle{ font-size:24px; font-weight:700; letter-spacing:.02em; }
.mtext{ margin-top:12px; font-size:15px; line-height:1.7; color:var(--ink2); }
.mtext b{ color:var(--ink); }
.mrow{ margin-top:16px; }
.mrow label{ display:block; font-size:13px; color:var(--ink2); letter-spacing:.06em; margin-bottom:7px; }
/* 弹窗里的输入框外壳：38px 高 -> 切量 8.08px = 38 × tan12° */
.mrow .ifield{
  --h:38px; height:var(--h); width:100%;
}
/* 弹窗里的输入框：36px 高 -> 切量 7.65px = 36 × tan12°（与外壳同倾角） */
.mrow input{
  display:block; width:100%; --h:36px; height:var(--h); border:0; background:#F7F9FC;
  padding:0 12px 0 15px; font-size:15px; color:var(--ink); outline:0; min-width:0;
}
.mrow input:focus{ background:#fff; }
.mrow .inline{ display:flex; gap:10px; align-items:center; }
.mrow .inline .ifield{ flex:1 1 auto; width:auto; }
.mnote{ margin-top:16px; font-size:13px; color:var(--ink3); line-height:1.6; }
/* 说明书：一条一件事，左边一句短的粗体标签。只用主题白底 + 主题黑字 */
.mguide{ margin-top:14px; }
.mrow2{ display:flex; gap:14px; margin-top:9px; font-size:15px; line-height:1.6; color:var(--ink); }
.mrow2:first-child{ margin-top:0; }
.mrow2 b{ flex:0 0 92px; color:var(--ink); font-weight:700; }
.mrow2 span{ flex:1 1 auto; min-width:0; }
/* 署名：一行小花体，只有这一句 */
.mcredit{
  margin-top:22px; text-align:right;
  font-family:"Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  font-style:italic; font-size:13px; color:var(--ink); letter-spacing:.14em;
}
/* 表单出错：输入框外壳已经变琥珀（js 里的 markBad），提示行也加重一点。
   不引新配色 —— 这套界面禁红，唯一的「出错色」就是琥珀。 */
.mnote.badnote{ color:var(--ink); font-weight:600; }
.mbtns{ margin-top:18px; display:flex; gap:10px; flex-wrap:wrap; }
.mbtns.minor{ margin-top:10px; }
/* 按钮：40px 高 -> 切量 8.5px = 40 × tan12°；内层 38px -> 8.08px。
   描边仍是"外壳底色 + 内层 1px 内缩实心面"，所以描边也沿 12° 斜边走。 */
.mbtn{
  --h:40px;
  position:relative; z-index:0;      /* 建层叠上下文，内层白面才画得出来 */
  height:var(--h); padding:0 20px; border:0; cursor:pointer;
  background:var(--line); color:var(--ink); font-size:15px;
  transition:background var(--d1) var(--ease), transform var(--d1) var(--ease);
}
.mbtn::before{
  content:""; position:absolute; inset:1px; z-index:-1; background:var(--surface);
  --h:38px;
  transition:background var(--d1) var(--ease);
}
.mbtn.primary{ background:var(--ink); color:#fff; font-weight:600; }
.mbtn.primary::before{ background:linear-gradient(180deg,#1A2233 0%,#111633 100%); }
.mbtn.danger{ background:var(--amber); color:var(--ink); }
.mbtn:hover::before{ background:var(--bg); }
.mbtn.primary:hover::before{ background:linear-gradient(180deg,#232C47 0%,#161D38 100%); }
.mbtn:active{ transform:scale(.98); }

/* ============================================================== Toast === */

#toast{
  position:fixed; left:50%; bottom:34px; transform:translate(-50%, 20px);
  z-index:80; opacity:0; pointer-events:none;
  transition:opacity var(--d2) var(--ease), transform var(--d2) var(--ease);
}
#toast.show{ opacity:1; transform:translate(-50%, 0); }
#toast span{
  --h:42px;
  display:flex; align-items:center; height:var(--h); padding:0 22px;
  font-size:14px; letter-spacing:.04em;
  background:linear-gradient(180deg,#1A2233 0%,#111633 100%); color:#fff;
}
#toast.err span{ background:linear-gradient(180deg,#FF9A3D 0%,#F08A2A 100%); color:#111633; }

/* ========================================================== 团队协同 ===
   团队相关的形状沿用同一套 12° 斜切（见图顶部那张表）：成员行 / 角色签 /
   小按钮 / 邀请码框都只声明 --h，切量由 --h × tan12° 算，跟斜缝平行。 */

/* 成员行：名字 + 角色签 + 队长可见的四个操作 */
.mteam{
  --h:44px;
  display:flex; align-items:center; gap:10px; height:var(--h);
  margin-top:8px; padding:0 12px; font-size:14px;
  background:#F7F9FC; color:var(--ink);
}
.mteam:first-of-type{ margin-top:0; }
.mteam .who{
  min-width:0; font-weight:600; letter-spacing:.02em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.macts{ margin-left:auto; display:flex; gap:8px; flex:0 0 auto; }

/* 角色签：队长 = 深靛，管理员 = 中灰，成员 = 浅灰。零圆角、零投影。 */
.rolechip{
  --h:22px;
  flex:0 0 auto; display:flex; align-items:center; height:var(--h);
  padding:0 10px; font-size:12px; letter-spacing:.06em; white-space:nowrap;
  background:var(--line-soft); color:var(--ink2);
}
.rolechip.r-owner{ background:linear-gradient(180deg,#1A2233 0%,#111633 100%); color:#fff; }
.rolechip.r-admin{ background:var(--mid); color:var(--ink); }

/* 小按钮：描边仍是「外壳底色 + 内层 1px 内缩实心面」，跟 .mbtn 同一套 */
.mini{
  --h:26px;
  position:relative; z-index:0;
  height:var(--h); padding:0 12px; border:0; cursor:pointer;
  background:var(--line); color:var(--ink); font-size:12.5px; letter-spacing:.02em;
  transition:background var(--d1) var(--ease);
}
.mini::before{
  content:""; position:absolute; inset:1px; z-index:-1; background:#fff; --h:24px;
  transition:background var(--d1) var(--ease);
}
.mini:hover::before{ background:var(--bg); }
.mini.danger{ background:var(--amber); }
.mini.danger::before{ background:#FFF4E8; }

/* 邀请码：大号、宽字距，一眼能念给同事听 */
.codebox{
  --h:54px;
  display:flex; align-items:center; justify-content:center;
  height:var(--h);
  background:linear-gradient(180deg,#1A2233 0%,#111633 100%);
}
.codebox b{
  color:#fff; font-size:22px; font-weight:700;
  letter-spacing:.34em; text-indent:.34em; font-variant-numeric:tabular-nums;
}
.codeexp{ margin-top:10px; font-size:13px; color:var(--ink3); letter-spacing:.03em; }

/* ========================================================== 小动画 ====
   全站同一套：短（120–220ms）、同一缓动、位移 ≤8px、缩放 0.97–1.02、
   绝不回弹；斜切元素只做位移/缩放，不改斜切角度。                    */

@keyframes rowIn   { from{ opacity:0; transform:translateX(-8px); } to{ opacity:1; transform:none; } }
@keyframes rowOut  { to{ opacity:0; transform:translateX(8px); } }
@keyframes rowSwap { from{ opacity:.35; transform:translateY(5px); } to{ opacity:1; transform:none; } }
@keyframes numIn   { from{ opacity:.15; transform:translateY(6px); } to{ opacity:1; transform:none; } }
@keyframes drawIn  { from{ stroke-dashoffset:26; } to{ stroke-dashoffset:0; } }
@keyframes viewIn  { from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
@keyframes popIn   { from{ opacity:0; transform:translateY(-6px) scale(.97); } to{ opacity:1; transform:none; } }
@keyframes popOut  { to{ opacity:0; transform:translateY(-4px) scale(.98); } }
@keyframes boxIn   { from{ opacity:0; transform:translateY(6px) scale(.98); } to{ opacity:1; transform:none; } }
@keyframes boxOut  { to{ opacity:0; transform:translateY(4px) scale(.99); } }
@keyframes fadeIn  { from{ opacity:0; } to{ opacity:1; } }
@keyframes fadeOut { to{ opacity:0; } }
@keyframes fBarIn  { from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
@keyframes sigIn   { from{ opacity:.15; transform:translateX(-50%) translateY(8px); } to{ opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes busy    { 50%{ opacity:.55; } }

.row.a-in   { animation:rowIn var(--d2) var(--ease) both; }
.row.a-out  { animation:rowOut var(--d1) var(--ease) both; pointer-events:none; }
.row.a-swap { animation:rowSwap var(--d2) var(--ease) both; }
.row.a-check{ animation:rowSwap var(--d2) var(--ease) both; }
.row.a-check .cb svg polyline{ stroke-dasharray:26; animation:drawIn var(--d2) var(--ease) both; }
.llist.a-view, .lstage.a-view{ animation:viewIn var(--d2) var(--ease) both; }
.bcol.a-in{ animation:viewIn var(--d2) var(--ease) both; }
.bcard.a-in{ animation:rowIn var(--d2) var(--ease) both; }
.subcnt.a-num{ animation:numIn var(--d2) var(--ease) both; display:inline-block; }
#fnote.a-num{ animation:numIn var(--d2) var(--ease) both; }
#tTitle.a-swap{ animation:numIn var(--d2) var(--ease) both; }
.lsearch, .leditor{ transform-origin:top center; }
.leditor{ animation:viewIn var(--d2) var(--ease) both; }
.leditor.closing{ animation:boxOut var(--d1) var(--ease) both; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* =========================================================== 窄屏 ==== */

body.narrow{ overflow:auto; height:auto; }
body.narrow #light{
  position:static; height:auto;
  clip-path:none;
  padding-bottom:0;
}
body.narrow .lwrap{ width:100%; height:auto; padding:26px 22px 0 22px; }
body.narrow #tTitle{ font-size:40px; max-width:100%; }
body.narrow .lhead-row{ display:block; }
body.narrow .lh-sub{ margin-top:12px; font-size:15px; }
body.narrow .hchips{ margin-top:14px; margin-left:0; width:100%; gap:8px; }
body.narrow .chip{ --h:40px; height:var(--h); padding:0 16px; font-size:15px; flex:1 1 auto; }
body.narrow .lsearch{ margin-left:0; }
body.narrow .llist{ margin:22px 0 0 0; overflow:visible; flex:0 0 auto; }
/* 窄屏行：强制单行不换行。勾选框 / 任务名(省略号) / 子事项计数 / 状态签 / 删除
   五段按序排，任务名是唯一可伸缩段，其余四段定宽，所以永远不会互相压。 */
body.narrow .row{
  margin-left:0; height:auto; min-height:48px; padding:9px 12px;
  flex-wrap:nowrap; align-items:center;
}
body.narrow .cb{ --h:20px; width:20px; height:var(--h); flex:0 0 20px; }
body.narrow .row .title{
  flex:1 1 auto; min-width:0; margin-left:10px;
  font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.narrow .subcnt{ flex:0 0 auto; margin-left:8px; font-size:12px; }
body.narrow .tag{ --h:24px; flex:0 0 auto; width:90px; height:var(--h); font-size:12px; margin-left:8px; }
body.narrow .del{ flex:0 0 20px; width:20px; height:20px; margin-left:6px; }
body.narrow .lstage{ margin:22px 0 0 0; overflow:visible; flex:0 0 auto; }
body.narrow .board{ flex-wrap:wrap; }
body.narrow .bcol{ flex:1 1 44%; }
body.narrow .cal{ gap:5px; }
body.narrow .cell{ --h:54px; height:var(--h); padding:7px calc(var(--c) + 1px) 6px calc(var(--c) + 1px); font-size:12.5px; }
body.narrow .lfoot{ margin:12px 0 0 0; padding-bottom:26px; flex-wrap:wrap; gap:10px; }
body.narrow .newbtn{ flex:1 1 100%; height:50px; font-size:16px; }
body.narrow .fnote{ flex:1 1 100%; text-align:left; }
/* 窄屏弹窗：正文的左右留白由 js 按更小的间距算（18px），上下留白收窄一点。 */
body.narrow #modalBody{ padding:22px 0 20px; }
/* 窄屏的成员行：一行放不下「名字 + 角色签 + 三个按钮」，拆成两行；
   高度写死 64px，切量照样是 --h × tan12°，斜边不会因为换行而跑偏。 */
body.narrow .mteam{ --h:64px; height:var(--h); flex-wrap:wrap; align-content:center; gap:6px 8px; }
body.narrow .macts{ width:100%; margin-left:0; }
body.narrow .mini{ --h:24px; padding:0 10px; }
body.narrow .mini::before{ --h:22px; }
body.narrow .rolechip{ --h:20px; padding:0 8px; font-size:11px; }
body.narrow .codebox{ --h:48px; }
body.narrow .codebox b{ font-size:18px; letter-spacing:.22em; text-indent:.22em; }

body.narrow #field{
  position:relative; inset:auto; z-index:auto; display:block;
  margin-top:26px; min-height:380px; pointer-events:auto;
  isolation:isolate;
}
body.narrow .fbg{
  clip-path:polygon(0 78px, 100% 0, 100% 100%, 0 100%);
}
body.narrow .fin{
  position:relative; top:auto; right:auto; bottom:auto; width:auto;
  padding:112px 22px 34px 22px;
}
body.narrow .fchart{ height:190px; max-height:190px; }
body.narrow .sig-a{
  z-index:-1; color:var(--ink);
  clip-path:polygon(0 0, 100% 0, 0 78px);
}
body.narrow .sig-b{
  z-index:2;
  clip-path:polygon(0 78px, 100% 0, 100% 100%, 0 100%);
}
/* 窄屏签名：横排居中，行盒顶由 js 算（--sig-top = 斜角带中线高度 − 0.5×字号），
   这样字号变小以后 ink 中线仍压在斜角带上，跨线换色不会丢。 */
body.narrow .sig span{
  left:50%; bottom:auto; top:var(--sig-top, 7px); transform:translateX(-50%);
  font-size:var(--sig-size, 16.5vw);
}
