:root {
  --bg: #0b1220;
  --ink: #e8eefc;
  --muted: #9aa8c7;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --cyan: #5eead4;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --rose: #fb7185;
  --ok: #34d399;
  --radius: 22px;
  --font: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% -10%, #1a2a4a 0%, transparent 55%),
              radial-gradient(900px 600px at 100% 0%, #2a1b4a 0%, transparent 50%),
              var(--bg);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.orb-a { width: 380px; height: 380px; background: #2563eb; top: -80px; left: -60px; }
.orb-b { width: 320px; height: 320px; background: #7c3aed; top: 20%; right: -80px; }
.orb-c { width: 280px; height: 280px; background: #0d9488; bottom: 5%; left: 30%; }

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.2);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.topbar {
  position: relative;
  z-index: 2;
  margin: 20px 24px 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  background: linear-gradient(145deg, rgba(94,234,212,0.35), rgba(96,165,250,0.25));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 24px rgba(94,234,212,0.25);
}
#brandTitle {
  cursor: default;
  user-select: none;
}
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg {
  display: flex; align-items: center; gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--muted); font-size: 13px;
}
.seg select {
  background: transparent; border: 0; color: var(--ink);
  font: inherit; outline: none; cursor: pointer;
}
.seg option { color: #111; }

.btn {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255,255,255,0.06); }
.btn.primary {
  background: linear-gradient(135deg, rgba(94,234,212,0.35), rgba(96,165,250,0.45));
  box-shadow: 0 8px 24px rgba(96,165,250,0.25);
}

.stats-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 24px 16px;
}
.stat {
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label { color: var(--muted); font-size: 12px; }
.stat strong { font-size: 24px; font-weight: 700; letter-spacing: 0.02em; }
.stat.accent strong { color: var(--rose); }

.board {
  position: relative;
  z-index: 2;
  margin: 0 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.member {
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.28);
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
}
.who h2 { margin: 0; font-size: 16px; }
.who p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.badge.hot {
  color: #083344;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
}

.task {
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid rgba(255,255,255,0.2);
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.task.prio-1 { border-left-color: #e11d48; } /* 超高：正红 */
.task.prio-2 { border-left-color: #fb7185; } /* 高：珊瑚 */
.task.prio-3 { border-left-color: #fbbf24; } /* 中：琥珀 */
.task.prio-4 { border-left-color: #94a3b8; } /* 低：灰蓝 */
.task.dragging { opacity: 0.55; }
.task.drag-over {
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.55);
}
.task-list { display: flex; flex-direction: column; gap: 2px; }
.prio-lane {
  border-radius: 12px;
  padding: 2px 4px 8px;
  min-height: 44px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.prio-lane.drag-over {
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.35);
}
.prio-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  user-select: none;
}
.prio-line::before,
.prio-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}
.prio-line.prio-1 { color: #fb7185; }
.prio-line.prio-2 { color: #fda4af; }
.prio-line.prio-3 { color: #fbbf24; }
.prio-line.prio-4 { color: #94a3b8; }
.prio-lane-empty {
  min-height: 28px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  padding: 4px 8px 8px;
}
.drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -2px;
  user-select: none;
  touch-action: none;
  padding: 6px 8px;
  margin: -6px -4px -6px 0;
  border-radius: 8px;
}
.drag-handle:active { cursor: grabbing; background: rgba(255,255,255,0.08); }
.task.dragging {
  opacity: 0.55;
  transform: scale(0.98);
}
.prio-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.prio-badge.prio-1 { color: #ffe4e6; background: rgba(225,29,72,0.28); border-color: rgba(225,29,72,0.5); }
.prio-badge.prio-2 { color: #ffe4e6; background: rgba(251,113,133,0.22); border-color: rgba(251,113,133,0.4); }
.prio-badge.prio-3 { color: #fef3c7; background: rgba(251,191,36,0.18); border-color: rgba(251,191,36,0.4); }
.prio-badge.prio-4 { color: #e2e8f0; background: rgba(148,163,184,0.18); border-color: rgba(148,163,184,0.4); }
.prio-hint { margin: 0 0 10px; }
.period-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}
.period-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.period-btn.active {
  background: rgba(94, 234, 212, 0.18);
  color: #ecfeff;
}
.period-meta { margin: 0 0 8px; }
.dept-head {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.dept-head h2 { margin: 0 0 4px; font-size: 18px; }
.section-label {
  margin: 14px 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
}
.dept-card .roster-cta { color: #99f6e4; }
.collab-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collab-card { max-width: 420px; }
.collab-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
  padding: 4px 0;
}
.collab-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.collab-item strong { display: block; font-size: 13px; }
.collab-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.prio-select {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 18px 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 6px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.prio-select.prio-1 { color: #ffe4e6; background-color: rgba(225,29,72,0.28); border-color: rgba(225,29,72,0.5); }
.prio-select.prio-2 { color: #ffe4e6; background-color: rgba(251,113,133,0.22); border-color: rgba(251,113,133,0.4); }
.prio-select.prio-3 { color: #fef3c7; background-color: rgba(251,191,36,0.18); border-color: rgba(251,191,36,0.4); }
.prio-select.prio-4 { color: #e2e8f0; background-color: rgba(148,163,184,0.18); border-color: rgba(148,163,184,0.4); }
.prio-select option { color: #111; background: #fff; }
.task-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
}
.date-chip {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.due-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.due-input {
  font: inherit;
  font-size: 11px;
  color: #e2e8f0;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 3px 6px;
  color-scheme: dark;
}
.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.task-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.task-title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--muted);
  flex-shrink: 0;
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.task-ops {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.task-ops-empty {
  margin-top: 8px;
}
.btn-op {
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
  color: #99f6e4;
  border-radius: 10px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-op:hover {
  background: rgba(94, 234, 212, 0.16);
}
.btn-op:disabled,
.btn-op-muted:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: none;
}
.btn-op-muted {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}
.member-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.member-ops {
  display: inline-flex;
}
.empty-tasks {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.stepper {
  display: inline-flex;
  gap: 4px;
}
.stepper button {
  width: 24px; height: 24px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.stepper button:hover { background: rgba(255,255,255,0.14); }

.snake {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: visible;
}
.snake svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.snake-path {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.snake-path.active {
  stroke: url(#snakeGrad);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 6px rgba(94,234,212,0.45));
  transition: stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.node {
  cursor: pointer;
}
.node-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}
.node-ring {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.5;
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
}
.node.done .node-ring {
  fill: url(#nodeFill);
  stroke: rgba(255,255,255,0.55);
  filter: drop-shadow(0 0 8px rgba(96,165,250,0.55));
}
.node.head .node-ring {
  fill: url(#headFill);
  stroke: #fff;
  filter: drop-shadow(0 0 10px rgba(94,234,212,0.8));
}
.node.head.pulse .node-ring {
  animation: headPulse 0.7s ease;
}
.node-core {
  fill: rgba(255,255,255,0.15);
}
.node.done .node-core { fill: rgba(255,255,255,0.85); }
.node-label {
  fill: var(--muted);
  font-size: 9px;
  font-family: var(--font);
  text-anchor: middle;
  dominant-baseline: hanging;
  pointer-events: none;
}

/* 未完成节点悬浮：可点击推进 */
.node.pending:hover .node-ring,
.node:not(.done):not(.ghost-add):hover .node-ring {
  fill: rgba(94, 234, 212, 0.18);
  stroke: #5eead4;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(94,234,212,0.55));
}
.node.pending:hover .node-label {
  fill: #99f6e4;
}

/* 蛇尾「新节点」：悬浮显示提示，点击添加 */
.node.ghost-add .node-ring {
  fill: rgba(96, 165, 250, 0.08);
  stroke: rgba(147, 197, 253, 0.45);
  stroke-dasharray: 3 2;
}
.node.ghost-add .ghost-plus {
  fill: #93c5fd;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.node.ghost-add .ghost-hint {
  fill: rgba(147, 197, 253, 0.55);
  font-size: 9px;
  text-anchor: middle;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, fill 0.15s ease;
}
.node.ghost-add:hover .node-ring {
  fill: rgba(96, 165, 250, 0.22);
  stroke: #93c5fd;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 10px rgba(96,165,250,0.55));
}
.node.ghost-add:hover .ghost-hint {
  opacity: 1;
  fill: #bfdbfe;
}
.node.ghost-add:hover .ghost-plus {
  fill: #e0f2fe;
}
.status-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.status-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  box-shadow: 0 0 12px rgba(96,165,250,0.5);
  transition: width 0.45s ease;
}
.status-bar.risk > i {
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.hint {
  position: relative;
  z-index: 2;
  margin: 0 24px 28px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
}
.hint p { margin: 0; }
.hint strong { color: var(--ink); }

.hidden { display: none !important; }

.gate {
  position: relative;
  z-index: 3;
  max-width: 440px;
  margin: 12vh auto;
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.gate h1 { margin: 0 0 8px; font-size: 22px; }
.gate p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.demo-pick {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.demo-pick button {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.demo-pick button:hover {
  border-color: rgba(94,234,212,0.45);
  background: rgba(255,255,255,0.1);
}
.demo-key-row {
  margin: 0 0 12px;
}
.demo-key-row input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font: inherit;
}
.switch-as {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.switch-as select {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.gate code, .hint code {
  font-size: 12px;
  color: var(--cyan);
}

.crumb {
  position: relative;
  z-index: 2;
  margin: 0 24px 12px;
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.linkish {
  background: none;
  border: 0;
  color: var(--cyan);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.linkish:hover { text-decoration: underline; }

.board-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
}
.board-roster {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.member-wide { max-width: 720px; }

.roster-card {
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.roster-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(94, 234, 212, 0.15);
}
.roster-text h2 { margin: 0; font-size: 16px; }
.roster-text p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.roster-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.roster-metrics div {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
}
.roster-metrics span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.roster-metrics strong { font-size: 18px; }
.roster-metrics strong.warn { color: var(--rose); }
.roster-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.roster-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
}
.roster-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
}
.readonly-tag {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
}
.empty {
  padding: 24px;
  border-radius: var(--radius);
  color: var(--muted);
}

@keyframes headPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.node-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 16px;
}
.node-panel.hidden { display: none !important; }
.node-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 24, 0.55);
}
.node-panel-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 20px;
  padding: 16px 18px 20px;
}
.node-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.node-panel-head h2 { margin: 0; font-size: 18px; }
.node-panel-head .muted,
.muted-sm { color: var(--muted); font-size: 12px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.field input[type="text"],
.field textarea,
.comment-form input {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}
.proof-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.proof-list, .comment-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof-list a { color: var(--cyan); }
.node-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}
.social-block {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}
.social-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.social-head h3 { margin: 0; font-size: 14px; }
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.comment-form input { flex: 1; }
.btn-op-danger {
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
}
.btn-op-danger:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.att-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.att-chip {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 4px;
}
.att-great, .att-chip.att-great { background: rgba(94,234,212,0.18); color: #99f6e4; }
.att-good, .att-chip.att-good { background: rgba(96,165,250,0.18); color: #bfdbfe; }
.att-ok, .att-chip.att-ok { background: rgba(251,191,36,0.16); color: #fde68a; }
.att-poor, .att-chip.att-poor { background: rgba(251,113,133,0.16); color: #fecdd3; }
.att-row .btn-op.on { outline: 1px solid #fff; }
.task-feedback { margin: 4px 0 8px; }
.fb-line { font-size: 12px; color: var(--muted); margin-top: 4px; }
.att-preview { margin-top: 4px; }

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; margin: 0 14px 16px; }
  .topbar, .stats-row, .hint, .crumb { margin-left: 14px; margin-right: 14px; }
}
