:root {
  color-scheme: light;
  --bg: #f6f0e5;
  --bg-soft: #eee4d4;
  --surface: rgba(255, 252, 245, 0.88);
  --surface-solid: #fffdf8;
  --surface-strong: #f0e6d7;
  --ink: #17263f;
  --ink-soft: #526073;
  --ink-faint: #596474;
  --line: rgba(23, 38, 63, 0.17);
  --line-strong: rgba(23, 38, 63, 0.3);
  --bronze: #7f4b18;
  --bronze-soft: #d9a65d;
  --violet: #6650be;
  --green: #23644f;
  --coral: #873b2e;
  --danger: #9f3d3d;
  --focus: #175ad7;
  --shadow: 0 24px 80px rgba(53, 35, 18, 0.11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-height: 76px;
  --content: 1240px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif KR", serif;
  --sans: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1725;
  --bg-soft: #141f30;
  --surface: rgba(19, 31, 48, 0.9);
  --surface-solid: #152136;
  --surface-strong: #1b2940;
  --ink: #f3eee6;
  --ink-soft: #bcc5d0;
  --ink-faint: #939dac;
  --line: rgba(235, 229, 218, 0.15);
  --line-strong: rgba(235, 229, 218, 0.3);
  --bronze: #e5ac66;
  --bronze-soft: #f0c685;
  --violet: #a990ff;
  --green: #78c6ac;
  --coral: #ee9a85;
  --danger: #ffaaa1;
  --focus: #9ec5ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 166, 93, 0.13), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(102, 80, 190, 0.1), transparent 34rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.015em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root:lang(ar) *,
:root:lang(fa) *,
:root:lang(hi) *,
:root:lang(ne) *,
:root:lang(bn) *,
:root:lang(th) *,
:root:lang(lo) *,
:root:lang(km) * { letter-spacing: normal !important; }
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

button, input, textarea, select { font: inherit; color: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:disabled { opacity: .55; cursor: wait; transform: none !important; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: #17263f;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
  padding-block-start: max(10px, env(safe-area-inset-top));
  padding-block-end: 10px;
  padding-left: max(24px, calc((100vw - var(--content)) / 2), env(safe-area-inset-left));
  padding-right: max(24px, calc((100vw - var(--content)) / 2), env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 20px rgba(23, 38, 63, 0.08); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: var(--serif); font-size: 17px; letter-spacing: -0.04em; }
.brand-copy small { margin-top: 4px; color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.beta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bronze);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.beta-chip::before { width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--bronze-soft); content: ""; box-shadow: 0 0 0 4px rgba(217, 166, 93, 0.12); }
.language-control select, .icon-button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.language-control select { min-width: 108px; padding: 0 36px 0 15px; cursor: pointer; }
.language-control option { color: var(--ink); background: var(--surface-solid); }
.icon-button { display: grid; width: 44px; flex: 0 0 44px; place-items: center; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease; }
.icon-button:hover { border-color: var(--line-strong); background: var(--surface-strong); transform: translateY(-1px); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sun-icon, :root[data-theme="dark"] .moon-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: block; }

main { min-height: calc(100vh - var(--header-height)); }
.hero, .place-guide, .principles, .term-guide, .identity-bridge, .workspace, .future { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(54px, 8vh, 110px);
}
.eyebrow, .step-kicker {
  margin: 0 0 18px;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.hero-copy, .hero h1, .hero-description { min-width: 0; overflow-wrap: anywhere; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.4vw, 78px); line-height: 1.08; letter-spacing: -0.065em; text-wrap: balance; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 strong { margin-top: 10px; color: var(--bronze); font-weight: 700; }
.hero-description { max-width: 710px; margin: 30px 0 0; color: var(--ink-soft); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.9; text-wrap: pretty; }
.hero-actions, .panel-actions, .dialog-actions, .tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-actions { margin-top: 34px; }
.primary-button, .secondary-button, .danger-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.primary-button { color: #18202b; background: linear-gradient(135deg, #edc084, #d99a61); box-shadow: 0 12px 30px rgba(154, 100, 42, 0.2); }
.primary-button::after { margin-inline-start: 11px; content: "→"; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover { transform: translateY(-2px); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface); }
.danger-button { border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.text-button { min-height: 44px; padding-inline: 10px; color: var(--ink-soft); background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.compact { min-height: 42px; padding: 0 16px; font-size: 13px; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 46px 0 0; padding: 0; border-block: 1px solid var(--line); list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px 18px; border-right: 1px solid var(--line); }
.trust-list li:last-child { border-right: 0; }
.trust-list span { color: var(--bronze); font-family: var(--serif); font-size: 14px; }
.trust-list strong { font-size: 13px; line-height: 1.45; }

.hero-art {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.hero-art::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.04) 36%, rgba(10, 18, 30, 0.86) 100%);
}
.hero-art::after {
  position: absolute;
  inset: 12px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
  content: "";
}
.hero-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(.9) contrast(1.03);
  transition: transform .7s cubic-bezier(.2,.75,.25,1);
}
.hero-art:hover > img { transform: scale(1.018); }
.museum-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 25, 40, .64);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
}
.independence-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  max-width: calc(100% - 210px);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  background: rgba(104, 61, 27, .72);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.hero-art figcaption {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 2;
  color: #fff;
}
.hero-art figcaption p { max-width: 600px; margin: 0; font-size: 13px; font-weight: 700; line-height: 1.65; text-wrap: pretty; }
.hero-art figcaption small { display: block; margin-top: 7px; color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.5; }
.hero-art figcaption a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.place-guide, .principles, .term-guide, .identity-bridge, .future { padding-block: clamp(82px, 11vw, 150px); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 0.7fr 1.3fr; align-items: end; gap: 32px; margin-bottom: 42px; }
.section-heading > * { min-width: 0; max-width: 100%; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading .eyebrow,
.section-heading h2 { overflow-wrap: anywhere; word-break: break-word; }
.section-heading h2 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 58px); line-height: 1.18; letter-spacing: -0.05em; text-wrap: balance; }
.place-guide-heading { align-items: start; }
.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.place-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 20px 56px rgba(42, 34, 22, .08); }
.place-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-strong); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.place-card:hover .place-photo img { transform: scale(1.025); }
.place-card-copy { display: flex; min-width: 0; min-height: 300px; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.8vw, 34px); }
.place-index { color: var(--bronze); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.place-card h3 { margin: 26px 0 14px; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -.045em; }
.place-card p { margin: 0; color: var(--ink-soft); line-height: 1.8; text-wrap: pretty; }
.place-card a { margin-top: auto; padding-top: 24px; color: var(--bronze); font-size: 12px; font-weight: 850; text-underline-offset: 5px; }
.place-symbol { display: grid; aspect-ratio: 16 / 10; place-items: center; align-content: center; gap: 12px; color: #f5ead9; background: radial-gradient(circle at 72% 24%, rgba(224, 170, 100, .35), transparent 34%), linear-gradient(145deg, #1b2940, #2d2133); }
.place-symbol span { font-family: var(--serif); font-size: clamp(66px, 8vw, 112px); line-height: .9; }
.place-symbol small { font-size: 9px; font-weight: 900; letter-spacing: .22em; }
.place-attribution { margin: 20px 0 0; color: var(--ink-faint); font-size: 10px; line-height: 1.75; text-align: center; }
.place-attribution a { text-underline-offset: 3px; }
.place-boundary { width: fit-content; max-width: 100%; margin: 16px auto 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: 11px; font-weight: 750; line-height: 1.5; text-align: center; }
.principle-grid, .roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.principle-grid article, .roadmap-grid article { min-height: 280px; padding: clamp(25px, 3vw, 42px); border-right: 1px solid var(--line); }
.principle-grid article:last-child, .roadmap-grid article:last-child { border-right: 0; }
.principle-grid span, .roadmap-grid span { color: var(--bronze); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.principle-grid h3, .roadmap-grid h3 { margin: 52px 0 14px; font-family: var(--serif); font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.04em; }
.principle-grid p, .roadmap-grid p { margin: 0; color: var(--ink-soft); line-height: 1.85; }

.term-guide { min-width: 0; }
.term-guide-heading { align-items: start; }
.term-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.identity-bridge { position: relative; }
.identity-bridge::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--bronze-soft), transparent);
}
.identity-bridge-heading { align-items: start; }
.identity-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(53, 35, 18, .06);
}
.identity-flow article { position: relative; min-width: 0; padding: clamp(26px, 3.4vw, 44px); border-right: 1px solid var(--line); }
.identity-flow article:last-child { border-right: 0; }
.identity-flow-number { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--bronze); font-family: var(--serif); font-size: 12px; }
.identity-flow h3 { margin: 52px 0 18px; font-family: var(--serif); font-size: clamp(24px, 2.25vw, 34px); line-height: 1.27; letter-spacing: -.045em; text-wrap: balance; }
.identity-flow p { margin: 0; color: var(--ink-soft); line-height: 1.9; text-wrap: pretty; }
.identity-boundary { max-width: 950px; margin: 24px auto 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: 12px; line-height: 1.7; text-align: center; }
.term-card,
.term-service-card {
  min-width: 0;
  padding: clamp(26px, 3.5vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-solid) 94%, var(--bronze-soft) 6%);
}
.term-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0 18px;
}
.term-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 900;
}
.term-card h3,
.term-service-card h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 37px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.term-card p {
  grid-column: 2;
  margin: 22px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  line-height: 1.85;
}
.term-service-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 76px);
  border-color: color-mix(in srgb, var(--green) 38%, var(--line));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--green) 12%, transparent), transparent 24rem),
    var(--surface);
}
.term-service-card > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 0 18px;
}
.term-service-copy { min-width: 0; }
.term-service-copy > p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  line-height: 1.85;
}
.term-service-copy .term-boundary {
  margin-top: 22px;
  padding: 16px 18px;
  border-inline-start: 4px solid var(--bronze);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--bronze) 8%, var(--surface-strong));
  font-size: 13px;
  font-weight: 750;
}
:root[dir="rtl"] .term-service-copy .term-boundary { border-radius: var(--radius-md) 0 0 var(--radius-md); }

