/* ============================================
   产品研发计划 - 深色科技风主题
   Dark Tech Style · 荧光绿高亮
   ============================================ */

body.rd-dark {
  /* 重写设计令牌（深色） */
  --color-bg: #0a1530;
  --color-bg-2: #0e1d3a;
  --color-bg-3: #142a52;
  --color-surface: rgba(20, 42, 82, 0.65);
  --color-surface-2: rgba(28, 56, 100, 0.6);
  --color-surface-hover: rgba(45, 90, 155, 0.5);
  --color-border: rgba(99, 162, 255, 0.18);
  --color-border-light: rgba(99, 162, 255, 0.1);
  --color-border-strong: rgba(99, 162, 255, 0.3);

  --color-text: #e6ebf5;
  --color-text-secondary: #b1c0db;
  --color-text-muted: #7e90b3;
  --color-text-faint: #506280;

  --color-brand: #2f80ff;
  --color-brand-soft: rgba(47, 128, 255, 0.15);
  --color-brand-hover: #4d94ff;
  --color-accent: #a259ff;
  --color-accent-soft: rgba(162, 89, 255, 0.15);

  --color-success: #00ff95;
  --color-success-soft: rgba(0, 255, 149, 0.15);
  --color-warning: #ffba08;
  --color-warning-soft: rgba(255, 186, 8, 0.15);
  --color-danger: #ff5e3a;
  --color-danger-soft: rgba(255, 94, 58, 0.15);
  --color-info: #2f80ff;
  --color-info-soft: rgba(47, 128, 255, 0.15);

  --status-pending-bg: rgba(126, 144, 179, 0.18);
  --status-pending-fg: #b1c0db;
  --status-progress-bg: rgba(47, 128, 255, 0.18);
  --status-progress-fg: #4d94ff;
  --status-completed-bg: rgba(0, 255, 149, 0.18);
  --status-completed-fg: #00ff95;
  --status-delayed-bg: rgba(255, 94, 58, 0.18);
  --status-delayed-fg: #ff5e3a;

  background:
    radial-gradient(circle at 15% 0%, rgba(47, 128, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(162, 89, 255, 0.08) 0%, transparent 35%),
    linear-gradient(135deg, #0a1530 0%, #0e1d3a 50%, #0a1530 100%);
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
}

/* 隐藏原浅色 .app-header 占位 */
body.rd-dark .app-header { display: none; }

/* ============== 顶部导航 ============== */
.rd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(180deg, rgba(20, 42, 82, 0.85) 0%, rgba(14, 29, 58, 0.65) 100%);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.rd-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 8px;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}
.rd-back-btn svg { width: 14px; height: 14px; }
.rd-back-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.rd-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f80ff 0%, #4d94ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(47, 128, 255, 0.35);
  flex-shrink: 0;
}
.rd-logo span {
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rd-title-stack { line-height: 1.3; }
.rd-title-stack h1 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 2px;
  letter-spacing: 0.2px;
}
.rd-sub-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.rd-sub-meta em {
  font-style: normal;
  color: var(--color-text-faint);
  margin: 0 2px;
}
.rd-status-tag {
  background: var(--color-success-soft);
  color: var(--color-success);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 149, 0.25);
}

.rd-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rd-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(47, 128, 255, 0.18);
  color: #4d94ff;
  border: 1px solid rgba(47, 128, 255, 0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.rd-topbar-btn svg { width: 14px; height: 14px; }
.rd-topbar-btn:hover {
  background: rgba(47, 128, 255, 0.28);
  border-color: rgba(47, 128, 255, 0.5);
}

.rd-topbar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}
.rd-topbar-icon svg { width: 16px; height: 16px; }
.rd-topbar-icon:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.rd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a259ff 0%, #ff5e3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(162, 89, 255, 0.4);
}

/* ============== 主体 ============== */
.rd-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

/* ============== 项目目标卡 ============== */
.goal-card {
  display: flex;
  background: linear-gradient(135deg, rgba(20, 42, 82, 0.8) 0%, rgba(14, 29, 58, 0.65) 100%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(47, 128, 255, 0.4) 30%,
    rgba(0, 255, 149, 0.4) 50%, rgba(255, 94, 58, 0.4) 70%, transparent 100%);
}

