/* 技术管理工作台 - 深色专业后台 */
:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #172029;
  --surface-3: #1d2733;
  --border: #222d3a;
  --border-2: #2c3948;
  --text: #e4ecf5;
  --muted: #8b9aab;
  --faint: #5d6c7d;
  --accent: #4c8dff;
  --accent-soft: rgba(76, 141, 255, 0.12);
  --ok: #3fb950;
  --ok-soft: rgba(63, 185, 80, 0.14);
  --warn: #d8a137;
  --warn-soft: rgba(216, 161, 55, 0.14);
  --danger: #f0554d;
  --danger-soft: rgba(240, 85, 77, 0.14);
  --info: #56a8f5;
  --info-soft: rgba(86, 168, 245, 0.13);
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #283542; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #35475a; }

button, input, select, textarea { font-family: inherit; font-size: 13px; color: var(--text); }
a { color: var(--accent); text-decoration: none; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1100px 500px at 50% -10%, #16263c 0%, var(--bg) 62%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 372px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 30px 28px 26px;
  box-shadow: var(--shadow);
}
.login-logo {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.login-card h1 { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.login-card p.sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 22px; }
.login-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.login-card .err { color: var(--danger); font-size: 12px; margin-top: 10px; min-height: 16px; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex: 0 0 216px; background: #0e141b; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { padding: 18px 16px 14px; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.brand-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.brand-sub { font-size: 10.5px; color: var(--faint); letter-spacing: .4px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.nav-group { margin-top: 14px; }
.nav-group-title {
  font-size: 10.5px; color: var(--faint); letter-spacing: 1.1px;
  padding: 0 8px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 7.5px 9px; border-radius: 7px;
  color: var(--muted); cursor: pointer; font-size: 13px; user-select: none;
  transition: background .12s, color .12s;
}
.nav-item svg { width: 15px; height: 15px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: #a9c8ff; }
.nav-item.active svg { opacity: 1; stroke: #7fb0ff; }
.nav-item .count {
  margin-left: auto; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums;
  background: var(--surface-3); padding: 1px 6px; border-radius: 20px;
}
.nav-item.active .count { background: rgba(76,141,255,.18); color: #9dc0ff; }
.sidebar-foot { padding: 12px 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--faint); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex: 0 0 58px; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; border-bottom: 1px solid var(--border); background: rgba(11,15,20,.86);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 15px; font-weight: 600; }
.topbar .desc { font-size: 11.5px; color: var(--faint); margin-left: 2px; }
.topbar-spacer { flex: 1; }
.content { padding: 20px 22px 40px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text); cursor: pointer; white-space: nowrap; transition: .12s;
}
.btn:hover { background: var(--surface-3); border-color: #3a4b5e; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3f7ff0; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(240,85,77,.4); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; }

.input, select.input, textarea.input {
  height: 31px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--surface-2); outline: none; width: 100%;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: auto; padding: 8px 10px; resize: vertical; min-height: 72px; line-height: 1.6; }
select.input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9aab' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; padding-right: 26px; }

.search-box { position: relative; }
.search-box svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; stroke: var(--faint); fill: none; stroke-width: 1.9; }
.search-box .input { padding-left: 29px; width: 210px; height: 30px; background: var(--surface); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}

.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 20px;
  font-size: 11.5px; white-space: nowrap; line-height: 1;
}
.badge.ok { background: var(--ok-soft); color: #56d364; }
.badge.danger { background: var(--danger-soft); color: #ff7b72; }
.badge.warn { background: var(--warn-soft); color: #e3b341; }
.badge.info { background: var(--info-soft); color: #79c0ff; }
.badge.muted { background: #1e2833; color: var(--muted); }
.badge.neutral { background: #1e2833; color: var(--muted); }

.priority {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .2px;
}
.priority.P0 { color: #ff7b72; } .priority.P1 { color: #e3b341; }
.priority.P2 { color: #79c0ff; } .priority.P3 { color: var(--faint); }

/* ---------- 列表 ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .filter-sel { width: auto; min-width: 108px; height: 30px; }
.toolbar .spacer { flex: 1; }
.result-hint { font-size: 11.5px; color: var(--faint); }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; background: var(--surface); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
table.grid thead th {
  position: sticky; top: 0; z-index: 2; background: #141c25; text-align: left;
  font-size: 11.5px; font-weight: 500; color: var(--muted); padding: 9px 12px;
  border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none;
}
table.grid thead th:hover { color: var(--text); }
table.grid thead th .arrow { color: var(--accent); margin-left: 3px; }
table.grid tbody td {
  padding: 9px 12px; border-bottom: 1px solid rgba(34,45,58,.6); font-size: 12.5px;
  vertical-align: middle; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { background: #16202b; }
table.grid tbody tr:last-child td { border-bottom: none; }
td .cell-title { color: var(--text); font-weight: 500; }
td .muted-txt { color: var(--faint); }
.money { font-variant-numeric: tabular-nums; color: #a5d6a7; }
.num { font-variant-numeric: tabular-nums; }

.empty { padding: 56px 20px; text-align: center; color: var(--faint); font-size: 12.5px; }

.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- 驾驶舱 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1180px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 15px; position: relative; overflow: hidden; }
.kpi .k-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 22px; font-weight: 600; margin-top: 8px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.kpi .k-value small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi .k-foot { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.kpi .k-foot b { font-weight: 500; color: var(--warn); }
.kpi .k-foot b.red { color: var(--danger); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .8; }
.kpi.warn::after { background: var(--warn); }
.kpi.danger::after { background: var(--danger); }
.kpi.ok::after { background: var(--ok); }

.panel-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 1080px) { .panel-grid { grid-template-columns: 1fr; } }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px 11px; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-size: 13px; font-weight: 500; }
.panel-head .hint { font-size: 11px; color: var(--faint); }
.panel-body { padding: 14px 16px 16px; }

.bar-row { display: grid; grid-template-columns: 84px 1fr 76px; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12px; }
.bar-row .lbl { color: var(--muted); }
.bar-track { display: block; height: 8px; background: #10171f; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.bar-fill { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #3d7df0, #4c8dff); transition: width .4s; }
.bar-row .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.alert-list { display: flex; flex-direction: column; max-height: 268px; overflow-y: auto; padding-right: 3px; }
.alert-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  cursor: pointer; font-size: 12.5px; border: 1px solid transparent;
}
.alert-item:hover { background: #16202b; border-color: var(--border); }
.alert-item .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.alert-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-item .meta { font-size: 11px; color: var(--faint); white-space: nowrap; }
.alert-empty { padding: 18px; text-align: center; color: var(--faint); font-size: 12px; }

/* ---------- 看板 ---------- */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { flex: 0 0 244px; background: #10161e; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.kcol-head { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 500; }
.kcol-head .n { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.kcol-body { padding: 9px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; }
.kcol.drag-over .kcol-body { background: rgba(76,141,255,.06); }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; cursor: grab; }
.kcard:hover { border-color: var(--border-2); }
.kcard.dragging { opacity: .45; }
.kcard .kc-title { font-size: 12.5px; line-height: 1.45; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .kc-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--faint); flex-wrap: wrap; }
.kcard .kc-meta .due-late { color: var(--danger); }
.kcard .prog { height: 3px; background: var(--surface-3); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.kcard .prog i { display: block; height: 100%; background: var(--accent); }

/* ---------- 漏斗 ---------- */
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 1180px) { .funnel { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.fstage { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.fstage .fs-name { font-size: 12px; color: var(--muted); }
.fstage .fs-amt { font-size: 17px; font-weight: 600; margin-top: 7px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.fstage .fs-cnt { font-size: 11px; color: var(--faint); margin-top: 3px; }
.fstage .fs-bar { height: 3px; border-radius: 3px; background: var(--accent); margin-top: 10px; opacity: .75; }

/* ---------- 抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(4,7,11,.62); z-index: 60; opacity: 0; transition: opacity .16s; }
.drawer-mask.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 94vw; background: var(--surface);
  border-left: 1px solid var(--border); z-index: 61; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .2s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow);
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 14px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }
.drawer-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row { margin-bottom: 13px; min-width: 0; }
.form-row.span2 { grid-column: 1 / -1; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-row label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.form-row label .req { color: var(--danger); margin-left: 2px; }
.form-meta { font-size: 11px; color: var(--faint); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- toast / modal ---------- */
#toast-host { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text);
  padding: 8px 15px; border-radius: 20px; font-size: 12.5px; box-shadow: var(--shadow);
  animation: toastIn .18s ease-out;
}
.toast.ok { border-color: rgba(63,185,80,.45); }.toast.err { border-color: rgba(240,85,77,.5); color: #ff9d97; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(4,7,11,.62); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.modal h3 { font-size: 14px; font-weight: 600; padding: 16px 18px 8px; }
.modal p { font-size: 12.5px; color: var(--muted); padding: 0 18px 18px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }

@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .topbar { padding: 0 14px; }
  .content { padding: 14px; }
  .search-box .input { width: 130px; }
  .topbar .desc { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 860px) { .menu-btn { display: inline-flex; } }

/* ---------- 悬浮提示 ---------- */
.has-tip { cursor: help; border-bottom: 1px dashed rgba(76,141,255,.5); }
.has-tip:hover { color: #9dc0ff; }
.float-tip {
  position: fixed; left: 0; top: 0; z-index: 300; max-width: 300px;
  padding: 8px 11px; background: #0e151d; border: 1px solid var(--border-2);
  border-radius: 8px; box-shadow: var(--shadow); color: var(--text);
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease;
  pointer-events: none;
}
.float-tip.show { opacity: 1; transform: none; }

/* ---------- 卡片视图（领导交办） ---------- */
.acard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding-bottom: 14px; }
.acard {
  position: relative; display: flex; flex-direction: column; gap: 9px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px 11px; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.acard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-2); }
.acard.danger::before { background: var(--danger); }
.acard.warn::before { background: var(--warn); }
.acard.info::before { background: var(--info); }
.acard.ok::before { background: var(--ok); }
.acard.muted::before, .acard.neutral::before { background: var(--border-2); }
.acard:hover { border-color: var(--border-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.38); }
.ac-top { display: flex; align-items: center; gap: 6px; }
.ac-spacer { flex: 1; }
.ac-due { font-size: 11.5px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-due.danger { color: var(--danger); font-weight: 500; }
.ac-due.warn { color: var(--warn); }
.ac-title { font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-people { display: flex; flex-wrap: wrap; gap: 4px 13px; font-size: 11.5px; color: var(--muted); }
.ac-people span { display: inline-flex; align-items: center; gap: 4px; }
.ac-people i { font-style: normal; font-size: 11px; color: var(--faint); }
.ac-prog { display: flex; align-items: center; gap: 8px; }
.ac-prog-track { flex: 1; height: 4px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.ac-prog-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #3d7df0, #4c8dff); }
.ac-prog-num { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ac-report {
  font-size: 11.5px; line-height: 1.6; color: var(--muted); background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 7px 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; color: var(--faint); }
.ac-edit { color: var(--accent); opacity: 0; transition: opacity .15s; }
.acard:hover .ac-edit { opacity: 1; }
@media (max-width: 720px) { .acard-grid { grid-template-columns: 1fr; } }

/* ---------- 窄屏顶栏收紧：避免标题被挤成竖排 ---------- */
.topbar h2 { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 860px) {
  .topbar { gap: 8px; }
  .topbar #export-btn, .topbar #import-btn { display: none; }
  .search-box .input { width: 104px; }
  .topbar .btn.primary { padding: 0 10px; }
}

/* ---------- 泳道视图：待办 / 进行中 / 已完成 ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.lane {
  background: #0f151d; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: calc(100vh - 216px);
  transition: border-color .15s, background .15s;
}
.lane.drag-over { border-color: rgba(76,141,255,.55); background: rgba(76,141,255,.05); }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--border); }
.lane-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.lane-dot.info { background: var(--info); }
.lane-dot.ok { background: var(--ok); }
.lane-dot.warn { background: var(--warn); }
.lane-dot.danger { background: var(--danger); }
.lane-name { font-size: 12.5px; font-weight: 600; letter-spacing: .2px; }
.lane-count {
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--surface-3);
  color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.lane-hint { font-size: 11px; color: var(--faint); }
.lane-late { font-size: 11px; color: var(--danger); font-weight: 500; }
.lane-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 90px; }
.lane-empty { border: 1px dashed var(--border-2); border-radius: 8px; padding: 24px 12px; text-align: center; color: var(--faint); font-size: 11.5px; }
.acard.dragging { opacity: .45; cursor: grabbing; }
@media (max-width: 1120px) {
  .lanes { grid-template-columns: 1fr; }
  .lane { max-height: none; }
}
/* 泳道内卡片不允许被 flex 压缩（否则高度被挤扁、内容重叠） */
.lane-body > .acard { flex: 0 0 auto; }
@media (min-width: 1121px) {
  .lane { height: calc(100vh - 216px); min-height: 380px; }
  .lane-body { flex: 1 1 auto; }
}
/* 泳道内容超出时底部渐隐，提示可滚动 */
.lane { position: relative; }
.lane.scrollable::after {
  content: ''; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 32px;
  background: linear-gradient(180deg, rgba(15,21,29,0), rgba(15,21,29,.96));
  border-radius: 0 0 var(--radius) var(--radius); pointer-events: none;
}

/* ---------- 钉钉同步弹窗 ---------- */
.modal.wide { max-width: 520px; }
.modal-sub { font-size: 11.5px !important; color: var(--faint) !important; padding: 0 18px 12px !important; line-height: 1.65; }
.modal .form-row { padding: 0 18px; margin-bottom: 11px; }
.modal .form-row label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.dt-state {
  margin: 0 18px 13px; padding: 9px 11px; border-radius: 8px; font-size: 11.5px; line-height: 1.6;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.dt-state.ok { border-color: rgba(63,185,80,.35); color: #8fd39a; }
.dt-state.warn { border-color: rgba(216,161,55,.35); color: #e3c069; }
.dt-state b { color: var(--text); font-weight: 600; }
.dt-msg {
  margin: 0 18px 12px; font-size: 11.5px; line-height: 1.65; white-space: pre-wrap;
  color: var(--faint); min-height: 16px; word-break: break-word;
}
.dt-msg.ok { color: #8fd39a; }
.dt-msg.err { color: #ff8a80; }

/* ---------- 听记授权面板 ---------- */
.dt-note {
  margin: 0 18px 12px; padding: 10px 12px; border-radius: 8px; font-size: 11.5px; line-height: 1.6;
  color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border);
}
.dt-auth {
  margin: 0 18px 14px; padding: 12px 12px 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.dt-code { text-align: center; padding: 2px 0 10px; }
.dt-code-label { font-size: 11px; color: var(--faint); letter-spacing: .08em; }
.dt-code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 25px; font-weight: 700; letter-spacing: .04em; color: var(--text);
  margin: 4px 0 6px; user-select: all;
}
.dt-code-tip { font-size: 11.5px; color: var(--muted); }
.dt-link-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dt-hint { font-size: 11px; color: var(--faint); }
.dt-block {
  margin: 0 18px 14px; padding: 11px 12px; border-radius: 10px;
  background: rgba(216, 161, 55, .08); border: 1px solid rgba(216, 161, 55, .38);
}
.dt-block-title { font-size: 12px; font-weight: 600; color: #e3c069; margin-bottom: 6px; }
.dt-block-body { font-size: 11.5px; line-height: 1.75; color: var(--muted); word-break: break-word; }

/* ---------- 内容预览弹窗（周报月报） ---------- */
.cell-title.pv-link { color: var(--accent); cursor: pointer; border-bottom: 1px dashed rgba(76,141,255,.45); }
.cell-title.pv-link:hover { color: #9dc0ff; border-bottom-color: rgba(157,192,255,.85); }

.modal.preview {
  max-width: 820px; width: 100%; max-height: 86vh; padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.pv-head { position: relative; padding: 16px 46px 12px 18px; border-bottom: 1px solid var(--border); }
.pv-tags { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
.pv-chip {
  font-size: 11px; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.modal.preview .pv-title {
  font-size: 15px; font-weight: 600; line-height: 1.45; padding: 0; margin: 0 0 6px;
  color: var(--text); word-break: break-word;
}
.pv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--faint); }
.pv-mi { display: inline-flex; align-items: center; gap: 4px; }
.pv-mi svg { width: 12px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.pv-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; }
.pv-tools .btn.sm { padding: 0 8px; height: 24px; font-size: 11px; }

.pv-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px 18px; }
.pv-block + .pv-block { margin-top: 15px; padding-top: 14px; border-top: 1px dashed var(--border); }
.modal.preview .pv-key {
  font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .2px;
  margin: 0 0 6px; padding: 0;
}
.pv-text {
  font-size: 12.5px; line-height: 1.85; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.pv-text.pv-none { color: var(--faint); font-style: italic; }
.pv-fold { display: none !important; }
.pv-more {
  display: block; width: 100%; margin-top: 12px; padding: 7px 0;
  background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 7px;
  color: var(--muted); font-size: 11.5px; cursor: pointer;
}
.pv-more:hover { color: var(--accent); border-color: var(--accent); }
.pv-empty { padding: 40px 0; text-align: center; color: var(--faint); font-size: 12px; }

.pv-foot {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.pv-count { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- 待办清单（会议后续任务） ---------- */
.todo-cell { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 186px; cursor: pointer; }
.todo-cell:hover .todo-first { color: var(--text); }
.todo-pill {
  flex: 0 0 auto; font-size: 10.5px; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 20px; background: var(--surface-3);
  color: var(--muted); border: 1px solid var(--border-2);
}
.todo-pill.part { color: #e3c069; background: var(--warn-soft); border-color: rgba(216,161,55,.35); }
.todo-pill.ok { color: #56d364; background: var(--ok-soft); border-color: rgba(63,185,80,.35); }
.todo-first {
  font-size: 11.5px; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.todo-first.done { text-decoration: line-through; color: var(--faint); }

.pv-chip.pv-ai { color: #9dc0ff; background: var(--accent-soft); border-color: rgba(76,141,255,.4); }

.todo-block .todo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.todo-block .todo-head .pv-key { margin: 0; }
.todo-stat { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.todo-stat.ok { color: #56d364; }
.todo-bar { height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-bottom: 9px; }
.todo-bar i { display: block; height: 100%; background: var(--accent); transition: width .25s; }

.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px;
  border-radius: 6px; font-size: 12.5px; line-height: 1.7;
}
.todo-item + .todo-item { margin-top: 1px; }
.todo-item:hover { background: var(--surface-2); }
.todo-item.editing { background: var(--surface-2); align-items: center; }
.todo-cb { flex: 0 0 auto; margin-top: 5px; width: 13px; height: 13px; accent-color: var(--ok); cursor: pointer; }
.todo-text { flex: 1 1 auto; min-width: 0; color: var(--text); word-break: break-word; cursor: text; }
.todo-item.done .todo-text { color: var(--faint); text-decoration: line-through; }
.todo-meta { flex: 0 0 auto; font-size: 11px; color: var(--faint); display: inline-flex; gap: 4px; white-space: nowrap; }
.todo-meta em { font-style: normal; opacity: .5; }
.todo-late { color: var(--danger); }
.todo-del {
  flex: 0 0 auto; opacity: 0; width: 18px; height: 18px; line-height: 1;
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  border-radius: 4px; font-size: 11px; transition: opacity .12s;
}
.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { background: var(--danger-soft); color: var(--danger); }
.todo-empty { font-size: 12px; color: var(--faint); padding: 6px 2px; }
.todo-add { display: flex; gap: 6px; margin-top: 8px; }
.todo-input {
  flex: 1 1 auto; min-width: 0; height: 28px; padding: 0 9px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 12px;
}
.todo-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.todo-mini {
  flex: 0 0 auto; height: 28px; padding: 0 10px; border-radius: 6px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--border-2); color: var(--muted); font-size: 11.5px;
}
.todo-mini:hover { color: var(--text); border-color: var(--accent); }
.todo-mini.prim { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 720px) {
  .modal.preview { max-height: 92vh; }
  .pv-head { padding-right: 42px; }
  .pv-foot { flex-wrap: wrap; }
  .pv-foot .pv-count { width: 100%; margin-bottom: 4px; }
}
