:root {
  color-scheme: light;
  --ink: #3f2932;
  --ink-soft: #563b45;
  --muted: #715a64;
  --soft: #765f69;
  --line: rgba(111, 57, 78, .14);
  --line-strong: rgba(169, 67, 101, .24);
  --paper: #fffdfc;
  --paper-soft: #fff8f7;
  --canvas: #fff3f2;
  --accent: #b6456b;
  --accent-dark: #a13e62;
  --accent-soft: #fde8ef;
  --clay: #a65e52;
  --clay-soft: #fff0eb;
  --butter: #dfbd68;
  --butter-soft: #fff6d7;
  --sky: #728ca7;
  --sky-soft: #edf3f9;
  --sage: #587468;
  --sage-soft: #edf5f1;
  --warning: #8c5a2f;
  --warning-soft: #fbf0e3;
  --shadow-sm: 0 10px 32px rgba(95, 45, 64, .055);
  --shadow-md: 0 20px 54px rgba(95, 45, 64, .09);
  --shadow-lg: 0 28px 80px rgba(79, 35, 51, .13);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
html { scrollbar-color: rgba(182, 69, 107, .38) rgba(255, 248, 247, .72); scrollbar-width: thin; }
::selection { color: var(--ink); background: rgba(231, 170, 190, .42); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
    radial-gradient(circle at 7% 0%, rgba(232, 132, 161, .17), transparent 28rem),
    radial-gradient(circle at 97% 8%, rgba(241, 177, 143, .13), transparent 26rem),
    var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
button, textarea, input { font: inherit; }
textarea, input { caret-color: var(--accent); }
button { color: inherit; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid rgba(182, 69, 107, .26);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { top: 160px; left: -170px; width: 330px; height: 330px; border: 1px solid rgba(182, 69, 107, .11); }
.ambient-two { top: 520px; right: -130px; width: 260px; height: 260px; border: 1px solid rgba(212, 120, 100, .11); }

.site-header {
  width: min(100%, 780px);
  min-height: 66px;
  margin: 0 auto;
  padding: calc(12px + var(--safe-top)) 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fffaf4;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  background: var(--accent-dark);
  box-shadow: 0 9px 24px rgba(161, 62, 98, .2);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.brand-copy small { color: var(--soft); font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.privacy-button {
  min-height: 44px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 252, .76);
  color: var(--muted);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.privacy-button svg { width: 17px; height: 17px; color: var(--sage); }
.privacy-button span { font-size: 12px; font-weight: 650; }

.app-main { width: min(100%, 700px); margin: 0 auto; padding: 24px 16px 48px; }
.hero { position: relative; padding: 18px 5px 28px; animation: rise-in .5s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { margin: 0 0 12px; display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.eyebrow > span { width: 25px; height: 1px; background: currentColor; }
.scene-ribbon {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin: 0 0 13px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(166,94,82,.15);
  border-radius: 999px;
  color: var(--clay);
  background: rgba(255,240,235,.78);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}
.scene-ribbon svg { width: 15px; height: 15px; flex: 0 0 auto; }
.hero h1 {
  max-width: 640px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(37px, 9vw, 56px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.045em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 570px; margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-copy strong { color: var(--ink-soft); font-weight: 760; }
.quick-proof {
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--soft);
  list-style: none;
}
.quick-proof li { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.quick-proof svg { width: 14px; height: 14px; color: var(--sage); }
.companion-note {
  position: relative;
  width: min(100%, 560px);
  min-height: 74px;
  margin-top: 15px;
  padding: 10px 14px 10px 10px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(182,69,107,.14);
  border-radius: 15px 18px 16px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.52), transparent 42%),
    var(--paper);
  box-shadow: 0 9px 28px rgba(95,45,64,.06);
  transform: rotate(-.16deg);
}
.companion-note::after {
  position: absolute;
  right: 15px;
  bottom: 7px;
  width: 34px;
  height: 10px;
  content: "";
  border-bottom: 1px dashed rgba(182,69,107,.18);
  transform: rotate(-4deg);
  pointer-events: none;
}
.note-tape, .paper-tape {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 15px;
  border: 1px solid rgba(150,117,51,.08);
  background: rgba(248,231,164,.72);
  box-shadow: 0 2px 4px rgba(80,58,40,.04);
  pointer-events: none;
}
.note-tape { top: -5px; left: 50%; transform: translateX(-50%) rotate(1.5deg); }
.companion-portrait {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(182,69,107,.13);
  border-radius: 43% 47% 42% 48%;
  background: linear-gradient(145deg, #ffe8ef, #fff1e8);
}
.companion-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.companion-fallback { position: relative; width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); }
.companion-fallback svg { position: absolute; width: 40px; height: 40px; opacity: .2; transform: rotate(-9deg); }
.companion-fallback b { position: relative; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.companion-copy { min-width: 0; display: grid; gap: 3px; }
.companion-name { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.companion-name i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.companion-copy strong { max-width: 430px; color: var(--ink-soft); font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.5; }
.companion-copy small { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 9px; }
.companion-copy small svg { width: 12px; height: 12px; color: var(--sage); }
.companion-note.is-speaking { animation: note-nod .34s cubic-bezier(.2,.8,.2,1); }
.companion-note[data-mood="ready"] .companion-name i { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.companion-note[data-mood="celebrate"] { border-color: rgba(231,201,120,.52); background: linear-gradient(100deg, #fffdf8, var(--butter-soft)); }

.journey-progress { width: min(100%, 560px); margin-top: 11px; }
.journey-progress ol { position: relative; margin: 0; padding: 0 3px; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.journey-progress ol::before {
  position: absolute;
  top: 11px;
  left: calc(16.66% + 10px);
  right: calc(16.66% + 10px);
  height: 1px;
  content: "";
  background: var(--line-strong);
}
.journey-progress li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; color: var(--soft); }
.journey-progress li > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--canvas);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 700;
}
.journey-progress li small { font-size: 9px; white-space: nowrap; }
.journey-progress li.is-current { color: var(--accent-dark); }
.journey-progress li.is-current > span { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.journey-progress li.is-done { color: var(--sage); }
.journey-progress li.is-done > span { color: var(--sage); border-color: rgba(88,112,100,.28); background: var(--sage-soft); }
.journey-progress.is-complete li > span { animation: step-pop .28s cubic-bezier(.16,1,.3,1) both; }

#assistForm { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
#assistForm > * { min-width: 0; max-width: 100%; }
.letter-card, .intent-section, .context-panel, .draft-card, .alternatives, .analysis-disclosure, .warning-card, .personalize-panel {
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, .92);
  box-shadow: var(--shadow-sm);
}
.composer-card { position: relative; padding: 19px; overflow: hidden; border-radius: 22px; }
.composer-card::before {
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(138,74,86,.35), transparent);
}
.section-heading { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.section-heading p { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.section-index { color: var(--accent); font-family: Georgia, serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.character-count, .optional-label { flex: 0 0 auto; color: var(--soft); font-size: 11px; }
.message-field {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--paper-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.message-field:focus-within { border-color: rgba(138, 74, 86, .38); background: #fff; box-shadow: 0 0 0 4px rgba(138, 74, 86, .065); }
.quote-mark { position: absolute; top: 14px; left: 13px; width: 19px; height: 19px; color: rgba(138,74,86,.3); }
.message-field textarea {
  width: 100%;
  min-height: 142px;
  padding: 14px 15px 54px 42px;
  display: block;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.68;
}
textarea::placeholder { color: var(--soft); opacity: .82; }
.field-actions { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 7px; }
.text-action {
  min-height: 44px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(93,67,70,.08);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.9);
  box-shadow: 0 3px 12px rgba(65,46,48,.05);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.text-action svg { width: 15px; height: 15px; color: var(--accent); }
.privacy-hint { margin: 11px 2px 0; display: flex; align-items: flex-start; gap: 7px; color: var(--soft); font-size: 11px; line-height: 1.55; }
.privacy-hint svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--sage); margin-top: 1px; }
.field-error, .form-error { color: #8b3545; font-size: 11px; line-height: 1.5; }
.field-error { margin: 8px 2px 0; }
.form-error { margin: 7px 2px 0; padding: 8px 10px; border-radius: 9px; background: rgba(139,53,69,.08); text-align: center; }
.message-field.has-error { border-color: rgba(139,53,69,.48); box-shadow: 0 0 0 4px rgba(139,53,69,.06); }

.intent-section, .context-panel { padding: 17px 18px 18px; border-radius: 20px; }
.intent-heading, .context-heading { margin-bottom: 12px; }
.section-heading label { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.select-control {
  position: relative;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 3px 12px rgba(65,46,48,.04);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.select-control:hover { border-color: var(--line-strong); background: #fff; }
.select-control:focus-within { border-color: rgba(138,74,86,.42); box-shadow: 0 0 0 4px rgba(138,74,86,.08); }
.select-control select {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 43px 0 48px;
  appearance: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 680;
  cursor: pointer;
}
.select-control select:focus-visible { outline: 3px solid rgba(138,74,86,.22); outline-offset: -3px; border-radius: 12px; }
.select-control select:disabled { color: var(--soft); cursor: wait; opacity: .72; }
.select-icon {
  position: absolute;
  left: 11px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  pointer-events: none;
}
.select-icon svg { width: 16px; height: 16px; }
.select-chevron { position: absolute; right: 13px; width: 17px; height: 17px; color: var(--soft); pointer-events: none; }
.select-helper { margin: 7px 2px 0; color: var(--soft); font-size: 11px; line-height: 1.45; }

.context-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.select-field { min-width: 0; display: grid; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 720; }
.context-panel .select-control { min-height: 50px; }
.context-panel .select-control select { min-height: 50px; padding-left: 43px; font-size: 16px; font-weight: 620; }
.context-panel .select-icon { left: 9px; width: 27px; height: 27px; color: var(--clay); background: var(--clay-soft); }
.context-helper { margin: 11px 1px 0; display: flex; align-items: flex-start; gap: 7px; color: var(--soft); font-size: 10px; line-height: 1.5; }
.context-helper svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--sage); margin-top: 1px; }

.personalize-panel summary, .analysis-disclosure summary {
  min-height: 66px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
.profile-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
}
.profile-symbol { color: var(--accent); background: var(--accent-soft); }
.profile-symbol svg { width: 18px; height: 18px; }
.personalize-panel summary > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.personalize-panel summary strong { font-size: 13px; }
.personalize-panel summary small { color: var(--soft); font-size: 11px; line-height: 1.35; }
.chevron { margin-left: auto; width: 18px; height: 18px; flex: 0 0 auto; color: var(--soft); transition: transform .2s; }
.personalize-panel[open] > summary .chevron, .analysis-disclosure[open] > summary .chevron { transform: rotate(180deg); }

.companion-loading {
  position: relative;
  min-height: 70px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px dashed rgba(138,74,86,.24);
  border-radius: 15px;
  background: rgba(255,253,250,.78);
  box-shadow: var(--shadow-sm);
}
.loading-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 44% 48% 43% 49%;
  color: var(--accent);
  background: var(--accent-soft);
  animation: companion-breathe 1.8s ease-in-out infinite;
}
.loading-avatar svg { width: 21px; height: 21px; }
.loading-copy { min-width: 0; display: grid; gap: 3px; }
.loading-copy strong { font-family: var(--serif); font-size: 12px; }
.loading-copy > span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.cancel-advice-button {
  min-width: 62px;
  min-height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}
.cancel-advice-button svg { width: 14px; height: 14px; }

.submit-dock { position: relative; z-index: 5; padding: 6px 0 0; }
.primary-button {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 15px;
  color: #fffaf6;
  background: var(--accent-dark);
  box-shadow: 0 14px 34px rgba(113,61,71,.22);
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, opacity .16s;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(113,61,71,.25); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .7; }
.button-label { display: inline-flex; align-items: center; gap: 9px; }
.button-label svg { width: 19px; height: 19px; }
.button-arrow { width: 19px; height: 19px; }
.submit-dock > p { margin: 9px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--soft); font-size: 11px; }
.submit-dock > .form-error { display: block; color: #8b3545; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(95,120,108,.09); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-section { margin-top: 45px; padding-top: 5px; scroll-margin-top: 14px; animation: result-in .35s cubic-bezier(.2,.8,.2,1) both; }
.result-companion {
  position: relative;
  margin: 0 2px 16px;
  padding: 12px 48px 12px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(231,201,120,.48);
  border-radius: 15px 18px 14px 17px;
  background: linear-gradient(105deg, #fffdf8, var(--butter-soft));
  box-shadow: 0 9px 28px rgba(94,73,36,.065);
  transform: rotate(.12deg);
}
.result-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 45% 50% 43% 48%; color: var(--accent); background: rgba(255,255,255,.72); }
.result-avatar svg { width: 23px; height: 23px; }
.result-companion > span:last-child { min-width: 0; display: grid; gap: 3px; }
.result-companion small { color: var(--clay); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.result-companion strong { color: var(--ink-soft); font-family: var(--serif); font-size: 12px; line-height: 1.5; }
.result-petal { position: absolute; width: 8px; height: 13px; border: 1px solid rgba(138,74,86,.16); border-radius: 80% 20% 70% 30%; background: rgba(245,233,233,.8); pointer-events: none; }
.petal-one { top: 10px; right: 23px; transform: rotate(28deg); }
.petal-two { right: 9px; bottom: 10px; transform: rotate(72deg) scale(.75); background: rgba(232,240,242,.82); }
.result-section.is-complete .result-companion { animation: finish-glow .48s cubic-bezier(.2,.8,.2,1); }
.result-heading { margin: 0 2px 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.result-heading .eyebrow { margin-bottom: 8px; }
.result-context { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; font-weight: 780; letter-spacing: .04em; }
.result-context svg { width: 14px; height: 14px; }
.result-heading h2 { max-width: 480px; margin: 0; font-family: var(--serif); font-size: clamp(23px, 6vw, 31px); line-height: 1.3; letter-spacing: -.03em; }
.new-button {
  min-height: 44px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,253,250,.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.result-request-status {
  min-height: 44px;
  margin: 14px 2px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(95,120,108,.18);
  border-radius: 12px;
  color: var(--muted);
  background: var(--sage-soft);
  font-size: 11px;
  line-height: 1.5;
}
.result-request-status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage);
  content: "";
}
.result-request-status.is-loading::before { animation: status-pulse 1.2s ease-in-out infinite; }
.result-request-status.is-error { color: #823548; border-color: rgba(138,53,72,.2); background: #fbecf0; }
.result-request-status.is-error::before { background: #a5455d; }
.result-request-status.is-calm { border-color: rgba(166,110,80,.18); background: var(--clay-soft); }
.result-request-status.is-calm::before { background: var(--clay); }
.result-section button:disabled,
.result-section textarea:disabled,
.result-section input:disabled { cursor: wait; opacity: .58; }
.draft-card { position: relative; padding: 20px; overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-lg); }
.paper-tape { top: -5px; left: 50%; transform: translateX(-50%) rotate(-1.5deg); }
.draft-card::after {
  position: absolute;
  top: -45px;
  right: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(138,74,86,.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.draft-card-top { margin-bottom: 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.draft-badge {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--sage);
  background: var(--sage-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.draft-badge svg { width: 13px; height: 13px; }
.draft-card h3 { margin: 0; font-family: var(--serif); font-size: 17px; }
.edit-hint { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-size: 11px; white-space: nowrap; }
.edit-hint svg { width: 14px; height: 14px; }
.draft-card textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 136px;
  padding: 15px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background-color: #fbf8f4;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(117,102,106,.07) 28px, transparent 29px);
  background-attachment: local;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.78;
}
.draft-card textarea:focus { border-color: rgba(138,74,86,.4); background: #fff; box-shadow: 0 0 0 4px rgba(138,74,86,.06); }
.draft-footer { margin-top: 12px; display: grid; gap: 10px; }
.draft-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--soft); font-size: 11px; }
.draft-meta small { font-size: 9px; }
.draft-actions { display: grid; grid-template-columns: minmax(104px, .72fr) minmax(142px, 1fr); gap: 8px; }
.keep-button, .copy-button { width: 100%; min-height: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; font-size: 12px; font-weight: 750; cursor: pointer; }
.keep-button { border: 1px solid var(--line); color: var(--muted); background: var(--paper-soft); }
.keep-button svg { width: 16px; height: 16px; }
.keep-button.is-kept { color: var(--accent-dark); border-color: rgba(138,74,86,.3); background: var(--accent-soft); }
.keep-button.is-kept svg { fill: currentColor; }
.copy-button {
  border: 0;
  color: #fff;
  background: var(--ink);
}
.copy-button svg { width: 16px; height: 16px; }
.copy-button.is-copied { background: var(--sage); }
.draft-card.is-stamped .edit-hint { opacity: 0; }
.completion-stamp {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 17px;
  padding: 7px 8px 5px;
  border: 2px solid rgba(88,112,100,.58);
  border-radius: 50%;
  color: var(--sage);
  background: rgba(255,253,250,.88);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: rotate(10deg);
  animation: stamp-in .34s cubic-bezier(.16,1,.3,1) both;
}

.alternatives { margin-top: 12px; padding: 16px; border-radius: 18px; }
.section-row { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-row h3 { margin: 0; font-family: var(--serif); font-size: 15px; }
.section-row span { color: var(--soft); font-size: 11px; }
.alternative-list { display: grid; gap: 8px; }
.alternative-button {
  width: 100%;
  min-height: 68px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.8);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.alternative-button:hover { border-color: var(--line-strong); background: #fff; }
.alternative-label { align-self: flex-start; margin-top: 1px; padding: 4px 7px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.alternative-text { min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.alternative-button > svg { width: 16px; height: 16px; color: var(--soft); }
.alternative-button.is-active { border-color: rgba(138,74,86,.32); background: var(--accent-soft); }

.analysis-disclosure { margin-top: 12px; overflow: hidden; border-radius: 16px; }
.analysis-disclosure summary { min-height: 54px; padding: 10px 14px; justify-content: space-between; }
.analysis-disclosure summary > span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 720; }
.analysis-disclosure summary > span svg { width: 17px; height: 17px; color: var(--accent); }
.analysis-body { padding: 0 15px 15px 39px; }
.analysis-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-line; }
.warning-card { margin: 0 0 12px; padding: 15px; display: flex; align-items: flex-start; gap: 11px; border-color: rgba(140,90,47,.2); border-radius: 16px; background: var(--warning-soft); }
.warning-card > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--warning); margin-top: 1px; }
.warning-card h3 { margin: 1px 0 5px; color: #74431d; font-size: 12px; }
.warning-card p { margin: 0; color: #7b6047; font-size: 12px; line-height: 1.65; }

.personalize-panel { margin-top: 14px; overflow: hidden; border-radius: 18px; }
.personalize-panel summary { min-height: 72px; }
.optional-pill { margin-left: auto; padding: 5px 8px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 10px; font-weight: 750; white-space: nowrap; }
.personalize-panel summary .chevron { margin-left: 0; }
.personalize-content { padding: 17px; border-top: 1px solid var(--line); background: rgba(255,255,255,.54); }
.personalize-lead { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.preference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preference-grid button {
  min-height: 60px;
  padding: 10px 11px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.preference-grid button strong { font-size: 12px; }
.preference-grid button small { color: var(--soft); font-size: 11px; line-height: 1.4; }
.preference-grid button.is-selected { border-color: rgba(138,74,86,.35); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(138,74,86,.04); }
.preference-grid button.is-selected strong { color: var(--accent-dark); }
.memory-row { margin-top: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; background: var(--paper-soft); }
.memory-option { min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.memory-option input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.memory-option span { min-width: 0; display: grid; gap: 2px; }
.memory-option strong { font-size: 11px; }
.memory-option small { color: var(--soft); font-size: 10px; line-height: 1.35; }
.profile-status { color: var(--soft); font-size: 11px; text-align: right; }
.profile-actions { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }
.ghost-button, .apply-button, .secondary-button, .analyze-button {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}
.ghost-button { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.ghost-button svg, .apply-button svg, .secondary-button svg, .analyze-button svg { width: 16px; height: 16px; }
.apply-button { border: 0; color: #fff; background: var(--accent-dark); }
.apply-button.full { width: 100%; }
.inference-link {
  width: 100%;
  min-height: 66px;
  margin-top: 15px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(166,110,80,.16);
  border-radius: 13px;
  color: var(--ink);
  background: var(--clay-soft);
  text-align: left;
  cursor: pointer;
}
.inference-link > svg:first-child { color: var(--clay); }
.inference-link > svg:last-child { width: 16px; height: 16px; color: var(--soft); }
.inference-link span { display: grid; gap: 3px; }
.inference-link strong { font-size: 12px; }
.inference-link small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.result-actions { margin-top: 14px; display: flex; justify-content: center; }
.secondary-button { border: 1px solid var(--line); color: var(--muted); background: rgba(255,253,250,.78); }
.result-disclaimer { max-width: 500px; margin: 14px auto 0; color: var(--soft); text-align: center; font-size: 11px; line-height: 1.55; }

.result-aftercare {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(111,57,78,.12);
  border-radius: 19px;
  background: rgba(255,253,250,.78);
  box-shadow: var(--shadow-sm);
}
.feedback-block { padding: 18px; }
.aftercare-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.aftercare-heading h3 { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: -.01em; }
.aftercare-heading p { max-width: 250px; margin: 0; color: var(--soft); font-size: 10px; line-height: 1.55; text-align: right; }
.feedback-choices { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feedback-choices button,
.feedback-reasons button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s, transform .16s;
}
.feedback-choices button { padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.feedback-choices button svg { width: 16px; height: 16px; color: var(--accent); }
.feedback-choices button:hover,
.feedback-reasons button:hover { border-color: rgba(182,69,107,.3); transform: translateY(-1px); }
.feedback-choices button.is-selected,
.feedback-reasons button.is-selected { color: var(--accent-dark); border-color: rgba(182,69,107,.3); background: var(--accent-soft); }
.feedback-choices button:disabled,
.feedback-reasons button:disabled { cursor: default; opacity: .64; transform: none; }
.feedback-choices button.is-selected:disabled,
.feedback-reasons button.is-selected:disabled { opacity: 1; }
.feedback-reasons { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line-strong); }
.feedback-reasons > p { margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.feedback-reasons > div { display: flex; flex-wrap: wrap; gap: 7px; }
.feedback-reasons button { min-height: 40px; padding: 0 11px; }
.feedback-thanks { margin: 12px 0 0; color: var(--sage); font-size: 11px; font-weight: 680; line-height: 1.55; }
.share-row {
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(253,232,239,.5), rgba(255,246,215,.42));
}
.share-row > span { min-width: 0; display: grid; gap: 3px; }
.share-row strong { font-family: var(--serif); font-size: 13px; }
.share-row small { color: var(--soft); font-size: 10px; line-height: 1.45; }
.share-button {
  min-width: 112px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--accent-dark);
  box-shadow: 0 9px 22px rgba(113,61,71,.16);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.share-button svg { width: 16px; height: 16px; }
.share-button:disabled { cursor: wait; opacity: .62; }

.principles { margin-top: 48px; padding: 20px 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); }
.principles > div { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.principles svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }
.principles span { min-width: 0; display: grid; gap: 2px; }
.principles strong { font-size: 11px; }
.principles small { color: var(--soft); font-size: 9px; white-space: nowrap; }
.site-footer { padding: 0 16px calc(28px + var(--safe-bottom)); display: grid; justify-items: center; gap: 5px; color: var(--soft); text-align: center; }
.site-footer strong { color: var(--ink-soft); font-family: var(--serif); font-size: 11px; letter-spacing: .08em; }
.site-footer span { font-size: 10px; line-height: 1.5; }

.modal-dialog {
  width: min(calc(100% - 28px), 460px);
  max-height: min(88dvh, 760px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 34px 100px rgba(44,30,32,.28);
}
.modal-dialog::backdrop { background: rgba(48,35,37,.46); backdrop-filter: blur(8px); }
.privacy-dialog form { padding: 24px; }
.dialog-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--sage); background: var(--sage-soft); border-radius: 13px; }
.privacy-dialog h2, .tendency-dialog h2 { margin: 15px 0 11px; font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; }
.privacy-dialog ul { margin: 0 0 20px; padding-left: 19px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.privacy-dialog li + li { margin-top: 5px; }
.dialog-close { min-height: 50px; padding: 0 17px; }
.tendency-dialog-inner { position: relative; padding: 24px; }
.icon-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; cursor: pointer; }
.icon-close svg { width: 18px; height: 18px; }
.dialog-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dialog-copy { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.sample-label { margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 750; }
.sample-label span { color: var(--soft); font-weight: 500; }
.tendency-dialog textarea {
  width: 100%;
  min-height: 154px;
  padding: 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--ink);
  background: var(--paper-soft);
  font-size: 16px;
  line-height: 1.6;
}
.tendency-dialog textarea:focus { border-color: rgba(138,74,86,.4); box-shadow: 0 0 0 4px rgba(138,74,86,.06); }
.sample-hint { margin: 8px 1px 14px; display: flex; align-items: flex-start; gap: 6px; color: var(--soft); font-size: 11px; line-height: 1.5; }
.sample-hint svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--sage); }
.analyze-button { width: 100%; border: 0; color: #fff; background: var(--ink); }
.analyze-button:disabled { opacity: .65; cursor: wait; }
.tendency-result { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.tendency-result-heading { margin-bottom: 11px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tendency-result-heading span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.tendency-result-heading h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 16px; }
.tendency-result-heading > small { color: var(--soft); font-size: 10px; }
.tendency-list { display: grid; gap: 8px; }
.tendency-item {
  width: 100%;
  min-height: 72px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.tendency-item strong { font-size: 12px; }
.tendency-item .probability { color: var(--accent); font-size: 11px; font-weight: 750; }
.tendency-item small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tendency-item.is-selected { border-color: rgba(138,74,86,.35); background: var(--accent-soft); }
.inference-disclaimer { margin: 10px 1px 13px; color: var(--soft); font-size: 11px; line-height: 1.5; }
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 11px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(52,40,43,.96);
  box-shadow: 0 16px 44px rgba(38,26,29,.24);
  text-align: center;
  font-size: 12px;
  animation: toast-in .2s ease;
}
.toast.error { background: #883948; }

@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes result-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes note-nod { 0% { transform: rotate(-.16deg) translateY(0); } 45% { transform: rotate(.2deg) translateY(-2px); } 100% { transform: rotate(-.16deg) translateY(0); } }
@keyframes companion-breathe { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-2px) rotate(2deg); } }
@keyframes status-pulse { 0%, 100% { opacity: .45; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
@keyframes step-pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(2deg) scale(1.5); } 100% { opacity: 1; transform: rotate(10deg) scale(1); } }
@keyframes finish-glow { 0% { transform: rotate(.12deg) scale(.985); } 55% { box-shadow: 0 10px 35px rgba(173,130,48,.16); } 100% { transform: rotate(.12deg) scale(1); } }

@media (max-width: 619px) {
  .site-header { min-height: 56px; padding: calc(8px + var(--safe-top)) 14px 5px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .brand-copy strong { font-size: 16px; }
  .app-main { padding: 8px 13px 40px; }
  .hero { padding: 9px 2px 14px; }
  .eyebrow { margin-bottom: 8px; font-size: 10px; }
  .hero h1 { font-size: 32px; line-height: 1.12; letter-spacing: -.035em; }
  .hero-copy { margin-top: 8px; font-size: 12px; line-height: 1.55; }
  .quick-proof { margin-top: 8px; gap: 5px 11px; }
  .quick-proof li { font-size: 10px; }
  .scene-ribbon { min-height: 31px; margin-bottom: 9px; font-size: 10px; }
  .companion-note { min-height: 58px; margin-top: 9px; padding: 7px 11px 7px 7px; grid-template-columns: 45px minmax(0, 1fr); gap: 8px; }
  .companion-portrait { width: 45px; height: 45px; }
  .companion-copy strong { font-size: 12px; line-height: 1.42; }
  .companion-copy small { display: none; }
  .journey-progress { display: none; }
  .journey-progress li { gap: 3px; }
  .journey-progress li > span { width: 21px; height: 21px; }
  .journey-progress ol::before { top: 10px; }
  #assistForm { gap: 11px; }
  .composer-card { padding: 15px; border-radius: 18px; }
  .section-heading { margin-bottom: 9px; }
  .message-field textarea { min-height: 112px; padding-top: 11px; padding-bottom: 51px; line-height: 1.55; }
  .privacy-hint { margin-top: 8px; font-size: 10px; }
  .intent-section { padding: 3px 0 0; border: 0; background: transparent; box-shadow: none; }
  .intent-heading { padding: 0 3px; margin-bottom: 8px; }
  .goal-select-control { min-height: 50px; }
  .goal-select-control select { min-height: 50px; }
  .context-panel { padding: 14px; border-radius: 18px; }
  .context-heading { margin-bottom: 10px; }
  .context-select-grid { grid-template-columns: 1fr; gap: 11px; }
  .companion-loading { min-height: 64px; padding: 9px 11px; grid-template-columns: 35px minmax(0, 1fr) auto; }
  .loading-avatar { width: 35px; height: 35px; }
  .submit-dock {
    position: relative;
    margin: 0 0 var(--safe-bottom);
    padding: 7px;
    border: 1px solid rgba(93,67,70,.1);
    border-radius: 17px;
    background: rgba(245,239,232,.82);
    box-shadow: 0 14px 36px rgba(64,40,42,.11);
    backdrop-filter: blur(14px);
  }
  body.result-ready .submit-dock { display: none; }
  .primary-button { min-height: 52px; border-radius: 13px; }
  .submit-dock > p { margin-top: 6px; font-size: 9px; }
  .result-section { margin-top: 34px; }
  .result-companion { margin-bottom: 13px; padding: 10px 40px 10px 10px; grid-template-columns: 38px minmax(0, 1fr); }
  .result-avatar { width: 38px; height: 38px; }
  .result-heading { align-items: flex-start; }
  .result-heading h2 { font-size: 24px; }
  .draft-card { padding: 16px; border-radius: 18px; }
  .draft-card textarea { min-height: 128px; }
  .draft-actions { grid-template-columns: minmax(94px, .7fr) minmax(130px, 1fr); }
  .keep-button, .copy-button { padding: 0 9px; }
  .preference-grid { grid-template-columns: 1fr; }
  .preference-grid button { min-height: 56px; }
  .memory-row { align-items: flex-start; }
  .profile-status { max-width: 90px; }
  .aftercare-heading { display: grid; gap: 5px; }
  .aftercare-heading p { max-width: none; text-align: left; }
  .share-row { align-items: flex-start; }
  .principles { margin-top: 38px; }
  .principles > div { display: grid; justify-items: center; text-align: center; gap: 5px; }
  .principles small { display: none; }
}

@media (max-width: 370px) {
  .brand-copy small { display: none; }
  .privacy-button { padding: 0 10px; }
  .privacy-button span { font-size: 11px; }
  .hero h1 { font-size: 29px; }
  .companion-name { font-size: 9px; }
  .companion-copy strong { font-size: 11px; }
  .journey-progress li small { font-size: 8px; }
  .draft-actions { grid-template-columns: 1fr; }
  .optional-pill { display: none; }
  .feedback-choices { grid-template-columns: 1fr; }
  .share-row { display: grid; }
  .share-button { width: 100%; }
}

@media (max-width: 619px) and (max-height: 700px) {
  .site-header { min-height: 50px; }
  .hero { padding-top: 5px; padding-bottom: 9px; }
  .hero h1 { font-size: 28px; }
  .hero-copy { margin-top: 6px; font-size: 11px; line-height: 1.45; }
  .quick-proof { margin-top: 6px; }
  .companion-note { min-height: 56px; margin-top: 7px; }
  .composer-card { padding-top: 13px; padding-bottom: 13px; }
  .message-field textarea { min-height: 104px; }
}

@media (min-width: 620px) {
  .app-main { padding-top: 32px; }
  .composer-card, .intent-section { padding: 22px; }
  .companion-note { grid-template-columns: 66px minmax(0, 1fr); min-height: 84px; }
  .companion-portrait { width: 66px; height: 66px; }
}

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