/* DNA Ship web console. Colours and layout follow the 2026-09-17 mock-up (claude.ai artifact
   Fejm99YDG1pWJZ5MXSohT9); every colour is a token so dark mode only redefines the tokens. */
:root{
 color-scheme:light dark;
 --ground:#EEF2F0;--surface:#FFFFFF;--sunken:#F6F8F7;--line:#D9E1DD;--line-strong:#C3CEC8;
 --ink:#15211C;--muted:#5B6B64;--faint:#8A9892;
 --accent:#146B50;--accent-ink:#FFFFFF;--accent-soft:#DDEEE6;
 --amber:#A86A12;--amber-soft:#FBEFD9;--red:#B42318;--red-soft:#FBE3E0;--blue:#2F6690;--blue-soft:#E1ECF4;--ok:#1E7A4F;--ok-soft:#DFF1E7;
 --bar:#E3E9E6;--bar-ink:#33443D;
 --acc-gogo:#146B50;--acc-gogo-soft:#DDEEE6;--acc-meher:#2F6690;--acc-meher-soft:#E1ECF4;--acc-other:#7A4E9A;--acc-other-soft:#EEE5F4;
 --acc-amber:#8A5A12;--acc-amber-soft:#F6EAD6;--acc-teal:#0F6E75;--acc-teal-soft:#DDF0F1;--acc-rose:#A33A5B;--acc-rose-soft:#F7E3EA;
 --sans:"PingFang SC","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;
 --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,"Noto Sans SC",monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
 --ground:#0F1513;--surface:#161E1B;--sunken:#121916;--line:#26312C;--line-strong:#34423C;
 --ink:#E1E8E4;--muted:#98A8A0;--faint:#6C7C75;
 --accent:#3DB38A;--accent-ink:#06120D;--accent-soft:#17362A;
 --amber:#E0A13B;--amber-soft:#35290F;--red:#F07166;--red-soft:#3A1C19;--blue:#7DB3DB;--blue-soft:#172A38;--ok:#57C58F;--ok-soft:#15301F;
 --bar:#131B18;--bar-ink:#B7C5BE;
 --acc-gogo:#3DB38A;--acc-gogo-soft:#17362A;--acc-meher:#7DB3DB;--acc-meher-soft:#172A38;--acc-other:#C39BE0;--acc-other-soft:#2B2036;
 --acc-amber:#E0A13B;--acc-amber-soft:#35290F;--acc-teal:#4FC3C9;--acc-teal-soft:#12302F;--acc-rose:#F08BA8;--acc-rose-soft:#3A1C27;
}}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--ground);color:var(--ink);font:14px/1.5 var(--sans)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
a{color:var(--blue)}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.num{text-align:right;font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.error{color:var(--red);margin:0}
.grow{flex:1}
.offscreen{position:fixed;left:-9999px;top:0}
.btn{border:1px solid var(--line-strong);background:var(--surface);border-radius:6px;padding:6px 12px;font-size:13px;white-space:nowrap}
/* a button whose word changes while it works (刷新 ↔ 读取中…): both words in one cell, the other hidden, so it keeps one width (2026-10-28) */
.btn.steady{display:inline-grid;justify-items:center}.btn.steady>span{grid-area:1/1}.btn.steady>span.off{visibility:hidden}
.btn:hover{background:var(--sunken)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.small{padding:2px 8px;font-size:12px}
.btn:disabled{opacity:.55;cursor:default}
.in{border:1px solid var(--line-strong);border-radius:5px;background:var(--surface);padding:4px 7px;font:13px var(--mono);width:5.2em}
.in.wide{width:11em}
select.in{width:auto;font-family:var(--sans)}
label.check{display:inline-flex;align-items:center;gap:6px}

/* ---- sign in ---- */
.login{min-height:100%;display:grid;place-items:center;padding:16px}
.login-card{width:min(380px,100%);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:22px;display:grid;gap:10px}
.login-card h1{margin:0;font-size:20px}
.login-card p{margin:0}
.login-card input{border:1px solid var(--line-strong);border-radius:6px;padding:8px 10px;background:var(--sunken)}
.login-card .error{min-height:1.5em}
/* 申请账号 / 账号管理 (2026-10-06) */
.link-btn{border:0;background:none;padding:0;color:var(--accent);text-decoration:underline;justify-self:start;cursor:pointer;font:inherit}
.apply-result,.new-token{display:grid;gap:6px;padding:10px;border:1px dashed var(--line-strong);border-radius:6px;background:var(--sunken)}
.apply-result code,.new-token code{word-break:break-all;font:13px/1.4 var(--mono);user-select:all}
.users-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.users-list li{display:grid;gap:4px;padding:8px 10px;border:1px solid var(--line);border-radius:6px}
.users-list li.pending{border-style:dashed;border-color:var(--amber)}
.users-list li.revoked{opacity:.7}
.users-list .u-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.users-list .u-a{display:flex;flex-wrap:wrap;gap:6px}
.users-list .u-ext{display:inline-flex;align-items:center;gap:6px}.users-list .u-ext select{width:auto}
.users-add{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 12px}
.users-add .in{flex:1 1 10em;min-width:8em}   /* 新用户的名字 was cut to 新用户的 (Felix 2026-10-12 截图) */

/* ---- shell ---- */
.shell{height:100%;display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
/* the status bar runs under the whole window, the user's box sits on top of it (Felix 2026-10-01: 用户框和底栏对齐) */
.activity{grid-row:1;background:var(--bar);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:10px 6px;gap:4px}
.brand{font:600 12px/1.1 var(--sans);letter-spacing:.06em;color:var(--accent);text-align:center;padding:4px 0 12px}
.act{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px;border:0;background:transparent;border-radius:6px;color:var(--bar-ink);font-size:11px;position:relative}
.act svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.act:hover{background:var(--surface)}
.act[aria-current="page"]{color:var(--accent);background:var(--surface)}
.act[aria-current="page"]::before{content:"";position:absolute;left:-6px;top:8px;bottom:8px;width:3px;border-radius:0 2px 2px 0;background:var(--accent)}
.act .dot{position:absolute;top:4px;right:10px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--red);color:var(--surface);font:600 10px/16px var(--mono)}
/* red solid, amber an outline: told apart by shape (Felix 色弱), the page behind it showing through */
.act .dot.amber{background:transparent;color:var(--amber);box-shadow:inset 0 0 0 1.5px var(--amber)}
.act .dot.busy{background:var(--accent);color:var(--accent-ink)}
.act-spacer{flex:1}
.work{display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0}
.toolbar{display:flex;align-items:center;gap:10px;padding:10px 18px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap}
.toolbar h1{font:600 19px/1.2 var(--sans);margin:0}
.toolbar .sub{color:var(--muted);font-size:12px;overflow-wrap:anywhere;min-width:0}
/* tabs in groups (每天 / 回头看 above them): the title and the line after the tabs sit on the tabs' own line, not the bar's middle
   (Felix 2026-11-06: 「安排表的柜」那一行要么就往下放一点，和左边的文字对齐) */
.toolbar:has(.tab-grp){align-items:last baseline}
.view-actions{display:flex;gap:8px;flex-wrap:wrap}
.main{overflow:auto;padding:18px;min-height:0}
.view{display:none}
.view.on{display:block}
.banner{margin:0 0 14px;padding:10px 14px;border-radius:8px;background:var(--red-soft);color:var(--red)}
.status{grid-column:1/3;display:flex;gap:16px;align-items:center;padding:4px 14px calc(4px + env(safe-area-inset-bottom,0px));background:var(--accent);color:var(--accent-ink);font-size:12px;flex-wrap:wrap;min-width:0}
.status span{white-space:nowrap}
.status .src.late{font-weight:600}
.new-build{position:fixed;right:16px;bottom:34px;z-index:30;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:13px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.toast{position:fixed;left:50%;bottom:44px;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:8px 14px;border-radius:8px;font-size:13px;z-index:20;max-width:calc(100% - 32px)}

/* ---- panels ---- */
.grid2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:start}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;min-width:0;margin-bottom:16px}
.panel-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.panel-h h2{font:600 15px/1.2 var(--sans);margin:0}
.panel-h .meta{font-size:12px;color:var(--muted)}
.panel-b{padding:12px 14px}
.panel-f{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid var(--line);flex-wrap:wrap}
.empty{padding:14px;margin:0;color:var(--muted)}
.own-note{padding:8px 14px 12px;margin:0;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.overview{font-weight:600;background:var(--sunken);border-radius:6px;padding:8px 10px;margin:0 0 10px}
.note-line{color:var(--amber);font-size:12px;margin:3px 0;overflow-wrap:anywhere}
.form-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
/* the 每晚 23:30 row above a system panel keeps clear of the panel's frame (Felix 2026-10-22 screenshot: the buttons sat on its edge) */
.night-row{margin:6px 0 14px;min-height:34px}
.night-row .night-at{width:4.6em;text-align:center}
.panel-h>.night-row{margin:0;min-height:0}           /* 火车站ETA · 提柜日期: each block's switch in its heading */
.form-row:first-child{margin-top:0}
.tabs{display:flex;gap:2px;background:var(--bar);border-radius:8px;padding:3px;margin-bottom:14px;overflow-x:auto}
.tabs button{border:0;background:transparent;border-radius:6px;padding:6px 12px;color:var(--bar-ink);white-space:nowrap;position:relative}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--accent);font-weight:600}
.tabs .tab-more{color:var(--muted);font-size:13px}
/* 两档 / 三档的文字开关 (约仓 自动确认 / 自动基础约, 盯约 关 / 只提醒 / 空出来就约, 到仓表 定时自动加, 共享 / 个人 …): the one chosen has ✓ before
   it and a frame around it, not the green word alone (Felix 色弱; 11/9 走查: its fill was 3 values off the bar's, nothing else told it apart).
   One rule for every such switch */
.tabs.calc-source button[aria-selected="true"],.tabs.calc-mode button[aria-selected="true"]{box-shadow:inset 0 0 0 1px var(--accent)}
.tabs.calc-source button[aria-selected="true"]::before,.tabs.calc-mode button[aria-selected="true"]::before{content:'✓ '}
/* 共享 / 个人 (Felix 2026-10-29; 到仓来源 before it): two real choices that change the box and the FC 统计 under them; small, in 到仓货量's
   head (Felix 2026-10-29 深夜: 这两个按钮占了比较多的空间), with what 共享 last saw happen beside them */
.calc-mode{padding:2px;margin-bottom:0;flex:none}
.calc-mode button{padding:3px 12px;font-size:12px;border-radius:5px}
.calc-mode-bar{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:0;font-weight:400}
.panel-h>.calc-mode-bar{margin-right:auto;align-self:center}
/* a header with 共享 / 个人: its title and its small words on the bar's line (Felix 2026-11-06: 和右边的「共享」的文字也要对齐) */
.panel-h:has(>.calc-mode-bar){align-items:center}
.calc-mode-said{min-width:0;overflow-wrap:anywhere;color:var(--muted)}
/* 哪个仓 (Felix 2026-11-12: 下拉选择仓库): one dropdown beside 货量's title for every sub-page (and 铁路 · 明天排柜); the title says the
   warehouse in words (货量 · 3600), the control is the full-site select.in */
/* 货量 · 245 ▾ (Felix 2026-11-12: 245 只写左边那个，右边给个小箭头选择): the warehouse is the title's own words — a native select without its
   box, the title's size and weight, a ▾ drawn after it (not the browser's); hover / focus show it can be pressed. At least 32 px to aim at,
   its margins giving the height back so the bar is no taller */
.wh-head{display:inline-flex;align-items:center;white-space:nowrap}
.wh-title{display:inline-flex;align-items:center;position:relative}
.wh-title.pick{margin-left:2px}
.wh-title .wh-select{appearance:none;-webkit-appearance:none;border:0;margin:-5px 0;height:34px;padding:0 22px 0 4px;border-radius:6px;background:transparent;
 color:inherit;font:inherit;cursor:pointer;field-sizing:content}
.wh-title .wh-select option{font:400 15px/1.4 var(--sans);color:var(--ink);background:var(--surface)}
.wh-title .wh-select:hover{background:var(--line)}
.wh-title .wh-select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.wh-title svg{position:absolute;right:5px;top:50%;width:13px;height:13px;margin-top:-6px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* the same in a panel's title (铁路 · 明天排柜 · 245 ▾, Felix 2026-11-13): its 15 px, the ▾ smaller, still 32 px to aim at */
.wh-title.sub .wh-select{height:32px;margin:-8px 0;padding:0 19px 0 3px}
.wh-title.sub svg{width:11px;height:11px;margin-top:-5px;right:4px}
.pick-wh-h{font:600 15px/1.2 var(--sans);margin:0}
.wh-only{margin:0 0 10px}
.board th small.calc-away{color:var(--muted);font-weight:600}
.team-said{margin:0;overflow-wrap:anywhere}
.team-said .btn{margin-left:4px}
.probable-item small{font-size:11px}
.tab-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--amber);margin-left:6px;vertical-align:1px}
.tab-dot.busy{background:var(--accent)}
/* 连接与故障's count: the 系统 button's amber badge (.act .dot.amber) inline — an outline with the number in it, not colour alone */
.tab-n{display:inline-block;min-width:16px;height:16px;padding:0 4px;margin-left:6px;border-radius:8px;font:600 10px/16px var(--mono);text-align:center;vertical-align:1px;box-sizing:border-box}
.tab-n.amber{color:var(--amber);box-shadow:inset 0 0 0 1.5px var(--amber)}
/* Every fold opens and closes the same way (Felix 2026-09-29: 自动收起的按钮有的大有的小，需要统一): one arrow,
   one size (a little larger than its line — Felix 2026-09-29: 13px was too small), one colour, on the left. */
details>summary{cursor:pointer;list-style:none}
details>summary::-webkit-details-marker{display:none}
/* The fold mark (Felix 2026-10-01 晚: 展开的那个箭头总是感觉很怪): one thin chevron drawn with two borders, the same size
   everywhere, pointing right when closed and turning down when open — not a text glyph that differs by font. */
details>summary::before{content:'';display:inline-block;flex:none;box-sizing:border-box;width:7px;height:7px;margin:0 10px 2px 3px;
 border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg);transition:transform .12s ease;vertical-align:middle}
details[open]>summary::before{transform:rotate(45deg);margin-bottom:4px}
details>summary:hover::before{border-color:var(--ink)}
details.group{border-top:1px solid var(--line)}
details.group>summary{cursor:pointer;padding:9px 14px;font-weight:500;display:flex;align-items:center;gap:8px;list-style:none}
details.group>summary .btn{margin-left:auto}

/* ---- tables ---- */
.scroll-x{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:13px}
th{font:500 11px/1.2 var(--sans);letter-spacing:.04em;color:var(--muted);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--sunken)}
td{padding:7px 10px;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
tr:last-child td{border-bottom:0}
td.fc{font:600 13px var(--mono);white-space:nowrap}
tr.sep td{background:var(--sunken);color:var(--muted);font-size:12px;padding:5px 10px}
tr.warn td{color:var(--red)}
td.note{color:var(--ink);max-width:14em}
.pill{display:inline-block;font-size:11px;line-height:1;padding:4px 6px;border-radius:4px;white-space:nowrap;margin:1px 6px 1px 0;vertical-align:1px}
.pill.red{background:var(--red-soft);color:var(--red)}.pill.amber{background:var(--amber-soft);color:var(--amber)}
.pill.blue{background:var(--blue-soft);color:var(--blue)}.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.plain{background:var(--sunken);color:var(--muted);border:1px solid var(--line)}
.chip-colour{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid var(--line-strong);margin-right:5px;vertical-align:-1px}
.barcell{display:flex;align-items:center;gap:8px;min-width:130px}
.bar{height:8px;border-radius:2px;background:var(--accent-soft);flex:1;position:relative;overflow:hidden}
.bar i{position:absolute;inset:0 auto 0 0;background:var(--accent)}
.bar i.est{background:repeating-linear-gradient(135deg,var(--accent) 0 4px,var(--accent-soft) 4px 7px)}

/* ---- today ---- */
/* 货量 (Felix 2026-09-22): the calculator has the page to itself, so the two-column split, the
   inner scrolling and the sticky headers it needed are gone. 可发 holds the arithmetic, 建议 the
   conclusion; both stay narrow so neither is cut off. */
td.trucks{white-space:nowrap}
td.trucks small{display:block}
.chip.ghost{border:1px dashed var(--amber);background:transparent;color:var(--amber);font-size:11px}
.chip.ghost.done{border-color:var(--ok);color:var(--ok)}
.chip.ghost.move{border-color:var(--red);color:var(--red)}
.basket-bad{margin:6px 0 0;color:var(--red);font-size:12px}
.basket-missing{margin:4px 0 0;color:var(--amber);font-size:12px}
.ok-line{color:var(--ok);margin:8px 0 0}
.in.small{width:72px}
.dot-on{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ok);margin-left:6px;vertical-align:1px}
.change{display:flex;gap:8px;align-items:baseline;margin:4px 0}
.change .when{color:var(--faint);font:400 11px/1.4 var(--mono);white-space:nowrap}
.other-item{display:inline-block;margin-right:14px;color:var(--muted)}
tr.mix-row td{border-top:1px solid var(--line-strong)}
.wb-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.wb-line p{margin:0}
.source-help{margin:0 0 10px;font-size:12px}
.who{padding:6px 4px;text-align:center;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.who b{display:block;font-size:12px;color:var(--ink);font-weight:600}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border-radius:8px;overflow:hidden;border:1px solid var(--line);margin-bottom:16px}
.kpi{background:var(--surface);padding:12px 14px;display:grid;gap:4px;min-width:0}
.kpi .l{font-size:12px;color:var(--muted)}
.kpi .n{font:600 26px/1 var(--sans);font-variant-numeric:tabular-nums}
.kpi .d{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.kpi.red .n{color:var(--red)}.kpi.amber .n{color:var(--amber)}
.kpi.red.on{background:var(--red-soft)}.kpi.amber.on{background:var(--amber-soft)}      /* only when there is something */
.alert{display:grid;grid-template-columns:5px minmax(0,1fr) auto;gap:10px 12px;padding:10px 14px 10px 0;border-bottom:1px solid var(--line)}
.alert:last-child{border-bottom:0}
.alert .edge{border-radius:0 3px 3px 0}
.alert.red .edge{background:var(--red)}.alert.amber .edge{background:var(--amber)}.alert.blue .edge{background:var(--blue)}
/* 色弱 (2026-10-28 scan): red's edge solid, amber's dashed, and 要紧 written on a red card */
.alert.amber .edge{background:repeating-linear-gradient(to bottom,var(--amber) 0 7px,transparent 7px 11px)}
.alert .lvl-word{display:inline-block;font-size:11.5px;font-weight:700;line-height:1.3;color:var(--red);border:1.5px solid var(--red);border-radius:4px;padding:0 4px;margin-right:6px;vertical-align:1px}
.alert.flash{outline:2px solid var(--accent);outline-offset:-2px;transition:outline-color .3s}
/* Felix 2026-09-21: the three levels looked alike, so the ones that need doing carry their colour
   across the whole row — red filled, amber tinted, blue left plain. */
.alert.red{background:var(--red-soft)}
.alert.amber{background:var(--amber-soft)}
.alert.red .t,.alert.amber .t{font-weight:600}
.alert.red .d,.alert.amber .d{color:var(--ink);opacity:.75}
.alert.red .pill.red{background:var(--red);color:var(--surface)}
.alert.amber .pill.amber{background:var(--amber);color:var(--surface)}
.alert .t{font-weight:500;overflow-wrap:anywhere}
.alert .d{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.alert .acts{display:flex;gap:6px;align-items:start;flex-wrap:wrap;justify-content:flex-end}
/* Felix 2026-09-21 (中等折叠): an amber reminder shows its title and folds the reasoning behind it,
   so a segment reads as a list of conclusions. Red keeps its detail in the open. */
.alert details.why>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:6px}
.alert details.why>.d{margin-top:4px}
.panel.segment>.panel-h h2{font-size:16px}
.sub-h{padding:9px 14px;font:600 13px/1.3 var(--sans);color:var(--muted);border-top:1px solid var(--line)}
.hidden-note{padding:8px 14px;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.hidden-note button{border:0;background:none;color:var(--blue);padding:0;font-size:12px}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{display:grid;grid-template-columns:86px minmax(0,1fr);gap:10px;padding:9px 14px;border-bottom:1px solid var(--line)}
.timeline li:last-child{border-bottom:0}
.timeline .when{font:12px/1.4 var(--mono);color:var(--muted)}
.timeline .what{font-weight:500}
.timeline .d{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.step{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:10px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line)}   /* 5 columns since the 做完了 tick (2026-10-18) */
.step:last-child{border-bottom:0}
.step .t{font-weight:500}
.step .d{font-size:12px;color:var(--muted)}
.state{width:10px;height:10px;border-radius:50%;border:2px solid var(--line-strong)}
.state.done{background:var(--ok);border-color:var(--ok)}
.state.now{border-color:var(--amber);background:var(--amber-soft)}

/* ---- basket ---- */
.basket{display:grid;gap:6px}
.basket-input{width:100%;min-height:54px;max-height:180px;resize:vertical;border:1px solid var(--line-strong);border-radius:6px;padding:7px 9px;background:var(--sunken);font:13px/1.5 var(--mono)}
/* Beside the FC table the box fills its column, so the two sides end level (Felix 2026-09-22). */
.paste-box .basket{height:100%;grid-template-rows:minmax(0,1fr) auto auto auto}
.paste-box .basket-input{height:100%;min-height:150px;max-height:none}
.basket-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.basket-count{font-size:12px;color:var(--muted)}
.basket-count.warn{color:var(--red)}

/* ---- FC and calculator ---- */
.sources{margin-bottom:8px}
.sources>summary{cursor:pointer;padding:4px 0;color:var(--blue)}
.sources strong{display:block;margin:0 0 2px;font-size:13px}
.source-line{font-size:13px;margin:1px 0 1px 10px}
.source-line a{font-family:var(--mono)}
/* 来源柜号 used to be one tall column down the left (Felix 2026-09-22: 重新设计一下空间). */
.source-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px 18px;margin-top:8px}
.source-block{min-width:0;break-inside:avoid}
/* The paste box sits beside the FC table, which is four narrow columns (Felix 2026-09-22). */
.fc-beside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);gap:16px;align-items:start}
.fc-beside>*{min-width:0}
/* 到仓货量 folded with a container left out (走查 2026-11-09): the red box alone under the head, the paste box back with 展开 */
.fc-beside.alert-only{grid-template-columns:minmax(0,1fr)}
.fc-beside.alert-only .paste-box{display:none}
.fc-beside.alert-only .not-counted{margin-bottom:0}
.advice-read{margin-top:4px}
.paste-box{align-self:stretch}
.source-status{color:var(--muted)}
/* 到仓未卸 (Felix 2026-09-22: 把打勾的部分设计的稍微大一点) — one readable item per container. */
.probable{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:var(--sunken)}
.probable-h{margin:0 0 8px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.probable-h .muted{font-size:12px}
.probable-list{display:flex;flex-wrap:wrap;gap:6px 10px}
.probable-item{border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);padding:5px 10px;font-size:13px;cursor:pointer}
.probable-item input{width:15px;height:15px}
.probable-item:has(input:checked){border-color:var(--amber);background:var(--amber-soft)}
table.calc td{vertical-align:middle}
/* numbers sit under their header (Felix 2026-09-23: 下面的数字和上面的表头不对应) */
table.calc th.num,table.calc td.num{text-align:center}
table.calc td.num .in{width:4.6em;text-align:center}
table.calc td.appts div{white-space:nowrap}
/* 几点够 (Felix 2026-11-04: 也做成侧栏的形式): the row keeps its sentences as a quiet button, the day in the drawer */
table.lookup-lines{margin:6px 0 4px 18px;border-collapse:collapse}table.lookup-lines th{text-align:left;font-weight:600;color:var(--muted)}table.lookup-lines th,table.lookup-lines td{padding:2px 14px 2px 0;vertical-align:top}table.lookup-lines td.num{text-align:right}
table.calc td.appts .ready-open{display:block;margin-top:3px;max-width:24em;border:0;background:none;padding:0;font:inherit;font-family:var(--sans);font-size:12px;color:var(--muted);text-align:left;line-height:1.35;white-space:normal;cursor:pointer}
table.calc td.appts .ready-open::after{content:' ›'}
table.calc td.appts .ready-open:hover{color:var(--accent)}
table.calc td.appts .ready-open.on{color:var(--ink);font-weight:600}
.ready-said p{margin:0 0 4px;font-weight:600}
.ready-how{font-family:var(--sans);margin:6px 0 2px;line-height:1.45}
.ready-how table.ready-t{border-collapse:collapse;margin:4px 0;width:auto}
.ready-how .ready-t th,.ready-how .ready-t td{padding:2px 12px 2px 0;font-size:13px;text-align:left;border:0;vertical-align:top;white-space:nowrap}
.ready-how .ready-t td.mono{white-space:normal}
.ready-how .ready-t td.num{text-align:right}
.ready-how .ready-t th{color:var(--muted);font-weight:500}
.ready-how .ready-t tr.pick td{font-weight:600;border-top:1px dashed var(--line)}
.ready-how .ready-t tr.have td{border-bottom:1px solid var(--line);padding-bottom:4px}
.ready-how .ready-t tr.have td:nth-child(2){white-space:normal}
.order-said p{margin:0 0 6px}
.ready-how .order-t td.why{white-space:normal;min-width:12em}
.ready-how .order-t td.c{white-space:nowrap}
.ready-how .order-t tr.moved td:first-child{font-weight:600}
.panel-h .fold-said{color:var(--muted);margin-left:4px}
/* 明天的约 opened right here (2026-10-29 深夜: 货量和预约来回跳): each a quiet link, the head a button when some are not allocated */
table.calc .appt-link{border:0;background:none;padding:0;font:inherit;color:var(--ink);cursor:pointer;text-decoration:underline dotted var(--muted);text-underline-offset:3px}
table.calc .appt-link:hover{color:var(--accent);text-decoration-color:var(--accent)}
table.calc .th-btn{border:0;background:none;padding:0;font:inherit;color:inherit;letter-spacing:inherit;cursor:pointer;text-align:left}
table.calc .th-btn .loose-n{color:var(--red);font-weight:600}
table.calc .th-btn:hover{color:var(--accent)}
table.calc td.appts .stg{margin-left:5px;font:600 10px var(--sans);color:var(--muted)}table.calc td.appts .stg.s0{color:var(--red)}
/* 可用 最少 / 最多: what the appointments are decided on (Felix 2026-10-20 深夜) — bigger, bolder, a shade apart */
table.calc th.key{color:var(--ink)}
table.calc td.key{background:var(--sunken);font-size:17px;white-space:nowrap}
table.calc td.key .lo{font-weight:800}
table.calc td.key .hi{font-weight:600;font-size:15px}
table.calc td.key .star{font-size:12px;color:var(--muted);margin-left:1px}

