/* ============================================================================
   cit-ui.css — the ONE shared copy of CIT's approved look (RR Results, measured 2026-09-30, DECISIONS #72/#73).
   RR and Finance link it before their own styles:  <link rel="stylesheet" href="cit-ui.css?v=NN">   ← 写 NN 是故意的：`tests/vtag.test.js` 会把这一行的字面号码算进分母，写死一个真号码的话，下一次房间升到 27 它会红在一行示例注解上；号码以房间里那个为准；这一行只是示例写法，照房间里现在那个号
   🔴 这一整块是一个块注解（斜线星 … 星斜线），而 CSS 注解不能嵌套：里面再写一对分隔符，注解就在那一点提前结束，
   剩下的文字跟下面的 :root 被当成一条错的 selector 吐掉 —— 整张色票不见，但页面还是画得出来（颜色跳回黑、height 变 auto）。
   Rules: a room never re-styles a cu-* class (layout on phones is the only exception: flex, hide); change a value HERE and
   every room follows. tests/contract.test.js measures these components in every room against the numbers below.
   Dark mode = html.inv (RR sets it while one of its pages is shown; Finance on the root).
   ============================================================================ */
:root{
  --cu-page-top:26px; --cu-page-x:28px; --cu-page-bottom:14px;       /* desktop page padding: title 28 right of the rail, 26 from the top */
  --cu-chip-h:36px; --cu-chip-gap:9px;                               /* header chips */
  --cu-pop:.22s cubic-bezier(.34,1.45,.64,1);                        /* dialog entrance */
  --cu-ink:#0a0a0a; --cu-ink2:#525252; --cu-ink3:#737373; --cu-ink4:#a3a3a3; --cu-hover:#f5f5f5; --cu-div:rgba(0,0,0,.05); --cu-hair:rgba(0,0,0,.07);
  --cu-accent:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.08),transparent 60%),linear-gradient(160deg,#262626 0%,#0a0a0a 55%); --cu-on-accent:#fff;
  --cu-dlg-bd:rgba(0,0,0,.07); --cu-dlg-sh:0 1px 2px rgba(0,0,0,.06),0 24px 64px -16px rgba(0,0,0,.28);   /* cu-dlg (Finance .fn-dlg) */
  --cu-pnl:#fff; --cu-red:#b42318; --cu-mark-ink:#0a0a0a;   /* the tick / ? drawn on the teal and amber marks: dark in both themes (RR .ok) */
  --lamp:#5CC9D6;                                                    /* the AP lamp's Tiffany (DESIGN_SYSTEM); Cash's "read by itself" dot (cash-cards #217 ②) */
}
html.inv,.cu-dark{--cu-ink:#fafafa; --cu-ink2:#a3a3a3; --cu-ink3:#8a8a8a; --cu-ink4:#5c5c5c; --cu-hover:#262626; --cu-div:rgba(255,255,255,.06); --cu-hair:rgba(255,255,255,.08);
  --cu-accent:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.9),transparent 60%),linear-gradient(160deg,#fff 0%,#e2e2e3 48%,#bebec0 100%); --cu-on-accent:#0a0a0a; --cu-red:#f97066;
  --cu-pnl:radial-gradient(60% 50% at 0% 0%,rgba(255,255,255,.04),transparent 70%),linear-gradient(160deg,#1e1e1f 0%,#131314 28%,#101011 56%,#0f0f10 100%);
  --cu-dlg-bd:rgba(255,255,255,.08); --cu-dlg-sh:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.043),0 24px 64px -16px rgba(0,0,0,.9)}   /* ui-ok: the black dialog box edge + shadow, a token (Finance html.inv .fn-dlg) */

/* ---- panel (RR .card): 22 / 24 inside, 24 round; phones 16 / 15 ---- */
.cu-pnl{box-sizing:border-box;min-width:0;padding:22px 24px;border-radius:24px;background:var(--cu-pnl);border:1px solid rgba(0,0,0,.07);box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.04)}
html.inv .cu-pnl{border-color:transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.045),0 18px 40px -18px rgba(0,0,0,.9)}
@media (max-width:640px){.cu-pnl{padding:16px 15px}}

/* ---- buttons: four sizes, three kinds (DECISIONS #82). The size follows WHERE the button sits, the kind follows how important it is:
     cu-lg 40  page and dialog actions (Save, Cancel, Next)        · 14 / 500, 0 20 (primary 0 26)
     (none) 36 header chips, toolbars, segmented controls          · 13 / 500, 0 16
     cu-sm 28  inside a list row or a table (Edit, Add, Delete)    · 12 / 500, 0 12
     cu-ico 32 round icon buttons (‹ ›, ×); cu-ico cu-bar 36 when it sits in a 36 toolbar row (Finance Ledger reset ↺)
     cu-ico cu-28 cu-clear 28 clear round icon inside a list row (Cash DTC eye, #222; the row ×s move to it later)
   kinds: default = secondary (grey), cu-pri = the accent (black on white, silver on black), cu-txt = no fill; cu-red = red text */
.cu-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;height:36px;padding:0 16px;border:0;border-radius:999px;
  background:var(--cu-hover);color:var(--cu-ink);box-shadow:none;font-family:inherit;font-size:13px;font-weight:500;line-height:1;letter-spacing:normal;white-space:nowrap;text-decoration:none;cursor:pointer}
