.de-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 1.25rem;
  background: #f7f8fb;
}

.de-hero h1 {
  margin: 0.25rem 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.de-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.85rem;
  opacity: 0.72;
}

.de-hero-actions,
.de-form-actions,
.de-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.de-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.de-button-primary {
  background: #111827;
  color: #ffffff;
}

.de-button-secondary {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.de-panel,
.de-match-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.de-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.de-grid-2 {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.de-panel-header,
.de-match-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.de-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.de-preset {
  text-align: left;
  padding: 1rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 1rem;
  cursor: pointer;
}

.de-preset strong,
.de-preset span {
  display: block;
}

.de-preset span {
  color: #6b7280;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.de-preset.is-active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.de-preset.is-active span {
  color: rgba(255,255,255,0.78);
}

.de-form-grid,
.de-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.de-panel label {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  font-weight: 700;
}

.de-panel input,
.de-panel select,
.de-panel textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font: inherit;
}

.de-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.de-fieldset label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.de-fieldset input {
  width: auto;
}

.de-empty {
  padding: 1.25rem;
  border: 1px dashed #d1d5db;
  border-radius: 1rem;
  background: #fbfbfd;
}

.de-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: #4b5563;
  background: #ffffff;
  font-size: 0.8rem;
  white-space: nowrap;
}

.de-results-grid {
  display: grid;
  gap: 1rem;
}

.de-match-card h3 {
  margin: 0 0 0.25rem 0;
}

.de-match-card p {
  margin: 0;
  color: #6b7280;
}

.de-metric-grid {
  margin: 1rem 0;
}

.de-metric-grid div {
  background: #f9fafb;
  padding: 0.85rem;
  border-radius: 0.9rem;
}

.de-metric-grid span {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
}

.de-metric-grid strong {
  display: block;
  margin-top: 0.2rem;
}

.de-reason-list,
.de-steps {
  padding-left: 1.2rem;
}

.de-reason-list li,
.de-steps li {
  margin: 0.35rem 0;
}

.de-card-actions {
  margin-top: 1rem;
}

.de-card-actions a {
  font-weight: 800;
  text-decoration: none;
}

.de-callout,
.de-upgrade-strip {
  padding: 1rem;
  background: #f3f4f6;
  border-radius: 1rem;
  margin-top: 1rem;
}

.de-upgrade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.de-form-message {
  min-height: 1.2rem;
  font-weight: 800;
}

.de-form-message.is-error {
  color: #b91c1c;
}

.de-form-message.is-success {
  color: #047857;
}

.de-inline-form {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}

.de-inline-form label {
  min-width: 180px;
}

@media (max-width: 950px) {
  .de-hero,
  .de-panel-header,
  .de-match-header,
  .de-upgrade-strip {
    display: block;
  }

  .de-grid-2,
  .de-form-grid,
  .de-metric-grid,
  .de-preset-grid {
    grid-template-columns: 1fr;
  }

  .de-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .de-hero-actions {
    margin-top: 1rem;
  }
}
