.dlcp {
  --dlcp-ink: #241d18;
  --dlcp-muted: #6f655d;
  --dlcp-line: #ded8cf;
  --dlcp-paper: #fbfaf7;
  --dlcp-card: #ffffff;
  --dlcp-rust: #a9472c;
  --dlcp-rust-dark: #84351f;
  --dlcp-gold: #d6a74e;
  --dlcp-cream: #f2eadc;
  color: var(--dlcp-ink);
  background: var(--dlcp-paper);
  border: 1px solid #e8e2da;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(49, 38, 29, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 28px auto;
  max-width: 1120px;
  overflow: hidden;
}

.dlcp *,
.dlcp *::before,
.dlcp *::after { box-sizing: border-box; }

.dlcp [hidden] { display: none !important; }

.dlcp-hero {
  align-items: flex-end;
  background:
    radial-gradient(circle at 82% 22%, rgba(214, 167, 78, 0.17), transparent 23%),
    linear-gradient(135deg, #30251e 0%, #1e1916 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 236px;
  overflow: hidden;
  padding: 48px 56px 42px;
  position: relative;
}

.dlcp-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  height: 340px;
  position: absolute;
  right: -80px;
  top: -210px;
  width: 340px;
}

.dlcp-eyebrow {
  align-items: center;
  color: var(--dlcp-rust);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.dlcp-hero .dlcp-eyebrow { color: #ecc36f; }

.dlcp-eyebrow span {
  background: currentColor;
  border-radius: 9px;
  height: 6px;
  width: 6px;
}

.dlcp h2,
.dlcp h3,
.dlcp h4,
.dlcp p { color: inherit; }

.dlcp-hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  max-width: 650px;
}

.dlcp-intro {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 15px;
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 590px;
}

.dlcp-brand {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 6px;
  letter-spacing: 0.13em;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.dlcp-brand svg {
  fill: none;
  height: 50px;
  stroke: #d6a74e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 96px;
}

.dlcp-form { padding: 0 56px; }

.dlcp-toolbar {
  align-items: flex-end;
  border-bottom: 1px solid var(--dlcp-line);
  display: flex;
  gap: 28px;
  padding: 28px 0;
}

.dlcp-toolbar .dlcp-field { flex: 0 0 260px; }

.dlcp-toolbar p {
  color: var(--dlcp-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 11px;
}

.dlcp-section {
  border: 0;
  border-bottom: 1px solid var(--dlcp-line);
  margin: 0;
  min-width: 0;
  padding: 40px 0 44px;
}

.dlcp-section legend {
  align-items: center;
  display: flex;
  float: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  gap: 12px;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  width: 100%;
}

.dlcp-section legend + * { clear: both; }

.dlcp-section legend span {
  align-items: center;
  background: var(--dlcp-cream);
  border-radius: 50%;
  color: var(--dlcp-rust);
  display: inline-flex;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 10px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 30px;
}

.dlcp-section-help {
  color: var(--dlcp-muted) !important;
  font-size: 13px;
  margin: 44px 0 22px;
}

.dlcp-grandparent-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dlcp-field label {
  color: #413831;
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.015em;
  margin: 0 0 8px;
}

.dlcp-field label span {
  color: #9b9189;
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-top: 3px;
}

.dlcp-select-wrap { position: relative; }

.dlcp-select-swatch {
  background: var(--dlcp-swatch, #d8d2c8);
  border: 1px solid rgba(36, 29, 24, 0.12);
  border-radius: 50%;
  height: 16px;
  left: 14px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  z-index: 1;
}

.dlcp-select-wrap::after {
  border-bottom: 2px solid #6f655d;
  border-right: 2px solid #6f655d;
  content: "";
  height: 7px;
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: calc(50% - 5px);
  transform: rotate(45deg);
  width: 7px;
}

.dlcp select {
  appearance: none;
  background: #fff;
  border: 1px solid #d7d0c7;
  border-radius: 9px;
  color: var(--dlcp-ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  height: 46px;
  line-height: 1.2;
  margin: 0;
  max-width: none;
  outline: none;
  padding: 0 38px 0 40px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.dlcp-select-wrap--plain select { padding-left: 14px; }

.dlcp select:focus {
  border-color: var(--dlcp-rust);
  box-shadow: 0 0 0 3px rgba(169, 71, 44, 0.14);
}

.dlcp-parent-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dlcp-parent-card {
  background: #fff;
  border: 1px solid #ded7cf;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(49, 38, 29, 0.045);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 22px;
}

.dlcp-parent-heading {
  align-items: center;
  display: flex;
  gap: 9px;
  grid-column: 1 / -1;
}

.dlcp-parent-heading span {
  align-items: center;
  background: #30251e;
  border-radius: 50%;
  color: #efc469;
  display: inline-flex;
  font-size: 15px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.dlcp-parent-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.dlcp-traits {
  border-top: 1px solid var(--dlcp-line);
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 16px;
}

.dlcp-traits summary {
  color: #574b42;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.dlcp-traits > p {
  color: var(--dlcp-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0 15px;
}

.dlcp-trait-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dlcp-family-clues {
  border: 0;
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
  padding: 2px 0 0;
}

.dlcp .dlcp-family-clues legend {
  color: #413831;
  display: block;
  float: none;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.015em;
  margin: 0 0 9px;
  padding: 0;
  width: auto;
}

.dlcp-family-clues > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dlcp-family-clues label {
  align-items: center;
  background: #f7f3ed;
  border: 1px solid #e3dcd2;
  border-radius: 999px;
  color: #574b42;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  gap: 6px;
  padding: 7px 10px;
}

.dlcp-family-clues input {
  accent-color: var(--dlcp-rust);
  height: 14px;
  margin: 0;
  width: 14px;
}

.dlcp-form-error {
  background: #fff0ec;
  border-left: 3px solid #b83f24;
  color: #712715;
  font-size: 13px;
  margin-top: 18px;
  padding: 11px 14px;
}

.dlcp-actions {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.dlcp-button {
  align-items: center;
  background: var(--dlcp-rust);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 7px 18px rgba(169, 71, 44, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  gap: 30px;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  transition: background 160ms ease, transform 160ms ease;
}

.dlcp-button:hover { background: var(--dlcp-rust-dark); transform: translateY(-1px); }
.dlcp-button:focus-visible,
.dlcp-reset:focus-visible { outline: 3px solid rgba(169, 71, 44, 0.3); outline-offset: 3px; }

.dlcp-button span { font-size: 20px; font-weight: 400; }

.dlcp-reset {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #b6ada5;
  color: var(--dlcp-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 3px 0;
}

.dlcp-results {
  background: #f0e8dc;
  border-bottom: 1px solid #ddd2c2;
  scroll-margin-top: 24px;
  padding: 44px 56px;
}

.dlcp-results-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dlcp-results-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}

.dlcp-completeness {
  color: var(--dlcp-muted) !important;
  font-size: 11px;
  margin: 0;
  text-transform: uppercase;
}

.dlcp-result-grid { display: grid; gap: 8px; }

.dlcp-result-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(91, 72, 57, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: 80px 40px minmax(0, 1fr) 96px;
  min-height: 72px;
  padding: 10px 18px 10px 14px;
}

.dlcp-result-card.is-primary {
  background: #fff;
  border-color: rgba(169, 71, 44, 0.22);
  box-shadow: 0 10px 30px rgba(90, 62, 42, 0.08);
}

.dlcp-result-rank {
  color: #8b8179;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.is-primary .dlcp-result-rank { color: var(--dlcp-rust); }

.dlcp-result-swatch {
  background: var(--dlcp-swatch);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(36, 29, 24, 0.14);
  display: block;
  height: 32px;
  width: 32px;
}

.dlcp-result-swatch--other {
  background: conic-gradient(#70402f, #c79755, #68727c, #a7442a, #70402f);
}

.dlcp-result-copy h4 {
  font-size: 13px;
  font-weight: 750;
  margin: 0 0 7px;
}

.dlcp-result-copy p {
  color: var(--dlcp-muted);
  font-size: 10px;
  margin: 0;
}

.dlcp-result-bar {
  background: #e4ded5;
  border-radius: 10px;
  height: 3px;
  max-width: 360px;
  overflow: hidden;
}

.dlcp-result-bar span { background: var(--dlcp-rust); display: block; height: 100%; }

.dlcp-result-percent {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  text-align: right;
}

.dlcp-result-percent--range {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.dlcp-dapple-warning {
  background: #fff9e8;
  border: 1px solid #e5ca7a;
  border-radius: 8px;
  color: #654b0d;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 16px;
  padding: 12px 14px;
}

.dlcp-dapple-warning.is-urgent {
  background: #fff0ec;
  border-color: #d7927d;
  color: #712715;
  font-weight: 650;
}

.dlcp-pattern-summary {
  border-top: 1px solid rgba(91, 72, 57, 0.18);
  margin-top: 20px;
  padding-top: 18px;
}

.dlcp-pattern-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 11px;
}

.dlcp-pattern-heading h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.dlcp-pattern-heading span {
  color: var(--dlcp-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dlcp-pattern-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dlcp-pattern-card {
  background: rgba(255, 255, 255, 0.58);
  border-left: 3px solid #b8aea3;
  border-radius: 7px;
  min-width: 0;
  padding: 12px 13px;
}

.dlcp-pattern-card.is-strong { border-left-color: #a63d27; }
.dlcp-pattern-card.is-moderate { border-left-color: #c48232; }
.dlcp-pattern-card.is-weak { border-left-color: #d6a74e; }

.dlcp-pattern-card h5 {
  color: #463b33;
  font-size: 11px;
  margin: 0 0 5px;
}

.dlcp-pattern-card strong {
  color: #6f2b1a;
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}

.dlcp-pattern-card.is-none strong { color: #766d65; }

.dlcp-pattern-card p {
  color: var(--dlcp-muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
}

.dlcp-estimate-note {
  color: var(--dlcp-muted) !important;
  font-size: 11px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.dlcp-disclaimer {
  background: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 38px 56px 44px;
}

.dlcp-disclaimer-icon {
  align-items: center;
  border: 1px solid var(--dlcp-rust);
  border-radius: 50%;
  color: var(--dlcp-rust);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.dlcp-disclaimer h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  margin: 2px 0 8px;
}

.dlcp-disclaimer p {
  color: var(--dlcp-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 9px;
  max-width: 880px;
}

.dlcp-disclaimer .dlcp-dna-note {
  background: #f8f4ed;
  border-left: 3px solid var(--dlcp-gold);
  margin-top: 13px;
  padding: 10px 12px;
}

.dlcp-disclaimer strong { color: #6f2b1a; }

.dlcp-disclaimer details {
  border-top: 1px solid var(--dlcp-line);
  margin-top: 16px;
  padding-top: 13px;
}

.dlcp-disclaimer summary {
  color: #574b42;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.dlcp-disclaimer details p { margin: 11px 0 0; }

@media (max-width: 900px) {
  .dlcp-grandparent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlcp-parent-card { grid-template-columns: 1fr; }
  .dlcp-parent-heading,
  .dlcp-traits { grid-column: auto; }
  .dlcp-pattern-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .dlcp { border-radius: 16px; margin: 16px auto; }
  .dlcp-hero { align-items: flex-start; min-height: 0; padding: 36px 24px; }
  .dlcp-brand { display: none; }
  .dlcp-hero h2 { font-size: 37px; }
  .dlcp-form { padding: 0 24px; }
  .dlcp-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .dlcp-toolbar .dlcp-field { flex-basis: auto; }
  .dlcp-section { padding: 32px 0 36px; }
  .dlcp-section-help { line-height: 1.5; }
  .dlcp-grandparent-grid,
  .dlcp-parent-grid { grid-template-columns: 1fr; }
  .dlcp-trait-grid { grid-template-columns: 1fr; }
  .dlcp-family-clues { grid-column: auto; }
  .dlcp-results { padding: 36px 24px; }
  .dlcp-results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dlcp-pattern-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dlcp-result-card { gap: 10px; grid-template-columns: 30px 36px minmax(0, 1fr) 76px; padding-left: 10px; padding-right: 12px; }
  .dlcp-result-card.is-primary .dlcp-result-rank { font-size: 0; }
  .dlcp-result-card.is-primary .dlcp-result-rank::after { content: "01"; font-size: 10px; }
  .dlcp-result-percent { font-size: 18px; }
  .dlcp-result-percent--range { font-size: 11px; }
  .dlcp-disclaimer { grid-template-columns: 30px minmax(0, 1fr); padding: 32px 24px 38px; }
  .dlcp-disclaimer-icon { height: 28px; width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .dlcp *, .dlcp *::before, .dlcp *::after { scroll-behavior: auto !important; transition: none !important; }
}
