/* ── Brievy design tokens (calm tone · cozy density) ──────────────────────────
   Single source of truth ported from brand-tokens.jsx applyTokens().
   See design_handoff_brievy/README.md → "Design tokens".                       */
:root {
  /* Brand accent ramp */
  --accent: #7F77DD;
  --accent-dark: #534AB7;
  --accent-light: #AFA9EC;
  --accent-tint: #EEEDFE;

  /* Semantic */
  --teal: #1D9E75;
  --teal-dark: #0F6F50;
  --teal-tint: #E3F5EC;
  --warn: #E5A53A;
  --warn-text: #A87616;
  --warn-tint: #FBF3DF;
  --danger: #E04A4A;
  --danger-tint: #FCEAEA;
  --danger-text: #A02424;

  /* Calm surfaces (default ship tone) */
  --bg: #F6F7F8;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --card-alt: #F1F2F4;
  --border: #E5E7EB;
  --border-soft: #EEF0F2;
  --ink: #1C1D1F;
  --ink-soft: #4B4E54;
  --muted: #8A8D93;

  /* Warm/ink legacy surfaces (menu-bar app, dark contexts) */
  --ink-dark: #2C2C2A;
  --cream: #F1EFE8;

  /* Sidebar surface (calm) */
  --sidebar-bg: #FAFBFC;

  /* Density — cozy */
  --row-pad: 14px;
  --card-pad: 20px;
  --gap: 16px;
  --list-gap: 10px;
  --radius: 10px;
  --card-radius: 14px; /* radius + 4 */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Shadows */
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card-lift: 0 8px 24px -10px rgba(0,0,0,0.1), 0 30px 80px -20px rgba(0,0,0,0.18);
  --shadow-primary-btn: 0 1px 0 rgba(255,255,255,0.18) inset, 0 4px 12px rgba(127,119,221,0.30);
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11";
}
a { color: inherit; text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
}
.sidebar-logo { padding: 22px 18px 16px; }

