:root {
  color-scheme: light;
  --header-height: 72px;
  --page: #f6f1e7;
  --page-deep: #eee5d5;
  --surface: rgba(255, 252, 245, 0.92);
  --surface-solid: #fffdf8;
  --surface-strong: #fffdf8;
  --surface-muted: #eee8dc;
  --ink: #17231f;
  --ink-soft: #54625d;
  --line: rgba(34, 65, 54, 0.17);
  --line-strong: rgba(34, 65, 54, 0.34);
  --green: #1f5e49;
  --green-soft: #dcece3;
  --gold: #87580f;
  --gold-soft: #f4e3bd;
  --coral: #b95f48;
  --danger: #87372e;
  --focus: #075b9f;
  --shadow: 0 24px 70px rgba(43, 53, 46, 0.12);
  --shadow-soft: 0 12px 35px rgba(43, 53, 46, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --control-height: 48px;
  --panel-padding: clamp(18px, 3vw, 34px);
  --section-gap: clamp(18px, 3vw, 32px);
  --content: min(1180px, calc(100vw - 48px));
  --font-sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Noto Serif KR", "Batang", Georgia, serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e1714;
  --page-deep: #111d19;
  --surface: rgba(21, 34, 29, 0.94);
  --surface-solid: #17251f;
  --surface-strong: #17251f;
  --surface-muted: #22352d;
  --ink: #f3eee4;
  --ink-soft: #aab9b2;
  --line: rgba(220, 236, 227, 0.14);
  --line-strong: rgba(220, 236, 227, 0.3);
  --green: #80c5a6;
  --green-soft: #203f33;
  --gold: #e6b965;
  --gold-soft: #44371f;
  --coral: #ed9e84;
  --danger: #ffaaa0;
  --focus: #8fc9ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 20px);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

main :where(section, [id], textarea, input, button, select) {
  scroll-margin-top: calc(var(--header-height) + env(safe-area-inset-top) + 16px);
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--gold-soft) 54%, transparent) 0, transparent 31rem),
    radial-gradient(circle at 86% 38%, color-mix(in srgb, var(--green-soft) 64%, transparent) 0, transparent 34rem),
    var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  font-kerning: normal;
  font-synthesis: none;
  text-spacing-trim: trim-start;
  text-autospace: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, p, li, label, legend, strong, small, button, .card-result) {
  text-wrap: pretty;
  hanging-punctuation: first allow-end last;
}

:where(h1, h2, h3, legend, .preview-heading p) {
  max-inline-size: 100%;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

:where(.hero-description, .voice-promise, .transcription-boundary, .privacy-promise, .product-boundary p,
  .section-heading > p:not(.step-label),
  .compact-heading > p:not(.step-label), .message p, .lens-detail,
  .original-note p, .result-lens-detail, .share-boundary, .card-alt,
  .connected-invite p, .site-footer p) {
  hanging-punctuation: first allow-end last;
  text-wrap: pretty;
}

:where(.view, .hero-grid, .studio-grid, .result-grid, .role-section, .tone-selector,
  .conversation-panel, .boundary-panel, .result-editor-panel, .card-preview-wrap,
  .message, .message > div, .composer, .reflection-area, .lens-area,
  .lens-card-shell, .result-lens-shell, .share-card) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

html:lang(zh), html:lang(vi), html:lang(fil), html:lang(km), html:lang(mn), html:lang(ru),
html:lang(ja), html:lang(th), html:lang(lo), html:lang(uz), html:lang(ne) {
  --font-sans: system-ui, "Noto Sans", "Segoe UI", sans-serif;
  --font-serif: system-ui, "Noto Serif", "Segoe UI", sans-serif;
}

html:lang(zh) body, html:lang(vi) body, html:lang(fil) body, html:lang(km) body,
html:lang(mn) body, html:lang(ru) body, html:lang(ja) body, html:lang(th) body,
html:lang(lo) body, html:lang(uz) body, html:lang(ne) body {
  word-break: normal;
  line-break: auto;
  text-spacing-trim: normal;
}

html:lang(zh) body,
html:lang(ja) body { line-break: strict; }

html:lang(en) body,
html:lang(vi) body,
html:lang(fil) body,
html:lang(mn) body,
html:lang(ru) body,
html:lang(uz) body,
html:lang(ne) body { hyphens: auto; }

html:lang(zh) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(vi) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(fil) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(km) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(mn) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(ru) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(ja) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(th) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(lo) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(uz) :where(h1, h2, h3, strong, em, button, .eyebrow),
html:lang(ne) :where(h1, h2, h3, strong, em, button, .eyebrow) {
  letter-spacing: normal;
}

button, select, textarea, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--page) 88%, transparent);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--page);
  font-weight: 800;
}

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

.locale-bootstrap-error {
  width: var(--content);
  min-height: calc(100dvh - var(--header-height));
  margin-inline: auto;
  display: grid;
  align-content: center;
  gap: 14px;
  padding-block: 48px;
}

.locale-bootstrap-error h1 { max-width: 760px; margin: 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.35; }
.locale-bootstrap-error p { max-width: 760px; margin: 0; color: var(--ink-soft); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: calc(var(--header-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  isolation: isolate;
}

.header-inner {
  width: var(--content);
  min-width: 0;
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(10px, 2vw, 24px);
}

.brand {
  min-width: 0;
  min-height: 44px;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand-mark img { width: 33px; height: 33px; object-fit: contain; }
.brand-copy { min-width: 0; display: grid; overflow: hidden; line-height: 1.15; }
.brand-copy strong,
.brand-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { font-size: 16px; letter-spacing: -0.04em; }
.brand-copy small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; font-weight: 650; letter-spacing: -0.02em; }

.header-actions {
  min-width: 0;
  max-width: 100%;
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}

.header-actions > *,
.language-control { flex: 0 0 auto; }
.language-control { position: relative; min-width: 0; display: block; }

.test-badge {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line));
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.language-control select,
.icon-text-button,
.theme-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.language-control select {
  min-width: 104px;
  padding: 0 34px 0 14px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  cursor: pointer;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.icon-text-button svg,
.theme-button svg,
.primary-button svg,
.safety-card-button svg,
.back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-button {
  width: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.theme-button .moon-icon { display: none; }
html[data-theme="dark"] .theme-button .sun-icon { display: none; }
html[data-theme="dark"] .theme-button .moon-icon { display: block; }
.voice-button.is-speaking,
.local-dictation.is-listening { border-color: var(--green); background: var(--green-soft); color: var(--green); }

[data-voice-current="true"] {
  position: relative;
  outline: 3px solid color-mix(in srgb, var(--green) 72%, CanvasText);
  outline-offset: 4px;
  box-shadow: inset 5px 0 0 var(--green), 0 0 0 7px color-mix(in srgb, var(--green-soft) 62%, transparent);
  border-radius: 8px;
  transition: outline-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

html[dir="rtl"] [data-voice-current="true"] {
  box-shadow: inset -5px 0 0 var(--green), 0 0 0 7px color-mix(in srgb, var(--green-soft) 62%, transparent);
}

@media (forced-colors: active) {
  [data-voice-current="true"] {
    outline: 3px solid Highlight;
    box-shadow: inset 5px 0 0 Highlight;
    forced-color-adjust: auto;
  }
  html[dir="rtl"] [data-voice-current="true"] { box-shadow: inset -5px 0 0 Highlight; }
}

@media (prefers-reduced-motion: reduce) {
  [data-voice-current="true"] { transition: none; }
}

main {
  width: var(--content);
  max-width: 100%;
  min-height: calc(100dvh - var(--header-height));
  margin-inline: auto;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top) + clamp(24px, 4vh, 48px));
  padding-bottom: env(safe-area-inset-bottom);
}

.view[hidden] { display: none !important; }
.view {
  width: 100%;
  min-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top) - clamp(24px, 4vh, 48px));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.eyebrow,
.step-label {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 15%, transparent); }

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

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.hero-copy h1 span,
.hero-copy h1 em { display: block; }
.hero-copy h1 em { color: var(--green); font-style: normal; }

