.home-screen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
  padding: 80px 40px 60px;
  background: var(--page-bg);
}

.home-content {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.home-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── Stats ──────────────────────────────────────────────────────── */
.home-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.home-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px;
  border-right: 1px solid var(--border);
}

.home-stat:last-child {
  border-right: none;
}

.home-stat-value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1;
}

.home-stat-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Excerpt ────────────────────────────────────────────────────── */
.home-excerpt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-excerpt-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary, var(--text-muted));
  margin: 0;
  font-style: italic;
}

.home-excerpt-source {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  align-self: flex-end;
}

/* ── Recent files ───────────────────────────────────────────────── */
.home-recent-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.home-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s;
}

.home-recent-item:hover {
  background: var(--active-bg);
}

.home-recent-name {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-primary);
}

.home-recent-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Activity chart ─────────────────────────────────────────────── */
.home-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-section-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-bar-add {
  fill: var(--text-muted);
  opacity: 0.45;
}

.chart-bar-rem {
  fill: var(--text-muted);
  opacity: 0.18;
}

.chart-baseline {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-label {
  font-family: var(--font-sans);
  font-size: 8px;
  fill: var(--text-muted);
}

.chart-bar-label {
  font-family: var(--font-sans);
  font-size: 7px;
  fill: var(--text-muted);
  opacity: 0.7;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-muted);
}

.chart-legend-add::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--text-muted);
  opacity: 0.45;
  margin-right: 5px;
  vertical-align: middle;
}

.chart-legend-rem::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--text-muted);
  opacity: 0.18;
  margin-right: 5px;
  vertical-align: middle;
}

/* ── Resume button ──────────────────────────────────────────────── */
.home-resume-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.home-resume-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