.sidebar-nav {
  padding: 4px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.nav-item .nav-icon { color: var(--muted); flex: 0 0 auto; transition: color .12s; }
.nav-item:hover { background: var(--card-alt); }
.nav-item.active {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 500;
}
.nav-item.active .nav-icon { color: var(--accent); }
.nav-label { flex: 1; }
.nav-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--card-alt);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}
.nav-item.active .nav-badge { background: var(--accent); color: #fff; }
.nav-badge-danger { background: var(--danger); color: #fff; }
.nav-item.active .nav-badge-danger { background: var(--danger); color: #fff; }

.main { flex: 1; padding: 32px 36px; overflow-y: auto; max-width: 1100px; }

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-size: 28px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.6px; line-height: 1.15;
}
.page-header p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.page-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* Eyebrow / mono meta label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 400; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.accent-dash { color: var(--accent); }

/* ── Stats grid ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
}
.stat-value { font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.6px; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted); margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.stat-card.warn .stat-value { color: var(--warn-text); }
.stat-card.danger .stat-value { color: var(--danger); }

.history-backfill-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  border-color: rgba(127,119,221,.28);
  background: linear-gradient(135deg, rgba(127,119,221,.08), rgba(255,255,255,0) 55%), var(--card);
}
.history-backfill-card.is-running { border-color: rgba(127,119,221,.55); }
.history-backfill-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 20px;
}
.history-backfill-copy { min-width: 0; }
.history-backfill-status {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}
.history-backfill-status.is-done { color: var(--teal-dark); }
.history-backfill-status.is-error { color: var(--danger-text); }
.history-backfill-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.history-backfill-progress {
  display: grid;
  grid-template-columns: minmax(120px, 260px) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}
.history-backfill-progress[hidden] { display: none; }
.history-backfill-progress progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--accent);
}
.history-backfill-button { white-space: nowrap; }

@media (max-width: 760px) {
  .history-backfill-card { grid-template-columns: auto minmax(0, 1fr); }
  .history-backfill-button { grid-column: 1 / -1; width: 100%; }
  .history-backfill-progress { grid-template-columns: 1fr; }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  margin-bottom: var(--gap);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.2px; }
.card-subtitle { color: var(--muted); font-size: 12px; margin-top: 3px; }
.profile-intel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-bottom: 8px;
}
.profile-intel-card { min-width: 0; }
.summary-card-header { gap: 12px; flex-wrap: wrap; }
.summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.summary-collapse-icon { transition: transform .12s; }
.summary-collapse-btn,
#summary-collapse-btn,
.performance-cycle-toggle { min-width: 102px; justify-content: center; }
#summary-collapse-btn.is-collapsed .summary-collapse-icon,
.performance-cycle-toggle.is-collapsed .summary-collapse-icon { transform: rotate(-90deg); }
.performance-reviews-header {
  align-items: flex-start;
  gap: 16px;
}
.performance-mini-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}
.performance-mini-card {
  display: flex;
  flex: 0 0 150px;
  min-height: 76px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-alt);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.performance-mini-card:hover {
  border-color: rgba(127,119,221,.42);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.performance-mini-card.is-latest {
  background: var(--accent-tint);
  border-color: rgba(127,119,221,.30);
}
.performance-mini-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.performance-mini-card.is-latest .performance-mini-title { color: var(--accent-dark); }
.performance-mini-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.performance-reviews-empty {
  display: block;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  transition: border-color .12s, color .12s, background .12s;
}
.performance-reviews-empty:hover {
  border-color: var(--accent-light);
  color: var(--accent-dark);
  background: var(--accent-tint);
}
.reviews-back { margin-bottom: 24px; }
.reviews-page-header {
  align-items: flex-end;
  margin-bottom: 28px;
}
.performance-reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.performance-cycle-card {
  margin-bottom: 0;
  scroll-margin-top: 20px;
}
.performance-cycle-card.is-latest { border-color: rgba(127,119,221,.28); }
.performance-cycle-header {
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0;
}
.performance-cycle-title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 1.3;
}
.performance-cycle-meta { margin-top: 5px; }
.performance-cycle-card [data-review-content] {
  border-top: 1px solid var(--border-soft);
  margin-top: 16px;
  padding-top: 16px;
}
.performance-cycle-status {
  margin: 0 0 10px;
}
.performance-review-placeholder {
  color: var(--muted);
  font-size: 14px;
}
.performance-reviews-empty-state {
  margin-top: var(--gap);
  margin-bottom: 0;
}
.performance-review-body {
  max-height: min(72vh, 760px);
  overflow-y: auto;
  padding-right: 12px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.performance-review-body h2:first-child { margin-top: 0; }
.performance-review-body > *:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
  .profile-intel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page-header-row,
  .reviews-page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .performance-cycle-header {
    align-items: stretch;
    flex-direction: column;
  }
  .performance-cycle-header .summary-actions { justify-content: flex-start; }
  .performance-reviews-header { align-items: stretch; }
}

/* ── Meeting list rows ────────────────────────────────────────────────────── */
.meeting-list { display: flex; flex-direction: column; }
.meeting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--row-pad) 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background .12s;
}
.meeting-row:last-child { border-bottom: none; }
.meeting-row:hover { background: var(--card-alt); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.meeting-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.meeting-date {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  min-width: 92px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.meeting-person { font-size: 13px; flex: 1; }
.meeting-duration {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── People grid ──────────────────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.person-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: block;
  transition: box-shadow .15s, border-color .15s;
}
.person-card:hover { box-shadow: var(--shadow-card-hover); border-color: rgba(127,119,221,.30); }
.person-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.person-name { font-size: 16px; font-weight: 500; margin-bottom: 4px; color: var(--ink); letter-spacing: -0.2px; }
.person-meta { font-size: 12px; color: var(--muted); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
/* Brievy chip variants (old indigo/green/amber names kept as aliases) */
.badge-indigo, .badge-accent  { background: var(--accent-tint); color: var(--accent-dark); }
.badge-green,  .badge-success { background: var(--teal-tint);   color: var(--teal-dark); }
.badge-amber,  .badge-warn    { background: var(--warn-tint);   color: var(--warn-text); }
.badge-gray,   .badge-muted   { background: var(--card-alt);    color: var(--ink-soft); }
.badge-red,    .badge-danger  { background: var(--danger-tint); color: var(--danger-text); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-primary-btn); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.btn-ghost:hover { background: var(--card-alt); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; box-shadow: 0 2px 6px rgba(224,74,74,0.35); }
.btn-danger:hover { background: #c93d3d; }
.btn-success { background: var(--teal-tint); color: var(--teal-dark); }
.btn-success:hover { background: #d2efe1; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-row { display: flex; gap: 8px; }
.input {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  background: var(--card);
  color: var(--ink);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(127,119,221,.12); }
.input::placeholder { color: var(--muted); }
.input:disabled { background: var(--card-alt); opacity: .7; }
.input-full { width: 100%; }
select.input { appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A8D93' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ── Section divider ──────────────────────────────────────────────────────── */
.section { margin-bottom: 28px; }
.section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Meeting detail: analysis ─────────────────────────────────────────────── */
.analysis-body { font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.analysis-body h1 { font-size: 18px; font-weight: 500; margin: 16px 0 8px; color: var(--ink); letter-spacing: -0.3px; }
.analysis-body h2 { font-size: 15px; font-weight: 500; margin: 20px 0 8px; color: var(--ink); }
.analysis-body h3 { font-size: 14px; font-weight: 500; margin: 14px 0 6px; color: var(--ink); }
.analysis-body p { margin-bottom: 10px; }
.analysis-body ul, .analysis-body ol { padding-left: 20px; margin-bottom: 10px; }
.analysis-body li { margin-bottom: 4px; }
.analysis-body strong { font-weight: 500; color: var(--ink); }
.analysis-body a { color: var(--accent-dark); }
.analysis-body hr { border: none; border-top: 1px solid var(--border-soft); margin: 16px 0; }
.analysis-body table { border-collapse: collapse; width: 100%; font-size: 13px; margin-bottom: 12px; }
.analysis-body th { background: var(--card-alt); font-weight: 500; padding: 8px 12px; text-align: left; border: 1px solid var(--border); }
.analysis-body td { padding: 8px 12px; border: 1px solid var(--border); vertical-align: top; }
.analysis-body tr:nth-child(even) td { background: var(--bg); }
.analysis-body blockquote { border-left: 3px solid var(--border); padding-left: 14px; color: var(--muted); margin: 10px 0; }

/* ── Transcript ───────────────────────────────────────────────────────────── */
.transcript-box {
  background: var(--card-alt);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-height: 520px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.transcript-box p { margin-bottom: 6px; }
.tr-local { color: var(--accent-dark); }
.tr-local::first-line { font-weight: 500; }
.tr-remote { color: var(--ink-soft); }

/* ── Action items ─────────────────────────────────────────────────────────── */
.action-list { display: flex; flex-direction: column; }
.action-board { padding-top: 14px; }
.action-review-panel {
  margin-bottom: 20px;
  border-color: var(--warn);
}
.action-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.action-item:last-child { border-bottom: none; }
.action-item-wide {
  padding: 14px 0;
  gap: 14px;
}
.action-item.proposed {
  background: var(--warn-tint);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.action-item.done .action-text { text-decoration: line-through; opacity: .5; }
.action-content {
  flex: 1;
  min-width: 0;
}
.action-mainline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.action-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.action-text-loading { color: var(--muted); font-style: italic; }
.action-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.action-open {
  flex: 0 0 auto;
  white-space: nowrap;
}
.action-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  width: 18px; height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
}
.action-toggle:hover { border-color: var(--teal); }
.action-item.done .action-toggle { background: var(--teal); border-color: var(--teal); color: #fff; }
.action-proposed-marker {
  background: var(--warn-tint);
  border: 1.5px solid var(--warn);
  border-radius: 5px;
  color: var(--warn-text);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
}
.action-review-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.action-review-btn {
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  transition: background .12s, border-color .12s, color .12s;
}
.action-review-accept {
  color: var(--teal-dark);
  border-color: var(--teal);
}
.action-review-accept:hover {
  background: var(--teal-tint);
  border-color: var(--teal);
}
.action-review-discard {
  color: var(--danger-text);
  border-color: var(--danger);
  font-size: 16px;
}
.action-review-discard:hover {
  background: var(--danger-tint);
  border-color: var(--danger);
}

/* ── Person group header (action items page) ──────────────────────────────── */
.group-header {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 20px 0 6px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.group-header:first-child { padding-top: 0; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 13px;
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all .12s;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Assign form (meeting detail) ─────────────────────────────────────────── */
.assign-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.assign-form-compact { justify-content: flex-end; max-width: 420px; }
.assign-form-compact .input { min-height: 34px; }
.assign-form-compact select.input { width: 150px; }
.assign-form-compact .assign-new-row { width: 110px; margin-top: 0; }
.assign-new-row { display: none; margin-top: 8px; }

/* ── Sidebar search ───────────────────────────────────────────────────────── */
.sidebar-search {
  margin: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 7px 10px;
  transition: border-color .15s, box-shadow .15s;
}
.sidebar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127,119,221,.12);
}
.sidebar-search-glyph { color: var(--muted); flex: 0 0 auto; }
.sidebar-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 0;
  outline: none;
}
.sidebar-search-input::placeholder { color: var(--muted); }
.sidebar-search .kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  flex: 0 0 auto;
}

/* ── Delete icon button ───────────────────────────────────────────────────── */
.btn-icon-delete {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .12s, background .12s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.btn-icon-delete { color: var(--muted); }
.btn-icon-delete:hover { color: var(--danger); background: var(--danger-tint); }

/* ── Add item form ────────────────────────────────────────────────────────── */
.add-item-form { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 4px; }

/* ── Responsive tweaks ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .action-mainline { flex-direction: column; gap: 8px; }
  .action-open { align-self: flex-start; }
  .main { padding: 20px; }
}

/* ── Public landing page ─────────────────────────────────────────────────── */
.landing-body {
  background: #f7faf8;
  color: #12302a;
}
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(247,250,248,.92);
  border-bottom: 1px solid rgba(18,48,42,.09);
  backdrop-filter: blur(14px);
}
.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #12302a;
}
.landing-brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #dff7eb;
  border: 1px solid #bdebd2;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: #45655d;
}
.landing-nav-links a:hover { color: #12302a; }
.landing-nav-cta {
  padding: 9px 14px;
  border-radius: 8px;
  background: #12302a;
  color: #fff !important;
}
.landing-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(20px, 6vw, 72px) 64px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.landing-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,24,21,.90), rgba(8,24,21,.60) 46%, rgba(8,24,21,.18));
}
.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}
.landing-eyebrow,
.landing-section-kicker {
  color: #2b8a66;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.landing-hero .landing-eyebrow { color: #98f0c4; }
.landing-hero h1 {
  max-width: 730px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .96;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.landing-hero-copy {
  max-width: 650px;
  font-size: clamp(18px, 2vw, 22px);
  color: #e3f6ee;
  margin-bottom: 28px;
}
.landing-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.landing-primary-button,
.landing-secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.landing-primary-button {
  background: #34d399;
  color: #06251f;
}
.landing-primary-button:hover { background: #6ee7b7; }
.landing-secondary-button {
  color: #fff;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
}
.landing-secondary-button:hover { background: rgba(255,255,255,.16); }
.landing-proof-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.landing-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #e8fff5;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.18);
}
.landing-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}
.landing-section h2 {
  max-width: 820px;
  color: #12302a;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 28px;
}
.landing-section p {
  color: #4d6b63;
  font-size: 16px;
}
.landing-problem-grid,
.landing-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-card {
  background: #fff;
  border: 1px solid #dfece6;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(18,48,42,.07);
}
.landing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: #eef8f2;
  color: #2b8a66;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 34px;
}
.landing-card h3,
.landing-step h3 {
  font-size: 18px;
  color: #12302a;
  margin-bottom: 8px;
}
.landing-steps {
  border-top: 1px solid #dfece6;
  border-bottom: 1px solid #dfece6;
}
.landing-step-list {
  display: grid;
  gap: 14px;
}
.landing-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #dfece6;
  border-radius: 8px;
  padding: 22px;
}
.landing-step > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #12302a;
  color: #fff;
  font-weight: 800;
}
.landing-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
}
.landing-results h2 { margin-bottom: 18px; }
.landing-metrics {
  display: grid;
  gap: 12px;
}
.landing-metrics div {
  background: #fff;
  border: 1px solid #dfece6;
  border-radius: 8px;
  padding: 22px;
}
.landing-metrics strong {
  display: block;
  color: #0f766e;
  font-size: 42px;
  line-height: 1;
}
.landing-metrics span {
  display: block;
  color: #4d6b63;
  margin-top: 8px;
}
.landing-lead {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
  padding-top: 96px;
}
.landing-checks {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.landing-checks li {
  color: #284a42;
  padding-left: 28px;
  position: relative;
}
.landing-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0f766e;
  font-weight: 800;
}
.landing-form {
  background: #fff;
  border: 1px solid #dfece6;
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(18,48,42,.10);
  display: grid;
  gap: 14px;
}
.landing-form label {
  display: grid;
  gap: 7px;
  color: #284a42;
  font-size: 13px;
  font-weight: 700;
}
.landing-form textarea {
  resize: vertical;
  min-height: 106px;
}
.landing-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.landing-submit {
  width: 100%;
  border: none;
  margin-top: 4px;
}
.landing-form-note {
  text-align: center;
  font-size: 12px !important;
  color: #78928b !important;
}
.landing-success {
  padding: 12px 14px;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
}
.landing-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid #dfece6;
  display: flex;
  justify-content: space-between;
  color: #5f7b73;
  font-size: 14px;
}
.landing-footer a { color: #12302a; font-weight: 700; }

@media (max-width: 860px) {
  .landing-nav-links a:not(.landing-nav-cta) { display: none; }
  .landing-hero {
    min-height: 88vh;
    padding: 112px 20px 44px;
    background-position: 62% center;
  }
  .landing-hero-scrim {
    background: rgba(8,24,21,.76);
  }
  .landing-proof-strip span { width: 100%; }
  .landing-problem-grid,
  .landing-audience-grid,
  .landing-results,
  .landing-lead {
    grid-template-columns: 1fr;
  }
  .landing-section { padding: 64px 0; }
  .landing-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sidebar { width: 64px; }
  .sidebar-logo > span > span:last-child,
  .sidebar-search,
  .nav-label,
  .nav-badge { display: none; }
  .sidebar-logo > span > span:last-child { display: none !important; }
  .sidebar-nav { padding: 4px 8px; }
  .nav-item { justify-content: center; padding: 9px 0; }
}

/* ── Sidebar footer (usuário + logout) ───────────────────────── */
.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-email {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-logout {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .sidebar-user, .sidebar-logout { display: none; }
}

/* ── Correção de identidade de assuntos ─────────────────────────────────── */
.lead-merge {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-merge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lead-merge-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  padding: 9px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card-alt);
  cursor: pointer;
  font: inherit;
  color: inherit;
  max-width: 320px;
}
.lead-merge-item:hover {
  border-color: var(--border-strong, var(--border-soft));
}
/* O par selecionado precisa ser óbvio: a afirmação que está prestes a ser
   gravada é sobre ele, e vale para sempre. */
.lead-merge-item[aria-pressed="true"] {
  border-color: var(--accent, #7F77DD);
  box-shadow: inset 0 0 0 1px var(--accent, #7F77DD);
}
.lead-merge-title {
  font-size: 13px;
  line-height: 1.35;
}
.lead-merge-meta {
  font-size: 11px;
  opacity: 0.6;
}
/* A classe existia no markup sem regra nenhuma, então a nota de rodapé saía do
   tamanho do corpo e competia com o próprio cartão. */
.lead-footnote {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* Par sugerido: os dois assuntos lado a lado e a decisão na mesma linha. É o
   contrário do seletor abaixo — lá o gestor monta o par, aqui ele só julga. */
.lead-pair-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card-alt);
}
.lead-pair-sides {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 320px;
  min-width: 0;
}
.lead-pair-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lead-pair-title {
  font-size: 13px;
  line-height: 1.35;
}
.lead-pair-join {
  opacity: 0.45;
  flex: none;
}
.lead-pair-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.lead-pair.is-resolved {
  justify-content: flex-start;
  gap: 10px;
}
.lead-pair-said {
  font-size: 12px;
  color: var(--muted);
}
/* O seletor manual é a saída para o par que a sugestão não propôs, não a porta
   de entrada: fechado por padrão, para não convidar ao trabalho de garimpo. */
.lead-merge-manual > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.lead-merge-manual[open] > summary {
  margin-bottom: 10px;
}
.lead-merge-actions {
  display: flex;
  gap: 8px;
}

/* Estado do pipeline na página da reunião: fala o que está acontecendo com a
   reunião que acabou de ganhar dono, e some quando não há nada acontecendo. */
.pipeline-status {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-subtle, #f6f5f2);
  color: var(--muted);
  font-size: 13px;
}
.pipeline-status-ok { color: var(--success, #3b6d11); }
.pipeline-status-error { color: var(--danger, #dc2626); }

/* Antes do 1:1 — a leitura montada no navegador. O desenho interno vem do
   servidor (processor/briefing_view) com o próprio <style>; aqui fica só o que
   segura a tela enquanto ela não chega. */
.briefing-root { margin-top: 16px; }
.briefing-status { color: var(--muted); font-size: 14px; padding: 24px 0 12px; }
.briefing-status-error { color: var(--danger, #dc2626); }
.briefing-status-locked { color: var(--accent-dark); }

/* Enquanto a leitura não chega, o lugar dela já está desenhado: o esqueleto
   tem a forma do que vai aparecer, para a tela não pular quando trocar. */
.briefing-loading { max-width: 900px; margin: 0 auto; }  /* = .page do briefing_view */
.briefing-skeleton { display: grid; gap: 14px; }
.briefing-skeleton .sk-line,
.briefing-skeleton .sk-card {
  border-radius: 10px;
  background: linear-gradient(
    90deg, var(--card-alt) 25%, var(--border-soft) 37%, var(--card-alt) 63%
  );
  background-size: 400% 100%;
  animation: briefing-shimmer 1.4s ease-in-out infinite;
}
.briefing-skeleton .sk-title { height: 26px; width: 42%; }
.briefing-skeleton .sk-lede { height: 14px; width: 68%; }
.briefing-skeleton .sk-cards { display: grid; gap: 12px; margin-top: 6px; }
.briefing-skeleton .sk-card { height: 84px; border-radius: var(--card-radius); }
.briefing-skeleton .sk-cards .sk-card:nth-child(2) { animation-delay: .12s; }
.briefing-skeleton .sk-cards .sk-card:nth-child(3) { animation-delay: .24s; }

/* Desfecho sem leitura (vazio, trancado, erro): o pulso some e sobra a frase. */
.briefing-loading.is-settled .briefing-skeleton { display: none; }

@keyframes briefing-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .briefing-skeleton .sk-line,
  .briefing-skeleton .sk-card { animation: none; background: var(--card-alt); }
}

/* ── Leadership dashboard ────────────────────────────────────────────────── */
.dashboard-header { align-items: center; }
.dashboard-period {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}
.dashboard-kpis { margin-bottom: var(--gap); }
.dashboard-kpis .stat-card {
  min-width: 0;
  padding: 17px 18px 16px;
}
.dashboard-kpis .stat-label { margin: 0 0 13px; }
.dashboard-kpis .stat-value { font-size: 25px; }
.stat-value-muted {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.stat-meta {
  min-height: 30px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.dashboard-talk-listen .stat-value { color: var(--ink-soft); }

.dashboard-section-header { gap: 16px; }
.dashboard-section-header .card-title { margin: 0; }
.dashboard-activity { overflow: hidden; }
.dashboard-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--card-alt);
}
.dashboard-toggle-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
}
.dashboard-toggle-button:hover { color: var(--ink); }
.dashboard-toggle-button.is-active {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(36,35,48,.10);
  color: var(--accent-dark);
}
.dashboard-toggle-button:focus-visible,
.activity-bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.activity-panel {
  position: relative;
  overflow-x: auto;
  padding: 4px 0 2px 49px;
  scrollbar-width: thin;
}
.activity-panel[hidden] { display: none; }
.activity-scale {
  position: absolute;
  top: 5px;
  bottom: 27px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}
.activity-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(52px, 1fr));
  gap: clamp(7px, 1.4vw, 18px);
  min-width: 590px;
  height: 206px;
  padding: 0 8px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 44px,
    var(--border-soft) 45px,
    transparent 46px
  );
  border-bottom: 1px solid var(--border);
}
.activity-column {
  display: grid;
  grid-template-rows: 180px 26px;
  min-width: 0;
}
.activity-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}
.activity-bar {
  display: block;
  width: min(100%, 50px);
  height: var(--bar-height);
  border-radius: 6px 6px 2px 2px;
  cursor: default;
  transform-origin: bottom;
  transition: filter .14s, transform .14s;
}
.activity-bar.has-value { min-height: 4px; }
.activity-bar:hover,
.activity-bar:focus-visible { filter: saturate(1.12); transform: scaleX(1.04); }
.activity-bar-hours {
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
}
.activity-bar-meetings {
  background: linear-gradient(180deg, var(--teal), #79cdb2);
}
.activity-week-label {
  align-self: end;
  overflow: hidden;
  padding-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-scroll-hint { display: none; }
.activity-tooltip {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--ink);
  box-shadow: 0 4px 14px rgba(30,29,41,.16);
  color: #fff;
  font-size: 10px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .12s, transform .12s;
}
.activity-plot:hover .activity-tooltip,
.activity-plot:focus-within .activity-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-health-grid,
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: var(--gap);
  align-items: start;
}
.dashboard-health-grid > .card,
.dashboard-lower-grid > .card { min-width: 0; }
.coverage-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.coverage-value {
  margin: 26px 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
}
.coverage-value strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.6px;
}
.coverage-progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--card-alt);
  accent-color: var(--accent);
}
.coverage-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--card-alt);
}
.coverage-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.coverage-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.attention-list {
  display: flex;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 3px;
  flex-direction: column;
  scrollbar-width: thin;
}
.attention-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 7px;
  transition: background .12s;
}
.attention-row:last-child { border-bottom: 0; }
.attention-row:hover {
  margin: 0 -8px;
  padding-right: 8px;
  padding-left: 8px;
  background: var(--card-alt);
}
.attention-person {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.attention-person strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attention-person > span { color: var(--muted); font-size: 10px; }
.attention-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}
.attention-badge-never { background: var(--warn-tint); color: var(--warn-text); }
.attention-badge-overdue { background: var(--card-alt); color: var(--ink-soft); }
.attention-arrow { color: var(--muted); font-size: 12px; }