.cu-btn.cu-lg{height:40px;padding:0 20px;font-size:14px}
.cu-btn.cu-sm{height:28px;padding:0 12px;font-size:12px}
.cu-btn.cu-pri{background:var(--cu-accent);color:var(--cu-on-accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 4px 12px rgba(0,0,0,.18)}
html.inv .cu-btn.cu-pri{box-shadow:inset 0 1px 0 #fff,0 6px 16px -6px rgba(0,0,0,.8)}
.cu-btn.cu-lg.cu-pri{padding:0 26px}
.cu-btn.cu-txt{background:none;box-shadow:none}
.cu-btn.cu-red{color:var(--cu-red)}
.cu-btn:disabled{cursor:default;opacity:.45}
.cu-btn.cu-pri:disabled{opacity:1;background:var(--cu-hover);color:var(--cu-ink3);box-shadow:none}            /* can't press yet = grey (#72) */
html.inv .cu-btn.cu-pri:disabled{box-shadow:none}   /* dark: the inv shadow above outranks :disabled — no lit edge on a button that can't be pressed (Design parcel review r3) */
.cu-ico{box-sizing:border-box;display:inline-grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--cu-hover);color:var(--cu-ink2);
  font-family:inherit;font-size:15px;line-height:1;cursor:pointer}
.cu-ico.cu-bar{width:36px;height:36px}                 /* one row, one height: a round icon in a 36 toolbar is 36 too */
.cu-ico:disabled{cursor:default;opacity:.45}
.cu-ico>svg.cu-xi{width:14px;height:14px;stroke:currentColor;stroke-width:2.2;fill:none}   /* the close ✕, drawn — the same as Finance .fn-x and the spot check .scp-x (MM 10-23: the text × looked wrong) */
.cu-ico.cu-28{width:28px;height:28px}                 /* the round button inside a list row (DESIGN_SYSTEM §3.2; RR .fbd-x .fba-x .ivc-more, Finance .fn-cbx measured 10-16: 28, clear, --ink3) */
.cu-ico.cu-clear{background:transparent;color:var(--cu-ink3)}
.cu-ico.cu-clear:hover{background:var(--cu-hover);color:var(--cu-ink)}
/* 热区：圆形图示钮的 44（组 7 · E 区，Design 2026-11-21 裁，Planner 转）。**只撑上下，左右一律不撑** ——
   宽度不足的那几颗要到 44 得重排，那是另一张卡（E-5）。
   🔴 分类照 DS §3.7 的尺寸修饰词，不照面板分，因为 `cu-ico` 不是一种东西是三种：
     · 基本 32（弹窗／侧面板的关闭键）→ 撑。全库**基本 28 处逐一点过** ＝ Close 24 ＋ Back to AP Mode 2
       ＋ `cuXi()` 产生器 1 ＋ `pl-all` 1；**27 颗是关闭／返回，第 28 颗 `pl-all` 量过撑得动**
       （390 真路径 ☰ → P&L：框 32×32、下面第一颗可按的 `.pl-w` 距离 37、上面 570）。
       **名单是数出来的，不是「我们应该找到了唯一的例外」**：两个独立数法对得上 —— 捞 `class="…"` 组合
       （基本 28 · `cu-bar` 6 · `cu-28` 27、没有第四种修饰词）· 按 `aria-label` 分（24＋2＋1＋1 ＝ 28）。
     · `cu-bar` 36（工具列说明钮）→ 撑。RR 四个画面实量全部撑得动。
     · 🔴 `cu-28`（行内那一类）→ **不准吃到这条**。它按定义就是「清单行里的那颗圆钮」（见上面 `.cu-28`
       那一行自己写的），**邻居是整行**：`finance.html` 的 `.fn-file .x`（拿掉档案，注解自己写着「会後悔的
       动作」）· `cu-ico cu-28` 长在带 `click` 的 `.fn-fx` 上（整行可按）。**全域给它 ±8 ＝ 把「点这一行」
       静悄悄变成「删掉」。**
   🔸 Design 查过：`cu-ico` 底下没有任何 `position:absolute` 的子元素（0 处）、它身上原本也没有
   `position` 和 `::before`（0 处），所以这几行不会撞到既有的东西。
   🔸 **一个预期中的「看起来不一致」**：标题列那一排会先有一颗（说明钮）热区到 44、其馀还是 36。
   **热区看不见、外观一点都不会变**，E-5 会补齐 —— 下一轮走查不要报成回归。
   🔺 **界线**：以後若有人想把 `cu-28` 也纳进来，**要重新量，不准引用这一次。**
   鱼：`tests/cuico.test.js`（正向两只 ＋ 🔴 反向一只「`cu-28` 的热区没有变大」，反向那只比正向重要）。 */
.cu-ico{position:relative}
.cu-ico::before{content:"";position:absolute;inset:-6px 0}   /* 32 → 44，只撑上下 */
.cu-ico.cu-bar::before{inset:-4px 0}                         /* 36 → 44 */
.cu-ico.cu-28::before{content:none}                          /* 行内那一类不吃：邻居是整行，而且常常是会後悔的动作 */
.cu-ico.cu-tight::before{content:none}                       /* 点名的例外：撑开会盖到另一个可按元件（§2.4 三条的第 ③ 条）→ 这一颗不撑。
   🔴 每用一处，DESIGN_SYSTEM §2.4 的例外表要有一行（谁、隔多少、为什麽），而且 tests/cuico.test.js 会钉住名单：多一颗没点名的就红。
   🔴 现在是 0 处（2026-11-23，例外表清空）—— 规则留着给未来真的有例外的那一天用。
   原本唯一那一处 rr.html #omClose 已经拿掉：它的理由（撑开会抢走上面月份钮的点击）是**量具量错的** ——
   那两颗钮在弹窗开着时被标题列 div.cu-dh 盖住、根本按不到，而「按不到的邻居」不算抢。
   量具改好之後实量：Close 热区 44、相交 1px、抢到 0 处。tests/cuico.test.js 的 NOEXP 现在是空的，
   照旧钉着「不撑的只有点过名的那几颗」——所以谁再加一个 cu-tight 而不在那里补一行，就会红。 */
.cu-ico.cu-28 svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cu-ico>svg.cu-xr{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}   /* 行内 ✕ 的名字（Design FIX §B）：原本这颗 svg 身上没有 class，照 class 捞的网一只都看不见它 —— 画面没错，网漏了。规格跟上面那条一样（16、线 2）*/
:is(.cu-btn,.cu-ico,.cu-seg,.cu-chip)[hidden]{display:none}

/* ---- segmented control (RR Results): ONE size everywhere (#82) — 36 high, buttons 30, one accent pill that slides to the chosen option ----
   Finance and RR Results use .cu-seg-ind (the script sets width = button.offsetWidth, transform = translateX(button.offsetLeft));
   RR's other rows use its shared sliding pill (i.sl-pill, placed from the button's own box). Either way the look is below. */
.cu-seg{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;height:36px;padding:3px;gap:0;border:0;border-radius:999px;background:var(--cu-hover)}
.cu-seg > button{position:relative;z-index:1;height:30px;padding:0 14px;border:0;border-radius:999px;background:none;box-shadow:none;font-family:inherit;font-size:13px;font-weight:500;letter-spacing:0;
  color:var(--cu-ink3);white-space:nowrap;cursor:pointer;transition:color .25s ease-out}
.cu-seg > button:hover{color:var(--cu-ink)}
.cu-seg > button:disabled{cursor:not-allowed}
.cu-seg > :is(button.on,button.active){color:var(--cu-on-accent)}
.cu-seg:not(:has(> i)) > button.on{background:var(--cu-accent)}
.cu-seg-ind{position:absolute;z-index:0;top:3px;bottom:3px;left:0;border-radius:999px;pointer-events:none;transition:transform .38s cubic-bezier(.32,.72,0,1),width .38s cubic-bezier(.32,.72,0,1)}
:is(.cu-seg-ind,.cu-seg > .sl-pill){background:var(--cu-accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 4px 10px -4px rgba(0,0,0,.35)}
html.inv :is(.cu-seg-ind,.cu-seg > .sl-pill){box-shadow:inset 0 1px 0 #fff,0 4px 10px -4px rgba(0,0,0,.8)}
.cu-seg.cu-fill{display:flex;width:100%}.cu-seg.cu-fill > button{flex:1;min-width:0}          /* full width, equal options */
/* full width, each option as wide as its word + an equal share of what is left — for many options (Finance Nature: 6) so no word is cut (#95);
   cu-3: on phones three per row (two rows, 18 round); the room's script places the pill on the chosen button's row too */
.cu-seg.cu-fit{display:flex;width:100%}.cu-seg.cu-fit > button{flex:1 1 auto;min-width:0}
@media (max-width:640px){.cu-seg.cu-fit.cu-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:auto;border-radius:18px}}
/* cu-2 (2026-11-13, DS §3.11): exactly four options that do not fit at sides 10 — two a row on phones (≤640); cuSegInd puts the slider on the chosen row */
@media (max-width:640px){.cu-seg.cu-fit.cu-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;border-radius:18px}}
/* on a surface that is always dark (RR invoice form head): same size, light-on-dark colours */
.cu-seg.cu-ondark{background:rgba(255,255,255,.12)}.cu-seg.cu-ondark > button{color:rgba(255,255,255,.6)}.cu-seg.cu-ondark > :is(button.on,button.active){color:#0a0a0a}
.cu-seg.cu-ondark > :is(.cu-seg-ind,.sl-pill){background:linear-gradient(160deg,#fff 0%,#e2e2e3 48%,#cfcfd1 100%);box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(0,0,0,.45)}
html.inv .cu-seg.cu-ondark{background:#141415;box-shadow:inset 0 1px 2px rgba(0,0,0,.6)}html.inv .cu-seg.cu-ondark > button:not(.on,.active){color:#8a8a8a}

/* ---- calendar (RR Daily / Invoices): a dimmed layer with the 360-wide card placed under its field ----
   markup: <div class="cu-calov on"><div class="cu-cal"> .cu-cal-h (‹ b ›)  .cu-cal-w (Mon…Sun)  .cu-cal-g (span.o = other month, button .s chosen .t today .f has data)  .cu-cal-f </div></div> */
.cu-calov{position:fixed;inset:0;z-index:530;background:rgba(0,0,0,0);transition:background .22s ease,backdrop-filter .22s ease,-webkit-backdrop-filter .22s ease}
.cu-calov[hidden]{display:none}
.cu-calov.on{background:rgba(0,0,0,.28);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.inv .cu-calov.on{background:rgba(0,0,0,.6)}
.cu-cal{position:fixed;box-sizing:border-box;width:360px;max-width:calc(100vw - 24px);padding:18px;border-radius:24px;color:var(--cu-ink);background:#fff;
  box-shadow:0 1px 1px rgba(0,0,0,.05),0 8px 16px -4px rgba(0,0,0,.08),0 24px 48px -12px rgba(0,0,0,.12);opacity:0;transform:translateY(-6px);transition:opacity .22s ease,transform .22s cubic-bezier(.32,.72,0,1)}
.cu-calov.on .cu-cal{opacity:1;transform:none}
html.inv .cu-cal{background:var(--cu-pnl);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.06),0 30px 70px -20px rgba(0,0,0,.95)}
.cu-cal-h{display:flex;align-items:center;justify-content:space-between}
.cu-cal-h b{font-size:16px;font-weight:500;color:var(--cu-ink)}
.cu-cal-h button{width:32px;height:32px;border:0;border-radius:50%;background:var(--cu-hover);color:var(--cu-ink2);font-family:inherit;font-size:15px;cursor:pointer}
.cu-cal-h button:disabled{opacity:.3;cursor:default}
.cu-cal-w,.cu-cal-g{display:grid;grid-template-columns:repeat(7,1fr);text-align:center}
.cu-cal-w{margin-top:14px;font-size:11px;color:var(--cu-ink4)}
.cu-cal-g{margin-top:6px;row-gap:4px}
.cu-cal-g > :is(span,button){position:relative;height:40px;display:grid;place-items:center;border:0;background:none;border-radius:12px;
  font-family:inherit;font-size:13px;font-weight:400;line-height:normal;color:var(--cu-ink);font-variant-numeric:tabular-nums}
.cu-cal-g > button{cursor:pointer}.cu-cal-g > button:hover{background:var(--cu-hover)}.cu-cal-g > span.o{color:var(--cu-ink4)}
.cu-cal-g > button.f::after{content:"";position:absolute;bottom:6px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--cu-ink3)}
.cu-cal-g > button.t{box-shadow:inset 0 0 0 1px var(--cu-ink4)}
.cu-cal-g > button.s{background:var(--cu-accent);color:var(--cu-on-accent)}.cu-cal-g > button.s::after{background:currentColor}
.cu-cal-f{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--cu-div);font-size:12px;color:var(--cu-ink3)}
.cu-cal-f span i{display:inline-block;width:4px;height:4px;margin-right:6px;border-radius:50%;background:var(--cu-ink3);vertical-align:2px}
.cu-cal-f button{border:0;background:none;padding:0;font-family:inherit;font-size:12px;font-weight:500;color:var(--cu-ink);cursor:pointer}
.cu-cal-f button.cu-cal-alt{margin-left:auto;color:var(--cu-ink3)}

/* ---- chart tooltip (RR .tip): the accent capsule; the room places it ----
   parts: .tp-top (.tp-d date, .tp-dl ▲▼ up/dn)  .tp-cmp (.tp-c with .tp-k key + .tp-sw cur/prev swatch, b value; .tp-vs em "vs")  .tp-m  .tp-cta */
.cu-tip{box-sizing:border-box;background:var(--cu-accent);color:#fff;border-radius:14px;padding:10px 14px;font-size:12px;line-height:1.45;font-variant-numeric:tabular-nums;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 12px 28px -8px rgba(0,0,0,.35)}
html.inv .cu-tip{color:#0a0a0a;box-shadow:inset 0 1px 0 #fff,0 12px 28px -8px rgba(0,0,0,.8)}
.cu-tip b{font-size:15px;font-weight:600;letter-spacing:-.01em}
.cu-tip :is(.tp-d,.d){font-size:11px;font-weight:500;color:rgba(255,255,255,.56);margin-bottom:2px}
.cu-tip .tp-m{color:rgba(255,255,255,.56);font-weight:400}
.cu-tip .tp-cta{margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.12);font-size:11px;font-weight:500;color:rgba(255,255,255,.72)}
.cu-tip .tp-top{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:10px}
.cu-tip .tp-top .tp-d{margin:0}
.cu-tip .tp-dl{font-size:11px;font-weight:600;color:rgba(255,255,255,.72)}
.cu-tip .tp-dl.up{color:#5fd6c2}.cu-tip .tp-dl.dn{color:#f97066}
.cu-tip .tp-cmp{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:stretch;column-gap:14px}
.cu-tip .tp-k{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:500;color:rgba(255,255,255,.56)}
.cu-tip .tp-c b{display:block;margin-top:4px;font-size:16px;line-height:20px;font-weight:600;letter-spacing:-.01em}
.cu-tip .tp-sw{width:8px;height:8px;border-radius:50%;flex:none;box-sizing:border-box}
.cu-tip .tp-sw.cur{background:#fff}.cu-tip .tp-sw.prev{border:2px solid #737373}
.cu-tip .tp-vs{display:flex;flex-direction:column;align-items:center;gap:4px}
.cu-tip .tp-vs::before,.cu-tip .tp-vs::after{content:"";flex:1;width:1px;background:rgba(255,255,255,.14)}
.cu-tip .tp-vs em{font-style:normal;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.64);
  width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.10)}
html.inv .cu-tip :is(.tp-d,.tp-m){color:rgba(0,0,0,.5)}
html.inv .cu-tip .tp-cta{color:rgba(0,0,0,.64);border-top-color:rgba(0,0,0,.10)}
html.inv .cu-tip :is(.tp-k,.tp-dl){color:rgba(0,0,0,.56)}
html.inv .cu-tip .tp-dl.up{color:#0f7b70}html.inv .cu-tip .tp-dl.dn{color:#b42318}
html.inv .cu-tip .tp-sw.cur{background:#0a0a0a}html.inv .cu-tip .tp-sw.prev{border-color:#8a8a8a}
html.inv .cu-tip .tp-vs::before,html.inv .cu-tip .tp-vs::after{background:rgba(0,0,0,.12)}
html.inv .cu-tip .tp-vs em{color:rgba(0,0,0,.6);background:rgba(0,0,0,.07)}

/* ---- rail hover label (RR .navtip): desktop only ---- */
.cu-navtip{position:fixed;z-index:80;top:0;left:0;opacity:0;pointer-events:none;transform:translate(-6px,-50%);padding:7px 12px;border-radius:10px;
  font-size:12px;line-height:16px;font-weight:500;white-space:nowrap;color:#fff;background:var(--cu-accent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 8px 20px -6px rgba(0,0,0,.35);transition:opacity .14s ease-out,transform .18s cubic-bezier(.32,.72,0,1)}
.cu-navtip.on{opacity:1;transform:translate(0,-50%)}
html.inv .cu-navtip{color:#0a0a0a;box-shadow:inset 0 1px 0 #fff,0 8px 20px -6px rgba(0,0,0,.8)}
@media (max-width:1120px){.cu-navtip{display:none}}

/* ---- header chips: status (quiet, bordered) and the one accent (month / primary action) ---- */
.cu-chip{box-sizing:border-box;height:var(--cu-chip-h);padding:0 16px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
  white-space:nowrap;font-family:inherit;font-size:13px;font-weight:500;line-height:1;letter-spacing:normal;color:#0a0a0a;
  background:#fff;border:1px solid rgba(0,0,0,.07);box-shadow:0 1px 2px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.04)}
html.inv .cu-chip{color:#fafafa;background:#1f1f1f;border-color:rgba(255,255,255,.08);box-shadow:0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.35)}
button.cu-chip,.cu-chip.cu-click{cursor:pointer}
.cu-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.cu-acc{color:#fff;border-color:transparent;background:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.08),transparent 60%),linear-gradient(160deg,#262626 0%,#0a0a0a 55%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 4px 12px rgba(0,0,0,.18)}
html.inv .cu-acc{color:#0a0a0a;border-color:transparent;background:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.9),transparent 60%),linear-gradient(160deg,#fff 0%,#e2e2e3 48%,#bebec0 100%);
  box-shadow:inset 0 1px 0 #fff,0 4px 12px rgba(0,0,0,.5)}
/* a stepper chip (‹ September 2026 ›): the label box is fixed, so May / September never move the chips beside it */
.cu-step{padding:0 3px;gap:0}
.cu-step button{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:inherit;opacity:.6;cursor:pointer;font-size:15px;font-family:inherit}
.cu-step > button{position:relative;top:-2.5px}   /* the ‹ › glyphs sit 2.7 px below the middle of the chip; measured 2026-10-05 (Finance and RR alike) */
.cu-step button:hover{opacity:1}
.cu-step > span{width:120px;text-align:center;padding:0 4px;overflow:hidden;text-overflow:ellipsis}

/* ---- toast: the accent capsule, bottom centre ---- */
.cu-toast{position:fixed;left:50%;bottom:28px;z-index:20000;width:max-content;transform:translate(-50%,16px);opacity:0;pointer-events:none;padding:11px 18px;border-radius:999px;
  max-width:min(560px,calc(100vw - 32px));text-align:center;line-height:1.45;font-size:13px;font-weight:500;color:#fff;
  background:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.08),transparent 60%),linear-gradient(160deg,#262626 0%,#0a0a0a 55%);
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:opacity .2s ease-out,transform .28s cubic-bezier(.32,.72,0,1)}
html.inv .cu-toast{color:#0a0a0a;background:radial-gradient(120% 80% at 0% 0%,rgba(255,255,255,.9),transparent 60%),linear-gradient(160deg,#fff 0%,#e2e2e3 48%,#bebec0 100%)}
.cu-toast:is(.on,.show){opacity:1;transform:translate(-50%,0)}
.cu-toast.warn{background:#b42318;color:#fff}html.inv .cu-toast.warn{background:#f97066;color:#fff}   /* errors: red, white text (as before) */
/* A12（Design 2026-11-23，DESIGN_SYSTEM 3.18）：动作是真的 <button>，整颗胶囊不再可点。
   只有 .act 撑到 44（内距 11 -> 12.6，实量 40.84 -> 44.03）：44 的热区要留在胶囊**里面** --
   position:fixed 的浮层不可能知道邻居是谁（2.4 条件 3）。没有按钮的提示条照旧 11：
   同一刻不会有两则提示条，而全部撑高会动到每一张截到提示条的视觉基准。
   不准用 cu-btn cu-txt：实量胶囊 40.84 -> 58、232.4 -> 264.4（那是换掉一个元件）。
   焦点环用 currentColor：全站的环是对着页面底色定的，而这颗胶囊永远是页面的反色
   （改前实量 1.71 / 1.00，门槛 3）。🔴 **画出来的环受 `.cu-toast-act` 的 `opacity:.72` 一起压**，
   实量 **6.9（inv）／10.3（预设）** —— `15.29 / 15.13` 是 computed 值，拿它去减余量会减过头。
   🔴 **通则有例外**：红底 `.cu-toast.warn` 那一种 `currentColor` ＝ 白踩 `#f97066` ≈ **2.10**，**仍然不成立**，
   归 `E-13` 一起裁。所以不是「反色浮层一律 currentColor 就对了」。 */
.cu-toast.act{pointer-events:auto;padding:12.6px 18px}
.cu-toast-act{position:relative;background:none;border:0;padding:0;margin-left:8px;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px;opacity:.72}
.cu-toast-act::before{content:"";position:absolute;inset:-12.6px -8px}   /* 热区 44.04 x 49.91（标签 Undo），上下跟胶囊齐边。🔴 这个 12.6 和上一行 .cu-toast.act 的 padding 是同一个数，要改一起改 —— 只改一边，热区会无声地凸出胶囊 */
/* 🔴 两条都要：全站那条是 `html.inv :focus-visible`（0,2,1），**压过** `.cu-toast-act:focus-visible`（0,2,0）——
   只写前者，实量环还是 rgba(255,255,255,.85)（＝改之前那个看不见的 1.71），而且 CSS 不会报错。
   反色浮层上的元件要盖掉全站的焦点环，就得带着 html.inv 一起写。 */
/* 🔴 2026-11-23 第二次改这一行（Design 裁 (a)）：**四件一起写死，不只写颜色。**
   只写 `outline-color` 时，大厅那一页的环**根本没画出来** —— `lobby.html:537` 有一条光秃秃的
   `:focus{outline:none}` 写在行内 `<style>`，而本档在 `:38` 就 link 完了 → 同为 (0,1,0)、**後写的赢**；
   它把 `outline-style` 设成 none，而我们只赢回颜色。实量：Tab 过去 `:focus-visible` 是 true，
   `outline-style: none`、**变动像素 0**，同一刻 `rr`／`finance` 是 solid、304 px、对比 10.31。
   **「颜色对、画面上什麽都没有」—— 只比颜色的检查会过。**（`tests/toastact.test.js` 的 `③c2` 就是为这个补的。）
   🔸 写死的 2px solid／offset 2px **跟 RR／Finance 现在量到的一模一样**，所以那两个房间看不出变化。 */
.cu-toast-act:focus-visible,html.inv .cu-toast-act:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* E-13（11-24，Design 11-23 已量定，DESIGN_SYSTEM「E-13 的答案」那一表）：**只有** html.inv 的红底提示条那颗按钮换深色环。
   currentColor 在那里是白 × opacity .72 ＝ #fdd7d4，踩 #f97066 只有 2.10（门槛 3）；把 opacity 拉回 1 也只有 2.79，修不好。
   深色 #0a0a0a × .72 踩同一个红 ＝ 4.64。预设主题（深红 #b42318 上的白环 4.04）本来就过，不动；红底本身、opacity 都不动。
   用 --cu-mark-ink：它是「两个主题都是深色」的那一支（画在有色记号上的字），刚好就是这里要的意思。 */
html.inv .cu-toast.warn .cu-toast-act:focus-visible{outline-color:var(--cu-mark-ink)}
@media (max-width:1120px){.cu-toast{bottom:96px}}

/* ---- small menu that opens from a button (RR Invoices .ivc-pop, measured 2026-10-03 in both modes): 16 round, 6 inside, min 220 wide;
     items 40 high, 8 / 12 inside, 12 round, 14 / 400; a grey note on the right 12; can't press = .4. Rooms place it (fixed, under the button). ---- */
.cu-pop{position:fixed;z-index:520;box-sizing:border-box;min-width:220px;max-width:calc(100vw - 24px);padding:6px;border-radius:16px;background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.07),0 1px 1px rgba(0,0,0,.05),0 8px 16px -4px rgba(0,0,0,.08),0 24px 48px -12px rgba(0,0,0,.12)}
html.inv .cu-pop{background:#1b1b1c;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 16px 30px -12px #000}
.cu-pop[hidden]{display:none}
.cu-opt{display:flex;justify-content:space-between;align-items:center;gap:16px;box-sizing:border-box;width:100%;min-height:40px;padding:8px 12px;border:0;border-radius:12px;
  background:none;color:var(--cu-ink);font-family:inherit;font-size:14px;font-weight:400;line-height:normal;text-align:left;cursor:pointer}
.cu-opt:hover{background:#f5f5f5}html.inv .cu-opt:hover{background:#262628}
.cu-opt span{font-size:12px;color:var(--cu-ink3);white-space:nowrap}
.cu-opt:disabled{opacity:.4;cursor:default;background:none}

/* ---- pick one (cu-pick; Design 10-17, first used by Finance UOB uob-cut, statement credits next): RR Inventory's dashed pay box (#186 #200) as a shared list.
     dashed 1px hair, 12 round, 4 / 12 inside; rows 44, the whole row presses: 20 round dot · 12 · text 14 / 400 (secondary part in <em>, ink3) · amount right,
     tabular; 1px divider between rows; hover shade 10 round. Picked = the accent dot with an 8 dot of the accent's text colour (.15 s) — the text and the row stay
     as they are (round = one choice, square = many: manual ②). Phones: the text ends in "…", the amount never shrinks. A row that opens something under it:
     .cu-pick-x (0fr → 1fr, .28 s slide); more rows than fit: .cu-pick-more ("Show 9 more ⌄") opens them in place — never a scrolling box (#141) ---- */
.cu-pick{box-sizing:border-box;padding:4px 12px;border:1px dashed var(--cu-hair);border-radius:12px}
.cu-pick-row{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:12px;align-items:center;box-sizing:border-box;width:calc(100% + 16px);min-height:44px;margin:0 -8px;padding:0 8px;border:0;border-radius:10px;
  background:none;color:var(--cu-ink);font-family:inherit;font-size:14px;font-weight:400;line-height:normal;text-align:left;cursor:pointer}
.cu-pick-row:not(:first-child)::before{content:'';position:absolute;left:8px;right:8px;top:0;height:1px;background:var(--cu-div)}
.cu-pick-row:hover{background:var(--cu-hover)}.cu-pick-row:hover::before,.cu-pick-row:hover+.cu-pick-row::before{opacity:0}
.cu-pick-row>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.cu-pick-row>b em{font-style:normal;color:var(--cu-ink3)}
.cu-pick-row>span{font-variant-numeric:tabular-nums;white-space:nowrap}
:is(.cu-pick-row,.cu-box)>i{display:grid;place-items:center;flex:none;box-sizing:border-box;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--cu-ink4);transition:background .15s ease-out,border-color .15s ease-out}
:is(.cu-pick-row,.cu-box)>i::after{content:'';width:8px;height:8px;border-radius:50%;background:var(--cu-on-accent);transform:scale(0);transition:transform .15s ease-out}
:is(.cu-pick-row,.cu-box)[aria-checked=true]>i{border-color:transparent;background:var(--cu-accent)}:is(.cu-pick-row,.cu-box)[aria-checked=true]>i::after{transform:scale(1)}
.cu-pick.cu-multi .cu-pick-row[role=checkbox]>i,.cu-box>i{border-radius:6px}.cu-pick.cu-multi .cu-pick-row[role=checkbox]>i::after,.cu-box>i::after{border-radius:2px}   /* pick several (money-in c9: Which invoices?, Pick an order…): the same row, a rounded square */
.cu-pick-more{grid-template-columns:20px minmax(0,1fr);color:var(--cu-ink3)}.cu-pick-more>i{visibility:hidden}   /* the dot's cell kept (the words line up), never a circle that looks pickable (Design 10-17) */
/* a row that cannot be picked any more (Finance F43: an order already matched in full) — listed, readable, not pickable.
   Same language as the shared buttons' can't-press-yet (.cu-btn:disabled, opacity .45) + no hover, and the dot's circle goes
   so it never looks pickable (the same reason as .cu-pick-more above). aria-disabled, not the disabled attribute: the row
   must stay readable to a screen reader and keep its amount. */
.cu-pick-row[aria-disabled=true]{opacity:.45;cursor:default}
.cu-pick-row[aria-disabled=true]:hover{background:none}
.cu-pick-row[aria-disabled=true]:hover::before,.cu-pick-row[aria-disabled=true]:hover+.cu-pick-row::before{opacity:1}
.cu-pick-row[aria-disabled=true]>i{border-style:dashed}
.cu-pick-x{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.32,.72,0,1)}.cu-pick-x.on{grid-template-rows:1fr}.cu-pick-x>div{min-height:0;overflow:hidden}
@media (prefers-reduced-motion:reduce){.cu-pick-row>i,.cu-pick-row>i::after,.cu-pick-x{transition:none}}

/* ---- help: the "?" in a page's header (cu-ico cu-bar + cu-help-btn) opens THIS page's how-to in a side panel (#99) ----
     the same pages as the staff PDF (tools/tutorial_rr): a tab per part, picture with numbered markers, steps, tip; FAQ + the PDF at the foot.
     520 wide on the right, 12 from the edges, 24 round; phones: a sheet from the bottom. The number dots are the PDF's #fdb022. */
.cu-help-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cu-ico.cu-help-btn{color:var(--cu-ink)}
.cu-help-scrim{position:fixed;inset:0;z-index:960;background:rgba(0,0,0,.28);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);opacity:0;transition:opacity .25s ease}
html.inv .cu-help-scrim{background:rgba(0,0,0,.5)}
.cu-help-scrim.on{opacity:1}
.cu-help{position:fixed;top:12px;right:12px;bottom:12px;z-index:961;width:min(520px,calc(100vw - 24px));display:flex;flex-direction:column;overflow:hidden;border-radius:24px;
  background:var(--cu-pnl);color:var(--cu-ink);font-family:inherit;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 24px 60px -12px rgba(0,0,0,.35);
  transform:translateX(calc(100% + 24px));transition:transform .38s cubic-bezier(.32,.72,0,1)}
html.inv .cu-help{box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.05),0 24px 60px -12px #000}
.cu-help.on{transform:none}
.cu-help:focus{outline:none}
.cu-help-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:22px 24px 14px}
.cu-help-hd small{display:block;margin:0;font-size:12px;font-weight:500;color:var(--cu-ink3)}
.cu-help-hd h3{margin:4px 0 0;padding:0;font-size:22px;font-weight:500;letter-spacing:-.01em;line-height:1.25}
.cu-help-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0 24px 14px;border-bottom:1px solid var(--cu-div)}
.cu-help-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:18px 24px 12px}
.cu-help-lead{margin:0 0 14px;padding:0;font-size:13.5px;line-height:1.6;color:var(--cu-ink2)}
.cu-help-lead b,.cu-help-steps p b,.cu-help-tip b{color:var(--cu-ink);font-weight:600}
.cu-help-fig{position:relative;margin:0 0 16px;border-radius:14px;overflow:hidden;background:var(--cu-hover)}
.cu-help-fig img{display:block;width:100%;height:100%;opacity:0;transition:opacity .28s ease}
.cu-help-fig img.on{opacity:1}
.cu-help-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cu-help-steps li{display:flex;gap:10px;margin:0;padding:0;border:0}
.cu-help-steps li::before{content:none}
.cu-help-n{flex:none;width:20px;height:20px;margin-top:1px;border-radius:50%;background:#fdb022;color:#0a0a0a;font-size:11px;font-weight:700;line-height:1;display:grid;place-items:center}
.cu-help-steps h4{margin:0;padding:0;font-size:13.5px;font-weight:600;line-height:1.4;color:var(--cu-ink)}
.cu-help-steps p{margin:2px 0 0;padding:0;font-size:12.5px;line-height:1.55;color:var(--cu-ink2)}
.cu-help-tip{margin:16px 0 8px;padding:12px 14px;border-radius:14px;background:var(--cu-hover);font-size:12.5px;line-height:1.55;color:var(--cu-ink2)}
.cu-help-tip b{display:block;margin-bottom:2px}
.cu-help-ft{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:14px 24px 18px;border-top:1px solid var(--cu-div)}
.cu-help-ft a{font-size:13px;font-weight:500;color:var(--cu-ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.cu-help-faq{display:flex;flex-direction:column;gap:14px;margin:0;padding:0}
.cu-help-faq h4{margin:0 0 3px;padding:0;font-size:13.5px;font-weight:600;color:var(--cu-ink)}
.cu-help-faq p{margin:0;padding:0;font-size:12.5px;line-height:1.55;color:var(--cu-ink2)}
@media (max-width:640px){.cu-help{top:auto;left:0;right:0;bottom:0;width:auto;height:88vh;height:88dvh;border-radius:24px 24px 0 0;transform:translateY(100%)}
  .cu-help-hd{padding:18px 18px 12px}.cu-help-tabs{padding:0 18px 12px}.cu-help-body{padding:16px 18px 10px}.cu-help-ft{padding:12px 18px calc(14px + env(safe-area-inset-bottom))}}

/* ---- dialog box (cu-dlg; money-in c8, 10-24): Finance .fn-dlg measured — the spot check panel's .scp-dlg was the same numbers.
     .cu-dlg > .cu-dh (title 20/26 · 400, sub 12 --cu-ink3, the drawn ✕ = .cu-ico > svg.cu-xi) · .cu-db (scrolls) · .cu-df (actions, hairline
     above). 560 wide (.cu-w640 / .cu-w760 wider); dark with html.inv, or always dark with .cu-dark (the spot check over any room, #282).
     The scrim stays the room's own (Finance .fn-ov, the spot check .scp-ov: it sits above the rooms at z 70). Phones (≤ 640): full width. ---- */
.cu-dlg{box-sizing:border-box;width:560px;max-width:calc(100vw - 32px);max-height:calc(100vh - 40px);display:flex;flex-direction:column;border-radius:28px;
  background:var(--cu-pnl);color:var(--cu-ink);text-align:left;border:1px solid var(--cu-dlg-bd);box-shadow:var(--cu-dlg-sh);animation:cuPop var(--cu-pop)}
.cu-dlg.cu-w640{width:640px}.cu-dlg.cu-w760{width:760px}
.cu-dh{display:flex;align-items:flex-start;gap:12px;padding:24px 24px 6px}
.cu-dh h2{margin:0;font-size:20px;line-height:26px;font-weight:400;letter-spacing:-.01em}
.cu-dh p{margin:2px 0 0;font-size:12px;color:var(--cu-ink3)}
.cu-dh > .cu-ico{margin-left:auto}
.cu-db{padding:16px 24px;overflow:auto;display:flex;flex-direction:column}
.cu-df{display:flex;align-items:center;gap:17px;padding:16px 24px 22px;border-top:1px solid var(--cu-div)}
.cu-df > .cu-btn{flex:none}
@media (max-width:640px){.cu-dlg,.cu-dlg.cu-w640,.cu-dlg.cu-w760{width:100%;max-width:100%;max-height:calc(100dvh - 24px)}.cu-df{flex-wrap:wrap;gap:10px}}

/* ---- dialog entrance: rooms put animation:cuPop var(--cu-pop) on their dialog box ---- */
@keyframes cuPop{from{transform:scale(.96);opacity:0}}

/* ---- keyboard focus ---- */
:focus-visible{outline:2px solid #0a0a0a;outline-offset:2px}
html.inv :focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:3px}

@media (prefers-reduced-motion:reduce){:is(.cu-help,.cu-help-scrim,.cu-help-fig img,.cu-toast,.cu-seg-ind,.cu-seg > button,.cu-seg > .sl-pill,.cu-calov,.cu-cal,.cu-navtip){transition:none}}

/* ---- unread number (cu-badge) and dot (cu-pip): DESIGN_SYSTEM §3.6.1, DECISIONS #220 (MM 10-16); copied from handoff/design/badge_spec.html "规格本体".
     Lobby (always black) puts .cu-bdg-dk on its wrapper. Moving: setNum() / setPip() in ap-mode.js (from the spec page) ---- */
/* 两组颜色：深色底上用「亮组」、浅色底上用「深组」。默认跟页面；在强调色上（导航栏、选中的分页、强调色卡）换另一组（§1.2 同一条规矩） */
/* 深组（浅色底）：白底页面、黑底时的银色强调色 */
:root,html.inv :is(.cu-seg > button.on,.cu-bdg-flip),html .cu-bdg-dk :is(.cu-seg > button.on,.cu-bdg-flip){--cu-bdg-a:#b54708;--cu-bdg-r:#b42318;--cu-bdg-g:#737373;--cu-bdg-t:#fff}
/* 亮组（深色底）：黑底页面、白底时的黑色强调色、永远黑底的地方（大厅 = .cu-bdg-dk） */
html.inv,html:not(.inv) :is(.cu-seg > button.on,.cu-bdg-flip),html .cu-bdg-dk{--cu-bdg-a:#fdb022;--cu-bdg-r:#f97066;--cu-bdg-g:#8a8a8a;--cu-bdg-t:#0a0a0a}
html .cu-bdg-dk :is(.cu-seg > button.on,.cu-bdg-flip){--cu-bdg-a:#b54708;--cu-bdg-r:#b42318;--cu-bdg-g:#737373;--cu-bdg-t:#fff}
/* 数字 */
.cu-badge{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--cu-bdg-a);color:var(--cu-bdg-t);font:600 11px/1 var(--font);font-style:normal;font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap;pointer-events:none;   /* ui-ok: #220 Design spec — --font is set by each room (RR, Finance, lobby), not here */
  transition:width .38s cubic-bezier(.32,.72,0,1),background-color .25s ease-out,color .25s ease-out}   /* ui-ok: #220 Design spec — colour fades .25s ease-out, approved as drawn */
.cu-badge.cu-r{background:var(--cu-bdg-r)}
.cu-badge.cu-g{background:var(--cu-bdg-g)}
/* 小点 */
.cu-pip{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--cu-bdg-a);pointer-events:none;transition:background-color .25s ease-out}   /* ui-ok: #220 Design spec — colour fade .25s ease-out, approved as drawn */
:is(.cu-badge,.cu-pip)[hidden]{display:none}
/* 位置 ① 圆形按钮（铃铛 40）：骑在右上角，右缘固定，变宽往左长 */
.cu-on-ico{position:absolute;top:-4px;right:-4px}
/* 位置 ② 分页（cu-seg 按钮）：两边各留一个「99+」的位子，数字放右边那格，字永远在正中、不动 */
.cu-seg > button.cu-slot{padding:0 46px}
.cu-seg > button.cu-slot > .cu-badge{position:absolute;top:50%;right:8px;margin-top:-9px;transition:width .38s cubic-bezier(.32,.72,0,1),background-color .38s cubic-bezier(.32,.72,0,1),color .38s cubic-bezier(.32,.72,0,1)}
/* 位置 ③ 导航图示（46 方块）：小点在图示里右上 9 / 9；在目前那一页不显示 */
.cu-pip.cu-on-nav{top:9px;right:9px}
/* 位置 ⑤ 导航图示上的**数字**（DS §3.10 ⑤，Design 2026-11-21 定、量过；第一个用：Finance F13 的 To-do）。
   数字**不跟小点共用锚点**：「99+」量到 30.3 宽 > 图示本身 24，摆在 ③ 的 9 / 9 会整个盖住图示；
   按这里摆只压到图示最上面 3px。桌面跟 ①（铃铛）同一个做法：挂在方块外面、右缘固定、变宽往左长。
   手机底栏没有 46 方块（图示只 22、一格 92.5 宽），所以 `cu-on-tab` 锚**图示**、不锚那一格 ——
   锚在格子上数字会飘到离图示 30 以外，而照桌面那组值换算过来会冲出底栏上缘。
   **这里不写 media query**：rail 和底栏是两个各自的节点（一个 display:none 的时候另一个在），断点是房间的事（§0.1）。 */
.cu-badge.cu-on-nav{position:absolute;top:-4px;right:-4px}
.cu-badge.cu-on-tab,.cu-pip.cu-on-tab{position:absolute;right:50%;margin-right:-15px;top:3px}
/* 动效 */
@keyframes cu-bdg-in{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes cu-bdg-out{to{opacity:0;transform:scale(.4)}}
@keyframes cu-bdg-bump{0%{transform:none}40%{transform:scale(1.22)}100%{transform:none}}
.cu-bdg-in{animation:cu-bdg-in .3s cubic-bezier(.34,1.45,.64,1) both}
.cu-bdg-out{animation:cu-bdg-out .38s cubic-bezier(.32,.72,0,1) both}
.cu-bdg-bump{animation:cu-bdg-bump .35s cubic-bezier(.32,.72,0,1)}
@media (prefers-reduced-motion:reduce){:is(.cu-badge,.cu-pip){transition:none!important;animation:none!important}}

/* ---- cu-mark: one status at the right end of a row, 20 px, no words (DESIGN_SYSTEM「状态用图示，不写字」, #186; money-out §4.1).
     Drawn as the 10-12 sample MM approved (handoff/auto-match): teal filled + dark tick = sure / done; amber filled + dark ? = look at
     it / not sure; hollow --ink3 ring + clock = waiting (it will sort itself out). The words go in title + aria-label.
     span.cu-mark = static; button.cu-mark = it opens something (the ? opens the candidates): 44 px to press, the room's focus ring.
     <span class="cu-mark cu-mark-ok" title="…" aria-label="…">CU_MARK svg</span> — the three svgs are CitReader.markSvg(kind) */
.cu-mark{box-sizing:border-box;position:relative;display:inline-grid;place-items:center;flex:none;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:none;color:inherit;font:inherit;vertical-align:middle}
.cu-mark svg{display:block;width:20px;height:20px;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cu-mark-ok circle{fill:var(--teal);stroke:none} .cu-mark-ok path{stroke:var(--cu-mark-ink)}   /* ui-ok: the room's own --teal, as RR's Daily tick (.wcard .ok) */
.cu-mark-doubt circle{fill:var(--amber);stroke:none} .cu-mark-doubt path{stroke:var(--cu-mark-ink)} .cu-mark-doubt circle.cu-mark-dot{fill:var(--cu-mark-ink)}   /* ui-ok: the room's own --amber (every room defines it, both themes) */
.cu-mark-wait circle{fill:none;stroke:var(--ink3,var(--cu-ink3))} .cu-mark-wait path{stroke:var(--ink3,var(--cu-ink3))}
button.cu-mark{cursor:pointer}
button.cu-mark::before{content:"";position:absolute;inset:-12px}   /* 44 x 44 to press, the drawing stays 20 */
.cu-mark.cu-mark-tight{margin:-1px 0}   /* beside an 18-high field label: the row of fields still lines up */

/* ==== DESIGN_SYSTEM v2 (#417, ?v=19): copied from handoff/design/spec-v2/components_v2.html and handoff/design/arm/arm_spec.html "规格本体". ==== */
/* 共用琥珀、青、琥珀淡底（DESIGN_SYSTEM v2 §2.1；跟 --cu-red 同一种写法；cu-arm 规格页那一行一样） */
:root{--cu-amber:#b54708;--cu-teal:#0f7b70;--cu-amber-bg:rgba(181,71,8,.08);--cu-red-bg:rgba(180,35,24,.08);--cu-hov2:#ececec}
html.inv,.cu-dark{--cu-amber:#fdb022;--cu-teal:#4cc9b4;--cu-amber-bg:rgba(253,176,34,.12);--cu-red-bg:rgba(249,112,102,.12);--cu-hov2:#303030}

/* §3.1 按钮滑过 / 按下（只有滑鼠才有滑过；按下只缩按钮本身） */
.cu-btn,.cu-ico,.cu-ico.cu-clear{transition:background-color .15s ease-out,color .15s ease-out,box-shadow .15s ease-out,filter .15s ease-out,transform .15s ease-out,opacity .2s ease-out}
@media (hover:hover){
  .cu-btn:not(.cu-pri,.cu-txt):not(:disabled):hover,.cu-ico:not(.cu-clear):not(:disabled):hover{background:var(--cu-hov2)}
  .cu-btn.cu-txt:not(:disabled):hover{background:var(--cu-hover)}.cu-btn.cu-txt.cu-red:not(:disabled):hover{background:var(--cu-red-bg)}
  html:not(.inv) .cu-btn.cu-pri:not(:disabled):hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 4px 12px rgba(0,0,0,.18)}   /* ui-ok: DESIGN_SYSTEM v2 §3.1, the primary button's lit edge on hover (white theme only) */
  html.inv .cu-btn.cu-pri:not(:disabled):hover{filter:brightness(1.04)}   /* 黑底：亮边、影不动，只把亮的往上加（光） */
}
.cu-btn:not(:disabled):active,.cu-ico:not(:disabled):active{transform:scale(.96);transition-duration:.08s}

/* §3.2 整行钮 cu-add（Finance .fn-add）· 再显示 cu-more（RR .pyt-morebar） */
.cu-add{display:flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:100%;height:40px;padding:0 16px;border:1.5px dashed var(--cu-hair);border-radius:12px;
  background:none;color:var(--cu-ink2);font-family:inherit;font-size:13px;font-weight:500;line-height:1;cursor:pointer;transition:color .15s ease-out,border-color .15s ease-out}
@media (hover:hover){.cu-add:hover{color:var(--cu-ink);border-color:var(--cu-ink4)}.cu-more:hover{color:var(--cu-ink)}}
/* 放在「页面反色的卡」上的 cu-add（G19，Design 11-18 收进共用）。cu-ondark ＝「放在反色卡上」，不是「深色」——
   所以永远两组：白底卡一组、html.inv 一组。值照组 9 在两种皮肤量过的那一组，外观一字不差。
   第三个元件再要反色版时，才把这整套改成 cu-rev 翻整组 token（Design 11-18）。 */
.cu-add.cu-ondark{color:inherit;border-color:rgba(255,255,255,.4)}   /* ui-ok: 这张卡在两种皮肤都是页面的反色，没有任何主题 token 指对方向；值是组 9 在两种皮肤量过的那一组 */
html.inv .cu-add.cu-ondark{border-color:rgba(0,0,0,.25)}   /* ui-ok: 同上，html.inv 那一半 */
@media (hover:hover){.cu-add.cu-ondark:hover{color:inherit;border-color:rgba(255,255,255,.72)}   /* ui-ok: 上面那条的 hover */
  html.inv .cu-add.cu-ondark:hover{border-color:rgba(0,0,0,.45)}}   /* ui-ok: 同一个 hover 的 html.inv 那一半 */
.cu-more{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;height:44px;margin:0;padding:0;border:0;border-top:1px solid var(--cu-div);
  background:none;color:var(--cu-ink2);font-family:inherit;font-size:13px;font-weight:500;line-height:1;cursor:pointer;transition:color .15s ease-out}
.cu-more > span{min-width:84px;text-align:center}.cu-more svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .38s cubic-bezier(.32,.72,0,1)}
.cu-more[aria-expanded=true] svg{transform:rotate(180deg)}
.cu-more-x{display:grid;grid-template-rows:0fr;transition:grid-template-rows .6s cubic-bezier(.32,.72,0,1)}.cu-more-x.on{grid-template-rows:1fr}.cu-more-x > div{min-height:0;overflow:hidden}   /* 面板展开 .6 s（§6.4）；cu-pick-x .28 s 是「一列下面打开东西」，不一样 */

/* §3.4 弹窗：两档新宽度 · 打开后顶端锁住（cuDlgPin）· 脚的「先问一下」（cuGuard）· 关掉后 0.5 秒挡住穿透的点按 */
.cu-dlg.cu-w440{width:440px}.cu-dlg.cu-w860{width:860px}
.cu-pin{align-items:flex-start!important}   /* 房间的遮罩（flex 置中）加这个 = 顶端锁住；JS 给弹窗 margin-top + max-height */
.cu-df{position:relative}
.cu-df > :not(.cu-btn,.cu-ask){transition:opacity .2s ease-out}
.cu-ask{position:absolute;inset:0;display:flex;align-items:center;gap:10px;padding:16px 24px 22px;opacity:0;visibility:hidden;transition:opacity .2s ease-out,visibility 0s .2s}
.cu-ask > b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;color:var(--cu-ink)}
.cu-df.cu-asking > :not(.cu-ask){opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease-out,visibility 0s .2s}   /* 盖住的按钮 Tab 不到 */.cu-df.cu-asking > .cu-ask{opacity:1;visibility:visible;transition:opacity .2s ease-out}
.cu-shield{position:fixed;z-index:30000}
@media (max-width:640px){.cu-dlg.cu-w440,.cu-dlg.cu-w860{width:100%;max-width:100%}.cu-ask{gap:8px}.cu-ask > .cu-btn{padding:0 12px}.cu-ask > b{white-space:normal;line-height:16px}}   /* 手机问句可以折两行（32 px 放得进 40 高），不切字 */

/* §3.5 侧面板 cu-side（右边 520 = cu-help 同宽，手机从下往上 88vh） */
.cu-side{position:fixed;z-index:515;top:12px;right:12px;bottom:12px;box-sizing:border-box;width:520px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;border-radius:24px;
  background:var(--cu-pnl);color:var(--cu-ink);border:1px solid var(--cu-dlg-bd);box-shadow:var(--cu-dlg-sh);transform:translateX(calc(100% + 24px));visibility:hidden;
  transition:transform .28s cubic-bezier(.55,0,.8,.2),visibility 0s .28s}
.cu-side.on{transform:none;visibility:visible;transition:transform .38s cubic-bezier(.32,.72,0,1),visibility 0s}
@media (max-width:640px){.cu-side{top:auto;left:0;right:0;bottom:0;width:100%;max-width:100%;height:88vh;border-radius:24px 24px 0 0;transform:translateY(100%)}.cu-side.on{transform:none}}

/* §3.8 状态记号：错了（红）· 小号 18 · 还没开始（空心、没有时钟） */
.cu-mark-bad circle{fill:var(--cu-red);stroke:none}.cu-mark-bad path{stroke:var(--cu-mark-ink)}
.cu-mark-none circle{fill:none;stroke:var(--ink3,var(--cu-ink3));stroke-width:1.5}
.cu-mark.cu-mark-sm,.cu-mark.cu-mark-sm svg{width:18px;height:18px}.cu-mark.cu-mark-sm svg{stroke-width:1.6}button.cu-mark.cu-mark-sm::before{inset:-13px}   /* 18 + 26 = 44 */

/* §3.9 勾选框 cu-box（= cu-pick cu-multi 那个方块：勾了强调色实心 + 8 px 小方块，同一个记号；Build 把两份合成一条选择器） */
.cu-box{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:none;color:var(--cu-ink);font-family:inherit;font-size:14px;font-weight:400;line-height:1.3;text-align:left;cursor:pointer}
.cu-box:disabled{opacity:.45;cursor:default}

/* §3.13 筛选胶囊 cu-filter（选中 = 1.5px 墨色框，跟 CRM 人 chip、漏斗有勾同一个记号） */
.cu-filter{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:32px;padding:0 12px;border:0;border-radius:999px;background:var(--cu-hover);color:var(--cu-ink2);
  font-family:inherit;font-size:13px;font-weight:500;line-height:1;white-space:nowrap;box-shadow:inset 0 0 0 0 var(--cu-ink);transition:box-shadow .15s ease-out,color .15s ease-out}button.cu-filter{cursor:pointer}
.cu-filter[aria-pressed=true],.cu-filter.cu-on{color:var(--cu-ink);box-shadow:inset 0 0 0 1.5px var(--cu-ink)}
.cu-filter > .cu-fx{position:relative;display:grid;place-items:center;width:12px;height:12px;margin-right:-4px;padding:0;border:0;background:none;color:var(--cu-ink3);cursor:pointer}
.cu-filter > .cu-fx::before{content:"";position:absolute;inset:-8px}.cu-filter > .cu-fx svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
@media (hover:hover){.cu-filter > .cu-fx:hover{color:var(--cu-ink)}}@media (max-width:640px){.cu-filter > .cu-fx::before{inset:-16px}}   /* 手机点按 44 */

/* §3.19 载入 cu-spin · 忙 cu-busy · 空状态 cu-empty */
.cu-spin{display:inline-block;flex:none;box-sizing:border-box;width:24px;height:24px;border-radius:50%;border:2px solid var(--cu-hair);border-top-color:var(--cu-ink3);opacity:0;animation:cuSpin .8s linear infinite,cuSpinIn .2s 1s forwards}   /* 很快就好的不出现：1 秒后才淡进来（同 Finance .fn-wait 的延迟） */
.cu-btn .cu-spin{opacity:1;animation:cuSpin .8s linear infinite}   /* 按钮里的由 cuBusy 自己等 1 秒 */
@keyframes cuSpinIn{to{opacity:1}}
.cu-spin.cu-12{width:12px;height:12px;border-width:1.5px}.cu-spin.cu-18{width:18px;height:18px}
@keyframes cuSpin{to{transform:rotate(360deg)}}
.cu-btn[aria-busy=true]{cursor:default;pointer-events:none}   /* 不用 disabled：主按钮不会变灰、次要不会变淡（§3.19 不变淡） */
.cu-btn .cu-ok{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16;stroke-dashoffset:16;animation:cuOkDraw .34s cubic-bezier(.22,1,.36,1) forwards}@keyframes cuOkDraw{to{stroke-dashoffset:0}}.cu-btn[aria-busy=true] .cu-spin{border-color:currentColor;border-top-color:transparent;opacity:.7}
.cu-empty{margin:0;padding:28px 0;font-size:13px;font-weight:400;line-height:20px;color:var(--cu-ink3);text-align:center}
.cu-empty.cu-l{padding:18px 0;text-align:left}

/* §3.20 警示框 cu-note（Finance .fn-warn） */
.cu-note{display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;border-radius:14px;padding:12px 14px;font-size:12px;line-height:1.55;background:var(--cu-amber-bg);color:var(--cu-amber)}
.cu-note.cu-red{background:var(--cu-red-bg);color:var(--cu-red)}
.cu-note > .cu-mark{margin:-0.5px 0}   /* 白底琥珀、红的淡底几乎一样：前面放 18 的 cu-mark-doubt / cu-mark-bad 分开（审查 r1） */.cu-note > span:not(.cu-mark){flex:1;min-width:0}.cu-note > .cu-btn{margin:-4px -4px -4px 0}

/* §3.21 标签 cu-lz（手册那份收进来） */
.cu-lz{box-sizing:border-box;display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;font-family:inherit;font-size:11px;font-weight:500;line-height:1;white-space:nowrap;background:var(--cu-hover);color:var(--cu-ink2)}
.cu-lz.cu-amb{background:var(--cu-amber-bg);color:var(--cu-amber)}.cu-lz.cu-red{background:var(--cu-red-bg);color:var(--cu-red)}   /* .amb / .red 撞名（lobby.html 有 .amb）→ cu-amb / cu-red */

@media (prefers-reduced-motion:reduce){
  .cu-btn,.cu-ico,.cu-ico.cu-clear,.cu-add,.cu-more,.cu-more svg,.cu-more-x,.cu-df > *,.cu-ask,.cu-df.cu-asking > .cu-ask,.cu-side,.cu-side.on,.cu-box > i,.cu-box > i::after,.cu-filter{transition:none}
  .cu-btn:not(:disabled):active,.cu-ico:not(:disabled):active{transform:none}
  .cu-spin,.cu-btn .cu-spin,.cu-spin.cu-12,.cu-spin.cu-18{animation:none;opacity:1;border:0;width:auto;height:auto}.cu-spin::after{content:"···";color:currentColor;font-size:12px;letter-spacing:1px}
  .cu-btn .cu-ok{animation:none;stroke-dashoffset:0}
  .cu-dlg{animation:none}
}

/* 按两下才生效（cu-arm）。第一下换样子，3.5 秒内按第二下才做；没按就还原。
   颜色只看一件事：会删掉一笔存好的纪录 = 红；只改状态或连结 = 琥珀。
   三种大小：A 有字的按钮 → 「Sure? 动词」（数得出几笔加「 · 3 orders」），只会变宽；
             B 宽度固定的按钮 → 原宽里只写「Sure?」；C 图示钮 × → 同大小、整颗填色，× 照旧。
   颜色在 .cu-arm 自己身上取（白底页面里的 .cu-dark 也对）；红用 cit-ui 的 --cu-red。 */
.cu-arm{--cu-arm-rt:#fff;color:var(--cu-amber)!important;text-decoration-color:var(--cu-amber)!important;white-space:nowrap;touch-action:manipulation;transition:color .15s ease-out,background-color .15s ease-out}
html.inv .cu-arm,.cu-dark .cu-arm{--cu-arm-rt:#0a0a0a}   /* 黑底的红 #f97066 上白字只有 2.8:1，黑字 7.1:1 */
.cu-arm.cu-arm-r{background:var(--cu-red)!important;color:var(--cu-arm-rt)!important;text-decoration:none!important}
.cu-arm.cu-arm-r:is(.cu-btn,.cu-ico){border-radius:999px}   /* 选单里的一列（Void）保留选单自己的圆角 */
.cu-btn.cu-txt.cu-arm-r{padding:0 12px}   /* 文字按钮（Delete this day）变红胶囊，跟小按钮同高 28 */
.cu-arm.cu-arm-fit{padding-left:0!important;padding-right:0!important}   /* B：宽度由 JS 锁在原宽 */
.cu-ico.cu-arm.cu-arm-dot{background:var(--cu-amber)!important;color:var(--cu-mark-ink)!important}   /* C：大小不变，整颗填色 */
.cu-ico.cu-arm.cu-arm-dot.cu-arm-r{background:var(--cu-red)!important;color:var(--cu-arm-rt)!important}
.cu-arm-dot svg{stroke:currentColor}   /* C 里面还是原本的 ×（? 已经是 cu-mark-doubt「拿不准」，审查 r2 P1-5） */
.cu-ico.cu-arm:not(.cu-arm-dot){width:auto;padding:0 12px;font:500 12px/1 var(--font,inherit)}   /* A 的 ×：旁边有空位、要写几笔时（Promo）才长成胶囊 */
@media (prefers-reduced-motion:reduce){.cu-arm{transition:none}}



/* 作废 / 重复 / 已退：东西还在，只是不算了。名字用 void 不用 gone —— gone 是「不见了」，
   会让人拿它去隐藏东西（Design 11-18）；void 也是现场和单据上本来就在用的字（tr.void）。
   **不要把 opacity 焊进来**：全站 .45 ＝ 停用／不能按，是另一个意思；两个意思要叠两个 class，
   焊进来会让所有作废的行被二次调淡（Design 11-18，就是 finance.html:739 那一份的差别）。
   房间里现有 4 处状态选择器自己写同样两行（tr.void td.nv …）：那几处要改到产生 markup 的地方，
   不是删 CSS，所以排进 handoff/ux-pass，这一批没有换（Planner 11-18）。新写的一律用这个。 */
.cu-void{text-decoration:line-through;color:var(--cu-ink3)}

/* 行内文字按钮：看起来是字、**点了会发生事**。虚线底线是它唯一的记号，offset 一律 3。
   边界（Design 11-18）：**只给会发生事的，而且必须是真的 <button>**。只是解释用的（tooltip、
   有 title 的标签）不要用它 —— 现有 9 份里就混了这两种意思穿同一件衣服，差异清单在 handoff/ux-pass，
   哪些该统一由 Design 定。这一批不换任何一处，只立这一个定义。 */
.cu-inl{text-decoration:underline dotted;text-underline-offset:3px}
