:root {
  --parchment: #f3eee4;
  --paper: #fbf8f1;
  --paper-deep: #e9e1d3;
  --ink: #2e2b25;
  --ink-soft: #655f54;
  --ink-faint: #716a5e;
  --sage: #526b57;
  --sage-wash: #e3eadf;
  --clay: #a1583c;
  --clay-wash: #f2dfd3;
  --plum: #67536c;
  --line: rgba(62, 52, 39, .14);
  --shadow: 0 1px 0 rgba(63, 48, 31, .08), 0 18px 60px rgba(79, 58, 35, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --parchment: #191713;
  --paper: #211e19;
  --paper-deep: #2a261f;
  --ink: #eee6d9;
  --ink-soft: #bcb3a4;
  --ink-faint: #938b7e;
  --sage: #a3b9a3;
  --sage-wash: #263027;
  --clay: #d69777;
  --clay-wash: #39271f;
  --plum: #c1aac5;
  --line: rgba(255, 246, 230, .12);
  --shadow: 0 0 0 1px rgba(255,255,255,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--parchment); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 4px; font: 600 14px var(--sans); }
.skip-link:focus { top: 16px; }
.shell { width: min(100%, 1120px); margin: 0 auto; padding: 0 48px 132px; }

.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: -.02em; }
.brand svg { width: 27px; height: 27px; color: var(--sage); stroke-width: 1.2; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.place { color: var(--ink-faint); font: 500 12px var(--mono); }
.profile-link { color: var(--ink-soft); font: 600 13px var(--sans); text-decoration: none; }
.profile-link:hover { color: var(--clay); }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color 180ms var(--ease), transform 120ms var(--ease); }
.icon-button:hover { background: var(--paper-deep); }
.icon-button:active { transform: scale(.97); }
.icon-button svg { width: 20px; height: 20px; }

.view { animation: reveal 420ms var(--ease) both; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); align-items: center; gap: 48px; padding: 48px 0; }
.hero-grid .intro { padding: 40px 0; }
.hero-art { position: relative; height: 430px; margin: 0; overflow: hidden; border-radius: 3px 32px 3px 32px; box-shadow: var(--shadow); }
.hero-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(42, 31, 18, .1); pointer-events: none; }
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 63%; }
.intro { padding: 88px 0 48px; max-width: 720px; }
.intro.compact { padding-bottom: 36px; }
.eyebrow, .section-label { margin: 0 0 18px; color: var(--ink-faint); font: 650 11px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
h1, h2, p { text-wrap: pretty; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
h1[tabindex="-1"]:focus { outline: 0; }
h1 em { color: var(--clay); font-weight: 400; }
.lede { max-width: 570px; margin: 28px 0 0; color: var(--ink-soft); font-size: 18px; }
.daily-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin: 0 0 48px; padding: 32px 36px 34px; border-left: 3px solid var(--sage); border-radius: 0 20px 3px 0; background: var(--paper); box-shadow: var(--shadow); }
.daily-card h2 { margin: 0 0 8px; font-size: 32px; font-weight: 400; }
.daily-card p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--ink-soft); }
.daily-card .eyebrow { margin-bottom: 10px; }
.daily-card .primary-button { text-decoration: none; }