.hero-description {
  max-width: 730px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.9;
}

.intro-lens-map {
  max-width: 760px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 94%, transparent), color-mix(in srgb, var(--green-soft) 52%, var(--surface-solid)));
  box-shadow: var(--shadow-soft);
}

.intro-lens-heading {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.intro-lens-heading > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.intro-lens-heading > p strong {
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-radius: 999px;
  background: var(--green-soft);
  letter-spacing: 0;
}

.intro-lens-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.45;
  letter-spacing: -.025em;
}

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

.intro-lens-grid > span {
  min-width: 0;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
}

.intro-lens-grid small {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
}

.intro-lens-grid strong {
  min-width: 0;
  font-size: 11px;
  line-height: 1.38;
}

.intro-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.intro-flow li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.intro-flow b {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 9px;
}

.voice-promise {
  max-width: 720px;
  margin: 0 0 9px;
  padding-left: 15px;
  border-left: 2px solid var(--green);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.transcription-boundary {
  margin: -4px 0 10px;
  padding-left: 13px;
  border-left: 2px solid color-mix(in srgb, var(--green) 65%, transparent);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
}

.privacy-promise {
  max-width: 720px;
  margin: 0 0 13px;
  padding-left: 15px;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.easy-voice-start {
  display: inline-flex;
  min-height: 62px;
  margin: -4px 0 18px;
  padding: 10px 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 55%, var(--line));
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.easy-voice-start svg { width: 25px; height: 25px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.easy-voice-start span, .easy-voice-start strong, .easy-voice-start small { display: block; }
.easy-voice-start strong { color: var(--ink); font-size: 14px; }
.easy-voice-start small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.easy-voice-start:hover { border-color: var(--green); transform: translateY(-1px); }
.easy-voice-start:disabled { opacity: 0.46; cursor: not-allowed; transform: none; }

.access-panel {
  display: grid;
  max-width: 760px;
  margin: 0 0 14px;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 22px;
  gap: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--green-soft)), var(--surface));
  box-shadow: var(--shadow-soft);
}
.access-kicker { margin: 0; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.access-panel h2 { margin: 0; color: var(--ink); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
.access-description { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.access-actions { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 10px; }
.perspective-explore-link { width: 100%; min-height: 62px; margin: 0; justify-content: center; }
.perspective-explore-link > span { display: grid; min-width: 0; gap: 2px; text-align: left; }
.perspective-explore-link strong, .perspective-explore-link small { display: block; }
.perspective-explore-link strong { font-size: 14px; }
.perspective-explore-link small { font-size: 10px; font-weight: 650; opacity: .78; }
.access-actions .easy-voice-start { width: 100%; min-height: 62px; margin: 0; }
.access-panel .privacy-strip { margin: 0; }

.privacy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.privacy-strip > span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 2px; }
.privacy-language { display: inline-flex; align-items: baseline; gap: 4px; }
.privacy-language strong { color: var(--green); font-size: 13px; }

.product-boundary {
  max-width: 760px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.product-boundary > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .1em;
}

.product-boundary > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.product-boundary p {
  margin: 0;
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.55;
}

.hero-actions,
.inline-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button,
.reset-button,
.back-button {
  min-height: var(--control-height);
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid color-mix(in srgb, var(--green) 68%, black);
  background: var(--green);
  color: var(--page);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--green) 24%, transparent);
}

html[data-theme="dark"] .primary-button { color: #0b1712; }
.primary-button:disabled { opacity: 0.46; cursor: not-allowed; box-shadow: none; }
.primary-button:not(:disabled):hover { transform: translateY(-1px); }

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.text-button {
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--danger);
}

.hero-garden {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface-solid), color-mix(in srgb, var(--green-soft) 56%, var(--surface-solid)));
  box-shadow: var(--shadow);
}

.garden-orbit {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold-soft) 48%, transparent), transparent 62%);
}

.garden-orbit::before,
.garden-orbit::after { content: ""; position: absolute; inset: 14%; border: 1px dashed var(--line-strong); border-radius: inherit; }
.garden-orbit::after { inset: 30%; }

.garden-core {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.garden-core img { width: 96px; height: 96px; object-fit: contain; }

.orbit-leaf {
  position: absolute;
  z-index: 3;
  min-width: 62px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.leaf-one { top: 6%; left: 39%; }
.leaf-two { top: 24%; right: 3%; }
.leaf-three { bottom: 22%; right: 2%; }
.leaf-four { bottom: 5%; left: 39%; }
.leaf-five { bottom: 22%; left: 2%; }
.leaf-six { top: 24%; left: 2%; }
.hero-garden > p { margin: 22px 0 0; color: var(--ink-soft); text-align: center; font-size: 13px; }

.role-section { margin-top: clamp(42px, 6vh, 72px); padding-bottom: 64px; }
.tone-selector {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
}
.tone-selector legend { padding: 0 8px; color: var(--ink); font-weight: 800; }
.tone-selector > p { margin: 2px 0 16px; color: var(--ink-soft); font-size: 12px; }
.tone-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tone-button {
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.tone-button > span { display: inline-grid; width: 28px; height: 28px; margin-bottom: 8px; place-items: center; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 900; }
.tone-button strong, .tone-button small { display: block; }
.tone-button strong { font-size: 13px; }
.tone-button small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.tone-button:hover, .tone-button.is-selected { border-color: var(--green); background: var(--green-soft); box-shadow: var(--shadow-soft); }
.compact-heading { max-width: 760px; }
.section-heading h2,
.connected-invite h2 {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.32;
  letter-spacing: -0.045em;
}
.section-heading > p:not(.step-label), .compact-heading > p:not(.step-label), .connected-invite p { color: var(--ink-soft); }

.role-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.role-card {
  min-height: 142px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.role-card:hover, .role-card.is-selected { border-color: var(--green); background: var(--green-soft); box-shadow: var(--shadow-soft); }
.role-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-solid); color: var(--green); font-size: 12px; font-weight: 900; }
.role-card strong { font-size: 14px; }
.role-card small { color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.role-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; }
.role-actions p { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 12px; }

.view-toolbar {
  min-height: 50px;
  margin-bottom: 20px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.view-toolbar p { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 12px; }
.view-toolbar p strong { color: var(--green); }
.back-button { min-width: 86px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr); gap: 22px; align-items: start; padding-bottom: 80px; }

.conversation-panel,
.boundary-panel,
.result-editor-panel,
.card-preview-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.conversation-panel { padding: var(--panel-padding); }
.conversation-panel .section-heading { padding-bottom: 24px; border-bottom: 1px solid var(--line); }

.dialogue {
  max-height: none;
  min-height: 136px;
  margin: 24px 0;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-padding-bottom: 20px;
}

.safety-nudge {
  margin: -8px 0 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 36%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--danger) 7%, var(--surface-solid));
}
.safety-nudge[hidden] { display: none !important; }
.safety-nudge strong { display: block; margin-bottom: 4px; color: var(--danger); font-size: 13px; }
.safety-nudge p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.safety-nudge .secondary-button { flex: 0 0 auto; min-height: 44px; }

