/* Batch 2 Workbench & Wall Enhancements (2026-11-10) */

/* 1. Course List 3-State Management */
.recovery-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dbe5ef;
}
.recovery-filter-tab {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.recovery-filter-tab[aria-pressed="true"] {
  background: #003f88;
  color: #ffffff;
  border-color: #003f88;
}
.recovery-course-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  background: #f8fbff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.recovery-course-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(15, 41, 74, 0.06);
}
.recovery-course-item.is-ended {
  background: #f8fafc;
}
.recovery-course-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.recovery-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}
.recovery-status-badge.active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.recovery-status-badge.ended {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.recovery-status-badge.archived {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.recovery-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.recovery-card-actions button {
  min-width: auto;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
}
.recovery-btn-continue {
  background: #003f88;
  color: #fff;
}
.recovery-btn-end {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.recovery-btn-end:hover:not(:disabled) {
  background: #ffe4e6;
}
.recovery-btn-archive {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.recovery-btn-view {
  background: #0f766e;
  color: #fff;
}

/* 2. Scheme A Extra Mode Bar (定额筹码分配) */
.extra-mode-bar {
  margin-top: 12px;
  padding: 12px 16px;
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0f7ff 0%, #fefce8 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.extra-mode-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.extra-mode-bar-copy strong {
  font-size: 16px;
  color: #0f294a;
}
.extra-mode-bar-copy span {
  font-size: 13px;
  color: #475569;
}
.extra-mode-btn {
  background: #0f294a;
  color: #fde68a;
  border: 2px solid #0f294a;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}
.extra-mode-btn[aria-pressed="true"] {
  background: #b45309;
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
}

/* 3. Pinned Classic Master Templates Library & Word Limit */
.pinned-classic-templates-bar {
  margin: 14px 0;
  padding: 16px;
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  display: grid;
  gap: 12px;
}
.pinned-classic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pinned-classic-head strong {
  font-size: 16px;
  color: #0f294a;
}
.pinned-classic-head span {
  font-size: 13px;
  color: #475569;
}
.pinned-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.pinned-template-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(15, 41, 74, 0.04);
}
.pinned-template-card.is-active {
  border: 2px solid #003f88;
  background: #f8fbff;
}
.pinned-template-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 4px;
}
.pinned-template-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f294a;
  margin: 0;
}
.pinned-template-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin: 4px 0 0;
}
.pinned-template-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pinned-template-actions button {
  flex: 1 1 auto;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
}
.pinned-btn-direct {
  background: #003f88;
  color: #fff;
}
.pinned-btn-edit {
  background: #e8f1f8;
  color: #0f294a;
  border: 1px solid #bdd0df;
}
.question-word-limit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
}
.question-word-limit-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}
.question-word-limit-bar select {
  width: auto;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
}
.chip-host-quick-tools {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}
.chip-host-quick-tools button {
  padding: 8px 12px;
  font-size: 13px;
  background: #0f294a;
  color: #fde68a;
}

