:root {
  --ink: #253038;
  --ink-soft: #526069;
  --plum: #4b3157;
  --plum-deep: #37213f;
  --plum-pale: #eee7f1;
  --teal: #276b68;
  --teal-pale: #e3f0ee;
  --amber: #bf7b2a;
  --amber-pale: #f8ead7;
  --rose: #a45164;
  --mist: #f3f6f5;
  --paper: #fffefd;
  --line: #d8dfdc;
  --shadow: 0 16px 42px rgba(43, 48, 54, 0.09);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--mist);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(75, 49, 87, 0.09), transparent 26rem),
    linear-gradient(180deg, #f8faf9 0%, var(--mist) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--plum-deep);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 249, 0.96);
  border-bottom: 1px solid rgba(77, 91, 95, 0.14);
  backdrop-filter: blur(16px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1rem 0.45rem;
}

.brand-button,
.menu-button {
  border: 0;
  cursor: pointer;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.2rem 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  flex: 0 0 auto;
  border: 1px solid rgba(75, 49, 87, 0.3);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border: 1px solid rgba(75, 49, 87, 0.28);
  border-radius: 50%;
}

.brand-mark::before { width: 1.55rem; height: 1.55rem; }
.brand-mark::after { width: 0.78rem; height: 0.78rem; background: var(--plum); border-color: var(--plum); }
.brand-mark span { width: 2.3rem; height: 2.3rem; }

.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 0.9rem; line-height: 1.2; white-space: nowrap; }
.brand-copy small { color: var(--ink-soft); font-size: 0.72rem; line-height: 1.3; }

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  color: var(--plum-deep);
  background: var(--plum-pale);
  border-radius: 12px;
  font-weight: 750;
  font-size: 0.85rem;
}

.progress-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 0.55rem;
}

.progress-wrap > span {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: #dce2df;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--plum), var(--teal));
  border-radius: inherit;
  transition: width 260ms ease;
}

.section-nav {
  display: none;
  position: absolute;
  right: 0.75rem;
  left: 0.75rem;
  top: calc(100% + 0.4rem);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.section-nav.is-open { display: grid; gap: 0.25rem; }

.section-nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-weight: 680;
  text-align: left;
  cursor: pointer;
}

.section-nav button:hover,
.section-nav button.is-current { background: var(--plum-pale); color: var(--plum-deep); }

.section-nav button span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink-soft);
  background: var(--mist);
  border-radius: 50%;
  font-size: 0.75rem;
}

.section-nav button.is-current span { color: #fff; background: var(--plum); }

main {
  width: min(100%, 1040px);
  min-height: 72vh;
  margin: 0 auto;
  padding: 1.3rem 1rem 3rem;
}

.module {
  animation: module-in 320ms ease both;
}

.module[hidden],
.reveal-stage[hidden],
.judgement-ending[hidden] { display: none !important; }

@keyframes module-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 770px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.25rem, 8.4vw, 5rem);
  line-height: 0.98;
}

h1 span { display: block; color: var(--plum); }

h2 {
  margin-bottom: 0.75rem;
  color: var(--plum-deep);
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.05;
}

h3 { font-size: 1.35rem; line-height: 1.22; }

.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.section-heading > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.welcome-module {
  position: relative;
  min-height: calc(100svh - 11rem);
  padding: 2.4rem 0 1rem;
  overflow: hidden;
}