.workspace { padding-block: clamp(44px, 7vw, 88px); }
.workspace-shell { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(26px, 4vw, 46px); border-bottom: 1px solid var(--line); }
.workspace-head .eyebrow { margin-bottom: 9px; }
.workspace-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(29px, 3.2vw, 46px); letter-spacing: -0.045em; }
.save-control { min-width: 270px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-strong); }
.switch-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch-label > span[aria-hidden] { position: relative; width: 42px; height: 24px; flex: 0 0 42px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-solid); }
.switch-label > span[aria-hidden]::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-faint); content: ""; transition: 0.2s ease; }
.switch-label input:checked + span { background: color-mix(in srgb, var(--green) 25%, var(--surface-solid)); }
.switch-label input:checked + span::after { left: 21px; background: var(--green); }
.switch-label input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.save-control p { margin: 6px 0 0 52px; color: var(--ink-faint); font-size: 11px; line-height: 1.5; }
.step-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-strong) 70%, transparent); }
.step-nav button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.step-nav button:last-child { border-right: 0; }
.step-nav button[aria-current="step"] { color: var(--bronze); background: var(--surface-solid); box-shadow: inset 0 -3px var(--bronze); }
.step-nav span { font-family: var(--serif); font-size: 13px; }
.step-nav strong { font-size: 13px; }
.step-panel { min-height: min(730px, calc(100svh - var(--header-height) - 60px)); padding: clamp(28px, 5vw, 64px); }
.panel-copy { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 30px; align-items: end; margin-bottom: 38px; }
.panel-copy .step-kicker { align-self: start; }
.panel-copy h3 { grid-column: 2; margin: -44px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.25; letter-spacing: -0.05em; text-wrap: balance; }
.panel-copy > p:last-child { grid-column: 2; margin: 0; color: var(--ink-soft); line-height: 1.85; }
.split-copy { grid-template-columns: 1fr auto; align-items: end; }
.split-copy > div { max-width: 860px; }
.split-copy h3 { grid-column: auto; margin: 0; }
.split-copy .step-kicker { margin-bottom: 12px; }
.split-copy > div > p:last-child { color: var(--ink-soft); }
.story-limit { display: inline-flex; min-width: 76px; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 930px; margin: 0 auto; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field-grow { min-width: 0; }
.field > span { font-size: 13px; font-weight: 800; }
.field:has(input[required], textarea[required]) > span::after { margin-inline-start: 5px; color: var(--coral); content: "*"; }
.field em { color: var(--coral); font-size: 11px; font-style: normal; }
.field small { color: var(--ink-faint); font-weight: 500; }
.field input, .field textarea, .writing-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface-solid);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input { min-height: 54px; padding: 0 16px; }
.field textarea, .writing-card textarea { min-height: 126px; padding: 14px 16px; line-height: 1.75; resize: vertical; }
.field input:focus, .field textarea:focus, .writing-card textarea:focus { border-color: var(--bronze); outline: 0; box-shadow: 0 0 0 4px rgba(217, 166, 93, 0.13); }
.voice-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.voice-field.field-wide { grid-column: 1 / -1; }
.voice-field > .field-wide { grid-column: auto; }
.voice-input-button { display: inline-flex; min-height: 44px; width: fit-content; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface-strong); font-size: 11px; font-weight: 800; cursor: pointer; }
.voice-input-button b { color: var(--green); font-size: 9px; }
.voice-input-button:hover { border-color: var(--green); color: var(--ink); }
.voice-input-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.panel-actions { justify-content: flex-end; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.writing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.writing-card { display: grid; align-content: start; min-width: 0; min-height: 330px; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--bronze); border-radius: var(--radius-lg); background: var(--surface-solid); }
.writing-card > span { font-family: var(--serif); font-size: 23px; font-weight: 800; }
.writing-card small { min-height: 48px; margin: 7px 0 14px; color: var(--ink-soft); line-height: 1.55; }
.writing-card output, .field output { justify-self: end; margin-top: 8px; color: var(--ink-faint); font-size: 11px; }
.start-card { border-top-color: var(--green); }
.carry-card { border-top-color: var(--violet); }
.story-form { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 15px; align-items: end; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-strong); }
.story-form .field-wide { grid-column: 1 / -1; }
.add-story-button { align-self: end; }
.story-form-actions { display: grid; gap: 6px; align-self: end; }
.story-form[data-editing] { border-color: var(--bronze); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bronze) 12%, transparent); }
.story-cancel-button { min-height: 38px; font-size: 12px; }
.legacy-story-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 11px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-solid); cursor: pointer; }
.legacy-story-choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bronze); }
.legacy-story-choice span { display: grid; gap: 4px; min-width: 0; }
.legacy-story-choice strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.legacy-story-choice small { color: var(--ink-faint); font-size: 11px; line-height: 1.55; }
.memory-recipient-field { margin-top: -4px; }
.memory-recipient-field small { color: var(--ink-faint); font-size: 11px; line-height: 1.55; }
.memory-recipient-note { width: fit-content; max-width: 100%; margin: 5px 0 0; color: var(--bronze); font-size: 11px; font-weight: 750; line-height: 1.55; overflow-wrap: anywhere; }
.story-list { display: grid; gap: 12px; margin-top: 20px; }
.story-empty { padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-faint); text-align: center; }
.story-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-solid); }
.story-item time { color: var(--bronze); font-size: 12px; font-weight: 850; }
.story-item h4 { margin: 0 0 8px; overflow-wrap: anywhere; font-family: var(--serif); font-size: 21px; }
.story-item p { margin: 0; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.story-item-actions { display: flex; gap: 7px; }
.story-item-actions button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: transparent; cursor: pointer; }
.story-item-actions [data-story-delete] { color: var(--danger); }
.legacy-story-badge { display: inline-flex; width: fit-content; max-width: 100%; margin-bottom: 8px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--bronze) 42%, transparent); border-radius: 999px; color: var(--bronze); background: color-mix(in srgb, var(--bronze) 8%, transparent); font-size: 9px; font-weight: 900; line-height: 1.35; overflow-wrap: anywhere; }

