:root {
  /* 品牌标准色：屏显 #F8F7F1（米白） / #706E6C（灰 · Pantone P172-10C） */
  --bg: #F8F7F1;            /* 米白 · 画面底色 */
  --panel: #FFFFFF;
  --ink: #2E2C29;
  --ink-2: #64615C;
  --ink-3: #97938B;
  --line: #E3E0D6;
  --line-2: #F0EDE4;
  --brand: #706E6C;         /* 品牌灰 */
  --brand-deep: #5C5A57;    /* 灰加深，用于主按钮与选中态 */
  --brand-soft: #EFEDE8;
  --green: #2F7D50;
  --green-soft: #E9F3EC;
  --yellow: #A87A15;
  --yellow-soft: #FBF0D8;
  --red: #C13B2E;
  --red-soft: #FAE9E6;
  --nav: #F1EFE8;           /* 浅米灰导航 */
  --nav-2: #E7E4DA;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(60, 55, 40, .05), 0 1px 3px rgba(60, 55, 40, .05);
  --shadow-lg: 0 12px 32px rgba(60, 55, 40, .14), 0 4px 8px rgba(60, 55, 40, .06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font-family: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D6D2C7; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #BFBBAF; background-clip: padding-box; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 216px; flex: 0 0 216px; background: var(--nav); color: #57534a;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
}
.side__brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(70, 58, 34, .08); }
.side__brand b { color: #2c2c28; font-size: 15px; letter-spacing: .3px; display: block; }
.side__brand span { font-size: 11.5px; color: #948d7e; letter-spacing: .6px; }
.side__nav { padding: 10px 8px; flex: 1; overflow: auto; }
.side__group { font-size: 11px; color: #8f8779; padding: 14px 10px 6px; letter-spacing: .8px; }
.side__link {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 7px;
  color: #55524a; font-size: 13.5px; cursor: pointer; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left;
}
.side__link:hover { background: var(--nav-2); color: #23221e; }
.side__link.is-on { background: var(--brand-deep); color: #fff; }
.side__link i { font-style: normal; width: 16px; text-align: center; opacity: .9; font-size: 13px; }
.side__link em { font-style: normal; margin-left: auto; font-size: 11px; background: var(--red); color: #fff; padding: 0 6px; border-radius: 9px; line-height: 17px; }
.side__foot { padding: 12px 16px; border-top: 1px solid rgba(70, 58, 34, .08); font-size: 11.5px; color: #948d7e; line-height: 1.7; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 56px; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.topbar__title { font-size: 15.5px; font-weight: 600; }
.topbar__crumb { color: var(--ink-3); font-size: 12.5px; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { display: flex; align-items: center; gap: 8px; background: #F5F2E9; border: 1px solid var(--line); border-radius: 20px; padding: 3px 6px 3px 10px; font-size: 12.5px; }
.who select { border: none; background: transparent; font-size: 12.5px; color: var(--ink); outline: none; padding: 2px 4px; cursor: pointer; }
.who__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.page { padding: 20px 22px 60px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head__main { flex: 1; min-width: 240px; }
.page-head h1 { font-size: 20px; letter-spacing: -.2px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.7; max-width: 860px; }
.page-head__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card__head h3 { font-size: 14px; }
.card__head .sub { color: var(--ink-3); font-size: 12px; }
.card__head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }

.grid { display: grid; gap: 12px; }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1200px) { .grid--6 { grid-template-columns: repeat(3, 1fr); } .grid--5 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--6, .grid--5, .grid--4, .grid--3, .grid--2, .grid--2-1 { grid-template-columns: 1fr; } }

/* ---------- kpi ---------- */
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi__label { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.kpi__value { font-size: 25px; font-weight: 650; letter-spacing: -.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.kpi__foot { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.kpi--alert { border-left: 3px solid var(--red); }
.kpi--warn { border-left: 3px solid var(--yellow); }
.kpi--ok { border-left: 3px solid var(--green); }
.kpi__spark { position: absolute; right: 10px; top: 12px; opacity: .9; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13px; cursor: pointer; white-space: nowrap; transition: .15s;
}
.btn:hover { border-color: #c9c2b3; background: #faf7f0; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: #4B4946; border-color: #4B4946; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: #f2ede3; color: var(--ink); }
.btn--danger { color: var(--red); border-color: #f3c9c5; background: #fff; }
.btn--danger:hover { background: var(--red-soft); }
.btn--sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
.btn--xs { height: 23px; padding: 0 7px; font-size: 11.5px; border-radius: 5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { border: none; background: none; cursor: pointer; color: var(--ink-3); font-size: 14px; width: 26px; height: 26px; border-radius: 6px; }
.icon-btn:hover { background: #F2EFE7; color: var(--ink); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.seg button { border: none; background: none; padding: 6px 11px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line-2); }
.seg button:last-child { border-right: none; }
.seg button.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

select.inp, input.inp, textarea.inp {
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 13px;
  font-family: inherit; color: var(--ink); background: #fff; outline: none; min-height: 32px;
}
select.inp:focus, input.inp:focus, textarea.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(112,110,108,.18); }
textarea.inp { resize: vertical; line-height: 1.6; }
label.fld { display: block; margin-bottom: 12px; }
label.fld span.lbl { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
label.fld span.lbl b { color: var(--red); font-weight: 500; }
b.req { color: var(--red); font-weight: 500; }

/* ---------- tags / lights ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; background: #f2eee5; color: var(--ink-2); white-space: nowrap; }
.tag--blue { background: #e9e6dd; color: #3d4148; }
.tag--green { background: var(--green-soft); color: #12733a; }
.tag--yellow { background: var(--yellow-soft); color: #8a6100; }
.tag--red { background: var(--red-soft); color: #b42318; }
.tag--gray { background: #f1ede4; color: var(--ink-2); }
.tag--purple { background: #f1ecfd; color: #6431c4; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot--g { background: var(--green); }
.dot--y { background: #e8b400; }
.dot--r { background: var(--red); }
.dot--n { background: #c9cfd9; }
.dot--b { background: var(--brand); }

.light { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.light--green { color: #12733a; }
.light--yellow { color: #8a6100; }
.light--red { color: #b42318; font-weight: 600; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: 11.5px;
  padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fbf8f0; white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:hover { background: #fbf8f1; }
.tbl tbody tr.is-click { cursor: pointer; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .muted { color: var(--ink-3); }
.tbl-wrap { overflow: auto; max-height: 640px; }
.tbl-empty { padding: 40px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- progress ---------- */
.bar { height: 6px; border-radius: 4px; background: #efeade; overflow: hidden; min-width: 60px; }
.bar__fill { height: 100%; border-radius: 4px; background: var(--brand); transition: width .3s; }
.bar__fill--g { background: var(--green); }
.bar__fill--y { background: #e8b400; }
.bar__fill--r { background: var(--red); }
.bar--lg { height: 8px; }

/* ---------- gantt ---------- */
.gantt { font-size: 12px; }
.gantt__head, .gantt__row { display: grid; grid-template-columns: 300px 1fr 92px; align-items: center; }
.gantt__head { position: sticky; top: 0; background: var(--panel); z-index: 3; border-bottom: 1px solid var(--line); }
.gantt__head .h { padding: 8px 12px; color: var(--ink-3); font-size: 11.5px; }
.gantt__scale { position: relative; height: 34px; }
.gantt__month { position: absolute; top: 0; height: 34px; border-left: 1px solid var(--line-2); padding-left: 6px; font-size: 11px; color: var(--ink-3); line-height: 34px; white-space: nowrap; overflow: hidden; }
.gantt__row { border-bottom: 1px solid var(--line-2); min-height: 40px; }
.gantt__row:hover { background: #FBFAF5; }
.gantt__name { padding: 8px 12px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.gantt__name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt__track { position: relative; height: 40px; }
.gantt__grid { position: absolute; inset: 0; background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 12) 100%; opacity: .8; }
.gantt__bar {
  position: absolute; top: 50%; transform: translateY(-50%); height: 18px; border-radius: 4px;
  display: flex; align-items: center; padding: 0 6px; font-size: 10.5px; color: #fff; white-space: nowrap;
  cursor: grab; user-select: none; min-width: 6px; box-shadow: 0 1px 2px rgba(16,24,40,.16);
}
.gantt__bar:active { cursor: grabbing; }
.gantt__bar.is-drag { opacity: .55; }
.gantt__bar--g { background: linear-gradient(180deg, #34c163, #16a34a); }
.gantt__bar--y { background: linear-gradient(180deg, #f2c53d, #dcab00); color: #4a3800; }
.gantt__bar--r { background: linear-gradient(180deg, #f0574b, #d92d20); }
.gantt__bar--done { background: linear-gradient(180deg, #b6afa1, #948c7d); }
.gantt__ghost { position: absolute; top: 50%; transform: translateY(-50%); height: 18px; border-radius: 4px; border: 1.5px dashed #a8a093; background: rgba(168,160,147,.12); pointer-events: none; }
.gantt__today { position: absolute; top: 0; bottom: 0; width: 2px; background: #f04438; opacity: .55; z-index: 1; }
.gantt__today::after { content: '今天'; position: absolute; top: -1px; left: 3px; font-size: 10px; color: #f04438; background: #fff; padding: 0 2px; }
.gantt__due { padding: 8px 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- misc blocks ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; align-items: flex-start; }
.mini-list li:last-child { border-bottom: none; }
.mini-list .main { flex: 1; min-width: 0; }
.mini-list .main b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .main span { color: var(--ink-3); font-size: 11.5px; }

.split { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

.alert-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.alert-row:last-child { border-bottom: none; }
.alert-row:hover { background: #fbf8f1; }
.alert-row__bar { width: 3px; align-self: stretch; border-radius: 3px; }
.alert-row__main { flex: 1; min-width: 0; }
.alert-row__main b { font-weight: 500; font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-row__main span { font-size: 11.5px; color: var(--ink-3); }

.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px dashed var(--line); }
.timeline li { position: relative; padding: 0 0 14px 12px; }
.timeline li::before { content: ''; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #c9cfd9; border: 2px solid #fff; }
.timeline li.on::before { background: var(--brand); }
.timeline li.ok::before { background: var(--green); }
.timeline li.warn::before { background: var(--yellow); }
.timeline li.bad::before { background: var(--red); }
.timeline .t { font-size: 11.5px; color: var(--ink-3); }
.timeline .d { font-size: 12.5px; }

.empty { padding: 32px; text-align: center; color: var(--ink-3); font-size: 12.5px; }
.hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.hint-box { background: #FBFAF5; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.hint-box b { color: var(--ink); }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(16,24,40,.42); display: none; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 100; overflow: auto; }
.modal.is-open { display: flex; }
.modal__card { background: #fff; border-radius: 12px; width: 520px; max-width: 100%; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.modal__card--wide { width: 720px; }
.modal__card--xwide { width: 920px; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.modal__head h3 { font-size: 15px; flex: 1; }
.modal__body { padding: 18px; max-height: 66vh; overflow: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line-2); background: #faf7f0; border-radius: 0 0 12px 12px; }
.confirm-text { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }

#toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast__item { background: #2E2C29; color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.toast__item--err { background: var(--red); }
.toast__item--warn { background: #a87300; }
.toast__item.is-out { opacity: 0; transform: translateY(-6px); transition: .35s; }

/* ---------- drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 94vw; background: #fff; box-shadow: -12px 0 32px rgba(16,24,40,.12); z-index: 90; display: none; flex-direction: column; }
.drawer.is-open { display: flex; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer--wide { width: 900px; }
.drawer__head { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: flex-start; gap: 10px; }
.drawer__head h3 { font-size: 15px; flex: 1; }
.drawer__body { flex: 1; overflow: auto; padding: 16px 18px 40px; }
.drawer__foot { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; background: #FBFAF5; }

.sec-title { font-size: 12px; color: var(--ink-3); letter-spacing: .4px; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.sec-title:first-child { margin-top: 0; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }

.vd { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; }
.vd__top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.vd__top b { font-weight: 600; font-size: 13px; }
.vd--pass { border-left: 3px solid var(--green); }
.vd--delay { border-left: 3px solid var(--yellow); }
.vd--reject { border-left: 3px solid var(--red); }

.steps { display: flex; align-items: center; gap: 0; font-size: 11.5px; margin: 4px 0 14px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 5px; color: var(--ink-3); }
.steps .st b { width: 17px; height: 17px; border-radius: 50%; background: #EAE7DE; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.steps .st.is-done { color: var(--green); }
.steps .st.is-done b { background: var(--green); color: #fff; }
.steps .st.is-cur { color: var(--brand); font-weight: 600; }
.steps .st.is-cur b { background: var(--brand); color: #fff; }
.steps .line { width: 22px; height: 1px; background: var(--line); margin: 0 7px; }

.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sub-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- person chip ---------- */
.pc { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; }
.pc i {
  width: 19px; height: 19px; border-radius: 50%; color: #fff; font-style: normal;
  font-size: 9.5px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* ---------- phase timeline ---------- */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.phase { position: relative; padding: 0 14px 0 0; }
.phase:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 14px; width: 14px; height: 1px; background: var(--line);
}
.phase__dot {
  width: 26px; height: 26px; border-radius: 50%; background: #efeade; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600;
  margin-bottom: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.phase.is-cur .phase__dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px var(--brand); }
.phase.is-done .phase__dot { background: var(--green); color: #fff; box-shadow: 0 0 0 1px var(--green); }
.phase__box { padding-right: 8px; }
.phase__name { font-size: 13px; font-weight: 550; }
.phase__meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- gantt extras ---------- */
.gantt__group {
  padding: 7px 12px; background: #fafbfd; border-bottom: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-2); font-weight: 550;
}
.gantt__handle {
  position: absolute; right: -4px; top: 0; bottom: 0; width: 12px; cursor: ew-resize;
  border-radius: 0 4px 4px 0;
}
.gantt__handle::after {
  content: ''; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 10px; background: rgba(255,255,255,.8); border-radius: 1px;
}
.gantt__legend {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2);
}
.gantt__legend span { display: inline-flex; align-items: center; gap: 5px; }
.gantt__legend span.muted { margin-left: auto; color: var(--ink-3); }

/* ---------- helpers ---------- */
.muted { color: var(--ink-3); }
.pill-row label.tag input[type="checkbox"] { accent-color: var(--brand); }
.kpi--alert .kpi__value { color: var(--red); }
.kpi--warn .kpi__value { color: #a87300; }
.tbl-wrap::-webkit-scrollbar { height: 8px; }
.side__link em { font-style: normal; }

/* ---------- 里程碑日历 ---------- */
.ms-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.ms-toolbar select.inp { min-width: 220px; }
.ms-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.ms-mine input { accent-color: var(--brand); }
.ms-toolbar__hint { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.ms-tbl td { padding: 9px 12px; }
.ms-tbl tbody tr.ms-row td:first-child { box-shadow: inset 3px 0 0 transparent; }
.ms-tbl tbody tr.ms-row--red td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.ms-tbl tbody tr.ms-row--yellow td:first-child { box-shadow: inset 3px 0 0 #e8b400; }
.ms-tbl tbody tr.ms-row--green td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.ms-tbl tbody tr.ms-row--gray td:first-child { box-shadow: inset 3px 0 0 #d5dae2; }

.ms-date { display: flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
.ms-date > i { width: 3px; height: 26px; border-radius: 2px; flex: 0 0 auto; }
.ms-date b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.ms-date span { display: block; font-size: 10.5px; color: var(--ink-3); }

.ms-name b { display: block; font-weight: 550; font-size: 13px; line-height: 1.45; }
.ms-name span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.ms-proj { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ms-proj__nm { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-proj__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.ms-act { text-align: right; }

.ms-wrap { max-height: none; overflow: visible; }
.ms-month td {
  background: #F7F5EE; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2);
  padding: 8px 12px !important;
}
.ms-month__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-month__l { display: flex; align-items: center; gap: 8px; }
.ms-month b { font-size: 12.5px; letter-spacing: .3px; }
.ms-month__n { font-size: 11.5px; color: var(--ink-3); }
.ms-month__sum { display: flex; gap: 6px; }
.ms-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.ms-legend .dot { margin-left: 8px; }
.ms-tbl thead th { position: static; }

/* ---------- 全生命周期跑道 ----------
   设计口径：只有「当前阶段」实底高亮，其余阶段整体降灰。
   不再画阶段之间的连接横线——那条线会从名称中间穿过去，容易被读成删除线。 */
.lc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lc__step {
  display: flex; gap: 9px; align-items: flex-start; position: relative;
  padding: 10px 11px; border-radius: 10px; border: 1px solid transparent;
  background: #FBFAF5; overflow: hidden;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.lc__dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: #EDE9DE; color: #A29C90;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600;
}
.lc__body { min-width: 0; padding-top: 1px; }
.lc__name { font-size: 13px; font-weight: 550; color: var(--ink-2); padding-right: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc__note {
  font-size: 11px; color: var(--ink-3); margin-top: 4px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 已完成 */
.lc__step.is-done .lc__dot { background: var(--green); color: #fff; }
.lc__step.is-done .lc__name { color: var(--ink); }

/* 当前阶段：整块实底高亮 */
.lc__step.is-cur {
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 5px 16px rgba(60, 55, 40, .18);
}
.lc__step.is-cur .lc__dot { background: #fff; color: var(--brand-deep); }
.lc__step.is-cur .lc__name { color: #fff; font-weight: 650; }
.lc__step.is-cur .lc__note { color: rgba(255, 255, 255, .76); }
.lc__step.is-cur .lc__go { color: rgba(255, 255, 255, .9); opacity: 1; }
.lc__now {
  display: inline-block; margin-right: 5px; padding: 0 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .24); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 14px; vertical-align: 1px;
}
.lc__flag {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); margin-left: 5px; vertical-align: 2px;
}

/* 非当前阶段：灰度 */
.lc__step.is-dim { background: #F5F3EA; }
.lc__step.is-dim .lc__dot { background: #EAE6DA; color: #B4AEA2; }
.lc__step.is-dim .lc__name { color: #A9A397; font-weight: 500; }
.lc__step.is-dim .lc__note { color: #B7B1A5; }
.lc__step.is-dim .lc__go { color: #C3BDB1; }

/* 可点与悬停提亮 */
.lc__step.is-link { cursor: pointer; }
.lc__step.is-link:hover { background: #fff; border-color: var(--line); }
.lc__step.is-link:hover .lc__name { color: var(--ink); }
.lc__step.is-link:hover .lc__note { color: var(--ink-3); }
.lc__step.is-cur.is-link:hover { background: var(--brand); border-color: var(--brand); }
.lc__step.is-cur.is-link:hover .lc__name { color: #fff; }
.lc__step.is-cur.is-link:hover .lc__note { color: rgba(255, 255, 255, .76); }

.lc--compact .lc__step { padding: 6px 8px; }
.lc--compact .lc__dot { width: 22px; height: 22px; font-size: 10.5px; }
.lc--compact .lc__name { font-size: 12px; }
@media (max-width: 1100px) { .lc { grid-template-columns: repeat(3, 1fr); row-gap: 8px; } }

/* ---------- 立项：流程条 ---------- */
.charter-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.charter-top__l { flex: 1; min-width: 320px; }
.charter-top__status { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; }
.charter-top__r { width: 150px; text-align: right; }
.charter-prog { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.charter-prog b { font-size: 23px; letter-spacing: -.5px; }
.charter-prog span { font-size: 11.5px; color: var(--ink-3); }

.flow { display: flex; align-items: center; }
.flow__step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.flow__step b {
  width: 21px; height: 21px; border-radius: 50%; background: #efeade; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; flex: 0 0 auto;
}
.flow__step.done b { background: var(--green); color: #fff; }
.flow__step.cur b { background: var(--brand); color: #fff; }
.flow__step.cur span { color: var(--ink); font-weight: 550; }
.flow__step.reject b { background: var(--red); color: #fff; }
.flow__line { flex: 1; height: 1px; background: var(--line); margin: 0 9px; min-width: 14px; }

.hint-box--ok { background: var(--green-soft); border-color: #cfe4d7; border-style: solid; }
.hint-box--warn { background: var(--red-soft); border-color: #f0cdc7; border-style: solid; margin-top: 12px; }

/* ---------- 立项：办理台 ---------- */
.ct-now { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ct-now b { font-size: 15px; font-weight: 550; }
.ct-now span { font-size: 11.5px; color: var(--ink-3); }

.ct-grid { display: grid; grid-template-columns: 1fr 296px; gap: 14px; margin-top: 14px; align-items: start; }
.ct-grid > div > .card + .card { margin-top: 12px; }
.ct-side { display: flex; flex-direction: column; gap: 12px; }
.ct-side .card { margin: 0; }

/* 立项资料：顶部横跨整行、左链接右目标横排，审核人一眼看清 */
.card--primary { border-left: 3px solid var(--brand); }
.charter-mat { align-items: stretch; }
.charter-mat__cell { min-width: 0; }
.charter-mat__cell + .charter-mat__cell { border-left: 1px dashed var(--line-2); padding-left: 16px; }
.charter-mat__lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; letter-spacing: .3px; }
.charter-mat .tbl { margin-bottom: 0; }

.ct-step { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.ct-step:first-child { border-top: 0; padding-top: 2px; }
.ct-step__dot {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: #f1ece1; color: var(--ink-3); font-size: 10.5px;
  display: flex; align-items: center; justify-content: center;
}
.ct-step.is-done .ct-step__dot { background: var(--green); color: #fff; }
.ct-step.is-cur .ct-step__dot { background: var(--brand); color: #fff; }
.ct-step.is-reject .ct-step__dot { background: var(--red); color: #fff; }
.ct-step__body { min-width: 0; }
.ct-step__body b { font-size: 13px; font-weight: 550; display: block; margin-bottom: 2px; }
.ct-step__body p { margin: 0; font-size: 12px; color: var(--ink-3); }

.ct-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.ct-kv:last-child { border-bottom: 0; }
.ct-kv span { color: var(--ink-3); flex: 0 0 auto; }
.ct-kv b { font-weight: 500; text-align: right; }

.ct-link { font-size: 12px; color: var(--brand); word-break: break-all; line-height: 1.6; }
.ct-none { font-size: 12.5px; color: var(--ink-3); }
.ct-note { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.btn--block { width: 100%; justify-content: center; }

.cond-row { display: grid; grid-template-columns: 1fr 100px 140px; gap: 8px; margin-bottom: 6px; }
.cond-box { margin-top: 8px; }
.cond-box .lbl { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }

/* ---------- 催办 ---------- */
.urge-list { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px 0; }
.urge-item {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 5px 11px; font-size: 12px; border-bottom: 1px dashed #EFEBE0;
}
.urge-item:last-child { border-bottom: 0; }
.urge-item b { font-weight: 550; }
.row-acts { display: flex; gap: 5px; }

/* ---------- 版本历史 ---------- */
.hist { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.hist summary { padding: 9px 12px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.hist summary:hover { background: #faf7f0; }
.hist .tbl { font-size: 12px; }
.hist .tbl td { vertical-align: top; border-bottom: 1px dashed var(--line-2); }
.hist__txt { white-space: pre-wrap; line-height: 1.7; color: var(--ink-2); font-size: 12px; }
.hist tr.is-changed td { background: #fdf8e8; }

@media (max-width: 1100px) {
  .charter-grid { grid-template-columns: 1fr; }
  .charter-nav { position: static; display: none; }
}

.lc__go { font-size: 11px; color: var(--ink-3); margin-left: 4px; opacity: .6; }
.lc__badge {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  padding: 0 4px; border-radius: 8px; background: #EBE6D6; color: #8B7C51;
  font-size: 10.5px; font-style: normal;
}
.lc__step.is-cur .lc__badge { background: rgba(255, 255, 255, .26); color: #fff; }
.lc__step.is-dim .lc__badge { background: #E8E3D5; color: #A79F8C; }

/* ---------- 阶段工作台 ---------- */
.stage-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.stage-nav__item {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2);
}
.stage-nav__item:hover { border-color: #CFCBBF; background: #FBFAF5; }
.stage-nav__item.is-on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.stage-nav__item b { font-weight: 600; font-size: 11.5px; opacity: .8; }
.stage-nav__item em {
  font-style: normal; font-size: 10.5px; background: var(--yellow-soft); color: #8a6100;
  padding: 0 5px; border-radius: 8px; line-height: 15px;
}
.stage-nav__item.is-on em { background: rgba(255,255,255,.22); color: #fff; }

/* 供应商评审：候选与打分 */
.cand-grid { display: grid; grid-template-columns: 190px 92px repeat(4, 62px) 58px 80px; gap: 6px; align-items: center; }
.cand-grid--head { font-size: 11px; color: var(--ink-3); padding: 0 2px 6px; }
.cand-row { padding: 8px 2px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.cand-row input.inp { height: 28px; min-height: 28px; padding: 3px 6px; font-size: 12px; width: 100%; }
.cand-row.is-out { opacity: .55; }
.score-bar { height: 5px; border-radius: 3px; background: #EFECE3; overflow: hidden; }
.score-bar > i { display: block; height: 100%; background: var(--brand); }
.score-big { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .cand-grid { grid-template-columns: 1fr 70px 55px 55px 55px 55px 50px 60px; } }

.check-list { display: grid; gap: 8px; }
.check-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.check-item:hover { background: #FBFAF5; }
.check-item.is-done { background: var(--green-soft); border-color: #CFE4D7; }
.check-item input { margin-top: 3px; accent-color: var(--brand-deep); }
.check-item b { display: block; font-size: 12.5px; font-weight: 550; }
.check-item span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.6; }
.check-item__meta { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }

.archive-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.archive-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.archive-row:last-child { border-bottom: none; }
.archive-row b { font-weight: 550; }
.archive-row .n { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.archive-row.is-missing { background: #FDF8E8; }

.stage-log { font-size: 12px; color: var(--ink-2); }
.stage-log li { padding: 5px 0; border-bottom: 1px dashed var(--line-2); display: flex; gap: 8px; }
.stage-log li:last-child { border-bottom: none; }
.stage-log .t { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.readonly-tip {
  background: var(--brand-soft); border: 1px dashed #D5D1C6; border-radius: 8px;
  padding: 10px 12px; font-size: 12px; color: var(--ink-2); line-height: 1.7;
}

/* ---------- 返回条：上一级的入口要一眼看见 ---------- */
.back-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.btn--back {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 15px 0 11px; border-radius: 17px;
  background: #fff; border: 1px solid #CFCBBF; color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s;
  box-shadow: 0 1px 2px rgba(60, 55, 40, .06);
}
.btn--back:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(60, 55, 40, .18); }
.btn--back:active { transform: translateY(1px); }
.back-bar__hint { font-size: 11.5px; color: var(--ink-3); }
.page-head__actions { display: flex; gap: 8px; align-items: center; }
.ph-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 8px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  vertical-align: 1px; font-variant-numeric: tabular-nums;
}

/* ---------- 立项 8 节表单 ---------- */
.blk { margin-bottom: 14px; }
.blk:last-child { margin-bottom: 0; }
.blk__lbl { display: block; font-size: 12px; font-weight: 550; color: var(--ink-2); margin-bottom: 5px; }
.blk__area { width: 100%; min-height: 54px; line-height: 1.75; font-size: 12.5px; }
.blk__val { font-size: 12.5px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; }
.blk--date { display: flex; align-items: center; gap: 12px; }
.blk--date .blk__lbl { margin: 0; min-width: 84px; }
.inp--date { width: 170px; height: 32px; min-height: 32px; padding: 4px 8px; font-size: 12.5px; }
.blk--link { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.blk--link .blk__lbl { color: var(--ink-2); }
.blk__link { font-size: 12.5px; color: var(--brand-deep); text-decoration: underline; word-break: break-all; }
.blk--tbl + .blk--tbl { margin-top: 16px; }.blk--tbl .blk__lbl { margin-bottom: 7px; color: var(--ink); }

.tbl--edit { table-layout: fixed; }
.tbl--edit th { font-size: 11px; font-weight: 550; color: var(--ink-3); padding: 5px 6px; }
.tbl--edit td { padding: 4px 6px; vertical-align: middle; }
.tbl--edit .inp--cell {
  width: 100%; height: 28px; min-height: 28px; padding: 2px 6px;
  font-size: 12px; line-height: 1.5;
}
.tbl__key { font-size: 12px; color: var(--ink-2); }
.tbl__delwrap { text-align: center; }
.tbl__del {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); cursor: pointer; line-height: 1; font-size: 13px;
}
.tbl__del:hover { background: var(--red-soft); border-color: #E7BFB8; color: var(--red); }
.tbl-edit__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; }
.tbl--ro td { font-size: 12px; line-height: 1.7; }
.tbl--ro th { font-size: 11px; }

@media (max-width: 900px) {
  .blk--date { flex-wrap: wrap; }
  .inp--date { width: 100%; }
}

/* ---------- 任务看板 ---------- */
.board {
  display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px;
  overflow-x: auto; align-items: start; padding-bottom: 8px;
}
.bcol {
  background: #EFEDE7; border-radius: 12px; padding: 10px; min-height: 200px;
  border: 1px solid var(--line);
}
.bcol__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.bcol__head b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.bcol__n { font-size: 11px; color: var(--ink-3); }
.bcol__body { display: flex; flex-direction: column; gap: 8px; }

.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px;
  box-shadow: var(--shadow); cursor: default;
}
.bcard.is-cur { border-left: 3px solid var(--yellow); }
.bcard.is-done { border-left: 3px solid var(--green); opacity: .82; }
.bcard.is-idle { border-left: 3px solid #D5D1C6; opacity: .72; }
.bcard__top { display: flex; align-items: center; gap: 6px; }
.bcard__flag { font-size: 9.5px; font-weight: 700; color: var(--ink-3); background: #EFECE3; border-radius: 3px; padding: 1px 5px; letter-spacing: .3px; white-space: nowrap; flex-shrink: 0; }
.bcard__name { font-size: 12.5px; font-weight: 600; }
.bcard__tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; margin-left: auto; flex-shrink: 0; }
.bcard__proj { font-size: 11px; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard__meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.bcard__who { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-2); }
.bcard__who i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.bcard__who.is-none { color: var(--ink-3); }
.bcard__who.is-none i { background: #C9C4B6; }
.bcard__due { font-size: 11px; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.bcard__foot { display: flex; gap: 5px; margin-top: 8px; justify-content: flex-end; }

/* 列头任务计数 */
.bcol__n { font-size: 10.5px; color: var(--ink-3); background: #F0EEE7; border-radius: 8px; padding: 1px 7px; }

/* 真实任务卡：与固定节点卡同列混排，带专属标记 */
.tcard-sep { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; color: var(--ink-3);
  margin: 10px 0 6px; letter-spacing: .3px; }
.tcard-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tcard {
  background: #FBF9F4; border: 1px solid #E4E0D5; border-left: 3px solid var(--brand); border-radius: 9px;
  padding: 10px 11px; margin-bottom: 8px; cursor: default;
}
.tcard__top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tcard__flag { font-size: 9.5px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 3px; padding: 1px 5px; letter-spacing: .3px; border: 1px solid transparent; }
.tcard__prio { font-size: 10px; font-weight: 600; border-radius: 3px; padding: 1px 5px; }
.tcard__prio--high { color: #b91c1c; background: #fdeaea; }
.tcard__prio--mid { color: #b45309; background: #fef3c7; }
.tcard__prio--low { color: #475569; background: #eef1f5; }
.tcard__tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; margin-left: auto; }
.tcard__name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.tcard__meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; }

/* ---------- 资料卡片：结构化填写 ---------- */
.mat-sum { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.mat-sum__row { display: flex; justify-content: space-between; padding: 7px 12px; font-size: 12.5px; border-bottom: 1px dashed var(--line-2); }
.mat-sum__row:last-child { border-bottom: none; }
.mat-sum__row span { color: var(--ink-3); }
.mat-sum__row b { font-weight: 600; font-variant-numeric: tabular-nums; }

.mat-sec { margin-bottom: 18px; }
.mat-sec > .lbl { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.mat-sec__t { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mrow-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.mrow { display: grid; grid-template-columns: 1fr 140px 22px; gap: 6px; align-items: center; }
.mrow--2 { grid-template-columns: 1fr 1.6fr 22px; }
.mrow--3 { grid-template-columns: 1fr 1fr 1fr 22px; }
.mrow--4 { grid-template-columns: 1.4fr 1.4fr 100px 110px 22px; }
.mrow--5 { grid-template-columns: 110px 1.4fr 100px 110px 1fr 22px; }
.mrow--6 { grid-template-columns: 90px 90px 90px 1.2fr 70px 1.2fr 22px; }
.mrow--7 { grid-template-columns: 72px 1fr 82px 78px 1fr 74px 88px 22px; }
.mrow .inp { height: 30px; min-height: 30px; padding: 3px 8px; font-size: 12px; }
.mrow .tbl__del { width: 22px; height: 22px; }
.mrow-head { display: grid; gap: 6px; margin-bottom: 6px; }
.mrow-head span { font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: left; }
.mrow-head--2 { grid-template-columns: 1fr 1.6fr 22px; }
.mrow-head--3 { grid-template-columns: 1fr 1fr 1fr 22px; }
.mrow-head--4 { grid-template-columns: 1.4fr 1.4fr 100px 110px 22px; }
.mrow-head--5 { grid-template-columns: 110px 1.4fr 100px 110px 1fr 22px; }
.mrow-head--6 { grid-template-columns: 90px 90px 90px 1.2fr 70px 1.2fr 22px; }
.mrow-head--7 { grid-template-columns: 72px 1fr 82px 78px 1fr 74px 88px 22px; }
.pct-wrap { position: relative; display: flex; align-items: center; }
.pct-wrap .inp { width: 100%; padding-right: 22px; }
.pct-sign { position: absolute; right: 8px; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.mat-hint { font-size: 11.5px; color: var(--ink-3); background: #FBFAF5; border: 1px dashed var(--line); border-radius: 7px; padding: 8px 11px; margin-top: 6px; }
.mat-save { font-size: 11.5px; color: var(--green); margin-right: auto; align-self: center; }
.board-project-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; }
.board-project-head b { font-size: 15px; font-weight: 700; color: var(--ink); }
.board-project-head .muted { font-size: 12px; }
.board-project-head__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.board-filter { height: 34px; min-height: 34px; }
@media (max-width: 700px) { .mrow--4, .mrow--6 { grid-template-columns: 1fr 90px 1fr 22px; } }


/* ---------- 立项资料只读展示（PMO 初审 / 版本查看） ---------- */
.rv-box { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #FBFAF5; }
.rv-sec { margin-bottom: 18px; }
.rv-sec:last-child { margin-bottom: 0; }
.rv-sec__t { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rv-sub { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 8px 0 6px; }
.rv-kv { display: flex; gap: 12px; margin-bottom: 8px; font-size: 12.5px; }
.rv-kv > span { flex: 0 0 150px; color: var(--ink-3); font-weight: 600; }
.rv-kv > div { flex: 1; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.rv-tbl-wrap { overflow-x: auto; margin-bottom: 8px; }
.tbl--rv { font-size: 14px; width: 100%; }
.tbl--rv th { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.tbl--rv td { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.tbl--rv th:first-child { width: 42%; }
.rv-empty { font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.rv-divider { height: 1px; background: var(--line); margin: 16px 0; }

/* 附件行（任务详情） */
.att-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 4px 0;
  border: 1px solid var(--line-2); border-radius: 7px; background: #fff; }
.att-row__name { flex: 1 1 auto; font-size: 12.5px; color: var(--ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.att-row__meta { flex: 0 0 auto; font-size: 11px; color: var(--ink-3); }
a.att-row__name { color: #1a56db; }

/* 石墨链接输入行（任务详情） */
.link-inp { margin-bottom: 0; }

/* 档案库「任务交付」记录的子项（多链接/附件展开） */
.arch-sub { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding-left: 2px; }
.arch-sub a, .arch-sub span { font-size: 12px; line-height: 1.5; color: #1a56db; word-break: break-all; }
.arch-sub span.muted { color: var(--ink-3); }


/* ---------- 登录层（模拟钉钉登录） ---------- */
.login { display: none; position: fixed; inset: 0; z-index: 2000; background: #F8F7F1;
  align-items: center; justify-content: center; }
.login-box { width: 420px; max-width: 92vw; text-align: center; }
.login-box h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.login-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 24px; line-height: 1.6; }
.login-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; }
.login-card:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(60,55,40,.1); }
.login-card b { font-size: 14px; font-weight: 650; color: var(--ink); }
.login-card span { font-size: 11.5px; color: var(--ink-3); }
