/* 西班牙仓 · 客户后台
   跟首页同一套底色（Notion 那种暖灰白 + 墨黑按钮），数据部分学 Polymarket：大数字、细条、胶囊状态。
   圆角规则：输入框 / 按钮 8px · 卡片 12px · 状态胶囊全圆。只用系统字体，国内能打开。 */
:root {
  --bg: #f7f7f5;
  --panel: #ffffff;
  --panel-2: #fbfbfa;
  --text: #37352f;
  --strong: #191919;
  --muted: #787774;
  --faint: #a5a49f;
  --line: #e9e9e7;
  --line-2: #dededb;
  --hover: rgba(55, 53, 47, .05);
  --press: rgba(55, 53, 47, .09);
  --ink: #191919;
  --ink-hover: #333333;
  --ink-text: #ffffff;
  --link: #2383e2;
  --focus: rgba(35, 131, 226, .35);

  --blue: #1f6feb;   --blue-bg: #e9f1fe;
  --green: #18794e;  --green-bg: #e6f4ec;
  --amber: #a15c07;  --amber-bg: #fdf1dc;
  --red: #c4320a;    --red-bg: #fdebe5;
  --teal: #0e7470;   --teal-bg: #e1f3f1;
  --gray: #6f6e69;   --gray-bg: #efefed;

  --bar-green: #2f9e66;
  --bar-amber: #e3a008;
  --bar-red: #e5533d;
  --bar-gray: #b9b8b3;
  --bar-reserved: #cfcdc6;
  --bar-transit: #8fb8f6;

  --shadow: 0 1px 2px rgba(25, 25, 25, .04), 0 2px 8px rgba(25, 25, 25, .03);
  --shadow-lift: 0 2px 6px rgba(25, 25, 25, .06), 0 12px 32px rgba(25, 25, 25, .07);
  --r-sm: 8px;
  --r: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Source Han Sans SC", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --side-w: 236px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --panel: #1f1f1f;
    --panel-2: #232323;
    --text: rgba(255, 255, 255, .82);
    --strong: #ffffff;
    --muted: rgba(255, 255, 255, .5);
    --faint: rgba(255, 255, 255, .32);
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .14);
    --hover: rgba(255, 255, 255, .05);
    --press: rgba(255, 255, 255, .09);
    --ink: #f2f2f2;
    --ink-hover: #dcdcdc;
    --ink-text: #161616;
    --link: #5aa2f0;
    --blue: #79aef7;   --blue-bg: rgba(31, 111, 235, .18);
    --green: #6fcf97;  --green-bg: rgba(24, 121, 78, .22);
    --amber: #f2b35c;  --amber-bg: rgba(161, 92, 7, .24);
    --red: #ff8a70;    --red-bg: rgba(196, 50, 10, .22);
    --teal: #5ed1c9;   --teal-bg: rgba(14, 116, 112, .24);
    --gray: rgba(255, 255, 255, .6); --gray-bg: rgba(255, 255, 255, .08);
    --bar-reserved: #4a4945;
    --bar-transit: #3d6fb8;
    --bar-gray: #5c5b57;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lift: 0 8px 28px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--strong); line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; fill: currentColor; vertical-align: -3px; }
.i.sm { width: 15px; height: 15px; vertical-align: -2px; }
.i.lg { width: 22px; height: 22px; }

/* ── 品牌标：两个叠着的方块（跟首页一样） ── */
.mark { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; color: var(--strong); }
.mark::before, .mark::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 3px; }
.mark::before { top: 0; left: 0; border: 2px solid currentColor; }
.mark::after { right: 0; bottom: 0; background: currentColor; }

