.pd-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: #17324d;
}

.pd-home,
.pd-auth-page {
  padding-top: 18px;
}

.pd-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.pd-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pd-hero-copy h1 {
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 14px;
  color: #0f172a;
}

.pd-hero-copy p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
  color: #36506a;
}

.pd-hero-card,
.pd-card,
.pd-mini-card,
.pd-detail-box,
.pd-list-item {
  background: #fff;
  border: 1px solid #dbe7f3;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pd-card,
.pd-detail-box {
  padding: 22px;
}

.pd-mini-card {
  padding: 18px;
  margin-bottom: 14px;
}

.pd-mini-card strong {
  display: block;
  color: #0f172a;
  margin-bottom: 8px;
  font-size: 18px;
}

.pd-mini-card p {
  margin: 0;
  line-height: 1.55;
  color: #43617c;
}

.pd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pd-card h2,
.pd-card h3,
.pd-detail-box h3 {
  margin-top: 0;
  color: #0f172a;
}

.pd-card p,
.pd-list-item p,
.pd-detail-item p {
  color: #48657f;
  line-height: 1.55;
}

.pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}

.pd-btn:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.pd-btn-primary {
  background: #2563eb;
  color: #fff;
}

.pd-btn-secondary {
  background: #eff6ff;
  color: #1d4ed8;
}

.pd-btn-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.pd-btn-full {
  width: 100%;
}

.pd-auth-grid,
.pd-form-grid,
.pd-detail-grid {
  display: grid;
  gap: 16px;
}

.pd-auth-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pd-form-grid,
.pd-detail-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pd-form label {
  display: block;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #17324d;
}

.pd-form input,
.pd-form textarea,
.pd-form select,
.pd-search-inline input,
.pd-auth-page input[type="text"],
.pd-auth-page input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfe0f1;
  border-radius: 14px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
}

.pd-form textarea {
  resize: vertical;
}

.pd-topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pd-topnav a {
  text-decoration: none;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.pd-stat {
  text-align: left;
}

.pd-stat-number {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 800;
  color: #2563eb;
}

.pd-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-list {
  display: grid;
  gap: 14px;
}

.pd-list-item {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pd-list-item h3 {
  margin: 0 0 10px;
}

.pd-detail-item {
  background: #f8fbff;
  border: 1px solid #e3eef9;
  border-radius: 16px;
  padding: 16px;
}

.pd-detail-item strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
}

.pd-search-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pd-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ecfeff;
  color: #155e75;
  border: 1px solid #bae6fd;
}

@media (max-width: 900px) {
  .pd-hero,
  .pd-grid-3,
  .pd-auth-grid,
  .pd-form-grid,
  .pd-detail-grid {
    grid-template-columns: 1fr;
  }

  .pd-hero-copy h1 {
    font-size: 32px;
  }

  .pd-list-item,
  .pd-actions-stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }
}

.pd-card-lead {
  margin: 6px 0 0;
}

.pd-ai-card {
  margin-bottom: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.pd-ai-status {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
}

.pd-ai-status-warning {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.pd-ai-status-loading {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.pd-ai-status-success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.pd-ai-status-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}


.pd-inline-ai-box {
  margin: 10px 0 18px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.pd-inline-ai-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.pd-inline-ai-lead {
  margin: 0 0 14px;
  color: #36506a;
}

.pd-inline-ai-actions {
  margin-bottom: 14px;
}

.pd-inline-ai-grid label {
  margin-top: 0;
}