.message { display: flex; align-items: flex-start; gap: 10px; }
.message > div { min-width: 0; max-width: min(90%, 720px); padding: 14px 16px; border-radius: 6px 18px 18px 18px; background: var(--green-soft); }
.message strong { display: block; margin-bottom: 4px; color: var(--green); font-size: 12px; }
.message p { margin: 0; line-height: 1.75; overflow-wrap: anywhere; }
.speaker-mark { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--page); font-family: var(--font-serif); font-weight: 900; }

.user-message { justify-content: flex-end; }
.user-message > div { order: 1; border-radius: 18px 6px 18px 18px; background: var(--gold-soft); }
.user-message .speaker-mark { order: 2; background: var(--gold); color: #19140b; }
.user-message strong { color: color-mix(in srgb, var(--gold) 76%, var(--ink)); }

.composer,
.reflection-area { padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-solid); }
.composer label,
.reflection-area label,
.result-label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 13px; font-weight: 850; }

textarea {
  width: 100%;
  resize: vertical;
  border: 0;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--ink);
  line-height: 1.72;
}

textarea::placeholder { color: var(--ink-soft); opacity: 0.92; }
.composer textarea, .reflection-area textarea { min-height: 84px; padding: 12px 14px; }
#thoughtInput { overflow-y: hidden; }
#thoughtInput.is-scrollable { overflow-y: auto; }
.dictation-help { margin: 8px 2px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.dictation-status {
  min-height: 46px;
  margin: 9px 0 0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dictation-status[data-state="ready"] { border-color: color-mix(in srgb, var(--green) 38%, var(--line)); background: var(--green-soft); color: var(--green); }
.dictation-status[data-state="busy"] { border-color: color-mix(in srgb, var(--gold) 42%, var(--line)); background: var(--gold-soft); color: var(--gold); }
.dictation-status[data-state="error"] { border-color: color-mix(in srgb, var(--danger) 42%, var(--line)); background: color-mix(in srgb, var(--danger) 9%, var(--surface-solid)); color: var(--danger); }
.dictation-transcript {
  min-width: 0;
  margin-top: 8px;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--green-soft) 58%, var(--surface-solid));
  color: var(--ink);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.dictation-transcript[hidden] { display: none; }
.dictation-transcript strong { color: var(--green); font-size: 10px; letter-spacing: 0.02em; }
.dictation-transcript output { display: block; min-width: 0; white-space: pre-wrap; }
.composer-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-submit { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.composer-submit > span { color: var(--ink-soft); font-size: 12px; }
.small-button { min-height: 44px; padding-inline: 18px; font-size: 13px; }
.local-dictation { min-height: 44px; gap: 7px; font-size: 12px; }
.local-dictation svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.local-dictation:disabled { opacity: 0.48; cursor: wait; }

.lens-area { min-width: 0; margin-top: 24px; padding: 0; border: 0; }
.lens-heading h3 { margin-bottom: 8px; font-size: 22px; }
.lens-heading p:not(.step-label) { color: var(--ink-soft); font-size: 13px; }
.value-compass {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--green);
  border-radius: 0 11px 11px 0;
  background: var(--green-soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.section-heading .value-compass { color: var(--ink); }
.value-compass-goal { margin: 14px 0 0; }
.lens-progress { margin: 12px 0 16px; padding: 10px 12px; display: flex; align-items: baseline; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 11px; }
.lens-progress[hidden] { display: none !important; }
.lens-progress strong { color: var(--green); white-space: nowrap; }
.lens-progress span { color: var(--ink-soft); }
.lens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lens-card-shell,
.result-lens-shell { min-width: 0; display: grid; align-content: start; gap: 7px; }
.lens-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-solid);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.lens-card > input { width: 18px; height: 18px; margin: 7px 0 0; accent-color: var(--green); cursor: pointer; }
.lens-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 900; }
.lens-copy { min-width: 0; display: grid; gap: 5px; }
.lens-copy > strong { font-size: 15px; line-height: 1.4; }
.lens-copy > small { margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.lens-content,
.result-lens-content { min-width: 0; display: grid; gap: 0; }
.lens-detail { display: block; padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.72; overflow-wrap: anywhere; }
.lens-body { color: var(--ink); }
.lens-question { color: var(--green); }
.lens-practice { color: var(--gold); }
.lens-card:hover, .lens-card.is-selected { border-color: var(--green); background: color-mix(in srgb, var(--green-soft) 76%, var(--surface-solid)); }
.lens-card:focus-within { outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent); outline-offset: 2px; }
.lens-card.is-selected { box-shadow: inset 4px 0 0 var(--green); }
.lens-read-button {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.lens-read-button:hover,
.lens-read-button:focus-visible,
.lens-read-button.is-speaking { border-color: var(--green); background: var(--green-soft); }
.lens-read-button.is-speaking::before { content: "● "; }
.lens-read-button[hidden] { display: none !important; }

.reflection-area { margin-top: 22px; }
.current-lens { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--green); font-size: 12px; font-weight: 750; line-height: 1.65; }
.inline-actions { justify-content: flex-end; margin-top: 14px; }

.boundary-panel { position: static; padding: 24px; }
.boundary-kicker { margin-bottom: 12px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.boundary-panel h3 { margin-bottom: 16px; font-size: 21px; line-height: 1.48; }
.boundary-panel ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 13px; }
.boundary-panel li + li { margin-top: 10px; }
.safety-card-button { width: 100%; min-height: 48px; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--danger) 8%, var(--surface-solid)); color: var(--danger); font-weight: 850; cursor: pointer; }