/* ── 骨架：桌面左栏，手机顶栏 + 底部标签栏 ── */
.shell { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 52px; padding: 0 12px 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--strong); }
.topbar .brand small { font-weight: 400; color: var(--muted); }
.topbar-actions { display: flex; gap: 2px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer;
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn .badge { position: absolute; top: 4px; right: 3px; }
.content { width: min(1180px, 100%); margin: 0 auto; padding: 18px 16px 112px; }
.foot { padding: 0 16px 104px; text-align: center; font-size: 12px; color: var(--faint); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 5px 0 3px;
  border-radius: 10px; font-size: 11px; color: var(--muted); transition: color .15s, background-color .15s;
}
.tabbar a .i { width: 22px; height: 22px; }
.tabbar a.on { color: var(--strong); font-weight: 600; }
.tabbar a:active { background: var(--press); }
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .topbar, .tabbar { display: none; }
  .side {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    padding: 14px 10px; background: var(--panel-2); border-right: 1px solid var(--line);
  }
  .content { padding: 28px 32px 40px; }
  .foot { padding: 0 32px 28px; }
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px 18px; }
.side-brand b { display: block; font-size: 15px; color: var(--strong); letter-spacing: -.01em; }
.side-brand small { display: block; font-size: 12px; color: var(--muted); }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px;
  border-radius: var(--r-sm); color: var(--text); font-weight: 500;
  transition: background-color .15s, color .15s;
}
.side-nav a .i { color: var(--muted); transition: color .15s; }
.side-nav a:hover { background: var(--hover); }
.side-nav a.on { background: var(--panel); color: var(--strong); box-shadow: var(--shadow); }
.side-nav a.on .i { color: var(--strong); }
.side-nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.who b { display: block; font-size: 13px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.who small { display: block; font-size: 12px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--strong); color: var(--bg); font-size: 13px; font-weight: 600; }
.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font: 600 11px/1 var(--font); font-style: normal;
}

