:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #556274;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #e0e7ff;
  --accent-text: #3730a3;
  --neg: #e11d48;
  --pos: #047857;
  --pos-text: #065f46;
  --neg-text: #9f1239;
  --track: #e2e8f0;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  --radius: 14px;
  color-scheme: light;
}
.dark {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --border: #2e2e2e;
  --text: #f2f2f2;
  --text-2: #c8c8c8;
  --text-3: #9e9e9e;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: rgb(129 140 248 / 0.16);
  --accent-text: #c7d2fe;
  --neg: #fb7185;
  --pos: #34d399;
  --pos-text: #34d399;
  --neg-text: #fb7185;
  --track: #2e2e2e;
  --shadow: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.55 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica Neue,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h2 {
  font-size: 22px;
  margin: 0 0 4px;
}
h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}
p {
  margin: 0 0 10px;
}
.muted {
  color: var(--text-3);
}
button {
  font: inherit;
  color: inherit;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.home {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.home:hover {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
}
.nav button:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav button.on {
  color: var(--accent);
}
.nav .brand {
  font-weight: 650;
  color: var(--text);
  font-size: 15px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.icon-btn:hover {
  border-color: var(--accent);
}
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
}
.btn:hover:not(:disabled) {
  border-color: var(--accent);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.dark .btn.primary {
  color: #0b0b1a;
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn.ghost:hover:not(:disabled) {
  border-color: var(--border);
}
.btn.ghost.on {
  color: var(--accent);
}
.btn.danger {
  color: var(--neg-text);
}
.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row.wrap {
  flex-wrap: wrap;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 8px;
}
.intro h1 {
  font-size: clamp(40px, 8vw, 60px);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 680px;
}
.resume {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 0;
}
.resume .muted {
  display: block;
  font-size: 14px;
}
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 28px 0;
}
.mode {
  text-align: left;
  padding: 22px;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.mode:hover,
.mode:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.mode-title {
  font-size: 19px;
  font-weight: 650;
}
.mode-meta {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.mode-desc {
  color: var(--text-3);
  font-size: 14px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.facts div {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.facts strong {
  display: block;
  font-size: 22px;
}
.facts span {
  color: var(--text-3);
  font-size: 13px;
}
.privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 14px;
}
.privacy svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--pos);
}
.quiz {
  max-width: 680px;
  margin: 0 auto;
}
.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.quiz-head .chip {
  max-width: 62%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip {
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  margin: 12px 0 10px;
  overflow: hidden;
}
.progress div {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s;
}
.sec-intro {
  font-size: 14px;
}
.qtext {
  font-size: clamp(22px, 4.2vw, 30px);
  font-weight: 600;
  margin: 36px 0;
  min-height: 2.4em;
}
.likert {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.likert-end {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  width: 70px;
}
.likert-end:first-child {
  text-align: right;
  color: var(--neg-text);
}
.likert-end:last-child {
  color: var(--pos-text);
}
.likert-dots {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 16px);
}
.dot {
  --c: var(--text-3);
  border-radius: 50%;
  border: 2.5px solid var(--c);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.12s,
    transform 0.12s;
}
.dot:hover {
  transform: scale(1.1);
  background: color-mix(in srgb, var(--c) 20%, transparent);
}
.dot.on {
  background: var(--c);
}
.d0,
.d6 {
  width: 48px;
  height: 48px;
}
.d1,
.d5 {
  width: 40px;
  height: 40px;
}
.d2,
.d4 {
  width: 32px;
  height: 32px;
}
.d3 {
  width: 26px;
  height: 26px;
}
.d0,
.d1,
.d2 {
  --c: var(--neg);
}
.d4,
.d5,
.d6 {
  --c: var(--pos);
}
.likert-hint {
  text-align: center;
  font-size: 13px;
  margin-top: 14px;
  min-height: 20px;
}
.choices {
  display: grid;
  gap: 10px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 16px;
}
.choice:hover {
  border-color: var(--accent);
}
.choice.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.key {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-3);
}
.quiz-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-top: 44px;
  align-items: center;
}
.quiz-nav > :first-child {
  justify-self: start;
}
.quiz-nav > :last-child {
  justify-self: end;
}
@media (max-width: 520px) {
  .likert {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "dots dots" "l r";
    gap: 10px;
  }
  .likert-dots {
    grid-area: dots;
    justify-content: center;
  }
  .likert-end {
    width: auto;
  }
  .likert-end:first-child {
    grid-area: l;
    text-align: left;
  }
  .likert-end:last-child {
    grid-area: r;
    text-align: right;
  }
  .d0,
  .d6 {
    width: 40px;
    height: 40px;
  }
  .d1,
  .d5 {
    width: 34px;
    height: 34px;
  }
  .d2,
  .d4 {
    width: 28px;
    height: 28px;
  }
  .d3 {
    width: 22px;
    height: 22px;
  }
  .quiz-nav {
    grid-template-columns: 1fr 1fr;
  }
  .quiz-nav > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .quiz-nav > :nth-child(2) .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}
.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.hero .lead {
  margin-bottom: 8px;
}
.helix {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 10px;
}
.backbone {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 2;
  opacity: 0.55;
}
.stack {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
}
.stack.tall {
  height: 22px;
  border-radius: 8px;
  margin-top: 12px;
}
.stack span {
  min-width: 2px;
}
.note {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
}
.note .link {
  color: inherit;
  font-weight: 600;
}
.strands {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}
.strand {
  display: flex;
  gap: 14px;
}
.strand > i {
  flex: none;
  width: 6px;
  border-radius: 3px;
}
.strand > div {
  flex: 1;
  min-width: 0;
}
.strand-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
}
.strand-head b {
  font-variant-numeric: tabular-nums;
}
.strand-meta {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.strand p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0;
}
.legend {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
@media (max-width: 640px) {
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.matches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.matches li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 40px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.m-name {
  overflow: hidden;
}
.m-name small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
}
.m-bar {
  height: 6px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.m-bar span {
  display: block;
  height: 100%;
}
.matches b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.group {
  padding-top: 6px;
}
.group + .group {
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.narrative {
  color: var(--text-2);
}
.narrative strong {
  color: var(--text);
  font-weight: 600;
}
.sliders {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.slider {
  display: grid;
  grid-template-columns: 1fr minmax(90px, 1.3fr) 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.slider.faint .track {
  opacity: 0.4;
}
.slider.faint .pole {
  color: var(--text-3);
}
.pole.l {
  text-align: right;
  color: var(--text-2);
}
.pole.r {
  color: var(--text-2);
}
.track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--track);
}
.track:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--text-3);
  opacity: 0.5;
}
.mark {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
  z-index: 1;
}
.tensions,
.lenses {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.tension,
.lens {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
}
.tension p,
.lens p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 15px;
}
.lens-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.lens-head .muted {
  font-size: 13px;
}
.axis {
  stroke: var(--text-3);
  stroke-width: 1;
  opacity: 0.6;
}
.axis-label {
  fill: var(--text-3);
  font-size: 11px;
  font-weight: 600;
}
.you {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}
.you-label {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px 24px;
}
.trait-head b small {
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
  font-size: 11px;
}
.trait.faint .meter {
  opacity: 0.4;
}
.trait.faint .trait-head {
  color: var(--text-3);
}
.trait-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.trait p {
  font-size: 13px;
  margin: 4px 0 0;
}
.meter {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
  margin-top: 4px;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.pp-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 14px;
}
.pp-list li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 6px 16px;
  align-items: start;
}
.pp-topic .muted {
  display: block;
}
.pp-opts {
  display: grid;
  gap: 4px;
}
.pp-opt {
  position: relative;
  display: block;
  border-radius: 6px;
  background: var(--track);
  overflow: hidden;
  font-size: 13px;
}
.pp-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}
.pp-opt.on .pp-bar {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
.pp-opt.on {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.pp-label {
  position: relative;
  display: block;
  padding: 3px 8px;
}
.pp-share {
  color: var(--text-2);
}
.pp-opt.on .pp-share {
  color: var(--text);
}
@media (max-width: 640px) {
  .pp-list li {
    grid-template-columns: 1fr;
  }
}
.minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-top: 20px;
}
.mini {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
}
.mini h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 600;
}
.mini .type {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.mini .muted {
  font-size: 13px;
  margin: 0;
}
.mfwrap {
  margin-top: 8px;
}
.mfwrap > p {
  margin-top: 14px;
  color: var(--text-2);
}
.disclaimer {
  font-size: 13px;
  margin-top: 8px;
}
.small {
  font-size: 13px;
}
.shared-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-color: var(--accent);
}
.shared-banner .muted {
  display: block;
  font-size: 14px;
}
.share-box {
  margin-top: 14px;
}
.share-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font:
    13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.country-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--text-2);
}
select,
input[type="search"] {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 40px;
  max-width: 100%;
}
select:focus,
input[type="search"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.fit {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 18px 0 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
}
.fit-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.fit p {
  margin: 2px 0 0;
  font-size: 14px;
}
.parties li {
  grid-template-columns: minmax(0, 1fr) 70px 40px;
}
.legend-inline {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
  margin: 6px 0 4px;
}
.legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.key-you,
.key-ref {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.key-you {
  background: var(--accent);
}
.key-ref {
  background: transparent;
  border: 2.5px solid var(--ref, var(--text-3));
}
.mark.ref-mark {
  background: var(--surface);
  border: 2.5px solid var(--ref, var(--text-3));
  box-shadow: none;
  z-index: 0;
  width: 13px;
  height: 13px;
}
.wlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.wlist li {
  display: grid;
  gap: 5px;
}
.wstrip {
  display: flex;
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--track);
}
.wstrip span {
  height: 100%;
  background: color-mix(
    in srgb,
    var(--accent) calc(15% + var(--k) * 55%),
    var(--surface)
  );
  border-right: 1px solid var(--surface);
  box-sizing: border-box;
}
.wstrip span.me {
  background: var(--accent);
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.glance-list {
  margin: 6px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.tabbar {
  position: sticky;
  top: var(--topbar-h, 52px);
  z-index: 4;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 16px;
  padding: 8px 4px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.tabbar::-webkit-scrollbar {
  display: none;
}
.tabbar button {
  flex: none;
  white-space: nowrap;
  border: 1px solid transparent;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.tabbar button:hover {
  color: var(--text);
  background: var(--surface-2);
}
.tabbar button[aria-pressed="true"] {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.results[data-tab] > section.card[data-tab] {
  display: none;
}
.results[data-tab="overview"] > section.card[data-tab="overview"],
.results[data-tab="worldview"] > section.card[data-tab="worldview"],
.results[data-tab="psychology"] > section.card[data-tab="psychology"],
.results[data-tab="world"] > section.card[data-tab="world"],
.results[data-tab="consistency"] > section.card[data-tab="consistency"],
.results[data-tab="you"] > section.card[data-tab="you"] {
  display: block;
}
@media print {
  .results[data-tab] > section.card[data-tab] {
    display: block !important;
  }
}
.stability summary {
  cursor: pointer;
  list-style-position: outside;
}
.sl-fold > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-3);
  margin: 6px 0;
}
.intro-helix {
  margin: 18px 0 8px;
  opacity: 0.9;
}
.intro-helix svg {
  width: 100%;
  height: auto;
  display: block;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px 20px;
}
.area-cell p {
  margin: 0 0 4px;
}
.firm {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid currentColor;
}
.firm-hi {
  color: var(--pos-text);
}
.firm-mid {
  color: var(--text-2);
}
.firm-lo {
  color: var(--text-3);
}
.culture-map {
  margin-top: 8px;
}
.bm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  font-size: 13px;
  margin: 10px 0 2px;
}
.bm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bm-list {
  margin: 6px 0 8px;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.bm-with {
  stroke: var(--pos);
  opacity: 0.55;
}
.bm-against {
  stroke: var(--neg);
  opacity: 0.65;
  stroke-dasharray: 5 4;
}
.bm-node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2.5;
}
.bm-node.bm-anchor {
  fill: var(--accent);
}
.bm-label {
  fill: var(--text-2);
  font-size: 12px;
}
.bm-label.bm-anchor {
  fill: var(--text);
  font-weight: 700;
}
.culture-map svg {
  width: 100%;
  height: auto;
  display: block;
}
.cm-dot {
  fill: var(--text-3);
  opacity: 0.5;
}
.cm-sel {
  fill: #f59e0b;
  stroke: var(--surface);
  stroke-width: 1.5;
}
.cm-label {
  fill: var(--text-3);
  font-size: 9.5px;
}
.cm-sel-label {
  fill: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.explore h1 {
  font-size: clamp(32px, 6vw, 46px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.ex-controls {
  display: flex;
  gap: 10px;
  margin: 20px 0 12px;
}
.ex-controls input {
  flex: 1;
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chip-btn {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
}
.chip-btn span {
  color: var(--text-3);
  margin-left: 2px;
}
.chip-btn:hover {
  border-color: var(--accent);
}
.chip-btn.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}
.chip-btn.on span {
  color: var(--accent-text);
}
.cat-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 7px;
  vertical-align: 1px;
}
.ex-list {
  display: grid;
  gap: 10px;
}
.ex-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ex-item[open] {
  border-color: var(--accent);
}
.ex-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: grid;
  gap: 3px;
}
.ex-item summary::-webkit-details-marker {
  display: none;
}
.ex-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}
.ex-match {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ex-meta {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-meta i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.ex-blurb {
  font-size: 14px;
  color: var(--text-2);
}
.ex-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.ex-keys span {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.ex-body {
  padding: 0 16px 16px;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}
.strand-head a,
.m-name a,
.links a {
  color: inherit;
  text-decoration: none;
}
.strand-head a:hover,
.m-name a:hover,
.links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dot:focus-visible,
.choice:focus-visible,
.mode:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.qtext:focus {
  outline: none;
}
main:focus {
  outline: none;
}
.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;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.why {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.why p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.why-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 999px;
  margin-right: 8px;
}
.why-label.agree {
  background: color-mix(in srgb, var(--pos) 14%, transparent);
  color: var(--pos-text);
}
.why-label.differ {
  background: color-mix(in srgb, var(--neg) 12%, transparent);
  color: var(--neg-text);
}
.stability {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border-left: 4px solid var(--text-3);
  font-size: 14px;
  color: var(--text-2);
  display: grid;
  gap: 8px;
}
.stability strong {
  color: var(--text);
}
.stab-solid {
  border-left-color: var(--pos);
}
.stab-fair {
  border-left-color: #f59e0b;
}
.stab-tentative {
  border-left-color: var(--neg);
}
.tband {
  position: absolute;
  top: -4px;
  bottom: -4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ref, var(--text-3)) 28%, transparent);
}
.tband-key {
  display: inline-block;
  width: 22px;
  height: 10px;
  border-radius: 999px;
  vertical-align: middle;
  background: color-mix(in srgb, var(--ref, var(--text-3)) 28%, transparent);
}
.band {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 12px;
}
.figure {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
}
.figure p {
  font-size: 14px;
  color: var(--text-2);
  margin: 4px 0 0;
}
.tradition h1,
.compare h1,
.review h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.tradition .lead {
  margin: 12px 0 20px;
}
.tradition .two,
.compare .two {
  gap: 16px;
}
.tradition .two > .card,
.compare .two > .card {
  margin-bottom: 16px;
}
.beliefs,
.works,
.links,
.shifts {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
ol.links {
  list-style: decimal;
  padding-left: 22px;
}
.beliefs li {
  display: grid;
}
.works li {
  padding-left: 14px;
  position: relative;
  color: var(--text-2);
  font-size: 15px;
}
.works li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.fit .why {
  margin-top: 4px;
}
textarea {
  width: 100%;
  font:
    14px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  resize: vertical;
}
.cmp-error {
  color: var(--neg);
  min-height: 1em;
  margin: 0 0 8px;
}
.table-wrap {
  overflow-x: auto;
  margin: 12px 0 24px;
}
.review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.review-table th,
.review-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.review-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.scale-prompt {
  margin: 28px 0 -24px;
  font-size: 15px;
  color: var(--accent-text);
  font-weight: 500;
}
.scale-opts {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 8px;
}
.scale-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 12px 8px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.3;
}
.scale-opt:hover {
  border-color: var(--accent);
}
.scale-opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 640px) {
  .scale-opts {
    grid-template-columns: 1fr;
  }
  .scale-opt {
    flex-direction: row;
    text-align: left;
    padding: 12px 14px;
    font-size: 15px;
  }
}
.scale10 .end {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}
.scale10 .end.lo {
  margin-bottom: 10px;
}
.scale10 .end.hi {
  margin-top: 10px;
  text-align: right;
}
.scale10-opts {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.scale10-opts .scale-opt {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  flex-direction: column;
  text-align: center;
}
@media (max-width: 560px) {
  .scale10-opts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .scale10 .end.hi {
    text-align: left;
  }
}
.quality {
  margin-top: 4px;
}
.quality ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.quality.ok {
  margin: 0;
}
.q-serious strong {
  color: var(--neg-text);
}
.q-warn strong {
  color: var(--text);
}
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 12px;
}
.module {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  gap: 6px;
  align-content: start;
}
.module p {
  margin: 0;
}
.module .btn {
  justify-self: start;
}
.values {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}
.value-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.vbar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
}
.vbar:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--text-3);
}
.vbar span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}
.vbar .pos {
  background: var(--accent);
}
.vbar .neg {
  background: color-mix(in srgb, var(--text-3) 60%, transparent);
}
.tension.gap {
  border-left: 4px solid #f59e0b;
}
.tension.kept {
  border-left-color: var(--pos);
  opacity: 0.8;
}
.kept-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pos-text);
}
.walk-bar,
.walk-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.walk-nav[hidden] {
  display: none;
}
section.card,
#consistency h3 {
  scroll-margin-top: calc(var(--topbar-h, 52px) + 10px);
}
.walk-nav {
  position: sticky;
  top: calc(var(--topbar-h, 52px) + 4px);
  z-index: 2;
  background: var(--surface);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
#consistency.walking > :not(h2):not(.walk-nav):not(.walk-keep) {
  display: none;
}
#consistency.walking .tension:not(.walk-current) {
  display: none;
}
.tension.match {
  border-left: 4px solid var(--pos);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 12px 0;
}
.about-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.about-field select {
  width: 100%;
}
.m-name small[class^="badge-"] {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-gps {
  color: var(--pos-text) !important;
}
.badge-est {
  color: var(--text-3) !important;
}
.link.danger {
  color: var(--neg-text);
}
.method h1 {
  font-size: clamp(32px, 6vw, 48px);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.method .lead {
  margin-bottom: 20px;
}
.method-list {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-2);
}
.method-list strong {
  color: var(--text);
}
.mini .type small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}
@media (max-width: 640px) {
  .culture-map {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .culture-map svg {
    min-width: 620px;
  }
  .culture-map:before {
    content: "Swipe sideways to see the whole chart \2192";
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 4px;
    position: sticky;
    left: 0;
  }
}
@media (max-width: 640px) {
  :root {
    --topbar-h: 80px;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    gap: 0 6px;
    padding: 6px 10px 4px;
  }
  .home {
    font-size: 13px;
    white-space: nowrap;
  }
  .nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 2px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav button {
    white-space: nowrap;
    padding: 6px;
    font-size: 13px;
  }
  .nav .brand {
    font-size: 13px;
  }
}
.resolve {
  margin-top: 6px !important;
}
.reply {
  margin-top: 8px;
  font-size: 13px;
}
.reply summary {
  cursor: pointer;
  color: var(--accent);
  width: fit-content;
}
.reply textarea {
  font: 14px/1.45 inherit;
  font-family: inherit;
  margin: 6px 0 0;
}
@media print {
  .no-print,
  .note .link,
  .actions-card {
    display: none !important;
  }
  body {
    background: #fff;
  }
  main {
    padding: 0;
  }
  .card {
    break-inside: avoid;
    box-shadow: none;
  }
}
@media (max-width: 520px) {
  main {
    padding-top: 24px;
  }
  .card {
    padding: 18px 16px;
  }
  .slider {
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    font-size: 12px;
  }
  .slider .pole.l {
    grid-row: 1;
    grid-column: 1;
    text-align: left;
  }
  .slider .pole.r {
    grid-row: 1;
    grid-column: 2;
    text-align: right;
  }
  .slider .track {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }
}
.evidence {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-2);
}
.evidence li {
  margin: 2px 0;
}
#consistency h3 {
  scroll-margin-top: calc(var(--topbar-h, 52px) + 10px);
}
.matches b .range {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.review-table tr.gap-row td {
  background: var(--accent-soft);
}
.matches li.mine .m-name small:first-of-type {
  color: var(--accent-text);
  font-weight: 600;
}

/* The parts of the questionnaire, on the results page. */
.parts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.part-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.part-row p {
  margin: 4px 0 0;
}
.part-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}
@media (max-width: 640px) {
  .part-row {
    flex-direction: column;
    align-items: stretch;
  }
  .part-status {
    align-items: flex-start;
    text-align: left;
  }
}

/* "In brief": the written portrait at the top of the results. */
.portrait {
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 0 8px;
}
/* The retake invitation in "Your worldview over time". */
.retake {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
}
.retake p {
  margin: 0 0 8px;
}
