/* 侧栏迷你驾驶舱 */
.sidebar-learning-mini {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.sidebar-mini-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.sidebar-mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.sidebar-mini-row strong {
  color: var(--text);
}
.sidebar-mini-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-mini-btn {
  width: 100%;
}

.progress-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.progress-summary-card {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
}
.progress-summary-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.progress-summary-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.daily-interview-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
  margin-bottom: 8px;
}
.daily-interview-kicker {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.daily-interview-q {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.progress-data-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .progress-summary-grid { grid-template-columns: 1fr; }
}
.today-tag {
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* 工程深潜 */
.agent-academy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.agent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 8px;
}

.agent-tab {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.agent-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}
.agent-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.agent-panel {
  display: none;
  flex: 1;
  min-height: 0;
}
.agent-panel.active {
  display: block;
}

.agent-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.agent-sidebar {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
}

.agent-side-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.agent-side-link:hover {
  background: var(--input-bg);
  color: var(--text);
}
.agent-side-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.agent-priority-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.agent-priority-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
}
.agent-priority-num {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-align: center;
}
.agent-priority-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.agent-priority-why {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.agent-stage-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.agent-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.agent-stage-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}
.agent-stage-progress {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.agent-stage-bar {
  height: 4px;
  background: var(--input-bg);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}
.agent-stage-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.agent-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s;
}
.agent-check-item:hover {
  background: var(--input-bg);
}
.agent-check-item.done .agent-check-label {
  color: var(--muted);
  text-decoration: line-through;
}
.agent-check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.agent-check-item.done .agent-check-box {
  background: var(--success, #0f7b3a);
  border-color: var(--success, #0f7b3a);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.agent-check-label {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.6;
}
.agent-check-label a {
  color: var(--link);
}

.agent-output {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: var(--input-bg);
  font-size: 0.88rem;
  color: var(--muted);
}
.agent-output strong {
  color: var(--text);
}

.agent-concept-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.agent-concept-chip {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.agent-concept-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* 项目阶梯 */
.agent-ladder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}
.agent-ladder-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.agent-ladder-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.agent-ladder-card.done {
  opacity: 0.72;
}
.agent-ladder-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--muted);
  flex-shrink: 0;
}
.agent-ladder-card.done .agent-ladder-num {
  background: var(--success, #0f7b3a);
  color: #fff;
}
.agent-ladder-info {
  flex: 1;
  min-width: 0;
}
.agent-ladder-title {
  font-weight: 600;
  font-size: 0.96rem;
}
.agent-ladder-card.done .agent-ladder-title {
  text-decoration: line-through;
}
.agent-ladder-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 2px;
}
.agent-ladder-hint {
  font-size: 0.82rem;
  color: var(--accent);
  margin-top: 4px;
  opacity: 0.9;
}

/* 精选导读 */
.agent-res-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.agent-res-chip {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel2);
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}
.agent-res-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.agent-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.agent-res-card {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.agent-res-card:hover {
  border-color: var(--accent);
}
.agent-res-title {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
}
.agent-res-title a {
  color: var(--text);
  text-decoration: none;
}
.agent-res-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.agent-res-pm {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.agent-res-pm::before {
  content: "PM 导读 · ";
  color: var(--accent);
  font-weight: 500;
}
.agent-res-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.agent-res-link {
  font-size: 0.82rem;
  color: var(--link);
}

@media (max-width: 900px) {
  .agent-layout {
    grid-template-columns: 1fr;
  }
  .agent-sidebar {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