/* ── 页头 ── */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.ph h1 { font-size: 24px; letter-spacing: -.015em; }
.ph .sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.crumb:hover { color: var(--strong); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bar-green);
  box-shadow: 0 0 0 0 rgba(47, 158, 102, .5); animation: live 2s infinite;
}
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(47, 158, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 102, 0); } }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--panel); color: var(--strong); font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { background: var(--panel-2); border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: scale(.98); box-shadow: none; }
.btn-good { background: var(--bar-green); border-color: var(--bar-green); color: #fff; }
.btn-good:hover { filter: brightness(1.06); background: var(--bar-green); border-color: var(--bar-green); transform: translateY(-1px); }
.btn-danger { color: var(--red); border-color: var(--line-2); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn-ghost { border-color: transparent; background: none; }
.btn-ghost:hover { background: var(--hover); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.link:hover { color: var(--strong); text-decoration: underline; }
.a { color: var(--link); }
.a:hover { text-decoration: underline; }

/* ── 卡片和栅格 ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.card-h h2 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card-h h2 .i { color: var(--muted); }
.card-h .more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.card-h .more:hover { color: var(--strong); }
.card-b { padding: 12px 16px 16px; }
.stack { display: grid; gap: 14px; }
.grid2, .grid3, .grid-main { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }

/* ── 大数字 ── */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 759px) { .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi {
  position: relative; display: block; padding: 13px 14px 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.kpi-num { margin-top: 4px; font-size: 28px; line-height: 1.15; font-weight: 650; color: var(--strong); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-num small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi-sub { margin-top: 2px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.is-red { border-color: var(--red-bg); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.kpi.is-red .kpi-num { color: var(--red); }
.kpi.is-amber .kpi-num { color: var(--amber); }
.kpi.is-red::after, .kpi.is-amber::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 7px; height: 7px; border-radius: 50%;
}
.kpi.is-red::after { background: var(--bar-red); }
.kpi.is-amber::after { background: var(--bar-amber); }

/* ── 状态胶囊 ── */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill-blue { color: var(--blue); background: var(--blue-bg); }
.pill-green { color: var(--green); background: var(--green-bg); }
.pill-amber { color: var(--amber); background: var(--amber-bg); }
.pill-red { color: var(--red); background: var(--red-bg); }
.pill-teal { color: var(--teal); background: var(--teal-bg); }
.pill-gray { color: var(--gray); background: var(--gray-bg); }
.pill-dark { color: var(--ink-text); background: var(--ink); }
.pill-dark::before { background: var(--bar-amber); opacity: 1; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--gray-bg); color: var(--gray); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }

/* ── 列表行 ── */
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--line); transition: background-color .15s;
}
.rows > .row:first-child { border-top: 0; }
a.row:hover, .row.hoverable:hover { background: var(--hover); }
.row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 600; color: var(--strong); min-width: 0; }
.row-title .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.row-side { display: grid; justify-items: end; gap: 4px; text-align: right; font-size: 12.5px; color: var(--muted); }
.row-side b { color: var(--strong); font-size: 15px; font-variant-numeric: tabular-nums; }
.row.flat { grid-template-columns: minmax(0, 1fr) auto; }
.card .rows { margin-top: 8px; }

/* 商品缩略图（没图就用首字 + 浅色块） */
.thumb { width: 40px; height: 40px; flex: none; border-radius: 9px; object-fit: cover; background: var(--gray-bg); border: 1px solid var(--line); }
.thumb.sm { width: 28px; height: 28px; border-radius: 7px; }
.thumb.lg { width: 56px; height: 56px; border-radius: 11px; }
.thumb.noimg { display: grid; place-items: center; font-weight: 650; font-size: 15px; border: 0; }
.thumb.sm.noimg { font-size: 12px; }
.thumb.lg.noimg { font-size: 20px; }
.t0 { background: #e8f1fd; color: #2a62b5; } .t1 { background: #e7f5ee; color: #1f7a4f; } .t2 { background: #fcefdc; color: #a35e0c; }
.t3 { background: #f6e8f3; color: #8f3b7c; } .t4 { background: #ebecfb; color: #4b4fb0; } .t5 { background: #fde9e5; color: #b5452c; }
@media (prefers-color-scheme: dark) {
  .t0 { background: #1e2c40; color: #8db8f2; } .t1 { background: #1c3328; color: #7fd1a6; } .t2 { background: #3a2a14; color: #f0b766; }
  .t3 { background: #35212f; color: #e199d1; } .t4 { background: #25263f; color: #a9acf5; } .t5 { background: #3b221c; color: #f29c86; }
}
.thumbs { display: flex; }
.thumbs .thumb { margin-left: -8px; box-shadow: 0 0 0 2px var(--panel); }
.thumbs .thumb:first-child { margin-left: 0; }

/* ── 库存条：可用 / 占用 / 在途 + 该补货线 ── */
.sbar { position: relative; display: flex; height: 8px; border-radius: 999px; background: var(--gray-bg); overflow: visible; }
.sbar > span { height: 100%; }
.sbar > span:first-child { border-radius: 999px 0 0 999px; }
.sbar-a.tone-green { background: var(--bar-green); } .sbar-a.tone-amber { background: var(--bar-amber); }
.sbar-a.tone-red { background: var(--bar-red); } .sbar-a.tone-gray { background: var(--bar-gray); }
.sbar-r { background: repeating-linear-gradient(135deg, var(--bar-reserved) 0 3px, transparent 3px 6px); }
.sbar-t { background: repeating-linear-gradient(135deg, var(--bar-transit) 0 4px, transparent 4px 7px); border-radius: 0 999px 999px 0; }
.sbar-p { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--strong); opacity: .7; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.legend .lg-a { background: var(--bar-green); }
.legend .lg-r { background: repeating-linear-gradient(135deg, var(--bar-reserved) 0 3px, transparent 3px 6px); border: 1px solid var(--bar-reserved); }
.legend .lg-t { background: repeating-linear-gradient(135deg, var(--bar-transit) 0 3px, transparent 3px 6px); border: 1px solid var(--bar-transit); }
.legend .lg-p { width: 2px; background: var(--strong); border-radius: 1px; }

/* ── 时间轴：能卖到哪天 vs 今天发货哪天到仓 ── */
.runway { display: grid; gap: 7px; }
.rw-track { position: relative; height: 10px; border-radius: 999px; background: var(--gray-bg); }
.rw-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.rw-fill.tone-green { background: var(--bar-green); } .rw-fill.tone-amber { background: var(--bar-amber); }
.rw-fill.tone-red { background: var(--bar-red); } .rw-fill.tone-gray { background: var(--bar-gray); }
.rw-gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--bar-red) 0 3px, transparent 3px 7px); opacity: .55; border-radius: 0 999px 999px 0; }
.rw-transit { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--bar-transit) 0 4px, transparent 4px 7px); border-radius: 999px; }
.rw-hole { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--bar-red) 0 2px, transparent 2px 6px); opacity: .45; }
.rw-arrive { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--strong); }
.rw-arrive::after { content: ""; position: absolute; top: -5px; left: -3.5px; width: 10px; height: 10px; border-radius: 50%; background: var(--strong); box-shadow: 0 0 0 2px var(--panel); }
.rw-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.rw-legend b { color: var(--strong); font-variant-numeric: tabular-nums; }
.rw-warn { font-size: 12.5px; font-weight: 600; color: var(--red); }

