:root {
  --bg: #f4f6f3;
  --bg-soft: #edf3ee;
  --surface: #ffffff;
  --surface-raised: #fbfdfb;
  --surface-tint: #f7faf7;
  --ink: #18231f;
  --ink-2: #2b3a35;
  --muted: #6a7771;
  --muted-2: #8a9790;
  --line: #dce5de;
  --line-strong: #c8d7cf;
  --green: #176c56;
  --green-dark: #0f4f41;
  --green-soft: #e5f2ec;
  --blue: #2f6f9f;
  --blue-soft: #e4eef7;
  --red: #b7352f;
  --red-soft: #fae8e5;
  --gold: #a26d1c;
  --gold-soft: #f7eedb;
  --shadow-sm: 0 4px 14px rgba(21, 39, 31, 0.06);
  --shadow: 0 18px 48px rgba(21, 39, 31, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244, 246, 243, 0.92), rgba(244, 246, 243, 1)),
    radial-gradient(circle at 14% 9%, rgba(23, 108, 86, 0.08), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(162, 109, 28, 0.08), transparent 26%);
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 108, 86, 0.2);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid rgba(220, 229, 222, 0.9);
  background: rgba(251, 253, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  margin-bottom: 22px;
  padding: 0 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #2f6f9f);
  box-shadow: 0 10px 22px rgba(23, 108, 86, 0.22);
  font-weight: 850;
}

.brand-title {
  font-weight: 850;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 7px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
  padding-bottom: 8px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav button:hover {
  color: var(--ink);
  background: #f1f6f2;
}

.nav button.active {
  color: var(--ink);
  border-color: #cfe1d6;
  background: linear-gradient(180deg, #eef7f1, #e4f1eb);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(23, 108, 86, 0.08);
  color: var(--green);
  font-size: 13px;
  text-align: center;
}

.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.user-name {
  font-weight: 800;
}

.user-role {
  color: var(--muted);
  font-size: 12px;
}

.logout {
  width: 100%;
  margin-top: 12px;
  min-height: 36px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-tint);
}

.logout:hover {
  color: var(--ink);
  background: #edf4ef;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding: 4px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(23, 108, 86, 0.1);
  font-size: 12px;
  font-weight: 850;
}

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

h1 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-desc {
  margin-top: 9px;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.62;
}

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

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 22px rgba(23, 108, 86, 0.18);
}

.primary-btn.ready {
  animation: pulseReady 1.8s ease-in-out infinite;
}

@keyframes pulseReady {
  0%, 100% { box-shadow: 0 10px 22px rgba(23, 108, 86, 0.18); }
  50% { box-shadow: 0 10px 28px rgba(23, 108, 86, 0.42); }
}

.preview-hint {
  animation: fadeIn 0.3s ease;
}