.result-view { padding-bottom: 80px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr); gap: 24px; align-items: start; }
.result-editor-panel { padding: var(--panel-padding); }
.original-note { margin: 24px 0 20px; padding: 16px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--gold-soft); }
.original-note span { color: var(--ink-soft); font-size: 11px; font-weight: 850; }
.original-note p { margin: 7px 0 0; line-height: 1.75; white-space: pre-wrap; }
.result-lens-review { margin: 0 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.result-lens-heading { margin-bottom: 14px; display: grid; gap: 7px; }
.result-lens-heading h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.5; }
.result-lens-heading > p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.result-lens-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.result-lens-grid { display: grid; gap: 12px; }
.result-lens-card { min-width: 0; display: grid; grid-template-columns: 20px 30px minmax(0, 1fr); align-items: start; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); cursor: pointer; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.result-lens-card > input { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--green); cursor: pointer; }
.result-lens-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 900; }
.result-lens-copy { min-width: 0; display: grid; gap: 5px; }
.result-lens-copy > strong { font-size: 14px; line-height: 1.4; }
.result-lens-copy > small { color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.result-lens-detail { display: block; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; line-height: 1.68; overflow-wrap: anywhere; }
.result-lens-body { color: var(--ink); }
.result-lens-question { color: var(--green); }
.result-lens-practice { color: var(--gold); }
.result-lens-card:hover, .result-lens-card.is-selected { border-color: var(--green); background: color-mix(in srgb, var(--green-soft) 76%, var(--surface-solid)); }
.result-lens-card:focus-within { outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent); outline-offset: 2px; }
.result-lens-card.is-selected { box-shadow: inset 4px 0 0 var(--green); }
.result-lens-apply { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-lens-apply p { min-width: 0; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.result-lens-apply button { flex: 0 0 auto; }
#resultInput { min-height: clamp(158px, 23vh, 220px); padding: 16px; border: 1px solid var(--line); }
.result-counter { margin-top: 7px; display: flex; justify-content: flex-end; gap: 5px; color: var(--ink-soft); font-size: 11px; }
.result-counter strong { color: var(--green); }
.result-actions { margin-top: 16px; }
.share-boundary { margin: 14px 0 0; color: var(--ink-soft); font-size: 11px; }
.reset-button { width: 100%; margin-top: 26px; border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--line)); background: transparent; color: var(--danger); }