/* ── 补货卡 ── */
.restock { display: grid; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); }
.card .restock:first-of-type { border-top: 0; }
.restock-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.restock-num { text-align: right; }
.restock-num b { display: block; font-size: 20px; line-height: 1.1; color: var(--strong); font-variant-numeric: tabular-nums; }
.restock-num small { font-size: 12px; color: var(--muted); }
.restock-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.restock-act b { color: var(--strong); }
.check-sm { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check-sm input { width: 16px; height: 16px; accent-color: var(--ink); }

/* ── 进度：代发三步、头程四步 ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.st { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 4px; }
.st::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.st:first-child::before { display: none; }
.st-done::before, .st-now::before, .st-bad::before { background: var(--strong); }
.st-dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); color: var(--panel);
}
.st-dot .i { width: 14px; height: 14px; }
.st-done .st-dot { background: var(--strong); border-color: var(--strong); color: var(--panel); }
.st-now .st-dot { border-color: var(--strong); }
.st-now .st-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--strong); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }
.st-bad .st-dot { background: var(--red); border-color: var(--red); color: #fff; }
.st-label { font-size: 12.5px; font-weight: 600; color: var(--strong); }
.st-todo .st-label { color: var(--faint); font-weight: 500; }
.st-bad .st-label { color: var(--red); }
.st-time { font-size: 11.5px; color: var(--muted); min-height: 1em; font-variant-numeric: tabular-nums; }
.mini-steps { display: inline-flex; align-items: center; gap: 4px; }
.mini-steps i { width: 18px; height: 4px; border-radius: 2px; background: var(--line-2); }
.mini-steps i.on { background: var(--strong); }
.mini-steps i.bad { background: var(--bar-red); }

/* 代发管道：待发货 → 已寄出 → 已送达 */
.pipe { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; }
.pipe-s { display: block; padding: 10px 6px; border-radius: 10px; text-align: center; transition: background-color .15s; }
a.pipe-s:hover { background: var(--hover); }
.pipe-s b { display: block; font-size: 24px; line-height: 1.15; font-weight: 650; color: var(--strong); font-variant-numeric: tabular-nums; }
.pipe-s span { font-size: 12.5px; color: var(--muted); }
.pipe-s.is-hot b { color: var(--amber); }
.pipe > .i { color: var(--faint); }
.pipe-note { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--red); }

