:root {
  color-scheme: light;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --panel: #ffffff;
  --ink: #20231f;
  --muted: #6a7068;
  --line: #d9d6cc;
  --brand-navy: #173a75;
  --brand-navy-strong: #0f2d5d;
  --brand-navy-soft: #eaf0f8;
  --brand-teal: #249b9a;
  --brand-teal-strong: #176f72;
  --brand-teal-soft: #e4f5f4;
  --brand-gold: #e9a514;
  --brand-gold-strong: #a86f00;
  --brand-gold-soft: #fff3d5;
  --accent: var(--brand-teal-strong);
  --accent-strong: #0f5c5c;
  --accent-soft: var(--brand-teal-soft);
  --action: var(--brand-navy);
  --action-strong: var(--brand-navy-strong);
  --action-soft: var(--brand-navy-soft);
  --warning: #8a5a10;
  --warning-soft: var(--brand-gold-soft);
  --focus-ring: 0 0 0 4px rgba(36, 155, 154, 0.24);
  --action-shadow: rgba(23, 58, 117, 0.24);
  --action-shadow-strong: rgba(23, 58, 117, 0.3);
  --shadow: 0 18px 45px rgba(32, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

button,
textarea,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.ui-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

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

.shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.workspace {
  min-height: 100vh;
  background: var(--surface);
  border: 0;
  box-shadow: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 102px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(32, 35, 31, 0.06);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-label,
.account strong {
  display: none;
}

.account-links {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.account-links a,
.account-logout {
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.account-links a[data-auth-disabled-entry="true"],
a[data-auth-disabled-entry="true"],
button.auth-disabled-entry:disabled {
  color: #8b929e;
  cursor: not-allowed;
  opacity: 1;
}

.account-links a[data-auth-disabled-entry="true"]:hover,
a[data-auth-disabled-entry="true"]:hover,
button.auth-disabled-entry:disabled:hover {
  border-color: #d6dbe1;
  background: #f3f5f7;
  color: #6f7782;
}

.account-logout {
  justify-self: start;
  padding: 0;
}

.account-links[hidden],
.account-logout[hidden],
.mobile-auth-actions[hidden] {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-button,
.menu-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #68707e;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.icon-button {
  border-radius: 50%;
}

.icon-button .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.icon-button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.icon-button:active {
  transform: translateY(1px) scale(0.97);
}

.search-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  transform: translate(11px, 11px) rotate(45deg);
  background: currentColor;
  border-radius: 2px;
}

.globe-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.globe-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.globe-icon {
  overflow: hidden;
}

.globe-icon span,
.search-icon span {
  pointer-events: none;
}

.menu-button {
  display: none;
  width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: #68707e;
  transform: none;
}

.menu-button .ui-icon {
  width: 28px;
  height: 28px;
  color: currentColor;
  stroke-width: 2.35;
  transform: none;
}

.menu-button span {
  width: 24px;
  height: 3px;
  margin: 2px 0;
  background: #ffffff;
  border-radius: 3px;
  transform: skewX(10deg);
}

.menu-button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.menu-button:active {
  transform: translateY(1px) scale(0.97);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border-bottom: 0;
  color: #344054;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: transparent;
  color: var(--action);
  background: transparent;
}

.header-test-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 60px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 26px var(--action-shadow);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.header-test-link:hover {
  background: var(--action-strong);
  box-shadow: 0 18px 30px var(--action-shadow-strong);
  transform: translateY(-1px);
}

body[data-route-mode="assessment"] .topbar {
  min-height: 88px;
  box-shadow: none;
}

body[data-route-mode="assessment"] .header-test-link,
body[data-route-mode="assessment"] #searchButton {
  display: none;
}

body[data-route-mode="assessment"] .top-actions {
  gap: 16px;
}

body[data-route-mode="assessment"] .main-nav a.active {
  color: #2c3344;
}

body[data-route-mode="assessment"] .main-nav a.active::before {
  position: absolute;
  top: -23px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gold);
  content: "";
}

.page-section[hidden] {
  display: none !important;
}

.page-padding {
  padding: 24px;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading h2 {
  font-size: 24px;
}

.page-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-masthead {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 50px 34px 44px;
  background: #edf7f1;
  text-align: center;
}

.page-masthead h2 {
  max-width: 780px;
  margin-bottom: 14px;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.12;
}

.page-masthead p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #566170;
  font-size: 16px;
  line-height: 1.7;
}

.test-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 66px 34px 92px;
  background: #f7f7f7;
}

.test-masthead::before,
.test-masthead::after {
  position: absolute;
  right: -4vw;
  left: -4vw;
  z-index: -1;
  height: 150px;
  background: #ffffff;
  content: "";
  pointer-events: none;
}

.test-masthead::before {
  top: -92px;
  clip-path: polygon(0 42%, 18% 58%, 42% 48%, 64% 62%, 82% 46%, 100% 55%, 100% 0, 0 0);
}

.test-masthead::after {
  bottom: -96px;
  clip-path: polygon(0 46%, 20% 60%, 43% 48%, 64% 62%, 84% 48%, 100% 56%, 100% 100%, 0 100%);
}

.test-masthead h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: 50px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.test-masthead p {
  max-width: 780px;
  color: #394759;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.types-masthead {
  background: #eef7f8;
}

.types-home {
  background: #ffffff;
}

.types-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px 34px;
  text-align: center;
  background: #ffffff;
}

.types-hero h2 {
  margin: 0;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.types-hero p:not(.eyebrow) {
  width: min(640px, 100%);
  margin: 0;
  color: #5b6571;
  font-size: 16px;
  line-height: 1.6;
}

.types-hero .primary-link,
.types-final .primary-link {
  width: min(360px, 100%);
  min-height: 46px;
  margin-top: 8px;
  font-size: 15px;
}

.type-band {
  display: grid;
  gap: 18px;
  padding: 38px 20px 44px;
  text-align: center;
}

.type-band h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.type-band-purple {
  background: #eaddec;
}

.type-band-green {
  background: #dff1e8;
}

.type-band-blue {
  background: #dff1f6;
}

.type-band-yellow {
  background: #fbefce;
}

.type-band-yellow h3 {
  color: rgba(175, 128, 23, 0.34);
}

.type-stack {
  display: grid;
  gap: 24px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.type-person-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.type-person-card img {
  display: block;
  width: min(230px, 74vw);
  max-height: 210px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.type-person-card h4 {
  margin: 0;
  color: #2d3443;
  font-size: 21px;
  line-height: 1.12;
}

.type-code {
  margin: 0;
  color: #6d7480;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.type-person-card p:not(.type-code) {
  width: min(360px, 100%);
  margin: 0;
  color: #626b76;
  font-size: 14px;
  line-height: 1.58;
}

.type-person-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 3px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #3f5964;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.type-person-card a:hover {
  background: #ffffff;
  color: var(--brand-teal-strong);
}

.types-final {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 38px 20px 44px;
  background: #ffffff;
  text-align: center;
}

.types-final p {
  margin: 0;
  color: #4f5967;
  font-weight: 850;
}

.framework-masthead {
  background: #f3f1f8;
}

.resources-masthead {
  background: #f7f3ea;
}

.resource-home {
  background: #f5f6f7;
}

.resource-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px 28px;
  background: var(--brand-teal-soft);
  text-align: center;
}

.resource-hero h2 {
  margin: 0;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.resource-hero p:not(.eyebrow) {
  width: min(640px, 100%);
  margin: 0;
  color: #566170;
  font-size: 16px;
  line-height: 1.58;
}

.resource-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  width: min(520px, 100%);
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid #d9e4e7;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(32, 35, 31, 0.08);
  overflow: hidden;
}

.resource-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: #2d3443;
  font-size: 15px;
  outline: 0;
}

.resource-search button {
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5d6673;
}

.resource-search button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  box-shadow: none;
}

.resource-search .ui-icon {
  width: 22px;
  height: 22px;
}

.resource-home-inner {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px 20px 44px;
}

.resource-latest {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #bfdce3;
  border-left: 5px solid var(--brand-gold);
  border-radius: 8px;
  background: #eaf7f8;
  color: #2d3443;
  text-decoration: none;
}

.resource-latest span {
  color: var(--brand-teal-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-latest strong {
  font-size: 16px;
  line-height: 1.25;
}

.resource-latest small {
  color: #596473;
  font-size: 13px;
  line-height: 1.45;
}

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

.resource-category-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.05);
}

.resource-category-card[hidden] {
  display: none;
}

.resource-category-card img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  object-position: center;
  background: #f4f8f7;
}

.resource-category-body {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 18px 18px 18px 20px;
}

.resource-category-body h3 {
  margin: 0;
  color: #2d3443;
  font-size: 22px;
  line-height: 1.15;
}

.resource-meta {
  margin: 0;
  color: #737b87;
  font-size: 13px;
  line-height: 1.35;
}

.resource-category-body p:not(.resource-meta) {
  margin: 0;
  color: #596473;
  font-size: 15px;
  line-height: 1.58;
}

.resource-category-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 36px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.resource-category-body a:hover {
  background: var(--action-strong);
}

.resource-category-body a .ui-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.resource-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cfd8dd;
  border-radius: 8px;
  background: #ffffff;
  color: #596473;
  text-align: center;
}

.resource-view-all {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d7dde3;
  border-radius: 999px;
  background: #ffffff;
  color: #3f4857;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.resource-view-all:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.resource-view-all .ui-icon {
  width: 17px;
  height: 17px;
}

.premium-masthead {
  background: #f3edf7;
}

.result-masthead {
  background: #eef7f8;
}

.account-masthead {
  background: #f2f7ed;
}

.profile-suite-page {
  background: #f5f6f7;
}

.profile-suite-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 22px 34px;
  background: #ffffff;
  text-align: center;
}

.profile-suite-hero img {
  display: block;
  width: min(260px, 76vw);
  max-height: 190px;
  object-fit: contain;
  margin-bottom: 4px;
}

.profile-suite-hero h2 {
  margin: 0;
  color: #2c3344;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.profile-suite-hero p {
  width: min(560px, 100%);
  margin: 0;
  color: #596473;
  font-size: 15px;
  line-height: 1.6;
}

.profile-suite-hero .profile-price {
  color: #2d3443;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.profile-price span {
  color: #6f7783;
  font-size: 14px;
  font-weight: 800;
}

.profile-suite-hero .primary-link,
.profile-suite-product .primary-link {
  width: min(420px, 100%);
  min-height: 44px;
  font-size: 15px;
}

.profile-suite-hero small {
  width: min(520px, 100%);
  color: #7a828d;
  font-size: 12px;
  line-height: 1.45;
}

.profile-suite-card,
.profile-suite-product,
.profile-live-panel,
.profile-faq,
.profile-testimonials,
.profile-risk-free {
  width: min(760px, calc(100% - 40px));
  margin: 18px auto;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.05);
}

.profile-suite-card {
  padding: 22px 18px;
}

.profile-suite-card h3,
.profile-suite-product h3,
.profile-faq h3,
.profile-risk-free h3 {
  margin: 0 0 16px;
  color: #2d3443;
  font-size: 22px;
  line-height: 1.18;
}

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

.profile-benefit-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-benefit-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf7f0;
  color: #176b5b;
  font-weight: 950;
}

.profile-benefit-list article:nth-child(2) span {
  background: #f0e7f4;
  color: #8b61a7;
}

.profile-benefit-list article:nth-child(3) span {
  background: #eef7f8;
  color: #3f8fa1;
}

.profile-benefit-list article:nth-child(4) span {
  background: #fff1cc;
  color: #9a6a09;
}

.profile-benefit-list h4 {
  margin: 0 0 5px;
  color: #303746;
  font-size: 17px;
  line-height: 1.25;
}

.profile-benefit-list p,
.profile-suite-product p,
.profile-faq p,
.profile-risk-free p,
.profile-testimonials p {
  margin: 0;
  color: #596473;
  font-size: 14px;
  line-height: 1.6;
}

.profile-suite-product {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 18px;
  text-align: center;
}

.profile-suite-product img {
  display: block;
  width: min(300px, 80vw);
  max-height: 190px;
  object-fit: contain;
}

.profile-product-links {
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
  margin: 8px 0 6px;
}

.profile-product-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #fbfaf5;
  color: #3f5964;
  font-weight: 900;
  text-decoration: none;
}

.profile-product-links a:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.profile-live-panel {
  padding: 0;
  overflow: hidden;
}

.profile-live-panel .page-heading {
  padding: 26px 20px 18px;
  border-bottom: 1px solid #e1e5e8;
}

.profile-live-panel #profileDashboard {
  margin: 0;
  padding: 20px;
}

.profile-faq {
  display: grid;
  padding: 22px 18px;
}

.profile-faq details {
  border-top: 1px solid #e6e9ec;
}

.profile-faq details:last-child {
  border-bottom: 1px solid #e6e9ec;
}

.profile-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  color: #303746;
  font-weight: 900;
  cursor: pointer;
}

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

.profile-faq summary::after {
  content: "+";
  color: var(--brand-teal);
  font-size: 22px;
  line-height: 1;
}

.profile-faq details[open] summary::after {
  content: "-";
}

.profile-faq details p {
  padding: 0 0 16px;
}

.profile-testimonials {
  display: flex;
  gap: 16px;
  padding: 22px 18px;
  overflow-x: auto;
  background: #eef7f8;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.profile-testimonials::-webkit-scrollbar {
  display: none;
}

.profile-testimonials article {
  flex: 0 0 min(76vw, 300px);
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  scroll-snap-align: start;
}

.profile-testimonials strong {
  color: #2d3443;
}

.profile-suite-hero.compact {
  margin-top: 18px;
  background: #ffffff;
}

.profile-suite-hero.compact img {
  max-height: 150px;
}