.goal-card-left {
  flex: 1.4;
  min-width: 0;
}

.goal-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.goal-icon { font-size: 16px; }
.goal-card-head h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.goal-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}
.goal-body p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 14px;
}

.goal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.meta-label { color: var(--color-text-muted); }
.meta-value {
  color: var(--color-text);
  font-weight: 500;
  padding: 2px 8px;
  background: rgba(47, 128, 255, 0.12);
  border-radius: 4px;
  border: 1px solid rgba(47, 128, 255, 0.2);
}

.goal-divider {
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%, var(--color-border) 30%,
    var(--color-border) 70%, transparent 100%);
  margin: 0 28px;
}

.goal-card-right {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.goal-copy-btn {
  position: absolute;
  top: -4px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(47, 128, 255, 0.12);
  color: #4d94ff;
  border: 1px solid rgba(47, 128, 255, 0.25);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.goal-copy-btn svg { width: 12px; height: 12px; }
.goal-copy-btn:hover {
  background: rgba(47, 128, 255, 0.22);
  border-color: rgba(47, 128, 255, 0.45);
}

.goal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-top: 24px;
}
.info-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-label {
  font-size: 12px;
  color: var(--color-text-muted);
}
.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.level-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--color-brand-soft);
  color: #4d94ff;
  border: 1px solid rgba(47, 128, 255, 0.3);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}