.card-preview-wrap { position: static; padding: 18px; }
.preview-heading { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.preview-heading p { margin: 0; font-weight: 900; }
.preview-heading span { color: var(--ink-soft); }
.share-card { min-height: clamp(520px, 64vh, 620px); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; overflow: visible; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--line)); border-radius: 24px; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold-soft) 88%, transparent), transparent 42%), linear-gradient(150deg, var(--surface-solid), color-mix(in srgb, var(--green-soft) 72%, var(--surface-solid))); box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--surface-solid) 60%, transparent); }
.card-brand { display: flex; align-items: center; gap: 9px; }
.card-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; background: #fff; }
.card-brand span { display: grid; line-height: 1.15; }
.card-brand strong { font-size: 12px; }
.card-brand small { margin-top: 3px; color: var(--ink-soft); font-size: 8px; }
.card-eyebrow { margin: clamp(28px, 5vh, 48px) 0 7px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.card-lenses { margin: 0 0 16px; color: var(--ink-soft); font-size: 9px; font-weight: 750; line-height: 1.5; }
.card-result { margin: 0; font-family: var(--font-serif); font-size: clamp(21px, 2.6vw, 31px); font-weight: 750; line-height: 1.6; letter-spacing: -0.035em; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-card[data-density="balanced"] .card-result { font-size: clamp(18px, 2.1vw, 25px); line-height: 1.58; }
.share-card[data-density="compact"] .card-result { font-size: clamp(16px, 1.8vw, 21px); line-height: 1.54; }
.card-footer { margin: auto 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.card-alt { margin: 12px 2px 0; color: var(--ink-soft); font-size: 11px; }

.connected-invite {
  margin: 0 auto 76px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface), var(--green-soft));
}
.connected-invite[hidden] { display: none !important; }
.connected-invite h2 { max-width: 760px; font-size: clamp(24px, 2.5vw, 34px); }
.connected-invite p { margin-bottom: 0; }
.connected-invite .secondary-button { flex: 0 0 auto; }

.site-footer {
  width: var(--content);
  margin-inline: auto;
  padding: 26px 0 calc(28px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}
.site-footer p { margin-bottom: 4px; }
.footer-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--green); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.3);
}
.modal::backdrop { background: rgba(5, 13, 10, 0.62); backdrop-filter: blur(7px); }
.modal-shell { position: relative; max-height: min(820px, calc(100dvh - 32px)); padding: clamp(28px, 5vw, 52px); overflow-y: auto; }
.dialog-read-button { min-height: 44px; margin: 16px 0 4px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.modal h2 { max-width: 580px; margin-bottom: 18px; font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.35; letter-spacing: -0.045em; }
.modal h2 + p { color: var(--ink-soft); }
.goal-flow { margin: 26px 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.goal-flow li { min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.goal-flow span { color: var(--gold); font-size: 11px; font-weight: 900; }
.goal-flow strong { font-size: 14px; }
.goal-boundary { padding: 18px; border-radius: 14px; background: var(--gold-soft); }
.goal-boundary strong { display: block; margin-bottom: 7px; color: var(--danger); }
.goal-boundary p { margin: 0; font-size: 13px; }

.help-sentence { margin: 24px 0; padding: 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--green-soft); }
.help-sentence > span { color: var(--green); font-size: 11px; font-weight: 900; }
.help-sentence p { margin: 12px 0 16px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; line-height: 1.65; }
.safety-steps, .privacy-list { padding-left: 22px; color: var(--ink-soft); }
.safety-steps li + li, .privacy-list li + li { margin-top: 10px; }
.privacy-contact { margin-top: 22px; padding: 16px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.privacy-contact strong { font-size: 12px; }
.privacy-contact a { width: fit-content; color: var(--green); font-weight: 850; text-underline-offset: 3px; }
.privacy-contact small { color: var(--ink-soft); }

.experience-result-progress {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.feedback-category-label {
  margin: 22px 0 8px;
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.feedback-dialog select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.feedback-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.feedback-actions .primary-button { text-decoration: none; }
.feedback-address { margin: 16px 0 0; color: var(--green); font-size: 13px; }
.feedback-boundary { margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }

.beta-notice-dialog { width: min(640px, calc(100vw - 32px)); }
.beta-notice-shell { display: grid; min-width: 0; gap: 14px; overflow-wrap: anywhere; }
.beta-notice-dialog h2 { max-width: calc(100% - 44px); margin: 2px 0 0; text-wrap: balance; }
.beta-notice-description { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.beta-notice-privacy { display: grid; min-width: 0; margin: 2px 0 0; padding: 15px 16px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 14px; gap: 4px; background: color-mix(in srgb, var(--green) 6%, var(--surface)); }
.beta-notice-privacy strong { color: var(--green); font-size: 12px; }
.beta-notice-privacy span { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.beta-notice-actions { display: grid; min-width: 0; margin-top: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.beta-notice-actions > button { width: 100%; min-width: 0; min-height: 48px; white-space: normal; }
.beta-notice-session { width: fit-content; max-width: 100%; min-height: 44px; margin: -4px auto 0; padding: 8px 10px; border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.beta-notice-dialog :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  min-width: min(320px, calc(100vw - 32px));
  max-width: 560px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

html[data-tone="easy"] .conversation-panel,
html[data-tone="easy"] .result-editor-panel { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); box-shadow: 0 24px 70px color-mix(in srgb, var(--green) 12%, transparent); }
html[data-tone="easy"] .message { border-radius: 20px; }
html[data-tone="easy"] .speaker-mark { background: var(--gold-soft); color: var(--danger); }
html[data-tone="easy"] .lens-card { border-radius: 18px; }
html[data-tone="easy"] .current-lens { font-size: 14px; line-height: 1.75; }

@media (min-width: 981px) {
  .intro-view {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    align-items: start;
    gap: clamp(34px, 5vw, 70px);
    padding-bottom: clamp(34px, 5vh, 58px);
  }
  .intro-view .hero-grid { display: block; }
  .intro-view .hero-garden { display: none; }
  .intro-view .hero-copy h1 { margin-bottom: 14px; font-size: clamp(34px, 3.4vw, 48px); }
  .intro-view .hero-description { margin-bottom: 14px; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.72; }
  .intro-view .intro-lens-map { margin-bottom: 13px; padding: 13px; }
  .intro-view .privacy-strip { margin-bottom: 10px; padding-block: 9px; }
  .intro-view .voice-promise { margin-bottom: 8px; }
  .intro-view .privacy-promise { margin-bottom: 10px; }
  .intro-view .role-section { margin: 0; padding: 0; }
  .intro-view .tone-selector { margin-bottom: 20px; padding: 18px; }
  .intro-view .tone-selector > p { margin-bottom: 12px; }
  .intro-view .tone-button { min-height: 68px; padding: 10px; }
  .intro-view .tone-button > span { width: 24px; height: 24px; margin-bottom: 5px; }
  .intro-view .section-heading h2 { font-size: clamp(25px, 2.4vw, 34px); }
  .intro-view .section-heading > p:not(.step-label) { margin-bottom: 0; font-size: 12px; }
  .intro-view .step-label { margin-bottom: 10px; }
  .intro-view .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .intro-view .role-card { min-height: 86px; padding: 11px 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 2px 8px; }
  .intro-view .role-symbol { grid-row: 1 / 3; width: 30px; height: 30px; }
  .intro-view .role-card strong { align-self: end; font-size: 12px; line-height: 1.35; }
  .intro-view .role-card small { align-self: start; font-size: 9px; }
  .intro-view .role-actions { margin-top: 14px; }
  .intro-view .role-actions p { font-size: 11px; }
}

html:lang(ko) :where(
  .hero-description, .access-description, .voice-promise, .transcription-boundary,
  .privacy-promise, .product-boundary p, .section-heading > p:not(.step-label),
  .compact-heading > p:not(.step-label), .dictation-help, .share-boundary,
  .connected-invite p, .site-footer p, .modal h2 + p, .goal-boundary p,
  .safety-steps li, .privacy-list li, .beta-notice-description,
  .beta-notice-privacy span, .feedback-boundary
) {
  text-align: justify;
  text-align-last: start;
  text-justify: inter-character;
}

html:not(:lang(ko)) :where(
  .hero-description, .access-description, .voice-promise, .transcription-boundary,
  .privacy-promise, .product-boundary p, .section-heading > p:not(.step-label),
  .compact-heading > p:not(.step-label), .dictation-help, .share-boundary,
  .connected-invite p, .site-footer p, .modal h2 + p, .goal-boundary p,
  .safety-steps li, .privacy-list li, .beta-notice-description,
  .beta-notice-privacy span, .feedback-boundary
) {
  text-align: start;
  text-align-last: auto;
}

@media (min-width: 981px) and (max-height: 780px) {
  main { padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 22px); }
  .intro-view {
    gap: clamp(26px, 4vw, 48px);
    padding-bottom: 26px;
  }
  .intro-view .hero-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 3.8vw, 50px);
    line-height: 1.18;
  }
  .intro-view .hero-description { margin-bottom: 12px; line-height: 1.68; }
  .intro-view .intro-lens-map { margin-bottom: 10px; padding: 11px; }
  .intro-view .intro-lens-heading { margin-bottom: 8px; }
  .intro-view .intro-lens-grid > span { min-height: 37px; padding: 6px 7px; }
  .intro-view .intro-flow { margin-top: 7px; padding-top: 7px; }
  .intro-view .privacy-strip { margin-bottom: 12px; padding-block: 9px; }
  .intro-view .voice-promise { margin-bottom: 7px; line-height: 1.5; }
  .intro-view .privacy-promise { margin-bottom: 8px; line-height: 1.48; }
  .intro-view .access-panel { padding: 12px; gap: 8px; }
  .intro-view .perspective-explore-link,
  .intro-view .access-actions .easy-voice-start { min-height: 52px; }
  .intro-view .product-boundary { padding: 10px 12px; }
  .intro-view .tone-selector { margin-bottom: 14px; padding: 14px; }
  .intro-view .tone-button { min-height: 60px; padding: 8px; }
  .intro-view .section-heading h2 { font-size: clamp(22px, 2.2vw, 29px); }
  .intro-view .role-grid { margin-top: 12px; }
  .intro-view .role-card { min-height: 72px; padding-block: 8px; }
  .intro-view .role-actions { margin-top: 10px; }
}

@media (max-width: 1180px) and (min-width: 721px) {
  .test-badge { display: none; }
  .icon-text-button { width: 44px; flex: 0 0 44px; padding: 0; }
  .icon-text-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 980px) {
  :root { --content: min(100% - 32px, 820px); --panel-padding: clamp(20px, 4vw, 28px); }
  .test-badge { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-garden { max-width: 540px; width: 100%; margin-inline: auto; }
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-grid, .result-grid { grid-template-columns: 1fr; }
  .boundary-panel, .card-preview-wrap { position: static; }
  .boundary-panel { order: initial; }
  .card-preview-wrap { max-width: 620px; width: 100%; margin-inline: auto; }
}

@media (min-width: 721px) and (max-width: 980px) {
  main { padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 24px); }
  .hero-copy,
  .role-section,
  .studio-view,
  .result-view { width: min(100%, 760px); margin-inline: auto; }
  .hero-description { max-width: 44em; }
  .tone-selector { padding: 20px; }
  .studio-grid,
  .result-grid { gap: 20px; }
  .conversation-panel,
  .result-editor-panel { padding: var(--panel-padding); }
  .boundary-panel { width: min(100%, 620px); margin-inline: auto; }
  .card-preview-wrap { width: min(100%, 640px); }
}

@media (max-width: 720px) {
  :root { --header-height: 64px; --content: calc(100% - 24px); --panel-padding: 18px; }
  body { line-height: 1.65; }
  .header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .brand { width: auto; max-width: 100%; flex: 1 1 auto; align-self: center; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .brand-mark img { width: 30px; height: 30px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .header-actions { width: auto; align-self: center; gap: 5px; }
  .language-control select { min-width: 76px; width: 76px; padding: 0 24px 0 10px; font-size: 12px; }
  .icon-text-button { width: 44px; flex: 0 0 44px; padding: 0; }
  .icon-text-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main { padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 14px); }
  .view { min-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top) - 14px); }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy h1 { order: 2; margin-bottom: 14px; font-size: clamp(30px, 9vw, 42px); }
  .hero-description { order: 3; }
  .intro-lens-map { order: 4; }
  .access-panel { order: 5; }
  .access-actions { grid-template-columns: 1fr; }
  .perspective-explore-link { order: 5; width: 100%; margin: 0 0 9px; }
  .easy-voice-start { order: 6; width: 100%; margin: 0 0 12px; justify-content: center; }
  .privacy-strip { order: 7; }
  .voice-promise { order: 8; }
  .transcription-boundary { order: 9; }
  .privacy-promise { order: 10; }
  .product-boundary { order: 10; }
  .access-actions .perspective-explore-link,
  .access-actions .easy-voice-start { margin: 0; }
  .hero-description { font-size: 15px; line-height: 1.72; }
  .hero-garden { display: none; }
  .garden-core { width: 88px; height: 88px; border-radius: 26px; }
  .garden-core img { width: 76px; height: 76px; }
  .orbit-leaf { min-width: 52px; padding: 6px 8px; font-size: 10px; }
  .role-section { margin-top: 26px; padding-bottom: 44px; }
  .tone-selector { margin-bottom: 24px; padding: 15px; }
  .tone-selector > p { margin-bottom: 10px; }
  .tone-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tone-button { min-height: 62px; padding: 8px; text-align: center; }
  .tone-button > span { width: 24px; height: 24px; margin: 0 auto 4px; }
  .tone-button strong { font-size: 11px; }
  .tone-button small { display: none; }
  .section-heading h2, .connected-invite h2 { font-size: clamp(24px, 7.2vw, 32px); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card { min-height: 92px; padding: 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 2px 8px; }
  .role-symbol { grid-row: 1 / 3; width: 30px; height: 30px; }
  .role-card strong { align-self: end; font-size: 12px; line-height: 1.35; }
  .role-card small { align-self: start; font-size: 9px; }
  .studio-view, .result-view { padding-bottom: 52px; }
  .conversation-panel, .result-editor-panel { padding: 18px; border-radius: 18px; }
  .conversation-panel .section-heading { padding-bottom: 18px; }
  .dialogue { min-height: 104px; margin-block: 17px; }
  .dialogue { max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .lens-grid { grid-template-columns: 1fr; }
  .connected-invite { align-items: stretch; flex-direction: column; margin-bottom: 52px; padding: 22px; }
  .connected-invite .secondary-button { width: 100%; }
  .site-footer { flex-direction: column; gap: 10px; }
  .toast {
    top: calc(var(--header-height) + env(safe-area-inset-top) + 10px);
    bottom: auto;
  }
}

@media (max-width: 560px) {
  .brand-copy small { display: none; }
}

@media (max-width: 460px) {
  :root { --content: calc(100% - 24px); }
  .header-inner { gap: 6px; }
  .brand { gap: 6px; }
  .header-actions { gap: 4px; }
  .language-control select { width: 64px; min-width: 64px; padding-inline: 8px 18px; font-size: 11px; }
  .hero-copy h1 { font-size: clamp(32px, 10.6vw, 42px); }
  .intro-lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-flow { grid-template-columns: 1fr; }
  .product-boundary > div { grid-template-columns: 1fr; }
  .privacy-strip { gap: 6px 12px; padding: 10px 12px; }
  .hero-actions > * { width: 100%; }
  .role-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tone-selector { padding: 16px; }
  .tone-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tone-button { min-height: 58px; }
  .role-card { min-height: 82px; padding: 10px; }
  .role-card small { display: none; }
  .view-toolbar { align-items: flex-start; }
  .view-toolbar p { align-items: flex-end; flex-direction: column; gap: 2px; text-align: right; }
  .message > div { max-width: calc(100% - 44px); }
  .composer-footer { align-items: flex-end; }
  .composer-footer { flex-direction: column; align-items: stretch; }
  .composer-submit { width: 100%; justify-content: space-between; }
  .local-dictation { width: 100%; justify-content: center; }
  .role-actions { align-items: stretch; flex-direction: column; }
  .role-actions .primary-button { width: 100%; }
  .safety-nudge { align-items: stretch; flex-direction: column; }
  .small-button { padding-inline: 14px; }
  .inline-actions > *, .result-actions > * { width: 100%; }
  .feedback-actions > * { width: 100%; }
  .share-card { min-height: 0; padding: 24px; }
  .modal {
    width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 16px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  }
  .modal-shell {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    padding: 58px 20px 24px;
  }
}

@media (max-width: 410px) {
  .brand {
    min-width: 82px;
    max-width: 94px;
    flex: 1 1 94px;
    justify-content: flex-start;
    gap: 5px;
  }
  .brand-mark { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
  .brand-mark img { width: 24px; height: 24px; }
  .brand-copy { display: grid; }
  .brand-copy strong { font-size: 12px; letter-spacing: -0.045em; }
  .brand-copy small { display: none; }
  .header-actions { max-width: calc(100% - 86px); }
  .language-control::after {
    content: attr(data-code);
    position: absolute;
    inset: 0 16px 0 7px;
    display: grid;
    place-items: center start;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
  }
  .language-control select {
    width: 50px;
    min-width: 50px;
    padding: 0 16px 0 7px;
    color: transparent;
  }
  .language-control select option { color: var(--ink); }
  .theme-button,
  .icon-text-button { width: 40px; flex-basis: 40px; }
}

@media (max-width: 480px) {
  .header-actions:has(#voiceStopButton:not([hidden])) .feedback-header-button,
  .header-actions:has(#voiceStopButton:not([hidden])) .demo-header-link { display: none; }
}

@media (min-width: 320px) and (max-width: 480px) {
  :root {
    --content: calc(100% - 24px);
    --panel-padding: 16px;
    --section-gap: 22px;
  }

  body { font-size: 15px; line-height: 1.68; letter-spacing: -0.012em; }
  main { padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 14px); }
  .view { min-width: 0; }
  .hero-grid, .studio-grid, .result-grid,
  .conversation-panel, .boundary-panel, .result-editor-panel, .card-preview-wrap,
  .composer, .reflection-area, .section-heading,
  .studio-grid > *, .result-grid > * { min-width: 0; }

  .eyebrow, .step-label { margin-bottom: 10px; font-size: 11px; line-height: 1.45; letter-spacing: 0.12em; }
  .hero-copy h1 {
    max-width: 12em;
    margin-bottom: 14px;
    font-size: clamp(29px, 9.2vw, 36px);
    line-height: 1.22;
    letter-spacing: -0.048em;
  }
  .hero-description {
    max-width: 34em;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
  }
  .intro-lens-map { margin-bottom: 13px; padding: 12px; border-radius: 16px; }
  .intro-lens-heading { display: block; margin-bottom: 10px; }
  .intro-lens-heading > p { margin-bottom: 6px; }
  .intro-lens-heading h2 { font-size: 14px; line-height: 1.48; }
  .intro-lens-grid { gap: 6px; }
  .intro-lens-grid > span { min-height: 40px; padding: 7px 8px; }
  .intro-lens-grid strong { font-size: 10.5px; }
  .intro-flow { margin-top: 8px; padding-top: 8px; gap: 5px; }
  .intro-flow li { align-items: center; font-size: 9.5px; }
  .voice-promise,
  .transcription-boundary,
  .privacy-promise { margin: 0 0 9px; padding-left: 11px; font-size: 10.5px; line-height: 1.58; }
  .product-boundary { padding: 11px 12px; }
  .product-boundary > strong { margin-bottom: 6px; }
  .product-boundary > div { gap: 6px; }
  .product-boundary p { font-size: 9.5px; line-height: 1.55; }
  .easy-voice-start { min-height: 54px; margin-bottom: 13px; padding: 8px 13px; border-radius: 15px; }
  .privacy-strip { margin-bottom: 16px; padding: 10px 11px; display: grid; grid-template-columns: 1fr; gap: 5px; font-size: 11px; line-height: 1.5; }
  .privacy-strip span { min-width: 0; }

  .role-section { margin-top: 26px; padding-bottom: 42px; }
  .tone-selector { margin-bottom: 22px; padding: 14px; border-radius: 15px; }
  .tone-selector > p { margin-bottom: 13px; line-height: 1.6; }
  .tone-options { gap: 6px; }
  .tone-button { min-height: 60px; padding: 8px 6px; border-radius: 13px; }
  .tone-button strong { font-size: 11px; line-height: 1.35; }
  .section-heading h2, .connected-invite h2 {
    max-width: 19em;
    margin-bottom: 10px;
    font-size: clamp(23px, 7vw, 29px);
    line-height: 1.35;
    letter-spacing: -0.04em;
  }
  .section-heading > p:not(.step-label),
  .compact-heading > p:not(.step-label),
  .connected-invite p { max-width: 42em; line-height: 1.72; text-wrap: pretty; }
  .role-grid { margin-top: 18px; gap: 8px; }
  .role-card { min-width: 0; min-height: 84px; padding: 10px; gap: 2px 8px; border-radius: 14px; }
  .role-card strong { font-size: 12px; line-height: 1.4; }
  .role-actions { margin-top: 18px; gap: 12px; }
  .role-actions p { line-height: 1.62; }

  .primary-button, .secondary-button, .text-button, .reset-button, .back-button {
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    padding-block: 10px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .primary-button { padding-inline: 18px; }
  .secondary-button { padding-inline: 16px; }
  .text-button { padding-inline: 10px; }

  .view-toolbar { min-width: 0; min-height: 48px; margin-bottom: 12px; padding: 5px 7px; gap: 7px; border-radius: 13px; }
  .view-toolbar p { min-width: 0; gap: 2px; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
  .back-button { min-width: 76px; flex: 0 0 auto; padding-inline: 12px; }
  .studio-grid, .result-grid { gap: 14px; padding-bottom: 42px; }
  .studio-view, .result-view { padding-bottom: 0; }
  .conversation-panel, .result-editor-panel, .boundary-panel, .card-preview-wrap { border-radius: 18px; }
  .conversation-panel, .result-editor-panel { padding: 14px; }
  .conversation-panel .section-heading { padding-bottom: 14px; }
  .conversation-panel .section-heading h2 { font-size: clamp(22px, 6.7vw, 27px); line-height: 1.34; }
  .conversation-panel .section-heading > p:not(.step-label) { font-size: 11.5px; line-height: 1.58; }
  .dialogue { min-height: 92px; margin: 14px 0; gap: 10px; }
  .message { min-width: 0; gap: 8px; }
  .message > div { min-width: 0; max-width: calc(100% - 40px); padding: 12px 13px; }
  .message p { font-size: 13.5px; line-height: 1.66; letter-spacing: -0.012em; text-align: start; text-wrap: pretty; }
  .speaker-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .safety-nudge { margin: -4px 0 17px; padding: 14px; gap: 12px; border-radius: 14px; }

  .composer, .reflection-area { padding: 13px; border-radius: 14px; }
  .composer textarea, .reflection-area textarea { min-height: 76px; padding: 11px 12px; }
  .dictation-help { margin-top: 8px; line-height: 1.62; }
  .dictation-status { min-height: 48px; padding: 8px 9px; line-height: 1.48; }
  .composer-footer { margin-top: 12px; gap: 10px; }
  .composer-submit { min-width: 0; gap: 10px; }
  .small-button, .local-dictation { min-height: 48px; }

  .lens-area { margin-top: 20px; }
  .lens-heading h3 { font-size: 20px; line-height: 1.45; }
  .lens-heading p:not(.step-label) { font-size: 12px; line-height: 1.65; }
  .lens-progress { align-items: flex-start; flex-direction: column; gap: 3px; margin: 11px 0 14px; line-height: 1.55; }
  .lens-progress span { min-width: 0; overflow-wrap: anywhere; }
  .lens-grid { gap: 8px; }
  .lens-card { grid-template-columns: 18px 30px minmax(0, 1fr); gap: 8px; padding: 13px; border-radius: 14px; }
  .lens-card > input { width: 17px; height: 17px; margin-top: 6px; }
  .lens-number { width: 30px; height: 30px; font-size: 10px; }
  .lens-copy > strong { font-size: 13px; line-height: 1.4; }
  .lens-copy > small { line-height: 1.5; }
  .lens-detail { padding-top: 8px; font-size: 11px; line-height: 1.68; }
  .reflection-area { margin-top: 18px; }
  .inline-actions { margin-top: 12px; gap: 8px; }

  .boundary-panel { padding: 16px; }
  .boundary-panel h3 { margin-bottom: 14px; font-size: 19px; line-height: 1.5; }
  .boundary-panel ul { font-size: 12px; line-height: 1.68; }
  .safety-card-button { min-height: 48px; margin-top: 18px; }

  .original-note { margin: 20px 0 18px; padding: 14px; }
  .original-note p { line-height: 1.72; overflow-wrap: anywhere; }
  .result-lens-review { margin-bottom: 20px; padding: 13px; border-radius: 14px; }
  .result-lens-heading h3 { font-size: 16px; }
  .result-lens-card { grid-template-columns: 18px 28px minmax(0, 1fr); gap: 8px; padding: 12px; }
  .result-lens-card > input { width: 17px; height: 17px; }
  .result-lens-number { width: 28px; height: 28px; }
  .result-lens-detail { font-size: 11px; line-height: 1.65; }
  .result-lens-apply { align-items: stretch; flex-direction: column; }
  .result-lens-apply button { width: 100%; }
  #resultInput { min-height: 170px; padding: 14px; }
  .result-actions { gap: 8px; }
  .share-boundary { line-height: 1.62; }
  .reset-button { margin-top: 22px; }
  .card-preview-wrap { padding: 12px; }
  .preview-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; font-size: 11px; line-height: 1.5; }
  .preview-heading > * { min-width: 0; }
  .preview-heading span { text-align: right; }
  .share-card { container-type: inline-size; aspect-ratio: auto; min-height: clamp(390px, 125vw, 480px); padding: 18px; overflow: visible; border-radius: 18px; }
  .card-eyebrow { margin-bottom: 5px; font-size: 8px; }
  .card-lenses { margin-bottom: 9px; font-size: 7.5px; }
  .card-result { font-size: clamp(12.5px, 4.1vw, 17px); font-size: clamp(12.5px, 4.6cqi, 17px); line-height: 1.48; }
  .share-card[data-density="balanced"] .card-result { font-size: clamp(10.5px, 3.6vw, 15px); font-size: clamp(10.5px, 3.9cqi, 15px); line-height: 1.5; }
  .share-card[data-density="compact"] .card-result { font-size: clamp(8.5px, 3vw, 12px); font-size: clamp(8.5px, 3.1cqi, 12px); line-height: 1.48; }
  .card-footer { margin-top: 12px; padding-top: 9px; font-size: 7.5px; line-height: 1.45; }
  .card-alt { line-height: 1.62; overflow-wrap: anywhere; }

  .connected-invite { margin-bottom: 44px; padding: 20px; gap: 16px; border-radius: 18px; }
  .site-footer { padding-top: 22px; gap: 12px; line-height: 1.62; }
  .footer-link { align-self: flex-start; }
  .modal {
    width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    border-radius: 18px;
  }
  .modal-shell {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    padding: 56px 18px 22px;
  }
  .modal h2 { font-size: clamp(25px, 7.5vw, 31px); line-height: 1.4; }
  .beta-notice-shell { padding: 54px 16px 18px; gap: 11px; }
  .beta-notice-dialog h2 { font-size: clamp(23px, 7.2vw, 29px); line-height: 1.35; }
  .beta-notice-description { font-size: 13px; line-height: 1.65; }
  .beta-notice-actions { grid-template-columns: 1fr; gap: 8px; }
  .safety-modal .modal-shell > .secondary-button { width: 100%; margin-top: 10px; }
  .safety-card-button span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  :root { --content: calc(100% - 24px); }
  .header-inner { gap: 4px; }
  .header-actions { gap: 3px; }
  .feedback-header-button { display: none; }
  .language-control select { width: 48px; min-width: 48px; padding: 0 15px 0 6px; font-size: 10px; }
  .language-control::after { inset-inline: 6px 15px; }
  .theme-button, .icon-text-button { width: 38px; flex-basis: 38px; }
  .demo-header-link { display: none; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card { min-height: 82px; }
  .hero-copy h1 { max-width: 10.5em; }
  .view-toolbar p { max-width: calc(100% - 76px); }
  .back-button { min-width: 70px; padding-inline: 10px; }
}

@media (max-height: 600px), (hover: none) and (pointer: coarse) {
  .dialogue { max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .boundary-panel, .card-preview-wrap, .qr-card { position: static; }
  :where(textarea, input, select, button):focus { scroll-margin-bottom: calc(34dvh + env(safe-area-inset-bottom)); }
  .composer, .reflection-area { scroll-margin-bottom: calc(30dvh + env(safe-area-inset-bottom)); }
}

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

@media print {
  .site-header, .site-footer, .connected-invite, .hero-actions, .result-actions, .reset-button, .view-toolbar { display: none !important; }
  body, main { background: #fff; color: #111; }
  main { width: 100%; padding: 0; }
  .view[hidden] { display: none !important; }
  .card-preview-wrap { border: 0; box-shadow: none; }
}

.not-found-main { min-height: 100dvh; padding: 32px 0; display: grid; place-items: center; }
.not-found-card { width: min(620px, 100%); padding: clamp(28px, 6vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.not-found-card .brand-mark { margin: 0 auto 28px; }
.not-found-card h1 { margin-bottom: 16px; font-family: var(--font-serif); font-size: clamp(32px, 6vw, 52px); line-height: 1.28; }
.not-found-card > p:not(.step-label) { margin-bottom: 26px; color: var(--ink-soft); }

.public-info-links { display: flex; margin-top: 10px; flex-wrap: wrap; gap: 6px 16px; }
.public-info-links a { color: var(--ink-soft); font-size: 12px; text-underline-offset: .24em; }
.public-info-links a:hover, .public-info-links a:focus-visible { color: var(--green); }

.discovery-page { min-height: 100%; overflow-x: clip; }
.discovery-header, .discovery-footer {
  display: flex;
  width: min(calc(100% - 32px), 1040px);
  min-height: 72px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.discovery-header { border-bottom: 1px solid var(--line); }
.discovery-brand { display: flex; min-width: 0; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.discovery-brand img { width: 44px; height: 44px; padding: 4px; border-radius: 13px; object-fit: contain; background: #fff; }
.discovery-brand span { display: grid; min-width: 0; gap: 1px; }
.discovery-brand strong { font-size: 15px; }
.discovery-brand small { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.discovery-home-link { display: inline-flex; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; align-items: center; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.discovery-main { display: block; width: min(calc(100% - 32px), 920px); min-height: auto; margin-inline: auto; padding: clamp(24px, 5vw, 64px) 0; }
.discovery-breadcrumb { display: flex; margin-bottom: 26px; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.discovery-breadcrumb a { color: inherit; }
.discovery-hero { padding: clamp(24px, 5vw, 54px); border: 1px solid var(--line); border-radius: clamp(24px, 4vw, 42px); background: var(--surface); box-shadow: var(--shadow); }
.discovery-hero .eyebrow { margin: 0 0 16px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.discovery-hero h1 { max-width: 780px; margin: 0; font-family: var(--font-serif); font-size: clamp(34px, 6vw, 66px); line-height: 1.15; letter-spacing: -.05em; text-wrap: balance; }
.discovery-hero h1 em { color: var(--green); font-style: normal; }
.discovery-hero > p:last-child { max-width: 760px; margin: 22px 0 0; color: var(--ink-soft); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.8; }
.discovery-section { padding: clamp(36px, 6vw, 72px) clamp(4px, 2vw, 16px); border-bottom: 1px solid var(--line); }
.discovery-kicker { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.discovery-section h2 { max-width: 760px; margin: 0 0 24px; font-family: var(--font-serif); font-size: clamp(25px, 3.5vw, 40px); line-height: 1.35; letter-spacing: -.035em; text-wrap: balance; }
.discovery-section > p:not(.discovery-kicker) { max-width: 780px; color: var(--ink-soft); line-height: 1.8; }
.discovery-lenses { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.discovery-lenses li, .discovery-flow li, .discovery-answers article, .discovery-related a { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.discovery-lenses li { display: grid; min-width: 0; padding: 16px; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; }
.discovery-lenses b, .discovery-flow b { color: var(--green); font-size: 11px; }
.discovery-lenses strong { font-size: 14px; }
.discovery-lenses span { grid-column: 2; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.discovery-flow { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.discovery-flow li { display: grid; min-width: 0; padding: 18px; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.discovery-flow strong { display: block; margin-bottom: 6px; font-size: 14px; }
.discovery-flow p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.discovery-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.discovery-answers article { padding: 18px; }
.discovery-answers h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.discovery-answers p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.discovery-boundary ul { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; }
.discovery-boundary li { position: relative; padding-left: 20px; color: var(--ink-soft); line-height: 1.75; }
.discovery-boundary li::before { position: absolute; left: 0; color: var(--green); content: "•"; }
.discovery-related { display: grid; margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.discovery-related a { display: grid; min-width: 0; padding: 16px; gap: 4px; color: var(--ink); text-decoration: none; }
.discovery-related a:hover, .discovery-related a:focus-visible { border-color: var(--green); }
.discovery-related span { color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.discovery-cta { margin: 32px 0 0; text-align: center; }
.discovery-cta .primary-button { display: inline-flex; width: auto; min-height: 48px; padding-inline: 24px; text-decoration: none; }
.discovery-footer { min-height: 92px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.discovery-footer a { color: var(--ink-soft); text-underline-offset: .24em; }

@media (max-width: 700px) {
  .discovery-header, .discovery-footer, .discovery-main { width: min(calc(100% - 20px), 100%); }
  .discovery-brand small { max-width: 42vw; }
  .discovery-home-link { padding-inline: 10px; font-size: 11px; }
  .discovery-lenses, .discovery-flow, .discovery-answers, .discovery-related { grid-template-columns: 1fr; }
  .discovery-section { padding-inline: 2px; }
  .discovery-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
