/**
 * 标注任务智能调度与产能管理系统 V1.0
 * 全局样式表
 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf2ff;
  --success: #16a085;
  --warning: #d97706;
  --danger: #dc2626;
  --ink: #182230;
  --ink-2: #475467;
  --ink-3: #7b8798;
  --line: #e5eaf1;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .035);
  --focus: 0 0 0 3px rgba(59, 130, 246, .18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; min-width: 320px; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
.app-icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus-visible, .nav-item:focus-visible, .tab:focus-visible, .modal-close:focus-visible, .icon-button:focus-visible, .ipt:focus-visible { outline: none; box-shadow: var(--focus); }
.boot-loading { display: flex; align-items: center; justify-content: center; height: 100vh; color: var(--ink-2); }

/* ============ 布局 ============ */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; min-width: 224px; background: #fff; color: var(--ink-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; z-index: 30;
}
.brand { display: flex; gap: 11px; align-items: center; height: 64px; padding: 0 18px; border-bottom: 1px solid #edf0f5; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #397cf5, #1d5fd2);
  color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .22); flex-shrink: 0;
}
.brand-name { color: #1f5fcc; font-size: 18px; line-height: 20px; font-weight: 700; letter-spacing: -.2px; }
.brand-sub { color: #7b8798; font-size: 11px; margin-top: 2px; }
.workspace-card { display: flex; align-items: center; gap: 10px; margin: 14px 12px 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; }
.workspace-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px; color: var(--primary); background: var(--primary-soft); font-size: 16px; }
.workspace-copy { display: flex; flex-direction: column; min-width: 0; }
.workspace-copy small { color: #98a2b3; font-size: 10px; }
.workspace-copy strong { overflow: hidden; color: #344054; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.nav { flex: 1; padding: 0 10px 10px; overflow-y: auto; }
.nav-caption { padding: 13px 10px 6px; color: #98a2b3; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 7px;
  color: #526071; margin: 3px 0; font-size: 14px; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.nav-item:hover { background: #f3f7fd; color: #245fc5; }
.nav-item.active { background: var(--primary-soft); color: #1f5fcc; font-weight: 600; }
.nav-ico { display: grid; place-items: center; width: 18px; flex: 0 0 18px; font-size: 18px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: 10px 12px 12px; padding: 12px; font-size: 12px; color: #667085; border-top: 1px solid #edf0f5; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #18a981; box-shadow: 0 0 0 3px rgba(24, 169, 129, .12); flex-shrink: 0; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  min-height: 64px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 17px; font-weight: 650; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-date { color: var(--ink-3); font-size: 12px; margin-right: 4px; }
.top-divider { width: 1px; height: 24px; margin: 0 2px; background: var(--line); }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: #667085; background: transparent; cursor: pointer; font-size: 17px; transition: .18s ease; }
.icon-button:hover { color: var(--primary); border-color: #dce7f7; background: #f4f8fe; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: #316fda; font-size: 13px; font-weight: 700; }
.topbar-user { display: flex; flex-direction: column; min-width: 72px; color: #344054; font-weight: 600; font-size: 13px; line-height: 17px; }
.topbar-user small { color: #98a2b3; font-size: 10px; line-height: 14px; font-weight: 400; }
.content { flex: 1; min-width: 0; padding: 20px 22px 28px; }

/* ============ 登录页 ============ */
.login-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: #f6f8fb;
  background-image: radial-gradient(circle at 18% 20%, rgba(59, 130, 246, .11), transparent 30%), radial-gradient(circle at 85% 78%, rgba(37, 99, 235, .08), transparent 28%);
}
.login-card {
  width: 420px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px 36px 28px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .12);
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.login-logo {
  width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, #3b7bff, #2547c9);
  color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.login-title { font-size: 17px; font-weight: 700; line-height: 1.45; }
.login-ver { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.login-tip { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 16px; }

/* ============ 卡片 ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-head { min-height: 56px; padding: 14px 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f5; }
.card-title { font-size: 15px; color: var(--ink); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 18px 20px 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ 页头 ============ */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.page-head h2 { font-size: 20px; line-height: 28px; letter-spacing: -.2px; }
.page-sub { color: var(--ink-2); font-size: 13px; margin-top: 5px; }
.page-actions { display: flex; gap: 10px; }

/* ============ KPI 卡 ============ */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { min-height: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; align-items: center; gap: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.kpi-card:hover { border-color: #ced9e8; box-shadow: 0 4px 12px rgba(16, 24, 40, .07); }
.kpi-ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 21px; flex-shrink: 0; }
.kpi-value { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.kpi-value > span { display: block; margin-top: 5px; line-height: 16px; }
.kpi-name { color: var(--ink-2); font-size: 12.5px; margin-top: 5px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; border: 1px solid transparent; border-radius: 6px; padding: 7px 14px; font-size: 13.5px;
  cursor: pointer; transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease; background: #fff; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .18); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-plain { border-color: #d9e0e9; color: var(--ink-2); }
.btn-plain:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.btn-danger { background: #fdeeee; color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #12813b; }
.btn-sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }
.btn-link { color: var(--primary); background: none; padding: 2px 6px; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }

/* ============ 表格 ============ */
.tbl-wrap { overflow-x: auto; border-radius: 7px; }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  height: 44px; text-align: left; padding: 10px 12px; color: #475467; font-size: 13px; font-weight: 600;
  background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { height: 46px; padding: 10px 12px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
.tbl tbody tr { transition: background-color .18s ease; }
.tbl tbody tr:hover { background: #f3f7fd; }
.tbl .t-strong { font-weight: 600; }
.tbl .t-sub { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

/* ============ 徽章 ============ */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.badge-gray { background: #f1f4f9; color: #64748b; }
.badge-blue { background: #e8f0ff; color: #2f6bff; }
.badge-green { background: #e6f7ed; color: #16a34a; }
.badge-amber { background: #fdf3e0; color: #d97706; }
.badge-red { background: #fdeeee; color: #dc2626; }
.badge-cyan { background: #e0f5f8; color: #0891a5; }

/* ============ 进度条 ============ */
.pg-wrap { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.pg-track { flex: 1; height: 8px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.pg-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4d8bff, #2f6bff); transition: width .4s; }
.pg-fill.pg-green { background: linear-gradient(90deg, #34c26e, #16a34a); }
.pg-fill.pg-amber { background: linear-gradient(90deg, #f7b955, #f59e0b); }
.pg-fill.pg-red { background: linear-gradient(90deg, #f07070, #dc2626); }
.pg-label { font-size: 12px; color: var(--ink-2); min-width: 44px; text-align: right; }

/* ============ 表单 ============ */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.ipt {
  width: 100%; height: 38px; border: 1px solid #d9e0e9; border-radius: 6px; padding: 0 12px;
  font-size: 14px; color: var(--ink); outline: none; background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.ipt:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
select.ipt {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 0 40px 0 12px; cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 6.25 8 9.75l3.5-3.5' stroke='%23506170' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px 16px;
}
select.ipt:hover:not(:disabled) { border-color: #9fb8bf; }
select.ipt:disabled { color: #8a98a3; background-color: #f1f4f6; cursor: not-allowed; opacity: .72; }
textarea.ipt { height: auto; padding: 10px 12px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 7vh;
  animation: fadeIn .18s;
}
.modal { background: #fff; border-radius: 12px; max-height: 84vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 48px rgba(16, 24, 40, .18); animation: slideUp .22s; }
.modal-head { display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { display: grid; place-items: center; width: 32px; height: 32px; cursor: pointer; color: var(--ink-3); font-size: 17px; padding: 0; border: 0; border-radius: 6px; background: transparent; transition: .18s ease; }
.modal-close:hover { color: var(--danger); background: #fff5f4; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.confirm-text { font-size: 14.5px; line-height: 1.7; padding: 6px 2px; }

/* ============ 轻提示 ============ */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-16px);
  padding: 11px 22px; border-radius: 10px; color: #fff; font-size: 14px; z-index: 300;
  opacity: 0; transition: all .28s; box-shadow: 0 10px 30px rgba(6, 16, 40, .25); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-info { background: #2f6bff; }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }

/* ============ 空状态 ============ */
.empty-box { text-align: center; padding: 44px 0; color: var(--ink-3); }
.empty-ico { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 10px; background: #f2f5f9; font-size: 23px; opacity: .75; }

/* ============ 图表 ============ */
.chart-svg { width: 100%; height: auto; }
.chart-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.chart-cartesian { display: block; width: 100%; min-width: 520px; height: 300px; }
.chart-tick { font-size: 11px; fill: #9ca3af; }
.chart-value { font-size: 11px; fill: #6b7280; font-weight: 600; }
.chart-legend { font-size: 12px; fill: #5f6f7e; font-weight: 600; }
.chart-donut-num { font-size: 20px; font-weight: 700; fill: #1f2937; }
.chart-donut-label { font-size: 11px; fill: #9ca3af; }
.chart-svg [tabindex]:focus { outline: none; filter: drop-shadow(0 0 3px rgba(13, 148, 136, .45)); }
.donut-chart {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px clamp(18px, 4vw, 42px); min-width: 0;
}
.donut-plot { flex: 1 1 220px; width: min(100%, 260px); max-width: 260px; min-width: 0; }
.donut-legend { display: grid; flex: 1 1 240px; min-width: 0; gap: 12px; }
.donut-legend-item {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center;
  gap: 10px; min-width: 0; color: var(--ink-2); font-size: 13px;
}
.donut-legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.donut-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend-value { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ 标签页 ============ */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tab { padding: 10px 18px; cursor: pointer; color: var(--ink-2); font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 500; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ============ 筛选工具栏 ============ */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .ipt { flex: 0 0 auto; width: 148px; height: 38px; }
.toolbar .ipt.ipt-search { width: 224px; }
.toolbar select.ipt { padding-right: 40px; }
.toolbar #f-project { width: 180px; }
.toolbar #f-status { width: 128px; }
.toolbar #f-type { width: 148px; }

/* ============ 预警列表 ============ */
.warn-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #edf0f5; }
.warn-item:last-child { border-bottom: none; }
.warn-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.warn-dot.high { background: var(--danger); box-shadow: 0 0 0 4px #fdeeee; }
.warn-dot.medium { background: var(--warning); box-shadow: 0 0 0 4px #fdf3e0; }
.warn-title { font-weight: 600; font-size: 13.5px; }
.warn-detail { color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
.warn-advice { color: var(--ink-3); font-size: 12px; margin-top: 3px; }

/* ============ 技能标签 ============ */
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.skill-tag { background: #eef4ff; color: #2f6bff; padding: 2px 9px; border-radius: 6px; font-size: 12px; }

/* ============ 权重配置 ============ */
.weight-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.weight-name { width: 110px; font-size: 13px; color: var(--ink-2); }
.weight-val { width: 52px; text-align: center; font-weight: 700; color: var(--primary); }
input[type="range"].wgt { flex: 1; accent-color: var(--primary); }

/* ============ 标注员技能编辑 ============ */
.annotator-edit-modal { width: min(820px, calc(100vw - 32px)) !important; }
.skill-editor { margin-top: 4px; }
.skill-grid-head,
.skill-edit-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.6fr) repeat(3, minmax(108px, .8fr)) 44px;
  align-items: center;
  gap: 10px;
}
.skill-grid-head {
  margin: 0 0 7px;
  padding: 0 2px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
}
.skill-edit-row { margin-bottom: 10px; }
.skill-edit-row > .control-shell,
.skill-edit-row > .ipt { width: 100%; min-width: 0; }
.skill-edit-row > .btn { width: 44px; min-width: 44px; padding-inline: 0; }

@media (max-width: 700px) {
  .skill-grid-head { display: none; }
  .skill-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px;
    border: 1px solid var(--ido-border-light);
    border-radius: 10px;
    background: var(--ido-surface);
  }
  .skill-edit-row > .control-shell { grid-column: 1 / -1; }
  .skill-edit-row > .btn { justify-self: end; grid-column: 2; }
}

/* ============ 时间线 ============ */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #e5e9f0; }
.tl-item { position: relative; padding: 0 0 18px 12px; }
.tl-item::before { content: ''; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 3px solid #cbd5e6; }
.tl-item.reached::before { border-color: var(--success); background: var(--success); }
.tl-item.delayed::before { border-color: var(--danger); background: var(--danger); }
.tl-title { font-weight: 600; font-size: 13.5px; }
.tl-meta { color: var(--ink-3); font-size: 12px; margin-top: 3px; }

/* ============ 说明块 ============ */
.note-box { background: #f6f9ff; border: 1px dashed #c9d9f5; border-radius: 8px; padding: 12px 16px;
  font-size: 12.5px; color: #4c6ef5; line-height: 1.8; }

/* ============ 动画 ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .sidebar { width: 72px; min-width: 72px; }
  .brand { justify-content: center; padding: 0; }
  .brand-txt, .workspace-copy, .nav-caption, .nav-label, .sidebar-foot span:not(.online-dot) { display: none; }
  .workspace-card { justify-content: center; margin-inline: 10px; padding: 8px; }
  .nav { padding-inline: 10px; padding-top: 6px; }
  .nav-item { justify-content: center; padding: 0; }
  .sidebar-foot { justify-content: center; }
  .topbar-date { display: none; }
}

@media (max-width: 640px) {
  .topbar { min-height: 58px; padding: 0 12px; }
  .topbar-title { font-size: 16px; }
  .topbar-user, .top-divider, .topbar-right .icon-button { display: none; }
  .content { padding: 12px; }
  .page-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .page-actions { flex-wrap: wrap; }
  .page-actions .btn { flex: 1; }
  .kpi-row, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card-head { align-items: flex-start; flex-direction: column; min-height: auto; padding: 14px; }
  .card-body { padding: 14px; }
  .card-body:has(> .toolbar) { padding-inline: 12px; }
  .tbl-wrap { overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .ipt, .toolbar .ipt.ipt-search { width: 100%; }
  .modal-mask { padding: 12px; align-items: center; }
  .modal { max-height: calc(100vh - 24px); }
  .modal-head, .modal-body, .modal-foot { padding-inline: 16px; }
  .login-card { padding: 30px 24px 24px; }
  .donut-chart { gap: 8px; }
  .donut-plot { flex-basis: 100%; max-width: 210px; }
  .donut-legend { flex-basis: 100%; gap: 9px; }
  .chart-cartesian { height: 260px; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #cbd5e1; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============ 调度指挥中枢主题 ============ */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: #d8f4f0;
  --success: #16876c;
  --warning: #d97706;
  --ink: #14212f;
  --ink-2: #506170;
  --ink-3: #7a8995;
  --line: #dfe6ea;
  --bg: #f5f7f9;
  --radius: 5px;
  --shadow: none;
  --focus: 0 0 0 3px rgba(20, 184, 166, .24);
}

body { background: #f5f7f9; }
.layout { background: #f5f7f9; }
.sidebar {
  width: 248px; min-width: 248px; color: #cbd7df; border-right: 0;
  background: #22384b; box-shadow: none;
}
.brand { height: 68px; border-bottom-color: rgba(255, 255, 255, .1); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 4px; color: #fff;
  background: #20b8a8; box-shadow: none;
}
.brand-name { color: #f7fafb; font-size: 17px; letter-spacing: .04em; }
.brand-sub { color: #91a7b8; font-size: 9px; letter-spacing: .1em; }
.workspace-card {
  margin: 12px 14px 8px; padding: 10px; border-color: #40566a; border-radius: 4px;
  background: #2a4054;
}
.workspace-icon { color: #6de3d5; background: #345166; border-radius: 3px; }
.workspace-copy small { color: #91a6b6; letter-spacing: .04em; }
.workspace-copy strong { color: #eef4f6; }
.nav { padding: 2px 12px 12px; }
.nav-caption {
  padding: 15px 11px 6px; color: #879daf; font-size: 10px; letter-spacing: .12em;
}
.nav-item {
  position: relative; height: 40px; margin: 2px 0; padding: 0 12px; border-radius: 3px;
  color: #c5d1da;
}
.nav-item:hover { color: #fff; background: #2b4458; }
.nav-item.active { color: #7ce7da; background: #2d4b58; font-weight: 650; }
.nav-item.active::before {
  content: none;
}
.nav-ico { font-size: 17px; }
.sidebar-foot {
  margin: 6px 14px 12px; padding: 12px 2px 2px; color: #9aabba; border-top-color: #405468;
}
.sidebar-foot strong { margin-left: auto; color: #2dd4bf; font-size: 9px; letter-spacing: .12em; }
.online-dot { background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .14); }

.topbar {
  min-height: 58px; padding: 0 22px; border-bottom: 1px solid #e3e9ed; color: #2c3f4e;
  background: rgba(255, 255, 255, .97); box-shadow: none;
}
.topbar-title { color: #203342; font-size: 15px; letter-spacing: .02em; }
.topbar-date, .topbar-user small { color: #8795a0; }
.top-divider { background: #e1e7eb; }
.icon-button { color: #71818d; }
.icon-button:hover { color: #0f766e; border-color: #c9e4df; background: #eef9f7; }
.user-avatar { border-radius: 4px; color: #fff; background: #20b8a8; }
.topbar-user { color: #2b3e4c; }
.topbar-right .btn-plain { color: #5f707c; border-color: #d3dde2; background: #fff; }
.topbar-right .btn-plain:hover { color: #0f766e; border-color: #66bdb2; background: #f3fbfa; }
.content {
  position: relative; padding: 22px 24px 30px;
  background: #f5f7f9;
}

.page-head { align-items: center; margin-bottom: 16px; }
.page-kicker { margin-bottom: 3px; color: #0f766e; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.page-head h2 { font-size: 21px; letter-spacing: -.25px; }
.page-sub { color: #637481; }

.card { border-color: #e0e6ea; border-radius: 5px; background: #fff; }
.card-head { min-height: 50px; padding: 12px 16px; border-bottom-color: #e7ecef; background: #fff; }
.card-title { font-size: 14px; letter-spacing: .01em; }
.card-title::before { content: ''; width: 3px; height: 14px; border: 0; border-radius: 2px; background: #16a394; }
.card-body { padding: 16px; }

.kpi-row { gap: 10px; }
.kpi-card {
  position: relative; min-height: 84px; padding: 15px 16px; overflow: hidden;
  border-color: #e0e6ea; border-radius: 4px; background: #fff;
}
.kpi-card::before { content: none; }
.kpi-card:hover { border-color: #b9d2d0; box-shadow: none; background: #fcfefe; }
.kpi-ico { width: 40px; height: 40px; border-radius: 3px; font-size: 19px; }
.kpi-value { font-size: 22px; font-variant-numeric: tabular-nums; }

.btn { border-radius: 4px; }
.btn-primary { background: #0d9488; box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: #0f766e; }
.btn-plain { border-color: #cbd7da; }
.btn-plain:hover:not(:disabled) { color: #0f766e; border-color: #0d9488; background: #f0fdfa; }
.btn-link { color: #0f766e; }
.ipt { border-color: #cbd7da; border-radius: 4px; }
.ipt:focus { border-color: #0d9488; box-shadow: var(--focus); }

.tbl-wrap { border: 1px solid #dde5e7; border-radius: 3px; }
.tbl th { height: 40px; color: #52636e; background: #f1f4f6; border-bottom-color: #dce4e8; font-size: 12px; letter-spacing: .02em; }
.tbl td { height: 44px; border-bottom-color: #e5ebed; }
.tbl tbody tr:hover { background: #ecf8f6; }
.badge { border-radius: 3px; font-weight: 600; }
.badge-blue { color: #0f766e; background: #d9f5f0; }
.badge-green { color: #11745d; background: #dcf5ec; }
.skill-tag { color: #0f766e; background: #dcf5f2; border-radius: 3px; }
.pg-track { height: 6px; border-radius: 1px; background: #dfe8e9; }
.pg-fill { border-radius: 1px; background: #0d9488; }
.pg-fill.pg-green { background: #16876c; }
.pg-fill.pg-amber { background: #d97706; }
.tabs { border-bottom-width: 1px; }
.tab.active { color: #0f766e; border-bottom-color: #0d9488; }
.note-box { color: #0f766e; border-color: #9fd7d0; border-radius: 3px; background: #effbf9; }
.modal { border: 1px solid #c9d6d9; border-radius: 5px; }
.modal-head { background: #f4f8f8; }

.login-bg { background: #eef3f5; }
.login-card { border: 1px solid #dce5e9; border-top: 3px solid #20b8a8; border-radius: 5px; box-shadow: 0 12px 32px rgba(34, 56, 75, .1); }
.login-logo { border-radius: 3px; color: #fff; background: #20b8a8; }
.login-ver { color: #0f766e; font-weight: 700; letter-spacing: .12em; }

@media (max-width: 920px) {
  .sidebar { width: 70px; min-width: 70px; }
  .brand { height: 58px; }
  .workspace-card { border-color: #40566a; background: #2a4054; }
  .sidebar-foot strong { display: none; }
}

@media (max-width: 640px) {
  .topbar { min-height: 54px; }
  .content { padding: 14px 12px 24px; }
  .page-kicker { font-size: 8px; }
  .page-head h2 { font-size: 20px; }
  .kpi-card { min-height: 80px; }
  .toolbar .ipt { min-height: 44px; }
}

/* ============ Infinite Domain OS 视觉语言适配 ============ */
:root {
  --ido-ink: #0a0f1e;
  --ido-deep: #060a15;
  --ido-mid: #1e293b;
  --ido-soft: #334155;
  --ido-muted: #64748b;
  --ido-muted-light: #94a3b8;
  --ido-blue: #2563eb;
  --ido-blue-dark: #1d4ed8;
  --ido-blue-deep: #1e40af;
  --ido-blue-mid: #3b82f6;
  --ido-blue-tint: #dbeafe;
  --ido-blue-wash: #eff6ff;
  --ido-cyan: #0891b2;
  --ido-cyan-tint: #cffafe;
  --ido-purple: #7c3aed;
  --ido-green: #059669;
  --ido-surface: #f8fafc;
  --ido-raised: #ffffff;
  --ido-sunken: #f1f5f9;
  --ido-border: #e2e8f0;
  --ido-border-light: #f1f5f9;
  --primary: var(--ido-blue);
  --primary-dark: var(--ido-blue-dark);
  --primary-soft: var(--ido-blue-wash);
  --success: var(--ido-green);
  --warning: #d97706;
  --danger: #dc2626;
  --ink: var(--ido-ink);
  --ink-2: var(--ido-muted);
  --ink-3: var(--ido-muted-light);
  --line: var(--ido-border);
  --bg: var(--ido-surface);
  --card: var(--ido-raised);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 15, 30, .04);
  --focus: 0 0 0 3px rgba(37, 99, 235, .16);
}

html { background: var(--ido-surface); }
body, .layout { color: var(--ido-ink); background: var(--ido-surface); }
.sidebar {
  width: 240px; min-width: 240px; color: #cbd5e1; border-right: 1px solid rgba(148, 163, 184, .12);
  background: var(--ido-ink); box-shadow: 4px 0 18px rgba(6, 10, 21, .06);
}
.brand { height: 68px; border-bottom-color: rgba(148, 163, 184, .14); }
.brand-logo { border-radius: 10px; background: var(--ido-blue); box-shadow: 0 0 20px rgba(37, 99, 235, .22); }
.brand-name { color: #f8fafc; font-size: 17px; letter-spacing: .01em; }
.brand-sub { color: #7dd3fc; font-size: 9px; letter-spacing: .14em; }
.workspace-card { border-color: rgba(148, 163, 184, .18); border-radius: 8px; background: rgba(255, 255, 255, .04); }
.workspace-icon { color: #7dd3fc; border-radius: 7px; background: rgba(37, 99, 235, .18); }
.workspace-copy small, .nav-caption { color: #64748b; }
.workspace-copy strong { color: #e2e8f0; }
.nav { padding-inline: 12px; }
.nav-item { height: 40px; border-radius: 8px; color: #94a3b8; }
.nav-item:hover { color: #f8fafc; background: rgba(148, 163, 184, .09); }
.nav-item.active { color: #bfdbfe; background: rgba(37, 99, 235, .18); box-shadow: inset 2px 0 0 #60a5fa; }
.sidebar-foot { color: #94a3b8; border-top-color: rgba(148, 163, 184, .14); }
.sidebar-foot strong { color: #67e8f9; }
.online-dot { background: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }

.topbar { min-height: 60px; border-bottom-color: var(--ido-border); color: var(--ido-ink); background: rgba(255, 255, 255, .96); }
.topbar-title, .topbar-user { color: var(--ido-ink); }
.topbar-date, .topbar-user small { color: var(--ido-muted); }
.icon-button:hover { color: var(--ido-blue); border-color: var(--ido-blue-tint); background: var(--ido-blue-wash); }
.user-avatar { border-radius: 8px; background: var(--ido-blue); }
.topbar-right .btn-plain { color: var(--ido-muted); border-color: var(--ido-border); }
.topbar-right .btn-plain:hover { color: var(--ido-blue); border-color: #93c5fd; background: var(--ido-blue-wash); }
.content { padding: 24px 26px 32px; background: var(--ido-surface); }

.page-head { margin-bottom: 20px; }
.page-kicker { margin-bottom: 5px; color: var(--ido-blue); font-size: 10px; letter-spacing: .15em; }
.page-head h2 { color: var(--ido-ink); font-size: 22px; letter-spacing: -.02em; }
.page-sub { color: var(--ido-muted); }

.card { border-color: var(--ido-border); border-radius: 12px; background: var(--ido-raised); box-shadow: var(--shadow); }
.card-head { min-height: 52px; padding: 13px 18px; border-bottom-color: var(--ido-border-light); background: var(--ido-raised); }
.card-title { color: var(--ido-mid); font-size: 14px; }
.card-title::before { width: 6px; height: 6px; border-radius: 50%; background: var(--ido-blue); }
.card-body { padding: 18px; }
.delivery-group { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--ido-border); border-radius: 10px; background: #fff; }

.kpi-row { gap: 12px; }
.kpi-card { min-height: 86px; padding: 16px; border-color: var(--ido-border); border-radius: 12px; box-shadow: var(--shadow); }
.kpi-card:hover { border-color: #bfdbfe; background: #fff; box-shadow: 0 4px 6px rgba(10, 15, 30, .05), 0 2px 4px rgba(10, 15, 30, .04); }
.kpi-ico { width: 42px; height: 42px; border-radius: 10px; }
.kpi-value { color: var(--ido-ink); font-size: 23px; }
.kpi-name { color: var(--ido-muted); }

.btn { min-height: 36px; border-radius: 8px; transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.btn-primary { background: var(--ido-blue); box-shadow: 0 1px 2px rgba(10, 15, 30, .08); }
.btn-primary:hover:not(:disabled) { background: var(--ido-blue-dark); box-shadow: 0 4px 8px rgba(37, 99, 235, .18); transform: translateY(-1px); }
.btn-plain { color: var(--ido-muted); border-color: var(--ido-border); }
.btn-plain:hover:not(:disabled) { color: var(--ido-blue); border-color: #93c5fd; background: var(--ido-blue-wash); }
.btn-link { color: var(--ido-blue); }
.btn-success { background: var(--ido-green); }
.btn-success:hover:not(:disabled) { background: #047857; }

.ipt { height: 38px; color: var(--ido-ink); border-color: #cbd5e1; border-radius: 8px; background-color: #fff; }
.ipt:hover:not(:disabled) { border-color: #94a3b8; }
.ipt:focus { border-color: var(--ido-blue); box-shadow: var(--focus); }
select.ipt {
  padding-left: 12px; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 6.25 8 9.75l3.5-3.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center; background-size: 16px 16px;
}
select.ipt:focus { background-color: #fff; }
.toolbar { gap: 10px; margin-bottom: 16px; }
.toolbar .ipt { min-width: 144px; }
.toolbar .ipt.ipt-search { width: 230px; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--ido-border); border-radius: 10px 10px 0 0; }
.tbl { font-size: 13px; }
.tbl th { height: 42px; padding: 10px 12px; color: var(--ido-muted); background: var(--ido-surface); border-bottom-color: var(--ido-border); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.tbl td { height: 46px; padding: 11px 12px; border-bottom-color: var(--ido-border-light); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--ido-blue-wash); }
.tbl .t-sub { color: var(--ido-muted); }

.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; line-height: 1.55; }
.badge-gray { color: #475569; background: #f1f5f9; }
.badge-blue { color: #1d4ed8; background: #dbeafe; }
.badge-green { color: #047857; background: #d1fae5; }
.badge-amber { color: #b45309; background: #fef3c7; }
.badge-red { color: #b91c1c; background: #fee2e2; }
.badge-cyan { color: #0e7490; background: #cffafe; }
.skill-tag { color: var(--ido-blue-deep); border-radius: 999px; background: var(--ido-blue-tint); }
.pg-track { height: 6px; border-radius: 999px; background: var(--ido-sunken); }
.pg-fill { border-radius: 999px; background: var(--ido-blue); }
.pg-fill.pg-green { background: var(--ido-green); }
.tabs { border-bottom-color: var(--ido-border); }
.tab.active { color: var(--ido-blue); border-bottom-color: var(--ido-blue); }
.note-box { color: var(--ido-blue-deep); border-color: #bfdbfe; border-style: solid; border-radius: 8px; background: var(--ido-blue-wash); }
.modal { border: 1px solid var(--ido-border); border-radius: 12px; box-shadow: 0 20px 25px rgba(10, 15, 30, .08), 0 8px 10px rgba(10, 15, 30, .04); }
.modal-head { background: var(--ido-surface); }

.paged-block { min-width: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--ido-border); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; }
.paged-list > .pager { margin-top: 8px; border-top: 1px solid var(--ido-border); border-radius: 10px; }
.pager-summary { color: var(--ido-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pager-summary strong { color: var(--ido-mid); }
.pager-controls, .pager-pages, .pager-size-label { display: flex; align-items: center; gap: 6px; }
.pager-size-label { color: var(--ido-muted); font-size: 12px; white-space: nowrap; }
.pager-size { width: 62px; height: 32px; padding: 0 30px 0 10px; color: var(--ido-mid); border: 1px solid var(--ido-border); border-radius: 8px; outline: none; appearance: none; cursor: pointer; background-color: #fff; background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.5 6.25 8 9.75l3.5-3.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pager-size:focus { border-color: var(--ido-blue); box-shadow: var(--focus); }
.pager-btn { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; color: var(--ido-muted); border: 1px solid var(--ido-border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; font-variant-numeric: tabular-nums; }
.pager-btn:hover:not(:disabled) { color: var(--ido-blue); border-color: #93c5fd; background: var(--ido-blue-wash); }
.pager-btn.active { color: #fff; border-color: var(--ido-blue); background: var(--ido-blue); }
.pager-btn:focus-visible { outline: 0; box-shadow: var(--focus); }
.pager-btn:disabled { color: #cbd5e1; background: var(--ido-surface); cursor: not-allowed; }
.pager-ellipsis { display: grid; place-items: center; width: 24px; color: var(--ido-muted-light); }
[data-page-row][hidden] { display: none !important; }
.deferred-item { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr); gap: 16px; padding: 11px 12px; border-bottom: 1px solid var(--ido-border-light); }
.deferred-item:last-child { border-bottom: 0; }

.chart-tick { fill: var(--ido-muted-light); }
.chart-value, .chart-legend { fill: var(--ido-muted); }
.chart-donut-num { fill: var(--ido-ink); }
.chart-svg [tabindex]:focus { filter: drop-shadow(0 0 3px rgba(37, 99, 235, .38)); }
.warn-item { border-bottom-color: var(--ido-border-light); }
.warn-dot.high { box-shadow: 0 0 0 4px #fee2e2; }
.warn-dot.medium { box-shadow: 0 0 0 4px #fef3c7; }

.login-bg { background: var(--ido-surface); background-image: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .10), transparent 30%), radial-gradient(circle at 84% 78%, rgba(8, 145, 178, .08), transparent 28%); }
.login-card { border-color: var(--ido-border); border-top: 0; border-radius: 16px; box-shadow: 0 20px 25px rgba(10, 15, 30, .08), 0 8px 10px rgba(10, 15, 30, .04); }
.login-logo { border-radius: 12px; background: var(--ido-blue); }
.login-ver { color: var(--ido-blue); }

@media (max-width: 920px) {
  .sidebar { width: 70px; min-width: 70px; }
  .workspace-card { border-color: rgba(148, 163, 184, .18); background: rgba(255, 255, 255, .04); }
}
@media (max-width: 640px) {
  .content { padding: 14px 12px 24px; }
  .pager { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pager-controls { width: 100%; flex-wrap: wrap; }
  .pager-size-label { margin-right: auto; }
  .pager-pages { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .deferred-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ============ 统一下拉与日期选择器 ============ */
.control-shell { position: relative; display: inline-block; min-width: 0; vertical-align: middle; }
.field > .control-shell { display: block; width: 100%; }
.toolbar .control-shell { flex: 0 0 auto; width: 148px; }
.toolbar .control-shell:has(#f-project) { width: 180px; }
.toolbar .control-shell:has(#f-status) { width: 128px; }
.toolbar .control-shell:has(#f-type) { width: 148px; }
.toolbar .date-control-shell { width: 166px; }
.toolbar .month-control-shell { width: 148px; }
.pager-size-label .control-shell { width: 62px; }
.native-control-source {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important;
  padding: 0 !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important;
}
.control-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px;
  padding: 0 12px; color: var(--ido-ink); border: 1px solid #cbd5e1; border-radius: 8px;
  outline: 0; background: #fff; cursor: pointer; font: inherit; font-size: 14px; text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.control-trigger:hover:not(:disabled) { border-color: #94a3b8; }
.control-trigger:focus-visible, .control-trigger.is-open { border-color: var(--ido-blue); box-shadow: var(--focus); }
.control-trigger:disabled { color: var(--ido-muted-light); background: var(--ido-sunken); cursor: not-allowed; }
.control-trigger.is-placeholder .control-value { color: var(--ido-muted); }
.control-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.control-icon { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; color: var(--ido-muted); transition: transform 150ms ease; }
.control-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.control-trigger.is-open .control-icon:not(.calendar-icon) { transform: rotate(180deg); }
.pager-control-shell .control-trigger { height: 32px; padding: 0 8px 0 10px; font-size: 12px; }
.pager-control-shell .control-icon, .pager-control-shell .control-icon svg { width: 14px; height: 14px; }

.control-popover {
  position: fixed; z-index: 500; max-height: min(360px, calc(100vh - 24px)); padding: 6px;
  overflow: auto; overscroll-behavior: contain; color: var(--ido-ink); border: 1px solid var(--ido-border);
  border-radius: 10px; background: #fff; box-shadow: 0 10px 15px rgba(10, 15, 30, .08), 0 4px 6px rgba(10, 15, 30, .04);
  animation: controlPopoverIn 150ms cubic-bezier(0, 0, .2, 1);
}
.select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px;
  padding: 7px 10px; color: var(--ido-mid); border: 0; border-radius: 7px; outline: 0;
  background: transparent; cursor: pointer; font: inherit; font-size: 13px; text-align: left;
}
.select-option:hover:not(:disabled), .select-option:focus-visible { color: var(--ido-blue-deep); background: var(--ido-blue-wash); }
.select-option.selected { color: var(--ido-blue-deep); font-weight: 650; background: var(--ido-blue-tint); }
.select-option:disabled { color: #cbd5e1; cursor: not-allowed; }
.select-option svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.select-option.selected svg { opacity: 1; }

.calendar-popover { width: 292px; max-height: none; padding: 12px; overflow: visible; }
.calendar-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 10px; }
.calendar-head strong { color: var(--ido-mid); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.calendar-head button, .calendar-foot button {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; color: var(--ido-muted);
  border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: inherit;
}
.calendar-head button { font-size: 20px; }
.calendar-head button:hover, .calendar-head button:focus-visible,
.calendar-foot button:hover, .calendar-foot button:focus-visible { color: var(--ido-blue); outline: 0; background: var(--ido-blue-wash); }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.month-grid button, .date-grid button {
  display: grid; place-items: center; height: 34px; padding: 0; color: var(--ido-mid); border: 0;
  border-radius: 7px; outline: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.month-grid button:hover:not(:disabled), .month-grid button:focus-visible,
.date-grid button:hover:not(:disabled), .date-grid button:focus-visible { color: var(--ido-blue-deep); background: var(--ido-blue-wash); }
.month-grid button.selected, .date-grid button.selected { color: #fff; font-weight: 700; background: var(--ido-blue); }
.month-grid button:disabled, .date-grid button:disabled { color: #cbd5e1; cursor: not-allowed; }
.weekday-row, .date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.weekday-row { margin-bottom: 3px; }
.weekday-row span { color: var(--ido-muted-light); font-size: 10px; font-weight: 650; line-height: 24px; text-align: center; }
.date-grid button.outside { color: #cbd5e1; }
.calendar-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--ido-border-light); }
.calendar-foot button { color: var(--ido-blue); font-size: 12px; }
@keyframes controlPopoverIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
  .toolbar .control-shell { width: 100% !important; }
  .pager-size-label .control-shell { width: 62px !important; }
  .control-trigger { min-height: 44px; }
  .pager-control-shell .control-trigger { min-height: 32px; }
}

/* ============ 场景过渡与加载反馈 ============ */
.app-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 3px; overflow: hidden;
  opacity: 0; pointer-events: none; background: rgba(37, 99, 235, .10); transition: opacity 120ms ease;
}
.app-progress span {
  display: block; width: 38%; height: 100%; border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--ido-blue), #22d3ee);
  box-shadow: 0 0 12px rgba(37, 99, 235, .36); transform: translateX(-110%);
}
.app-progress.visible { opacity: 1; }
.app-progress.visible span { animation: networkProgress 1.15s cubic-bezier(.4, 0, .2, 1) infinite; }
.app-progress.done span { width: 100%; animation: none; transform: translateX(0); transition: width 180ms ease; }

.network-status {
  position: fixed; top: 72px; right: 24px; z-index: 490; display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 8px 12px; color: var(--ido-blue-deep); border: 1px solid #bfdbfe;
  border-radius: 999px; background: rgba(239, 246, 255, .96); box-shadow: 0 4px 12px rgba(10, 15, 30, .08);
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease; font-size: 12px; font-weight: 600;
}
.network-status.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.motion-spinner {
  display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: spinnerRotate .72s linear infinite;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading .motion-spinner { width: 14px; height: 14px; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }

.content.page-enter > * { animation: pageSceneIn 300ms cubic-bezier(0, 0, .2, 1) both; }
.content.page-enter > :nth-child(2) { animation-delay: 35ms; }
.content.page-enter > :nth-child(3) { animation-delay: 70ms; }
.content.page-enter > :nth-child(4) { animation-delay: 105ms; }
.content.page-enter > :nth-child(n+5) { animation-delay: 130ms; }

.loading-state { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 8px 10px; min-height: 112px; padding: 18px 4px; color: var(--ido-muted); }
.loading-label { font-size: 12px; font-weight: 600; }
.skeleton-stack { grid-column: 1 / -1; display: grid; gap: 9px; width: 100%; }
.skeleton-line {
  display: block; width: var(--skeleton-width, 86%); height: 10px; overflow: hidden; border-radius: 999px;
  background: linear-gradient(90deg, #f1f5f9 20%, #e2e8f0 38%, #f1f5f9 56%); background-size: 220% 100%;
  animation: skeletonShimmer 1.35s ease-in-out infinite;
}

.chart-svg path[fill="none"][stroke], .chart-svg polyline[fill="none"] {
  stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: chartLineDraw 900ms cubic-bezier(.2, .8, .2, 1) forwards;
}
.chart-svg rect[tabindex] { transform-box: fill-box; transform-origin: center bottom; animation: chartBarRise 520ms cubic-bezier(.2, .8, .2, 1) both; }
.chart-svg path[tabindex]:not([fill="none"]) { transform-box: fill-box; transform-origin: center; animation: chartShapeIn 420ms ease-out both; }

@keyframes networkProgress {
  0% { transform: translateX(-110%); }
  65% { transform: translateX(180%); }
  100% { transform: translateX(300%); }
}
@keyframes spinnerRotate { to { transform: rotate(360deg); } }
@keyframes pageSceneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes skeletonShimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}
@keyframes chartLineDraw { to { stroke-dashoffset: 0; } }
@keyframes chartBarRise {
  from { opacity: .2; transform: scaleY(.06); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes chartShapeIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .network-status { top: 64px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .content.page-enter > *, .chart-svg path, .chart-svg rect, .skeleton-line,
  .motion-spinner, .app-progress.visible span { animation: none !important; }
  .content.page-enter > * { opacity: 1; transform: none; }
}

/* ============ 人员技能画像宽屏弹层 ============ */
.profile-modal {
  width: min(1440px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px) !important;
  max-height: calc(100vh - 48px);
}
.profile-modal .modal-head, .profile-modal .modal-foot { flex: 0 0 auto; }
.profile-modal .modal-body { padding: 18px 20px 22px; overflow-x: hidden; }
.profile-overview {
  display: grid; grid-template-columns: minmax(760px, 1.45fr) minmax(520px, 1fr);
  align-items: stretch; gap: 16px; margin-bottom: 18px;
}
.profile-overview > .card { min-width: 0; margin: 0; }
.profile-skills .card-body, .profile-chart .card-body { height: calc(100% - 52px); }
.profile-chart .card-body { display: flex; align-items: center; min-height: 320px; }
.profile-chart #pf-chart { width: 100%; min-width: 0; }
.profile-chart .chart-cartesian { min-width: 480px; height: 300px; }
.profile-tasks > .card-title { margin: 0 0 10px 2px; }
.profile-modal .tbl-wrap { scrollbar-width: thin; }

@media (max-width: 1500px) {
  .profile-overview { grid-template-columns: 1fr; }
  .profile-chart .card-body { min-height: 300px; }
  .profile-chart .chart-cartesian { min-width: 720px; }
}

@media (max-width: 760px) {
  .profile-modal { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; }
  .profile-modal .modal-body { padding: 14px; }
  .profile-chart .chart-cartesian { min-width: 560px; }
}

/* ============ 瑞科数字品牌标识 ============ */
.boot-loading { flex-direction: column; gap: 12px; }
.boot-logo {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px;
  overflow: hidden; border: 1px solid var(--ido-border); border-radius: 12px; background: #fff;
  box-shadow: 0 4px 12px rgba(10, 15, 30, .08);
}
.boot-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.82); }

.brand { height: 84px; padding: 10px 14px; gap: 10px; }
.brand-logo { width: 40px; height: 40px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); background: #fff; box-shadow: 0 0 20px rgba(37, 99, 235, .18); }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.82); }
.brand-txt { min-width: 0; }
.brand-name { color: #f8fafc; font-size: 12px; line-height: 17px; font-weight: 700; letter-spacing: 0; white-space: normal; }
.brand-sub { margin-top: 3px; color: #7dd3fc; font-size: 8px; line-height: 11px; letter-spacing: .13em; }

.login-card { width: 520px; }
.login-brand { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 26px; text-align: center; }
.login-logo-image { display: block; width: 324px; height: 135px; object-fit: contain; }
.login-title { max-width: 430px; color: var(--ido-ink); font-size: 19px; line-height: 1.55; letter-spacing: -.01em; }
.login-ver { color: var(--ido-blue); font-size: 10px; font-weight: 700; letter-spacing: .13em; }

@media (max-width: 640px) {
  .login-card { width: 100%; padding-inline: 24px; }
  .login-logo-image { width: 252px; height: 105px; }
  .login-title { font-size: 17px; }
}
