    :root {
      --primary: #0abb87;
      --primary-dark: #09a87a;
      --primary-soft: #e7f8f3;
      --info: #089de3;
      --warning: #f5b225;
      --danger: #d92550;
      --purple: #7c5ce7;
      --page-bg: #f3f3f3;
      --surface: #fff;
      --text: #303133;
      --text-regular: #606266;
      --text-secondary: #909399;
      --placeholder: #c0c4cc;
      --border: #dcdfe6;
      --border-light: #ebeef5;
      --hover: #f7f7f7;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; }
    body {
      overflow-x: hidden;
      background: var(--page-bg);
      color: var(--text);
      font: 14px/1.45 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button:disabled { cursor: not-allowed; }
    .app { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
    .side { position: sticky; top: 0; z-index: 20; height: 100vh; overflow: auto; background: var(--surface); border-right: 1px solid var(--border); }
    .brand { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border-light); font-weight: 600; }
    .brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 3px; background: var(--primary); color: #fff; font-size: 11px; }
    .side-title { padding: 17px 16px 7px; color: var(--text-secondary); font-size: 12px; }
    .nav { width: 100%; height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--text-regular); text-align: left; }
    .nav:hover { background: var(--hover); }
    .nav.active { border-left-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
    .nav-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; }
    .nav-count { margin-left: auto; padding: 1px 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; }
    .nav-count.blue { background: var(--info); }
    .workspace { min-width: 0; }
    .topbar { position: sticky; top: 0; z-index: 15; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
    .top-tabs { display: flex; align-items: flex-end; gap: 2px; height: 52px; }
    .top-tab { height: 40px; padding: 0 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0; background: transparent; color: var(--text-secondary); }
    .top-tab.current { border-color: var(--border); background: var(--surface); color: var(--text); font-weight: 600; }
    .top-right { display: flex; align-items: center; gap: 10px; color: var(--text-regular); }
    .env { padding: 4px 8px; border-radius: 3px; background: #f2f4f7; color: var(--text-secondary); font-size: 12px; }
    .env.kimi { background: #eef4ff; color: #2c4d91; font-weight: 600; }
    .avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
    main { max-width: 1780px; margin: 0 auto; padding: 15px 18px 60px; }
    .page { display: none; }
    .page.active { display: block; }
    .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
    .crumb { margin-bottom: 4px; color: var(--text-secondary); font-size: 12px; }
    h1 { margin: 0; font-size: 18px; font-weight: 600; }
    h2 { margin: 0; font-size: 16px; font-weight: 600; }
    h3 { margin: 0; font-size: 14px; font-weight: 600; }
    .page-sub { margin-top: 4px; color: var(--text-secondary); font-size: 12px; }
    .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .btn { min-width: 72px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 13px; border: 1px solid var(--primary); border-radius: 3px; background: var(--primary); color: #fff; }
    .btn:hover { border-color: var(--primary-dark); background: var(--primary-dark); }
    .btn.secondary { background: #fff; color: var(--primary-dark); }
    .btn.gray { border-color: var(--border); background: #fff; color: var(--text-regular); }
    .btn.danger { border-color: #f1b9c5; background: #fff; color: var(--danger); }
    .btn.small { min-width: auto; height: 28px; padding: 0 9px; font-size: 12px; }
    .btn:disabled { border-color: var(--border); background: #f5f7fa; color: var(--placeholder); }
    .panel { min-width: 0; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
    .panel-head { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-bottom: 1px solid var(--border-light); }
    .panel-title { position: relative; padding-left: 9px; font-weight: 600; }
    .panel-title::before { content: ""; position: absolute; top: 2px; left: 0; width: 3px; height: 17px; border-radius: 2px; background: var(--primary); }
    .panel-body { padding: 15px; }
    .filters { display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 13px; }
    .filter-actions { display: flex; align-items: flex-end; gap: 8px; }
    .field label { display: block; margin-bottom: 5px; color: var(--text-regular); font-size: 12px; }
    .required::before { content: "*"; margin-right: 2px; color: var(--danger); }
    input, select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 3px; outline: none; background: #fff; color: var(--text); }
    input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(10, 187, 135, .1); }
    input[disabled], select[disabled] { background: #f5f7fa; color: var(--placeholder); }
    textarea { width: 100%; min-height: 78px; resize: vertical; padding: 8px 9px; border: 1px solid var(--border); border-radius: 3px; outline: none; }
    .form-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 15px 20px; }
    .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .table-wrap { max-width: 100%; overflow: auto; }
    table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 12.5px; }
    th, td { height: 42px; padding: 8px 10px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: middle; white-space: nowrap; }
    th { height: 41px; background: #fff; color: var(--text-secondary); font-weight: 500; }
    tbody tr:hover { background: var(--hover); }
    .link { padding: 0; border: 0; background: transparent; color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
    .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
    .muted { color: var(--text-secondary); }
    .tag { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 7px; border-radius: 3px; background: #f0f2f5; color: var(--text-regular); font-size: 11px; }
    .tag.green { background: #e7f8f3; color: #14845d; }
    .tag.blue { background: #edf6fd; color: #0879b4; }
    .tag.orange { background: #fff7e6; color: #ad6800; }
    .tag.red { background: #fff0f2; color: #c41d3c; }
    .tag.purple { background: #f2efff; color: #6f4fd4; }
    .tag + .tag { margin-left: 4px; }
    .status-cell { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; }
    .summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
    .stat { padding: 12px 14px; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 3px; background: #fff; }
    .stat.blue { border-top-color: var(--info); }
    .stat.orange { border-top-color: var(--warning); }
    .stat.red { border-top-color: var(--danger); }
    .stat-label { color: var(--text-secondary); font-size: 12px; }
    .stat-number { margin-top: 4px; font-size: 22px; font-weight: 600; }
    .stat-note { margin-top: 2px; color: var(--text-secondary); font-size: 11px; }
    .seg { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: 3px; }
    .seg button { height: 30px; padding: 0 12px; border: 0; border-right: 1px solid var(--border); background: #fff; color: var(--text-regular); }
    .seg button:last-child { border-right: 0; }
    .seg button.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
    .notice { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #bdd0fa; border-radius: 3px; background: #eef4ff; color: #2c4d91; font-size: 12px; }
    .notice.success { border-color: #b9e7d5; background: var(--primary-soft); color: #24604a; }
    .notice.warn { border-color: #f5d28f; background: #fff8e8; color: #7a5513; }
    .notice.error { border-color: #f2b8bb; background: #fff1f1; color: #9d2d32; }
    .empty { padding: 30px; color: var(--text-secondary); text-align: center; }
    .detail-tabs { display: flex; gap: 24px; height: 42px; align-items: flex-end; border-bottom: 1px solid var(--border-light); }
    .detail-tab { height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: #fff; color: var(--text-secondary); }
    .detail-tab.active { border-bottom-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
    .definition { width: 100%; border-collapse: collapse; min-width: 0; }
    .definition th, .definition td { height: 38px; border-bottom: 1px solid var(--border-light); white-space: normal; }
    .definition th { width: 155px; background: #fff; color: var(--text-secondary); font-weight: 400; }
    .subtask { display: grid; grid-template-columns: 32px minmax(170px, 1fr) 150px 120px minmax(160px, 1fr); align-items: center; min-height: 52px; border-bottom: 1px solid var(--border-light); font-size: 12px; }
    .subtask:last-child { border-bottom: 0; }
    .subtask-no { color: var(--text-secondary); text-align: center; }
    .subtask-status { justify-self: start; }
    .timeline { display: grid; gap: 0; }
    .timeline-item { display: grid; grid-template-columns: 150px 20px minmax(180px, 1fr) 220px; align-items: start; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
    .timeline-item:last-child { border-bottom: 0; }
    .timeline-time { color: var(--text-secondary); font-size: 12px; }
    .timeline-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--primary); }
    .timeline-dot.gray { background: var(--placeholder); }
    .timeline-dot.red { background: var(--danger); }
    .timeline-content strong { display: block; font-weight: 600; }
    .timeline-content p { margin: 4px 0 0; color: var(--text-regular); font-size: 12px; }
    .timeline-ref { color: var(--text-secondary); font-size: 12px; }
    .overlay { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(31, 35, 41, .38); }
    .overlay.show { display: block; }
    .modal { position: fixed; top: 50%; left: 50%; z-index: 60; display: none; width: min(900px, 92vw); max-height: 88vh; overflow: auto; transform: translate(-50%, -50%); border-radius: 3px; background: #fff; box-shadow: 0 12px 36px rgba(0, 0, 0, .18); }
    .modal.show { display: block; }
    .modal-head, .modal-foot { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border-light); }
    .modal-foot { justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border-light); border-bottom: 0; }
    .modal-body { padding: 17px 18px; }
    .modal-close { width: 28px; height: 28px; border: 0; border-radius: 3px; background: #f2f4f7; color: var(--text-regular); }
    .modal .table-wrap { margin-top: 14px; }
    .modal table { min-width: 0; }
    .toast { position: fixed; top: 74px; left: 50%; z-index: 80; padding: 10px 14px; border: 1px solid #b9e7d5; border-radius: 3px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); color: #147553; opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: .18s; }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    .checkbox { width: 16px; height: 16px; accent-color: var(--primary); }
    .right { text-align: right; }
    .queue-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 3px; background: #edf6fd; color: #0879b4; font-size: 11px; }
    .queue-badge.run { background: #e7f8f3; color: #14845d; }
    .v5-change { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 12.5px; }
    .v5-change dt { color: var(--text-secondary); }
    .v5-change dd { margin: 0; }
    @media (max-width: 1180px) {
      .filters, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .timeline-item { grid-template-columns: 120px 20px minmax(160px, 1fr); }
      .timeline-ref { grid-column: 3; margin-top: 4px; }
    }
    @media (max-width: 820px) {
      .app { grid-template-columns: 1fr; }
      .side { display: none; }
      main { padding: 14px; }
      .page-head { flex-direction: column; }
      .filters, .form-grid, .summary, .two-col, .three-col { grid-template-columns: 1fr; }
      .topbar { padding: 0 12px; }
      .top-right > span:not(.env) { display: none; }
      .subtask { grid-template-columns: 30px 1fr; gap: 4px; padding: 8px 0; }
      .subtask-status, .subtask > div:last-child { grid-column: 2; }
    }