/* 头程在途：已走天数 / 预计天数 */
.meter { height: 6px; border-radius: 999px; background: var(--gray-bg); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.meter.late > span { background: var(--bar-red); }

/* 近 30 天柱状图 */
.bars { display: block; width: 100%; height: 72px; }
.bars rect { fill: var(--strong); opacity: .82; }
.bars rect.zero { fill: var(--line-2); opacity: 1; }
.bars rect:hover { opacity: 1; fill: var(--link); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: var(--faint); }

/* ── 筛选条、搜索 ── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex: none;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--text);
  font-size: 13px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--faint); }
.chip em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.chip.on em { color: var(--ink-text); opacity: .7; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 34px; }
.selectbar { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 商品网格 ── */
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sku-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.sku-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.sku-img { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.sku-img img { width: 100%; height: 100%; object-fit: cover; }
.sku-img .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; font-weight: 650; }
.sku-img .pill { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.sku-body { display: grid; gap: 8px; padding: 12px 14px 14px; align-content: start; }
.sku-name { font-weight: 600; color: var(--strong); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sku-meta { font-size: 12.5px; color: var(--muted); }
.sku-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sku-nums div { display: grid; }
.sku-nums b { font-size: 17px; color: var(--strong); font-variant-numeric: tabular-nums; line-height: 1.3; }
.sku-nums span { font-size: 11.5px; color: var(--muted); }
.sku-foot { font-size: 12px; color: var(--muted); }
.sku-foot b { color: var(--strong); }

/* ── 键值、文字块 ── */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--strong); min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { color: var(--strong); font-weight: 600; }
.small { font-size: 12.5px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--green); font-weight: 600; }
.neg { color: var(--red); font-weight: 600; }
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 14px;
  border-radius: 10px; background: var(--blue-bg); color: var(--text); font-size: 13.5px;
}
.callout > .i { color: var(--blue); margin-top: 2px; }
.callout b { color: var(--strong); }
.callout.warn { background: var(--amber-bg); }
.callout.warn > .i { color: var(--amber); }
.callout.bad { background: var(--red-bg); }
.callout.bad > .i { color: var(--red); }
.callout pre { margin: 4px 0 0; font: inherit; white-space: pre-wrap; color: var(--strong); }
.note-box { padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; white-space: pre-wrap; }
.copy { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; margin-left: 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); font-size: 12px; color: var(--muted); cursor: pointer; vertical-align: 1px; transition: background-color .15s, color .15s; }
.copy:hover { background: var(--hover); color: var(--strong); }
.copy.done { color: var(--green); border-color: var(--green); }
.track { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 12.5px; }
.track:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--line); margin: 6px 0; }

/* ── 表单 ── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--strong); }
.field .opt { font-weight: 400; color: var(--faint); margin-left: 4px; }
.hint { font-size: 12.5px; color: var(--muted); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row.r3 { grid-template-columns: 1fr 1fr 1fr; } }
.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--panel); color: var(--strong); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input {
  padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat;
}
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px var(--focus); }
.input::placeholder { color: var(--faint); }
.input.num { text-align: right; }
.input-sm { height: 34px; }
.err { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 500; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--panel); cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.radio input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }

/* 一行一个商品（入库单、代发单） */
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 96px 36px; gap: 8px; align-items: center; }
.line-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--faint); cursor: pointer; }
.line-x:hover { background: var(--red-bg); color: var(--red); }
.line-head { display: grid; grid-template-columns: minmax(0, 1fr) 96px 36px; gap: 8px; font-size: 12px; color: var(--muted); }

