:root {
  --bg: #F3F5F8; --panel: #FFFFFF; --line: #E3E7EE; --line2: #EEF1F5; --head: #F7F9FC;
  --text: #1C2230; --muted: #5A6375; --muted2: #4A5263; --faint: #6B7385;
  --blue: #2456D6; --blue-bg: #EAF0FD; --blue-soft: #F0F5FF; --blue-line: #B9C8F0;
  --red: #C8322B; --red-tx: #B42318; --red-bg: #FDECEA;
  --org: #E8A33D; --org-tx: #8A4A00; --org-bg: #FFF3E0;
  --grn: #1F9D63; --grn-tx: #1F7A4D; --grn-bg: #E6F4EC;
  --pur-tx: #5B3FC4; --pur-bg: #F3EEFE; --teal: #0E6E6D; --teal-bg: #E6F4F4;
  --up: #C23A2F; --down: #1F7A4D; --nav: #16213A; --nav2: #1E2B48;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; font-size: 14px; line-height: 1.45; }
button, select, input, textarea { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1 { margin: 0; font-size: 22px; font-weight: 700; }
h2 { margin: 0; font-size: 15px; font-weight: 700; }
h3 { margin: 0; font-size: 14px; font-weight: 700; }
pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: 12px; }
code { font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: 12px; background: #F0F2F6; padding: 1px 5px; border-radius: 4px; }

/* 布局 · 侧边栏（v0.9.7）：常驻一条窄栏（logo + 图标）；鼠标移上去这条栏本身变宽，文字渐显，盖在页面上（页面不挪动）。
   图标在收起和展开时位置不变：窄栏 64px，图标中心都在 x=32 */
:root { --rail: 64px; --nav-w: 232px; --nav-ease: cubic-bezier(.2, .8, .2, 1); }
.shell { min-height: 100vh; }
.nav { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--rail); background: var(--nav); color: #E8ECF4;
  display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; overflow: hidden;
  transition: width .2s var(--nav-ease) .12s, box-shadow .2s ease .12s; }
.nav-lbl { opacity: 0; white-space: nowrap; transition: opacity .1s ease; }
.nav.wide, .nav.open { width: var(--nav-w); box-shadow: 12px 0 36px #0B122452; transition-delay: 0s; }
.nav.wide .nav-lbl, .nav.open .nav-lbl { opacity: 1; transition: opacity .16s ease .08s; }
@media (hover: hover) and (min-width: 721px) {
  .nav:hover { width: var(--nav-w); box-shadow: 12px 0 36px #0B122452; transition-delay: .05s; }
  .nav:hover .nav-lbl { opacity: 1; transition: opacity .16s ease .12s; }
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 52px; padding-bottom: 10px; flex: none; }
.nav-logo { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: none; }
.nav-logo:hover { background: var(--nav2); }
/* v0.9.9.42（使用者 11-11）：万木鑫 logo（web/logo.png，白底圆角小方块，深色侧边栏上也看得清） */
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 3px; display: block; }
.brand-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: #A9B3C7; }
.nav-links { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.nav-sep { height: 1px; margin: 8px 6px; background: #2A3858; flex: none; }
.nav-links a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 0 0 13px; border-radius: 8px; text-decoration: none; font-size: 14px; color: #C9D1E0; flex: none; }
.nav-links a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-links a:hover { background: #22305299; color: #fff; }
.nav-links a.on { background: #2D4D9A; color: #fff; font-weight: 600; }
.nav-status { margin-top: 8px; padding: 14px; border-radius: 10px; background: var(--nav2); display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #C9D1E0; flex: none; width: calc(var(--nav-w) - 20px); }
/* 管理员的状态框只在展开时出现（收起时不占地方，图标不会被挤掉）；屏幕太矮时不显示（数据管道页能看到同样的信息） */
.nav:not(.wide):not(.open):not(:hover) .nav-status { display: none; }
@media (max-height: 820px) { .nav-status { display: none !important; } }
.nav-status .ns-sub { color: #A9B3C7; }
.ns-row { display: flex; align-items: center; gap: 8px; }
.main { margin-left: var(--rail); min-width: 0; padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 16px; outline: none; }
.loading { padding: 60px; text-align: center; color: var(--muted); }

/* 通用 */
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.base { align-items: baseline; }
.col { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.pad { padding: 16px 20px; }
.clip { overflow: hidden; }
@supports (overflow: clip) { .clip { overflow: clip; } }   /* v0.9.9.10：clip 不是滚动容器，里面的表头才能贴着屏幕顶 */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.r { text-align: right; }
.c { text-align: center; }
.b { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.text-tooltip { position: fixed; z-index: 1000; width: max-content; overflow: auto; overscroll-behavior: contain; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; padding: 10px 12px; background: var(--panel); color: var(--text); border: 1px solid var(--blue-line); border-radius: 8px; box-shadow: 0 6px 24px #16213A26; font-size: 13px; font-weight: 400; line-height: 1.6; text-align: left; user-select: text; }
.text-tooltip[hidden] { display: none; }
/* v0.9.9.11（使用者 10-28）：有提示的地方鼠标也是正常箭头，不再变成问号 */
.native-money { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--muted); }
.traffic-value { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.traffic-badge { font-size: 10px; padding: 1px 4px; line-height: 1.4; }
/* v0.9.9.29：「缺 某 MSKU」「流量在 某 MSKU」一行放不下就省略号（行高固定），鼠标放上去看全 */
.traffic-value { max-width: 100%; }
.traffic-badge.named { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags > .tag { max-width: 100%; }
.tr > div { min-width: 0; }
.grow { flex: 1; }
.ml-auto { margin-left: auto; }
.err { color: var(--red-tx); white-space: pre-wrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.red { color: var(--red); }
.blue { color: var(--blue); }
.scope { font-size: 13px; color: var(--blue); font-weight: 600; }
.note { font-size: 13px; color: var(--muted2); line-height: 1.7; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; }

.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.org { background: var(--org-bg); color: var(--org-tx); }
.grn { background: var(--grn-bg); color: var(--grn-tx); }
.rd { background: var(--red-bg); color: var(--red-tx); }
.bl { background: var(--blue-bg); color: var(--blue); }
.gy { background: #F0F2F6; color: var(--muted2); }
.pu { background: var(--pur-bg); color: var(--pur-tx); }
.te { background: var(--teal-bg); color: var(--teal); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: #A3AEC0; }
.dot.ok { background: #4CC38A; } .dot.warn { background: var(--org); } .dot.bad { background: #E5484D; } .dot.run { background: #6EA0FF; animation: blink 1s infinite; } .dot.off { background: #A3AEC0; }
@keyframes blink { 50% { opacity: .3; } }

/* 控件 */
.btn { height: 38px; padding: 0 14px; border: 1px solid #D5DBE5; border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: #B8C1D0; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #1D49BA; }
.btn.soft { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); font-weight: 600; }
.btn.danger { color: var(--red-tx); }
.btn.ok { background: var(--grn-tx); border-color: var(--grn-tx); color: #fff; font-weight: 600; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12px; }
.link { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-align: left; max-width: 100%; }
.link.red { color: var(--red); }
select, input:not([type]), input[type=text], input[type=search], input[type=password], input[type=date], input[type=number], input[type=url] {
  height: 38px; padding: 0 8px; border: 1px solid #D5DBE5; border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; min-width: 0; }
textarea { padding: 8px 10px; border: 1px solid #D5DBE5; border-radius: 6px; font-size: 13px; line-height: 1.6; color: var(--text); width: 100%; resize: vertical; }
label.f { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
label.v { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted2); font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid #D5DBE5; border-radius: 6px; background: #fff; flex: 1 1 220px; max-width: 320px; }
.search input { flex: 1; border: 0; outline: 0; height: 34px; padding: 0; }
.search.inv-search { height: auto; min-height: 38px; flex: 0 0 auto; width: 170px; max-width: 100%; padding-right: 4px; transition: width .2s var(--ease-out); }
/* v0.9.9.11（使用者 10-28）：鼠标放上去 / 正在输入 / 已经有搜索词时展开 */
.search.inv-search:hover, .search.inv-search:focus-within, .search.inv-search.has-value { width: 440px; }
.inv-search textarea { flex: 1; min-width: 0; border: 0; outline: 0; padding: 7px 0; line-height: 22px; resize: none; background: transparent; }
.inv-search:not(.multi) textarea { white-space: nowrap; overflow: hidden; height: 36px; }
.inv-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #2456D61F; }
.search-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: #5A6375; cursor: pointer; }
.search-go:hover { background: #EEF2F8; color: var(--blue); }
.search-go:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: #F0F2F6; border-radius: 8px; }
.seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted2); font-size: 13px; }
.seg button.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 2px #0000000f; }
.seg.big { background: #E7EBF1; padding: 4px; border-radius: 10px; }
.seg.big button { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 8px; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; border-bottom: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted2); font-size: 14px; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.chip { min-height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid #D5DBE5; background: #fff; color: var(--text); font-size: 13px; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.datebox { font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
.bar-f { padding: 12px 16px; }
.sch-wrap { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.sch { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* 卡片 */
.cards { display: flex; flex-wrap: wrap; gap: 12px; }
.card { flex: 1 1 200px; min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: inherit; }
button.card:hover { border-color: #B8C1D0; }
.card.on { background: var(--blue-soft); border-color: var(--blue); }
.card .lb { font-size: 13px; color: var(--muted2); }
.card .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card .s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 8px; background: #F5F8FE; }
.mini .lb { font-size: 12px; color: var(--muted); }
.mini .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini .s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.statbox { padding: 8px; border-radius: 6px; display: flex; flex-direction: column; gap: 2px; }
.statbox span:first-child { font-size: 11px; }
.statbox span:last-child { font-size: 18px; font-weight: 700; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

/* 表格（用 grid 实现，可横向滚动） */
.tbl-wrap { overflow-x: auto; }
.tbl { display: flex; flex-direction: column; }
.inv-detail-toggle { align-self: flex-start; margin-top: 4px; }
.inv-details { padding: 16px; border-block: 1px solid var(--blue-line); background: var(--blue-soft); }
.inv-details .tbl { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
/* v0.9.9.52（使用者 11-17「<店铺 / 共享库存>、<MSKU>……只是字下面有一个白底。要固定的。像<商品信息>那样」）：两列整格固定在左边
   （撑满整行高度、盖住两列之间的空隙、右边一条分隔线），表头 / 分组 / 合计行用各自的底色 */
.inv-details .tr > .inv-detail-store, .inv-details .tr > .inv-detail-msku { position: sticky; z-index: 2; align-self: stretch; display: flex; align-items: center;
  min-width: 0; background: #fff; }
.inv-details .tr > .inv-detail-store { left: 0; padding-left: 12px; margin-right: -10px; padding-right: 10px; }
.inv-details .tr > .inv-detail-msku { left: 220px; margin-right: -10px; padding-right: 10px; box-shadow: inset -1px 0 0 var(--line2); }
.inv-details .tr > .inv-detail-pin2 { box-shadow: inset -1px 0 0 var(--line2); }
.inv-details .tr.th > .inv-detail-store, .inv-details .tr.th > .inv-detail-msku, .inv-details .tr.grp > .inv-detail-store { background: var(--head); }
.inv-details .inv-detail-store > .clamp2, .inv-details .inv-detail-msku > .ell { min-width: 0; }
.inv-detail-total-label { position: sticky; left: 0; display: inline-block; padding: 0 12px; background: var(--head); }
.tr { display: grid; column-gap: 10px; align-items: center; min-height: 56px; padding: 0 16px 0 0; border-bottom: 1px solid var(--line2); font-size: 13px; font-variant-numeric: tabular-nums; background: #fff; }
.tr.pl { padding-left: 16px; }
.tr.th { min-height: 44px; background: var(--head); font-size: 12px; font-weight: 600; color: var(--muted2); border-bottom: 1px solid var(--line); }
.tr.grp { min-height: 0; background: var(--head); border-bottom: 0; font-size: 12px; font-weight: 600; }
.tr.grp > div { padding: 8px 0; }
.tr.tf { background: var(--head); font-weight: 700; min-height: 48px; border-bottom: 0; }
.tr.sel { background: var(--blue-soft); }
.tr.dim { color: var(--faint); }
.sticky { position: sticky; left: 0; z-index: 1; align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; background: inherit; border-right: 1px solid var(--line2); min-width: 0; }
.thumb { flex: none; width: 36px; height: 36px; border-radius: 6px; background: #EEF1F5; color: var(--muted2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.cell2 { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cell2 .sub { font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.age-old { background: var(--org-bg); color: var(--org-tx); border-radius: 4px; padding: 4px 2px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.tfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line2); }
.bar { height: 8px; border-radius: 4px; background: #EEF1F5; overflow: hidden; flex: 1; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.bar.gray > i { background: #A3AEC0; }
.col > .bar { flex: none; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #DCE5FA; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.avatar.lg { width: 36px; height: 36px; font-size: 14px; }
.person { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 4px; border: 1px solid #D5DBE5; border-radius: 18px; background: #fff; color: var(--text); font-size: 13px; font-weight: 600; }
.person.on { border-color: var(--blue); }

/* 任务流程 */
.stepper { display: flex; align-items: center; }
.stepper .ln { flex: 1; min-width: 10px; height: 2px; margin: 0 6px; background: #D5DBE5; }
.stepper .ln.on { background: var(--blue); }
.stepper .nd { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; color: var(--faint); }
.stepper .nd b { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #C4CCD8; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.stepper .nd.done { color: var(--text); } .stepper .nd.done b { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper .nd.cur { color: var(--text); font-weight: 600; } .stepper .nd.cur b { border-color: var(--blue); color: var(--blue); }
.cellbtn { min-height: 40px; padding: 0 4px; border-radius: 6px; border: 2px solid transparent; font-size: 12px; font-weight: 600; }
.cellbtn.sel { border-color: var(--text); }
.inline-form { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; }
.segbar { display: flex; gap: 3px; }
.segbar span { flex: 1; height: 8px; border-radius: 2px; background: #E3E7EE; }
.stagebox { flex: 1 1 130px; min-width: 0; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }

/* 数据管道 */
.job { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chain .st { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; font-size: 12px; background: #F0F2F6; color: var(--muted2); border: 1px solid transparent; }
.chain .st { min-width: 0; max-width: 100%; }
.chain .st b { flex: none; }
.chain .st b { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.chain .st.success { background: var(--grn-bg); color: var(--grn-tx); }
.chain .st.warning { background: var(--org-bg); color: var(--org-tx); }
.chain .st.failed { background: var(--red-bg); color: var(--red-tx); border-color: #F2B8B3; }
.chain .st.running { background: var(--blue-bg); color: var(--blue); }
.chain .st.skipped { background: #F7F9FC; color: var(--faint); text-decoration: line-through; }
.chain .ar { color: #A3AEC0; font-size: 12px; }
.steps-detail { margin: 0 16px 16px; padding: 12px 16px; border-radius: 8px; background: var(--head); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.steps-detail .sd { display: grid; grid-template-columns: 28px 1fr 80px; gap: 10px; font-size: 13px; }
.banner { padding: 12px 16px; border-radius: 10px; background: var(--blue-bg); color: var(--blue); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.banner.warn { background: var(--org-bg); color: var(--org-tx); }

/* 设置 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mode-pick { display: flex; flex-wrap: wrap; gap: 12px; }
.mode-pick button { flex: 1 1 260px; text-align: left; padding: 16px 18px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; }
.mode-pick button.on { border-color: var(--blue); background: var(--blue-soft); }
.mode-pick b { font-size: 15px; }
.codebox { padding: 12px 14px; border-radius: 8px; background: #0F1729; color: #D7E0F0; max-height: 360px; overflow: auto; }
details.box { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
details.box > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 13px; }
details.box > div { padding: 0 14px 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 900;  /* v0.9.9.39：压在抽屉（160）上面 */ max-width: min(90vw, 640px); box-shadow: 0 6px 24px #0003; }

/* 账号删除确认：沿用平台颜色和按钮，dialog 提供焦点约束及 Esc 取消。 */
.confirm-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 18px 60px #16213A38; overflow: auto; }
.confirm-dialog::backdrop { background: #16213A66; }
.confirm-dialog p { margin: 0; line-height: 1.7; }
.confirm-target { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 8px; background: var(--head); overflow-wrap: anywhere; }
.confirm-actions { justify-content: flex-end; margin-top: 4px; }

@media (max-width: 720px) {
  /* 手机：顶部一条，只有 logo；点 logo 从左边展开整条菜单 */
  .nav { position: sticky; bottom: auto; width: 100%; height: 56px; flex-direction: row; align-items: center; padding: 6px 12px; transition: none; }
  .nav:not(.open) .nav-links, .nav:not(.open) .nav-status, .nav:not(.open) .nav-user, .nav:not(.open) .nav-lbl { display: none; }
  .nav.open { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 260px); height: auto; flex-direction: column; align-items: stretch; padding: 14px 10px; }
  .main { margin-left: 0; padding: 16px 16px 40px; }
  .nav-status { margin-top: 8px; width: auto; }
  .inline-form { grid-template-columns: 1fr; }
  .sch-wrap { margin-left: 0; }
}

/* 密钥诊断 */
.banner.ok { background: var(--grn-bg); color: var(--grn-tx); }
.banner.bad { background: var(--red-bg); color: var(--red-tx); }
.banner.block { display: block; line-height: 1.7; }
.verdict-title { font-size: 15px; font-weight: 700; display: block; margin-bottom: 2px; }
.json-paste { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.checklist { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--muted2); }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* 登录页 */
.login-body { background: var(--bg); }
.login-shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-side { flex: 1 1 380px; background: var(--nav); color: #E8ECF4; padding: 48px 56px; display: flex; flex-direction: column; gap: 40px; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-logo { width: 48px; height: 48px; border-radius: 12px; background: #fff; padding: 4px; display: block; flex: none; }
.login-brand-name { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.login-brand-sub { font-size: 13px; color: #A9B3C7; margin-top: 2px; }
.login-points { list-style: none; margin: auto 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.login-points li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 2px solid #F2B544; }
.login-points b { font-size: 16px; color: #fff; }
.login-points span { font-size: 13px; color: #A9B3C7; }
.login-foot { font-size: 12px; color: #8F9AB0; }
.login-main { flex: 2 1 420px; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { font-size: 24px; }
.login-card input[type=text], .login-card input[type=password] { height: 44px; font-size: 15px; width: 100%; }
.btn.big { height: 46px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; }
a.btn.primary { color: #fff; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); }
a.btn.primary { color: #fff; }
@media (max-width: 720px) {
  .login-side { padding: 28px 20px; gap: 18px; flex-basis: 100%; }
  .login-points { display: none; }
  .login-foot { display: none; }
}

/* 侧栏里的当前用户 */
.nav-user { display: flex; align-items: center; gap: 10px; padding: 8px 7px; border-radius: 10px; background: var(--nav2); font-size: 13px; width: calc(var(--nav-w) - 20px); }
.nav-user .avatar { width: 30px; height: 30px; border-radius: 50%; background: #2D4D9A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.nav-user .who, .nav-user .out { opacity: 0; transition: opacity .1s ease; }
.nav.wide .nav-user .who, .nav.wide .nav-user .out, .nav.open .nav-user .who, .nav.open .nav-user .out { opacity: 1; transition: opacity .16s ease .08s; }
@media (hover: hover) and (min-width: 721px) { .nav:hover .nav-user .who, .nav:hover .nav-user .out { opacity: 1; transition: opacity .16s ease .12s; } }
.nav-user .who { display: flex; flex-direction: column; min-width: 0; }
.nav-user .who b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user .who span { color: #A9B3C7; font-size: 12px; }
.nav-user .out { margin-left: auto; background: transparent; border: 1px solid #3A4A6E; color: #C9D1E0; border-radius: 6px; font-size: 12px; height: 28px; padding: 0 8px; }
.nav-user .out:hover { color: #fff; border-color: #6B7FA8; }
.temp-pw { font-size: 20px; letter-spacing: 2px; padding: 6px 12px; background: #fff; border: 1px dashed var(--grn); border-radius: 6px; user-select: all; }
[hidden] { display: none !important; }
.nav-user a.who { gap: 0; }
.nav-user a.who:hover { background: transparent; }
.kv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
.kv-list > div { display: flex; flex-direction: column; gap: 2px; }
.kv-list span { font-size: 12px; color: var(--muted); }
.steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; color: var(--muted2); }

/* 趋势对比 */
.trend-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted2); }
.trend-legend .k { display: inline-flex; align-items: center; gap: 8px; }
.trend-legend .k i { width: 18px; height: 2px; border-radius: 2px; display: inline-block; }
.trend-chart { position: relative; width: 100%; outline: none; border-radius: 8px; }
.trend-chart:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.trend-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.trend-tt { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px #1c22301f; padding: 10px 12px; font-size: 12px; min-width: 190px; z-index: 5; }
.trend-tt .h { color: var(--muted); margin-bottom: 6px; }
.trend-tt .r { display: flex; align-items: center; gap: 8px; margin-top: 4px; text-align: left; }
.trend-tt .r i { width: 14px; height: 2px; border-radius: 2px; flex: none; }
.trend-tt .r b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.trend-tt .r span { color: var(--muted); }
.trend-tt .d { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line2); color: var(--muted2); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { padding: 12px 14px; border-radius: 8px; background: #F7F9FC; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .lb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .lb i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.kpi .v { font-size: 24px; font-weight: 700; }
.kpi .s { font-size: 12px; color: var(--muted); }

/* 下拉选择（平台样式，代替系统自带的 select） */
.dd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dd.stack { display: flex; flex-direction: column; align-items: stretch; gap: 6px; color: var(--muted2); font-weight: 600; }
.dd-btn { height: 38px; min-width: 128px; max-width: 280px; padding: 0 10px 0 12px; border: 1px solid #D5DBE5; border-radius: 6px; background: #fff; color: var(--text);
  font-size: 13px; font-weight: 400; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.dd.stack .dd-btn { max-width: none; width: 100%; }
.dd-btn:hover { border-color: #B8C1D0; }
.dd.open .dd-btn { border-color: var(--blue); box-shadow: 0 0 0 3px #2456D61F; }
.dd-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-ic { flex: none; color: var(--muted); transition: transform .15s; }
.dd.open .dd-ic { transform: rotate(180deg); }
.dd-pop { position: fixed; z-index: 400; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px #1C22302B;
  padding: 6px; display: flex; flex-direction: column; gap: 4px; max-width: min(360px, calc(100vw - 16px)); font-weight: 400; }
.dd-pop[hidden] { display: none !important; }
.dd-q { height: 34px !important; }
.dd-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.dd-o { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: 13px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; }
.dd-o:hover { background: var(--head); }
.dd-o:focus-visible { outline: none; background: var(--head); box-shadow: inset 0 0 0 2px var(--blue); }
.dd-o.on { color: var(--blue); font-weight: 600; background: var(--blue-soft); }
.dd-o.on::after { content: '✓'; }
.dd-ol { overflow: hidden; text-overflow: ellipsis; }
.dd-sub { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; flex: none; }
.dd-empty { padding: 8px 10px; font-size: 12px; color: var(--muted); }
/* v0.9.9.30（使用者 11-05）：国家筛选做成领星那样——左边地区、右边国家，可以多选，取消 / 确定 */
.cc-pop { padding: 0 !important; }
.cc-cols { display: flex; min-width: 400px; }
.cc-left, .cc-right { max-height: 300px; overflow-y: auto; padding: 6px; }
.cc-left { width: 190px; border-right: 1px solid var(--line); }
.cc-right { flex: 1; min-width: 210px; }
.cc-row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.cc-row:hover, .cc-row.act { background: var(--head); }
.cc-row.act { color: var(--blue); }
.cc-row label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.cc-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); flex: none; }
.cc-arrow { color: var(--muted); font-size: 14px; }
.cc-only { display: none; border: 0; background: transparent; color: var(--blue); font-size: 12px; padding: 2px 4px; cursor: pointer; white-space: nowrap; }
.cc-row:hover .cc-only, .cc-only:focus-visible { display: inline; }
.cc-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }

/* 正在更新数据 */
.pill.live { gap: 6px; }

/* 接口设置 */
.status-cards .card { flex-basis: 170px; gap: 8px; }
.status-cards .card .s { max-width: 100%; }
.cklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cklist li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: var(--head); }
.cklist li b { min-width: 170px; }
.cklist li.ok b { color: var(--grn-tx); }
.cklist li.bad { background: var(--red-bg); }
.cklist li.bad b { color: var(--red-tx); }
.cklist li > span { flex: 1 1 260px; color: var(--muted2); line-height: 1.6; }
.cklist li > span.small { flex-basis: 100%; }
.subcard { padding-top: 14px; border-top: 1px solid var(--line2); }
.subcard:first-of-type { border-top: 0; padding-top: 0; }
.share-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; border-radius: 10px; background: var(--grn-bg); }
.share-url a { font-size: 16px; word-break: break-all; color: var(--grn-tx); }
.sched-grid { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; align-items: center; font-size: 13px; color: var(--muted2); }
details.adv > summary { font-size: 14px; }
details.adv > div { padding-top: 4px; }
@media (max-width: 720px) { .sched-grid { grid-template-columns: 1fr; } .cklist li b { min-width: 0; } }
.nav-user { margin-top: 8px; }
.nav-user { flex: none; }
.seg.mini-seg { padding: 2px; }
.seg.mini-seg button { min-height: 28px; padding: 0 10px; font-size: 12px; }
.person .ell { max-width: 110px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.45; word-break: break-all; }

/* ================= v0.9.6 ================= */
/* 状态小圆点：鼠标放上去看同步时间（代替以前的大段说明文字） */
.live-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #A3AEC0; vertical-align: middle; }
.live-dot.ok { background: #31B072; animation: pulse 2.2s infinite; }
.live-dot.warn { background: var(--org); }
.live-dot.bad { background: #E5484D; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #31B07280; } 70% { box-shadow: 0 0 0 7px #31B07200; } 100% { box-shadow: 0 0 0 0 #31B07200; } }
@media (prefers-reduced-motion: reduce) { .live-dot.ok, .dot.run { animation: none; } .nav, .nav-lbl, .nav-user .who, .nav-user .out { transition: none !important; } }
.btn.ghost { background: transparent; }

/* 数据总览 · 上面：筛选 + 四地时间 + 今日实时 */
.ov-top { display: flex; flex-direction: column; }
.ov-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.ov-filters { flex: 1 1 520px; }
.clocks { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.clock { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: 8px; background: var(--head); border: 1px solid var(--line2); min-width: 118px; }
.clock .ck-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.clock .ck-t { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .3px; line-height: 1.25; }
.ov-live { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ov-scope { font-size: 13px; color: var(--blue); font-weight: 600; }
.instant-cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.instant-cards .mini { min-width: 0; padding: 12px; }
.instant-cards .v { white-space: nowrap; }
.instant-cards .s { overflow-wrap: anywhere; }
@media (max-width: 1360px) { .instant-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .instant-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 数据总览 · 下面：销售 + 库存 + 按负责人 / 国家，一个板块 */
.ov-main { padding: 14px 16px 4px; display: flex; flex-direction: column; gap: 14px; }
.ov-main > .ov-filters { flex: none; }
.kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.kpi-tile { min-width: 0; padding: 10px 12px; border-radius: 8px; background: #F7F9FC; border-top: 3px solid var(--blue); display: flex; flex-direction: column; gap: 3px; }
.kpi-tile.inv { border-top-color: var(--teal); }
.kpi-tile .lb { font-size: 12px; color: var(--muted2); white-space: nowrap; }
.kpi-tile .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-tile .s { font-size: 12px; min-height: 17px; }
@media (max-width: 1360px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clocks { margin-left: 0; } .clock { min-width: 0; flex: 1 1 130px; } }
.th-sort { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 3px; min-height: 28px; text-align: inherit; }
.r > .th-sort { justify-content: flex-end; width: 100%; }
.th-sort:hover { color: var(--blue); }
.th-sort.on { color: var(--blue); }
.th-sort .ar { font-size: 10px; }
/* v0.9.9.10：能排序的列一直有一对小箭头，正在排的那个变蓝 */
.sort-ic { display: inline-flex; flex-direction: column; gap: 2px; margin-left: 3px; flex: none; }
.sort-ic i { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: .32; transition: opacity .15s ease, border-color .15s ease; }
.sort-ic .u { border-bottom: 4px solid currentColor; }
.sort-ic .d { border-top: 4px solid currentColor; }
.th-sort:hover .sort-ic i { opacity: .55; }
.th-sort.on.asc .sort-ic .u, .th-sort.on.desc .sort-ic .d { opacity: 1; }

/* ASIN 工作台 · Listing 视图（和领星 Listing 页一样一行一个链接） */
.aw-filters, .aw-actions { min-width: 0; }
.aw-actions { padding-top: 2px; }
.search.aw-search { flex: 0 1 150px; width: 150px; max-width: 100%; transition: flex-basis .18s ease, width .18s ease; }
.search.aw-search:focus-within, .search.aw-search.has-value { flex-basis: 300px; width: 300px; }
.search.aw-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #2456D61F; }
.aw-search input { width: 100%; }
.aw-tbl .tr.data { height: 62px; min-height: 62px; }
.aw-tbl .tr.th { min-height: 44px; }
.aw-tbl .cell2 > .ell, .aw-tbl .cell2 > .sub { display: block; }
.thumb.pic { position: relative; overflow: hidden; background: #F3F5F8; border: 1px solid var(--line2); }
.thumb.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.flag { font-size: 14px; line-height: 1; margin-right: 3px; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.vsep { color: #B8C1D0; margin: 0 4px; }
.ext { color: var(--blue); text-decoration: none; font-weight: 600; }
.ext:hover { text-decoration: underline; }
.st-tag { font-size: 12px; }
.pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted2); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #D5DBE5; border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.pg:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pg-gap { color: var(--faint); padding: 0 2px; }
.pg-go { width: 64px; height: 32px !important; }
.inv-tbl .tr.data { min-height: 72px; }

/* 周期对比：右侧抽屉，不再挤在表格下面 */
.drawer-mask { position: fixed; inset: 0; background: #16213A38; z-index: 44; opacity: 0; visibility: hidden; transition: opacity .26s var(--ease-out), visibility 0s linear .26s; }
.drawer-mask.on { opacity: 1; visibility: visible; transition: opacity .26s var(--ease-out); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: #fff; z-index: 45; box-shadow: -14px 0 40px #16213A38; display: flex; flex-direction: column; outline: none;
  transform: translateX(104%); visibility: hidden; will-change: transform;
  transition: transform .3s var(--ease-drawer), visibility 0s linear .3s; }
.drawer.on { transform: translateX(0); visibility: visible; transition: transform .38s var(--ease-drawer); }
.drawer-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-b { padding: 16px 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cmp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 92px; column-gap: 12px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line2); font-size: 13px; font-variant-numeric: tabular-nums; }
.cmp-row.th { min-height: 36px; font-size: 12px; font-weight: 600; color: var(--muted2); }
.cmp-row .bars { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
@media (max-width: 720px) {
  .aw-filters > .dd { max-width: 100%; }
  .aw-actions { gap: 8px; }
  .drawer-h { padding: 12px; }
  .drawer-b { padding: 12px; }
  .cmp-row { grid-template-columns: 68px minmax(0, 1fr) minmax(0, 1fr) 78px; column-gap: 6px; font-size: 12px; }
  .cmp-row > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .search.aw-search, .search.inv-search { transition: none; }
  .drawer, .drawer.on, .drawer-mask, .drawer-mask.on { transition: none; }
}
details.rules-box > summary { cursor: pointer; list-style-position: inside; }
details.rules-box > summary h2 { margin-left: 4px; }
/* v0.9.7 ASIN 工作台：预警列和左边的金额隔开一点；合计行数字不换行 */
.aw-tbl .aw-alerts { padding-left: 16px; }
.aw-tbl .tr.tf .r { white-space: nowrap; }

/* ================= v0.9.9.10：排版、动画、提速 ================= */
:root { --ease-out: cubic-bezier(.22, .61, .36, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1); --sticky-top: 0px; }
@media (max-width: 720px) { :root { --sticky-top: 56px; } }

/* 固定表头：表头单独一条贴着屏幕顶（页面上下滑动时不动），表格左右滚动时表头跟着滚；底下一条一直看得见的横向滚动条 */
.tbl-head { position: sticky; top: var(--sticky-top); z-index: 6; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: var(--head); }
.tbl-head::-webkit-scrollbar { display: none; }
.tbl-head .tr.th { box-shadow: 0 1px 0 var(--line); }
/* v0.9.9.11（Codex 155）：页面里自己滚动的小表（产品评级预览、上传记录明细）表头也固定在框顶 */
.tbl-wrap.no-split > .tbl > .tr.th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--line); }
.tbl-body { scrollbar-width: none; }
.tbl-body::-webkit-scrollbar { display: none; }
.tbl-hbar { position: sticky; bottom: 0; z-index: 6; height: 14px; overflow-x: auto; overflow-y: hidden; background: #ffffffd9; border-top: 1px solid var(--line2); }
.tbl-hbar > div { height: 1px; }
.tbl-hbar::-webkit-scrollbar { height: 10px; }
.tbl-hbar::-webkit-scrollbar-thumb { background: #C3CBD8; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
.tbl-hbar::-webkit-scrollbar-thumb:hover { background-color: #A3AEC0; }
.tbl-hbar { scrollbar-width: thin; scrollbar-color: #C3CBD8 transparent; }
.tbl-split { min-width: 0; }
.panel > .tbl-split:first-child > .tbl-head { border-radius: 10px 10px 0 0; }
.tr.grp > .sticky { padding-left: 16px; }

/* 顶部细进度条（页面等超过 0.15 秒才出现） */
#loadbar { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 80; pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #2456D6, #6EA0FF); transition: opacity .2s ease; }
#loadbar.on { opacity: 1; animation: loadbar 1.4s var(--ease-out) infinite; }
@keyframes loadbar { 0% { transform: scaleX(0); } 60% { transform: scaleX(.75); } 100% { transform: scaleX(.98); opacity: .2; } }

/* 换页面时内容轻轻浮上来（同一页面里排序、翻页不动） */
.main.enter > * { animation: page-in .22s var(--ease-out) backwards; }   /* v0.9.9.19：不用 both——动画结束后不留 transform（否则里面 fixed 的东西以它为准、会飘） */
.main.enter > *:nth-child(2) { animation-delay: .02s; }
.main.enter > *:nth-child(3) { animation-delay: .04s; }
.main.enter > *:nth-child(n+4) { animation-delay: .06s; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 按钮、卡片、分页、切换的手感 */
.btn, .chip, .pg, .seg button, .tabs button, .card, .person, .dd-btn, .link, .th-sort, .nav-links a {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:active:not(:disabled), .chip:active, .pg:active:not(:disabled) { transform: translateY(1px); }
button.card:hover { box-shadow: 0 2px 10px #16213A12; }
.btn.warn-on { background: var(--org-bg); border-color: #F5C98F; color: var(--org-tx); font-weight: 600; }
.dd-pop:not([hidden]) { animation: pop-in .14s var(--ease-out); transform-origin: top left; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.toast:not([hidden]) { animation: toast-in .22s var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tr.data { transition: background-color .12s ease; }
.tr.data:hover { background: #FAFBFD; }
.tr.data.sel, .tr.data.sel:hover { background: var(--blue-soft); }
.row.nowrap { flex-wrap: nowrap; }

/* 周期对比：加载时的占位 */
.skel { display: inline-block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #EEF1F5 25%, #F6F8FB 37%, #EEF1F5 63%); background-size: 400% 100%; animation: skel 1.2s ease infinite; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.drawer-b.loading .cmp-row { min-height: 44px; }

/* 评级 / 新品 */
.gbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; font-size: 12px; font-weight: 700; flex: none; line-height: 1; }
.gbadge.g-s { background: #FCE8E6; color: #B42318; box-shadow: inset 0 0 0 1px #F4B6AF; }
.gbadge.g-a { background: #FFF1DE; color: #8A4A00; box-shadow: inset 0 0 0 1px #F5CD91; }
.gbadge.g-b { background: #E8EFFD; color: #2456D6; box-shadow: inset 0 0 0 1px #BCCDF4; }
.gbadge.g-c { background: #EEF1F5; color: #4A5263; box-shadow: inset 0 0 0 1px #D5DBE5; }
.nbadge { font-size: 11px; padding: 0 5px; flex: none; }
.gchips { gap: 6px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; }
.gchip .n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gchip.on .n { color: #ffffffcc; }
.gchip.on.g-s { background: #B42318; border-color: #B42318; }
.gchip.on.g-a { background: #B85C00; border-color: #B85C00; }
.gchip.on.g-b { background: var(--blue); border-color: var(--blue); }
.gchip.on.g-c { background: #4A5263; border-color: #4A5263; }
.gchip.on.g-new { background: var(--red-tx); border-color: var(--red-tx); }
.aw-actions .vsep { margin: 0 2px; }
.gdist { display: flex; flex-direction: column; gap: 10px; }
.gdist-row { display: grid; grid-template-columns: 90px minmax(200px, 1fr) minmax(220px, auto); gap: 14px; align-items: center; font-size: 13px; }
.gbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #EEF1F5; }
.gseg { display: block; height: 100%; }
.gseg.g-s { background: #D9483B; } .gseg.g-a { background: #E8A33D; } .gseg.g-b { background: #4A7BE6; } .gseg.g-c { background: #98A2B3; }
.gseg.g-new { background: #F08A80; } .gseg.g-none { background: #DDE2EA; }
.gleg { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.warnrow { background: #FFFBF3; }
.filebtn { display: inline-flex; align-items: center; position: relative; overflow: hidden; }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gdetail { padding: 12px 16px; background: var(--blue-soft); border-bottom: 1px solid var(--line2); }
.gprev { border-top: 1px solid var(--line2); padding-top: 14px; }
@media (max-width: 720px) { .gdist-row { grid-template-columns: 1fr; gap: 4px; } .aw-actions .vsep { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .main.enter > *, .dd-pop:not([hidden]), .toast:not([hidden]), #loadbar.on, .skel { animation: none !important; }
  .btn, .chip, .pg, .seg button, .tabs button, .card, .tr.data, .sort-ic i { transition: none !important; }
}
/* v0.9.9.11 数据总览：负责人表下面一行说明数从哪来 */
.ov-src { padding: 8px 2px 0; line-height: 1.6; }

/* v0.9.9.13 项目 / 任务：沿用平台变量。使用者本轮取消新增手机适配。 */
/* 固定定位的下拉菜单以视口为基准，祖先入场动画不能建立 transform 包含块。 */
.main.enter > .w13-page { animation-name:w13-page-in; }
@keyframes w13-page-in { from { opacity:0; } to { opacity:1; } }
.w13-page { display:flex; flex-direction:column; gap:16px; min-width:0; }
.w13-tabs { position:sticky; top:0; z-index:12; background:var(--bg); padding:4px 0; }
.w13-tabs .seg { flex-wrap:wrap; }
.w13-filters { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.w13-filters input[type=date] { width:140px; }
.w13-search { min-height:36px; }
.w13-search input { width:100%; border:0; background:transparent; box-shadow:none; min-width:0; }
.w13-search .search-go { width:28px; height:28px; align-self:center; }
.w13-search .search-go svg { display:block; width:18px; height:18px; flex:none; }
.w13-task-scroll,.w13-node-scroll { overflow-x:auto; }
.w13-task-table { min-width:1350px; }
.w13-task-head,.w13-task-row { display:grid; grid-template-columns:minmax(220px,2fr) 126px 110px 180px 116px 130px 92px 130px 108px; gap:14px; align-items:center; padding:14px 18px; }
.w13-task-head,.w13-person-head,.w13-node-head { background:var(--head); color:var(--muted); font-size:12px; font-weight:600; border-bottom:1px solid var(--line); }
.w13-task-row { border-top:1px solid var(--line2); font-size:12px; min-height:84px; }
.w13-task-row:hover { background:#FBFCFE; }
.w13-task-row>div,.w13-node-row>div { min-width:0; overflow-wrap:anywhere; }
.w13-task-title { display:flex; flex-direction:column; gap:5px; }
.w13-task-title .link { font-size:14px; text-align:left; line-height:1.5; white-space:normal; }
.w13-task-row small,.w13-node-row small { display:block; color:var(--muted); margin-top:4px; }
.w13-approvers { display:flex; flex-wrap:wrap; align-items:center; gap:4px; font-size:12px; }
.w13-approval { padding:3px 6px; border-radius:5px; background:var(--head); }
.w13-approval.done { color:var(--grn-tx); background:var(--grn-bg); }
.w13-approval.current { color:var(--org-tx); background:var(--org-bg); font-weight:700; box-shadow:inset 0 0 0 1px #E8A33D55; }
.w13-approvers.detailed { gap:10px; }
.w13-approvers.detailed .w13-approval { display:flex; flex-direction:column; gap:4px; min-width:130px; padding:12px; border:1px solid var(--line); }
.w13-arrow { color:var(--faint); }
.w13-person-table { overflow:hidden; }
.w13-person-head,.w13-person-row { display:grid; grid-template-columns:minmax(110px,1.3fr) repeat(5,minmax(58px,.6fr)) minmax(120px,1.2fr) minmax(140px,1.3fr); gap:16px; padding:15px 20px; align-items:center; text-align:left; }
.w13-person-row { width:100%; border:0; border-top:1px solid var(--line2); background:var(--panel); color:var(--text); font-size:13px; }
.w13-person-row:hover { background:var(--blue-soft); }
.w13-overlay-open { overflow:hidden; }
.w13-overlay { position:fixed; z-index:160; inset:0; }
.w13-shade { position:absolute; inset:0; background:#101B334D; }
.w13-drawer { position:absolute; inset:0 0 0 auto; width:min(760px,94vw); display:flex; flex-direction:column; background:var(--panel); box-shadow:-12px 0 40px #101B332B; }
.w13-drawer.wide { width:min(1000px,96vw); }
.w13-drawer>header { display:flex; align-items:center; justify-content:space-between; padding:18px 24px; border-bottom:1px solid var(--line); flex:none; }
.w13-drawer-body { overflow:auto; padding:22px 24px 40px; flex:1; }
.w13-detail-head h2 { font-size:21px; margin:14px 0 8px; }
.w13-pre { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.w13-info { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:20px 0; }
.w13-info dt { color:var(--muted); font-size:12px; margin-bottom:5px; }
.w13-info dd { margin:0; overflow-wrap:anywhere; font-size:13px; }
.w13-section { padding-top:20px; margin-top:20px; border-top:1px solid var(--line); }
.w13-section h3 { margin-bottom:12px; }
.w13-actions { padding:16px 0 0; }
.w13-files { display:flex; flex-wrap:wrap; gap:8px; }
.w13-file { display:flex; align-items:center; gap:10px; border:1px solid var(--line); background:var(--head); border-radius:6px; padding:8px 10px; text-decoration:none; overflow-wrap:anywhere; margin-top:6px; }
.w13-events { padding:0; margin:0; list-style:none; }
.w13-events li { padding:14px 0 14px 16px; border-left:2px solid var(--line); position:relative; }
.w13-events li:before { content:''; position:absolute; top:22px; left:-5px; width:8px; height:8px; border-radius:50%; background:var(--blue); }
.w13-event-top { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:5px; font-size:12px; }
.w13-event-top time { color:var(--muted); margin-left:auto; }
.w13-form { gap:16px; }
.w13-form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.w13-form .dd { min-width:0; }
.w13-form .dd-btn { width:100%; }
.w13-form input:not([type=checkbox]),.w13-form textarea { width:100%; }
.w13-form .filebtn input { width:auto; }
.w13-deliverable,.w13-approval-preview { padding:12px 14px; background:var(--blue-soft); border-radius:8px; font-size:13px; line-height:1.7; }
#w13UploadProgress { margin-top:10px; color:var(--muted); font-size:12px; }
.w13-project-stats .card { flex-basis:180px; }
.w13-project-card { overflow:hidden; }
.w13-project-header { display:grid; grid-template-columns:minmax(240px,2fr) minmax(170px,1.1fr) 100px minmax(130px,1fr); gap:18px; align-items:center; padding:20px; border-bottom:1px solid var(--line2); }
.w13-project-name { display:flex; gap:10px; align-items:baseline; text-decoration:none; color:var(--text); font-size:17px; font-weight:700; }
.w13-project-name span { flex:none; color:var(--blue); font-size:12px; }
.w13-project-people { display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted); }
.w13-project-people b { color:var(--text); font-weight:500; margin-left:8px; }
.w13-project-time { text-align:right; }
.w13-project-time small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.w13-lanes { display:flex; flex-direction:column; gap:8px; padding:16px 20px 20px; }
.w13-lane { display:grid; grid-template-columns:58px 1fr; gap:12px; align-items:center; }
.w13-lane>b { font-size:12px; color:var(--muted); }
.w13-nodes { display:flex; gap:7px; }
.w13-node { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; padding:10px 8px; border:1px solid var(--line); background:var(--head); border-radius:6px; color:var(--muted); text-decoration:none; font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.w13-node>span { font-weight:600; }
.w13-node small { font-size:10px; opacity:.85; }
.w13-node.doing { background:var(--blue-bg); border-color:var(--blue-line); color:var(--blue); }
.w13-node.pending { background:#FFF7D6; border-color:#EAD178; color:#856000; }
.w13-node.returned { background:var(--org-bg); border-color:#EDC59C; color:var(--org-tx); }
.w13-node.done { background:var(--grn-bg); border-color:#AFD7C0; color:var(--grn-tx); }
.w13-lane-locked { background:var(--head); border-radius:6px; padding:14px; color:var(--faint); font-size:12px; }
.w13-node-table { min-width:1430px; }
.w13-node-head,.w13-node-row { display:grid; grid-template-columns:minmax(220px,2fr) 104px 110px 116px 130px 130px 130px 90px 100px 66px 70px; gap:12px; align-items:center; padding:14px 18px; }
.w13-node-row { font-size:12px; list-style:none; cursor:pointer; border-top:1px solid var(--line2); }
.w13-node-row::-webkit-details-marker { display:none; }
.w13-node-row>div:first-child>b:before { content:'›'; display:inline-block; margin-right:6px; }
.w13-node-detail[open]>.w13-node-row>div:first-child>b:before { transform:rotate(90deg); }
.w13-node-tasks { padding:12px; background:var(--head); }
.w13-timeline-legend>span { display:flex; align-items:center; gap:5px; }
.w13-key { display:inline-block; width:10px; height:10px; border-radius:2px; }
.w13-key.finish,.w13-time-track .finish { background:var(--blue); }
.w13-key.confirm,.w13-time-track .confirm { background:var(--teal); }
.w13-time-row { display:grid; grid-template-columns:180px 1fr 160px; align-items:center; gap:16px; min-height:34px; font-size:12px; }
.w13-time-row>small { color:var(--muted); text-align:right; }
.w13-time-track { height:12px; background:var(--head); position:relative; border-radius:4px; overflow:hidden; }
.w13-time-track i { position:absolute; top:0; height:100%; min-width:0; }
@media(max-width:1050px) {
  .w13-project-header { grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) 90px; }
  .w13-project-time { grid-column:1/-1; text-align:left; display:flex; gap:8px; align-items:center; }
  .w13-nodes { flex-wrap:wrap; }
  .w13-node { flex-basis:calc(25% - 8px); }
}


/* v0.9.9.13 账号权限与职务 */
.a13-nav-badge { position:absolute;top:5px;right:5px;min-width:17px;padding:1px 4px;border-radius:9px;background:var(--blue);color:white;font:600 10px/15px system-ui;text-align:center; }
.nav-links a[data-r="tasks"] { position:relative; }
.nav:hover .a13-nav-badge,.nav.wide .a13-nav-badge,.nav.open .a13-nav-badge { position:static;margin-left:auto; }
.a13-perms { display:flex;flex-direction:column;gap:4px;line-height:1.5; }
.a13-user > div { overflow-wrap:anywhere; }
.a13-edit { background:var(--blue-soft);border-bottom:1px solid var(--line); }
.a13-approve { align-self:center; }
.a13-import-scroll { max-height:580px;overflow:auto;border:1px solid var(--line);border-radius:8px; }
.a13-preview { width:100%;min-width:1380px;border-collapse:collapse;font-size:12px; }
.a13-preview th { position:sticky;top:0;z-index:2;background:var(--head);text-align:left;white-space:nowrap; }
.a13-preview td,.a13-preview th { padding:11px 12px;border-bottom:1px solid var(--line);line-height:1.55;vertical-align:top; }
.a13-preview td:last-child { min-width:230px;max-width:360px;white-space:normal; }
.a13-warn { background:#fff8eb; }
.a13-warn td:last-child { color:var(--org-tx); }
.a13-passwords { border-collapse:collapse;margin-bottom:12px; }
.a13-passwords th,.a13-passwords td { text-align:left;padding:8px 20px 8px 0; }
.a13-import input[type="file"] { max-width:260px;font-size:12px; }


/* v0.9.9.14：没到时候的节点只写什么时候开始；垃圾桶 */
.w14-node-wait { background:transparent; border-style:dashed; color:var(--faint); }
.w14-node-wait small { opacity:1; }
.w14-row-wait { cursor:default; color:var(--faint); }
.w14-row-wait b { color:var(--muted); font-weight:600; }
.w13-node-section > .w13-lane-locked { margin-top:12px; }
.w14-trash-set input[type=number] { width:84px; }
.w14-trash .pad { padding-bottom:8px; }
.w14-trash-row { display:grid; grid-template-columns:minmax(260px,1fr) 180px 80px 220px; gap:12px; align-items:center; padding:12px 20px; border-top:1px solid var(--line2); font-size:13px; }
.w14-trash-row small { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.w14-trash-row .row { justify-content:flex-end; gap:8px; }
.w14-row-wait>div:first-child>b:before { content:''; margin-right:0; }


/* v0.9.9.19 项目 / 任务：按节点自动推进。看板 = 产品部 / 设计部 / 运营部（每个运营一行）；节点卡写清谁在做、待谁审批、退回、用时 */
.w19-task-table { min-width: 1240px; }
.w19-task-head, .w19-task-row { display: grid; grid-template-columns: minmax(240px, 2.2fr) 128px 112px 150px minmax(150px, 1.1fr) minmax(180px, 1.3fr) 104px 104px; gap: 14px; align-items: center; padding: 12px 18px; }
.w19-task-head { background: var(--head); color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w19-task-row { border-top: 1px solid var(--line2); font-size: 12px; min-height: 64px; cursor: pointer; }
.w19-task-row:hover { background: #FBFCFE; }
.w19-task-row > div { min-width: 0; overflow-wrap: anywhere; }
.w19-task-row small { display: block; color: var(--muted); margin-top: 3px; }
.w19-now b { font-weight: 600; }
.w13-form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w19-nowbox { margin: 14px 0 4px; padding: 12px 14px; border-radius: 8px; background: var(--blue-soft); border: 1px solid var(--blue-line); font-size: 14px; }
.w19-nowbox small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.w19-nowbox.pending, .w19-nowbox.request { background: #FFF7E6; border-color: #F0CE8E; }
.w19-nowbox.returned { background: var(--org-bg); border-color: #EDC59C; }
.w19-nowbox.done, .w19-nowbox.skipped { background: var(--grn-bg); border-color: #AFD7C0; }
.w19-nowbox.waiting { background: var(--teal-bg); border-color: #A8D5D4; }
.w19-chains { display: flex; flex-direction: column; gap: 12px; }
.w19-chains > div > .small { display: block; margin-bottom: 6px; }
.w19-times { padding-top: 16px; border-top: 1px solid var(--line); }
.w19-cycles { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.w19-cycles li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 6px; background: var(--head); color: var(--muted); font-size: 11px; }
.w19-cycles li b { font-size: 14px; color: var(--text); }
.w19-cycles li.done { background: var(--grn-bg); color: var(--grn-tx); }
.w19-cycles li.cur { background: var(--blue-bg); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-line); }
.w19-pick { padding: 10px 12px; border-radius: 8px; background: var(--head); margin-bottom: 10px; }
.w19-pick small { display: block; color: var(--muted); margin-top: 3px; }
.w19-cand { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.w19-cand .w13-search { width: 260px; }
.w19-cand-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.w19-cand-row { display: grid; grid-template-columns: 22px 1fr 170px; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line2); cursor: pointer; font-size: 13px; }
.w19-cand-row:first-child { border-top: 0; }
.w19-cand-row:hover { background: var(--blue-soft); }
.w19-cand-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.w19-cand-row.taken { opacity: .6; cursor: not-allowed; }
.w19-cand input[type=date] { width: 150px; }
.w19-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 0; }
.w19-checks legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted2); }
.w19-fixed { padding: 10px 12px; border-radius: 6px; background: var(--head); font-size: 13px; }
.w19-events { list-style: none; margin: 0; padding: 0; }
.w19-events li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 13px; line-height: 1.6; }
.w19-events li:first-child { border-top: 0; }
.w19-events time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.w19-ev-comment { margin-top: 4px; padding: 8px 10px; border-radius: 6px; background: var(--head); font-size: 12px; }
.w19-events li.ev-reject .w19-ev-text { color: var(--org-tx); }
.w19-events li.ev-auto_start .w19-ev-text, .w19-events li.ev-dispatch .w19-ev-text { color: var(--blue); }
.w19-events li.ev-project_done .w19-ev-text { color: var(--grn-tx); font-weight: 600; }

/* 项目列表卡片 */
.w19-pcard { overflow: hidden; }
.w19-phead { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(320px, 2fr) auto minmax(120px, auto); gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.w19-pname a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 700; }
.w19-pname a span { flex: none; color: var(--blue); font-size: 12px; }
.w19-pname small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.w19-people { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.w19-people b { color: var(--text); font-weight: 500; margin-left: 6px; }
.w19-ptime { text-align: right; }
.w19-ptime b { font-size: 15px; }
.w19-ptime small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.w19-pbody { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 20px; padding: 14px 20px 16px; align-items: start; }
.w19-current { display: flex; flex-wrap: wrap; gap: 8px; }
.w19-cur { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--text); font-size: 12px; text-align: left; max-width: 100%; }
.w19-cur b { font-size: 13px; }
.w19-cur span { color: var(--muted2); }
.w19-cur small { color: var(--muted); font-size: 11px; }
.w19-cur.pending, .w19-cur.request { border-color: #F0CE8E; background: #FFF7E6; }
.w19-cur.returned { border-color: #EDC59C; background: var(--org-bg); }
.w19-cur:hover { box-shadow: 0 2px 8px #1C22301A; }
.w19-mini { display: flex; flex-direction: column; gap: 6px; }
.w19-mrow { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.w19-mrow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w19-mrow > div { display: flex; gap: 3px; }
.w19-m { display: inline-block; flex: 1 1 0; min-width: 10px; max-width: 48px; height: 10px; border-radius: 3px; background: #E3E7EE; }
.w19-m.doing, .w19-m.writing { background: #6E95F0; }
.w19-m.pending, .w19-m.request { background: #E8A33D; }
.w19-m.returned { background: #D9732B; }
.w19-m.waiting { background: #6FB7B5; }
.w19-m.done { background: #4CAF7F; }
.w19-m.skipped { background: #B7C3B9; }
.w19-m.none { background: repeating-linear-gradient(45deg, #EEF1F5 0 3px, #E3E7EE 3px 6px); }
.w19-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.w19-legend span { display: inline-flex; align-items: center; gap: 5px; }
.w19-legend .w19-m { flex: none; width: 18px; }

/* 项目详情 */
.w19-summary { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.w19-sum-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.w19-split { font-size: 13px; color: var(--muted2); }
.w19-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.w19-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.w19-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.w19-note { padding: 10px 12px; background: var(--head); border-radius: 8px; margin: 0; font-size: 13px; }
.w19-now-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line2); }
.w19-now-row > .small { padding-top: 9px; }
.w19-board-head { margin-bottom: 14px; }
.w19-board { display: flex; flex-direction: column; gap: 18px; }
.w19-lane { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.w19-lane > h3 { font-size: 13px; color: var(--muted2); padding-top: 10px; }
.w19-lane-hint { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--faint); font-size: 13px; }
.w19-lane.ops { padding-top: 16px; border-top: 1px solid var(--line2); }
.w19-lane.ops > h3 { padding-top: 26px; }
.w19-track { display: flex; align-items: stretch; gap: 0; min-width: 0; overflow-x: auto; padding: 2px 2px 4px; }
.w19-arrow { flex: 0 0 18px; position: relative; }
.w19-arrow::before { content: ''; position: absolute; left: 3px; right: 5px; top: 50%; border-top: 1.5px solid #B8C1D0; }
.w19-arrow::after { content: ''; position: absolute; right: 3px; top: calc(50% - 4px); border: 4px solid transparent; border-left: 5px solid #B8C1D0; border-right: 0; }
.w19-node { flex: 1 1 0; min-width: 118px; max-width: 280px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--head); color: var(--muted); text-align: left; font: inherit; font-size: 12px; line-height: 1.5; }
button.w19-node { cursor: pointer; }
button.w19-node:hover { box-shadow: 0 2px 10px #1C22301F; }
.w19-node-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.w19-node-top b { color: var(--text); font-size: 15px; font-weight: 700; }
.w19-node-top em { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 3px; background: #FFFFFFB3; color: var(--muted2); }
.w19-state { align-self: flex-end; margin-top: auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: #fff; }
.w19-node-meta { display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.w19-who { color: var(--text); font-weight: 600; }
.w19-wait { color: #8A5A00; font-weight: 600; }
.w19-back { color: var(--org-tx); }
.w19-hint { color: var(--faint); font-size: 11px; }
.w19-node.todo, .w19-node.none { background: transparent; border-style: dashed; }
.w19-node.todo .w19-node-top b, .w19-node.none .w19-node-top b { color: var(--muted); }
.w19-node.doing, .w19-node.writing { background: var(--blue-soft); border-color: var(--blue-line); }
.w19-node.doing .w19-state, .w19-node.writing .w19-state { color: var(--blue); }
.w19-node.pending, .w19-node.request { background: #FFF7E6; border-color: #F0CE8E; }
.w19-node.pending .w19-state, .w19-node.request .w19-state { color: #8A5A00; }
.w19-node.returned { background: var(--org-bg); border-color: #EDC59C; }
.w19-node.returned .w19-state { color: var(--org-tx); }
.w19-node.waiting { background: var(--teal-bg); border-color: #A8D5D4; }
.w19-node.waiting .w19-state { color: var(--teal); }
.w19-node.done, .w19-node.skipped { background: var(--grn-bg); border-color: #AFD7C0; }
.w19-node.done .w19-state { color: var(--grn-tx); }
.w19-node.skipped .w19-state { color: var(--muted2); }
.w19-node.agg { min-width: 150px; }
.w19-node.agg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.w19-sub { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; border: 0; border-radius: 6px; background: #FFFFFFB3; color: var(--muted2); font: inherit; font-size: 12px; text-align: left; }
button.w19-sub { cursor: pointer; }
button.w19-sub:hover { background: #fff; }
.w19-sub b { color: var(--text); font-weight: 600; flex: none; }
.w19-sub span { min-width: 0; overflow-wrap: anywhere; }
.w19-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #C7CFDB; }
.w19-sub.doing .w19-dot, .w19-sub.writing .w19-dot { background: #6E95F0; }
.w19-sub.pending .w19-dot, .w19-sub.request .w19-dot { background: #E8A33D; }
.w19-sub.returned .w19-dot { background: #D9732B; }
.w19-sub.waiting .w19-dot { background: #6FB7B5; }
.w19-sub.done .w19-dot { background: #4CAF7F; }
.w19-oprows { display: flex; flex-direction: column; min-width: 0; }
.w19-oprow { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px dashed var(--line); }
.w19-oprow:first-child { border-top: 0; padding-top: 0; }
.w19-opname { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 6px; }
.w19-opname b { font-size: 14px; }
.w19-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-bg); color: var(--blue); font-weight: 700; }
.w19-track.loose { gap: 18px; }
.w19-table-wrap { overflow-x: auto; }
.w19-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 12px; }
.w19-table th { background: var(--head); color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.w19-table td { padding: 10px 14px; border-top: 1px solid var(--line2); vertical-align: top; white-space: nowrap; }
.w19-table td small { display: block; color: var(--muted); }
.w19-table tr[data-w13-task] { cursor: pointer; }
.w19-table tr[data-w13-task]:hover td { background: var(--blue-soft); }
@media (max-width: 1280px) {
  .w19-phead { grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.4fr) auto; }
  .w19-ptime { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .w19-pbody { grid-template-columns: 1fr; }
  .w19-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 2200px) {
  .w19-node { max-width: 340px; }
}

/* v0.9.9.19 接口设置：工作时间；账号与登录：在职负责人 */
.w19-cal-grid { display: grid; grid-template-columns: 120px 1fr; gap: 12px 16px; align-items: center; }
.w19-cal-grid input[type=text] { width: 90px; }
.w19-cal-days { width: 100%; max-width: 420px; font-family: inherit; }
.w19-owner-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w13-task-block .empty { padding: 4px 20px 20px; text-align: left; }
/* v0.9.9.20 库存监管：国家 / 地区小标签、可售天数（FBA）①② 两行 */
.inv-region { flex: none; font-size: 11px; padding: 0 6px; line-height: 18px; }
.inv-d2 { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
/* v0.9.9.20 项目进展：运营每人一行 4 列对齐（上：文案编写 → 推广计划、视图需求 → listing全案设计；下：首单采购 → 质检发货 → 上架 → 新品复盘）*/
.w19-opgrid { display: grid; grid-template-columns: repeat(6, minmax(132px, 1fr)); gap: 10px 22px; min-width: 0; max-width: 1680px; }
.w19-cell { position: relative; display: flex; min-width: 0; }
.w19-cell > .w19-node { flex: 1 1 auto; max-width: none; min-width: 0; }
.w19-cell.arr::before { content: ''; position: absolute; left: -18px; width: 13px; top: 50%; border-top: 1.5px solid #B8C1D0; }
.w19-cell.arr::after { content: ''; position: absolute; left: -9px; top: calc(50% - 4px); border: 4px solid transparent; border-left: 5px solid #B8C1D0; border-right: 0; }
.w19-sidebody { padding: 14px 20px 16px; }
.w19-sidebody .w19-oprow:first-child { padding-top: 0; }
@media (min-width: 2200px) { .w19-opgrid { max-width: 2000px; } }


/* ---------- v0.9.9.34 任务进展：设计部表格、运营部 / 产品部看板、物流（使用者 11-08 定稿的样稿） ---------- */
.w34-est { color: #8A93A6; display: inline-flex; align-items: baseline; gap: 3px; }
.w34-est i { font-style: normal; font-size: 10px; color: #A3AEC0; }
.w34-act { color: var(--text); font-weight: 600; }
.w34-pr { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px; background: #EEF1F5; color: var(--muted2); font-weight: 700; font-size: 11px; flex: none; }
.w34-pr.hot { background: var(--red-bg); color: var(--red-tx); }
.w34-cardnote { display: block; padding: 4px 8px; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.w34-due .pad h2 { color: var(--red-tx); }
.w19-task-row.late { box-shadow: inset 3px 0 0 var(--red); background: #FFFBFA; }
.w19-nowbox.late { background: #FFF6F5; border-color: #F4B4AE; }
.w19-nowbox.late small { color: var(--red-tx); }
/* 看板 */
.w34-board-wrap { overflow-x: auto; padding-bottom: 4px; }
.w34-board { display: grid; gap: 10px; align-items: start; min-width: 1380px; }
.w34-colm { background: #EDF0F5; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.w34-colm.side { background: #F3F0FA; }
.w34-colm > header { padding: 4px 4px 6px; }
.w34-colm > header b { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.w34-colm > header b .n { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: auto; }
.w34-colm > header i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #A3AEC0; }
.w34-colm > header small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; line-height: 1.4; }
.dot-copy_promo, .dot-research { background: #6EA0FF !important; }
.dot-visual, .dot-product_design { background: #8B6FE0 !important; }
.dot-qc_ship, .dot-sample, .dot-qc { background: #E8A33D !important; }
.dot-transit, .dot-launch { background: #2BA59B !important; }
.dot-review, .dot-setup { background: #4CC38A !important; }
.w34-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; padding: 18px 0; }
.w34-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; box-shadow: 0 1px 2px #1C22300A; cursor: pointer; overflow-wrap: anywhere; }
.w34-card:hover { box-shadow: 0 2px 10px #1C22301F; }
.w34-card.late { border-color: #F4B4AE; box-shadow: inset 3px 0 0 var(--red); }
.w34-card.wait { opacity: .78; }
.w34-card .top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.w34-card .top { align-items: flex-start; }
.w34-card .top b { font-size: 13.5px; min-width: 0; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.w34-card .top .tag { margin-left: auto; font-size: 11px; padding: 1px 6px; }
.w34-card .who { display: flex; align-items: center; gap: 5px; color: var(--muted2); flex-wrap: wrap; }
.w34-card .av, .w34-load .av { width: 18px; height: 18px; border-radius: 50%; background: #2D4D9A; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.w34-card .st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.w34-card .st .tag { font-size: 11px; padding: 1px 6px; }
.w34-dates { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; color: var(--muted); font-size: 12px; }
/* 设计部 */
.w34-load { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.w34-load .card { padding: 12px 14px; gap: 4px; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; }
.w34-load .card .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.w34-load .card .nm .av { width: 24px; height: 24px; font-size: 12px; }
.w34-load .card .nums { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.w34-load .card .nums b { font-size: 18px; color: var(--text); margin-right: 2px; font-variant-numeric: tabular-nums; }
.w34-load .card .nums .late b { color: var(--red-tx); }
.w34-load .card.head-c { background: var(--blue-soft); border-color: var(--blue-line); }
.w34-load .card.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.w35-grp { overflow: hidden; }
.w35-grp > header { display: flex; align-items: center; gap: 12px; padding: 0 18px 0 0; background: #fff; }
.w35-gh { display: flex; align-items: center; gap: 12px; padding: 14px 0 14px 18px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.w35-gh .caret { width: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.w35-gh h2 { font-size: 15px; }
.w35-gh .n { color: var(--muted); font-size: 13px; }
.w35-grp > header .sum { display: flex; gap: 6px; flex-wrap: wrap; }
.w35-grp > header .sum .tag { font-size: 11.5px; }
.w35-grp.open > header { border-bottom: 1px solid var(--line); }
/* v0.9.9.36：分组展开 / 收起有过渡（高度从 0 展开），收起后里面的按钮不能被 Tab 到 */
.w36-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s var(--ease-drawer); }
.w36-fold > div { min-height: 0; overflow: hidden; }
.w35-grp:not(.open) .w36-fold { grid-template-rows: 0fr; }
.w35-grp:not(.open) .w36-fold > div { visibility: hidden; transition: visibility 0s linear .26s; }
.w35-gh .caret { transition: transform .2s var(--ease-out); }
.w35-grp.open .w35-gh .caret { transform: rotate(90deg); }
.w35-t { overflow-x: auto; }
.w35-t .tbl { min-width: 1240px; }
.w35-t .tr { min-height: 56px; font-size: 12.5px; column-gap: 10px; padding-right: 16px; cursor: pointer; }
.w35-t .tr.th { min-height: 42px; font-size: 12px; cursor: default; }
.w35-t .tr > div { display: flex; align-items: center; }
.w35-t .tr > .c { justify-content: center; text-align: center; }
.w35-t .tr:not(.th):hover { background: #FBFCFE; }
.w35-new { grid-template-columns: 30px minmax(150px, 1.2fr) 70px 104px 64px 100px 80px 80px 76px 110px 76px 110px 104px minmax(130px, 1fr); }
.w35-oth { grid-template-columns: 30px minmax(240px, 2fr) 130px 160px 120px 150px 140px minmax(180px, 1.2fr); }
.w34-model { display: block; min-width: 0; }
.w34-model b { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w34-model small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tr.w34-late { background: #FFF8F7; box-shadow: inset 3px 0 0 var(--red); }
.w34-memo { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--text); display: flex; gap: 6px; align-items: flex-start; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.w34-memo::before { content: '\270E'; color: #A3AEC0; font-size: 11px; }
.w34-memo.none { color: #A3AEC0; }
.w34-memo-ro { color: var(--muted2); font-size: 12px; overflow-wrap: anywhere; }
.link.w34-due { font-size: 12.5px; }
/* 物流 */
.w19-node.transit { border-style: dashed; background: #F7FAFC; }
.w19-node.transit.late { background: #FFF6F5; border-color: #F4B4AE; }
.w19-node.transit.late .w19-state { color: var(--red-tx); }
.w19-node.transit.done { background: var(--grn-bg); }
.w19-node.transit .w34-dates { font-size: 11.5px; }
.w34-shtbl .tr { min-height: 48px; font-size: 12px; }
.w34-shcols { grid-template-columns: 60px 56px minmax(110px, 1fr) 76px 72px 72px minmax(150px, 1.4fr) 60px; }
.w34-shcols > div small { display: block; color: var(--muted); font-size: 11px; }
.w34-shcols > .c { text-align: center; }
.w34-chcols { grid-template-columns: 48px minmax(150px, 1.4fr) 84px 96px 120px 64px 64px; }
.w34-chcols.off { opacity: .55; }
.w34-chcols > div small { display: block; color: var(--muted); font-size: 11px; }
.w34-chcols > .c { text-align: center; }

/* ---------- v0.9.9.36 日期筛选（像领星：按天 / 按周 / 按月 · 快捷 · 两个月日历） ---------- */
.dp-btn { min-width: 168px; max-width: 340px; justify-content: flex-start; gap: 8px; font-variant-numeric: tabular-nums; }
.dp-btn .dp-lb { flex: none; padding: 1px 7px; border-radius: 4px; background: var(--blue-bg); color: var(--blue); font-size: 12px; font-weight: 600; }
.dp-btn .dp-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-btn .dp-ic { margin-left: auto; flex: none; color: var(--muted); }
.dd-pop.dp-pop { flex-direction: row; padding: 0; gap: 0; max-width: calc(100vw - 16px); overflow: auto; max-height: calc(100vh - 16px); }
.dp-modes { flex: none; width: 104px; padding: 8px 6px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; background: var(--head); border-radius: 8px 0 0 8px; }
.dp-mode { height: 38px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.dp-mode span { color: var(--muted); }
.dp-mode:hover { background: #EEF2F8; }
.dp-mode.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.dp-mode.on span { color: var(--blue); }
.dp-quick { flex: none; width: 124px; padding: 8px 6px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.dp-q { height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 6px; text-align: left; cursor: pointer; }
.dp-q:hover { background: var(--head); }
.dp-q.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.dp-i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #B8C1D0; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; line-height: 13px; text-align: center; flex: none; }
.dp-right { display: flex; flex-direction: column; min-width: 0; }
.dp-cal { display: flex; gap: 22px; padding: 10px 16px 6px; }
.dp-month { width: 266px; flex: none; }
.dp-mhead { display: grid; grid-template-columns: 24px 24px 1fr 24px 24px; align-items: center; height: 36px; margin-bottom: 4px; }
.dp-mhead b { text-align: center; font-size: 14.5px; }
.dp-nav { width: 24px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 16px; border-radius: 4px; cursor: pointer; }
.dp-nav:hover { background: var(--head); color: var(--text); }
.dp-wk, .dp-grid { display: grid; grid-template-columns: repeat(7, 38px); }
.dp-wk span { height: 30px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.dp-d { height: 36px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.dp-d span { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color .12s ease, color .12s ease; }
.dp-d:hover:not(:disabled) span { background: #E7ECF5; }
.dp-d.out { color: #A3ABB9; }
.dp-d.now span { box-shadow: inset 0 0 0 1px var(--blue-line); }
.dp-d.in { background: var(--blue-soft); }
.dp-d.edge span, .dp-d.edge:hover span { background: var(--blue); color: #fff; font-weight: 600; box-shadow: none; }
.dp-d:disabled { color: #C9CED8; cursor: not-allowed; }
.dp-grid.week .dp-d:hover:not(:disabled) span { background: none; }
.dp-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 4px; }
.dp-m { height: 44px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.dp-m:hover:not(:disabled) { background: var(--head); }
.dp-m.in { background: var(--blue-soft); }
.dp-m.edge { background: var(--blue); color: #fff; font-weight: 600; }
.dp-m:disabled { color: #C9CED8; cursor: not-allowed; }
.dp-tip { padding: 0 16px 10px; font-size: 12px; color: var(--muted); }

/* ---------- v0.9.9.36 项目 / 任务进展的动效（使用者 11-08「为项目任务进展板块设计界面动效，比如点开详情时的弹出动画」） ---------- */
/* 详情抽屉：背景渐暗 + 抽屉从右边滑进来；关的时候滑出去；抽屉里换内容（详情 → 提交 / 审批表单）内容淡入 */
.w13-overlay.w36-enter .w13-shade { animation: w36-fade .22s var(--ease-out) both; }
.w13-overlay.w36-enter .w13-drawer { animation: w36-drawer-in .32s var(--ease-drawer) both; }
.w13-overlay.w36-enter .w13-drawer-body > * { animation: w36-rise .34s var(--ease-out) both; }
.w13-overlay.w36-enter .w13-drawer-body > *:nth-child(2) { animation-delay: .04s; }
.w13-overlay.w36-enter .w13-drawer-body > *:nth-child(3) { animation-delay: .08s; }
.w13-overlay.w36-enter .w13-drawer-body > *:nth-child(n+4) { animation-delay: .12s; }
.w13-overlay.w36-swap .w13-drawer-body { animation: w36-swap .2s var(--ease-out) both; }
.w13-overlay.w36-leave { pointer-events: none; }
.w13-overlay.w36-leave .w13-shade { animation: w36-fade .18s ease-in reverse both; }
.w13-overlay.w36-leave .w13-drawer { animation: w36-drawer-out .18s ease-in both; }
@keyframes w36-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes w36-drawer-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes w36-drawer-out { from { transform: none; opacity: 1; } to { transform: translateX(40px); opacity: 0; } }
@keyframes w36-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes w36-swap { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
/* 换页签：下面的块依次淡入 */
.w13-page.w36-in > :not(.w13-tabs) { animation: w36-rise .32s var(--ease-out) both; }
.w13-page.w36-in > :nth-child(3) { animation-delay: .05s; }
.w13-page.w36-in > :nth-child(4) { animation-delay: .1s; }
.w13-page.w36-in > :nth-child(n+5) { animation-delay: .14s; }
.w13-page.w36-in .w34-colm .w34-card { animation: w36-rise .3s var(--ease-out) both; }
.w13-page.w36-in .w34-colm .w34-card:nth-child(2) { animation-delay: .04s; }
.w13-page.w36-in .w34-colm .w34-card:nth-child(3) { animation-delay: .08s; }
.w13-page.w36-in .w34-colm .w34-card:nth-child(n+4) { animation-delay: .12s; }
/* 看板卡、节点卡、设计师卡：悬停浮起一点，按下回落 */
.w34-card { transition: box-shadow .18s ease, transform .18s var(--ease-out), border-color .18s ease; }
.w34-card:hover { transform: translateY(-2px); }
.w34-card:active { transform: translateY(0) scale(.99); }
button.w19-node { cursor: pointer; transition: box-shadow .18s ease, transform .18s var(--ease-out), border-color .18s ease; }
button.w19-node:hover { transform: translateY(-2px); box-shadow: 0 4px 14px #1C22301A; }
button.w19-node:active { transform: translateY(0) scale(.985); }
.w19-sub { transition: background-color .15s ease; }
.w34-load .card:hover { transform: translateY(-1px); }
/* 待审批 / 进行中的节点：状态点轻轻呼吸，一眼看到卡在哪 */
.w19-node.pending .w19-state::before, .w19-node.request .w19-state::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #E8A33D; vertical-align: 1px; animation: w36-pulse 1.8s ease-in-out infinite; }
@keyframes w36-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.tr.pl.w34-late { transition: background-color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .w13-overlay .w13-shade, .w13-overlay .w13-drawer, .w13-overlay .w13-drawer-body, .w13-overlay .w13-drawer-body > *,
  .w13-page.w36-in > *, .w13-page.w36-in .w34-card, .w19-node .w19-state::before { animation: none !important; }
  .w36-fold, .w36-fold > div, .w34-card, button.w19-node, .w35-gh .caret, .dp-d span { transition: none !important; }
  .w34-card:hover, button.w19-node:hover, .w34-load .card:hover { transform: none; }
}

/* ---------- v0.9.9.36 单个日期（任务进展里所有选日期的地方） ---------- */
.d1-btn { min-width: 168px; justify-content: flex-start; gap: 8px; font-variant-numeric: tabular-nums; }
.d1-btn .d1-v.ph { color: var(--muted); }
.d1-btn .dp-ic { margin-left: auto; flex: none; color: var(--muted); }
.dd-pop.d1-pop { padding: 10px 12px; gap: 0; max-width: none; width: max-content; }
.d1-head { display: grid; grid-template-columns: 26px 26px 1fr 26px 26px; align-items: center; height: 34px; margin-bottom: 2px; }
.d1-head b { text-align: center; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.d1-foot { display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.d1-foot:empty { display: none; }
.d1-grid .dp-d.edge span { background: var(--blue); color: #fff; font-weight: 600; }
.w13-form-row .dd.d1 { min-width: 0; }

/* v0.9.9.36（使用者 11-09「整个项目任务进展板块详情里都有选中有一圈蓝边，移除」）：任务进展的页面、抽屉和从里面打开的下拉 / 日期，
   聚焦时不再画蓝圈——输入框只把边框加深成灰色，按钮、行、日期格不画外框；日历里「今天」用加粗字代替蓝圈。 */
.w13-page :focus-visible, .w13-overlay :focus-visible, .w13-pop :focus-visible { outline: none; }
.w13-page input:focus, .w13-page textarea:focus, .w13-overlay input:focus, .w13-overlay textarea:focus { border-color: #9AA5B8; box-shadow: none; outline: none; }
.w13-page .dd.open .dd-btn, .w13-overlay .dd.open .dd-btn { border-color: #9AA5B8; box-shadow: none; }
.w13-pop .dd-o:focus-visible { box-shadow: none; background: var(--head); }
.w13-pop .dp-d:focus-visible:not(.edge) span { background: #E7ECF5; }
.w13-pop .dp-d.now span { box-shadow: none; font-weight: 700; color: var(--blue); }
.w13-pop .dp-d.now.edge span { color: #fff; }

/* v0.9.9.36 发货：未来日期状态固定「未发货」、预计日期；上架：按 ASIN 选，展开看链接 */
.w36-est { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 10px 12px; border-radius: 8px; background: var(--head); font-size: 13px; color: var(--muted2); }
.w36-est b { margin-left: 8px; color: var(--text); font-variant-numeric: tabular-nums; }
.w34-st-fixed { height: 38px; display: flex; align-items: center; }
.w36-cand-head b { font-size: 14px; }
.w36-asins { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.w36-asin { border-top: 1px solid var(--line2); }
.w36-asin:first-child { border-top: 0; }
.w36-asin-row { display: grid; grid-template-columns: 22px 1fr auto 14px; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.w36-asin-row:hover { background: var(--head); }
.w36-asin.on > .w36-asin-row { background: var(--blue-soft); }
.w36-asin-main small, .w36-asin-side small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.w36-asin-side { text-align: right; font-size: 12.5px; color: var(--muted2); }
.w36-caret { color: var(--muted); transition: transform .18s var(--ease-out); }
.w36-asin.on .w36-caret { transform: rotate(90deg); }
.w36-asin.taken .w36-asin-row { opacity: .55; cursor: not-allowed; }
.w36-links { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 10px 44px; animation: w36-rise .2s var(--ease-out) both; }
.w36-link { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.w36-link:hover { background: var(--head); }
.w36-link small { margin-left: auto; color: var(--muted); }
.w36-pick-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted2); }
@media (prefers-reduced-motion: reduce) { .w36-links { animation: none; } .w36-caret { transition: none; } }
/* v0.9.9.36 一键通过审批 */
.w36-qa-n { font-size: 14px; }
.w36-qa-n b { font-size: 18px; color: var(--blue); margin: 0 2px; }
.w36-qa { margin: 0; padding: 0 0 0 22px; max-height: 50vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.w36-qa li { font-size: 13.5px; }
.w36-qa li span { display: block; margin-top: 2px; }

/* ---------- v0.9.9.36（使用者 11-09）项目进展节点卡：标题 → 人 → 说明；底部一栏左边用时（加粗）和日期、右边状态 ---------- */
.w19-node { gap: 4px; padding: 12px 14px 10px; }
.w19-node-top b { font-size: 15px; letter-spacing: .01em; }
.w19-node-meta { gap: 3px; font-size: 12px; color: var(--muted2); }
.w19-node-meta .w19-who { font-size: 13px; color: var(--text); font-weight: 600; }
.w19-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid #1C22300F; display: flex; flex-direction: column; gap: 2px; }
.w19-node-meta, .w19-node.agg ul { margin-bottom: 4px; }
.w19-big { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.35; }  /* v0.9.9.37：用时字号小一点 */
.w19-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 6px; min-height: 20px; }
.w19-date { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w19-foot .w19-state { margin: 0 0 0 auto; flex: none; align-self: center; }
.w19-node.todo .w19-foot, .w19-node.none .w19-foot { border-top-color: transparent; }
.w19-sub-t { margin-left: auto; flex: none; font-style: normal; font-size: 11.5px; color: var(--muted2); font-variant-numeric: tabular-nums; }
.w19-sub.doing .w19-sub-t, .w19-sub.writing .w19-sub-t { color: var(--blue); }
.w19-sub.pending .w19-sub-t, .w19-sub.request .w19-sub-t { color: #8A5A00; }

/* 运营线：一叠一叠的卡。v0.9.9.37（使用者 11-09）：卡片偏正方形、宽度固定；压在下面的卡片在最上面那张的右边像扇子一样斜着露出来
   （节点名称、状态竖着写，颜色 = 状态）；点露出来的那几张，压在下面的卡片向右滑出、同一行并排，右边的卡片往右挪；小圆钮收起 */
.w36-lines { display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow-x: auto; padding: 4px 2px 8px; }
.w36-line { display: flex; align-items: flex-start; width: max-content; }
.w36-arr { flex: none; position: relative; width: 30px; height: 120px; }
.w36-arr::before { content: ''; position: absolute; left: 6px; right: 9px; top: 58px; border-top: 1.5px solid #B8C1D0; }
.w36-arr::after { content: ''; position: absolute; right: 5px; top: 54px; border: 4px solid transparent; border-left: 5px solid #B8C1D0; border-right: 0; }
.w36-one, .w36-layer { flex: none; width: 212px; display: flex; }
.w36-lines.compact .w36-one, .w36-lines.compact .w36-layer { width: 184px; }
.w36-one > .w19-node, .w36-layer > .w19-node { flex: 1 1 auto; max-width: none; min-width: 0; min-height: 168px; }
.w36-stack { position: relative; flex: none; display: flex; align-items: stretch; padding-right: calc(var(--n) * 26px + 6px); }
.w36-stack.open { padding-right: 0; align-items: center; }
.w36-row { position: relative; z-index: 2; display: flex; gap: 10px; align-items: stretch; }
.w36-layer > .w19-node.todo, .w36-layer > .w19-node.none, .w36-layer > .w19-node.transit { background-color: var(--panel); }
.w36-stack:not(.open) .w36-layer.more { display: none; }
.w36-stack.open .w36-layer.more { animation: w36-slide .28s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms - 45ms); }
@keyframes w36-slide { from { opacity: 0; transform: translateX(-26px) rotate(4deg); } to { opacity: 1; transform: none; } }
/* 扇形露出的那几张：和最上面那张一样大，绕左下角转一点、往右挪一点，只露出右边一条；叠在最上面那张后面 */
.w36-fan { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 212px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.w36-lines.compact .w36-fan { width: 184px; }
.w36-stack.open .w36-fan { display: none; }
.w36-fc { position: absolute; top: 16px; right: 0; bottom: 0; width: 96px; z-index: calc(10 - var(--i)); border: 1px solid var(--line); border-radius: 9px; background: var(--head);
  box-shadow: 2px 1px 6px #1C223014; transform-origin: 100% 100%; transform: translateX(calc(var(--i) * 12px)) rotate(calc(var(--i) * 5deg));
  transition: transform .22s var(--ease-out), box-shadow .2s ease; }
.w36-fan:hover .w36-fc, .w36-fan:focus-visible .w36-fc { transform: translateX(calc(var(--i) * 15px)) rotate(calc(var(--i) * 6.5deg)); box-shadow: 3px 2px 10px #1C22301F; }
.w36-fc-t { position: absolute; top: 10px; right: 4px; writing-mode: vertical-rl; font-size: 12px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.w36-fc-t b { font-weight: 700; color: var(--text); }
.w36-fc-t i { font-style: normal; font-weight: 600; font-size: 11px; margin-inline-start: 6px; }
.w36-fc.todo, .w36-fc.none { background: var(--panel); border-style: dashed; }
.w36-fc.todo b, .w36-fc.none b, .w36-fc.todo i, .w36-fc.none i { color: var(--muted); }
.w36-fc.doing, .w36-fc.writing { background: var(--blue-soft); border-color: var(--blue-line); }
.w36-fc.doing i, .w36-fc.writing i { color: var(--blue); }
.w36-fc.pending, .w36-fc.request { background: #FFF7E6; border-color: #F0CE8E; }
.w36-fc.pending i, .w36-fc.request i { color: #8A5A00; }
.w36-fc.returned { background: var(--org-bg); border-color: #EDC59C; }
.w36-fc.returned i { color: var(--org-tx); }
.w36-fc.waiting { background: var(--teal-bg); border-color: #A8D5D4; }
.w36-fc.waiting i { color: var(--teal); }
.w36-fc.done, .w36-fc.skipped { background: var(--grn-bg); border-color: #AFD7C0; }
.w36-fc.done i { color: var(--grn-tx); }
.w36-fc.late { background: #FFF6F5; border-color: #F4B4AE; }
.w36-fc.late i { color: var(--red-tx); }
.w36-fold-btn { display: none; flex: none; width: 26px; height: 26px; margin-left: 8px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel);
  color: var(--muted2); cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 1px 3px #1C223014; transition: background-color .15s ease, color .15s ease; }
.w36-stack.open .w36-fold-btn { display: inline-flex; }
.w36-fold-btn:hover { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
@media (prefers-reduced-motion: reduce) { .w36-stack.open .w36-layer.more { animation: none; } .w36-fc, .w36-fold-btn { transition: none; } }

/* v0.9.9.37（使用者 11-09「仍然一人一行，只是每行不换行、卡片变宽」）：几个人的卡（新品电商设计、亚马逊视频、首单采购……）
   每人一行不折行，名字 / 状态 / 用时三列对齐，卡片按最长那行变宽 */
.w19-node.agg { flex: 0 0 auto; width: max-content; min-width: 200px; max-width: none; }
.w19-node.agg .w19-sub { white-space: nowrap; gap: 10px; padding: 6px 10px; }
.w19-node.agg .w19-sub span { overflow-wrap: normal; }
.w19-node.agg .w19-sub-t { margin-left: 14px; }
@supports (grid-template-columns: subgrid) {
  .w19-node.agg ul { display: grid; grid-template-columns: max-content max-content max-content minmax(max-content, 1fr); gap: 4px 0; }
  .w19-node.agg li { display: contents; }
  .w19-node.agg .w19-sub { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: 12px; align-items: center; }
  .w19-node.agg .w19-sub-t { margin-left: 6px; text-align: right; }
}
/* v0.9.9.37（使用者 11-09「如果有一位完成则单条显示绿色」）：几个人的卡，每一行按这个人的状态上色 */
.w19-node.agg .w19-sub { background: #FFFFFFB3; box-shadow: inset 0 0 0 1px #1C22300D; }
.w19-node.agg .w19-sub.done, .w19-node.agg .w19-sub.skipped { background: var(--grn-bg); box-shadow: inset 0 0 0 1px #AFD7C0; }
.w19-node.agg .w19-sub.done span { color: var(--grn-tx); }
.w19-node.agg .w19-sub.doing, .w19-node.agg .w19-sub.writing { background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue-line); }
.w19-node.agg .w19-sub.doing span, .w19-node.agg .w19-sub.writing span { color: var(--blue); }
.w19-node.agg .w19-sub.pending, .w19-node.agg .w19-sub.request { background: #FFF7E6; box-shadow: inset 0 0 0 1px #F0CE8E; }
.w19-node.agg .w19-sub.pending span, .w19-node.agg .w19-sub.request span { color: #8A5A00; }
.w19-node.agg .w19-sub.returned { background: var(--org-bg); box-shadow: inset 0 0 0 1px #EDC59C; }
.w19-node.agg .w19-sub.returned span { color: var(--org-tx); }

/* ===== v0.9.9.39（使用者 11-10 项目进展细节） ===== */
/* 一叠卡：最上面那张带一点阴影，和压在下面露出来的几张分出层次 */
.w36-stack:not(.open) .w36-layer:first-child > .w19-node { box-shadow: 0 4px 14px #1C223021, 0 1px 3px #1C223014; }
.w36-stack:not(.open) .w36-layer:first-child > button.w19-node:hover { box-shadow: 0 8px 22px #1C22302B, 0 1px 3px #1C223014; }
/* 露出来的那几张：状态用圆点（颜色 = 状态，和上面图例一样），不写字 */
.w36-fc-t { bottom: 10px; overflow: hidden; writing-mode: horizontal-tb; width: 14px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.w36-fc-t b { writing-mode: vertical-rl; }
.w36-fc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #B8C1D0; }
.w36-fc.doing .w36-fc-dot, .w36-fc.writing .w36-fc-dot { background: #6E95F0; }
.w36-fc.pending .w36-fc-dot, .w36-fc.request .w36-fc-dot { background: #E8A33D; }
.w36-fc.returned .w36-fc-dot { background: #D9732B; }
.w36-fc.waiting .w36-fc-dot { background: #6FB7B5; }
.w36-fc.done .w36-fc-dot { background: #4CAF7F; }
.w36-fc.skipped .w36-fc-dot { background: #C3CAD6; }
.w36-fc.late .w36-fc-dot { background: #D9534F; }
.w36-fc.todo .w36-fc-dot, .w36-fc.none .w36-fc-dot { background: transparent; box-shadow: inset 0 0 0 1.5px #B8C1D0; }
/* 「用时 / 已用」两个字小一点、灰一点 */
.w19-big-lb { font-size: 11.5px; font-weight: 500; color: var(--muted2); margin-right: 5px; }
/* 重要程度：表格里的标签就是下拉框 */
.w39-imp { display: inline-flex; background: none; }
.w39-imp .dd-btn { height: 24px; min-width: 0; max-width: none; gap: 4px; padding: 0 6px 0 8px; border: 0; border-radius: 4px; font-size: 12px; font-weight: 400; }
.w39-imp.rd .dd-btn { background: var(--red-bg); color: var(--red-tx); }
.w39-imp.org .dd-btn { background: var(--org-bg); color: var(--org-tx); }
.w39-imp.grn .dd-btn { background: var(--grn-bg); color: var(--grn-tx); }
.w39-imp.bl .dd-btn { background: var(--blue-soft); color: var(--blue); }
.w39-imp.gy .dd-btn { background: var(--head); color: var(--muted2); }
.w39-imp .dd-ic { color: currentColor; opacity: .7; }
.w39-imp .dd-btn:hover { box-shadow: inset 0 0 0 1px #1C22301F; }
.w39-imp .dd.open .dd-btn { box-shadow: 0 0 0 3px #2456D61F; }
/* 几个人的卡：鼠标在卡上 → 卡浮起；鼠标在某个人那一行 → 那一行浮起、卡落回去 */
.w19-node.agg { transition: transform .18s var(--ease-out), box-shadow .18s ease; }
.w19-node.agg:hover { transform: translateY(-2px); box-shadow: 0 4px 14px #1C22301A; }
.w19-node.agg:has(button.w19-sub:hover) { transform: none; box-shadow: none; }
.w19-node.agg .w19-sub { --ring: #1C22300D; box-shadow: inset 0 0 0 1px var(--ring); }
.w19-node.agg .w19-sub.done, .w19-node.agg .w19-sub.skipped { --ring: #AFD7C0; }
.w19-node.agg .w19-sub.doing, .w19-node.agg .w19-sub.writing { --ring: var(--blue-line); }
.w19-node.agg .w19-sub.pending, .w19-node.agg .w19-sub.request { --ring: #F0CE8E; }
.w19-node.agg .w19-sub.returned { --ring: #EDC59C; }
.w19-node.agg button.w19-sub { transition: transform .18s var(--ease-out), box-shadow .18s ease, background-color .15s ease; }
.w19-node.agg button.w19-sub:hover { transform: translateY(-2px); box-shadow: 0 4px 12px #1C223021, inset 0 0 0 1px var(--ring); }
@media (prefers-reduced-motion: reduce) {
  .w19-node.agg, .w19-node.agg button.w19-sub { transition: none; }
  .w19-node.agg:hover, .w19-node.agg button.w19-sub:hover { transform: none; }
}

/* v0.9.9.40（王总 11-10）：要弹卡片的预警（紧急）字加粗、带一圈红边，和普通的高 / 中 / 低分开 */
.tag.w40-card { font-weight: 700; box-shadow: inset 0 0 0 1px #E5A39C; }

/* v0.9.9.43：账号与登录（在职人员按钉钉）、登录页主账号登录 */
.login-admin { border-top: 1px solid var(--line); padding-top: 12px; }
.login-admin > summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
.login-admin > summary::-webkit-details-marker { display: none; }
.login-admin > summary::after { content: ' ›'; }
.login-admin[open] > summary { margin-bottom: 12px; }
.s43-row { min-height: 84px; padding-top: 8px; padding-bottom: 8px; }
.s43-row > div { overflow-wrap: anywhere; }
.s43-dt { font-size: 13px; font-weight: 600; }
.s43-dt.s43-grn { color: var(--grn-tx, #15803d); }
.s43-dt.s43-org { color: var(--org-tx); }
.s43-dt.s43-rd { color: var(--red-tx); }
.s43-dt.s43-gy { color: var(--muted); font-weight: 400; }
.s43-preview { background: var(--head); gap: 10px; }
.s43-roles, .s43-dtline { gap: 14px; flex-wrap: wrap; }
.s43-roles .muted, .s43-dtline .muted { min-width: 32px; }
.s43-errs { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.s43-extra > summary { cursor: pointer; }

/* v0.9.9.47：库存监管按 MSKU 页补的行（领星补货建议 ASIN 页筛「正常补货」看不到这一行） */
.inv-msku-only { color: var(--org-tx); font-weight: 600; }

/* v0.9.9.47：节点提交的图片 */
.w47-box { display:flex; flex-direction:column; gap:10px; padding:12px 14px; border:1px dashed var(--line); border-radius:8px; }
.w47-thumbs { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; max-width:520px; }
.w47-thumbs figure, .w47-thumbs a { margin:0; display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); text-decoration:none; }
.w47-thumbs img { width:100%; aspect-ratio:4 / 3; object-fit:cover; border-radius:6px; border:1px solid var(--line); background:var(--head); }
.w47-thumbs figcaption { display:flex; justify-content:space-between; }
.w47-shown { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.w47-gone { margin-top:6px; color:var(--muted); font-size:13px; }
.w47-set span { color:var(--muted); }
/* 钉钉电脑版右边侧栏打开任务（宽约 420）：抽屉占满、内容竖着排 */
@media (max-width: 560px) {
  .w13-drawer, .w13-drawer.wide { width:100vw; }
  .w13-drawer>header { padding:12px 14px; }
  .w13-drawer-body { padding:14px 14px 28px; }
  .w13-info { grid-template-columns:1fr !important; }
  .w13-form-row, .w13-form-row.three { grid-template-columns:1fr !important; }
  .w13-drawer .row { flex-wrap:wrap; }
  .w13-drawer .btn { min-height:38px; }
}

/* ===== v0.9.9.48（使用者 11-15 项目任务进展） ===== */
/* 没开始的卡（虚线框）不浮起、不带阴影（一叠卡最上面那张、几个人的合卡也一样）；开始了的照旧 */
.w19-node.todo, .w19-node.none, .w19-node.todo:hover, .w19-node.none:hover { transform: none !important; box-shadow: none !important; }
.w19-node.agg button.w19-sub.todo:hover, .w19-node.agg button.w19-sub.none:hover { transform: none; box-shadow: inset 0 0 0 1px var(--ring); }
/* 还没有运营线、只有一行虚线说明时，「运营部」和那一行对齐 */
.w19-lane.ops.hint > h3 { padding-top: 15px; }
/* 提交时的图片框：已收到几张 / 还没有；没认出来的 */
.w48-img-st { font-size: 12.5px; }
.w48-ok { color: var(--grn-tx); font-weight: 600; }
.w48-bad:empty { display: none; }
.w48-bad { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
#w48Submit:disabled { opacity: .5; cursor: not-allowed; }
/* 缩略图（按钮）：点开放大 */
.w48-th { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; font-size: 12px; color: var(--muted); text-align: left; }
.w48-th img { display: block; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.w48-th:focus-visible img { outline: 2px solid var(--blue); outline-offset: 2px; }
.w48-imgs h3 .small { font-weight: 400; margin-left: 4px; }
/* 放大看图 */
.w48-viewer { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; }
.w48-v-shade { position: absolute; inset: 0; background: #0E1320E6; }
.w48-viewer figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 92vw; max-height: 92vh; }
.w48-viewer img { max-width: 92vw; max-height: calc(92vh - 32px); object-fit: contain; border-radius: 6px; background: #fff; }
.w48-viewer figcaption { color: #E6EAF2; font-size: 13px; }
.w48-v-nav, .w48-v-close { position: absolute; border: 0; border-radius: 50%; background: #FFFFFF26; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.w48-v-nav { top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 30px; line-height: 1; }
.w48-v-nav.prev { left: 18px; } .w48-v-nav.next { right: 18px; }
.w48-v-close { top: 16px; right: 18px; width: 38px; height: 38px; font-size: 24px; }
.w48-v-nav:hover, .w48-v-close:hover { background: #FFFFFF40; }
/* 垃圾桶：图片保存时长 */
.w48-imgset h2 { font-size: 15px; margin-bottom: 10px; }
.w48-imgset .w14-trash-set { padding: 0; border: 0; box-shadow: none; }

/* v0.9.9.49：第一列（固定的那一列）右边线上的拖动把手 */
.tr.th > .sticky { position: sticky; }
.col-rz { position: absolute; top: 0; right: -5px; bottom: 0; width: 10px; cursor: col-resize; z-index: 3; touch-action: none; }
.col-rz::after { content: ''; position: absolute; top: 6px; bottom: 6px; left: 4px; width: 2px; border-radius: 1px; background: transparent; transition: background .12s; }
.col-rz:hover::after, body.col-rzing .col-rz::after { background: var(--blue); }
body.col-rzing, body.col-rzing * { cursor: col-resize !important; user-select: none !important; }

/* v0.9.9.49 库存监管：月库销比点开看每条链接；总计不含按 MSKU 页补的行 */
.inv-ratio-btn { font: inherit; font-variant-numeric: tabular-nums; color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.inv-ratio-in { position: sticky; left: 16px; right: 16px; width: min(990px, calc(100vw - 340px)); margin-left: auto; }
.inv-ratio .tbl { overflow-x: auto; }
.inv-ratio .tr { min-height: 40px; padding-left: 12px; }
.inv-ratio .tr.inv-ratio-here { background: var(--blue-soft); }
.inv-ratio h3 .small { font-weight: 400; margin-left: 6px; }
.inv-ex { display: block; font-weight: 400; }
/* v0.9.9.52：「提交的图片」下面这次提交的说明 */
.w52-img-note { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--head); }
.w52-img-note .w13-pre { margin-top: 4px; }

/* v0.9.9.53 每个人的排班（工作时间设置） */
.w53-people { gap: 6px; margin-top: 8px; }
.w53-people-wrap { overflow-x: auto; max-width: 100%; }
.w53-people-t { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.w53-people-t th, .w53-people-t td { border: 1px solid var(--line); padding: 3px 6px; text-align: center; }
.w53-people-t tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--panel); }
.w53-people-t td.w53-off { color: var(--muted); background: var(--head); }
.w53-people-t td.w53-on { color: var(--text); }
