  :root {
    --brand: #2c5282;
    --header-l0: #4a78a8;
    --header-l1: #cfe0ef;
    --header-l2: #bee3f8;
    --header-l3: #f7fafc;
    --border: #e2e8f0;
    --in-progress-bg: #d1ecf1; --in-progress-fg: #0c5460;
    --ready-bg: #d4edda;       --ready-fg: #155724;     /* 3.2 规格：浅绿 + ✓✓ */
    --not-needed-bg: #f5f5f5;  --not-needed-fg: #999999;
    --blocked-bg: #f8d7da;     --blocked-fg: #721c24;
    --unevaluated-bg: #edeff2; --unevaluated-fg: #9499a0;
    --text-main: #1a202c; --text-sub: #718096; --text-weak: #a0aec0;
    --link: #3182ce;
    --shadow: 0 4px 14px rgba(0,0,0,.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Inter, sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: #eef1f5; color: var(--text-main); font-size: 14px; }

  .topbar { background: var(--brand); color: #fff; padding: 12px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
  .topbar > * { flex-shrink: 0; }  /* 子项不收缩：自然宽度超视口时由 fitAll zoom 等比例缩到一行，绝不折行 */
  /* 顶部栏各元素纵向中线对齐：统一 line-height，配合 align-items:center 让文字中线落在同一水平线 */
  .topbar h1, .topbar .meta, .topbar .src-badge, .topbar .me, .topbar .me-btn, .module-switch .mod-btn { line-height: 1; }
  /* 光学补偿：中文字形上紧下松，小字相对大标题视觉偏上，整体下移 2px 让视觉重心对齐 */
  .topbar .meta, .topbar .src-badge, .topbar .module-switch, .topbar .me, .topbar .me-btn { transform: translateY(2px); }
  .topbar h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: .5px; line-height: 1; }
  .topbar .meta { font-size: 12px; opacity: .85; }
  .spacer { flex: 1; }
  .topbar .me { font-size: 12px; background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: 12px; }
  .src-badge { font-size: 12px; padding: 3px 10px; border-radius: 10px; font-weight: 600; }
  .src-badge.backend { background: #d4edda; color: #155724; }
  .src-badge.fallback { background: #fff3cd; color: #a06a00; }
  .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1a202c; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .toast.show { opacity: 1; }
  .tl-edit { border: none; background: transparent; color: var(--link); cursor: pointer; font-size: 13px; padding: 0 2px; }
  .tl-edit:hover { color: var(--brand); }
  .tl-reset { border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; background: #fff; color: var(--text-sub); }
  .tl-reset:hover { border-color: var(--brand); color: var(--brand); }
  .tl-edit-box { padding: 16px 18px; min-width: 300px; }
  .tl-edit-box h3 { margin: 0 0 12px; font-size: 15px; }
  .tl-edit-box label { display: block; font-size: 13px; margin-bottom: 10px; }
  .tl-edit-box input, .tl-edit-box select { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
  .tl-edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
  .tl-edit-actions button { border: 1px solid var(--border); border-radius: 6px; padding: 6px 14px; font-size: 13px; cursor: pointer; background: #fff; }
  .tl-edit-actions #tlEditSave { background: var(--brand); color: #fff; border-color: var(--brand); }

  .toolbar { background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; overflow-x: auto; position: sticky; top: 0; z-index: 30; }
  .toolbar > * { flex-shrink: 0; }  /* 子项不收缩：自然宽度超视口时由 fitAll zoom 等比例缩到一行，绝不折行 */
  .toolbar input[type=text], .toolbar select { height: 34px; border: 1px solid var(--border); border-radius: 7px; padding: 0 10px; font-size: 14px; background: #fff; }
  .toolbar .search { width: 220px; }
  .toolbar .group { display: flex; align-items: center; gap: 10px; }
  .toolbar .divider { width: 1px; height: 26px; background: var(--border); flex: none; }
  .toolbar .label { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .5px; flex: none; }
  .toolbar .label::after { content: '：'; opacity: .55; font-weight: 400; }
  .btn { height: 34px; padding: 0 14px; border: 1px solid var(--border); background: #fff; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--text-main); display: inline-flex; align-items: center; gap: 6px; transition: background .12s, border-color .12s; }
  .btn:hover { background: #f1f5f9; border-color: #cbd5e0; }
  .btn.tiny { height: 30px; padding: 0 10px; font-size: 13px; }
  #zoomSlider { width: 120px; }
  #zoomVal { font-size: 13px; color: var(--text-sub); min-width: 40px; }

  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 16px; font-size: 13px; cursor: pointer; border: 1px solid transparent; background: #f4f6f9; color: var(--text-sub); user-select: none; transition: background .12s, border-color .12s, color .12s; }
  .chip:hover { background: #e3ecf7; color: var(--text-main); border-color: #cdd9e8; }
  .chip.on { background: #dbe7fb; color: var(--brand); font-weight: 600; border-color: #b9caef; }
  .chip .dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; border: 1.5px solid; box-sizing: border-box; }
  #statusChips, #priorityChips { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

  .combo { position: relative; display: inline-flex; align-items: center; }
  .combo input { width: 168px; }
  .combo-clear { cursor: pointer; color: var(--text-weak); font-size: 15px; line-height: 1; padding: 0 6px; user-select: none; }
  .combo-clear:hover { color: var(--text-sub); }
  .combo-list { position: absolute; top: calc(100% + 4px); left: 0; min-width: 260px; max-height: 300px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 7px; box-shadow: var(--shadow); z-index: 50; display: none; }
  .combo-list.show { display: block; }
  .combo-item { padding: 7px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f0f4fa; }
  .combo-item:last-child { border-bottom: none; }
  .combo-item:hover { background: #eaf2fc; }
  .combo-item .ci-name { color: var(--text-main); font-weight: 500; }
  .combo-item .ci-code { font-size: 11px; color: var(--text-sub); margin-top: 1px; }
  .combo-empty { padding: 12px; font-size: 12px; color: var(--text-weak); text-align: center; }

  .stats { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 10px; background: #eaf2fc; margin-top: 12px; }
  /* 标题/计数/摘要行已删（用户反馈用处不大）；仅筛选激活时显示清除链一行 */
  .stats-head { font-size: 13px; font-weight: 500; color: var(--text-sub); line-height: 1.5; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
  .stats-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; font-size: 13px; color: var(--text-main); padding-top: 6px; border-top: 1px dashed #e6ebf2; }
  .stats-label { font-size: 13px; font-weight: 700; color: var(--brand); background: #dbe7fb; padding: 3px 9px; border-radius: 4px; flex: none; }
  .stage-hint { font-size: 12px; font-weight: 400; color: var(--text-sub); }
  .stage-hint .clr { cursor: pointer; color: var(--link); margin-left: 4px; }
  /* 模型支持情况：共N + 计数 pill 同一行（pill 可点切状态筛选），下方待讨论模型名单（可点聚焦） */
  .stats-row .support-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 1; min-width: 220px; }
  .support-total { font-size: 13px; color: var(--text-main); font-weight: 600; }
  .support-total b { font-size: 16px; color: var(--brand); font-weight: 800; margin: 0 2px; }
  .spill-row { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .spill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); cursor: pointer; transition: filter .12s, box-shadow .12s; }
  .spill:hover { filter: brightness(.97); }
  .spill.on { box-shadow: 0 0 0 2px var(--brand); }
  .spill b { font-size: 15px; font-weight: 800; }
  .spill.s-ready { background: var(--ready-bg); color: var(--ready-fg); }
  .spill.s-ip { background: var(--in-progress-bg); color: var(--in-progress-fg); }
  .spill.s-blocked { background: var(--blocked-bg); color: var(--blocked-fg); }
  /* 待客户评估：醒目计数 + 项目名单（可单击/多选筛选项目行） */
  .stats-row .eval-wrap { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
  .eval-count { font-size: 14px; color: var(--text-main); }
  .eval-count b { font-size: 20px; color: var(--brand); font-weight: 800; margin: 0 2px; }
  .eval-list { display: flex; flex-wrap: wrap; gap: 5px; max-height: 78px; overflow: auto; padding: 3px; }
  .eval-list .ep { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eef2f7; color: var(--text-sub); border: 1px solid var(--border); white-space: nowrap; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
  .eval-list .ep:hover { background: #dbe7fb; color: var(--brand); border-color: #b9caef; }
  .eval-list .ep.on { background: #dbe7fb; color: var(--brand); border-color: var(--brand); font-weight: 600; }

  /* 概览两行恒显（功能不砍）；全景等比例缩放（fitAll 算 zoom）——主标题/概览/注释/工具栏/矩阵同一比例，窄屏缩小不换行、大屏放大更清晰，不靠藏内容/折行省空间 */

  .legend { margin: 14px 0 12px; padding: 8px 8px; background: #fff; font-size: 11px; color: var(--text-main); display: flex; align-items: center; flex-wrap: wrap; }
  .legend .grp { display: inline-flex; align-items: center; gap: 6px; }
  .legend .grp-single { gap: 1px; }
  .legend .grp-title { font-weight: 700; color: var(--text-main); margin-right: 2px; }
  .legend .grp-sep { color: var(--text-weak); margin: 0 4px; }
  .legend .item { display: inline-flex; align-items: center; gap: 4px; }
  .legend .sw { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }

  .hint { margin: 10px 0; padding: 8px 18px; font-size: 12px; color: var(--text-sub); background: #fffbe6; border-bottom: 1px solid #ffe58f; white-space: nowrap; overflow: hidden; }
  .hint b { color: #975a14; }
  .hint .tip { color: #b7791f; margin-left: 8px; }

  .table-scroll { overflow: auto; background: #fff; }
  table.matrix { border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: fixed; }
  table.matrix th, table.matrix td { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
  th.l0 { background: var(--header-l0); color: #fff; font-weight: 700; font-size: 16px; padding: 11px 10px; }
  th.l1 { background: var(--header-l1); color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; padding: 11px 6px; white-space: normal; }
  th.l2 { background: var(--header-l2); color: #2a4365; font-weight: 600; cursor: pointer; padding: 9px 10px; }
  th.l3 { background: var(--header-l3); color: var(--text-main); font-weight: 600; writing-mode: vertical-rl; text-orientation: mixed; width: 40px; min-width: 40px; max-width: 40px; padding: 6px 1px; font-size: 13px; }
  th.l3 a { color: var(--link); text-decoration: none; }
  th.l3 a:hover { text-decoration: underline; }
  th.l3.l3-hl, th.l3.l3-hl-batch { background: #fff3cd; }
  th.l3.l3-hl-blocked { background: var(--blocked-bg); }
  .tri { display: inline-block; width: 12px; font-size: 10px; margin-right: 6px; }
  th.l1 .tri { color: #5a7a99; }
  th.l2 .tri { color: #2a4365; }

  /* 冻结首列 + 斜角标题 */
  th.corner, td.col-project { position: sticky; left: 0; z-index: 7; }
  thead th.corner { z-index: 8; background: #f4f7fa; color: var(--text-sub); overflow: hidden; }
  thead th.corner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent calc(50% - 1px), #b8c2cc calc(50% - 1px), #b8c2cc calc(50% + 1px), transparent calc(50% + 1px)); pointer-events: none; }
  thead th.corner .lbl-tr, thead th.corner .lbl-bl { position: absolute; font-size: 16px; font-weight: 700; color: var(--text-main); z-index: 1; letter-spacing: 1px; transform: translate(-50%, -50%); }
  thead th.corner .lbl-tr { left: 66%; top: 34%; }
  thead th.corner .lbl-bl { left: 34%; top: 66%; }
  td.col-project { background: #f4f7fa; border-left: 5px solid var(--risk, #cbd5e0); border-right: 2px solid var(--border); padding: 8px 10px 8px 13px; min-width: 170px; max-width: 200px; cursor: pointer; }
  td.col-project:hover { background: #edf2f7; }
  td.col-project .pname { font-weight: 700; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  td.col-project .proles { font-size: 12px; color: var(--text-sub); margin-top: 3px; }

  /* 单元格固定尺寸 */
  td.cell { text-align: center; cursor: pointer; width: 40px; min-width: 40px; max-width: 40px; height: 34px; position: relative; padding: 0; vertical-align: middle; }
  td.cell:hover { filter: brightness(.96); outline: 2px solid var(--brand); outline-offset: -2px; z-index: 2; }
  td.cell .icon { font-size: 15px; line-height: 1; }
  td.cell.in_progress { background: rgba(209,236,241,.6); }
  .half-icon { display: inline-block; vertical-align: middle; }
  td.cell.in_progress .half-icon { width: 14px; height: 14px; }
  .legend .half-icon { width: 9px; height: 9px; }
  .drawer .half-icon { width: 14px; height: 14px; }
  td.cell.ready { background: var(--ready-bg); color: var(--ready-fg); }
  td.cell.ready .icon { font-weight: 700; }
  td.cell.not_needed { background: var(--not-needed-bg); color: var(--not-needed-fg); font-size: 13px; }
  td.cell.unevaluated { background: var(--unevaluated-bg); color: var(--unevaluated-fg); }
  td.cell.unevaluated .icon { font-weight: 600; }
  td.cell.not_needed .icon { font-weight: 600; font-size: 16px; }
  td.cell.blocked { background: var(--blocked-bg); color: var(--blocked-fg); cursor: help; }
  td.cell.blocked .icon { color: #721c24; font-weight: 700; font-size: 16px; }
  td.cell.dim { opacity: .2; }
  td.cell.hl { outline: 2px solid #d97706; outline-offset: -2px; z-index: 3; }
  td.cell.summary { background: #fafbfc; color: var(--text-weak); font-size: 11px; }
  tbody tr:hover td.col-project { background: #edf2f7; }

  /* 抽屉 */
  .drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 50; display: none; }
  .drawer-mask.show { display: block; }
  .drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 420px; max-width: 92vw; background: #fff; box-shadow: var(--shadow); z-index: 60; transform: translateX(100%); transition: transform .2s; display: flex; flex-direction: column; }
  .drawer.show { transform: translateX(0); }
  .drawer header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .drawer header h2 { margin: 0; font-size: 15px; }
  .drawer header .x { cursor: pointer; color: var(--text-sub); font-size: 18px; }
  .drawer .body { padding: 14px 18px; overflow-y: auto; flex: 1; }
  .drawer .row { margin-bottom: 12px; }
  .drawer .row > label { display: block; font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
  .drawer .row .val { font-size: 13px; }
  .req-pick { display: flex; flex-direction: column; gap: 6px; }
  .req-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: #fff; transition: background .12s, border-color .12s; }
  .req-row:hover { background: #f1f5f9; border-color: #cbd5e0; }
  .req-row.sel { border-color: var(--brand); background: #eaf2fc; }
  .req-label { font-weight: 700; color: var(--text-main); font-size: 13px; }
  .req-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
  .req-sym { font-size: 16px; font-weight: 700; color: var(--text-sub); }
  .req-row.sel .req-sym { color: var(--brand); }
  .drawer input[type=text], .drawer input[type=date], .drawer select, .drawer textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; font-family: inherit; }
  .drawer textarea { resize: vertical; min-height: 56px; }
  .logs { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }
  .logs h3 { font-size: 12px; color: var(--text-sub); margin: 0 0 6px; }
  .logs .entry { font-size: 11px; color: var(--text-sub); padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
  .logs .entry b { color: var(--text-main); }

  .side-panel { position: fixed; right: 16px; top: 150px; width: 270px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); z-index: 40; display: none; max-height: 60vh; overflow: auto; }
  .side-panel.show { display: block; }
  .side-panel h3 { margin: 0; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border); background: var(--header-l3); }
  .side-panel .item { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; font-size: 12px; cursor: pointer; }
  .side-panel .item:hover { background: #f7fafc; }
  .side-panel .item .t { font-weight: 600; color: var(--text-main); }
  .side-panel .item .s { color: var(--text-sub); margin-top: 2px; }
  .side-panel .empty { padding: 16px; color: var(--text-weak); font-size: 12px; text-align: center; }

  footer { padding: 10px 20px; font-size: 11px; color: var(--text-weak); }

  /* 登录门闸（MVP，纯前端）：未登录时 body.auth-gate 直接摘除 app 骨架，只留登录卡（不靠半透明遮盖，根治透出问题） */
  .login-mask { position: fixed; inset: 0; background-color: #0b1020; background-image: url("login-bg.jpg"); background-size: cover; background-position: center; z-index: 200; display: none; align-items: center; justify-content: center; }
  .login-mask.show { display: flex; }
  .login-mask::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(8,12,30,.42) 0%, rgba(8,12,30,.62) 100%); }
  body.auth-gate > *:not(.login-mask){ display:none !important; }
  .login-card { position: relative; z-index: 1; width: 320px; max-width: 92vw; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.28); padding: 30px 28px 22px; display: flex; flex-direction: column; gap: 10px; }
  .login-brand { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: .3px; }
  .login-meta { font-size: 12px; color: var(--text-sub); }
  .login-title { font-size: 16px; font-weight: 600; color: var(--text-main); margin: 4px 0 2px; }
  .login-input { height: 38px; border: 1px solid var(--border); border-radius: 7px; padding: 0 12px; font-size: 14px; font-family: inherit; }
  .login-input-wrap { position: relative; }
  .login-input-wrap .login-input { width: 100%; padding-right: 38px; box-sizing: border-box; }
  .login-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; padding: 4px; color: var(--text-sub); opacity: .7; }
  .login-eye:hover { opacity: 1; }
  .login-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px #dbe7fb; }
  .login-err { font-size: 12px; color: var(--blocked-fg); min-height: 14px; }
  .login-btn { height: 40px; width: 100%; background: var(--brand); color: #fff; border: none; font-size: 15px; font-weight: 700; border-radius: 7px; cursor: pointer; transition: background .12s; }
  .login-btn:hover { background: #3a6299; }
  .login-foot { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 4px; }
  .login-credit { font-size: 10px; color: var(--text-sub); text-align: center; margin-top: 2px; opacity: .85; }
  .topbar .me-btn { background: rgba(255,255,255,.15); color: #fff; border: none; height: 28px; padding: 0 12px; font-size: 12px; border-radius: 12px; cursor: pointer; }
  .topbar .me-btn:hover { background: rgba(255,255,255,.28); }
  .readonly-hint { background: #fffbe6; border: 1px solid #ffe58f; color: #975a14; padding: 8px 10px; border-radius: 6px; font-size: 12px; }
  .req-row.locked { cursor: not-allowed; opacity: .85; }
  .req-row.locked:hover { background: #fff; border-color: var(--border); }

  /* ===== 模块切换 + 模型发布时间轴全景图 ===== */
  .module-switch { display: inline-flex; background: rgba(255,255,255,.18); border-radius: 9px; padding: 3px; gap: 2px; margin-left: 4px; }
  .module-switch .mod-btn { background: transparent; color: #fff; border: none; height: 26px; padding: 0 13px; font-size: 12px; font-weight: 700; border-radius: 7px; cursor: pointer; opacity: .82; }
  .module-switch .mod-btn.on { background: #fff; color: var(--brand); opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
  body.mod-timeline > .stats, body.mod-timeline > .hint, body.mod-timeline > .toolbar, body.mod-timeline > .table-scroll, body.mod-timeline > .legend, body.mod-timeline > .side-panel { display: none !important; }
  body.mod-timeline #timelineView { display: block !important; }
  #timelineView { display: none; padding: 0 0 44px; }
  body.mod-logs > .stats, body.mod-logs > .hint, body.mod-logs > .toolbar, body.mod-logs > .table-scroll, body.mod-logs > .legend, body.mod-logs > .side-panel, body.mod-logs #timelineView { display: none !important; }
  body.mod-logs #logsView { display: block !important; }
  #logsView { display: none; padding: 14px 22px 44px; }
  .log-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; font-size: 12px; color: var(--text-sub); }
  .log-toolbar select, .log-toolbar button { height: 28px; padding: 0 8px; border: 1px solid #d9dee7; border-radius: 7px; background: #fff; font-size: 12px; cursor: pointer; }
  .logtab { width: 100%; border-collapse: collapse; font-size: 12px; }
  .logtab th, .logtab td { padding: 5px 8px; text-align: left; border-bottom: 1px solid #edf0f5; vertical-align: top; }
  .logtab th { color: var(--text-sub); font-weight: 600; position: sticky; top: 0; background: #fff; }
  .logtab td.msg { font-family: Consolas, monospace; word-break: break-all; }
  .logtab tr.lv-WARNING td { background: #fffaf0; }
  .logtab tr.lv-ERROR td, .logtab tr.lv-CRITICAL td { background: #fff5f5; color: #c53030; }
  .tl-banner { background: #eaf2fc; color: var(--text-main); border: 1px solid var(--border); border-bottom: none; border-radius: 0; padding: 8px 22px; margin-bottom: 0; display: flex; flex-direction: column; gap: 6px; font-size: clamp(11px, 0.68vw, 12.5px); }
  .tl-banner .tl-banner-tips { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--text-sub); }
  .tl-banner .src-badge { flex-shrink: 0; font-size: 0.85em; padding: 2px 8px; transform: translateY(2px); margin-left: auto; }
  .tl-banner a { color: var(--link); text-decoration: underline; }
  .tl-banner-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .tl-stats-label { flex: none; font-size: 12px; font-weight: 700; color: var(--brand); background: #dbe7fb; padding: 3px 9px; border-radius: 4px; }
  .tl-banner-kpis { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .tl-kpi { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); cursor: pointer; line-height: 1.5; white-space: nowrap; transition: filter .12s, box-shadow .12s; }
  .tl-kpi:hover { filter: brightness(.97); }
  .tl-kpi b { font-size: 13px; font-weight: 800; }
  .tl-kpi.on { box-shadow: 0 0 0 2px var(--brand); }
  .tl-kpi.s-ready { background: var(--ready-bg); color: var(--ready-fg); border-color: #b7e0c3; }
  .tl-kpi.s-ip { background: var(--in-progress-bg); color: var(--in-progress-fg); border-color: #a9d5e0; }
  .tl-kpi.s-schedule { background: #fbe4b8; color: #8a5a00; border-color: #ecd28a; }
  .tl-sec { font-size: 13px; font-weight: 800; color: var(--brand); margin: 8px 22px; display: flex; align-items: center; gap: 8px; }
  .tl-sec .sub { font-size: 11px; font-weight: 400; color: var(--text-sub); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-toolbar { background: #fff; border: 1px solid var(--border); border-bottom: none; border-radius: 0; padding: 8px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
  .tl-toolbar #tlChips { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
  .tl-toolbar .label { font-size: 12px; font-weight: 700; color: var(--brand); flex: none; }
  .tl-toolbar .label::after { content: '：'; opacity: .5; font-weight: 400; }
  .tl-toolbar .divider { width: 1px; height: 20px; background: var(--border); flex: none; }
  .tl-search-combo .tl-srch-box { display: flex; align-items: center; gap: 4px; width: 170px; min-height: 24px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 7px; background: #fff; cursor: text; }
  .tl-search-combo .tl-srch-tags { display: inline-flex; flex-wrap: wrap; gap: 3px; }
  .tl-search-combo .tl-srch-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--header-l1); color: var(--brand); font-size: 11px; white-space: nowrap; }
  .tl-search-combo .tl-tag-x { cursor: pointer; font-size: 12px; line-height: 1; }
  .tl-search-combo .tl-srch-input { flex: 1; min-width: 36px; border: none; outline: none; background: transparent; font-size: 12px; padding: 0; color: var(--text-main); }
  .tl-search-combo .combo-clear { flex-shrink: 0; cursor: pointer; color: var(--text-weak); font-size: 15px; line-height: 1; padding: 0; }
  .tl-search-combo .combo-clear:hover { color: var(--text-main); }
  .tl-search-combo .combo-list { width: 240px; min-width: 0; max-height: 280px; background: rgba(255,255,255,.5); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border-radius: 8px; padding: 4px; border-color: rgba(0,0,0,.05); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
  .tl-search-combo .combo-list.show { display: flex; flex-direction: column; gap: 3px; }
  .tl-search-combo .tl-srch-grp { font-size: 10px; font-weight: 600; color: var(--text-weak); padding: 4px 10px 2px; }
  .tl-search-combo .combo-item { padding: 7px 10px; border: none; border-radius: 6px; font-size: 11px; display: flex; flex-direction: column; }
  .tl-search-combo .combo-item:hover { background: rgba(44,82,130,.08); }
  .tl-search-combo .combo-item .ci-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-search-combo .combo-item .ci-code { font-size: 10px; color: var(--text-weak); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-search-combo .combo-empty { padding: 10px; font-size: 11px; }
  .tl-toolbar .chip { height: 22px; padding: 0 8px; font-size: 12px; border-radius: 11px; border: 1px solid var(--border); cursor: pointer; background: #fff; display: inline-flex; align-items: center; gap: 4px; user-select: none; }
  .tl-toolbar .chip.on { background: var(--header-l1); border-color: var(--brand); color: var(--brand); font-weight: 700; }
  .tl-shown { font-size: 12px; color: var(--text-sub); margin-left: auto; flex: none; }
  .tl-gantt-wrap { background: #fff; border: 1px solid var(--border); border-top: none; overflow: auto; max-height: 440px; position: relative; }
  .tl-gantt { min-width: 2080px; }
  .tl-head { position: sticky; top: 0; z-index: 6; display: flex; height: 30px; background: var(--header-l3); border-bottom: 1px solid var(--border); }
  .tl-corner { position: sticky; left: 0; z-index: 7; width: 1000px; min-width: 1000px; background: var(--header-l3); border-right: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
  .tl-axis { width: 1080px; display: flex; }
  .tl-axis .mo { width: 30px; border-right: 1px solid #eef1f5; font-size: 9.5px; color: var(--text-sub); display: flex; align-items: flex-end; padding: 0 0 3px 3px; white-space: nowrap; overflow: hidden; }
  .tl-axis .mo.yr { font-weight: 800; color: var(--brand); border-right: 1px solid var(--border); }
  .tl-grp-h { position: sticky; left: 0; z-index: 5; background: var(--header-l1); color: var(--brand); font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
  .tl-grp-h .cnt { font-weight: 400; opacity: .6; margin-left: 6px; font-size: 10px; }
  .tl-row { display: flex; align-items: center; height: 28px; border-bottom: 1px solid #f2f4f7; }
  .tl-row:hover { background: #f6faff; }
  .tl-name { position: sticky; left: 0; z-index: 3; width: 1000px; min-width: 1000px; padding: 0 10px; font-size: 11px; background: #fff; border-right: 1px solid var(--border); height: 28px; display: flex; align-items: center; gap: 6px; overflow: hidden; }
  .tl-row:hover .tl-name { background: #f6faff; }
  .tl-name.ref { color: var(--text-sub); font-style: italic; }
  /* 列宽：表头 .tl-h 与数据 .tl-fld 共用同一组 .tl-c-* 宽度，保证上下对齐 */
  .tl-c-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; }
  .tl-c-vnd { width: 56px; } .tl-c-typ { width: 50px; } .tl-c-st { width: 48px; }
  .tl-c-dt { width: 66px; } .tl-c-ver { width: 80px; } .tl-c-cy { width: 44px; }
  .tl-h { flex-shrink: 0; font-size: 9.5px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-fld { flex-shrink: 0; font-size: 10.5px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-fld.sub { color: var(--text-sub); font-size: 10px; }
  .tl-c-name .tl-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tl-link { color: inherit; text-decoration: none; }
  .tl-link:hover { text-decoration: underline; color: var(--link); }
  .vl { font-size: 9px; color: var(--text-weak); margin-left: 3px; }
  .st { display: inline-block; font-size: 9px; line-height: 1; padding: 2px 5px; border-radius: 8px; white-space: nowrap; }
  .st.ready { background: var(--ready-bg); color: var(--ready-fg); }
  .st.ip { background: var(--in-progress-bg); color: var(--in-progress-fg); }
  .st.schedule { background: var(--blocked-bg); color: var(--blocked-fg); }
  .st.noplan { background: #eef1f5; color: var(--text-weak); }
  .cy { font-size: 10px; color: var(--text-sub); }
  .tl-track { position: relative; width: 1080px; height: 28px; background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), repeating-linear-gradient(to right, rgba(20,40,80,.045) 0 29px, transparent 29px 30px); background-size: 360px 100%, 30px 100%; }
  .tl-bar { position: absolute; top: 9px; height: 10px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
  .tl-bar.ready { background: linear-gradient(90deg, #a8d8b9, #7fbf93); }
  .tl-bar.ip { background: linear-gradient(90deg, #b9dfeb, #7fc2d6); }
  .tl-bar.schedule { background: linear-gradient(90deg, #f3d9a3, #e8c27a); }
  .tl-dot { position: absolute; top: 8px; width: 11px; height: 11px; border-radius: 50%; transform: translateX(-50%); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: help; }
  .tl-dot.v { background: var(--brand); }
  .tl-dot.s { background: var(--ready-fg); }
  .tl-old { position: absolute; left: 4px; top: 1px; font-size: 9px; color: var(--text-weak); }
  .tl-row.noplan { color: var(--text-weak); font-style: italic; }
  .tl-dot.s.ready { background: var(--ready-fg); }
  .tl-dot.s.ip { background: #0c7a8c; }
  .tl-dot.s.schedule { background: #c77d12; }
  .tl-dot.s.noplan { background: var(--text-weak); }
  .tl-mock { flex-shrink:0; display:inline-block; font-size:9px; line-height:1; padding:1px 3px; border-radius:4px; background:#fff3cd; color:#a06a00; font-weight:700; }
  .tl-src { flex-shrink:0; display:inline-block; font-size:9px; line-height:1; padding:1px 4px; border-radius:4px; font-weight:700; }
  .tl-src.private { background:#e9ecef; color:#495057; }
  .tl-src.community { background:#d4edda; color:#1e7e34; }
  .tl-src.unverified { background:#fff3cd; color:#a06a00; }
  .tl-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 8px 22px; font-size: 11px; color: var(--text-sub); background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0; }
  .tl-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; margin-right: 5px; border: 1px solid var(--border); }
  .tl-legend .sw.bar { width: 22px; height: 8px; border-radius: 4px; background: linear-gradient(90deg,#b9dfeb,#b7e4c0); border: none; }
