@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  --paper: #f7f3ed;
  --paper-deep: #eee6da;
  --paper-soft: #fbf9f5;
  --chrome: #e2d8c8;
  --chrome-ink: #292823;
  --chrome-muted: #736e64;
  --chrome-line: #d2c6b4;
  --band: #d8ccba;
  --ink: #292823;
  --ink-muted: #736e64;
  --line: #ded5c8;
  --terra: #9b4f3f;
  --terra-dark: #743a32;
  --saffron: #c08a4e;
  --sage: #78837a;
  --plum: #45333b;
  --white-ink: #f5f0e8;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
  --biodata-display: 'Playfair Display', Georgia, serif;
  --biodata-body: 'Poppins', 'Noto Sans Devanagari', system-ui, sans-serif;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-paper: 0 30px 60px rgba(60, 43, 28, .12), 0 8px 18px rgba(60, 43, 28, .07);
  --brand-cta-shadow: 0 7px 16px color-mix(in srgb, var(--terra) 18%, transparent);
}

html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', 'DM Sans', system-ui, sans-serif;
}
html[lang="hi"] .display,
html[lang="hi"] .wordmark-text,
html[lang="hi"] .hero h1,
html[lang="hi"] .section-heading h2,
html[lang="hi"] .families-copy h2,
html[lang="hi"] .private-copy h2,
html[lang="hi"] .final-cta h2,
html[lang="hi"] .quote-section blockquote {
  font-family: 'Noto Serif Devanagari', 'Noto Sans Devanagari', Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
html[lang="hi"] .eyebrow,
html[lang="hi"] .topline,
html[lang="hi"] .language-picker,
html[lang="hi"] .nav-menu-trigger,
html[lang="hi"] .button,
html[lang="hi"] .footer-links,
html[lang="hi"] .footer-bottom {
  font-family: 'Noto Sans Devanagari', 'DM Sans', system-ui, sans-serif;
}
html[lang="hi"] .hero h1 { max-width: 640px; }
html[lang="hi"] .quote-section blockquote { line-height: 1.2; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  --site-header-h: 76px;
  --site-page-bar-h: 0px;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.skip-link {
  position: fixed; left: 18px; top: -80px; z-index: 200;
  padding: 10px 15px; background: var(--ink); color: var(--paper);
  border-radius: 0 0 8px 8px; transition: top .2s ease;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid rgba(192, 138, 78, .85); outline-offset: 4px; }

.topline {
  position: relative; min-height: 34px; padding: 7px 5vw;
  background: var(--chrome, var(--paper-deep)); color: var(--chrome-ink, var(--ink));
  border-bottom: 1px solid var(--chrome-line, var(--line));
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.topline .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); }
.language-picker { position: absolute; right: 5vw; top: 50%; display: flex; align-items: center; gap: 7px; transform: translateY(-50%); }
.language-picker label { color: var(--chrome-muted, var(--ink-muted)); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.language-picker select { padding: 3px 18px 3px 2px; border: 0; appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, var(--saffron) 50%) calc(100% - 9px) 9px / 4px 4px no-repeat, linear-gradient(135deg, var(--saffron) 50%, transparent 50%) calc(100% - 5px) 9px / 4px 4px no-repeat; color: var(--chrome-ink, var(--ink)); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.language-picker select:focus-visible { outline: 1px solid var(--saffron); outline-offset: 3px; }

.impersonation-banner {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 5vw;
  background: #4f46e5; color: #eef2ff;
  font-size: 13px;
}
.impersonation-banner__copy { letter-spacing: .01em; }
.impersonation-banner__email { opacity: .82; margin-left: 6px; }
.impersonation-banner form { margin: 0; }
.impersonation-banner__exit {
  border: 1px solid rgba(238, 242, 255, .45);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}
.impersonation-banner__exit:hover { background: rgba(255,255,255,.12); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Sticky breadcrumb (+ optional progress) under the site header — legal, journal, templates, FAQ */
.site-page-bar {
  position: sticky;
  top: var(--site-header-h, 76px);
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow: 0 1px 0 var(--paper);
}
.site-page-bar-spacer { display: none; }
.site-page-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  background: color-mix(in srgb, var(--terra) 12%, transparent);
}
.site-page-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--terra), var(--saffron, #c08a4e));
}
.site-page-bar-inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0 11px;
}
.site-page-breadcrumbs,
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-page-breadcrumbs a,
.breadcrumbs a { color: var(--terra); }
.site-page-breadcrumbs a:hover,
.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-page-breadcrumbs [aria-current="page"],
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.breadcrumbs-sep { opacity: .55; }

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
.nav-wrap {
  max-width: 1240px; height: 76px; margin: auto; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.04em; }