.ask-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px 56px; margin: 8px 0 64px; padding: 36px 40px; background: var(--paper-deep); border-radius: 3px 24px 3px 24px; }
.ask-copy h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.ask-copy > p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }
#question-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-content: start; }
#question-form label { color: var(--ink-soft); font: 650 11px var(--sans); }
#question-form label:first-child, #question-form select, #question-form label:nth-of-type(2), #question-form textarea { grid-column: 1 / -1; }
select { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px 12px 2px 12px; background-color: var(--paper); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
#question-form textarea { min-height: 88px; background: var(--paper); }
#question-form .primary-button { grid-column: 2; margin-top: 4px; }
.reflection-result { grid-column: 1 / -1; padding: 28px 0 4px; border-top: 1px solid var(--line); }
.reflection-result > p { max-width: 800px; margin: 14px 0 8px; font-size: clamp(24px, 4vw, 34px); line-height: 1.25; }
.reflection-result small { display: block; color: var(--ink-faint); font: 500 11px var(--sans); }

.horizon { overflow: hidden; background: var(--paper); border-radius: 3px 32px 3px 32px; box-shadow: var(--shadow); }
.measured, .interpreted { padding: 40px 48px; }
.section-label { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.sage { background: var(--sage); }
.clay { background: var(--clay); }
.sky-summary { display: flex; align-items: center; gap: 24px; }
.moon-figure { width: 82px; height: 82px; position: relative; flex: 0 0 auto; border-radius: 50%; background: var(--sage-wash); border: 1px solid rgba(82, 107, 87, .2); overflow: hidden; }
.moon-figure span { position: absolute; inset: 7px -22px 7px 17px; border-radius: 50%; background: var(--sage); opacity: .9; }
.fact-title { margin: 0 0 3px; font-size: 28px; line-height: 1.25; }
.fact-meta { margin: 0; color: var(--sage); font: 500 12px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 36px 0 0; }
.measure-grid div { padding: 16px 18px; background: var(--sage-wash); border-radius: 2px 12px 2px 12px; }
.measure-grid dt { color: var(--ink-faint); font: 650 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.measure-grid dd { margin: 4px 0 0; font-size: 16px; }
.measure-grid dd span { display: block; color: var(--sage); font: 500 11px var(--mono); }
.horizon-rule { position: relative; height: 1px; background: linear-gradient(90deg, var(--sage), var(--clay)); }
.horizon-rule span { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; background: var(--paper); border: 1px solid var(--clay); border-radius: 50%; transform: translate(-50%, -50%); }
.horizon-rule i { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; background: var(--clay); border-radius: 50%; transform: translate(-50%, -50%); }
.interpreted { background: linear-gradient(135deg, transparent 50%, var(--clay-wash)); }
.interpreted blockquote { max-width: 780px; margin: 0 0 20px; font-size: clamp(26px, 4vw, 38px); line-height: 1.25; letter-spacing: -.025em; }
.interpreted > p { max-width: 650px; margin: 0; color: var(--ink-soft); }
.text-action { min-height: 44px; margin: 22px 0 0; padding: 0; border: 0; background: transparent; color: var(--clay); font: 650 14px var(--sans); cursor: pointer; }
.text-action span { display: inline-block; margin-left: 6px; transition: transform 180ms var(--ease); }
.text-action:hover span { transform: translateX(4px); }

.day-note { display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: 64px 0 0; }
.day-note h2 { max-width: 650px; margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 2px 12px 2px 12px; padding: 0 20px; border: 1px solid transparent; font: 650 14px var(--sans); cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 120ms var(--ease); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.primary-button:hover { background: var(--clay); }
.primary-button:active, .secondary-button:active { transform: scale(.97); }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: wait; transform: none; }
.primary-button svg { width: 17px; height: 17px; }
.secondary-button { background: transparent; border-color: var(--line); }
.secondary-button:hover { background: var(--paper-deep); }

.chart-layout { display: grid; grid-template-columns: minmax(360px, 1.1fr) 1fr; align-items: center; gap: 80px; padding: 32px 0; }
.natal-wheel { position: relative; width: min(100%, 500px); aspect-ratio: 1; display: grid; place-items: center; }
.natal-wheel > svg { width: 100%; height: 100%; color: var(--sage); stroke-width: .7; }
.natal-wheel .spokes { opacity: .45; }
.natal-wheel .orbit { fill: var(--clay); stroke: var(--paper); stroke-width: 3; }
.wheel-center { position: absolute; display: grid; text-align: center; }
.wheel-center small { color: var(--ink-faint); font: 600 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.wheel-center strong { font-size: 28px; font-weight: 400; }
.wheel-center span { color: var(--sage); font: 500 10px var(--mono); }
.placements dl { margin: 0; }
.placements dl div { display: grid; grid-template-columns: 85px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.placements dt { color: var(--ink-soft); font-size: 15px; }
.placements dd { margin: 0; font-size: 20px; }
.placements dl span { grid-column: 2; color: var(--ink-faint); font: 500 11px var(--sans); }
.disclaimer { margin: 28px 0 0; padding-left: 16px; border-left: 2px solid var(--clay); color: var(--ink-soft); font-size: 14px; }

.new-entry { width: 100%; display: grid; grid-template-columns: 54px 1fr; text-align: left; gap: 0 18px; padding: 24px; border: 1px solid var(--line); border-radius: 3px 20px 3px 20px; background: var(--paper); cursor: pointer; box-shadow: var(--shadow); transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.new-entry:hover { transform: translateY(-2px); }
.new-entry > span { grid-row: 1 / 3; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--clay-wash); color: var(--clay); }
.new-entry svg { width: 22px; }
.new-entry strong { align-self: end; font: 650 16px var(--sans); }
.new-entry small { color: var(--ink-faint); font: 400 13px var(--sans); }
.entries { margin-top: 48px; }
.entries article { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.entries time { color: var(--clay); font: 600 12px var(--mono); text-transform: uppercase; }
.entries h2 { margin: 0 0 8px; font-size: 25px; font-weight: 400; }
.entries p { margin: 0 0 10px; color: var(--ink-soft); }
.entries span { color: var(--ink-faint); font: 500 11px var(--sans); }

.timeline { position: relative; max-width: 760px; margin: 24px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 45px; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; min-height: 150px; }
.timeline time { position: relative; z-index: 1; width: 60px; height: 60px; display: grid; place-content: center; justify-items: center; background: var(--parchment); border: 1px solid var(--line); border-radius: 50%; color: var(--ink-faint); font: 600 9px/1 var(--sans); letter-spacing: .1em; }
.timeline time b { color: var(--ink); font: 400 23px/1 var(--serif); letter-spacing: 0; }
.timeline .now time { background: var(--sage); color: var(--paper); border-color: var(--sage); }
.timeline .now time b { color: var(--paper); }
.timeline h2 { margin: 8px 0 3px; font-size: 25px; font-weight: 400; }
.timeline p { margin: 0; color: var(--ink-soft); }
.tag { display: inline-block; padding: 4px 8px; border-radius: 2px 7px 2px 7px; font: 650 9px var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.measured-tag { background: var(--sage-wash); color: var(--sage); }
.symbolic-tag { background: var(--clay-wash); color: var(--clay); }

.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.library-card { min-width: 0; padding: 32px; overflow: hidden; background: var(--paper); border-radius: 3px 22px 3px 22px; box-shadow: var(--shadow); }
.library-card h2 { margin: 14px 0 8px; font-size: 27px; font-weight: 400; line-height: 1.2; }
.library-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.library-card .text-action { margin-bottom: -8px; }
.library-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; padding: 0; }
.library-wide > img { width: 100%; height: 340px; display: block; object-fit: cover; }
.library-wide > div { align-self: center; padding: 36px; }
.library-wide.reverse > img { order: 2; }
.card-mark { margin-bottom: 28px; color: var(--sage); font: 400 clamp(42px, 7vw, 70px)/1 var(--serif); letter-spacing: -.07em; }
.safety-band { display: grid; grid-template-columns: 190px 1fr; gap: 24px; margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety-band strong { font: 650 13px var(--sans); }
.safety-band p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.long-reading { width: min(100%, 760px); padding-bottom: 48px; }
.long-reading section { margin-bottom: 52px; }
.long-reading h2 { margin: 0 0 16px; font-size: clamp(29px, 4vw, 40px); font-weight: 400; letter-spacing: -.025em; }
.long-reading p { margin: 0; color: var(--ink-soft); font-size: 20px; line-height: 1.78; }
details { margin-top: 24px; border-left: 1px solid var(--line); padding-left: 20px; }
summary { min-height: 44px; display: flex; align-items: center; color: var(--ink-faint); font: 650 13px var(--sans); cursor: pointer; }
summary::before { content: "▸"; margin-right: 7px; }
details[open] summary::before { transform: rotate(90deg); }
details p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.profile-sections { display: grid; gap: 24px; padding-bottom: 48px; }
.profile-feature { display: grid; grid-template-columns: 1fr .8fr; overflow: hidden; background: var(--paper); border-radius: 3px 24px 3px 24px; box-shadow: var(--shadow); }
.profile-feature > div { padding: 36px; }
.profile-feature > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.profile-feature h2, .profile-grid h2 { margin: 15px 0 16px; font-size: 29px; font-weight: 400; }
.profile-feature p { color: var(--ink-soft); }
.profile-value { font-size: 23px; color: var(--ink) !important; }
.profile-value strong { font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-grid > article { padding: 32px; background: var(--paper); border-radius: 3px 20px 3px 20px; box-shadow: var(--shadow); }
.profile-grid p { color: var(--ink-soft); font-size: 15px; }
.profile-grid dl { margin: 0 0 12px; }
.profile-grid dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile-grid dt { color: var(--ink-faint); font: 600 12px var(--sans); }
.profile-grid dd { margin: 0; font-size: 15px; }
.profile-grid a { display: inline-flex; align-items: center; text-decoration: none; }
.chat { max-width: 780px; }
.message { margin-bottom: 32px; padding-left: 24px; border-left: 2px solid var(--line); }
.message > span { color: var(--ink-faint); font: 650 11px var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.message p { margin: 12px 0 0; font-size: 20px; line-height: 1.75; }
.user-message { border-left-color: var(--sage); }
.assistant-message { padding: 28px 28px 30px; border-left-color: var(--clay); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.chat-form { max-width: 780px; margin: 0 0 56px; padding: 24px; background: var(--paper); border-radius: 3px 20px 3px 20px; box-shadow: var(--shadow); }
.chat-form > label { display: block; margin-bottom: 8px; color: var(--ink-soft); font: 650 12px var(--sans); }
.chat-form textarea { min-height: 130px; }
.chat-form > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.chat-form small { color: var(--ink-faint); font: 500 11px var(--sans); }

.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(calc(100% - 32px), 560px); min-height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border: 1px solid var(--line); border-radius: 4px 24px 4px 24px; background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 16px 55px rgba(47, 39, 28, .18); backdrop-filter: blur(18px); }
.bottom-nav a { min-width: 0; min-height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; border-radius: 2px 15px 2px 15px; color: var(--ink-faint); text-decoration: none; font: 600 10px var(--sans); transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 120ms var(--ease); }
.bottom-nav a svg { width: 21px; height: 21px; }
.bottom-nav a:hover { color: var(--ink); }
.bottom-nav a:active { transform: scale(.97); }
.bottom-nav a.active { background: var(--paper-deep); color: var(--ink); }

dialog { width: min(calc(100% - 32px), 650px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 4px 28px 4px 28px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(30, 23, 17, .28); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(35, 29, 22, .48); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in 220ms var(--ease) both; }
.dialog-card { padding: 32px; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; }
.dialog-top .eyebrow { margin-top: 15px; }
.dialog-card h2 { max-width: 500px; margin: 6px 0 28px; font-size: 30px; font-weight: 400; line-height: 1.25; }
.dialog-card label { display: block; margin-bottom: 8px; color: var(--ink-soft); font: 650 12px var(--sans); }
textarea { width: 100%; resize: vertical; padding: 18px; border: 1px solid var(--line); border-radius: 2px 14px 2px 14px; background: var(--parchment); color: var(--ink); line-height: 1.6; }
textarea::placeholder { color: var(--ink-faint); }
textarea:focus { border-color: var(--plum); outline: 2px solid color-mix(in srgb, var(--plum) 22%, transparent); outline-offset: 1px; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 24px; color: var(--ink-faint); font: 500 11px var(--sans); }
.privacy-note svg { width: 14px; height: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 112px; padding: 11px 16px; border-radius: 4px 12px 4px 12px; background: var(--ink); color: var(--paper); font: 600 12px var(--sans); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
  .shell { padding: 0 20px 116px; }
  .topbar { min-height: 72px; }
  .place { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding: 0 0 40px; }
  .hero-grid .intro, .intro { padding: 36px 0 28px; }
  .hero-art { height: 184px; }
  h1 { font-size: clamp(39px, 12vw, 56px); }
  .lede { font-size: 16px; }
  .measured, .interpreted { padding: 28px 24px; }
  .sky-summary { gap: 16px; }
  .moon-figure { width: 62px; height: 62px; }
  .fact-title { font-size: 21px; }
  .measure-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .measure-grid div { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; padding: 12px 14px; }
  .measure-grid dd { display: contents; }
  .measure-grid dd span { text-align: right; }
  .day-note { display: block; padding-top: 48px; }
  .day-note .primary-button { width: 100%; margin-top: 28px; }
  .daily-card { grid-template-columns: 1fr; padding: 26px 24px 28px; }
  .daily-card .primary-button { width: 100%; }
  .ask-panel { grid-template-columns: 1fr; padding: 28px 24px; margin-bottom: 48px; }
  .reflection-result { grid-column: auto; }
  .chart-layout { grid-template-columns: 1fr; gap: 32px; }
  .natal-wheel { width: min(100%, 420px); margin: auto; }
  .entries article { grid-template-columns: 54px 1fr; gap: 12px; }
  .timeline li { grid-template-columns: 78px 1fr; }
  .timeline::before { left: 30px; }
  .library-grid { grid-template-columns: 1fr; }
  .library-wide { grid-column: auto; grid-template-columns: 1fr; }
  .library-wide > img { height: 230px; }
  .library-wide.reverse > img { order: 0; }
  .library-wide > div, .library-card { padding: 24px; }
  .library-wide { padding: 0; }
  .safety-band { grid-template-columns: 1fr; gap: 8px; }
  .profile-feature, .profile-grid { grid-template-columns: 1fr; }
  .profile-feature > img { min-height: 230px; order: -1; }
  .profile-feature > div, .profile-grid > article { padding: 24px; }
  .message p { font-size: 18px; }
  .assistant-message { padding: 22px 20px 24px; }
  .bottom-nav { bottom: max(12px, env(safe-area-inset-bottom)); }
  .dialog-card { padding: 24px 20px; }
  .dialog-card h2 { font-size: 25px; }
}
@media (max-width: 390px) {
  .shell { padding-inline: 16px; }
  .brand span { font-size: 15px; }
  .measured, .interpreted { padding-inline: 18px; }
  .fact-meta { font-size: 10px; }
  .bottom-nav { width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