/* 4. Matrix Co-Creation 2.0 (Tinted Quadrants + Point-to-Text Inspector) */
.matrix-board {
  position: relative;
  overflow: hidden;
  border: 2.5px solid #1e3a8a !important;
  box-shadow: 0 10px 28px rgba(15, 41, 74, 0.08);
}
.matrix-quad-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
}
.matrix-quad-bg {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px dashed rgba(30, 58, 138, 0.22);
}
.matrix-quad-bg-tl { background: rgba(219, 234, 254, 0.36); }
.matrix-quad-bg-tr { background: rgba(220, 252, 231, 0.45); }
.matrix-quad-bg-bl { background: rgba(241, 245, 249, 0.55); }
.matrix-quad-bg-br { background: rgba(254, 243, 199, 0.44); }
.matrix-quad-bg-title {
  font-size: 13px;
  font-weight: 900;
  color: #1e3a8a;
  opacity: 0.85;
}
.matrix-quad-bg-count {
  align-self: flex-end;
  font-size: 12px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f294a;
}
.matrix-point {
  cursor: pointer;
  z-index: 3;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.matrix-point:hover,
.matrix-point.is-active {
  z-index: 6;
  background: linear-gradient(135deg, #0f294a, #1d4ed8);
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.75), 0 6px 18px rgba(15, 41, 74, 0.35);
}
.matrix-point-inspector {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  display: grid;
  gap: 12px;
}
.matrix-inspector-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #1d4ed8;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.matrix-inspector-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.matrix-inspector-badge {
  background: #0f294a;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
}
.matrix-inspector-quad {
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
}
.matrix-inspector-coord {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.matrix-inspector-reason {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #0f294a;
  font-weight: 700;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.matrix-point-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.matrix-point-chip {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.matrix-point-chip.is-active {
  background: #0f294a;
  color: #fde68a;
  border-color: #0f294a;
}
.is-matrix-highlighted {
  outline: 4px solid #f59e0b !important;
  outline-offset: 3px;
}

/* 5. Framework 2D Matrix Table (左框架维度 × 上小组列) */
.fw-2d-shell {
  display: grid;
  gap: 12px;
}
.fw-2d-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fw-2d-reset-btn {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
}
.fw-2d-reset-btn.is-active {
  background: #0f294a;
  color: #ffffff;
}
.fw-2d-hint {
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}
.fw-2d-table-wrap {
  overflow-x: auto;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 41, 74, 0.05);
}
.fw-2d-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.fw-2d-table th,
.fw-2d-table td {
  border: 1px solid #dbe5ef;
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
.fw-corner-th {
  background: #0f294a;
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
  width: 180px;
  position: sticky;
  left: 0;
  z-index: 2;
}
.fw-col-th {
  background: #f1f5f9;
  color: #0f294a;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  min-width: 190px;
}
.fw-col-th:hover,
.fw-col-th.is-focused {
  background: #dbeafe;
  color: #1d4ed8;
}
.fw-track-cell {
  background: #f8fafc;
  position: sticky;
  left: 0;
  z-index: 1;
  cursor: pointer;
  width: 180px;
}
.fw-track-cell:hover,
.fw-track-cell.is-focused {
  background: #eff6ff;
}
.fw-track-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f294a;
  color: #fde68a;
  margin-bottom: 4px;
}
.fw-track-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #0f294a;
  line-height: 1.4;
}
.fw-track-count {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.fw-data-cell {
  background: #ffffff;
}
.fw-cell-list {
  display: grid;
  gap: 8px;
}
.fw-cell-entry {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-left: 3.5px solid #2563eb;
  border-radius: 10px;
  padding: 8px 10px;
}
.fw-cell-author {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 3px;
}
.fw-cell-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #0f294a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fw-cell-empty {
  color: #94a3b8;
  font-size: 13px;
}

/* 6. Chip Allocation Leaderboard */
.chip-allocation-visual {
  display: grid;
  gap: 16px;
}
.chip-leader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f294a 0%, #1e3a8a 100%);
  color: #ffffff;
}
.chip-leader-badge {
  font-size: 16px;
  font-weight: 900;
  color: #fde68a;
}
.chip-leader-sub {
  font-size: 14px;
  color: #e2e8f0;
}
.chip-rank-row {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  padding: 14px 16px;
}
.chip-rank-row.is-top-one {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.12);
}
.chip-rank-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip-crown-badge {
  background: #f59e0b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}
.chip-rank-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}
.chip-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #10b981) !important;
}

