/* HG 项目看板 · 设计 A（中控总览），精简了一点。
   规矩：界面本身只用中性色。五个阶段的冷色带（紫 蓝 青 蓝绿 绿）只出现在顶上的流程带和进度格子里；
   暖色只代表有事：红 = 停住 / 等钱，黄 = 该跟进。灰色只有一个意思：还没走到。
   这个文件管：颜色、版面、顶栏、流程带、今天要处理、本周、表格、按钮、提示、弹层、表、拖放。
   项目页和日历在 project.css，设置和登录在 more.css。 */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  --bg: #EEF1F4;
  --bg-2: #F5F7F9;
  --surface: #FFFFFF;
  --surface-2: #F3F5F7;
  --line: #E1E5EA;
  --line-2: #C9D0D8;
  --ink: #111820;
  --ink-2: #404B57;
  --ink-3: #66717D;
  --ink-4: #9CA6B1;
  --track: #E1E6EB;
  --lock: #8E99A5;
  --on: #FFFFFF;
  --shadow: 0 1px 2px rgba(18, 25, 32, .05), 0 6px 18px rgba(18, 25, 32, .05);
  --pop: 0 1px 3px rgba(18, 25, 32, .1), 0 10px 30px rgba(18, 25, 32, .16);
  --scrim: rgba(17, 24, 32, .38);
  --flash: rgba(40, 102, 230, .16);

  /* 阶段：c 实色，d 做完的浅一档，t 底色 */
  --p1: #6B55D9; --p1d: #A99DEA; --p1t: #EFEDFC;
  --p2: #2866E6; --p2d: #7EA3F0; --p2t: #E8F0FE;
  --p3: #0785B5; --p3d: #6BBDDC; --p3t: #E1F3FA;
  --p4: #0A8479; --p4d: #62BBB1; --p4t: #DEF4F1;
  --p5: #36892F; --p5d: #8BC286; --p5t: #E7F4E4;

  --red: #D92D20; --red-ink: #B42318; --red-t: #FDECEA; --red-s: rgba(217, 45, 32, .3);
  --amber: #F5A60B; --amber-ink: #8F5600; --amber-t: #FFF1D0; --on-amber: #2B1B00;
  --ok: #1E8E52; --ok-t: #E3F3EA;
}

:root[data-theme="dark"] {
  --bg: #0C1116;
  --bg-2: #11171E;
  --surface: #151B23;
  --surface-2: #1B222B;
  --line: #242D37;
  --line-2: #36414D;
  --ink: #E8EDF2;
  --ink-2: #B3BDC8;
  --ink-3: #8793A0;
  --ink-4: #5A6672;
  --track: #27303A;
  --lock: #6F7B88;
  --on: #0B1015;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02);
  --pop: 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 32px rgba(0, 0, 0, .55);
  --scrim: rgba(0, 0, 0, .58);
  --flash: rgba(108, 156, 255, .22);

  --p1: #A493FF; --p1d: #5B51A6; --p1t: #1F1C3B;
  --p2: #6C9CFF; --p2d: #3859A5; --p2t: #16233D;
  --p3: #45BDEB; --p3d: #27708F; --p3t: #102734;
  --p4: #33C6B3; --p4d: #21766D; --p4t: #0F2A29;
  --p5: #7DCC6A; --p5d: #447A3B; --p5t: #182A1A;

  --red: #E5484D; --red-ink: #FF8E86; --red-t: #381A1B; --red-s: rgba(229, 72, 77, .45);
  --amber: #F2B13C; --amber-ink: #F6C566; --amber-t: #35290F; --on-amber: #241700;
  --ok: #50C58D; --ok-t: #142A20;
}

