/* ─── TODAY Tab ─────────────────────────────────────────────────────────────── */
/* Snapshot bar, interviews strip, and priority feed.                             */

/* ── Snapshot bar ────────────────────────────────────────────────────────────── */
.snapshot-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.snapshot-cell {
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--rad);
  padding: 18px 20px;
  transition: box-shadow .15s;
}

/* Fix 2: urgent tint when tile is actionable */
.snapshot-cell.urgent {
  background: var(--red-bg);
  border-color: #fca5a5;
  cursor: pointer;
}

.snapshot-cell.urgent:hover {
  box-shadow: 0 2px 8px rgba(239,68,68,.12);
}

/* Fix 5: pointer on clickable tile */
.snapshot-cell[data-scroll-to] {
  cursor: pointer;
}

.snapshot-value {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.snapshot-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ── Interviews Today strip ──────────────────────────────────────────────────── */
/* Hidden when empty — no empty state needed (skip it silently) */
#today-interviews:empty { display: none; }

.interviews-strip {
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--rad);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.interviews-strip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.interviews-strip-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  flex: 1;
}

.interviews-strip-date {
  font-size: 10px;
  color: var(--dim);
}

.interview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bdr2);
  font-size: 13px;
}

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

.interview-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--acc);
  width: 58px;
  flex-shrink: 0;
}

.interview-body {
  flex: 1;
  min-width: 0;
}

.interview-candidate {
  font-weight: 600;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.interview-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.interview-name-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bdr2);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Priority Feed ───────────────────────────────────────────────────────────── */
.feed-zone {
  margin-bottom: 28px;
}

.feed-zone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Fix 1: zone header hierarchy — needs_attention is prominent, others recede */
.feed-zone-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

#feed-zone-needs_attention .feed-zone-label {
  font-size: 12px;
  color: var(--txt);
  letter-spacing: .04em;
}

#feed-zone-needs_attention .feed-zone-count {
  background: var(--red-bg);
  color: #dc2626;
  border: 1px solid #fca5a5;
}

/* Fix 4: background load indicator */
.feed-loading-more {
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  padding: 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.feed-loading-more::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--bdr);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: feed-spin .6s linear infinite;
  flex-shrink: 0;
}

@keyframes feed-spin {
  to { transform: rotate(360deg); }
}

.feed-zone-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--bdr2);
  color: var(--muted);
  border-radius: 20px;
  padding: 1px 7px;
}

.feed-zone-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Signal card */
.signal-card {
  background: var(--surface);
  border: 1px solid var(--bdr);
  border-radius: var(--rad);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}

.signal-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(99,102,241,.08);
}

.signal-card.escalated {
  border-left: 3px solid var(--red);
}

.signal-card-body {
  flex: 1;
  padding: 13px 16px;
  min-width: 0;
}

.signal-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

/* .signal-type-label moved to components.css — shared with PIPELINE */

.signal-escalated-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.signal-headline {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 3px;
  line-height: 1.4;
}

.signal-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* Fix 3: CTA column min-width prevents collapse on wide viewports */
.signal-card-cta {
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  min-width: 148px;
  border-left: 1px solid var(--bdr);
}

.signal-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid var(--bdr);
  border-radius: var(--rad-sm);
  transition: border-color .12s, color .12s;
}

.signal-cta-link:hover {
  border-color: var(--acc);
  color: var(--acc);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .snapshot-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .signal-card {
    flex-direction: column;
  }

  .signal-card-cta {
    border-left: none;
    border-top: 1px solid var(--bdr);
    padding: 10px 14px;
  }
}

/* ── Priority Feed — Pagination ──────────────────────────────────────────────── */
.feed-zone-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
  margin-top: 4px;
  border-top: 1px solid var(--bdr);
}

.feed-pagination-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--acc);
  background: none;
  border: 1px solid var(--bdr);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s;
}

.feed-pagination-btn:hover:not(:disabled) {
  background: var(--acc-bg);
  border-color: var(--acc);
}

.feed-pagination-btn:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.45;
}

.feed-pagination-label {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