/* Additional exact selectors for Matrix 2.0, Framework 2D Table, and Chip Leaderboard */
.matrix-quadrant-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.mq-stat {
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
.mq-s-q1 { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.mq-s-q2 { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.mq-s-q3 { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
.mq-s-q4 { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.matrix-board-quadrants {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  pointer-events: none;
}
.mb-quad {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px dashed rgba(30, 58, 138, 0.22);
}
.mb-q1 { background: rgba(220, 252, 231, 0.44); }
.mb-q2 { background: rgba(219, 234, 254, 0.36); }
.mb-q3 { background: rgba(241, 245, 249, 0.55); }
.mb-q4 { background: rgba(254, 243, 199, 0.42); }
.mb-quad span { font-size: 12px; font-weight: 900; color: #1e3a8a; opacity: 0.82; }
.mb-quad strong { font-size: 14px; font-weight: 900; color: #0f294a; opacity: 0.72; }
.mb-quad em { align-self: flex-end; font-style: normal; font-size: 12px; font-weight: 900; background: rgba(255,255,255,0.85); padding: 2px 8px; border-radius: 999px; color: #0f294a; }
.matrix-point.is-active-point {
  z-index: 8;
  background: linear-gradient(135deg, #0f294a, #1d4ed8) !important;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.85), 0 8px 22px rgba(15, 41, 74, 0.4);
}
.matrix-inspector-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.matrix-person-chip {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.matrix-person-chip.is-active-chip {
  background: #0f294a;
  color: #fde68a;
  border-color: #0f294a;
}
.matrix-inspector-detail {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #1d4ed8;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.matrix-detail-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.matrix-detail-badge {
  background: #0f294a;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}
.matrix-detail-quad {
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.matrix-detail-coord {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.matrix-detail-reason {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
  color: #0f294a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fw-matrix-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fw-matrix-kicker {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fw-matrix-kicker strong { font-size: 17px; color: #0f294a; }
.fw-matrix-kicker span { font-size: 13px; color: #475569; }
.fw-matrix-view-btns { display: flex; gap: 8px; }
.fw-view-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
}
.fw-view-btn.active {
  background: #0f294a;
  color: #fde68a;
}
.fw-focus-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #92400e;
}
.fw-reset-focus-btn {
  padding: 6px 12px;
  font-size: 13px;
  background: #0f294a;
  color: #fde68a;
  border-radius: 8px;
}
.fw-group-th { background: #f1f5f9; min-width: 190px; }
.fw-th-btn {
  width: 100%;
  background: transparent;
  color: #0f294a;
  font-size: 15px;
  font-weight: 900;
  padding: 6px 8px;
  text-align: left;
}
.fw-th-btn:hover { background: #dbeafe; color: #1d4ed8; }
.fw-track-th { background: #f8fafc; width: 190px; position: sticky; left: 0; z-index: 1; }
.fw-track-btn {
  width: 100%;
  background: transparent;
  color: #0f294a;
  text-align: left;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fw-track-btn:hover { background: #eff6ff; }
.fw-track-index {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f294a;
  color: #fde68a;
}
.fw-track-btn strong { font-size: 16px; color: #0f294a; }
.fw-track-count { font-style: normal; font-size: 12px; color: #64748b; }
.fw-cell-items { display: grid; gap: 8px; }
.fw-cell-card {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-left: 3.5px solid #2563eb;
  border-radius: 10px;
  padding: 8px 10px;
}
.chip-leaderboard-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f294a 0%, #1e3a8a 100%);
  color: #ffffff;
  margin-bottom: 14px;
}
.chip-banner-title { font-size: 17px; font-weight: 900; color: #fde68a; }
.chip-banner-stats { font-size: 14px; color: #e2e8f0; }
.chip-leaderboard-list { display: grid; gap: 12px; }
.chip-rank-card {
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.chip-rank-card.is-champion {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 100%);
  border: 2px solid #f59e0b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.14);
}
.chip-rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chip-rank-title { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.chip-rank-badge.rank-1 { background: #f59e0b; color: #ffffff; }
.chip-rank-metrics { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chip-total-num { font-size: 22px; font-weight: 900; color: #0f294a; }
.chip-bar-gold { background: linear-gradient(90deg, #f59e0b, #10b981) !important; }
.chip-bar-blue { background: linear-gradient(90deg, #1d4ed8, #38bdf8) !important; }