.profile-risk-free {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 22px 18px;
  text-align: center;
}

.profile-risk-free h3 {
  margin-bottom: 0;
  color: #176b5b;
}

.premium-sales-page {
  background: #f5f6f7;
}

.premium-sales-hero,
.premium-info-card,
.premium-image-section,
.premium-included,
.premium-calculator,
.premium-faq {
  width: min(760px, calc(100% - 40px));
  margin: 18px auto;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.05);
}

.premium-sales-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 38px 22px 30px;
  text-align: center;
}

.premium-sales-hero h2,
.premium-image-section h3,
.premium-included h3,
.premium-calculator h3,
.premium-faq h3 {
  margin: 0;
  color: #2c3344;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: 0;
}

.premium-sales-hero p,
.premium-image-section p,
.premium-calculator > p,
.premium-faq p {
  width: min(580px, 100%);
  margin: 0;
  color: #596473;
  font-size: 15px;
  line-height: 1.6;
}

.premium-sales-hero img {
  display: block;
  width: min(340px, 82vw);
  max-height: 230px;
  object-fit: contain;
}

.premium-sales-hero .primary-link,
.premium-calculator .primary-link {
  width: min(430px, 100%);
  min-height: 44px;
  font-size: 15px;
}

.premium-sales-hero small,
.premium-calculator small {
  width: min(520px, 100%);
  color: #7a828d;
  font-size: 12px;
  line-height: 1.45;
}

.premium-info-card,
.premium-image-section,
.premium-included,
.premium-calculator,
.premium-faq {
  padding: 22px 18px;
}

.premium-info-card h3 {
  margin: 0 0 16px;
  color: #2d3443;
  font-size: 22px;
  line-height: 1.18;
}

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

.premium-bullet-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.premium-bullet-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf7f0;
  color: #176b5b;
  font-weight: 950;
}

.premium-bullet-list article:nth-child(2) span {
  background: #eef7f8;
  color: #3f8fa1;
}

.premium-bullet-list article:nth-child(3) span {
  background: #f0e7f4;
  color: #8b61a7;
}

.premium-bullet-list article:nth-child(4) span {
  background: #fff1cc;
  color: #9a6a09;
}

.premium-bullet-list h4 {
  margin: 0 0 5px;
  color: #303746;
  font-size: 17px;
  line-height: 1.25;
}

.premium-bullet-list p,
.premium-capability-list span,
.premium-included-list p {
  margin: 0;
  color: #596473;
  font-size: 14px;
  line-height: 1.6;
}

.premium-image-section {
  display: grid;
  gap: 14px;
  text-align: center;
}

.premium-capability-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  text-align: left;
}

.premium-capability-list article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #fbfaf5;
}

.premium-capability-list strong,
.premium-included-list h4 {
  color: #2d3443;
  font-size: 16px;
  line-height: 1.25;
}

.premium-included-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.premium-included-list article {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
}

.premium-included-list img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f8f7;
}

.premium-included-list div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.premium-included-list h4 {
  margin: 0;
}

.premium-included-list a {
  color: #3f8fa1;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.premium-calculator {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.premium-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(460px, 100%);
  padding: 6px;
  border-radius: 999px;
  background: var(--brand-teal-soft);
}

.premium-plan-options button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3f5964;
  font-size: 14px;
  font-weight: 900;
}

.premium-plan-options button.active {
  background: var(--brand-gold-soft);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 2px var(--brand-gold);
}

.premium-price-box {
  display: grid;
  gap: 6px;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid #dbe6ea;
  border-radius: 8px;
  background: #ffffff;
}

.premium-price-box span {
  color: #3f8fa1;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-price-box strong {
  color: #2d3443;
  font-size: 36px;
  line-height: 1;
}

.premium-price-box p {
  margin: 0;
  color: #596473;
}

.premium-faq {
  display: grid;
}

.premium-faq h3 {
  margin-bottom: 14px;
}

.premium-faq details {
  border-top: 1px solid #e6e9ec;
}

.premium-faq details:last-child {
  border-bottom: 1px solid #e6e9ec;
}

.premium-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  color: #303746;
  font-weight: 900;
  cursor: pointer;
}

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

.premium-faq summary::after {
  content: "+";
  color: #3f8fa1;
  font-size: 22px;
}

.premium-faq details[open] summary::after {
  content: "-";
}

.premium-faq details p {
  padding: 0 0 16px;
}

.legal-masthead {
  background: #f7f6f1;
}

.content-page {
  background: #ffffff;
}

.type-family-grid,
.framework-grid,
.resource-grid,
.pricing-layout,
.settings-grid,
.sitemap-grid,
.scenario-grid,
.faq-list,
.language-page-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.type-family-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-family,
.framework-grid article,
.resource-grid article,
.pricing-plan,
.type-article,
.type-index,
.scenario-grid article,
.faq-list article,
.language-page-list article,
.comparison-band > div {
  border: 1px solid #e1e5e8;
  background: #ffffff;
  padding: 20px;
}

.pricing-plan,
.billing-status,
.billing-table,
.table-like span {
  min-width: 0;
}

.type-family {
  display: grid;
  align-content: start;
  gap: 10px;
}

.family-mark {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  background: #4a9db7;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.type-family h3,
.framework-grid h3,
.resource-grid h3,
.pricing-plan h3,
.type-article h3,
.comparison-band h3 {
  margin: 0;
  color: #2d3443;
  font-size: 20px;
  line-height: 1.25;
}

.type-family p,
.framework-grid p,
.resource-grid p,
.pricing-plan li,
.type-article p,
.comparison-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.type-family a,
.resource-grid a {
  color: #4a8fa5;
  font-weight: 900;
  text-decoration: none;
}

.type-detail-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.type-index {
  align-self: start;
  display: grid;
  gap: 12px;
  background: #fbfaf5;
}

.type-index h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.type-index a {
  color: #4c5665;
  font-weight: 850;
  text-decoration: none;
}

.type-article {
  display: grid;
  gap: 16px;
}

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

.article-columns div {
  padding: 16px;
  background: #f7faf9;
}

.article-columns h4 {
  margin: 0 0 8px;
  color: #303746;
  font-size: 16px;
}

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

.framework-grid article {
  display: grid;
  gap: 10px;
}

.framework-grid span {
  color: #8b61a7;
  font-size: 13px;
  font-weight: 950;
}

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

.comparison-band > div:first-child {
  background: #f7fbfa;
}

.comparison-band > div:last-child {
  background: #fbf7fc;
}

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

.resource-grid article,
.settings-grid article,
.sitemap-grid article,
.scenario-grid article,
.faq-list article,
.language-page-list article {
  display: grid;
  gap: 12px;
}

.resource-type {
  width: fit-content;
  padding: 4px 8px;
  background: #edf6f8;
  color: #3f8fa1;
  font-size: 12px;
  font-weight: 950;
}

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

.scenario-grid span {
  width: fit-content;
  padding: 4px 9px;
  background: #fbfaf5;
  color: #8b61a7;
  font-size: 12px;
  font-weight: 950;
}

.scenario-grid h3,
.faq-list h3,
.language-page-list strong {
  margin: 0;
  color: #2d3443;
  font-size: 19px;
  line-height: 1.25;
}

.scenario-grid p,
.faq-list p,
.language-page-list span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.scenario-grid a {
  color: #4a8fa5;
  font-weight: 900;
  text-decoration: none;
}

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

.language-page-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#page-pricing .pricing-paid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#page-pricing .pricing-paid .pricing-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 18px;
}

#page-pricing .pricing-paid .price span {
  display: block;
}

#page-pricing .pricing-paid a,
#page-pricing .pricing-paid button {
  margin-top: auto;
  min-height: 64px;
  padding: 12px;
  font-size: 14px;
}

.pricing-plan.upcoming {
  grid-template-rows: auto 1fr auto auto;
  background: #f7f8fa;
}

.pricing-pending { color: #596575; }

#page-pricing .pricing-free-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
  background: #f0f8f5;
}

#page-pricing .pricing-free-banner h3 { margin-bottom: 8px; }
#page-pricing .pricing-free-banner p { margin: 0; }
#page-pricing .pricing-free-banner .secondary-link { margin: 0; width: auto; }

.subscription-unavailable:disabled {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #d4d8de;
  border-radius: 28px;
  background: #e4e7eb;
  color: #596575;
  font: inherit;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

@media (max-width: 860px) {
  #page-pricing .pricing-paid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  #page-pricing .pricing-paid { grid-template-columns: minmax(0, 1fr); }
  #page-pricing .pricing-free-banner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

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

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

.pricing-plan {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pricing-plan.featured {
  border-color: var(--brand-navy);
  box-shadow: 0 16px 34px rgba(23, 58, 117, 0.14);
}

.price {
  margin: 0;
  color: var(--brand-gold-strong);
  font-size: 28px;
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.pricing-plan ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.pricing-plan .primary-link,
.pricing-plan .secondary-link {
  width: 100%;
  margin-top: auto;
  font-size: 16px;
}

.detail-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.cast-result-page {
  background: #ffffff;
}

body[data-route-mode="result"],
body[data-route-mode="result"] .shell,
body[data-route-mode="result"] .workspace,
body[data-route-mode="result"] .page-section {
  max-width: 100vw;
  overflow-x: hidden;
}

.cast-result-page .result-masthead {
  display: none;
}

.cast-result-page.content-page {
  padding-top: 0;
}

.cast-result-page.content-page.page-padding {
  padding-top: 0;
  padding-right: 0;
  padding-left: 0;
}

.cast-report-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 0;
  background: #ffffff;
}

.detail-panel.cast-report-page {
  margin-top: 0;
}

.cast-report-page *,
.cast-report-page *::before,
.cast-report-page *::after {
  box-sizing: border-box;
}

.cast-report-hero {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  min-height: 0;
  padding: 28px 24px 34px;
  background: #ffffff;
  text-align: center;
}

.cast-report-hero::before {
  display: none;
  position: absolute;
  top: -48px;
  right: -78px;
  width: 260px;
  height: 260px;
  border-radius: 42px;
  background: rgba(141, 90, 161, 0.12);
  transform: rotate(13deg);
  content: "";
}

.cast-report-kicker {
  position: relative;
  margin: 0 0 8px;
  color: #6f5978;
  font-size: 14px;
  font-weight: 850;
}

.cast-report-hero h1 {
  position: relative;
  margin: 0;
  color: #2b3343;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.04;
}

.cast-report-type {
  position: relative;
  margin: 8px 0 12px;
  color: #8d5aa1;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.12;
}

.cast-report-art {
  position: relative;
  width: min(420px, 100%);
  height: 178px;
  margin-top: 0;
}

.cast-report-art-table {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 180px;
  height: 58px;
  border-radius: 8px 8px 5px 5px;
  background: #726985;
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.22);
  transform: translateX(-50%) skewX(-7deg);
}

.cast-report-art-table::before,
.cast-report-art-table::after {
  position: absolute;
  bottom: -24px;
  width: 14px;
  height: 32px;
  border-radius: 0 0 6px 6px;
  background: #5d566d;
  content: "";
}

.cast-report-art-table::before {
  left: 24px;
}

.cast-report-art-table::after {
  right: 24px;
}

.cast-report-art-paper {
  position: absolute;
  left: 50%;
  bottom: 61px;
  display: grid;
  gap: 7px;
  width: 120px;
  padding: 12px 13px;
  border-radius: 7px;
  background: #fff8dc;
  box-shadow: 0 8px 0 rgba(125, 108, 85, 0.14);
  transform: translateX(-50%);
}

.cast-report-art-paper span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #257f7d;
}

.cast-report-art-paper span:nth-child(2),
.cast-report-art-paper span:nth-child(5) {
  background: linear-gradient(90deg, #257f7d 0 38%, transparent 38% 61%, #257f7d 61% 100%);
}

.cast-report-art-block {
  position: absolute;
  width: 54px;
  height: 68px;
  border-radius: 8px;
  background: #d7bfdc;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.2);
}

.cast-report-art-block.left {
  left: 42px;
  bottom: 42px;
  transform: rotate(-4deg);
}

.cast-report-art-block.left::after {
  position: absolute;
  left: 15px;
  top: -26px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ad86b8;
  transform: rotate(20deg);
  content: "";
}

.cast-report-art-person {
  position: absolute;
  right: 55px;
  bottom: 36px;
  width: 58px;
  height: 86px;
}

.cast-report-art-person::before {
  position: absolute;
  left: 17px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px 9px 12px 12px;
  background: #d9b79f;
  content: "";
}

.cast-report-art-person::after {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 46px;
  height: 58px;
  border-radius: 11px 11px 5px 5px;
  background: #8a638f;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  content: "";
}

.cast-report-intro {
  padding: 28px 36px 10px;
  color: #394252;
  font-size: 17px;
  line-height: 1.7;
}

.cast-report-intro p {
  margin: 0;
}

.cast-report-toc {
  display: grid;
  overflow: hidden;
  margin: 18px 36px 26px;
  border: 1px solid #e8e3ee;
  border-radius: 8px;
  background: #ffffff;
}

.cast-report-toc a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e8e3ee;
  color: #394252;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.cast-report-toc a:last-child {
  border-bottom: 0;
  color: #6f4188;
}

.cast-report-toc strong {
  min-width: 0;
  max-width: 100%;
  color: inherit;
  font-size: 13px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-report-section {
  display: grid;
  gap: 14px;
  padding: 30px 36px;
  border-top: 1px solid #f0edf4;
}

.cast-report-section-kicker {
  margin: 0;
  color: #257f7d;
  font-size: 12px;
  font-weight: 950;
}

.cast-report-section h2 {
  margin: 0;
  color: #2b3343;
  font-size: 30px;
  line-height: 1.14;
}

.result-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #dce6e7;
  background: #f7fbfa;
}

.result-hero-card h3 {
  margin: 0 0 8px;
  color: #2d3443;
  font-size: 30px;
  line-height: 1.15;
}

.result-hero-card p:not(.eyebrow),
.legal-copy p,
.auth-form p,
.auth-note li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.detail-grid article,
.auth-form,
.auth-note,
.legal-copy,
.settings-grid article,
.billing-status,
.billing-table,
.sitemap-grid article,
.article-page {
  border: 1px solid #e1e5e8;
  background: #ffffff;
  padding: 20px;
}

.detail-grid h3,
.auth-note h3,
.legal-copy h3,
.settings-grid h3,
.billing-layout h3,
.sitemap-grid h3,
.article-page h3 {
  margin: 0 0 8px;
  color: #2d3443;
  font-size: 19px;
  line-height: 1.25;
}

.settings-grid p,
.billing-layout p,
.sitemap-grid a,
.article-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.danger-button {
  border-color: #8c2f28;
  background: #a13d33;
}

.danger-button:hover {
  background: #7e2b25;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 24px;
}

.billing-status {
  display: grid;
  align-content: start;
  gap: 14px;
}

.billing-status .auth-status {
  display: grid;
  gap: 4px;
}

.billing-status .auth-status strong,
.billing-status .auth-status span {
  display: block;
}

.billing-table {
  display: grid;
  gap: 14px;
}

.table-like {
  display: grid;
  border: 1px solid var(--line);
}

.table-like div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.table-like div + div {
  border-top: 1px solid var(--line);
}

.table-like strong {
  color: #303746;
}

.table-like a {
  color: #3f8fa1;
  font-weight: 850;
  text-decoration: none;
}

.table-like span {
  overflow-wrap: anywhere;
}

.sitemap-grid a {
  color: #3f8fa1;
  font-weight: 850;
  text-decoration: none;
}

.article-page {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.article-page h3 {
  font-size: 28px;
}

.article-lede {
  max-width: 780px;
  font-size: 17px;
}

.article-section-list {
  display: grid;
  gap: 12px;
}

.article-section-list section {
  padding: 16px;
  background: #f7faf9;
}

.article-section-list h4 {
  margin: 0 0 8px;
  color: #303746;
  font-size: 17px;
}

.page-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-actions-row .primary-link,
.page-actions-row .secondary-link {
  width: auto;
  min-width: 180px;
  font-size: 16px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 24px;
}

.auth-modal-page {
  min-height: calc(100vh - 130px);
  padding: 72px 20px 96px;
  background:
    linear-gradient(rgba(245, 247, 248, 0.78), rgba(245, 247, 248, 0.78)),
    linear-gradient(135deg, #eef7f8, #fbfaf5);
}

.auth-modal-backdrop {
  display: grid;
  place-items: start center;
}

.auth-modal-card {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  width: min(560px, calc(100vw - 40px));
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(28, 35, 45, 0.16);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d9dce2;
  border-radius: 50%;
  background: #ffffff;
  color: #8a91a0;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

.auth-link-form {
  display: grid;
  gap: 16px;
}

.auth-link-form > * {
  min-width: 0;
  max-width: 100%;
}

.auth-link-form h2 {
  margin: 0;
  color: #2d3443;
  font-size: 34px;
  line-height: 1.1;
}

.auth-modal-lede,
.auth-new-user {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.email-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  border: 2px solid var(--brand-teal);
  border-radius: 6px;
  background: #ffffff;
  padding: 0 16px;
}

.email-field .ui-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-teal);
}

.email-field input {
  border: 0;
  padding: 0;
  box-shadow: none;
  font-size: 22px;
}

.auth-code-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #2f879b;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.social-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  width: 100%;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #303746;
  font-size: 21px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.social-auth-button:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.auth-new-user {
  text-align: center;
}

.auth-new-user a {
  color: #2f879b;
  font-weight: 850;
  text-decoration: none;
}

.auth-link-form .auth-submit {
  min-height: 68px;
  font-size: 21px;
}

.create-profile-page {
  min-height: calc(100vh - 130px);
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 44px 36px 128px;
  background: #ffffff;
}

.create-profile-header {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.create-profile-back {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #d9dce2;
  border-radius: 50%;
  color: #9aa1ad;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
}

.create-profile-header h2 {
  margin: 0;
  color: #2d3443;
  font-size: 42px;
  line-height: 1.08;
}

.create-profile-header p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.create-profile-actions {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
}

.create-profile-actions .primary-link,
.secondary-choice-button {
  min-height: 70px;
  width: 100%;
  border-radius: 999px;
  font-size: 21px;
}

.secondary-choice-button {
  border: 1px solid #d9dce2;
  background: #ffffff;
  color: #303746;
  font-weight: 850;
  cursor: pointer;
}

.secondary-choice-button:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.known-result-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  width: min(980px, 100%);
  margin-top: 8px;
}

.known-result-panel[hidden],
.profile-after-test[hidden] {
  display: none !important;
}

.profile-after-test {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #dfe4e8;
  background: #fbfaf5;
  padding: 18px;
}

.profile-after-test h3 {
  margin: 0;
  color: #2d3443;
  font-size: 22px;
}

.profile-after-test p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-provider-group {
  display: grid;
  gap: 14px;
  margin-bottom: 4px;
}

.google-auth-button,
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #303746;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.google-auth-button:hover,
.auth-submit:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.auth-submit {
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}

.auth-submit:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
}

.google-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d9dce2;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-size: 16px;
  font-weight: 900;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #d9dce2;
  background: #ffffff;
}