.dashboard-empty {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.dashboard-empty strong { color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.dashboard-empty .btn { margin-top: 7px; }
.dashboard-empty-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: var(--card-alt);
  color: var(--accent-dark);
  font-size: 15px;
}
.dashboard-empty-positive .dashboard-empty-mark {
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.dashboard-empty-compact { min-height: 204px; }

.dashboard-secondary { margin: 8px 0 24px; }
.dashboard-secondary > .eyebrow { margin-bottom: 9px; }
.dashboard-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--card);
}
.dashboard-alert:last-child { margin-bottom: 0; }
.dashboard-alert-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--warn-tint);
  color: var(--warn-text);
}
.dashboard-alert-copy { min-width: 0; }
.dashboard-alert-copy strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.dashboard-alert-copy > span,
.dashboard-alert-copy > p {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.dashboard-alert-accent {
  border-color: rgba(127,119,221,.18);
  background: linear-gradient(90deg, rgba(127,119,221,.045), transparent 45%), var(--card);
}
.dashboard-alert.history-backfill-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 0;
  padding: 10px 12px;
}
.dashboard-alert .history-backfill-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
.dashboard-alert .history-backfill-status { margin-top: 2px; font-size: 10px; }
.dashboard-alert .history-backfill-progress {
  grid-template-columns: minmax(120px, 230px) auto;
  margin-top: 6px;
}
.dashboard-alert-details { margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-alert-details summary { cursor: pointer; color: var(--accent-dark); }
.dashboard-alert-details .history-backfill-note { margin-top: 5px; }
.badge-danger { background: var(--danger-tint); color: var(--danger-text); }
.dashboard-lower-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 1000px) {
  .dashboard-health-grid,
  .dashboard-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dashboard-header { align-items: flex-start; }
  .dashboard-section-header { align-items: flex-start; }
  .dashboard-alert,
  .dashboard-alert.history-backfill-card { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-alert > .btn,
  .dashboard-alert .history-backfill-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .main { min-width: 0; padding: 16px 14px; }
  .dashboard-kpis { grid-template-columns: 1fr; }
  .dashboard-section-header { align-items: stretch; flex-direction: column; }
  .dashboard-toggle { align-self: flex-start; }
  .activity-panel { padding-left: 45px; }
  .activity-chart { min-width: 540px; }
  .activity-scroll-hint {
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
  }
  .dashboard-coverage .coverage-percent { align-self: flex-start; }
  .attention-list { max-height: none; overflow: visible; }
  .attention-row { align-items: flex-start; flex-wrap: wrap; }
  .attention-person { min-width: 120px; }
  .attention-badge { margin-left: 44px; }
  .dashboard-lower-grid .meeting-row { flex-wrap: wrap; gap: 8px; }
  .dashboard-lower-grid .meeting-date { min-width: auto; }
  .dashboard-lower-grid .meeting-person { min-width: calc(100% - 118px); }
  .dashboard-alert-copy > span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-bar,
  .activity-tooltip { transition: none; }
}
