body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

.report-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.report-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
  border-color: #d4d4d8;
}

.tab {
  transition: all .15s ease;
}

.tab.active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.prose-lite {
  color: #3f3f46;
  font-size: .875rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.006em;
}

.prose-lite p { margin-bottom: .5rem; }
.prose-lite p:last-child { margin-bottom: 0; }
.prose-lite ul, .prose-lite ol { padding-left: 1.25rem; margin: .35rem 0; }
.prose-lite li { margin: .25rem 0; }
.prose-lite strong { color: #18181b; font-weight: 600; }
.prose-lite a { color: #2563eb; text-decoration: underline; }
.prose-lite a:hover { color: #1d4ed8; }

.prose-lite code {
  background: #f4f4f5;
  border-radius: .35rem;
  padding: .05rem .35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
}

.source-chip {
  transition: all .15s ease;
  text-decoration: none !important;
}
.source-chip:hover {
  transform: translateY(-1px);
}

.contact-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
}

.workflow-step {
  position: relative;
  padding-left: 2.5rem;
}
.workflow-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  border: 1.5px solid #bfdbfe;
}
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.8125rem;
  top: 1.75rem;
  bottom: -0.5rem;
  width: 1.5px;
  background: #e4e4e7;
}

/* ── Sliding sidebar ─────────────────────────────────────────────── */

.sidebar-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 380px;
  z-index: 40;
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.sidebar-panel.collapsed {
  transform: translateX(-100%);
}

.sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e4e4e7;
  box-shadow: 4px 0 24px rgba(0,0,0,.04);
}

.sidebar-open-btn {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 39;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 56px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-left: none;
  border-radius: 0 10px 10px 0;
  color: #a1a1aa;
  cursor: pointer;
  box-shadow: 2px 0 8px rgba(0,0,0,.04);
  transition: all .2s ease;
  opacity: 0;
  pointer-events: none;
}

.sidebar-open-btn:hover {
  color: #3f3f46;
  background: #f4f4f5;
  width: 32px;
}

.sidebar-panel.collapsed ~ .sidebar-open-btn {
  opacity: 1;
  pointer-events: auto;
}

.main-content {
  margin-left: 396px;
  transition: margin-left .28s cubic-bezier(.4,0,.2,1);
}

.sidebar-panel.collapsed ~ .main-content {
  margin-left: 0;
}

@media (max-width: 1279px) {
  .sidebar-panel {
    width: 340px;
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar-panel:not(.collapsed) ~ .main-content {
    margin-left: 0;
  }
  .sidebar-open-btn {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-panel:not(.collapsed) ~ .sidebar-open-btn {
    opacity: 0;
    pointer-events: none;
  }
}

/* backdrop overlay on mobile */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: '›';
  display: inline-block;
  width: 1rem;
  font-weight: 700;
  color: #a1a1aa;
  transition: transform .15s ease;
  flex-shrink: 0;
}
details[open] > summary::before {
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn .25s ease both;
}