.password-field:focus-within {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(36, 155, 154, 0.16);
}

.password-field input {
  border: 0;
  box-shadow: none;
}

.password-field button {
  min-width: 56px;
  height: 100%;
  border: 0;
  border-left: 1px solid #e3e7eb;
  background: #f8faf9;
  color: var(--brand-teal-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.password-rules {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.auth-status {
  min-width: 0;
  min-height: 24px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-modal-card .page-actions-row {
  min-width: 0;
  max-width: 100%;
}

.auth-status.success,
.auth-status.error,
.auth-status.info {
  padding: 10px 12px;
  border: 1px solid;
}

.auth-status.success {
  border-color: #b7dfc7;
  background: #f1faf4;
  color: #247346;
}

.auth-status.error {
  border-color: #efc4bd;
  background: #fff5f3;
  color: #9a3428;
}

.auth-status.info {
  border-color: #c5dfe8;
  background: #f1f8fa;
  color: #2f6d7e;
}

.auth-boundary {
  padding: 12px;
  background: #f7faf9;
  font-size: 14px;
}

.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-form-links a {
  color: var(--brand-teal-strong);
  font-weight: 850;
  text-decoration: none;
}

.auth-note {
  display: grid;
  align-content: start;
  gap: 14px;
  background: #fbfaf5;
}

.auth-note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.auth-note .secondary-link {
  width: 100%;
  font-size: 16px;
}

.legal-copy {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.disclosure-status {
  padding: 12px 14px;
  border: 1px solid #d8e2e7;
  background: #f6fafb;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.disclosure-status.ready {
  border-color: #b9ddcf;
  background: #edf7f1;
  color: #236354;
}

.disclosure-status.warning {
  border-color: #edd8aa;
  background: #fff8e8;
  color: #7b5b18;
}

.commercial-disclosure-list {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid #e1e5e8;
}

.commercial-disclosure-list div {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  border-bottom: 1px solid #e1e5e8;
}

.commercial-disclosure-list div:last-child {
  border-bottom: 0;
}

.commercial-disclosure-list dt,
.commercial-disclosure-list dd {
  margin: 0;
  padding: 14px 16px;
  line-height: 1.6;
}

.commercial-disclosure-list dt {
  background: #f8fafb;
  color: #2d3443;
  font-weight: 800;
}

.commercial-disclosure-list dd {
  color: var(--muted);
  border-left: 1px solid #e1e5e8;
  overflow-wrap: anywhere;
}

.profile-heading {
  padding: 34px;
  margin: -24px -24px 24px;
  background: #edf7f1;
}

.profile-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d5e3df;
  background: #ffffff;
  color: #3f5964;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 92px 0 0;
  overflow: hidden;
  background: #eef7f8;
}

.hero::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -2%;
  right: -2%;
  height: 44px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 12%, 78% 70%, 58% 18%, 19% 70%, 0 18%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 12%;
  background: #ffffff;
  clip-path: polygon(0 54%, 14% 36%, 31% 28%, 51% 45%, 64% 31%, 78% 40%, 100% 26%, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 18px;
}

.slider-arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #c6cbd1;
  box-shadow: 0 10px 24px rgba(32, 35, 31, 0.08);
}

.slider-arrow:hover {
  background: #ffffff;
  color: var(--brand-teal);
  box-shadow: 0 14px 26px rgba(32, 35, 31, 0.12);
}

.slider-arrow .ui-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.3;
}

.slider-dots {
  display: flex;
  gap: 12px;
}

.slider-dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9dde3;
}

.slider-dots .active {
  background: var(--brand-gold);
}

.hero-picture {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 500px;
  margin: 34px auto -4px;
  overflow: hidden;
}

.hero-picture::after {
  content: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
  min-width: 0;
  padding: 0 34px;
  text-align: center;
}

.hero-copy h2 {
  max-width: 980px;
  margin-bottom: 18px;
  color: #2c3344;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  color: #4e5866;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(330px, 100%);
  margin: 30px 0 0;
}

.primary-link,
.secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 28px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.primary-link {
  width: 100%;
  background: var(--action);
  border-color: var(--action);
  color: #ffffff;
  box-shadow: 0 14px 26px var(--action-shadow);
}

.secondary-link {
  background: #ffffff;
  color: var(--accent-strong);
}

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

.primary-link .ui-icon,
.secondary-link .ui-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.35;
}

.primary-link:hover {
  background: var(--action-strong);
  border-color: var(--action-strong);
  box-shadow: 0 18px 30px var(--action-shadow-strong);
}

.secondary-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.primary-link:active,
.secondary-link:active {
  transform: translateY(1px);
  box-shadow: none;
}

.link-arrow,
.chevron-icon,
.close-icon,
.tool-icon,
.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.link-arrow {
  width: 20px;
  height: 20px;
}

.link-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.link-arrow::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.chevron-icon {
  width: 18px;
  height: 18px;
}

.chevron-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.chevron-left::before {
  transform: rotate(-135deg);
}

.chevron-right::before {
  transform: rotate(45deg);
}

.close-icon {
  width: 24px;
  height: 24px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.hero-note {
  max-width: 580px;
  margin-bottom: 0;
  color: #6f7480;
  font-size: 13px;
  line-height: 1.6;
}

.home-stats,
.home-testimonials,
.home-final-cta {
  position: relative;
  padding: 56px 34px;
}

.home-stats {
  padding-top: 0;
  padding-bottom: 62px;
  background: #ffffff;
}

.home-section-heading {
  width: min(760px, 100%);
  margin: 0 auto 24px;
}

.home-section-heading.centered {
  text-align: center;
}

.home-section-heading h2,
.home-story-copy h2,
.home-final-cta h2 {
  margin: 0;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: 0;
}

.home-section-heading p:not(.home-pill),
.home-story-copy p:not(.home-pill),
.home-final-cta p {
  margin: 14px 0 0;
  color: #4f5967;
  font-size: 17px;
  line-height: 1.68;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dcece7;
  color: #176b5b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(1300px, 100%);
  margin: 0 auto;
}

.home-stat-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 178px;
  padding: 30px 22px;
  border: 1px solid #e3e0d8;
  border-top: 6px solid var(--stat-color, #4a9db7);
  border-radius: 8px;
  background: var(--stat-bg, #f5fbfd);
  text-align: center;
}

.home-stat-card strong {
  max-width: 100%;
  color: #2c3344;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-stat-card span {
  color: #1f2e43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.stat-blue {
  --stat-color: #4a9db7;
  --stat-bg: #eef8fb;
}

.stat-gold {
  --stat-color: #d7a62f;
  --stat-bg: #fff8e8;
}

.stat-green {
  --stat-color: #37a47c;
  --stat-bg: #eef8f3;
}

.stat-purple {
  --stat-color: #8b61a7;
  --stat-bg: #f5eff8;
}

.home-story-section {
  position: relative;
  padding: 120px 34px 110px;
  overflow: hidden;
  background: #f6f6f6;
}

.home-story-section::before,
.home-story-section::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  height: 76px;
  pointer-events: none;
}

.home-story-section::before {
  top: -1px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 44%, 78% 28%, 58% 58%, 19% 24%, 0 43%);
}

.home-story-section::after {
  bottom: -1px;
  background: #ffffff;
  clip-path: polygon(0 58%, 15% 78%, 42% 58%, 66% 70%, 91% 50%, 100% 42%, 100% 100%, 0 100%);
}

.story-team {
  background: #f6f6f6;
}

.story-team .home-story-inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  justify-content: initial;
  gap: 72px;
  text-align: left;
}

.story-team .home-story-art {
  min-height: 360px;
}

.story-team .home-story-art::before {
  inset: 30px 20px;
  border-radius: 0;
  clip-path: polygon(13% 13%, 51% 0, 91% 14%, 100% 70%, 53% 100%, 4% 72%);
  background: rgba(255, 255, 255, 0.82);
}

.story-team .home-story-art img {
  width: min(500px, 86%);
  max-height: 330px;
}

.story-team .home-story-copy {
  display: grid;
  justify-items: start;
}

.story-team .home-story-copy p:not(.home-pill) {
  width: auto;
}

.story-team .home-story-copy .primary-link {
  width: auto;
  min-width: 278px;
}

.home-story-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 72px;
  width: min(1300px, 100%);
  margin: 0 auto;
}