/* 编辑模式提示条 */
.edit-mode-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #eef6ff, #f0f7ff);
  border-left: 4px solid var(--accent, #2b6cb0);
  border-radius: 8px;
  font-size: 14px;
  color: var(--accent, #2b6cb0);
  animation: slideInDown 0.3s ease;
}

.edit-mode-icon {
  font-size: 20px;
}

.edit-mode-text {
  line-height: 1.4;
}
.edit-mode-text strong {
  display: inline-block;
  margin-right: 4px;
}

/* 表单编辑状态 */
.form-card-editing {
  border-color: var(--accent, #2b6cb0) !important;
  box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.15), 0 8px 24px rgba(23, 108, 86, 0.12);
}

/* 提交操作区域 - 拆解后 */
.submit-actions.has-preview {
  flex-direction: column;
  gap: 8px;
  align-items: stretch !important;
}

.action-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft, #e6f9ed);
  color: var(--green-dark, #059669);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.action-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  text-align: left;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 预览面板操作区 */
.preview-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(128, 128, 128, 0.25);
}

.preview-steps {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  font-size: 11px;
  overflow-x: auto;
}

.p-step {
  padding: 5px 10px;
  border-radius: 12px;
  white-space: nowrap;
  color: var(--muted);
  background: var(--gray-bg, #f5f5f5);
  transition: all 0.3s ease;
}

.p-step.done {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.p-step.current {
  color: var(--accent, #2b6cb0);
  background: var(--accent-bg, #eef6ff);
  border: 1px solid var(--accent, #2b6cb0);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(43, 108, 176, 0.2);
}

.ps-num {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  margin-right: 4px;
  background: currentColor;
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.secondary-btn {
  color: var(--green-dark);
  background: var(--green-soft);
}

.ghost-btn {
  color: var(--muted);
  background: var(--surface-tint);
}

.danger-btn {
  color: var(--red);
  background: var(--red-soft);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  border: 1px solid rgba(220, 229, 222, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.card.pad {
  padding: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 128px;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(23, 108, 86, 0.08);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.metric-value {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.06;
}

.metric-foot {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.section {
  margin-top: 20px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f8faf8;
  font-size: 12px;
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfdfb;
}

.badge,
.priority,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.badge {
  color: var(--blue);
  background: var(--blue-soft);
}

.priority.p0 {
  color: var(--red);
  background: var(--red-soft);
}

.priority.p1 {
  color: var(--gold);
  background: var(--gold-soft);
}

.priority.p2 {
  color: var(--blue);
  background: var(--blue-soft);
}

.status {
  color: var(--green-dark);
  background: var(--green-soft);
}

.status.overdue {
  color: var(--red);
  background: var(--red-soft);
}

.spark {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 36px;
}

.spark span {
  display: block;
  width: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #3d9478, var(--green));
  opacity: 0.78;
}

.trend-text {
  font-size: 13px;
  color: var(--text-secondary, #475569);
  font-weight: 500;
}

.change-text {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
}

.runway,
.submit-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 241, 0.86));
}

.runway span,
.submit-guide span {
  color: var(--muted);
}

.runway-meta,
.status-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.runway-meta span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(23, 108, 86, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.ok-pill {
  color: var(--green-dark);
  background: rgba(23, 108, 86, 0.12);
}

.warn-pill {
  color: #8a5a12;
  background: rgba(162, 109, 28, 0.13);
}

.ai-status-panel .status-strip span {
  max-width: 100%;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.integration-item strong,
.integration-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(162, 109, 28, 0.12);
}

.dot.on {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 108, 86, 0.12);
}

.today-focus {
  border-left: 3px solid var(--green);
  background: linear-gradient(180deg, #fbfff9 0%, #f3f8f0 100%);
}
.today-focus .focus-list {
  margin: 8px 0 0;
  padding-left: 20px;
}
.today-focus .focus-list li {
  line-height: 1.7;
  color: #2a3526;
  font-size: 14px;
}

.action-panel {
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.action-card {
  display: grid;
  gap: 9px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--muted-2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(21, 39, 31, 0.04);
}

.action-card.p0 {
  border-top-color: var(--red);
  background: #fff8f7;
}

.action-card.p1 {
  border-top-color: var(--gold);
  background: #fffaf0;
}

.action-card.p2 {
  border-top-color: var(--green);
  background: #fbfdfb;
}

.action-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.action-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.action-text {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.action-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-detail-list span {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(23, 108, 86, 0.08);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.action-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.quick-goal-setter {
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, #fffcf5 0%, #faf6ec 100%);
}
.quick-goal-rows { display: flex; flex-direction: column; gap: 12px; }
.quick-goal-row {
  display: grid;
  grid-template-columns: 1fr 160px auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.quick-goal-row:last-child { border-bottom: none; }
.quick-goal-row label { font-size: 14px; color: #2a3526; }
.quick-goal-row input { padding: 6px 10px; font-size: 15px; font-weight: 600; }
.quick-goal-row small { font-size: 12px; white-space: nowrap; }

.status-strip {
  margin-bottom: 14px;
}

.form-card {
  max-width: 980px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 108, 86, 0.12);
}

.help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.tag-chip:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.tag-chip.selected {
  border-color: #a8cdbd;
  color: var(--green-dark);
  background: var(--green-soft);
  font-weight: 850;
}

/* 待办类型标签 */
.badge-ai, .badge-original {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  margin-right: 4px;
  vertical-align: middle;
}

.badge-ai {
  background: linear-gradient(135deg, #e8f4fd, #d4eafc);
  color: #1a73e8;
  border: 1px solid #a8d1f5;
}

.badge-original {
  background: linear-gradient(135deg, #e6f9ed, #d4f5e6);
  color: #059669;
  border: 1px solid #a8cdbd;
}

/* AI 提示卡片 */
.item-ai-tip {
  margin-top: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #e8f4fd, #deecfa);
  border-left: 3px solid #1a73e8;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.item-ai-tip .badge-ai {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #d4eafc, #c0e0f8);
  color: #1a73e8;
  border: 1px solid #a8d1f5;
}

.ai-note-text {
  white-space: pre-line;
  color: #3c4043;
}

.item-note {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 13px;
  color: #5f6368;
}

.item-result {
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.5;
}

.task-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.task-stat-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-tint);
}

.task-stat-card.todo { background: #fff8ec; }
.task-stat-card.doing { background: var(--blue-soft); }
.task-stat-card.done { background: var(--green-soft); }
.task-stat-card.voided { background: #f1f2f4; }

.task-stat-value {
  font-size: 24px;
  font-weight: 900;
}

.task-stat-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.task-lane {
  min-width: 240px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.task-lane.todo { border-top: 4px solid var(--gold); }
.task-lane.doing { border-top: 4px solid var(--blue); }
.task-lane.done { border-top: 4px solid var(--green); }
.task-lane.voided { border-top: 4px solid #8a8f98; opacity: 0.92; }

.task-lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.empty.compact {
  padding: 18px 10px;
  min-height: auto;
}

.my-task-section {
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
}

@media (max-width: 1100px) {
  .task-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .task-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .task-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .task-lane {
    min-width: 0;
  }
}

/* 协作人选择器 */
.member-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feishu-sync-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
}

.feishu-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.feishu-source-card {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--muted-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(21, 39, 31, 0.04);
}

.feishu-source-card.ok { border-top-color: var(--green); }
.feishu-source-card.stale { border-top-color: var(--gold); background: #fffaf0; }
.feishu-source-card.error,
.feishu-source-card.missing { border-top-color: var(--red); background: #fff8f7; }

.feishu-source-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.feishu-status {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  color: var(--muted);
  background: #f1f5f3;
}

.feishu-status.ok { color: var(--green-dark); background: var(--green-soft); }
.feishu-status.stale { color: #7a4e08; background: var(--gold-soft); }
.feishu-status.error,
.feishu-status.missing { color: #8d2d28; background: var(--red-soft); }

.feishu-source-summary {
  min-height: 40px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.feishu-source-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feishu-source-metrics span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef4f0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.feishu-source-foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.feishu-card-link {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.feishu-alert-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.feishu-alert-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  background: #fff8ec;
  color: #59420f;
  font-size: 13px;
  line-height: 1.45;
}

.feishu-alert-item.p0 {
  border-left-color: var(--red);
  background: var(--red-soft);
  color: #7f2722;
}

/* ===== 发售项目中心 ===== */
.launch-empty-state {
  display: grid;
  gap: 6px;
}

.launch-project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: all 0.18s ease;
}
.launch-project-card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(23, 108, 86, 0.1);
  transform: translateY(-1px);
}
.launch-project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.launch-project-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.launch-project-arrow {
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}
.launch-project-summary {
  margin-top: 6px;
  line-height: 1.5;
}
.phase-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4f0;
  font-size: 12px;
  color: var(--green-dark);
}
.phase-chip-name {
  font-weight: 700;
}
.phase-chip-count {
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
  min-width: 16px;
  text-align: center;
}
.launch-phase-section {
  border-left: 4px solid var(--green);
}
.goal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.goal-chip {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  min-width: 120px;
}
.goal-chip-key {
  font-size: 12px;
  color: var(--muted);
}
.goal-chip-value {
  font-weight: 850;
  color: var(--green-dark);
  font-size: 18px;
  margin-top: 2px;
}
.goal-chip-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.compact-empty {
  padding: 14px;
}
.goal-edit-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fbfdfb;
}
.goal-edit-sort {
  display: flex;
  gap: 6px;
  padding-top: 24px;
}
.goal-edit-main {
  align-items: start;
}
.goal-note-row {
  grid-column: 1 / -1;
}
.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  width: 24px;
  height: 28px;
  cursor: pointer;
  font-weight: 800;
}
.mini-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.compact-danger {
  align-self: center;
  margin-top: 22px;
  padding: 7px 10px;
}
@media (max-width: 760px) {
  .goal-edit-row {
    grid-template-columns: 1fr;
  }
  .goal-edit-sort {
    padding-top: 0;
  }
  .compact-danger {
    margin-top: 0;
    justify-self: start;
  }
}
.module-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef4f0;
  color: var(--ink-2);
  font-size: 12px;
}
.priority-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}
.priority-P0 { background: var(--red-soft); color: #7f2722; }
.priority-P1 { background: var(--gold-soft); color: #7a4e08; }
.priority-P2 { background: #eef4f0; color: var(--muted); }
.risk-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fdecea;
  color: #8d2d28;
  font-size: 12px;
}
.task-status-select {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.link-btn {
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0 4px;
}

/* ===== 事项编辑/新增弹层 ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 30, 0.42);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-card {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(20, 35, 30, 0.24);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  font-weight: 850;
  font-size: 17px;
  color: var(--ink);
}
.modal-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.modal-close:hover { background: #f1f5f3; color: var(--ink); }
.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-tint);
  border-radius: 0 0 10px 10px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-row label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.form-row .required {
  color: var(--red);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 108, 86, 0.12);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.danger-btn {
  border: 1px solid var(--red);
  background: #fff;
  color: var(--red);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.danger-btn:hover { background: var(--red-soft); }
.primary-btn {
  border: 0;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.primary-btn:hover { background: var(--green-dark); }
.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.secondary-btn:hover { background: var(--surface-tint); }

.feishu-alert-item strong {
  min-width: 170px;
}

@media (max-width: 1180px) {
  .feishu-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .feishu-source-grid {
    grid-template-columns: 1fr;
  }
  .feishu-alert-item {
    display: grid;
  }
  .feishu-alert-item strong {
    min-width: 0;
  }
}

.member-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transition: all 0.2s ease;
}
.member-pick-chip:hover {
  border-color: var(--green);
  background: var(--green-soft, #e6f9ed);
}
.member-pick-chip.selected {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green-soft, #e6f9ed), #d4f5e6);
  color: var(--green-dark);
  font-weight: 850;
  box-shadow: 0 2px 8px rgba(23, 108, 86, 0.12), inset 0 0 0 1px rgba(23, 108, 86, 0.18);
}

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.member-role-tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--gray-bg, #f5f5f5);
  padding: 1px 6px;
  border-radius: 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fcf9, #f2f8f4);
}

.ai-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ai-k {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(21, 39, 31, 0.04);
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  font-weight: 900;
  line-height: 1.35;
}

.item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(244, 246, 243, 0.94), rgba(237, 243, 238, 0.98)),
    radial-gradient(circle at 12% 14%, rgba(23, 108, 86, 0.12), transparent 30%),
    radial-gradient(circle at 89% 15%, rgba(47, 111, 159, 0.1), transparent 28%);
}

.login-card {
  width: min(1030px, 100%);
  display: grid;
  grid-template-columns: 1fr 420px;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 222, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-copy {
  padding: 46px;
  background:
    linear-gradient(180deg, rgba(247, 250, 248, 0.96), rgba(239, 247, 242, 0.94)),
    linear-gradient(135deg, rgba(23, 108, 86, 0.08), transparent);
}

.login-copy h1 {
  font-size: 36px;
}

.login-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.login-point {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 16px rgba(21, 39, 31, 0.04);
}

.login-form {
  padding: 34px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface-tint);
}

.tabs button {
  flex: 1;
  min-height: 38px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.tabs button.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 7px 16px rgba(23, 108, 86, 0.16);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.biz-source-note {
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 243, 0.9));
}

.biz-summary-grid .metric-card {
  min-height: 136px;
}

.compact-table table {
  min-width: 680px;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
  font-size: 13px;
}

.small-text {
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.35;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.source-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 248, 0.9);
}

.source-card strong,
.source-card span {
  display: block;
}

.source-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.raw-data-details {
  margin-top: 12px;
}

.raw-data-details summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 850;
}

.raw-preview {
  margin-top: 12px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(251, 253, 251, 0.78);
  text-align: center;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.preserve-lines {
  white-space: pre-line;
}

.warning-note {
  color: #9b2d2d;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.compact-action {
  padding: 5px 10px;
  font-size: 12px;
}

/* 经营详情：健康标记 */
.health-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.health-good { background: rgba(34, 154, 92, 0.12); color: #16703f; }
.health-warn { background: rgba(212, 150, 22, 0.14); color: #8a5e08; }
.health-bad  { background: rgba(196, 69, 69, 0.14); color: #9b2d2d; }
.health-none { background: rgba(120, 120, 120, 0.10); color: #666; }

/* 退款率单元格标记 */
.refund-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.refund-good { background: rgba(34, 154, 92, 0.12); color: #16703f; }
.refund-warn { background: rgba(212, 150, 22, 0.14); color: #8a5e08; }
.refund-bad  { background: rgba(196, 69, 69, 0.16); color: #9b2d2d; }
.refund-none { color: var(--muted); }

/* 退款率异常行 */
.row-refund-bad {
  background: rgba(196, 69, 69, 0.05);
}
.row-refund-bad td:first-child {
  border-left: 3px solid #c44545;
}

/* 经营解读卡片 */
.biz-insights {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.92));
}
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.insight-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.insight-good { border-left-color: #229a5c; background: rgba(34, 154, 92, 0.05); }
.insight-warn { border-left-color: #d49616; background: rgba(212, 150, 22, 0.06); }
.insight-bad  { border-left-color: #c44545; background: rgba(196, 69, 69, 0.06); }
.insight-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.insight-good .insight-icon { background: rgba(34, 154, 92, 0.15); color: #16703f; }
.insight-warn .insight-icon { background: rgba(212, 150, 22, 0.18); color: #8a5e08; }
.insight-bad  .insight-icon { background: rgba(196, 69, 69, 0.18); color: #9b2d2d; }
.insight-title {
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--ink);
}
.insight-text {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}

/* 发售项目 */
.launch-owner-group {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 248, 0.6);
}
.launch-owner-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--green-dark);
}
.launch-owner-tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.launch-task-item {
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}
.launch-task-item.task-done {
  border-left-color: #999;
  opacity: 0.7;
}
.launch-task-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.task-status-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.task-status-tag.status-进行中 { background: rgba(212, 150, 22, 0.14); color: #8a5e08; }
.task-status-tag.status-已完成 { background: rgba(34, 154, 92, 0.12); color: #16703f; }
.task-status-tag.status-未开始 { background: rgba(120, 120, 120, 0.12); color: #666; }
.refund-none { color: var(--muted); }

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: column;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-footer {
    margin-top: 16px;
    flex-shrink: 0;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: none;
    overflow-y: visible;
  }

  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .main {
    padding: 14px 12px;
  }

  .topbar {
    display: grid;
    gap: 8px;
  }

  .actions {
    justify-content: stretch;
    gap: 8px;
  }

  .actions .primary-btn,
  .actions .secondary-btn {
    flex: 1;
    min-height: 42px;
    font-size: 14px;
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .form-grid,
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-copy {
    padding: 28px;
  }

  .login-form {
    padding: 24px;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .nav-item {
    padding: 10px 8px;
    font-size: 12px;
    min-height: 48px;
  }

  .nav-item .nav-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  h1 {
    font-size: 22px;
  }

  .page-subtitle,
  .page-description {
    font-size: 13px;
  }

  .metric-value {
    font-size: 22px;
  }

  .metric-card {
    padding: 12px;
  }

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

  .section {
    margin-bottom: 16px;
  }

  .card.pad {
    padding: 12px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }

  .table-wrap table {
    min-width: 480px;
    font-size: 13px;
  }

  .table-wrap th,
  .table-wrap td {
    padding: 8px 6px;
    white-space: nowrap;
  }

  .biz-summary-grid .metric-card {
    padding: 10px;
  }

  .biz-summary-grid .metric-value {
    font-size: 18px;
  }

  .compact-table table {
    min-width: 380px;
  }

  .today-focus .focus-list li {
    font-size: 13px;
    line-height: 1.7;
    padding: 6px 0;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 0;
  }

  .action-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-goal-setter table {
    min-width: 360px;
  }

  .quick-goal-setter input[type="number"] {
    min-width: 80px;
  }

  .form-grid .field input,
  .form-grid .field select,
  .form-grid .field textarea {
    min-height: 42px;
    font-size: 14px;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 42px;
    font-size: 14px;
    padding: 8px 14px;
  }

  .section-head {
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-title {
    font-size: 15px;
  }

  .badge,
  .muted {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .grid.cols-4,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .metric-value {
    font-size: 20px;
  }

  h1 {
    font-size: 20px;
  }
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button {
  border: 1px solid #d7dee8;
  background: #fff;
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 12px;
}

.segmented button.active {
  background: #183b56;
  border-color: #183b56;
  color: #fff;
}

.compact-filter {
  margin-bottom: 12px;
}

.ok-pill a,
.warn-pill a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}
