:root {
  --brand: #1b5fa8; --brand-600: #144a86; --brand-50: #eaf1f9; --brand-100: #d6e4f5;
  --red: #c8102e; --success: #0f7b57; --warning: #b4690a; --danger: #c8102e;
  --bg: #f4f5f7; --surface: #fff; --surface-2: #fafbfc; --border: #e3e6eb; --border-2: #d3d8e0;
  --text: #1a1f26; --text-2: #4a5361; --text-3: #6b7480; --text-4: #98a1ad;
  --radius: 8px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 12px rgba(16,24,40,.06);
  --sp: 16px; --font: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: "SF Mono", "Roboto Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--text-3); }
.tiny { font-size: 12px; }
.err { color: var(--danger); font-size: 13px; margin: 8px 0; }
.spacer { flex: 1; }
.mono { font-family: var(--num); }

/* ---------------- login ---------------- */
/* V2.27 SWP 落地页：风电实景背景（金风场景）+ 页内登录卡，价值内容拉通为背景 */
.login-wrap { min-height: 100vh; background: linear-gradient(105deg, rgba(7,15,25,.92) 0%, rgba(7,15,25,.74) 42%, rgba(9,18,30,.5) 74%, rgba(9,18,30,.58) 100%), url("img/hero-wind.jpg") center/cover no-repeat; color: #fff; display: flex; flex-direction: column; position: relative; }
.landing-top { display: flex; align-items: center; gap: 12px; padding: 16px clamp(24px, 4.5vw, 60px); position: relative; z-index: 2; }
.landing-top .brand-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
.landing-top .bname { font-size: 17px; letter-spacing: .1em; }
.landing-top .bsub { color: #8fa1b4; font-size: 12px; letter-spacing: .2em; border-left: 1px solid rgba(255,255,255,.16); padding-left: 12px; }
.landing-top .grow { flex: 1; }
.landing-grid { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 10px clamp(24px, 4.5vw, 60px) 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3.5vw, 48px); align-items: start; position: relative; z-index: 2; }
.land-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.land-right { position: sticky; top: 18px; }
.brand-mark { background: linear-gradient(140deg, #c8102e, #89091f); display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.brand-badge { font-size: 12px; letter-spacing: .08em; color: #ffd9df; border: 1px solid rgba(200,16,46,.55); background: rgba(200,16,46,.18); border-radius: 999px; padding: 5px 14px; align-self: flex-start; }
.login-wrap .hero-t { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: .05em; margin: 0; line-height: 1.25; font-weight: 700; }
.hero-d { margin: 0; color: #9fb0c2; max-width: 820px; line-height: 1.75; font-size: 14px; }
/* V2.27 SWP 组成价值图（唯一主线图）：模板组成 → 实例化 → 五环节产出接力 = 不脱节 */
.swp-compose { border: 1px solid rgba(140,180,225,.26); background: rgba(10,22,38,.62); backdrop-filter: blur(7px); border-radius: 14px; padding: 15px 20px 14px; }
.cp-cap { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; color: #7fa8d9; font-weight: 600; }
.cp-tpl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1.5px dashed rgba(110,163,220,.45); border-radius: 11px; padding: 11px 16px; background: rgba(27,95,168,.18); }
.cp-tpl-hd b { display: block; font-size: 15px; }
.cp-tpl-hd span { font-size: 11.5px; color: #8fa1b4; }
.cp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.cp-chips span { border: 1px solid rgba(156,196,238,.42); color: #cfe0f2; font-size: 11.5px; padding: 4px 11px; border-radius: 999px; background: rgba(14,26,42,.7); white-space: nowrap; }
.cp-arrow { margin: 10px 0; text-align: center; color: #7fa8d9; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cp-arrow i { font-style: normal; font-size: 14px; color: #5c9bd6; }
.cp-chain { list-style: none; display: flex; margin: 0; padding: 0; position: relative; }
.cp-chain::before { content: ""; position: absolute; top: 13px; left: 10%; right: 10%; height: 1.5px; background: linear-gradient(90deg, rgba(110,163,220,.2), rgba(110,163,220,.8), rgba(110,163,220,.2)); }
.cp-chain li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
.cp-chain i { width: 26px; height: 26px; border-radius: 50%; background: #12243a; border: 1px solid #3c6ea6; color: #9cc4ee; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; position: relative; z-index: 1; font-family: var(--num); }
.cp-chain li:last-child i { background: linear-gradient(140deg, #1b5fa8, #144a86); border-color: #5c9bd6; color: #fff; }
.cp-chain b { font-size: 12px; color: #d4e2f2; font-weight: 600; white-space: nowrap; }
.cp-chain em { font-style: normal; font-size: 10.5px; color: #9fb8d6; background: rgba(27,95,168,.25); border: 1px solid rgba(110,163,220,.3); border-radius: 999px; padding: 2px 9px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cp-val { margin: 12px 0 0; text-align: center; color: #c8d2dd; font-size: 13px; line-height: 1.6; }
.cp-val b { color: #ffd9df; }
/* V2.27 国际风电交付管理价值 · 四化（体系化 / 标准化 / 属地化 / 国际化） */
.val4 { border: 1px solid rgba(140,180,225,.26); background: rgba(10,22,38,.62); backdrop-filter: blur(7px); border-radius: 14px; padding: 15px 20px 16px; }
.v4-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v4 { display: flex; flex-direction: column; gap: 5px; padding: 13px 14px; border-radius: 11px; background: rgba(27,95,168,.16); border: 1px solid rgba(110,163,220,.24); }
.v4 svg { color: #8db8e8; }
.v4 b { font-size: 14px; color: #fff; }
.v4 span { font-size: 11.5px; color: #8fa1b4; line-height: 1.55; }
/* V2.27 核心价值卡（3×2，玻璃卡片压在风电背景上） */
.brand-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.brand-cards li { display: flex; gap: 9px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(10,22,38,.62); backdrop-filter: blur(7px); border-radius: 10px; align-items: flex-start; }
.vc-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: rgba(27,95,168,.24); color: #8db8e8; display: grid; place-items: center; margin-top: 1px; }
.vc-ic svg { display: block; }
.brand-cards b { display: block; font-size: 12.5px; color: #fff; }
.brand-cards span { display: block; font-size: 11px; color: #8fa1b4; line-height: 1.55; margin-top: 2px; }
/* V2.25 方法论出处（书署名） */
.brand-book { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: #9fb0c2; }
.book-tag { background: linear-gradient(140deg, #c8102e, #89091f); color: #fff; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; flex: 0 0 auto; }
.book-auth { color: #64798e; }
.landing-foot { padding: 12px clamp(24px, 4.5vw, 60px) 18px; color: #5f7183; font-size: 12px; position: relative; z-index: 2; }
/* V2.27 页内登录卡（玻璃质感，嵌在背景右侧，不再悬浮） */
.login-card.glass { background: rgba(250,251,253,.95); color: var(--text); border-radius: 14px; padding: 26px 26px 20px; box-shadow: 0 22px 60px rgba(3,8,14,.5); }
.landing-top .bname { white-space: nowrap; }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.login-card h2 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
/* V2.8 项目档案必填标记与空值标红 */
.req { color: var(--danger); font-weight: 700; }
.req-err { border-color: var(--danger) !important; background: #fdeef0; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 8px 10px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.btn { border: 1px solid var(--border-2); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 7px 14px; transition: .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--brand-100); background: var(--brand-50); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--brand-50); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn.icon { padding: 5px 8px; }
/* V2.24 甘特按钮栏图标化：去文字、方形图标按钮，悬浮 / 聚焦时 data-tip 显示名称 */
.btn.ibtn { position: relative; padding: 4px 7px; line-height: 0; }
.btn.ibtn svg { display: block; }
.btn.ibtn::after {
  content: attr(data-tip);
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  background: #1f2b3a; color: #fff; font-size: 11px; line-height: 1.4; font-weight: 500;
  padding: 4px 9px; border-radius: 5px; white-space: nowrap; max-width: 320px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s .18s;
  z-index: 90; box-shadow: 0 3px 10px rgba(15,23,42,.25);
}
.btn.ibtn::before {
  content: ''; position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: #1f2b3a;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s .18s; z-index: 90;
}
.btn.ibtn:hover::after, .btn.ibtn:focus-visible::after,
.btn.ibtn:hover::before, .btn.ibtn:focus-visible::before { opacity: 1; visibility: visible; }
.btn.block { width: 100%; justify-content: center; padding: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px dashed var(--border-2); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--text-2); }
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- shell ---------------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0e1116, #1a2432 55%, #12314f); color: #e8edf3; display: flex; flex-direction: column; padding: 14px 10px; gap: 4px; }
.logo { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; }
.logo .mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(140deg, #c8102e, #89091f); display: grid; place-items: center; font-size: 14px; }
.logo .name { font-weight: 600; letter-spacing: .04em; font-size: 14px; }
.logo .lite { font-weight: 400; color: #8ea3b8; font-size: 11px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.nav-group { color: #7d8fa2; font-size: 11px; letter-spacing: .08em; padding: 10px 10px 4px; }
.nav a { color: #c8d4e0; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(200,16,46,.24); color: #fff; border-left-color: #c8102e; }
.side-foot { margin-top: auto; padding: 10px; font-size: 12px; color: #8ea3b8; border-top: 1px solid rgba(255,255,255,.08); }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 0 18px; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 16px; font-weight: 600; }
.select.sm { width: auto; padding: 5px 8px; font-size: 13px; }
.content { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

/* ---------------- cards & data ---------------- */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 48px; }
.card-hd h2, .card-hd h3 { font-size: 14px; font-weight: 600; }
.card-bd { padding: 14px 16px; }
.card-ft { padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.stat { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat .k { font-size: 12px; color: var(--text-3); }
.stat .v { font-family: var(--num); font-size: 24px; font-weight: 600; margin-top: 4px; }
.stat .sub { font-size: 12px; color: var(--text-4); margin-top: 4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fbfcfe; }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.tag.ok { color: var(--success); border-color: #bfe3d5; background: #eef9f4; }
.tag.warn { color: var(--warning); border-color: #f0dcc0; background: #fdf6ea; }
.tag.danger { color: var(--danger); border-color: #f3c9ce; background: #fdeef0; }
.tag.brand { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); }
.bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { border: 0; background: transparent; padding: 9px 14px; color: var(--text-3); border-bottom: 2px solid transparent; }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.empty { padding: 28px; text-align: center; color: var(--text-4); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.strong { font-weight: 600; }
.tab-body { display: flex; flex-direction: column; gap: 12px; }
.cbs-sub { padding-left: 18px; color: var(--text-2); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 7px 0; }
.check input { width: 15px; height: 15px; margin-top: 2px; flex: none; }

/* ---------------- modal / toast ---------------- */
.modal { position: fixed; inset: 0; background: rgba(15,23,32,.42); display: grid; place-items: center; z-index: 60; padding: 24px; }
.modal-card { background: var(--surface); border-radius: 10px; width: min(760px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(9,17,26,.28); }
.modal-card header { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-card header h3 { font-size: 15px; flex: 1; }
.modal-body { padding: 16px 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: #1c2530; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; z-index: 90; box-shadow: var(--shadow); max-width: 80vw; }
.toast.err { background: #8d1226; }

/* ---------------- OSR ---------------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.media-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--text-2); position: relative; overflow: hidden; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-item .x { position: absolute; top: 2px; right: 3px; background: rgba(0,0,0,.5); color: #fff; border: 0; border-radius: 4px; font-size: 10px; padding: 1px 4px; }
.drop { border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 14px; text-align: center; color: var(--text-3); font-size: 13px; background: var(--surface-2); cursor: pointer; }
.drop:hover { border-color: var(--brand); color: var(--brand); }
.ai-note { background: #f3f8ff; border: 1px solid #d3e3f8; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; color: #23507f; }
.ai-note b { color: var(--brand); }

/* ---------------- print sheet ---------------- */
.sheet-wrap { background: #e9ecf1; padding: 20px; }
.sheet { background: #fff; color: #111; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 16mm 14mm; box-shadow: 0 6px 20px rgba(0,0,0,.14); font-size: 12px; line-height: 1.5; }
.sheet .hd { text-align: center; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 10px; }
.sheet .hd .b { font-size: 11px; color: #444; letter-spacing: .05em; }
.sheet .hd .t { font-size: 22px; font-weight: 700; letter-spacing: .32em; margin: 4px 0; }
.sheet .hd .m { font-size: 10px; color: #555; }
.sheet .sec { font-weight: 700; margin: 10px 0 5px; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th, .sheet td { border: 1px solid #444; padding: 5px 7px; text-align: left; font-size: 11.5px; }
.sheet th { background: #f1f1f1; font-weight: 600; white-space: nowrap; }
.sheet .sign td { height: 74px; color: #444; vertical-align: top; }
.sheet .foot { text-align: center; color: #666; font-size: 10px; margin-top: 10px; border-top: 1px solid #ccc; padding-top: 6px; }
@media print {
  body * { visibility: hidden !important; }
  .sheet, .sheet * { visibility: visible !important; }
  .sheet { position: fixed; left: 0; top: 0; width: 100%; padding: 0; box-shadow: none; }
  .no-print { display: none !important; }
  .sheet-wrap { padding: 0; background: #fff; }
}
@media (max-width: 1280px) {
  .landing-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .brand-cards { grid-template-columns: 1fr 1fr; }
  .v4-row { grid-template-columns: 1fr 1fr; }
  .cp-chips { margin-left: 0; }
}
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .landing-grid { grid-template-columns: 1fr; }
  .land-right { position: static; width: 100%; max-width: 440px; margin: 4px auto 0; }
  .brand-cards { grid-template-columns: 1fr 1fr; }
  .cp-chain em { display: none; }
}
@media (max-width: 760px) {
  .landing-top .bsub { display: none; }
  .landing-top .bname { font-size: 15px; }
  .cp-tpl { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cp-chain b { font-size: 10px; }
  .cp-chain::before { left: 14%; right: 14%; }
  .brand-cards { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; transform: translateX(-100%); transition: .2s; z-index: 40; }
  .sidebar.open { transform: none; }
  .g3, .g2, .g4 { grid-template-columns: 1fr; }
  .sheet { width: 100%; padding: 12px; }
}

/* ---------------- V0.5 现场执行 ---------------- */
.alert { border: 1px solid #f3c9ce; background: #fdeef0; color: #8d1226; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.alert b { font-size: 13px; }

.crane-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }

.gantt { min-width: 640px; display: flex; flex-direction: column; gap: 3px; }
.gantt-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 6px; }
.gantt-lbl { font-size: 12px; color: var(--text-2); }
.gantt-cells { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; }
.gantt-row.head .gd { font-size: 10px; color: var(--text-4); text-align: center; font-style: normal; padding-bottom: 2px; }
.gantt-row.head .gd.today { color: var(--brand); font-weight: 700; }
.gc, .gd { display: block; height: 20px; border-radius: 3px; background: transparent; }
.gc.on { height: 20px; }
.gc.a-prep { background: #8b96a5; }
.gc.a-tower { background: #1b5fa8; }
.gc.a-nacelle { background: #6b4fbb; }
.gc.a-rotor { background: #c8102e; }
.gc.a-electrical { background: #0f7b57; }
.gc.a-handover { background: #b4690a; }
.gc.on.s { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.gc.on.e { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.gc.fin { opacity: .45; }
.lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.lg-dot.a-tower { background: #1b5fa8; }
.lg-dot.a-nacelle { background: #6b4fbb; }
.lg-dot.a-rotor { background: #c8102e; }
.lg-dot.a-prep { background: #8b96a5; }

.daily-sec { border-top: 1px dashed var(--border-2); padding-top: 12px; margin-top: 12px; }
.daily-sec .sec-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.daily-sec .tbl input { padding: 5px 7px; font-size: 12.5px; }
.daily-sec .tbl td { padding: 4px 6px; }

.tia-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
@media (max-width: 900px) {
  .tia-sum { grid-template-columns: repeat(2, 1fr); }
  .gantt-cells { gap: 1px; }
}

/* ---------------- 质量闭环 ---------------- */
.chain-line { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.chain-line > div { min-width: 130px; }
.chain-line .k { font-size: 12px; color: var(--text-3); }
.chain-line .v { font-size: 22px; font-weight: 600; margin-top: 2px; }
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: flex; gap: 10px; align-items: flex-start; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: none; }
.tl-dot.ok { background: var(--success); }
.tl-dot.danger { background: var(--danger); }
.ev-list { display: flex; flex-direction: column; gap: 6px; }
.ev-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.ev-row:last-child { border-bottom: 0; }

/* ---------------- 报表 ---------------- */
.report-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px 20px; color: var(--text); }
.rp-hd { text-align: center; border-bottom: 2px solid var(--text); padding-bottom: 12px; }
.rp-hd .b { font-size: 10.5px; letter-spacing: .16em; color: var(--text-3); }
.rp-hd .t { font-size: 24px; font-weight: 700; letter-spacing: .28em; margin: 6px 0 4px; }
.rp-hd .m { font-size: 12px; color: var(--text-2); }
.rp-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 16px 0 14px; }
.rp-kpi > div { background: var(--surface); padding: 10px 12px; }
.rp-kpi .k { font-size: 11.5px; color: var(--text-3); }
.rp-kpi .v { font-family: var(--num); font-size: 22px; font-weight: 600; margin-top: 2px; }
.rp-kpi .v i { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: 1px; }
.rp-kpi .s { font-size: 11px; color: var(--text-4); margin-top: 2px; }
.rp-t { font-weight: 700; font-size: 13px; margin: 16px 0 7px; padding-left: 8px; border-left: 3px solid var(--brand); }
.rp-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.rp-tbl th, .rp-tbl td { border: 1px solid var(--border-2); padding: 5px 8px; text-align: left; }
.rp-tbl th { background: var(--surface-2); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.rp-tbl td.bad, .rp-tbl .bad { color: var(--danger); }
.rp-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); }
.rp-block .rp-t { margin-top: 0; }
.rp-ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.75; }
.rp-ul.risk li { color: #8d1226; }
.rp-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 12px; }
.rp-mini > div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--border-2); padding: 3px 0; }
.rp-mini span { color: var(--text-3); }
.rp-mini b { font-family: var(--num); font-weight: 600; }
.rp-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-3); }

@media print {
  .report-sheet, .report-sheet * { visibility: visible !important; }
  .report-sheet { position: fixed; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; font-size: 11px; }
  .rp-kpi { grid-template-columns: repeat(4, 1fr); }
  .rp-tbl { page-break-inside: auto; }
  .rp-tbl tr { page-break-inside: avoid; }
  .rp-2col { page-break-inside: avoid; }
}

/* ---------------- 计划与里程碑 ---------------- */
.gantt { padding: 0 16px 10px; overflow-x: auto; position: relative; }
.gantt-head { display: flex; border-bottom: 1px solid var(--border); background: var(--surface); }
.gantt-name { width: 268px; flex: none; padding: 8px 10px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* V1.7 甘特四列（开始 / 结束 / 工期 / 完成%） */
.gantt-cols { width: 216px; flex: none; display: grid; grid-template-columns: 66px 66px 42px 1fr; gap: 2px; align-items: center; padding: 0 4px; font-size: 10.5px; color: var(--text-2); }
.gantt-cols i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcols-head { color: var(--text-4); font-size: 10px; font-weight: 600; padding: 8px 4px; }
.gantt-head .gantt-track, .gantt-row .gantt-track { position: relative; flex: 1; min-width: 520px; height: 30px; }
.gantt-m { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border-2); font-style: normal; font-size: 10.5px; color: var(--text-4); padding: 7px 0 0 4px; white-space: nowrap; overflow: hidden; }
.gantt-fd { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-size: 9.5px; color: var(--red); white-space: nowrap; pointer-events: none; }
/* V1.7 计划 vs 实际横道 + 前锋线 */
.gantt-bar.plan-bg { background: transparent; border: 1px solid var(--brand-300, #9db8d9); }
.gantt-bar.plan-bg > i { background: var(--brand-100, #dbe7f5); }
.gantt-act { position: absolute; top: 20px; height: 5px; border-radius: 2px; background: #0f7b57; }
.k-act { background: #0f7b57; }
.gantt-arrows { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; }
/* V1.7 分段按钮（周 / 月刻度） */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg-btn { border: 0; background: var(--surface); padding: 3px 10px; font-size: 11px; color: var(--text-3); cursor: pointer; }
.seg-btn.on { background: var(--brand); color: #fff; }
/* V1.7 最大化：CSS 伪全屏覆盖层（不用 Fullscreen API——原生全屏只渲染元素子树，body 下的弹窗/提示全部不可见，导致最大化后按钮“失效”） */
#ganttCard.is-max { position: fixed; inset: 0; z-index: 55; margin: 0; border-radius: 0; background: var(--bg); overflow: auto; padding: 12px 18px; }
#ganttCard.is-max .gantt { overflow: visible; }
/* V1.7 打印输出区 */
#printArea { display: none; }
@media print {
  body.printing * { visibility: hidden !important; }
  body.printing #printArea, body.printing #printArea * { visibility: visible !important; }
  body.printing #printArea { display: block !important; position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
  /* V2.15 修复：横道是背景色块，浏览器打印默认剥离背景 → 强制保留背景色 */
  body.printing, body.printing * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .print-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #333; padding-bottom: 6px; margin-bottom: 10px; font-size: 13px; }
  .print-head span { font-size: 10px; color: #555; }
  .print-gantt { overflow: visible !important; }
  .gantt-track { min-width: 0 !important; }
  /* V2.8 甘特打印整页列布局：横向 A4，压缩固定列，把整页宽度让给时间轴与横道 */
  body.printing .gantt { padding: 0 !important; }
  body.printing .gantt-name { width: 176px !important; font-size: 10px; padding: 4px 6px; }
  body.printing .gantt-cols { font-size: 9.5px; }
  body.printing .gcols-head { padding: 4px; font-size: 9.5px; }
  body.printing .gantt-head .gantt-track, body.printing .gantt-row .gantt-track { height: 20px; }
  body.printing .gantt-row { min-height: 22px; }
  body.printing .gantt-bar { top: 6px; height: 8px; }
  /* V2.15：横道十六进制实体色兜底（不依赖 CSS 变量 / 背景打印开关）+ 描边保证无背景时仍可见 */
  body.printing .gantt-bar { background: #c9d9ec; border: 1px solid #7d9bc0; }
  body.printing .gantt-bar > i { background: #3d6ea5; }
  body.printing .gantt-bar.phase { background: #dde5f0; border-color: #8fa5c4; }
  body.printing .gantt-bar.phase > i { background: #5c7fa6; }
  body.printing .gantt-bar.crit { background: #f6d3d8; border-color: #c0392b; }
  body.printing .gantt-bar.crit > i { background: #c0392b; }
  body.printing .gantt-act { background: #0f7b57; }
  body.printing .gantt-today { background: #c0392b; opacity: 1; }
  body.printing .gantt-m { color: #333; border-left-color: #bbb; }
  body.printing .gantt-fd { color: #c0392b; }
  body.printing .gantt-bar.phase { height: 6px; top: 7px; }
  body.printing .gantt-act { top: 15px; height: 4px; }
  body.printing .gantt-m { font-size: 9px; padding: 3px 0 0 2px; }
  body.printing .gantt-m.yr { border-left: 1.5px solid #888; }
  body.printing .gantt-fd { font-size: 8.5px; }
}
.gantt-row { display: flex; align-items: center; border-bottom: 1px dashed var(--border); min-height: 30px; }
.gantt-row:hover { background: #fbfcfe; }
.gantt-row.is-phase { background: var(--surface-2); }
.gantt-row.is-phase .gantt-name { font-weight: 600; color: var(--text); }
/* V2.24 项目根节点行：项目名称升为 WBS 树顶层 */
.gantt-row.is-root { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--brand); }
.gantt-row.is-root .gantt-name { font-weight: 700; color: var(--text); font-size: 12.5px; }
.gantt-row.is-root:hover { background: var(--surface-2); }
.gantt-row .gantt-track { position: relative; flex: 1; height: 28px; }
.gantt-bar { position: absolute; top: 9px; height: 10px; border-radius: 3px; background: var(--brand-100); overflow: hidden; }
.gantt-bar > i { display: block; height: 100%; background: var(--brand); }
.gantt-bar.phase { background: #d7e1ee; height: 8px; top: 10px; }
.gantt-bar.phase > i { background: #5c7fa6; }
.gantt-bar.crit { background: #f6d3d8; }
.gantt-bar.crit > i { background: var(--red); }
.gantt-bar.bad { background: #f3c9ce; }
.gantt-bar.bad > i { background: #8d1226; }
.gantt-fc { position: absolute; top: 6px; height: 16px; border: 1px dashed var(--danger); border-radius: 3px; background: repeating-linear-gradient(45deg, #fdeef0, #fdeef0 4px, #fff 4px, #fff 8px); }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--red); opacity: .55; }
.gantt-pct { position: absolute; top: 6px; font-size: 10px; color: var(--text-3); font-family: var(--num); }
.gantt-key { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; }
.gantt-key i { width: 14px; height: 6px; border-radius: 2px; display: inline-block; }
.gantt-key .k-phase { background: #5c7fa6; }
.gantt-key .k-crit { background: var(--red); }
.gantt-key .k-bad { background: #8d1226; }
.gantt-key .k-fc { border: 1px dashed var(--danger); background: #fdeef0; }

/* ---------------- 机位吊装流水矩阵 ---------------- */
.stage-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.stage-bar { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface-2); }
.stage-bar .sb-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.stage-bar .sb-top b { font-weight: 600; }
.stage-bar .sb-top span { font-family: var(--num); color: var(--text-3); }
.stage-bar .sb-track { height: 5px; border-radius: 3px; background: #e6eaf0; margin: 6px 0 4px; overflow: hidden; }
.stage-bar .sb-track > i { display: block; height: 100%; background: var(--brand); }
.stage-bar .sb-track > i.done { background: var(--success); }
.stage-bar .sb-sub { font-size: 10.5px; color: var(--text-4); display: flex; justify-content: space-between; }
.stage-bar .sb-sub .bad { color: var(--danger); font-weight: 600; }

.wtg-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.wtg-tbl { border-collapse: separate; border-spacing: 0; font-size: 11.5px; width: 100%; }
.wtg-tbl th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); border-bottom: 1px solid var(--border);
  padding: 7px 6px; font-weight: 600; color: var(--text-2); white-space: nowrap; font-size: 11px; }
.wtg-tbl td { border-bottom: 1px solid var(--border); padding: 4px 6px; white-space: nowrap; }
.wtg-tbl tr:hover td { background: #fafbfd; }
.wtg-no { font-family: var(--num); font-weight: 600; font-size: 12px; }
.wtg-prog { width: 74px; }
.wtg-prog .mini { height: 4px; border-radius: 2px; background: #e6eaf0; overflow: hidden; }
.wtg-prog .mini > i { display: block; height: 100%; background: var(--brand); }
.wtg-prog span { font-family: var(--num); font-size: 10.5px; color: var(--text-3); }
.wc { cursor: pointer; text-align: center; border-left: 1px solid var(--border); min-width: 66px; }
.wc b { display: block; font-weight: 600; font-size: 10.5px; color: var(--text-2); }
.wc span { display: block; font-family: var(--num); font-size: 10px; color: var(--text-4); margin-top: 1px; }
.wc.ok { background: #eaf6f0; } .wc.ok b { color: #0f7b57; }
.wc.brand { background: #e8f0fa; } .wc.brand b { color: #1b5fa8; }
.wc.warn { background: #fdf4e3; } .wc.warn b { color: #a76a00; }
.wc.danger { background: #fdecee; } .wc.danger b { color: #b31529; }
.wc.missing { background: repeating-linear-gradient(45deg,#f7f8fa,#f7f8fa 4px,#fff 4px,#fff 8px); cursor: default; }
.wc:hover { outline: 1.5px solid var(--brand); outline-offset: -1.5px; }

/* 机位阶段弹窗 */
.ws-head { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: 12px; }
.ws-head .big { font-size: 20px; font-weight: 700; font-family: var(--num); }
.ws-head .k { font-size: 11px; color: var(--text-3); }
.ws-head .v { font-size: 13px; font-weight: 600; font-family: var(--num); }
.wp-box { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: 10px; }
.wp-box .h { padding: 7px 10px; background: var(--surface-2); font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; }
.wp-act { display: flex; gap: 8px; align-items: center; padding: 5px 10px; border-top: 1px dashed var(--border); font-size: 11.5px; }
.wp-act.cur { background: #eef5ff; font-weight: 600; }
.wp-act .seq { width: 16px; color: var(--text-4); font-family: var(--num); }
.wp-act .w { margin-left: auto; color: var(--text-3); font-family: var(--num); }
.wp-act .fm { font-size: 10.5px; color: var(--text-4); }
.ws-tl { display: flex; gap: 4px; margin-top: 10px; }
.ws-tl > div { flex: 1; text-align: center; font-size: 10.5px; padding: 5px 2px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.ws-tl > div.done { background: #eaf6f0; border-color: #bfe3d3; color: #0f7b57; }
.ws-tl > div.cur { background: #e8f0fa; border-color: #bfd4ee; color: #1b5fa8; font-weight: 600; }

/* 标准工作包：权重自动合计条 */
.wt-bar { display: inline-block; width: 110px; height: 8px; border-radius: 6px; background: #e3e6eb; overflow: hidden; vertical-align: middle; }
.wt-bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--danger); transition: width .2s, background .2s; }
#wpActRows input { padding: 5px 7px; font-size: 12.5px; }
#wpActRows input[data-act-w] { text-align: right; font-family: var(--num); }

/* ---------------- 任务详情抽屉 ---------------- */
.modal-card.wide { width: min(1180px, 96vw); }
/* V2.14 修复：modal-body 为 flex 纵排，内嵌 overflow:auto 的表格容器会被压缩至 0 高（关口清单“看不见”的根因） */
.modal-body > .card-bd { flex: 0 0 auto; }

/* ---------------- V1.6 待办中心：双 Tab + 树状分组 ---------------- */
.todo-tabs { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; border-bottom: 1px solid var(--border); }
.todo-tab { border: none; background: none; padding: 8px 14px; font-size: 13.5px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; }
.todo-tab.on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.todo-group { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--surface); overflow: hidden; }
.todo-group > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; background: var(--surface-2); font-size: 13px; list-style: none; }
.todo-group > summary::-webkit-details-marker { display: none; }
.todo-group > summary::before { content: '▸'; color: var(--text-3); transition: transform .15s; }
.todo-group[open] > summary::before { transform: rotate(90deg); }
.todo-group[open] > summary { border-bottom: 1px solid var(--border); }
.todo-children { padding: 4px 12px 8px; }
.tk-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tk-sum > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; }
.tk-sum .k { font-size: 11px; color: var(--text-3); }
.tk-sum .v { font-size: 15px; font-weight: 700; margin-top: 2px; font-family: var(--num); }
.tk-sec { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.tk-sec > h4 { margin: 0; padding: 7px 12px; font-size: 12.5px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.tk-sec > .bd { padding: 10px 12px; }
.tk-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 14px; font-size: 12px; }
.tk-kv .k { color: var(--text-3); font-size: 11px; }
.tk-kv .v { color: var(--text); font-weight: 600; font-family: var(--num); font-size: 12.5px; }
.tk-steps input { padding: 4px 6px; font-size: 12px; }
.tk-steps input[type=number] { text-align: right; font-family: var(--num); }
.tk-tl { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; }
.tk-tl > div { display: grid; grid-template-columns: 108px 1fr; gap: 8px; font-size: 12px; border-left: 2px solid var(--border-2); padding-left: 8px; }
.tk-tl .at { color: var(--text-4); font-family: var(--num); font-size: 11px; }
.tk-tl .who { color: var(--text-3); }
.tk-who { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.tk-flag { border-left: 3px solid #c8860d; background: #fdf8ec; padding: 8px 10px; border-radius: 6px; font-size: 12px; color: #7a5606; }
.tk-flag.risk { border-left-color: var(--danger); background: #fdf3f4; color: #8a1c2b; }

/* ---------------- 网络图（AON） ---------------- */
.net-wrap { position: relative; overflow: auto; background: #fafbfc; background-image: radial-gradient(#e1e6ec 1px, transparent 1px); background-size: 16px 16px; }
.net-canvas { position: relative; min-width: 100%; min-height: 460px; }
.net-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.net-node { position: absolute; width: 172px; padding: 6px 8px 7px; background: #fff; border: 1px solid var(--border-2); border-radius: 8px; box-shadow: 0 1px 2px rgba(9, 17, 26, .07); cursor: grab; user-select: none; transition: box-shadow .12s, border-color .12s; }
.net-node:active { cursor: grabbing; }
.net-node.cp { border-color: #d9536b; box-shadow: 0 0 0 1px rgba(200, 16, 46, .14), 0 1px 2px rgba(9, 17, 26, .08); }
.net-node.cp .nw { color: var(--danger); }
.net-node.conflict { border-color: #d9a417; }
.net-node:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(9, 17, 26, .14); z-index: 3; }
.net-node .nw { font-family: var(--num); font-size: 10.5px; color: var(--text-4); display: flex; justify-content: space-between; gap: 4px; }
.net-node .nn { font-size: 12px; font-weight: 600; line-height: 1.25; height: 30px; overflow: hidden; margin-top: 1px; }
.net-node .nm { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-3); margin-top: 3px; font-family: var(--num); }
.net-node .bar { height: 3px; border-radius: 2px; background: #e6eaef; margin-top: 4px; overflow: hidden; }
.net-node .bar i { display: block; height: 100%; background: var(--brand); }
.net-node .bar i.done { background: var(--success); }
.net-legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--text-3); }
.net-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid #9aa4b1; vertical-align: middle; margin-right: 4px; }
.net-legend i.cp { border-top-color: var(--danger); }
.net-legend i.dash { border-top-style: dashed; }

/* ---------------- V1.2 表单设计器 ---------------- */
.fd-group { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.fd-group summary { padding: 8px 10px; cursor: pointer; font-weight: 600; font-size: 13px; background: var(--surface-2); user-select: none; }
.fd-group summary::marker { color: var(--brand); }
.fd-palette { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.fd-pick { font-size: 12px; padding: 3px 8px; }
.fd-row { display: flex; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.fd-row:last-child { border-bottom: none; }
.fd-field { margin-bottom: 12px; }
.fd-field > label { display: block; font-size: 12.5px; margin-bottom: 4px; color: var(--text-2); font-weight: 500; }
.fd-form { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.fd-form .fd-field:nth-last-child(-n+2) { margin-bottom: 0; }
.fd-sign { display: flex; justify-content: space-between; align-items: center; border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 16px 10px; color: var(--text-3); font-size: 12.5px; }
.fd-sign i { font-style: italic; }

/* ---------------- V2.0 吊装调度：机位/吊车双轴甘特 + 绘制/删除/拖拉排班 ---------------- */
#crGantt .gantt-row { display: grid; grid-template-columns: 150px 1fr; gap: 6px; align-items: center; }
#crGantt .gantt-lbl { font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#crGantt .gantt-cells { min-width: 620px; }
#crGantt[data-mode='draw'] .gantt-cells { cursor: crosshair; }
#crGantt[data-mode='draw'] .gc.on { cursor: not-allowed; opacity: .75; }
#crGantt[data-mode='del'] .gc.on { cursor: pointer; box-shadow: inset 0 0 0 2px var(--red); }
#crGantt .gc { cursor: default; }
#crGantt .gc.on { cursor: grab; }
.gc.preview { outline: 2px dashed var(--brand); outline-offset: -2px; border-radius: 4px; background: rgba(27, 95, 168, .15) !important; }
.gc.drag-sel { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 4px; }
#gDragTip { position: fixed; z-index: 999; display: none; background: #1f2937; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
/* V2.0 进度甘特：机械排班子行（按吊车着色） */
.gantt-row.crane-sub { min-height: 24px; }
.gantt-row.crane-sub .gantt-track { height: 22px; }
.gantt-row.crane-sub .gantt-name { font-size: 10px; color: var(--text-4); }
.crane-bar { position: absolute; top: 3px; height: 16px; border-radius: 4px; color: #fff; font-size: 9px; line-height: 16px; padding: 0 5px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* V2.0 台班计划按机位分组行 */
.tgrp td { background: var(--surface-2); font-size: 12px; color: var(--text-2); padding: 5px 10px; }

/* ---------------- V2.1 里程碑关口时间轴（达成/未达成双色） ---------------- */
.ms-steps-bd { display: flex; flex-direction: column; gap: 10px; }
.ms-steps { display: flex; align-items: flex-start; overflow-x: auto; padding: 14px 6px 4px; }
.ms-step { flex: 0 0 auto; min-width: 108px; max-width: 168px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; text-align: center; border-radius: 10px; padding: 2px 6px 6px; transition: background .15s; }
.ms-step:hover { background: var(--surface-2); }
.ms-dot { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; font-weight: 700; font-size: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--text-2); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.ms-dot .ms-check { display: none; position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.ms-step.ach .ms-dot { background: var(--success); border-color: var(--success); color: #fff; }
.ms-step.ach .ms-dot .ms-check { display: block; }
.ms-step.od .ms-dot { border-color: var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.ms-step.risk .ms-dot { border-color: var(--warning, #d97706); color: var(--warning, #d97706); background: color-mix(in srgb, var(--warning, #d97706) 12%, var(--surface)); }
.ms-step.soon .ms-dot { border-color: var(--brand); color: var(--brand); }
.ms-arrow { flex: 1 1 30px; min-width: 26px; height: 2px; background: var(--line); margin: 23px 4px 0; position: relative; }
.ms-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--line); border-right: 0; }
.ms-step.ach + .ms-arrow, .ms-arrow::before { }
.ms-step.ach ~ .ms-arrow { background: var(--success); }
.ms-date { font-size: 12px; color: var(--text-2); }
.ms-date.ok { color: var(--success); font-weight: 600; }
.ms-name { font-size: 11px; color: var(--text-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-st { color: var(--text-4); font-size: 10px; }
.ms-step.od .ms-st { color: var(--danger); }
.ms-step.risk .ms-st { color: var(--warning, #d97706); }
.ms-step.ach .ms-st { color: var(--success); }
.ms-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ms-legend .lg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: -2px; }
.ms-lg-ach { background: var(--success); }
.ms-lg-od { background: var(--danger); }
.ms-lg-risk { background: var(--warning, #d97706); }
.ms-lg-soon { background: var(--brand); }
.gate-file { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.gate-file .btn { margin-left: 2px; }

/* ---------------- V2.5 合同智能：到期阶梯 / AI 分析 / AI 合约分解 ---------------- */
.ladder { display: flex; gap: 3px; align-items: center; }
.lch { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 18px; padding: 0 3px;
  font-size: 10.5px; border-radius: 4px; border: 1px solid var(--border-2); color: var(--text-4); background: var(--surface-2); }
.lch.waiting { opacity: .55; }
.lch.active { color: var(--brand); border-color: var(--brand-100); background: var(--brand-50); font-weight: 600; }
.lch.done { color: var(--success); border-color: #bfe3d5; background: #eef9f4; }
.lch.missed { color: var(--danger); border-color: #f3c9ce; background: #fdeef0; }
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 6px;
  border-radius: 6px; font-family: var(--num); font-weight: 700; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border-2); }
.grade.ok { color: var(--success); background: #eef9f4; border-color: #bfe3d5; }
.grade.brand { color: var(--brand); background: var(--brand-50); border-color: var(--brand-100); }
.grade.warn { color: var(--warning); background: #fdf6ea; border-color: #f0dcc0; }
.grade.danger { color: var(--danger); background: #fdeef0; border-color: #f3c9ce; }
.dims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.dim-hd { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.dim-hd b { font-family: var(--num); }
.dim-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 4px 0 2px; }
.dim-bar i { display: block; height: 100%; border-radius: 3px; }
.finding { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; color: var(--text-2); }
.finding:last-child { border-bottom: 0; }
.finding.high { color: var(--danger); }
.clause { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.clause:last-child { border-bottom: 0; }
.alloc-bar { position: relative; height: 16px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.alloc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-100); }
.alloc-bar span { position: relative; z-index: 1; padding-left: 5px; font-size: 10.5px; font-family: var(--num); color: var(--text-2); line-height: 16px; }
.phase-row { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.phase-row:last-child { border-bottom: 0; }
.dual { position: relative; height: 16px; background: var(--surface-2); border-radius: 3px; margin-top: 3px; overflow: hidden; }
.dual i { position: absolute; left: 0; top: 0; bottom: 0; }
.dual i.rev { background: var(--brand-100); }
.dual i.cst { background: #f0c9c3; }
.dual span { position: relative; z-index: 1; padding-left: 5px; font-size: 10px; font-family: var(--num); color: var(--text-2); line-height: 16px; }

@media (max-width: 900px) {
  .alloc-grid { grid-template-columns: 1fr !important; }
  .dims { grid-template-columns: 1fr !important; }
}

/* ---------------- V2.6 文档管理 ---------------- */
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.doc-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.doc-filters input, .doc-filters select { width: auto; min-width: 130px; padding: 6px 9px; font-size: 12.5px; }
.doc-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-actbar { padding: 8px 0 2px; border-bottom: 1px dashed var(--line); }
.doc-kv { grid-template-columns: 96px 1fr; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.doc-kv dt { color: var(--text-3); }
.doc-kv dd { margin: 0; color: var(--text); word-break: break-word; }
.doc-sec { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 14px 0 6px; padding-left: 8px; border-left: 3px solid var(--brand); }
.tl { display: flex; flex-direction: column; gap: 0; }
.tl-item { position: relative; display: flex; gap: 10px; padding: 6px 0 8px 4px; border-left: 2px solid var(--border); margin-left: 6px; }
.tl-item.good { border-left-color: #bfe3d5; }
.tl-item.bad { border-left-color: #f3c9ce; }
.tl-dot { position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.tl-item.good .tl-dot { border-color: var(--success); }
.tl-item.bad .tl-dot { border-color: var(--danger); }
.tl-body { padding-left: 6px; font-size: 12.5px; }
.req-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.req-row:last-child { border-bottom: 0; }
.req-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); flex: none; }
.req-dot.ok { background: var(--success); }
.req-dot.warn { background: var(--warning); }
.exp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; cursor: pointer; }
.exp-row:hover { background: var(--surface-2); }
.exp-row .ladder { margin-top: 4px; justify-content: flex-end; }

@media (max-width: 1200px) {
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-kv { grid-template-columns: 84px 1fr; }
}

/* ---------------- V2.7 计划报表 ---------------- */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row-today td { background: var(--brand-50) !important; }
.sum-row td { font-weight: 600; background: var(--surface-2); border-top: 2px solid var(--border-2); }
.lg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.lg-dot.brand { background: var(--brand); }
.lg-dot.warn { background: var(--warning); }
.lg-dot.danger { background: var(--danger); }
[data-panel] .card { margin-top: 0; }
[data-panel] .card + .card { margin-top: 14px; }
@media (max-width: 1280px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media print {
  body.printing-plan * { visibility: visible !important; }
  body.printing-plan .sidebar, body.printing-plan .topbar, body.printing-plan .tabs,
  body.printing-plan .btn, body.printing-plan #modal, body.printing-plan .no-print { display: none !important; }
  body.printing-plan .app { display: block; }
  body.printing-plan .content { padding: 0; }
  body.printing-plan .card { box-shadow: none; border-color: #ccc; page-break-inside: avoid; }
  body.printing-plan .stat { page-break-inside: avoid; }
  body.printing-plan .tbl { font-size: 10px; }
  body.printing-plan [data-panel] { page-break-before: auto; }
}

/* ---------------- V2.10 顶栏身份 / 组织与部门 / 项目组织 / 授权 ---------------- */
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 4px; border: 1px solid transparent; border-radius: 999px; background: transparent; }
.user-chip:hover { background: var(--brand-50); border-color: var(--brand-100); }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.user-meta b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.user-meta i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); font-size: 13px; font-weight: 600; line-height: 1; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 34px; height: 34px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; border-width: 2px; }
#userAvatar { width: 30px; height: 30px; font-size: 13px; }

.profile-hd { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.profile-meta .pf-name { font-size: 17px; font-weight: 600; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pf-row { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }

.org-tree { display: flex; flex-direction: column; gap: 12px; }
.org-node { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.org-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.org-head b { font-size: 14px; }
.org-mark { color: var(--brand); font-size: 11px; }
.dept-list { display: flex; flex-direction: column; }
.dept-node { padding: 9px 12px 11px; border-bottom: 1px dashed var(--line); }
.dept-node:last-child { border-bottom: 0; }
.dept-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.dept-head b { font-size: 13px; }
.dept-members { display: flex; flex-wrap: wrap; gap: 7px; }
.member-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-align: left; }
.member-chip:hover { border-color: var(--brand-100); background: var(--brand-50); }
.member-chip > span { display: flex; flex-direction: column; line-height: 1.25; }
.member-chip b { font-size: 12.5px; font-weight: 600; }
.member-chip i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.pm-x { color: var(--text-4); font-size: 11px; padding: 0 2px; }
.pm-x:hover { color: var(--danger); }

.pool-list { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow: auto; }
.pool { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pool-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pool-h b { font-size: 12.5px; }
.pool-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pool-user { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.pool-user:hover { background: var(--surface-2); }
.pool-user.on { background: var(--brand-50); border-color: var(--brand-100); }
.pool-user > span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.pool-user b { font-size: 12.5px; font-weight: 600; }
.pool-user i { font-size: 10.5px; font-style: normal; color: var(--text-3); }

.orgchart { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 4px 12px; min-width: 640px; }
.oc-org { font-size: 13.5px; font-weight: 600; color: var(--brand-600); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: 4px 18px; margin-bottom: 10px; }
.oc-top { display: flex; justify-content: center; }
.oc-line { width: 2px; height: 18px; background: var(--border-2); }
.oc-row { display: flex; gap: 14px; justify-content: center; align-items: flex-start; flex-wrap: wrap; width: 100%; border-top: 2px solid var(--border-2); padding-top: 14px; }
.oc-col { flex: 1 1 0; min-width: 140px; max-width: 260px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.oc-dept-h { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 10px; text-align: center; width: 100%; }
.oc-members { display: flex; flex-direction: column; gap: 6px; width: 100%; align-items: center; }
.oc-card { display: flex; align-items: center; gap: 7px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; background: var(--surface); }
.oc-card b { font-size: 12.5px; }
.oc-card i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.oc-card > b, .oc-card > i { display: block; }
.oc-card { flex-wrap: wrap; }
.oc-card b { flex: 1 1 auto; }
.oc-card i { flex: 1 0 100%; padding-left: 41px; margin-top: -4px; }
.oc-card:first-child { border-color: var(--brand-100); }
.oc-card.empty-card { justify-content: center; color: var(--text-4); font-size: 12px; padding: 8px; }
.oc-foot { margin-top: 14px; font-size: 11px; color: var(--text-4); }

.auth-grid { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: start; }
.auth-roles .role-list { display: flex; flex-direction: column; padding: 6px; gap: 2px; max-height: 560px; overflow: auto; }
.role-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; text-align: left; width: 100%; }
.role-item:hover { background: var(--surface-2); }
.role-item.on { background: var(--brand-50); border-color: var(--brand-100); }
.ri-main { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.ri-main b { font-size: 13px; }
.ri-main i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.ri-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.menu-groups { display: flex; flex-direction: column; gap: 10px; }
.menu-group { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.mg-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2); }
.mg-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 8px; padding: 8px 10px; }
.menu-cb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 4px 6px; border-radius: var(--radius-sm); }
.menu-cb:hover { background: var(--surface-2); }
.menu-cb input { width: 14px; height: 14px; padding: 0; flex: 0 0 auto; }
.menu-cb span { flex: 1; min-width: 0; }
.menu-cb i { font-size: 10px; font-style: normal; color: var(--text-4); }
.menu-cb.ro { opacity: .75; }

@media (max-width: 1100px) { .auth-grid { grid-template-columns: 1fr; } }
@media print {
  body.printing #printArea .orgchart { min-width: 0; page-break-inside: avoid; }
  body.printing #printArea .oc-card { border-color: #999; }
  body.printing #printArea .oc-col { max-width: none; }
  body.printing #printArea .oc-dept-h { background: #f2f2f2; border-color: #999; }
  body.printing #printArea .oc-top .oc-card { border-color: #333; }
}

/* ---------------- V2.11 项目主数据（负责人来源提示 / 物料目录中英文 / 设备包类别过滤） ---------------- */
.field > i.hint { font-style: normal; font-size: 11px; color: var(--text-4); line-height: 1.35; }

/* ---------------- V2.12 工序角色/负责人 · 表单 AI 公式 · 表单打印 ---------------- */
.fd-fx { border-color: var(--brand-100); color: var(--brand); white-space: nowrap; }
.fd-fx.on { background: var(--brand-50); font-weight: 600; }
.fd-fx-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.fd-fx-examples .btn { font-size: 11px; }
.fd-fx-out { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: var(--surface-2); }
.fd-fx-explain { font-size: 11.5px; color: var(--text-2); line-height: 1.75; }
.fd-fx-help { margin-top: 10px; font-size: 11.5px; color: var(--text-2); }
.fd-fx-help code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 3px; font-size: 10.5px; }
.fd-auto-wrap input[readonly] { background: var(--brand-50); border-color: var(--brand-100); font-weight: 600; }
.fd-auto-wrap input.is-err { border-color: var(--danger); background: #fff5f5; }
.fd-auto-tip { display: block; font-size: 10.5px; color: var(--text-4); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-inline { display: flex; align-items: center; gap: 6px; }
.fd-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ok-t { color: var(--success); }
.warn-t { color: var(--danger); }

/* 表单打印（A4 纵向）：表头 / 两列表格 / 勾选清单 / 签认栏 */
.fp { color: #000; font-size: 12px; }
.fp-head { text-align: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
.fp-org { font-size: 11.5px; color: #333; letter-spacing: 1px; }
.fp-title { font-size: 19px; font-weight: 700; letter-spacing: 3px; margin: 5px 0 7px; }
.fp-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 10.5px; color: #444; }
.fp-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fp-tbl th, .fp-tbl td { border: 1px solid #333; padding: 6px 8px; vertical-align: top; font-size: 11.5px; line-height: 1.55; }
.fp-tbl th { width: 26%; text-align: left; font-weight: 600; background: #f3f3f3; }
.fp-tbl tr { page-break-inside: avoid; }
.fp-req { color: #c00; }
.fp-auto { font-style: normal; font-size: 9px; color: #555; border: 1px solid #999; border-radius: 8px; padding: 0 4px; margin-left: 2px; }
.fp-unit { font-style: normal; color: #666; font-size: 10px; }
.fp-opt { display: inline-block; margin-right: 16px; white-space: nowrap; }
.fp-optlist { display: flex; flex-wrap: wrap; }
.fp-blank { display: inline-block; min-width: 160px; border-bottom: 1px solid #999; height: 14px; }
.fp-tall { min-height: 34px; }
.fp-text { white-space: pre-wrap; }
.fp-signline { color: #333; }
.fp-foot { margin-top: 12px; }
.fp-signs { display: flex; justify-content: space-between; gap: 14px; font-size: 11.5px; padding-top: 12px; flex-wrap: wrap; }
.fp-note { margin-top: 10px; font-size: 9.5px; color: #666; border-top: 1px dashed #999; padding-top: 6px; }

/* ==================== V2.36 3D查看（现场执行 → 项目报告之后） ==================== */
.w3d { display: flex; flex-direction: column; gap: 12px; }
.w3d-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; flex-wrap: wrap; }
.w3d-bar-l, .w3d-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w3d-bar-r { margin-left: auto; }
.w3d-plabel { font-size: 12px; color: var(--text-3); flex: none; }
.w3d-bar #w3dProj { min-width: 210px; max-width: 330px; }
.w3d-src { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.w3d .tag.warn { background: #fdf4e4; color: var(--warning); border-color: #f0dcb4; }
.w3d-coord-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.w3d-coord-grid textarea { width: 100%; height: 132px; resize: vertical; font: 12px/1.55 var(--num); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text); background: var(--surface-2); }
.w3d-coord-side { display: flex; flex-direction: column; gap: 9px; }
.w3d-coord-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.w3d-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.w3d-stage { min-width: 0; overflow: hidden; }
.w3d-canvas-wrap { position: relative; height: clamp(480px, 66vh, 760px); background: #f2f7fc; }
.w3d-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.w3d-canvas-wrap canvas:active { cursor: grabbing; }
.w3d-ov { position: absolute; z-index: 2; }
.w3d-scale { top: 10px; left: 10px; background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 11px; color: var(--text-2); }
.w3d-tools { top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.w3d-tg { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.w3d-tg .btn.sm { padding: 3px 7px; font-size: 11px; }
.w3d-tg .btn.sm.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.w3d-legend { bottom: 10px; left: 10px; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 132px; }
.w3d-lg-t { font-size: 10px; font-weight: 700; color: var(--text-3); margin-bottom: 5px; letter-spacing: .05em; }
.w3d-lrow { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); line-height: 1.9; }
.w3d-lrow i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.w3d-lrow b { margin-left: auto; font-family: var(--num); color: var(--text); }
.w3d-lg-f { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 10px; color: var(--success); }
.w3d-compass { bottom: 10px; right: 10px; background: rgba(255,255,255,.85); border-radius: 50%; }
.w3d-tip { position: absolute; z-index: 5; pointer-events: none; display: none; background: rgba(20,30,45,.92); color: #fff; border-radius: var(--radius-sm); padding: 6px 9px; font-size: 11px; line-height: 1.6; box-shadow: var(--shadow); }
.w3d-tip.show { display: block; }
.w3d-tip i { color: #b9cbe0; font-style: normal; font-size: 10px; }
.w3d-note { padding: 7px 12px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--border); line-height: 1.6; }
.w3d-side { min-width: 0; overflow: hidden; }
.w3d-side-scroll { max-height: clamp(510px, 69vh, 790px); overflow: auto; }
.w3d-sec { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.w3d-sec:last-child { border-bottom: 0; }
.w3d-sec-t { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; letter-spacing: .04em; }
.w3d-kv-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; line-height: 1.9; border-bottom: 1px dashed #f0f2f5; }
.w3d-kv-row:last-child { border-bottom: 0; }
.w3d-kv-row span { color: var(--text-3); flex: none; }
.w3d-kv-row b { font-weight: 600; text-align: right; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w3d-ring-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.w3d-big { font-size: 22px; font-weight: 700; color: var(--success); line-height: 1.2; }
.w3d-drow { display: flex; align-items: center; gap: 7px; font-size: 11px; line-height: 1.95; color: var(--text-2); }
.w3d-drow > span { width: 40px; flex: none; }
.w3d-dbar { flex: 1; height: 6px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.w3d-dbar i { display: block; height: 100%; border-radius: 4px; }
.w3d-drow b { width: 20px; text-align: right; font-family: var(--num); color: var(--text); }
.w3d-search { width: 100%; height: 28px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 0 8px; font-size: 12px; margin-bottom: 7px; }
.w3d-list { max-height: 168px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.w3d-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--radius-sm); cursor: pointer; font-size: 11.5px; border: 1px solid transparent; }
.w3d-item:hover { background: var(--surface-2); }
.w3d-item.on { background: var(--brand-50); border-color: var(--brand-100); }
.w3d-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.w3d-item b { min-width: 48px; font-family: var(--num); font-size: 11px; }
.w3d-ist { color: var(--text-3); flex: 1; white-space: nowrap; }
.w3d-ibar { width: 42px; height: 5px; background: #eef1f5; border-radius: 3px; overflow: hidden; flex: none; }
.w3d-ibar i { display: block; height: 100%; }
.w3d-dhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.w3d-dhead b { font-size: 14px; }
.w3d-sub { font-size: 10px; font-weight: 700; color: var(--text-3); margin: 10px 0 6px; }
.w3d-steps { display: flex; flex-direction: column; gap: 3px; }
.w3d-step { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 6px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid #d8dee7; }
.w3d-step span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w3d-step i { font-style: normal; font-family: var(--num); color: var(--text-2); }
.w3d-step em { font-style: normal; font-size: 10px; color: var(--text-3); min-width: 52px; text-align: right; }
.w3d-step.done { border-left-color: var(--success); }
.w3d-step.doing { border-left-color: var(--brand); }
.w3d-step.late { border-left-color: var(--danger); }
@media (max-width: 1180px) {
  .w3d-main { grid-template-columns: minmax(0, 1fr); }
  .w3d-side-scroll { max-height: 420px; }
  .w3d-coord-grid { grid-template-columns: minmax(0, 1fr); }
}