/* ============== 彩虹分隔 ============== */
.rainbow-divider {
  height: 3px;
  margin: 16px 0;
  background: linear-gradient(90deg,
    #ff5e3a 0%, #ffba08 16%, #00ff95 33%,
    #2f80ff 50%, #a259ff 66%, #ff5e3a 83%, transparent 100%);
  border-radius: 2px;
  opacity: 0.85;
  box-shadow: 0 0 14px rgba(47, 128, 255, 0.3);
}

/* ============== 仪表盘标题栏 ============== */
.dashboard-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 4px 0;
}
.dashboard-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-bar { font-size: 16px; }
.dashboard-title-left h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.dashboard-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 2px 8px;
  background: var(--color-surface-2);
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============== 4 KPI 卡片 ============== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.kpi-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(20, 42, 82, 0.7) 0%, rgba(14, 29, 58, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

.kpi-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.kpi-total .kpi-icon-wrap {
  background: rgba(47, 128, 255, 0.18);
  border: 1px solid rgba(47, 128, 255, 0.3);
  color: #4d94ff;
}
.kpi-done .kpi-icon-wrap {
  background: rgba(0, 255, 149, 0.15);
  border: 1px solid rgba(0, 255, 149, 0.3);
  color: #00ff95;
}
.kpi-active .kpi-icon-wrap {
  background: rgba(47, 128, 255, 0.18);
  border: 1px solid rgba(47, 128, 255, 0.3);
  color: #4d94ff;
}
.kpi-delayed .kpi-icon-wrap {
  background: rgba(255, 94, 58, 0.15);
  border: 1px solid rgba(255, 94, 58, 0.3);
  color: #ff5e3a;
}

.kpi-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kpi-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  font-family: var(--font-primary);
}
.kpi-done .kpi-value { color: #00ff95; }
.kpi-active .kpi-value { color: #4d94ff; }
.kpi-delayed .kpi-value { color: #ff5e3a; }

.kpi-glow {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.25;
  pointer-events: none;
}
.kpi-total .kpi-glow { background: #2f80ff; }
.kpi-done .kpi-glow { background: #00ff95; }
.kpi-active .kpi-glow { background: #2f80ff; }
.kpi-delayed .kpi-glow { background: #ff5e3a; }

/* ============== 三列仪表盘 ============== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.8fr;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  background: linear-gradient(135deg, rgba(20, 42, 82, 0.7) 0%, rgba(14, 29, 58, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dash-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}
.dash-icon { font-size: 14px; }
.dash-card-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* ---------- 环形图 ---------- */
.ring-card {
  display: flex;
  flex-direction: column;
}
.ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 6px auto 14px;
}
.ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(47, 128, 255, 0.12);
  stroke-width: 14;
}
.ring-progress {
  fill: none;
  stroke: url(#ringGrad);
  stroke: #2f80ff;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 0 999;
  transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(47, 128, 255, 0.5));
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ring-pct {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}
.ring-caption {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.ring-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 8px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--color-text-secondary);
}
.ring-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ring-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.dot-done { background: #00ff95; }
.dot-active { background: #2f80ff; }
.dot-todo { background: #7e90b3; }
.dot-delayed { background: #ff5e3a; }

.ring-risk {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
  font-size: 12px;
  color: var(--color-text-secondary);
}
.ring-risk em {
  color: var(--color-danger);
  font-style: normal;
  font-weight: 700;
  margin: 0 2px;
}

/* ---------- 任务状态分布 ---------- */
.dist-card { display: flex; flex-direction: column; }

.dist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.dist-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.dist-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
}
.dist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dist-num {
  color: var(--color-text);
  font-weight: 600;
  font-family: var(--font-mono);
}
.dist-num span { color: var(--color-text-muted); font-weight: 400; margin-left: 2px; }

.dist-track {
  height: 6px;
  background: rgba(47, 128, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.dist-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px currentColor;
}
.dist-fill.dot-done { background: #00ff95; color: #00ff95; }
.dist-fill.dot-active { background: #2f80ff; color: #2f80ff; }
.dist-fill.dot-todo { background: #7e90b3; color: #7e90b3; }
.dist-fill.dot-delayed { background: #ff5e3a; color: #ff5e3a; }

/* ---------- 甘特 mini ---------- */
.gantt-mini-card { display: flex; flex-direction: column; }

.gantt-mini-legend {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--color-text-muted);
}
.lg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 3px;
  vertical-align: middle;
}
.lg-done { background: #00ff95; box-shadow: 0 0 4px #00ff95; }
.lg-active { background: #2f80ff; }
.lg-todo { background: #7e90b3; }
.lg-risk { background: #ff5e3a; }

.gantt-mini-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.gantt-mini-body::-webkit-scrollbar { width: 6px; }
.gantt-mini-body::-webkit-scrollbar-track { background: transparent; }
.gantt-mini-body::-webkit-scrollbar-thumb { background: rgba(47, 128, 255, 0.2); border-radius: 3px; }

.gantt-mini-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.gantt-mini-group-head {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #4d94ff;
  background: rgba(47, 128, 255, 0.15);
  border: 1px solid rgba(47, 128, 255, 0.3);
  border-radius: 4px;
  margin: 6px 0 2px;
  letter-spacing: 0.3px;
}

.gantt-mini-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px 70px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
}
.gantt-mini-name {
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-mini-name .branch { color: var(--color-text-faint); font-size: 10px; }
.gantt-mini-track {
  position: relative;
  height: 10px;
  background: rgba(47, 128, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}
.gantt-mini-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 0 8px currentColor;
  transition: all 0.3s ease;
}
.gantt-mini-bar.bar-done {
  background: linear-gradient(90deg, #00d980 0%, #00ff95 100%);
  color: #003d22;
}
.gantt-mini-bar.bar-active {
  background: linear-gradient(90deg, #2f80ff 0%, #4d94ff 100%);
  color: white;
}
.gantt-mini-bar.bar-todo {
  background: linear-gradient(90deg, #5d6e8d 0%, #7e90b3 100%);
  color: white;
}
.gantt-mini-bar.bar-delayed {
  background: linear-gradient(90deg, #d44020 0%, #ff5e3a 100%);
  color: white;
}
.gantt-mini-meta {
  color: var(--color-text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-mini-status {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
}
.sts-done {
  background: rgba(0, 255, 149, 0.15);
  color: #00ff95;
  border: 1px solid rgba(0, 255, 149, 0.3);
}
.sts-active {
  background: rgba(47, 128, 255, 0.15);
  color: #4d94ff;
  border: 1px solid rgba(47, 128, 255, 0.3);
}
.sts-todo {
  background: rgba(126, 144, 179, 0.15);
  color: #b1c0db;
  border: 1px solid rgba(126, 144, 179, 0.3);
}
.sts-delayed {
  background: rgba(255, 94, 58, 0.15);
  color: #ff5e3a;
  border: 1px solid rgba(255, 94, 58, 0.3);
}

/* ============== 视图切换 ============== */
.view-switch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 16px;
}
.view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  backdrop-filter: blur(20px);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.view-btn svg { width: 14px; height: 14px; }
.view-btn:hover { color: var(--color-text); }
.view-btn.active {
  background: linear-gradient(135deg, #2f80ff 0%, #4d94ff 100%);
  color: white;
  box-shadow: 0 2px 10px rgba(47, 128, 255, 0.4);
}

/* ============== 视图容器 ============== */
.view-container {
  position: relative;
}
.view-panel {
  display: block;
  animation: panelIn 0.3s ease;
}
/* 修复：压制 styles.css 中 .view-panel{display:none} 的冲突，使 [hidden] 切换生效 */
.view-panel[hidden] {
  display: none !important;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 列表视图 ---------- */
.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 200px;
  padding: 7px 12px;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
}
.search-box svg { width: 14px; height: 14px; }
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 13px;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--color-text-muted); }

.filter-select {
  padding: 7px 12px;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}
.filter-select:focus { border-color: var(--color-brand); }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #2f80ff 0%, #4d94ff 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(47, 128, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(47, 128, 255, 0.5); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }
.btn-secondary {
  background: var(--color-bg-3);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-family: inherit;
  transition: all 0.18s ease;
}
.btn-ghost svg { width: 14px; height: 14px; }
.btn-ghost:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}
.toolbar-sep {
  width: 1px;
  height: 22px;
  background: var(--color-border);
  margin: 0 2px;
}

.plan-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
}
.plan-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(47, 128, 255, 0.08);
  border-bottom: 1px solid var(--color-border);
}
.plan-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}
.plan-table tr:last-child td { border-bottom: none; }
.plan-table tr:hover td { background: rgba(47, 128, 255, 0.04); }

.plan-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-toggle {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 10px;
  transition: all 0.15s;
}
.plan-toggle:hover { background: var(--color-surface-hover); color: var(--color-text); }
.plan-toggle.empty { visibility: hidden; }
.plan-name-text {
  font-weight: 500;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.plan-name-text .desc {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-text-muted);
  display: block;
  margin-top: 2px;
}
.plan-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  flex-shrink: 0;
}
.plan-star svg { width: 11px; height: 11px; }
.task-name {
  font-weight: 400;
  color: var(--color-text-secondary);
  font-size: 13px;
}
.sub-name {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-text-muted);
}

.type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.type-theme { background: rgba(162, 89, 255, 0.15); color: #b88aff; border: 1px solid rgba(162, 89, 255, 0.3); }
.type-task { background: rgba(47, 128, 255, 0.15); color: #4d94ff; border: 1px solid rgba(47, 128, 255, 0.3); }
.type-subtask { background: rgba(126, 144, 179, 0.18); color: #b1c0db; border: 1px solid rgba(126, 144, 179, 0.3); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sts-todo-pill { background: rgba(126, 144, 179, 0.15); color: #b1c0db; }
.sts-todo-pill::before { background: #7e90b3; }
.sts-progress-pill { background: rgba(47, 128, 255, 0.15); color: #4d94ff; }
.sts-progress-pill::before { background: #2f80ff; }
.sts-done-pill { background: rgba(0, 255, 149, 0.15); color: #00ff95; }
.sts-done-pill::before { background: #00ff95; }
.sts-delayed-pill { background: rgba(255, 94, 58, 0.15); color: #ff5e3a; }
.sts-delayed-pill::before { background: #ff5e3a; }

.owner-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.owner-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a259ff 0%, #2f80ff 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.progress-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(47, 128, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #2f80ff 0%, #00ff95 100%);
  box-shadow: 0 0 6px rgba(0, 255, 149, 0.4);
}
.progress-pct {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  min-width: 28px;
  text-align: right;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.icon-action {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-action svg { width: 13px; height: 13px; }
.icon-action:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
  border-color: var(--color-border);
}

/* ============== 响应式 ============== */
@media (max-width: 1200px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .gantt-mini-card { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .goal-card { flex-direction: column; }
  .goal-divider { width: 100%; height: 1px; margin: 16px 0; background: linear-gradient(90deg, transparent, var(--color-border), transparent); }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .goal-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rd-main { padding: 12px; }
  .rd-topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .rd-title-stack h1 { font-size: 15px; }
  .rd-topbar-btn { padding: 6px 10px; font-size: 12px; }
  .kpi-row { grid-template-columns: 1fr; }
  .goal-info-grid { grid-template-columns: 1fr; }
  .view-btn { padding: 6px 10px; font-size: 12px; }
}

/* ============== 模态框 ============== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 21, 48, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-box {
  width: min(520px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(20, 42, 82, 0.95) 0%, rgba(14, 29, 58, 0.95) 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-row label {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}
.form-input {
  padding: 9px 12px;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}
.form-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.15);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

/* ============== Toast ============== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 18px;
  background: linear-gradient(135deg, #2f80ff 0%, #4d94ff 100%);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(47, 128, 255, 0.4);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* ============== 甘特图 ============== */
.gantt-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  overflow: hidden;
}
.gantt-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.gantt-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px 8px;
}
.zoom-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 14px;
}
.zoom-btn:hover { background: var(--color-surface-hover); color: var(--color-text); }
#zoomLabel {
  font-size: 12px;
  color: var(--color-text-secondary);
  min-width: 24px;
  text-align: center;
}
.gantt-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--color-text-muted);
  flex: 1;
}
.lg-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.lg-done { background: #00ff95; box-shadow: 0 0 4px rgba(0,255,149,0.6); }
.lg-active { background: #2f80ff; box-shadow: 0 0 4px rgba(47,128,255,0.5); }
.lg-todo { background: #7e90b3; }
.lg-risk { background: #ff5e3a; box-shadow: 0 0 4px rgba(255,94,58,0.5); }
.lg-milestone {
  width: 9px; height: 9px;
  background: #ffba08;
  border-radius: 2px;
  transform: rotate(45deg);
  margin-right: 4px;
  box-shadow: 0 0 6px rgba(255,186,8,0.6);
}

.gantt-wrap { width: 100%; }
.gantt-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.gantt-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.gantt-month-cell {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 6px 0;
  border-right: 1px dashed var(--color-border-light);
}
.gantt-month-cell:last-child { border-right: none; }

.gantt-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff5e3a;
  box-shadow: 0 0 8px rgba(255, 94, 58, 0.6);
  z-index: 2;
  pointer-events: none;
}
.gantt-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gantt-group-head {
  font-size: 12px;
  font-weight: 600;
  color: #4d94ff;
  padding: 4px 10px;
  background: rgba(47, 128, 255, 0.12);
  border-left: 3px solid #2f80ff;
  border-radius: 4px;
  width: fit-content;
}
.gantt-body {
  position: relative;
  background: rgba(47, 128, 255, 0.04);
  border-radius: 6px;
  padding: 6px 0;
  min-height: 38px;
}
.gantt-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / var(--gantt-cols, 12) - 1px),
    var(--color-border-light) calc(100% / var(--gantt-cols, 12) - 1px),
    var(--color-border-light) calc(100% / var(--gantt-cols, 12))
  );
  pointer-events: none;
  border-radius: 6px;
}
.gantt-body-row {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}
.gantt-sub-row { height: 22px; }
.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  min-width: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.gantt-bar.bar-sub { height: 15px; padding: 0 6px; }
.gantt-bar:hover { filter: brightness(1.15); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); z-index: 3; }
.gantt-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 5px 0 0 5px;
  z-index: 0;
  opacity: 0.92;
}
.gantt-bar-label {
  position: relative;
  z-index: 1;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.gantt-bar-pct {
  position: relative;
  z-index: 1;
  margin-left: auto;
  padding-left: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-text);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.gantt-milestone {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
  z-index: 4;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.gantt-milestone.ms-done { background: #ffba08; box-shadow: 0 0 8px rgba(255, 186, 8, 0.7); }
.gantt-milestone.ms-active { background: #00ff95; box-shadow: 0 0 8px rgba(0, 255, 149, 0.7); }
.gantt-milestone.ms-todo { background: #7e90b3; }
.gantt-milestone:hover { transform: translate(-50%, -50%) rotate(45deg) scale(1.3); }

.gantt-today-flag {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #ff5e3a;
  background: rgba(255, 94, 58, 0.12);
  border: 1px solid rgba(255, 94, 58, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.gantt-today.pulse { animation: todayPulse 1s ease 2; }
@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 94, 58, 0.6); opacity: 1; }
  50% { box-shadow: 0 0 18px rgba(255, 94, 58, 1); opacity: 0.4; }
}

.gantt-tooltip {
  position: fixed;
  z-index: 1500;
  width: 210px;
  background: rgba(10, 21, 48, 0.96);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.gantt-tooltip .gt-name { font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.gantt-tooltip .gt-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.gantt-tooltip .gt-prog { font-family: var(--font-mono); color: var(--color-brand-hover); font-weight: 600; }
.gantt-tooltip .gt-date { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 11px; }

/* ============== 时间轴 ============== */
.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.timeline-legend {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--color-text-muted);
}
.timeline-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0;
  overflow-x: auto;
}
.timeline-wrap {
  min-width: 1180px;
  position: relative;
}
.timeline-ruler {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: rgba(47, 128, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 6;
}
.tl-month {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 10px 0;
  border-right: 1px dashed var(--color-border-light);
}
.tl-month:last-child { border-right: none; }

.timeline-track {
  position: relative;
  height: 470px;
  padding: 0 8px;
}
.timeline-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(100% / 12 - 1px),
    var(--color-border-light) calc(100% / 12 - 1px),
    var(--color-border-light) calc(100% / 12)
  );
  pointer-events: none;
}
.timeline-axis {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-border-strong) 8%, var(--color-border-strong) 92%, transparent 100%);
  transform: translateY(-50%);
}
.timeline-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff5e3a;
  box-shadow: 0 0 8px rgba(255, 94, 58, 0.6);
  z-index: 3;
  pointer-events: none;
}
.timeline-today-flag {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #ff5e3a;
  background: rgba(255, 94, 58, 0.12);
  border: 1px solid rgba(255, 94, 58, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tl-node { position: absolute; top: 0; bottom: 0; }
.tl-dot {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 12px currentColor;
  border: 2px solid #0a1530;
  cursor: pointer;
}
.tl-dot.dot-done { background: #00ff95; color: #00ff95; }
.tl-dot.dot-active { background: #2f80ff; color: #2f80ff; animation: livePulse 1.6s infinite; }
.tl-dot.dot-todo { background: #7e90b3; color: #7e90b3; }
.tl-stem {
  position: absolute;
  left: 0;
  width: 2px;
  background: var(--color-border-strong);
  transform: translateX(-50%);
}
.tl-top .tl-stem { top: calc(50% - 30px - var(--lane) * 80px); height: calc(30px + var(--lane) * 80px); }
.tl-bottom .tl-stem { top: 50%; height: calc(30px + var(--lane) * 80px); }

.tl-card {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  width: 158px;
  background: linear-gradient(135deg, rgba(20, 42, 82, 0.96) 0%, rgba(14, 29, 58, 0.96) 100%);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 4;
  backdrop-filter: blur(8px);
}
.tl-card:hover {
  border-color: var(--color-border-strong);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.tl-top .tl-card { bottom: calc(50% + 30px + var(--lane) * 80px); }
.tl-bottom .tl-card { top: calc(50% + 30px + var(--lane) * 80px); }
.tl-card-title { font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 3px; }
.tl-card-date { font-size: 11px; color: var(--color-brand-hover); font-family: var(--font-mono); margin-bottom: 5px; }
.tl-card-desc { font-size: 11px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 6px; }
.tl-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10px; }
.tl-card-theme { color: var(--color-text-muted); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-card-owner { color: var(--color-text-secondary); background: var(--color-brand-soft); padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

/* 里程碑详情弹窗 */
.ms-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ms-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 10px currentColor; flex-shrink: 0; }
.ms-dot.dot-done { background: #00ff95; color: #00ff95; }
.ms-dot.dot-active { background: #2f80ff; color: #2f80ff; }
.ms-dot.dot-todo { background: #7e90b3; color: #7e90b3; }
.ms-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--color-border-light); font-size: 13px; }
.ms-k { color: var(--color-text-muted); }
.ms-v { color: var(--color-text); font-weight: 500; }
.ms-desc { margin-top: 12px; font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }
