:root {
  color-scheme: light;
  --ink: #27211d;
  --muted: #6e625a;
  --paper: #fbfaf7;
  --paper-deep: #f1ede5;
  --white: #ffffff;
  --brown: #2b1d16;
  --brown-soft: #4b3327;
  --gold: #b78935;
  --gold-light: #e0c47d;
  --gold-pale: #f5ead0;
  --line: #ded6ca;
  --danger: #9f3d36;
  --shadow: 0 18px 50px rgba(43, 29, 22, 0.09);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 0%, rgba(224, 196, 125, 0.14), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(183, 137, 53, 0.38);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
}

.brand-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(34vw, 470px);
  overflow: hidden;
  background: var(--brown);
}

.brand-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  filter: saturate(0.9) contrast(1.03);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 88%, transparent 100%);
}

.brand-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(30, 18, 11, 0.18));
}

.brand-signature {
  position: absolute;
  right: 28px;
  bottom: 20%;
  left: 28px;
  z-index: 2;
  display: block;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 12px rgba(17, 10, 7, 0.58);
}

.brand-signature span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.1em;
}

.brand-signature small {
  display: block;
  margin-top: 12px;
  font-size: clamp(0.7rem, 1.15vw, 0.9rem);
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-column {
  width: calc(100% - min(34vw, 470px));
  min-height: 100vh;
  margin-left: min(34vw, 470px);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 214, 202, 0.8);
  background: rgba(251, 250, 247, 0.93);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0;
  border: 0;
  color: var(--brown);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.wordmark span {
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.05;
  letter-spacing: 0.11em;
}

.wordmark small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#app {
  width: min(100%, 1040px);
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) clamp(20px, 5vw, 68px) 64px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 24px clamp(20px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--brown-soft);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--brown);
  font-weight: 500;
}

h1 {
  max-width: 790px;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.01;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #8a6323;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: #514842;
  font-size: 1.08rem;
}

.central-question {
  position: relative;
  max-width: 760px;
  margin: 26px 0 32px;
  padding: 18px 22px 18px 26px;
  border: 1px solid #d7bd7c;
  border-left: 4px solid var(--gold);
  background: linear-gradient(120deg, #fffdf8, #f8f0dd);
  box-shadow: 0 12px 34px rgba(107, 75, 26, 0.07);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.intro-card {
  max-width: 800px;
  padding: clamp(22px, 4vw, 36px);
}

.intro-card h2 {
  font-size: 1.58rem;
}

.intro-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.intro-list li {
  position: relative;
  padding-left: 28px;
}

.intro-list li::before {
  position: absolute;
  top: 0.58em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-pale);
}

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #5d514a;
  background: #f7f4ee;
  font-size: 0.92rem;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brown);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #51463f;
  font-size: 0.9rem;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #cfc5b7;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
}

.field input:hover {
  border-color: #a89478;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(183, 137, 53, 0.1);
  outline: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.actions.split {
  justify-content: space-between;
}

.button,
.quiet-button,
.danger-button,
.icon-button {
  min-height: 46px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  padding: 12px 22px;
  border: 1px solid #7f5a1e;
  color: #fffdf7;
  background: linear-gradient(135deg, #2b1d16 0%, #4b3327 58%, #6c4c24 100%);
  box-shadow: 0 10px 24px rgba(43, 29, 22, 0.16);
  font-weight: 760;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(43, 29, 22, 0.2);
}

.button.secondary {
  border-color: #b8914f;
  color: var(--brown);
  background: linear-gradient(135deg, #fffdf7, #f4e5c2);
  box-shadow: none;
}

.quiet-button,
.danger-button {
  padding: 10px 17px;
  border: 1px solid #cfc5b7;
  color: var(--brown-soft);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.quiet-button:hover {
  border-color: var(--gold);
  background: var(--white);
}

.danger-button {
  border-color: rgba(159, 61, 54, 0.36);
  color: var(--danger);
}

.danger-button:hover {
  background: #fff4f2;
}

.button[disabled],
.quiet-button[disabled],
.danger-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.saved-callout {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #d8c89f;
  border-radius: 14px;
  background: #fbf5e8;
}

.saved-callout p {
  margin: 0;
  color: #594b3e;
}

.saved-callout strong {
  color: var(--brown);
}

.assessment-heading {
  margin-bottom: 24px;
}

.assessment-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.assessment-kicker strong {
  color: var(--brown);
}

.progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  align-items: center;
  margin-top: 20px;
}

.progress-label {
  color: #5f5148;
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7dfd4;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #875f25, #d8b865, #b28432);
  transition: width 220ms ease;
}

.scale-key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #f5f2ec;
  font-size: 0.8rem;
}

.scale-key span {
  white-space: nowrap;
}

.scale-key strong {
  color: var(--brown-soft);
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-card {
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(43, 29, 22, 0.045);
}

.question-card.has-error {
  border-color: rgba(159, 61, 54, 0.72);
  box-shadow: 0 0 0 4px rgba(159, 61, 54, 0.08);
}

.question-card legend {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  color: #332a25;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.45;
}

.question-number {
  flex: 0 0 auto;
  min-width: 34px;
  color: #916c2f;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.rating-option {
  position: relative;
  display: block;
}

.rating-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rating-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 6px 4px;
  border: 1px solid #d5cdc1;
  border-radius: 10px;
  color: #665a52;
  background: #fbfaf8;
  text-align: center;
  cursor: pointer;
  transition: 150ms ease;
}

.rating-option span strong {
  color: var(--brown);
  font-size: 1rem;
  line-height: 1;
}

.rating-option span small {
  font-size: 0.68rem;
  line-height: 1.15;
}

.rating-option:hover span {
  border-color: #b79b6e;
  background: #fffdf8;
}

.rating-option input:focus-visible + span {
  outline: 3px solid rgba(183, 137, 53, 0.38);
  outline-offset: 2px;
}

.rating-option input:checked + span {
  border-color: #795725;
  color: var(--white);
  background: linear-gradient(145deg, #3a281e, #705025);
  box-shadow: 0 7px 16px rgba(66, 43, 24, 0.17);
}

.rating-option input:checked + span strong,
.rating-option input:checked + span small {
  color: var(--white);
}

.validation-message {
  min-height: 25px;
  margin: 16px 0 -4px;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.results-heading {
  margin-bottom: 28px;
}

.results-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.relationship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.relationship-meta strong {
  color: var(--brown);
}

.key-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.result-highlight {
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #d6c8ae;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(229, 198, 123, 0.23), transparent 55%),
    var(--white);
  box-shadow: 0 10px 28px rgba(43, 29, 22, 0.06);
}

.result-highlight .label {
  display: block;
  margin-bottom: 14px;
  color: #786c63;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-highlight strong {
  display: block;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.14;
}

.result-highlight .total-number {
  font-size: 2.55rem;
}

.result-highlight .total-number small {
  display: inline;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
}

.result-highlight small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.veil-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.veil-card {
  position: relative;
  padding: 20px 20px 18px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.veil-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  content: "";
  background: var(--veil-color, var(--brown));
}

.veil-card.dotted::before {
  background-color: #7c7770;
  background-image: radial-gradient(#f5f2eb 1.2px, transparent 1.2px);
  background-size: 5px 5px;
}

.veil-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.veil-title-row h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 780;
}

.score-badge {
  flex: 0 0 auto;
  color: var(--brown);
  font-weight: 800;
}

.influence-label {
  margin: 4px 0 11px;
  color: var(--muted);
  font-size: 0.84rem;
}

.score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece7df;
}

.score-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--veil-color, var(--brown));
}

.reflection-block {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #cfb46f;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(246, 235, 207, 0.82)),
    var(--white);
}

.reflection-block .prompt {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
}

.reflection-block .prompt::before {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  content: "✦";
  font-family: var(--sans);
  font-size: 1rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: end;
  justify-content: space-between;
  margin: 38px 0 16px;
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

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

.profile-result {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.profile-result .label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-result strong {
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.profile-result p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(43, 29, 22, 0.045);
}

.relationship-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.relationship-table th,
.relationship-table td {
  padding: 13px 11px;
  border-bottom: 1px solid #e7e1d8;
  text-align: center;
  white-space: nowrap;
}

.relationship-table th {
  color: #f9f4e9;
  background: #30231c;
  font-size: 0.73rem;
  letter-spacing: 0.035em;
}

.relationship-table th:first-child,
.relationship-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 170px;
  text-align: left;
}

.relationship-table th:first-child {
  background: #30231c;
}

.relationship-table td:first-child {
  background: #fff;
}

.relationship-table tbody tr:nth-child(even) td,
.relationship-table tbody tr:nth-child(even) td:first-child {
  background: #faf8f4;
}

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

.relationship-name {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: var(--brown);
  font-weight: 760;
  text-overflow: ellipsis;
}

.relationship-type {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
}

.saved-results-heading {
  margin-top: 32px;
}

.saved-results-list {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.saved-result-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #d8c89f;
  border-radius: 14px;
  color: var(--brown);
  background: #fffdf8;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.saved-result-card:hover,
.saved-result-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 9px 22px rgba(43, 29, 22, 0.1);
  transform: translateY(-1px);
}

.saved-result-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.saved-result-identity strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-result-identity small {
  color: var(--muted);
  font-size: 0.8rem;
}

.saved-result-action {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fffdf7;
  background: var(--brown);
  font-size: 0.82rem;
  font-weight: 760;
}

.remove-row {
  min-width: 38px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #91605b;
  background: transparent;
  cursor: pointer;
}

.remove-row:hover {
  border-color: #e0c0bc;
  background: #fff2f0;
}

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

.average-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--veil-color, var(--brown));
  border-radius: 11px;
  background: var(--white);
}