/* 脚本还没跑起来的那一下：跟着电脑的设置，深色的人不会先看到一片白 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0C1116; --bg-2: #11171E; --surface: #151B23; --surface-2: #1B222B; --line: #242D37; --line-2: #36414D;
    --ink: #E8EDF2; --ink-2: #B3BDC8; --ink-3: #8793A0; --ink-4: #5A6672; --track: #27303A; --lock: #6F7B88; --on: #0B1015;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02); --pop: 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 32px rgba(0, 0, 0, .55);
    --scrim: rgba(0, 0, 0, .58); --flash: rgba(108, 156, 255, .22);
    --p1: #A493FF; --p1d: #5B51A6; --p1t: #1F1C3B; --p2: #6C9CFF; --p2d: #3859A5; --p2t: #16233D;
    --p3: #45BDEB; --p3d: #27708F; --p3t: #102734; --p4: #33C6B3; --p4d: #21766D; --p4t: #0F2A29;
    --p5: #7DCC6A; --p5d: #447A3B; --p5t: #182A1A;
    --red: #E5484D; --red-ink: #FF8E86; --red-t: #381A1B; --red-s: rgba(229, 72, 77, .45);
    --amber: #F2B13C; --amber-ink: #F6C566; --amber-t: #35290F; --on-amber: #241700; --ok: #50C58D; --ok-t: #142A20;
  }
}

.ph-0 { --pc: var(--p1); --pd: var(--p1d); --pt: var(--p1t); }
.ph-1 { --pc: var(--p2); --pd: var(--p2d); --pt: var(--p2t); }
.ph-2 { --pc: var(--p3); --pd: var(--p3d); --pt: var(--p3t); }
.ph-3 { --pc: var(--p4); --pd: var(--p4d); --pt: var(--p4t); }
.ph-4 { --pc: var(--p5); --pd: var(--p5d); --pt: var(--p5t); }

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; min-width: 1280px; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sw { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--pc, var(--ink-4)); }
.quiet { color: var(--ink-3); }
.bad { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- 顶栏 ---------- */
.top { position: sticky; top: 0; z-index: 40; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.nav { display: flex; gap: 2px; margin-left: 16px; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 12px; border-top: 2px solid transparent; border-bottom: 2px solid transparent; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.top-date { margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--line); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.top-sp { flex: 1; }
.who { height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.who:hover { background: var(--surface-2); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; }
.btn .ic { width: 14px; height: 14px; }
.btn.pri { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }
.btn.pri:hover { opacity: .9; }
.btn.sm { height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; }
.btn.sm .ic { width: 12px; height: 12px; }
.btn.lg { height: 38px; padding: 0 18px; border-radius: 9px; font-size: 14px; }
.btn.danger { color: var(--red-ink); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-3); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.txt { height: 24px; padding: 0 5px; border-color: transparent; background: none; color: var(--ink-3); font-weight: 500; }
.btn.txt:hover { background: var(--line); color: var(--ink); }
.btn.busy { opacity: .6; pointer-events: none; }
.ibtn { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--ink-3); }
.ibtn:hover { background: var(--surface-2); color: var(--ink); }
.ibtn .ic { width: 14px; height: 14px; }
.lnk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.lnk .ic { width: 12px; height: 12px; }
.lnk:hover { color: var(--ink); text-decoration: underline; }

.theme { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.theme button { width: 30px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--ink-3); }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }

/* 一个搜索框，哪一页都在；⌘K 跳进来 */
.gsearch { position: relative; flex: none; }
.search { width: 248px; height: 32px; padding: 0 8px 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink-3); }
.search .ic { width: 14px; height: 14px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; }
.search input::placeholder { color: var(--ink-4); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { border-color: var(--ink-2); }
.search kbd { flex: none; padding: 0 5px; border-radius: 4px; background: var(--surface-2); font: 500 10.5px/18px var(--font); color: var(--ink-3); }
.search:focus-within kbd { display: none; }
.sr { position: absolute; top: 100%; right: 0; z-index: 45; width: 420px; margin-top: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--pop); }
.sr-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 40px; padding: 4px 10px; border-radius: 8px; }
.sr-i:hover, .sr-i.on { background: var(--surface-2); }
.sr-a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ink-3); }
.sr-a b { font-weight: 650; color: var(--ink); }
.sr-m { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--ink-3); }
.sr-s { grid-column: 2; grid-row: 1 / 3; font-size: 12px; color: var(--ink-3); white-space: nowrap; text-align: right; }
.sr-s.t-danger { font-weight: 600; color: var(--red-ink); }
.sr-s.t-warn { font-weight: 600; color: var(--amber-ink); }
.sr-0 { padding: 14px 10px; font-size: 13px; color: var(--ink-3); }

.page { max-width: 1680px; margin: 0 auto; padding: 16px 24px 56px; }
.loading, .oops { padding: 72px 16px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.oops b { display: block; margin-bottom: 6px; font-size: 15px; color: var(--ink); }
.oops .btn { margin-top: 14px; }
.empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- 同一套 21 列：4 格 · 空 · 2 格 · 锁 · 4 格 · 空 · 2 格 · 锁 · 3 格 · 锁 · 1 格 ----------
   顶上的流程带、表格每一行、项目页的大路线都用它，所以三处的锁上下对得齐。 */
.flow, .bar, .route-g {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr)) var(--sp) repeat(2, minmax(0, 1fr)) var(--gt)
    repeat(4, minmax(0, 1fr)) var(--sp) repeat(2, minmax(0, 1fr)) var(--gt)
    repeat(3, minmax(0, 1fr)) var(--gt) minmax(0, 1fr);
}
/* 50% 关卡设在「发给工厂」前面时：第 8 列变成空，第 13 列变成锁 */
.gate50-11 .flow, .gate50-11 .bar, .gate50-11 .route-g {
  grid-template-columns:
    repeat(4, minmax(0, 1fr)) var(--sp) repeat(2, minmax(0, 1fr)) var(--sp)
    repeat(4, minmax(0, 1fr)) var(--gt) repeat(2, minmax(0, 1fr)) var(--gt)
    repeat(3, minmax(0, 1fr)) var(--gt) minmax(0, 1fr);
}
.c-1 { grid-column: 1; } .c-2 { grid-column: 2; } .c-3 { grid-column: 3; } .c-4 { grid-column: 4; } .c-5 { grid-column: 5; }
.c-6 { grid-column: 6; } .c-7 { grid-column: 7; } .c-8 { grid-column: 8; } .c-9 { grid-column: 9; } .c-10 { grid-column: 10; }
.c-11 { grid-column: 11; } .c-12 { grid-column: 12; } .c-13 { grid-column: 13; } .c-14 { grid-column: 14; } .c-15 { grid-column: 15; }
.c-16 { grid-column: 16; } .c-17 { grid-column: 17; } .c-18 { grid-column: 18; } .c-19 { grid-column: 19; } .c-20 { grid-column: 20; }
.c-21 { grid-column: 21; }
.pc-0 { grid-column: 1 / 5; } .pc-1 { grid-column: 6 / 8; } .pc-2 { grid-column: 9 / 13; } .pc-3 { grid-column: 14 / 16; } .pc-4 { grid-column: 17 / 22; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }

