:root {
  --dlr-accent: #14b8a6;
  --dlr-accent-2: #0f766e;
  --dlr-accent-soft: rgba(20, 184, 166, .12);
}

.dlr-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dlr-hero-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 18px 34px rgba(15, 118, 110, .24);
}

.dlr-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.dlr-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(190,201,240,.55);
  color: #55608f;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(113,124,171,.08);
}

.dlr-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dlr-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dlr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dlr-run-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font: 700 15px/1 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(87,111,223,.22);
}

.dlr-top-actions,
.dlr-output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dlr-mini-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(190,201,240,.65);
  background: #fff;
  color: #55608f;
  box-shadow: 0 8px 18px rgba(113,124,171,.07);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.dlr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dlr-panel {
  border: 1px solid rgba(210,220,244,.85);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,255,.92));
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 24px rgba(113,124,171,.07);
}

.dlr-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  margin-bottom: 12px;
}

.dlr-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #2d2f63;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dlr-sub {
  margin: 4px 0 0;
  color: #708099;
  font-size: 13px;
  line-height: 1.45;
}

.dlr-textarea {
  min-height: 290px;
  width: 100%;
  font-family: 'DM Mono', monospace, 'Courier New';
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  border: 1.5px solid rgba(190,201,240,.6);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 22px 20px;
  color: var(--text);
  outline: none;
}

.dlr-textarea.output {
  color: #46556f;
}

.dlr-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: #7b8798;
}

.dlr-stats-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dlr-stat {
  background: var(--dlr-accent-soft);
  border: 1px solid rgba(20, 184, 166, .18);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dlr-stat .label {
  font-size: 12px;
  color: #607089;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dlr-stat strong {
  font: 800 28px/1 'Syne', sans-serif;
  color: #0f172a;
}

.dlr-note {
  border: 1px solid rgba(20, 184, 166, .22);
  background: rgba(20, 184, 166, .08);
  color: #29596a;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
}

.dlr-related-head {
  margin-bottom: 18px;
}

.dlr-eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7b84b2;
  margin-bottom: 8px;
}

.dlr-related-head h2 {
  margin: 0;
  font-family: 'Syne', Arial, sans-serif;
  font-size: clamp(1.15rem, 1.05rem + .35vw, 1.45rem);
  color: #2d2f63;
}

.dlr-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dlr-related-card {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid rgba(210,220,244,.85);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(113,124,171,.07);
}

.dlr-related-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef3ff 0%, #dfe8ff 100%);
  font-size: 1.15rem;
}

.dlr-related-name {
  font-weight: 800;
  color: #2d2f63;
  line-height: 1.25;
}

.dlr-footer {
  width: calc(100% - 24px);
  margin: 0 12px 32px;
  padding: 26px 28px;
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(210,220,244,.75);
  box-shadow: 0 12px 28px rgba(113,124,171,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #6d7395;
}

.dlr-footer p {
  margin: 0;
  font-weight: 700;
}

.dlr-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dlr-footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .dlr-grid,
  .dlr-stats-box,
  .dlr-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dlr-panel-head,
  .dlr-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dlr-output-actions,
  .dlr-top-actions {
    width: 100%;
  }

  .dlr-output-actions > *,
  .dlr-top-actions > * {
    flex: 1 1 0;
  }

  .dlr-textarea {
    min-height: 220px;
  }

  .dlr-footer {
    padding: 22px 20px;
  }
}
