@font-face {
  font-family: "Young Serif";
  src: url("/static/fonts/YoungSerif.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/Newsreader.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/Newsreader-Italic.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #efe6d8;
  --bg-outer: #efe6d8;
  --paper: #fbf7f0;
  --sunk: #f2eadf;
  --ink: #33282c;
  --ink-2: #6d5d60;
  --muted: #6d5d60;
  --line: #e4d7c6;
  --border: #e4d7c6;
  --stitch: #c8b398;
  --act: #9c3f2d;
  --act-deep: #7f3222;
  --on-act: #ffffff;
  --act-tint: #f6e3db;
  --accent: #9c3f2d;
  --accent-hover: #7f3222;
  --accent-soft: #f6e3db;
  --ok: #4b7a5a;
  --thread: #6a977b;
  --p1: #c8714f;
  --p2: #6a977b;
  --p3: #c4993d;
  --p4: #b5677e;
  --p5: #5f80a4;
  --ad: #a39684;
  --pill-bg: #f2eadf;
  --chip-bg: #f2eadf;
  --head: "Young Serif", Georgia, serif;
  --read: "Newsreader", Georgia, serif;
  --ui: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #241a15;
    --bg-outer: #241a15;
    --paper: #2f241e;
    --sunk: #3a2c24;
    --ink: #f6ece2;
    --ink-2: #d2c0b2;
    --muted: #d2c0b2;
    --line: #4c3b31;
    --border: #4c3b31;
    --stitch: #86705e;
    --act: #efa48d;
    --act-deep: #f7c4b4;
    --on-act: #2a1a16;
    --act-tint: #3d2a26;
    --accent: #efa48d;
    --accent-hover: #f7c4b4;
    --accent-soft: #3d2a26;
    --ok: #93c7a4;
    --thread: #8dbb9d;
    --p1: #df8f6f;
    --p2: #8dbb9d;
    --p3: #dcb763;
    --p4: #d68ea2;
    --p5: #8aa8cb;
    --ad: #7c706c;
    --pill-bg: #3a2c24;
    --chip-bg: #3a2c24;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #241a15;
  --bg-outer: #241a15;
  --paper: #2f241e;
  --sunk: #3a2c24;
  --ink: #f6ece2;
  --ink-2: #d2c0b2;
  --muted: #d2c0b2;
  --line: #4c3b31;
  --border: #4c3b31;
  --stitch: #86705e;
  --act: #efa48d;
  --act-deep: #f7c4b4;
  --on-act: #2a1a16;
  --act-tint: #3d2a26;
  --accent: #efa48d;
  --accent-hover: #f7c4b4;
  --accent-soft: #3d2a26;
  --ok: #93c7a4;
  --thread: #8dbb9d;
  --p1: #df8f6f;
  --p2: #8dbb9d;
  --p3: #dcb763;
  --p4: #d68ea2;
  --p5: #8aa8cb;
  --ad: #7c706c;
  --pill-bg: #3a2c24;
  --chip-bg: #3a2c24;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--read);
  overflow-x: hidden;
}

.iq-quilt-bg {
  min-height: 100vh;   /* a short page still gets the backdrop to the bottom of the window */
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 90, 60, 0.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120, 90, 60, 0.04) 0 1px, transparent 1px 4px);
}

@media (prefers-color-scheme: dark) {
  .iq-quilt-bg {
    background-image:
      repeating-linear-gradient(0deg, rgba(255, 240, 220, 0.025) 0 1px, transparent 1px 4px),
      repeating-linear-gradient(90deg, rgba(255, 240, 220, 0.02) 0 1px, transparent 1px 4px);
  }
}

.iq-runner-bg {
  background: var(--paper);
}

.iq-topbar {
  background: transparent;
}

.iq-topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iq-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.iq-logo {
  display: block;
  height: 28px;
  width: auto;
}

.iq-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ui);
}

.iq-nav-link {
  display: none;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 16px/1.2 var(--ui);
}

.iq-nav-link:hover { color: var(--ink); }
.iq-nav-link.is-active { color: var(--ink); background: var(--sunk); }

.iq-quilt-band {
  height: 150px;
  background: url("/static/img/quilt-band.jpg") center / 700px auto;
}

@media (prefers-color-scheme: dark) {
  .iq-quilt-band {
    background:
      linear-gradient(rgba(36, 26, 21, 0.30), rgba(36, 26, 21, 0.30)),
      url("/static/img/quilt-band.jpg") center / 700px auto;
  }
}

html[data-theme="dark"] .iq-quilt-band {
  background:
    linear-gradient(rgba(36, 26, 21, 0.30), rgba(36, 26, 21, 0.30)),
    url("/static/img/quilt-band.jpg") center / 700px auto;
}

.iq-sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 36px;
  background: var(--paper);
}

.iq-quilt-band + .iq-sheet {
  margin-top: -26px;
  border-radius: 22px 22px 0 0;
  position: relative;
}

@media (min-width: 960px) {
  .iq-quilt-bg {
    background:
      linear-gradient(rgba(239, 230, 216, 0.12), rgba(239, 230, 216, 0.12)),
      url("/static/img/quilt-backdrop.jpg") center top / 1400px auto repeat;
  }

  .iq-topbar {
    background: var(--paper);
    box-shadow: 0 2px 0 rgba(80, 50, 30, 0.08);
  }

  .iq-topbar-inner {
    padding: 18px 32px;
  }

  .iq-nav-link {
    display: inline-flex;
  }

  .iq-quilt-band {
    display: none;
  }

  .iq-quilt-band + .iq-sheet,
  .iq-quilt-bg .iq-sheet {
    margin: 40px auto 32px;
    padding: 52px 60px;
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(80, 50, 30, 0.10), 0 30px 60px -20px rgba(60, 35, 20, 0.55);
  }

  html[data-theme="dark"] .iq-quilt-bg {
    background:
      linear-gradient(rgba(36, 26, 21, 0.50), rgba(36, 26, 21, 0.50)),
      url("/static/img/quilt-backdrop.jpg") center top / 1400px auto repeat;
  }
}

