:root {
  --ink: #211d25;
  --muted: #716b76;
  --line: #e8e3ea;
  --surface: #ffffff;
  --soft: #f7f4f8;
  --accent: #8255d9;
  --accent-dark: #6035b3;
  --brand: #26232b;
  --brand-contrast: #ffffff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: #f3f0f4; }

body {
  min-width: 300px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 3%, rgba(130, 85, 217, 0.09), transparent 28rem),
    #f3f0f4;
}

button, a { font: inherit; }

button { cursor: pointer; }

.dna-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(14px, 2vw, 28px) 30px;
}

.dna-hero {
  display: grid;
  grid-template-columns: minmax(330px, .95fr) minmax(390px, 1.05fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
  min-height: 0;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 8%, rgba(174, 137, 243, 0.19), transparent 32%),
    linear-gradient(135deg, #fff 0%, #faf7fc 55%, #f1eafb 100%);
  box-shadow: 0 24px 70px rgba(44, 32, 52, 0.08);
}

.dna-eyebrow,
.dna-section-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dna-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(130, 85, 217, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.dna-eyebrow svg,
.dna-safety svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dna-hero h1 {
  max-width: 540px;
  margin: 15px 0 11px;
  font-size: clamp(32px, 3.7vw, 50px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.01;
}

.dna-hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.dna-site-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(560px, 100%);
  margin-top: 18px;
  padding: 9px 9px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dna-site-pill:focus-within {
  border-color: rgba(130, 85, 217, .55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(130, 85, 217, .1);
}

.dna-site-pill > span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 2px solid #d8f5e9;
  border-radius: 50%;
  background: #20b978;
  box-shadow: 0 0 0 3px rgba(32, 185, 120, 0.1);
}

.dna-site-pill div { min-width: 0; flex: 1; }

.dna-site-pill label,
.dna-site-pill input { display: block; }

.dna-site-pill label {
  margin-bottom: 2px;
  color: #8a838d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dna-site-pill input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
}

.dna-site-pill > button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e1d9e6;
  border-radius: 10px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
  background: #f7f2fc;
}

.dna-site-pill > button:hover { border-color: #cfc1dc; background: #f1e8fa; }
.dna-site-pill > button:disabled { cursor: progress; opacity: .55; }

.dna-url-help {
  margin-top: 7px !important;
  color: #918a94 !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.dna-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.dna-primary-action,
.dna-secondary-action {
  border: 0;
  border-radius: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.dna-primary-action {
  display: flex;
  min-width: 250px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 13px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 28px rgba(96, 53, 179, 0.23);
}

.dna-primary-action:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 35px rgba(96, 53, 179, 0.3); }
.dna-primary-action:disabled { cursor: progress; opacity: 0.72; }

.dna-action-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.dna-action-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dna-primary-action strong,
.dna-primary-action small { display: block; }
.dna-primary-action strong { font-size: 14px; }
.dna-primary-action small { margin-top: 2px; color: rgba(255,255,255,.72); font-size: 10px; }

.dna-secondary-action {
  padding: 0 18px;
  border: 1px solid var(--line);
  color: #504a54;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}
.dna-secondary-action:hover { border-color: #cfc5d6; background: #fff; }

.dna-safety {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px !important;
  color: #8a838d !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}
.dna-safety svg { width: 15px; height: 15px; flex: 0 0 15px; }

.dna-preview-shell {
  width: min(500px, 100%);
  justify-self: end;
  padding: 9px;
  border: 1px solid rgba(93, 72, 111, 0.12);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 55px rgba(64, 44, 75, 0.14);
  transform: rotate(.6deg);
}

.dna-preview-toolbar {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
}
.dna-preview-toolbar > span { width: 7px; height: 7px; border-radius: 50%; background: #dfd8e3; }
.dna-preview-toolbar > div { width: 44%; height: 6px; margin: auto; border-radius: 6px; background: #eee9f0; }

.dna-demo-site {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8f6f9, #eae4ed);
}

.dna-demo-nav { display: flex; height: 43px; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255,255,255,.88); }
.dna-demo-nav b { margin-right: auto; font-size: 12px; }
.dna-demo-nav i { width: 42px; height: 5px; border-radius: 4px; background: #ddd6e0; }
.dna-demo-content { width: 52%; padding: 38px 0 0 28px; }
.dna-demo-content > span { display: block; width: 68px; height: 6px; margin-bottom: 13px; border-radius: 8px; background: var(--brand); opacity: .7; }
.dna-demo-content strong { display: block; font-size: 19px; letter-spacing: -.035em; line-height: 1.05; }
.dna-demo-content p { color: #87808a; font-size: 10px; line-height: 1.55; }

.dna-widget {
  position: absolute;
  right: 14px;
  bottom: 59px;
  width: 220px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(41, 29, 48, .2);
  transition: border-radius .35s ease;
}
.dna-widget-header { display: flex; height: 48px; align-items: center; gap: 7px; padding: 0 8px 0 11px; color: var(--brand-contrast); background: var(--brand); transition: background .35s ease; }
.dna-widget-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; overflow: hidden; }
.dna-widget-icon svg, .dna-widget-icon img { width: 23px; height: 23px; object-fit: contain; }
.dna-widget-icon.has-custom-image {
  width: auto;
  min-width: 29px;
  max-width: 62px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.dna-widget-icon.has-custom-image img { width: auto; max-width: 50px; height: 20px; border-radius: 0; }
.dna-widget-header > div:nth-child(2) { min-width: 0; margin-right: auto; }
.dna-widget-header strong, .dna-widget-header small { display: block; }
.dna-widget-header strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dna-widget-header small { margin-top: 2px; color: rgba(255,255,255,.75); font-size: 7px; }
.dna-widget-header small i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #49e3a1; }
.dna-widget-header button { width: 23px; height: 23px; padding: 0; border: 0; border-radius: 7px; color: #fff; background: rgba(255,255,255,.08); }
.dna-widget-body { min-height: 88px; padding: 12px; background: linear-gradient(180deg, #fff, #fbfafc); }
.dna-message { width: 83%; padding: 9px 10px; border-radius: 12px 12px 12px 3px; color: #554e58; font-size: 8px; line-height: 1.45; background: #f0edf2; }
.dna-suggestions { display: flex; gap: 5px; margin-top: 9px; }
.dna-suggestions span { padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--brand) 20%, #ddd); border-radius: 999px; color: var(--brand); font-size: 6px; }
.dna-widget-compose { display: flex; height: 38px; align-items: center; margin: 0 8px 5px; padding: 0 4px 0 10px; border: 1px solid #e6e1e8; border-radius: 11px; color: #aaa3ad; font-size: 7px; }
.dna-widget-compose span { margin-right: auto; }
.dna-widget-compose b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--brand-contrast); background: var(--brand); }
.dna-widget > a { display: block; padding: 3px 0 7px; color: #b2acb5; font-size: 5.5px; text-align: center; text-decoration: none; }

.dna-launcher {
  position: absolute;
  right: 14px;
  bottom: 11px;
  display: flex;
  height: 40px;
  min-width: 145px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border-radius: 50px;
  color: var(--brand-contrast);
  background: var(--brand);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 30%, transparent);
  transition: background .35s ease, border-radius .35s ease;
}
.dna-launcher[data-variant="outline"] { color: var(--brand); border: 2px solid var(--brand); background: #fff; }
.dna-launcher span { position: relative; left: var(--dna-icon-offset-x, 0px); display: grid; width: calc(var(--dna-icon-size, 18px) + 4px); height: calc(var(--dna-icon-size, 18px) + 4px); place-items: center; overflow: hidden; }
.dna-launcher svg, .dna-launcher img { width: var(--dna-icon-size, 17px); height: var(--dna-icon-size, 17px); object-fit: contain; }
.dna-launcher span.has-custom-image {
  width: auto;
  min-width: calc(var(--dna-icon-size, 18px) + 8px);
  max-width: calc(var(--dna-icon-size, 18px) * 2.7);
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.dna-launcher span.has-custom-image img { width: auto; max-width: calc(var(--dna-icon-size, 18px) * 2.3); height: var(--dna-icon-size, 18px); border-radius: 0; }
.dna-launcher b { font-size: 9px; }
.dna-preview-label { padding: 12px 4px 4px; color: #8a838d; font-size: 9px; text-align: center; }
.dna-preview-label span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #20b978; }

.dna-results,
.dna-explainer {
  margin-top: 14px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.dna-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.dna-results h2, .dna-explainer h2 { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; }

.dna-working[hidden] { display: none; }
.dna-working {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(60,42,76,.1);
  animation: dna-panel-in .28s ease both;
}
.dna-working::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: '';
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.72) 45%, transparent 65%);
  transform: translateX(-120%);
  animation: dna-sweep 2.1s ease-in-out infinite;
}
.dna-loader { position: relative; width: 52px; height: 52px; }
.dna-loader > span { position: absolute; inset: 2px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 50%; animation: dna-ring 1.7s ease-in-out infinite; }
.dna-loader > span:nth-child(2) { inset: 9px; border-style: dashed; animation-delay: -.55s; animation-direction: reverse; }
.dna-loader > i { position: absolute; top: 1px; left: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent); transform-origin: 3px 25px; animation: dna-orbit 1.55s linear infinite; }
.dna-loader svg { position: absolute; inset: 13px; width: 26px; height: 26px; fill: none; stroke: var(--accent-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: dna-breathe 1.25s ease-in-out infinite; }
.dna-working-copy { min-width: 0; }
.dna-working-copy > small { display: block; margin-bottom: 3px; color: var(--accent-dark); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.dna-working-copy > strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dna-working-copy > p { min-height: 16px; margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dna-percent { position: relative; z-index: 1; color: var(--accent); font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.dna-progress { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 7px; background: #eee9f0; }
.dna-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width .45s ease; }
.dna-working-stages { display: flex; gap: 5px; margin-top: 7px; }
.dna-working .dna-step { padding: 3px 6px; border-radius: 999px; color: #9a929e; font-size: 7px; font-weight: 750; background: #f2eef4; transition: color .2s ease, background .2s ease; }
.dna-working .dna-step.is-active { color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 14%, #fff); }
.dna-working .dna-step.is-complete { color: #267153; background: #eaf7f1; }
.dna-working.is-complete { border-color: #bfe8d6; }
.dna-working.is-complete::after { animation: none; }
.dna-working.is-complete .dna-loader > span,
.dna-working.is-complete .dna-loader > i,
.dna-working.is-complete .dna-loader svg { animation-play-state: paused; }
.dna-working.is-error { border-color: #e5bdc6; background: #fff8fa; }
.dna-working.is-error::after { animation: none; }

@keyframes dna-panel-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dna-sweep { 0%, 18% { transform: translateX(-120%); } 72%, 100% { transform: translateX(120%); } }
@keyframes dna-ring { 0%, 100% { opacity: .45; transform: scale(.88) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }
@keyframes dna-orbit { to { transform: rotate(360deg); } }
@keyframes dna-breathe { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.05); } }

.dna-results[hidden] { display: none; }
.dna-success-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; color: #267153; font-size: 10px; font-weight: 800; background: #ebf8f2; }
.dna-success-badge i { width: 6px; height: 6px; border-radius: 50%; background: #23af72; }
.dna-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 25px; }
.dna-result-card { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fff, #faf8fb); }
.dna-result-main { display: flex; grid-column: span 2; align-items: flex-start; gap: 16px; }
.dna-card-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; color: #fff; background: var(--brand); }
.dna-card-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dna-result-card > small, .dna-result-card > div > small { color: #918a94; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.dna-result-card h3 { margin: 7px 0 8px; font-size: 17px; }
.dna-result-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.dna-palette { display: flex; gap: 8px; margin: 14px 0 16px; }
.dna-palette span { width: 34px; height: 34px; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(35,28,39,.11); }

.dna-profile-save {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}
.dna-profile-save h3 { margin: 6px 0 7px; font-size: 19px; letter-spacing: -.025em; }
.dna-profile-save > div > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.dna-profile-save-controls label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.dna-profile-primary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.dna-profile-save-controls input { min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); font: inherit; font-size: 12px; background: #fff; }
.dna-profile-save-controls input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.dna-profile-save-controls button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; color: var(--brand-contrast); font-size: 12px; font-weight: 800; background: var(--brand); }
.dna-profile-save-controls button:disabled { cursor: not-allowed; opacity: .45; }
.dna-active-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
  border-radius: 11px;
  color: var(--ink) !important;
  font-size: 10px !important;
  font-weight: 700;
  background: rgba(255,255,255,.72);
}
.dna-active-profile::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; content: ''; background: #23af72; }
.dna-profile-save-controls .dna-overwrite-action {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  color: var(--brand);
  background: transparent;
}
.dna-profile-save-controls .dna-overwrite-action:hover:not(:disabled) { background: color-mix(in srgb, var(--brand) 7%, #fff); }
#dnaProfileSaveStatus { min-height: 17px; margin: 8px 0 0; color: var(--muted); font-size: 10px; }
#dnaProfileSaveStatus.is-success { color: #267153; }
#dnaProfileSaveStatus.is-error { color: #a52a43; }

.dna-confirm-dialog[hidden] { display: none; }
.dna-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 20, 27, .58);
  backdrop-filter: blur(6px);
}
.dna-confirm-card {
  width: min(500px, 100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(22,17,25,.28);
}
.dna-confirm-card h2 { margin: 8px 0 12px; color: var(--ink); font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.dna-confirm-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.dna-confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.dna-confirm-actions button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-weight: 800; background: #fff; }
.dna-confirm-actions #dnaOverwriteConfirm { border-color: var(--brand); color: var(--brand-contrast); background: var(--brand); }
.dna-confirm-actions button:disabled { cursor: progress; opacity: .55; }
.dna-confirm-card .dna-confirm-status { min-height: 18px; margin-top: 10px; font-size: 10px; }

.dna-explainer { padding: 0; overflow: hidden; }
.dna-explainer > summary { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 18px; cursor: pointer; list-style: none; }
.dna-explainer > summary::-webkit-details-marker { display: none; }
.dna-explainer > summary > span { display: grid; gap: 3px; }
.dna-explainer > summary strong { color: var(--ink); font-size: 13px; }
.dna-explainer > summary > i { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--accent-dark); font-style: normal; background: var(--soft); transition: transform .2s ease; }
.dna-explainer[open] > summary > i { transform: rotate(45deg); }
.dna-explainer-content { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 8px 20px 20px; border-top: 1px solid var(--line); }
.dna-explainer-content > div:first-child { padding-top: 16px; }
.dna-explainer-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.dna-explainer-items article { min-height: 142px; padding: 18px; background: #fff; }
.dna-explainer-items span { color: var(--accent); font-size: 9px; font-weight: 850; }
.dna-explainer-items strong { display: block; margin-top: 22px; font-size: 12px; }
.dna-explainer-items p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.dna-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 16px;
  border-radius: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: #26232b;
  box-shadow: 0 12px 35px rgba(22,17,25,.24);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .22s ease;
}
.dna-notice.is-visible { opacity: 1; transform: translateY(0); }
.dna-notice.is-error { background: #a52a43; }

@media (max-width: 1080px) {
  .dna-hero { grid-template-columns: 1fr; }
  .dna-preview-shell { width: min(560px, 100%); justify-self: center; margin: 0 auto; transform: none; }
  .dna-explainer-content { grid-template-columns: 1fr; }
  .dna-explainer-items { grid-template-columns: repeat(3, 1fr); }
  .dna-profile-save { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dna-page { padding: 12px 12px 32px; }
  .dna-hero { min-height: 0; padding: 27px 20px; border-radius: 22px; }
  .dna-hero h1 { font-size: 34px; }
  .dna-actions { flex-direction: column; }
  .dna-primary-action { min-width: 0; }
  .dna-secondary-action { min-height: 46px; }
  .dna-demo-content { display: none; }
  .dna-widget { right: 12px; width: calc(100% - 24px); }
  .dna-launcher { right: 12px; }
  .dna-working { grid-template-columns: 46px minmax(0, 1fr); }
  .dna-loader { width: 44px; height: 44px; }
  .dna-loader > i { left: 19px; transform-origin: 3px 21px; }
  .dna-loader svg { inset: 10px; width: 24px; height: 24px; }
  .dna-percent { display: none; }
  .dna-working-copy > p { white-space: normal; }
  .dna-working-stages { flex-wrap: wrap; }
  .dna-result-grid { grid-template-columns: 1fr; }
  .dna-result-main { grid-column: auto; }
  .dna-profile-save { padding: 18px; }
  .dna-profile-primary-row { grid-template-columns: 1fr; }
  .dna-confirm-actions { flex-direction: column-reverse; }
  .dna-confirm-actions button { width: 100%; }
  .dna-explainer-items { grid-template-columns: 1fr; }
}

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