.home-story-inner.reverse {
  grid-template-columns: minmax(340px, 1.1fr) minmax(0, 0.9fr);
}

.home-story-inner.reverse .home-story-art {
  order: 0;
}

.home-story-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.home-story-art::before {
  content: "";
  position: absolute;
  inset: 30px 20px;
  background: rgba(255, 255, 255, 0.82);
  clip-path: polygon(13% 13%, 51% 0, 91% 14%, 100% 70%, 53% 100%, 4% 72%);
}

.home-story-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(430px, 78%);
  max-height: 320px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

/* Fade the landscape perimeter into the section without softening the subject. */
.story-types .home-story-art::before,
.story-team .home-story-art::before {
  content: none;
}

.home-story-art img[src$="-mountains.png"] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.story-team .home-story-art img[src$="-mountains.png"] {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, rgba(0, 0, 0, 0.85) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 48%, rgba(0, 0, 0, 0.85) 66%, transparent 100%);
}

.home-story-copy {
  min-width: 0;
}

.home-story-copy .primary-link {
  width: auto;
  min-width: 278px;
  margin-top: 30px;
  padding-inline: 34px;
}

.home-testimonials {
  padding-top: 76px;
  background: #f7f7f7;
  overflow: hidden;
}

.home-testimonials .home-section-heading::before {
  content: "“";
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px 14px 18px 18px;
  background: #e0aa2d;
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  margin: 28px auto 0;
}

.testimonial-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 250px;
  padding: 26px 24px;
  border: 1px solid #e4e1da;
  border-top: 6px solid var(--quote-color, #8b61a7);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(32, 35, 31, 0.06);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.testimonial-person span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--quote-soft, #f0e7f4);
  color: var(--quote-color, #8b61a7);
  font-weight: 950;
}

.testimonial-person strong {
  min-width: 0;
  color: #2f3745;
  font-size: 18px;
}

.testimonial-card p {
  margin: 0;
  color: #4f5967;
  font-size: 16px;
  line-height: 1.7;
}

.testimonial-purple {
  --quote-color: #8b61a7;
  --quote-soft: #f0e7f4;
}

.testimonial-green {
  --quote-color: #37a47c;
  --quote-soft: #e5f4ee;
}

.testimonial-gold {
  --quote-color: #d7a62f;
  --quote-soft: #fff1cc;
}

.testimonial-dots {
  justify-content: center;
  margin-top: 28px;
}

.home-final-cta {
  display: grid;
  justify-items: center;
  overflow: hidden;
  text-align: center;
  padding-top: 0;
  padding-bottom: 96px;
  background: #eaf7f0;
}

.home-final-cta::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: -1px;
  height: 92px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 46%, 84% 28%, 58% 58%, 31% 34%, 9% 50%, 0 42%);
  pointer-events: none;
}

.home-final-cta::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 96px;
  background: #ffffff;
  clip-path: polygon(0 54%, 18% 42%, 45% 48%, 64% 36%, 87% 47%, 100% 38%, 100% 100%, 0 100%);
}

.home-final-cta > * {
  position: relative;
  z-index: 1;
}

.home-final-picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 170px;
  margin: -18px 0 24px;
  overflow: hidden;
}

.home-final-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.home-final-cta h2 {
  width: min(720px, 100%);
  padding: 0 24px;
  font-size: 40px;
}

.home-final-cta p {
  width: min(640px, 100%);
  padding: 0 24px;
}

.home-final-cta .primary-link {
  width: min(560px, calc(100% - 48px));
  margin-top: 30px;
}

.site-footer {
  position: relative;
  padding: 76px 42px 42px;
  border-top: 0;
  background: #ffffff;
  color: #303746;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.footer-group h2 {
  margin: 0 0 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e7eb;
  color: #2d3443;
  font-size: 18px;
  line-height: 1.25;
}

.footer-group a,
.footer-link-button,
.legal-links a {
  color: #3c4454;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.footer-group a:hover,
.footer-link-button:hover,
.legal-links a:hover {
  color: var(--brand-teal-strong);
}

.footer-link-button {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-legal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  width: min(1320px, 100%);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e6e8eb;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
}

.copyright {
  margin: 0;
  color: #747c89;
  font-size: 14px;
  line-height: 1.45;
}

.bottom-nav {
  display: none;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) min(520px, calc(100vw - 72px));
}

.mobile-menu-scrim {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: rgba(31, 37, 44, 0.35);
  backdrop-filter: blur(2px);
}

.mobile-menu-panel {
  min-width: 0;
  min-height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: -18px 0 36px rgba(20, 25, 32, 0.18);
}

.mobile-menu-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 14px 22px 14px 28px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 24px var(--action-shadow);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.mobile-menu-cta:hover {
  background: var(--action-strong);
  transform: translateY(-1px);
}

.mobile-menu-close {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #2f3746;
}

.mobile-menu-close .ui-icon,
.language-close .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.mobile-menu-close:hover {
  background: #f3f5f7;
  color: #111827;
  box-shadow: none;
}

.mobile-menu-list {
  display: grid;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid #eceef1;
  color: #303746;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 140ms ease,
    color 140ms ease,
    padding-left 140ms ease;
}

.mobile-menu-list a:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  padding-left: 32px;
}

.mobile-menu-tools {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid #eceef1;
}

.mobile-menu-tools button,
.mobile-menu-tools a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  background: #ffffff;
  color: #303746;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-tools .ui-icon {
  width: 25px;
  height: 25px;
  color: #303746;
  stroke-width: 2.15;
}

.mobile-menu-tools span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  color: #303746;
}

.tool-icon {
  width: 28px;
  height: 28px;
  color: #303746;
}

.tool-icon-report {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tool-icon-report::before,
.tool-icon-report::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.tool-icon-report::before {
  width: 3px;
  height: 11px;
  top: 6px;
}

.tool-icon-report::after {
  width: 4px;
  height: 4px;
  bottom: 5px;
}

.tool-icon-faq::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tool-icon-faq::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 3px;
  right: 1px;
  bottom: 3px;
  transform: rotate(45deg);
  background: currentColor;
  border-radius: 2px;
}

.mobile-auth-actions {
  display: grid;
  gap: 10px;
  width: calc(100% - 56px);
  margin: 16px 28px 28px;
}

.mobile-menu-login {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #303746;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.mobile-menu-login:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.mobile-menu-login[data-auth-disabled-entry="true"],
.mobile-menu-login[data-auth-disabled-entry="true"]:hover {
  border-color: #d6dbe1;
  background: #f3f5f7;
  color: #7a828d;
}

.mobile-menu-login.secondary {
  background: #f8faf9;
}

.language-modal[hidden] {
  display: none !important;
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: start center;
  padding: 92px 20px 24px;
}

.language-modal-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(37, 43, 52, 0.34);
}

.language-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 120px));
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(24, 31, 42, 0.22);
}

.language-card-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: 22px 26px;
  border-bottom: 1px solid #edf0f2;
  background: #ffffff;
}

.language-card-head h2 {
  margin: 0;
  color: #303746;
  font-size: 34px;
  line-height: 1;
}

.language-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e2e5e8;
  border-radius: 50%;
  background: #ffffff;
  color: #9aa1ab;
}

.language-close:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  box-shadow: none;
}

.language-list {
  max-height: calc(min(760px, 100vh - 120px) - 86px);
  overflow-y: auto;
  padding-bottom: 14px;
}

.language-option {
  display: grid;
  justify-items: start;
  width: 100%;
  min-height: 72px;
  padding: 12px 26px;
  border: 0;
  background: #ffffff;
  color: #303746;
  text-align: left;
}

.language-option.active {
  background: var(--brand-teal-soft);
  color: var(--brand-navy);
  box-shadow: inset 4px 0 0 var(--brand-gold);
}

.language-option strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.language-option span {
  display: block;
  margin-top: 3px;
  color: #68707e;
  font-size: 17px;
  line-height: 1.25;
}

.account-label {
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.9fr);
  gap: 0;
}

.question-pane,
.profile-pane {
  padding: 24px;
}

.profile-pane {
  border-left: 1px solid var(--line);
  background: #fbfaf5;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title.compact {
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #b9d5cc;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.muted {
  border-color: var(--line);
  background: #f0eee7;
  color: var(--muted);
}

.badge.warning {
  border-color: #ddc288;
  background: var(--warning-soft);
  color: var(--warning);
}

.ask-form {
  display: grid;
  gap: 12px;
}

.divination-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfaf5;
}

.form-row {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-row.wide {
  grid-column: 1 / -1;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timezone-auto-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.timezone-auto-panel strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.timezone-manual-panel {
  display: grid;
  gap: 7px;
}

.timezone-manual-panel[hidden] {
  display: none;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
  padding: 14px;
  line-height: 1.6;
}

input,
select {
  min-height: 40px;
  padding: 9px 10px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.14);
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  overflow: hidden;
}

.tier-row label {
  min-height: 42px;
  color: var(--ink);
  cursor: pointer;
}

.tier-row label + label {
  border-left: 1px solid var(--line);
}

.tier-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.tier-row span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  text-align: center;
}

.tier-row input:checked + span {
  background: var(--accent);
  color: #ffffff;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

button {
  min-height: 46px;
  border: 1px solid var(--action);
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

button:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
  box-shadow: 0 10px 22px var(--action-shadow);
}

.icon-button:hover {
  background: var(--brand-teal-soft);
  box-shadow: none;
}

.menu-button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  box-shadow: none;
}

button:active {
  transform: translateY(1px);
  box-shadow: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button.auth-disabled-entry:disabled {
  cursor: not-allowed;
  opacity: 1;
}

#formHint {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

#formHint[data-tone="info"] {
  color: var(--brand-navy);
  font-weight: 800;
}

#formHint[data-tone="error"] {
  color: #9b1c1c;
  font-weight: 800;
}

.answer-box {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.answer {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  line-height: 1.7;
  white-space: pre-wrap;
}

.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfaf5;
}

.result-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-summary dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.result-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.result-summary dt,
.result-summary dd {
  margin: 0;
}

.result-summary dt {
  color: var(--muted);
}

.result-summary dd {
  font-weight: 800;
}

.hexagram-api-summary {
  background: #f5fbf8;
}

.hexagram-api-result {
  display: grid;
  gap: 16px;
  white-space: normal;
}

.hexagram-postcard-picture {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(43, 51, 67, 0.1);
  border-radius: 8px;
  background: #f8f4ea;
}

.hexagram-postcard-picture img {
  display: block;
  width: 100%;
  height: auto;
}

.hexagram-result-postcard {
  width: min(680px, 100%);
  margin: 0 auto;
  box-shadow: 0 18px 36px rgba(43, 51, 67, 0.12);
  cursor: pointer;
}

.cast-report-postcard {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  box-shadow: 0 22px 44px rgba(43, 51, 67, 0.16);
  cursor: pointer;
}

body.postcard-preview-open {
  overflow: hidden;
}

.cast-postcard-preview {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cast-postcard-preview-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(22, 27, 39, 0.58);
  backdrop-filter: blur(8px);
  appearance: none;
}

.cast-postcard-preview-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: fit-content;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  perspective: 1800px;
  animation: postcardPreviewEnter 180ms ease-out;
}

