.dashboard-page {
  min-width: 0;
  font-size: .875rem;
  line-height: 1.42;
}

.dashboard-intro { padding: 8px 0 2px; }
.dashboard-intro h1 { margin: 2px 0 0; font-size: clamp(1.7rem, 3vw, 2rem); line-height: 1.15; }
.dashboard-page .eyebrow, .section-kicker, .job-project, .project-focus span, .node-phase {
  margin: 0; color: var(--muted); font-size: .65rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase;
}
.dashboard-page .section-heading { margin: 24px 0 10px; padding-bottom: 7px; }
.dashboard-page .section-heading h2 { margin-top: 1px; font-size: clamp(1.13rem, 2vw, 1.34rem); line-height: 1.2; }
.dashboard-page .section-heading > span { font-size: .75rem; }

.background-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.background-job {
  min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-top: 3px solid var(--line);
  border-radius: 10px; background: var(--panel);
}
.background-job.health-healthy { border-top-color: var(--green); }
.background-job.health-warning { border-top-color: var(--amber); }
.background-job.health-stale { border-top-color: var(--accent); }
.job-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-heading h3 { margin: 2px 0 0; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.health-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.health-healthy .health-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(39,116,92,.12); }
.health-warning .health-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(181,121,20,.12); }
.health-stale .health-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(231,96,43,.12); }
.job-status { margin: 9px 0 2px; font-size: .86rem; font-weight: 850; }
.job-description { margin: 2px 0 10px; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.background-job dl { display: grid; gap: 5px; margin: 9px 0 0; }
.background-job dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 5px; }
.background-job dt { color: var(--muted); font-size: .66rem; }
.background-job dd { margin: 0; font-size: .72rem; font-weight: 750; text-align: right; }

.project-timeline-list { display: grid; gap: 12px; }
.project-timeline-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
}
.project-summary { display: block; width: auto; max-width: none; height: auto; margin: 0; padding: 13px 15px 11px; border-bottom: 1px solid var(--line); }
.project-summary > a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.project-summary h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.project-focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; margin-top: 8px; }
.project-focus div { min-width: 0; }
.project-focus strong { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere; }
.project-focus .next-action strong { color: var(--accent); font-size: .9rem; }
.timeline-labels { display: grid; grid-template-columns: 1fr auto 1fr; padding: 7px 16px 0; color: var(--muted); font-size: .63rem; font-weight: 800; }
.timeline-labels span:last-child { text-align: right; }
.project-timeline-scroll {
  max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 7px 14px 13px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain;
}
.project-timeline-track {
  display: flex; align-items: stretch; justify-content: center; width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none;
}
.timeline-node { position: relative; flex: 0 0 170px; min-width: 170px; padding: 13px 8px 0; }
.timeline-node::before { content: ""; position: absolute; top: 8px; right: 0; left: 0; height: 2px; background: var(--line); }
.timeline-node:first-child::before { left: 50%; }
.timeline-node:last-child::before { right: 50%; }
.timeline-node a {
  position: relative; display: flex; min-height: 104px; flex-direction: column; align-items: center; padding: 18px 10px 9px;
  border: 1px solid var(--line); border-radius: 9px; background: #fffef9; text-align: center; text-decoration: none;
}
.node-marker {
  position: absolute; z-index: 1; top: -11px; left: 50%; display: grid; width: 21px; height: 21px; place-items: center;
  transform: translateX(-50%); border: 3px solid var(--panel); border-radius: 50%; background: var(--muted); color: white; font-size: .55rem;
}
.timeline-node strong { display: -webkit-box; margin-top: 4px; overflow: hidden; font-size: .78rem; line-height: 1.34; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.timeline-node small { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: .66rem; font-weight: 750; }
.timeline-node.status-done .node-marker { background: var(--green); }
.timeline-node.status-ready .node-marker { background: var(--blue); }
.timeline-node.status-review .node-marker { background: var(--blue); }
.timeline-node.status-waiting .node-marker { background: var(--amber); }
.timeline-node.status-cancelled { opacity: .58; }
.timeline-node.is-current { flex-basis: 190px; min-width: 190px; padding-right: 5px; padding-left: 5px; }
.timeline-node.is-current a { min-height: 112px; transform: translateY(-2px); border: 2px solid var(--accent); box-shadow: 0 5px 14px rgba(23,33,28,.08); background: #fff8f1; }
.timeline-node.is-current .node-marker { width: 25px; height: 25px; top: -13px; background: var(--accent); }
.timeline-node.is-current strong { font-size: .84rem; }
.timeline-node.is-current small { color: var(--accent); font-weight: 900; }
.timeline-empty, .projects-empty { margin: 0; padding: 20px 15px; color: var(--muted); }

@media (max-width: 700px) {
  .dashboard-intro { padding-top: 3px; }
  .dashboard-intro h1 { font-size: 1.55rem; }
  .dashboard-page .section-heading { margin-top: 20px; }
  .background-job-grid { grid-template-columns: 1fr; gap: 8px; }
  .background-job { padding: 11px 12px; }
  .job-description { margin-bottom: 7px; }
  .project-summary { padding: 11px 12px 10px; }
  .project-summary h3 { font-size: 1rem; }
  .project-focus { grid-template-columns: 1fr; gap: 7px; margin-top: 7px; }
  .project-focus strong { font-size: .8rem; }
  .project-focus .next-action strong { font-size: .86rem; }
  .timeline-labels { padding-right: 12px; padding-left: 12px; }
  .project-timeline-scroll { padding-right: 10px; padding-left: 10px; scroll-snap-type: x proximity; }
  .timeline-node { flex-basis: 150px; min-width: 150px; scroll-snap-align: center; }
  .timeline-node.is-current { flex-basis: 168px; min-width: 168px; }
  .timeline-node a { min-height: 100px; padding-right: 8px; padding-left: 8px; }
}