/* 上传 */
.upload {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--panel-2); color: var(--muted);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.upload:hover, .upload.drag { border-color: var(--link); background: var(--blue-bg); color: var(--strong); }
.upload .i { width: 26px; height: 26px; color: var(--faint); }
.upload b { color: var(--strong); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.previews img, .previews .pdf { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.previews .pdf { display: grid; place-items: center; background: var(--red-bg); color: var(--red); font-size: 12px; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery form { position: absolute; top: 5px; right: 5px; }
.gallery .x { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.gallery figure:hover .x, .gallery .x:focus-visible { opacity: 1; }
@media (hover: none) { .gallery .x { opacity: 1; } }
.hero-img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; font-weight: 650; }

/* ── 表格（仓库端） ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { position: sticky; top: 0; padding: 9px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .num b { color: var(--strong); }
.table .sku-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.table-group th { background: var(--panel); font-size: 13px; color: var(--strong); padding-top: 14px; }

/* ── 空状态、提示 ── */
.empty { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gray-bg); color: var(--muted); }
.empty-icon .i { width: 26px; height: 26px; }
.empty h3 { font-size: 15.5px; }
.empty p { max-width: 380px; font-size: 13.5px; color: var(--muted); }
.empty .btn { margin-top: 6px; }
.flash {
  position: fixed; z-index: 50; left: 50%; top: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: min(560px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--ink-text);
  box-shadow: var(--shadow-lift); font-weight: 500; font-size: 14px;
  animation: flash-in .35s var(--ease) both;
}
.flash.out { animation: flash-out .3s var(--ease) both; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes flash-out { to { opacity: 0; transform: translate(-50%, -8px); } }
.msg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.rows > .msg:first-child, .card-b > .msg:first-child { border-top: 0; }
.msg-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--gray-bg); color: var(--muted); }
.msg-icon.k-ship { background: var(--blue-bg); color: var(--blue); }
.msg-icon.k-good { background: var(--green-bg); color: var(--green); }
.msg-icon.k-warn { background: var(--amber-bg); color: var(--amber); }
.msg-icon.k-bad { background: var(--red-bg); color: var(--red); }
.msg-title { font-weight: 600; color: var(--strong); }
.msg.unread .msg-title::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--link); vertical-align: 2px; }
.msg-body { margin-top: 2px; font-size: 13px; color: var(--muted); }
.msg-time { font-size: 12px; color: var(--faint); white-space: nowrap; }

/* ── 登录页 ── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(var(--line) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--bg); }
.auth-card { width: min(400px, 100%); padding: 28px 26px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-brand b { display: block; color: var(--strong); font-size: 16px; }
.auth-brand small { display: block; color: var(--muted); font-size: 12.5px; }
.auth h1 { font-size: 22px; margin-bottom: 6px; }
.auth .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.auth-foot { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* 一次性显示的账号密码 */
.secret { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--panel-2); border: 1px dashed var(--line-2); }
.secret div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.secret b { font-family: var(--mono); font-size: 17px; color: var(--strong); letter-spacing: .02em; }

