:root {
  --bg: #0b0f14;
  --panel: #111821;
  --panel-2: #141e29;
  --line: rgba(164, 180, 202, 0.16);
  --text: #edf2f8;
  --muted: #91a0b2;
  --dim: #647386;
  --blue: #4da3ff;
  --cyan: #35d3c7;
  --green: #3ddc97;
  --amber: #ffbd4a;
  --red: #ff5c7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(77, 163, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(53, 211, 199, 0.12), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.brand span {
  font-size: 22px;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-item,
.topbar-actions button,
.panel-head button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 9px 12px;
  transition: 140ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: rgba(77, 163, 255, 0.12);
  border-color: rgba(77, 163, 255, 0.24);
}

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

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}

.primary-action,
.panel-head button {
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.92), rgba(53, 211, 199, 0.82));
  color: #061019;
  font-weight: 700;
}

main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero > div:first-child,
.health-card,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: var(--shadow);
}

.hero > div:first-child {
  padding: 34px;
}

.eyebrow,
.panel-head span {
  display: inline-flex;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 12px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.hero p {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.health-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.health-card span,
.metric-card span,
.task-row span,
.review-item span,
.member-item span {
  color: var(--muted);
}

.health-card strong {
  margin: 10px 0;
  font-size: 76px;
  line-height: 1;
  color: var(--green);
}

.health-card small,
.metric-card small,
.member-item small,
.plan-card small {
  color: var(--dim);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid,
.split-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.split-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.metric-card,
.panel {
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 34px;
}

.panel {
  margin-bottom: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.panel-head h2 {
  margin-top: 4px;
  font-size: 20px;
}

.task-table,
.risk-list,
.member-list,
.review-list,
.plan-grid,
.activity-list,
.assignment-list,
.standup-list {
  display: grid;
  gap: 10px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 90px 80px 86px 160px;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.task-row > div:first-child,
.member-item > div:first-child,
.review-item > div:first-child {
  display: grid;
  gap: 4px;
}

.risk-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.risk-低 {
  color: var(--green);
  background: rgba(61, 220, 151, 0.12);
}

.risk-中 {
  color: var(--amber);
  background: rgba(255, 189, 74, 0.12);
}

.risk-高 {
  color: var(--red);
  background: rgba(255, 92, 122, 0.12);
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.risk-item,
.member-item,
.review-item,
.plan-card,
.activity-item,
.project-card,
.assignment-item,
.standup-item,
.report-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.cue-ai-panel {
  border-color: rgba(53, 211, 199, 0.28);
}

.cue-ai-project {
  margin-bottom: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.95fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.project-card > div:first-child {
  display: grid;
  gap: 5px;
}

.project-card > div:first-child span,
.project-card small {
  color: var(--muted);
}

.project-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.project-card dt {
  color: var(--dim);
  font-size: 11px;
}

.project-card dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 13px;
}

.activity-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
}

.activity-item b {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(77, 163, 255, 0.13);
  color: var(--blue);
  font-size: 12px;
}

.activity-working_tree b {
  background: rgba(255, 189, 74, 0.14);
  color: var(--amber);
}

.activity-item > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-item span,
.activity-item small {
  color: var(--muted);
}

.risk-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px;
}

.risk-item b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.risk-item p {
  margin-top: 3px;
  color: var(--muted);
}

.member-item {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  padding: 14px;
}

.member-item .progress {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  min-height: 122px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c131c;
  color: var(--text);
  padding: 14px;
  outline: none;
  line-height: 1.7;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c131c;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(77, 163, 255, 0.55);
}

.stage-panel .panel-head {
  margin-bottom: 12px;
}

.stage-panel b,
.meeting-toolbar strong {
  color: var(--green);
  font-size: 22px;
}

.stage-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.stage-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.meeting-toolbar {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.meeting-toolbar label,
.form-grid {
  display: grid;
  gap: 8px;
}

.meeting-toolbar label span,
.meeting-toolbar small {
  color: var(--muted);
  font-size: 12px;
}

.form-grid {
  margin-bottom: 14px;
}

.form-grid textarea {
  min-height: 86px;
}

.assignment-item,
.standup-item {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.assignment-item strong,
.standup-item strong {
  font-size: 15px;
}

.assignment-item span,
.standup-item span,
.report-summary span {
  color: var(--muted);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.report-summary div {
  display: grid;
  gap: 4px;
}

.report-summary b {
  font-size: 24px;
}

.report-box {
  min-height: 420px;
  max-height: 720px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c131c;
  color: var(--text);
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.plan-card {
  padding: 16px;
}

.plan-card span {
  color: var(--cyan);
  font-weight: 800;
}

.plan-card h3 {
  margin-top: 10px;
  font-size: 18px;
}

.plan-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.plan-summary {
  grid-column: 1 / -1;
}

.review-item {
  display: grid;
  grid-template-columns: 1fr 58px 88px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.review-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.review-form textarea {
  min-height: 96px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.review-item b {
  font-size: 24px;
}

.review-item em {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  font-size: 12px;
}

.review-pass em {
  color: var(--green);
  background: rgba(61, 220, 151, 0.12);
}

.review-warning em {
  color: var(--amber);
  background: rgba(255, 189, 74, 0.12);
}

.review-block em {
  color: var(--red);
  background: rgba(255, 92, 122, 0.12);
}

.rule-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rule-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  padding: 14px;
  color: var(--muted);
}

.empty-state {
  border: 1px dashed rgba(145, 160, 178, 0.26);
  border-radius: 8px;
  color: var(--muted);
  padding: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.risk-P1 b,
.risk-P2 b,
.risk-P3 b {
  color: var(--text);
}

.risk-P1 b {
  background: rgba(255, 92, 122, 0.18);
}

.risk-P2 b {
  background: rgba(255, 189, 74, 0.18);
}

.risk-P3 b {
  background: rgba(77, 163, 255, 0.18);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid rgba(53, 211, 199, 0.34);
  border-radius: 8px;
  background: #0d1720;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  main {
    width: min(100% - 28px, 1280px);
    padding-top: 24px;
  }

  .hero,
  .split-grid,
  .metric-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .task-row {
    grid-template-columns: 1fr;
  }

  .project-card,
  .activity-item,
  .meeting-toolbar,
  .report-summary {
    grid-template-columns: 1fr;
  }

  .project-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-summary {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero > div:first-child,
  .health-card,
  .panel,
  .metric-card {
    padding: 16px;
  }

  h1 {
    font-size: 38px;
  }

  .health-card strong {
    font-size: 58px;
  }

  .review-item {
    grid-template-columns: 1fr;
  }

  .review-item em {
    justify-self: start;
  }
}

.review-suggestion {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  font-style: italic;
  line-height: 1.5;
}

/* ── 任务编辑按钮 ── */
.icon-btn {
  background: transparent;
  border: none;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0.5;
  font-size: 14px;
  transition: opacity 0.15s;
}
.icon-btn:hover { opacity: 1; background: var(--panel-2); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { color: var(--text); background: var(--panel-2); }
.modal-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
}
.modal-form input[type="range"] { padding: 4px 0; }
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}
.submit-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
}
.submit-btn:hover { opacity: 0.88; }
.danger-btn {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
}
.danger-btn:hover { background: var(--red); color: #fff; }

/* ── 企微状态标签 ── */
.wecom-pill {
  background: rgba(61, 220, 151, 0.15);
  color: var(--green);
}

/* ── 站会视图 ── */
.standup-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-top: 20px;
}
.standup-form-wrap h3,
.standup-right h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.standup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.standup-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.standup-form input,
.standup-form select,
.standup-form textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
}
.leave-label {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  color: var(--amber) !important;
}
.standup-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.standup-summary-wrap,
.standup-list-wrap { }
.standup-summary {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  min-height: 80px;
}
.standup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}
.standup-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
}
.standup-item.standup-leave {
  border-color: rgba(255, 189, 74, 0.3);
}
.standup-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.standup-item-head strong { font-size: 14px; }
.standup-item-head small { margin-left: auto; color: var(--dim); font-size: 12px; }
.leave-badge {
  font-size: 11px;
  background: rgba(255, 189, 74, 0.15);
  color: var(--amber);
  border-radius: 4px;
  padding: 2px 8px;
}
.standup-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.standup-item-body b {
  color: var(--dim);
  font-size: 11px;
  margin-right: 6px;
}
.standup-blockers {
  color: var(--amber);
}

/* ── 日报视图 ── */
.report-content {
  margin-top: 20px;
  min-height: 200px;
}
.report-body {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.report-body strong {
  color: var(--blue);
  display: block;
  margin: 12px 0 4px;
}

@media (max-width: 860px) {
  .standup-layout {
    grid-template-columns: 1fr;
  }
  .modal-row {
    grid-template-columns: 1fr;
  }
}

/* ── 日报 Tab 切换 ── */
.report-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 0 4px;
  margin-top: 16px;
}
.report-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 16px;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.report-tab:hover { color: var(--text); }
.report-tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

.report-pane { display: none; }
.report-pane.active { display: block; }

/* ── 分工认领视图 ── */
.assignment-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}
.assignment-tasks h3,
.assignment-sidebar h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.assignment-tasks h3 small { font-size: 11px; color: var(--dim); font-weight: 400; text-transform: none; }
.assignment-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* 可认领任务行 */
.assignable-list { display: flex; flex-direction: column; gap: 8px; }
.assignable-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.assignable-task-row:hover { border-color: var(--blue); }
.assignable-task-info { flex: 1; min-width: 0; }
.assignable-task-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.assignable-task-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assignable-task-meta { font-size: 12px; color: var(--dim); }
.assignable-claimants { margin-top: 6px; font-size: 12px; color: var(--cyan); }
.assignable-claimants span { background: rgba(53, 211, 199, 0.1); border-radius: 4px; padding: 1px 6px; margin-right: 4px; }
.claim-btn {
  flex-shrink: 0;
  background: rgba(77, 163, 255, 0.15);
  border: 1px solid rgba(77, 163, 255, 0.4);
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  transition: background 0.15s;
  white-space: nowrap;
}
.claim-btn:hover { background: rgba(77, 163, 255, 0.28); }

/* 认领情况 */
.assignment-summary-wrap,
.plan-adjust-wrap {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.assign-group { margin-bottom: 12px; }
.assign-owner { display: block; font-size: 13px; color: var(--cyan); margin-bottom: 6px; }
.assign-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 4px;
}
.assign-item.assign-已完成 { opacity: 0.55; }
.assign-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign-status-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(77, 163, 255, 0.12);
  color: var(--blue);
}
.assign-item.assign-已完成 .assign-status-badge { background: rgba(61, 220, 151, 0.12); color: var(--green); }
.assign-item.assign-未完成 .assign-status-badge { background: rgba(255, 92, 122, 0.12); color: var(--red); }
.assign-note { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.assign-actions { display: flex; gap: 4px; flex-shrink: 0; }
.assign-done-btn, .assign-cancel-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  transition: color 0.15s, border-color 0.15s;
}
.assign-done-btn:hover { color: var(--green); border-color: var(--green); }
.assign-cancel-btn:hover { color: var(--red); border-color: var(--red); }

/* AI 计划调整建议 */
.plan-adjust-list { display: flex; flex-direction: column; gap: 10px; }
.plan-adjust-item {
  border-left: 2px solid var(--amber);
  padding-left: 12px;
}
.plan-adjust-head { margin-bottom: 4px; }
.plan-adjust-head small { font-size: 11px; color: var(--dim); }
.plan-adjust-body { font-size: 13px; color: var(--text); line-height: 1.6; }

.review-suggestion { font-size: 12px; color: #8899aa; margin: 4px 0 0; font-style: italic; }

@media (max-width: 960px) {
  .assignment-layout { grid-template-columns: 1fr; }
}

/* ── GitHub 链接 ── */
.repo-link {
  color: var(--blue);
  text-decoration: none;
  font-family: monospace;
  font-size: 13px;
}
.repo-link:hover { text-decoration: underline; }