.cast-postcard-preview-card {
  position: relative;
  width: fit-content;
  max-width: 100%;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.cast-postcard-preview-card:focus {
  outline: none;
}

.cast-postcard-preview-card:focus-visible {
  outline: none;
}

.cast-postcard-preview-card.is-flipped {
  transform: rotateY(180deg);
}

.cast-postcard-preview-face {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  backface-visibility: hidden;
}

.cast-postcard-preview-front {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.cast-postcard-preview-back {
  position: relative;
  min-height: 0;
  border: 1px solid rgba(43, 51, 67, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    #f8f4ea;
  box-shadow: 0 30px 80px rgba(10, 14, 24, 0.34);
  transform: rotateY(180deg);
}

.cast-postcard-back-writing {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(170px, 0.62fr);
  gap: 26px;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 34px 38px;
  color: #3b4653;
  background: transparent;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Local classical report: the card retains its size; its reverse scrolls. */
.has-classical-report .cast-postcard-preview-panel { perspective: none; }
.has-classical-report .cast-postcard-preview-card {
  transform-style: flat;
  transition: none;
}
.has-classical-report .cast-postcard-preview-card.is-flipped { transform: none; }
.has-classical-report .cast-postcard-preview-back {
  transform: none;
  visibility: hidden;
  pointer-events: none;
}
.has-classical-report .is-flipped .cast-postcard-preview-front {
  visibility: hidden;
  pointer-events: none;
}
.has-classical-report .is-flipped .cast-postcard-preview-back {
  visibility: visible;
  pointer-events: auto;
}
.cast-postcard-classical-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(48px, 8vh, 84px) clamp(30px, 6vw, 72px);
  box-sizing: border-box;
  cursor: auto;
  font-family: "Courier New", "Noto Sans Mono CJK SC", "SimSun", monospace;
}
.cast-postcard-classical-report button {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #c5bdae;
  border-radius: 4px;
  background: #faf7ef;
  color: #413c34;
}
.cast-postcard-classical-report {
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  padding-right: 0;
  padding-bottom: 16px;
  color: #37332d;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.cast-postcard-classical-report h2,
.cast-postcard-classical-report h3,
.cast-postcard-classical-report p {
  font-family: inherit;
}
.cast-postcard-classical-report h2 { font-size: 20px; margin: 0 0 14px; }
.cast-postcard-classical-report h3 { font-size: 16px; margin: 22px 0 10px; }
.cast-postcard-classical-report p { font-size: 14px; line-height: 1.8; margin: 0; max-width: none; }
.cast-postcard-classical-report p + p { margin-top: 14px; }
.cast-postcard-classical-report details { margin-top: 24px; font-size: 13px; line-height: 1.8; }
.cast-postcard-classical-report a { color: #665c48; }
@media (min-width: 641px) {
  .cast-postcard-classical-report p {
    font-size: clamp(18px, 1.8vw, 26px);
    line-height: 1.8;
  }
  .cast-postcard-classical-report p + p { margin-top: 1em; }
}
@media (max-width: 640px) {
  .cast-postcard-classical-report p { font-size: 13px; line-height: 1.75; }
  .cast-postcard-classical-report h2 { font-size: 18px; }
  .cast-postcard-classical-report h3 { font-size: 15px; }
}

.cast-postcard-back-note {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding-top: 12px;
}

.cast-postcard-back-kicker {
  color: #697584;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cast-postcard-back-note p {
  margin: 0;
  max-width: 35ch;
  color: #2f3946;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cast-postcard-back-address {
  display: grid;
  align-content: start;
  gap: 26px;
  min-width: 0;
  border-left: 0;
  padding-left: 24px;
}

.cast-postcard-back-stamp {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid rgba(80, 92, 105, 0.28);
  color: #647181;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.cast-postcard-back-address dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.cast-postcard-back-address div {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-bottom: 0;
  padding-bottom: 8px;
}

.cast-postcard-back-address dt {
  color: #697584;
  font-size: 12px;
  font-weight: 800;
}

.cast-postcard-back-address dd {
  min-width: 0;
  margin: 0;
  color: #303a47;
  font-size: 17px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.cast-postcard-preview-stamps {
  position: absolute;
  top: clamp(28px, 5.4%, 64px);
  right: clamp(110px, 13%, 170px);
  z-index: 2;
  display: flex;
  gap: clamp(8px, 1vw, 16px);
  align-items: center;
  width: min(45%, 560px);
  min-width: 236px;
  transform: rotate(-8deg);
  transform-origin: center center;
  pointer-events: none;
}

.cast-postcard-preview-postmark {
  position: relative;
  flex: 0 0 31%;
  z-index: 3;
  width: 31%;
  height: auto;
  color: #6c7a89;
  opacity: 0.94;
  overflow: visible;
  mix-blend-mode: multiply;
  filter: contrast(1.06);
}

.cast-postcard-preview-postmark .postmark-ring {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cast-postcard-preview-postmark .postmark-ring circle:first-child {
  stroke-width: 5;
}

.cast-postcard-preview-postmark .postmark-ring circle:last-child {
  stroke-width: 2.25;
  opacity: 0.82;
}

.cast-postcard-preview-postmark text {
  fill: currentColor;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cast-postcard-preview-postmark .postmark-time {
  font-size: 16px;
  letter-spacing: 0.12em;
}

.cast-postcard-preview-postmark .postmark-top-text {
  letter-spacing: 0;
  text-transform: none;
}

.cast-postcard-preview-postmark .postmark-bottom-text {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.cast-postcard-preview-postage-layer {
  position: absolute;
  top: clamp(30px, 5.8%, 76px);
  right: clamp(30px, 4%, 52px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
  align-items: start;
  width: min(43%, 560px);
  min-width: 280px;
  pointer-events: none;
}

.cast-postcard-preview-postage-layer.stamp-count-1 {
  grid-template-columns: minmax(0, 0.52fr);
  justify-content: end;
}

.cast-postcard-preview-postage-stamp,
.cast-postcard-preview-postage-stamp img {
  display: block;
}

.cast-postcard-preview-postage-stamp img {
  width: 100%;
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 5px 6px rgba(65, 72, 84, 0.14));
}

.cast-postcard-preview-postage-stamp.stamp-1 {
  transform: rotate(-0.16deg) translateY(0);
}

.cast-postcard-preview-postage-stamp.stamp-2 {
  transform: rotate(0.14deg) translateY(0);
}

.cast-postcard-preview-wave-postmarks {
  position: relative;
  flex: 1 1 auto;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(4px, 0.77vw, 13px);
  align-items: start;
}

.cast-postcard-preview-wave-postmarks.stamp-count-1 {
  grid-template-columns: minmax(0, 0.52fr);
  justify-content: end;
}

.cast-postcard-preview-wave-postmarks img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  mix-blend-mode: multiply;
  filter: contrast(1.08);
}

.cast-postcard-preview-picture {
  width: fit-content;
  max-width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 30px 80px rgba(10, 14, 24, 0.34);
}

.cast-postcard-preview-picture img {
  width: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 108px);
  border-radius: 8px;
  object-fit: contain;
}

@keyframes postcardPreviewEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.result-visual-board {
  margin-top: 16px;
  margin-bottom: 16px;
}

.cast-report-page .result-visual-board {
  margin: 0;
}

.hexagram-visual-card {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hexagram-visual-card h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.hexagram-visual-card p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.hexagram-visual-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hexagram-svg {
  display: block;
  width: 152px;
  max-width: 100%;
  height: auto;
  color: var(--ink);
}

.hexagram-svg-line rect {
  fill: currentColor;
}

.hexagram-svg-line circle {
  fill: #a15b28;
}

.hexagram-svg-line.moving rect {
  fill: #2f6f73;
}

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

.hexagram-result-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hexagram-result-grid h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.hexagram-result-grid p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.hexagram-result-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hexagram-line-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hexagram-line-head,
.hexagram-line-row {
  display: grid;
  grid-template-columns: 52px minmax(72px, 1fr) minmax(72px, 1fr) minmax(72px, 1fr) 56px 56px;
  min-width: 560px;
}

.hexagram-line-head span,
.hexagram-line-row span {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.hexagram-line-head span {
  background: #f3f6f4;
  color: var(--muted);
  font-weight: 900;
}

.hexagram-line-row:last-child span {
  border-bottom: 0;
}

.hexagram-claim-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b8d8d0;
  border-radius: 8px;
  background: #f5fbf8;
}

.hexagram-claim-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.hexagram-claim-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hexagram-claim-panel > div > span,
.claim-note {
  display: block;
  color: #53606e;
  font-size: 13px;
  line-height: 1.45;
}

.hexagram-claim-panel label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.claim-email-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.claim-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.claim-action-row button {
  flex: 1 1 180px;
  min-height: 48px;
}

.claim-action-row .social-auth-button {
  margin-top: 0;
}

.paid-report-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7c08a;
  border-radius: 8px;
  background: #fffaf0;
}

.cast-report-page .paid-report-panel {
  justify-items: center;
  margin: 0 36px 28px;
  padding: 34px 30px;
  border: 0;
  background:
    linear-gradient(135deg, rgba(141, 90, 161, 0.12) 0%, rgba(141, 90, 161, 0.04) 55%),
    #f6eff8;
  text-align: center;
}

.paid-report-art {
  display: none;
}

.cast-report-page .paid-report-art {
  position: relative;
  display: block;
  width: 176px;
  height: 104px;
  margin: 0 auto 4px;
}

.paid-report-art-paper {
  position: absolute;
  left: 44px;
  top: 8px;
  width: 92px;
  height: 70px;
  border-radius: 8px;
  background: #fff8dc;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.07);
}

.paid-report-art-paper::before,
.paid-report-art-paper::after {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 7px;
  border-radius: 99px;
  background: #257f7d;
  content: "";
}

.paid-report-art-paper::before {
  top: 23px;
}

.paid-report-art-paper::after {
  top: 42px;
}

.paid-report-art-cube {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #c5a6cf;
}

.paid-report-art-cube.left {
  left: 12px;
  bottom: 8px;
}

.paid-report-art-cube.right {
  right: 16px;
  bottom: 18px;
  background: #8cc7c2;
}

.paid-report-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.cast-report-page .paid-report-panel h3 {
  font-size: 30px;
  line-height: 1.12;
}

.paid-report-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.paid-report-panel label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.paid-report-action-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.paid-report-action-row input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.paid-report-action-row .primary-link {
  min-height: 48px;
  white-space: nowrap;
}

.cast-report-page .paid-report-action-row {
  width: min(520px, 100%);
  grid-template-columns: 1fr;
  justify-items: center;
}

.cast-report-page .paid-report-action-row input {
  min-height: 52px;
  text-align: left;
}

.cast-report-page .paid-report-action-row .primary-link {
  width: min(340px, 100%);
  white-space: normal;
  min-height: 54px;
  border-radius: 999px;
  background: #8d5aa1;
  box-shadow: none;
}

.paid-report-panel .auth-status {
  margin: 0;
}

.cast-report-page .paid-report-panel .auth-status {
  width: min(520px, 100%);
  text-align: left;
}

.cast-report-actions {
  padding: 0 36px 34px;
}

.cast-report-actions .primary-link {
  border-radius: 999px;
  background: #173a75;
}

.cast-report-actions .secondary-link {
  border-radius: 999px;
  color: #257f7d;
}

.raw-json-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101418;
  color: #edf2f7;
}

.raw-json-panel summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 900;
}

.raw-json-panel pre {
  max-height: 520px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.type-code {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 32px;
  margin-right: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.type-code.small {
  min-width: 34px;
  min-height: 26px;
  font-size: 12px;
}

.empty {
  color: var(--muted);
}

.profile-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}

.profile-tools label {
  grid-column: 1 / -1;
}

.profile-tools button {
  min-width: 92px;
}

.snapshot-panel,
.history-panel {
  margin-top: 18px;
}

.snapshot-panel h3,
.history-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
}

#page-assessment {
  min-height: calc(100svh - 72px);
  padding: 74px 0 112px;
  background: #ffffff;
}

#page-assessment .test-masthead {
  justify-items: stretch;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 22px;
  background: transparent;
  text-align: left;
}

#page-assessment .test-masthead::before,
#page-assessment .test-masthead::after {
  display: none;
}

#page-assessment .test-masthead h2 {
  max-width: 640px;
  margin: 0 0 12px;
  color: #182338;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

#page-assessment .test-masthead p {
  max-width: 650px;
  color: #4d5d6a;
  font-size: 16px;
  line-height: 1.65;
}

#page-assessment .grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(900px, calc(100% - 64px));
  margin: 0 auto;
}

#page-assessment .question-pane,
#page-assessment .profile-pane {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#page-assessment .question-pane {
  padding: 0;
}

#page-assessment .assessment-panel-header {
  display: grid;
  gap: 14px;
  margin-bottom: 38px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e7ebef;
}

#page-assessment .assessment-panel-header h2 {
  max-width: 760px;
  margin: 0;
  color: #172338;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 950;
}

#page-assessment .assessment-panel-header p {
  max-width: 780px;
  margin: 0;
  color: #425466;
  font-size: 17px;
  line-height: 1.75;
}

#page-assessment .profile-pane {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 24px;
  padding: 28px 30px;
  border-top-color: var(--brand-gold);
}

#page-assessment .profile-pane > .section-title,
#page-assessment .profile-tools {
  grid-column: 1 / -1;
}

#page-assessment .section-title {
  margin-bottom: 18px;
}

#page-assessment .section-title h2 {
  color: #2c3344;
  font-size: 24px;
  line-height: 1.2;
}

#page-assessment .assessment-lede {
  max-width: 760px;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #607080;
  font-size: 15px;
  line-height: 1.7;
}

#page-assessment .question-field-hint {
  max-width: 760px;
  margin: 4px 0 16px;
  color: #5d6c7a;
  font-size: 14px;
  line-height: 1.65;
}

#page-assessment .question-template-guide,
#page-assessment .question-example-guide {
  max-width: 760px;
  border-top: 1px solid #e7ebef;
  color: #243044;
}

#page-assessment .question-template-guide summary,
#page-assessment .question-example-guide summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  cursor: pointer;
  color: #1c5966;
  font-size: 15px;
  font-weight: 900;
  list-style: none;
}

#page-assessment .question-template-guide summary::-webkit-details-marker,
#page-assessment .question-example-guide summary::-webkit-details-marker {
  display: none;
}

#page-assessment .question-template-guide summary::after,
#page-assessment .question-example-guide summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

#page-assessment .question-template-guide[open] summary::after,
#page-assessment .question-example-guide[open] > summary::after {
  transform: rotate(225deg);
}

#page-assessment .question-template-content {
  display: grid;
  gap: 12px;
  padding: 0 0 24px;
  color: #354358;
  font-size: 15px;
  line-height: 1.7;
}

#page-assessment .question-template-content p {
  margin: 0;
}

#page-assessment .question-template-content ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.25em;
}

#page-assessment .template-note {
  color: #5d6976;
}

#page-assessment .question-example-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 24px;
  list-style: none;
}

#page-assessment .question-example-list li {
  display: grid;
  grid-template-columns: minmax(110px, 20%) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #354358;
  font-size: 15px;
  line-height: 1.7;
}

#page-assessment .question-example-list strong {
  color: #176b73;
  font-size: 13px;
  line-height: 1.6;
}

#page-assessment .badge {
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 900;
}

#page-assessment .casting-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#page-assessment .casting-mode label {
  min-width: 0;
  cursor: pointer;
}

#page-assessment .casting-mode input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

#page-assessment .casting-mode span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #ffffff;
  color: #344153;
}

#page-assessment .casting-mode strong {
  color: #2c3344;
  font-size: 16px;
  line-height: 1.25;
}

#page-assessment .casting-mode small {
  color: #68707e;
  font-size: 13px;
  line-height: 1.35;
}

#page-assessment .casting-mode input:checked + span {
  border-color: #a8d9d7;
  background: var(--brand-teal-soft);
  box-shadow: inset 4px 0 0 var(--brand-teal);
}

#page-assessment .text-cast-panel {
  display: grid;
  gap: 14px;
}

#page-assessment .advanced-casting {
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #ffffff;
}

#page-assessment .advanced-casting summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  min-height: 62px;
  padding: 14px 16px;
  color: #2c3344;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