/* 微信二维码 */
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--green-bg); }
.qr-box img { width: 132px; height: 132px; border-radius: 10px; background: #fff; padding: 6px; }
.qr-state { font-size: 13px; color: var(--green); font-weight: 600; }

/* 面单预览 */
.label-view { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.label-view iframe { display: block; width: 100%; height: 560px; border: 0; }
.label-view img { width: 100%; }

/* 库存调整：点「调整」在格子里展开一个小表单（不浮层，表格横向滚动时不会被裁掉） */
.adjust { display: inline-block; text-align: left; }
.adjust summary { list-style: none; cursor: pointer; }
.adjust summary::-webkit-details-marker { display: none; }
.adjust[open] summary { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.adjust-form { display: grid; gap: 6px; width: 230px; margin-top: 8px; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }

@media (max-width: 640px) {
  .ph h1 { font-size: 21px; }
  .row { padding: 11px 14px; }
  .card-h, .card-b { padding-left: 14px; padding-right: 14px; }
  .kpi-num { font-size: 24px; }
  .hide-sm { display: none !important; }
  .label-view iframe { height: 420px; }
}
@media (min-width: 641px) { .show-sm { display: none !important; } }

/* ── 11-10 客户页整理（手机为主）：只加新类和窄屏规则，电脑上的仓库页不变 ── */
@media (min-width: 760px) { .kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* 四个数平板上也一行 */

/* 首页「要你处理」：异常单、缺面单 */
.todo { border-color: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.todo .card-h h2 .i { color: var(--amber); }
.todo .row-sub span { overflow-wrap: anywhere; }

/* 电脑两栏的页面（.grid-main.reflow）：窄屏变一栏时把两栏拆开，按 .o1 … .o6 排，要紧的先看到 */
@media (max-width: 1099px) {
  .reflow > .stack { display: contents; }
  .reflow .o1 { order: 1; } .reflow .o2 { order: 2; } .reflow .o3 { order: 3; }
  .reflow .o4 { order: 4; } .reflow .o5 { order: 5; } .reflow .o6 { order: 6; }
}
.restock-act { justify-content: flex-end; }

/* 空状态里的几步和两个按钮 */
.empty-steps { display: grid; gap: 2px; margin: 0; padding-left: 1.5em; text-align: left; font-size: 13.5px; color: var(--muted); }
.empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.empty .empty-acts .btn { margin-top: 0; }

/* 一键入口（有装箱单？传上来）：一行字 + 一个按钮 */
.shortcut { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 16px; }
.shortcut > .i { color: var(--muted); }
.shortcut h2 { font-size: 14.5px; }
.shortcut p { font-size: 12.5px; color: var(--muted); }

/* 页底的次要动作（取消、隐藏）：不跟主按钮抢 */
.end-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.end-actions form { margin: 0; }

/* 商品卡：状态挪到名字旁边，不压在图上 */
.sku-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.sku-head > div { min-width: 0; }
.sku-head .pill { flex: none; margin-top: 1px; }

@media (max-width: 640px) {
  /* 点得准：按钮至少 44px 高；输入框 16px 字，iPhone 点进去不会自己放大 */
  .btn, .btn-sm { height: 44px; }
  .btn-sm { padding: 0 12px; }
  .input { height: 44px; font-size: 16px; }
  textarea.input { height: auto; }
  select.input { background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; }
  .input-sm { height: 40px; }
  .radio span { height: 40px; padding: 0 15px; }
  .chip { height: 38px; }
  .icon-btn { width: 44px; height: 44px; }
  .line, .line-head { grid-template-columns: minmax(0, 1fr) 84px 44px; }
  .line-x { width: 44px; height: 44px; }
  .copy { position: relative; }
  .copy::after { content: ""; position: absolute; inset: -10px -4px; }
  .gallery .x { width: 34px; height: 34px; }
  .form-actions > .btn { flex: 1 1 0; }
  .search { max-width: none; }
  .shortcut { grid-template-columns: auto minmax(0, 1fr); }
  .shortcut .btn { grid-column: 1 / -1; }

  /* 商品：一行一个，小图在左 */
  .sku-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sku-card { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: none; align-items: start; }
  .sku-img { aspect-ratio: 1; margin: 12px 0 12px 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .sku-img .noimg { font-size: 26px; }
  .sku-body { gap: 6px; padding: 12px 14px 12px 12px; }

  /* 表格改成一行一张小卡（表格加 .tcard）：表头藏起来，数字上面写是什么（data-l） */
  .tcard-wrap { overflow: visible; }
  .table.tcard, .tcard tbody, .tcard tfoot, .tcard td { display: block; }
  .tcard thead { display: none; }
  .tcard tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tcard tbody tr:last-child { border-bottom: 0; }
  .tcard tfoot tr { border-top: 1px solid var(--line); background: var(--panel-2); }
  .table.tcard td { min-width: 0; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  .tcard td.tc-main { grid-column: 1 / -1; }
  .tcard td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
  .tcard .sku-cell { min-width: 0; }
  .tcard tbody tr:hover { background: none; }

  /* 库存流水：「变动 · 数量」一行，「时间 · 之后在库」一行，单号备注最后 */
  .tc-moves tr { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; grid-template-areas: "sku sku" "kind delta" "time after" "note note"; }
  .tc-moves.tc-nosku tr { grid-template-areas: "kind delta" "time after" "note note"; }
  .tc-moves td.mv-sku { grid-area: sku; }
  .tc-moves td.mv-kind { grid-area: kind; font-weight: 600; color: var(--strong); }
  .tc-moves td.mv-delta { grid-area: delta; text-align: right; font-size: 15px; }
  .tc-moves td.mv-time { grid-area: time; font-size: 12.5px; }
  .tc-moves td.mv-after { grid-area: after; text-align: right; font-size: 12.5px; color: var(--muted); }
  .tc-moves td.mv-after::before { content: "在库 "; }
  .tc-moves td.mv-note { grid-area: note; }
  .tc-moves td.mv-note:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
