* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang SC', 'Microsoft YaHei', 'Source Han Sans CN',
               'Noto Sans SC', sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #080818;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(220,38,38,0.08), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(160,32,240,0.07), transparent 60%),
    radial-gradient(circle, rgba(220,38,38,0.04) 1px, transparent 1px) 0 0 / 28px 28px;
}

button, input, select, textarea {
  font-family: inherit;
}

.hidden { display: none !important; }

/* ─── 顶部 ─── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,24,0.95); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(220,38,38,0.6), 0 4px 24px rgba(220,38,38,0.15);
}
.topbar {
  width: 100%; padding: 0 32px;
  height: 72px; display: flex; align-items: center; gap: 28px;
}

/* 顶部 Tab */
.tabs { display: flex; gap: 4px; }
.tab {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.55); font-family: inherit;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding: 8px 16px; border-radius: 6px;
  transition: all .2s;
}
.tab:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.04); }
.tab.active {
  color: #dc2626; background: rgba(220,38,38,0.1);
  text-shadow: 0 0 8px rgba(220,38,38,0.4);
}
.filters { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .dot {
  width: 10px; height: 10px; background: #dc2626; border-radius: 50%;
  box-shadow: 0 0 14px #dc2626;
}
.brand .name {
  font-size: 22px; font-weight: 600; letter-spacing: 0.12em; color: #fff;
}
.filters { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.filters select, .filters input[type="search"] {
  background: transparent;
  border: 1px solid rgba(220,38,38,0.25);
  color: #fff;
  font-size: 14px;
  padding: 10px 14px; letter-spacing: 0.04em; outline: none;
  transition: all .3s;
}
.filters select:hover, .filters input:hover,
.filters select:focus, .filters input:focus {
  border-color: rgba(220,38,38,0.7); box-shadow: 0 0 10px rgba(220,38,38,0.3);
}
.filters select option { background: #0c0c1e; color: #fff; }
.filters input[type="search"] { width: 260px; }

.btn {
  cursor: pointer; border: none;
  padding: 10px 22px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  transition: all .3s;
}
.btn-primary {
  background: #dc2626; color: #fff;
  box-shadow: 0 0 20px rgba(220,38,38,0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover { background: #b91c1c; }
.btn-ghost {
  background: transparent; color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
}
.btn-ghost:hover { border-color: rgba(56,189,248,0.8); }
.btn-danger {
  background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-danger:hover { color: #dc2626; border-color: #dc2626; }

/* ─── 整体布局：左侧栏 + 主体 + 编辑抽屉 ─── */
.layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 240px 1fr;
  align-items: stretch;
  min-height: calc(100vh - 72px - 56px);
}
.layout:has(#sidebar:not(.hidden)) {
  grid-template-columns: 240px 1fr 440px;
}

/* 左侧项目栏 */
.sidebar-projects {
  background: rgba(12,12,30,0.5);
  border-right: 1px solid rgba(220,38,38,0.15);
  padding: 20px 14px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.sp-section { display: flex; flex-direction: column; gap: 4px; }
.sp-head {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); padding: 4px 8px;
}
.sp-section ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 14px; color: rgba(255,255,255,0.75);
  cursor: pointer; border-radius: 6px;
  transition: all .2s;
  border-left: 2px solid transparent;
}
.sp-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sp-item.active {
  background: rgba(220,38,38,0.12); color: #fff;
  border-left-color: #dc2626;
}
.sp-item .sp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); flex-shrink: 0;
}
.sp-item.active .sp-dot { background: #dc2626; box-shadow: 0 0 6px #dc2626; }
.sp-item.status-active .sp-dot { background: #38bdf8; }
.sp-item.status-paused .sp-dot { background: #fbbf24; }
.sp-item.status-done   .sp-dot { background: #10b981; }
.sp-item .sp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item .sp-count {
  font-size: 11px; color: rgba(255,255,255,0.4);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.sp-item .sp-edit {
  display: none;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.sp-item:hover .sp-edit { display: inline-flex; }
.sp-item:hover .sp-count { display: none; }
.sp-item .sp-edit:hover {
  color: #dc2626; border-color: #dc2626;
  background: rgba(220,38,38,0.08);
  box-shadow: 0 0 8px rgba(220,38,38,0.3);
}
.sp-empty {
  padding: 6px 10px; font-size: 12px;
  color: rgba(255,255,255,0.25); font-style: italic;
}
.sp-new {
  margin-top: auto; width: 100%;
}

/* 主体 */
main {
  padding: 20px 24px;
}
.tab-pane.hidden { display: none; }

.board {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 72px - 56px - 40px);
}

.col {
  background: rgba(12,12,30,0.55);
  border: 1px solid rgba(220,38,38,0.15);
  padding: 20px 18px;
  position: relative;
  display: flex; flex-direction: column;
}
.list { flex: 1; }
.col::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.col[data-status="todo"]::before  { background: #dc2626; box-shadow: 0 0 10px #dc2626; }
.col[data-status="doing"]::before { background: #a020f0; box-shadow: 0 0 10px #a020f0; }
.col[data-status="done"]::before  { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.col h2 {
  font-size: 16px; font-weight: 600; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.col h2 .bar { width: 3px; height: 18px; }
.col[data-status="todo"]  h2 .bar { background: #dc2626; box-shadow: 0 0 8px #dc2626; }
.col[data-status="doing"] h2 .bar { background: #a020f0; box-shadow: 0 0 8px #a020f0; }
.col[data-status="done"]  h2 .bar { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.count {
  margin-left: auto;
  font-size: 13px; font-weight: 500; padding: 3px 12px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* ─── 卡片 ─── */
.card {
  background: #0c0c1e;
  border: 1px solid rgba(220,38,38,0.2);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  cursor: pointer; position: relative;
  transition: all .3s;
}
.card:hover {
  border-color: var(--accent, rgba(220,38,38,0.7));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 12px var(--accent-glow, rgba(220,38,38,0.15));
}
.card.violet { --accent: #a020f0; --accent-glow: rgba(160,32,240,0.15); border-color: rgba(160,32,240,0.25); }
.card.ice    { --accent: #38bdf8; --accent-glow: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.25); }
.card.gold   { --accent: #fbbf24; --accent-glow: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.25); }
.card.dep-ready {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 18px rgba(251,191,36,0.4);
}
.card-title {
  font-size: 16px; font-weight: 600; color: #fff;
  margin-bottom: 12px; line-height: 1.5;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip {
  font-size: 12px; padding: 4px 10px; letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7);
  border-radius: 2px;
}
.chip.owner-a { color: #dc2626; border-color: rgba(220,38,38,0.5); }
.chip.owner-b { color: #38bdf8; border-color: rgba(56,189,248,0.5); }
.chip.tag    { color: #fbbf24; border-color: rgba(251,191,36,0.4); }
.chip.tag.urgent { color: #fff; background: #dc2626; border-color: #dc2626; }
.chip.dep    { color: #a020f0; border-color: rgba(160,32,240,0.4); }
.chip.removable { cursor: pointer; user-select: none; }
.chip.removable:hover { background: rgba(255,255,255,0.05); }

/* 侧边栏标签选择器：chip 内含 label + 删除 × */
.chip.pickable {
  padding: 0; display: inline-flex; align-items: stretch;
  cursor: default; user-select: none; opacity: 0.55;
  transition: all .2s;
}
.chip.pickable:hover { opacity: 1; }
.chip.pickable.on { opacity: 1; color: #fbbf24; border-color: rgba(251,191,36,0.6); }
.chip.pickable .chip-label {
  cursor: pointer; padding: 3px 8px;
}
.chip.pickable .chip-del {
  cursor: pointer;
  padding: 3px 7px;
  border-left: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.35);
  font-size: 14px; line-height: 1;
  transition: all .2s;
}
.chip.pickable .chip-del:hover {
  background: rgba(220,38,38,0.85); color: #fff;
  border-color: rgba(220,38,38,0.85);
}
.card-remind {
  font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 10px;
  display: flex; align-items: center; gap: 6px;
}
.card-remind .pulse {
  width: 5px; height: 5px; background: #fbbf24; border-radius: 50%;
  box-shadow: 0 0 6px #fbbf24;
}

/* Sortable.js 拖拽样态 */
.sortable-ghost { opacity: 0.35; }
.sortable-drag { cursor: grabbing; }
.list.drag-over { background: rgba(220,38,38,0.04); }

/* ─── 侧边栏 ─── */
aside {
  background: rgba(12,12,30,0.85);
  border: 1px solid rgba(220,38,38,0.3);
  padding: 20px; position: sticky; top: 96px;
  box-shadow: 0 0 30px rgba(220,38,38,0.1);
  align-self: start;
}
aside h3 {
  font-size: 16px; font-weight: 600; letter-spacing: 0.16em; color: #fff;
  margin-bottom: 22px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(220,38,38,0.25);
  display: flex; align-items: center; gap: 12px;
}
aside h3::before {
  content: ''; width: 3px; height: 18px; background: #dc2626;
  box-shadow: 0 0 8px #dc2626;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 14px;
  padding: 10px 13px; outline: none; transition: all .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #dc2626; box-shadow: 0 0 10px rgba(220,38,38,0.3);
}
.field select option { background: #0c0c1e; color: #fff; }
.field textarea { resize: vertical; min-height: 70px; font-family: inherit; }
.datetime-row { display: flex; gap: 6px; align-items: stretch; }
.datetime-row input[type="date"] { flex: 1.4; }
.datetime-row input[type="time"] { flex: 1; }
.datetime-row input::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.btn-mini { padding: 6px 12px; font-size: 12px; }
.tags-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }

.actions {
  display: flex; gap: 8px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06);
}
.actions .btn { flex: 1; padding: 11px; font-size: 14px; }

.msg {
  margin-top: 10px; font-size: 12px; min-height: 18px;
  color: rgba(255,255,255,0.5);
}
.msg.error { color: #ff6b6b; }
.msg.ok { color: #38bdf8; }

/* ─── 操作日志抽屉 ─── */
.logs-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.logs-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: 440px; max-width: 90vw;
  background: #0c0c1e;
  border-left: 1px solid rgba(220,38,38,0.4);
  box-shadow: -8px 0 32px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.logs-head {
  padding: 16px 20px; border-bottom: 1px solid rgba(220,38,38,0.25);
  display: flex; align-items: center; justify-content: space-between;
}
.logs-head h3 {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.logs-head h3::before {
  content: ''; width: 3px; height: 14px; background: #dc2626;
  box-shadow: 0 0 8px #dc2626;
}
.logs-head-actions { display: flex; gap: 6px; }
.logs-body {
  flex: 1; overflow-y: auto; padding: 12px 20px;
}
.log-item {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.log-item:last-child { border-bottom: none; }
.log-row1 {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.log-action {
  font-size: 10px; padding: 2px 8px; letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px; flex-shrink: 0;
}
.log-action.create { color: #38bdf8; border-color: rgba(56,189,248,0.5); }
.log-action.update { color: #fbbf24; border-color: rgba(251,191,36,0.5); }
.log-action.delete { color: #dc2626; border-color: rgba(220,38,38,0.5); }
.log-action.status { color: #a020f0; border-color: rgba(160,32,240,0.5); }
.log-time {
  font-size: 11px; color: rgba(255,255,255,0.35);
  margin-left: auto; font-variant-numeric: tabular-nums;
}
.log-summary {
  font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.5;
}
.log-actor {
  font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px;
}
.log-empty {
  text-align: center; padding: 60px 20px;
  font-size: 13px; color: rgba(255,255,255,0.3);
}

/* ─── 流程视图 ─── */
.flow-empty {
  display: flex; align-items: center; justify-content: center;
  height: calc(100vh - 72px - 56px - 80px);
}
.flow-empty-text {
  text-align: center; color: rgba(255,255,255,0.4);
  font-size: 16px; line-height: 1.8;
}
.flow-empty-text small { color: rgba(255,255,255,0.25); font-size: 13px; }

.flow-detail.hidden { display: none; }
.flow-head {
  display: flex; justify-content: space-between; gap: 32px;
  padding: 20px 24px; margin-bottom: 20px;
  background: rgba(12,12,30,0.55);
  border: 1px solid rgba(220,38,38,0.18);
}
.flow-head-left { flex: 1; }
.flow-head-left h2 {
  font-size: 22px; font-weight: 600; color: #fff;
  margin-bottom: 10px; letter-spacing: 0.02em;
}
.flow-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-chip {
  font-size: 12px; padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-radius: 4px;
}
.meta-chip:empty { display: none; }
.meta-chip.status-active { color: #38bdf8; border-color: rgba(56,189,248,0.5); }
.meta-chip.status-paused { color: #fbbf24; border-color: rgba(251,191,36,0.5); }
.meta-chip.status-done   { color: #10b981; border-color: rgba(16,185,129,0.5); }

.flow-head-right {
  display: flex; flex-direction: column; gap: 10px; min-width: 240px;
  align-items: stretch;
}
.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}
.progress-label span:last-child {
  color: #dc2626; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.08); overflow: hidden; border-radius: 3px;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, #dc2626, #fbbf24);
  box-shadow: 0 0 8px rgba(220,38,38,0.5);
  transition: width .3s;
}
input[type="range"] {
  width: 100%; appearance: none; height: 4px; cursor: pointer;
  background: rgba(255,255,255,0.1); border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #dc2626; box-shadow: 0 0 8px rgba(220,38,38,0.6);
  cursor: pointer; transition: all .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.stages-wrap {
  display: flex; gap: 14px; align-items: flex-start;
  overflow-x: auto; padding-bottom: 16px;
}
.stages-row {
  display: flex; gap: 14px; align-items: flex-start;
  flex: 1;
}
.stage-col {
  flex: 0 0 280px;
  background: rgba(12,12,30,0.55);
  border: 1px solid rgba(160,32,240,0.2);
  padding: 14px;
  display: flex; flex-direction: column;
  min-height: 300px;
  position: relative;
}
.stage-col::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #a020f0; box-shadow: 0 0 8px #a020f0;
}
.stage-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stage-head .stage-name {
  flex: 1; font-size: 14px; font-weight: 600; color: #fff;
  letter-spacing: 0.04em; cursor: text;
}
.stage-head .stage-name[contenteditable]:focus {
  outline: 1px dashed #a020f0; padding: 2px 4px;
}
.stage-head .stage-progress {
  font-size: 11px; color: rgba(255,255,255,0.5);
  background: rgba(160,32,240,0.15);
  padding: 2px 8px; border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.stage-head .stage-del {
  cursor: pointer; color: rgba(255,255,255,0.3);
  padding: 2px 6px; transition: color .2s;
}
.stage-head .stage-del:hover { color: #dc2626; }
.stage-head .stage-check {
  cursor: pointer;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.5);
  font-size: 12px; font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .2s;
}
.stage-head .stage-check:hover {
  border-color: #10b981; color: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.3);
}
.stage-col.completed .stage-head .stage-check {
  background: #10b981; border-color: #10b981; color: #fff;
  box-shadow: 0 0 12px rgba(16,185,129,0.5);
}
.stage-col.completed {
  border-color: rgba(16,185,129,0.4);
  opacity: 0.85;
}
.stage-col.completed::before { background: #10b981; box-shadow: 0 0 8px #10b981; }
.stage-col.completed .stage-name { color: rgba(255,255,255,0.6); text-decoration: line-through; }
.stage-list { flex: 1; min-height: 80px; }

/* 阶段备注 */
.stage-note {
  margin: 8px 0 12px;
  background: rgba(0,0,0,0.25);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px; line-height: 1.55;
  color: rgba(255,255,255,0.7);
  min-height: 32px;
  cursor: text;
  outline: none;
  white-space: pre-wrap; word-break: break-word;
  transition: all .2s;
}
.stage-note:empty::before {
  content: '点击此处添加阶段备注…';
  color: rgba(255,255,255,0.25); font-style: italic;
}
.stage-note:focus {
  border-color: rgba(160,32,240,0.5);
  background: rgba(160,32,240,0.05);
}

/* 完工耗时 chip */
.meta-chip.elapsed {
  background: linear-gradient(90deg, rgba(220,38,38,0.25), rgba(251,191,36,0.25));
  border: 1px solid rgba(251,191,36,0.5);
  color: #fbbf24;
  font-weight: 600;
}

/* 项目明细表格 */
.detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; margin-bottom: 16px;
  background: rgba(12,12,30,0.55);
  border: 1px solid rgba(220,38,38,0.18);
}
.detail-head h2 {
  font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.04em;
}
.detail-table-wrap {
  background: rgba(12,12,30,0.55);
  border: 1px solid rgba(220,38,38,0.15);
  overflow-x: auto;
}
.detail-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
  min-width: 800px;
}
.detail-table th, .detail-table td {
  padding: 11px 14px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.detail-table th {
  background: rgba(0,0,0,0.3);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: sticky; top: 0; z-index: 2;
}
.detail-table th .col-actions {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px;
  opacity: 0; transition: opacity .2s;
}
.detail-table th:hover .col-actions { opacity: 1; }
.detail-table th .col-del {
  cursor: pointer; color: rgba(255,255,255,0.3);
  font-size: 12px;
}
.detail-table th .col-del:hover { color: #dc2626; }
.detail-table th .field-name {
  cursor: text; outline: none;
}
.detail-table th .field-name:focus {
  outline: 1px dashed #dc2626; padding: 2px 4px;
}
.detail-table tbody tr {
  transition: background .2s;
}
.detail-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.detail-table td.cell-name {
  font-weight: 600; color: #fff; cursor: pointer;
}
.detail-table td.cell-name:hover { color: #dc2626; }
.detail-table td.cell-editable {
  cursor: text; color: rgba(255,255,255,0.75);
}
.detail-table td.cell-editable[contenteditable]:focus {
  outline: 1px solid #dc2626; background: rgba(220,38,38,0.05);
}
.detail-table td.cell-status .badge {
  display: inline-block; padding: 3px 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  border-radius: 10px;
}
.badge.status-active { background: rgba(56,189,248,0.15); color: #38bdf8; }
.badge.status-paused { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge.status-done   { background: rgba(16,185,129,0.15); color: #10b981; }
.detail-table td.cell-progress {
  min-width: 120px;
}
.detail-table .mini-progress {
  display: flex; align-items: center; gap: 8px;
}
.detail-table .mini-progress-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
}
.detail-table .mini-progress-fill {
  height: 100%; background: linear-gradient(90deg, #dc2626, #fbbf24);
}
.detail-table .mini-progress-val {
  font-size: 11px; color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums; min-width: 32px;
}
.detail-empty {
  padding: 60px 20px; text-align: center; color: rgba(255,255,255,0.3);
}

/* 添加阶段：虚线占位列，跟阶段列同尺寸 */
.stage-add-col {
  flex: 0 0 220px;
  min-height: 300px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1.5px dashed rgba(160,32,240,0.3);
  color: rgba(160,32,240,0.6);
  cursor: pointer;
  transition: all .3s;
}
.stage-add-col:hover {
  border-color: rgba(160,32,240,0.85);
  background: rgba(160,32,240,0.05);
  color: #a020f0;
  box-shadow: 0 0 16px rgba(160,32,240,0.2);
}
.stage-add-icon {
  font-size: 32px; font-weight: 300;
  width: 48px; height: 48px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.stage-add-col:hover .stage-add-icon { transform: rotate(90deg) scale(1.1); }
.stage-add-text {
  font-size: 13px; letter-spacing: 0.18em;
}

/* 项目编辑：居中模态弹窗 + 遮罩 */
.proj-drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.proj-drawer-overlay.hidden { display: none; }
.proj-drawer {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 91;
  width: 480px; max-width: 92vw; max-height: 90vh;
  background: #0c0c1e;
  border: 1px solid rgba(220,38,38,0.45);
  box-shadow: 0 0 50px rgba(220,38,38,0.2), 0 20px 60px rgba(0,0,0,0.7);
  padding: 24px 26px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  animation: popIn .25s cubic-bezier(0.16,1,0.3,1);
}
.proj-drawer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
  box-shadow: 0 0 8px #dc2626;
}
.proj-drawer.hidden { display: none; }
.proj-drawer h3 {
  font-size: 16px; font-weight: 600; letter-spacing: 0.14em; color: #fff;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(220,38,38,0.25);
  display: flex; align-items: center; gap: 10px;
}
.proj-drawer h3::before {
  content: ''; width: 3px; height: 16px; background: #dc2626;
  box-shadow: 0 0 8px #dc2626;
}
.hint {
  display: block; margin-top: 4px;
  font-size: 11px; color: rgba(255,255,255,0.4);
}

/* ─── 自定义确认弹窗 ─── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-box {
  width: 420px; max-width: 92vw;
  background: #0c0c1e;
  border: 1px solid rgba(220,38,38,0.4);
  box-shadow: 0 0 50px rgba(220,38,38,0.2), 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
  animation: popIn .25s cubic-bezier(0.16,1,0.3,1);
}
.confirm-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
  box-shadow: 0 0 8px #dc2626;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.confirm-head {
  padding: 20px 24px 12px;
  display: flex; align-items: center; gap: 14px;
}
.confirm-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  border: 1.5px solid #dc2626;
  color: #dc2626;
  text-shadow: 0 0 8px rgba(220,38,38,0.7);
  box-shadow: 0 0 16px rgba(220,38,38,0.4), inset 0 0 12px rgba(220,38,38,0.15);
  flex-shrink: 0;
}
.confirm-head h3 {
  font-size: 15px; font-weight: 600; letter-spacing: 0.1em;
  color: #fff;
}
.confirm-body {
  padding: 4px 24px 20px;
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,0.78);
  white-space: pre-wrap;
}
.confirm-actions {
  padding: 14px 24px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.confirm-actions .btn { min-width: 88px; padding: 9px 18px; }
.confirm-overlay.danger .confirm-icon {
  color: #fbbf24; border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251,191,36,0.4), inset 0 0 12px rgba(251,191,36,0.15);
  text-shadow: 0 0 8px rgba(251,191,36,0.7);
}
.confirm-overlay.danger .confirm-box { border-color: rgba(251,191,36,0.4); }
.confirm-overlay.danger .confirm-box::before { background: linear-gradient(90deg, transparent, #fbbf24, transparent); box-shadow: 0 0 8px #fbbf24; }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(40px);
  padding: 10px 20px;
  background: rgba(12,12,30,0.95);
  border: 1px solid rgba(220,38,38,0.5);
  color: #fff; font-size: 13px;
  box-shadow: 0 0 30px rgba(220,38,38,0.4);
  opacity: 0; transition: all .35s ease;
  z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: #ff6b6b; box-shadow: 0 0 30px rgba(255,107,107,0.5); }

/* ─── 底部 ─── */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 20px 32px;
  font-size: 12px; letter-spacing: 0.18em; color: rgba(255,255,255,0.22);
}
footer .accent { color: rgba(220,38,38,0.55); }

/* ═══════════════════════════════════════════════
   亮色主题 — Linear / Notion 风格商务亮色
   ═══════════════════════════════════════════════ */
[data-theme="light"] body {
  background: #f7f7f5;
  color: #1c1c1e;
}
[data-theme="light"] body::before { display: none; }

[data-theme="light"] header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eaeae6;
  box-shadow: none;
}
[data-theme="light"] .brand .name { color: #0f0f12; }
[data-theme="light"] .brand .dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

[data-theme="light"] .filters select,
[data-theme="light"] .filters input[type="search"] {
  background: #fff;
  border: 1px solid #e5e5e0;
  color: #1c1c1e;
  border-radius: 6px;
}
[data-theme="light"] .filters select:hover,
[data-theme="light"] .filters input:hover { border-color: #c5c5be; box-shadow: none; }
[data-theme="light"] .filters select:focus,
[data-theme="light"] .filters input:focus {
  border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
[data-theme="light"] .filters select option { background: #fff; color: #1c1c1e; }

[data-theme="light"] .btn { border-radius: 6px; }
[data-theme="light"] .btn-primary {
  background: #1c1c1e; color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
[data-theme="light"] .btn-primary:hover { background: #2c2c30; }
[data-theme="light"] .btn-ghost {
  background: #fff; color: #4b5563;
  border: 1px solid #e5e5e0;
}
[data-theme="light"] .btn-ghost:hover { background: #f5f5f1; border-color: #d1d1cc; }
[data-theme="light"] .btn-danger {
  background: #fff; color: #6b7280;
  border: 1px solid #e5e5e0;
}
[data-theme="light"] .btn-danger:hover {
  color: #dc2626; border-color: #fca5a5; background: #fef2f2;
}

[data-theme="light"] .col {
  background: #fff;
  border: 1px solid #eaeae6;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
[data-theme="light"] .col::before { display: none; }
[data-theme="light"] .col h2 .bar { border-radius: 2px; }
[data-theme="light"] .col[data-status="todo"]  h2 .bar { background: #f59e0b; box-shadow: none; }
[data-theme="light"] .col[data-status="doing"] h2 .bar { background: #2563eb; box-shadow: none; }
[data-theme="light"] .col[data-status="done"]  h2 .bar { background: #10b981; box-shadow: none; }
[data-theme="light"] .col[data-status="todo"]  h2 { color: #92400e; }
[data-theme="light"] .col[data-status="doing"] h2 { color: #1d4ed8; }
[data-theme="light"] .col[data-status="done"]  h2 { color: #047857; }
[data-theme="light"] .count {
  background: #f3f4f6; color: #6b7280; border: none; border-radius: 12px;
}

[data-theme="light"] .card {
  background: #fff;
  border: 1px solid #eaeae6;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
[data-theme="light"] .card:hover {
  border-color: #c5c5be;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .card.violet { border-color: #eaeae6; border-left: 3px solid #2563eb; }
[data-theme="light"] .card.ice    { border-color: #eaeae6; border-left: 3px solid #10b981; }
[data-theme="light"] .card.gold   { border-color: #eaeae6; border-left: 3px solid #f59e0b; }
[data-theme="light"] .card.dep-ready {
  border-color: #fcd34d !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
[data-theme="light"] .card-title { color: #18181b; }

[data-theme="light"] .chip {
  border: none; background: #f3f4f6; color: #4b5563;
  font-weight: 500; border-radius: 4px;
}
[data-theme="light"] .chip.owner-a { color: #1d4ed8; background: #dbeafe; }
[data-theme="light"] .chip.owner-b { color: #6d28d9; background: #ede9fe; }
[data-theme="light"] .chip.tag    { color: #4b5563; background: #f3f4f6; }
[data-theme="light"] .chip.tag.urgent { color: #fff; background: #dc2626; }
[data-theme="light"] .chip.dep    { color: #92400e; background: #fef3c7; }
[data-theme="light"] .card-remind { color: #6b7280; }
[data-theme="light"] .card-remind .pulse { background: #f59e0b; box-shadow: none; }

[data-theme="light"] aside {
  background: #fff;
  border: 1px solid #eaeae6;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme="light"] aside h3 {
  color: #18181b; border-bottom-color: #eaeae6;
}
[data-theme="light"] aside h3::before { background: #2563eb; box-shadow: none; border-radius: 2px; }
[data-theme="light"] .field label { color: #4b5563; font-weight: 500; }
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: #fafafa;
  border: 1px solid #e5e5e0;
  color: #18181b;
  border-radius: 6px;
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
  border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}
[data-theme="light"] .field select option { background: #fff; color: #18181b; }
[data-theme="light"] .datetime-row input::-webkit-calendar-picker-indicator { filter: none; }
[data-theme="light"] .actions { border-top-color: #eaeae6; }

/* 标签选择器 */
[data-theme="light"] .chip.pickable {
  background: transparent; border: 1px solid #e5e5e0;
  color: #6b7280; opacity: 1;
}
[data-theme="light"] .chip.pickable.on {
  color: #1d4ed8; border-color: #93c5fd; background: #eff6ff;
}
[data-theme="light"] .chip.pickable .chip-del {
  border-left-color: #e5e5e0; color: #9ca3af;
}
[data-theme="light"] .chip.pickable .chip-del:hover {
  background: #dc2626; color: #fff; border-color: #dc2626;
}

[data-theme="light"] .msg.error { color: #dc2626; }
[data-theme="light"] .msg.ok { color: #2563eb; }

/* 操作日志抽屉 */
[data-theme="light"] .logs-overlay { background: rgba(0,0,0,0.35); }
[data-theme="light"] .logs-drawer {
  background: #fff; border-left: 1px solid #eaeae6;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
[data-theme="light"] .logs-head { border-bottom-color: #eaeae6; }
[data-theme="light"] .logs-head h3 { color: #18181b; }
[data-theme="light"] .logs-head h3::before { background: #2563eb; box-shadow: none; }
[data-theme="light"] .log-item { border-bottom-color: #f3f4f6; }
[data-theme="light"] .log-action { background: #f3f4f6; border: none; color: #4b5563; }
[data-theme="light"] .log-action.create { color: #047857; background: #d1fae5; }
[data-theme="light"] .log-action.update { color: #92400e; background: #fef3c7; }
[data-theme="light"] .log-action.delete { color: #b91c1c; background: #fee2e2; }
[data-theme="light"] .log-action.status { color: #6d28d9; background: #ede9fe; }
[data-theme="light"] .log-time { color: #9ca3af; }
[data-theme="light"] .log-summary { color: #18181b; }
[data-theme="light"] .log-actor { color: #6b7280; }
[data-theme="light"] .log-empty { color: #9ca3af; }

/* 确认弹窗 */
[data-theme="light"] .confirm-overlay { background: rgba(0,0,0,0.4); }
[data-theme="light"] .confirm-box {
  background: #fff;
  border: 1px solid #eaeae6;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
[data-theme="light"] .confirm-box::before { display: none; }
[data-theme="light"] .confirm-icon {
  color: #2563eb; border-color: #93c5fd;
  background: #eff6ff;
  text-shadow: none; box-shadow: none;
}
[data-theme="light"] .confirm-head h3 { color: #18181b; }
[data-theme="light"] .confirm-body { color: #4b5563; }
[data-theme="light"] .confirm-actions { border-top-color: #eaeae6; }
[data-theme="light"] .confirm-overlay.danger .confirm-icon {
  color: #dc2626; border-color: #fca5a5; background: #fef2f2;
  text-shadow: none; box-shadow: none;
}
[data-theme="light"] .confirm-overlay.danger .confirm-box { border-color: #eaeae6; }

/* Toast */
[data-theme="light"] .toast {
  background: #18181b; color: #fff; border: 1px solid #1c1c1e;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
[data-theme="light"] .toast.error {
  background: #dc2626; border-color: #b91c1c;
}

/* footer */
[data-theme="light"] footer { color: #9ca3af; }
[data-theme="light"] footer .accent { color: #2563eb; font-weight: 600; }

/* 亮色：顶部 Tab */
[data-theme="light"] .tab { color: #6b7280; }
[data-theme="light"] .tab:hover { color: #18181b; background: #f3f4f6; }
[data-theme="light"] .tab.active {
  color: #2563eb; background: #eff6ff; text-shadow: none;
}

/* 亮色：左侧项目栏 */
[data-theme="light"] .sidebar-projects {
  background: #fafafa; border-right: 1px solid #eaeae6;
}
[data-theme="light"] .sp-head { color: #9ca3af; }
[data-theme="light"] .sp-item { color: #4b5563; }
[data-theme="light"] .sp-item:hover { background: #f3f4f6; color: #18181b; }
[data-theme="light"] .sp-item.active {
  background: #eff6ff; color: #1d4ed8;
  border-left-color: #2563eb;
}
[data-theme="light"] .sp-item .sp-dot { background: #d1d5db; }
[data-theme="light"] .sp-item.active .sp-dot { background: #2563eb; box-shadow: none; }
[data-theme="light"] .sp-item .sp-count { color: #9ca3af; }
[data-theme="light"] .sp-empty { color: #9ca3af; }
[data-theme="light"] .sp-item .sp-edit {
  color: #6b7280; border-color: #e5e5e0;
}
[data-theme="light"] .sp-item .sp-edit:hover {
  color: #dc2626; border-color: #fca5a5;
  background: #fef2f2; box-shadow: none;
}

/* 亮色：流程视图 */
[data-theme="light"] .flow-empty-text { color: #6b7280; }
[data-theme="light"] .flow-empty-text small { color: #9ca3af; }
[data-theme="light"] .flow-head {
  background: #fff; border: 1px solid #eaeae6; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
[data-theme="light"] .flow-head-left h2 { color: #18181b; }
[data-theme="light"] .meta-chip {
  background: #f3f4f6; border: none; color: #4b5563;
}
[data-theme="light"] .meta-chip.status-active { color: #1d4ed8; background: #dbeafe; }
[data-theme="light"] .meta-chip.status-paused { color: #92400e; background: #fef3c7; }
[data-theme="light"] .meta-chip.status-done   { color: #047857; background: #d1fae5; }
[data-theme="light"] .progress-label { color: #4b5563; }
[data-theme="light"] .progress-label span:last-child { color: #2563eb; }
[data-theme="light"] .progress-bar { background: #e5e7eb; border-radius: 3px; }
[data-theme="light"] .progress-fill {
  background: linear-gradient(90deg, #2563eb, #10b981);
  box-shadow: none;
}
[data-theme="light"] input[type="range"] { background: #e5e7eb; }
[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
  background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
[data-theme="light"] .stage-col {
  background: #fff; border: 1px solid #eaeae6;
  border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
[data-theme="light"] .stage-col::before {
  background: #7c3aed; box-shadow: none;
  border-radius: 10px 10px 0 0;
}
[data-theme="light"] .stage-head { border-bottom-color: #f3f4f6; }
[data-theme="light"] .stage-head .stage-name { color: #18181b; }
[data-theme="light"] .stage-head .stage-progress {
  background: #ede9fe; color: #6d28d9;
}
[data-theme="light"] .stage-head .stage-del { color: #9ca3af; }
[data-theme="light"] .stage-head .stage-del:hover { color: #dc2626; }
[data-theme="light"] .stage-head .stage-name[contenteditable]:focus { outline-color: #7c3aed; }
[data-theme="light"] .stage-head .stage-check {
  border-color: #d1d5db; color: #9ca3af;
}
[data-theme="light"] .stage-head .stage-check:hover {
  border-color: #10b981; color: #10b981; box-shadow: none;
}
[data-theme="light"] .stage-col.completed .stage-head .stage-check {
  background: #10b981; border-color: #10b981; color: #fff; box-shadow: none;
}
[data-theme="light"] .stage-col.completed {
  border-color: #a7f3d0; opacity: 0.85;
}
[data-theme="light"] .stage-col.completed::before { background: #10b981; box-shadow: none; }
[data-theme="light"] .stage-col.completed .stage-name { color: #6b7280; }
[data-theme="light"] .stage-add-col {
  border: 1.5px dashed #c5b8e5; color: #7c3aed;
}
[data-theme="light"] .stage-add-col:hover {
  border-color: #7c3aed; background: #f5f3ff;
  color: #6d28d9; box-shadow: 0 0 12px rgba(124,58,237,0.15);
}

/* 亮色：阶段备注 */
[data-theme="light"] .stage-note {
  background: #fafafa; border: 1px dashed #e5e5e0; color: #4b5563;
}
[data-theme="light"] .stage-note:empty::before { color: #9ca3af; }
[data-theme="light"] .stage-note:focus {
  border-color: #93c5fd; background: #eff6ff;
}

/* 亮色：完工耗时 */
[data-theme="light"] .meta-chip.elapsed {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24; color: #92400e;
}

/* 亮色：项目明细表格 */
[data-theme="light"] .detail-head {
  background: #fff; border: 1px solid #eaeae6; border-radius: 10px;
}
[data-theme="light"] .detail-head h2 { color: #18181b; }
[data-theme="light"] .detail-table-wrap {
  background: #fff; border: 1px solid #eaeae6; border-radius: 10px;
}
[data-theme="light"] .detail-table th {
  background: #fafafa; color: #6b7280; border-bottom-color: #eaeae6;
}
[data-theme="light"] .detail-table td { border-bottom-color: #f3f4f6; color: #4b5563; }
[data-theme="light"] .detail-table tbody tr:hover { background: #fafafa; }
[data-theme="light"] .detail-table td.cell-name { color: #18181b; }
[data-theme="light"] .detail-table td.cell-name:hover { color: #2563eb; }
[data-theme="light"] .detail-table td.cell-editable[contenteditable]:focus {
  outline-color: #2563eb; background: #eff6ff;
}
[data-theme="light"] .badge.status-active { background: #dbeafe; color: #1d4ed8; }
[data-theme="light"] .badge.status-paused { background: #fef3c7; color: #92400e; }
[data-theme="light"] .badge.status-done   { background: #d1fae5; color: #047857; }
[data-theme="light"] .detail-table .mini-progress-bar { background: #e5e7eb; }
[data-theme="light"] .detail-table .mini-progress-fill {
  background: linear-gradient(90deg, #2563eb, #10b981);
}
[data-theme="light"] .detail-table .mini-progress-val { color: #6b7280; }
[data-theme="light"] .detail-empty { color: #9ca3af; }
[data-theme="light"] .detail-table th .col-del { color: #9ca3af; }
[data-theme="light"] .detail-table th .col-del:hover { color: #dc2626; }

/* 亮色：prompt 输入框 */
[data-theme="light"] .confirm-body #confirm-input {
  background: #fafafa !important;
  border: 1px solid #e5e5e0 !important;
  color: #18181b !important;
}
[data-theme="light"] .confirm-body #confirm-input:focus {
  border-color: #2563eb !important;
  background: #fff !important;
}

/* 亮色：项目编辑居中弹窗 */
[data-theme="light"] .proj-drawer-overlay { background: rgba(0,0,0,0.4); }
[data-theme="light"] .proj-drawer {
  background: #fff; border: 1px solid #eaeae6; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
[data-theme="light"] .proj-drawer::before { display: none; }
[data-theme="light"] .proj-drawer h3 {
  color: #18181b; border-bottom-color: #eaeae6;
}
[data-theme="light"] .proj-drawer h3::before { background: #2563eb; box-shadow: none; }
[data-theme="light"] .hint { color: #9ca3af; }

@media (max-width: 1200px) {
  main, main:has(aside:not(.hidden)) {
    grid-template-columns: 1fr 1fr;
  }
  aside { grid-column: 1 / -1; position: static; }
}
@media (max-width: 700px) {
  main, main:has(aside:not(.hidden)) {
    grid-template-columns: 1fr;
  }
  .topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .filters { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
