body {
  background: #f8fafc;
}

.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
  padding: 16px 18px 16px 0;
  background: #f5f7fb;
}

.dasher-sidebar {
  background: #fff;
  border-right: 1px solid rgba(17, 36, 29, 0.08);
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 0 24px 24px 0;
  box-shadow: 0 18px 45px rgba(17, 36, 29, 0.05);
}

.sidebar-section {
  padding-left: 18px;
  padding-right: 18px;
}

.brand-logo {
  padding-top: 22px;
  padding-bottom: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-link img {
  width: 28px;
  height: 28px;
}

.site-logo-text {
  font-size: 1.6rem !important;
}

.dasher-sidebar .nav-link.active {
  background: #d9fbe8;
  color: #0d7c50;
}

.sidebar-nav {
  gap: 4px;
  padding-bottom: 14px;
}

.dasher-sidebar .nav-link {
  border-radius: 12px;
  margin: 0 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #25313c;
  font-weight: 500;
}

.dasher-sidebar .nav-icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  flex: 0 0 18px;
}

.dasher-sidebar .nav-link .text {
  line-height: 1.2;
}

.sidebar-divider {
  padding-top: 12px;
  padding-bottom: 6px;
}

.nav-heading {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a3;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 18px;
}

.dasher-content {
  background: #fbfbfd;
  min-width: 0;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(17, 36, 29, 0.04);
  overflow: hidden;
}

.dasher-content .custom-container {
  padding-left: 22px !important;
  padding-right: 22px !important;
}

.topbar-lite {
  border-bottom: 1px solid rgba(17, 36, 29, 0.08);
  padding: 6px 4px 18px;
  margin-bottom: 24px !important;
}

.dashboard-banner {
  min-height: 100%;
}

.last-fetch-card {
  border: 1px solid rgba(13, 124, 80, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(227,252,239,0.9));
}

.stat-soft {
  border: 1px solid rgba(17, 36, 29, 0.05);
}

.stat-green {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(217,251,232,0.85));
}

.stat-blue {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(220,243,255,0.88));
}

.stat-orange {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,235,224,0.9));
}

.stat-yellow {
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,244,216,0.9));
}

.lead-table thead th {
  font-size: 0.82rem;
  color: #6c7786;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1rem 1.25rem;
}

.lead-table tbody td {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(17, 36, 29, 0.06);
  vertical-align: top;
}

.empty-state-cell {
  padding: 0 !important;
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

.lead-reply-row td {
  padding-top: 0 !important;
}

.reply-box {
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 14px;
}

.run-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 36, 29, 0.08);
}

.run-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ai-card {
  background: linear-gradient(135deg, #0aa58b, #007f87);
}

.ai-illustration {
  width: 88px;
  height: auto;
}

.quick-stack {
  display: grid;
  gap: 12px;
}

.quick-pill {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
}

.notes-grid {
  display: grid;
  gap: 14px;
}

.note-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(17, 36, 29, 0.06);
}

.note-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c7786;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-meta-span {
  grid-column: 1 / -1;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5f7fb, #eef4fb);
  padding: 24px;
}

.auth-card-wrap {
  width: min(100%, 520px);
}

.auth-card {
  box-shadow: 0 18px 50px rgba(17, 36, 29, 0.08);
}

.status-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 16px 18px;
  text-align: center;
  border: 1px solid rgba(17, 36, 29, 0.05);
}

.feed-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feed-preview-card {
  border: 1px solid rgba(17, 36, 29, 0.08);
  border-radius: 16px;
  padding: 14px;
  background: #fbfcfe;
}

.feed-review-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.feed-preview-top,
.feed-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.feed-preview-top {
  margin-bottom: 10px;
}

.feed-preview-meta {
  margin-top: 10px;
  flex-wrap: wrap;
}

.status-copy {
  margin: 14px 0 10px;
}

.status-note {
  margin-bottom: 14px;
}

.error {
  color: #8f1d14;
}

.success {
  color: #1f6b44;
}

.error-detail {
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 16px;
  background: rgba(20, 40, 29, 0.05);
  border: 1px solid rgba(17, 36, 29, 0.1);
}

@media (max-width: 992px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .dasher-sidebar {
    position: static;
    height: auto;
    border-radius: 24px;
  }

  .dasher-content .custom-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .sidebar-footer {
    margin-top: 0;
  }

  .profile-meta-grid {
    grid-template-columns: 1fr;
  }

  .feed-preview-grid {
    grid-template-columns: 1fr;
  }
}