.monument-layout { display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.monument-card { position: sticky; top: calc(var(--header-height) + 22px); display: grid; aspect-ratio: 0.8; align-content: space-between; min-width: 0; overflow: hidden; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(255,255,255,.18); border-radius: 30px; color: #f8f2e8; background: radial-gradient(circle at 80% 15%, rgba(217,166,93,.28), transparent 30%), linear-gradient(150deg, #14263f 0%, #172139 55%, #251f3d 100%); box-shadow: 0 28px 70px rgba(15, 24, 40, 0.3); }
.monument-card::after { position: absolute; right: -13%; bottom: -8%; width: 66%; aspect-ratio: 1; border: 1px solid rgba(217,166,93,.2); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(217,166,93,.035), 0 0 0 56px rgba(217,166,93,.025); }
.monument-topline { display: flex; justify-content: space-between; gap: 16px; color: #e6bc7e; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.monument-mark { position: relative; display: grid; width: 140px; height: 140px; margin: 8px auto 0; place-items: end center; }
.monument-mark::before, .monument-mark span, .monument-mark i, .monument-mark b { position: absolute; bottom: 12px; width: 8px; border-radius: 999px; background: linear-gradient(to top, #e5ad64, #7fd1b6); content: ""; transform-origin: bottom; }
.monument-mark::before { height: 94px; }
.monument-mark span { height: 69px; transform: rotate(-50deg); }
.monument-mark i { height: 74px; transform: rotate(50deg); }
.monument-mark b { height: 52px; transform: rotate(-88deg); }
.monument-label { margin: 0; color: #e6bc7e; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-align: center; }
.monument-card h4 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); line-height: 1.2; letter-spacing: -0.05em; text-align: center; overflow-wrap: anywhere; }
.monument-identity { margin: 10px 0 0; color: #b9c5d3; font-size: 13px; font-weight: 700; line-height: 1.55; text-align: center; overflow-wrap: anywhere; }
.monument-card blockquote { margin: 20px 0; overflow-wrap: anywhere; color: #f4ecdf; font-family: var(--serif); font-size: clamp(19px, 2vw, 27px); line-height: 1.58; text-align: center; text-wrap: balance; }
.monument-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding-block: 18px; border-block: 1px solid rgba(255,255,255,.16); }
.monument-card dl > div { min-width: 0; padding-inline: 12px; border-right: 1px solid rgba(255,255,255,.13); }
.monument-card dl > div:last-child { border: 0; }
.monument-card dt { color: #e6bc7e; font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.monument-card dd { max-height: 4.7em; margin: 7px 0 0; overflow: hidden; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.monument-card footer { display: flex; align-items: center; gap: 10px; color: #d7dbe2; font-size: 10px; letter-spacing: .08em; }
.monument-card footer img { border-radius: 9px; }
.monument-tools { display: grid; gap: 12px; }
.tool-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-solid); }
.tool-number { color: var(--bronze); font-family: var(--serif); font-size: 13px; }
.tool-card h4 { margin: 0; font-family: var(--serif); font-size: 20px; }
.tool-card p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.file-button { position: relative; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-button:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.location-result:not(:empty) { margin-top: 10px; color: var(--green); font-weight: 800; }
.monument-actions { justify-content: space-between; }
.monument-timeline { margin-top: 24px; padding: clamp(24px, 3.5vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-solid) 94%, var(--green-soft) 6%); }
.monument-timeline-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.monument-timeline-heading .eyebrow { margin-bottom: 10px; }
.monument-timeline h4 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 3vw, 42px); line-height: 1.2; letter-spacing: -.045em; }
.monument-timeline > p { max-width: 820px; margin: 16px 0 0; color: var(--ink-soft); line-height: 1.75; }
.monument-timeline ol { display: grid; max-height: 520px; gap: 0; margin: 26px 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid var(--line); list-style: none; scrollbar-gutter: stable; }
.monument-timeline li { display: grid; grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr); gap: 22px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.monument-timeline li:last-child { border-bottom: 0; }
.monument-timeline li.is-legacy { padding-inline: 14px; background: color-mix(in srgb, var(--bronze) 7%, transparent); }
.monument-timeline time { color: var(--bronze); font-size: 12px; font-weight: 850; }
.monument-timeline strong { display: block; overflow-wrap: anywhere; font-family: var(--serif); font-size: 20px; }
.monument-timeline li p { margin: 8px 0 0; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.monument-timeline .monument-timeline-empty { display: block; color: var(--ink-faint); text-align: center; }

:root[dir="rtl"] .trust-list li { border-right: 0; border-left: 1px solid var(--line); }
:root[dir="rtl"] .trust-list li:last-child { border-left: 0; }
:root[dir="rtl"] .step-nav button { border-right: 0; border-left: 1px solid var(--line); }
:root[dir="rtl"] .step-nav button:last-child { border-left: 0; }
:root[dir="rtl"] .monument-card dl > div { border-right: 0; border-left: 1px solid rgba(255,255,255,.13); }
:root[dir="rtl"] .monument-card dl > div:last-child { border-left: 0; }
:root[dir="rtl"] .switch-label > span[aria-hidden]::after { right: 3px; left: auto; }
:root[dir="rtl"] .switch-label input:checked + span::after { right: 21px; left: auto; }
:root[dir="rtl"] .primary-button::after { transform: scaleX(-1); }
:root[dir="rtl"] .toast { right: auto; left: 24px; }

.roadmap-grid article { min-height: 260px; }
.roadmap-grid .available { background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.roadmap-grid .available > span { color: var(--green); }

/* Planned subscription, certificate, journey and relationship previews */
.subscription-preview,
.journey-guide,
.relationship-preview {
  min-width: 0;
  margin-top: clamp(34px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--bronze-soft) 13%, transparent), transparent 28rem),
    var(--surface);
  box-shadow: var(--shadow);
}
.subscription-copy,
.journey-copy,
.relationship-copy {
  min-width: 0;
}
.subscription-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 24px;
  margin-bottom: 28px;
}
.subscription-copy .eyebrow,
.journey-copy .eyebrow,
.relationship-copy .eyebrow {
  margin-bottom: 0;
}
.subscription-copy h3,
.journey-copy h3,
.relationship-copy h3 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.subscription-copy h3,
.subscription-copy > p:last-child {
  grid-column: 1 / -1;
}
.subscription-copy > p:last-child,
.journey-copy > p,
.relationship-copy > p,
.relationship-copy > div:last-child > p {
  max-width: 850px;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  line-height: 1.8;
}
.planned-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--bronze) 46%, transparent);
  border-radius: 999px;
  color: var(--bronze);
  background: color-mix(in srgb, var(--bronze) 9%, var(--surface-solid));
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .06em;
  text-align: center;
  overflow-wrap: anywhere;
}
.available-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--green) 48%, transparent);
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 9%, var(--surface-solid));
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}
.plan-picker,
.billing-cycle-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.plan-picker > legend,
.billing-cycle-picker > legend {
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.5;
}
.pricing-test-notice { margin: -4px 0 18px; padding: 12px 14px; border-left: 3px solid var(--bronze); color: var(--ink-soft); background: color-mix(in srgb, var(--surface-solid) 92%, var(--bronze-soft) 8%); font-size: 12px; line-height: 1.7; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.plan-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 330px;
  align-content: start;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-solid) 94%, var(--bronze-soft) 6%);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.plan-card::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--bronze) 24%, transparent);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--bronze) 4%, transparent);
  opacity: .72;
  pointer-events: none;
}
.plan-card.visit-plan {
  background: color-mix(in srgb, var(--surface-solid) 93%, var(--green) 7%);
}
.plan-card.plan-free { background: color-mix(in srgb, var(--surface-solid) 93%, var(--green) 7%); }
.plan-card.freedom-plan {
  background: color-mix(in srgb, var(--surface-solid) 93%, var(--violet) 7%);
}
.plan-card .planned-badge {
  justify-self: end;
}
.plan-radio {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--bronze);
}
:root[dir="rtl"] .plan-radio {
  right: 22px;
  left: auto;
}
.plan-card:has(.plan-radio:checked) {
  border-color: color-mix(in srgb, var(--bronze) 78%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bronze) 18%, transparent), var(--shadow);
  transform: translateY(-2px);
}
.plan-card:has(.plan-radio:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.plan-index {
  display: block;
  margin: 27px 0 4px;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}
.plan-title {
  display: block;
  margin: 7px 0 12px;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.26;
  letter-spacing: -.035em;
}
.plan-price { display: grid; gap: 2px; margin: 3px 0 14px; color: var(--ink); }
.plan-price strong { font-family: var(--serif); font-size: clamp(25px, 2.35vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.plan-price small { color: var(--ink-faint); font-size: 8px; font-weight: 900; letter-spacing: .08em; line-height: 1.5; }
.plan-body {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  line-height: 1.75;
}
.subscription-demo-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 20px;
}
.subscription-demo-actions .primary-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}
.subscription-assurance,
.subscription-status,
.subscription-session-note {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}
.subscription-assurance { margin: 0; }
.subscription-status {
  min-height: 42px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 92%, var(--green) 8%);
}
.subscription-status[data-active="true"] {
  border-color: color-mix(in srgb, var(--green) 58%, var(--line));
  color: var(--ink);
}
.subscription-status:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.subscription-dialog-body { display: grid; gap: 20px; }
.subscription-dialog-body > p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.selected-plan-summary {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-solid) 92%, var(--bronze-soft) 8%);
}
.selected-plan-summary span { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.selected-plan-summary strong { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.billing-cycle-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.billing-cycle-picker > legend { grid-column: 1 / -1; }
.billing-cycle-picker label {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.billing-cycle-picker input { width: 18px; height: 18px; margin: 0; accent-color: var(--bronze); }
.payment-preview,
.checkout-steps {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface-solid) 95%, var(--green) 5%);
}
.payment-preview h3,
.checkout-steps h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.payment-preview p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.payment-preview .planned-notice { margin-top: 10px; color: var(--bronze); font-weight: 800; }
.checkout-steps ol { margin: 0; padding-inline-start: 22px; }
.checkout-steps li { padding-inline-start: 4px; color: var(--ink-soft); line-height: 1.7; }
.checkout-steps li + li { margin-top: 7px; }
.subscription-session-note { margin: 0; }
.subscription-dialog-actions { margin-top: 0; }
.certificate-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.lineage-certificate {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 390px;
  align-content: start;
  padding: clamp(26px, 3.4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 96%, var(--bronze-soft) 4%), var(--surface));
}
.lineage-certificate::before,
.lineage-certificate::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--bronze) 22%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.lineage-certificate::before {
  top: -105px;
  right: -90px;
  width: 250px;
  aspect-ratio: 1;
}
.lineage-certificate::after {
  right: -58px;
  bottom: -78px;
  width: 180px;
  aspect-ratio: 1;
  box-shadow: 0 0 0 20px color-mix(in srgb, var(--bronze) 4%, transparent);
}
.visit-certificate {
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--green) 13%, transparent), transparent 16rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 95%, var(--green) 5%), var(--surface));
}
.certificate-ribbon {
  position: relative;
  z-index: 1;
  display: grid;
  width: fit-content;
  max-width: calc(100% - 92px);
  gap: 2px;
  padding-inline-start: 15px;
  border-inline-start: 3px solid var(--bronze);
}
.certificate-ribbon span {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 850;
}
.certificate-ribbon small {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
.certificate-seal {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 1;
  display: grid;
  width: 66px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--bronze) 55%, transparent);
  border-radius: 50%;
  color: var(--bronze);
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  font-family: var(--serif);
  font-weight: 900;
  box-shadow: inset 0 0 0 5px var(--surface-solid), inset 0 0 0 6px color-mix(in srgb, var(--bronze) 30%, transparent);
}
.journey-seal {
  border-color: color-mix(in srgb, var(--green) 58%, transparent);
  color: var(--green);
}
.certificate-kicker {
  position: relative;
  z-index: 1;
  margin: clamp(48px, 7vw, 72px) 0 8px;
  color: var(--bronze);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}