.wordmark-mark { width: 30px; height: 30px; display: block; }
.wordmark-text { font-size: 21px; line-height: 1; }
.wordmark-logo {
  display: block;
  width: auto;
  height: 44px;
}
.wordmark-logo--light {
  /* Soft paper-white on dark footer; keeps one brand SVG source */
  filter: brightness(0) invert(1);
  opacity: .92;
}
.nav-links { display: flex; align-items: center; gap: 29px; margin-left: 8%; }
.nav-links a { color: var(--ink-muted); font-size: 13px; transition: color .2s ease; }
.nav-links a:hover { color: var(--terra); }
.nav-actions { display: flex; align-items: center; gap: 17px; }
.nav-actions .button-primary { border-radius: 10px; }
.nav-dropdown { position: relative; }
.nav-menu-trigger.nav-apps-trigger {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-menu-trigger.nav-apps-trigger:hover,
.nav-menu-trigger.nav-apps-trigger:focus-visible,
.nav-menu-trigger.nav-apps-trigger[aria-expanded="true"] {
  border-color: transparent;
  background: rgba(60, 43, 28, .07);
  color: var(--ink);
  box-shadow: none;
  transform: none;
}
.nav-apps-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2.5px;
}
.nav-apps-icon span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
  transform: none !important;
}
.nav-dropdown-menu.nav-apps-panel {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 28px));
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 248, .98);
  box-shadow: 0 16px 36px rgba(60, 43, 28, .14);
  transform-origin: top right;
}
.nav-apps-heading {
  margin: 0 8px 10px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.nav-dropdown-menu.nav-apps-panel a.nav-apps-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu.nav-apps-panel a.nav-apps-tile:hover,
.nav-dropdown-menu.nav-apps-panel a.nav-apps-tile:focus-visible {
  background: color-mix(in srgb, var(--terra) 10%, var(--paper-soft));
  color: var(--terra);
}
.nav-apps-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--paper-soft) 0%, color-mix(in srgb, var(--terra) 12%, var(--paper)) 100%);
  border: 1px solid color-mix(in srgb, var(--terra) 14%, transparent);
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-apps-tile-icon svg { width: 22px; height: 22px; }
.nav-apps-tile-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 7.5em;
}
.nav-dropdown-menu.is-open { animation: header-menu-in .2s ease-out both; }
@keyframes header-menu-in { from { opacity: 0; transform: translateY(-7px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.text-button {
  padding: 10px 0; border: 0; background: transparent; color: var(--ink-muted);
  font-size: 13px; font-weight: 600; transition: color .2s ease;
}
.text-button:hover { color: var(--terra); }
.button {
  min-height: 43px; padding: 11px 18px; border: 1px solid transparent; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-size: 13px; font-weight: 600; line-height: 1; transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--terra); color: var(--paper-soft); box-shadow: var(--brand-cta-shadow, 0 7px 16px color-mix(in srgb, var(--terra) 18%, transparent)); }
.button-primary:hover { background: var(--terra-dark); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--terra); color: var(--terra); }
.button-dark { background: var(--ink); color: var(--paper-soft); }
.button-dark:hover { background: var(--plum); }
.arrow { font-size: 16px; line-height: 0; transition: transform .2s ease; }
.button:hover .arrow { transform: translateX(3px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; display: block; width: 17px; height: 1px; margin: 4px auto; background: var(--ink); }

.container { width: min(1140px, calc(100% - 60px)); margin-inline: auto; }
.eyebrow {
  color: var(--terra); font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; line-height: 1.4; text-transform: uppercase;
}
.display {
  margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.045em;
  line-height: .94;
}
.section { padding: 118px 0; position: relative; }
.section-heading { max-width: 660px; }
.section-heading h2 { margin: 15px 0 0; font-size: clamp(42px, 5vw, 69px); }
.section-heading p { margin: 23px 0 0; max-width: 510px; color: var(--ink-muted); font-size: 16px; }

.hero {
  position: relative;
  min-height: 710px; overflow: hidden; padding: 88px 0 112px;
  background: radial-gradient(circle at 74% 44%, color-mix(in srgb, var(--saffron) 22%, transparent), transparent 29%), var(--paper);
}
.hero::before {
  content: ''; position: absolute; width: 480px; height: 480px; right: -188px; top: 44px;
  border: 1px solid color-mix(in srgb, var(--terra) 18%, transparent); border-radius: 50%;
  box-shadow: 0 0 0 38px color-mix(in srgb, var(--terra) 6%, transparent), 0 0 0 76px color-mix(in srgb, var(--terra) 4%, transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(50px, 8vw, 115px); align-items: center; }
.hero-copy { position: relative; z-index: 1; min-width: 0; padding-bottom: 14px; }
.hero h1 { margin-top: 21px; max-width: 640px; font-size: clamp(48px, 6.6vw, 84px); letter-spacing: -.03em; line-height: 1.06; }
.hero h1 em { color: var(--terra); font-style: normal; }
.hero-description { max-width: min(520px, 100%); margin: 22px 0 28px; color: var(--ink-muted); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; max-width: min(520px, 100%); margin-top: 22px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.hero-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--saffron); }
.hero-note span { min-width: 0; flex: 1; }

.stationery-scene { position: relative; min-height: 482px; overflow: hidden; }
.scene-shadow { position: absolute; left: 10%; right: 0; top: 10%; height: 88%; border-radius: 50%; background: rgba(73, 49, 31, .1); filter: blur(28px); transform: rotate(-5deg); }
.document {
  position: absolute; z-index: 2; left: 12%; top: 2%; width: min(350px, 74%); aspect-ratio: .72;
  padding: 34px 29px; background: var(--paper-soft); border: 1px solid var(--line); box-shadow: var(--shadow-paper);
  transform: rotate(-5.5deg); transition: transform .5s ease;
}
.document:hover { transform: rotate(-2deg) translateY(-5px); }
.document::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(192, 138, 78, .4); pointer-events: none; }
.doc-corner { position: absolute; top: 23px; right: 24px; color: var(--saffron); font-family: var(--display); font-size: 22px; }
.doc-top { position: relative; text-align: center; padding-top: 7px; }
.doc-top small { color: var(--saffron); font-family: var(--mono); font-size: 7px; letter-spacing: .22em; text-transform: uppercase; }
.doc-name { margin: 17px 0 4px; color: var(--plum); font-family: var(--display); font-size: 37px; line-height: .9; }
.doc-place { color: var(--ink-muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.doc-rule { width: 52px; height: 1px; margin: 17px auto; background: var(--saffron); }
.doc-photo { width: 96px; height: 104px; margin: 0 auto; overflow: hidden; border-radius: 48% 48% 42% 42%; background: #c5b6a0; position: relative; }
.doc-photo::before { content: ''; position: absolute; width: 39px; height: 46px; left: 28px; top: 18px; border-radius: 50%; background: #9a755b; }
.doc-photo::after { content: ''; position: absolute; width: 86px; height: 61px; left: 5px; bottom: -11px; border-radius: 50% 50% 0 0; background: #59665f; }
.doc-photo-lock {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  max-width: calc(100% - 10px);
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(69, 51, 59, 0.88);
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-details { position: relative; margin-top: 18px; border-top: 1px solid #e8ded3; }
.doc-detail { display: flex; justify-content: space-between; border-bottom: 1px solid #e8ded3; padding: 6px 0; font-size: 8px; }
.doc-detail span:first-child { color: var(--ink-muted); }
.doc-detail strong { color: var(--ink); font-weight: 600; }
.floral-stamp { position: absolute; right: -39px; bottom: 12%; width: 106px; height: 106px; border: 1px solid rgba(120, 131, 122, .55); border-radius: 50%; display: grid; place-items: center; color: var(--sage); transform: rotate(13deg); }
.floral-stamp::before, .floral-stamp::after { content: ''; position: absolute; inset: 11px; border: 1px solid currentColor; border-radius: 50%; }
.floral-stamp::after { inset: 25px; }
.floral-stamp span { position: relative; z-index: 1; font-family: var(--display); font-size: 20px; }
.floating-card { position: absolute; z-index: 3; right: -3%; bottom: 8%; width: 192px; padding: 16px; background: rgba(251, 249, 245, .92); border: 1px solid rgba(222, 213, 200, .9); box-shadow: 0 16px 30px rgba(60, 43, 28, .1); backdrop-filter: blur(7px); }
.floating-card .mini-top { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.secure-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sage) 22%, var(--paper-soft)); color: var(--sage); }
.floating-card strong { display: block; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1; }
.floating-card p { margin: 9px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.4; }
.annotation { position: absolute; top: 2%; right: 4%; display: flex; gap: 8px; align-items: center; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(5deg); }
.annotation::before { content: ''; width: 25px; height: 1px; background: var(--saffron); }

.intro-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.intro-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.intro-band p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.intro-band strong { color: var(--ink); font-weight: 600; }
.intro-detail { color: var(--saffron); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.steps-section { background: var(--paper-deep); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 66px; border-top: 1px solid #d8cbbb; }
.step { min-height: 230px; padding: 28px 42px 15px 0; border-right: 1px solid #d8cbbb; position: relative; }
.step:not(:first-child) { padding-left: 42px; }
.step:last-child { border-right: 0; }
.step-number { color: var(--saffron); font-family: var(--mono); font-size: 11px; }
.step h3 { margin: 25px 0 10px; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; }
.step p { max-width: 235px; margin: 0; color: var(--ink-muted); font-size: 13px; }

.templates-section { overflow: hidden; }
.templates-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.template-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.template-tab { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 9px 14px; color: var(--ink-muted); font-size: 11px; transition: all .2s ease; }
.template-tab:hover, .template-tab.is-active { border-color: var(--terra); background: var(--terra); color: var(--paper-soft); }
.templates-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 57px; }
.templates-top--home { align-items: end; }
.templates-section--home .section-heading .display {
  font-size: clamp(36px, 4.5vw, 52px);
}
.templates-section--home .section-heading p {
  max-width: 36rem;
}
.templates-grid--featured {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: none;
  width: 100%;
}
.templates-grid--featured .template-card--compact {
  padding: 8px;
  min-height: 0;
  background: var(--paper-deep);
}
.templates-grid--featured .template-card--compact .template-paper,
.templates-grid--featured .template-card--compact .template-paper--photo {
  aspect-ratio: auto;
  width: 100%;
  height: 180px;
  max-height: 180px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(60, 43, 28, .08);
}
.templates-grid--featured .template-card--compact .template-preview-img {
  object-fit: cover;
  object-position: top center;
}
.templates-grid--featured .template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}
.templates-grid--featured .template-meta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--plum);
  line-height: 1.1;
}
.templates-grid--featured .select-template {
  padding: 0;
  font-size: 10px;
  white-space: nowrap;
}
.templates-grid--featured .template-card:hover,
.templates-grid--featured .template-card.is-selected {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(60, 43, 28, .08);
}
.template-card { min-height: 0; padding: 18px; background: var(--paper-deep); position: relative; overflow: hidden; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column; }
.template-card:hover, .template-card.is-selected { transform: translateY(-5px); box-shadow: 0 18px 30px rgba(60, 43, 28, .1); }
.template-card:first-child { background: #e6dfd3; }
.template-card:nth-child(2) { background: #e8e2d9; }
.template-card:nth-child(3) { background: #dce4df; }
/* A4 portrait frame — 210×297mm */
.template-paper { width: 100%; height: auto; aspect-ratio: 210 / 297; background: #fcfaf6; padding: 22px 21px; box-shadow: 0 13px 25px rgba(60, 43, 28, .1); position: relative; }
.template-paper--photo { padding: 0; overflow: hidden; background: #ebe4d8; }
.template-paper--photo::after { display: none; }
.template-preview-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.template-paper--photo .paper-fallback { display: none; position: absolute; inset: 0; padding: 22px 21px; }
.template-paper--photo.is-fallback .paper-fallback { display: block; }
.template-paper--photo.is-fallback .template-preview-img { display: none; }
.template-card .template-paper--photo,
.template-card:first-child .template-paper--photo { height: auto; aspect-ratio: 210 / 297; }
.templates-grid .template-meta h2,
.templates-grid .template-meta h3 { margin: 0; font-size: 1.2rem; }
.template-paper::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(192, 138, 78, .38); pointer-events: none; }
.template-card:nth-child(3) .template-paper::after { border-color: rgba(120, 131, 122, .4); }
.paper-label { position: relative; z-index: 1; color: var(--saffron); font-family: var(--mono); font-size: 7px; letter-spacing: .13em; text-transform: uppercase; }
.paper-title { position: relative; z-index: 1; margin-top: 22px; color: var(--plum); font-family: var(--display); font-size: 32px; line-height: .9; }
.paper-lines { position: relative; z-index: 1; margin-top: 20px; display: grid; gap: 8px; }
.paper-line { width: 76%; height: 4px; background: #e6dfd5; }
.paper-line.short { width: 48%; }
.paper-portrait { position: absolute; right: 23px; top: 74px; width: 57px; height: 67px; border-radius: 45% 45% 39% 39%; background: #bcaa94; }
.paper-portrait::before { content: ''; position: absolute; width: 23px; height: 28px; left: 17px; top: 11px; border-radius: 50%; background: #9a755b; }
.paper-portrait::after { content: ''; position: absolute; width: 53px; height: 36px; left: 2px; bottom: -5px; border-radius: 50% 50% 0 0; background: #6f5146; }
.modern-paper { padding: 31px 27px; }
.modern-paper .paper-title { margin-top: 34px; color: var(--ink); font-family: var(--body); font-size: 27px; font-weight: 600; letter-spacing: -.06em; }
.modern-paper .paper-line { background: #ccd6cf; height: 3px; }
.heritage-paper { background: #f8f0e3; border: 1px solid #d6b990; }
.heritage-paper::after { border-color: rgba(154, 98, 61, .45); }
.heritage-paper .paper-title { color: #754735; }
.heritage-paper .paper-line { background: #d2b38f; }
.minimal-paper { padding: 30px 28px; }
.minimal-paper .paper-title { margin-top: 30px; font-size: 28px; color: var(--sage); }
.saanjh-paper { background: #fff6f0; border: 1px solid #dfbbb1; }
.saanjh-paper::after { border-color: rgba(166, 95, 88, .42); }
.saanjh-paper .paper-title { color: #75424a; }
.saanjh-paper .paper-line { background: #e9cfc5; }
.saanjh-paper .paper-portrait { border: 3px solid #f1d9d0; outline: 1px solid #c9956f; outline-offset: 3px; border-radius: 45% 45% 12% 12%; }
.template-meta { display: flex; align-items: end; justify-content: space-between; margin-top: 18px; }
.template-meta h3 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.template-meta p { margin: 6px 0 0; color: var(--ink-muted); font-size: 11px; }
.select-template { border: 0; background: none; color: var(--terra); font-size: 11px; font-weight: 600; }

.families-section { position: relative; background: var(--band, var(--paper-deep)); color: var(--chrome-ink, var(--ink)); overflow: hidden; }
.families-section::after { content: ''; position: absolute; width: 580px; height: 580px; right: -270px; bottom: -340px; border: 1px solid color-mix(in srgb, var(--chrome-ink, var(--ink)) 12%, transparent); border-radius: 50%; box-shadow: 0 0 0 35px color-mix(in srgb, var(--chrome-ink, var(--ink)) 4%, transparent), 0 0 0 70px color-mix(in srgb, var(--chrome-ink, var(--ink)) 2%, transparent); }
.families-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(50px, 10vw, 142px); align-items: center; }
.families-copy h2 { margin: 15px 0 21px; max-width: 500px; color: var(--chrome-ink, var(--ink)); font-size: clamp(45px, 5.3vw, 76px); }
.families-copy p { max-width: 390px; color: var(--chrome-muted, var(--ink-muted)); }
.families-copy .eyebrow { color: var(--terra); }
.family-list { border-top: 1px solid var(--chrome-line, var(--line)); }
.family-item { display: grid; grid-template-columns: 46px 1fr 19px; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--chrome-line, var(--line)); }
.family-item-index { color: var(--terra); font-family: var(--mono); font-size: 10px; }
.family-item h3 { margin: 0 0 3px; font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1; color: var(--chrome-ink, var(--ink)); }
.family-item p { margin: 0; color: var(--chrome-muted, var(--ink-muted)); font-size: 12px; }
.family-item-arrow { color: var(--terra); font-size: 18px; transition: transform .2s ease; }
.family-item:hover .family-item-arrow { transform: translateX(4px); }

.private-section { background: var(--paper-soft); }
.private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 10vw, 145px); align-items: center; }
.private-copy h2 { margin: 16px 0 22px; font-size: clamp(45px, 5vw, 70px); }
.private-copy p { max-width: 440px; color: var(--ink-muted); }
.private-points { margin-top: 31px; display: grid; gap: 16px; }
.private-point { display: flex; align-items: flex-start; gap: 13px; color: var(--ink); font-size: 13px; }
.private-point-mark { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 1px solid #cad4c9; border-radius: 50%; display: grid; place-items: center; color: var(--sage); }
.private-why {
  max-width: 440px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--terra);
  background: color-mix(in srgb, var(--terra) 6%, transparent);
}
.private-why strong {
  display: block;
  margin-bottom: 8px;
  color: var(--plum);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.private-why p {
  margin: 0;
  max-width: none;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
}
.share-window { position: relative; padding: 31px; background: var(--paper-deep); min-height: 390px; }
.share-window::before { content: ''; position: absolute; left: -19px; top: 40px; width: 1px; height: 117px; background: var(--saffron); }
.share-browser { background: var(--paper-soft); box-shadow: 0 20px 30px rgba(60, 43, 28, .09); }
.browser-top { height: 38px; padding: 0 13px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; }
.browser-dot { width: 6px; height: 6px; border-radius: 50%; background: #d2c5b8; }
.browser-address { width: 100px; height: 16px; margin-left: 10px; border-radius: 3px; background: #eee7df; }
.share-content { padding: 25px 29px 29px; }
.share-content-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-content h3 { margin: 0; font-family: var(--display); font-size: 29px; font-weight: 600; }
.lock-label { display: inline-flex; align-items: center; gap: 5px; color: var(--sage); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.share-photo-note {
  margin: 10px 0 16px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}
.share-photo-strip {
  display: flex;
  gap: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}
.share-photo-thumb {
  flex: 0 0 56px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(160deg, #e8dfd4 0%, #d5c8b8 55%, #c4b5a4 100%);
}
.share-photo-thumb.is-primary,
.share-photo-thumb--more {
  display: grid;
  place-items: end center;
  padding: 6px 4px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(69, 51, 59, 0.72)),
    linear-gradient(160deg, #e8dfd4 0%, #d5c8b8 55%, #c4b5a4 100%);
}
.share-photo-thumb.is-primary span,
.share-photo-thumb--more span {
  color: var(--paper-soft);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.25;
}
.share-photo-thumb.is-primary {
  outline: 1px solid var(--terra);
  outline-offset: 1px;
}
.share-line { height: 1px; margin: 16px 0; background: var(--line); }
.permission { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #eee6dc; color: var(--ink-muted); font-size: 11px; }
.permission:last-of-type { border-bottom: 0; }
.permission strong { color: var(--ink); font-weight: 500; }
.switch { width: 34px; height: 19px; padding: 2px; border: 0; border-radius: 999px; background: #d7d0c7; transition: background .2s ease; }
.switch span { display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--paper-soft); transition: transform .2s ease; }
.switch[aria-pressed="true"] { background: var(--sage); }
.switch[aria-pressed="true"] span { transform: translateX(15px); }
.share-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; color: var(--ink-muted); font-size: 10px; gap: 12px; }
.share-footer button { border: 0; background: none; color: var(--terra); font-size: 10px; font-weight: 600; }

.quote-section { padding: 120px 0 135px; text-align: center; }
.quote-section blockquote { max-width: 830px; margin: 26px auto 0; font-family: var(--display); font-size: clamp(42px, 5.7vw, 76px); line-height: .97; letter-spacing: -.045em; }
.quote-section blockquote em { color: var(--terra); font-style: normal; }
.quote-byline { margin-top: 29px; color: var(--ink-muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.faq-section { background: var(--paper-deep); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(55px, 10vw, 150px); }
.faq-layout h2 { margin: 15px 0 17px; font-size: clamp(45px, 5vw, 66px); }
.faq-layout > div > p { max-width: 290px; color: var(--ink-muted); font-size: 14px; }
.faq-list { border-top: 1px solid #d5c8b8; }
.faq-item { border-bottom: 1px solid #d5c8b8; }
.faq-question { width: 100%; padding: 23px 0; border: 0; background: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); text-align: left; font-family: var(--display); font-size: 25px; font-weight: 600; }
.faq-plus { width: 25px; height: 25px; position: relative; flex: none; border: 1px solid var(--line); border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 7px; top: 11px; width: 9px; height: 1px; background: var(--terra); }
.faq-plus::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq-item.is-open .faq-plus { background: var(--paper-soft); }
.faq-item.is-open .faq-plus::after { transform: rotate(0); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { max-width: 580px; margin: -7px 0 23px; color: var(--ink-muted); font-size: 14px; }

.final-cta { padding: 102px 0 110px; background: var(--band, var(--paper-deep)); color: var(--chrome-ink, var(--ink)); text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: 'व'; position: absolute; left: -10px; top: -48px; color: color-mix(in srgb, var(--chrome-ink, var(--ink)) 8%, transparent); font-family: var(--display); font-size: 270px; line-height: 1; }
.final-cta::after { content: ''; position: absolute; right: 6%; bottom: -160px; width: 370px; height: 370px; border: 1px solid color-mix(in srgb, var(--chrome-ink, var(--ink)) 12%, transparent); border-radius: 50%; box-shadow: 0 0 0 25px color-mix(in srgb, var(--chrome-ink, var(--ink)) 4%, transparent), 0 0 0 51px color-mix(in srgb, var(--chrome-ink, var(--ink)) 2%, transparent); }
.final-cta .eyebrow { color: var(--terra); }
.final-cta h2 { position: relative; z-index: 1; max-width: 700px; margin: 18px auto 20px; font-size: clamp(50px, 6.5vw, 89px); color: var(--chrome-ink, var(--ink)); }
.final-cta p { position: relative; z-index: 1; max-width: 390px; margin: 0 auto 30px; color: var(--chrome-muted, var(--ink-muted)); }
.final-cta .button { position: relative; z-index: 1; background: var(--terra); color: var(--paper-soft); }
.final-cta .button:hover { background: var(--terra-dark); color: var(--paper-soft); }

.site-footer {
  padding: 31px 0 26px;
  background: var(--chrome, var(--paper-deep));
  color: var(--chrome-muted, var(--ink-muted));
  border-top: 1px solid var(--chrome-line, var(--line));
}
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-bottom: 29px; border-bottom: 1px solid var(--chrome-line, var(--line)); }
.footer-top .wordmark { color: var(--chrome-ink, var(--ink)); }
.footer-top .wordmark-logo { height: 32px; }
.footer-links { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 24px; color: var(--chrome-muted, var(--ink-muted)); font-size: 11px; text-align: left; }
.footer-links a:hover { color: var(--chrome-ink, var(--ink)); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; color: var(--chrome-muted, var(--ink-muted)); font-family: var(--mono); font-size: 9px; letter-spacing: .05em; }

#main-content,
main#main-content {
  background: var(--paper);
  color: var(--ink);
}

.journey-shell { min-height: 100dvh; background: var(--paper); }
.auth-page { min-height: 100dvh; padding: 31px 0 80px; background: radial-gradient(circle at 88% 18%, rgba(192, 138, 78, .12), transparent 24%), var(--paper); }
.auth-paper, .wizard-shell { width: min(1180px, calc(100% - 60px)); margin-inline: auto; }
.auth-wordmark { color: var(--ink); }
.return-home { display: inline-flex; align-items: center; gap: 9px; margin-top: 75px; color: var(--ink-muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
.return-home span { color: var(--terra); font-size: 16px; transition: transform .2s ease; }
.return-home:hover { color: var(--terra); }
.return-home:hover span { transform: translateX(-3px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 450px); gap: clamp(60px, 11vw, 160px); align-items: center; max-width: 1050px; margin: 65px auto 0; }
.auth-intro { padding: 24px 0 45px; }
.auth-intro h1 { margin: 18px 0 22px; color: var(--plum); font-size: clamp(59px, 7.3vw, 96px); }
.auth-intro h1 em, .wizard-card h1 em { color: var(--terra); font-style: normal; }
.auth-lede { margin: 0; color: var(--ink); font-family: var(--display); font-size: 29px; line-height: 1.05; }
.auth-description { max-width: 435px; margin: 19px 0 0; color: var(--ink-muted); font-size: 15px; }
.auth-reasons { max-width: 420px; margin-top: 38px; border-top: 1px solid var(--line); }
.auth-reasons > div { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; }
.auth-reason-mark { color: var(--saffron); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.auth-card { padding: 34px 35px 29px; background: var(--paper-soft); border: 1px solid var(--line); box-shadow: 0 25px 55px rgba(60, 43, 28, .1); }
.auth-card-top, .wizard-progress { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.auth-mode-kicker, .auth-step, .wizard-progress-label, .wizard-progress > span:last-child { color: var(--saffron); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.auth-step, .wizard-progress > span:last-child { color: var(--ink-muted); }
.auth-card h2 { margin: 20px 0 7px; color: var(--plum); font-family: var(--display); font-size: 37px; font-weight: 600; line-height: .98; }
.auth-card-copy { min-height: 46px; margin: 0 0 23px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }
.auth-actions { display: grid; gap: 15px; }
.auth-provider { width: 100%; min-height: 49px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; display: flex; align-items: center; justify-content: center; gap: 11px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; transition: background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease; }
.auth-provider:hover { transform: translateY(-2px); border-color: var(--terra); background: var(--paper-soft); }
.auth-provider:disabled { cursor: wait; opacity: .62; transform: none; }
.auth-provider.is-coming-soon:disabled { cursor: not-allowed; opacity: .72; border-style: dashed; background: var(--paper-soft); color: var(--ink-muted); }
.auth-provider.is-coming-soon:hover { transform: none; border-color: var(--line); background: var(--paper-soft); }
.auth-coming-soon-note { margin: 8px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.45; text-align: center; }
.google-mark { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d8cbbb; border-radius: 50%; color: #637d8b; font-family: Georgia, serif; font-size: 14px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.auth-form, #auth-form { display: grid; gap: 14px; }
.auth-channel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border: 1px solid var(--line); background: var(--paper); }
.auth-channel-btn { min-height: 36px; border: 0; background: transparent; color: var(--ink-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.auth-channel-btn.is-active { background: var(--terra); color: var(--paper-soft); }
.auth-channel-btn:disabled { opacity: .5; }
.auth-email { border-color: var(--terra); background: var(--terra); color: var(--paper-soft); }
.auth-email:hover { border-color: var(--terra-dark); background: var(--terra-dark); }
.auth-email .arrow { margin-left: auto; }
.auth-privacy { margin: 23px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.55; text-align: center; }
.auth-privacy a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.auth-status { margin-top: 14px; padding: 10px 12px; border-left: 2px solid var(--saffron); background: #f1e9db; color: var(--ink-muted); font-size: 11px; }
.auth-status:has(.auth-retry:not([hidden])) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-retry { padding: 0; border: 0; background: none; color: var(--terra); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.auth-status.is-error { border-color: var(--terra); background: color-mix(in srgb, var(--terra) 14%, var(--paper-soft)); color: var(--terra-dark); }
.auth-inline-error { margin: -4px 0 0; color: var(--terra-dark); font-size: 11px; }
.auth-mode-switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 11px; text-align: center; }
.auth-mode-switch button { padding: 0; border: 0; background: none; color: var(--terra); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wizard-page { min-height: 100dvh; padding: 31px 0 70px; background: radial-gradient(circle at 14% 73%, rgba(120, 131, 122, .1), transparent 26%), var(--paper); }
.wizard-progress { max-width: 690px; margin: 108px auto 0; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.wizard-progress i { display: inline-block; width: 26px; height: 1px; margin: 0 7px 3px; background: var(--saffron); }
.wizard-card { max-width: 690px; margin: 0 auto; padding: 69px 0 55px; text-align: center; }
.wizard-seal { width: 56px; height: 56px; margin: 0 auto 29px; border: 1px solid var(--saffron); border-radius: 50%; display: grid; place-items: center; color: var(--terra); font-family: var(--display); font-size: 27px; }
.wizard-card h1 { margin: 17px 0 19px; color: var(--plum); font-size: clamp(58px, 7.4vw, 88px); }
.wizard-card p { max-width: 470px; margin: 0 auto 29px; color: var(--ink-muted); font-size: 14px; }
.wizard-card .button { margin: 0 auto; }
.wizard-back { display: block; margin: 24px auto 0; padding: 5px; border: 0; background: none; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.wizard-back:hover { color: var(--terra); }
.wizard-footnote { color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.wizard-footnote span { margin-right: 7px; color: var(--saffron); font-size: 15px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 25px; background: rgba(41, 40, 35, .58); display: none; place-items: center; backdrop-filter: blur(5px); }
.modal-backdrop.is-visible { display: grid; animation: fade-in .2s ease both; }
.modal { width: min(470px, 100%); max-height: calc(100dvh - 50px); overflow-y: auto; padding: 33px; background: var(--paper-soft); box-shadow: 0 25px 70px rgba(30, 20, 14, .22); position: relative; }
.modal-close { position: absolute; top: 15px; right: 16px; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-muted); font-size: 20px; line-height: 1; }
.modal h2 { margin: 13px 0 8px; font-family: var(--display); font-size: 44px; font-weight: 600; line-height: .95; }
.modal-intro { margin: 0 0 25px; color: var(--ink-muted); font-size: 13px; }
.modal form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.field input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; outline: 0; background: var(--paper); color: var(--ink); }
.field input:focus { border-color: var(--terra); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terra) 13%, transparent); }
.form-note { margin: -5px 0 0; color: var(--ink-muted); font-size: 11px; }
.modal .button { width: 100%; margin-top: 7px; }
.modal-success { text-align: center; padding: 22px 0 9px; }
.success-seal { width: 54px; height: 54px; margin: 0 auto 20px; border: 1px solid var(--saffron); border-radius: 50%; display: grid; place-items: center; color: var(--terra); font-family: var(--display); font-size: 28px; }
.toast { position: fixed; z-index: 150; right: 24px; bottom: 24px; max-width: 320px; padding: 13px 17px; background: var(--ink); color: var(--paper-soft); box-shadow: 0 10px 25px rgba(41, 40, 35, .16); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 880px) {
  .nav-wrap { padding-inline: 22px; }
  .nav-links { gap: 16px; margin-left: 3%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .hero { padding-top: 72px; }
  .hero-copy { max-width: 100%; min-width: 0; }
  .stationery-scene { width: min(600px, 100%); margin: auto; }
  .private-grid, .families-grid { gap: 65px; }
  .templates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-card:first-child { grid-column: span 2; }
  .template-card:first-child .template-paper { max-width: 320px; margin-inline: auto; }
  .templates-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    width: 100%;
    gap: 12px;
  }
  .templates-grid--featured .template-card:first-child {
    grid-column: auto;
  }
  .templates-grid--featured .template-card:first-child .template-paper {
    max-width: none;
  }
  .templates-grid--featured .template-card--compact .template-paper,
  .templates-grid--featured .template-card--compact .template-paper--photo {
    height: 140px;
    max-height: 140px;
  }
  .templates-top--home {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 680px) {
  .topline { padding-right: 116px; font-size: 9px; letter-spacing: .11em; }
  .language-picker { right: 16px; }
  .language-picker label { display: none; }
  .language-picker select { font-size: 7px; }
  .container { width: min(100% - 38px, 1140px); }
  .nav-wrap { height: 68px; }
  .nav-dropdown-menu.nav-apps-panel { top: calc(100% + 10px); right: -6px; width: min(300px, calc(100vw - 24px)); }
  .nav-menu-trigger.nav-apps-trigger { width: 38px; min-height: 38px; }
  .nav-apps-icon { width: 16px; height: 16px; gap: 2px; }
  .nav-apps-tile-icon { width: 40px; height: 40px; }
  .nav-links { position: absolute; left: 19px; right: 19px; top: 76px; margin: 0; padding: 13px; border: 1px solid var(--line); background: rgba(251, 249, 245, .98); display: none; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 14px 30px rgba(60, 43, 28, .1); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-actions .text-button { display: none; }
  .nav-actions { gap: 9px; }
  .nav-actions .button { min-height: 38px; padding-inline: 13px; font-size: 11px; }
  .nav-actions .button .arrow { display: none; }
  .nav-wrap { gap: 10px; min-width: 0; }
  .nav-actions { flex-shrink: 1; min-width: 0; }
  .wordmark-text { font-size: 18px; }
  .floral-stamp { right: 8px; }
  .floating-card { right: 4%; }
  .share-window::before { left: 0; }
  .hero { min-height: auto; padding: 59px 0 74px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); max-width: 100%; }
  .hero-description, .hero-note { max-width: 100%; }
  .hero-description { font-size: 16px; }
  .stationery-scene { min-height: 390px; transform: scale(.87); transform-origin: top center; margin-bottom: -50px; }
  .document { left: 7%; }
  .floating-card { right: -3%; }
  .intro-band-inner { display: block; }
  .intro-detail { display: block; margin-top: 9px; }
  .section { padding: 79px 0; }
  .section-heading h2 { font-size: clamp(43px, 13vw, 60px); }
  .steps-grid { grid-template-columns: 1fr; margin-top: 43px; }
  .step, .step:not(:first-child) { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid #d8cbbb; }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 15px; }
  .templates-top { display: block; }
  .template-tabs { margin-top: 25px; }
  .templates-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .templates-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
    max-width: none;
  }
  .templates-grid--featured .template-card--compact {
    padding: 6px;
  }
  .templates-grid--featured .template-card--compact .template-paper,
  .templates-grid--featured .template-card--compact .template-paper--photo {
    height: 112px;
    max-height: 112px;
  }
  .templates-grid--featured .template-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 6px;
  }
  .templates-grid--featured .template-meta h3 {
    font-size: 0.82rem;
  }
  .templates-grid--featured .select-template {
    padding: 0;
    font-size: 9px;
  }
  .template-card:first-child { grid-column: auto; }
  .template-card, .template-card:first-child { min-height: 0; }
  .template-card:first-child .template-paper { max-width: 280px; height: auto; }
  .template-paper { height: auto; }
  .families-grid, .private-grid, .faq-layout { grid-template-columns: 1fr; gap: 47px; }
  .family-item { grid-template-columns: 35px 1fr 19px; }
  .share-window { padding: 20px; min-height: 330px; }
  .share-content { padding: 20px; }
  .quote-section { padding: 85px 0 95px; }
  .quote-section blockquote { font-size: clamp(43px, 12vw, 61px); }
  .faq-question { font-size: 23px; padding: 20px 0; }
  .final-cta { padding: 82px 0 88px; }
  .footer-top, .footer-bottom { display: block; }
  .footer-links { margin-top: 22px; flex-wrap: wrap; }
  .footer-bottom p { margin: 15px 0 0; }
  .modal { padding: 29px 23px; }
  .auth-page { padding: 24px 0 55px; }
  .auth-paper, .wizard-shell { width: min(100% - 38px, 1140px); }
  .return-home { margin-top: 52px; }
  .auth-layout { display: block; margin-top: 48px; }
  .auth-intro { padding: 0 0 39px; }
  .auth-intro h1 { font-size: clamp(55px, 15vw, 77px); }
  .auth-lede { font-size: 26px; }
  .auth-card { padding: 27px 21px 24px; }
  .auth-card h2 { font-size: 33px; }
  .wizard-page { padding: 24px 0 50px; }
  .wizard-progress { margin-top: 78px; }
  .wizard-card { padding: 59px 0 45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Biodata editor */
.wizard-editor { padding: 31px 0 80px; }
.wizard-header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wizard-header > .wordmark { display: inline-flex; }
.wizard-header-actions { display: flex; align-items: center; gap: 22px; }
.save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #7b9978; box-shadow: 0 0 0 3px rgba(123, 153, 120, .14); }
.save-state.is-saving .save-dot { background: var(--saffron); animation: pulse-save 1s ease-in-out infinite; }
.wizard-exit, .wizard-later-button { padding: 7px 0; border: 0; background: none; color: var(--terra); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.wizard-layout { display: grid; grid-template-columns: 235px minmax(0, 760px); gap: clamp(50px, 8vw, 120px); align-items: start; max-width: 1080px; margin: 78px auto 0; }
.wizard-sidebar { position: sticky; top: 30px; }
.wizard-sidebar-heading { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.wizard-sidebar-heading h1 { margin: 11px 0 5px; color: var(--plum); font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1; }
.wizard-sidebar-heading p { margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.55; }
.step-nav { display: grid; margin-top: 20px; }
.step-nav-item { width: 100%; padding: 10px 5px; border: 0; border-left: 1px solid transparent; display: grid; grid-template-columns: 23px 1fr 16px; gap: 9px; align-items: center; background: none; color: var(--ink-muted); text-align: left; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.step-nav-item:hover { color: var(--terra); }
.step-nav-item.is-active { border-left-color: var(--terra); background: color-mix(in srgb, var(--terra) 6%, transparent); color: var(--ink); }
.nav-number, .section-number { color: var(--saffron); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.nav-copy { display: grid; gap: 1px; }
.nav-copy strong { font-size: 11px; font-weight: 600; }
.nav-copy small { color: var(--ink-muted); font-size: 9px; }
.nav-check { color: var(--terra); font-size: 12px; opacity: 0; }
.step-nav-item.is-complete .nav-check, .step-nav-item.is-active .nav-check { opacity: 1; }
.step-nav-item.is-complete .nav-check { color: #7b9978; }
.wizard-side-note { display: flex; gap: 9px; margin-top: 44px; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.wizard-side-note > span:first-child { color: var(--saffron); font-size: 17px; line-height: 1; }
.wizard-main { min-width: 0; }
.wizard-mobile-top { display: none; }
.wizard-main-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.wizard-main-heading .display { margin: 60px 0 0; color: var(--plum); font-size: clamp(47px, 5.4vw, 69px); line-height: .9; }
.wizard-main-heading em { color: var(--terra); font-style: normal; }
.step-kind { flex: none; margin-top: 16px; padding: 7px 10px; border: 1px solid var(--line); color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.wizard-intro { max-width: 570px; margin: 24px 0 20px; color: var(--ink-muted); font-size: 13px; }
.wizard-progress-track { height: 2px; margin-bottom: 32px; background: var(--line); }
.wizard-progress-track span { display: block; width: 14%; height: 100%; background: var(--terra); transition: width .35s ease; }
.wizard-alert { margin: -13px 0 22px; padding: 11px 13px; border-left: 2px solid var(--terra); background: color-mix(in srgb, var(--terra) 14%, var(--paper-soft)); color: var(--terra-dark); font-size: 11px; }
.wizard-form { display: grid; gap: 18px; }
.wizard-section-card { padding: 25px 27px 28px; border: 1px solid var(--line); background: rgba(251, 249, 245, .62); }
.section-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.section-card-head > div:first-child { display: flex; gap: 13px; align-items: flex-start; }
.section-card-head h3 { margin: -3px 0 3px; color: var(--plum); font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.section-card-head p { max-width: 450px; margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.5; }
.section-status { flex: none; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.section-status.required, .section-status.required-choice { color: var(--terra); }
.section-status.recommended { color: var(--saffron); }
.wizard-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; }
.wizard-field { display: grid; gap: 7px; min-width: 0; }
.wizard-field.field-wide { grid-column: 1 / -1; }
.wizard-field label, .wizard-choice-field legend, .visibility-field legend { display: flex; align-items: baseline; gap: 3px; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.required-mark { color: var(--terra); }
.field-note { margin-left: auto; color: #9c968b; font-family: var(--body); font-size: 9px; letter-spacing: 0; text-transform: none; }
.wizard-field input, .wizard-field select, .wizard-field textarea { width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; outline: 0; background: var(--paper); color: var(--ink); font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.wizard-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--terra) 50%), linear-gradient(135deg, var(--terra) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; cursor: pointer; }
.wizard-field select:hover { border-color: var(--saffron); background-color: var(--paper-soft); }
.wizard-field select option { background: var(--paper); color: var(--ink); }
.wizard-field textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.wizard-field input::placeholder, .wizard-field textarea::placeholder { color: #aaa398; }
.wizard-field input:focus, .wizard-field select:focus, .wizard-field textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terra) 11%, transparent); background: var(--paper-soft); }
.wizard-choice-field { margin: 0 0 24px; padding: 0; border: 0; }
.wizard-choice-field legend { margin-bottom: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.choice-card { position: relative; min-height: 68px; padding: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.choice-card:hover { border-color: var(--saffron); transform: translateY(-2px); }
.choice-card input, .visibility-options input { position: absolute; opacity: 0; }
.choice-card:has(input:checked) { border-color: var(--terra); background: color-mix(in srgb, var(--terra) 10%, var(--paper-soft)); box-shadow: inset 0 0 0 1px var(--terra); }
.choice-card span { display: grid; gap: 3px; }
.choice-card strong { color: var(--ink); font-size: 11px; font-weight: 600; }
.choice-card small { color: var(--ink-muted); font-size: 9px; line-height: 1.35; }
.about-lower-grid { display: grid; gap: 18px; }
.photo-card { display: grid; grid-template-columns: 1fr 132px; gap: 7px 20px; align-items: center; padding: 24px; border: 1px solid var(--line); background: var(--paper-deep); }
.import-card { margin: 0 0 22px; padding: 24px; border: 1px solid var(--line); background: var(--paper-deep); }
.import-card h3 { margin: 11px 0 7px; color: var(--plum); font-family: var(--display); font-size: 28px; line-height: .95; }
.import-card p { max-width: 520px; margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.55; }
.import-card .photo-upload-button { display: inline-block; margin-top: 14px; grid-column: auto; text-align: left; }
.photo-card-copy { grid-column: 1 / 2; grid-row: 1 / 3; align-self: center; }
.photo-kicker { color: var(--saffron); font-family: var(--mono); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.photo-card h3 { margin: 11px 0 7px; color: var(--plum); font-family: var(--display); font-size: 28px; line-height: .95; }
.photo-card-copy p { max-width: 280px; margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.55; }
.photo-preview { width: 118px; height: 132px; grid-column: 2; grid-row: 1 / 4; border: 1px solid #cbbdab; display: grid; place-items: center; align-content: center; gap: 7px; overflow: hidden; background: #e5ddd1; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { color: var(--terra); font-size: 29px; font-family: var(--display); }
.photo-upload-button { grid-column: 2; color: var(--terra); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-align: center; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.photo-remove { grid-column: 2; padding: 0; border: 0; background: none; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.photo-meta, .photo-status { grid-column: 1 / -1; margin: 3px 0 0; color: #938b80; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; }
.photo-status { color: var(--terra); text-align: right; }
.repeat-list { display: grid; gap: 12px; }
.repeat-record { padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.repeat-record-head, .review-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 17px; }
.repeat-record-head > div, .review-card-head > div { display: flex; align-items: center; gap: 10px; }
.repeat-record h4 { margin: 0; color: var(--plum); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1; }
.siblings-card { border-left: 2px solid var(--saffron); background: #f7f1e9; }
.siblings-card .section-card-head, .lifestyle-card .section-card-head { padding-bottom: 14px; border-bottom: 1px solid #e2d5c7; }
.siblings-card .repeat-record { border-color: #d8cabc; background: #fffdf9; box-shadow: 0 6px 16px rgba(60, 43, 28, .035); }
.siblings-card .repeat-record-head { align-items: center; }
.siblings-card .record-index { color: var(--saffron); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.siblings-card .repeat-record .wizard-fields-grid { gap: 14px 16px; }
.siblings-card .add-record { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e2d5c7; }
.lifestyle-card { border-left: 2px solid var(--terra); background: color-mix(in srgb, var(--terra) 6%, var(--paper-soft)); }
.lifestyle-card .wizard-fields-grid { gap: 16px 18px; }
.lifestyle-card .wizard-field select { background-color: #fffdf9; }
.remove-record, .edit-link { padding: 2px 0; border: 0; background: none; color: var(--terra); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.repeat-empty { padding: 19px; border: 1px dashed #cfc4b6; display: flex; gap: 12px; align-items: center; color: var(--ink-muted); }
.repeat-empty > span { color: var(--terra); font-family: var(--display); font-size: 26px; }
.repeat-empty p { margin: 0; font-size: 11px; }
.repeat-empty small { color: #9a9287; font-size: 10px; }
.add-record { margin-top: 15px; padding: 7px 0; border: 0; background: none; color: var(--terra); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.add-record span { display: inline-grid; width: 17px; height: 17px; margin-right: 4px; border: 1px solid var(--terra); border-radius: 50%; place-items: center; font-family: var(--body); font-size: 14px; line-height: 1; }
.add-record:hover { color: var(--terra-dark); }
.wizard-guidance, .privacy-callout, .create-note { display: flex; gap: 12px; padding: 16px; border-left: 2px solid var(--saffron); background: #f1e9db; color: var(--ink-muted); font-size: 11px; line-height: 1.55; }
.guidance-mark { width: 18px; height: 18px; border: 1px solid var(--saffron); border-radius: 50%; display: grid; flex: none; place-items: center; color: var(--terra); font-family: var(--display); font-size: 13px; }
.wizard-guidance strong, .privacy-callout strong, .create-note strong { color: var(--ink); font-size: 11px; }
.wizard-guidance p, .privacy-callout p, .create-note p { margin: 2px 0 0; }
.income-card { background: #f5efe7; }
.visibility-field { margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
.visibility-field + .visibility-field { margin-top: 18px; }
.visibility-field legend { color: var(--ink); font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.visibility-field > p { margin: 4px 0 12px; color: var(--ink-muted); font-size: 10px; }
.visibility-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.visibility-options label { position: relative; padding: 11px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.visibility-options label:has(input:checked) { border-color: var(--terra); background: color-mix(in srgb, var(--terra) 10%, var(--paper-soft)); box-shadow: inset 0 0 0 1px var(--terra); }
.visibility-options span { display: grid; gap: 3px; }
.visibility-options strong { color: var(--ink); font-size: 10px; font-weight: 600; }
.visibility-options small { color: var(--ink-muted); font-size: 8px; }
.privacy-callout { margin-top: 0; }
.privacy-icon { color: var(--terra); font-size: 17px; }
.review-intro-card { display: grid; grid-template-columns: 92px 1fr; gap: 19px; align-items: center; padding: 22px; border: 1px solid var(--line); background: var(--paper-deep); }
.review-photo { width: 92px; height: 106px; overflow: hidden; background: #ded4c7; display: grid; place-items: center; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-intro-card h3 { margin: 8px 0 3px; color: var(--plum); font-family: var(--display); font-size: 32px; line-height: 1; }
.review-intro-card p { max-width: 500px; margin: 0; color: var(--ink-muted); font-size: 11px; line-height: 1.5; }
.review-warning, .review-ready { display: flex; gap: 12px; margin-top: 15px; padding: 14px 16px; border-left: 2px solid var(--saffron); background: #f1e9db; color: var(--ink-muted); font-size: 11px; }
.review-warning > span, .review-ready > span { color: var(--terra); font-family: var(--display); font-size: 21px; line-height: 1; }
.review-ready { border-color: #7b9978; background: #e9efe8; }
.review-warning strong, .review-ready strong { color: var(--ink); font-size: 11px; }
.review-warning p, .review-ready p { margin: 2px 0 0; }
.review-warning small { color: #92887a; font-size: 9px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.review-card { min-width: 0; padding: 19px; border: 1px solid var(--line); background: var(--paper-soft); }
.review-card-head { margin-bottom: 14px; }
.review-card-head h3 { margin: 0; color: var(--plum); font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1; }
.review-card-body { color: var(--ink-muted); font-size: 10px; }
.review-row { display: grid; grid-template-columns: 83px 1fr; gap: 9px; padding: 7px 0; border-top: 1px solid var(--line); }
.review-row:first-child { border-top: 0; padding-top: 0; }
.review-row span:first-child { color: #9d958b; }
.review-row strong { color: var(--ink); font-weight: 500; }
.review-list-item { display: grid; gap: 2px; padding: 7px 0; border-top: 1px solid var(--line); }
.review-list-item:first-child { padding-top: 0; border-top: 0; }
.review-list-item strong { color: var(--ink); font-weight: 600; }
.review-list-item span { color: var(--ink-muted); }
.empty-value { color: #aaa398 !important; font-style: italic; font-weight: 400 !important; }
.privacy-tag { color: var(--terra); font-family: var(--mono); font-size: 8px; letter-spacing: .03em; }
.create-note { margin-top: 16px; border-color: var(--sage); background: #e9efe8; }
.wizard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--line); }
.wizard-footer-actions { display: flex; align-items: center; gap: 22px; }
.wizard-back-button { padding: 7px 0; border: 0; background: none; color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.wizard-back-button:hover { color: var(--terra); }
.wizard-back-button:disabled { visibility: hidden; }
.wizard-next { min-width: 140px; border-radius: 10px; }
.wizard-next .arrow { margin-left: 17px; }
.design-page, .shared-page { min-height: 100dvh; padding: 31px 0 90px; background: radial-gradient(circle at 84% 12%, rgba(192, 138, 78, .12), transparent 25%), var(--paper); }
.design-shell, .shared-shell { width: min(1180px, calc(100% - 60px)); margin-inline: auto; }
.design-header { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.design-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: 1080px; margin: 72px auto 0; }
.design-intro h1 { margin: 16px 0 20px; color: var(--plum); font-size: clamp(52px, 6.4vw, 82px); }
.design-intro h1 em, .share-panel-heading h2 em, .shared-heading h1 em { color: var(--terra); font-style: normal; }
.design-intro p { max-width: 540px; margin: 0; color: var(--ink-muted); font-size: 14px; }
.design-status { min-width: 210px; display: flex; gap: 10px; align-items: flex-start; padding: 15px 17px; border-left: 2px solid var(--saffron); background: #f1e9db; }
.design-status-mark { color: var(--terra); font-family: var(--display); font-size: 22px; line-height: 1; }
.design-status span:last-child { display: grid; gap: 3px; }
.design-status strong { color: var(--ink); font-size: 11px; font-weight: 600; }
.design-status small { color: var(--ink-muted); font-size: 9px; line-height: 1.4; }
.design-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: clamp(35px, 7vw, 95px); align-items: start; max-width: 1080px; margin: 60px auto 0; }
.design-controls { position: sticky; top: 30px; }
.design-choices { display: grid; gap: 7px; margin-top: 17px; }
.design-choice { width: 100%; padding: 12px 11px; border: 1px solid var(--line); display: grid; grid-template-columns: 25px 1fr 15px; gap: 10px; align-items: center; background: rgba(251, 249, 245, .62); color: var(--ink); text-align: left; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.design-choice:hover { border-color: var(--terra); transform: translateX(2px); }
.design-choice.is-active { border-color: var(--terra); background: color-mix(in srgb, var(--terra) 10%, var(--paper-soft)); box-shadow: inset 2px 0 var(--terra); }
.design-choice span:nth-child(2) { display: grid; gap: 2px; }
.design-choice strong { font-size: 11px; font-weight: 600; }
.design-choice small { color: var(--ink-muted); font-size: 9px; }
.choice-check { color: var(--terra); font-size: 13px; opacity: 0; }
.design-choice.is-active .choice-check { opacity: 1; }
.choice-swatch { width: 25px; height: 30px; border: 1px solid rgba(60, 43, 28, .13); background: #fcfaf6; position: relative; }
.choice-swatch::after { content: ''; position: absolute; left: 5px; right: 5px; top: 8px; height: 2px; background: var(--saffron); box-shadow: 0 7px #ded5c8, 0 14px #ded5c8; }
.swatch-elegant { background: #f1ece5; }
.swatch-elegant::after { background: var(--terra); box-shadow: 0 7px #d8cbbb, 0 14px #d8cbbb; }
.swatch-modern { background: #e5eee8; }
.swatch-modern::after { background: var(--sage); box-shadow: 0 7px #bfcfc5, 0 14px #bfcfc5; }
.swatch-heritage { background: #efe7d8; }
.swatch-heritage::after { background: #a86f3f; box-shadow: 0 7px #d2b38f, 0 14px #d2b38f; }
.swatch-minimal { background: #f7f3ed; }
.swatch-minimal::after { background: var(--sage); box-shadow: 0 7px #e5dfd7, 0 14px #e5dfd7; }
.swatch-saanjh { background: #fff6f0; border-color: #d8aaa0; }
.swatch-saanjh::after { background: #a65f58; box-shadow: 0 7px #e9cfc5, 0 14px #c9956f; }
.design-actions { margin-top: 27px; padding-top: 23px; border-top: 1px solid var(--line); }
.design-actions .button, .action-stack .button { width: 100%; }
.design-action-note { margin: 12px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.generated-actions { margin-top: 28px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.generated-actions p { margin: 10px 0 15px; color: var(--ink-muted); font-size: 11px; line-height: 1.5; }
.action-stack { display: grid; gap: 8px; }
.preview-stage { min-width: 0; padding: 15px; background: var(--paper-deep); box-shadow: 0 20px 40px rgba(60, 43, 28, .08); }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 13px; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.preview-toolbar > span:first-child { display: inline-flex; gap: 7px; align-items: center; }
.preview-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #7b9978; box-shadow: 0 0 0 3px rgba(123, 153, 120, .15); }
.biodata-preview-wrap { min-height: 650px; padding: clamp(16px, 3.4vw, 42px); background: #e6dfd3; overflow: visible; }
.biodata-preview-wrap .biodata-sheet { height: auto; }
.biodata-sheet { --bio-accent: var(--terra); --bio-ink: var(--ink); --bio-paper: #fcfaf6; --bio-line: #e2d8ca; width: 100%; max-width: 690px; min-height: 0; height: auto; margin: 0 auto; padding: clamp(25px, 4vw, 47px); background: var(--bio-paper); border: 1px solid var(--bio-line); box-shadow: 0 18px 35px rgba(60, 43, 28, .1); color: var(--bio-ink); font-family: var(--biodata-body); overflow-wrap: anywhere; }
.biodata-sheet.template-traditional { --bio-accent: #b8793d; --bio-paper: #fcfaf6; border-top: 5px solid var(--saffron); }
.biodata-sheet.template-elegant { --bio-accent: var(--terra); --bio-paper: #fbf8f3; border-top: 5px solid var(--terra); }
.biodata-sheet.template-modern { --bio-accent: #668273; --bio-paper: #f8fbf8; border-left: 5px solid var(--sage); }
.biodata-sheet.template-heritage { --bio-accent: #9a623d; --bio-paper: #f8f0e3; border: 1px solid #d6b990; }
.biodata-sheet.template-minimal { --bio-accent: #68776e; --bio-paper: #f7f3ed; border: 0; background: #f7f3ed; box-shadow: none; }
.biodata-sheet.template-saanjh { --bio-accent: #a65f58; --bio-ink: #402d32; --bio-paper: #fffaf3; border: 1px solid #e3c7bc; background: #fffaf3; position: relative; }
.template-modern .biodata-kicker, .template-modern .biodata-overline, .template-minimal .biodata-kicker, .template-minimal .biodata-overline { color: var(--bio-accent); }
.biodata-sheet-top, .biodata-sheet-footer { display: flex; justify-content: space-between; gap: 18px; color: var(--bio-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.template-modern .biodata-sheet-top, .template-modern .biodata-sheet-footer, .template-minimal .biodata-sheet-top, .template-minimal .biodata-sheet-footer { color: var(--bio-accent); }
.biodata-identity { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; padding: 52px 0 35px; border-bottom: 1px solid var(--bio-line); }
.biodata-overline { margin: 0 0 12px; color: var(--bio-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.biodata-identity h2 { margin: 0; color: var(--plum); font-family: var(--biodata-display); font-size: clamp(38px, 6vw, 68px); font-weight: 600; letter-spacing: -.05em; line-height: .94; }
.template-modern .biodata-identity h2 { color: var(--ink); font-family: var(--biodata-body); font-size: clamp(30px, 4.8vw, 55px); font-weight: 600; letter-spacing: -.07em; }
.template-minimal .biodata-identity h2 { color: var(--bio-accent); }
.biodata-intro { max-width: 410px; margin: 20px 0 0; color: var(--ink-muted); font-size: 11px; line-height: 1.65; white-space: pre-line; }
.biodata-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.biodata-highlight { min-width: 0; display: grid; gap: 3px; padding: 9px 10px; border-left: 2px solid var(--bio-accent); background: color-mix(in srgb, var(--bio-accent) 7%, var(--bio-paper)); }
.biodata-highlight span { color: #9d958b; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.biodata-highlight strong { color: var(--bio-ink); font-size: 10px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; }
.biodata-photo { width: 108px; height: 130px; flex: none; overflow: hidden; background: #ded4c7; display: grid; place-items: center; text-align: center; color: var(--bio-accent); font-family: var(--mono); font-size: 8px; line-height: 1.5; text-transform: uppercase; }
.biodata-photo img { width: 100%; height: 100%; object-fit: cover; }
.biodata-photo--circle { border-radius: 50%; width: 118px; height: 118px; }
.biodata-photo--soft { border-radius: 10px; }
.biodata-photo--none { border: 1px dashed currentColor; background: transparent; }
.biodata-section { padding: 23px 0 19px; border-bottom: 1px solid var(--bio-line); break-inside: avoid; page-break-inside: avoid; }
.biodata-section h3 { margin: 0 0 11px; color: var(--plum); font-family: var(--biodata-display); font-size: 23px; font-weight: 600; line-height: 1.1; }
.template-modern .biodata-section h3, .template-minimal .biodata-section h3 { color: var(--bio-accent); font-family: var(--biodata-body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.biodata-row { display: grid; grid-template-columns: minmax(85px, 145px) minmax(0, 1fr); gap: 12px; padding: 6px 0; border-top: 1px solid rgba(222, 213, 200, .72); font-size: 10px; line-height: 1.5; }
.biodata-row span { color: #9d958b; }
.biodata-row strong { color: var(--bio-ink); font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.biodata-paired-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(222, 213, 200, .72); }
.biodata-pair-cell { min-width: 0; display: grid; grid-template-columns: minmax(70px, .68fr) minmax(0, 1fr); gap: 10px; padding: 6px 12px 6px 0; font-size: 10px; line-height: 1.5; }
.biodata-pair-cell + .biodata-pair-cell { padding-left: 12px; border-left: 1px solid rgba(222, 213, 200, .72); }
.biodata-pair-cell.is-single { grid-column: 1 / -1; border-left: 0; }
.biodata-pair-cell span { color: #9d958b; }
.biodata-pair-cell strong { color: var(--bio-ink); font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.biodata-list-item { display: grid; gap: 3px; padding: 7px 0; border-top: 1px solid rgba(222, 213, 200, .72); font-size: 10px; line-height: 1.5; break-inside: avoid; page-break-inside: avoid; }
.biodata-list-item strong { color: var(--bio-ink); font-weight: 600; }
.biodata-list-item span { color: var(--ink-muted); overflow-wrap: anywhere; white-space: pre-line; }
.biodata-siblings { margin-top: 12px; }
.biodata-subheading { display: block; margin: 0 0 3px; color: var(--bio-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.biodata-family-group + .biodata-family-group { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(222, 213, 200, .72); }
.biodata-family-group .biodata-subheading { margin-bottom: 8px; }
.biodata-family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.biodata-family-member { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; padding: 8px 0; border-top: 1px solid rgba(222, 213, 200, .72); font-size: 10px; line-height: 1.45; break-inside: avoid; page-break-inside: avoid; }
.biodata-family-grid .biodata-family-member:nth-child(-n+2) { border-top: 0; padding-top: 2px; }
.biodata-family-icon { width: 22px; height: 22px; margin-top: 1px; color: var(--bio-accent); display: grid; place-items: center; }
.biodata-family-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.biodata-family-member-copy { min-width: 0; display: grid; gap: 2px; }
.biodata-family-role { color: #9d958b; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.biodata-family-member-copy strong { color: var(--bio-ink); font-weight: 600; overflow-wrap: anywhere; }
.biodata-family-details { color: var(--ink-muted); overflow-wrap: anywhere; white-space: pre-line; }
.biodata-family-notes .biodata-row { border-top-color: rgba(222, 213, 200, .72); }
.biodata-sheet-footer { padding-top: 20px; margin-top: 4px; break-inside: avoid; }
.biodata-template-mark { color: var(--bio-accent); font-family: var(--biodata-display); font-size: 22px; letter-spacing: .02em; text-transform: none; }
.template-traditional { position: relative; outline: 1px solid rgba(184, 121, 61, .28); outline-offset: -9px; }
.template-traditional::before, .template-traditional::after { position: absolute; z-index: 1; color: #b8793d; font-family: var(--biodata-display); font-size: 17px; line-height: 1; }
.template-traditional::before { content: '✦'; top: 14px; left: 18px; }
.template-traditional::after { content: '✦'; top: 14px; right: 18px; }
.template-traditional .biodata-sheet-top { flex-direction: column; align-items: center; gap: 5px; padding-bottom: 15px; border-bottom: 1px solid #dec9a8; text-align: center; }
.template-traditional .biodata-sheet-top .biodata-number { font-size: 7px; }
.template-traditional .biodata-identity { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 22px; padding-block: 38px 30px; border-bottom: 3px double var(--bio-line); }
.template-traditional .biodata-identity > div:first-child { grid-column: 2; grid-row: 1; text-align: center; }
.template-traditional .biodata-photo { grid-column: 1; grid-row: 1; }
.template-traditional .biodata-identity h2 { font-size: clamp(34px, 5vw, 58px); }
.template-traditional .biodata-intro { margin-inline: auto; }
.template-traditional .biodata-section h3 { padding-bottom: 8px; border-bottom: 1px solid #dec9a8; text-align: center; }
.template-traditional .biodata-sheet-footer { border-top: 1px solid #dec9a8; }
.template-elegant .biodata-identity { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: 42px 32px; text-align: center; }
.template-elegant .biodata-identity > div:first-child { display: grid; justify-items: center; }
.template-elegant .biodata-intro { max-width: 470px; }
.template-elegant { border-radius: 12px; }
.template-elegant .biodata-sheet-top { padding-inline: 12px; padding-bottom: 12px; border-bottom: 0; }
.template-elegant .biodata-identity { padding-block: 37px 31px; border: 1px solid #eadbd5; border-radius: 14px; background: #fffdfb; }
.template-elegant .biodata-identity h2 { color: #704653; font-size: clamp(39px, 5.8vw, 65px); }
.template-elegant .biodata-overline { color: #a76c79; }
.template-elegant .biodata-photo { border: 5px solid #f2e4df; outline: 1px solid #c8959d; outline-offset: 3px; }
.template-elegant .biodata-section { margin-top: 15px; padding: 17px 18px 14px; border: 1px solid #eadbd5; border-radius: 10px; background: rgba(255, 253, 251, .72); }
.template-elegant .biodata-section h3 { color: #704653; font-size: 20px; }
.template-elegant .biodata-row { border-top-color: #efdfda; }
.template-elegant .biodata-sheet-footer { padding-inline: 10px; }
.template-modern .biodata-sheet-top { margin: -47px -47px 0; padding: 15px 47px 13px; border-bottom: 1px solid #d0ded5; background: #2d4b60; color: #f4f8f8; }
.template-modern .biodata-sheet-top, .template-modern .biodata-sheet-top .biodata-kicker, .template-modern .biodata-sheet-top .biodata-number { color: #f4f8f8; }
.template-modern .biodata-identity { padding-block: 34px 28px; }
.template-modern .biodata-section { display: block; border-bottom: 1px solid #d0ded5; }
.template-modern .biodata-section h3 { margin-bottom: 14px; }
.template-modern .biodata-row { border-top-color: #dce8e0; }
.template-modern .biodata-modern-columns { gap: 14px; }
.template-modern .biodata-modern-columns .biodata-section { padding: 17px 16px 14px; border: 1px solid #c9d8d0; background: #fbfdfb; }
.template-modern .biodata-modern-columns .biodata-section:nth-child(odd), .template-modern .biodata-modern-columns .biodata-section:nth-child(even) { padding-inline: 16px; }
.template-modern .biodata-identity h2 { color: #2d4b60; }
.template-modern .biodata-photo { border: 3px solid #d5e3dc; }
.template-heritage { position: relative; }
.template-heritage::before { content: '✦'; position: absolute; top: 16px; right: 20px; color: var(--bio-accent); font-size: 19px; }
.template-heritage::after { content: '॥'; position: absolute; top: 14px; left: 20px; color: var(--bio-accent); font-family: var(--biodata-display); font-size: 18px; }
.template-heritage .biodata-sheet-top { margin: -47px -47px 0; padding: 19px 47px 16px; border-bottom: 1px solid #d6b990; background: #7f4933; color: #fff7e7; }
.template-heritage .biodata-sheet-top, .template-heritage .biodata-sheet-top .biodata-kicker, .template-heritage .biodata-sheet-top .biodata-number { color: #fff7e7; }
.template-heritage .biodata-identity { padding-block: 35px 29px; border-bottom: 1px solid #d6b990; }
.template-heritage .biodata-identity h2, .template-heritage .biodata-section h3 { color: #754735; }
.template-heritage .biodata-section { border-bottom-color: #d6b990; }
.template-heritage .biodata-row { border-top-color: #e2cba9; }
.template-heritage .biodata-photo { border: 3px solid #e2c59b; outline: 1px solid #9a623d; outline-offset: 4px; }
.template-heritage .biodata-section h3 { display: flex; align-items: center; gap: 10px; }
.template-heritage .biodata-section h3::before, .template-heritage .biodata-section h3::after { content: '✦'; color: #b47b3b; font-family: var(--biodata-display); font-size: 13px; }
.template-heritage .biodata-section h3::before { margin-left: auto; }
.template-heritage .biodata-section h3::after { margin-right: auto; }
.template-heritage .biodata-family-group { padding: 8px 10px 4px; border: 1px solid #d6b990; background: rgba(255, 249, 236, .4); }
.template-heritage .biodata-family-group + .biodata-family-group { margin-top: 10px; border-top: 1px solid #d6b990; }
.template-minimal .biodata-identity { padding-block: 38px 28px; }
.template-minimal .biodata-section { padding-block: 18px; }
.template-minimal .biodata-row { grid-template-columns: 125px minmax(0, 1fr); border-top: 0; padding: 4px 0; }
.template-minimal .biodata-sheet-top { padding-bottom: 17px; border-bottom: 2px solid #394840; }
.template-minimal .biodata-identity { border-bottom: 0; }
.template-minimal .biodata-identity h2 { font-size: clamp(42px, 6.5vw, 72px); letter-spacing: -.07em; }
.template-minimal .biodata-section { border-top: 1px solid #cfd5d0; border-bottom: 0; }
.template-minimal .biodata-section h3 { display: flex; align-items: center; gap: 10px; }
.template-minimal .biodata-section h3::after { content: ''; width: 35px; height: 1px; background: var(--bio-accent); }
.template-minimal .biodata-photo { border: 1px solid #aebbb2; }
.template-minimal .biodata-sheet-footer { border-top: 2px solid #394840; }
.template-saanjh { overflow: hidden; }
.template-saanjh::before { content: ''; position: absolute; inset: 20px; border: 3px solid #d4a574; border-image: repeating-linear-gradient(45deg, #d4a574, #d4a574 10px, #d4af37 10px, #d4af37 20px) 3; pointer-events: none; z-index: 0; }
.template-saanjh .saanjh-ornament { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.template-saanjh .saanjh-corner { position: absolute; width: 60px; height: 60px; opacity: .58; color: #a65f58; font-family: Georgia, serif; font-size: 60px; line-height: 1; }
.template-saanjh .saanjh-corner::before { content: '❋'; position: absolute; top: 0; left: 0; }
.template-saanjh .saanjh-corner.top-left { top: 40px; left: 40px; }
.template-saanjh .saanjh-corner.top-right { top: 40px; right: 40px; transform: rotate(90deg); }
.template-saanjh .saanjh-corner.bottom-left { bottom: 40px; left: 40px; transform: rotate(270deg); }
.template-saanjh .saanjh-corner.bottom-right { right: 40px; bottom: 40px; transform: rotate(180deg); color: #c9956f; }
.template-saanjh > :not(.saanjh-ornament) { position: relative; z-index: 1; }
.template-saanjh .biodata-sheet-top { margin: 0 17px; padding: 17px 1px 14px; border-bottom: 3px double #d4af37; }
.template-saanjh .biodata-identity { display: grid; grid-template-columns: minmax(0, 1fr) 148px; align-items: center; gap: 32px; margin: 0 18px; padding: 42px 18px 32px; border-bottom: 1px solid #e8cfc8; background: rgba(255, 250, 243, .9); }
.template-saanjh .biodata-identity h2 { color: #402d32; }
.template-saanjh .biodata-overline { color: #a65f58; }
.template-saanjh .biodata-photo--saanjh { width: 148px; height: 178px; border: 8px solid transparent; background: linear-gradient(135deg, #c9956f, #f1d9d0) padding-box, linear-gradient(#fffaf3, #fffaf3) border-box; outline: 0; border-radius: 15px; box-shadow: 0 10px 25px rgba(139, 69, 19, .16); }
.template-saanjh .biodata-section { margin: 0 22px; padding: 22px 4px 18px; border-bottom: 1px solid #e8cfc8; }
.template-saanjh .biodata-section h3 { display: flex; align-items: center; gap: 12px; color: #75424a; font-size: 21px; }
.template-saanjh .saanjh-divider { display: block; position: relative; flex: 1; max-width: 150px; height: 2px; background: linear-gradient(to right, transparent, #c9956f, transparent); }
.template-saanjh .saanjh-divider::before { content: ''; position: absolute; top: -3px; left: 50%; width: 8px; height: 8px; transform: translateX(-50%); border-radius: 50%; background: #d4af37; }
.template-saanjh .biodata-section h3 span:first-child { white-space: nowrap; }
.template-saanjh .biodata-row, .template-saanjh .biodata-paired-row, .template-saanjh .biodata-list-item { border-top-color: #f0ddd6; }
.template-saanjh .biodata-sheet-footer { margin: 0 22px; padding-top: 18px; border-top: 1px solid #e8cfc8; color: #a65f58; }

/* Premium: Lotus */
.biodata-sheet.template-lotus { --bio-accent: #9b4f3f; --bio-ink: #292823; --bio-paper: #fcfaf6; position: relative; background: #fcfaf6; border: 1px solid #ded5c8; box-shadow: 0 22px 48px rgba(60, 43, 28, .12); }
.template-lotus::before { content: ''; position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--terra) 38%, transparent); pointer-events: none; z-index: 0; }
.template-lotus > * { position: relative; z-index: 1; }
.template-lotus .biodata-identity h2 { color: #9b4f3f; }
.template-lotus .biodata-section h3 { color: #c08a4e; }
.template-lotus .biodata-photo--lotus { width: 118px; height: 148px; border: 1px solid #ded5c8; }

/* Premium: Riverline */
.biodata-sheet.template-riverline { --bio-accent: #3d6b5a; --bio-ink: #1f2a24; --bio-paper: #fbfefb; background: #fbfefb; border: 1px solid #cfdad3; overflow: hidden; }
.template-riverline .biodata-sheet-top { margin: -47px -47px 0; padding: 16px 47px 14px; background: linear-gradient(120deg, #3d6b5a 0%, #557f6d 55%, #6f9482 100%); color: #f4faf6; }
.template-riverline .biodata-sheet-top .biodata-kicker,
.template-riverline .biodata-sheet-top .biodata-number { color: #f4faf6; }
.template-riverline .biodata-identity h2 { color: #1f2a24; }
.template-riverline .biodata-section h3 { color: #3d6b5a; }
.template-riverline .biodata-photo--riverline { border-radius: 12px; width: 118px; height: 142px; box-shadow: 0 10px 24px rgba(31, 42, 36, .12); }
.template-riverline .biodata-highlight { background: #eef5f1; border-left-color: #3d6b5a; }

/* Premium: Column */
.biodata-sheet.template-column { --bio-accent: #9a623d; --bio-ink: #2c241c; --bio-paper: #fffaf3; background: #fffaf3; border: 2px solid #9a623d; box-shadow: 8px 8px 0 rgba(69, 51, 59, .1); }
.template-column .biodata-sheet-top { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-bottom: 14px; border-bottom: 2px double #e2d4c0; }
.template-column .biodata-identity { display: grid; justify-items: center; text-align: center; grid-template-columns: 1fr; }
.template-column .biodata-identity > div:first-child { display: grid; justify-items: center; }
.template-column .biodata-intro { margin-left: auto; margin-right: auto; }
.template-column .biodata-identity h2 { color: #45333b; }
.template-column .biodata-section h3 { text-align: center; color: #9a623d; }
.template-column .biodata-photo--column { width: 120px; height: 150px; border: 3px solid #e2d4c0; outline: 1px solid #9a623d; outline-offset: 4px; margin: 0 auto; }
.template-column .biodata-highlights { justify-items: center; }

/* Premium: Studio (+ shared skin-rail for Noir Gold / Ember) */
.biodata-sheet.template-studio { --bio-accent: #b4533c; --bio-ink: #1c1a18; --bio-paper: #f8f5f1; padding: 0; background: #f8f5f1; border: 0; overflow: hidden; box-shadow: 0 28px 60px rgba(28, 26, 24, .16); }
.template-studio .studio-layout,
.biodata-sheet .studio-layout.skin-rail { display: grid; grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr); min-height: 100%; }
.template-studio .studio-rail,
.biodata-sheet .skin-rail .studio-rail { background: #3a4550; padding: 28px 22px; display: flex; flex-direction: column; gap: 16px; }
.template-studio .biodata-photo--studio,
.biodata-sheet .skin-rail .biodata-photo--studio { width: 100%; height: auto; aspect-ratio: 3 / 4; border: 0; background: #2a3038; }
.template-studio .studio-rail-meta,
.biodata-sheet .skin-rail .studio-rail-meta { margin-top: auto; color: #c5ced6; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; display: grid; gap: 4px; }
.template-studio .studio-main,
.biodata-sheet .skin-rail .studio-main { padding: clamp(22px, 3.5vw, 40px); }
.template-studio .biodata-identity { padding-top: 8px; border-bottom-color: #ddd4c8; }
.template-studio .biodata-identity h2 { color: #1c1a18; font-size: clamp(34px, 4.5vw, 44px); }
.template-studio .biodata-section h3 { color: #3a4550; font-size: 22px; }
@media (max-width: 720px) {
  .template-studio .studio-layout,
  .biodata-sheet .studio-layout.skin-rail { grid-template-columns: 1fr; }
  .template-studio .studio-rail,
  .biodata-sheet .skin-rail .studio-rail { flex-direction: row; align-items: flex-end; }
  .template-studio .biodata-photo--studio,
  .biodata-sheet .skin-rail .biodata-photo--studio { max-width: 160px; }
}

.swatch-lotus { background: #f7f0e8; border-color: #d4b5a8; }
.swatch-lotus::after { background: #9b4f3f; box-shadow: 0 7px #e2d0c4, 0 14px #c08a4e; }
.swatch-riverline { background: #e8f0eb; border-color: #b7c9bf; }
.swatch-riverline::after { background: #3d6b5a; box-shadow: 0 7px #c5d6cc, 0 14px #8aa392; }
.swatch-column { background: #f6eee4; border-color: #d6b990; }
.swatch-column::after { background: #9a623d; box-shadow: 0 7px #e2d4c0, 0 14px #45333b; }
.swatch-studio { background: #ece8e3; border-color: #c4b9ae; }
.swatch-studio::after { background: #b4533c; box-shadow: 0 7px #d8cfc6, 0 14px #3a4550; }

.lotus-paper { background: linear-gradient(165deg, #fcfaf6, #f3ebe0); border-color: #d4b5a8; }
.riverline-paper { background: linear-gradient(145deg, #3d6b5a 0 28%, #fbfefb 28%); color: #1f2a24; }
.riverline-paper .paper-label { color: #f4faf6; }
.column-paper { background: #fffaf3; border: 2px solid #9a623d; }
.studio-paper { background: linear-gradient(90deg, #3a4550 0 34%, #f8f5f1 34%); }

/* Premium: Obsidian */
.biodata-sheet.template-obsidian { --bio-accent: #d4a574; --bio-ink: #f3eee6; --bio-paper: #1a1c1f; background: #1a1c1f; border: 1px solid #2e3238; color: #f3eee6; box-shadow: 0 28px 60px rgba(0, 0, 0, .35); }
.template-obsidian .biodata-sheet-top,
.template-obsidian .biodata-sheet-footer { color: #d4a574; }
.template-obsidian .biodata-identity { border-bottom-color: #2e3238; }
.template-obsidian .biodata-identity h2 { color: #f7f1e8; }
.template-obsidian .biodata-overline { color: #d4a574; }
.template-obsidian .biodata-intro,
.template-obsidian .biodata-row span,
.template-obsidian .biodata-pair-cell span,
.template-obsidian .biodata-list-item span,
.template-obsidian .biodata-family-details,
.template-obsidian .biodata-family-role { color: #a8a29a; }
.template-obsidian .biodata-section { border-bottom-color: #2e3238; }
.template-obsidian .biodata-section h3 { color: #d4a574; }
.template-obsidian .biodata-row,
.template-obsidian .biodata-paired-row,
.template-obsidian .biodata-list-item,
.template-obsidian .biodata-family-member,
.template-obsidian .biodata-pair-cell + .biodata-pair-cell { border-color: #2e3238; }
.template-obsidian .biodata-highlight { background: #24282e; border-left-color: #d4a574; }
.template-obsidian .biodata-photo--obsidian { width: 122px; height: 152px; border: 1px solid #d4a574; box-shadow: 0 0 0 4px #24282e; }

/* Premium: Marigold */
.biodata-sheet.template-marigold { --bio-accent: #b7791f; --bio-ink: #3b2a12; --bio-paper: #fffdf7; background: linear-gradient(180deg, #fff8eb, #fffdf7); border: 2px solid #e4b860; position: relative; box-shadow: 0 22px 50px rgba(183, 121, 31, .14); }
.template-marigold .marigold-crest { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: #d4af37; font-size: 18px; opacity: .85; }
.template-marigold .biodata-sheet-top { justify-content: center; gap: 18px; padding-top: 28px; border-bottom: 2px solid #e4b860; text-align: center; }
.template-marigold .biodata-identity h2 { color: #8a5a12; }
.template-marigold .biodata-section h3 { color: #b7791f; }
.template-marigold .biodata-photo--marigold { width: 120px; height: 150px; border: 4px solid #f0d48a; box-shadow: 0 8px 20px rgba(183, 121, 31, .18); }
.template-marigold .biodata-highlight { background: #fff3d6; border-left-color: #d4af37; }

/* Premium: Silk */
.biodata-sheet.template-silk { --bio-accent: #a67c7c; --bio-ink: #3a3030; --bio-paper: #fbf6f4; background: #fbf6f4; border: 1px solid #eadfdc; box-shadow: 0 24px 55px rgba(92, 64, 64, .1); }
.template-silk .biodata-identity h2 { color: #5c4040; }
.template-silk .biodata-photo--silk { width: 118px; height: 118px; border: 6px solid #f3e6e2; box-shadow: 0 12px 28px rgba(166, 124, 124, .18); }
.template-silk .silk-panels .biodata-section { background: #fff; border: 1px solid #eadfdc; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.template-silk .biodata-section h3 { color: #a67c7c; font-size: 18px; }
.template-silk .biodata-highlight { background: #f7ecea; border-left-color: #a67c7c; }

/* Premium: Haveli */
.biodata-sheet.template-haveli { --bio-accent: #8b4d6b; --bio-ink: #2a1c24; --bio-paper: #f9f2f5; background: #f9f2f5; border: 3px double #8b4d6b; position: relative; box-shadow: 0 24px 55px rgba(90, 47, 69, .14); }
.template-haveli::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(139, 77, 107, .35); pointer-events: none; z-index: 0; }
.template-haveli > * { position: relative; z-index: 1; }
.template-haveli .biodata-sheet-top { border-bottom: 1px solid #d9b8c8; color: #8b4d6b; }
.template-haveli .biodata-identity h2 { color: #5a2f45; }
.template-haveli .biodata-section h3 { color: #8b4d6b; text-align: center; }
.template-haveli .biodata-photo--haveli { width: 124px; height: 156px; border: 1px solid #8b4d6b; outline: 4px solid #f0e0e8; outline-offset: 3px; }
.template-haveli .biodata-highlight { background: #f3e4ec; border-left-color: #8b4d6b; }

.swatch-obsidian { background: #1a1c1f; border-color: #3a3f46; }
.swatch-obsidian::after { background: #d4a574; box-shadow: 0 7px #2e3238, 0 14px #5c6570; }
.swatch-marigold { background: #fff6e0; border-color: #e4b860; }
.swatch-marigold::after { background: #b7791f; box-shadow: 0 7px #f0d48a, 0 14px #d4af37; }
.swatch-silk { background: #fbf6f4; border-color: #eadfdc; }
.swatch-silk::after { background: #a67c7c; box-shadow: 0 7px #f3e6e2, 0 14px #d4b8b8; }
.swatch-haveli { background: #f9f2f5; border-color: #d9b8c8; }
.swatch-haveli::after { background: #8b4d6b; box-shadow: 0 7px #f0e0e8, 0 14px #5a2f45; }

.obsidian-paper { background: #1a1c1f; color: #f3eee6; border-color: #2e3238; }
.obsidian-paper .paper-label,
.obsidian-paper .paper-title { color: #f3eee6; }
.obsidian-paper .paper-line { background: #3a3f46; }
.marigold-paper { background: linear-gradient(180deg, #fff8eb, #fffdf7); border-color: #e4b860; }
.silk-paper { background: #fbf6f4; border-color: #eadfdc; border-radius: 12px; }
.haveli-paper { background: #f9f2f5; border: 3px double #8b4d6b; }

/* Premium skins 15–27 */
.biodata-sheet.template-linen { --bio-accent: #8a7355; --bio-ink: #2f2a24; --bio-paper: #f3eadc; background: #f3eadc; border: 1px solid #d9cbb6; }
.template-linen .biodata-identity h2 { color: #5c4a35; }
.template-linen .biodata-section h3 { color: #8a7355; }
.template-linen .biodata-photo--linen { border: 1px solid #cbb89c; }

.biodata-sheet.template-peony { --bio-accent: #c47a8f; --bio-ink: #3a2a30; --bio-paper: #fff5f7; background: #fff5f7; border: 1px solid #edd0d8; }
.template-peony .biodata-identity h2 { color: #8a4558; }
.template-peony .biodata-section h3 { color: #c47a8f; }
.template-peony .biodata-photo--peony { border: 5px solid #f3dbe3; }

.biodata-sheet.template-sandalwood { --bio-accent: #a67d3d; --bio-ink: #2c2118; --bio-paper: #f6ecdf; background: #f6ecdf; border: 1px solid #ddc5a4; }
.template-sandalwood .biodata-identity h2 { color: #6b4c24; }
.template-sandalwood .biodata-section h3 { color: #a67d3d; }
.template-sandalwood .biodata-photo--sandalwood { width: 118px; height: 148px; border: 2px solid #c9a56a; }

.biodata-sheet.template-teak { --bio-accent: #6b3f2a; --bio-ink: #241812; --bio-paper: #f3e6d8; background: #f3e6d8; border: 2px solid #6b3f2a; }
.template-teak .biodata-sheet-top { background: #6b3f2a; color: #f8efe6; margin: -47px -47px 0; padding: 14px 47px; }
.template-teak .biodata-sheet-top .biodata-kicker,
.template-teak .biodata-sheet-top .biodata-number { color: #f8efe6; }
.template-teak .biodata-identity h2 { color: #6b3f2a; }
.template-teak .biodata-photo--teak { border: 3px solid #a67b5b; }

.biodata-sheet.template-coral { --bio-accent: #d46a5a; --bio-ink: #2a1f1d; --bio-paper: #fff8f5; background: #fff8f5; border: 1px solid #f0d0c8; }
.template-coral .biodata-sheet-top { background: linear-gradient(120deg, #d46a5a, #e08a74); color: #fff8f5; margin: -47px -47px 0; padding: 14px 47px; }
.template-coral .biodata-sheet-top .biodata-kicker,
.template-coral .biodata-sheet-top .biodata-number { color: #fff8f5; }
.template-coral .biodata-identity h2 { color: #b14d3f; }
.template-coral .biodata-section h3 { color: #d46a5a; }
.template-coral .biodata-photo--coral { border-radius: 12px; border: 2px solid #f0d0c8; }

.biodata-sheet.template-mist { --bio-accent: #6b7c8a; --bio-ink: #243039; --bio-paper: #f4f7f9; background: #f4f7f9; border: 1px solid #d5dee4; }
.template-mist .biodata-identity h2 { color: #3a4a55; font-family: Poppins, Arial, sans-serif; font-weight: 600; font-size: 34px; }
.template-mist .biodata-section h3 { color: #6b7c8a; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; font-family: var(--biodata-body); }
.template-mist .biodata-photo--mist { border-radius: 8px; }

.biodata-sheet.template-aurora { --bio-accent: #5b6bc7; --bio-ink: #1f2438; --bio-paper: #f5f6ff; background: linear-gradient(165deg, #e8ebff, #f7f8ff 45%, #fff6f0); border: 1px solid #cfd4f0; }
.template-aurora .biodata-sheet-top { background: linear-gradient(90deg, #5b6bc7, #8a6bb5); color: #f5f6ff; margin: -47px -47px 0; padding: 14px 47px; }
.template-aurora .biodata-sheet-top .biodata-kicker,
.template-aurora .biodata-sheet-top .biodata-number { color: #f5f6ff; }
.template-aurora .biodata-identity h2 { color: #3a3f7a; }
.template-aurora .biodata-photo--aurora { border-radius: 14px; box-shadow: 0 10px 24px rgba(91, 107, 199, .2); }

.biodata-sheet.template-rosewood { --bio-accent: #7a3b48; --bio-ink: #2a171c; --bio-paper: #f8eee9; background: #f8eee9; border: 1px solid #d7b4ba; }
.template-rosewood .biodata-identity h2 { color: #7a3b48; }
.template-rosewood .biodata-section h3 { color: #7a3b48; }
.template-rosewood .biodata-photo--rosewood { width: 118px; height: 148px; border: 1px solid #7a3b48; outline: 3px solid #efd8dc; outline-offset: 3px; }

.biodata-sheet.template-jasper { --bio-accent: #5f6f4e; --bio-ink: #1f261c; --bio-paper: #f3f0e4; background: #f3f0e4; border: 2px solid #8a9578; }
.template-jasper .biodata-identity h2 { color: #465538; }
.template-jasper .biodata-section h3 { color: #5f6f4e; }
.template-jasper .biodata-photo--jasper { border: 3px solid #8a9578; }

.biodata-sheet.template-celadon { --bio-accent: #6f8f86; --bio-ink: #243230; --bio-paper: #f3f7f5; background: #f3f7f5; border: 0; box-shadow: none; }
.template-celadon .biodata-sheet-top { border-bottom: 1px solid #6f8f86; }
.template-celadon .biodata-identity h2 { color: #3d5a53; font-size: 34px; }
.template-celadon .biodata-section h3 { color: #6f8f86; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--biodata-body); }
.template-celadon .biodata-photo--celadon { border-radius: 4px; }

.biodata-sheet.template-noirgold { --bio-accent: #d4af37; --bio-ink: #f4efe4; --bio-paper: #121212; background: #121212; border: 0; color: #f4efe4; padding: 0; }
.template-noirgold .studio-rail { background: #0a0a0a; border-right: 1px solid #d4af37; }
.template-noirgold .studio-rail-meta { color: #d4af37; }
.template-noirgold .biodata-sheet-top,
.template-noirgold .biodata-sheet-footer { color: #d4af37; border-color: #2a2a2a; }
.template-noirgold .biodata-identity { border-bottom-color: #2a2a2a; }
.template-noirgold .biodata-identity h2 { color: #f7f1e0; }
.template-noirgold .biodata-intro,
.template-noirgold .biodata-row span,
.template-noirgold .biodata-pair-cell span,
.template-noirgold .biodata-list-item span,
.template-noirgold .biodata-family-details { color: #a39b8c; }
.template-noirgold .biodata-section { border-bottom-color: #2a2a2a; }
.template-noirgold .biodata-section h3 { color: #d4af37; }
.template-noirgold .biodata-row,
.template-noirgold .biodata-paired-row,
.template-noirgold .biodata-list-item,
.template-noirgold .biodata-family-member { border-top-color: #2a2a2a; }
.template-noirgold .biodata-highlight { background: #1c1c1c; border-left-color: #d4af37; }
.template-noirgold .biodata-photo--noirgold { border: 1px solid #d4af37; width: 100%; height: auto; aspect-ratio: 3/4; }

.biodata-sheet.template-ember { --bio-accent: #c44b2e; --bio-ink: #2a1410; --bio-paper: #fff4ef; background: #fff4ef; border: 0; padding: 0; }
.template-ember .studio-rail { background: #5c2218; }
.template-ember .studio-rail-meta { color: #f5c4b4; }
.template-ember .biodata-sheet-top { background: transparent; color: #c44b2e; margin: 0; padding: 0 0 10px; }
.template-ember .biodata-sheet-top .biodata-kicker,
.template-ember .biodata-sheet-top .biodata-number { color: #c44b2e; }
.template-ember .biodata-identity h2 { color: #9a321c; }
.template-ember .biodata-section h3 { color: #c44b2e; }
.template-ember .biodata-photo--ember { border: 0; width: 100%; height: auto; aspect-ratio: 3/4; }

.biodata-sheet.template-indigo { --bio-accent: #3d4f8f; --bio-ink: #e8ecf8; --bio-paper: #1b2340; background: #1b2340; border: 1px solid #2c3760; color: #e8ecf8; }
.template-indigo .biodata-sheet-top { background: linear-gradient(120deg, #2c3760, #3d4f8f); color: #e8ecf8; margin: -47px -47px 0; padding: 14px 47px; }
.template-indigo .biodata-sheet-top .biodata-kicker,
.template-indigo .biodata-sheet-top .biodata-number,
.template-indigo .biodata-sheet-footer { color: #9db0e8; }
.template-indigo .biodata-identity { border-bottom-color: #2c3760; }
.template-indigo .biodata-identity h2 { color: #f0f3ff; }
.template-indigo .biodata-intro,
.template-indigo .biodata-row span,
.template-indigo .biodata-pair-cell span,
.template-indigo .biodata-list-item span,
.template-indigo .biodata-family-details { color: #a7b3d4; }
.template-indigo .biodata-section { border-bottom-color: #2c3760; }
.template-indigo .biodata-section h3 { color: #9db0e8; }
.template-indigo .biodata-row,
.template-indigo .biodata-paired-row,
.template-indigo .biodata-list-item,
.template-indigo .biodata-family-member { border-top-color: #2c3760; }
.template-indigo .biodata-highlight { background: #242e52; border-left-color: #9db0e8; }
.template-indigo .biodata-photo--indigo { border: 1px solid #9db0e8; }

/* Shared layout variants — readable at gallery thumbnail size */
.biodata-identity.layout-photo-left { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.biodata-identity.layout-formal { display: grid; grid-template-columns: minmax(110px, 128px) minmax(0, 1fr); gap: 22px 28px; align-items: start; padding-top: 28px; }
.biodata-identity.layout-formal .biodata-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.biodata-identity.layout-formal .biodata-photo img { width: 100%; height: 100%; object-fit: cover; }
.formal-hero-copy h2 { margin: 0 0 8px; color: var(--bio-accent, #9b4f3f); }
.formal-hero-copy .biodata-tagline { font-style: italic; color: #736e64; margin: 0 0 14px; max-width: 36rem; }
.formal-basics { margin-top: 4px; }
.formal-basics .biodata-paired-row { border-top-color: #eee6da; }
.biodata-prose { margin: 0; line-height: 1.55; color: #3a3730; }
.biodata-identity.layout-centered { display: grid; justify-items: center; text-align: center; grid-template-columns: 1fr; }
.biodata-identity.layout-centered > div { display: grid; justify-items: center; gap: 10px; width: 100%; }
.biodata-identity.layout-centered .biodata-intro { margin-left: auto; margin-right: auto; }
.biodata-identity.layout-centered .biodata-highlights { justify-content: center; }
.biodata-identity.layout-ledger { padding-block: 28px 20px; border-bottom: 2px solid var(--bio-accent, #68776e); }
.biodata-identity.layout-ledger h2 { font-size: 36px; letter-spacing: -.02em; }
.ledger-body .biodata-section h3 { font: 600 10px Poppins, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--bio-accent, #68776e); }
.ledger-body .biodata-row { grid-template-columns: 120px minmax(0, 1fr); border-top: 0; padding: 3px 0; }
.biodata-identity.layout-rail-main { padding-top: 8px; }
.skin-crest { text-align: center; color: var(--bio-accent, #a67d3d); font-size: 18px; letter-spacing: .2em; margin-bottom: 6px; opacity: .9; }
.peony-crest { color: #c47a8f; font-size: 22px; }
.template-sandalwood .biodata-identity.layout-centered .biodata-section h3,
.template-teak .biodata-identity.layout-centered + .biodata-section h3,
.template-sandalwood .biodata-section h3,
.template-teak .biodata-section h3 { text-align: center; }
.template-sandalwood .biodata-sheet-top,
.template-teak.biodata-sheet .biodata-sheet-top { justify-content: center; text-align: center; }
.template-lotus .biodata-identity.layout-photo-left { align-items: start; }
.template-lotus .biodata-photo--lotus { width: 118px; height: 148px; }
.template-peony .silk-panels .biodata-section,
.skin-cards .biodata-section { background: #fff; border: 1px solid #edd0d8; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; border-bottom: 1px solid #edd0d8; }
.template-linen .biodata-photo--linen { width: 118px; height: 148px; }

.swatch-linen::after { background: #8a7355; }
.swatch-peony::after { background: #c47a8f; }
.swatch-sandalwood::after { background: #a67d3d; }
.swatch-teak::after { background: #6b3f2a; }
.swatch-coral::after { background: #d46a5a; }
.swatch-mist::after { background: #6b7c8a; }
.swatch-aurora::after { background: #5b6bc7; }
.swatch-rosewood::after { background: #7a3b48; }
.swatch-jasper::after { background: #5f6f4e; }
.swatch-celadon::after { background: #6f8f86; }
.swatch-noirgold { background: #121212; }
.swatch-noirgold::after { background: #d4af37; }
.swatch-ember::after { background: #c44b2e; }
.swatch-indigo { background: #1b2340; }
.swatch-indigo::after { background: #9db0e8; }

.biodata-elegant-body { display: block; }
.biodata-modern-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.biodata-modern-columns .biodata-section:nth-child(odd) { padding-right: 14px; }
.biodata-modern-columns .biodata-section:nth-child(even) { padding-left: 14px; }
.template-modern .biodata-modern-columns .biodata-row { grid-template-columns: minmax(72px, 38%) minmax(0, 1fr); }
.template-modern .biodata-modern-columns .biodata-family-grid { grid-template-columns: 1fr; }
.share-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(390px, 1.2fr); gap: clamp(45px, 8vw, 110px); align-items: start; max-width: 1080px; margin: 86px auto 0; padding-top: 68px; border-top: 1px solid var(--line); }
.design-page #share-panel { display: none !important; }
.share-page { min-height: 64vh; padding: 1px 0 90px; }
.share-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.share-page-heading { max-width: 680px; margin: 76px auto 0; text-align: center; }
.share-page-heading h1 { margin: 16px 0 18px; color: var(--plum); font-size: clamp(52px, 7vw, 80px); }
.share-page-heading h1 em { color: var(--terra); font-style: normal; }
.share-page-heading p { max-width: 510px; margin: 0 auto; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.share-page-panel { margin-top: 58px; padding-top: 0; border-top: 0; }
.share-empty { max-width: 580px; margin: 58px auto 0; padding: 58px 30px; border: 1px solid var(--line); background: var(--paper-soft); text-align: center; }
.share-empty[hidden] { display: none; }
.shared-error-mark { display: block; color: var(--terra); font-family: var(--display); font-size: 30px; line-height: 1; }
.share-empty h2 { margin: 14px 0 9px; color: var(--plum); font-family: var(--display); font-size: 35px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.share-empty p { max-width: 380px; margin: 0 auto 24px; color: var(--ink-muted); font-size: 12px; line-height: 1.55; }
.share-panel-heading h2 { margin: 16px 0 19px; color: var(--plum); font-size: clamp(46px, 5.8vw, 70px); }
.share-panel-heading p { max-width: 360px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.share-panel-card { padding: 27px; border: 1px solid var(--line); background: var(--paper-soft); }
.share-card-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lock-label { color: var(--terra); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.share-link-state { color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.share-audience { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; }
.share-audience legend { margin-bottom: 9px; color: var(--ink); font-size: 11px; font-weight: 600; }
.share-audience label { display: grid; grid-template-columns: 17px 1fr; gap: 9px; padding: 11px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.share-audience label:has(input:checked) { border-color: var(--terra); background: color-mix(in srgb, var(--terra) 10%, var(--paper-soft)); box-shadow: inset 0 0 0 1px var(--terra); }
.share-audience input { accent-color: var(--terra); margin-top: 2px; }
.share-audience label span, .share-toggle span:last-child { display: grid; gap: 3px; }
.share-audience strong, .share-toggle strong { color: var(--ink); font-size: 10px; font-weight: 600; }
.share-audience small, .share-toggle small { color: var(--ink-muted); font-size: 9px; line-height: 1.45; }
.share-field { display: grid; gap: 6px; margin-top: 18px; }
.share-field label { color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.share-field label span { color: #a59d92; }
.share-field input, .share-link-box input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 11px; }
.share-toggle { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; margin-top: 18px; cursor: pointer; }
.share-toggle input { position: absolute; opacity: 0; }
.toggle-track { width: 28px; height: 16px; margin-top: 2px; border-radius: 10px; background: var(--line); position: relative; transition: background .2s ease; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-soft); transition: transform .2s ease; }
.share-toggle input:checked + .toggle-track { background: var(--terra); }
.share-toggle input:checked + .toggle-track::after { transform: translateX(12px); }
.share-link-box { display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; margin-top: 21px; padding: 12px; border-left: 2px solid #7b9978; background: #e9efe8; }
.share-link-actions { display: flex; align-items: center; gap: 12px; }
.share-link-icon { color: #5d805a; font-size: 17px; }
.share-link-box div { min-width: 0; }
.share-link-box strong { display: block; margin-bottom: 4px; color: #496248; font-size: 10px; }
.share-link-box input { min-width: 0; padding: 0; border: 0; background: transparent; color: #496248; font-family: var(--mono); font-size: 8px; }
.copy-link, .revoke-link { border: 0; background: none; color: var(--terra); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.share-card-actions { display: flex; align-items: center; gap: 18px; margin-top: 23px; }
.share-card-actions .button { flex: 1; }
.share-helper { margin: 18px 0 0; color: var(--ink-muted); font-size: 9px; line-height: 1.55; }
.share-workspace[hidden] { display: none; }
.share-identity-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); background: rgba(251, 249, 245, .74); }
.share-identity-photo { width: 72px; height: 82px; overflow: hidden; border: 1px dashed var(--terra); display: grid; place-items: center; background: #f3e9dc; color: var(--terra); font-family: var(--mono); font-size: 7px; line-height: 1.45; text-align: center; text-transform: uppercase; }
.share-identity-photo img { width: 100%; height: 100%; object-fit: cover; }
.share-identity-copy { min-width: 0; }
.share-identity-copy h2 { margin: 5px 0 7px; color: var(--plum); font-family: var(--display); font-size: 29px; font-weight: 600; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.share-identity-copy p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.share-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7b9978; box-shadow: 0 0 0 3px rgba(123, 153, 120, .15); }
.share-identity-separator { color: var(--line-dark); }
.share-identity-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.share-identity-actions .text-button { font-family: var(--mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.share-hero-panel { display: grid; grid-template-columns: minmax(0, .86fr) minmax(380px, 1.14fr); gap: clamp(38px, 7vw, 95px); align-items: center; margin-top: 42px; padding: 0 8px 52px; border-bottom: 1px solid var(--line); }
.share-hero-copy h2 { margin: 15px 0 18px; color: var(--plum); font-size: clamp(47px, 5.7vw, 72px); line-height: .94; }
.share-hero-copy h2 em { color: var(--terra); font-style: normal; }
.share-hero-copy > p { max-width: 360px; margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.6; }
.share-privacy-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 9px 11px; border-left: 2px solid #7b9978; background: #e9efe8; color: #496248; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.share-primary-card { padding: 26px; border: 1px solid var(--line); background: var(--paper-soft); box-shadow: 0 14px 30px rgba(60, 43, 28, .045); }
.share-primary-card .share-link-box { margin-top: 18px; }
.share-link-empty { display: grid; grid-template-columns: 25px 1fr; gap: 11px; align-items: center; margin-top: 20px; padding: 16px 13px; border: 1px dashed #d8cabc; background: #fbf7f1; color: var(--ink-muted); }
.share-link-empty[hidden] { display: none; }
.share-link-empty > span { color: var(--terra); font-family: var(--display); font-size: 24px; line-height: 1; }
.share-link-empty p { margin: 0; font-size: 11px; line-height: 1.5; }
.share-primary-card .share-card-actions { flex-wrap: wrap; }
.share-section { margin-top: 57px; padding-top: 31px; border-top: 1px solid var(--line); }
.share-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 21px; }
.share-section-heading h2 { margin: 10px 0 0; color: var(--plum); font-family: var(--display); font-size: clamp(32px, 4vw, 47px); font-weight: 600; letter-spacing: -.04em; line-height: .98; }
.share-section-heading .section-status { flex: none; margin: 0; }
.share-again-button { min-width: 157px; }
.share-channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.share-channel-button { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) 13px; gap: 10px; align-items: center; padding: 15px 13px; border: 1px solid var(--line); background: var(--paper-soft); color: var(--ink); text-align: left; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.share-channel-button:hover { border-color: var(--terra); background: #f8eee8; transform: translateY(-2px); }
.share-channel-button:focus-visible, .share-identity-actions a:focus-visible, .share-setting-row select:focus-visible, .share-link-row-actions button:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.channel-mark { width: 30px; height: 30px; border: 1px solid #d8cabc; display: grid; place-items: center; color: var(--terra); font-family: var(--mono); font-size: 8px; letter-spacing: -.04em; }
.share-channel-button strong, .share-channel-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-channel-button strong { font-size: 12px; font-weight: 600; line-height: 1.25; }
.share-channel-button small { margin-top: 4px; color: var(--ink-muted); font-size: 11px; line-height: 1.35; white-space: normal; }
.channel-arrow { color: var(--terra); font-size: 13px; }
.share-channel-note { margin: 14px 0 0; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; line-height: 1.55; }
.share-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.share-access-card { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 4px 12px; padding: 22px; border: 1px solid var(--line); background: var(--paper-soft); }
.access-card-mark { color: var(--terra); font-family: var(--display); font-size: 23px; line-height: 1; }
.share-access-card h3 { margin: 1px 0 5px; color: var(--plum); font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1; }
.share-access-card > div p { margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.5; }
.share-access-card .share-audience, .share-access-card .share-field, .share-access-card .share-toggle, .share-setting-row, .share-setting-note { grid-column: 1 / -1; }
.share-access-card .share-audience { margin-top: 16px; }
.share-access-card .share-field { margin-top: 14px; }
.share-settings-card { background: #f6efe6; }
.share-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #e2d5c7; cursor: pointer; }
.share-setting-row > span { display: grid; gap: 4px; }
.share-setting-row strong { color: var(--ink); font-size: 10px; font-weight: 600; }
.share-setting-row small { color: var(--ink-muted); font-size: 9px; line-height: 1.4; }
.share-setting-row select { min-width: 106px; padding: 9px 29px 9px 10px; border: 1px solid var(--line); appearance: none; -webkit-appearance: none; background: var(--paper) linear-gradient(45deg, transparent 50%, var(--terra) 50%) calc(100% - 15px) 14px / 5px 5px no-repeat, linear-gradient(135deg, var(--terra) 50%, transparent 50%) calc(100% - 10px) 14px / 5px 5px no-repeat; color: var(--ink); font-size: 10px; }
.share-setting-note { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid #e2d5c7; color: var(--ink-muted); font-size: 9px; line-height: 1.5; }
.share-contact-visibility { display: grid; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #e2d5c7; }
.share-contact-visibility strong { color: var(--ink); font-size: 9px; font-weight: 600; }
.share-contact-visibility span { color: var(--ink-muted); font-family: var(--mono); font-size: 7px; letter-spacing: .03em; line-height: 1.6; text-transform: uppercase; }
.share-analytics-section { padding-bottom: 4px; }
.analytics-availability { color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.share-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper-soft); }
.share-metric { min-width: 0; display: grid; gap: 7px; padding: 20px; border-right: 1px solid var(--line); }
.share-metric:last-child { border-right: 0; }
.share-metric > span { color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.share-metric strong { color: var(--plum); font-family: var(--display); font-size: 38px; font-weight: 600; line-height: .9; }
.share-metric small { color: var(--ink-muted); font-size: 9px; line-height: 1.35; }
.share-analytics-note { margin: 13px 0 0; color: var(--ink-muted); font-family: var(--mono); font-size: 8px; line-height: 1.55; }
.share-analytics-lower { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; margin-top: 21px; }
.share-breakdown-card, .share-activity-card { min-width: 0; padding: 21px; border: 1px solid var(--line); background: var(--paper-soft); }
.share-subsection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.share-subsection-heading h3 { margin: 0; color: var(--plum); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1; }
.share-subsection-heading span { color: var(--ink-muted); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.share-breakdown-list { display: grid; gap: 13px; padding-top: 17px; }
.share-breakdown-list > div { display: grid; grid-template-columns: 1fr 22px; gap: 7px 12px; align-items: center; }
.share-breakdown-list span { color: var(--ink-muted); font-size: 10px; }
.share-breakdown-list strong { color: var(--ink); font-family: var(--mono); font-size: 9px; font-weight: 500; text-align: right; }
.share-breakdown-list i { grid-column: 1 / -1; height: 4px; overflow: hidden; background: #eadfd3; }
.share-breakdown-list b { display: block; width: 0; height: 100%; background: var(--terra); transition: width .3s ease; }
.share-activity-list { display: grid; gap: 0; }
.share-activity-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid #eee6da; }
.share-activity-item:last-child { border-bottom: 0; }
.activity-mark { color: var(--terra); font-family: var(--display); font-size: 19px; text-align: center; }
.share-activity-item strong, .share-activity-item small { display: block; }
.share-activity-item strong { color: var(--ink); font-size: 10px; font-weight: 600; line-height: 1.35; }
.share-activity-item small { margin-top: 3px; color: var(--ink-muted); font-family: var(--mono); font-size: 7px; letter-spacing: .03em; text-transform: uppercase; }
.share-activity-state { display: flex; align-items: center; gap: 10px; padding: 22px 0 7px; color: var(--ink-muted); font-size: 10px; }
.share-activity-state > span { width: 22px; height: 22px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--terra); font-family: var(--mono); font-size: 10px; }
.share-activity-state p { margin: 0; }
.activity-spinner { border-radius: 50%; border-top-color: var(--terra) !important; animation: share-spin .8s linear infinite; }
@keyframes share-spin { to { transform: rotate(360deg); } }
.share-activity-empty, .share-links-empty { display: flex; align-items: center; gap: 12px; padding: 21px 0 5px; color: var(--ink-muted); }
.share-activity-empty > span, .share-links-empty > span { color: var(--terra); font-family: var(--display); font-size: 24px; }
.share-activity-empty p, .share-links-empty p { margin: 0; font-size: 10px; line-height: 1.5; }
.share-links-table { border: 1px solid var(--line); background: var(--paper-soft); }
.share-link-row { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: 19px 21px; }
.share-link-row.is-current { background: color-mix(in srgb, var(--paper-soft) 80%, var(--saffron) 8%); }
.share-link-row > div:first-child { min-width: 0; display: grid; gap: 5px; }
.link-row-status { color: #5d805a; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.link-row-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #7b9978; }
.link-row-status.is-expired { color: var(--terra); }
.link-row-status.is-expired i { background: var(--terra); }
.share-link-row strong { color: var(--plum); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1; }
.share-link-row small { color: var(--ink-muted); font-size: 9px; }
.share-link-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.share-link-row-actions .revoke-link { color: var(--terra); }
.share-revoke-confirmation { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 17px 20px; border-left: 2px solid var(--terra); background: #f8ebe5; }
.share-revoke-confirmation[hidden] { display: none; }
.share-revoke-confirmation strong { color: var(--plum); font-size: 11px; font-weight: 600; }
.share-revoke-confirmation p { margin: 4px 0 0; color: var(--ink-muted); font-size: 9px; }
.share-revoke-confirmation > div:last-child { display: flex; align-items: center; gap: 15px; }
.share-revoke-confirmation .button { padding: 10px 14px; font-size: 9px; }
.share-mobile-action { display: none; }
.shared-shell { max-width: 860px; }
.shared-page .wizard-header { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.shared-badge { color: var(--terra); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.shared-heading { margin: 76px 0 43px; text-align: center; }
.shared-heading h1 { margin: 16px 0 18px; color: var(--plum); font-size: clamp(52px, 7vw, 80px); }
.shared-heading p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.shared-preview { padding: 0; background: transparent; }
.shared-preview .profile-page { max-width: 860px; margin: 0 auto; }
.shared-preview.has-biodata { padding: clamp(16px, 3vw, 36px); background: #e6dfd3; }
.shared-preview .biodata-sheet { margin: 0 auto; height: auto; }
.shared-actions { display: flex; justify-content: center; margin-top: 22px; }
.shared-no-download { color: var(--ink-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.shared-footer-note { display: flex; justify-content: center; gap: 8px; margin-top: 27px; color: var(--ink-muted); font-size: 10px; text-align: center; }
.shared-footer-note > span:first-child { color: var(--saffron); font-family: var(--display); font-size: 17px; line-height: 1; }
.shared-disclaimer { margin: 14px auto 0; max-width: 36rem; color: var(--ink-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.shared-credit {
  margin: 10px auto 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.shared-interest {
  max-width: 560px;
  margin: 36px auto 0;
}
.shared-interest-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  text-align: center;
}
.shared-interest-card .display {
  margin: 12px 0 14px;
  color: var(--plum);
  font-size: clamp(34px, 6vw, 48px);
}
.shared-interest-card .display em { color: var(--terra); font-style: normal; }
.shared-interest-copy {
  max-width: 28rem;
  margin: 0 auto 22px;
  color: var(--ink-muted);
  font-size: 13px;
}
.shared-interest-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.shared-interest-status {
  min-height: 1.2em;
  margin: 16px 0 0;
  color: var(--sage);
  font-size: 12px;
}
.biodata-sheet-credit,
.profile-footer .biodata-sheet-credit {
  opacity: 0.85;
}
.shared-error { padding: 80px 30px; background: var(--paper-soft); text-align: center; }
.shared-error > span { color: var(--terra); font-family: var(--display); font-size: 30px; }
.shared-error h2 { margin: 12px 0 8px; color: var(--plum); font-family: var(--display); font-size: 34px; line-height: 1; }
.shared-error p { max-width: 360px; margin: 0 auto 24px; color: var(--ink-muted); font-size: 12px; }
.shared-error .button { display: inline-flex; }
.profile-page { --profile-accent: var(--terra); --profile-paper: var(--paper-soft); max-width: 860px; padding: 18px; background: var(--paper-deep); color: var(--ink); }
.profile-template-traditional { --profile-accent: #a8743e; --profile-paper: #fffaf0; outline: 1px solid rgba(184, 121, 61, .28); outline-offset: -8px; }
.profile-template-modern { --profile-accent: #668273; --profile-paper: #f8fbf8; }
.profile-template-heritage { --profile-accent: #9a623d; --profile-paper: #fbf4e8; }
.profile-template-minimal { --profile-accent: #68776e; --profile-paper: #faf8f4; }
.profile-template-elegant { --profile-accent: var(--terra); --profile-paper: #fbf8f3; }
.profile-template-saanjh { --profile-accent: #a65f58; --profile-paper: #fffaf3; }
.profile-topline { display: flex; justify-content: space-between; gap: 18px; padding: 3px 4px 14px; color: var(--profile-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.profile-hero { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 25px; align-items: start; padding: 28px; border: 1px solid var(--line); background: var(--profile-paper); box-shadow: 0 18px 36px rgba(60, 43, 28, .08); }
.profile-template-traditional .profile-topline { padding-bottom: 10px; text-align: center; }
.profile-template-traditional .profile-topline span:first-child { margin-inline: auto; }
.profile-template-traditional .profile-topline span:last-child { display: none; }
.profile-template-traditional .profile-hero { border: 1px solid #d9be94; box-shadow: none; }
.profile-template-traditional .profile-hero h2 { color: #7a4e2b; }
.profile-template-traditional .profile-panel { border-color: #d9be94; box-shadow: none; }
.profile-template-traditional .profile-panel-heading h3 { color: #7a4e2b; }
.profile-template-elegant .profile-hero { border: 1px solid #eadbd5; border-radius: 14px; box-shadow: 0 16px 30px rgba(116, 69, 83, .08); }
.profile-template-elegant .profile-panel { border-color: #eadbd5; border-radius: 10px; }
.profile-template-elegant .profile-panel-heading h3 { color: #704653; }
.profile-template-modern .profile-page { font-family: var(--body); }
.profile-template-modern .profile-hero { border: 0; border-top: 5px solid #2d4b60; box-shadow: none; }
.profile-template-modern .profile-panel { border-color: #c9d8d0; border-radius: 2px; box-shadow: none; }
.profile-template-modern .profile-panel-heading { border-bottom: 1px solid #c9d8d0; padding-bottom: 10px; }
.profile-template-heritage .profile-hero { border: 1px solid #d6b990; border-top: 7px solid #7f4933; border-radius: 0; box-shadow: none; }
.profile-template-heritage .profile-panel { border-color: #d6b990; border-radius: 0; box-shadow: none; }
.profile-template-heritage .profile-panel-heading h3 { color: #754735; }
.profile-template-minimal .profile-hero { border: 0; border-top: 2px solid #394840; border-bottom: 1px solid #cfd5d0; border-radius: 0; box-shadow: none; }
.profile-template-minimal .profile-panel { padding-inline: 0; border: 0; border-top: 1px solid #cfd5d0; border-radius: 0; background: transparent; box-shadow: none; }
.profile-template-minimal .profile-grid { gap: 28px 16px; }
.profile-template-saanjh .profile-hero { border: 1px solid #e3c7bc; border-top: 5px solid #a65f58; border-radius: 8px; box-shadow: 0 16px 30px rgba(116, 69, 83, .08); }
.profile-template-saanjh .profile-panel { border-color: #e3c7bc; border-radius: 8px; box-shadow: none; }
.profile-template-saanjh .profile-panel-heading h3 { color: #75424a; }
.profile-template-saanjh .profile-photo { border: 5px solid #f1d9d0; outline: 1px solid #c9956f; outline-offset: 4px; border-radius: 46% 46% 9px 9px; }
.profile-hero-copy { grid-column: 2; min-width: 0; }
.profile-overline, .profile-contact-kicker { margin: 0 0 9px; color: var(--profile-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.profile-hero h2 { margin: 0; color: var(--plum); font-family: var(--display); font-size: clamp(38px, 5.5vw, 65px); font-weight: 600; letter-spacing: -.05em; line-height: .96; overflow-wrap: anywhere; }
.profile-template-modern .profile-hero h2 { color: var(--ink); font-family: var(--body); font-size: clamp(30px, 4.8vw, 54px); letter-spacing: -.06em; }
.profile-template-minimal .profile-hero h2 { color: var(--profile-accent); }
.profile-intro { max-width: 520px; margin: 17px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.65; white-space: pre-line; }
.profile-hero .biodata-highlights { margin-top: 19px; }
.profile-hero .profile-photo { grid-column: 1; grid-row: 1; width: 126px; height: 150px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--profile-accent) 35%, var(--line)); background: transparent; }
.profile-hero .profile-photo.biodata-photo--none { border: 1px dashed var(--profile-accent); }
.profile-template-modern .profile-photo { border-left: 4px solid var(--profile-accent); border-radius: 2px; }
.profile-template-heritage .profile-photo { border: 3px solid #e2c59b; outline: 1px solid var(--profile-accent); outline-offset: 4px; border-radius: 2px; }
.profile-template-minimal .profile-photo { border: 1px dashed var(--profile-accent); border-radius: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.profile-panel { min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--profile-paper); }
.profile-panel-family, .profile-panel-lifestyle { grid-column: 1 / -1; }
.profile-panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.profile-panel-heading h3 { margin: 0; color: var(--plum); font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.05; }
.profile-template-modern .profile-panel-heading h3, .profile-template-minimal .profile-panel-heading h3 { color: var(--profile-accent); font-family: var(--body); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.profile-panel-rule { width: 18px; height: 1px; flex: none; background: var(--profile-accent); }
.profile-panel .biodata-paired-row { border-top-color: rgba(222, 213, 200, .9); }
.profile-panel .biodata-family-grid { gap: 0 30px; }
.profile-record-list { display: grid; gap: 0; }
.profile-record { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid rgba(222, 213, 200, .82); }
.profile-record-index { color: var(--profile-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.profile-record div { display: grid; gap: 4px; min-width: 0; }
.profile-record strong { color: var(--ink); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.profile-record span:not(.profile-record-index) { color: var(--ink-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.profile-panel .profile-income { margin-top: 2px; }
.profile-contact { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); gap: 35px; align-items: start; margin-top: 16px; padding: 25px 28px; border: 1px solid var(--profile-accent); background: var(--profile-accent); color: #fffaf3; }
.profile-contact h3 { margin: 0; color: #fffaf3; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: .98; }
.profile-contact h3 em { color: #f0d6ad; font-style: normal; }
.profile-contact p { margin: 13px 0 0; color: rgba(255, 250, 243, .75); font-size: 10px; line-height: 1.55; }
.profile-contact-kicker { color: #f0d6ad; }
.profile-contact-rows { align-self: center; border-color: rgba(255, 250, 243, .28); }
.profile-contact .biodata-pair-cell + .biodata-pair-cell { border-left-color: rgba(255, 250, 243, .28); }
.profile-contact .biodata-pair-cell span { color: rgba(255, 250, 243, .68); }
.profile-contact .biodata-pair-cell strong { color: #fffaf3; }
.profile-footer { display: flex; justify-content: space-between; gap: 18px; padding: 19px 4px 3px; color: var(--profile-accent); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.visually-hidden { 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; }
@keyframes pulse-save { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #fff; }
  body * { visibility: hidden !important; }
  .biodata-sheet, .biodata-sheet * { visibility: visible !important; }
  .biodata-sheet { position: absolute; left: 0; top: 0; width: 210mm; min-height: 297mm; max-width: none; aspect-ratio: auto; margin: 0; padding: 14mm 13mm 16mm; border: 0 !important; box-shadow: none; }
  .biodata-sheet-top { padding-top: 0; }
  .biodata-section, .biodata-list-item { break-inside: avoid; page-break-inside: avoid; }
  .biodata-identity { break-inside: avoid; page-break-inside: avoid; }
  .biodata-sheet-footer { margin-bottom: 0; }
  .biodata-sheet.template-minimal, .biodata-sheet.template-modern, .biodata-sheet.template-heritage, .biodata-sheet.template-saanjh { background: #fff; }
}

@media (max-width: 880px) {
  .wizard-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 35px; }
  .wizard-section-card { padding-inline: 20px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .wizard-main-heading .display { font-size: clamp(44px, 7vw, 63px); }
  .design-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 25px; }
  .design-intro { align-items: flex-start; }
  .design-status { min-width: 180px; }
  .share-panel { grid-template-columns: 1fr 1fr; gap: 35px; }
  .share-hero-panel { grid-template-columns: 1fr 1fr; gap: 28px; }
  .share-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-analytics-lower { grid-template-columns: 1fr; }
  .share-link-row { align-items: flex-start; }
  .share-link-row-actions { max-width: 260px; }
}
@media (max-width: 680px) {
  .wizard-editor { padding-top: 24px; }
  .wizard-header-actions { gap: 12px; }
  .save-state { font-size: 8px; }
  .wizard-exit { font-size: 8px; }
  .wizard-layout { display: block; width: 100%; margin-top: 47px; }
  .wizard-sidebar { position: static; }
  .wizard-sidebar-heading { display: none; }
  .wizard-side-note { display: none; }
  .wizard-mobile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
  .mobile-step-menu { padding: 9px 12px; border: 1px solid var(--line); background: var(--paper-soft); color: var(--ink); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-step-menu span { margin-left: 7px; color: var(--terra); }
  .mobile-step-count { color: var(--ink-muted); font-family: var(--mono); font-size: 9px; }
  .step-nav { position: absolute; z-index: 10; left: 19px; right: 19px; display: none; margin-top: 0; padding: 8px; border: 1px solid var(--line); background: var(--paper-soft); box-shadow: 0 16px 30px rgba(60, 43, 28, .12); }
  .step-nav.is-mobile-open { display: grid; }
  .step-nav-item { padding: 11px 8px; }
  .wizard-main-heading { display: block; }
  .step-kind { display: inline-block; margin-top: 22px; }
  .wizard-intro { margin-top: 17px; }
  .wizard-progress-track { margin-bottom: 23px; }
  .wizard-section-card { padding: 20px 16px 22px; }
  .section-card-head { display: block; }
  .section-status { display: block; margin: 12px 0 0 26px; }
  .section-card-head h3 { font-size: 25px; }
  .wizard-fields-grid, .review-grid { grid-template-columns: 1fr; }
  .choice-grid, .visibility-options { grid-template-columns: 1fr 1fr; }
  .photo-card { grid-template-columns: 1fr 105px; padding: 17px; gap: 7px 14px; }
  .photo-preview { width: 94px; height: 112px; }
  .photo-card h3 { font-size: 25px; }
  .photo-card-copy p { font-size: 10px; }
  .wizard-footer { align-items: flex-start; }
  .wizard-footer-actions { display: grid; justify-items: end; gap: 9px; }
  .wizard-later-button { order: 2; }
  .wizard-next { min-width: 130px; padding-inline: 14px; }
}

/* Responsive wizard section navigation */
.wizard-header-menu { display: none; }
.wizard-section-bar {
  position: sticky;
  top: 76px;
  z-index: 30;
  margin-top: 34px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 237, .96);
  backdrop-filter: blur(15px);
}
.wizard-section-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wizard-section-context { display: flex; align-items: center; gap: 15px; }
.wizard-section-context .eyebrow { font-size: 8px; }
.wizard-progress-label, .wizard-section-location { color: var(--ink-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.wizard-progress-label { color: var(--terra); }
.wizard-section-location { color: var(--saffron); }
.wizard-section-bar .step-nav { display: flex; gap: 3px; margin-top: 9px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.wizard-section-bar .step-nav-item {
  flex: 1 1 0;
  min-width: 104px;
  padding: 10px 9px 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 13px;
  gap: 6px;
  align-items: center;
  background: transparent;
  color: var(--ink-muted);
  text-align: left;
}
.wizard-section-bar .step-nav-item:hover { background: color-mix(in srgb, var(--terra) 4%, transparent); color: var(--terra); }
.wizard-section-bar .step-nav-item.is-active { border-bottom-color: var(--terra); background: color-mix(in srgb, var(--terra) 7%, transparent); color: var(--ink); }
.wizard-section-bar .step-nav-item.is-complete .nav-check { color: #7b9978; }
.wizard-section-bar .nav-copy { min-width: 0; }
.wizard-section-bar .nav-copy strong, .wizard-section-bar .nav-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wizard-section-bar .nav-copy strong { font-size: 10px; }
.wizard-section-bar .nav-copy small { font-size: 8px; }
.wizard-section-bar .nav-check { opacity: 1; color: #b9ad9e; font-size: 11px; }
.wizard-layout { margin-top: 31px; }
.wizard-mobile-action-bar { display: none; }

@media (max-width: 980px) {
  .wizard-section-bar { margin-top: 24px; }
  .wizard-section-bar .step-nav-item { min-width: 92px; }
  .wizard-section-bar .nav-copy small { display: none; }
  .wizard-sidebar { max-width: 190px; }
}

@media (max-width: 680px) {
  :root { --wizard-header-height: 72px; --wizard-keyboard-offset: 0px; }
  .wizard-page { padding: 0 0 calc(112px + env(safe-area-inset-bottom)); }
  .wizard-shell.wizard-editor { width: min(100% - 38px, 1140px); padding-top: 24px; }
  .wizard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    min-height: var(--wizard-header-height);
    padding: max(11px, env(safe-area-inset-top)) 19px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 243, 237, .97);
    box-shadow: 0 5px 16px rgba(60, 43, 28, .05);
    backdrop-filter: blur(16px);
  }
  .wizard-header-actions { min-width: 0; gap: 10px; }
  .wizard-header .wordmark { gap: 8px; }
  .wizard-header .wordmark-mark { width: 28px; height: 28px; }
  .wizard-header .wordmark-text { font-size: 19px; }
  .save-state { max-width: 106px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 7px; }
  .wizard-header-menu {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
  }
  .wizard-header-menu-label { display: none; }
  .wizard-exit { font-size: 7px; white-space: nowrap; }
  .wizard-section-bar {
    top: 68px;
    z-index: 70;
    margin: 0;
    padding: 10px 19px 0;
    border-top: 0;
    background: rgba(247, 243, 237, .98);
    box-shadow: 0 5px 14px rgba(60, 43, 28, .05);
  }
  .wizard-section-context { gap: 0; }
  .wizard-section-context .eyebrow { display: none; }
  .wizard-section-save { display: none; }
  .wizard-progress-label, .wizard-section-location { font-size: 8px; }
  .wizard-section-bar .step-nav {
    margin: 9px -19px 0;
    padding: 0 19px;
    gap: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wizard-section-bar .step-nav::-webkit-scrollbar { display: none; }
  .wizard-section-bar .step-nav-item {
    flex: 0 0 auto;
    min-width: 119px;
    min-height: 43px;
    padding: 8px 10px 8px 4px;
    grid-template-columns: 21px max-content 13px;
    border-bottom-width: 2px;
    scroll-snap-align: center;
  }
  .wizard-section-bar .nav-copy strong { font-size: 10px; }
  .wizard-section-bar .nav-copy small { display: none; }
  .wizard-section-bar .nav-check { font-size: 11px; }
  .wizard-layout { display: block; width: 100%; margin-top: 26px; }
  .wizard-sidebar { position: static; }
  .wizard-sidebar-heading { display: none; }
  .wizard-side-note { display: none; }
  .wizard-main { width: 100%; padding: 0; }
  .wizard-main-heading .display { font-size: clamp(44px, 14vw, 63px); }
  .wizard-intro { margin-bottom: 19px; }
  .wizard-progress-track { margin-bottom: 22px; }
  .wizard-footer { display: none; }
  .wizard-mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--wizard-keyboard-offset);
    z-index: 90;
    min-height: 65px;
    padding: 9px 19px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: rgba(251, 249, 245, .98);
    box-shadow: 0 -7px 22px rgba(60, 43, 28, .07);
    backdrop-filter: blur(16px);
  }
  .wizard-mobile-action-bar .wizard-back-button { min-height: 40px; padding: 8px 0; font-size: 8px; white-space: nowrap; }
  .wizard-mobile-action-bar .wizard-later-button { justify-self: center; max-width: 120px; font-size: 7px; line-height: 1.25; text-align: center; }
  .wizard-mobile-action-bar .wizard-next { min-width: 116px; min-height: 42px; padding: 10px 12px; font-size: 11px; }
  .wizard-mobile-action-bar .wizard-next .arrow { margin-left: 7px; }
  .wizard-mobile-action-bar .wizard-back-button:disabled { visibility: hidden; }
  .wizard-mobile-action-bar .wizard-next:focus-visible, .wizard-mobile-action-bar .wizard-back-button:focus-visible, .wizard-mobile-action-bar .wizard-later-button:focus-visible { outline-offset: 2px; }
  .wizard-page:has(.wizard-alert:not([hidden])) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .share-page { padding: 1px 0 120px; }
  .share-shell { width: min(100% - 38px, 1080px); }
  .share-page-heading { margin-top: 43px; }
  .share-page-heading h1 { font-size: clamp(48px, 14vw, 68px); }
  .share-page-heading p { font-size: 12px; }
  .share-identity-card { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .share-identity-photo { width: 56px; height: 65px; }
  .share-identity-copy h2 { font-size: 24px; }
  .share-identity-copy p { display: block; font-size: 7px; line-height: 1.7; }
  .share-status-dot { display: inline-block; margin-right: 5px; }
  .share-identity-separator { padding: 0 5px; }
  .share-identity-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
  .share-hero-panel { display: block; margin-top: 32px; padding: 0 0 35px; }
  .share-hero-copy h2 { font-size: clamp(44px, 13vw, 60px); }
  .share-primary-card { margin-top: 28px; padding: 18px; }
  .share-section { margin-top: 42px; padding-top: 24px; }
  .share-section-heading { display: block; margin-bottom: 17px; }
  .share-section-heading .section-status, .analytics-availability { display: inline-block; margin-top: 14px; }
  .share-section-heading h2 { font-size: 36px; }
  .share-again-button { width: 100%; margin-top: 16px; }
  .share-channel-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .share-channel-button { grid-template-columns: 27px minmax(0, 1fr); gap: 8px; padding: 12px 9px; }
  .share-channel-button .channel-arrow { display: none; }
  .channel-mark { width: 26px; height: 26px; font-size: 7px; }
  .share-channel-button strong { font-size: 11px; }
  .share-channel-button small { font-size: 10px; }
  .share-access-grid { grid-template-columns: 1fr; }
  .share-access-card { padding: 18px; }
  .share-metrics { grid-template-columns: 1fr 1fr; }
  .share-metric { padding: 15px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .share-metric:nth-child(2) { border-right: 0; }
  .share-metric:nth-child(3), .share-metric:nth-child(4) { border-bottom: 0; }
  .share-metric strong { font-size: 33px; }
  .share-breakdown-card, .share-activity-card { padding: 17px; }
  .share-link-row { display: block; padding: 17px; }
  .share-link-row-actions { max-width: none; justify-content: flex-start; margin-top: 17px; }
  .share-revoke-confirmation { grid-template-columns: 25px 1fr; padding: 15px; }
  .share-revoke-confirmation > div:last-child { grid-column: 1 / -1; justify-content: flex-end; }
  .share-mobile-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: block; padding: 9px 19px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(251, 249, 245, .98); box-shadow: 0 -7px 22px rgba(60, 43, 28, .07); backdrop-filter: blur(16px); }
  .share-mobile-action[hidden] { display: none; }
  .share-mobile-action .button { width: 100%; min-height: 44px; }
}

@media (max-width: 360px) {
  .wizard-header { padding-inline: 13px; }
  .wizard-main { padding-inline: 13px; }
  .wizard-section-bar { padding-inline: 13px; }
  .wizard-section-bar .step-nav { margin-inline: -13px; padding-inline: 13px; }
  .wizard-mobile-action-bar { padding-inline: 13px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .wizard-mobile-action-bar .wizard-later-button { max-width: 95px; }
  .wizard-mobile-action-bar .wizard-next { min-width: 108px; }
}

/* Wizard journey map */
.wizard-section-bar {
  padding: 15px 0 11px;
  border: 1px solid rgba(193, 176, 157, .72);
  border-radius: 3px;
  background: rgba(251, 249, 245, .94);
  box-shadow: 0 15px 30px rgba(60, 43, 28, .045);
}
.wizard-section-bar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, .7fr);
  align-items: center;
  gap: 22px;
  padding: 0 16px 13px;
}
.wizard-section-context { min-width: 0; display: flex; align-items: center; gap: 16px; }
.wizard-journey-intro { display: grid; gap: 4px; }
.wizard-journey-intro .eyebrow { color: var(--terra); }
.wizard-journey-intro small { color: var(--ink-muted); font-size: 10px; }
.wizard-section-current { min-width: 0; display: flex; align-items: center; gap: 10px; }
.wizard-current-icon, .nav-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--terra);
  background: var(--paper);
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.wizard-current-icon svg, .nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.wizard-current-copy { min-width: 0; display: grid; gap: 3px; }
.wizard-current-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wizard-current-copy small { color: var(--ink-muted); font-size: 10px; }
.wizard-section-progress { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.wizard-section-progress .wizard-progress-label { color: var(--terra); }
.wizard-section-location { padding-left: 14px; border-left: 1px solid var(--line); }
.wizard-section-bar .step-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0 8px;
  overflow: visible;
}
.wizard-section-bar .step-nav-item {
  position: relative;
  min-width: 0;
  min-height: 70px;
  padding: 10px 10px 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: grid;
  grid-template-columns: 32px 20px minmax(0, 1fr) 15px;
  grid-template-rows: auto auto;
  gap: 5px 8px;
  align-items: center;
  background: transparent;
  color: var(--ink-muted);
  text-align: left;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wizard-section-bar .step-nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  right: -8px;
  width: 9px;
  height: 1px;
  background: var(--line);
}
.wizard-section-bar .step-nav-item:hover { transform: translateY(-2px); border-color: rgba(192, 138, 78, .45); background: rgba(245, 235, 228, .65); color: var(--terra); }
.wizard-section-bar .step-nav-item.is-active { border-color: color-mix(in srgb, var(--terra) 42%, transparent); background: color-mix(in srgb, var(--terra) 10%, var(--paper-soft)); color: var(--ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--terra) 8%, transparent); }
.wizard-section-bar .step-nav-item.is-active .nav-icon { border-color: var(--terra); background: var(--terra); color: var(--paper-soft); transform: scale(1.05); }
.wizard-section-bar .step-nav-item.is-complete .nav-icon { border-color: #91aa8e; color: #5f8060; background: #edf2ea; }
.wizard-section-bar .step-nav-item.is-complete .nav-check { color: #5f8060; }
.wizard-section-bar .nav-icon { grid-row: 1 / 3; }
.wizard-section-bar .nav-number { align-self: end; color: var(--saffron); font-size: 8px; }
.wizard-section-bar .nav-copy { min-width: 0; gap: 2px; }
.wizard-section-bar .nav-copy strong { overflow: visible; font-size: 10px; line-height: 1.15; text-overflow: clip; white-space: normal; }
.wizard-section-bar .nav-copy small { overflow: visible; font-size: 8px; text-overflow: clip; white-space: nowrap; }
.wizard-section-bar .nav-check { align-self: end; color: #b9ad9e; font-size: 12px; opacity: 1; }
.wizard-ritual {
  max-width: 570px;
  min-height: 18px;
  margin: -7px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--terra);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
}
.ritual-icon { width: 15px; height: 15px; flex: none; display: grid; place-items: center; color: var(--saffron); }
.ritual-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.wizard-main.is-entering .wizard-main-heading,
.wizard-main.is-entering .wizard-intro,
.wizard-main.is-entering .wizard-ritual,
.wizard-main.is-entering .wizard-progress-track,
.wizard-main.is-entering .wizard-form {
  animation: wizard-step-arrive .48s cubic-bezier(.22, .8, .25, 1) both;
}
.wizard-main.is-entering .wizard-intro { animation-delay: .035s; }
.wizard-main.is-entering .wizard-ritual { animation-delay: .07s; }
.wizard-main.is-entering .wizard-progress-track { animation-delay: .1s; }
.wizard-main.is-entering .wizard-form { animation-delay: .14s; }
.wizard-section-card, .photo-card, .wizard-guidance { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.wizard-section-card:hover, .photo-card:hover, .wizard-guidance:hover { border-color: rgba(192, 138, 78, .56); box-shadow: 0 10px 24px rgba(60, 43, 28, .055); }
@keyframes wizard-step-arrive {
  from { opacity: .35; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .wizard-section-bar-top { grid-template-columns: minmax(0, 1fr) auto; }
  .wizard-section-current { grid-column: 1; grid-row: 1; }
  .wizard-section-context { grid-column: 1; grid-row: 2; }
  .wizard-section-progress { grid-column: 2; grid-row: 1 / 3; display: grid; justify-items: end; gap: 6px; }
  .wizard-section-progress .wizard-section-location { padding-left: 0; border-left: 0; }
  .wizard-section-bar .step-nav-item { padding-inline: 7px; }
  .wizard-section-bar .nav-copy strong { font-size: 9px; }
}

@media (max-width: 680px) {
  .wizard-section-bar {
    top: 68px;
    margin-inline: 0;
    padding: 12px 12px 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .wizard-section-bar-top { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0 7px 12px; }
  .wizard-section-context { display: none; }
  .wizard-section-current { grid-column: 1; grid-row: 1; }
  .wizard-current-icon { width: 31px; height: 31px; }
  .wizard-current-copy strong { font-size: 12px; }
  .wizard-current-copy small { font-size: 9px; }
  .wizard-section-progress { grid-column: 2; grid-row: 1; display: grid; justify-items: end; gap: 4px; }
  .wizard-section-progress .wizard-progress-label { font-size: 7px; }
  .wizard-section-location { font-size: 8px; }
  .wizard-section-bar .step-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
  }
  .wizard-section-bar .step-nav-item {
    min-height: 55px;
    padding: 6px 2px 5px;
    border-color: transparent;
    border-radius: 3px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 31px 12px;
    gap: 3px;
    justify-items: center;
    text-align: center;
  }
  .wizard-section-bar .step-nav-item:not(:last-child)::after { display: none; }
  .wizard-section-bar .step-nav-item:hover { transform: none; }
  .wizard-section-bar .step-nav-item.is-active { box-shadow: none; }
  .wizard-section-bar .nav-icon { grid-row: 1; width: 29px; height: 29px; }
  .wizard-section-bar .nav-icon svg { width: 15px; height: 15px; }
  .wizard-section-bar .nav-number { grid-row: 2; align-self: center; font-size: 7px; }
  .wizard-section-bar .nav-copy { display: none; }
  .wizard-section-bar .nav-check { position: absolute; top: 2px; right: 3px; font-size: 9px; }
  .wizard-ritual { margin: -4px 0 17px; font-size: 7px; }
  .wizard-layout { margin-top: 42px; }
  .wizard-main-heading > div > .eyebrow { display: none; }
  .wizard-main.is-entering .wizard-form { animation-delay: .1s; }
}

@media (max-height: 560px) and (max-width: 680px) {
  .wizard-mobile-action-bar { min-height: 53px; padding-top: 5px; padding-bottom: 5px; }
  .wizard-mobile-action-bar .wizard-next { min-height: 36px; }
}

@media (max-width: 680px) {
  .design-page, .shared-page { padding: 24px 0 55px; }
  .design-shell, .shared-shell { width: min(100% - 38px, 1140px); }
  .design-shell { display: flex; flex-direction: column; }
  .design-layout { display: contents; }
  .design-controls { display: contents; }
  .design-controls > .eyebrow { order: 1; margin-top: 0; }
  .design-choices { order: 2; width: 100%; }
  .design-intro { display: block; order: 3; margin-top: 42px; }
  .design-intro h1 { font-size: clamp(52px, 15vw, 75px); }
  .design-status { margin-top: 27px; }
  .preview-stage { order: 4; width: 100%; margin-top: 44px; }
  .design-actions { order: 5; width: 100%; }
  .generated-actions { order: 6; width: 100%; }
  .biodata-preview-wrap { min-height: 0; padding: 10px; }
  .biodata-sheet { min-height: 0; padding: 24px 20px; }
  .biodata-identity { padding: 36px 0 25px; }
  .biodata-highlights { grid-template-columns: 1fr; }
  .biodata-photo { width: 78px; height: 95px; }
  .biodata-photo--circle { width: 82px; height: 82px; }
  .biodata-row { grid-template-columns: 95px 1fr; }
  .biodata-paired-row { grid-template-columns: 1fr; }
  .biodata-pair-cell { grid-template-columns: 95px minmax(0, 1fr); padding-right: 0; }
  .biodata-pair-cell + .biodata-pair-cell { padding-left: 0; border-top: 1px solid rgba(222, 213, 200, .72); border-left: 0; }
  .biodata-pair-cell.is-single { grid-column: auto; }
  .biodata-family-grid { grid-template-columns: 1fr; }
  .biodata-family-grid .biodata-family-member:nth-child(2) { border-top: 1px solid rgba(222, 213, 200, .72); padding-top: 8px; }
  .biodata-family-grid .biodata-family-member:first-child { border-top: 0; padding-top: 2px; }
  .template-elegant .biodata-identity { grid-template-columns: 1fr auto; text-align: left; }
  .template-elegant .biodata-identity > div:first-child { justify-items: start; }
  .template-traditional .biodata-identity { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-block: 30px 24px; }
  .template-traditional .biodata-identity h2 { font-size: clamp(29px, 9vw, 44px); }
  .template-modern .biodata-sheet-top, .template-heritage .biodata-sheet-top { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .template-modern .biodata-sheet-top { margin-top: -24px; }
  .template-heritage .biodata-sheet-top { margin-top: -24px; }
  .template-heritage .biodata-section h3::before { margin-left: 0; }
  .template-heritage .biodata-section h3::after { margin-right: 0; }
  .template-minimal .biodata-row { grid-template-columns: 95px 1fr; }
  .template-saanjh .biodata-identity { grid-template-columns: minmax(0, 1fr) 92px; gap: 18px; margin-inline: 8px; padding: 31px 10px 25px; }
  .template-saanjh .biodata-photo--saanjh { width: 92px; height: 118px; border-width: 6px; border-radius: 12px; }
  .template-saanjh .biodata-section { margin-inline: 9px; padding-block: 18px 15px; }
  .template-saanjh .biodata-section h3 { gap: 7px; font-size: 18px; }
  .template-saanjh .saanjh-divider { max-width: 68px; }
  .template-saanjh .biodata-sheet-footer { margin-inline: 9px; }
  .biodata-modern-columns { grid-template-columns: 1fr; }
  .biodata-modern-columns .biodata-section:nth-child(odd), .biodata-modern-columns .biodata-section:nth-child(even) { padding-inline: 0; }
  .share-page { padding-bottom: 65px; }
  .share-shell { width: min(100% - 28px, 680px); }
  .share-page-heading { margin-top: 55px; }
  .share-page-heading h1 { font-size: clamp(52px, 15vw, 75px); }
  .share-page-panel { display: block; margin-top: 42px; }
  .share-panel { display: block; order: 7; margin-top: 60px; padding-top: 50px; }
  .share-panel-card { margin-top: 30px; padding: 21px 17px; }
  .share-card-actions { display: grid; }
  .share-card-actions .button { width: 100%; }
  .share-empty { margin-top: 42px; padding: 45px 21px; }
  .share-link-box { grid-template-columns: 20px minmax(0, 1fr); }
  .share-link-actions { grid-column: 2; justify-content: space-between; }
  .shared-heading { margin: 55px 0 32px; }
  .shared-preview { padding: 10px; }
  .shared-preview .profile-page { padding: 10px; }
  .profile-topline { padding-inline: 2px; font-size: 7px; }
  .profile-hero { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .profile-hero .profile-photo { width: 88px; height: 108px; }
  .profile-hero h2 { font-size: clamp(29px, 9vw, 42px); }
  .profile-intro { font-size: 10px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-panel-family, .profile-panel-lifestyle { grid-column: auto; }
  .profile-panel { padding: 18px 16px; }
  .profile-panel-heading h3 { font-size: 20px; }
  .profile-contact { display: block; padding: 21px 18px; }
  .profile-contact-rows { margin-top: 20px; }
  .profile-footer { flex-direction: column; gap: 5px; }
  .shared-footer-note { align-items: flex-start; text-align: left; }
}

/* Keep the journey map outside the form page so it stays above the wizard on mobile. */
.wizard-navigation-shell { padding-top: 5px; }
.wizard-page { padding-top: 0; }
.wizard-page > .wizard-shell.wizard-editor { padding-top: 0; }

@media (max-width: 680px) {
  .wizard-navigation-shell { width: min(100% - 38px, 1140px); padding-top: 5px; }
  .wizard-page > .wizard-shell.wizard-editor { padding-top: 0; }
}

/* Standalone page entry points */
.standalone-template-list .section-heading { max-width: 700px; margin-bottom: 42px; }
.standalone-template-list .template-tabs { margin-bottom: 34px; }
.template-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 110px; }
.template-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 48px; }
.template-page-heading > div:first-child { max-width: 680px; }
.template-page-heading p { max-width: 560px; color: var(--muted-ink, #736e64); }
.template-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
.template-page-stage { padding: 34px; background: rgba(255,255,255,.44); border: 1px solid var(--line, #ded5c8); }
.template-page-stage .biodata-preview-wrap { max-width: 790px; margin: 0 auto; }
.template-paper { display: block; color: inherit; text-decoration: none; }
.template-paper:focus-visible { outline: 2px solid var(--terra, #9b4f3f); outline-offset: 5px; }
.template-meta h2 { margin: 0; }
.template-meta .select-template { cursor: pointer; }
.standalone-journey { min-height: 64vh; }
.standalone-journey .auth-page,
.standalone-journey .wizard-page,
.standalone-journey .design-page,
.standalone-journey .share-page,
.standalone-journey .shared-page { display: block; }
@media (max-width: 760px) {
  .template-page { width: min(100% - 28px, 680px); padding: 52px 0 72px; }
  .template-page-heading { display: grid; align-items: start; gap: 24px; }
  .template-page-actions { justify-content: flex-start; }
  .template-page-stage { padding: 12px; overflow: hidden; }
}

.wizard-master-wrap { position: relative; }
.wizard-master-input, .wizard-places-input { width: 100%; }
.wizard-master-dropdown, .wizard-places-dropdown {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  box-shadow: 0 12px 28px rgba(60, 43, 28, .12);
}
.wizard-master-option {
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.wizard-master-option:hover, .wizard-master-option:focus {
  background: color-mix(in srgb, var(--terra) 8%, transparent);
  outline: 0;
}
.wizard-master-option--empty, .wizard-master-option--custom {
  color: var(--ink-muted);
}
.wizard-places-name { display: block; font-weight: 500; }
.wizard-places-addr { display: block; color: var(--ink-muted); font-size: 11px; margin-top: 2px; }
.biodata-preview-wrap .biodata-sheet { margin: 0 auto; }
/* Private album (owner wizard) */
.private-album{margin-top:18px;padding:22px 24px;border:1px solid var(--line);background:var(--paper-deep)}
.private-album-copy h3{margin:10px 0 8px;color:var(--plum);font-family:var(--display);font-size:28px;line-height:.95}
.private-album-copy p{max-width:420px;margin:0 0 16px;color:var(--ink-muted);font-size:12px;line-height:1.55}
.album-grid{display:flex;flex-wrap:wrap;gap:10px}
.album-slot{position:relative;width:96px;aspect-ratio:3/4;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--paper-soft)}
.album-slot img{display:block;width:100%;height:100%;object-fit:cover}
.album-slot.is-primary{outline:2px solid var(--terra);outline-offset:1px}
.album-badge{position:absolute;left:4px;bottom:4px;padding:3px 5px;color:var(--paper-soft);background:var(--plum);font-family:var(--mono);font-size:8px;letter-spacing:.05em;text-transform:uppercase}
.album-slot-actions{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;padding:6px;background:linear-gradient(180deg,transparent 35%,rgba(41,40,35,.72));opacity:0;transition:opacity .18s ease}
.album-slot:hover .album-slot-actions,.album-slot:focus-within .album-slot-actions{opacity:1}
.album-action{border:0;border-radius:999px;padding:5px 7px;background:var(--paper-soft);color:var(--plum);font-size:9px;font-weight:600;cursor:pointer}
.album-slot-add{display:grid;place-items:center;gap:4px;border-style:dashed;color:var(--ink-muted);cursor:pointer;text-align:center}
.album-slot-add span{font-family:var(--display);font-size:28px;line-height:1;color:var(--terra)}
.album-slot-add small{font-family:var(--mono);font-size:8px;letter-spacing:.08em;text-transform:uppercase}
@media (max-width:640px){.album-slot{width:84px}.album-slot-actions{opacity:1;background:linear-gradient(180deg,transparent 50%,rgba(41,40,35,.75))}}
