/* Dashboard-specific styles */

/* hero */
.hero {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 80% 0%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%),
    var(--surface);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; opacity: .9; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 28px 32px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 12px; }
.hero-title {
  margin: 0; font-size: 34px; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1;
  font-family: var(--font-display);
  text-wrap: pretty;
  max-width: 720px;
}
.hero-accent {
  background: linear-gradient(120deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 60%, var(--text)) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub { margin: 0; font-size: 14.5px; color: var(--text-muted); max-width: 620px; line-height: 1.5; }
.hero-meta { display: flex; gap: 28px; margin-top: 10px; flex-wrap: wrap; }
.hm { display: flex; align-items: center; gap: 10px; }
.hm-l { font-size: 11px; color: var(--text-subtle); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hm-v { font-size: 13.5px; font-weight: 600; margin-top: 1px; }

.hero-progress {
  position: relative; width: 148px; height: 148px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-progress-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center;
}
.hp-pct {
  font-size: 36px; font-weight: 700; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  line-height: 1;
}
.hp-pct span { font-size: 16px; color: var(--text-muted); margin-left: 1px; }
.hp-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* quick stats */
.qs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 28px;
}
.qs-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .15s ease, transform .04s ease;
}
.qs-card:hover { border-color: var(--border-strong); }
.qs-card:active { transform: translateY(1px); }
.qs-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.qs-body { flex: 1; min-width: 0; }
.qs-value {
  font-size: 24px; font-weight: 700; letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.qs-label { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.qs-hint { font-size: 11.5px; color: var(--text-subtle); margin-top: 2px; }

/* dash split */
.dash-split {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.dash-main { min-width: 0; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }

.dash-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-title {
  margin: 0; font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em;
}

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 8px; }
.tl-phase { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.tl-stem { display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.tl-bullet {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); color: var(--text-muted);
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.tl-bullet.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tl-bullet.done { background: var(--text); color: var(--surface); border-color: var(--text); }
.tl-line { flex: 1; width: 2px; background: var(--border); margin: 6px 0; min-height: 24px; }

.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.tl-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tl-title {
  font-size: 17px; font-weight: 700; letter-spacing: -0.018em;
  font-family: var(--font-display);
}
.tl-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.tl-progress { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

.tl-tasks { display: flex; flex-direction: column; }

/* task row */
.task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.task-row:first-child { border-top: 0; padding-top: 4px; }
.task-row.is-done .task-title { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--text-subtle); }
.task-icon-wrap {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 13.5px; font-weight: 600; }
.task-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; flex-wrap: wrap; }

/* checklist */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.cl-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cl-title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.012em; }

/* grid layout */
.grid-layout {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gl-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.gl-title { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.gl-list { display: flex; flex-direction: column; gap: 8px; }
.gl-item { display: flex; gap: 10px; align-items: center; }
.gl-item.is-done .gl-item-title { color: var(--text-muted); text-decoration: line-through; }
.gl-item-title { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.gl-item-meta { font-size: 11px; color: var(--text-subtle); margin-top: 1px; }
.gl-more { font-size: 11.5px; padding-top: 4px; }

/* today panel */
.today-card { padding: 18px 20px; }
.today-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px; gap: 8px;
}
.today-list { display: flex; flex-direction: column; gap: 0; }
.today-item {
  display: grid;
  grid-template-columns: 56px 4px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.today-item:first-child { border-top: 0; padding-top: 0; }
.ti-time { font-size: 12px; line-height: 1.2; }
.ti-h { font-weight: 700; font-variant-numeric: tabular-nums; }
.ti-d { color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.ti-bar { width: 3px; border-radius: 2px; background: var(--border-strong); }
.ti-bar.primary { background: var(--accent); }
.ti-body { min-width: 0; }
.ti-title { font-size: 13px; font-weight: 600; line-height: 1.25; }
.ti-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); margin-top: 3px; flex-wrap: wrap; }
.ti-meta .dot { color: var(--text-subtle); }
.ti-join {
  border: 0; background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; cursor: pointer;
  margin-left: 4px;
}

/* people */
.people-row { display: flex; align-items: center; gap: 10px; }

/* resource list */
.resource {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: inherit;
}
.resource:hover { background: var(--surface-sunken); }
.rs-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--surface-sunken);
  display: grid; place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.rs-title { font-size: 13px; font-weight: 600; }

@media (max-width: 1100px) {
  .dash-split { grid-template-columns: 1fr; }
  .qs-grid { grid-template-columns: repeat(2, 1fr); }
}
