/* ── DASHBOARD ─────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
}

.stat-value.accent {
  color: var(--accent);
}

.stat-value.yellow {
  color: var(--yellow);
}

.stat-value.green {
  color: var(--green);
}

.stat-value.red {
  color: var(--red);
}

.stat-pace {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.activity-card {
  margin-top: 14px;
}

.activity-filters {
  display: flex;
  gap: 4px;
}

.activity-filter {
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.activity-filter.active,
.activity-filter:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.activity-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-date-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
}

.activity-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.activity-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.activity-jobs-col {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.activity-job-name {
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--text);
}

.activity-extra {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── CALENDAR VIEWS ─────────────────────────────────────── */

/* Week strip */
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-week-day {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cal-week-day.today {
  border-color: var(--accent);
}

.cal-week-day.has-jobs {
  background: rgba(0, 212, 170, 0.04);
}

.cal-week-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cal-week-dayname {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-week-datenum {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.cal-week-day.today .cal-week-datenum {
  color: var(--accent);
}

.cal-week-jobs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.cal-job-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 99px;
  padding: 1px 8px;
}

.cal-job-chip {
  font-size: 10px;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-job-more {
  font-size: 10px;
  color: var(--text-muted);
}

.cal-week-empty {
  text-align: center;
  color: var(--border);
  font-size: 14px;
  margin-top: 6px;
}

/* Month grid */
.cal-month {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-month-title,
.cal-year-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cal-month-daynames {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-month-daynames span {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-month-cell {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px;
}

.cal-month-cell.other-month {
  opacity: 0.2;
}

.cal-month-cell.today {
  border-color: var(--accent);
}

.cal-month-cell.has-jobs {
  background: rgba(0, 212, 170, 0.07);
}

.cal-cell-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.cal-month-cell.today .cal-cell-num {
  color: var(--accent);
}

.cal-cell-dot {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  min-width: 16px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Year tile grid */
.cal-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cal-year-month {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-year-month.has-jobs {
  border-color: rgba(0, 212, 170, 0.3);
}

.cal-year-month.current-month {
  border-color: var(--accent);
}

.cal-year-month-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.cal-year-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.cal-year-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.cal-year-count {
  font-size: 11px;
  color: var(--text-muted);
}

.cal-year-month.has-jobs .cal-year-count {
  color: var(--accent);
}

/* Clickable calendar cells */
.cal-week-day.has-jobs,
.cal-month-cell.has-jobs,
.cal-year-month.has-jobs {
  cursor: pointer;
}

.cal-week-day.has-jobs:hover,
.cal-month-cell.has-jobs:hover,
.cal-year-month.has-jobs:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 170, 0.10);
}

/* Day detail modal job list */
.day-modal-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s;
}

.day-modal-job:last-child {
  border-bottom: none;
}

.day-modal-job:hover {
  background: var(--card);
}

.day-modal-job-role {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.day-modal-job-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.day-modal-job-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dash-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Dash-card accent top borders (Dashboard cards) */
.dash-card[data-card="gaps"] {
  border-top: 2px solid var(--red);
}

.dash-card[data-card="activity"] {
  border-top: 2px solid var(--accent);
}

.dash-card[data-card="pipeline"] {
  border-top: 2px solid #a78bfa;
}

.dash-card[data-card="top-skills"] {
  border-top: 2px solid var(--green);
}

/* Analytics cards */
.dash-card[data-card="funnel"] {
  border-top: 2px solid var(--accent);
}

.dash-card[data-card="response-rate"] {
  border-top: 2px solid #a78bfa;
}

.dash-card[data-card="over-time"] {
  border-top: 2px solid #60a5fa;
}

.dash-card[data-card="top-companies"] {
  border-top: 2px solid var(--yellow);
}

.dash-card[data-card="skill-gaps"] {
  border-top: 2px solid var(--red);
}

.dash-card[data-card="fit-dist"] {
  border-top: 2px solid var(--green);
}

.dash-card[data-card="work-type"] {
  border-top: 2px solid #fb923c;
}

.dash-card[data-card="job-type"] {
  border-top: 2px solid var(--accent);
}

.dash-card[data-card="seniority"] {
  border-top: 2px solid #a78bfa;
}

/* Colored dot before dash-card-header text when card has an accent */
.dash-card[data-card] .dash-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card[data-card] .dash-card-header::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dash-dot, var(--text-muted));
}

.dash-card[data-card="gaps"] {
  --dash-dot: var(--red);
}

.dash-card[data-card="activity"] {
  --dash-dot: var(--accent);
}

.dash-card[data-card="pipeline"] {
  --dash-dot: #a78bfa;
}

.dash-card[data-card="top-skills"] {
  --dash-dot: var(--green);
}

.dash-card[data-card="funnel"] {
  --dash-dot: var(--accent);
}

.dash-card[data-card="response-rate"] {
  --dash-dot: #a78bfa;
}

.dash-card[data-card="over-time"] {
  --dash-dot: #60a5fa;
}

.dash-card[data-card="top-companies"] {
  --dash-dot: var(--yellow);
}

.dash-card[data-card="skill-gaps"] {
  --dash-dot: var(--red);
}

.dash-card[data-card="fit-dist"] {
  --dash-dot: var(--green);
}

.dash-card[data-card="work-type"] {
  --dash-dot: #fb923c;
}

.dash-card[data-card="job-type"] {
  --dash-dot: var(--accent);
}

.dash-card[data-card="seniority"] {
  --dash-dot: #a78bfa;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
}

.dash-card-body {
  padding: 14px 18px;
}

.empty-msg {
  color: var(--text-muted);
  font-size: 13px;
}

/* pipeline bars */
.pipeline-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pipeline-bar-row-click {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 3px 4px;
  margin-left: -4px;
  transition: background .15s;
}

.pipeline-bar-row-click:hover {
  background: var(--hover);
}

.pipeline-bar-row-click:hover .pipeline-bar-label {
  color: var(--text);
}

.pipeline-bar-label {
  width: 80px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.pipeline-bar-track {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.pipeline-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  transition: width .4s;
}

.pipeline-bar-count {
  font-size: 12px;
  color: var(--text-muted);
  width: 24px;
}

/* gap / skill tags in dash */
.gap-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 77, 109, .12);
  border: 1px solid rgba(255, 77, 109, .3);
  color: var(--red);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  margin: 3px 3px 3px 0;
  /* 3D raised pill */
  box-shadow: 0 3px 0 rgba(190, 30, 55, 0.45), 0 5px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s, background .15s;
}

.gap-tag .gap-count {
  background: var(--red);
  color: #fff;
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 10px;
}

.dash-gap-tag {
  cursor: pointer;
}

.dash-gap-tag:hover {
  background: rgba(255, 77, 109, .22);
  border-color: rgba(255, 77, 109, .55);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(190, 30, 55, 0.45), 0 9px 16px rgba(0, 0, 0, 0.25);
}

.dash-gap-tag:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(190, 30, 55, 0.45), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ── Your Skills grid ──────────────────────────────────── */
#dash-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}

.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.skill-card:active {
  transform: translateY(0);
}

/* Level accent borders */
.skill-card--expert {
  border-left-color: var(--green);
}

.skill-card--intermediate {
  border-left-color: var(--accent);
}

.skill-card--beginner {
  border-left-color: var(--text-muted);
}

/* Matched state — glowing card */
.skill-card--matched {
  background: rgba(0, 212, 170, 0.04);
  border-color: rgba(0, 212, 170, 0.25);
  border-left-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.1) inset;
}

.skill-card--matched.skill-card--expert {
  border-left-color: var(--green);
  box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.1) inset;
}

.skill-card--matched:hover {
  box-shadow: 0 6px 18px rgba(0, 212, 170, 0.18), 0 0 0 1px rgba(0, 212, 170, 0.15) inset;
}

.skill-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

/* Level strength dots */
.skill-card-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.skill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.skill-card--expert .skill-dot.filled {
  background: var(--green);
}

.skill-card--intermediate .skill-dot.filled {
  background: var(--accent);
}

.skill-card--beginner .skill-dot.filled {
  background: var(--text-muted);
}

/* Matched: override dot color to green */
.skill-card--matched .skill-dot.filled {
  background: var(--accent);
}

.skill-card--matched.skill-card--expert .skill-dot.filled {
  background: var(--green);
}

/* Level label (unmatched) */
.skill-card-level {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Match badge (matched) */
.skill-card-match {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 212, 170, 0.14);
  border-radius: 99px;
  padding: 1px 6px;
  white-space: nowrap;
}

.skill-card--expert .skill-card-match {
  color: var(--green);
  background: rgba(63, 185, 80, 0.14);
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background .15s, padding .15s;
  border-radius: var(--radius-sm);
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-item:hover {
  background: var(--hover);
  border-radius: var(--radius-sm);
  padding-left: 6px;
  padding-right: 6px;
  transition: background .15s;
}

.recent-role {
  font-weight: 500;
}

.recent-company {
  color: var(--text-muted);
  font-size: 12px;
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
  margin-left: 10px;
}

.recent-stage-badge {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.recent-date {
  color: var(--text-muted);
  font-size: 11px;
}

/* ── NEW DASHBOARD CARDS — border/dot colors ────────────── */
.dash-card[data-card="funnel"] {
  border-top: 2px solid var(--accent);
  --dash-dot: var(--accent);
}

.dash-card[data-card="velocity"] {
  border-top: 2px solid #60a5fa;
  --dash-dot: #60a5fa;
}

.dash-card[data-card="deadlines"] {
  border-top: 2px solid var(--yellow);
  --dash-dot: var(--yellow);
}

.dash-card[data-card="time-in-stage"] {
  border-top: 2px solid #a78bfa;
  --dash-dot: #a78bfa;
}

/* Funnel conversion rate label */
.dash-funnel-conv {
  font-size: 10px;
  color: var(--text-muted);
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* Colored pipeline fills reused by funnel */
.pipeline-bar-fill.fill-purple {
  background: #a78bfa;
}

.pipeline-bar-fill.fill-yellow {
  background: var(--yellow);
}

.pipeline-bar-fill.fill-green {
  background: var(--green);
}

/* Weekly velocity chart */
.dash-vel-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding-bottom: 0;
}

.dash-vel-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.dash-vel-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  min-height: 14px;
  line-height: 1;
}

.dash-vel-bar-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

.dash-vel-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: 0.75;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 2px;
}

.dash-vel-label {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* Upcoming deadlines */
.dash-deadline-overdue {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  padding: 6px 8px;
  background: rgba(255, 77, 109, .1);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.dash-deadline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  border-radius: var(--radius-sm);
}

.dash-deadline-item:last-child {
  border-bottom: none;
}

.dash-deadline-item:hover {
  background: var(--card);
  padding-left: 6px;
  padding-right: 6px;
  margin: 0 -6px;
}

.dash-dl-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.dash-dl-company {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.dash-dl-days {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-deadline-item.dash-dl-soon .dash-dl-days {
  color: var(--yellow);
}

.dash-deadline-item.dash-dl-today .dash-dl-days {
  color: var(--red);
}

/* Time in stage note */
.dash-time-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Pipeline health warning in vibe row */
.dash-health-warn {
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  background: rgba(210, 153, 34, .12);
  border: 1px solid rgba(210, 153, 34, .25);
  border-radius: 99px;
  padding: 3px 10px;
}

.dash-health-warn--clickable {
  cursor: pointer;
  transition: background .15s, border-color .15s;
  animation: pill-pulse-once 1.6s ease 2s 1 forwards;
}

.dash-health-warn--clickable::after {
  content: ' ›';
  font-size: 13px;
  opacity: 0.7;
}

.dash-health-warn--clickable:hover {
  background: rgba(210, 153, 34, .22);
  border-color: rgba(210, 153, 34, .5);
}