.dlp-prm {
  --dlp-navy: #0b1f3a;
  --dlp-blue: #145ea8;
  --dlp-light: #eef6ff;
  --dlp-red: #b91c1c;
  --dlp-yellow: #facc15;
  --dlp-green: #047857;
  --dlp-gray: #475569;
  --dlp-border: #d7e3f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #102033;
  max-width: 1050px;
  margin: 24px auto;
  line-height: 1.45;
}

.dlp-prm * { box-sizing: border-box; }

.dlp-card,
.dlp-form {
  background: #fff;
  border: 1px solid var(--dlp-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(10, 37, 64, .08);
  padding: 24px;
  margin-bottom: 18px;
}

.dlp-intro {
  background: linear-gradient(135deg, #061c36 0%, #0b3f78 62%, #102033 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dlp-intro:after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 320px;
  height: 320px;
  background: rgba(250, 204, 21, .16);
  border-radius: 50%;
}

.dlp-brand {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--dlp-yellow);
  color: #111827;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.dlp-prm h2,
.dlp-prm h3,
.dlp-prm h4 { margin: 0 0 12px; line-height: 1.2; }
.dlp-prm h2 { font-size: clamp(24px, 4vw, 38px); }
.dlp-prm h3 { font-size: 22px; color: var(--dlp-navy); }
.dlp-prm h4 { font-size: 19px; color: var(--dlp-navy); }
.dlp-lead { font-size: 17px; max-width: 850px; }

.dlp-warning,
.dlp-global-warning,
.dlp-error {
  background: #fff7ed;
  border-left: 5px solid #f97316;
  color: #7c2d12;
  padding: 13px 15px;
  border-radius: 12px;
  margin: 14px 0;
}

.dlp-global-warning {
  background: #fef2f2;
  border-left-color: var(--dlp-red);
  color: #7f1d1d;
}

.dlp-error {
  background: #fee2e2;
  border-left-color: var(--dlp-red);
  color: #7f1d1d;
}

.dlp-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.dlp-progress span {
  background: #eaf1fb;
  color: #244766;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.dlp-progress span.is-active {
  background: var(--dlp-blue);
  color: #fff;
}

.dlp-step { display: none; }
.dlp-step.is-active { display: block; }

.dlp-prm label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.dlp-prm select,
.dlp-prm input[type="number"] {
  width: 100%;
  border: 1px solid #b9c8db;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  color: #111827;
}

.dlp-prm select:focus,
.dlp-prm input[type="number"]:focus {
  outline: 3px solid rgba(20, 94, 168, .18);
  border-color: var(--dlp-blue);
}

.dlp-help {
  color: var(--dlp-gray);
  margin-top: 10px;
}

.dlp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dlp-check,
.dlp-radio-row label {
  border: 1px solid var(--dlp-border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  font-weight: 650;
  cursor: pointer;
}

.dlp-check input,
.dlp-radio-row input { margin-right: 8px; }

.dlp-radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.dlp-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.dlp-btn {
  appearance: none;
  border: none;
  background: var(--dlp-blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.dlp-btn:hover { background: #0c4d8e; transform: translateY(-1px); }
.dlp-btn:disabled { background: #94a3b8; cursor: not-allowed; transform: none; }
.dlp-secondary { background: #334155; }
.dlp-secondary:hover { background: #1f2937; }

.dlp-result-summary {
  border: 1px solid var(--dlp-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--dlp-light);
  margin-bottom: 14px;
}

.dlp-drug {
  border: 1px solid #c8d9eb;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  background: #fff;
}

.dlp-drug-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.dlp-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dlp-blue);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.dlp-drug p { margin: 8px 0; }
.dlp-role { color: #0f3a63; }

.dlp-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 12px;
}

.dlp-alert ul { margin: 8px 0 0 18px; }
.dlp-alert li { margin: 4px 0; }

.dlp-ok {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 12px;
}

.dlp-sources,
.dlp-sources-mini {
  color: #334155;
  font-size: 14px;
}

.dlp-sources ol { margin-left: 20px; }
.dlp-print-actions { margin-bottom: 16px; }

@media (max-width: 760px) {
  .dlp-card, .dlp-form { padding: 18px; border-radius: 14px; }
  .dlp-progress { grid-template-columns: repeat(2, 1fr); }
  .dlp-grid, .dlp-radio-row { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden !important; }
  .dlp-prm, .dlp-prm * { visibility: visible !important; }
  .dlp-prm { position: absolute; left: 0; top: 0; max-width: none; width: 100%; margin: 0; }
  .dlp-progress, .dlp-form > .dlp-actions, .dlp-print-actions, .dlp-intro, .dlp-sources { display: none !important; }
  .dlp-card, .dlp-form, .dlp-drug { box-shadow: none; border-color: #999; }
  .dlp-step { display: none !important; }
  .dlp-step[data-step="6"] { display: block !important; }
}