@media (min-width: 960px) and (prefers-color-scheme: dark) {
  .iq-quilt-bg {
    background:
      linear-gradient(rgba(36, 26, 21, 0.50), rgba(36, 26, 21, 0.50)),
      url("/static/img/quilt-backdrop.jpg") center top / 1400px auto repeat;
  }

  .iq-quilt-band + .iq-sheet,
  .iq-quilt-bg .iq-sheet {
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  }
}

.iq-notfound-go { margin-bottom: 0; }

.iq-unavailable {
  margin-top: 48px;
  text-align: center;
}

h1, h2, h3, .iq-h1, .iq-h2, .iq-h3 {
  font-family: var(--head);
  font-weight: 400;
  text-wrap: balance;
}

.iq-h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.iq-legal-content h1 {
  margin: 0 0 14px;
  font-size: 1.85rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.iq-legal-content h2 { margin: 28px 0 8px; font-size: 1.3rem; line-height: 1.3; }
.iq-legal-content h3 { margin: 20px 0 6px; font-size: 1.08rem; line-height: 1.35; }
.iq-legal-content p, .iq-legal-content ul, .iq-legal-content ol { margin: 0 0 14px; }
.iq-legal-content ul, .iq-legal-content ol { padding-left: 1.4rem; }
.iq-legal-content li { margin: 0 0 7px; }
.iq-legal-content blockquote {
  margin: 16px 0 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--thread);
  background: var(--pill-bg);
}
.iq-legal-content blockquote p { margin: 0; }
.iq-legal-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .92rem; }
.iq-legal-content th, .iq-legal-content td { padding: 8px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.iq-legal-content a { color: var(--accent); text-underline-offset: 2px; }


@media (min-width: 960px) {
  .iq-h1 { font-size: 2.5rem; }
}

.iq-h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.24;
}

.iq-h3 {
  margin: 18px 0 6px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.iq-intro, .iq-body {
  margin: 0 0 14px;
}

.iq-muted-line, .iq-progress-line {
  margin: 4px 0 12px;
  color: var(--ink-2);
  font: italic 400 1.05rem/1.45 var(--read);
}

.iq-stitch {
  border: 0;
  border-top: 2px dashed var(--stitch);
  margin: 28px 0;
}

.iq-about-kicker {
  display: block;
  margin: 0 0 6px;
}

.iq-about-tests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.iq-about-tests .iq-body {
  margin: 0;
}

.iq-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.iq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--stitch);
  font: 600 16px/1.2 var(--ui);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.iq-btn-primary {
  background: var(--act);
  border-color: var(--act);
  color: var(--on-act);
}

.iq-btn-primary:hover {
  background: var(--act-deep);
  border-color: var(--act-deep);
}

.iq-btn-outline:hover {
  background: var(--sunk);
}

.iq-btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.iq-btn-pill {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Per-person SVG patches (zero inline style= attributes) */
.iq-pt {
  display: inline-block;
  line-height: 0;
  flex: none;
}

.iq-pt svg {
  display: block;
}

.iq-pt-tilt-four { transform: rotate(-2.2deg); }
.iq-pt-tilt-five { transform: rotate(1.6deg); }
.iq-pt-tilt-nine { transform: rotate(-1.2deg); }
.iq-pt-tilt-tri { transform: rotate(2deg); }
.iq-pt-tilt-six { transform: rotate(-1.7deg); }
.iq-pt-tilt-logo { transform: rotate(-3deg); }

.iq-patch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.iq-hub-patches .iq-pt svg {
  width: 100%;
  max-width: 72px;
  height: auto;
}

.iq-patch-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iq-test-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.iq-test-item {
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--stitch);
}

.iq-test-item:last-child { border-bottom: 0; }