#page-assessment .advanced-casting summary::-webkit-details-marker {
  display: none;
}

#page-assessment .advanced-casting summary::after {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

#page-assessment .advanced-casting[open] summary::after {
  transform: rotate(225deg);
}

#page-assessment .advanced-casting summary small {
  grid-column: 1 / -1;
  color: #68707e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

#page-assessment .advanced-casting .divination-fields {
  padding: 0 16px 16px;
}

#page-assessment .divination-fields {
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

#page-assessment label,
#page-assessment .field-label {
  color: #182338;
  font-size: 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

#page-assessment textarea,
#page-assessment input,
#page-assessment select {
  min-height: 54px;
  border-color: #d7dde3;
  border-radius: 8px;
  background: #ffffff;
  font-size: 16px;
}

#page-assessment textarea {
  max-width: 760px;
  min-height: 248px;
  padding: 22px;
  color: #223044;
  line-height: 1.7;
  resize: vertical;
}

#page-assessment .question-counter {
  max-width: 760px;
  margin: 8px 0 0;
  color: #7a8592;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

#page-assessment .question-counter.is-short {
  color: #a64d35;
  text-align: left;
}

#page-assessment .question-counter.is-near-limit {
  color: #7a6414;
  text-align: left;
}

#page-assessment textarea:focus,
#page-assessment input:focus,
#page-assessment select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(36, 155, 154, 0.18);
}

#page-assessment .timezone-auto-panel {
  min-height: 98px;
  border-color: #dfe5e8;
  border-radius: 8px;
  background: #f7faf9;
  padding: 16px 18px;
}

#page-assessment .timezone-auto-panel strong {
  color: #2c3344;
  font-size: 15px;
}

#page-assessment .timezone-auto-panel .secondary-choice-button {
  width: auto;
  min-width: 104px;
  min-height: 58px;
  font-size: 17px;
}

#page-assessment .tier-row {
  gap: 10px;
  margin-top: 4px;
  border: 0;
  overflow: visible;
}

#page-assessment .tier-row label {
  min-height: 56px;
  border: 1px solid #dfe5e8;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

#page-assessment .tier-row label + label {
  border-left: 1px solid #dfe5e8;
}

#page-assessment .tier-row span {
  color: #344153;
  font-size: 15px;
  font-weight: 900;
}

#page-assessment .tier-row input:checked + span {
  background: var(--brand-gold-soft);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 2px var(--brand-gold);
}

#page-assessment .actions {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 16px;
  align-items: center;
  max-width: 760px;
  margin-top: 28px;
}

#page-assessment #submitButton {
  min-height: 62px;
  border-color: var(--action);
  background: var(--action);
  border-radius: 999px;
  font-size: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
}

#page-assessment #submitButton:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
}

#page-assessment #formHint {
  max-width: none;
  margin: 0;
  padding: 0 2px;
  color: #6a7784;
  font-size: 13px;
  line-height: 1.55;
}

#page-assessment .answer-box {
  margin-top: 30px;
  padding-top: 26px;
}

#page-assessment .result-summary,
#page-assessment .answer,
#page-assessment .profile-after-test,
#page-assessment .snapshot-item {
  border-color: #dfe5e8;
  border-radius: 8px;
  background: #f9fbfa;
}

#page-assessment .answer {
  min-height: 190px;
  padding: 18px;
}

#page-assessment .profile-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 0;
}

#page-assessment .profile-tools button,
#page-assessment .auth-submit {
  min-height: 54px;
  border-color: var(--brand-teal-strong);
  background: var(--brand-teal-strong);
}

#page-assessment .snapshot-panel,
#page-assessment .history-panel {
  min-height: 140px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #f9fbfa;
}

#page-assessment .snapshot-panel {
  grid-column: span 1;
}

#page-assessment .history-panel {
  grid-column: span 2;
}

#page-assessment .snapshot-panel h3,
#page-assessment .history-panel h3 {
  color: #2c3344;
  font-size: 18px;
  font-weight: 900;
}

.snapshot-list {
  display: grid;
  gap: 10px;
}

.snapshot-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}

.snapshot-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.snapshot-head time {
  color: var(--muted);
  font-size: 12px;
}

.snapshot-item p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.risk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-row span {
  padding: 3px 7px;
  border: 1px solid #ddc288;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
}

.history {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 4px;
  line-height: 1.5;
}

.history-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.history-question {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.history-answer {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

.metric-card,
.risk-card,
.timeline-item,
.action-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.metric-card.wide {
  grid-column: span 3;
}

.metric-card h3,
.risk-card h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.metric-card p,
.risk-card p,
.timeline-item p,
.action-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
}

.timeline-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item strong,
.action-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}

.timeline-item .risk-row {
  margin-top: 10px;
}

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

.risk-card {
  border-left: 5px solid #8ca49c;
}

.risk-card.medium {
  border-left-color: #b98425;
}

.risk-card.high {
  border-left-color: #a13d33;
}

.risk-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 8px;
  background: #f0eee7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.risk-card.medium span,
.risk-card.high span {
  background: var(--warning-soft);
  color: var(--warning);
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

@media (min-width: 861px) {
  .hero {
    isolation: isolate;
    min-height: calc(100vh - 102px);
    padding-top: clamp(78px, 10vh, 118px);
    align-content: start;
  }

  .hero::before,
  .hero::after {
    z-index: 2;
  }

  .hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    margin: 0;
  }

  .hero-picture::after {
    position: absolute;
    inset: 0;
    display: block;
    background:
      linear-gradient(
        180deg,
        rgba(238, 247, 248, 0.78) 0%,
        rgba(238, 247, 248, 0.66) 28%,
        rgba(238, 247, 248, 0.18) 48%,
        rgba(255, 255, 255, 0) 100%
      );
    content: "";
  }

  .hero-image {
    object-position: center center;
  }

  .hero-copy {
    z-index: 3;
    margin-top: clamp(10px, 2vh, 34px);
  }

  .hero .primary-link {
    width: auto;
    min-width: 256px;
  }

  .home-stats {
    margin-top: -8px;
  }

  .story-types .home-story-copy,
  .story-team .home-story-copy {
    order: -1;
  }

  .home-story-copy h2 {
    font-size: 44px;
    line-height: 1.12;
  }
}