.lineage-certificate h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -.045em;
}
.lineage-certificate > p:not(.certificate-kicker) {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  line-height: 1.75;
}
.certificate-line {
  position: relative;
  z-index: 1;
  width: min(210px, 64%);
  height: 1px;
  margin: 28px 0 17px;
  background: var(--line-strong);
}
.lineage-certificate > .planned-badge {
  position: relative;
  z-index: 1;
}
.certificate-disclaimer {
  margin: 16px 4px 0;
  overflow-wrap: anywhere;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.certificate-record-boundary { display: block; margin-top: 12px; color: inherit; opacity: .74; font-size: 9px; font-weight: 750; line-height: 1.5; }
.journey-guide {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.journey-copy {
  display: grid;
  align-content: start;
  justify-items: start;
}
.journey-copy .planned-badge {
  margin: 2px 0 16px;
}
.journey-copy h3 {
  margin-bottom: 9px;
}
.journey-address {
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--bronze);
  color: var(--ink) !important;
  font-weight: 800;
}
.journey-links {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.journey-links a {
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.travel-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.travel-options article {
  display: grid;
  min-width: 0;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}
.travel-options article > span {
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 900;
}
.travel-options h4 {
  margin: 20px 0 9px;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
}
.travel-options article p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}
.travel-estimate,
.travel-basis {
  grid-column: 1 / -1;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.travel-estimate {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  font-size: 12px;
}
.travel-basis {
  color: var(--ink-faint);
  font-size: 10px;
}

/* Readable relationship map: text, symbols and line styles repeat every state. */
.relationship-preview {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.relationship-preview > * {
  min-width: 0;
  max-width: 100%;
}
.relationship-copy {
  align-self: start;
}
.relationship-copy h3 {
  margin-top: 10px;
}
.relationship-map {
  display: grid;
  max-width: 100%;
  min-width: 0;
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    color-mix(in srgb, var(--surface-solid) 92%, transparent);
  background-size: 36px 36px;
}
.relationship-row {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}
.generation-label {
  width: 82px;
  flex: 0 0 82px;
  align-self: center;
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}
.relation-node {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: min(270px, 100%);
  max-width: 100%;
  min-width: 0;
  align-content: center;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 7%, transparent);
}
.relation-node.is-self {
  border-width: 2px;
  border-color: var(--bronze);
  background: color-mix(in srgb, var(--surface-solid) 90%, var(--bronze-soft) 10%);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--bronze) 15%, transparent);
}
.relation-node.approved {
  border-inline-start: 5px solid var(--green);
}
.relation-node.pending {
  border-style: dashed;
  border-inline-start: 5px dashed var(--violet);
}
.relation-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--bronze);
  background: var(--surface-strong);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 900;
}
.approved .relation-symbol {
  color: var(--green);
}
.pending .relation-symbol {
  color: var(--violet);
}
.relation-copy {
  display: grid;
  min-width: 0;
  align-content: center;
}
.relation-copy h4,
.relation-copy strong,
.relation-copy span,
.relation-status {
  overflow-wrap: anywhere;
}
.relation-copy h4,
.relation-copy strong {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
}
.relation-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}
.relation-status {
  grid-column: 1 / -1;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 25px;
  align-items: center;
  margin: 3px 0 0;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.4;
}
.approved .relation-status {
  color: var(--green);
}
.pending .relation-status {
  color: var(--violet);
}
.relation-connector {
  position: relative;
  width: 2px;
  height: 28px;
  justify-self: center;
  border-left: 2px solid var(--line-strong);
}
.relation-connector::after {
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
  content: "";
  transform: rotate(45deg);
}
.relationship-notes {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 18px 0 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.site-footer { display: grid; grid-template-columns: .8fr 1.6fr auto; align-items: center; gap: 30px; padding: 30px max(24px, calc((100vw - var(--content)) / 2)) max(30px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }
.site-footer > div { display: flex; align-items: center; gap: 10px; }
.site-footer > div img { border-radius: 10px; }
.site-footer p { margin: 0; }
.site-footer > div p { display: grid; line-height: 1.4; }
.site-footer > div span { color: var(--ink-faint); font-size: 10px; }
.legal-copy { color: var(--ink-faint); font-size: 10px; line-height: 1.7; }
.site-footer nav { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.site-footer nav button, .site-footer nav a { padding: 8px 0; border: 0; color: var(--bronze); background: transparent; font-size: 11px; font-weight: 800; text-underline-offset: 4px; cursor: pointer; }
.feedback-safety { grid-column: 1 / -1; max-width: var(--content); color: var(--ink-faint); font-size: 10px; line-height: 1.7; }

dialog { width: min(620px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 26px; color: var(--ink); background: var(--surface-solid); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(7, 13, 23, 0.64); backdrop-filter: blur(8px); }
.dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); background: var(--surface-solid); }
.dialog-head .eyebrow { margin-bottom: 8px; }
.dialog-head h2 { margin: 0; font-family: var(--serif); font-size: 28px; }
.dialog-close { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 24px; cursor: pointer; }
.dialog-body { padding: 24px 26px 28px; }
.voice-setup-body { display: grid; gap: 18px; }
.voice-setup-body > p { margin: 0; }
.voice-setup-guides { display: grid; gap: 12px; margin: 0; padding-inline-start: 24px; }
.voice-setup-guides li { padding-inline-start: 5px; color: var(--ink-soft); line-height: 1.75; }
.voice-setup-links { display: flex; flex-wrap: wrap; gap: 10px; }
.voice-setup-links a { min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 12px; font-weight: 800; }
.voice-setup-links .voice-settings-link { border-color: var(--bronze); color: var(--bronze); background: color-mix(in srgb, var(--bronze) 8%, transparent); }
.voice-setup-status { min-height: 1.6em; color: var(--coral); font-weight: 700; }
.print-field-value { display: none; }
.dialog-body ul { margin: 0 0 24px; padding-inline-start: 22px; }
.dialog-body li + li { margin-top: 12px; }
.dialog-actions { justify-content: flex-end; }
.toast { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 500; max-width: min(420px, calc(100% - 48px)); padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--ink); background: var(--surface-solid); box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 980px) {
  .beta-chip { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-art { width: min(760px, 100%); justify-self: center; aspect-ratio: 3 / 2; }
  .place-grid { grid-template-columns: minmax(0, 1fr); }
  .place-card { grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); }
  .place-photo, .place-symbol { height: 100%; aspect-ratio: auto; }
  .place-card-copy { min-height: 260px; }
  .section-heading, .panel-copy { grid-template-columns: 1fr; }
  .panel-copy h3, .panel-copy > p:last-child { grid-column: auto; margin-top: 0; }
  .principle-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .identity-flow { grid-template-columns: minmax(0, 1fr); }
  .identity-flow article { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-flow article:last-child { border-bottom: 0; }
  .principle-grid article, .roadmap-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid article:last-child, .roadmap-grid article:last-child { border-bottom: 0; }
  .principle-grid h3, .roadmap-grid h3 { margin-top: 30px; }
  .writing-grid { grid-template-columns: 1fr; }
  .writing-card { min-height: auto; }
  .monument-layout { grid-template-columns: 1fr; }
  .monument-card { position: relative; top: auto; width: min(620px, 100%); justify-self: center; }
  .plan-grid,
  .certificate-comparison,
  .journey-guide,
  .relationship-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-card { min-height: auto; }
  .journey-copy,
  .relationship-copy { max-width: 820px; }
  .relationship-map { width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { white-space: normal; }
}

@media (max-width: 820px) {
  .term-grid { grid-template-columns: minmax(0, 1fr); }
  .term-service-card {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .relationship-map { gap: 12px; padding: 14px; background: color-mix(in srgb, var(--surface-solid) 94%, transparent); }
  .relationship-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .generation-label { width: auto; padding-block: 4px; text-align: start; }
  .relation-node { width: 100%; max-width: none; }
  .relation-connector { display: none; }
}

@media (max-width: 700px) {
  :root { --header-height: 68px; }
  body { font-size: 15px; }
  .site-header { gap: 10px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .header-actions { gap: 6px; }
  .beta-chip { display: none; }
  .language-control select { width: 78px; min-width: 78px; padding-left: 10px; font-size: 12px; }
  .language-control select { color: transparent; }
  .language-control { position: relative; }
  .language-control::after { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--ink); content: attr(data-code); font-size: 11px; font-weight: 900; }
  .icon-button { width: 42px; height: 42px; flex-basis: 42px; }
  .hero, .place-guide, .principles, .term-guide, .identity-bridge, .future { width: auto; margin-left: max(14px, env(safe-area-inset-left)); margin-right: max(14px, env(safe-area-inset-right)); }
  .hero { min-height: auto; padding-block: 24px 64px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .hero-description { margin-top: 24px; font-size: 16px; line-height: 1.82; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button, .danger-button { width: 100%; }
  .text-button { width: 100%; }
  .trust-list { grid-template-columns: 1fr; margin-top: 32px; }
  .trust-list li { min-height: 60px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-list li:last-child { border-bottom: 0; }
  .hero-art { aspect-ratio: 16 / 10; }
  .museum-badge { top: 20px; left: 20px; }
  .hero-art figcaption { right: 20px; bottom: 18px; left: 20px; }
  .hero-art figcaption p { font-size: 12px; line-height: 1.55; }
  .independence-badge { top: 54px; right: 20px; max-width: calc(100% - 40px); padding: 6px 9px; font-size: 9px; }
  .place-card { grid-template-columns: minmax(0, 1fr); }
  .place-photo, .place-symbol { aspect-ratio: 16 / 10; }
  .place-card-copy { min-height: 260px; }
  .place-boundary { border-radius: var(--radius-md); }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 34px; }
  .identity-flow article { padding: 24px 20px; }
  .identity-flow h3 { margin-top: 28px; font-size: 27px; }
  .identity-boundary { border-radius: var(--radius-md); text-align: start; }
  .term-card,
  .term-service-card { padding: 22px 18px; }
  .term-card,
  .term-service-card > div:first-child { grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; }
  .term-number { width: 30px; height: 30px; }
  .term-card p { margin-top: 17px; }
  .term-card h3,
  .term-service-card h3 { font-size: 26px; }
  .workspace { width: 100%; padding: 24px env(safe-area-inset-right) 56px env(safe-area-inset-left); }
  .workspace-shell { border-inline: 0; border-radius: 0; }
  .workspace-head { align-items: stretch; flex-direction: column; padding: 22px max(16px, env(safe-area-inset-right)) 22px max(16px, env(safe-area-inset-left)); }
  .save-control { min-width: 0; }
  .step-nav { position: sticky; top: var(--header-height); z-index: 20; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .step-nav::-webkit-scrollbar { display: none; }
  .step-nav button { min-width: 110px; min-height: 58px; gap: 7px; }
  .step-nav strong { font-size: 11px; }
  .step-panel { min-height: auto; padding: 30px max(16px, env(safe-area-inset-right)) max(34px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); scroll-margin-top: calc(var(--header-height) + 76px); }
  .panel-copy { gap: 0; margin-bottom: 26px; }
  .panel-copy h3 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide, .voice-field.field-wide { grid-column: auto; }
  .panel-actions { align-items: stretch; flex-direction: column-reverse; }
  .story-form { grid-template-columns: 1fr; padding: 16px; }
  .story-form .field-wide { grid-column: auto; }
  .story-item { grid-template-columns: 1fr auto; gap: 10px; }
  .story-item time { grid-column: 1 / -1; }
  .story-item > div { min-width: 0; }
  .story-item-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
  .monument-timeline-heading { align-items: stretch; flex-direction: column; }
  .monument-timeline-heading .secondary-button { width: 100%; }
  .monument-timeline li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .monument-card { padding: 26px 22px; border-radius: 24px; }
  .monument-card dl { grid-template-columns: 1fr; }
  .monument-card dl > div { padding: 10px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .monument-card dl > div:last-child { border-bottom: 0; }
  .tool-card { grid-template-columns: 34px minmax(0, 1fr); padding: 16px; }
  .tool-card > button, .tool-card > .tool-actions { grid-column: 1 / -1; }
  .tool-actions { width: 100%; }
  .tool-actions > * { flex: 1; }
  .monument-actions { flex-direction: column-reverse; }
  .subscription-preview,
  .journey-guide,
  .relationship-preview {
    margin-top: 28px;
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }
  .subscription-copy { grid-template-columns: minmax(0, 1fr); }
  .subscription-copy .planned-badge,
  .subscription-copy h3,
  .subscription-copy > p:last-child { grid-column: auto; }
  .subscription-copy .planned-badge { justify-self: start; }
  .subscription-copy h3,
  .journey-copy h3,
  .relationship-copy h3 { max-width: 100%; font-size: 29px; overflow-wrap: anywhere; }
  .plan-card,
  .travel-options article { padding: 19px; }
  .certificate-comparison { gap: 14px; }
  .lineage-certificate {
    min-height: 350px;
    padding: 24px 20px;
  }
  .certificate-seal {
    top: 19px;
    right: 19px;
    width: 54px;
  }
  .certificate-ribbon { max-width: calc(100% - 66px); }
  .certificate-kicker { margin-top: 44px; }
  .journey-links { align-items: stretch; flex-direction: column; }
  .journey-links a { width: 100%; }
  .travel-options { grid-template-columns: minmax(0, 1fr); }
  .travel-estimate,
  .travel-basis { grid-column: auto; }
  .relationship-map {
    gap: 12px;
    padding: 14px;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  }
  .relationship-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .generation-label { width: auto; padding-block: 4px; text-align: start; }
  .relation-node {
    width: 100%;
    max-width: none;
  }
  .relation-connector { display: none; }
  .relationship-notes { margin-top: 14px; }
  .site-footer { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 2px; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .dialog-head, .dialog-body { padding-inline: 20px; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .toast { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100% - 24px); }
  :root[dir="rtl"] .trust-list li { border-left: 0; }
  :root[dir="rtl"] .step-nav button { border-left: 0; border-right: 1px solid var(--line); }
  :root[dir="rtl"] .step-nav button:last-child { border-right: 0; }
  :root[dir="rtl"] .monument-card dl > div { border-left: 0; }
  :root[dir="rtl"] .toast { right: auto; left: 12px; }
}

@media (max-width: 520px) {
  .brand-copy { display: block; min-width: 0; }
  .brand-copy strong { display: block; max-width: 82px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .billing-cycle-picker { grid-template-columns: minmax(0, 1fr); }
  .subscription-demo-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 390px) {
  .site-header { gap: 6px; padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .brand img { width: 36px; height: 36px; }
  .header-actions { gap: 5px; }
  .language-control select { width: 64px; min-width: 64px; }
  .icon-button { width: 40px; height: 40px; flex-basis: 40px; }
  .hero h1 { font-size: 36px; }
  .museum-badge { top: 16px; left: 16px; padding: 6px 9px; font-size: 9px; }
  .independence-badge { top: 48px; right: 16px; }
  .hero-art { display: grid; aspect-ratio: auto; }
  .hero-art::before, .hero-art::after { display: none; }
  .hero-art > img { height: auto; aspect-ratio: 16 / 10; }
  .hero-art figcaption { position: static; padding: 15px 16px 17px; color: var(--ink); background: var(--surface); }
  .hero-art figcaption p { display: block; overflow: visible; font-size: 11px; }
  .hero-art figcaption small { margin-top: 7px; color: var(--ink-faint); font-size: 9px; }
  .subscription-preview,
  .journey-guide,
  .relationship-preview { padding: 18px 14px; }
  .term-card,
  .term-service-card { padding: 19px 15px; }
  .plan-card,
  .lineage-certificate,
  .travel-options article { padding: 18px 15px; }
  .certificate-seal { top: 15px; right: 15px; width: 48px; }
  .certificate-ribbon { max-width: calc(100% - 58px); padding-inline-start: 10px; }
  .certificate-ribbon span { font-size: 13px; }
  .certificate-kicker { margin-top: 38px; font-size: 8px; letter-spacing: .12em; }
  .relationship-map { padding: 10px; }
  .relation-node { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  .relation-symbol { width: 38px; height: 38px; }
}

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

@media (prefers-contrast: more) {
  :root { --line: currentColor; --line-strong: currentColor; }
  .primary-button { border: 2px solid currentColor; box-shadow: none; }
  .planned-badge,
  .plan-card,
  .lineage-certificate,
  .travel-options article,
  .term-card,
  .term-service-card,
  .relation-node,
  .relation-status,
  .subscription-status,
  .selected-plan-summary,
  .billing-cycle-picker label,
  .payment-preview,
  .checkout-steps { border-width: 2px; box-shadow: none; }
  .relation-node.pending { border-style: dashed; }
}

@media (forced-colors: active) {
  .language-control select { color: ButtonText; }
  .language-control::after { display: none; }
  .planned-badge,
  .plan-card,
  .lineage-certificate,
  .travel-options article,
  .term-card,
  .term-service-card,
  .relationship-map,
  .relation-node,
  .relation-symbol,
  .relation-status,
  .subscription-status,
  .selected-plan-summary,
  .billing-cycle-picker label,
  .payment-preview,
  .checkout-steps {
    color: CanvasText;
    background: Canvas;
    forced-color-adjust: auto;
  }
  .relation-node.is-self { border: 3px double Highlight; }
  .relation-node.approved { border-inline-start: 5px solid LinkText; }
  .relation-node.pending { border-inline-start: 5px dashed GrayText; }
  .relation-connector,
  .relation-connector::after { border-color: CanvasText; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #17263f; background: #fff; }
  body::before, .site-header, .hero, .place-guide, .principles, .term-guide, .identity-bridge, .future, .step-nav, .workspace-head, .panel-actions, .monument-tools, .story-form, .voice-input-button, .site-footer, dialog, .toast { display: none !important; }
  .workspace, .workspace-shell, .step-panel[data-step] { display: block !important; width: 100%; padding: 0; border: 0; box-shadow: none; }
  .step-panel[data-step] { margin-bottom: 14mm; break-inside: auto; }
  .step-panel[data-step] + .step-panel[data-step] { padding-top: 10mm; border-top: 1px solid #c8c8c8; }
  .panel-copy { display: block; margin-bottom: 20px; }
  .form-grid, .writing-grid { display: grid; grid-template-columns: 1fr; }
  input[type="text"], input[type="date"], textarea { display: none !important; }
  .print-field-value { display: block; min-height: 12mm; padding: 3mm 4mm; overflow-wrap: anywhere; border: 1px solid #d7d7d7; border-radius: 3mm; color: #17263f; background: #fff; white-space: pre-wrap; }
  .story-list { break-inside: auto; }
  .story-item { break-inside: avoid; }
  .monument-layout { display: block; }
  .monument-card { position: relative; width: 160mm; min-height: 200mm; margin: 0 auto; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