/* ---- rail ---- */
.arrange-form{display:flex;gap:4px;align-items:center;flex-wrap:nowrap}
.in.date{width:9.5em;font-family:var(--sans)}
.arrange-result{padding:10px 14px;border-bottom:1px solid var(--line);background:var(--sunken)}
table.section-preview td{padding:4px 8px;background:var(--surface)}
table.section-preview tr.new td{background:var(--accent-soft);font-weight:600}
table.rail td{padding:6px 8px}
table.rail.cols{table-layout:fixed;min-width:1080px}
table.rail.cols th{white-space:normal}
.rc0{width:12%}.rc1{width:5%}.rc2{width:20%}.rc3{width:7%}.rc4{width:8%}.rc5{width:14%}.rc6{width:24%}.rc7{width:10%}
.company{margin:6px 0 10px}
.company-h{display:flex;align-items:center;gap:8px;margin-bottom:4px}

/* ---- appointments ---- */
.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:10px 14px}
.legend span{display:inline-flex;align-items:center;gap:6px}
.board{border-collapse:separate;border-spacing:3px;width:auto;min-width:100%}
.board th{background:none;border:0;padding:2px 4px;text-align:center;font:500 11px/1.2 var(--mono)}
.board th small{display:block;color:var(--faint);font-family:var(--sans)}
.board td{border:0;padding:3px;border-radius:4px;background:var(--sunken);min-width:62px;vertical-align:top}
.board td.fcn{background:none;font:600 12px var(--mono);white-space:nowrap;vertical-align:middle;min-width:0}
.board td.fcn small{display:block;font:400 10px var(--sans);color:var(--faint)}
.board td.gap{background:var(--blue-soft)}
.board td.unrec{background:transparent;box-shadow:inset 0 0 0 1px var(--line-strong)}
.board td.today{box-shadow:inset 0 0 0 1px var(--line-strong)}
.chip{display:flex;align-items:center;gap:4px;width:100%;border:1px solid transparent;border-radius:4px;padding:2px 4px;margin:1px 0;font:11px/1.3 var(--mono);text-align:left;background:var(--acc-other-soft);color:var(--acc-other)}
.chip.acc-gogo{background:var(--acc-gogo-soft);color:var(--acc-gogo)}
.chip.acc-meher{background:var(--acc-meher-soft);color:var(--acc-meher)}
.chip b{font-weight:600}
.chip.issue-missing{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.chip.issue-time,.chip.issue-account{border-color:var(--amber)}
.chip.amazon-only{background:transparent;border:1px dashed var(--line-strong);color:var(--muted)}
.chip .mark{margin-left:auto;font-weight:700}
.chip.issue-missing .mark{color:var(--red)}.chip.issue-time .mark,.chip.issue-account .mark{color:var(--amber)}.chip.issue-moved .mark{color:var(--muted);font-weight:400}
.swatch{width:14px;height:10px;border-radius:2px;display:inline-block}
.swatch.gogo{background:var(--acc-gogo-soft);border:1px solid var(--acc-gogo)}.swatch.meher{background:var(--acc-meher-soft);border:1px solid var(--acc-meher)}
.swatch.gap{background:var(--blue-soft)}.swatch.dash{border:1px solid var(--line-strong)}.swatch.only{border:1px dashed var(--line-strong)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 14px;display:grid;gap:8px;min-width:0;align-content:start;overflow-wrap:anywhere}   /* align-content: a short card's rows were spread over its height beside a tall one (2026-10-18) */
.card h3{margin:0;font:600 16px/1.2 var(--mono);display:flex;justify-content:space-between;gap:6px 8px;align-items:center;flex-wrap:wrap}
/* the name keeps its line; the pills wrap under it (2026-10-21: 「没有进行中的预约」 squeezed symn / zhangliu to one letter a line) */
.card h3 .acct-name{white-space:nowrap;margin-right:auto}
.card h3 .acct-key{font:400 11px var(--mono);color:var(--muted);margin-left:6px}
.card dl{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;font-size:13px}
.card dt{color:var(--muted)}
.card dd{margin:0;overflow-wrap:anywhere}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.metric{background:var(--sunken);border-radius:6px;padding:6px 8px;display:grid}
.metric .l{font-size:11px;color:var(--muted)}
.metric .v{font:600 16px var(--mono)}
.metric.red .v{color:var(--red)}.metric.amber .v{color:var(--amber)}.metric.ok .v{color:var(--ok)}
.metric .w{font-size:11px;color:var(--muted)}.metric.red .w{color:var(--red);font-weight:600}          /* over the line / near it in words (2026-10-28) */

/* ---- sheets ---- */
.apply-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--sunken);border-radius:8px 8px 0 0;flex-wrap:wrap;position:sticky;top:-18px;z-index:1}
table.actions td.before{color:var(--muted)}
table.actions td.after{font-weight:500}

/* ---- tasks ---- */
/* one line under the page (Felix 2026-10-14: 多个任务时占了四分之一的空间); the full list floats over the page when opened */
.tasks{background:var(--surface);border-top:1px solid var(--line);position:relative}
/* the task bar over the bottom of the page, not a row of its own (2026-10-30 scan: each minute's read showed it, the page and the two-week
   board under it went 33 px shorter and back — Felix: 两周预约界面时不时会刷新和跳动); the page keeps room for it at its end */
.work{position:relative}
.work>.tasks{position:absolute;left:0;right:0;bottom:0;z-index:5;box-shadow:0 -4px 12px rgba(0,0,0,.06)}
.work>.tasks:has(.tasks-pop){z-index:40}
.work>.main{padding-bottom:24px}            /* with a panel's own margin the bar (34 px) clears what ends a page; the board still reaches the bottom */
.tasks-bar{display:flex;align-items:center;gap:10px;padding:4px 18px;min-height:30px;font-size:12.5px;white-space:nowrap;overflow:hidden}
.tasks-bar strong{font-size:12px}
.tasks-bar .warn{color:var(--amber)}
.task-chip{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:340px;padding:2px 4px 2px 8px;border:1px solid var(--line);border-radius:999px;background:var(--sunken)}
.task-chip b{font-weight:600}
.task-chip .chip-msg{color:var(--muted);overflow:hidden;text-overflow:ellipsis;min-width:0}
.task-chip .chip-time{font:11.5px var(--mono);color:var(--muted)}
.task-chip .x{border:0;background:transparent;color:var(--muted);padding:0 4px;border-radius:999px;cursor:pointer}
.task-chip .x:hover{background:var(--line);color:var(--ink)}
.task-chip .spin{width:9px;height:9px;border-radius:50%;border:2px solid var(--accent);border-right-color:transparent;flex:none}
.quiet-line .spin{width:8px;height:8px;border-radius:50%;border:2px solid var(--muted);border-right-color:transparent;flex:none}
@media (prefers-reduced-motion:no-preference){.task-chip .spin,.quiet-line .spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}}
.tasks-pop{position:absolute;left:12px;right:12px;bottom:100%;margin-bottom:6px;max-height:45vh;overflow:auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.18);z-index:30}
.tasks-h{display:flex;align-items:center;gap:12px;padding:6px 18px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);flex-wrap:wrap}
.tasks-h strong{font-size:12px;color:var(--ink)}
.tasks-h .warn{color:var(--amber)}
.task{display:grid;grid-template-columns:110px minmax(0,1fr) 150px 56px auto;gap:12px;align-items:center;padding:6px 18px;border-bottom:1px solid var(--line);font-size:13px}
.task.other{color:var(--muted)}
.task .name{font-weight:500}
.task .msg{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prog{height:6px;border-radius:3px;background:var(--sunken);border:1px solid var(--line);overflow:hidden}
.prog i{display:block;height:100%;width:40%;background:var(--accent)}
.task .time{font:12px var(--mono);color:var(--muted);text-align:right}
.task .x{border:0;background:transparent;color:var(--muted);font-size:12px;padding:2px 6px;border-radius:4px}
.task button.x:hover{background:var(--sunken)}
table.jobs tr.failed td,table.jobs tr.needs_review td{color:var(--red)}
/* 用时 never wraps (2026-10-22 scan at 1440: 0:02 broke into two lines) */
table.jobs td:nth-child(3),table.jobs th:nth-child(3){white-space:nowrap}
@media (prefers-reduced-motion:no-preference){.prog i.run{animation:slide 1.4s ease-in-out infinite}@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}}

/* ---- drawer ---- */
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--surface);border-left:1px solid var(--line);box-shadow:-8px 0 24px rgba(0,0,0,.12);display:grid;grid-template-rows:auto 1fr;z-index:10}
.drawer-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.drawer-h h2{margin:0;font:600 16px var(--mono)}
.drawer-h .drawer-title-x{margin-right:auto}
#drawer-reset{margin-left:auto}
.drawer-b{overflow:auto;overscroll-behavior:contain;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-content:start;grid-auto-rows:max-content}
/* every row as tall as what is in it (Felix 2026-10-12, 侧栏: with more than fits, the grid shrank the rows and the steps box — overflow
   hidden, so its least height is 0 — was cut off; a min-height on the box instead let it spill over 改时间). The body scrolls. */
.drawer-b h3{margin:0 0 4px;font-size:13px;color:var(--muted);font-weight:500}
.drawer-b dl{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;font-size:13px}
.drawer-b dt{color:var(--muted)}.drawer-b dd{margin:0;overflow-wrap:anywhere}
/* nothing in the drawer makes it wider than itself (反馈 #30, Felix 2026-10-28: 侧栏被吞了一部分 — the 约仓 drawer's 账号 dropdown took the
   width of its longest line, 「自动分散（勾了「自动流程」的号之间…）」, 443 px in a 407 px drawer; the body's one column (auto) grew to it and
   every block went as wide, cut on the right): the column is the drawer's width (above, minmax(0,1fr)), a dropdown's label keeps to the
   row and the dropdown shrinks beside its word — the chosen line is cut in the box, the list opened shows every line whole */
.drawer-b .form-row>label:has(>select){display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;white-space:nowrap}
.drawer-b select.in{min-width:0;max-width:100%;text-overflow:ellipsis}
.ids{font:12px/1.6 var(--mono);max-height:220px;overflow:auto;background:var(--sunken);border-radius:6px;padding:6px 8px}

@media (max-width:900px){
 .grid2{grid-template-columns:minmax(0,1fr)}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .task{grid-template-columns:90px minmax(0,1fr) 50px auto}
 .task .prog{display:none}
}
@media (max-width:560px){
 .shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto}
 .activity{grid-row:auto;order:3;flex-direction:row;justify-content:space-around;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));border-right:0;border-top:1px solid var(--line)}
 .brand,.act-spacer{display:none}
 .act{flex:1;min-width:0;padding:6px 0}
 .act[aria-current="page"]::before{left:8px;right:8px;top:-4px;bottom:auto;width:auto;height:3px;border-radius:0 0 2px 2px}
 .work{order:1}
 .status{grid-column:1;order:2}
 .status .src.late~.src.late{display:none}          /* a phone: the first late source and the lamp */
 .status{gap:10px}
 .toolbar{padding:10px 16px}
 .main{padding:12px 16px}
 .alert{grid-template-columns:4px minmax(0,1fr)}
 .alert .acts{grid-column:2;justify-content:flex-start}
 .timeline li{grid-template-columns:70px minmax(0,1fr)}
 .step{grid-template-columns:auto minmax(0,1fr) auto}
 .step .pill{display:none}
 .apply-bar{top:-12px}
}
.forecast-detail p{margin:4px 0}
.later .suggestion{margin:4px 0}
.suggestion{margin:6px 0}
.suggestion .pill{margin-right:4px}
/* Which appointment to move first, and why it is the cheap one (Felix 2026-09-21). */
.suggestion .first-move{color:var(--blue);font-size:12px}
table.later-grid td.num{text-align:center;min-width:64px}
table.later-grid td.extra{background:var(--amber-soft,rgba(245,158,11,.14))}
table.later-grid td.unused{background:var(--red-soft,rgba(220,38,38,.10))}
table.later-grid small{display:block}
/* 外仓 on one line (走查 2026-11-09), as 货量 · 统计's */
table.later-grid tr.sum td.fc{font-weight:600}table.later-grid tr.sub td.fc{padding-left:1.2em}
/* 3600 · 后几天够不够 (Felix 2026-11-09 下午): the word says it (色弱), the colour only follows; 推 = 今日存量按推算 */
table.wh-later-grid td.wh-day{text-align:center;min-width:76px}
table.wh-later-grid td.wh-day.more b{color:var(--amber)}table.wh-later-grid td.wh-day.less b{color:var(--red)}table.wh-later-grid td.wh-day.ok b{color:var(--ok)}
table.wh-later-grid td.wh-day.more{box-shadow:inset 0 0 0 1px var(--amber)}table.wh-later-grid td.wh-day.less{outline:1px dashed var(--red);outline-offset:-2px}
table.calc td.key .star.derived{font-size:11px;border:1px dashed var(--muted);border-radius:3px;padding:0 2px;margin-left:3px;cursor:help}
.busy-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.busy-chip{border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);padding:2px 10px;font:12px/1.4 var(--mono)}
.busy-chip.on{background:var(--amber-soft);border-color:var(--amber);color:var(--amber);font-weight:600}
.later .suggestion.relaxed{opacity:.75}
.todos .todo{display:flex;gap:8px;align-items:center;padding:4px 0;border-bottom:1px solid var(--line)}
.todos .todo:last-of-type{border-bottom:0}
.todos .form-row{margin-top:8px}

/* 已约未提 · 核对 (Felix 2026-09-22): one line per appointment, saying whether the pickup day was
   read from the APPT sheet or worked out from the lead-time rule. */
.commit-check .company{margin:8px 0}
.commit-line{display:flex;align-items:center;gap:8px;padding:3px 0;flex-wrap:wrap}
.commit-line .muted{font-size:12px}
.commit-line .hint-tag{font-size:12px}

/* 今日存量 (Felix 2026-09-22): Sultan's numbers across the page above the calculator, typed once in
   the morning and read all day. */
.stock-row{display:flex;flex-wrap:wrap;gap:8px}
.stock-item{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);border-radius:6px;padding:4px 6px 4px 9px;background:var(--sunken)}
.stock-item.on{background:var(--surface);border-color:var(--accent)}
.stock-fc{font-size:12px;color:var(--muted)}
.stock-item.on .stock-fc{color:var(--ink);font-weight:600}
/* 2026-11-11 (#93): wide enough for the placeholder「推 105」 */
.stock-item .in{width:6.2em}


/* 实验 · 明早存量推算 (Felix 2026-09-22): marked as an experiment, at the foot of the page. */
.panel.experiment{border-style:dashed}
.panel.experiment>.panel-h h2::after{content:"实验";margin-left:8px;font:500 11px/1 var(--sans);color:var(--amber);border:1px solid var(--amber);border-radius:4px;padding:2px 5px;vertical-align:2px}
.check-fc{margin:10px 0}
.check-fc strong{display:block;margin-bottom:5px;font-size:13px}