/* ---------- 流程带：五个阶段，每一步一个数，最多一个红点 ---------- */
.flow { --sp: 22px; --gt: 76px; position: relative; grid-template-rows: 52px 26px 22px 34px; padding: 8px 20px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.fbg { grid-row: 1 / -1; margin: 0 -7px -2px; border-radius: 10px; background: var(--pt); }
.fph { grid-row: 1; position: relative; z-index: 1; min-width: 0; margin: 0 -7px 4px; padding: 4px 7px 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; border-radius: 10px; background: none; text-align: left; }
.fph:hover { background: var(--surface-2); }
.fph[aria-pressed="true"]:hover { background: none; }
.fph-name { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); }
.fph[aria-pressed="true"] .fph-name { color: var(--ink); font-weight: 700; }
.fph-num { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fph-num > b { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.danger { background: var(--red-t); color: var(--red-ink); }
.pill.warn { background: var(--amber-t); color: var(--amber-ink); }
.pill.ok { background: var(--ok-t); color: var(--ok); }
.pill .ic { width: 12px; height: 12px; }

.fs { grid-row: 2 / 5; position: relative; z-index: 1; min-width: 0; width: 100%; padding: 0; display: grid; grid-template-rows: 26px 22px 34px; border: 0; border-radius: 8px; background: none; }
.fs-n { align-self: center; height: 24px; margin: 0 1px; border-radius: 6px; background: var(--pc); color: var(--on); font-size: 12px; font-weight: 700; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.fs-l { align-self: end; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 18px; color: var(--ink-2); }
.fs-c { position: relative; justify-self: center; align-self: center; display: inline-flex; align-items: center; height: 28px; margin-top: 2px; padding: 0 9px; border-radius: 8px; }
.fs-c b { font-size: 19px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fs.zero .fs-c b { font-size: 15px; font-weight: 500; color: var(--ink-4); }
.fs.zero .fs-l { color: var(--ink-3); }
.fs.zero .fs-n { opacity: .55; }
.bd { position: absolute; left: 100%; top: 0; margin-left: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10.5px; line-height: 16px; font-weight: 700; font-style: normal; text-align: center; font-variant-numeric: tabular-nums; }
.fs:hover .fs-c { background: var(--surface-2); }
.fs:hover .fs-l { color: var(--ink); }
.fs[aria-pressed="true"] .fs-c { background: var(--ink); color: var(--surface); }
.fs[aria-pressed="true"] .fs-l { color: var(--ink); font-weight: 700; }
.farrow { grid-row: 2; z-index: 1; align-self: center; justify-self: center; display: grid; color: var(--ink-4); }
.farrow .ic { width: 14px; height: 14px; }

/* 付款关卡：两个阶段之间的一道闸；10% 那道在最后一个阶段里面 */
.fgate { grid-row: 2 / 5; position: relative; z-index: 2; min-width: 0; padding: 0; display: grid; grid-template-rows: 26px 22px 34px; justify-items: center; border: 0; background: none; }
.fgate::before { content: ""; position: absolute; left: 3px; right: 3px; top: 12px; height: 2px; border-radius: 1px; background: var(--line-2); }
.fgate-n { position: relative; z-index: 1; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-3); }
.fgate-n .ic { width: 14px; height: 14px; }
.fgate.stop .fgate-n { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 3px var(--red-t); }
.fgate-t { position: relative; z-index: 1; align-self: end; padding: 0 3px; font-size: 11px; line-height: 18px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fgate-s { position: relative; z-index: 1; align-self: center; height: 20px; margin-top: 2px; padding: 0 7px; border-radius: 10px; font-size: 11px; line-height: 20px; color: var(--ink-4); white-space: nowrap; }
.fgate.stop .fgate-s { background: var(--red-t); color: var(--red-ink); font-weight: 700; }
.fgate:hover .fgate-t, .fgate[aria-pressed="true"] .fgate-t { color: var(--ink); text-decoration: underline; }

/* ---------- 两栏 ---------- */
.cols { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 20px; margin-top: 16px; align-items: start; }

/* ---------- 今天要处理 ---------- */
.inbox, .agenda { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.inbox { padding-bottom: 8px; }
.inbox-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; }
.inbox-h h2 { font-size: 15px; font-weight: 700; }
.count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.inbox-sub { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.inbox-g { display: flex; align-items: center; gap: 6px; padding: 12px 16px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.inbox-g b { font-weight: 600; color: var(--ink-4); }
.it { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "ic a id" "ic s s"; column-gap: 10px; row-gap: 2px; align-items: center; padding: 7px 14px 7px 16px; cursor: pointer; }
.it:hover { background: var(--surface-2); }
.it-ic { grid-area: ic; align-self: start; margin-top: 2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--red-t); color: var(--red-ink); }
.it.t-warn .it-ic { background: var(--amber-t); color: var(--amber-ink); }
.it-a { grid-area: a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.it-a:hover { text-decoration: underline; }
.it-id { grid-area: id; font: 500 10.5px var(--mono); color: var(--ink-3); }
.it-s { grid-area: s; min-width: 0; display: flex; align-items: center; gap: 7px; min-height: 26px; white-space: nowrap; font-size: 12px; color: var(--ink-3); }
.it-s b { flex: none; font-weight: 600; color: var(--red-ink); }
.it.t-warn .it-s b { color: var(--amber-ink); }
.it-s > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.it-s .btn { flex: none; }
.it.pending { opacity: .6; }

/* ---------- 本周的测量和送货 ---------- */
.agenda { margin-top: 14px; padding-bottom: 8px; }
.ag-h { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 6px; }
.ag-h h2 { font-size: 15px; font-weight: 700; }
.ag-h span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ag-h a { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.ag-h a:hover { color: var(--ink); text-decoration: underline; }
.ag { display: grid; grid-template-columns: 34px 18px minmax(0, 1fr) auto; column-gap: 9px; align-items: center; min-height: 44px; padding: 4px 16px; font-size: 13px; }
a.ag:hover { background: var(--surface-2); }
.ag-a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ag-w { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ag-w .ic { width: 12px; height: 12px; color: var(--red-ink); }
.ag.past .ag-a { font-weight: 500; color: var(--ink-3); }
.ag.past .leaf, .ag.past .ty { opacity: .55; }
.ag.none { grid-template-columns: 34px minmax(0, 1fr); color: var(--ink-3); font-size: 12.5px; }
.ty { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 5px; background: var(--track); color: var(--ink-2); font-size: 11px; font-weight: 700; font-style: normal; }
.ty-d { background: var(--ink-2); color: var(--surface); }

/* 日历小页：上面一条是星期或月份，下面是日子；虚线 = 暂定 */
.leaf { flex: none; width: 44px; height: 46px; display: grid; grid-template-rows: 16px 1fr; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); text-align: center; }
.leaf i { font-style: normal; font-size: 10.5px; line-height: 16px; font-weight: 600; background: var(--pc, var(--ink-3)); color: var(--on); white-space: nowrap; }
.leaf b { align-self: center; font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.leaf.tent { border-style: dashed; border-color: var(--pc, var(--line-2)); }
.leaf.tent i { background: none; color: var(--pc, var(--ink-3)); border-bottom: 1px dashed var(--pc, var(--line-2)); line-height: 15px; }
.leaf.sm { width: 34px; height: 36px; grid-template-rows: 13px 1fr; border-radius: 7px; }
.leaf.sm i { font-size: 9.5px; line-height: 13px; background: var(--track); color: var(--ink-2); }
.leaf.sm b { font-size: 14px; line-height: 20px; letter-spacing: 0; }
.leaf.sm.today { border-color: var(--ink); }
.leaf.sm.today i { background: var(--ink); color: var(--surface); }
.leaf.sm.tent { border-color: var(--line-2); }
.leaf.sm.tent i { background: none; color: var(--ink-3); border-bottom: 1px dashed var(--line-2); line-height: 12px; }

/* ---------- 项目表 ---------- */
.tbl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tbl-top { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 8px; }
.tabs { display: flex; flex-wrap: wrap; align-self: stretch; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-top: 2px solid transparent; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab b { font-size: 12px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tab.hot b { color: var(--red-ink); }
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.only { display: inline-flex; align-items: center; gap: 5px; height: 26px; margin-left: 6px; padding: 0 5px 0 9px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.only:hover { background: var(--line); }
.only .ic { width: 12px; height: 12px; color: var(--ink-3); }
.tbl-r { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

.row { position: relative; display: grid; grid-template-columns: minmax(210px, 1.05fr) minmax(280px, 1.5fr) 142px 200px 100px; column-gap: 16px; align-items: center; min-height: 52px; padding: 0 12px 0 18px; border-top: 1px solid var(--line); }
.row.pr { cursor: pointer; }
.row.pr:hover { background: var(--surface-2); }
.row-h { min-height: 36px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.row-h .rh-r { text-align: right; padding-right: 4px; }
.row-g { min-height: 30px; border-top: 0; background: var(--bg-2); font-size: 12.5px; }
.rg-n { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rg-n b { font-weight: 700; }
.rg-n span { font-size: 12px; color: var(--ink-3); }
.rg-b { grid-column: 3 / 6; font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.rg-b.bad { font-weight: 600; color: var(--red-ink); }
.rg-b.warn { font-weight: 600; color: var(--amber-ink); }
.row-g + .row { border-top: 0; }
button.row-g { width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 13px 13px; font: inherit; font-size: 12.5px; color: inherit; text-align: left; }
.row-g.end.open { border-radius: 0; }
.row-g.end:hover .rg-n b { text-decoration: underline; }
.rg-x { grid-column: 5; justify-self: end; display: grid; color: var(--ink-3); transition: transform .12s; }
.rg-x .ic { width: 14px; height: 14px; }
.row-g.end.open .rg-x { transform: rotate(90deg); }
.row.t-danger.pr { box-shadow: inset 3px 0 0 var(--red); }
.row.t-warn.pr { box-shadow: inset 3px 0 0 var(--amber); }
#rows > .row:last-child { border-radius: 0 0 13px 13px; }
.row.pending { opacity: .6; }
.flash { animation: flash 1.4s ease-out 1; }
@keyframes flash { 0%, 30% { background-color: var(--flash); } 100% { background-color: transparent; } }

.row-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.row-addr b { font-weight: 650; color: var(--ink); }
.row-addr:hover b { text-decoration: underline; }
.jtag { flex: none; height: 17px; padding: 0 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); font: 600 10.5px/17px var(--mono); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.jtag.qu { box-shadow: none; padding: 0; font-weight: 500; color: var(--ink-3); }
.row-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 17px; color: var(--ink-3); }
.row-meta i { margin: 0 5px; font-style: normal; color: var(--ink-4); }
.row-bar { align-self: stretch; min-width: 0; display: flex; }
.row-now { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.now-step { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 13px; line-height: 19px; font-weight: 600; white-space: nowrap; }
.now-step.ok { display: flex; align-items: center; gap: 5px; color: var(--ok); }
.now-step.ok .ic { width: 14px; height: 14px; }
.now-state { max-width: 100%; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; font-size: 12px; line-height: 18px; color: var(--ink-3); white-space: nowrap; }
.now-state .ic { width: 12px; height: 12px; }
.now-state.t-danger { font-weight: 600; color: var(--red-ink); }
.now-state.t-warn { font-weight: 600; color: var(--amber-ink); }
.row-act { min-width: 0; display: flex; align-items: center; gap: 4px; }
.row-act .btn.sm:not(.txt) { margin-right: 2px; }
.lockd { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; font-size: 12px; font-weight: 600; color: var(--red-ink); white-space: nowrap; }
.lockd .ic { width: 12px; height: 12px; }
.waitd { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.row-lk { display: flex; justify-content: flex-end; gap: 1px; }
.ilk, .ilk-0 { flex: none; width: 24px; height: 24px; }
.ilk { display: grid; place-items: center; border-radius: 6px; color: var(--ink-4); }
.ilk .ic { width: 15px; height: 15px; }
.row:hover .ilk, .row:focus-within .ilk { color: var(--ink-2); }
.row .ilk:hover { background: var(--line); color: var(--ink); }
.row.closed .row-addr b { font-weight: 500; color: var(--ink-2); }
.row.closed .jtag { color: var(--ink-3); }
.row.closed .bar { opacity: .55; }
.row.rejd .now-step { color: var(--ink-3); }

/* 进度条：做完的阶段并成一条，正在做的阶段一步一格，灰的是还没走到 */
.bar { --sp: 7px; --gt: 22px; flex: 1; min-width: 0; column-gap: 2px; align-items: center; }
.c { display: block; height: 10px; border-radius: 3px; background: var(--track); font-style: normal; }
.c.done { background: var(--pd); }
.c.cur { position: relative; z-index: 1; justify-self: center; width: max(100%, 22px); height: 22px; border-radius: 6px; background: var(--pc); color: var(--on); font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.c.cur.t-warn { background: var(--amber); color: var(--on-amber); }
.c.cur.t-danger { background: var(--red); color: #fff; }
.c.cur.barred { background: repeating-linear-gradient(135deg, var(--red-s) 0 2.5px, transparent 2.5px 6px), var(--red-t); color: var(--red-ink); box-shadow: inset 0 0 0 1.5px var(--red); }
.c.cur.t-rej { display: grid; place-items: center; background: var(--ink-4); color: var(--surface); }
.c.cur.t-rej .ic { width: 12px; height: 12px; stroke-width: 2; }
.bar.rej .c.done { background: var(--ink-4); opacity: .5; }
.g { align-self: center; display: grid; place-items: center; color: var(--lock); }
.g .ic { width: 14px; height: 14px; }
.g.paid { color: var(--ok); }
.g.ovr { color: var(--amber-ink); }
.g.stop .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 3px var(--red-t); }

.bar-h { align-items: center; }
.bh { min-width: 0; overflow: hidden; font-size: 11.5px; line-height: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.bg { justify-self: center; font-size: 10px; line-height: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

/* ---------- 提示：底部居中，带「撤销」 ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; max-width: min(720px, 90vw); display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; box-shadow: var(--pop); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .15s, transform .15s; }
.toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: #fff; }
.toast-u { flex: none; margin: -3px -8px -3px 0; padding: 3px 9px; border: 1px solid transparent; border-radius: 6px; background: none; color: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.toast-u:hover { border-color: currentColor; text-decoration: none; }

/* ---------- 小弹层 ---------- */
.pop { padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--pop); }
.pop-f { position: absolute; z-index: 70; min-width: 180px; max-width: 420px; }
.pop-b { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 10px; }
.pop-w { width: 340px; }
.pop-t { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pop-t b { margin-right: auto; font-size: 13px; font-weight: 700; color: var(--ink); }
.pop-r { display: flex; align-items: center; gap: 8px; }
.pop-r.quiet { justify-content: space-between; font-size: 12px; }
.pop-p { font-size: 13px; color: var(--ink-2); }
.pop-p.quiet { color: var(--ink-3); }
.pop-p.bad { color: var(--red-ink); }
.pop-l { padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.pop-zip { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px; font-weight: 500; }
.pop-zip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.pop-zip:hover { background: var(--surface-2); }
.menu-i { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font-size: 13px; text-align: left; white-space: nowrap; }
.menu-i:hover { background: var(--surface-2); }
.menu-i .ic { width: 14px; height: 14px; color: var(--ink-3); }

.cal { display: grid; grid-template-columns: repeat(7, 34px); gap: 3px; }
.cal-w { font-size: 11px; line-height: 18px; text-align: center; color: var(--ink-3); }
.cal-r { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.day { position: relative; height: 34px; padding: 0; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.day i { position: absolute; left: 0; right: 0; top: 1px; font-style: normal; font-size: 8.5px; line-height: 10px; font-weight: 600; color: var(--ink-3); }
.day.sun { background: none; color: var(--ink-3); }
.day:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.day:hover:not(:disabled) i { color: inherit; }
.day:disabled { background: none; color: var(--ink-4); font-weight: 400; }
.day.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.day.on { background: var(--ink); color: var(--surface); }
.day.on i { color: inherit; }

/* ---------- 输入 ---------- */
.inp { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; }
.inp:focus { outline: 0; border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--track); }
.inp::placeholder { color: var(--ink-4); }
.inp.sm { width: auto; height: 28px; padding: 0 6px; font-size: 12.5px; }
.inp.bad { border-color: var(--red); color: var(--ink); }
textarea.inp { height: auto; min-height: 60px; padding: 7px 10px; resize: vertical; }
.fld { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.fld > span:first-child { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.seg { display: inline-flex; justify-self: start; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; height: 28px; padding: 0 14px; border-radius: 7px; font-size: 13px; line-height: 28px; color: var(--ink-3); white-space: nowrap; }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- 居中的一张表（新建项目等） ---------- */
.has-modal { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 9vh 16px 16px; overflow: auto; background: var(--scrim); }
.modal { width: 520px; max-width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--pop); }
.modal.wide { width: 720px; }
.np { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 20px; }
.np-h { display: flex; align-items: center; gap: 8px; }
.np-h h2 { margin-right: auto; font-size: 17px; font-weight: 700; }
.np-files { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.np-file { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 26px; column-gap: 10px; align-items: center; min-height: 38px; padding: 0 6px 0 10px; border-top: 1px solid var(--line); font-size: 13px; }
.np-file:first-child { border-top: 0; }
.np-file b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.np-file > span { font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.np-file.done > span { color: var(--ok); font-weight: 600; }
.np-file.fail > span { color: var(--red-ink); font-weight: 600; }
.np-none { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 10px 0 14px; font-size: 13px; color: var(--ink-3); }
.np-more { align-self: flex-start; margin-top: -6px; }
.ft { flex: none; width: 30px; height: 20px; display: inline-grid; place-items: center; border-radius: 4px; background: var(--ink-2); color: var(--surface); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
.ft.zip { background: var(--ink-3); }
.np-hint { margin: -6px 0 0 76px; font-size: 12px; color: var(--ink-3); }
.np-hint.bad { color: var(--red-ink); }
.np-f { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.np-f p { margin-right: auto; font-size: 12px; color: var(--ink-3); }

/* ---------- 拖文件进来：整页一层 ---------- */
.drop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: var(--scrim); pointer-events: none; }
.drop-in { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2.5px dashed var(--surface); border-radius: 22px; color: #fff; }
.drop-in .ic { width: 44px; height: 44px; stroke-width: 1.2; }
.drop-in b { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -.01em; }
.drop-in span { font-size: 14px; opacity: .85; }
:root[data-theme="dark"] .drop-in { border-color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .toast, .rg-x { transition: none; }
  .flash { animation: none; }
}

/* 1280 一档：左栏和关卡都收一点 */
@media (max-width: 1439px) {
  .row { column-gap: 14px; grid-template-columns: minmax(200px, 1fr) minmax(270px, 1.45fr) 138px 194px 96px; }
}
@media (max-width: 1359px) {
  .page { padding-left: 20px; padding-right: 20px; }
  .top { padding: 0 20px; gap: 10px; }
  .nav { margin-left: 10px; }
  .search { width: 212px; }
  .cols { grid-template-columns: 252px minmax(0, 1fr); gap: 16px; }
  .flow { --gt: 68px; --sp: 16px; padding-left: 16px; padding-right: 16px; }
  .fgate-t { font-size: 10.5px; }
  .row { column-gap: 12px; padding: 0 10px 0 14px; grid-template-columns: minmax(190px, 1fr) minmax(256px, 1.4fr) 132px 190px 92px; }
  .bar { --gt: 18px; --sp: 6px; column-gap: 1.5px; }
  .ilk, .ilk-0 { width: 22px; }
  .it { padding-left: 14px; padding-right: 12px; column-gap: 8px; }
}

/* ---------- 看板 v2 补的几样 ---------- */
/* 从 c-N 那一列开始占几格（做完的阶段并成一条、表头的阶段名） */
.e2 { grid-column-end: span 2; } .e3 { grid-column-end: span 3; } .e4 { grid-column-end: span 4; }
.side, .main { min-width: 0; }
.ag-g { padding: 10px 16px 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ilk.off { opacity: .5; }
.row:hover .ilk.off { opacity: .8; }
.only .sw { width: 7px; height: 7px; }
.it .btn.sm { height: 24px; }
.it .lockd { margin-right: 0; }
/* 每一格都写了列号：全放在第一行，不然后放的格子会被挤到下一行 */
.bar > * { grid-row: 1; }

/* 导入时猜的步骤 */
.unsure { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 16px; color: var(--amber-ink); border: 1px dashed currentColor; vertical-align: 1px; }
button.tag.unsure { margin-left: 0; font-size: 12px; line-height: 20px; padding: 0 8px; background: transparent; cursor: pointer; font-family: inherit; }

/* 简洁（默认）：藏起细节，按「详细」全部回来 */
.mode { margin-left: 4px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; }
.mode:hover { color: var(--ink); border-color: var(--ink-4); }
.inbox-more { display: block; width: 100%; margin-top: 6px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.inbox-more:hover { color: var(--ink); }
.simple .row-meta, .simple .inbox-sub { display: none; }
.simple .row-lk { visibility: hidden; }
.simple .row.pr:hover .row-lk, .simple .row.pr:focus-within .row-lk { visibility: visible; }
.simple .row-h .row-bar, .simple .rh-r { visibility: hidden; }
.simple .fs.zero .fs-c, .simple .fgate:not(.stop) .fgate-s { visibility: hidden; }

/* ---------- 简洁（默认）· 2026-11-19 晚：五个阶段、一栏、多留白 ----------
   16 步收成 5 个阶段；左栏拿掉，「今天要处理」和「本周」放上面一排；表格全宽、行更高。按「详细」回到 16 步的样子。 */
.simple.page, .page.simple { max-width: 1360px; padding-top: 28px; }
.stages { display: flex; align-items: stretch; gap: 10px; }
.stg { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 20px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; box-shadow: var(--shadow); }
.stg:hover { border-color: var(--line-2); }
.stg[aria-pressed="true"] { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc), var(--shadow); }
.stg-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.stg-name .sw { width: 10px; height: 10px; border-radius: 3px; }
.stg-n { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stg-s { min-height: 18px; font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.stg-s.bad { font-weight: 600; color: var(--red-ink); }
.stg-s.warn { font-weight: 600; color: var(--amber-ink); }
.sgate { flex: none; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 44px; padding: 6px 0; border: 0; border-radius: 10px; background: none; color: var(--lock); font-size: 11px; font-weight: 600; }
.sgate .ic { width: 15px; height: 15px; }
.sgate:hover { background: var(--surface-2); color: var(--ink-2); }
.sgate b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
.sgate.stop { color: var(--red-ink); }

.todayrow { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin: 28px 0; align-items: start; }
.todo-sec, .todayrow .agenda { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.todo-sec { padding: 0 0 12px; }
.td-h { display: flex; align-items: center; gap: 8px; padding: 16px 20px 10px; }
.td-h h2 { font-size: 15px; font-weight: 700; }
.td-more { margin-left: auto; padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--ink-3); }
.td-more:hover { color: var(--ink); text-decoration: underline; }
.tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 0 12px; }
.tc { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 58px; padding: 8px; border-radius: 10px; cursor: pointer; }
.tc:hover { background: var(--surface-2); }
.tc.pending { opacity: .6; }
.tc-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--red-t); color: var(--red-ink); }
.tc.t-warn .tc-ic { background: var(--amber-t); color: var(--amber-ink); }
.tc.t-mute .tc-ic { background: var(--surface-2); color: var(--ink-3); }
.tc-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tc-a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.tc-a:hover { text-decoration: underline; }
.tc-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-3); }
.tc-s b { font-weight: 600; color: var(--red-ink); }
.tc.t-warn .tc-s b { color: var(--amber-ink); }
.tc-b { display: flex; align-items: center; gap: 4px; }
.todayrow .agenda { padding-bottom: 10px; }
.todayrow .ag-h { padding: 16px 18px 8px; }
.todayrow .ag { padding: 4px 18px; }

/* 表格：全宽、行高一点、少一列细节 */
.simple .tbl-top { min-height: 52px; padding: 0 20px 0 12px; }
.simple .row { grid-template-columns: minmax(240px, 1.3fr) minmax(260px, 1.1fr) 170px 220px 100px; column-gap: 24px; min-height: 60px; padding: 0 20px 0 24px; }
.simple .row-h { min-height: 38px; }
.simple .row-g { min-height: 36px; margin-top: 0; }
.simple .row-h .row-bar { visibility: visible; }
.bh5 { align-self: center; }
.bar5 { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.sg { flex: 1; min-width: 0; height: 8px; overflow: hidden; border-radius: 4px; background: var(--track); }
.sg-f { display: block; height: 100%; border-radius: 4px; background: var(--pd); }
.sg.cur .sg-f { background: var(--pc); }
.sg.cur.t-warn .sg-f { background: var(--amber); }
.sg.cur.t-danger .sg-f { background: var(--red); }
.sg.cur.barred { box-shadow: inset 0 0 0 1.5px var(--red); }
.sg.cur.t-rej .sg-f { background: var(--ink-4); }
.bar5.rej .sg-f { background: var(--ink-4); opacity: .5; }
.bar5 .g .ic { width: 12px; height: 12px; }
.bar5 .g.wait { opacity: .55; }
.bar5 .g.stop .ic { width: 18px; height: 18px; padding: 3px; }
.w0 { width: 0; } .w1 { width: 12.5%; } .w2 { width: 25%; } .w3 { width: 37.5%; } .w4 { width: 50%; }
.w5 { width: 62.5%; } .w6 { width: 75%; } .w7 { width: 87.5%; } .w8 { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; margin-left: 4px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: none; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.chip b { font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip[aria-pressed="true"] b { color: inherit; }
@media (max-width: 1359px) {
  .simple .row { grid-template-columns: minmax(210px, 1.2fr) minmax(220px, 1fr) 150px 210px 92px; column-gap: 18px; }
  .todayrow { grid-template-columns: minmax(0, 1fr) 270px; }
}

/* 窄一点的窗口（Claude 里的浏览器、笔记本）：不再撑到 1280，右边不被切掉 */
body { min-width: 1024px; }
@media (max-width: 1279px) {
  .top-date { display: none; }
  .search { width: 180px; }
  .top { gap: 8px; padding: 0 16px; }
  .page { padding-left: 16px; padding-right: 16px; }
  .stg { padding: 14px 14px 12px; }
  .stg-n { font-size: 28px; line-height: 34px; }
  .todayrow { grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; }
  .simple .row { grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) 130px 190px 0; column-gap: 14px; padding: 0 12px 0 16px; }
  .simple .row-lk { display: none; }
}
@media (max-width: 1099px) { .tc-grid { grid-template-columns: minmax(0, 1fr); } }
/* 简洁：每行地址下面一行联系人；本周最多 7 个 */
.row-ct { display: flex; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 17px; color: var(--ink-3); }
.row-ct span { overflow: hidden; text-overflow: ellipsis; }
.row-ct a { flex: none; font-variant-numeric: tabular-nums; }
.row-ct a:hover { color: var(--ink); text-decoration: underline; }
.ag-more { display: block; padding: 8px 18px 2px; font-size: 12.5px; color: var(--ink-3); }
.ag-more:hover { color: var(--ink); text-decoration: underline; }
/* 简洁 | 详细 两格开关（看板和项目页一样） */
.vseg { flex: none; display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.vseg button { height: 24px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); font-size: 12px; }
.vseg button:hover { color: var(--ink); }
.vseg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .14); cursor: default; }