@media (min-width: 861px) and (max-width: 1220px) {
  .topbar {
    gap: 18px;
    padding-inline: 24px;
  }

  .brand-name {
    font-size: 24px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a,
  .account-links a,
  .account-logout {
    font-size: 15px;
  }

  .header-test-link {
    min-width: 136px;
    padding-inline: 22px;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .workspace {
    min-height: 100vh;
    padding-top: 66px;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    min-height: 66px;
    padding: 10px 16px;
  }

  body[data-route-mode="assessment"] .topbar {
    min-height: 66px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .account {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .icon-button {
    width: 34px;
    min-height: 34px;
  }

  .menu-button {
    display: inline-grid;
    width: 66px;
    min-height: 56px;
    margin: -10px 0 -10px 2px;
  }

  .header-test-link {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .page-padding {
    padding: 18px;
  }

  .page-masthead {
    padding: 38px 20px 34px;
  }

  .page-masthead h2 {
    font-size: 31px;
  }

  .hero {
    isolation: isolate;
    min-height: calc(100svh - 66px);
    padding: 68px 20px 150px;
    align-content: start;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    padding: 0;
  }

  .hero-copy h2 {
    font-size: 34px;
    max-width: 540px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }

  .hero-picture::before {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    background:
      radial-gradient(circle at 50% 62%, rgba(255, 237, 196, 0.36), transparent 32%),
      linear-gradient(
        180deg,
        #eef7f8 0%,
        #edf7f8 36%,
        #f4f7f1 58%,
        rgba(245, 241, 229, 0.72) 76%,
        rgba(255, 255, 255, 0) 100%
      );
    content: "";
  }

  .hero-picture::after {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    background:
      linear-gradient(
        180deg,
        rgba(238, 247, 248, 0.9) 0%,
        rgba(238, 247, 248, 0.72) 42%,
        rgba(238, 247, 248, 0.18) 62%,
        rgba(255, 255, 255, 0) 100%
      );
    content: "";
  }

  .hero-picture[data-hero-scene="dawn"]::before,
  .hero-picture[data-hero-scene="dusk"]::before {
    background:
      radial-gradient(circle at 52% 60%, rgba(255, 218, 142, 0.42), transparent 31%),
      linear-gradient(
        180deg,
        #edf5f8 0%,
        #f7eee8 38%,
        #fff4dc 58%,
        rgba(252, 219, 178, 0.68) 78%,
        rgba(255, 255, 255, 0) 100%
      );
  }

  .hero-picture[data-hero-scene="night"]::before {
    background:
      radial-gradient(circle at 42% 18%, rgba(231, 241, 255, 0.38), transparent 18%),
      linear-gradient(
        180deg,
        #dfeaf2 0%,
        #dbe8f2 42%,
        #e6eef2 64%,
        rgba(219, 231, 237, 0.68) 82%,
        rgba(255, 255, 255, 0) 100%
      );
  }

  .hero-image {
    position: absolute;
    bottom: 74px;
    left: 50%;
    z-index: 1;
    width: min(172vw, 760px);
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0.94;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 8%, #000000 24%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 8%, #000000 24%);
  }

  .slider-arrow {
    width: 44px;
    min-height: 44px;
    font-size: 30px;
  }

  .slider-dots {
    gap: 10px;
  }

  .slider-dots span {
    width: 11px;
    height: 11px;
  }

  .home-stats,
  .home-testimonials,
  .home-final-cta {
    padding: 46px 20px;
  }

  .home-stats {
    padding-top: 16px;
    padding-bottom: 58px;
  }

  .home-section-heading h2,
  .home-story-copy h2,
  .home-final-cta h2 {
    font-size: 32px;
  }

  .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .home-stat-card {
    min-height: 150px;
    padding: 24px 18px;
  }

  .home-stat-card strong {
    font-size: 52px;
  }

  .home-stat-card span {
    font-size: 13px;
  }

  .home-story-section {
    padding: 74px 20px 58px;
  }

  .home-story-inner,
  .home-story-inner.reverse {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-team .home-story-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-types .home-story-copy,
  .story-team .home-story-copy {
    order: 0;
  }

  .home-story-inner.reverse .home-story-art {
    order: 0;
  }

  .home-story-art {
    min-height: 210px;
  }

  .story-team .home-story-art {
    min-height: 210px;
  }

  .story-team .home-story-art img {
    width: min(360px, 100%);
    max-height: 250px;
  }

  .home-story-art img {
    width: min(360px, 100%);
    max-height: 250px;
  }

  .home-story-copy .primary-link {
    width: 100%;
  }

  .story-team .home-story-copy .primary-link {
    width: 100%;
  }

  .testimonial-row {
    display: flex;
    gap: 14px;
    width: calc(100vw - 40px);
    margin-top: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .testimonial-row::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 min(78vw, 310px);
    min-height: 246px;
    scroll-snap-align: start;
  }

  .home-final-image {
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }

  .home-final-picture {
    width: min(520px, 100%);
    height: auto;
    margin: 0 auto 20px;
    overflow: visible;
  }

  .resource-hero {
    padding: 36px 20px 24px;
  }

  .resource-hero h2 {
    font-size: 34px;
  }

  .resource-home-inner {
    padding: 18px 20px 42px;
  }

  .resource-category-card {
    grid-template-columns: 1fr;
  }

  .resource-category-card img {
    height: 160px;
    min-height: 160px;
    object-fit: contain;
    padding: 10px 20px;
  }

  .resource-category-body {
    padding: 16px 16px 18px;
  }

  .types-hero {
    padding: 34px 20px 28px;
  }

  .types-hero h2 {
    font-size: 33px;
  }

  .types-hero .primary-link,
  .types-final .primary-link {
    width: min(280px, 100%);
    min-height: 42px;
    font-size: 14px;
  }

  .type-band {
    gap: 15px;
    padding: 34px 20px 40px;
  }

  .type-band h3 {
    font-size: 34px;
  }

  .type-stack {
    gap: 22px;
  }

  .type-person-card img {
    width: min(210px, 72vw);
    max-height: 190px;
  }

  .types-final {
    padding-bottom: 104px;
  }

  .profile-suite-page {
    padding-bottom: 76px;
  }

  .profile-suite-card,
  .profile-suite-product,
  .profile-live-panel,
  .profile-faq,
  .profile-testimonials,
  .profile-risk-free {
    width: calc(100% - 40px);
  }

  .profile-risk-free {
    margin-bottom: 118px;
  }

  .premium-sales-page {
    padding-bottom: 76px;
  }

  .premium-sales-hero,
  .premium-info-card,
  .premium-image-section,
  .premium-included,
  .premium-calculator,
  .premium-faq {
    width: calc(100% - 40px);
  }

  .premium-included-list article {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .premium-included-list img {
    height: 82px;
  }

  .premium-faq {
    margin-bottom: 110px;
  }

  .type-family-grid,
  .framework-grid,
  .resource-grid,
  .pricing-layout,
  .comparison-band,
  .article-columns,
  .detail-grid,
  .auth-layout,
  .known-result-panel,
  .settings-grid,
  .billing-layout,
  .sitemap-grid,
  .scenario-grid,
  .faq-list,
  .language-page-list {
    grid-template-columns: 1fr;
  }

  .type-detail-layout {
    grid-template-columns: 1fr;
  }

  .result-hero-card {
    grid-template-columns: 1fr;
  }

  .result-hero-card h3 {
    font-size: 26px;
  }

  .page-actions-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-actions-row .primary-link,
  .page-actions-row .secondary-link {
    width: 100%;
  }

  .commercial-disclosure-list div {
    grid-template-columns: 1fr;
  }

  .commercial-disclosure-list dd {
    border-left: 0;
    border-top: 1px solid #e1e5e8;
  }

  .auth-modal-page {
    padding: 28px 16px calc(156px + env(safe-area-inset-bottom));
  }

  .create-profile-page {
    padding-bottom: calc(168px + env(safe-area-inset-bottom));
  }

  .auth-modal-card {
    width: 100%;
    padding: 24px 18px;
  }

  .auth-link-form {
    gap: 14px;
  }

  .auth-link-form h2 {
    font-size: 32px;
  }

  .auth-link-form .auth-submit,
  .email-field,
  .social-auth-button {
    min-height: 60px;
  }

  .email-field input {
    font-size: 20px;
  }

  .table-like div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-page h3 {
    font-size: 24px;
  }

  .type-index {
    position: static;
  }

  .profile-heading {
    margin: -18px -18px 20px;
    padding: 28px 20px;
  }

  .profile-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 44px 20px 110px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-group {
    gap: 13px;
  }

  .footer-group h2 {
    font-size: 17px;
  }

  .footer-group a,
  .footer-link-button,
  .legal-links a {
    font-size: 15px;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }

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

  .footer-link-button {
    width: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .question-pane,
  .profile-pane {
    padding: 18px;
  }

  .profile-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  #page-assessment .grid {
    width: min(760px, calc(100% - 36px));
    margin: 0 auto;
  }

  #page-assessment .question-pane,
  #page-assessment .profile-pane {
    padding: 22px;
  }

  #page-assessment .profile-pane {
    grid-template-columns: minmax(0, 1fr);
    border-top: 5px solid #36a47a;
  }

  #page-assessment .profile-pane > .section-title,
  #page-assessment .profile-tools,
  #page-assessment .snapshot-panel,
  #page-assessment .history-panel {
    grid-column: 1 / -1;
  }

  #page-assessment .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #page-assessment .casting-mode span {
    min-height: 62px;
  }

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

  button {
    width: 100%;
  }

  .top-actions button,
  .slider-arrow,
  .mobile-menu-close,
  .mobile-menu-scrim,
  .language-close,
  .language-modal-scrim,
  .footer-link-button {
    width: auto;
  }

  .top-actions .icon-button {
    width: 42px;
    min-height: 44px;
  }

  .top-actions .menu-button {
    width: 44px;
    min-height: 44px;
  }

  .mobile-menu-tools button,
  .mobile-menu-tools a,
  .language-option {
    width: 100%;
  }

  .mobile-menu-login {
    width: calc(100% - 56px);
  }

  .history {
    max-height: none;
  }

  .divination-fields {
    grid-template-columns: 1fr;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .hexagram-visual-board {
    grid-template-columns: 1fr;
  }

  .hexagram-visual-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .hexagram-svg {
    width: 120px;
  }

  .hexagram-result-grid {
    grid-template-columns: 1fr;
  }

  .claim-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .claim-action-row button {
    width: 100%;
  }

  .paid-report-action-row {
    grid-template-columns: 1fr;
  }

  .paid-report-action-row .primary-link {
    width: 100%;
    white-space: normal;
  }

  .dashboard-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .metric-card.wide {
    grid-column: span 1;
  }

  .timeline-item,
  .action-item {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 30px rgba(32, 35, 31, 0.12);
  }

  body[data-route-mode="assessment"] .bottom-nav {
    display: none;
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 72px;
    color: #596170;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition:
      background 160ms ease,
      color 160ms ease;
  }

  .bottom-nav a:hover {
    background: var(--brand-teal-soft);
  }

  .bottom-nav .nav-svg {
    width: 29px;
    height: 29px;
    color: var(--brand-teal);
    stroke-width: 2.15;
    transition:
      color 160ms ease,
      transform 160ms ease;
  }

  .bottom-nav .nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--brand-teal);
    transition:
      color 160ms ease,
      transform 160ms ease;
  }

  .nav-icon-assessment::before,
  .nav-icon-assessment::after,
  .nav-icon-resources::before,
  .nav-icon-resources::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
  }

  .nav-icon-assessment::before {
    transform: translateY(-5px) rotate(32deg);
  }

  .nav-icon-assessment::after {
    transform: translateY(5px) rotate(-32deg);
  }

  .nav-icon-types::before,
  .nav-icon-types::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid currentColor;
    transform: rotate(45deg);
  }

  .nav-icon-types::before {
    left: 1px;
    top: 2px;
  }

  .nav-icon-types::after {
    right: 1px;
    bottom: 2px;
  }

  .nav-icon-profile {
    border: 3px solid currentColor;
    border-radius: 7px;
  }

  .nav-icon-profile::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .nav-icon-premium::before,
  .nav-icon-premium::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 17px;
    border: 3px solid currentColor;
    border-radius: 4px;
  }

  .nav-icon-premium::before {
    left: 3px;
    transform: rotate(-8deg);
  }

  .nav-icon-premium::after {
    right: 3px;
    transform: rotate(8deg);
  }

  .nav-icon-resources {
    border: 3px solid currentColor;
    border-radius: 4px;
  }

  .nav-icon-resources::before {
    top: 8px;
  }

  .nav-icon-resources::after {
    bottom: 8px;
  }

  .bottom-nav a.active {
    color: var(--brand-navy);
  }

  .bottom-nav a.active .nav-svg {
    color: var(--brand-navy);
    transform: translateY(-2px);
  }

  .bottom-nav a.active .nav-icon {
    color: var(--brand-navy);
    transform: translateY(-2px);
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
  }

  .brand-name {
    font-size: 21px;
  }

  .test-masthead {
    padding: 16px 20px 32px;
  }

  .test-masthead h2 {
    width: min(330px, 100%);
    font-size: 23px;
  }

  #page-assessment {
    min-height: calc(100svh - 64px);
    padding: 34px 0 calc(92px + env(safe-area-inset-bottom));
  }

  #page-assessment .grid {
    width: min(100% - 36px, 560px);
    margin-top: 0;
    margin-bottom: 0;
  }

  #page-assessment .question-pane,
  #page-assessment .profile-pane {
    padding: 0;
  }

  #page-assessment .assessment-panel-header {
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 22px;
  }

  #page-assessment .assessment-panel-header h2 {
    font-size: 31px;
    line-height: 1.14;
  }

  #page-assessment .assessment-panel-header p {
    font-size: 14px;
    line-height: 1.65;
  }

  #page-assessment .section-title {
    align-items: flex-start;
  }

  #page-assessment .section-title h2 {
    font-size: 21px;
  }

  #page-assessment .assessment-lede {
    margin-bottom: 20px;
    padding: 0;
    font-size: 14px;
  }

  #page-assessment .question-field-hint {
    margin-bottom: 12px;
    font-size: 13px;
  }

  #page-assessment .question-template-guide summary,
  #page-assessment .question-example-guide summary {
    min-height: 56px;
    font-size: 14px;
  }

  #page-assessment .question-template-content,
  #page-assessment .question-example-list li {
    font-size: 13px;
    line-height: 1.55;
  }

  #page-assessment .question-example-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  #page-assessment .casting-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #page-assessment .casting-mode span {
    min-height: 72px;
    padding: 11px 12px;
  }

  #page-assessment .casting-mode strong {
    font-size: 15px;
  }

  #page-assessment .casting-mode small {
    font-size: 12px;
  }

  #page-assessment textarea {
    min-height: 184px;
    padding: 18px;
  }

  #page-assessment .actions {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }

  #page-assessment #submitButton {
    min-height: 62px;
    font-size: 17px;
  }

  #page-assessment #formHint {
    font-size: 12px;
  }

  #page-assessment .advanced-casting summary {
    min-height: 56px;
    padding: 12px 14px;
  }

  #page-assessment .divination-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #page-assessment .timezone-auto-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .create-profile-page {
    padding: 28px 20px 118px;
  }

  .create-profile-back {
    width: 54px;
    height: 54px;
  }

  .create-profile-header h2 {
    font-size: 34px;
  }

  .create-profile-header p {
    font-size: 18px;
  }

  .create-profile-actions .primary-link,
  .secondary-choice-button {
    min-height: 64px;
    font-size: 18px;
  }

  .hero {
    min-height: calc(100svh - 66px);
    padding: 58px 20px 140px;
  }

  .hero-slider {
    margin-bottom: 12px;
  }

  .hero-picture {
    width: 100%;
    margin-top: 0;
  }

  .hero-image {
    max-height: none;
  }

  .hero-copy h2 {
    font-size: 31px;
  }

  .hero-lede {
    font-size: 17px;
    line-height: 1.5;
  }

  .primary-link {
    min-height: 58px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 17px;
  }

  .home-section-heading h2,
  .home-story-copy h2,
  .home-final-cta h2 {
    font-size: 30px;
  }

  .home-section-heading p:not(.home-pill),
  .home-story-copy p:not(.home-pill),
  .home-final-cta p {
    font-size: 16px;
  }

  .home-stat-grid {
    gap: 12px;
  }

  .home-stats {
    padding-top: 12px;
    padding-bottom: 54px;
  }

  .home-stat-card {
    min-height: 132px;
    padding: 20px 14px;
  }

  .home-stat-card strong {
    font-size: 42px;
  }

  .home-stat-card span {
    font-size: 12px;
  }

  .home-story-art img,
  .home-final-image {
    max-height: 260px;
  }

  .testimonial-card {
    flex-basis: min(82vw, 300px);
    padding: 24px 22px;
  }

  .resource-hero {
    padding-top: 32px;
  }

  .resource-hero h2 {
    font-size: 31px;
  }

  .resource-search {
    min-height: 46px;
  }

  .resource-search input {
    min-height: 46px;
    font-size: 14px;
  }

  .resource-category-card img {
    height: 142px;
    min-height: 142px;
  }

  .resource-category-body h3 {
    font-size: 20px;
  }

  .resource-category-body p:not(.resource-meta) {
    font-size: 14px;
  }

  .types-hero h2 {
    font-size: 31px;
  }

  .types-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .type-band {
    padding: 32px 20px 38px;
  }

  .type-person-card h4 {
    font-size: 20px;
  }

  .type-person-card p:not(.type-code) {
    font-size: 13px;
  }

  .premium-sales-hero h2,
  .premium-image-section h3,
  .premium-included h3,
  .premium-calculator h3,
  .premium-faq h3 {
    font-size: 24px;
  }

  .premium-sales-hero {
    padding-top: 32px;
  }

  .premium-plan-options {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }

  .premium-plan-options button {
    border-radius: 14px;
  }

  .premium-included-list article {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .premium-included-list img {
    width: min(240px, 100%);
    height: 120px;
    justify-self: center;
  }

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

  .tier-row label:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tier-row label:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 860px) {
  .cast-result-page.content-page.page-padding {
    padding: 0 0 calc(132px + env(safe-area-inset-bottom));
  }

  .cast-report-page {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
  }

  .cast-report-hero {
    min-height: 0;
    padding: 16px 12px 22px;
  }

  .cast-report-hero::before {
    top: -70px;
    right: -124px;
  }

  .cast-report-hero h1 {
    font-size: 34px;
  }

  .cast-report-type {
    font-size: 24px;
  }

  .cast-report-art {
    width: 100%;
    height: 150px;
  }

  .cast-report-postcard {
    width: calc(100vw - 24px);
    margin-top: 0;
  }

  .cast-postcard-preview {
    padding: 12px;
  }

  .cast-postcard-preview-panel {
    width: fit-content;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .cast-postcard-preview-card {
    width: calc(100vw - 24px);
  }

  .cast-postcard-preview-picture img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 98px);
  }

  .cast-postcard-back-writing {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }

  .cast-postcard-back-note {
    gap: 8px;
    padding-top: 4px;
  }

  .cast-postcard-back-kicker,
  .cast-postcard-back-address dt {
    font-size: 10px;
  }

  .cast-postcard-back-note p {
    max-width: 24ch;
    font-size: 14px;
    line-height: 1.38;
  }

  .cast-postcard-back-address {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    border-top: 0;
    border-left: 0;
    padding-top: 10px;
    padding-left: 0;
  }

  .cast-postcard-back-stamp {
    width: 52px;
    font-size: 10px;
  }

  .cast-postcard-back-address dl {
    gap: 8px;
  }

  .cast-postcard-back-address div {
    gap: 3px;
    padding-bottom: 5px;
  }

  .cast-postcard-back-address dd {
    font-size: 12px;
  }

  .cast-postcard-preview-stamps {
    top: 48px;
    right: 16px;
    width: min(58%, 260px);
    min-width: 184px;
    gap: 6px;
  }

  .cast-postcard-preview-postage-layer {
    top: 18px;
    right: 18px;
    width: min(42%, 180px);
    min-width: 0;
    gap: 6px;
  }

  .cast-report-art-block.left {
    left: 24px;
    bottom: 34px;
  }

  .cast-report-art-person {
    right: 34px;
    bottom: 30px;
  }

  .cast-report-intro {
    padding: 24px 22px 8px;
    font-size: 16px;
    line-height: 1.68;
  }

  .cast-report-toc {
    margin: 16px 18px 24px;
  }

  .cast-report-toc a {
    grid-template-columns: minmax(0, 1fr) minmax(0, 126px);
    padding: 15px 12px;
    font-size: 13px;
  }

  .cast-report-toc strong {
    max-width: 126px;
  }

  .cast-report-section {
    padding: 26px 22px;
  }

  .cast-report-section h2 {
    font-size: 28px;
  }

  .cast-report-page .hexagram-visual-board {
    grid-template-columns: 1fr;
  }

  .cast-report-page .hexagram-visual-card {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 14px;
  }

  .cast-report-page .hexagram-svg {
    width: 104px;
  }

  .cast-report-page .hexagram-result-grid {
    grid-template-columns: 1fr;
  }

  .cast-report-page .hexagram-line-table {
    max-width: 100%;
    overflow: hidden;
  }

  .cast-report-page .hexagram-line-head,
  .cast-report-page .hexagram-line-row {
    min-width: 0;
    grid-template-columns: 34px minmax(48px, 1fr) minmax(54px, 1fr) minmax(54px, 1fr) 38px 38px;
  }

  .cast-report-page .hexagram-line-head span,
  .cast-report-page .hexagram-line-row span {
    padding: 9px 4px;
    font-size: 11px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .cast-report-page .paid-report-panel {
    margin: 0 18px 24px;
    padding: 30px 22px;
  }

  .cast-report-page .paid-report-panel h3 {
    font-size: 28px;
  }

  .cast-report-actions {
    padding: 0 18px 58px;
  }
}