.average-card span {
  display: block;
  min-height: 40px;
  color: #544941;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.25;
}

.average-card strong {
  display: block;
  margin-top: 5px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.average-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.understanding {
  margin-top: 40px;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 4px;
  color: var(--brown);
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  flex: 0 0 auto;
  color: var(--gold);
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion-content {
  max-width: 760px;
  padding: 0 4px 18px;
  color: #5d524a;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.final-disclaimer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

.book-cta {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #c8a863;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(224, 196, 125, 0.2), transparent 22rem),
    linear-gradient(135deg, #2b1d16, #493125);
  box-shadow: 0 15px 38px rgba(43, 29, 22, 0.14);
}

.book-cta span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.book-cta h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.book-cta .button {
  flex: 0 0 auto;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state {
  max-width: 650px;
  padding: 38px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 17px;
  border-radius: 10px;
  color: var(--white);
  background: #33251e;
  box-shadow: 0 14px 38px rgba(20, 12, 8, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .brand-panel {
    width: 29vw;
  }

  .content-column {
    width: 71vw;
    margin-left: 29vw;
  }

  .key-results,
  .veil-list {
    grid-template-columns: 1fr;
  }

  .averages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .brand-panel {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
    background: #efe5d6;
  }

  .brand-cover {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.96) contrast(1.02);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .brand-shade {
    display: none;
  }

  .brand-signature {
    display: none;
  }

  .brand-signature span {
    color: #f5d888;
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    line-height: 1;
    letter-spacing: 0.075em;
  }

  .brand-signature small {
    display: block;
    margin-top: 10px;
    color: #fff8e8;
    font-size: 0.67rem;
    font-weight: 720;
    letter-spacing: 0.09em;
  }

  .content-column {
    width: 100%;
    margin-left: 0;
  }

  .site-header {
    min-height: 68px;
  }

  #app {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .form-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .saved-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions.split {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .actions.split .button,
  .actions.split .quiet-button {
    width: 100%;
  }

  .result-highlight {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 17px;
  }

  .wordmark small {
    display: none;
  }

  .header-results {
    min-height: 40px;
    padding: 8px 13px;
  }

  #app {
    padding-right: 15px;
    padding-left: 15px;
  }

  .intro-card {
    padding: 20px 17px;
  }

  .question-card {
    padding: 18px 12px;
  }

  .question-card legend {
    font-size: 1.02rem;
  }

  .rating-grid {
    gap: 4px;
  }

  .rating-option span {
    min-height: 60px;
    padding-inline: 2px;
  }

  .rating-option span small {
    font-size: 0.59rem;
  }

  .scale-key {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-results,
  .veil-list,
  .averages-grid {
    grid-template-columns: 1fr;
  }

  .average-card span {
    min-height: auto;
  }

  .actions:not(.split) {
    align-items: stretch;
    flex-direction: column;
  }

  .actions:not(.split) > * {
    width: 100%;
  }

  .saved-result-card {
    align-items: stretch;
    flex-direction: column;
  }

  .saved-result-action {
    align-self: flex-start;
  }

  .book-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .book-cta .button {
    width: 100%;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
  }
}

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

@media print {
  .brand-panel,
  .site-header,
  .site-footer,
  .actions,
  .remove-row,
  .toast {
    display: none !important;
  }

  .book-cta {
    box-shadow: none;
  }

  body {
    background: white;
  }

  .content-column {
    width: 100%;
    margin: 0;
  }

  #app {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .card,
  .result-highlight,
  .veil-card,
  .profile-result,
  .table-shell,
  .average-card,
  .reflection-block {
    box-shadow: none;
    break-inside: avoid;
  }

  .table-shell {
    overflow: visible;
  }

  .relationship-table {
    min-width: 0;
    font-size: 8px;
  }

  .relationship-table th,
  .relationship-table td {
    padding: 5px 3px;
  }

  .relationship-table th:first-child,
  .relationship-table td:first-child {
    position: static;
    min-width: 0;
  }

  .understanding details:not([open]) {
    display: none;
  }
}
