.lead-page, .lead-detail-page {
  background: #fff;
  min-height: 100vh;
  padding: 100px 0 40px;
}

.lead-header {
  width: 100%;
  padding: 0 24px 24px;
}

.lead-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 0 24px;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(11, 43, 90, 0.08);
}

.lead-table th,
.lead-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e8f0ff;
  text-align: left;
  white-space: nowrap;
}

.lead-table thead th {
  background: #f7fbff;
  color: #0b2b5a;
  font-weight: 700;
}

.lead-row {
  cursor: pointer;
  transition: 0.25s ease;
}

.lead-row:hover {
  background: #f5f9ff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.status-new {
  background: #f4c430;
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.18);
}

.status-work {
  background: #22b573;
  box-shadow: 0 0 0 4px rgba(34, 181, 115, 0.18);
}

.status-done {
  background: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.18);
}

.lead-detail-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(11, 43, 90, 0.08);
}

.lead-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.comment-item {
  background: #f7fbff;
  border: 1px solid #e1ebff;
  border-radius: 16px;
  padding: 16px;
}

.comment-date {
  font-size: 13px;
  color: #6e7f98;
  margin-bottom: 8px;
}

.lead-detail-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 100px 0 40px;
}

.lead-detail-card {
  background: #fff;
  border: 1px solid #e7efff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(11, 43, 90, 0.08);
}

.lead-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.lead-subtitle {
  color: #6b7c96;
  margin-top: 8px;
}

.lead-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.lead-info-item {
  background: #f8fbff;
  border: 1px solid #e4edff;
  border-radius: 18px;
  padding: 16px 18px;
}

.lead-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.lead-action-card {
  background: #fff;
  border: 1px solid #e7efff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(11, 43, 90, 0.06);
}

.lead-action-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.lead-select,
.lead-textarea {
  width: 100%;
  border: 1px solid #cfdcff;
  border-radius: 16px;
  background: #fdfefe;
  padding: 14px 16px;
  outline: none;
  font: inherit;
  transition: 0.25s ease;
}

.lead-select:focus,
.lead-textarea:focus {
  border-color: #2d6cff;
  box-shadow: 0 0 0 4px rgba(45, 108, 255, 0.12);
}

.lead-btn {
  margin-top: 14px;
  width: 100%;
}

.lead-comments h2 {
  margin-bottom: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  background: #f8fbff;
  border: 1px solid #e4edff;
  border-radius: 18px;
  padding: 16px;
}

.comment-date {
  font-size: 13px;
  color: #6f7f97;
  margin-bottom: 6px;
}

.empty-comments {
  color: #6f7f97;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.status-new {
  background: #f4c430;
  box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.18);
}

.status-work {
  background: #22b573;
  box-shadow: 0 0 0 4px rgba(34, 181, 115, 0.18);
}

.status-done {
  background: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.18);
}

max-width: 900px {
  .lead-info-grid,
  .lead-actions-grid {
    grid-template-columns: 1fr;
  }

  .lead-top {
    flex-direction: column;
  }
}