@media (max-width: 380px) {
  .cast-report-hero h1 {
    font-size: 31px;
  }

  .cast-report-toc a {
    gap: 10px;
  }

  .cast-report-toc strong {
    max-width: 122px;
  }

  .cast-report-page .hexagram-visual-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .cast-report-page .hexagram-svg {
    width: 92px;
  }

  .cast-report-page .hexagram-line-head,
  .cast-report-page .hexagram-line-row {
    grid-template-columns: 30px minmax(44px, 1fr) minmax(48px, 1fr) minmax(48px, 1fr) 34px 34px;
  }
}

/* Result-page classical letter: a continuous reading above the existing chart. */
.cast-report-letter { max-width: 76ch; margin: 28px auto 24px; padding: 0 20px; box-sizing: border-box; color: inherit; font-family: "Courier New", "Noto Serif SC", serif; overflow-wrap: anywhere; }
.cast-report-letter h2 { font-size: 1.2rem; margin: 0 0 24px; }
.cast-report-letter p { font-size: 14px; line-height: 2; margin: 0 0 24px; white-space: normal; }
@media (min-width: 641px) {
  .cast-report-letter p { font-size: 1.2rem; line-height: 1.9; }
}
.cast-report-letter hr { border: 0; border-top: 1px solid currentColor; opacity: .2; margin: 28px 0; }
.cast-report-letter details { font-size: 12px; line-height: 1.8; }
.cast-report-hexagram-image { display: block; width: 195px; max-width: 100%; height: auto; margin: 0 auto 24px; }
@media (max-width: 640px) { .cast-report-letter { width: 100%; padding: 0 16px; margin-top: 22px; } .cast-report-letter p { font-size: 13px; line-height: 1.95; } }

/* Postcard controls stay outside the scrolling text and are excluded from PNGs. */
.postcard-save-button { width: 36px; height: 36px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; left: auto; margin: 0; position: absolute; z-index: 5; right: 16px; bottom: 14px; min-height: 36px; padding: 7px; border: 1px solid rgba(90,80,60,.2); border-radius: 8px; background: rgba(250,247,239,.65); color: #514b40; font: 12px "Courier New", monospace; cursor: pointer; }
.postcard-save-button:disabled { opacity: .5; }
.postcard-save-status { position: absolute; bottom: 16px; left: 20px; right: 108px; font-size: 12px; color: #6d4937; }
.postcard-qr { margin: 28px auto 0; text-align: center; }
.postcard-qr img { display: block; width: 88px; height: 88px; margin: auto; image-rendering: pixelated; }
.postcard-save-dialog { width: min(440px, calc(100vw - 40px)); max-height: 85vh; padding: 20px; border: 0; border-radius: 12px; background: #f8f4ea; color: #37332d; overflow: auto; }
.postcard-save-dialog::backdrop { background: rgba(0,0,0,.6); }
.postcard-save-dialog img { display: block; width: 100%; height: auto; margin: 16px 0; }
.postcard-save-dialog a, .postcard-save-dialog button { display: inline-block; padding: 10px; margin-right: 12px; }

.postcard-back-date { position: absolute; top: 24px; right: clamp(30px, 6vw, 72px); margin: 0; color: #777064; font: 12px "Courier New", Courier, monospace; letter-spacing: .12em; text-align: right; }

@font-face { font-family: "Postcard Serif SC"; src: url("/assets/fonts/postcard-serif-sc.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }

.cast-report-letter > p:last-child { margin-bottom: 0; }

.cast-postcard-classical-report .postcard-paid-entry, .postcard-paid-entry { display: block; margin: 24px auto 0; width: auto; border: 0; background: transparent; color: #306f73; font: inherit; font-size: 13px; padding: 10px 14px; cursor: pointer; }
@media (min-width: 641px) {
  .cast-postcard-classical-report .postcard-paid-entry { font-size: clamp(18px, 1.8vw, 26px); }
}
.paid-report-panel { scroll-margin-top: 100px; }

/* English prose needs less leading to fit the single postcard face. */
.cast-postcard-classical-report[lang="en"] p {
  font-size: clamp(16px, calc(1.8vw - 2px), 24px);
  line-height: 1.65;
}
.cast-postcard-classical-report[lang="en"] p + p { margin-top: .85em; }
.cast-postcard-classical-report[lang="en"] .postcard-paid-entry {
  font-size: clamp(16px, calc(1.8vw - 2px), 24px);
  margin-top: 18px;
}
@media (max-width: 640px) {
  .cast-postcard-classical-report[lang="en"] p,
  .cast-postcard-classical-report[lang="en"] .postcard-paid-entry { font-size: 12px; }
}

/* Payment receipt: one clear status, no repeat purchase action. */
.payment-receipt { max-width: 680px; margin: 20px auto 64px; padding: clamp(22px, 5vw, 44px); background: #fff; border: 1px solid #e1e7e5; border-radius: 24px; box-shadow: 0 10px 35px #203b4210; }
.receipt-heading { text-align: center; margin-bottom: 28px; }
.receipt-heading h2 { font-size: clamp(25px, 5vw, 34px); line-height: 1.3; }
.receipt-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; color: #247263; background: #eaf5ef; font-size: 30px; }
.payment-receipt .auth-status { padding: 20px; border-radius: 12px; }
.payment-receipt .auth-status strong, .payment-receipt .auth-status span { display: block; }
.payment-receipt .auth-status span { margin-top: 8px; line-height: 1.7; }
.receipt-details { margin: 24px 0; }
.receipt-details > div { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 16px 0; border: 0; border-bottom: 1px solid #e6ebe9; }
.receipt-details span { overflow-wrap: anywhere; min-width: 0; }
.receipt-actions { display: grid; gap: 12px; }
.receipt-actions > * { width: 100%; box-sizing: border-box; text-align: center; }
.receipt-help { font-size: 14px; line-height: 1.8; margin-top: 24px; color: #59686c; }
.receipt-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 20px; font-size: 14px; }

.payment-receipt { font-family: var(--font-ui); }
.receipt-links a { color: #247980; text-underline-offset: 3px; }

/* Interface typography is independent of the classical letter/postcard fonts. */
:root:lang(ja) {
  --font-ui: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hexagram Noto Sans JP UI", "Hexagram Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
:root:lang(en) {
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.paid-report-panel, .payment-receipt { font-family: var(--font-ui); }
.hero-copy h2,
.home-section-heading h2,
.home-story-copy h2,
.home-final-cta h2,
#page-assessment .assessment-panel-header h2,
#page-assessment .test-masthead h2,
.premium-sales-hero h2,
.cast-report-page .paid-report-panel h3,
.payment-receipt h2 {
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
}
.paid-report-panel h3 { font-weight: 600; line-height: 1.4; }
.paid-report-panel label,
.paid-report-panel .primary-link,
#page-assessment button,
#page-home .primary-link,
#page-home .secondary-link,
.payment-receipt .primary-link,
.payment-receipt .secondary-link { font-weight: 600; }

/* Japanese UI: consistent kana/kanji, balanced emphasis and natural line breaks. */
:root:lang(ja) :is(.main-nav a, .bottom-nav a, .mobile-menu-list a) {
  font-weight: 500;
}
:root:lang(ja) :is(.hero-copy, .home-section-heading, .home-story-copy,
  .home-final-cta, #page-assessment, .paid-report-panel, .payment-receipt) {
  line-break: strict;
  word-break: normal;
}
:root:lang(ja) :is(.hero-copy h2, .home-section-heading h2, .home-story-copy h2,
  .home-final-cta h2, .paid-report-panel h3) {
  text-wrap: balance;
  letter-spacing: .02em;
}
:root:lang(ja) #page-assessment .assessment-panel-header h2 {
  letter-spacing: .02em;
  line-height: 1.5;
}
:root:lang(ja) :is(.paid-report-panel p, #page-assessment .assessment-panel-header p) {
  line-height: 1.8;
}
@media (max-width: 640px) {
  :root:lang(ja) .cast-report-page .paid-report-panel h3 { font-size: 24px; }
  :root:lang(ja) #page-assessment .assessment-panel-header h2 {
    font-size: clamp(23px, 6.5vw, 28px);
  }
}
.ja-heading-phrase { display: inline-block; white-space: nowrap; }

/* Two visual method labels, without implying registered trademarks or credentials. */
.method-badge { display: inline-flex; align-items: center; gap: 10px; border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; font-size: 13px; letter-spacing: .08em; }
.method-badge::before { content: ""; flex: 0 0 13px; width: 13px; height: 13px; border: 2px solid currentColor; transform: rotate(45deg); }
.method-iching { color: #236d70; background: #edf7f5; }
.method-liuyao { color: #755185; background: #f6eff8; }
.method-liuyao::before { transform: none; border-radius: 50%; }
.scenario-grid .testimonial-card { min-height: 230px; gap: 16px; }
.scenario-grid h3 { margin: 0; color: #243b51; font-size: 17px; line-height: 1.5; }
.scenario-grid .testimonial-card:nth-child(3n+2) { --quote-color: #31857e; }
.scenario-grid .testimonial-card:nth-child(3n) { --quote-color: #b08b35; }
.release-content { max-width: 820px; margin: 0 auto 56px; font-size: 18px; line-height: 1.85; }
.release-content p { margin: 0 0 24px; }
.release-content a { display: inline-block; margin: 8px 20px 8px 0; color: #236d70; font-weight: 600; }
.main-nav { flex-wrap: wrap; }
@media (max-width: 860px) {
  .testimonial-row.scenario-grid { display: grid; grid-template-columns: 1fr; width: 100%; overflow: visible; }
  .scenario-grid .testimonial-card { min-height: 0; }
  .method-badge { letter-spacing: .02em; max-width: 100%; }
  .release-content { font-size: 16px; }
}

.home-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .home-stat-grid { grid-template-columns: 1fr; } }

.brand-introduction { margin-bottom: 32px; padding: 24px; border-left: 3px solid var(--brand-teal); background: #f2f8f7; }
.brand-introduction h3 { margin: 8px 0 12px; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; }


/* Scenario carousel: five cards on wide screens, touch scrolling on mobile. */
.home-testimonials .testimonial-row.expanded-scenarios { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 5); max-width: 1840px; width: 100%; margin: 0 auto; gap: 20px; overflow-x: auto; padding: 8px 0 18px; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: start; text-align: left; }
.expanded-scenarios::-webkit-scrollbar { display: none; }
.home-testimonials .expanded-scenarios article { --scenario-accent: #8b65a3; display: block; min-width: 0; min-height: 260px; padding: 28px; border: 0; border-top: 4px solid var(--scenario-accent); border-radius: 9px; background: #fff; box-shadow: none; scroll-snap-align: start; }
.home-testimonials .expanded-scenarios article:nth-child(3n+2) { --scenario-accent: #31a584; }
.home-testimonials .expanded-scenarios article:nth-child(3n) { --scenario-accent: #3b9eb7; }
.home-testimonials .expanded-scenarios h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; color: #243b51; font-size: 17px; line-height: 1.5; }
.home-testimonials .expanded-scenarios h3::before { content: '“'; display: grid; place-items: center; flex: 0 0 38px; height: 42px; color: white; background: var(--scenario-accent); font-size: 30px; clip-path: polygon(50% 0, 95% 23%, 100% 78%, 50% 100%, 0 78%, 5% 23%); }
.home-testimonials .expanded-scenarios p { margin: 0; color: #475569; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.scenario-controls { display: flex; justify-content: center; gap: 16px; margin-top: 26px; }
.scenario-controls button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #e2e7eb; border-radius: 50%; background: #fff; color: #53647b; box-shadow: none; cursor: pointer; }
.scenario-controls button:disabled { opacity: .35; cursor: default; }
.scenario-controls button:focus-visible, .expanded-scenarios:focus-visible { outline: 3px solid #31857e; outline-offset: 3px; }
@media (max-width: 1300px) { .home-testimonials .testimonial-row.expanded-scenarios { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (max-width: 860px) { .home-testimonials .testimonial-row.expanded-scenarios { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 540px) { .home-testimonials .testimonial-row.expanded-scenarios { grid-auto-columns: 88%; } .home-testimonials .expanded-scenarios article { padding: 24px; } }

.scenario-controls button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scenario-controls button:not(:disabled):hover { background: #edf5f4; border-color: #91b7b1; color: #236d70; }

/* Question examples: topic groups followed by specific scenarios. */
#page-assessment .question-example-groups {
  padding-bottom: 20px;
}
#page-assessment .question-example-group {
  border-top: 1px solid #e7ebef;
  padding: 0 14px;
}
#page-assessment .question-example-group[open] {
  background: #f7faf9;
  border-radius: 8px;
}
#page-assessment .question-example-group[open] > summary::after {
  transform: rotate(225deg);
}
#page-assessment .question-example-group > summary:focus-visible {
  outline: 2px solid #176b73;
  outline-offset: 2px;
}