.welcome-copy {
  max-width: 640px;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.welcome-orbit {
  position: absolute;
  right: -6rem;
  top: 1rem;
  width: 17rem;
  height: 17rem;
  z-index: -1;
  border: 1px solid rgba(75, 49, 87, 0.12);
  border-radius: 50%;
}

.welcome-orbit::before,
.welcome-orbit::after,
.welcome-orbit span {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(75, 49, 87, 0.13);
  border-radius: 50%;
}

.welcome-orbit::after { inset: 33%; background: rgba(75, 49, 87, 0.05); }
.welcome-orbit span { inset: 46%; background: var(--plum); border-color: var(--plum); }

.welcome-note {
  display: flex;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: rgba(227, 240, 238, 0.76);
  border: 1px solid rgba(39, 107, 104, 0.2);
  border-radius: var(--radius);
}

.welcome-note p { margin: 0; color: #345250; font-size: 0.9rem; }
.note-icon { color: var(--teal); font-size: 1.35rem; line-height: 1.2; }

.micro-copy { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.8rem; }

.primary-button,
.secondary-button,
.reveal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  color: #fff;
  background: var(--plum);
  border: 1px solid var(--plum);
  box-shadow: 0 8px 20px rgba(75, 49, 87, 0.18);
}

.primary-button.large { min-height: 55px; padding-inline: 1.35rem; }
.primary-button:hover { background: var(--plum-deep); }

.secondary-button {
  color: var(--plum-deep);
  background: transparent;
  border: 1px solid rgba(75, 49, 87, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.reveal-button:hover { transform: translateY(-1px); }

.primary-button:active,
.secondary-button:active,
.reveal-button:active { transform: translateY(0); }

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e2a54f;
  outline-offset: 3px;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.7rem 0.85rem;
  color: #345250;
  background: var(--teal-pale);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 720;
}

.arrival-activity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  margin: 0 0 1.35rem;
  padding: 1.1rem;
  background: linear-gradient(145deg, rgba(238, 231, 241, 0.96), rgba(227, 240, 238, 0.92));
  border: 1px solid rgba(75, 49, 87, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(43, 48, 54, 0.06);
}

.arrival-symbol {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  background: var(--plum);
  border-radius: 50%;
  font-size: 1.25rem;
}

.arrival-copy { min-width: 0; }
.arrival-copy .eyebrow { margin-bottom: 0.2rem; }
.arrival-copy h3 { margin-bottom: 0.25rem; color: var(--plum-deep); font-size: 1.55rem; }
.arrival-copy > p:not(.eyebrow):not(.arrival-status) { margin: 0 0 0.85rem; color: var(--ink-soft); }
.arrival-field { display: block; margin-bottom: 0.35rem; font-size: 0.82rem; font-weight: 780; }
.arrival-entry { display: grid; gap: 0.55rem; }
.arrival-entry input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c5cfcc;
  border-radius: 12px;
}
.arrival-status { min-height: 1.25rem; margin: 0.55rem 0 0; color: var(--teal); font-size: 0.8rem; font-weight: 720; }
.arrival-status.is-error { color: #8f344d; }

.scale-key {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-align: center;
}

.scale-key b { display: block; color: var(--plum); font-size: 0.9rem; }

.question-stack { display: grid; gap: 0.75rem; }

.question-card,
.choice-card,
.field-card,
.reveal-stage,
.certainty-card {
  background: rgba(255, 254, 253, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(43, 48, 54, 0.045);
}

.question-card { padding: 1rem; }
.question-card p { margin: 0 0 0.85rem; font-weight: 680; line-height: 1.45; }

.question-card p > span {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: 0.5rem;
  color: var(--plum);
  background: var(--plum-pale);
  border-radius: 50%;
  font-size: 0.72rem;
}

.rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 0.42rem;
}

.rating button {
  min-width: 42px;
  min-height: 46px;
  color: var(--plum-deep);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rating button:hover { background: var(--plum-pale); }

.rating button.is-selected {
  color: #fff;
  background: var(--plum);
  border-color: var(--plum);
}

.open-question-grid { display: grid; gap: 0.85rem; margin-top: 1.15rem; }

.field-card {
  display: block;
  padding: 1rem;
  font-weight: 720;
  line-height: 1.42;
}

.field-card.inset { margin-top: 0.9rem; background: rgba(247, 249, 248, 0.9); box-shadow: none; }

.field-card textarea,
.field-card input {
  display: block;
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.8rem 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4d1;
  border-radius: 12px;
  font-weight: 450;
  line-height: 1.45;
  resize: vertical;
}

.field-card textarea::placeholder,
.field-card input::placeholder { color: #7a8589; }

.field-card.compact input { min-height: 50px; }

.save-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.module-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.module-actions > * { flex: 1; }

.progressive-submit {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(227, 240, 238, 0.78), rgba(244, 237, 246, 0.78));
  border: 1px solid rgba(75, 49, 87, 0.18);
  border-radius: var(--radius);
}

.progressive-submit strong,
.progressive-submit span { display: block; }
.progressive-submit strong { margin-bottom: 0.2rem; color: var(--plum-deep); }
.progressive-submit span { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.4; }
.progressive-submit .section-submit { width: 100%; background: rgba(255, 255, 255, 0.72); }
.progressive-status { min-height: 1.1rem; margin: 0.45rem 0 0; color: var(--teal); font-size: 0.78rem; font-weight: 720; }
.progressive-status.is-error { color: #8f344d; }

.asset-slot {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 112px;
  margin: 1rem 0 1.3rem;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(75, 49, 87, 0.05), rgba(39, 107, 104, 0.09)),
    var(--paper);
  border: 1px dashed rgba(75, 49, 87, 0.4);
  border-radius: var(--radius);
}

.asset-slot::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  bottom: -3rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(75, 49, 87, 0.12);
  border-radius: 50%;
}

.asset-slot .slot-symbol {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  background: var(--plum);
  border-radius: 50%;
  font-size: 1rem;
}

.asset-slot strong,
.asset-slot span { display: block; }
.asset-slot strong { color: var(--plum-deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.asset-slot span { color: var(--ink-soft); font-size: 0.82rem; }
.asset-slot small { z-index: 1; color: var(--plum); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.1em; }
.video-slot { aspect-ratio: 16 / 6.7; min-height: 130px; }
.rewind-slot { margin-top: 1.25rem; }

.training-visual {
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.training-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.training-visual figcaption {
  padding: 0.85rem 1rem;
  color: var(--plum-deep);
  background: linear-gradient(135deg, var(--plum-pale), var(--teal-pale));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}

.scenario-media {
  margin: 0.15rem 0 1rem;
  overflow: hidden;
  background: #17141a;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(43, 48, 54, 0.14);
}

.scenario-media video {
  display: block;
  width: 100%;
  max-height: 72svh;
  background: #17141a;
}

.discussion-pause {
  display: grid;
  gap: 0.18rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: #345250;
  background: var(--teal-pale);
  border: 1px solid rgba(39, 107, 104, 0.22);
  border-radius: 12px;
}

.discussion-pause span { font-size: 0.84rem; }

.choice-card { padding: 1rem; margin-top: 0.9rem; }
.choice-card fieldset,
.pull-question { margin: 0; padding: 0; border: 0; }
.choice-card legend,
.pull-question legend { margin-bottom: 0.9rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }

.choice-grid,
.single-choice,
.repair-phrases { display: grid; gap: 0.55rem; }

.choice-grid button,
.single-choice button,
.repair-phrases button {
  min-height: 50px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid #d3dad7;
  border-radius: 12px;
  font-weight: 680;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.choice-grid button:hover,
.single-choice button:hover,
.repair-phrases button:hover { border-color: rgba(75, 49, 87, 0.5); }

.choice-grid button.is-selected,
.single-choice button.is-selected,
.repair-phrases button.is-selected {
  color: var(--plum-deep);
  background: var(--plum-pale);
  border-color: var(--plum);
  box-shadow: inset 4px 0 0 var(--plum);
}

.choice-hint { margin: 0.7rem 0 0; color: var(--ink-soft); font-size: 0.8rem; }

.key-reflection {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 1.2rem;
  color: #fff;
  background: var(--plum-deep);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.key-reflection span {
  display: grid;
  place-items: center;
  width: 3.8rem;
  height: 3.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-reflection p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.35; }

.stage-progress {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
}

.stage-progress i { flex: 1; }

.stage-progress span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #747f83;
  background: #e2e7e5;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.stage-progress i { height: 2px; background: #d6dcda; }
.stage-progress span.is-reached { color: #fff; background: var(--plum); }
.stage-progress i.is-reached { background: var(--plum); }

.reveal-stage { padding: 1rem; margin-top: 0.85rem; }
.reveal-stage.final-stage { border-color: rgba(39, 107, 104, 0.35); background: linear-gradient(180deg, #fff, #f4faf8); }
.reveal-stage h3 { margin-bottom: 0.65rem; }
.reveal-stage > p { color: var(--ink-soft); }

.stage-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.6rem;
  color: var(--plum);
  background: var(--plum-pale);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenario-quote {
  margin: 0.8rem 0;
  padding: 0.9rem 1rem;
  color: var(--plum-deep) !important;
  background: var(--plum-pale);
  border-left: 4px solid var(--plum);
  border-radius: 0 12px 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 600;
}

.scenario-quote.strong-language { color: #7b3048 !important; background: #f8e9ed; border-color: var(--rose); }

.reveal-button {
  width: 100%;
  margin-top: 1rem;
  color: var(--plum-deep);
  background: var(--plum-pale);
  border: 1px solid rgba(75, 49, 87, 0.25);
}

.reveal-button[disabled] { color: #687278; background: #eef1ef; border-color: #d7ddda; cursor: default; transform: none; }

.pull-question { margin-top: 1.2rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }

.certainty-card { margin-top: 1rem; padding: 1rem; }
.certainty-card label { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 600; }
.certainty-card input { width: 100%; min-height: 44px; accent-color: var(--plum); }
.range-labels { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: var(--ink-soft); font-size: 0.72rem; }
.range-labels strong { color: var(--plum); font-size: 0.9rem; }
.compact-key { margin-top: 1rem; }

.judgement-key {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.judgement-key span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0.45rem;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.act { color: #1f5b48; background: #dff1e9; }
.view { color: #365a78; background: #e3eef7; }
.manage { color: #744f1f; background: var(--amber-pale); }
.safe { color: #793247; background: #f7e4e9; }

.judgement-card {
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.judgement-counter { display: flex; justify-content: space-between; margin-bottom: 0.9rem; color: var(--ink-soft); font-size: 0.78rem; font-weight: 760; }
.judgement-card h3 { margin-bottom: 0.45rem; color: var(--plum-deep); font-size: 1.55rem; }
.judgement-card .context-cue { margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.88rem; }

.judgement-options { display: grid; gap: 0.55rem; }
.judgement-options button {
  min-height: 52px;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.judgement-options button[data-choice="act"] { border-left: 5px solid #5a9d83; }
.judgement-options button[data-choice="view"] { border-left: 5px solid #6d98bb; }
.judgement-options button[data-choice="manage"] { border-left: 5px solid #d39a50; }
.judgement-options button[data-choice="safe"] { border-left: 5px solid #c67489; }
.judgement-options button.is-selected { color: var(--plum-deep); background: var(--plum-pale); border-top-color: var(--plum); border-right-color: var(--plum); border-bottom-color: var(--plum); }

.judgement-rationale { margin-top: 1rem; }
.judgement-rationale label { display: block; margin-bottom: 0.45rem; font-weight: 780; }
.judgement-rationale textarea { width: 100%; padding: 0.8rem; border: 1px solid #cbd4d1; border-radius: 12px; resize: vertical; }
.judgement-rationale p { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.78rem; }

.judgement-nav { display: flex; justify-content: space-between; gap: 0.55rem; margin-top: 1rem; }
.judgement-nav button { min-height: 47px; padding: 0.65rem 0.8rem; border-radius: 12px; font-weight: 780; cursor: pointer; }
.judgement-nav .previous { color: var(--plum); background: transparent; border: 1px solid #cdbfd2; }
.judgement-nav .next { color: #fff; background: var(--plum); border: 1px solid var(--plum); margin-left: auto; }

.judgement-ending { margin-top: 1rem; padding: 1.1rem; background: var(--teal-pale); border: 1px solid rgba(39, 107, 104, 0.22); border-radius: var(--radius); }
.completion-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.9rem; color: #fff; background: var(--teal); border-radius: 50%; font-weight: 850; }
.judgement-ending h3 { margin-bottom: 0.55rem; }
.judgement-ending > p { color: #3d5c5a; }

.message-pair { display: grid; gap: 0.65rem; margin: 1rem 0; }
.message-pair p { margin: 0; padding: 1rem; color: #fff; background: var(--plum); border-radius: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; text-align: center; }
.message-pair p:last-child { background: var(--teal); }

.three-lens { display: grid; gap: 0.75rem; }
.three-lens article { position: relative; padding: 1rem; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.three-lens article > span { display: inline-block; margin-bottom: 0.8rem; color: var(--plum); font-size: 0.72rem; font-weight: 850; }
.three-lens h3 { margin-bottom: 0.35rem; }
.three-lens p { margin: 0; color: var(--ink-soft); }
.reflection-field { margin-top: 1rem; }

.repair-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  color: #fff;
  background: var(--plum-deep);
  border-radius: calc(var(--radius) + 2px);
}

.repair-intro h3 { margin-bottom: 0.55rem; font-size: 1.55rem; }
.repair-intro > p:not(.eyebrow) { margin: 0; color: #ded4e2; }
.repair-panel .eyebrow { color: #a9d6d2; }
.repair-phrases button { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.repair-phrases button:hover { border-color: rgba(255,255,255,0.5); }
.repair-phrases button.is-selected { color: #fff; background: rgba(255,255,255,0.18); border-color: #c4e2df; box-shadow: inset 4px 0 0 #85c0ba; }

.numbered-field { position: relative; padding-top: 1.1rem; }
.numbered-field > span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-bottom: 0.65rem; color: #fff; background: var(--plum); border-radius: 50%; font-size: 0.75rem; }

.submission-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.15rem;
  background: linear-gradient(145deg, #f5edf7, #e7f3f1);
  border: 1px solid rgba(75, 49, 87, 0.24);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.submission-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 850;
}

.submission-copy h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.submission-copy > p:not(.eyebrow):not(.submission-status) { margin: 0; color: var(--ink-soft); }
.submission-status { margin: 0.8rem 0 0; color: var(--teal); font-size: 0.84rem; font-weight: 800; }
.submission-status.is-error { color: #943c51; }
.submit-responses { width: 100%; align-self: center; }
.submit-responses[disabled] { opacity: 0.68; cursor: wait; transform: none; }

.closing-card {
  position: relative;
  margin-top: 1.2rem;
  padding: 1.3rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--plum-deep), #274f55);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.closing-card h3 { margin-bottom: 0.6rem; font-size: 1.65rem; }
.closing-card > p:not(.eyebrow) { max-width: 670px; color: #e1e7e6; }
.closing-card .eyebrow { color: #acd7d3; }
.closing-card .closing-thanks { margin: 1.2rem 0 0; color: #fff !important; font-weight: 750; }

.closing-orbit {
  position: absolute;
  right: -3rem;
  top: -3.5rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
}

.closing-orbit::before,
.closing-orbit span { content: ""; position: absolute; inset: 24%; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; }
.closing-orbit span { inset: 43%; background: rgba(255,255,255,0.3); }

.clear-button {
  display: block;
  margin: 1rem auto 0;
  padding: 0.7rem;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

footer {
  padding: 1.2rem 1rem calc(1.2rem + var(--safe-bottom));
  color: #687378;
  background: #e8eeeb;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  text-align: center;
}

footer p { margin: 0.12rem 0; }

.toast {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + var(--safe-bottom));
  left: 1rem;
  z-index: 60;
  max-width: 440px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 680;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .header-row { padding-inline: 1.5rem; }
  .progress-wrap { padding-inline: 1.5rem; }
  main { padding: 2.2rem 1.5rem 4rem; }
  .welcome-module { padding-top: 4rem; }
  .arrival-entry { grid-template-columns: minmax(0, 1fr) auto; }
  .arrival-entry .primary-button { min-width: 150px; }
  .question-card { display: grid; grid-template-columns: 1fr 280px; align-items: center; gap: 1rem; }
  .question-card p { margin: 0; }
  .open-question-grid.two-up { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .single-choice { grid-template-columns: repeat(2, 1fr); }
  .message-pair { grid-template-columns: repeat(2, 1fr); }
  .three-lens { grid-template-columns: repeat(3, 1fr); }
  .repair-panel { grid-template-columns: minmax(210px, 0.7fr) minmax(360px, 1.3fr); padding: 1.3rem; }
  .judgement-options { grid-template-columns: repeat(2, 1fr); }
  .judgement-key { grid-template-columns: repeat(4, 1fr); }
  .module-actions > * { flex: 0 1 auto; min-width: 160px; }
  .asset-slot { padding: 1.25rem 1.4rem; }
  .reveal-stage { padding: 1.3rem; }
  .progressive-submit { grid-template-columns: 1fr auto; align-items: center; }
  .progressive-submit .section-submit { width: auto; }
  .submission-panel { grid-template-columns: auto 1fr; align-items: start; padding: 1.35rem; }
  .submission-panel .submit-responses { grid-column: 2; width: auto; justify-self: start; }
}

@media (min-width: 980px) {
  .menu-button { display: none; }
  .site-header { position: sticky; }
  .section-nav {
    display: flex;
    position: static;
    gap: 0.25rem;
    max-width: 1120px;
    max-height: none;
    margin: 0 auto;
    padding: 0 1.5rem 0.6rem;
    overflow-x: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .section-nav button { min-height: 38px; padding: 0.42rem 0.55rem; white-space: nowrap; font-size: 0.72rem; }
  .section-nav button span { display: none; }
  .progress-wrap { display: none; }
  .welcome-module { min-height: 660px; }
}

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

@media print {
  .site-header, .module-actions, .reveal-button, .clear-button, footer, .toast { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .module[hidden], .reveal-stage[hidden], .judgement-ending[hidden] { display: block !important; }
  .module { page-break-after: always; }
}
