/* ============================================================
   先知进度计划编制 - 科技感主题
   风格对齐整站：深空蓝 + 电光蓝/青渐变 + 玻璃拟态 + 科技网格
   ============================================================ */

:root {
    --xk-blue: #2B5CFF;
    --xk-cyan: #22D3EE;
    --xk-ink: #0F1B33;
    --xk-muted: #7286A6;
    --xk-line: rgba(43, 92, 255, 0.12);
    --row-h: 32px; /* 与导出版式行高一致 */
    /* 可配置颜色（视图/高级设置写入，屏幕与导出共用） */
    --c-normal: #2f6bf6;
    --c-crit: #e23430;
    --c-parent: #111111;
    --c-holiday: #ff6b6b;
    --c-today: #e23c3c;
    --c-frame: #111111;
    --bar-h: 12px;
    --tbl-fs: 12.5px;
}

* { box-sizing: border-box; }

body {
    height: 100vh; /* 锁定视口高度：主体内部滚动，状态栏固定可见于底部 */
    background-color: #F3F7FF;
    background-image:
        radial-gradient(1100px 520px at 10% -8%, rgba(43, 92, 255, 0.16), transparent 62%),
        radial-gradient(900px 480px at 98% 2%, rgba(34, 211, 238, 0.14), transparent 58%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 52%, #EAF1FF 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(43, 92, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(43, 92, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 8%, #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%);
    mask-image: radial-gradient(circle at 50% 8%, #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%);
}

/* ---------- 顶栏 ---------- */
.app-header {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #D9E6FC 0%, #C9DAF8 100%);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    border-bottom: 1px solid rgba(43, 92, 255, 0.22);
    box-shadow: 0 6px 24px -18px rgba(16, 40, 90, 0.45);
}
.app-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 92, 255, 0.55), rgba(34, 211, 238, 0.55), transparent);
}
.logo-img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(43, 92, 255, 0.12), 0 6px 18px -10px rgba(43, 92, 255, 0.5);
}
.proj-name {
    width: 200px;
    padding: 7px 12px;
    border: 1px solid #D8E3F6;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    color: var(--xk-ink);
    outline: none;
    transition: all 0.2s ease;
}
.proj-name:focus {
    border-color: var(--xk-blue);
    box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14);
}
.h-sep, .t-sep {
    width: 1px;
    height: 22px;
    background: var(--xk-line);
    display: inline-block;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 9px;
    border: 1px solid rgba(43, 92, 255, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: #24406E;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    user-select: none;
}
.btn:hover {
    background: rgba(43, 92, 255, 0.08);
    border-color: rgba(43, 92, 255, 0.4);
    box-shadow: 0 6px 18px -10px rgba(43, 92, 255, 0.55);
}
/* 主按钮悬停保持渐变底 + 白字（避免被 .btn:hover 覆盖成浅底黑字） */
.btn-primary:hover {
    background-image: linear-gradient(135deg, #2B5CFF 0%, #4C86FF 58%, #22D3EE 145%);
    border: none;
    color: #fff;
    filter: brightness(1.06);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background-image: linear-gradient(135deg, #2B5CFF 0%, #4C86FF 58%, #22D3EE 145%);
    border: none;
    color: #fff;
    box-shadow: 0 8px 22px -10px rgba(43, 92, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 32px -10px rgba(43, 92, 255, 0.85);
}
.btn-ghost { background: rgba(255, 255, 255, 0.55); }
.btn-danger-ghost {
    color: #C0392B;
    border-color: rgba(220, 38, 38, 0.2);
}
.btn-danger-ghost:hover {
    background: rgba(220, 38, 38, 0.07);
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 6px 18px -10px rgba(220, 38, 38, 0.5);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ---------- 顶栏关键按钮强化（更明显、更协调） ---------- */
/* 新建项目：主行动按钮，加大加粗、加重投影 */
.app-header #btnNewProj {
    padding: 9px 20px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 10px;
    box-shadow: 0 10px 26px -10px rgba(43, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.app-header #btnNewProj:hover { box-shadow: 0 16px 34px -10px rgba(43, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
/* 登录：白底蓝框蓝字加粗，与主按钮形成主次分明的双强调 */
.app-header #btnLogin {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #1F45C8;
    background: #FFFFFF;
    border: 1.5px solid rgba(43, 92, 255, 0.55);
    border-radius: 10px;
    box-shadow: 0 6px 18px -12px rgba(43, 92, 255, 0.7);
}
.app-header #btnLogin:hover {
    background: rgba(43, 92, 255, 0.08);
    border-color: var(--xk-blue);
    color: #1A3BB0;
    box-shadow: 0 10px 24px -12px rgba(43, 92, 255, 0.9);
}
/* 顶栏其余按钮与项目名输入框：字号与按钮基线对齐（内边距保持紧凑避免换行） */
.app-header { gap: 5px; }
/* 浅蓝顶栏上的按钮反差增强：纯白底 + 蓝描边 */
.app-header .btn-ghost { background: #fff; border-color: rgba(43, 92, 255, 0.30); box-shadow: 0 2px 6px -2px rgba(30, 64, 150, 0.25); }
.app-header .btn-ghost:hover { background: #F4F8FF; }
.app-header .btn { padding: 7px 8px; font-size: 13.5px; }
.app-header .btn .fa { margin-right: 3px; }
.app-header .proj-name { font-size: 13.5px; padding: 8px 8px; width: 108px; }
.app-header .user-chip { font-size: 14px; padding: 5px 10px; gap: 4px; }
.app-header .h-sep { height: 24px; }
.app-header #btnNewProj { padding: 8px 12px; }
.app-header #btnLogin { padding: 7px 13px; }
/* 工具栏按钮与刻度切换同步放大 */
.toolbar .btn { font-size: 13.5px; }
.scale-ctl button { font-size: 13px; }

/* ---------- 工具栏 ---------- */
.toolbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid var(--xk-line);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
}
.zoom-ctl {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--xk-line);
}
.zoom-ctl input[type="range"] { width: 110px; accent-color: var(--xk-blue); }

/* 刻度切换（年/月/日/自适应） */
.scale-ctl {
    display: flex;
    border: 1px solid rgba(43, 92, 255, 0.18);
    border-radius: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
}
.scale-ctl button {
    padding: 7px 12px;
    border: none;
    background: transparent;
    font-size: 12.5px;
    color: #24406E;
    cursor: pointer;
    border-right: 1px solid var(--xk-line);
    transition: all 0.15s ease;
}
.scale-ctl button:last-child { border-right: none; }
.scale-ctl button:hover { background: rgba(43, 92, 255, 0.08); }
.scale-ctl button.active {
    background-image: linear-gradient(135deg, #2B5CFF 0%, #4C86FF 58%, #22D3EE 145%);
    color: #fff;
    font-weight: 600;
}
/* 开关按钮（连线 / 关键线路） */
.btn-on { color: var(--xk-blue); border-color: rgba(43, 92, 255, 0.4); background: rgba(43, 92, 255, 0.08); font-weight: 600; }
.btn-on:hover { background: rgba(43, 92, 255, 0.14); }
.btn-off { color: #8CA0BE; border-color: var(--xk-line); background: rgba(255, 255, 255, 0.6); font-weight: normal; }
/* 模式切换按钮（双代号网络图 ⇄ 横道图）：是导航动作而非状态开关，
   关闭态也保持蓝字描边的主按钮观感，避免浅灰显得突兀、与相邻按钮不协调 */
#btnNetwork.btn-off {
    color: var(--xk-blue, #2B5CFF);
    border-color: rgba(43, 92, 255, 0.4);
    background: #ffffff;
    font-weight: 600;
}
#btnNetwork.btn-off:hover { background: rgba(43, 92, 255, 0.08); }

/* ---------- 主体 ---------- */
.board-wrap {
    position: relative;
    z-index: 10;
    flex: 1;
    min-height: 0;
    padding: 12px 16px;
    display: flex;
}
.board {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 2px solid var(--c-frame,#111); /* 黑色外框：与表头/底部汇总条黑线闭合 */
    border-radius: 10px;
    box-shadow: 0 12px 32px -12px rgba(16, 40, 90, 0.22);
    overflow: hidden;
    position: relative;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}
.board::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(43, 92, 255, 0.55), rgba(34, 211, 238, 0.55), transparent 85%);
    pointer-events: none;
    z-index: 5;
}

/* 图表顶部项目大标题（与导出一致：黑色加粗居中） */
.chart-title {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #111;
    padding: 14px 16px 10px;
    background: #fff;
}
.chart-title:empty { display: none; }
.board-main {
    flex: 1;
    display: flex;
    min-height: 0;
    position: relative;
}

/* ---------- 左侧表格（经典报告版式，与导出 PDF 一致） ---------- */
.grid-table {
    width: max-content; /* 随可见列自适应（视图设置-表格列） */
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
}
.grid-head, .grid-row {
    display: grid;
    grid-template-columns: var(--grid-cols, 34px 220px 72px 72px 88px 88px);
    align-items: stretch;
}
.grid-head {
    position: sticky;
    top: 0;
    z-index: 6;
    height: 70px; /* 与右侧图头对齐：天数尺24 + 年22 + 月24 */
    background: #fff;
    border-top: 2px solid var(--c-frame,#111); /* 顶部框线，与导出 PDF 版式一致 */
    border-bottom: 2px solid var(--c-frame,#111);
}
.grid-head .gh {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px 8px;
    font-size: calc(var(--tbl-fs, 12px) + 1px);
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    border-right: 1px solid #e4e4e4;
}
.grid-head .gh:last-child { border-right: none; }
.grid-head .gh { white-space: nowrap; }
.grid-body { min-height: 100%; }

.grid-row {
    height: var(--row-h);
    border-bottom: 1px solid #e4e4e4;
    cursor: default;
    transition: background-color 0.12s ease;
}
.grid-row:hover { background: #f7f9fd; }
.grid-row.crit-row { background: #fff; }
.grid-row.crit-row .cell,
.grid-row.crit-row .name-text { color: var(--c-crit, #e23430); }
.grid-row.selected { background: rgba(43, 92, 255, 0.08); box-shadow: inset 3px 0 0 var(--xk-blue); }
.grid-row.summary-row { background: #fbfbfb; }
.grid-row.summary-row .cell-name { font-weight: 700; }

.cell {
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: var(--tbl-fs, 12px);
    white-space: nowrap;
    color: #111;
    border-right: 1px solid #e4e4e4;
    overflow: hidden;
    white-space: nowrap;
}
.cell:last-child { border-right: none; }
.cell-num { color: #555; font-size: var(--tbl-fs, 12px); justify-content: center; }
.cell-name { position: relative; padding-right: 24px; }
.cell-name .name-text {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
/* 行内编辑按钮（悬停/选中显示） */
.row-edit {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(43, 92, 255, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--xk-blue);
    font-size: 10.5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.grid-row:hover .row-edit, .grid-row.selected .row-edit { opacity: 1; }
.row-edit:hover { background: var(--xk-blue); color: #fff; border-color: var(--xk-blue); }
.cell-dur, .cell-pred { color: #111; }
.cell-pred { font-size: 12px; }
.cell-date { color: #111; font-variant-numeric: tabular-nums; }
.cell[contenteditable]:focus, .cell-edit:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(43, 92, 255, 0.35);
    outline: none;
    border-radius: 5px;
}
.cell-edit {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 2px 2px;
    outline: none;
    border-radius: 5px;
}
.cell-edit:focus { background: #fff; box-shadow: 0 0 0 2px rgba(43, 92, 255, 0.35); }
.cell-dur .cell-edit, .cell-date { text-align: center; }
.milestone-badge {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #F59E0B;
    transform: rotate(45deg);
    margin-right: 6px;
    border-radius: 2px;
    flex-shrink: 0;
}
.cell input[type="number"]::-webkit-outer-spin-button,
.cell input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.pred-err { color: #DC2626; }

/* ---------- 右侧横道图（经典报告版式，与导出 PDF 一致） ----------
   表头三级：天数刻度尺(.xkp-ruler) + 年(.xkp-years) + 月/日(.xkp-months)
   横道/括号/标签/今日竖带/连线 复用导出样式 .xkp-*，保证屏显 = 导出 */
.gantt-scroll {
    flex: 1;
    overflow: auto;
    position: relative;
    background: #fff;
    border-left: 1px solid var(--c-frame,#111);
}
.gantt-inner { position: relative; width: max-content; min-width: 100%; }

.gantt-head {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #fff;
    border-top: 2px solid var(--c-frame,#111); /* 顶部框线，与左侧表格对齐（同导出 PDF 版式） */
}
/* 表头单元格禁止压缩：宽度必须严格等于 天数×日宽，与横道刻度一致 */
.gantt-head .xkp-ycell, .gantt-head .xkp-mcell { flex-shrink: 0; }
/* 月/日单元格状态色（休息日/节假日/今日） */
.gantt-head .xkp-mcell.we { color: var(--c-holiday, #ff6b6b); background: color-mix(in srgb, var(--c-holiday, #ff6b6b) 10%, #fff); }
.gantt-head .xkp-mcell.ho { color: var(--c-holiday, #ff6b6b); background: color-mix(in srgb, var(--c-holiday, #ff6b6b) 16%, #fff); font-weight: 600; }
.gantt-head .xkp-mcell.td { color: #e23430; font-weight: 700; }

.gantt-body { position: relative; }
/* 连线层与今日带不拦截鼠标，保证横道行可点选/双击 */
.gantt-body .xkp-links, .gantt-body .xkp-todayband, .gantt-body .xkp-ms { pointer-events: none; }
.gantt-row {
    height: var(--row-h);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.gantt-row:hover { background: rgba(43, 92, 255, 0.035); }
.gantt-row.selected { background: rgba(43, 92, 255, 0.08); }
.gantt-row.crit-row { background: #fff; }

/* ---------- 空状态 ---------- */
.empty-hint {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--xk-muted);
    z-index: 8;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.55);
}
.empty-hint.show { display: flex; }
.empty-hint i { font-size: 40px; color: rgba(43, 92, 255, 0.35); }
.board-wrap.empty .board { visibility: hidden; }
.board-wrap.empty .empty-hint { display: flex; }

/* ---------- 状态栏 ---------- */
.statusbar {
    position: relative;
    z-index: 20;
    flex-shrink: 0; /* 固定在视口底部，不被挤出屏幕 */
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 7px 16px;
    font-size: 12.5px;
    color: #333;
    background: #fff;
    border-top: 1px solid var(--c-frame,#111);
}
.statusbar .fa { color: #666; }
.statusbar .text-xk-muted { color: #888 !important; }
.statusbar .text-xk-blue { color: #1d4ed8 !important; font-weight: 600; }

/* ---------- 图表底部汇总条（与导出 PDF 版式一致） ---------- */
.board-foot {
    flex-shrink: 0;
    display: flex;
    border-top: 2px solid var(--c-frame,#111);
    background: #fff;
    font-size: 12.5px;
    color: #111;
}
.board-foot span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-right: 1px solid var(--c-frame,#111);
    box-sizing: border-box;
    white-space: nowrap;
}
.board-foot span:last-child { border-right: none; }
.board-foot .bf-label { flex: 0 0 150px; font-weight: 700; }
.board-foot .bf-value { flex: 1 1 0; }
.board-foot .bf-total { font-weight: 700; }

/* 底部图例（v1.6.3 原版） */
.board-foot .bf-legend {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 6px 12px;
    font-size: 12px;
    color: #333;
    border-right: none;
}
.board-foot .bf-legend .lg {
    display: inline-block;
    width: 20px;
    height: 10px;
    margin: 0 3px 0 10px;
    border-radius: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.board-foot .bf-legend .lg:first-child { margin-left: 0; }
.board-foot .bf-legend .lg-normal { background: var(--c-normal, #2f6bf6); }
.board-foot .bf-legend .lg-crit { background: var(--c-crit, #e23430); }
.board-foot .bf-legend .lg-sum {
    width: 12px;
    height: 8px;
    background: none;
    border: 2px solid #111;
    border-radius: 0;
    border-bottom: none;
}
.board-foot .bf-legend .lg-ms {
    width: 10px;
    height: 10px;
    background: var(--c-crit, #e23430);
    transform: rotate(45deg);
    margin: 0 6px 0 8px;
}
.board-foot .bf-legend .lg-today { width: 5px; background: var(--c-today, #e23c3c); }
.board-foot .bf-legend .lg-hol { background: color-mix(in srgb, var(--c-holiday, #ff6b6b) 30%, #fff); }
body.v-hide-foot .board-foot .bf-legend { display: none; }
.board-foot .bf-legend.hidden { display: none !important; }
/* 页脚网络图专属图例色样（与浮动图例同款，格式与横道图例一致） */
.board-foot .bf-legend .nlg-line { width: 22px; height: 0; border-radius: 0; border-top: 2.5px solid var(--c-normal, #2f6bf6); background: none; }
.board-foot .bf-legend .nlg-crit { width: 22px; height: 0; border-top: 3px solid var(--c-crit, #e23430); }
.board-foot .bf-legend .nlg-wave { width: 24px; height: 6px; border-radius: 0; background: radial-gradient(circle at 3px 3px, transparent 2px, #0D9488 2.5px, #0D9488 3.5px, transparent 4px) repeat-x; background-size: 8px 6px; }
.board-foot .bf-legend .nlg-dummy { width: 22px; height: 0; border-radius: 0; border-top: 2px dashed #475569; background: none; }
.board-foot .bf-legend .nlg-callout { width: 18px; height: 10px; border-radius: 2px 2px 0 0; border-left: 1.5px solid #64748B; border-top: 1.5px solid #64748B; background: rgba(241, 245, 249, 0.9); }
.board-foot .bf-legend .nlg-node { width: 9px; height: 9px; margin: 0 6px 0 8px; border-radius: 50%; background: #fff; border: 2px solid var(--c-crit, #e23430); }

/* ---------- 弹窗（统一规格：固定尺寸 + 大字号 + 高对比，见文件末尾「弹窗统一规格」） ---------- */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(6, 16, 32, 0.56);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow: auto;
}
.modal-mask.hidden { display: none; }
.modal {
    --mw: 580px;
    width: var(--mw);
    min-width: var(--mw);
    max-width: none;
    max-height: calc(100vh - 64px);
    overflow: auto;
    background: #FFFFFF;
    border: 1px solid rgba(43, 92, 255, 0.16);
    border-radius: 20px;
    box-shadow: 0 48px 110px -34px rgba(0, 8, 30, 0.78), 0 0 0 5px rgba(43, 92, 255, 0.06);
    padding: 26px 30px 24px;
    position: relative;
    font-size: 15px;
    color: #16233C;
    animation: modalIn 0.25s cubic-bezier(0.22, 0.8, 0.3, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.modal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0F1B33;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E3EBFA;
}
.modal h3 i { color: var(--xk-blue); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14.5px; color: #33507E; margin-bottom: 6px; }
.field input[type="text"], .field input:not([type]), .field input[type="date"], .field input[type="number"], .field select, .field input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D8E3F6;
    border-radius: 10px;
    font-size: 15px;
    color: #16233C;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
}
.field input:focus {
    border-color: var(--xk-blue);
    box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14);
}
.field.inline { display: flex; align-items: center; gap: 8px; }
.field.inline input { width: auto; accent-color: var(--xk-blue); }
.field.inline span { margin: 0; }
.holiday-text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D8E3F6;
    border-radius: 10px;
    font-size: 12.5px;
    font-family: Consolas, monospace;
    outline: none;
    resize: vertical;
}
.holiday-text:focus { border-color: var(--xk-blue); box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14); }
.modal .modal-foot, .modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--xk-line);
}
.modal .btn { font-size: 15px; padding: 10px 22px; border-radius: 10px; }
.modal .btn-sm { font-size: 13.5px; padding: 5px 12px; border-radius: 8px; }

/* ---------- 任务编辑弹窗 ---------- */
.modal-wide { --mw: 780px; }
.task-no { font-size: 12px; color: var(--xk-muted); font-weight: 500; margin-left: 8px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.task-manual { margin-bottom: 6px; }
.task-manual span { font-size: 12px; color: #33507E; }
.pred-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 14px 0 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #33507E;
}
.pred-tip { font-size: 11.5px; font-weight: 400; color: var(--xk-muted); }
.pred-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
    max-height: 226px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #D8E3F6;
    border-radius: 10px;
    background: #FBFCFF;
}
.pred-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 7px;
    font-size: 12.5px;
    color: var(--xk-ink);
    cursor: pointer;
    min-width: 0;
}
.pred-item:hover { background: rgba(43, 92, 255, 0.08); }
.pred-item.on { background: rgba(43, 92, 255, 0.07); }
.pred-item input { accent-color: var(--xk-blue); flex-shrink: 0; }
.pred-no { min-width: 18px; text-align: right; color: #7286A6; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.pred-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred-tag {
    margin-left: auto;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 10.5px;
    color: var(--xk-blue);
    background: rgba(43, 92, 255, 0.1);
    flex-shrink: 0;
}
.pred-empty { grid-column: 1 / -1; margin: 8px; font-size: 12.5px; color: var(--xk-muted); }

/* ---------- toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 64px;
    transform: translateX(-50%) translateY(20px);
    z-index: 80;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #0C2244, #1E3A6E);
    box-shadow: 0 16px 40px -12px rgba(0, 8, 30, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EDF3FF; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9DBBFF, #5C8CFF);
    border-radius: 8px;
    border: 2px solid #EDF3FF;
}

/* ---------- 关键线路与连线：屏显直接复用导出样式 .xkp-bar-crit/.xkp-link/.xkp-arrow ---------- */

/* ---------- 打印 ---------- */
@media print {
    body { overflow: visible; background: #fff; }
    body::before { display: none; }
    .app-header, .toolbar, .statusbar, .zoom-ctl, .demo-bar, .site-footer { display: none !important; }
    .board-wrap { padding: 0; overflow: visible; }
    .board { box-shadow: none; border: 1px solid #999; overflow: visible; }
    .grid-body, .gantt-scroll { overflow: visible !important; max-height: none !important; }
    .gantt-head { position: static; }
}

/* ============================================================
   经典报告风导出视图（仿施工总计划蓝图：白底黑框 + 红/蓝横道）
   仅用于导出 PDF，不影响屏幕界面
   ============================================================ */
.xkp {
    position: fixed;
    left: -20000px;
    top: 0;
    width: max-content; /* 宽度按内容撑开：防止被视口宽度截断，保证右侧框线与汇总条闭合 */
    background: #ffffff;
    color: #111;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    z-index: -1;
}
.xkp-board { border: 3px solid #111; padding: 18px 22px 24px; background: #fff; }
.xkp-title {
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 6px 0 16px;
    color: #111;
}
.xkp-empty { padding: 40px; text-align: center; font-size: 14px; color: #666; }
.xkp-flex { display: flex; align-items: flex-start; }

/* ---- 底部汇总条 ---- */
.xkp-xfoot {
    display: flex;
    position: relative;
    z-index: 5; /* 提升绘制层级：防止定位的图体行白底盖住顶边框（图体区框线缺失的根因） */
    border: 1px solid var(--c-frame,#111); /* 顶边也是黑线：与表格/横道图的分界线闭合 */
    background: #fff;
    margin-top: -1px; /* 覆盖最后一行的浅灰行线 */
}
.xkp-xfoot span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: 13px;
    color: #111;
    box-sizing: border-box;
    border-right: 1px solid var(--c-frame,#111);
}
.xkp-xfoot span:last-child { border-right: none; }
.xkp-xf-l { flex: 0 0 170px; font-weight: 700; }
.xkp-xf-v { flex: 1 1 0; }

/* ---- 导出图纸页脚图例（横道图 / 网络图各一套，格式与页面底部图例一致） ---- */
.xkp-xfoot .xkp-xlegend {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: auto;
    gap: 4px;
    padding: 0 12px;
    font-size: 12px;
    color: #333;
    border-right: none;
    white-space: nowrap;
}
.xkp-xfoot .xkp-xlegend .xl {
    display: inline-block;
    width: 20px;
    height: 10px;
    margin: 0 3px 0 10px;
    border-radius: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.xkp-xfoot .xkp-xlegend .xl:first-child { margin-left: 0; }
.xkp-xfoot .xkp-xlegend .xl-normal { background: var(--c-normal, #2f6bf6); }
.xkp-xfoot .xkp-xlegend .xl-crit { background: var(--c-crit, #e23430); }
.xkp-xfoot .xkp-xlegend .xl-sum { width: 12px; height: 8px; background: none; border: 2px solid #111; border-radius: 0; border-bottom: none; }
.xkp-xfoot .xkp-xlegend .xl-ms { width: 10px; height: 10px; background: var(--c-crit, #e23430); transform: rotate(45deg); margin: 0 6px 0 8px; }
.xkp-xfoot .xkp-xlegend .xl-today { width: 5px; background: var(--c-today, #e23c3c); }
.xkp-xfoot .xkp-xlegend .xl-hol { background: color-mix(in srgb, var(--c-holiday, #ff6b6b) 30%, #fff); }
/* 网络图导出图例色样 */
.xkp-xfoot .xkp-xlegend .xl-net { width: 22px; height: 0; border-radius: 0; border-top: 2.5px solid var(--c-normal, #2f6bf6); background: none; }
.xkp-xfoot .xkp-xlegend .xl-net-crit { border-top: 3px solid var(--c-crit, #e23430); }
.xkp-xfoot .xkp-xlegend .xl-net-wave { width: 24px; height: 6px; border: none; border-radius: 0; background: radial-gradient(circle at 3px 3px, transparent 2px, #0D9488 2.5px, #0D9488 3.5px, transparent 4px) repeat-x; background-size: 8px 6px; }
.xkp-xfoot .xkp-xlegend .xl-net-dummy { width: 22px; height: 0; border: none; border-top: 2px dashed #475569; border-radius: 0; }
.xkp-xfoot .xkp-xlegend .xl-calloutbox { width: 18px; height: 10px; border-left: 1.5px solid #64748B; border-top: 1.5px solid #64748B; background: rgba(241, 245, 249, 0.9); border-radius: 2px 2px 0 0; }
.xkp-xfoot .xkp-xlegend .xl-node { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--c-crit, #e23430); }

/* ---- 左侧表格 ---- */
.xkp-table { flex-shrink: 0; border-top: 1px solid #111; border-left: 1px solid #111; }
.xkp-row {
    display: flex;
    align-items: stretch;
    height: 32px;
    border-bottom: 1px solid #e4e4e4;
    box-sizing: border-box;
}
.xkp-row.xkp-thead {
    height: 73px; /* 与右侧图头对齐：天数尺24(含边线) + 年23 + 月26；导出前还有运行时微校正 */
    font-weight: 700;
    border-bottom: 2px solid var(--c-frame,#111);
}
.xkp-c {
    display: flex;
    align-items: center;
    border-right: 1px solid #e4e4e4;
    padding: 0 6px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
}
.xkp-thead .xkp-c {
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}
.xkp-c1 { width: 34px; justify-content: center; }
.xkp-c2 { width: 320px; } /* 实际宽度由 buildExportBoard 按最长任务名内联覆盖 */
.xkp-c3 { width: 72px; justify-content: center; }
.xkp-c4 { width: 72px; justify-content: center; }
.xkp-c5 { width: 88px; justify-content: center; }
.xkp-c6 { width: 88px; justify-content: center; border-right: none; }
.xkp-row.xkp-sum .xkp-c { font-weight: 700; }
.xkp-row.xkp-crit .xkp-c { background: #fff; color: var(--c-crit, #e23430); }
.xkp-caret { color: #555; margin-right: 4px; font-weight: 700; flex-shrink: 0; }
/* 注意：名称列不能加 overflow:hidden/text-overflow:ellipsis，
   html2canvas 会按行框垂直裁切导致横笔画丢失（列宽已按最长名称自适应） */
.xkp-name { white-space: nowrap; }

/* ---- 右侧横道图 ---- */
.xkp-gantt { flex-shrink: 0; border-top: 1px solid #111; border-left: 1px solid #111; border-right: 1px solid #111; }
.xkp-ruler { position: relative; height: 24px; border-bottom: 1px solid #888; box-sizing: border-box; }
.xkp-rnum {
    position: absolute;
    bottom: 5px;
    transform: translateX(-50%);
    font-size: 10px;
    color: #333;
}
.xkp-rtick { position: absolute; bottom: 0; width: 1px; height: 5px; background: #888; }
.xkp-years { display: flex; border-bottom: 1px solid #111; }
.xkp-ycell {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    height: 22px;
    line-height: 22px;
    border-left: 1px solid #999;
    box-sizing: border-box;
}
.xkp-ycell:first-child { border-left: none; }
.xkp-months { display: flex; border-bottom: 2px solid #111; }
.xkp-mcell {
    text-align: center;
    font-size: 12px;
    height: 24px;
    line-height: 24px;
    border-left: 1px solid #bbb;
    box-sizing: border-box;
}
.xkp-mcell:first-child { border-left: none; }
.xkp-banner {
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: #101828;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}
.xkp-body { position: relative; overflow: visible; }
.xkp-grow {
    position: absolute;
    left: 0;
    right: 0;
    height: 32px;
    border-bottom: 1px solid #f0f0f0;
    box-sizing: border-box;
    background: #fff;
}
.xkp-grow-crit { background: #fff; }
.xkp-bar {
    position: absolute;
    top: calc((var(--row-h, 32px) - var(--bar-h, 12px)) / 2);
    height: var(--bar-h, 12px);
    border-radius: 2px;
    background: var(--c-normal, #2f6bf6);
    z-index: 3;
}
.xkp-bar-crit { background: var(--c-crit, #e23430); }
.xkp-barlabel {
    position: absolute;
    font-size: 11px;
    color: #222;
    white-space: nowrap;
    z-index: 4;
    line-height: 14px;
}
.xkp-ms { position: absolute; z-index: 3; }
.xkp-bracket {
    position: absolute;
    height: 9px;
    border: 3px solid var(--c-parent,#111);
    border-bottom: none;
    box-sizing: border-box;
    z-index: 3;
    background: transparent;
}
.xkp-sumlabel {
    position: absolute;
    font-size: 12px;
    font-weight: 700;
    color: var(--c-parent,#111);
    white-space: nowrap;
    z-index: 4;
    line-height: 14px;
}
.xkp-links { position: absolute; left: 0; top: 0; z-index: 2; }
.xkp-link { fill: none; stroke: #555; stroke-width: 1; }
.xkp-link.crit { stroke: var(--c-crit, #e23430); stroke-width: 1.5; }
.xkp-arrow { fill: #555; }
.xkp-arrow.crit { fill: var(--c-crit, #e23430); }
.xkp-todayband {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    background: var(--c-today, #e23c3c);
    opacity: 0.15;
    z-index: 1;
}

/* ---------- 视图设置 / 高级设置弹窗 ---------- */
.settabs {
    display: flex;
    gap: 4px;
    background: #f1f4fa;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}
.settabs button {
    flex: 1;
    padding: 8px 6px;
    font-size: 13px;
    color: #44506a;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.settabs button:hover { color: #111; }
.settabs button.active { background: #fff; color: #111; font-weight: 700; box-shadow: 0 2px 8px -2px rgba(20, 40, 90, 0.18); }
.setpane { display: none; }
.setpane.active { display: block; }
.settip { margin-top: 12px; font-size: 12px; color: #8b97ad; }
.setpane .field-row { display: flex; gap: 28px; flex-wrap: wrap; }
.setpane .field-row .field { flex: 0 0 auto; }
.modal-set { --mw: 900px; }

.seg {
    display: inline-flex;
    border: 1px solid #d5dced;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.seg button {
    padding: 6px 18px;
    font-size: 13px;
    background: #fff;
    border: none;
    color: #44506a;
    cursor: pointer;
}
.seg button + button { border-left: 1px solid #d5dced; }
.seg button.active { background: #e8efff; color: #1d4ed8; font-weight: 700; }

.stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5dced;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.stepper input {
    width: 64px;
    padding: 6px 8px;
    border: none;
    outline: none;
    font-size: 13px;
    text-align: center;
    -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button { display: none; }
.stepper button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f6f8fc;
    color: #44506a;
    font-size: 14px;
    cursor: pointer;
}
.stepper button:hover { background: #e8efff; color: #1d4ed8; }

.col-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }

.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}
.color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-row .color-name {
    width: 92px;
    font-size: 13px;
    color: #333;
    flex-shrink: 0;
}
.color-row input[type="color"] {
    width: 120px;
    height: 28px;
    padding: 2px 3px;
    border: 1px solid #d5dced;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.color-row input[type="text"] {
    width: 84px;
    padding: 5px 8px;
    border: 1px solid #d5dced;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}
.color-row input[type="text"]:focus { border-color: var(--xk-blue); }

.lang-sel {
    padding: 7px 10px;
    border: 1px solid #d5dced;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
}

/* ---------- 视图开关（body 级） ---------- */
body.v-no-today .xkp-todayband { display: none !important; }
body.v-no-weekend .xkp-mcell.we,
body.v-no-weekend .xkp-mcell.ho { color: inherit !important; background: none !important; font-weight: inherit !important; }
body.v-no-ruler .xkp-ruler { display: none !important; }
body.v-no-barlabel .xkp-barlabel { display: none !important; }
body.v-hide-foot .board-foot { display: none !important; }
body.v-hide-status .statusbar { display: none !important; }
body.v-hide-no .cell-num, body.v-hide-no .gh-no { display: none !important; }
body.v-hide-dur .cell-dur, body.v-hide-dur .gh-dur { display: none !important; }
body.v-hide-pred .cell-pred, body.v-hide-pred .gh-pred { display: none !important; }
body.v-hide-start .cell-start, body.v-hide-start .gh-start { display: none !important; }
body.v-hide-end .cell-end, body.v-hide-end .gh-end { display: none !important; }

/* ================= 用户 / 登录 / 项目列表 ================= */
.user-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    background: #F2F6FF; border: 1px solid #D8E2F5;
    font-size: 14px; color: #0F1B33; white-space: nowrap;
}
.user-chip .fa-user-circle-o { color: var(--xk-blue); }
.role-badge { padding: 2px 9px; border-radius: 999px; font-size: 12px; color: #fff; }
.rb-owner  { background: #7C3AED; }
.rb-admin  { background: #E23430; }
.rb-vip    { background: #D97706; }
.rb-member { background: #7286A6; }
.quota-info { color: #7286A6; font-size: 12.5px; }
.btn-sm { padding: 2px 10px; font-size: 12px; }

.auth-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid #E8EEF8; }
.auth-tabs button {
    padding: 8px 18px; border: none; background: none; cursor: pointer;
    font-size: 14px; color: #7286A6; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tabs button.active { color: var(--xk-blue); border-bottom-color: var(--xk-blue); font-weight: 600; }
.auth-err { color: #E23430; font-size: 12.5px; margin: 4px 0 8px; }
#mAuth .modal { --mw: 470px; }

.proj-new { display: flex; gap: 8px; margin-bottom: 12px; }
.proj-new input {
    flex: 1; padding: 7px 10px; border: 1px solid #C9D6EC; border-radius: 6px; font-size: 13px;
}
.proj-new input:focus { outline: none; border-color: var(--xk-blue); }
.proj-list { max-height: 380px; overflow: auto; border: 1px solid #E8EEF8; border-radius: 8px; }
.proj-empty { padding: 26px; text-align: center; color: #7286A6; font-size: 13px; }
.proj-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 14px; border-bottom: 1px solid #EEF2F9;
}
.proj-item:last-child { border-bottom: none; }
.proj-item.cur { background: #F2F6FF; }
.pi-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pi-name { font-size: 13.5px; font-weight: 600; color: #0F1B33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-cur { font-size: 11px; color: var(--xk-blue); background: #E3EBFF; border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-weight: 400; }
.pi-time { font-size: 11.5px; color: #97A7C2; }
.pi-ops { display: flex; gap: 6px; flex-shrink: 0; }
.pi-rename { width: 100%; padding: 4px 8px; border: 1px solid var(--xk-blue); border-radius: 5px; font-size: 13px; }
.pi-rename:focus { outline: none; }

/* ================= 演示主页（免登录） / 新建项目 ================= */
.brand-home { display: inline-flex; flex-shrink: 0; border-radius: 10px; cursor: pointer; }
.brand-home:hover .logo-img { box-shadow: 0 0 0 2px rgba(43, 92, 255, 0.35), 0 8px 20px -10px rgba(43, 92, 255, 0.6); }
.brand-home .logo-img { transition: box-shadow 0.18s ease; }

.demo-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 6px 16px;
    background: linear-gradient(90deg, #FFF7E6, #FFFBF2);
    border-bottom: 1px solid #F2DFAE;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8A6100;
}
.demo-bar > i { color: #D79400; }
.demo-bar #demoBarText { flex: 1; min-width: 0; }
.demo-bar b { color: #7A5200; }
.demo-bar .btn-sm { flex-shrink: 0; }

/* 演示模式提示弹窗 */
.demo-hint-text {
    font-size: 13.5px;
    color: #46596F;
    line-height: 1.9;
    padding: 2px 2px 14px;
}

/* 演示模式下禁止编辑的表单元素观感（仅访客与普通用户，站长不锁定） */
body.demo-mode:not(.demo-owner) #projName { background: #F5F7FB; color: #7286A6; }

/* 长提示文案不撑破屏幕 */
.toast { max-width: min(620px, 92vw); line-height: 1.6; text-align: center; }

/* ================= 站点页脚 ================= */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 18px 16px 22px;
    background: linear-gradient(180deg, #0B1D38, #08172C);
    text-align: center;
}
.site-footer .sf-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 8px;
}
.site-footer .sf-links a {
    color: #9FB2D4;
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.18s ease;
}
.site-footer .sf-links a:hover { color: #D8E4FF; }
.site-footer .sf-sep {
    width: 1px;
    height: 11px;
    background: #33507E;
    display: inline-block;
}
.site-footer .sf-copy {
    color: #6C82A8;
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* 顶栏响应式：<1680px 时次要按钮只显示图标（悬停见 title 提示），保证单行不换行 */
@media (max-width: 1839px) {
    .app-header .btn .bt { display: none; }
}

/* ============================================================
   弹窗统一规格（全站）：固定尺寸、大字号、高对比、醒目
   1) 宽度写死 px，不随窗口缩放（窄屏时由遮罩层滚动，不压缩内容）
   2) 字号统一放大，标题 20px / 正文 15~16px / 按钮 15px
   ============================================================ */
.modal h3 { font-size: 20px; }
/* 输入框 / 下拉框加明显框线（默认 #D8E3F6 太浅，浅屏下几乎看不见） */
.modal .field input[type="text"], .modal .field input:not([type]), .modal .field input[type="date"],
.modal .field input[type="number"], .modal .field select,
.modal .field input[type="password"], .modal .holiday-text, .modal .proj-new input {
    border: 1.5px solid #A9BFE3 !important;
    background: #FDFEFF;
}
.modal .field input:focus, .modal .field select:focus, .modal .holiday-text:focus {
    border-color: var(--xk-blue) !important;
    box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14);
}
.modal .settabs button { font-size: 14.5px; padding: 9px 8px; }
.modal .settip { font-size: 13.5px; line-height: 1.7; }
/* 找回密码第二步：用户名 / 安全问题 加粗突出 */
.modal .settip b {
    font-weight: 700;
    color: #16233C;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.modal .seg button { font-size: 14.5px; padding: 7px 20px; }
.modal .stepper input { font-size: 14.5px; width: 72px; padding: 7px 8px; }
.modal .stepper button { font-size: 16px; width: 34px; height: 34px; }
.modal .color-row .color-name { font-size: 14px; width: 104px; }
.modal .color-row input[type="text"] { font-size: 13.5px; }
.modal .lang-sel { font-size: 14.5px; padding: 9px 12px; }
.modal .holiday-text { font-size: 14.5px; }
.modal .pred-head { font-size: 14.5px; }
.modal .pred-tip { font-size: 13px; }
.modal .pred-item { font-size: 14.5px; padding: 5px 8px; }
.modal .pred-empty { font-size: 14px; }
.modal .task-no { font-size: 14px; }
.modal .auth-tabs button { font-size: 16px; padding: 10px 22px; }
.modal .auth-err { font-size: 14px; }
.modal .demo-hint-text { font-size: 16px; line-height: 1.95; }
.modal .field.inline span { font-size: 15px; }
.modal .proj-new input { font-size: 14.5px; padding: 9px 12px; }
.modal .proj-item { padding: 12px 16px; }
.modal .pi-name { font-size: 15px; }
.modal .pi-time { font-size: 12.5px; }
.modal .proj-empty { font-size: 14px; }
.modal .btn-sm { font-size: 13.5px; padding: 5px 12px; }

/* 安全问题补填弹窗文案 */
.sec-tip {
    font-size: 16px;
    line-height: 1.95;
    color: #1E3357;
    background: linear-gradient(180deg, #F1F6FF, #E9F1FF);
    border: 1px solid #CBDCFB;
    border-left: 4px solid var(--xk-blue);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.sec-tip strong { color: #1F45C8; }
.sec-tip .sec-tip-sub { font-size: 14.5px; color: #4B6489; }
.sec-warn { color: #C0392B; }
.sec-ok { color: #17864A; }
.sec-line { font-size: 13.5px; color: #8B97AD; margin: 2px 0 12px; }
.sec-line a { color: var(--xk-blue); font-weight: 700; }

/* 轻提示（toast）同步加大，避免太小看不清 */
.toast { font-size: 15px; padding: 12px 24px; border-radius: 12px; }

/* ============================================================
 * 2.2.0-dev 新增：多选 / 行内编辑 / 查找 / 隐藏 / 网络图
 * ============================================================ */

/* 保存状态 chip */
.save-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    color: #6B7C93;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--xk-line);
    white-space: nowrap;
}
.save-chip .fa { font-size: 8px; color: #9AA9BF; }
.save-chip.saving { color: #B26A00; background: #FFF7E6; border-color: #FFE0A3; }
.save-chip.saving .fa { color: #E69A00; animation: xz-spin 1.1s linear infinite; }
.save-chip.dirty { color: #9A5B00; background: #FFF8E8; border-color: #FFE2AE; }
.save-chip.dirty .fa { color: #E69A00; }
.save-chip.saved { color: #17864A; background: #F0FAF4; border-color: #BFE7CF; }
.save-chip.saved .fa { color: #22A45D; }
.save-chip.error { color: #C0392B; background: #FFF3F1; border-color: #F6C9C2; }
.save-chip.error .fa { color: #E23430; }
@keyframes xz-spin { to { transform: rotate(360deg); } }

/* 多选 */
.grid-row.selected, .gantt-row.selected { background: rgba(43, 92, 255, 0.10); }
.grid-row.active, .gantt-row.active { box-shadow: inset 3px 0 0 var(--xk-blue); }
.grid-row.selected .cell-num { color: var(--xk-blue); font-weight: 700; }
.grid-row.hidden-row { opacity: .45; } /* 仅查找包含隐藏行时出现 */

/* 折叠箭头 */
.collapse-btn {
    width: 16px;
    height: 16px;
    margin-right: 3px;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.collapse-btn:hover { color: var(--xk-blue); }
.collapse-btn .fa { transition: transform .12s ease; }
.collapse-btn.collapsed .fa { transform: rotate(-90deg); }
.collapse-spacer { display: inline-block; width: 19px; flex-shrink: 0; }

/* 行内日期 / 名称编辑 & 轻量日期选择器 */
.cell-name .name-input {
    width: 100%;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: #fff;
    padding: 2px 4px;
    border-radius: 5px;
    box-shadow: 0 0 0 2px rgba(43, 92, 255, .35);
}
.cell-date {
    cursor: pointer;
    position: relative;
    justify-content: center;
    gap: 3px;
    transition: background-color 0.12s ease, color 0.12s ease;
    user-select: none;
}
.cell-date:hover {
    background: rgba(43, 92, 255, 0.08);
    color: var(--xk-blue);
}
.cell-date.summary-date {
    cursor: default;
    color: #555;
}
.cell-date.summary-date:hover {
    background: transparent;
    color: #555;
}
.cell-date.pop-active {
    background: #EBF2FF !important;
    box-shadow: inset 0 0 0 1.5px var(--xk-blue);
    color: var(--xk-blue);
    font-weight: 600;
}
.cell-date .date-constraint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    padding: 1.5px 3.5px;
    border-radius: 4px;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    margin-left: 2px;
    flex-shrink: 0;
}

/* Excel 式隐藏行间隙指示器 */
.cell-num {
    position: relative;
    font-variant-numeric: tabular-nums;
}
.hidden-gap-indicator {
    position: absolute;
    left: 0;
    right: 0;
    height: 9px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(43, 92, 255, 0.18));
    border-top: 1px dashed #D97706;
    border-bottom: 1px dashed #D97706;
    color: #B45309;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.15s ease;
}
.hidden-gap-indicator.gap-top { top: 0; }
.hidden-gap-indicator.gap-bottom { bottom: 0; }
.hidden-gap-indicator:hover {
    height: 15px;
    background: #FEF3C7;
    color: #92400E;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

/* 轻量日期选择浮层 (Quick Date Popover) */
.date-popover {
    position: fixed;
    z-index: 260;
    width: 308px;
    background: #FFFFFF;
    border: 1.5px solid rgba(43, 92, 255, 0.28);
    border-radius: 14px;
    box-shadow: 0 22px 54px -12px rgba(15, 27, 51, 0.36), 0 0 0 4px rgba(43, 92, 255, 0.06);
    padding: 12px 14px 14px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #0F1B33;
    user-select: none;
    animation: popFadeIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}
.date-popover.hidden { display: none !important; }
@keyframes popFadeIn {
    from { opacity: 0; transform: translateY(4px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #E6EEFA;
}
.dp-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F1B33;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: #EEF4FF;
    color: #2B5CFF;
    flex-shrink: 0;
}
.dp-badge.dp-badge-end {
    background: #ECFDF5;
    color: #0D9488;
}
.dp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.dp-month-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #16233C;
    font-variant-numeric: tabular-nums;
}
.dp-nav-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dp-icon-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid #DCE6F7;
    background: #F8FAFF;
    color: #33507E;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.12s ease;
}
.dp-icon-btn:hover {
    background: #2B5CFF;
    color: #fff;
    border-color: #2B5CFF;
}
.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #7286A6;
    margin-bottom: 4px;
}
.dp-weekdays span.we { color: #E23430; }
.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 10px;
}
.dp-day {
    height: 30px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #16233C;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.1s ease;
    padding: 0;
}
.dp-day:hover:not(:disabled) {
    background: #EEF4FF;
    border-color: #B8CFFF;
    color: #1D4ED8;
    font-weight: 700;
}
.dp-day.other-month { color: #B0C0D8; }
.dp-day.is-weekend { color: #DC2626; }
.dp-day.is-holiday {
    background: #FEF2F2;
    color: #DC2626;
}
.dp-day.in-range {
    background: rgba(43, 92, 255, 0.08);
}
.dp-day.is-today {
    border-color: #F59E0B;
    font-weight: 700;
}
.dp-day.is-selected {
    background: #2B5CFF !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 3px 10px -2px rgba(43, 92, 255, 0.65);
}
.dp-day:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}
.dp-info-box {
    background: #F6F9FF;
    border: 1px solid #DCE7F9;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12px;
    color: #33507E;
    margin-bottom: 8px;
    line-height: 1.5;
}
.dp-info-box b {
    color: #0F1B33;
    font-variant-numeric: tabular-nums;
}
.dp-manual-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.dp-manual-row input[type="date"] {
    flex: 1;
    padding: 5px 8px;
    border: 1px solid #C5D5F0;
    border-radius: 7px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    outline: none;
}
.dp-manual-row input[type="date"]:focus {
    border-color: var(--xk-blue);
}
.dp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.dp-foot .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 7px;
}

/* 批量新建弹窗：多行粘贴模式与预览 */
.batch-tabs {
    display: flex;
    gap: 6px;
    background: #EEF3FC;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.batch-tabs button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #445675;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.batch-tabs button.active {
    background: #fff;
    color: var(--xk-blue);
    font-weight: 700;
    box-shadow: 0 2px 8px -2px rgba(20, 45, 100, 0.18);
}
.batch-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #A9BFE3;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: 'Microsoft YaHei', Consolas, monospace;
    line-height: 1.6;
    color: #16233C;
    background: #FDFEFF;
    outline: none;
    resize: vertical;
}
.batch-textarea:focus {
    border-color: var(--xk-blue);
    box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14);
}
.batch-preview {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 9px;
    background: #F4F8FF;
    border: 1px solid #D5E3FA;
    font-size: 12.5px;
    color: #24406E;
    max-height: 128px;
    overflow-y: auto;
}
.batch-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.batch-preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #CBDCFB;
    font-size: 12px;
    color: #16233C;
}
.batch-preview-tag b {
    color: var(--xk-blue);
    font-variant-numeric: tabular-nums;
}

.grid-row.find-hit { background: #FFF3B0 !important; }
.grid-row.find-current { background: #FFD666 !important; box-shadow: inset 3px 0 0 #C78100; }

/* 查找条 */
.findbar {
    position: relative;
    z-index: 19;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 16px;
    background: #FFFDF5;
    border-bottom: 1px solid #F0DFAE;
    box-shadow: 0 4px 12px -10px rgba(0, 0, 0, .35);
}
.findbar.hidden { display: none; }
.findbar .findbar-ico { color: #B8860B; }
.findbar input[type="text"] {
    min-width: 190px;
    padding: 6px 10px;
    border: 1px solid #E6D6A8;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #fff;
}
.findbar input[type="text"]:focus { border-color: #D9A400; box-shadow: 0 0 0 2px rgba(217, 164, 0, .12); }
.findbar input.hidden { display: none; }
.find-count { min-width: 52px; text-align: center; font-size: 12.5px; color: #8A6D1D; font-variant-numeric: tabular-nums; }
.find-opt { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #6B5A2A; white-space: nowrap; cursor: pointer; }

/* ============================================================
   斑马式工程常用时标双代号网络图（支持与左侧表格同屏联动或全屏展开）
   ============================================================ */
body.network-mode.network-fullscreen .grid-table { display: none !important; }
body.network-mode.network-fullscreen .gantt-scroll { border-left: none; }
body.network-mode .gantt-head { height: auto; }

.network-body {
    position: relative;
    background: #FFFFFF;
    user-select: none;
}
.network-controls {
    position: sticky;
    left: 12px;
    top: 8px;
    z-index: 12;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 8px 12px 2px 12px;
    pointer-events: none;
}
.network-toolbar,
.network-legend {
    pointer-events: auto;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #D5E2F6;
    box-shadow: 0 4px 16px -4px rgba(15, 27, 51, 0.14), 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 12px;
    color: #334155;
}
.network-toolbar .btn-xs {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #1E3A8A;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.14s ease;
}
.network-toolbar .btn-xs:hover {
    background: #EEF4FF;
    border-color: #2B5CFF;
}
.network-toolbar .btn-xs.btn-on {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #1D4ED8;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
}
.network-toolbar .btn-xs.btn-off {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #64748B;
}
.network-toolbar .lg-item,
.network-legend .lg-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.network-toolbar .lg-line,
.network-legend .lg-line {
    display: inline-block;
    width: 22px;
    height: 0;
    border-top: 2.5px solid var(--c-normal, #2f6bf6);
}
.network-toolbar .lg-crit,
.network-legend .lg-crit {
    border-top: 3px solid var(--c-crit, #e23430);
}
.network-toolbar .lg-wave,
.network-legend .lg-wave {
    display: inline-block;
    width: 24px;
    height: 6px;
    background: radial-gradient(circle at 3px 3px, transparent 2px, #0D9488 2.5px, #0D9488 3.5px, transparent 4px) repeat-x;
    background-size: 8px 6px;
}
.network-toolbar .lg-dummy,
.network-legend .lg-dummy {
    display: inline-block;
    width: 22px;
    height: 0;
    border-top: 2px dashed #475569;
}
.network-legend .lg-callout {
    display: inline-block;
    width: 18px;
    height: 10px;
    border-left: 1.5px solid #64748B;
    border-top: 1.5px solid #64748B;
    background: rgba(241, 245, 249, 0.9);
    border-radius: 2px 2px 0 0;
}
.network-toolbar .net-toggle-btn {
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #1E3A8A;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
}
.network-toolbar .net-toggle-btn:hover {
    background: #EEF4FF;
    border-color: #2B5CFF;
}

.network-node { cursor: pointer; }
.network-node circle {
    fill: #FFFFFF;
    stroke: #1E3A6E;
    stroke-width: 1.7;
    transition: transform 0.12s ease, stroke-width 0.12s ease;
}
.network-node.event text {
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
    fill: #0F1B33;
    text-anchor: middle;
    dominant-baseline: central;
    font-weight: 700;
}
.network-node.event.crit circle {
    stroke: var(--c-crit, #e23430);
    stroke-width: 2.4;
    fill: #FFF5F5;
}
.network-node.event.crit text {
    fill: var(--c-crit, #e23430);
}
.network-node.event.terminal circle,
.network-node.event.start-node circle,
.network-node.event.finish-node circle {
    stroke-width: 2.6;
}

.network-activity {
    cursor: pointer;
}
.network-activity .act-hit {
    stroke: transparent;
    stroke-width: 18;
    fill: none;
}
.network-activity .act-line {
    stroke: var(--c-normal, #2f6bf6);
    stroke-width: 2.5;
    fill: none;
    transition: stroke-width 0.12s ease;
}
.network-activity.crit .act-line {
    stroke: var(--c-crit, #e23430);
    stroke-width: 3.2;
}
.network-activity .act-label {
    font-size: 11px;
    font-weight: 600;
    fill: #0F1B33;
    pointer-events: none;
}
.network-activity.crit .act-label {
    fill: var(--c-crit, #e23430);
    font-weight: 700;
}
.network-activity .act-dur {
    font-size: 10px;
    fill: #475569;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.network-activity.crit .act-dur {
    fill: var(--c-crit, #e23430);
    font-weight: 600;
}

/* 短工期工作：折线引出线标注 + 浅底衬托胶囊 */
.network-activity .act-callout-line {
    fill: none;
    stroke: #64748B;
    stroke-width: 1.25;
    pointer-events: none;
}
.network-activity.crit .act-callout-line {
    stroke: var(--c-crit, #e23430);
    stroke-width: 1.35;
}
.network-activity .act-callout-dot {
    fill: var(--c-normal, #2f6bf6);
    stroke: #fff;
    stroke-width: 1;
    pointer-events: none;
}
.network-activity.crit .act-callout-dot {
    fill: var(--c-crit, #e23430);
}
.network-activity .act-callout-bg {
    fill: rgba(248, 250, 252, 0.94);
    stroke: #CBD5E1;
    stroke-width: 1;
    transition: stroke 0.12s ease, fill 0.12s ease, filter 0.12s ease;
}
.network-activity.crit .act-callout-bg {
    fill: rgba(255, 245, 245, 0.95);
    stroke: rgba(226, 52, 48, 0.48);
    stroke-width: 1.1;
}
.network-activity:hover .act-callout-bg,
.network-activity.selected .act-callout-bg,
.network-activity.active .act-callout-bg {
    fill: #FFFFFF;
    stroke: var(--xk-blue);
    stroke-width: 1.5;
    filter: drop-shadow(0 3px 6px rgba(15, 27, 51, 0.16));
}
.network-activity.crit:hover .act-callout-bg,
.network-activity.crit.selected .act-callout-bg {
    stroke: var(--c-crit, #e23430);
}

.network-activity:hover .act-line,
.network-activity.selected .act-line,
.network-activity.active .act-line {
    stroke-width: 4.2;
    filter: drop-shadow(0 2px 4px rgba(43, 92, 255, 0.38));
}
.network-activity.crit:hover .act-line,
.network-activity.crit.selected .act-line {
    filter: drop-shadow(0 2px 4px rgba(226, 52, 48, 0.45));
}
.network-activity.selected .act-label,
.network-activity.active .act-label {
    font-weight: 800;
    text-decoration: underline;
}
.network-activity.dimmed,
.network-link.dimmed,
.network-node.dimmed {
    opacity: 0.22;
    transition: opacity 0.15s ease;
}

.network-link {
    stroke: #475569;
    stroke-width: 1.35;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width 0.12s ease, opacity 0.12s ease, filter 0.12s ease;
}
.network-link.crit {
    stroke: var(--c-crit, #e23430);
    stroke-width: 1.95;
}
.network-link.dummy {
    stroke-dasharray: 5 3.5;
}
.network-link.float {
    stroke: #0D9488;
    stroke-width: 1.55;
    fill: none;
}
.network-link-dot {
    fill: #64748B;
    pointer-events: none;
}
.network-link-dot.crit {
    fill: var(--c-crit, #e23430);
}
.network-link-group.hover-active .network-link {
    stroke-width: 2.35;
    filter: drop-shadow(0 1px 3px rgba(43, 92, 255, 0.35));
}
.network-link-group.hover-active .network-link.crit {
    stroke-width: 2.6;
    filter: drop-shadow(0 1px 4px rgba(226, 52, 48, 0.45));
}
.network-link-group.hover-dimmed {
    opacity: 0.25;
}
.network-ff-text,
.network-ff-label {
    font-size: 9.5px;
    fill: #0D9488;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 2.5px;
    stroke-linejoin: round;
}
.network-lag-text {
    font-size: 9.5px;
    fill: #64748B;
    font-weight: 600;
    pointer-events: none;
}
.network-arrow { fill: #475569; }
.network-arrow.crit { fill: var(--c-crit, #e23430); }
.network-arrow.float-arrow { fill: #0D9488; }
.network-bgline { stroke: #F1F5F9; stroke-width: 1; }
.network-bgline.month { stroke: #CBD5E1; stroke-width: 1.1; }
.network-lane-line { stroke: #F1F5F9; stroke-width: 1; stroke-dasharray: 2 4; }
.network-empty { padding: 48px; text-align: center; color: #7286A6; font-size: 14px; }

/* 网络图悬停详情浮窗 */
.network-tooltip {
    position: fixed;
    z-index: 280;
    pointer-events: none;
    min-width: 260px;
    max-width: 360px;
    background: rgba(15, 27, 51, 0.96);
    color: #F8FAFC;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    line-height: 1.55;
}
.network-tooltip.hidden { display: none !important; }
.network-tooltip .nt-head {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.network-tooltip .nt-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
}
.network-tooltip .nt-badge.crit {
    background: rgba(226, 52, 48, 0.38);
    color: #FCA5A5;
}
.network-tooltip .nt-badge.normal {
    background: rgba(43, 92, 255, 0.35);
    color: #93C5FD;
}
.network-tooltip .nt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 12px;
    color: #CBD5E1;
    font-variant-numeric: tabular-nums;
}
.network-tooltip .nt-grid b { color: #fff; }
.network-tooltip .nt-code {
    font-family: Consolas, monospace;
    background: rgba(43, 92, 255, 0.35);
    color: #93C5FD;
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 11.5px;
}
.network-tooltip .nt-code.crit {
    background: rgba(226, 52, 48, 0.38);
    color: #FCA5A5;
}
.network-tooltip .nt-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #CBD5E1;
    font-variant-numeric: tabular-nums;
}
.network-tooltip .nt-row b { color: #fff; }

/* 小屏适配 */
@media (max-width: 900px) {
    .findbar input[type="text"] { min-width: 130px; }
    .save-chip { display: none; }
}

/* ============================================================
 * 会员中心 2.0（独立页面视图）+ 集团协作组与抄送审核（v1.6.3）
 * ============================================================ */
body.mc-open { display: flex; flex-direction: column; }
body.mc-open .app-header,
body.mc-open .site-notice { flex-shrink: 0; }
body.mc-open #demoBar,
body.mc-open #roBar,
body.mc-open .toolbar,
body.mc-open #findBar,
body.mc-open .board-wrap,
body.mc-open .statusbar { display: none !important; }
.mc-page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mc-page.hidden { display: none !important; }
.mcp-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.mcp-scroll.hidden { display: none !important; }
.mcp-wrap { max-width: 1260px; margin: 0 auto; padding: 20px 24px 40px; }
.mcp-hero {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 26px; border-radius: 18px;
    background: linear-gradient(120deg, #EAF1FF 0%, #F8FBFF 54%, #E9F7FB 100%);
    border: 1px solid #DDE8FB;
    box-shadow: 0 22px 46px -38px rgba(16, 40, 90, 0.7);
}
.mcp-hero .mc-back-btn { margin-left: 6px; flex-shrink: 0; font-size: 13.5px; padding: 8px 16px; }
.mcp-body { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.mcp-card {
    background: #fff; border: 1px solid #E2EAF8; border-radius: 18px;
    padding: 22px 24px; min-height: 470px;
    box-shadow: 0 24px 50px -44px rgba(16, 40, 90, 0.8);
}
.mcp-card.gd-card { min-height: 0; }

.mc-hero {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 26px;
    background: linear-gradient(120deg, #EAF1FF 0%, #F7FAFF 56%, #E9F7FB 100%);
    border-bottom: 1px solid #DDE8FB;
}
.mc-ava {
    width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
    background: linear-gradient(135deg, #2B5CFF, #22D3EE);
    color: #fff; font-size: 24px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px -12px rgba(43, 92, 255, 0.9);
}
.mc-ident { min-width: 0; flex: 1 1 auto; }
.mc-name { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #0F1B33; line-height: 1.3; }
.mc-name .role-badge { font-size: 12px; padding: 3px 10px; }
.mc-meta { font-size: 13px; color: #5D7397; margin-top: 5px; }
.mc-meta b { color: #16233C; }
.mc-quotas { display: flex; gap: 18px; flex-shrink: 0; }
.qbar { width: 148px; }
.qb-top { display: flex; justify-content: space-between; font-size: 12px; color: #5D7397; margin-bottom: 5px; }
.qb-top b { color: #16233C; font-size: 12.5px; }
.qb-track { height: 7px; border-radius: 999px; background: #DCE7F9; overflow: hidden; }
.qb-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2B5CFF, #5B8CFF); }
.qb-fill.warn { background: linear-gradient(90deg, #E23430, #FF7A5C); }

.mc-body { display: flex; flex: 1 1 auto; min-height: 0; }
.mc-nav {
    flex: 0 0 188px; padding: 18px 14px; background: #F7FAFF;
    border-right: 1px solid #E6EEFB; display: flex; flex-direction: column; gap: 6px;
}
.mcp-body .mc-nav {
    flex: none; padding: 10px; background: #fff; border: 1px solid #E2EAF8; border-radius: 16px;
    box-shadow: 0 20px 44px -44px rgba(16, 40, 90, 0.9); position: sticky; top: 6px;
}
.mc-nav button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 12px 14px; border: none; background: none; border-radius: 10px;
    font-size: 14.5px; color: #41597F; cursor: pointer; text-align: left; position: relative;
    font-family: inherit;
}
.mc-nav button i { width: 18px; text-align: center; color: #7C90B3; }
.mc-nav button span { flex: 1 1 auto; }
.mc-nav button em {
    font-style: normal; font-size: 12px; color: #8DA0BE; background: #E8EFFA;
    border-radius: 999px; padding: 1px 8px; min-width: 22px; text-align: center;
}
.mc-nav button.active { background: #fff; color: #1F45C8; font-weight: 700; box-shadow: 0 6px 16px -10px rgba(43, 92, 255, 0.8), inset 0 0 0 1px #D8E3F8; }
.mc-nav button.active i { color: #2B5CFF; }
.mc-nav button.active em { background: #E3EBFF; color: #1F45C8; }
.mc-nav button:hover:not(.active) { background: #EEF4FF; }
.mcp-body .mc-nav button.active {
    background: linear-gradient(90deg, #EAF1FF, #F4F8FF);
    box-shadow: inset 0 0 0 1px #C9DAF8, inset 3px 0 0 #2B5CFF;
}
.mc-nav-foot { margin-top: auto; padding: 14px 8px 2px; border-top: 1px dashed #E6EEFB; }
.mc-nav-foot a { font-size: 12.5px; color: #6C82A8; text-decoration: none; display: flex; align-items: center; gap: 7px; }
.mc-nav-foot a:hover { color: #1F45C8; }
.mc-nav-foot a i { color: #2B5CFF; }
.mc-dot { position: absolute; right: 10px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #E23430; }

.mc-panes { flex: 1 1 auto; min-width: 0; min-height: 0; padding: 20px 26px 16px; overflow: auto; }
.mc-pane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mc-pane-head h4 { font-size: 17px; font-weight: 700; color: #0F1B33; display: flex; align-items: center; gap: 8px; }
.mc-pane-head p { font-size: 13px; color: #6C82A8; margin-top: 4px; line-height: 1.6; }
.mc-quota-tip { font-style: normal; font-size: 12.5px; font-weight: 400; color: #7C90B3; }
.mc-head-ops { display: flex; gap: 8px; flex-shrink: 0; }
.mc-head-ops .btn { font-size: 13.5px; padding: 7px 14px; }
/* 返回按钮（协作组详情） */
.mcp-back {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
    padding: 8px 16px; border-radius: 10px; border: 1px solid #C9DAF8; background: #fff;
    color: #1F45C8; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
    box-shadow: 0 10px 24px -22px rgba(16, 40, 90, 0.9);
}
.mcp-back:hover { background: #EEF4FF; }
.mcp-back i { font-size: 15px; }
/* 页面内的项目列表 / 表单字号 */
.mc-page .proj-new input { font-size: 14.5px; padding: 10px 13px; border: 1.5px solid #A9BFE3; border-radius: 9px; background: #FDFEFF; }
.mc-page .proj-new input:focus { border-color: #2B5CFF; box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.12); outline: none; }
.mc-page .proj-new .btn { font-size: 14px; padding: 9px 18px; }
.mc-page .proj-list { border-radius: 12px; max-height: none; }
.mc-page .proj-item { padding: 13px 16px; }
.mc-page .pi-name { font-size: 15px; }
.mc-page .pi-time { font-size: 12.5px; }
.mc-page .proj-empty { font-size: 14px; padding: 40px 20px; }
.mc-page .btn { font-size: 13.5px; }
.mc-page .btn-sm { font-size: 13px; padding: 5px 12px; }
.mc-page .field > span { font-size: 14px; }
.mc-page .field input, .mc-page .field select { font-size: 14.5px; padding: 10px 13px; border: 1.5px solid #A9BFE3; border-radius: 9px; }
.mc-page .field input:focus, .mc-page .field select:focus { border-color: #2B5CFF; box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.12); }
.mc-page .gd-pane { max-height: none; overflow: visible; }
.mc-page .gd-item { padding: 13px 15px; }

/* 项目列表（补充抄送状态） */
.pi-cc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #0F766E; background: #E6F7F3; border-radius: 6px; padding: 1px 7px; width: fit-content; margin-top: 2px; }
.btn-cc { color: #0F766E !important; border-color: #B7E4DA !important; background: #F1FBF8 !important; }
.btn-cc:hover { border-color: #0F9F86 !important; color: #0B7A67 !important; }

/* 协作组卡片 */
.group-body { display: flex; flex-direction: column; gap: 16px; }
.g-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-sec-head h5 { font-size: 14px; font-weight: 700; color: #33507E; display: flex; align-items: center; gap: 6px; }
.g-sec-head h5 em { font-style: normal; font-size: 11.5px; color: #7C90B3; background: #EEF3FB; border-radius: 999px; padding: 1px 7px; }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 9px; }
.gcard {
    border: 1px solid #E2EAF8; border-radius: 14px; padding: 14px 16px; background: #fff;
    box-shadow: 0 8px 22px -20px rgba(15, 27, 51, 0.5);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    display: flex; flex-direction: column;
}
.gcard:hover { border-color: #BBD0F5; box-shadow: 0 14px 30px -22px rgba(43, 92, 255, 0.6); }
.gcard.off { opacity: 0.58; }
.gc-head { display: flex; gap: 11px; align-items: flex-start; }
.gc-logo {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(135deg, #E8F0FF, #DCEBFF); color: #1F45C8;
    font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.gc-name { font-size: 15px; font-weight: 700; color: #16233C; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gc-sub { font-size: 12px; color: #8395B4; margin-top: 3px; }
.gc-sub b { color: #41597F; letter-spacing: 0.5px; }
.gc-intro {
    font-size: 12.5px; color: #6C82A8; line-height: 1.6; margin: 9px 0; min-height: 20px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-dim { color: #A9B7CD; }
.gc-stats { display: flex; gap: 16px; font-size: 12px; color: #7C90B3; padding: 8px 0; border-top: 1px dashed #E6EEFB; margin-top: auto; }
.gc-stats b { font-size: 14px; color: #16233C; margin-right: 2px; }
.gc-stats .warn b { color: #E23430; }
.gc-ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.gc-ops .btn { font-size: 12.5px; padding: 4px 10px; }

.g-tag {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
    padding: 1.5px 7px; border-radius: 6px; line-height: 1.5; white-space: nowrap;
}
.gt-owner { background: #F3E8FF; color: #7C3AED; }
.gt-manager { background: #E0F2FE; color: #0369A1; }
.gt-member { background: #E9F0FB; color: #41597F; }
.gt-todo { background: #FEE2E2; color: #B91C1C; }
.gt-ok { background: #DCFCE7; color: #15803D; }
.gt-rej { background: #FEE2E2; color: #B91C1C; }
.gt-off { background: #EEF1F6; color: #7C8CA6; }
.gt-edit { background: #E0F7F4; color: #0F766E; }
.gt-read { background: #F1F4F9; color: #64748B; }
.g-wait { font-size: 12px; color: #B45309; align-self: center; }
.g-wait.g-rej { color: #B91C1C; }

.g-todo-bar {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
    background: linear-gradient(90deg, #FFF4E5, #FFF9F0); border: 1px solid #FBD9A5; color: #8A4B00; font-size: 13px;
}
.g-todo-bar > i { font-size: 18px; color: #D97706; }
.g-todo-bar div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.g-todo-bar b { font-size: 13.5px; color: #7C3E00; }
.g-todo-bar span { font-size: 12px; color: #9A6B2F; }
.g-upsell {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px;
    background: #F6F9FF; border: 1px dashed #C9DAF8; font-size: 12.5px; color: #41597F;
}
.g-upsell > i { font-size: 18px; color: #2B5CFF; }
.g-upsell div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.g-upsell b { font-size: 13px; color: #1F45C8; }
.g-empty { text-align: center; padding: 32px 20px; border: 1px dashed #D8E3F6; border-radius: 14px; color: #7C90B3; }
.g-empty > i { font-size: 30px; color: #B9C9E4; display: block; margin-bottom: 10px; }
.g-empty b { display: block; font-size: 14.5px; color: #33507E; margin-bottom: 5px; }
.g-empty span { font-size: 12.5px; display: block; max-width: 520px; margin: 0 auto 14px; line-height: 1.7; }
.g-empty-ops { display: flex; gap: 8px; justify-content: center; }
.g-applied-note { font-size: 12px; color: #8B9CBA; margin: -6px auto 14px !important; }

/* 协作组详情 */
.gd-modal { --mw: 900px; }
.gd-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid #E3EBFA; margin-bottom: 14px; }
.gd-logo {
    width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
    background: linear-gradient(135deg, #2B5CFF, #22D3EE); color: #fff; font-size: 20px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.gd-title { flex: 1; min-width: 0; }
.gd-title h3 { font-size: 19px; font-weight: 700; border: none !important; padding: 0 !important; margin: 0 !important; }
.gd-title p { font-size: 12.5px; color: #6C82A8; margin-top: 4px; }
.gd-title p b { color: #16233C; }
.gd-code { letter-spacing: 1px; background: #EEF4FF; padding: 1px 6px; border-radius: 5px; }
.gd-tabs button em {
    font-style: normal; margin-left: 6px; font-size: 11.5px; background: #E8EFFA;
    color: #5D7397; border-radius: 999px; padding: 1px 7px;
}
.gd-tabs button.has-todo em { background: #FEE2E2; color: #B91C1C; }
.gd-tabs button.active em { background: #E3EBFF; color: #1F45C8; }
.gd-pane { min-height: 220px; max-height: calc(100vh - 400px); overflow: auto; }
.gd-list { display: flex; flex-direction: column; gap: 8px; }
.gd-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #E6EEFB; border-radius: 11px; background: #FCFDFF; }
.gd-item:hover { border-color: #C9DAF8; }
.gdi-main { flex: 1; min-width: 0; }
.gdi-name { font-size: 14px; font-weight: 600; color: #16233C; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gdi-sub { font-size: 12px; color: #7C90B3; margin-top: 3px; line-height: 1.55; }
.gdi-ops { display: flex; gap: 6px; flex-shrink: 0; }
.gdi-ops .btn { font-size: 12.5px; padding: 4px 10px; }
/* 组内项目：编辑权限复选框 */
.gd-allow {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 7px;
    padding: 5px 10px; border-radius: 8px; cursor: pointer;
    background: #FFF9EC; border: 1px solid #FBD9A5; font-size: 12.5px; color: #95692A;
}
.gd-allow:hover { border-color: #F0C078; }
.gd-allow input { width: 14px; height: 14px; margin: 0; accent-color: #D97706; cursor: pointer; flex-shrink: 0; }
.gd-allow.on { background: #ECFDF5; border-color: #A7E3C8; color: #0F6B4F; }
.gd-allow.on input { accent-color: #0E9F6E; }
.gd-allow-ro {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
    font-size: 12.5px; color: #8A98B0;
}
.gd-allow-ro.on { color: #0F6B4F; }
.cc-sent {
    font-style: normal; flex-shrink: 0; align-self: center; margin-left: auto;
    font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
    background: #E4F6EE; color: #0F6B4F; font-weight: 700;
}
.cc-sent.cc-wait { background: #FFF4E0; color: #A36100; }
.cc-g.is-dis { background: #F7F9FD; border-color: #E6EEFB; cursor: not-allowed; }
.cc-g.is-dis b { color: #8A98B0; }
.cc-all-sent { font-size: 12.5px; color: #A36100; background: #FFF9EC; border: 1px dashed #FBD9A5; border-radius: 9px; padding: 9px 12px; margin-top: 4px; line-height: 1.6; }

.gd-info-ops { display: flex; gap: 10px; margin-top: 14px; }

/* 抄送弹窗 */
.cc-line { font-size: 14px; color: #41597F; margin-bottom: 12px; }
.cc-line b { color: #16233C; font-size: 15px; }
.cc-groups { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; margin-bottom: 14px; padding: 2px; }
.cc-g { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1.5px solid #E2EAF8; border-radius: 11px; cursor: pointer; font-size: 14px; }
.cc-g:hover { border-color: #C9DAF8; }
.cc-g input { width: 17px; height: 17px; margin-top: 2px; accent-color: #2B5CFF; flex-shrink: 0; }
.cc-g input:checked + span b { color: #1F45C8; }
.cc-g span { display: flex; flex-direction: column; gap: 2px; }
.cc-g b { color: #16233C; font-weight: 700; }
.cc-g small { color: #7C90B3; font-size: 12px; }
.cc-allow {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 11px;
    background: #FFF9EC; border: 1px solid #FBD9A5; margin-bottom: 14px; cursor: pointer;
}
.cc-allow input { width: 17px; height: 17px; margin-top: 2px; accent-color: #D97706; flex-shrink: 0; }
.cc-allow span { display: flex; flex-direction: column; gap: 3px; }
.cc-allow b { font-size: 14px; color: #7C3E00; }
.cc-allow small { font-size: 12px; color: #95692A; line-height: 1.65; }

/* 账号与安全 */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-block { border: 1px solid #E6EEFB; border-radius: 14px; padding: 16px 18px; background: #FCFDFF; }
.sec-block h5 { font-size: 14px; font-weight: 700; color: #1F45C8; display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.sec-rowv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #6C82A8; padding: 7px 0; border-bottom: 1px dashed #E6EEFB; margin-bottom: 6px; }
.sec-rowv b { color: #16233C; max-width: 70%; text-align: right; word-break: break-all; }
.sec-block .settip { margin-top: 10px; }
.sec-block .btn { margin-top: 6px; }

/* 角色徽章 / 顶栏待办红点 */
.rb-group { background: #0E9F6E; }
.app-header .btn { position: relative; }
.hd-dot {
    position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; line-height: 16px;
    border-radius: 9px; background: #E23430; color: #fff; font-size: 10px; font-weight: 700;
    padding: 0 4px; text-align: center; box-shadow: 0 0 0 2px #D9E6FC;
}

/* 协作组共享状态条 */
.ro-bar {
    display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 13px;
    background: #EAF7F0; border-bottom: 1px solid #C6E9D8; color: #116149;
}
.ro-bar.ro-read { background: #FFF6E5; border-bottom-color: #F5D9A8; color: #8A4B00; }
.ro-bar > i { font-size: 15px; }
.ro-bar > span { flex: 1; min-width: 0; }
.ro-bar b { font-weight: 700; }
.ro-bar .ro-ok { color: #0E9F6E; }
.ro-bar .ro-lock { color: #C2410C; }
.ro-bar .btn { flex-shrink: 0; }
body.ro-mode .row-edit { display: none !important; }
body.ro-mode #btnAdd, body.ro-mode #btnBatch, body.ro-mode #btnIndent, body.ro-mode #btnOutdent,
body.ro-mode #btnDelete, body.ro-mode #btnUp, body.ro-mode #btnDown,
body.ro-mode #btnCopy, body.ro-mode #btnPaste, body.ro-mode #btnUndo, body.ro-mode #btnRedo,
body.ro-mode #btnClear, body.ro-mode #btnSettings, body.ro-mode #btnHolidays,
body.ro-mode #btnImport, body.ro-mode #btnSave { opacity: 0.42; }
body.ro-mode .cell-edit { background: #F4F7FC !important; color: #5D7397 !important; }
body.ro-mode .cell-date-click { cursor: default; }

/* ============================================================
 * 左右分栏可拖拽分界条（动态伸缩任务名称列宽 + 双击自适应复位）
 * ============================================================ */
.gantt-scroll {
    border-left: none;
}
.pane-splitter {
    position: relative;
    z-index: 12;
    width: 9px;
    margin-left: -4px;
    margin-right: -4px;
    flex-shrink: 0;
    cursor: col-resize;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.pane-splitter::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 1px;
    background: var(--c-frame, #111);
    transition: background-color 0.14s ease, width 0.14s ease, left 0.14s ease, box-shadow 0.14s ease;
}
.pane-splitter-grip {
    position: relative;
    z-index: 2;
    width: 7px;
    height: 38px;
    border-radius: 4px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    box-shadow: 0 2px 6px rgba(15, 27, 51, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}
.pane-splitter-grip::before {
    content: '';
    width: 3px;
    height: 14px;
    border-left: 1px solid #94A3B8;
    border-right: 1px solid #94A3B8;
}
.pane-splitter:hover::before,
.pane-splitter.dragging::before {
    left: 3px;
    width: 3px;
    background: var(--xk-blue, #2B5CFF);
    box-shadow: 0 0 10px rgba(43, 92, 255, 0.45);
}
.pane-splitter:hover .pane-splitter-grip,
.pane-splitter.dragging .pane-splitter-grip {
    border-color: var(--xk-blue, #2B5CFF);
    background: #EFF6FF;
    transform: scaleY(1.08);
    box-shadow: 0 3px 10px rgba(43, 92, 255, 0.28);
}
.pane-splitter:hover .pane-splitter-grip::before,
.pane-splitter.dragging .pane-splitter-grip::before {
    border-color: var(--xk-blue, #2B5CFF);
}
body.network-fullscreen .pane-splitter {
    display: none !important;
}
body.is-resizing-pane,
body.is-resizing-pane * {
    cursor: col-resize !important;
    user-select: none !important;
}

/* ============================================================
 * 二级下拉菜单（顶栏偏好设置、导入导出、工具栏更多操作）
 * ============================================================ */
.xk-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.xk-dd-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.xk-dd-trigger .dd-caret {
    font-size: 12px;
    opacity: 0.72;
    margin-left: 2px;
    transition: transform 0.16s ease;
}
.xk-dropdown.open > .xk-dd-trigger {
    border-color: var(--xk-blue, #2B5CFF) !important;
    color: var(--xk-blue, #2B5CFF) !important;
    background: #F0F5FF !important;
}
.xk-dropdown.open > .xk-dd-trigger .dd-caret {
    transform: rotate(180deg);
    opacity: 1;
}
.xk-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 160;
    min-width: 184px;
    padding: 6px;
    background: #FFFFFF;
    border: 1px solid #C8D8F4;
    border-radius: 12px;
    box-shadow: 0 18px 42px -12px rgba(15, 32, 68, 0.28), 0 4px 12px -2px rgba(43, 92, 255, 0.10);
    display: none;
    flex-direction: column;
    gap: 2px;
    animation: xkDdFadeIn 0.14s ease-out;
}
.xk-dd-menu.xk-dd-menu-right {
    left: auto;
    right: 0;
}
.xk-dropdown.open > .xk-dd-menu {
    display: flex;
}
@keyframes xkDdFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.xk-dd-head {
    padding: 5px 10px 3px;
    font-size: 11.5px;
    font-weight: 700;
    color: #6B7F9E;
    letter-spacing: 0.3px;
    user-select: none;
}
.xk-dd-sep {
    height: 1px;
    margin: 4px 6px;
    background: #E6EEF9;
}
.xk-dd-menu .xk-dd-item {
    width: 100%;
    justify-content: flex-start !important;
    text-align: left;
    padding: 8px 11px !important;
    font-size: 13.5px !important;
    font-weight: 500;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1B2B48;
    gap: 8px;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.xk-dd-menu .xk-dd-item .bt {
    display: inline !important;
}
.xk-dd-menu .xk-dd-item i.fa {
    width: 16px;
    text-align: center;
    color: #3E5B8F;
    margin-right: 2px !important;
}
.xk-dd-menu .xk-dd-item:hover {
    background: #EEF4FF !important;
    color: var(--xk-blue, #2B5CFF);
}
.xk-dd-menu .xk-dd-item:hover i.fa {
    color: var(--xk-blue, #2B5CFF);
}
.xk-dd-menu .xk-dd-item.btn-danger-ghost {
    color: #C8322B;
}
.xk-dd-menu .xk-dd-item.btn-danger-ghost i.fa {
    color: #C8322B;
}
.xk-dd-menu .xk-dd-item.btn-danger-ghost:hover {
    background: #FFF1F0 !important;
    color: #B42318;
}

/* ============================================================
 * 图表松紧度、无级缩放与泳道行高精细调节面板 (.density-panel)
 * ============================================================ */
.density-trigger {
    padding: 5px 10px !important;
}
.density-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 3px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1F45C8;
    background: #E8F0FE;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
}
.density-panel {
    width: 288px;
    padding: 12px 14px;
    gap: 8px;
}
.dp-sec-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dp-sec-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1E3357;
}
.dp-reset-btn {
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--xk-blue, #2B5CFF);
    background: #F0F5FF;
    border: 1px solid #C8D9FA;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.14s ease;
}
.dp-reset-btn:hover {
    background: var(--xk-blue, #2B5CFF);
    color: #FFFFFF;
    border-color: var(--xk-blue, #2B5CFF);
}
.dp-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    background: #F2F6FC;
    padding: 4px;
    border-radius: 9px;
}
.dp-preset-grid.dp-preset-3 {
    grid-template-columns: repeat(3, 1fr);
}
.dp-preset-grid button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #3D5278;
    cursor: pointer;
    line-height: 1.25;
    transition: all 0.14s ease;
}
.dp-preset-grid button small {
    font-size: 10.5px;
    font-weight: 500;
    opacity: 0.78;
    margin-top: 1px;
}
.dp-preset-grid button:hover {
    color: var(--xk-blue, #2B5CFF);
    background: rgba(255, 255, 255, 0.65);
}
.dp-preset-grid button.active {
    background: #FFFFFF;
    color: var(--xk-blue, #2B5CFF);
    border-color: #CBD9F6;
    box-shadow: 0 2px 6px -2px rgba(20, 45, 100, 0.16);
}
.dp-slider-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dp-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #42587D;
}
.dp-slider-head b {
    font-weight: 700;
    color: #1F45C8;
    font-variant-numeric: tabular-nums;
}
.dp-slider-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dp-slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--xk-blue, #2B5CFF);
    cursor: pointer;
}
.dp-step-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #C5D5F0;
    background: #F8FAFF;
    color: #243B61;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}
.dp-step-btn:hover {
    border-color: var(--xk-blue, #2B5CFF);
    color: var(--xk-blue, #2B5CFF);
    background: #EDF3FF;
}
.dp-hint {
    margin: 2px 0 0;
    padding: 6px 8px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #546B8F;
    background: #F6F9FF;
    border-radius: 7px;
    border: 1px dashed #D5E2F9;
}

/* ============================================================
 * 纯前端导出高清 PNG 图纸弹窗 (#mPng)
 * ============================================================ */
.png-opt-grid {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}
.png-opt-grid.png-opt-2 {
    grid-template-columns: repeat(2, 1fr);
}
.png-opt-grid.png-opt-4 {
    grid-template-columns: repeat(4, 1fr);
}
.png-opt-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 11px 13px;
    border-radius: 11px;
    border: 1.5px solid #CEDCF3;
    background: #FAFCTT;
    background: #FBFDFF;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 4px;
}
.png-opt-card:hover {
    border-color: #7FA3F8;
    background: #F4F8FF;
}
.png-opt-card.active {
    border-color: var(--xk-blue, #2B5CFF);
    background: #EEF4FF;
    box-shadow: 0 0 0 3px rgba(43, 92, 255, 0.12);
}
.png-opt-card .poc-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #16233C;
}
.png-opt-card.active .poc-head {
    color: #1B3FB8;
}
.png-opt-card .poc-rec {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
    background: #2B5CFF;
    color: #FFFFFF;
}
.png-opt-card small {
    font-size: 12px;
    color: #5A7094;
    line-height: 1.4;
}
.png-dim-box {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #F2F7FF;
    border: 1px solid #CFE0FB;
    color: #1E3A6D;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.png-dim-box i.fa {
    color: var(--xk-blue, #2B5CFF);
    font-size: 15px;
}


