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

.dashboard-sidebar {
  background: white;
  border-left: 1px solid var(--color-border);
  padding: 1.25rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}

.sidebar-nav a {
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-weight: 800;
  padding: 0.85rem 1rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary-active);
}

.sidebar-nav a.active {
  font-weight: 900;
}

.dashboard-main {
  padding: 1.5rem;
}

.dashboard-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-stack {
  display: grid;
  gap: 1.25rem;
}

.section-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.section-header h2,
.panel-card h2,
.panel-card h3 {
  margin: 0;
}

.section-header p,
.panel-card p {
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0.45rem 0 0;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metric-card,
.panel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

a.metric-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(14, 166, 120, 0.14);
}

.metric-card span {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.status-pill {
  background: var(--color-primary-soft);
  border-radius: 999px;
  color: var(--color-primary-active);
  font-weight: 900;
  padding: 0.5rem 0.85rem;
}

.status-pill.info {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.status-pill.warning {
  background: #FEF3C7;
  color: #A16207;
}

.status-pill.danger {
  background: #FEE2E2;
  color: var(--color-danger);
}

.split-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.timeline-list,
.check-list,
.candidate-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-list li,
.check-list li,
.candidate-list li {
  align-items: center;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
}

.icon-badge {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  color: var(--color-primary-active);
  display: inline-flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.progress-track {
  background: var(--color-surface-muted);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: inherit;
  height: 100%;
}

.mini-note {
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.usage-chart {
  align-items: end;
  display: flex;
  gap: 0.45rem;
  height: 160px;
}

.usage-chart span {
  background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
  border-radius: 999px 999px 0 0;
  flex: 1;
  min-width: 16px;
}