/* Where the FC numbers came from (Felix 2026-09-22): the reading's time and the containers it was of. */
.read-of{margin:0 0 8px;font-size:12px;overflow-wrap:anywhere}

/* 今日 (Felix 2026-09-22): 左边大一块是今天要做的（上午在上、下午在下），右边是本周。 */
.day-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px;align-items:start}
.day-grid>div{min-width:0}
@media (max-width:1100px){.day-grid{grid-template-columns:minmax(0,1fr)}}
.arrived-tag{font-size:12px;color:var(--ok,#1f7a52);margin-left:6px}
.auto-writes .auto-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 0;border-bottom:1px solid var(--line)}
.auto-writes .auto-row:last-child{border-bottom:0}
.auto-writes .auto-row>strong{min-width:10.5em}
.seg{display:inline-flex;gap:2px}
.seg .btn.on{background:var(--surface);color:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:600}
.seg .btn.on:disabled{opacity:1}
/* 2026-09-27: one switch per automatic part, iOS style (Felix): 关 = knob left on a grey track, 开 = knob right on
   the accent colour. Position and the word beside it say which, not the colour alone (colour-weak). */
.toggle{display:inline-flex;align-items:center;gap:8px;min-width:12em;background:none;border:0;padding:2px 0;color:var(--ink);font-size:13px;cursor:pointer;text-align:left}
.toggle[disabled]{opacity:.5;cursor:default}
.switch-track{position:relative;flex:none;width:42px;height:24px;border-radius:12px;background:var(--line-strong);transition:background .15s}
.switch-knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:left .15s}
.toggle.on .switch-track{background:var(--accent)}
.toggle.on .switch-knob{left:20px}
.toggle.on .switch-text{font-weight:600}
@media (prefers-reduced-motion:reduce){.switch-track,.switch-knob{transition:none}}
.auto-writes .auto-last{flex:1 1 280px;font-size:13px;color:var(--muted)}
.auto-writes .auto-last.error{color:var(--red)}
.mail-draft .field{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:13px}
.mail-draft .mail-text{font-family:inherit;font-size:13px;line-height:1.5;min-height:180px}
.mail-draft .mail-reply{margin:4px 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:6px}
.mail-draft .mail-reply p{margin:4px 0 0}
/* the fields as wide as the drawer (2026-10-12: 标题 / 正文 were 11em and cut off); the date a short box that still shows its hint */
.mail-draft .field>.in.wide{width:100%;box-sizing:border-box}
.mail-draft .field>input.in:not(.wide){width:9em}
/* a new truck company (Felix 2026-10-23): its name short, its address the rest of the row */
.mail-sent-view .sent-row{display:grid;grid-template-columns:4em minmax(0,1fr);gap:8px;margin:2px 0}.mail-sent-view .sent-row>.mono{overflow-wrap:anywhere}
.mail-sent-text{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;line-height:1.5;margin:8px 0;padding:8px 10px;border:1px solid var(--line);border-radius:6px}
.past-mail{margin:6px 0}.past-mail>summary{cursor:pointer}
.skip-days{display:flex;gap:2px;flex-wrap:nowrap}.skip-days .tchip{padding:1px 5px;min-width:0;white-space:nowrap}
.every-other{display:block;margin-top:3px;white-space:nowrap}
table.weeks-t{width:auto}.weeks-t th,.weeks-t td{padding:3px 12px;white-space:nowrap}.weeks-t .wk-start{border-left:1px solid var(--line)}
.mail-draft .new-contact{margin:0 0 4px}
.mail-draft .new-contact .in{width:8em}
.mail-draft .new-contact .in.wide{flex:1 1 8em;min-width:8em}
/* 送仓邮件收成一行 (清单 #10): who it goes to over the fold that holds the rest; the fold set off by a rule on its left, not by colour */
.mail-draft .mail-to{align-items:baseline;flex-wrap:nowrap}.mail-draft .mail-to-said{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.mail-draft .mail-more{margin:2px 0 6px;padding-left:10px;border-left:2px solid var(--line)}
.mail-draft .pdf-row .flag{padding:2px 6px}
/* 已发的邮件一行 (清单 #19) */
.mail-sent-view .sent-said{margin:0 0 4px;overflow-wrap:anywhere}.mail-sent-view .mail-sent-body{margin-top:4px}
/* 邮件框 (2026-11-15, web/mailbox.js): the draft in Gmail under the line that says it is made; set off by a rule on its left, not by colour;
   every box as wide as the drawer (a phone too), the pictures of an attachment no wider than it */
.mail-box{margin:6px 0 10px;padding-left:10px;border-left:2px solid var(--line);min-width:0}
.mail-box .field{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:13px;min-width:0}
.mail-box .field>.in.wide{width:100%;box-sizing:border-box}
.mail-box .mail-text{font-family:inherit;font-size:13px;line-height:1.5;min-height:180px}
.mail-box-said,.mail-box-from{margin:4px 0;overflow-wrap:anywhere}
.mail-box-bcc{margin:0 0 4px;overflow-wrap:anywhere}
.mail-box-file .form-row{align-items:baseline;gap:8px}.mail-box-name{overflow-wrap:anywhere;min-width:0}
.mail-box-look{margin:4px 0 8px}.mail-box-look img{display:block;max-width:100%;height:auto;margin:0 0 6px;border:1px solid var(--line);background:#fff}
.mail-box-act{align-items:center}.mail-box-act .tick-slot{position:relative;display:inline-block;width:0;height:1em;vertical-align:middle}
.mail-box-act .tick-slot>*{position:absolute;left:2px;top:50%;transform:translateY(-50%)}
.mail-box-out{margin:4px 0 0}.mail-box-out:empty{display:none}
.mail-past>p{margin:6px 0}.mail-past .ok-line{margin:0 0 0 6px}
/* 抽屉 ② 一句话 (清单 #7) and the 到仓表 check over its buttons (清单 #9) */
.edit-po .po-said{margin:4px 0 6px}.edit-po .arrived-gate{margin:4px 0}
.book-form label{display:flex;align-items:center;gap:6px}
.gaps tr.muted td{color:var(--muted)}
.book-shot{display:block;width:100%;max-width:100%;max-height:420px;object-fit:cover;object-position:top;margin-top:12px;border:1px solid var(--line);border-radius:6px;cursor:zoom-in}
/* over: a strip of the page Amazon ended on; a click shows all of it (Felix 2026-10-20: 约仓明细太长) */
.book-shot.strip{height:160px;max-height:160px}.book-shot.strip.big{height:auto}.book-shot.big{max-height:none;cursor:zoom-out}
.steps-box{margin:6px 0}.steps-list{margin:4px 0 0 18px;padding:0}.steps-box .warn-line{margin:0}
.pool-line,.finish-fold{margin:6px 0}.pool-line>summary,.finish-fold>summary{cursor:pointer}.pool-line p{margin:4px 0 0 18px}
.booking.review .panel-h h2{color:var(--amber)}
.booking.booked .panel-h h2{color:var(--ok)}
.book-ok{color:var(--ok);font-weight:600}
.board td.bookable{cursor:pointer}
.board td.bookable:hover{outline:2px solid var(--accent);outline-offset:-2px}
.finish-steps{list-style:none;padding:0;margin:8px 0;font-size:13px}
.finish-steps li{padding:2px 0}
.finish-steps li.s-done,.finish-steps li.s-ok{color:var(--ok)}
.finish-steps li.s-failed,.finish-steps li.s-wrong,.finish-steps li.s-missing,.finish-steps li.s-short{color:var(--red)}
.drawer-booking .panel{margin-top:12px}
.board .chip.pending{border-style:dashed;opacity:.85}
/* 没开始 in the drawer, where it was clicked, with the next step (Felix 2026-10-20 深夜) */
.book-refused{border-left:3px solid var(--amber);background:var(--amber-soft);padding:8px 10px;border-radius:6px;margin:6px 0}
.book-refused p{margin:0 0 6px;font-size:13px}.book-refused p:last-child{margin-bottom:0}
/* 更新 PO on the appointment itself (Felix 2026-10-20 深夜: 应该给正在更新 PO 的那个约一个视觉提示，而不是在那个约上方给个虚线框):
   under way, a ring that breathes and PO… (PO? while it waits for a choice); in the queue, a still dashed ring and 排PO — the words
   say it as well as the ring (Felix is colour-weak) */
.board .chip.po-busy{outline:2px solid var(--accent);outline-offset:1px;animation:po-busy 1.4s ease-in-out infinite}
.board .chip.po-queued{outline:1.5px dashed var(--accent);outline-offset:1px}
.chip .po-tag{font:700 10px/1.2 var(--sans);padding:0 3px;border-radius:3px;background:var(--accent);color:var(--accent-ink);margin-left:2px;white-space:nowrap}
.chip.po-queued .po-tag{background:transparent;color:var(--accent);border:1px solid currentColor}
@keyframes po-busy{50%{outline-color:transparent}}
@media (prefers-reduced-motion:reduce){.board .chip.po-busy{animation:none}}
.board .chip.pending.booked{border-color:var(--ok);color:var(--ok);opacity:1}
.drawer-booking .notice{background:var(--amber-soft);border-radius:6px;margin:8px 0}
/* 约仓: the queue, and picking one of Amazon's times when the asked one is not offered (2026-09-23) */
.board .chip.pending.queued{border-color:var(--blue);color:var(--blue)}
.queue .notice{background:var(--amber-soft);color:var(--amber);border-radius:6px;padding:8px 10px;margin:0 0 8px}
.queue-list{margin:0 0 8px;padding-left:22px;font-size:13px}
.queue-list li{padding:3px 0;display:list-item}
.queue-list li .btn{margin-left:8px}
.queue-list li.q-booked .muted{color:var(--ok)}
.queue-list li.q-failed .muted,.queue-list li.q-expired .muted,.queue-list li.q-check .muted{color:var(--red)}
.slot-days{display:grid;gap:6px;margin:8px 0}
.slot-day{display:flex;gap:8px;align-items:flex-start;padding:6px 8px;border:1px solid var(--line);border-radius:6px}
.slot-day.asked{border-color:var(--amber);background:var(--amber-soft)}
.slot-date{flex:0 0 5.5em;font-size:13px;font-weight:600;padding-top:3px}
.slot-times{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.slot-times .btn.pref{border-color:var(--ok);color:var(--ok)}
.gaps td:first-child,.gaps th:first-child{width:1.5em;padding-right:0}
.not-counted{background:var(--red-soft);color:var(--red);border-radius:6px;padding:8px 12px;margin-bottom:8px;font-size:13px}
.not-counted ul{margin:4px 0 0;padding-left:18px}
.not-counted li{color:var(--ink);overflow-wrap:anywhere}
.trip-notes{margin-bottom:6px}
/* 人工板数 (2026-09-27): typed-in pallets stand out from counted ones, and the fix buttons sit on the line */
.override-notes{border-left:3px solid var(--amber);padding:4px 10px;margin-bottom:8px;font-size:13px}
/* containers said not to go to 245 (Felix 2026-10-23 #20): left out on purpose, so a plain edge, not the amber of typed pallets */
.said-not{border-left:3px solid var(--line-strong);padding:4px 10px;margin-bottom:8px;font-size:13px}
.fix-acts .btn{margin-left:4px}
.fix-form{margin-top:6px}
.card .card-f{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;align-items:flex-end}   /* a card beside a taller one: the button keeps its size (2026-09-29, billing); wrap: five buttons (a held account) widened the card's track to 414 px and clipped everything (2026-10-18) */
/* 约一个 (2026-09-24): booking by hand is the main thing on 约仓 */
.book-main .form-row{align-items:flex-end}
.field-big{display:grid;gap:3px;font-size:12px;color:var(--muted)}
.in.big{font-size:15px;padding:7px 10px;width:7.5em}
input.in.big[type=date]{width:11em}
select.in.big{width:auto;min-width:7em}
.btn.big{padding:8px 22px;font-size:15px}
.book-info{margin:10px 0 6px;font-size:13px}
.day-strip{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.day-pick{display:grid;gap:1px;padding:5px 9px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);font:12px var(--mono);text-align:center;min-width:64px}
.day-pick small{font:10px var(--sans);color:var(--muted)}
.day-pick.short{border-color:var(--red);background:var(--red-soft)}
.day-pick.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}
.time-hints{display:grid;gap:6px;margin:8px 0}
.hint-row{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.hint-l{font-size:12px;color:var(--muted);width:2.6em}
.time-hint.pref{border-color:var(--ok);color:var(--ok)}
.time-hint.taken{opacity:.55}
.muted.small{font-size:12px;margin:2px 0}
.drawer-facts{background:var(--amber-soft);border-radius:6px;padding:8px 10px;margin:0 0 10px;font-size:13px}
.drawer-facts.calm{background:var(--sunken)}
.how-body ol{margin:6px 0;padding-left:20px;display:grid;gap:4px;font-size:13px}
.how-body p{margin:4px 0;font-size:13px}
.suggestion .btn.small{margin-right:6px}
@media (max-width:560px){.in.big,input.in.big[type=date]{width:100%}.book-main .form-row>label.field-big{flex:1 1 40%}}
.cell-add{display:block;width:100%;border:1px dashed transparent;background:none;color:var(--faint);font:12px/1 var(--mono);padding:2px 0;margin-top:1px;border-radius:4px}
.board td.bookable:hover .cell-add,.cell-add:focus-visible{border-color:var(--line-strong);color:var(--accent)}
.book-main input[aria-label="约仓 FC"]{text-transform:uppercase}
/* 2026-09-24: the drawer pushes the page aside on a wide screen; tabs stay at the top */
@media (min-width:1100px){.shell.drawer-open .work{margin-right:var(--drawer-w,min(440px,40vw))}.drawer{width:var(--drawer-w,min(440px,40vw))}}
@media (min-width:1100px){.shell.drawer-open .board{min-width:var(--board-w,100%)}}
@media (min-width:1100px){.shell.drawer-open table.calc{min-width:var(--calc-w,100%)}}
.chip.unalloc{box-shadow:inset 3px 0 0 var(--red)}
.swatch.unalloc{background:var(--surface);box-shadow:inset 3px 0 0 var(--red);border:1px solid var(--line-strong)}
/* 约仓进度 in the corner of every page (2026-09-24) */
.book-dock{position:fixed;right:16px;bottom:calc(var(--foot-h,44px) + 8px);width:min(380px,calc(100% - 32px));background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:9;overflow:hidden}
/* with the drawer open the corner sits in the drawer's bottom right corner, over the drawer and not over the board (Felix 2026-10-07:
   右下角约仓小窗挡住表右下角几格); the drawer's own content ends above it. At every width: under 1100 px (a half screen, a 125 % zoom)
   the drawer used to lie over the corner (Felix 2026-10-20: 预约、更新 PO 时，右下角的小窗最右边被挡住了一部分). Its own size, not the
   drawer's (Felix 2026-10-26: 约仓小窗存在时，打开约的侧栏会拉长小窗 — as wide as a widened drawer, its picture made it half the screen tall) */
.shell.drawer-open~.book-dock{right:12px;bottom:12px;z-index:11}
.shell.drawer-open~.drawer .drawer-b{padding-bottom:calc(var(--dock-h,0px) + 26px)}
.book-dock .dock-h{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;padding:8px 10px;border-bottom:1px solid var(--line)}
.book-dock .dock-nth{color:var(--muted);white-space:nowrap}
/* 更新 PO / 改约 titles carry a 10–12 digit ISA, and a state can be long (已换成新的一次（复用以前的 PO）): the head wraps instead of
   pushing the buttons past the right edge */
.book-dock .dock-h>b{min-width:0;overflow-wrap:anywhere}
.book-dock .dock-b .form-row{flex-wrap:wrap}.book-dock .dock-msg{overflow-wrap:anywhere}
/* a colleague's / the timers' booking (Felix 2026-10-16): one quiet line, out of the way */
.book-dock.quiet,.shell.drawer-open~.book-dock.quiet{width:auto;max-width:min(360px,calc(100% - 32px));right:16px;bottom:calc(var(--foot-h,44px) + 8px);border-radius:999px;border:1px solid var(--line);box-shadow:none;opacity:.72;background:var(--sunken);z-index:8}
.book-dock.quiet:hover{opacity:1}
.book-dock .quiet-line{display:flex;align-items:center;gap:6px;border:0;background:none;color:var(--muted);font:inherit;font-size:12px;padding:4px 12px;cursor:pointer;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-dock .quiet-line span{overflow:hidden;text-overflow:ellipsis}
.book-dock.mini .dock-h{border-bottom:0}
/* 收小 is one short line (Felix 2026-10-24: 小窗和缩小后的小条…挡住右下角的信息): the title, the state, 展开 and ×, as wide as they are */
.book-dock.mini{width:auto;max-width:min(320px,calc(100% - 32px))}
.book-dock.mini .dock-h{flex-wrap:nowrap;padding:5px 8px}
.book-dock.mini .dock-h>b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
/* in a corner (data-corner bl / tl / tr; none = bottom right: view-appt.js, kept in this browser), growing away from it; while dragged it
   follows the pointer (--dock-x / --dock-y); with the drawer open it sits in the drawer's corner as before */
.book-dock[data-corner="bl"],.book-dock[data-corner="tl"]{right:auto;left:var(--dock-left,84px)}
.book-dock[data-corner="tl"],.book-dock[data-corner="tr"]{bottom:auto;top:var(--dock-top,64px)}
.book-dock.dragging{left:var(--dock-x);top:var(--dock-y);right:auto;bottom:auto}
.shell.drawer-open~.book-dock[data-corner]:not(.quiet){left:auto;top:auto;right:12px;bottom:12px}
.book-dock:not(.quiet) .dock-h{cursor:grab;touch-action:none;user-select:none}
.book-dock.dragging{opacity:.92;box-shadow:0 12px 32px rgba(0,0,0,.25)}
.book-dock.dragging .dock-h{cursor:grabbing}
.book-dock.s-review,.book-dock.s-choose{border-color:var(--amber);box-shadow:0 0 0 2px var(--amber-soft),0 8px 24px rgba(0,0,0,.18)}
.book-dock.s-booked{border-color:var(--ok)}
.dock-b{padding:8px 10px;display:grid;gap:6px}
.dock-msg{margin:0;font-size:13px}
.dock-shot{display:block;width:100%;max-height:150px;object-fit:cover;object-position:top;border:1px solid var(--line);border-radius:6px;cursor:zoom-in}
.shot-wait{margin:10px 0;font-size:13px}
.account-hint:empty{display:none}
.account-hint{color:var(--amber)}
/* 设置 · 新增账号 · 抢救记录 under the cards, folded (Felix 2026-10-20 深夜: 账号页第一部分放的竟然不是账号卡片) */
details.acct-tools{margin-top:14px;border-top:0}
details.acct-tools>.panel,details.acct-tools>.rescues,details.acct-tools>details.acct-add{margin-top:10px}
.card .rescues{margin:0}
.outlook-line{display:flex;align-items:center;gap:6px}
.lookback-t tr.short td{background:var(--red-soft)}
.board td{overflow-wrap:normal}
.board .chip span,.board .chip b{white-space:nowrap}
/* 2026-09-24: a page's sub-pages sit in the toolbar beside its name, as in a Mac window */
.toolbar h1{font-size:21px}
.view-tabs:empty{display:none}
.view-tabs .tabs{margin:0;background:var(--sunken);padding:3px;border-radius:8px;border:1px solid var(--line)}
.view-tabs .tabs button{font-size:13.5px;color:var(--muted);padding:4px 11px}
.view-tabs .tabs button[aria-selected="true"]{background:var(--surface);color:var(--accent);box-shadow:0 1px 2px rgba(0,0,0,.12)}
@media (max-width:560px){.view-tabs{order:5;flex-basis:100%;display:block;width:0;min-width:100%}.view-tabs .tabs{overflow-x:auto}}  /* width 0 + min-width 100%: the five tabs scroll instead of widening the page (2026-09-27) */
/* what was clicked stands out, not the whole cell (2026-09-24) */
.btn{transition:transform .08s ease,box-shadow .15s ease,background-color .15s ease}
.btn:active:not(:disabled){transform:scale(.95)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.chosen,.btn.chosen:disabled{opacity:1;background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}
.doing{margin:6px 0;color:var(--accent);font-weight:500}
.doing::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:8px;vertical-align:1px}
@media (prefers-reduced-motion:no-preference){.doing::before{animation:pulse 1s ease-in-out infinite}@keyframes pulse{50%{opacity:.25}}}
.board td.bookable:hover{outline:none;box-shadow:inset 0 0 0 1px var(--line-strong)}
.board .chip{transition:transform .1s ease,box-shadow .15s ease}
.board .chip:hover{transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.15)}
.board .chip.sel{outline:2px solid var(--accent);outline-offset:1px;box-shadow:0 2px 8px rgba(0,0,0,.2);position:relative;z-index:1}
.board td.picked{box-shadow:inset 0 0 0 1px var(--accent)}
.board td.picked .cell-add{border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:600}
/* booked: a big tick, then the corner fades away (2026-09-24) */
.book-dock.celebrate{border-color:var(--ok);transition:opacity 1.2s ease,transform 1.2s ease}
.book-dock.celebrate.fading{opacity:0;transform:translateY(14px) scale(.97)}
.dock-done{display:grid;justify-items:center;gap:4px;padding:18px 12px 16px;text-align:center}
.dock-done svg{width:64px;height:64px;fill:none;stroke:var(--ok-ink,#fff);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;background:var(--ok);border-radius:50%;padding:12px;box-sizing:border-box}
.dock-done svg path{stroke-dasharray:24;stroke-dashoffset:0}
.dock-done b{font-size:17px;color:var(--ok)}
.dock-done.quiet b{color:var(--muted)}
@media (prefers-reduced-motion:no-preference){
 .dock-done svg{animation:pop .35s ease-out}
 .dock-done svg path{stroke-dashoffset:24;animation:draw .45s .2s ease-out forwards}
 @keyframes pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
 @keyframes draw{to{stroke-dashoffset:0}}
}
details.last-booking>summary{padding:10px 14px;cursor:pointer;color:var(--muted)}
details.last-booking[open]>summary{border-bottom:1px solid var(--line)}
details.last-booking>.panel{margin:0;border:0}
.edit-appt input[type=date]{width:11em}.edit-appt h3{margin-bottom:2px}
/* each account's own mark on the board (2026-09-25: set on 账号) */
.chip.acc-amber{background:var(--acc-amber-soft);color:var(--acc-amber)}
.chip.acc-teal{background:var(--acc-teal-soft);color:var(--acc-teal)}
.chip.acc-rose{background:var(--acc-rose-soft);color:var(--acc-rose)}
.swatch.acc-gogo{background:var(--acc-gogo-soft);border:1px solid var(--acc-gogo)}.swatch.acc-meher{background:var(--acc-meher-soft);border:1px solid var(--acc-meher)}
.swatch.acc-other{background:var(--acc-other-soft);border:1px solid var(--acc-other)}.swatch.acc-amber{background:var(--acc-amber-soft);border:1px solid var(--acc-amber)}
.swatch.acc-teal{background:var(--acc-teal-soft);border:1px solid var(--acc-teal)}.swatch.acc-rose{background:var(--acc-rose-soft);border:1px solid var(--acc-rose)}
.chip.chip-sample{width:auto;display:inline-flex}
/* the board carries 补约 / 改约 / 没分配 / Amazon's differences itself (2026-09-25) */
.help{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:6px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);color:var(--muted);font:600 11px/1 var(--sans);cursor:help;padding:0;vertical-align:1px}
.help:hover{color:var(--accent);border-color:var(--accent)}
.board-counts{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1;justify-content:flex-end}
.count-chip{border:1px solid var(--line-strong);background:var(--surface);border-radius:999px;padding:3px 10px;font-size:12.5px;font-weight:600;cursor:pointer}
.count-chip:disabled{opacity:.45;cursor:default;font-weight:400}
.count-chip.amber:not(:disabled){background:var(--amber-soft);color:var(--amber);border-color:var(--amber)}
.count-chip.blue:not(:disabled){background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
.count-chip.red:not(:disabled){background:var(--red-soft);color:var(--red);border-color:var(--red)}
.count-chip.red-edge:not(:disabled){color:var(--red);box-shadow:inset 3px 0 0 var(--red)}
.count-chip.amber-edge:not(:disabled){color:var(--amber);box-shadow:inset 3px 0 0 var(--amber)}
.count-chip.on{outline:2px solid var(--ink);outline-offset:1px}
.per-day{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.per-day .in{width:4.6em;margin:0;text-align:center}
.board td.adv-add{background:var(--blue-soft)}
.board td.adv-due{background:var(--blue-soft);box-shadow:inset 0 0 0 2px var(--blue)}
.board td.adv-soft{background:transparent;box-shadow:inset 0 0 0 1px var(--blue)}
.board td.adv-move{background:var(--red-soft);box-shadow:inset 0 0 0 2px var(--red)}
.chip.advice{justify-content:center;font-weight:700;font-family:var(--sans)}
.chip.advice.add{background:var(--blue-soft);color:var(--blue);border-color:var(--blue)}
.chip.advice.due{background:var(--blue);color:var(--surface);border-color:var(--blue)}
.chip.advice.soft{background:transparent;color:var(--blue);border:1px dashed var(--blue);font-weight:500}
.chip.advice.move{background:var(--red);color:var(--surface);border-color:var(--red)}
.chip.unalloc{box-shadow:inset 4px 0 0 var(--red);outline:1px solid var(--red);outline-offset:-1px}
.chip.to-move{outline:2px dashed var(--red);outline-offset:-1px}
.chip .amz{color:var(--amber);font-weight:700}
.swatch.adv-add{background:var(--blue-soft);border:1px solid var(--blue)}.swatch.adv-move{background:var(--red-soft);border:1px solid var(--red)}
/* one kind lit, the rest faded */
.board.focus-add td:not(.adv-add):not(.adv-due):not(.adv-soft):not(.fcn),.board.focus-move td:not(.adv-move):not(.fcn){opacity:.25}
.board.focus-unalloc .chip:not(.unalloc),.board.focus-issue .chip:not(.mismatch){opacity:.2}
/* a kind carried by appointments: the days' colours step back too */
.board.focus-unalloc td[class]:not(.fcn),.board.focus-issue td[class]:not(.fcn){background:var(--sunken);background-image:none;box-shadow:none}
.evidence ol{margin:4px 0 0;padding-left:20px;font-size:13px;display:grid;gap:3px}
.evidence>summary{cursor:pointer;font-size:13px;color:var(--muted);padding:6px 0}
.evidence ul{margin:2px 0;padding-left:16px}
.evidence li.guess{color:var(--muted)}
details.settings>summary{font-weight:500}
/* 粗估: the day rests on containers still on the train (2026-09-25) */
.board td.adv-rough{background-image:repeating-linear-gradient(135deg,transparent 0 6px,color-mix(in srgb,var(--blue) 14%,transparent) 6px 8px)}
.chip.advice.rough{opacity:.8;border-style:dashed}
.swatch.adv-rough{background:repeating-linear-gradient(135deg,var(--blue-soft) 0 3px,transparent 3px 5px);border:1px dashed var(--blue)}
/* How busy an FC is: times Carrier Central still offers (2026-09-25) */
.slot-left{display:block;margin-top:2px;font:10px/1.3 var(--mono);text-align:center;border-radius:3px;color:var(--faint)}
.slot-left.tight{color:var(--ink);font-weight:600}
.slot-left.full{color:var(--surface);background:var(--muted);font-weight:600}
.board td.fcn small.slot-first{color:var(--faint)}
.board td.fcn small.slot-first.late{color:var(--ink);font-weight:600}
/* This week's room before the eight weeks fall under the line (2026-09-26) */
.outlook{display:flex;flex-direction:column;gap:2px;margin:6px 0;padding:6px 8px;border-radius:6px;background:var(--sunken)}
.outlook.red{background:var(--red-soft)}.outlook.red b{color:var(--red)}
.outlook.amber{background:var(--amber-soft)}.outlook.amber b{color:var(--amber)}
.rescues{margin:0 0 12px}.rescues .outlook{margin:0 0 6px}
.btn.danger{color:var(--red);border-color:var(--red)}
/* An appointment's colour is its state, the same everywhere; the account is its letter (Felix 2026-09-26) */
.chip.st-ok{background:var(--ok-soft);color:var(--ok)}
.chip.st-moved{background:var(--amber-soft);color:var(--amber)}
.chip.st-due{background:var(--red-soft);color:var(--red)}
.swatch.st-ok{background:var(--ok-soft);border:1px solid var(--ok)}.swatch.st-moved{background:var(--amber-soft);border:1px solid var(--amber)}.swatch.st-due{background:var(--red-soft);border:1px solid var(--red)}
.acc-letter{display:inline-block;min-width:14px;padding:0 3px;border-radius:3px;text-align:center;font:600 10px/1.5 var(--mono);color:var(--surface);background:var(--acc-other)}
.acc-letter.acc-gogo{background:var(--acc-gogo)}.acc-letter.acc-meher{background:var(--acc-meher)}.acc-letter.acc-amber{background:var(--acc-amber)}
.acc-letter.acc-teal{background:var(--acc-teal)}.acc-letter.acc-rose{background:var(--acc-rose)}.acc-letter.acc-other{background:var(--acc-other)}
.chip.dup{outline:1px dotted var(--red);outline-offset:-1px}
.dup-mark{color:var(--red);font-weight:700}
.chip .dup-mark{margin-left:auto}.chip .mark+.dup-mark{margin-left:2px}
/* 盯约选了要挪的约 (2026-10-09): a word and an outline, not colour alone */
/* 只动我们的约 (Felix 2026-10-26): an APPT row the board did not find ours — 非 with a dashed red edge, ? while not known yet */
.chip.not-ours{outline:1px dashed var(--red);outline-offset:-1px}
.chip .own-tag{font-size:10px;font-weight:700;padding:0 3px;border:1px solid currentColor;border-radius:3px;margin-left:2px;white-space:nowrap}
.chip .own-tag.no{color:var(--red)}
/* 从哪个仓提 on the appointment (Felix 2026-11-13): another warehouse's number in a framed light box — the frame and the light fill, not a colour; 仓? dashed */
.chip .wh-tag{font:700 10px/1.2 var(--mono);padding:0 2px;border:1px solid currentColor;border-radius:3px;background:var(--surface);color:var(--ink);white-space:nowrap;flex:0 0 auto}
.chip .wh-tag.odd{border-style:dashed;font-family:var(--sans)}
.chip .watch-mark,.chip .watch-move{font-size:10px;font-weight:700;padding:0 3px;border:1px dashed currentColor;border-radius:3px;margin-left:2px;white-space:nowrap}
/* 预约 page, 2026-09-26 (Felix: 信息密度、呈现方式、动画) */
.todo-strip{display:flex;flex-wrap:wrap;gap:6px;padding:6px 14px 0}
.todo-strip .count-chip{font-size:12px;padding:2px 9px;font-weight:600}
.count-chip.plain:not(:disabled){background:var(--surface);color:var(--ink)}
.board.focus-dup .chip:not(.dup){opacity:.2}
.board.focus-mail .chip:not(.mail-late){opacity:.2}
/* 明天这个仓的货够不够, from 货量计算器 (2026-10-30): one quiet line on top of tomorrow's cell, the word says it (colour-weak) */
.board .calc-tag{display:block;width:max-content;margin:0 0 3px;padding:0 5px;border-radius:3px;font:600 10.5px/1.5 var(--sans);cursor:help}
.board .calc-tag.ok{color:var(--ok);background:var(--ok-soft)}.board .calc-tag.more{color:var(--amber);background:var(--amber-soft)}.board .calc-tag.less{color:var(--red);background:var(--red-soft)}
/* 3600 建议补 (Felix 2026-11-09 下午: 放在建议补和盯约里): as 245's 建议补, the warehouse's number in front, bold (not colour alone); 货够 / 货少 of 3600 are on 货量 */
.chip.advice.wh{background:transparent;color:var(--blue);border:1px dashed var(--blue);font:500 10.5px/1.4 var(--sans);justify-content:center;cursor:help}
.chip.advice.wh .wh-code{font-weight:700;margin-right:1px}
.board td.adv-wh{background:var(--sunken)}
.board.focus-wh td:not(.adv-wh):not(.fcn){opacity:.25}
.board.focus-mail td[class]:not(.fcn){background:var(--sunken);background-image:none;box-shadow:none}
.board.focus-dup td[class]:not(.fcn){background:var(--sunken);background-image:none;box-shadow:none}
/* the + shows on the cell under the pointer (always on touch screens) */
@media (hover:hover){.board td .cell-add{opacity:0}.board td.bookable:hover .cell-add,.board .cell-add:focus-visible{opacity:1}}
/* tomorrow stands out; a line where each Amazon week starts; today is narrow and quiet */
.board th.tomorrow{color:var(--accent);font-weight:700}.board th.tomorrow small{color:var(--accent);font-weight:600}
.board td.tomorrow{background:color-mix(in srgb,var(--accent) 9%,var(--sunken))}
.board th.wk,.board td.wk{border-left:2px solid var(--line-strong)}
.board th.today,.board td.today{min-width:44px;opacity:.75}.board td.today{box-shadow:none;background:transparent}
/* how many times Amazon still offers: a small number in the cell's corner */
.board td{position:relative}
.board td .slot-left{position:absolute;right:3px;bottom:2px;margin:0;padding:0 3px;font-size:9.5px;line-height:1.4}
.board td.bookable{padding-bottom:14px}
/* each day's total */
.board tfoot td{background:none;font:11px/1.3 var(--mono);color:var(--muted);text-align:center;padding-top:4px}
.board tfoot td.fcn{text-align:left;color:var(--faint)}
.board tfoot .loose-n{color:var(--red);font-weight:600}
/* the legend and the list of what disagrees, folded */
.legend-box{padding:4px 14px 10px}.legend-box>summary{cursor:pointer;color:var(--muted);font-size:12.5px;width:max-content}
details.panel.issues>summary{display:flex;align-items:center;gap:8px}
details.panel.issues:not([open])>summary{border-bottom:0}
/* what changed since last shown flashes twice; with reduced motion it keeps a ring */
@keyframes fresh-pulse{0%{box-shadow:0 0 0 3px var(--accent)}100%{box-shadow:0 0 0 0 transparent}}
.board .chip.fresh{animation:fresh-pulse 1.1s ease-out 3}
@media (prefers-reduced-motion:reduce){.board .chip.fresh{animation:none;box-shadow:0 0 0 2px var(--accent)}}
.swatch.fresh-sw{background:var(--surface);box-shadow:0 0 0 2px var(--accent)}
/* filtering fades instead of jumping */
.board td,.board .chip{transition:opacity .2s ease,background-color .2s ease}
.time-hint.free{border-color:var(--ok);color:var(--ok)}
.time-hint[aria-pressed="true"]{background:var(--ok);color:var(--accent-ink);border-color:var(--ok)}
/* the 改约 row a picked time points to, lit once (Felix 2026-11-09) */
.move-go.go-lit{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:no-preference){.move-go.go-lit{animation:fresh-pulse 1.2s ease 2}}.free-row{padding-bottom:2px;margin-bottom:2px;border-bottom:1px dashed var(--line)}
/* the appointment's drawer (2026-09-26) */
.appt-head{display:flex;flex-direction:column;gap:6px}
.appt-when{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* 从哪个仓提 (分仓 2026-11-06): 245 / 3600 — the one in force pressed (bold, outlined, not colour alone), the other the button */
.appt-wh-pick{display:inline-flex;align-items:center;gap:4px;margin-left:auto}
.appt-wh-pick .btn.on{font-weight:600;border-color:var(--accent);color:var(--accent);opacity:1}
/* 第一步选仓 (#84): in step ①, the switch on its own line (not pushed right as in the head it came from) */
.step-b .appt-wh-pick{margin-left:0}
.step-b .a-l{display:inline-block;flex:none;width:5.5em;color:var(--muted)}
.step-b .a-carrier{min-width:4em}
.po-target .small-in{width:5em}
.po-target .a-l{color:var(--muted)}
.appt-wh-choose .btn.on{font-weight:600;border-color:var(--accent);color:var(--accent);opacity:1}
.appt-when .chip{width:auto;font-size:14px;padding:4px 8px}
.appt-ids{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px}
.btn.copy{padding:1px 8px;font-size:11.5px}
.flags{display:flex;flex-direction:column;gap:4px}
.flag{margin:0;padding:6px 9px;border-radius:6px;font-size:13px;line-height:1.45}
.flag.red{background:var(--red-soft);color:var(--red)}.flag.amber{background:var(--amber-soft);color:var(--amber)}
.busy-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.busy-day{display:flex;flex-direction:column;align-items:center;padding:3px 0;border-radius:4px;background:var(--ok-soft);color:var(--ok);font:11px/1.3 var(--mono)}
.busy-day small{color:inherit;opacity:.75;font-size:9.5px}
.busy-day.tight{background:var(--sunken);color:var(--ink)}.busy-day.full{background:var(--muted);color:var(--surface)}
.busy-day.this{outline:2px solid var(--accent);outline-offset:-1px}
.compare table{width:100%;font-size:12.5px}.compare th{text-align:left;color:var(--muted);font-weight:500}
.compare tr.differ td{color:var(--amber);font-weight:600}
/* 已到的约按 Amazon 改 APPT 表的时间 (反馈 #122): one line of the two times, the button under it; done = the line says so and a ✓ fades (§3 就地的 ✓) */
.came-fix{margin:8px 0 2px}.came-fix .came-said{margin:0 0 6px;font-size:13px}.came-fix .form-row{min-height:20px}
.came-tick{font:700 14px/1 var(--sans);color:var(--ok)}
@media (prefers-reduced-motion:no-preference){.came-tick{animation:sched-tick 2.5s linear forwards}}
.same-line{margin:0}
.declared-line{margin:0 0 4px}
.dup-line{color:var(--red)}
details.rules>summary{cursor:pointer;color:var(--muted)}
/* States that do not rest on colour alone (Felix 2026-09-26: 我是色弱) */
.chip.st-ok{background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);box-shadow:none;outline:none}
.chip.st-moved{background:var(--amber-soft);color:var(--amber);border:1.5px dashed var(--amber);box-shadow:none;outline:none}
.chip.st-due{background:var(--red-soft);color:var(--red);border:1px solid var(--red);box-shadow:inset 5px 0 0 var(--red);outline:none;padding-left:8px;font-weight:600}
.chip.st-due.urgent{background:var(--red);color:#fff;border-color:var(--red);box-shadow:inset 5px 0 0 color-mix(in srgb,#000 35%,var(--red))}
.chip.st-due.urgent .acc-letter{outline:1px solid rgba(255,255,255,.7)}
@keyframes urgent-beat{0%,100%{box-shadow:inset 5px 0 0 color-mix(in srgb,#000 35%,var(--red)),0 0 0 0 var(--red)}50%{box-shadow:inset 5px 0 0 color-mix(in srgb,#000 35%,var(--red)),0 0 0 3px color-mix(in srgb,var(--red) 40%,transparent)}}
.board .chip.st-due.urgent{animation:urgent-beat 1.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.board .chip.st-due.urgent{animation:none}}
.chip.past>*:not(.arr){opacity:.7}.chip.past{border-color:transparent}   /* the tick stays bright (2026-09-26) */
.chip .st-tag{font:700 10px/1 var(--sans);padding:2px 3px;border-radius:3px}
.chip .st-tag.picked{background:transparent;color:inherit;border:1px solid currentColor;padding:1px 2px}
.chip.st-moved .st-tag{background:var(--amber);color:var(--surface)}
.chip.st-due .st-tag{background:var(--red);color:#fff}
.chip.st-due.urgent .st-tag{background:#fff;color:var(--red)}
.chip.chip-sample{margin-right:4px}
/* today's column is not faded any more: today's not allocated must be seen */
.board th.today,.board td.today{opacity:1}
/* 补约 is a suggestion: a thin dashed chip, no filled cell (Felix: 补约的视觉太显眼) */
.board td.adv-add,.board td.adv-due,.board td.adv-soft{background:var(--sunken);box-shadow:none}
.board td.adv-rough{background-image:none}
.chip.advice.add,.chip.advice.due,.chip.advice.soft{background:transparent;color:var(--blue);border:1px dashed var(--blue);font:500 10.5px/1.4 var(--sans);justify-content:center}
.chip.advice.due{border-style:solid;font-weight:700}
.chip.advice.soft{opacity:.7}
.chip.advice.done{background:transparent;color:var(--muted);border:1px dotted var(--line);font:500 10.5px/1.4 var(--sans);justify-content:center}
.count-chip.blue-quiet:not(:disabled){background:transparent;color:var(--blue);border:1px dashed var(--blue)}
.count-chip.urgent:not(:disabled){background:var(--red);color:#fff;border-color:var(--red);font-weight:700}

/* ---- rail, 2026-09-26: CN and CP together; states by sign and word as well as colour (Felix is colour-weak) ---- */
.kpis.five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:900px){.kpis.five{grid-template-columns:repeat(2,minmax(0,1fr))}}
td.nowrap,.nowrap{white-space:nowrap;overflow-wrap:normal}
.small{font-size:12px}
table.rail tr.held td:first-child{box-shadow:inset 4px 0 0 var(--red);font-weight:600}
.pill.strong{font-weight:600;border:1px solid var(--red)}
.due-line{margin-top:3px;font-size:12px;color:var(--amber);font-weight:500;white-space:nowrap}
.wb-due{margin:10px 0}
.wb-detail{margin-top:8px}.wb-detail>summary{cursor:pointer;color:var(--blue);padding:4px 0}
.eta-strip{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 6px}
.eta-day{border:1px solid var(--line);border-radius:6px;padding:4px 8px;font-size:12px;background:var(--sunken)}
.eta-day.near{border:2px solid var(--line-strong);background:var(--surface)}
.rest-g{margin-bottom:8px}.rest-g p{margin:2px 0 0;overflow-wrap:anywhere}
details.group>summary .meta{margin-left:auto;font-weight:400;font-size:12px;color:var(--muted)}
/* rail sub-pages and 到站日历 (2026-09-26) */
.kpi.link{cursor:pointer}.kpi.link:hover{outline:1px solid var(--line-strong);outline-offset:-1px}
.plan-headline{margin:10px 0;font-weight:600}
.plan-headline.bad{color:var(--amber)}
table.rail tr.tight td:first-child{box-shadow:inset 4px 0 0 var(--amber)}
.cell-list>summary{cursor:pointer;white-space:nowrap}
.cell-list p{white-space:pre-line;margin:4px 0}
.ok-mark{color:var(--muted)}
/* the two-week board in its own box (2026-09-26): a page-area high at most, so the sideways bar is on
   screen; dates row, FC column and the day totals stay put while it scrolls */
.board-scroll{overflow:auto;padding:0;margin:12px 14px}
.board-scroll .board thead th{position:sticky;top:0;z-index:6;background:var(--surface);box-shadow:0 3px 0 var(--surface)}
/* 2026-11-11 (#105): the pinned row / column sit above every chip — a selected (z 1) or sought (z 4) chip used to
   paint over the FC column while the rest of its column slid under it */
.board-scroll .board td.fcn{position:sticky;left:0;z-index:5;background:var(--surface);box-shadow:-3px 0 0 var(--surface),3px 0 0 var(--surface)}
.board-scroll .board thead th:first-child{left:0;z-index:7;box-shadow:0 3px 0 var(--surface),3px 0 0 var(--surface),-3px 0 0 var(--surface)}
.board-scroll .board tfoot td{position:sticky;bottom:0;z-index:5;background:var(--surface);box-shadow:0 -3px 0 var(--surface)}
/* a cell scrolled to (the one a drawer opened for) clears the sticky header, FC column and 合计 row (2026-10-07: the bottom
   row's cell sat under 合计) */
.board-scroll .board tbody td{scroll-margin:44px 8px 40px 96px}
.board-scroll .board tfoot td.fcn{z-index:6}
.board-scroll .board thead,.board-scroll.over-dates{cursor:ew-resize}
/* today's that have reached the FC (2026-09-26): ✓ Amazon says arrived, ✓? it left the list after its time */
/* 2026-09-26 Felix: bigger — a solid round badge; ✓? a dashed ring (shape, not colour, tells them apart) */
.arr{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 3px;border-radius:9px;
 background:var(--ok);color:#fff;font:700 13px/1 var(--sans);flex:none}
.arr.guess{background:transparent;color:var(--ok);border:1.5px dashed var(--ok);font-size:11px;letter-spacing:-.5px}
.chip .arr{margin-left:auto}.chip .dup-mark+.arr,.chip .mark+.arr{margin-left:3px}
.legend .arr{vertical-align:-3px}
/* the drawer's left edge drags its width on a wide screen (2026-09-26) */
.drawer-grip{display:none}
/* 复位 only means something where the width can be dragged */
@media (max-width:1099px){#drawer-reset{display:none}}
@media (min-width:1100px){.drawer-grip{display:block;position:absolute;left:-5px;top:0;bottom:0;width:10px;cursor:ew-resize;z-index:2;touch-action:none}
 .drawer-grip::after{content:"";position:absolute;left:4px;top:50%;width:2px;height:44px;margin-top:-22px;border-radius:1px;background:var(--line-strong);opacity:.7}
 .drawer-grip:hover::after,.drawer-grip:focus-visible::after,body.drawer-resizing .drawer-grip::after{background:var(--accent);opacity:1;height:72px;margin-top:-36px}}
body.drawer-resizing{cursor:ew-resize;user-select:none}
/* the board's counts sit in its title row (2026-09-26) */
/* one line whatever the width (Felix 2026-10-13: 打开侧栏后左边顶上的按钮堆成两三行，格子往下压，鼠标下面换成了相邻 FC 的约):
   the head keeps its height with the drawer open or shut — the chips scroll sideways when they do not fit, and the ones at 0
   (greyed, nothing to press) step aside first */
.board-head{align-items:center;padding-top:10px;padding-bottom:10px;flex-wrap:nowrap;container-type:inline-size}
.board-head .todo-strip{padding:0 0 2px;flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
.board-head .todo-strip>*{flex:0 0 auto;white-space:nowrap}
.board-head .board-counts{flex:0 0 auto;flex-wrap:nowrap}
@container (max-width:1400px){.board-head .todo-strip .count-chip:disabled{display:none}}
/* 仓库 beside 卡车公司 (Felix 2026-11-13): the pickers, 找约 and 预测 · 图例 never pushed out of the panel. The counts give way first — the tail of
   the line scrolls sideways (as the chips did, 10/13; the first, most urgent ones stay in sight); when even 14em of them would not be left, the
   pickers go under them, right-aligned, as with the drawer open. Narrow (≤ 560px) it wraps as before */
@media (min-width:561px){.board-head .board-counts{flex:1 1 auto;min-width:0;flex-wrap:wrap;row-gap:6px}
 .board-head .board-counts>.todo-line{flex:1 1 14em;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 .board-head .board-counts>.todo-line>*{flex:0 0 auto;white-space:nowrap}
 .board-head .board-counts>:not(.todo-line){flex:0 0 auto}}
/* the board's scrollbars always show (macOS hides overlay bars until you scroll; 2026-09-26) */
.board-scroll::-webkit-scrollbar{width:12px;height:12px}
.board-scroll::-webkit-scrollbar-track{background:var(--sunken);border-radius:6px}
.board-scroll::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:6px;border:3px solid var(--sunken)}
.board-scroll::-webkit-scrollbar-thumb:hover{background:var(--muted)}
.board-scroll::-webkit-scrollbar-corner{background:transparent}

/* Pick list under a text box (Felix 2026-09-28): aligned with the box, the same width at least, looking like a
   list to choose from rather than the browser's datalist history. */
.combo{position:relative;display:inline-flex;align-items:center;vertical-align:middle}
.combo>.in{padding-right:24px}
.combo-caret{position:absolute;right:9px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.combo-list{position:absolute;left:0;top:calc(100% + 4px);min-width:100%;max-height:260px;overflow-y:auto;margin:0;padding:4px;list-style:none;
 background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.22);z-index:60}
.combo-list li{padding:6px 10px;border-radius:5px;font:13px var(--mono);color:var(--ink);cursor:pointer;white-space:nowrap}
.combo-list li:hover{background:var(--sunken)}
.combo-list li[aria-selected="true"]{background:var(--accent-soft);color:var(--accent);font-weight:600}
@media (max-width:560px){.combo.big{display:flex;width:100%}.combo.big>.in{width:100%}}
/* the long explanation behind a ? (Felix 2026-09-28) */
.help-pop{position:absolute;z-index:80;background:var(--surface);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.22);padding:10px 12px;font-size:13px;line-height:1.55}
.help-pop p{margin:0 0 6px}.help-pop p:last-child{margin:0}
.help[aria-expanded="true"]{color:var(--accent);border-color:var(--accent)}
/* The appointment drawer in parts (Felix 2026-09-28): 基础信息 open, the rest folded with a one-line summary. */
.drawer-sec{border-top:1px solid var(--line)}
.drawer-sec>summary{display:flex;align-items:baseline;gap:10px;cursor:pointer;padding:10px 0;list-style:none;min-width:0}
/* the fold mark on the words' middle, not their baseline (Felix 2026-11-09: 改时间那些左侧的箭头和右侧的文字没有对齐) */
.drawer-sec>summary::before{align-self:center;margin-top:0;margin-bottom:0}
.drawer-sec[open]>summary::before{margin-bottom:0}
.drawer-sec .sec-t{font-weight:600;font-size:14px;flex:none}
.drawer-sec .sec-s{color:var(--muted);font-size:12.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drawer-sec>.sec-b{padding:0 0 12px 1em}
.drawer-sec>.sec-b>section>h3:first-child{display:none}
.drawer-base{margin-bottom:6px}
/* The steps of the drawer in one line (Felix 2026-10-11: 按三步走; 抽屉审查 #5 11/9): ✓ 分配 MJ · ✓ PO · [下一步] ③ 单据 · ④ 工单 — a ✓ in a
   filled ring done, the number in a ring to do, the step to do framed and tagged 下一步 (not by colour alone, Felix is colour-weak); the step
   to do opens under the line, any other pressed opens there too, under its own caption. */
.steps{margin:8px 0 10px}
.step-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.step-sep{color:var(--muted)}
.step-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:6px;background:none;color:var(--ink);font:inherit;font-size:13px;padding:3px 7px;cursor:pointer;min-width:0}
.step-pill:hover{border-color:var(--line-strong)}
.step-pill[aria-expanded="true"]{background:var(--sunken);border-color:var(--line-strong)}
/* which step is open, by shape (Felix 2026-11-09: 点一下出现、再点一下消失…需要给一些让人能懂的视觉提示): the site's fold mark, right when
   closed and down when open, on each pill; one open at a time */
.step-fold{flex:none;box-sizing:border-box;width:6px;height:6px;margin:0 1px 2px 3px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg);transition:transform .12s ease}
.step-pill[aria-expanded="true"] .step-fold{transform:rotate(45deg);margin-bottom:4px;border-color:var(--ink)}
.step-pill.now{border:2px solid var(--accent);padding:2px 6px}
.step-mark{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--accent);display:grid;place-items:center;font-size:11px;font-weight:700;color:var(--accent)}
.step-pill.done .step-mark{background:var(--accent);color:var(--accent-ink)}
.step-t{flex:none}
.step-pill.done .step-t{font-weight:500}
.step-s{color:var(--muted);font-size:12px;min-width:0}
.next-tag{flex:none;font-size:11px;font-weight:600;line-height:1.5;padding:0 5px;border-radius:3px;background:var(--accent);color:var(--accent-ink)}
.step-b{border:1px solid var(--line);border-radius:6px;padding:6px 10px 10px;margin-top:6px}
.step-b.now{border-color:var(--line-strong);border-left:4px solid var(--accent)}
.step-b>.form-row{margin-top:6px}
.step-cap{font-size:12px;font-weight:600;color:var(--muted)}
.drawer-base h4,.drawer-sec h4{margin:12px 0 6px;font-size:13px;color:var(--muted);font-weight:600}
/* 公司系统上传 (Felix 2026-09-29): what needs doing stands out, what is already right steps back — bold, a ✎ and a
   tinted left edge for the one, dimmed text for the other, so it does not rest on colour alone. */
tr.act-todo td{font-weight:600;color:var(--ink)}
tr.act-todo td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
tr.act-todo{background:var(--accent-soft)}
/* done rows: the marks fade, the numbers stay readable (review 2026-09-30: --faint on white is about 3:1, too light for an ISA) */
tr.act-idle td{color:var(--muted)}
tr.act-idle td .btn{opacity:.8}
.warn-line{color:var(--amber);font-weight:600}
.pill.amber.strong{border-color:var(--amber)}
/* a button waiting for the server (core.js pressed): greyed with a turning mark, so a click is never silent */
.btn.is-busy{position:relative;cursor:progress;opacity:.75}
.btn.is-busy::after{content:'';display:inline-block;width:.8em;height:.8em;margin-left:6px;vertical-align:-1px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.btn.is-busy::after{animation:none;border-right-color:currentColor;opacity:.5}}
/* the booking's step bar (Felix 2026-09-29): a mark and a word in each step, not only colour */
.stepbar{display:flex;gap:4px;list-style:none;margin:0 0 10px;padding:0;flex-wrap:wrap}
.stepbar li{flex:1 1 0;min-width:64px;display:flex;align-items:center;gap:4px;padding:5px 8px;border-radius:6px;font-size:12.5px;background:var(--sunken);color:var(--faint);border:1px solid transparent}
.stepbar .sb-m{font-weight:700;min-width:1em}
.stepbar li.sb-done{color:var(--ok);background:var(--ok-soft)}
.stepbar li.sb-now{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--accent);font-weight:600}
.stepbar li.sb-you{color:var(--amber);background:var(--amber-soft);border-color:var(--amber);font-weight:700}
.stepbar li.sb-bad{color:var(--red);background:var(--red-soft);border-color:var(--red);font-weight:700}
.stepbar li.sb-stop{color:var(--muted);border-color:var(--line-strong)}
.book-dock .stepbar{margin:6px 10px 0}
.book-dock .stepbar{gap:3px}.book-dock .stepbar li{min-width:0;flex:1 1 auto;justify-content:center;white-space:nowrap;padding:3px 4px;font-size:11.5px;gap:2px}
/* Amazon's reply: our headline, its sentence small */
.pref-line{margin:2px 0 6px;font-size:13.5px}.pref-line b{font-weight:600}
.said{margin:4px 0 8px}.said-h{margin:0;font-weight:700;font-size:14.5px}
.said-h.said-ok{color:var(--ok)}.said-h.said-no{color:var(--amber)}
.said-raw{margin:2px 0 0;font-size:11.5px;color:var(--faint)}
/* 窗口探针 (2026-09-29): the switch row wraps; its status lines take a whole line each */
.window-watch{flex-wrap:wrap}
.window-watch>p,.window-watch>ul{flex-basis:100%;margin:2px 0}
.watch-log{padding-left:18px}
/* 窗口探针 settings (2026-09-30): per FC a switch and the times it may book; a picked time is filled and ticked, not only coloured */
.watch-set{flex-basis:100%;margin-top:4px}
.watch-set summary{cursor:pointer;font-size:13px}
.watch-fcs td{padding:4px 8px 4px 0;vertical-align:middle}
.time-chips{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.tchip{border:1px solid var(--line-strong);border-radius:12px;padding:2px 8px;font:12px/1.4 var(--mono);background:transparent;color:var(--ink);cursor:pointer}
.tchip.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}
.small-in{width:64px;padding:2px 6px;font-size:12px}
.watch-picks{flex-basis:100%}
.check.pick{border:1px solid var(--line-strong);border-radius:6px;padding:2px 8px}
.check.pick.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.bucket-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:4px 0}
.probable-item.off span{color:var(--muted);text-decoration:line-through}
.nowrap{white-space:nowrap}
.watch-set h3{margin:10px 0 2px;font-weight:600}
.watch-rest summary{cursor:pointer;margin:6px 0}
/* an ISA / container never breaks in two (review 2026-09-30: 333333333 showed as 33333333 / 3) */
td.isa,td.mono.isa{white-space:nowrap;min-width:10ch}
.auto-switch{padding:4px}
.auto-switch button{padding:6px 14px;font-size:13px;border-radius:7px}
.auto-switch button[aria-selected="true"]{box-shadow:inset 0 0 0 1px var(--accent)}
/* 改约: the days around with what Amazon offers now (2026-10-01) — earlier ones marked ↑ in words, not colour alone */
.near-slots{margin:6px 0 8px}
.near-grid{display:grid;gap:4px}
.near-day{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:3px 6px;border:1px solid var(--line);border-radius:6px}
.near-day.now{border-width:2px}
.near-day.earlier{border-style:dashed}
/* 各仓现在能约的时段 under the board (2026-10-01): a full day says 满 in words, and is dimmed */
.live-slots{margin-top:8px}.live-slots>summary{cursor:pointer;font-size:.9em}
.live-table td{padding:3px 6px;vertical-align:top}
.live-days{display:flex;flex-wrap:wrap;gap:4px}
.live-day{font-size:.82em;padding:1px 6px;border:1px solid var(--ok);border-radius:10px;white-space:nowrap;font-family:var(--mono)}
.live-day.full{border-color:var(--line);opacity:.6}
/* 窗口探针 caught something (2026-10-01): one line in the 预约 toolbar until 知道了; a failed one says so in words. The one line in the
   toolbar (2026-10-12); what it caught opens over the page under it (2026-10-24), each line rings its box on the board */
.catch-head .catch{display:inline-flex;align-items:center;gap:6px 10px;margin:0;padding:3px 4px 3px 10px;font-size:12.5px;white-space:nowrap}
.catch-head{display:inline-flex}
.catch-pop>p{margin:0 0 6px}
/* 整理承运商名单 (2026-10-24): one name a line — 并到 / 不显示, or what was done and its undo */
.carrier-names .cn-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-top:1px solid var(--line)}.carrier-names .cn-row b{min-width:6.5em}.carrier-names>p{margin:0 0 6px}
.catch-pop .catch-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;margin:0;padding:6px 4px;border:0;border-top:1px solid var(--line);background:none;color:inherit;font:inherit;text-align:left}
.catch-pop button.catch-line{cursor:pointer}.catch-pop button.catch-line:hover{background:var(--accent-soft)}
.catch-pop .catch-line .go{white-space:nowrap;color:var(--accent-ink)}
.watch-catches ul{margin:4px 0 8px;padding-left:18px}            /* the same indent as the log under it (2026-10-30 scan) */
/* 操作结果 (2026-10-01): where an operation stands, bigger than what is under it; symbol + words, not colour alone */
.result-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:0 0 10px;border:1px solid var(--line);border-left-width:6px;border-radius:8px;background:var(--panel,transparent)}
.result-banner .rb-icon{font-size:1.6em;font-weight:700;line-height:1;min-width:1.2em;text-align:center}
.result-banner strong{font-size:1.15em}
.result-banner .rb-detail{margin-top:2px;font-size:.95em;opacity:.9}
.result-banner.rb-ok{border-left-color:var(--ok)}.result-banner.rb-ok .rb-icon{color:var(--ok)}
.result-banner.rb-bad{border-left-color:var(--red,#e5484d);border-left-style:double}.result-banner.rb-bad .rb-icon{color:var(--red,#e5484d)}
.result-banner.rb-warn,.result-banner.rb-todo{border-left-color:var(--amber,#f5a524);border-left-style:dashed}
.result-banner.rb-doing{border-left-style:dotted}
.result-banner.rb-idle{opacity:.85}
/* phone width: the words keep their room, the controls go under them (2026-10-12 scan: 系统 page squeezed the words to one character a line) */
@media (max-width:560px){.result-banner{flex-wrap:wrap}.result-banner .rb-text{flex:1 1 12em;min-width:0}.result-banner>.grow{display:none}}
/* a switch (横向 / 纵向) among the banner's buttons keeps its width (Felix 2026-10-09: 纵向 was cut off) */
.result-banner .tabs{flex:none;margin:0;overflow:visible}
.result-banner:has(.tabs){flex-wrap:wrap}
/* 盯约 (2026-10-01): one line per day watched — what it is, what Amazon shows now, one action; a warning in words */
.watch-head{align-items:center;gap:12px;margin-bottom:6px}
.watch-h{margin:12px 0 6px;font-size:1em}
.watch-items{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin-bottom:8px}
/* a long line wraps instead of widening the page (2026-10-12 scan at phone width) */
.watch-item>*{min-width:0;overflow-wrap:anywhere}
.watch-item{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 10px;border:1px solid var(--line);border-left:4px solid var(--ok);border-radius:6px}
.watch-item.idle{border-left-color:var(--line)}
.watch-item.warn{border-left-color:var(--amber);border-left-style:dashed}
.watch-item .wi-live{white-space:nowrap}
@media (max-width:600px){.watch-item .wi-live{white-space:normal}}        /* a phone: the last search wraps, no sideways scroll (审查 gap1-phone-lines-7) */
.watch-item select.watch-then,.move-choose select.in{width:auto;max-width:100%;font-size:13px;text-overflow:ellipsis}
.watch-item select.watch-then{width:min(540px,100%)}          /* one width on every line (2026-10-28 走查: 555 / 555 / 746 / 738 px), wide enough to read (走查 2026-11-01: 278 for 510 of text) */
/* one line's own times (2026-10-15): the editor takes the whole width under the line; the FC's own times dashed */
.watch-item .line-edit{flex-basis:100%;display:flex;flex-direction:column;gap:6px;padding:8px 10px}
.watch-item .line-edit .time-chips{display:flex;flex-wrap:wrap;gap:4px}
/* the FC's own time this row follows (Felix 2026-10-18: 虚线框太浅了，看不清楚): the same green as a picked one, dashed edge and 「设」 in the text tell it apart */
.tchip.base{background:var(--accent);border:2px dashed var(--accent-ink);color:var(--accent-ink);font-weight:600}
/* 先后 (Felix 2026-10-23 #21; dragged since 10-24): the line's times in the order they are tried; 任何时间也约 set apart from the hours */
.watch-item .prio-row,.move-choose .prio-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.move-choose{display:flex;flex-direction:column;gap:6px;margin:4px 0 12px}.move-choose p{margin:0}
.prio-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);border-radius:14px;padding:3px 12px;background:var(--surface);
 font-size:13px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.prio-pill .prio-n{color:var(--accent);min-width:1em;text-align:center;padding-right:8px;margin-right:2px;border-right:1px solid var(--line-strong)}  /* 序号和时间隔开 (Felix 2026-10-25) */
.prio-pill:hover{border-color:var(--accent)}
/* a dragged item (core.sortable): lifted, following the pointer; the dashed gap is where it lands */
.sort-lift{cursor:grabbing;box-shadow:0 6px 18px rgba(0,0,0,.28);opacity:.95}
.sort-gap{opacity:.4;border-style:dashed}
.tchip.any{border-style:dashed;margin-left:8px;font-family:inherit}
.tchip.any.on{border-style:solid}
.watch-picks>summary,.released>summary,.watch-set>summary{cursor:pointer;margin:8px 0 6px}
/* 自动同步: the timed writes on one table */
.auto-table{width:100%}
.auto-table td{vertical-align:top;padding:8px 10px}
.auto-table tr.auto-line.on{outline:2px solid var(--accent);outline-offset:-2px}
.write-block{margin-top:10px}
.btn.big{font-size:1.05em;padding:8px 16px}
/* 安排表里的柜 (2026-10-01): the 安排 sheet's containers by when they come, one click into the box */
.sched-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;padding:4px 0;border-bottom:1px dashed var(--line)}
.sched-l{min-width:9em}.sched-ids{flex:1;display:flex;flex-wrap:wrap;gap:4px 10px;font-size:.9em}
/* 货量: the two folded lines under the calculator line up (Felix 2026-10-01: 两个箭头没有对齐) */
.forecast-detail{margin-bottom:0;border-top:1px solid var(--line)}
.forecast-detail>summary{padding:9px 14px;display:flex;align-items:center;gap:8px;list-style:none;font-weight:500;color:inherit}
.forecast-detail>:not(summary){margin-left:14px;margin-right:14px}
/* 两周预约 is 预约's main surface (Felix 2026-10-01: 表格有点小了，一定要方便读): larger type, wider cells, the open-slot line
   on one line. The board still fits the window so the sideways bar stays on screen. */
.board th{font-size:13px;padding:4px 6px}
.board th small{font-size:11.5px}
.board td{min-width:96px;padding:4px 4px 20px}
.board td.fcn{font-size:14px;padding-bottom:4px}
.board td.fcn small{font-size:11.5px}
.board tfoot td{padding-bottom:4px;font-size:12.5px}
.board .chip,.chip{font-size:13px;padding:3px 6px}
.chip .st-tag{font-size:11.5px}
.board td .slot-left{font-size:11px;white-space:nowrap;left:3px;right:3px;text-align:right}
.board td .slot-left.full{left:auto}
.board td.watched{box-shadow:inset 0 0 0 2px var(--amber)}
.board td .watch-eye{position:absolute;left:4px;bottom:2px;font-size:11px;font-weight:700;color:var(--amber)}
.board td .watch-eye.gap-word{color:var(--blue)}
/* 合计: 「12 约」 and 「1 没分配」 each stay one piece (没分配 one word at 1440, 审查 walk-am-8); the second goes under the first where the
   two do not fit side by side — on one line they were 90 px in a 79 px cell, over the next day's (11/9 走查) */
.board tr.day-total td{white-space:normal}
.board tr.day-total td>span{display:inline-block;white-space:nowrap}
.board tr.day-total .loose-n{margin:0 .3em}
.board td .chip{gap:2px;padding:2px}        /* 1440 wide: today's and tomorrow's on one line, ! · time · letter in a 79 px cell (审查 walk-am-8) */
/* 两周预约 fills the page (Felix 2026-10-01 夜: 字号不一定要大，要整个表格尽量填满页面，一眼看到全部日常仓): compact type, every day
   the same width, a cell's appointments side by side where they fit, the open-slot line at its foot */
.board{table-layout:fixed;width:100%;min-width:1200px}
.board th:first-child,.board td.fcn{width:74px}
.board th{font-size:12px;padding:2px 4px}.board th small{font-size:10.5px}
.board td{min-width:0;padding:2px 2px 15px}
.board td.fcn{font-size:13px;padding-bottom:2px}.board td.fcn small{font-size:10.5px}
.board tfoot td{padding-bottom:2px;font-size:11.5px}
.board .chip,.chip{font-size:11.5px;padding:1px 3px;gap:3px}
.board td>.chip{display:inline-flex;width:auto;max-width:100%;margin:1px 2px 1px 0;vertical-align:top}
.chip .st-tag{font-size:10.5px}
.board td .slot-left{font-size:10.5px}
/* 和 Amazon 对不上: lines inside the board's panel */
.issue-lines{margin:8px 14px 0;padding:6px 10px;border:1px solid var(--amber);border-left-width:5px;border-radius:6px}
.issue-lines .issue-h{display:block;margin-bottom:2px}
.issue-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:3px 0;font-size:13px}
/* 总表同步's parts: a small switch each, the word 开 / 关 on it (not colour alone) */
.auto-part{display:flex;align-items:baseline;gap:6px;margin:2px 0}
.auto-part>.part-switch+.muted{min-width:6.5em}          /* 总表同步's parts: what each says starts on one line (2026-10-29 深夜: 页面对齐) */
.part-switch{min-width:2.4em;padding:0 6px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--muted);font-size:11.5px;cursor:pointer}
.part-switch.on{border-color:var(--ok);color:var(--ok);font-weight:700}
.arr-match{margin:6px 0 8px}
.sched-id small{font-family:var(--sans)}
/* 数据层 (系统 page): the local databases' freshness and one container's history */
.data-layer .form-row{margin:10px 0 6px}
.data-layer .form-row .in{max-width:260px}
.data-layer .layer-one ul,.data-layer details ul{margin:6px 0;padding-left:18px}
.data-layer details{margin-top:8px}

/* 已分配的约 (Felix 2026-10-01 晚): purple like the sheet's own mark, a solid left bar and the word 配; a moved one keeps
   its dashed amber and gets the purple bar */
:root{--alloc:#6d3fc4;--alloc-soft:#efe8fb}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--alloc:#c3a6ff;--alloc-soft:#2f2547}}
:root[data-theme="dark"]{--alloc:#c3a6ff;--alloc-soft:#2f2547}
.chip.alloc{box-shadow:inset 4px 0 0 var(--alloc);padding-left:7px}
.chip.st-ok.alloc{background:var(--alloc-soft);color:var(--alloc);border:1px solid var(--alloc);font-weight:600}
.chip.st-ok.alloc .st-tag{background:var(--alloc);color:var(--surface)}
.chip .st-tag.pre{background:var(--alloc);color:var(--surface);margin-right:2px}
/* 预 / 定 / 配 (Felix 2026-10-04): outline → soft fill → solid, so the stage reads without colour; a moved one is drawn by
   its stage as well (solid edge, not the dashed amber), the 改 staying as a small mark */
.chip.alloc.s1,.chip.st-moved.alloc.s1{background:transparent;color:var(--alloc);border:1.5px solid var(--alloc);font-weight:600}
.chip.alloc.s2,.chip.st-moved.alloc.s2{background:var(--alloc-soft);color:var(--alloc);border:1.5px solid var(--alloc);font-weight:600}
.chip.alloc.s3,.chip.st-moved.alloc.s3{background:var(--alloc);color:var(--surface);border:1.5px solid var(--alloc);font-weight:700}
.chip.alloc.s1 .st-tag:not(.mod){background:transparent;color:var(--alloc);border:1px solid var(--alloc)}
.chip.alloc.s2 .st-tag:not(.mod){background:var(--alloc);color:var(--surface)}
.chip.alloc.s3 .st-tag:not(.mod){background:var(--surface);color:var(--alloc)}
.chip.alloc.s3 .st-tag.mod{color:var(--surface);border-color:var(--surface)}
.chip.alloc.s3 .acc-letter{outline:1px solid var(--surface)}
.chip.alloc.s3 .arr.guess{color:var(--surface);border-color:var(--surface)}.chip.alloc.s3 .mark{color:var(--surface)}
/* the open-slot count stays one short word in the cell's corner */
.board td .slot-left{left:auto;right:3px}
.board td>.chip{flex-wrap:wrap;row-gap:1px}
/* 历史: past timed runs / past uploads, folded detail under its row */
.auto-acts{white-space:nowrap}.auto-acts .btn+.btn{margin-left:6px}
.history-table td{vertical-align:top}
/* time, which one and how stay on one line; 做了什么 takes the rest (2026-10-12 scan: 10/12 / 09:43 and 自动 / 写 wrapped) */
.history-table tr:not(.history-detail)>td:not(:nth-last-child(2)):not(:only-child){white-space:nowrap}
.history-table tr.history-detail>td{background:var(--surface-2,transparent);padding:8px 12px 12px;border-left:3px solid var(--line-strong)}
.history-list{margin:8px 0}
.btn.on{outline:2px solid var(--line-strong)}
/* the side window covers the right of the page on wide screens: the status bar keeps its words left of it (Felix 2026-10-01 晚) */
@media (min-width:1100px){.shell.drawer-open .status{padding-right:calc(var(--drawer-w,min(440px,40vw)) + 14px)}}

/* nav groups (Felix 2026-10-02): 今日 铁路 | 货量 预约 表格 | 系统 记录 */
.act.group-start{margin-top:10px;position:relative}
.act.group-start::after{content:'';position:absolute;left:14px;right:14px;top:-6px;border-top:1px solid var(--line)}
@media (max-width:760px){.act.group-start{margin-top:0}.act.group-start::after{display:none}}
/* the status bar beside the open side window: one line, the less important words give way (Felix 2026-10-02: 换行后太臃肿) */
@media (min-width:1100px){.shell.drawer-open .status{flex-wrap:nowrap;overflow:hidden;gap:12px}
 .shell.drawer-open .status span{overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:0}
 .shell.drawer-open .status span:first-child{flex:none}}
/* a reminder's detail keeps its lines; a reminder with several things to do lists them, each with its button */
.alert .d{white-space:pre-line}
.alert-items{margin:6px 0 2px;padding-left:20px;font-size:13px}
.alert-items li{margin:4px 0;line-height:1.5}
.alert-items li .btn{margin-left:8px;vertical-align:baseline}
.alert-items li.quiet-line{list-style:none;margin-left:-20px}
/* 数据有多新: one line of verdict, the table under it */
.fresh-panel>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px}
.fresh-panel>summary::-webkit-details-marker{display:none}
.fresh-panel .fresh-verdict{font-size:13px}
.fresh-panel.has-old{border-left:4px solid var(--amber)}
.fresh-table td{vertical-align:top}.fresh-table td:nth-child(5){max-width:340px}.fresh-table td:nth-child(4){max-width:260px}
.fresh-panel .sub-h{margin:14px 0 6px;font-size:13px}
.alert .as-of{font-weight:400;color:var(--muted);font-size:11.5px;margin-left:6px;white-space:nowrap}.alert .as-of.old{color:var(--amber);font-weight:600}
/* 柜子档案: the facts as small cards, the timeline under them */
.container-file{margin:10px 0;padding:10px 12px;border:1px solid var(--line-strong);border-radius:8px}
.container-file .facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 12px;margin:8px 0}
.container-file .fact small{display:block;color:var(--muted);font-size:11.5px}
.container-file .fact.none b{color:var(--faint);font-weight:400}
.container-file .fact.warn b{color:var(--red)}
.file-timeline{padding-left:20px}.file-timeline li{margin:3px 0}.file-timeline li>*{margin-right:8px}
.ledger{margin:10px 0}.ledger-table td{white-space:nowrap}

/* A reminder is a title and a line of explanation under it (Felix 2026-10-01 晚: 大标题 + 说明文字，不要标签旁边再来一个展开箭头).
   A long explanation shows its first two lines; a click on it shows the rest. */
.alert .d.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
.alert .d.clamp.open{display:block;-webkit-line-clamp:unset}
.alert .d{margin-top:3px;line-height:1.5}
.alert .t{font-size:14px;line-height:1.4}
/* The status bar is one line at any width (Felix 2026-10-01 晚: 半屏时折成两三行): the first items are the ones that
   matter, the tail is cut off, and the keyboard hint goes first when room is short. */
.status{flex-wrap:nowrap;overflow:hidden}
.status>span{flex:none}
.status>.grow{flex:1 1 0;min-width:0}
@media (max-width:1300px){.status .keys{display:none}}

/* 改 outlined, not filled, and its box smaller than 预 / 配 / !'s (Felix 2026-10-02: 改可以做小一点，和其他的状态字有区分); the dashed edge stays.
   Its type not under 10.5px (11/9 走查: at 8.5px the one word that says 改过 beside the colour was too small to read) */
.chip .st-tag.mod,.board .chip .st-tag.mod{font-size:10.5px;padding:0;background:none;color:var(--amber);border:1px solid var(--amber);border-radius:2px;align-self:flex-start;line-height:1.1}

/* 已约未提: the tool's reading beside the box, quiet grey (Felix 2026-10-04) */
.committed-cell{white-space:nowrap;text-align:left}.committed-cell .auto-hint{display:inline-block;min-width:6.2em;text-align:left}.auto-hint.ph{visibility:hidden}
.auto-hint{margin-left:6px;padding:1px 6px;border:1px dashed var(--line-strong);border-radius:4px;background:none;color:var(--muted);font:12px/1.4 var(--mono);cursor:pointer}
.auto-hint:hover{color:var(--ink);border-style:solid}
.day-counts{margin:4px 0 10px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
.day-count{margin:2px 0}

/* 网页登录 (2026-10-05): the server browser's picture, as big as the window allows */
/* 网页登录 (Felix 2026-10-20 晚: 整个画面感觉操作极其不顺手): the box fills the window, the buttons stay in sight and the picture takes what
   is left, scaled down whole (never up) — no scrolling the box to reach a button, the wheel is the remote page's */
.login-overlay{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:12px}
.login-box{background:var(--surface);color:var(--ink);border-radius:10px;padding:10px 12px;width:100%;max-width:1400px;height:100%;overflow:hidden;display:flex;flex-direction:column;gap:6px}
.login-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.login-said{margin:0;font-size:13px;flex:1 1 20em}
.login-said.ask{font-weight:700}
.login-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.login-tools .in{width:10em}
.login-gap{width:8px}
.login-stage{position:relative;flex:1 1 0;min-height:0;display:flex;justify-content:center;align-items:flex-start}
.login-screen{display:block;max-width:100%;max-height:100%;width:auto;height:auto;border:1px solid var(--line);border-radius:6px;cursor:crosshair;touch-action:none;user-select:none;background:var(--panel,#111)}
.login-ring{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border:2px solid var(--accent);border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.75);pointer-events:none}
.login-ring[hidden]{display:none}
.login-overlay.ended .login-screen{opacity:.45;cursor:not-allowed}

/* 盯约自检 (2026-10-06): the state is a mark and a word; blocked rows also stand out by weight, not colour alone */
.watch-check table.check td{vertical-align:top}
.watch-check tr.check-blocked td{background:var(--amber-soft)}
.watch-check tr.check-blocked b{color:var(--amber)}

.plan-flags li{margin:2px 0}
.plan-preview{display:flex;flex-direction:column;gap:14px;max-height:80vh;overflow:auto;margin-top:10px;padding:8px;background:var(--sunken);border:1px solid var(--line);border-radius:6px}
.plan-page-shot{margin:0}
.plan-page-shot figcaption{margin:0 0 4px}
.plan-page-shot img{display:block;width:100%;max-width:1000px;border:1px solid #999;background:#fff}
/* 按 PO / FBA 查约 (2026-10-08) */
.lookup .form-row input{min-width:16em;flex:1}
/* 改约 under way (Felix 2026-10-16): the chip being moved away marked ↷ and dashed; nothing once it is done */
.board .chip.moving-from{outline:2px dashed var(--amber);outline-offset:1px}
.board .chip .going{font-size:11px;color:var(--amber);font-weight:600}
/* 约仓队列 by account (Felix 2026-10-16) */
.q-lanes{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0;font-size:13px}
.q-lane.held{color:var(--amber);font-weight:600}
.q-held .form-row{gap:8px}
.lookup-term{margin:.6em 0}
.lookup-term ul{margin:.3em 0 0 0;padding-left:1.2em}
/* 查约 an ISA: one labelled line a thing (Felix 2026-10-16) */
.isa-card{margin:.4em 0 0 0;border:1px solid var(--line);border-radius:6px;padding:6px 10px;display:grid;gap:3px;max-width:880px}
.isa-card .kv{display:grid;grid-template-columns:9em 1fr;gap:8px;font-size:13px;line-height:1.45}
.isa-card .k{color:var(--muted)}
.isa-card .v.bad{color:var(--red);font-weight:600}
.isa-card .v{min-width:0;overflow-wrap:anywhere}.isa-card .v .bad{color:var(--red);font-weight:600}
/* 停留: the stay itself first and heavier (Felix 2026-11-12: 前面那个可以强调或者加粗) — weight and size, not colour */
.isa-card .stay-n{font-size:15px;font-weight:700;margin-right:2px}
/* 我们申报的: a small table opened under its line */
.isa-card details.declared>summary{cursor:pointer}
table.declared-ids{border-collapse:collapse;margin:4px 0 2px;font-size:12px}table.declared-ids th{text-align:left;font-weight:600;color:var(--muted)}
table.declared-ids th,table.declared-ids td{padding:1px 10px 1px 0;vertical-align:top}table.declared-ids .num{text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:600px){table.declared-ids th,table.declared-ids td{padding-right:6px}table.declared-ids{font-size:11px}}
.isa-card .bol-row .v{display:flex;flex-wrap:wrap;gap:4px;align-items:center}.isa-card .bol-row .v>div{flex-basis:100%}
.bol-where{margin:0 0 8px}
@media (max-width:600px){.isa-card .kv{grid-template-columns:1fr;gap:0}.isa-card .k{font-size:12px}}
.lookup-row{margin:.15em 0}
/* 按仓先给结论 (Felix 2026-11-13): one block a FC, a line between them; marks and words carry the state (✓ / … / ✕ / ⚠ / ○), colour only follows */
.fc-verdicts{margin:6px 0 4px;max-width:880px;display:grid;gap:4px}
.fc-verdict{border-left:3px solid var(--line);padding:2px 0 2px 8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.fc-verdict .bad{color:var(--red);font-weight:600}
.fc-verdict-also{font-weight:400}.fc-verdict-also .fc-why{font-weight:400}
.fc-others>summary,.lookup-more>summary{cursor:pointer;color:var(--muted)}
.fc-others ul{margin:2px 0 0;padding-left:1.2em}
.lookup-more{margin:4px 0 0}.lookup-more>ul{margin:.3em 0 0 0;padding-left:1.2em}
.order-part{margin:4px 0 8px}.order-part .order-box{margin:2px 0 0}
.week-check{margin:8px 0 12px}.week-check tr.total-row td{font-weight:600;border-top:2px solid var(--line)}
/* 约仓范围 (account card, 2026-10-11) */
.scope-in{width:12em}
.since-in{width:11em;min-width:11em}   /* 考核期开始日期 (2026-10-18): the date input was cut to 「10/0」 at the roles row's input width */
@media (max-width:560px){.board-head{flex-wrap:wrap}.board-head .board-counts{flex-wrap:wrap;flex:1 1 100%;min-width:0;justify-content:flex-start}}  /* 2026-10-24 scan: the counts line stayed one 1159px row (flex 0 0 auto) and the page slid 800px sideways */
/* the title bar keeps to one line on a laptop with the drawer open (2026-10-13: at 1440 the 盯约 line and 刷新 went to a second
   line and pushed the two-week board down under the mouse): the grey subtitle gives way first, cut with … */
@media (min-width:700px){
 .toolbar{flex-wrap:nowrap}
 .toolbar .sub{flex:0 1000 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .toolbar .view-tabs,.toolbar h1{flex:0 0 auto}
 .toolbar .view-actions{flex:0 0 auto;flex-wrap:nowrap;white-space:nowrap}
}
/* 西部盯约 (2026-10-15: the date, times and password boxes were cut off at .in's 5.2em) */
.watch-west .west-day{width:11em}.watch-west .west-times{width:16em}.watch-west .west-pw{width:12em}
/* 月历 for 西部盯约 (shared component web/calendar.js) */
.cal{display:flex;flex-wrap:wrap;gap:14px;margin:6px 0}
.cal-month{flex:0 1 330px}
.cal-title{font-weight:600;font-size:13px;margin-bottom:3px}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.cal-wd{font-size:11px;color:var(--muted);text-align:center}
.cal-day{min-height:40px;padding:2px;border:1px solid var(--line);border-radius:6px;background:var(--surface);display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;color:inherit;font:inherit}
.cal-day:disabled{background:transparent;border-color:transparent;color:var(--muted);opacity:.45;cursor:default}
.cal-day.on{background:var(--ink);color:var(--surface);border-color:var(--ink);font-weight:600}
.cal-n{font-size:13px}
.cal-note{font-size:10px;line-height:1.1;opacity:.85;text-align:center}
.watch-west .west-form{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px;border:1px solid var(--line);border-radius:6px}
.watch-west .west-chips{display:flex;flex-wrap:wrap;gap:4px}
/* 账号管理 as a page (2026-10-15): the name box need not run the whole width */
.users-page .users-add input.in{flex:0 1 18em;width:18em}
/* one run of weeks (2026-10-15) */
.cal{max-width:520px}
.cal-note{white-space:pre-line}
/* in a calendar day: what it has already, and whether a watch covers it — two lines, words not colour alone (2026-10-15) */
.cal-has{font-size:10px;line-height:1.15;color:var(--muted);text-align:center}
.cal-watch{font-size:10px;line-height:1.15;font-weight:600;color:var(--accent)}
.cal-day.on .cal-has,.cal-day.on .cal-watch{color:inherit}
/* 任何时间 on (2026-10-15): the hours are set aside, shown faint */
.tchip:disabled{opacity:.35;cursor:default}

/* 约仓队列: how far the batch is (2026-10-15) */
.q-progress{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.q-progress progress{flex:0 1 220px;height:10px}
/* FC 统计 (2026-10-15): one row an FC, the last 14 days as bars against the base appointments' load */
.trend-sum{border-collapse:collapse;min-width:100%}
.trend-sum th,.trend-sum td{padding:6px 12px 6px 0;vertical-align:middle;border-bottom:1px solid var(--line);text-align:left}
.trend-sum th{font-weight:500;color:var(--muted);font-size:12px;white-space:nowrap}
.trend-sum .num{text-align:right;font-variant-numeric:tabular-nums}
.trend-sum td.fc,.trend .fc{white-space:nowrap;min-width:4.5em}
.trend-sum .verdict{min-width:16em}
.spark{display:block;overflow:visible}
.spark .hit{fill:transparent}
.spark .sbar{fill:var(--accent)}
.spark .sbar.part{opacity:.45}
.spark g:hover .sbar{fill:var(--ink)}
.spark .base{stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 3}
.spark-key .key-bar{display:inline-block;width:8px;height:12px;background:var(--accent);border-radius:1.5px;vertical-align:-1px}
.spark-key .key-line{display:inline-block;width:16px;border-top:2px dashed var(--muted);vertical-align:middle}
.trend-days{margin-top:12px}
.trend th.fc{position:sticky;left:0;background:var(--surface);text-align:left}
/* ISA 仓库 (2026-10-15) */
.lookup .in.wide{flex:1 1 320px;max-width:560px}
/* phone: the 盯约约到 line in the toolbar wraps instead of pushing the page sideways (2026-10-16 scan: 50px on every 预约 tab) */
@media (max-width:700px){
 .toolbar .view-actions{flex-wrap:wrap;white-space:normal;min-width:0;max-width:100%}
 .catch-head{max-width:100%;min-width:0}
 .catch-head .catch{white-space:normal;flex-wrap:wrap}
}
/* 货不够一车，等你选 (2026-10-16) */
.short-ask ul{margin:4px 0 8px 18px}
.short-ask .form-row{flex-wrap:wrap}
/* phone (2026-10-16 scan): the 约仓 form's account box and the 更新 PO setting ran past the screen and were cut */
@media (max-width:560px){
 .book-form .form-row>label.field-big{flex:1 1 100%;min-width:0}
 .book-form select.in.big{width:100%;max-width:100%}
 .po-short{min-width:0}.po-short select.in{flex:1 1 100%;min-width:0;max-width:100%}
}
/* 查约 (2026-10-16): one big box, results grouped */
.lookup-box{width:100%;min-height:5.5em;font-size:14px;resize:vertical;margin-bottom:8px}
.rail-look .look-row{align-items:center;justify-content:flex-start}
.rail-look .look-row .lookup-box{flex:1 1 18em;width:auto;min-height:0;margin:0}
.dwell-list{list-style:none;margin:6px 0 4px;padding:0;display:grid;gap:4px}
.dwell-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:4px 8px;border-radius:6px;background:var(--sunken)}
.dwell-line.over{background:var(--amber-soft)}
/* charts: the number on hover, at once */
.chart-tip{position:fixed;z-index:60;pointer-events:none;background:var(--ink);color:var(--surface);font:12px/1.3 var(--sans);padding:4px 8px;border-radius:4px;white-space:nowrap}
.morning-bars text{fill:var(--muted);font:11px var(--mono)}
.morning-bars text.v{fill:var(--ink);font-weight:600}
.morning-table tr.sum td,.morning-table tr.sum th{font-weight:600;border-top:1px solid var(--line-strong)}
/* 外仓 (Felix 2026-10-16): one subtotal row, opened to each FC under it */
.trend-sum tr.sum td,.trend-sum tr.sum th,.trend tr.sum th,.trend tr.sum td{font-weight:600}
.trend-sum tr.sub td.fc,.morning-table tr.sub th.fc{padding-left:1.2em}
.btn.link{border:0;background:none;color:var(--accent);padding:0 4px;min-height:0;font-weight:400}
/* 货量 · 柜子追踪 (2026-10-16) */
.track-card h3{margin:14px 0 6px;font-size:13px;color:var(--muted);font-weight:600}
.track-delivery{margin:0 0 4px;overflow-wrap:anywhere}
.track-now{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px 16px}
.track-appts ul{margin:4px 0 0 18px}
.shift-form{flex-wrap:wrap;gap:8px 12px}
.shift-table td,.shift-table th{padding:4px 14px 4px 0}
.shift-table .num{text-align:right}
.track-card .facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px 16px}
.track-card .fact small{display:block;color:var(--muted);font-size:11.5px}
.track-card .fact b{overflow-wrap:anywhere}
.track-card .fact.none b{color:var(--faint);font-weight:400}
.track-card .fact.warn b{color:var(--red)}
.shift-form input[type=date]{width:11em}.shift-form input[aria-label='早晚班备注']{flex:1 1 220px;min-width:0}
.shift-row{flex-wrap:wrap;gap:6px 12px;align-items:center}.shift-row .shift-name{min-width:2.5em}
.shift-row .shift-lead{width:9em}.shift-row .shift-note{flex:1 1 220px;min-width:0}
.shift-table tr.day-first td{border-top:1px solid var(--line)}
/* 早晚班 typed in place (Felix 2026-10-16: 随时记、随时改) */
.shift-table .shift-lead{width:8em}.shift-table .shift-note{width:30em;max-width:60vw}   /* 备注加长 (Felix 2026-10-18: 备注可以放长一点) */
.shift-table .day-total{font-weight:600;vertical-align:middle}
.shift-table .small-in{width:3.2em;text-align:center;margin:0 4px}
.shift-table tr.today td{background:var(--sunken)}
.shift-table .shift-say.ok{color:var(--ok)}.shift-table .shift-say.bad{color:var(--red)}
.shift-day{width:11em}
/* 卡住的东西 (审查 F10, 2026-10-18) */
.stuck-table td,.stuck-table th{padding:4px 14px 4px 0;vertical-align:top}.stuck-table td .btn{margin:0 6px 4px 0}
/* 只是记录 under 卡住的东西 (复核 2026-11-13): a state such as an FC held from searching — smaller, a dashed rule, the word 记录 on each */
.stuck-records{margin-top:10px;border-top:1px dashed var(--line)}.stuck-records .sub-h{border-top:0;padding:8px 0 4px}.stuck-record{padding:4px 0 6px}.stuck-record .btn{margin:4px 6px 0 0}
/* 子页分组 (界面建议 1 / 3 / 5, 2026-10-18; Felix: 小标题放在那组标签的上方，不然像按钮): each group a column — the label on top, its buttons under it */
.tabs .tab-grp{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:0 4px}.tabs .tab-grp+.tab-grp{border-left:1px solid var(--line);margin-left:2px;padding-left:8px}
.tabs .tab-group{font-size:10.5px;line-height:1;color:var(--muted);padding:2px 6px 0 12px;white-space:nowrap;letter-spacing:.02em}.view-tabs .tabs .tab-group{padding-left:11px}.tabs .tab-grp .tab-row{display:flex;gap:2px}
.view-tabs .tabs:has(.tab-grp){padding:2px 3px 3px}
/* 账号 (Felix 2026-10-27: 一张表; 2026-10-29: 卡片和表格合并 — 选 A): one line an account, only showing; the ✓ columns centred under their heads */
.roles-panel .panel-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.roles-panel .table-wrap{overflow-x:auto;max-width:100%}
.roles-table{border-collapse:collapse;width:100%}.roles-table th,.roles-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:nowrap}
.roles-table th{padding:7px 8px;vertical-align:bottom}.roles-table th.c,.roles-table td.c{text-align:center}.roles-table td.c{min-width:4.5em}
.roles-table .acct-key{margin-left:6px;color:var(--muted)}.roles-table .acct-cell .pill{margin-left:6px}
.roles-table .acct-note-line{max-width:15em;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.roles-table .acct-state .pill{margin-right:4px}.roles-table .acct-state .small,.roles-table .acct-room .small{margin-top:2px}
.roles-table .acct-state .small{white-space:normal}.roles-table .acct-state .small.why{max-width:16em}.roles-table td.acct-off-say{white-space:normal}
.roles-table td.acct-acts{white-space:normal;text-align:right;min-width:8em}.roles-table td.acct-acts .btn{margin:0 0 4px 4px}
.roles-table tr.acct-off>td{color:var(--muted)}
/* the switched-off ones folded at the bottom of the same table: the site's one fold mark (details>summary::before) on a button */
.roles-table tr.acct-off-head>td{padding:0;border-bottom:0}
.fold-btn{display:flex;align-items:center;gap:8px;width:100%;padding:9px 0;border:0;background:none;font:500 13px var(--sans);color:var(--ink);cursor:pointer;text-align:left}
.fold-btn::before{content:'';display:inline-block;flex:none;box-sizing:border-box;width:7px;height:7px;margin:0 2px 2px 3px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg);transition:transform .12s ease}
.fold-btn[aria-expanded="true"]::before{transform:rotate(45deg);margin-bottom:4px}.fold-btn:hover::before{border-color:var(--ink)}
.fold-btn .muted{white-space:normal}
/* one account opened (Felix 2026-10-29 深夜: 更多和设置是两种不同的界面 — 合在一起，在里面改): on the line's grey, side by side, its settings (one
   保存), its room and Amazon's numbers, its login; they fold under one another when narrow. 停用检测 / 抢救 under them, on the left. */
.roles-table tr.acct-row.open>td{border-bottom:0;background:var(--sunken)}
.roles-table tr.acct-detail>td{background:var(--sunken);padding:2px 10px 12px;white-space:normal}
.acct-panel{display:grid;gap:10px}
/* the table wider than the window (a narrow window, a phone): the opened account stays the width one sees, at its left, while the line
   above scrolls sideways (2026-11-12: Amazon 来信 a line a mail was 1000px wide in an 800px window) */
.roles-panel .table-wrap{container-type:inline-size}
.roles-table tr.acct-detail .acct-panel{position:sticky;left:10px;max-width:calc(100cqw - 20px);box-sizing:border-box}
.acct-cols{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.acct-col{flex:1 1 19em;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.acct-col.acct-form{flex:1.5 1 30em}
.acct-col>h4{margin:0;font:600 13px var(--sans)}
.acct-col .fg{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 14px;align-items:center}
.acct-col .fr{display:contents}
.acct-col .fl{font-size:12px;color:var(--muted);white-space:nowrap}
.acct-col .fv{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-width:0;min-height:26px;font-size:13px}
.acct-col .fv .help{margin-left:0}
/* a changed setting: outlined dashed, its name says 改 (colour-weak: never colour alone) */
.acct-form .fr.changed>.fv{outline:2px dashed var(--amber);outline-offset:3px;border-radius:4px}
.acct-form .fr.changed>.fl::after{content:' · 改';color:var(--amber);font-weight:600}
.acct-col .in{font-family:var(--sans);width:auto}
.acct-col input.acct-label-in{width:12em}.acct-col input.code-in{width:5.5em;font-family:var(--mono)}.acct-col input.scope-in{width:14em;font-family:var(--mono)}
.acct-col input.acct-note{flex:1 1 16em;min-width:0}.acct-col input.mark-in{width:3.6em;text-align:center;font-weight:600}
.acct-col input[type=email],.acct-col input[type=password],.acct-login input[type=text]{width:17em;max-width:100%}
.acct-col .check.muted{opacity:.55}
.acct-form .swatches{display:inline-flex;gap:6px}
.acct-form .color{width:20px;height:20px;border-radius:5px;padding:0;cursor:pointer}
.acct-form .color[aria-pressed="true"]{outline:2px solid var(--ink);outline-offset:1px}
.acct-save-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}
.acct-save-bar .ok-line{margin:0}
.acct-numbers .outlook{margin:0}.acct-numbers .rescues{margin:0}.acct-numbers p{margin:0}
.acct-numbers dl{margin:6px 0 0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;font-size:13px}.acct-numbers dt{color:var(--muted)}.acct-numbers dd{margin:0}
.acct-login p{margin:0}
.acct-panel-f{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.acct-changes{margin-top:8px}.acct-changes ul{margin:2px 0 0;padding-left:18px}.acct-changes li{margin:1px 0}
.auto-switches .form-row{gap:14px;flex-wrap:wrap;align-items:center}.auto-switches .small-in{width:3.2em}
/* 日常仓的基础约规则 (2026-10-18) */
.daily-rules table.rules td,.daily-rules table.rules th{padding:3px 10px 3px 0;vertical-align:middle}.daily-rules .rule-times{width:14em}.daily-rules tr.page-set td.fc::after{content:' ·';color:var(--accent)}

/* 外部连接 (2026-10-18): the bindings table, long IDs cut with the whole in the title; the plan under it */
.links-table td.link-val{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.links-table .link-in{width:220px;max-width:100%}
.link-plan{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:8px}
.link-plan ul{margin:4px 0 8px 18px}
/* 新增 Carrier Central 账号 (2026-10-18): the fields wrap at phone width */
.acct-add .form-row{flex-wrap:wrap;gap:8px;align-items:center}
.acct-add .in{min-width:160px}

/* 看板标题行的一行小字 (2026-10-18): the counts as text, each a button that lights its kind */
.todo-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px}
.todo-say{border:0;background:none;padding:0 2px;font:inherit;font-weight:600;cursor:pointer;color:var(--ink);text-decoration:underline dotted;text-underline-offset:3px;border-radius:3px}
.todo-say.red,.todo-say.urgent{color:var(--red)}.todo-say.urgent{font-weight:700}.todo-say.amber{color:var(--amber)}.todo-say.blue{color:var(--blue)}
.todo-say.on{outline:2px solid var(--ink);outline-offset:1px}
/* 列头可点 (2026-10-18): a day with unallocated appointments */
.board thead th.has-loose{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.day-rows .day-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:5px 0;border-bottom:1px solid var(--line)}
.day-rows .day-row.done{opacity:.55;text-decoration:line-through}
/* 今日的步骤 (2026-10-18): ticked by hand */
.step.done .t{text-decoration:line-through;color:var(--muted)}
.step .step-tick{white-space:nowrap}
.step .step-tick.by-system{opacity:.55;cursor:default}

/* 外部系统通不通 (2026-10-18): the lamp at the foot, the table on 外部连接 */
.ext-lamp.warn{color:inherit;font-weight:700}      /* amber on the green foot: 1.2:1 (复核 2026-11-01) — the ▲ and the words say it */
.ext-health{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.ext-health h3{margin:0 0 6px;font-size:14px}
.ext-table td.small{max-width:420px}
/* 铁路网站登录 (#97): one line a site — name, username, password, its buttons — and under it how the last sign-ins went */
.site-logins{margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.site-logins h3{margin:0 0 6px;font-size:14px}
.site-login{margin:0 0 10px}
.site-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.site-line .site-name{flex:0 0 250px;max-width:100%;font-weight:600}
.site-line .site-user{width:230px;max-width:100%}
.site-line .site-pw{width:180px;max-width:100%}
.site-login .site-note,.site-login .site-said{margin:4px 0 0}
.site-login .site-said>div{overflow-wrap:anywhere}
.job-note{color:var(--ink);margin-top:2px}
/* 系统 · 反馈 (Felix 2026-10-20): what he notes in the day, screenshots pasted in */
/* 货量 · 进仓板数 (Felix 2026-10-20) */
.inmix{margin:10px 0}.inmix>summary{cursor:pointer;display:flex;align-items:center;gap:8px}.inmix table{margin-top:6px}
.inmix td.strong{font-weight:700}.inmix tr.partial td{color:var(--muted)}
/* 进出: the two 出仓 columns set off by a rule (not a colour), the per-truck pick on one line */
.inmix .out-first{border-left:1px solid var(--line)}
.lookup-sheet{margin:2px 0 0 18px;color:var(--muted)}.lookup-sheet b{color:var(--ok)}
.fb-in{display:block;width:100%;min-height:10em;max-height:60vh;resize:vertical;line-height:1.5}
.split-in{display:block;width:100%;box-sizing:border-box;min-height:8em;max-height:50vh;resize:vertical;line-height:1.5;margin-bottom:8px}
.split-pick{width:18em;max-width:100%}
.find-row{display:inline-flex;gap:4px;align-items:center}
/* 卡车公司 on the board: picked = framed and 「✓ 只看」 in its text (色弱) */
.truck-pick{width:auto;max-width:11em}.truck-pick.on{outline:2px solid var(--ink);outline-offset:1px;font-weight:600}
.pdf-btns{display:inline-flex;gap:6px;align-items:baseline;flex-wrap:wrap}
/* MJ's 单据 is this download when it is the step to do: on a line of its own, the step said beside it */
.pdf-btns.next{flex-basis:100%;align-items:center}
.btn.link.pdf-fresh{font-size:11px;text-decoration:underline;text-underline-offset:2px}
.find-isa{width:11em}
/* 找约: the rest of the board goes pale, the box found is ringed thick, pulses three times and carries 找到 (not by colour alone) */
.board.seeking .chip:not(.sought){opacity:.22;filter:grayscale(1)}
.chip.sought{position:relative;z-index:4;outline:4px solid var(--ink);outline-offset:3px;box-shadow:0 0 0 9px color-mix(in srgb,var(--accent) 45%,transparent);animation:sought-pulse .7s ease-in-out 3}
.chip.sought::after{content:'找到';position:absolute;left:-4px;top:-1.55em;font:700 11px/1.3 system-ui,sans-serif;padding:1px 5px;border-radius:3px;background:var(--ink);color:var(--surface);pointer-events:none}
@keyframes sought-pulse{50%{transform:scale(1.18)}}
@media (prefers-reduced-motion:reduce){.chip.sought{animation:none}}
.fb-in.drop{outline:2px dashed var(--accent,#4a8);outline-offset:2px}
.fb-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.fb-thumb{position:relative}
.fb-thumb button{position:absolute;top:2px;right:2px}
.fb-thumbs img{max-height:120px;max-width:200px;border:1px solid var(--line);border-radius:4px;cursor:zoom-in;background:var(--sunken)}
.fb-thumbs img.big{max-height:none;max-width:100%;cursor:zoom-out}
.fb-items{display:flex;flex-direction:column;gap:12px}
.fb-item{border-top:1px solid var(--line);padding-top:10px}
.fb-item[data-state="done"]{opacity:.75}
.fb-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}   /* a run without spaces (ISAs pasted together) wraps (2026-10-28) */
/* 子页合并 (Felix 2026-10-24): 拼车配重 folded under the calculator; the 表格 page's open row heading its preview and history */
.split-fold{margin-top:12px}
.split-fold>summary{cursor:pointer;margin:8px 0;font-size:13px}
.sheets-detail-h{margin:16px 0 6px;font-size:15px}
.auto-line .pill.small{margin-left:6px}
/* 系统 · 设置 (Felix 2026-10-24: 设置集中成一页): one table by group; a row's own controls wrap under each other on a narrow screen */
.settings-table{border-collapse:collapse;width:100%;font-size:13px}
.settings-table th,.settings-table td{padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.settings-table thead th{color:var(--muted);font-weight:500}
.settings-table .set-group th{background:var(--sunken);color:var(--ink);font-weight:600;padding-top:10px}
.settings-table td:first-child{min-width:12em}
.settings-table .set-edit{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.set-field{display:inline-flex;align-items:center;gap:4px}
/* 系统 · 设置 · 承运商 (2026-10-26): one row a carrier, every part of it changed in place */
.settings-wrap{display:flex;flex-direction:column;gap:14px}
/* 每一页顶上的「设置」 (Felix 2026-11-09): the page's settings in the drawer, one block each */
.set-cards .set-group{margin:14px 0 2px;font-size:13px;color:var(--muted);font-weight:600}
.set-cards .set-card{padding:8px 0;border-bottom:1px solid var(--line)}
.set-cards .set-top{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.set-cards .set-when{margin-left:auto}
.set-cards .set-said{margin:4px 0 6px}
.set-cards .set-edit{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.set-cards .list-in{width:100%;min-width:0}
.set-cards .set-field{max-width:100%;min-width:0}
.set-cards select.in{max-width:100%;min-width:0}       /* 更新 PO 不到 20 板's choices are long: past the drawer's edge (11/9 scan) */
/* fields on lines of their own (卸货速度: container / trailer / 开工收工, Felix 2026-11-09 下午), and a number per FC a line each */
.set-line{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;flex-basis:100%}
.fc-numbers{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex-basis:100%}
.fc-n{display:flex;align-items:center;gap:6px}
.fc-n .fc-code{width:4.5em;display:inline-block}
.fc-n input.fc-code{width:5.5em}
/* 今日 · 17:30 收工检查 (2026-10-26): done items crossed out and said so (a word, not colour alone) */
.day-check .dc-list{list-style:none;margin:2px 0 8px;padding:0;display:flex;flex-direction:column;gap:3px}
.day-check .dc-list li{display:flex;gap:8px;align-items:baseline}
.day-check .dc-mark{flex:none;font-size:12px;font-weight:600;min-width:4.5em}
.day-check li.red .dc-mark{color:var(--red)}
.day-check li.amber .dc-mark{color:var(--amber)}
.day-check li.done{color:var(--muted)}
.day-check li.done .dc-t{text-decoration:line-through}
.day-check li.done .dc-mark{color:var(--ok)}
/* 收工检查: one line a part — its name, how many still have a card below (each a jump) and how many are done (走查 2026-11-09) */
.day-check .dc-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px;margin:2px 0}
.day-check .dc-name{flex:none;min-width:6.5em;font-size:13px}
.day-check .dc-go.red{color:var(--red);font-weight:600}.day-check .dc-go.amber{color:var(--amber);font-weight:600}
.day-check .dc-done{color:var(--ok);font-size:13px}
.step .step-name{display:flex;align-items:center;gap:4px;min-width:0}
.day-check .dc-go{display:inline;padding:0 2px;font-size:inherit;text-decoration:underline;text-underline-offset:2px;text-align:left;white-space:normal}
/* 承运商 (2026-11-14): one line a row, every row the same height — nothing wraps; the table scrolls in its own box on a phone */
.carriers-table td{vertical-align:middle;white-space:nowrap;height:40px;padding-top:3px;padding-bottom:3px}
.carriers-table td:first-child{min-width:0}
.carriers-table td.drag{width:1%;padding-left:16px;padding-right:2px}
/* the switch as wide as 写 / 不写 (the settings' 12em left the 删除 of the live list past the edge at 1280, 复核 2026-11-14) */
.carriers-table .toggle{min-width:0}
.carriers-table .drag-h{display:inline-block;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;font-size:18px;line-height:28px;
 padding:0 6px;border-radius:6px;color:var(--muted)}
.carriers-table .drag-h:hover{color:var(--ink);background:var(--sunken)}
.carriers-table tr.sort-lift{background:var(--surface)}
.carriers-table tr.sort-gap td{border-top:1px dashed var(--line-strong);border-bottom:1px dashed var(--line-strong)}
.carriers-table .c-name>*+*{margin-left:6px}
.carriers-table .mail-in,.add-carrier .mail-in{width:14em}
/* 收件人 holds the whole address (2026-11-15: 框窄 — 14em cut the live list's at 23 letters; measured 1280 / 1440 / 390 in test_web_ui) */
.carriers-table .mail-in:not(.more-in){width:21.2em}
.carriers-table .more-in{width:7.5em}
.carriers-table .to-from{margin-left:4px}
.carriers-table .no-to{margin-left:6px}
.carriers-table .acts>*+*{margin-left:4px}
/* the ✓ (and … while saving) beside a control takes no width: it sits in the cell's padding, so a row never grows or shifts */
.carriers-table .tick-slot,.add-carrier .tick-slot{position:relative;display:inline-block;width:0;height:1em;vertical-align:middle}
.carriers-table .tick-slot>*,.add-carrier .tick-slot>*{position:absolute;left:2px;top:50%;transform:translateY(-50%)}
.carriers-table td.drag .tick-slot>*{left:auto;right:0}          /* the row's ✓ left of its ⠿, in the cell's own padding */
.carriers-table tr.is-hidden td:not(:last-child){opacity:.6}
.carriers-page .carriers-when{margin-right:8px}
/* the 约仓进度 window in the bottom right corner lay over the last rows' 改名 / 删除 with no way to scroll them out (复核 2026-11-14, 1280–1920
   wide): room under the table as tall as the window, so the page scrolls them above it */
.carriers-page{margin-bottom:var(--dock-h,0px)}
.add-carrier{margin-top:10px}
.set-field .time-in{width:5.5em}
/* 备注 written to the sheet (Felix 2026-10-24): the box takes the room the row has */
.notes-row{flex-wrap:wrap}.notes-row .notes-in{flex:1 1 220px;min-width:0}
.notes-sec{margin:8px 0}
.notes-said .result-banner{margin:6px 0 0;padding:8px 12px}

/* 2026-10-25: the 10/24 scan's list */
.wb-held ul{margin:2px 0 6px 20px;padding:0}.wb-held li{margin:2px 0}
.rail td.goods{min-width:9em}
/* a pill wraps inside its column (Felix 2026-10-25: 挡提柜那几个字遮住了后面的字 — 「✕ CANADA CUSTOMS · 挡提柜」 ran 10px into 总表) */
table.rail.cols td .pill{white-space:normal;max-width:100%;line-height:1.25;overflow-wrap:anywhere}
/* 手机看板 (Felix 2026-10-25: 手机上最近的修改和上面的按钮间距过小): room above each fold; the password box wide enough for its hint */
.panel-b .yard-fold{margin-top:14px}
.in.yard-pw{min-width:13em}
/* 看板账号 (Felix 2026-11-12: 每人一个账号): a small table; a turned-off row muted with 「✕ 停用」 in words; the password once, in a dashed box */
.yacc-h{margin:16px 0 4px;font-size:14px;display:flex;align-items:center;gap:6px}
table.yacc td{vertical-align:middle}
table.yacc td:nth-child(-n+2){white-space:nowrap}
.yacc-add .in:not(select){width:13em;max-width:100%}
table.yacc tr.off td{color:var(--muted)}
table.yacc tr.yacc-said td{border-top:0;padding-top:0}
.yacc-role{display:inline-flex;align-items:center;gap:3px;font-size:13px;white-space:nowrap}
.yacc-pw{margin:8px 0;padding:8px 10px;border:1px dashed var(--accent);border-radius:8px}
.yacc-pw .form-row{margin-top:4px}
.yacc-pw-text{font-size:18px;letter-spacing:1px;user-select:all}
/* 企业微信群 (手机看板 ④): the bot's login, the two uses, the groups that @ it */
.wx-state{margin-bottom:6px}
.wx-login .wx-bot{width:16em;max-width:100%}
.wx-login .wx-secret{width:14em;max-width:100%}
.wx-said{margin:4px 0 0}
.wx-use{margin:0 0 8px}
.wx-use .form-row{flex-wrap:wrap}
table.wx-chats td{vertical-align:middle}
.yacc-pw p{margin:4px 0 0}
/* 每晚 23:30 上一次, under the block's box (Felix 2026-10-25: 放到框的外面，下面空了好多地方) */
.night-note{margin:8px 2px 0;overflow-wrap:anywhere}
/* 你自己的号 under the shared company-system account (Felix 2026-10-25: 自己用自己的号) */
.hwc-mine{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}
.hwc-mine .form-row .in{min-width:11em}
.hwc-shared{margin-top:10px}
.hwc-shared .form-row .in{min-width:11em}
.watch-item .wi-break{flex-basis:100%;height:0;margin-top:-6px}
.auto-part .odd{color:var(--amber)}
/* 待看 (Felix 2026-10-25: 感叹号是提醒错误用的；没有异常就换一种字体和颜色): left for a person, not wrong — a tag in words, the line in ink */
.auto-part .look-tag{display:inline-block;border:1px solid var(--blue);color:var(--blue);border-radius:9px;padding:0 6px;margin-right:4px;font-size:11px;line-height:15px;font-weight:600}
/* 待看 opens its window (Felix 2026-10-25): the tag is a button, still the tag's look */
.auto-part button.look-tag{background:none;font-family:inherit;cursor:pointer}
.auto-part button.look-tag:hover,.auto-part button.look-tag:focus-visible{background:var(--blue);color:var(--surface)}
.look-part h3{margin:0 0 6px}
.look-list{margin:0;padding-left:18px;display:grid;gap:10px}
.look-list .note-line{color:var(--ink);font-size:13px}
.look-answers{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.look-list p{margin:4px 0 0}
.routine-line{padding:8px 14px 0;margin:0}
/* 记录 · 批次台账: over a thousand rows in a box of limited height that scrolls, its head staying in sight — not 38,000 px under the page (11/9 走查) */
.ledger-box{max-height:min(60vh,560px);overflow:auto}
.ledger-box thead th{position:sticky;top:0;z-index:1;background:var(--surface);box-shadow:0 1px 0 var(--line)}
.settings-table .list-in{width:min(28em,100%);min-width:16em}
.fb-done>summary{cursor:pointer;padding:2px 0}
/* the drawer open beside the board: the board's tool line wraps instead of being cut; the foot keeps only the connection and the outside
   lamp, the title's date range goes (it showed 10/2…) */
@media (min-width:1100px){.shell.drawer-open .status .src{display:none}.shell.drawer-open .toolbar .sub{display:none}
 .shell.drawer-open .board-head{flex-wrap:wrap}.shell.drawer-open .board-head .board-counts{flex-wrap:wrap;flex:1 1 100%;min-width:0;justify-content:flex-start}}
/* phones: these tables scroll inside their box at a width their columns can be read at, not squeezed to a letter a line */
@media (max-width:560px){table.auto-table{min-width:620px}table.settings-table{min-width:720px}table.ext-table{min-width:640px}table.links-table{min-width:860px}
 .links-table td>span.mono{white-space:nowrap}
 .fc-beside{grid-template-columns:minmax(0,1fr)}}
/* 2026-10-25 afternoon: 安排表里的柜 says the sheet's notes and the rows not read as a box (Felix: 总担心有遗漏或者没看到备注消息) */
.sched-id.noted{border-color:var(--amber);border-style:dashed}
.sched-id .sched-note{color:var(--amber);font-family:var(--sans)}
.sched-id.gone .mono{color:var(--muted)}
.sched-others .sched-l{color:var(--amber)}
.redeliver-rows{max-height:240px;overflow-y:auto;margin:6px 0}
.redeliver-row{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;padding:2px 0}
.redeliver .in{width:14ch}
.weeks-box summary .help{flex:none}
.weeks-box .weeks-head{gap:8px;align-items:center;flex-wrap:wrap}.weeks-box .weeks-line{margin:2px 0}.weeks-box .weeks-line b{margin-right:4px}
.board td.fcn small.weeks-more{color:var(--amber);font-weight:600;cursor:help}
@media (max-width:560px){table.calc thead th:first-child,table.calc td.fc{position:sticky;left:0;z-index:1;background:var(--surface)}}
/* 查柜卡片头「曾查验」(Felix 2026-11-02 #44): opened, the stretches take a line of their own at the end of the head */
.track-exam[open]{flex-basis:100%;order:1}.track-exam>summary{font-size:12px}.track-exam ul{margin:4px 0 0 18px;padding:0}.track-exam li{margin:2px 0}
/* 设置就地改 (Felix 2026-11-03): 「每天留给第二天早上 2 个 · 改」 one small line where the pages go by it */
.inline-set{white-space:nowrap}.inline-set .small-in{width:3.6em;margin:0 2px}.alert-set{margin-top:4px}

/* 设置就地改 for admins only: one drawn before a sign-in as someone else is hidden at once (复核 2026-11-03) */
body:not(.is-admin) .inline-set{display:none}
/* 按 Amazon 写回 (Felix 2026-11-04: 按了以后应该立刻给反馈): what it did stays on its line until the board is read again; 全部写回 in the head */
/* the box of a small button, so a line does not change height when its button turns into this and back */
.btn.fix-done{border-color:transparent;background:none;cursor:default;font-weight:600;color:var(--ink);white-space:normal}
.fix-cell{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.issues .issue-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* 安排表 (view-sched.js, 2026-11-09) */
.sched-table{width:100%;border-collapse:collapse;table-layout:fixed}
/* the same column widths every day (the days one under another line up) */
/* 类型: 「Container」 whole (it wanted 71 px in 64 and read 「Contai…」, 11/9 走查) */
/* each column by its class (仓库 / 客户代码 come and go with the merged page, 2026-11-12); Inside takes what is left */
/* (measured 2026-11-12 at 1280 with both new columns: Inside keeps ~150 px; 状态 holds 「空·拉走」「dock10」, Notes its box and 存, the actions
   「改时间 / 日子」 and 删 apart) */
.sched-table th.c-day{width:56px}.sched-table th.c-wh{width:76px}.sched-table th.c-kind{width:78px}.sched-table th.c-cust{width:80px}.sched-table th.c-box{width:128px}
.sched-table th.c-time{width:68px}.sched-table th.c-co{width:100px}.sched-table th.c-st{width:136px}.sched-table th.c-notes{width:216px}.sched-table th.c-acts{width:160px}
.sched-table td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sched-table .sched-more td{white-space:normal}
/* 状态、Notes and the forms' boxes are the site's own (.in), not the browser's grey ones (11/9 走查); compact in a row so it stays as tall */
.sched-table select.in,.sched-table input.in{padding:2px 6px;height:24px;box-sizing:border-box}
select.in.sched-status{max-width:100%;text-overflow:ellipsis}
.sched-table th,.sched-table td{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.sched-table .sched-acts{white-space:nowrap;text-align:right}
.sched-table .sched-acts .btn+.btn{margin-left:4px}
/* 删 (red: it takes a row away) stands off 改时间 / 日子, and is no narrower than a finger's aim */
.sched-table .sched-acts .btn+.btn.danger{margin-left:12px;min-width:34px}
.sched-notes-cell{display:inline-flex;gap:4px;align-items:center}
.in.sched-notes{width:150px;max-width:100%;font-family:var(--sans)}
/* 改过之后 (Felix 2026-11-12: 不用再下面写这句话…给个别的视觉提示): a ✓ in a slot of its own at the control's right — kept empty when there is
   none, so nothing moves and the row is no taller; a shape, not a colour alone (Felix 色弱). It fades out over 2.5 s (TICK_MS in
   view-sched.js); with reduced motion it stands still and is taken away at the same moment */
.sched-ctl{position:relative;display:inline-flex;align-items:center;gap:4px;max-width:100%;padding-right:16px;box-sizing:border-box;vertical-align:middle}
.sched-ctl>select.in{min-width:0}
.sched-tick{position:absolute;right:0;top:50%;transform:translateY(-50%);width:14px;text-align:center;font:700 14px/1 var(--sans);color:var(--ok);pointer-events:none}
@media (prefers-reduced-motion:no-preference){.sched-tick{animation:sched-tick 2.5s linear forwards}@keyframes sched-tick{0%,55%{opacity:1}100%{opacity:0}}}
.in.sched-time{width:8.5em;font-family:var(--sans)}.in.sched-number{width:12em}.in.sched-search{width:19em;font-family:var(--sans)}
.sched-mark td{text-align:center;font-size:12px;color:var(--muted);border-bottom:2px dashed var(--line)}
/* 柜号格涂黄 (2026-11-09): in 到仓表 — words under the number (Felix 色弱), a tint beside them */
/* two lines in the height of one: the row is no taller than its neighbours (measured, 2026-11-09) */
.sched-table td.sched-box.in{background:var(--amber-soft);padding-top:1px;padding-bottom:1px;line-height:1.15}
.sched-in{display:block;font:11px/1.1 var(--sans);color:var(--amber)}
.sched-more td{background:var(--sunken)}
.sched-form{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0}
.sched-find{display:inline-flex;gap:4px;align-items:center;margin-left:auto}
.sched-wh{display:inline-flex;gap:2px;margin:0 8px;vertical-align:middle}
/* 仓库 (2026-11-12): a narrow box of the codes; a cell naming no warehouse said in words (warn-line), not by colour alone */
.in.sched-wh-pick{width:100%;min-width:62px;font-family:var(--mono)}
.sched-form .in.sched-wh-pick{width:auto;max-width:none}
/* 客户代码: its own column on a wide screen; under the number in small type on a narrow one (no wider table, measured 2026-11-12) */
.sched-cust-sub{display:none;font:11px/1.1 var(--sans);color:var(--muted)}
/* narrow: the table scrolls inside its panel (as before); Inside keeps a width of its own there (it was squeezed to nothing) */
@media (max-width:900px){.sched-table th.c-cust,.sched-table td.sched-cust{display:none}.sched-cust-sub{display:block}.sched-table th.c-inside{width:96px}}
/* Amazon 来信 (2026-11-11 #103; 2026-11-12 Felix 的截图: 窄栏里一个词一行、一封信十几行高): across the opened account under its columns, a
   line a mail lined up as a small table — when (with its day), its kind in words (⚠ dashed when serious: not colour alone), what it says on
   one line cut with …; opened, all of it, wrapped. No scrollbar of its own: 8 shown, the rest behind the fold. A phone: two lines a mail. */
.acct-mail-list{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 14px;min-width:0}
.mail-list-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin-bottom:4px}
.mail-list-h>h4{margin:0;font:600 13px var(--sans)}
.mail-list-h .mail-counts{margin:0}
.mail-list{display:grid;min-width:0}
.mail-item{border-top:1px solid var(--line);min-width:0}
.mail-item>summary{display:flex;gap:10px;align-items:baseline;padding:5px 0;min-width:0}
.mail-at{flex:none;width:11ch;color:var(--muted);white-space:nowrap}
.mail-kind{flex:none;box-sizing:border-box;min-width:4.6em;text-align:center;white-space:nowrap;border:1px solid var(--line-strong);border-radius:4px;padding:0 5px;font-size:11.5px}
.mail-item.warn .mail-kind{border-style:dashed;font-weight:600}
.mail-say{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mail-item[open]>summary .mail-say{white-space:normal;overflow-wrap:anywhere}
.mail-body{padding:0 0 4px 20px;min-width:0}
.mail-body>p{margin:0;overflow-wrap:anywhere}
.mail-text{white-space:pre-wrap;overflow-wrap:anywhere;font:12.5px/1.5 var(--sans);max-width:100%;box-sizing:border-box;background:var(--sunken);border-radius:6px;padding:8px 10px;margin:4px 0 6px}
.mail-more{border-top:1px solid var(--line)}
.mail-more>summary{padding:6px 0;color:var(--muted)}
.mail-more>summary:hover{color:var(--ink)}
.acct-mail .mail-addr{margin-top:0}.acct-mail>p:empty{display:none}.acct-mail .mail-addr .in{flex:1 1 20em;min-width:0;max-width:26em}
@media (max-width:480px){
 .mail-item>summary{flex-wrap:wrap;row-gap:2px}
 .mail-say{flex-basis:100%;padding-left:20px;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
 .mail-item[open]>summary .mail-say{display:block}
 .mail-body{padding-left:0}
}
/* 发 PO reopen (Felix 2026-11-15 #128): under the account's Amazon 来信, the same box, folded; the form one column (a phone takes it as it is),
   what the server read of the lines a short line each, the screenshots as the feedback page's thumbnails with their names, the mails made a
   line each with the mail box opening under its line */
.acct-reopen{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px 14px;min-width:0}
.acct-reopen>summary{display:flex;align-items:center;gap:6px;padding:2px 0;font:600 13px var(--sans)}
.reopen-b{min-width:0;padding-top:4px}
.reopen-b .field{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:13px;min-width:0}
.reopen-ids{align-items:flex-start;margin-top:4px}.reopen-ids .field{margin:0}
.reopen-b .in.reopen-fc{width:6em;text-transform:uppercase}.reopen-b .in.reopen-isa{width:12em;max-width:100%}
.reopen-b .in.reopen-lines{width:100%;max-width:40em;box-sizing:border-box;font-size:13px;line-height:1.5}
.reopen-read>p,.reopen-made>p,.reopen-to,.reopen-hint,.reopen-pic-said{margin:2px 0;overflow-wrap:anywhere}
.reopen-pic-said:empty,.reopen-go-said:empty{display:none}
.reopen-thumb{display:flex;flex-direction:column;gap:2px;max-width:200px}
.reopen-thumb-name{overflow-wrap:anywhere}
.reopen-act{margin:10px 0 4px}
.reopen-part,.reopen-item{border-top:1px solid var(--line);padding:4px 0;min-width:0}
.reopen-part .form-row,.reopen-item .form-row{margin-top:0;gap:4px 10px}
.reopen-part-pos{flex:1 1 12em;min-width:0;overflow-wrap:anywhere}
.reopen-recent>h4{margin:12px 0 4px;font:600 13px var(--sans)}
.reopen-sent{margin:0}