.iq-test-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.iq-test-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.iq-test-blurb {
  margin: 0 0 6px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.iq-test-meta {
  margin: 0;
  color: var(--muted);
  font: 500 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-test-meta.is-done { color: var(--thread); }

.iq-test-actions {
  margin-top: 12px;
}

.iq-test-actions .iq-btn { width: 100%; }

.iq-patch {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px dashed var(--stitch);
  display: inline-block;
}

.iq-patch-sm {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.iq-patch.is-empty {
  background: transparent;
  opacity: 0.45;
}

.iq-hub-patches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
}

.iq-hub-patch-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.iq-patch-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font: 500 18px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-hub-patch-label {
  font: 500 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
}

.patch-16type { background: repeating-linear-gradient(45deg, #b86f54 0 8px, #e3c9b3 8px 16px); }
.patch-bigfive { background: repeating-linear-gradient(90deg, #74927a 0 9px, #d9e1d4 9px 18px); }
.patch-enneagram { background: repeating-linear-gradient(-45deg, #c2874b 0 8px, #efe0c5 8px 16px); }
.patch-disc { background: repeating-linear-gradient(0deg, #7f8fa8 0 8px, #d8dfe8 8px 16px); }
.patch-riasec { background: repeating-linear-gradient(135deg, #a87b8f 0 8px, #ebd9e1 8px 16px); }
.patch-combined { background: conic-gradient(#b86f54 0 25%, #74927a 0 50%, #c2874b 0 75%, #7f8fa8 0); }

/* Test runner */
.iq-runner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.iq-runner-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iq-runner-name {
  font-weight: 700;
  font-size: 1rem;
}

.iq-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.iq-progress-count {
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  white-space: nowrap;
}

.iq-progress-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.iq-progress-fill {
  height: 100%;
  background: var(--accent);
}

.iq-prompt-lead {
  margin: 0 0 8px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.iq-question-text {
  margin: 0 0 22px;
  font-size: 1.5rem;
  line-height: 1.32;
}

.iq-choices {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iq-choice-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-choice-pill.is-selected,
.iq-choice-pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.iq-choice-pill input { accent-color: var(--accent); }

.iq-runner-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.iq-runner-nav .iq-btn { flex: 1; }

.iq-runner-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* Result page */
.iq-result-top { margin-bottom: 18px; }

.iq-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.iq-eyebrow {
  color: var(--muted);
  font-family: var(--read);
  font-style: italic;
  font-size: 0.96rem;
}

.iq-trait-block {
  margin: 26px 0;
}

.iq-trait-heading {
  margin: 0 0 2px;
  font-size: 1.15rem;
}

.iq-trait-scoreline {
  margin: 0 0 10px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.iq-trait-num {
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  opacity: 0.8;
}

.iq-thread {
  position: relative;
  height: 16px;
  margin: 4px 0 4px;
}

.iq-thread-line {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--thread);
  opacity: 0.65;
}

.iq-thread-knot {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--thread);
}

.iq-thread-poles {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-style: italic;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.iq-bar-row { margin: 14px 0; }

.iq-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}

.iq-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.iq-bar-fill {
  height: 100%;
  background: var(--accent);
}

.iq-chips {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iq-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-disclaimer-inline {
  margin: 18px 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

.iq-ad-slot {
  margin: 22px 0;
}

.iq-ad-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-ad-box {
  min-height: 90px;
  padding: 26px 16px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font: 400 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-patch-strip {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.iq-credit-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.iq-credit-note a { color: inherit; }

.iq-notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin: 12px 0;
  font-size: 0.94rem;
}

/* Guest "Delete my results" section on the privacy page; the box, tick and button come from the account-form kit. */
.iq-delete-results {
  margin-top: 40px;
}

.iq-delete-results form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.iq-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  cursor: pointer;
}

.iq-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 40px;
  text-align: center;
  background: var(--paper);
  border-top: 2px dashed var(--stitch);
  color: var(--ink-2);
  font: 400 14px/1.55 var(--ui);
}

.iq-foot p {
  margin: 6px 0 0;
}

.iq-foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
  font: 600 14px/1.3 var(--ui);
  color: var(--ink);
}

.iq-foot-links a {
  color: var(--ink);
  text-decoration: none;
}

.iq-foot-links a:hover {
  text-decoration: underline;
}

@media (min-width: 960px) {
  .iq-foot {
    border-top: 0;
    border-radius: 6px;
    padding: 28px 40px;
    margin: 0 auto 48px;
  }
}

.iq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CSP-safe percentage utility classes (zero inline style= attributes) */
.iq-w-0 { width: 0%; }
.iq-w-1 { width: 1%; }
.iq-w-2 { width: 2%; }
.iq-w-3 { width: 3%; }
.iq-w-4 { width: 4%; }
.iq-w-5 { width: 5%; }
.iq-w-6 { width: 6%; }
.iq-w-7 { width: 7%; }
.iq-w-8 { width: 8%; }
.iq-w-9 { width: 9%; }
.iq-w-10 { width: 10%; }
.iq-w-11 { width: 11%; }
.iq-w-12 { width: 12%; }
.iq-w-13 { width: 13%; }
.iq-w-14 { width: 14%; }
.iq-w-15 { width: 15%; }
.iq-w-16 { width: 16%; }
.iq-w-17 { width: 17%; }
.iq-w-18 { width: 18%; }
.iq-w-19 { width: 19%; }
.iq-w-20 { width: 20%; }
.iq-w-21 { width: 21%; }
.iq-w-22 { width: 22%; }
.iq-w-23 { width: 23%; }
.iq-w-24 { width: 24%; }
.iq-w-25 { width: 25%; }
.iq-w-26 { width: 26%; }
.iq-w-27 { width: 27%; }
.iq-w-28 { width: 28%; }
.iq-w-29 { width: 29%; }
.iq-w-30 { width: 30%; }
.iq-w-31 { width: 31%; }
.iq-w-32 { width: 32%; }
.iq-w-33 { width: 33%; }
.iq-w-34 { width: 34%; }
.iq-w-35 { width: 35%; }
.iq-w-36 { width: 36%; }
.iq-w-37 { width: 37%; }
.iq-w-38 { width: 38%; }
.iq-w-39 { width: 39%; }
.iq-w-40 { width: 40%; }
.iq-w-41 { width: 41%; }
.iq-w-42 { width: 42%; }
.iq-w-43 { width: 43%; }
.iq-w-44 { width: 44%; }
.iq-w-45 { width: 45%; }
.iq-w-46 { width: 46%; }
.iq-w-47 { width: 47%; }
.iq-w-48 { width: 48%; }
.iq-w-49 { width: 49%; }
.iq-w-50 { width: 50%; }
.iq-w-51 { width: 51%; }
.iq-w-52 { width: 52%; }
.iq-w-53 { width: 53%; }
.iq-w-54 { width: 54%; }
.iq-w-55 { width: 55%; }
.iq-w-56 { width: 56%; }
.iq-w-57 { width: 57%; }
.iq-w-58 { width: 58%; }
.iq-w-59 { width: 59%; }
.iq-w-60 { width: 60%; }
.iq-w-61 { width: 61%; }
.iq-w-62 { width: 62%; }
.iq-w-63 { width: 63%; }
.iq-w-64 { width: 64%; }
.iq-w-65 { width: 65%; }
.iq-w-66 { width: 66%; }
.iq-w-67 { width: 67%; }
.iq-w-68 { width: 68%; }
.iq-w-69 { width: 69%; }
.iq-w-70 { width: 70%; }
.iq-w-71 { width: 71%; }
.iq-w-72 { width: 72%; }
.iq-w-73 { width: 73%; }
.iq-w-74 { width: 74%; }
.iq-w-75 { width: 75%; }
.iq-w-76 { width: 76%; }
.iq-w-77 { width: 77%; }
.iq-w-78 { width: 78%; }
.iq-w-79 { width: 79%; }
.iq-w-80 { width: 80%; }
.iq-w-81 { width: 81%; }
.iq-w-82 { width: 82%; }
.iq-w-83 { width: 83%; }
.iq-w-84 { width: 84%; }
.iq-w-85 { width: 85%; }
.iq-w-86 { width: 86%; }
.iq-w-87 { width: 87%; }
.iq-w-88 { width: 88%; }
.iq-w-89 { width: 89%; }
.iq-w-90 { width: 90%; }
.iq-w-91 { width: 91%; }
.iq-w-92 { width: 92%; }
.iq-w-93 { width: 93%; }
.iq-w-94 { width: 94%; }
.iq-w-95 { width: 95%; }
.iq-w-96 { width: 96%; }
.iq-w-97 { width: 97%; }
.iq-w-98 { width: 98%; }
.iq-w-99 { width: 99%; }
.iq-w-100 { width: 100%; }
.iq-left-0 { left: 0%; }
.iq-left-1 { left: 1%; }
.iq-left-2 { left: 2%; }
.iq-left-3 { left: 3%; }
.iq-left-4 { left: 4%; }
.iq-left-5 { left: 5%; }
.iq-left-6 { left: 6%; }
.iq-left-7 { left: 7%; }
.iq-left-8 { left: 8%; }
.iq-left-9 { left: 9%; }
.iq-left-10 { left: 10%; }
.iq-left-11 { left: 11%; }
.iq-left-12 { left: 12%; }
.iq-left-13 { left: 13%; }
.iq-left-14 { left: 14%; }
.iq-left-15 { left: 15%; }
.iq-left-16 { left: 16%; }
.iq-left-17 { left: 17%; }
.iq-left-18 { left: 18%; }
.iq-left-19 { left: 19%; }
.iq-left-20 { left: 20%; }
.iq-left-21 { left: 21%; }
.iq-left-22 { left: 22%; }
.iq-left-23 { left: 23%; }
.iq-left-24 { left: 24%; }
.iq-left-25 { left: 25%; }
.iq-left-26 { left: 26%; }
.iq-left-27 { left: 27%; }
.iq-left-28 { left: 28%; }
.iq-left-29 { left: 29%; }
.iq-left-30 { left: 30%; }
.iq-left-31 { left: 31%; }
.iq-left-32 { left: 32%; }
.iq-left-33 { left: 33%; }
.iq-left-34 { left: 34%; }
.iq-left-35 { left: 35%; }
.iq-left-36 { left: 36%; }
.iq-left-37 { left: 37%; }
.iq-left-38 { left: 38%; }
.iq-left-39 { left: 39%; }
.iq-left-40 { left: 40%; }
.iq-left-41 { left: 41%; }
.iq-left-42 { left: 42%; }
.iq-left-43 { left: 43%; }
.iq-left-44 { left: 44%; }
.iq-left-45 { left: 45%; }
.iq-left-46 { left: 46%; }
.iq-left-47 { left: 47%; }
.iq-left-48 { left: 48%; }
.iq-left-49 { left: 49%; }
.iq-left-50 { left: 50%; }
.iq-left-51 { left: 51%; }
.iq-left-52 { left: 52%; }
.iq-left-53 { left: 53%; }
.iq-left-54 { left: 54%; }
.iq-left-55 { left: 55%; }
.iq-left-56 { left: 56%; }
.iq-left-57 { left: 57%; }
.iq-left-58 { left: 58%; }
.iq-left-59 { left: 59%; }
.iq-left-60 { left: 60%; }
.iq-left-61 { left: 61%; }
.iq-left-62 { left: 62%; }
.iq-left-63 { left: 63%; }
.iq-left-64 { left: 64%; }
.iq-left-65 { left: 65%; }
.iq-left-66 { left: 66%; }
.iq-left-67 { left: 67%; }
.iq-left-68 { left: 68%; }
.iq-left-69 { left: 69%; }
.iq-left-70 { left: 70%; }
.iq-left-71 { left: 71%; }
.iq-left-72 { left: 72%; }
.iq-left-73 { left: 73%; }
.iq-left-74 { left: 74%; }
.iq-left-75 { left: 75%; }
.iq-left-76 { left: 76%; }
.iq-left-77 { left: 77%; }
.iq-left-78 { left: 78%; }
.iq-left-79 { left: 79%; }
.iq-left-80 { left: 80%; }
.iq-left-81 { left: 81%; }
.iq-left-82 { left: 82%; }
.iq-left-83 { left: 83%; }
.iq-left-84 { left: 84%; }
.iq-left-85 { left: 85%; }
.iq-left-86 { left: 86%; }
.iq-left-87 { left: 87%; }
.iq-left-88 { left: 88%; }
.iq-left-89 { left: 89%; }
.iq-left-90 { left: 90%; }
.iq-left-91 { left: 91%; }
.iq-left-92 { left: 92%; }
.iq-left-93 { left: 93%; }
.iq-left-94 { left: 94%; }
.iq-left-95 { left: 95%; }
.iq-left-96 { left: 96%; }
.iq-left-97 { left: 97%; }
.iq-left-98 { left: 98%; }
.iq-left-99 { left: 99%; }
.iq-left-100 { left: 100%; }

/* The birth month/year controls follow Sigil age-step r2 spacing. */
.iq-age-picker { display: block; margin: 0 0 1.25rem; }

/* S7 combined profile (frames-r5 q13) */
/* Page kickers share About's italic Newsreader eyebrow (Sigil r2 nit 3). */
.iq-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--read);
  font-style: italic;
  font-weight: 400;
  font-size: 0.96rem;
}

.iq-profile-subline {
  margin: 0 0 12px;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
}

.iq-profile-progress {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.iq-profile-progress .iq-patch-strip { flex-wrap: wrap; margin: 0; }

.iq-profile-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.iq-profile-bar-fill {
  height: 100%;
  background: var(--accent);
}

.iq-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.iq-core-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 48px;
}

.iq-core-grid .iq-trait-block { margin: 14px 0; }

.iq-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.iq-badge {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 14px;
  border: 1.5px solid var(--stitch);
  border-radius: 14px;
  background: var(--paper);
}

.iq-badge small {
  color: var(--muted);
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-badge b {
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.iq-fb {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.iq-fb-q {
  color: var(--muted);
  font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-fb-btn { width: 100%; }

.iq-fb-btn.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.iq-callout {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  border: 2px dashed var(--stitch);
  border-radius: 16px;
  background: var(--paper);
}

.iq-callout .iq-h2, .iq-callout .iq-h3, .iq-callout .iq-body { margin-top: 0; }

.iq-fq {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.iq-fq-set {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.iq-fq-legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.iq-opt {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--stitch);
  border-radius: 12px;
  background: var(--paper);
  font: 500 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.iq-opt input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }

.iq-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (min-width: 720px) {
  .iq-core-grid { grid-template-columns: 1fr 1fr; }
  .iq-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .iq-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .iq-fb-btn { width: auto; min-width: 150px; }
}

/* S8 sharing: public page and owner controls */
.iq-share-hero { text-align: left; }
.iq-share-hero .iq-patch-strip { margin: 4px 0 14px; }
.iq-share-traits {
  margin: 6px 0 14px;
  color: var(--accent);
  font-style: italic;
  font-size: 1.08rem;
}
.iq-share-quote {
  margin: 16px 0 0;
  padding: 10px 0 10px 14px;
  border-left: 3px solid var(--stitch);
  font-style: italic;
  line-height: 1.5;
}
.iq-share-thread { margin: 14px 0 18px; }
.iq-share-thread-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}
.iq-share-cta {
  margin: 24px 0 12px;
  padding: 20px 18px;
  border: 1px dashed var(--stitch);
  border-radius: 12px;
  background: var(--accent-soft);
}
.iq-share-cta .iq-cta-stack { margin-top: 12px; }
.iq-share-controls { margin: 8px 0 16px; }
.iq-share-url-label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.iq-share-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.iq-share-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.95rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.iq-share-form { margin: 14px 0; }
.iq-share-controls .iq-cta-stack form { display: contents; }
@media (min-width: 720px) {
  .iq-share-controls .iq-cta-stack { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .iq-share-url-row { flex-direction: column; }
}

/* S10 social sign-in buttons and settings sign-in methods moved to #1050 account forms block below. */

/* S9 preview access-code gate */
.iq-gate-card {
  max-width: 440px;
  margin-top: 48px;
}

.iq-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.iq-gate-label {
  font: 600 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-gate-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.iq-gate-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.95rem;
}

/* In-text links (CC BY-ND license link and friends): the site's terra link color, not browser blue. */
.iq-link,
.iq-link:visited {
  color: var(--act);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iq-link:hover {
  color: var(--act-deep);
}

/* Header sign-out: a POST form, drawn like the "Your account" outline button (Sigil r2 nit 2). */
.iq-nav .iq-btn { white-space: nowrap; }

.iq-nav-inline {
  display: none;  /* phones: the header keeps only "Your account"; settings carries Sign out */
  margin: 0;
}

@media (min-width: 600px) {
  .iq-nav-inline { display: inline-flex; }
}

/* Crew-only /admin/funnel dashboard (27e0fab9, Sigil q19 sketch) */
.iq-admin-body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.iq-admin-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: grid;
  gap: 24px;
}

.iq-admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.iq-admin-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iq-admin-title {
  margin: 0;
  font: 700 28px/1.15 var(--ui);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.iq-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--paper);
  font: 600 13px/1.2 var(--ui);
  color: var(--ink-2);
}

.iq-admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.iq-admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iq-admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font: 500 14px/1.2 var(--ui);
  cursor: pointer;
}

.iq-admin-chip:hover {
  border-color: var(--ink-2);
}

.iq-admin-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.iq-admin-logout {
  margin: 0;
}

.iq-admin-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 1px 2px rgba(42, 37, 33, 0.04);
}

.iq-admin-card-title {
  margin: 0 0 14px;
  font: 700 19px/1.25 var(--ui);
  color: var(--ink);
}

.iq-admin-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 960px) {
  .iq-admin-split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.iq-admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.iq-admin-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 15px/1.35 var(--ui);
}

.iq-admin-table th,
.iq-admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.iq-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.iq-admin-table th {
  font: 600 13px/1.2 var(--ui);
  color: var(--ink-2);
  padding-top: 4px;
  padding-bottom: 10px;
}

.iq-admin-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.iq-admin-table-sm th,
.iq-admin-table-sm td {
  padding: 6px 8px;
  font-size: 14px;
}

.iq-admin-bar-col {
  width: 44%;
  min-width: 160px;
}

.iq-admin-bar-track {
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
}

.iq-admin-bar-fill {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: var(--act);
}

.iq-admin-code {
  font: 500 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-2);
}

.iq-admin-muted {
  color: var(--ink-2);
  font: 400 14px/1.4 var(--ui);
  margin: 0;
}

.iq-admin-details-summary {
  cursor: pointer;
  font: 600 15px/1.3 var(--ui);
  color: var(--ink);
}

.iq-admin-tests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 860px) {
  .iq-admin-tests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.iq-admin-subcard {
  background: var(--sunk);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.iq-admin-test-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.iq-admin-subcard-title {
  margin: 0;
  font: 700 16px/1.25 var(--ui);
}

.iq-admin-test-meta {
  font: 500 13px/1.3 var(--ui);
  color: var(--ink-2);
}

.iq-admin-foot {
  font: 400 13px/1.4 var(--ui);
  color: var(--ink-2);
  padding: 0 2px;
}

/* Landing page r2 (Sigil #1046, gen_iq17.py): hero + Sam sample quilt, 42% fabric swatches, colorful test cards */
.iq-land {
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  display: grid;
  gap: 0;
}

.iq-land-hero {
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  margin-top: -26px;
  position: relative;
  padding: 30px 20px 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  box-shadow: none;
}

.iq-land-h1 {
  margin: 0 0 16px;
  font-family: var(--head);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.iq-land-lead {
  margin: 0 0 26px;
  font: 400 19px/1.6 var(--read);
  max-width: 34ch;
}

.iq-land-blurb {
  background: var(--paper);
  border-radius: 0;
  padding: 0 20px 30px;
  box-shadow: none;
}

.iq-land-blurb-p {
  margin: 0 0 14px;
  font: 400 19px/1.6 var(--read);
  max-width: 62ch;
}

.iq-land-blurb-p:last-child {
  margin-bottom: 0;
}

.iq-land-go {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.iq-land-main-btn {
  min-height: 52px;
  padding: 0 26px;
  font-size: 18px;
}

.iq-land-note {
  font: 500 16px/1.4 var(--ui);
  color: var(--ink-2);
  margin: 0;
}

.iq-sample {
  margin: 0;
  background: var(--sunk);
  border-radius: 14px;
  padding: 20px 18px 16px;
  transform: rotate(0.8deg);
  box-shadow: 0 18px 34px -20px rgba(60, 35, 20, 0.55);
  outline: 2px dashed var(--stitch);
  outline-offset: -10px;
}

.iq-sample-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.iq-sample-cell {
  width: calc(33.3% - 10px);
}

.iq-sample-grid .iq-pt {
  width: 100%;
}

.iq-sample-grid .iq-pt svg {
  width: 100%;
  height: auto;
}

.iq-sample-tag {
  font: 600 13px/1.2 var(--ui);
  color: var(--ink-2);
  text-align: center;
  margin-top: 4px;
}

.iq-sample-cap {
  margin: 14px 0 0;
  text-align: center;
  font: italic 400 18px/1.35 var(--read);
  color: var(--ink-2);
}

.iq-land-mine {
  background: var(--paper);
  border-radius: 0;
  padding: 4px 20px 30px;
  display: grid;
  gap: 14px;
  box-shadow: none;
}

.iq-land-mine-h {
  margin: 0;
  font-size: 25px;
}

.iq-sws {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
  font: 600 12px/1.25 var(--ui);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
}

.iq-sws .iq-hub-patch-cell {
  gap: 0;
}

.iq-sws .iq-pt {
  width: 100%;
}

.iq-sws .iq-hub-patch-cell.is-todo .iq-pt {
  opacity: 0.42;
  filter: saturate(0.7);
}

.iq-sws .iq-pt svg {
  width: 100%;
  max-width: none;
  height: auto;
}

.iq-sws .iq-hub-patch-label {
  margin-top: 8px;
  font: inherit;
  color: inherit;
}

.iq-sewn {
  margin: 0;
  font: italic 400 20px/1.4 var(--read);
  color: var(--ink);
}

.iq-land-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.iq-tests-h {
  background: var(--paper);
  margin: 0;
  padding: 6px 20px 18px;
  font-size: 25px;
}

.iq-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px 24px;
  background: transparent;
}

.iq-tc {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: 0 18px 36px -24px rgba(60, 35, 20, 0.55);
}

.iq-tc--p1 { --c: var(--p1); }
.iq-tc--p2 { --c: var(--p2); }
.iq-tc--p3 { --c: var(--p3); }
.iq-tc--p4 { --c: var(--p4); }
.iq-tc--p5 { --c: var(--p5); }

.iq-tch {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: color-mix(in srgb, var(--c) 20%, var(--paper));
  border-bottom: 2px dashed color-mix(in srgb, var(--c) 45%, var(--paper));
}

.iq-tch h3 {
  margin: 0;
  font: 400 26px/1.15 var(--head);
  color: var(--ink);
}

.iq-tc-bd {
  padding: 20px 22px 22px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 12px;
}

.iq-tc-desc {
  margin: 0;
  font: 400 16.5px/1.6 var(--read);
  color: var(--ink);
}

.iq-tc-meta {
  font: 500 15px/1.3 var(--ui);
  color: var(--ink-2);
}

.iq-tc-meta.is-done {
  color: var(--ok);
  font-weight: 600;
}

.iq-tc-btn {
  margin-top: 8px;
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}

@media (min-width: 960px) {
  .iq-land {
    max-width: 1120px;
    width: calc(100% - 40px);
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 40px auto 48px;
    gap: 28px;
  }

  .iq-land-hero {
    border-radius: 10px;
    margin-top: 0;
    padding: 56px 60px;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 30px 60px -24px rgba(60, 35, 20, 0.55);
  }

  .iq-land-h1 {
    font-size: 46px;
  }

  .iq-land-lead,
  .iq-land-blurb-p {
    font-size: 21px;
  }

  .iq-land-go {
    justify-items: start;
  }

  .iq-land-main-btn {
    min-width: 260px;
  }

  .iq-sample {
    padding: 26px 26px 20px;
    transform: rotate(1.2deg);
  }

  .iq-land-blurb {
    border-radius: 10px;
    padding: 30px 60px 32px;
    box-shadow: 0 20px 40px -26px rgba(60, 35, 20, 0.5);
  }

  .iq-land-mine {
    border-radius: 10px;
    padding: 30px 60px 32px;
    box-shadow: 0 20px 40px -26px rgba(60, 35, 20, 0.5);
  }

  .iq-land-mine-h {
    font-size: 28px;
  }

  .iq-sws {
    gap: 14px;
    font-size: 14px;
  }

  .iq-tests-h {
    margin: 12px 0 -6px;
    background: var(--paper);
    justify-self: start;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 28px;
    box-shadow: 0 12px 24px -18px rgba(60, 35, 20, 0.45);
  }

  .iq-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 0;
  }
}

/* Account forms (#1050, Sigil q20-forms.css) */
.iq-sheet-acct {
  max-width: 560px;
}

.iq-sheet-acct-wide {
  max-width: 620px;
}

.acct {
  display: grid;
  gap: 24px;
}

.acct > h1,
.acct > .iq-h1 {
  margin: 0;
}

.acct > h1 + .iq-lead,
.acct > .iq-h1 + .iq-lead {
  margin-top: -6px;
}

.acct .iq-notice,
.acct .iq-muted-line,
.acct > .iq-body {
  margin: 0;
}

.iq-form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.iq-field {
  display: grid;
  gap: 8px;
  font: 600 16px/1.25 var(--ui);
  color: var(--ink);
}

.iq-field small {
  font: 400 15px/1.4 var(--ui);
  color: var(--ink-2);
}

.iq-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  border: 1.5px solid var(--stitch);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 16px;
  font: 400 18px/1.3 var(--ui);
  color: var(--ink);
}

.iq-input:focus {
  outline: 3px solid color-mix(in srgb, var(--act) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--act);
}

.iq-input::placeholder {
  color: var(--ink-2);
}

.iq-input[disabled] {
  background: var(--sunk);
  color: var(--ink-2);
}

.iq-code {
  font: 600 30px/1 var(--ui);
  letter-spacing: 0.45em;
  text-align: center;
  padding-left: 0.45em;
  max-width: 300px;
}

.iq-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--sunk);
  font: 400 17px/1.5 var(--read);
  color: var(--ink);
  cursor: pointer;
}

.iq-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--act);
}

.iq-check a {
  color: var(--act);
  font-weight: 600;
}

.iq-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font: 500 15px/1 var(--ui);
  color: var(--ink-2);
}

.iq-or::before,
.iq-or::after {
  content: "";
  border-top: 1.5px dashed var(--stitch);
}

.iq-oauth {
  display: grid;
  gap: 10px;
}

.iq-oauth .iq-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.iq-oauth svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.iq-form .iq-btn-primary {
  width: 100%;
  justify-content: center;
}

.iq-btn-start {
  justify-self: start;
}

.iq-btn-full {
  width: 100%;
  justify-content: center;
  padding-block: 8px;
  text-align: center;
}

.iq-alt {
  display: grid;
  gap: 10px;
  border-top: 1.5px dashed var(--stitch);
  padding-top: 20px;
}

.iq-alt p {
  margin: 0;
  font: 400 17px/1.5 var(--read);
  color: var(--ink-2);
}

.iq-alt .iq-btn {
  justify-content: center;
}

.iq-lead {
  margin: 0;
  font: 400 19px/1.6 var(--read);
  color: var(--ink-2);
}

.iq-done {
  border: 2px dashed var(--p2);
  border-radius: 16px;
  padding: 20px;
  background: color-mix(in srgb, var(--p2) 8%, var(--paper));
  font: 400 19px/1.6 var(--read);
  margin: 0;
}

.iq-row2 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.iq-row2 form {
  margin: 0;
  display: flex;
}

.iq-row2 .iq-btn {
  justify-content: center;
}

@media (max-width: 599px) {
  .iq-row2 {
    display: grid;
  }

  .iq-row2 form,
  .iq-row2 .iq-btn {
    width: 100%;
  }
}

.iq-sec {
  display: grid;
  gap: 16px;
  border-top: 1.5px dashed var(--stitch);
  padding-top: 22px;
}

.iq-sec h2 {
  margin: 0;
  font: 400 24px/1.25 var(--head);
  color: var(--ink);
}

.iq-sec p {
  margin: 0;
  font: 400 17px/1.55 var(--read);
  color: var(--ink-2);
}

.iq-sec > form {
  display: grid;
  margin: 0;
}

.iq-conn {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iq-conn li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 10px 16px;
  background: var(--paper);
  font: 600 17px/1.3 var(--ui);
}

.iq-conn li svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.iq-conn li span {
  flex: 1;
  min-width: 0;
}

.iq-conn small {
  display: block;
  font: 400 14px/1.3 var(--ui);
  color: var(--ink-2);
}

/* The email row's button is long: on a phone it drops under the label instead of squeezing it. */
.iq-conn .iq-conn-pw {
  flex-wrap: wrap;
}

.iq-conn .iq-conn-pw span {
  flex: 1 0 12rem;
}

.iq-conn form {
  display: inline-flex;
  margin: 0;
  flex: none;
}

/* Touch targets (8834a0f9, Sigil): the header buttons, the sign-in method buttons, "Forgot your password?"
   and the runner's "Save and leave" are at least 44px tall at every width. Only the height changes. */
.iq-nav .iq-btn,
.iq-conn .iq-btn,
.iq-btn.iq-btn-start,
.iq-runner-head .iq-btn { min-height: 44px; }

.iq-danger {
  border: 1.5px solid #b3503c;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
  background: color-mix(in srgb, #b3503c 6%, var(--paper));
}

.iq-danger h2 {
  margin: 0;
  font: 400 24px/1.25 var(--head);
  color: #b3503c;
}

.iq-danger p {
  margin: 0;
  font: 400 17px/1.55 var(--read);
  color: var(--ink);
}

.iq-btn-danger {
  width: 100%;
  border: 1.5px solid #b3503c;
  color: #b3503c;
  background: transparent;
  justify-content: center;
}

.iq-btn-danger:hover {
  background: color-mix(in srgb, #b3503c 10%, transparent);
}

@media (prefers-color-scheme: dark) {
  .iq-danger h2 {
    color: #f0a08a;
  }

  .iq-btn-danger {
    color: #f0a08a;
    border-color: #f0a08a;
  }
}

html[data-theme="dark"] .iq-danger h2 {
  color: #f0a08a;
}

html[data-theme="dark"] .iq-btn-danger {
  color: #f0a08a;
  border-color: #f0a08a;
}

/* Support desk thread: keep the line breaks people typed (look pending Sigil frames). */
.iq-thread-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Help desk (Decision #1047, shots-r19-support) */
.iq-help-flow { display: grid; gap: 18px; }
.iq-help-flow > * { margin-top: 0; margin-bottom: 0; }
.iq-help-search { display: flex; gap: 10px; }
.iq-help-input { flex: 1; min-height: 54px; border: 1.5px solid var(--stitch); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 0 16px; font: 400 18px/1.3 var(--ui); width: 100%; box-sizing: border-box; }
.iq-help-ta { min-height: 130px; padding-top: 14px; font-family: var(--read); resize: vertical; }
.iq-help-input:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }
.iq-help-answers { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.iq-help-ans + .iq-help-ans { border-top: 1.5px solid var(--line); }
.iq-help-ans summary { padding: 16px 18px; font: 600 18px/1.35 var(--ui); cursor: pointer; min-height: 44px; }
.iq-help-ans[open] { background: color-mix(in srgb, var(--p2) 8%, var(--paper)); }
.iq-help-ans-body { padding: 0 18px 16px; display: grid; gap: 8px; }
.iq-help-ans-body p { margin: 0; font: 400 18px/1.6 var(--read); }
.iq-help-helped { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.iq-help-helped span { font: 600 16px/1.3 var(--ui); color: var(--ink-2); }
.iq-help-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iq-help-topic { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; background: var(--paper); text-decoration: none; color: inherit; align-content: start; }
.iq-help-topic b { font: 600 17px/1.3 var(--ui); }
.iq-help-topic small { font: 400 16px/1.4 var(--read); color: var(--ink-2); }
.iq-help-real { margin: 0; font: italic 400 17px/1.5 var(--read); color: var(--ink-2); }
.iq-help-form { display: grid; gap: 18px; }
.iq-help-field { display: grid; gap: 8px; }
.iq-help-label { font: 600 16px/1.2 var(--ui); color: var(--ink); padding: 0; }
.iq-help-pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.iq-help-pills legend { width: 100%; margin-bottom: 8px; }
.iq-help-pill { position: relative; }
.iq-help-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.iq-help-pill span { display: inline-flex; align-items: center; min-height: 44px; border: 1.5px solid var(--stitch); border-radius: 99px; padding: 8px 14px; font: 500 16px/1.2 var(--ui); background: var(--paper); }
.iq-help-pill input:checked + span { background: var(--act); border-color: var(--act); color: var(--on-act); }
.iq-help-pill input:focus-visible + span { outline: 3px solid var(--act); outline-offset: 2px; }
.iq-help-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.iq-help-done { border: 2px dashed var(--p2); border-radius: 16px; padding: 24px; display: grid; gap: 10px; background: color-mix(in srgb, var(--p2) 8%, var(--paper)); }
.iq-help-done p { margin: 0; font: 400 18px/1.6 var(--read); }
.iq-help-back { justify-self: start; gap: 8px; margin-bottom: 2px; }
.iq-help-send { min-width: 180px; }
@media (min-width: 960px) { .iq-help-back { margin-bottom: 10px; } }
.iq-help-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.iq-help-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper); text-decoration: none; color: inherit; min-height: 44px; }
.iq-help-row b { font: 600 18px/1.3 var(--ui); overflow-wrap: anywhere; }
.iq-help-row small { display: block; font: 400 15px/1.4 var(--ui); color: var(--ink-2); margin-top: 3px; }
.iq-help-no { font: 600 15px/1 var(--ui); color: var(--ink-2); }
.iq-help-st { display: inline-block; border-radius: 99px; padding: 6px 12px; font: 600 14px/1 var(--ui); white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--p5) 20%, var(--paper)); }
.iq-help-st-waiting_on_you { background: color-mix(in srgb, var(--p3) 28%, var(--paper)); }
.iq-help-st-solved { background: color-mix(in srgb, var(--p2) 22%, var(--paper)); }
.iq-help-msg { border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.iq-help-msg.is-me { background: var(--sunk); }
.iq-help-msg.is-us { border: 1.5px solid var(--p2); background: color-mix(in srgb, var(--p2) 8%, var(--paper)); }
.iq-help-who { font: 600 15px/1.2 var(--ui); color: var(--ink-2); }
.iq-help-msg p { margin: 0; font: 400 18px/1.6 var(--read); }
.iq-help-note { margin: 0; font: 400 17px/1.5 var(--read); color: var(--ink-2); }
/* 827243ba: the crisis line is its own sentence, not a caption for the button or note above it (Tally H1). Two classes so it wins over .iq-body and .iq-help-note. */
.iq-body.iq-crisis-line, .iq-help-note.iq-crisis-line { margin-top: 24px; }
.iq-help-error { margin: 0; font: 600 16px/1.4 var(--ui); color: var(--act-deep); }
/* eb628cf9: Add a screenshot (input is visually hidden, the label is the button) */
.iq-shot { position: relative; cursor: pointer; }
.iq-shot-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.iq-shot:focus-within { outline: 3px solid var(--act); outline-offset: 2px; }
.iq-shot-names:empty { display: none; }
.iq-shot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.iq-shot-list a { display: block; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--sunk); }
.iq-shot-list a:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }
.iq-shot-list img { display: block; width: 120px; height: 90px; object-fit: cover; }
@media (max-width: 600px) {
  .iq-help-search { flex-direction: column; }
  .iq-help-topics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .iq-help-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .iq-help-no { grid-column: 1 / -1; }
  .iq-help-helped { display: grid; grid-template-columns: 1fr; }
  .iq-help-actions .iq-btn { width: 100%; }
}

/* The public intro page before each test (f2cddab3, Sigil r1). */
.iq-intro-top { margin: 0 0 20px; }
.iq-intro-top .iq-btn { min-height: 44px; padding: 8px 16px; font-size: .92rem; }
.iq-intro-head { display: flex; gap: 16px; align-items: center; margin: 0 0 12px; }
.iq-intro-head svg { flex: none; width: 64px; height: 64px; }
.iq-intro-head .iq-h1 { margin: 0; }
.iq-intro-lead { font-family: var(--read); font-size: 1.15rem; line-height: 1.5; margin: 0 0 18px; color: var(--ink); }
.iq-intro-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.iq-intro-facts li { font: 600 .9rem/1 var(--ui); padding: 9px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--ink); }
.iq-intro-sec { margin: 0 0 24px; }
.iq-intro-sec h2 { font-size: 1.2rem; margin: 0 0 10px; }
.iq-intro-sec p { font-family: var(--read); font-size: 1.02rem; line-height: 1.55; margin: 0; }
.iq-intro-looks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.iq-intro-looks li { display: grid; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--stitch); background: var(--sunk); border-radius: 0 8px 8px 0; font: 600 .98rem/1.3 var(--ui); }
.iq-intro-looks li small { font: 400 .9rem/1.35 var(--ui); color: var(--ink-2); }
.iq-intro-src p + p { margin-top: 8px; }
.iq-intro-src a { color: inherit; }
.iq-intro-sample { margin: 0 0 26px; padding: 20px 18px; border: 1px dashed var(--stitch); border-radius: 14px; background: var(--paper); }
.iq-intro-sample-tag { font: 700 .78rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--act); margin: 0 0 12px; }
.iq-intro-sample .iq-question-text { font-size: 1.3rem; margin-bottom: 16px; }
.iq-intro-sample .iq-choices { margin: 0; gap: 8px; }
.iq-intro-sample .iq-choice-pill { padding: 11px 14px; cursor: default; }
.iq-intro-start { padding: 20px 0 0; border-top: 1px solid var(--line); }
.iq-intro-consent { font: 400 .95rem/1.5 var(--ui); color: var(--ink-2); margin: 0 0 14px; }
.iq-intro-consent a { color: var(--act); }
.iq-intro-start .iq-btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
@media (min-width: 960px) {
  .iq-intro-top { margin-bottom: 28px; }
  .iq-intro-head svg { width: 80px; height: 80px; }
  .iq-intro-looks { grid-template-columns: 1fr 1fr; }
  .iq-intro-start .iq-btn { width: auto; min-width: 260px; }
}
