:root {
  --ink: #173c35;
  --ink-soft: #416359;
  --paper: #f8f5ee;
  --paper-deep: #efe9dd;
  --surface: #fffdf9;
  --line: #e4ddd0;
  --clay: #b86741;
  --gold: #dd9b5d;
  --sage: #78a895;
  --blue: #5e8dac;
  --plum: #80627a;
  --shadow: 0 16px 42px rgba(22, 54, 47, .09);
  --radius: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-width: 320px; margin: 0; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }

.welcome-shell { min-height: 100dvh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 36px 18px; background: linear-gradient(135deg, #e8eee5 0%, #f8f4ec 55%, #f2dfca 100%); }
.welcome-art { position: absolute; border-radius: 999px; filter: blur(0); opacity: .72; }
.art-one { width: 38vw; height: 38vw; min-width: 300px; min-height: 300px; background: #c9d9c0; left: -18vw; top: -13vw; }
.art-two { width: 32vw; height: 32vw; min-width: 250px; min-height: 250px; background: #eac28f; right: -15vw; bottom: -17vw; }
.welcome-card { z-index: 1; width: min(100%, 640px); padding: 34px; background: rgba(255, 253, 249, .9); border: 1px solid rgba(255,255,255,.8); border-radius: 30px; box-shadow: 0 24px 80px rgba(23, 60, 53, .13); backdrop-filter: blur(12px); }
.brand { background: transparent; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: Georgia, serif; font-size: 22px; letter-spacing: .07em; }
.brand-large { margin-bottom: 34px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fbf6ec; background: var(--ink); border-radius: 11px 11px 11px 3px; }
.brand-mark svg { width: 21px; height: 21px; }
.eyebrow { color: var(--clay); font: 500 10px/1.2 "DM Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.welcome-card > h1 { max-width: 560px; margin: 11px 0 12px; font-size: clamp(32px, 6vw, 48px); line-height: 1.04; }
.welcome-copy { max-width: 560px; color: var(--ink-soft); line-height: 1.65; font-size: 14px; }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0; }
.promise-grid > div { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border-radius: 13px; background: #f4f0e8; }
.promise-grid svg { width: 20px; flex: 0 0 20px; color: var(--clay); }
.promise-grid b, .promise-grid small { display: block; }
.promise-grid b { font-size: 11px; margin-bottom: 2px; }
.promise-grid small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea, select { width: 100%; border: 1px solid #dcd4c7; background: #fffefa; color: var(--ink); border-radius: 10px; outline: none; padding: 10px 11px; font-size: 13px; transition: border .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(120, 168, 149, .16); }
.optional { color: #938c80; font-weight: 500; }
.consent { grid-template-columns: 17px 1fr; align-items: start; line-height: 1.45; color: var(--ink-soft) !important; font-weight: 500 !important; }
.consent input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.button { min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .16s, background .16s, border .16s; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 16px; }
.button-primary { color: #fffdf9; background: var(--ink); box-shadow: 0 6px 15px rgba(23,60,53,.15); }
.button-primary:hover { background: #0f302a; }
.button-secondary { color: var(--ink); background: #e3eee7; border-color: #c7ddd0; }
.button-ghost { color: var(--ink); background: #fffdf9; border-color: var(--line); }
.button-large { min-height: 48px; margin-top: 4px; }
.text-button { border: 0; background: none; color: var(--ink); padding: 4px 0; font-size: 12px; font-weight: 700; }
.demo-button { display: block; margin: 18px auto 4px; color: var(--clay); }
.public-example-button { min-height: 40px; margin: 10px auto 0; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(230,196,131,.55); border-radius: 10px; color: #f0cf91; background: rgba(239,191,126,.1); font-size: 12px; font-weight: 700; }
.public-example-button svg { width: 16px; }
.fine-print { color: #8e887d; font-size: 10px; line-height: 1.5; }
.centered { text-align: center; }

.app-shell { min-height: 100dvh; padding-bottom: 84px; }
.topbar { height: 70px; position: sticky; top: 0; z-index: 10; background: rgba(248,245,238,.92); border-bottom: 1px solid rgba(228,221,208,.75); backdrop-filter: blur(16px); }
.topbar-inner { height: 100%; max-width: 980px; margin: auto; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.topbar .brand { font-size: 17px; }
.topbar .brand-mark { width: 29px; height: 29px; border-radius: 9px 9px 9px 2px; }
.topbar .brand-mark svg { width: 18px; }
.case-title { min-width: 0; margin-left: auto; text-align: right; }
.case-title > span { max-width: 210px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Georgia, serif; font-size: 14px; }
.case-title small { display: inline-flex; gap: 4px; align-items: center; color: #6d8479; font-size: 9px; font-weight: 700; }
.case-title small svg { width: 11px; height: 11px; }
.avatar { flex: 0 0 33px; width: 33px; height: 33px; padding: 0; border-radius: 50%; border: 2px solid #e9b579; background: #f6d5af; color: #653d29; font-size: 12px; font-weight: 700; }
.main-content { max-width: 760px; margin: auto; }
.page { padding: 30px 20px 28px; }
.page-intro { margin: 4px 0 18px; }
.page-intro h1 { margin: 7px 0 5px; font-size: 31px; line-height: 1.08; }
.page-intro p:not(.eyebrow) { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.page-intro.compact { margin-bottom: 24px; }
.privacy-callout { display: flex; align-items: center; gap: 9px; margin: 12px 0 18px; padding: 10px 12px; border: 1px solid #cce0d5; border-radius: 11px; background: #ecf4ee; color: #416359; font-size: 10px; }
.privacy-callout svg { width: 17px; color: #4d866d; }
.summary-card { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-radius: var(--radius); background: var(--ink); color: #f9f6ee; box-shadow: var(--shadow); }
.summary-label, .summary-card small { display: block; color: #b6cec3; font-size: 10px; }
.summary-card strong { display: block; margin: 4px 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.progress-ring { --progress: 30; width: 67px; height: 67px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#e9b274 calc(var(--progress) * 1%), #3c6158 0); }
.progress-ring::before { content: ''; position: absolute; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); }
.progress-ring span { z-index: 1; font: 500 13px "DM Mono", monospace; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 32px 0 12px; }
.section-head h2 { margin-top: 4px; font-size: 21px; }
.icon-button { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--clay); background: var(--surface); }
.icon-button svg { width: 17px; }
.research-plan { display: grid; gap: 8px; }
.task-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 13px; display: grid; grid-template-columns: 26px 1fr 18px; gap: 10px; align-items: center; text-align: left; box-shadow: 0 2px 4px rgba(30,45,40,.01); }
.task-card:hover { border-color: #c8bca9; }
.task-card svg { width: 16px; color: #9c968b; }
.task-index { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #f3e8d9; color: #9b5835; font: 500 10px "DM Mono", monospace; }
.task-card b, .task-card small { display: block; }
.task-card b { font-size: 12px; }
.task-card small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.person-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 7px; scrollbar-width: none; }
.person-scroll::-webkit-scrollbar { display: none; }
.person-card, .add-person-card { flex: 0 0 205px; min-height: 86px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.person-initial { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #8b492f; background: #f4d8ba; font: 500 17px Georgia, serif; }
.person-card h3 { font-size: 15px; }
.person-card p { margin-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.tiny-lock { display: inline-block; margin-top: 4px; color: #668376; font-size: 9px; font-weight: 700; }
.add-person-card { flex-direction: column; align-items: center; justify-content: center; border-style: dashed; color: #628277; background: transparent; font-size: 10px; font-weight: 700; }
.add-person-card svg { width: 20px; }
.trust-legend { margin-top: 30px; padding: 17px; border-radius: var(--radius); background: #f0eee7; }
.legend-intro { display: flex; gap: 10px; align-items: center; }
.legend-intro > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #2f6c5d; background: #dbe8df; }
.legend-intro svg { width: 18px; }
.legend-intro h2 { font-size: 17px; }
.legend-intro p { margin-top: 1px; color: var(--ink-soft); font-size: 10px; }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 14px; }
.legend-grid > div { display: grid; gap: 4px; }
.legend-grid small { color: var(--ink-soft); font-size: 9px; line-height: 1.4; }
.badge { width: max-content; display: inline-flex; gap: 5px; align-items: center; border-radius: 99px; padding: 3px 7px; font-size: 9px; font-weight: 700; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-fact { color: #29705a; background: #dcefe5; }
.badge-evidence { color: #62766c; background: #e1e7e2; }
.badge-lead { color: #946026; background: #fae8c8; }
.badge-hypothesis { color: #77667e; background: #eee6f0; }
.evidence-list, .lead-list { display: grid; gap: 9px; }
.evidence-row { display: grid; grid-template-columns: 34px 1fr 24px; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.evidence-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; font-size: 17px; font-weight: 700; }
.kind-photo { color: #956043; background: #f3dfca; }
.kind-memory { color: #835f7c; background: #eee3ed; }
.kind-document { color: #526f84; background: #e0ebf0; }
.evidence-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.evidence-title h3 { font-size: 14px; }
.evidence-main > p { margin: 3px 0 5px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.evidence-main small { display: flex; align-items: center; gap: 4px; color: #888177; font-size: 9px; line-height: 1.35; }
.evidence-main small svg { width: 12px; }
.row-menu { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; color: #998f83; background: transparent; }
.row-menu:hover { color: #a64d42; background: #f8e2dd; }
.counter { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 20px; background: #ece4d7; color: #7e633e; font: 500 10px "DM Mono", monospace; }
.lead-card { padding: 15px; border: 1px solid #ecd9b9; border-radius: 15px; background: #fffcf7; }
.lead-top { display: flex; align-items: center; justify-content: space-between; }
.lead-icon { color: #b87b36; font-size: 21px; }
.lead-card h3 { margin: 7px 0 4px; font-size: 17px; }
.lead-card > p { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.source-line { display: flex; gap: 5px; align-items: center; margin-top: 11px; color: #827365; font-size: 9px; }
.source-line svg { width: 13px; color: #b18458; }
.lead-actions { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; margin-top: 14px; }
.empty-state { padding: 24px 16px; display: grid; justify-items: center; text-align: center; border: 1px dashed #d4cbbc; border-radius: 15px; background: #fdfaf4; }
.empty-state > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #7d9d91; background: #e9f0eb; }
.empty-state > span svg { width: 20px; }
.empty-state b { margin-top: 9px; font-size: 13px; }
.empty-state p { max-width: 280px; margin: 4px 0 12px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.empty-state.tall { min-height: 290px; align-content: center; }

.bottom-nav { position: fixed; inset: auto 0 0; z-index: 10; height: 69px; padding: 8px max(14px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); display: flex; justify-content: center; gap: min(32px, 5vw); border-top: 1px solid rgba(228,221,208,.88); background: rgba(255,253,249,.94); backdrop-filter: blur(14px); }
.nav-item { min-width: 45px; display: grid; justify-items: center; gap: 2px; padding: 2px 4px; border: 0; border-radius: 9px; color: #8d8b83; background: transparent; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item span { font-size: 9px; font-weight: 700; }
.nav-item.active { color: var(--ink); }
.nav-item.active svg { color: var(--clay); }

.tree-note { padding: 9px 11px; display: flex; gap: 7px; align-items: center; border-radius: 9px; color: #6d6171; background: #eee8ed; font-size: 10px; }
.tree-note svg { width: 16px; }
.tree-canvas { min-height: 430px; margin: 18px 0 10px; position: relative; display: grid; place-items: start center; padding: 38px 15px; overflow: hidden; border: 1px solid #e5ddd0; border-radius: 22px; background-color: #fbf8f2; background-image: radial-gradient(#ded8cc 1px, transparent 1px); background-size: 16px 16px; }
.tree-root { position: relative; z-index: 1; }
.tree-person { width: 182px; min-height: 129px; padding: 14px 12px; display: grid; justify-items: center; text-align: center; border: 1px solid #c6ddd1; border-radius: 16px; background: #fffefb; box-shadow: 0 8px 20px rgba(38,69,59,.08); }
.tree-person > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #d8e9df; color: #315f50; font: 500 20px Georgia, serif; }
.tree-person b { margin-top: 7px; font-family: Georgia, serif; font-size: 16px; font-weight: 500; }
.tree-person em { margin-top: 5px; color: #97613f; font-size: 9px; font-style: normal; font-weight: 700; }
.tree-person small { margin-top: 3px; color: var(--ink-soft); font-size: 9px; }
.tree-person .badge { margin-top: 6px; }
.tree-person.muted { border-color: #dcd1df; }
.tree-person.muted > span { background: #eee6ef; color: #765d79; }
.tree-branch { width: 2px; height: 71px; margin: 0 auto; position: relative; border-left: 2px dashed #99859d; }
.tree-branch span { width: 130px; position: absolute; top: 26px; left: 10px; color: #78637a; font-size: 9px; }
.tree-children { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.tree-empty { margin-top: 94px; padding: 12px; border-radius: 10px; color: var(--ink-soft); background: rgba(255,253,249,.72); font-size: 10px; }
.derived-caption { margin: 8px 0 18px; color: #817a70; text-align: center; font-size: 10px; line-height: 1.4; }
.full-width { width: 100%; }
.timeline { list-style: none; margin: 0; padding: 5px 0 5px 19px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: #d5cec2; }
.timeline-item { min-height: 89px; position: relative; padding: 0 0 23px 20px; }
.timeline-dot { width: 11px; height: 11px; position: absolute; top: 5px; left: -19px; border: 3px solid var(--paper); border-radius: 50%; background: #5b8e78; box-shadow: 0 0 0 1px #5b8e78; }
.timeline-item.hypothesis .timeline-dot { background: #80627a; box-shadow: 0 0 0 1px #80627a; }
.timeline-top { display: flex; align-items: center; gap: 7px; }
.timeline-top small { color: #80776c; font-size: 10px; font-weight: 700; }
.timeline-item h3 { margin: 7px 0 4px; font-size: 18px; line-height: 1.15; }
.timeline-item p { color: var(--ink-soft); font-size: 10px; }
.map-panel { height: 355px; position: relative; overflow: hidden; border: 1px solid #cfded6; border-radius: 22px; background: #d9e8e1; }
.map-grain { position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(#92b3a4 1px, transparent 1px); background-size: 11px 11px; }
.continent { position: absolute; display: block; background: #b7cf9d; border: 2px solid rgba(82,122,87,.25); box-shadow: inset 13px -8px rgba(89,133,88,.08); }
.continent-one { width: 230px; height: 280px; top: -25px; left: -63px; border-radius: 48% 42% 59% 30% / 30% 39% 64% 51%; transform: rotate(-22deg); }
.continent-two { width: 140px; height: 220px; right: -44px; bottom: -101px; border-radius: 41% 59% 31% 69% / 48% 40% 60% 52%; transform: rotate(18deg); }
.map-pin { position: absolute; top: 38%; left: 42%; display: grid; justify-items: center; color: #b04e36; }
.map-pin svg { width: 32px; height: 32px; fill: #f5c08a; stroke: #a7533d; }
.map-pin b { padding: 3px 6px; border-radius: 5px; color: #5b4a3a; background: rgba(255,253,248,.85); font-size: 9px; }
.map-route { position: absolute; top: 51%; left: 46%; width: 38%; height: 22%; border-top: 2px dashed #9d747a; border-radius: 50%; transform: rotate(18deg); }
.map-legend { position: absolute; bottom: 12px; left: 12px; display: grid; gap: 4px; padding: 8px 9px; border-radius: 9px; color: #547267; background: rgba(255,253,249,.84); font-size: 8px; }
.map-legend i { width: 7px; height: 7px; display: inline-block; margin-right: 4px; border-radius: 50%; background: #c16448; }
.map-legend i.dashed { border: 1px dashed #856b85; background: transparent; }
.place-list .section-head { margin-top: 25px; }
.place-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.place-row > svg { margin-top: 2px; color: var(--clay); }
.place-row h3 { font-size: 16px; }
.place-row p { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.settings-card { display: flex; gap: 12px; padding: 15px; border: 1px solid #cfdfd5; border-radius: 16px; background: #eaf2ec; }
.settings-icon { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #3b715d; background: #d2e5d9; }
.settings-icon svg { width: 19px; }
.settings-card h2 { font-size: 18px; }
.settings-card p { margin-top: 3px; color: #557365; font-size: 10px; line-height: 1.5; }
.menu-list { display: grid; margin-top: 22px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); }
.menu-list button { width: 100%; min-height: 66px; padding: 12px; display: grid; grid-template-columns: 21px 1fr 17px; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list button > svg:first-child { color: var(--clay); }
.menu-list b, .menu-list small { display: block; }
.menu-list b { font-size: 12px; }
.menu-list small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; line-height: 1.4; }
.menu-list button > svg:last-child { width: 16px; color: #a49d91; }
.source-preview { margin-top: 27px; padding: 17px; border-radius: 16px; background: #f1ece4; }
.source-preview h2 { margin: 4px 0 5px; font-size: 21px; }
.source-preview > p:not(.eyebrow) { color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.source-preview a { display: flex; gap: 7px; align-items: center; padding: 9px 0 0; color: var(--ink); font-size: 10px; font-weight: 700; text-decoration: none; }
.source-preview a svg { width: 15px; color: var(--clay); }
.source-preview a svg:last-child { margin-left: auto; color: #978e82; }
.danger-button { width: 100%; margin-top: 27px; padding: 10px; border: 0; color: #a04d43; background: transparent; font-size: 10px; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: rgba(16,44,38,.37); animation: fade .15s ease; }
.modal { width: min(100%, 650px); max-height: min(88dvh, 760px); margin: 0 auto; overflow-y: auto; padding: 25px 20px calc(25px + env(safe-area-inset-bottom)); position: relative; border-radius: 23px 23px 0 0; background: #fffdfa; box-shadow: 0 -12px 45px rgba(12,34,30,.18); animation: rise .2s ease; }
.modal-close { width: 29px; height: 29px; display: grid; place-items: center; position: absolute; top: 13px; right: 14px; border: 0; border-radius: 50%; color: #807a70; background: #f2eee7; }
.modal-close svg { width: 15px; }
.modal-title { padding-right: 31px; margin-bottom: 20px; }
.modal-title h2 { margin: 5px 0; font-size: 26px; }
.modal-title p:not(.eyebrow) { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.source-list { display: grid; gap: 9px; }
.source-list a { min-height: 75px; padding: 12px; display: grid; grid-template-columns: 36px 1fr 17px; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); text-decoration: none; }
.source-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #a86640; background: #f5e4cb; }
.source-icon svg { width: 19px; }
.source-list b, .source-list small { display: block; }
.source-list b { font-size: 12px; }
.source-list small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; line-height: 1.4; }
.source-list > a > svg { width: 16px; color: #9c958a; }
.source-notice { margin: 17px 0 0; padding: 10px; border-left: 3px solid #d2945c; color: #806c5a; background: #f9efe0; font-size: 10px; line-height: 1.45; }
.audit-list { list-style: none; margin: 0; padding: 0; }
.audit-list li { min-height: 48px; display: grid; grid-template-columns: 15px 1fr; gap: 10px; padding-bottom: 13px; position: relative; }
.audit-list li::before { content: ''; width: 1px; position: absolute; top: 11px; bottom: -2px; left: 5px; background: #ddd5ca; }
.audit-list li:last-child::before { display: none; }
.audit-list li > span { width: 11px; height: 11px; margin-top: 2px; border: 2px solid #e8f0e9; border-radius: 50%; background: #4c876e; }
.audit-list b, .audit-list small { display: block; }
.audit-list b { font-size: 11px; line-height: 1.35; }
.audit-list small { margin-top: 3px; color: #898277; font-size: 9px; }
.review-card { padding: 14px; border: 1px solid #ead4af; border-radius: 15px; background: #fffaf1; }
.review-card h3 { margin: 9px 0 4px; font-size: 19px; }
.review-card > p { color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.review-reason { display: grid; gap: 3px; margin: 13px 0; padding: 10px; border-radius: 10px; background: #f6ead8; color: #78634d; font-size: 10px; line-height: 1.45; }
.review-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 14px; }
.toast { width: max-content; max-width: calc(100vw - 36px); position: fixed; z-index: 30; left: 50%; bottom: 89px; transform: translateX(-50%); padding: 10px 14px; border-radius: 10px; color: #f9f6ef; background: #213f37; box-shadow: 0 8px 23px rgba(18,49,42,.22); font-size: 11px; animation: toast-in .18s ease; }
.fade-in { animation: fade .22s ease; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(20px); } to { transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 640px) {
  .page { padding-left: 28px; padding-right: 28px; }
  .welcome-card { padding: 42px; }
  .evidence-row { grid-template-columns: 39px 1fr 27px; }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: 23px; padding: 30px; }
  .bottom-nav { width: min(540px, calc(100% - 36px)); inset: auto auto 18px 50%; transform: translateX(-50%); border: 1px solid rgba(228,221,208,.95); border-radius: 17px; box-shadow: 0 10px 30px rgba(33,55,47,.10); }
  .app-shell { padding-bottom: 99px; }
}

@media (max-width: 390px) {
  .welcome-card { padding: 26px 19px; }
  .promise-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .case-title { display: none; }
  .topbar-inner { justify-content: space-between; }
  .avatar { margin-left: auto; }
  .legend-grid { grid-template-columns: 1fr; }
}

/* ORIGEN research-first experience */
.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; }
.origin-threshold { min-height: 100dvh; position: relative; overflow: hidden; display: grid; place-items: center; padding: 38px 20px; color: #eff5ee; background: #143c35; }
.origin-threshold::before { content: ''; position: absolute; inset: 0; opacity: .36; background-image: radial-gradient(#d9c99c 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.threshold-map { position: absolute; width: 430px; height: 430px; border: 1px solid rgba(234,210,164,.21); border-radius: 45% 55% 59% 41% / 36% 44% 56% 64%; }
.map-a { top: -190px; left: -215px; transform: rotate(24deg); background: rgba(101,142,114,.17); }
.map-b { right: -212px; bottom: -228px; transform: rotate(-16deg); background: rgba(211,164,104,.12); }
.threshold-thread { width: min(850px, 150vw); height: 230px; position: absolute; top: 42%; left: -23%; border-top: 1px solid rgba(234,210,164,.32); border-radius: 50%; transform: rotate(-12deg); }
.threshold-content { width: min(100%, 620px); z-index: 1; }
.threshold-brand { display: flex; align-items: center; gap: 9px; font: 500 20px Georgia, serif; letter-spacing: .07em; }
.threshold-brand .brand-mark { color: var(--ink); background: #f0d09d; }
.threshold-brand em { margin-left: 5px; padding-left: 12px; border-left: 1px solid rgba(239,245,238,.28); color: #b9d2c2; font: 500 9px Manrope, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.threshold-content > .eyebrow { margin-top: 58px; color: #e4bb79; }
.threshold-content > h1 { max-width: 580px; margin: 10px 0 13px; font-size: clamp(38px, 8vw, 61px); line-height: 1; }
.threshold-copy { max-width: 560px; color: #c4d6cc; font-size: 14px; line-height: 1.65; }
.signal-entry { max-width: 570px; margin-top: 30px; padding: 17px; border: 1px solid rgba(230,238,226,.18); border-radius: 20px; background: rgba(248,248,240,.09); backdrop-filter: blur(12px); }
.identity-label { display: grid; gap: 6px; margin-bottom: 18px; color: #c9d8cf; font-size: 10px; font-weight: 700; }
.identity-label input, .signal-text textarea { border-color: rgba(241,245,234,.22); color: #f8fbf6; background: rgba(12,37,32,.35); }
.identity-label input::placeholder, .signal-text textarea::placeholder { color: #aebfb4; }
.signal-question { display: grid; grid-template-columns: 37px 1fr; gap: 10px; align-items: start; }
.assistant-orb { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50% 50% 50% 12%; color: #174139; background: #e9b679; box-shadow: 0 0 0 5px rgba(233,182,121,.13); }
.assistant-orb svg { width: 19px; }
.signal-question h2 { margin: 4px 0; color: #fbf8ef; font-size: 23px; line-height: 1.08; }
.signal-question p:not(.eyebrow) { color: #b9cfc3; font-size: 10px; line-height: 1.45; }
.signal-kinds { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 10px; }
.signal-kind { min-height: 31px; padding: 6px 10px; border: 1px solid rgba(239,245,234,.22); border-radius: 20px; color: #cddacf; background: transparent; font-size: 10px; font-weight: 700; }
.signal-kind.is-active { border-color: #e4b674; color: #153e36; background: #e9b679; }
.signal-text textarea { min-height: 100px; }
.signal-entry .consent { color: #c4d7cd !important; }
.signal-entry .consent input { accent-color: #e5b272; }
.begin-button, .investigate-button { width: 100%; min-height: 49px; padding: 10px 15px; display: flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 12px; color: #193d36; background: #f0c180; box-shadow: 0 9px 22px rgba(2,20,17,.2); font-size: 12px; font-weight: 800; }
.begin-button:hover, .investigate-button:hover { background: #f6cf93; }
.begin-button svg, .investigate-button svg { width: 17px; }
.threshold-content .demo-button { color: #eed19f; }
.threshold-trust { display: flex; justify-content: center; gap: 6px; margin: 20px 0 0; color: #b3cabd; text-align: center; font-size: 9px; }
.threshold-trust svg { width: 14px; }

.case-title small i { width: 6px; height: 6px; border-radius: 50%; background: #5f9c76; box-shadow: 0 0 0 3px #dbe9df; }
.research-session { padding-bottom: 32px; }
.session-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 2px 0 18px; }
.session-header h1 { margin-top: 5px; font-size: 28px; line-height: 1.04; }
.live-research { display: inline-flex; flex: 0 0 auto; gap: 6px; align-items: center; color: #527566; font-size: 9px; font-weight: 700; }
.live-research i { width: 6px; height: 6px; border-radius: 50%; background: #60a77c; box-shadow: 0 0 0 3px #dbeee2; }
.research-sky { height: 248px; position: relative; overflow: hidden; border: 1px solid #31584f; border-radius: 22px; color: #eaf3ed; background: radial-gradient(circle at 50% 45%, #2f6659 0, #1d4a41 32%, #153a34 74%); box-shadow: 0 16px 37px rgba(14,51,43,.16); }
.research-sky::after { content: ''; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(#e8d7aa 1px, transparent 1px); background-size: 20px 20px; }
.sky-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(237,209,154,.25); border-radius: 50%; transform: translate(-50%, -50%) rotate(-17deg); }
.orbit-one { width: 240px; height: 110px; }
.orbit-two { width: 375px; height: 185px; }
.signal-core { width: 115px; height: 115px; position: absolute; z-index: 2; top: 44px; left: calc(50% - 57px); display: grid; justify-items: center; align-content: center; padding: 9px; border: 1px solid rgba(248,221,167,.6); border-radius: 50%; background: #e8b779; color: #1b483e; box-shadow: 0 0 0 12px rgba(233,182,121,.10), 0 0 45px rgba(231,180,109,.32); text-align: center; }
.signal-core span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #eac388; background: #1e5146; }
.signal-core span svg { width: 16px; }
.signal-core b { margin: 5px 0 2px; font-size: 9px; }
.signal-core small { max-width: 95px; overflow: hidden; color: #31594f; font-size: 7px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.sky-thread { width: 1px; height: 75px; position: absolute; z-index: 1; top: 80px; left: 50%; transform-origin: bottom; background: linear-gradient(to top, #e6bd78, transparent); }
.thread-a { transform: rotate(-64deg); }.thread-b { transform: rotate(72deg); }
.sky-node { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 4px; color: #dcefe4; font-size: 8px; font-weight: 700; }
.sky-node > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(234,246,238,.45); border-radius: 50%; background: #2e7060; box-shadow: 0 0 0 6px rgba(80,146,121,.12); }
.sky-node svg { width: 15px; }.node-memory { top: 47px; left: 18%; }.node-people { top: 158px; left: 24%; }.node-place { top: 145px; right: 18%; }.node-memory > span { color: #f2c786; }.node-place > span { color: #ccdfe4; }
.research-sky-caption { position: absolute; z-index: 3; left: 13px; bottom: 12px; right: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a8c7b9; font-size: 8px; }
.research-sky-caption span { color: #eed09d; font: 500 8px "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }.research-sky-caption b { max-width: 185px; text-align: right; font-weight: 500; }
.ai-inquiry { margin-top: 15px; padding: 19px; position: relative; border: 1px solid #d9d9ca; border-radius: 19px; background: #fffdf8; box-shadow: 0 12px 28px rgba(39,58,50,.06); }
.inquiry-avatar { width: 35px; height: 35px; position: absolute; top: -16px; right: 19px; display: grid; place-items: center; border: 4px solid var(--paper); border-radius: 50% 50% 50% 12%; color: #1d4c41; background: #edbb79; }
.inquiry-avatar span { height: 100%; display: grid; place-items: center; }.inquiry-avatar svg { width: 17px; }.inquiry-avatar i { width: 6px; height: 6px; position: absolute; right: -1px; bottom: -1px; border: 1px solid #fffdf8; border-radius: 50%; background: #58a476; }
.inquiry-head { padding-right: 35px; }.inquiry-head h2 { margin: 5px 0 9px; font-size: 23px; line-height: 1.08; }.inquiry-context { color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.why-ask { margin: 15px 0; padding: 10px 11px; border-left: 3px solid #d3945a; background: #f8efe2; }.why-ask span { color: #9c6138; font-size: 9px; font-weight: 800; }.why-ask p { margin-top: 3px; color: #806a55; font-size: 10px; line-height: 1.4; }.ai-inquiry .investigate-button { min-height: 43px; }
.session-progress { margin-top: 19px; padding: 14px 1px 3px; display: grid; grid-template-columns: 1fr 78px; gap: 13px; align-items: end; }.session-progress h2 { margin-top: 4px; font-size: 17px; line-height: 1.1; }.session-meter { position: relative; height: 30px; padding-top: 14px; }.session-meter::before { content: ''; position: absolute; inset: 15px 0 auto; height: 5px; border-radius: 10px; background: #dfddd4; }.session-meter span { width: var(--session-progress); position: absolute; left: 0; top: 15px; height: 5px; border-radius: 10px; background: linear-gradient(90deg, #487f6b, #dd9c5d); transition: width .4s ease; }.session-meter b { position: absolute; top: 0; right: 0; color: #765e47; font: 500 10px "DM Mono", monospace; }
.discovery-strip { margin-top: 28px; }.discovery-strip-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }.discovery-strip-head h2 { margin-top: 4px; font-size: 21px; }.revelation-list { display: grid; gap: 8px; }.revelation-card { min-height: 68px; padding: 10px 11px; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }.revelation-card > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #8d5d3d; background: #f5e3cd; font-size: 15px; }.revelation-1 > span { color: #536f82; background: #e2edf0; }.revelation-2 > span { color: #7b6180; background: #eee5ef; }.revelation-card small { color: #9a8978; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }.revelation-card h3 { margin: 2px 0; font-size: 14px; }.revelation-card p { overflow: hidden; color: var(--ink-soft); font-size: 9px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }.revelation-card .badge { align-self: start; }
.living-views { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }.living-view-card { min-height: 128px; padding: 12px; display: grid; grid-template-columns: 1fr 15px; gap: 6px; align-content: start; text-align: left; border: 1px solid #dcd5c9; border-radius: 15px; background: #f5f1e8; }.living-view-card:hover { border-color: #bba68d; }.living-view-card > svg { grid-column: 2; grid-row: 1; width: 15px; color: #8c8377; }.living-view-card > div { grid-column: 1 / 3; }.living-view-card small { color: #a1704d; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.living-view-card b { display: block; margin: 2px 0 3px; font: 500 15px Georgia, serif; }.living-view-card p { color: var(--ink-soft); font-size: 9px; line-height: 1.35; }.view-graphic { width: 45px; height: 24px; display: flex; grid-column: 1; gap: 5px; align-items: center; }.tree-mini i { width: 9px; height: 9px; display: block; border: 2px solid #6b9d85; border-radius: 50%; position: relative; }.tree-mini i:nth-child(2) { margin-top: 11px; }.tree-mini i:nth-child(3) { margin-top: -11px; }.story-mini { align-items: flex-end; border-bottom: 1px solid #c9bba8; }.story-mini i { width: 7px; display: block; border-radius: 4px 4px 0 0; background: #d39759; }.story-mini i:nth-child(1) { height: 8px; }.story-mini i:nth-child(2) { height: 17px; }.story-mini i:nth-child(3) { height: 12px; }.session-trust { display: flex; gap: 5px; align-items: flex-start; margin: 22px auto 0; color: #687e74; font-size: 9px; line-height: 1.45; text-align: center; }.session-trust svg { flex: 0 0 14px; width: 14px; }
.inquiry-modal-title .assistant-orb { margin-bottom: 16px; }.discovery-celebration { min-width: min(320px, calc(100vw - 36px)); position: fixed; z-index: 40; top: 20px; left: 50%; display: flex; gap: 11px; align-items: center; padding: 12px 15px; transform: translateX(-50%); overflow: hidden; border: 1px solid #ecc888; border-radius: 15px; color: #4d3927; background: #fffaf0; box-shadow: 0 12px 35px rgba(55,46,29,.22); animation: discovery-in .4s cubic-bezier(.2,.8,.2,1); }.celebration-glyph { z-index: 1; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: #775023; background: #f0c681; font-size: 18px; }.discovery-celebration p { color: #a17143; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.discovery-celebration strong { display: block; margin-top: 2px; font-family: Georgia, serif; font-size: 14px; font-weight: 500; }.celebration-ray { width: 140px; height: 2px; position: absolute; opacity: .4; background: #edc16f; transform: rotate(35deg); }.ray-one { left: -60px; top: 4px; }.ray-two { right: -80px; bottom: 5px; transform: rotate(-32deg); }
@keyframes discovery-in { from { opacity: 0; transform: translate(-50%, -20px) scale(.94); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@media (min-width: 640px) { .origin-threshold { padding: 60px; }.research-sky { height: 290px; }.signal-core { top: 67px; }.node-memory { left: 25%; }.node-people { left: 29%; top: 188px; }.node-place { right: 26%; top: 174px; }.research-sky-caption { font-size: 9px; }.living-views { gap: 13px; }.living-view-card { min-height: 137px; padding: 15px; } }
@media (max-width: 390px) { .threshold-brand em { display: none; }.threshold-content > h1 { font-size: 37px; }.origin-threshold { padding-left: 16px; padding-right: 16px; }.signal-entry { padding: 14px; }.research-sky { height: 226px; }.node-memory { left: 12%; }.node-people { left: 17%; }.node-place { right: 12%; }.research-sky-caption b { max-width: 150px; }.session-header h1 { font-size: 25px; }.living-views { grid-template-columns: 1fr; }.living-view-card { min-height: 105px; }.revelation-card { grid-template-columns: 29px 1fr; }.revelation-card .badge { display: none; } }
@media (prefers-reduced-motion: no-preference) { .live-research i, .inquiry-avatar i { animation: live-pulse 1.8s ease-in-out infinite; } @keyframes live-pulse { 50% { box-shadow: 0 0 0 7px rgba(86,166,115,0); } } }
.archive-constellation { min-height: 108px; margin: 18px 0 24px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-radius: 18px; overflow: hidden; color: #eaf1ea; background: #214c43; }
.archive-constellation::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(#e4cd9e 1px, transparent 1px); background-size: 16px 16px; }.archive-orbit { width: 290px; height: 95px; position: absolute; border: 1px solid rgba(233,210,163,.25); border-radius: 50%; }.archive-orbit-one { top: -50px; left: -50px; transform: rotate(-21deg); }.archive-orbit-two { right: -71px; bottom: -51px; transform: rotate(18deg); }.archive-constellation > div { z-index: 1; display: grid; justify-items: center; }.archive-constellation strong { font: 500 28px Georgia, serif; }.archive-constellation small { margin-top: 3px; color: #b8d0c4; font-size: 8px; font-weight: 700; text-align: center; }.archive-evidence-list .evidence-row { background: #fffdf9; }.archive-protection { margin-top: 30px; }

/* Progressive welcome: one calm decision per screen. */
.welcome-intro { max-width: 560px; min-height: 480px; display: grid; align-content: center; justify-items: start; }.intro-orb { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 29px; border: 1px solid rgba(246,220,165,.48); border-radius: 50% 50% 50% 15%; color: #163d35; background: #efbf7e; box-shadow: 0 0 0 10px rgba(238,191,126,.10), 0 0 50px rgba(238,191,126,.26); }.intro-orb svg { width: 24px; }.welcome-intro .intro-one { color: #eec47f; font: 500 16px Georgia, serif; }.welcome-intro h1 { max-width: 540px; margin: 16px 0; color: #faf8ef; font-size: clamp(34px, 7.5vw, 57px); line-height: 1.04; }.welcome-intro .intro-three { max-width: 365px; color: #c2d4c9; font-size: 13px; line-height: 1.6; }.welcome-intro .begin-button { width: auto; min-width: 224px; margin-top: 28px; }.welcome-intro .demo-button { margin: 18px 0 0; }.welcome-origin { max-width: 570px; padding: 42px 0 25px; }.welcome-origin h1 { max-width: 500px; margin: 9px 0; color: #fbf8f0; font-size: clamp(31px, 7vw, 46px); line-height: 1.05; }.welcome-origin > p:not(.eyebrow) { max-width: 450px; color: #c1d3c8; font-size: 12px; line-height: 1.55; }.origin-options { display: grid; gap: 9px; margin: 26px 0 15px; }.origin-option { min-height: 67px; padding: 12px; display: grid; grid-template-columns: 34px 1fr 15px; gap: 11px; align-items: center; border: 1px solid rgba(237,244,236,.18); border-radius: 14px; color: #d1e0d6; background: rgba(244,248,239,.06); text-align: left; }.origin-option:hover, .origin-option.is-selected { border-color: #e9bf7f; color: #fbf8ed; background: rgba(237,188,120,.13); }.origin-option > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #143c35; background: #d5e4d9; }.origin-option.is-selected > span { background: #efbf7d; }.origin-option svg { width: 17px; }.origin-option b, .origin-option small { display: block; }.origin-option b { font: 500 16px Georgia, serif; }.origin-option small { margin-top: 2px; color: #b9cec1; font-size: 9px; line-height: 1.35; }.origin-option i { width: 9px; height: 9px; border: 1px solid #a9c4b5; border-radius: 50%; }.origin-option.is-selected i { border: 3px solid #efbf7d; background: #174139; }.welcome-origin .begin-button { margin-top: 0; }.consent-ritual { max-width: 455px; min-height: 480px; display: grid; align-content: center; justify-items: start; }.ritual-seal { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid rgba(234,214,169,.65); border-radius: 50%; color: #eec47f; background: rgba(238,196,127,.08); }.ritual-seal svg { width: 23px; }.consent-ritual h1 { margin: 8px 0 10px; color: #fbf8ef; font-size: clamp(33px, 7vw, 49px); line-height: 1.05; }.consent-ritual > p:not(.eyebrow) { color: #c3d3c9; font-size: 12px; line-height: 1.6; }.ritual-consent { width: 100%; margin: 25px 0 7px; padding: 11px; border: 1px solid rgba(237,244,236,.18); border-radius: 11px; background: rgba(245,248,240,.06); }.ritual-back { width: 100%; margin-top: 13px; color: #e9c68f; text-align: center; }.intro-line { animation: welcome-reveal .55s both; }.intro-two { animation-delay: .33s; }.intro-three { animation-delay: .64s; }.intro-four { animation-delay: .96s; }@keyframes welcome-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.welcome-hero-art { width: min(58vw, 590px); height: min(100dvh, 740px); margin: 0; position: absolute; z-index: 0; top: 0; right: 0; overflow: hidden; pointer-events: none; }.welcome-hero-art::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #143c35 0%, rgba(20,60,53,.93) 11%, rgba(20,60,53,.22) 44%, rgba(20,60,53,.02) 70%), linear-gradient(0deg, #143c35 0%, transparent 23%); }.welcome-hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: right center; mix-blend-mode: screen; opacity: .88; filter: saturate(.86) contrast(.98); }.threshold-content > :not(.welcome-hero-art) { position: relative; z-index: 1; }
.inquiry-alternatives { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; }.inquiry-alternatives .text-button { color: #766e64; font-size: 10px; }
.ai-guidance-control { width: 100%; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e7e1d6; color: #3d715f; font-size: 10px; text-align: left; }.ai-guidance-control[disabled] { opacity: .62; cursor: wait; }.ai-guidance-note { margin-top: 13px; color: #80627a; font-size: 9px; line-height: 1.45; }.ai-guidance-alternative { margin: 14px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }.ai-guidance-alternative b { color: #6f583f; }.ai-thinking { display: flex; justify-content: center; gap: 7px; padding: 16px; }.ai-thinking span { width: 8px; height: 8px; border-radius: 50%; background: #d3945a; animation: ai-pulse 1s ease-in-out infinite; }.ai-thinking span:nth-child(2) { animation-delay: .16s; }.ai-thinking span:nth-child(3) { animation-delay: .32s; }@keyframes ai-pulse { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.mission-milestones { margin-top: 22px; padding: 16px; border: 1px solid #d9ded7; border-radius: 17px; background: #f8faf6; }.mission-milestones h2 { margin-top: 4px; font-size: 18px; }.mission-milestones ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }.mission-milestones li { display: flex; gap: 5px; align-items: flex-start; color: #7b766c; font-size: 9px; line-height: 1.35; }.mission-milestones li span { flex: 0 0 14px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; font-size: 8px; }.mission-milestones .is-complete { color: #3e715f; }.mission-milestones .is-complete span { color: #fff; background: #5d987b; }.mission-milestones .is-pending span { color: #80627a; background: #eee6f0; }
.research-board { margin-top: 25px; }.research-board .section-head { margin: 0 0 11px; }.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.board-grid article { min-height: 86px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fffdf9; }.board-grid b { color: #86613f; font: 500 15px Georgia, serif; }.board-grid p { margin-top: 5px; color: var(--ink-soft); font-size: 9px; line-height: 1.4; }.synthesis-button { margin-top: 17px; }
.archive-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 7px; }.archive-actions .button { min-height: 44px; font-size: 10px; }
.tree-v2 { min-height: 0; display: grid; gap: 23px; padding: 22px 14px; }.tree-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 11px; width: 100%; }.tree-v2 .tree-person { width: 100%; min-height: 119px; }.confirmed-person { border-color: #9bc5ae; }.tree-link-list { width: 100%; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.tree-link-list li { min-height: 53px; padding: 10px; display: grid; grid-template-columns: 23px 1fr auto; gap: 9px; align-items: center; border-radius: 11px; background: rgba(255,253,249,.84); }.tree-link-list li > span { height: 22px; border-left: 2px dashed #8d718b; }.tree-link-list li.solid > span { border-left-style: solid; border-color: #468067; }.tree-link-list b, .tree-link-list small { display: block; }.tree-link-list b { font-size: 11px; }.tree-link-list small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }.tree-link-list .empty-link { display: block; color: var(--ink-soft); text-align: center; font-size: 10px; }
.ancestor-tree-canvas { min-height: 500px; display: block; padding: 24px 12px 28px; overflow-x: auto; overflow-y: hidden; }.ancestor-tree { width: max-content; min-width: 560px; min-height: 430px; margin: 0 auto; padding: 18px 24px 12px; display: flex; align-items: flex-end; justify-content: center; }.ancestor-node { position: relative; display: flex; flex-direction: column; align-items: center; }.ancestor-parent-set { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 24px; padding: 0 0 22px; }.ancestor-parent-set::before { content: ''; position: absolute; right: 25%; bottom: 21px; left: 25%; border-top: 2px solid #5d987b; }.ancestor-parent-set.ancestor-set-dashed::before { border-top-style: dashed; border-color: #907494; }.ancestor-parent-set[data-count="1"]::before { display: none; }.ancestor-parent-set > .ancestor-node::after { content: ''; position: absolute; bottom: 0; left: 50%; height: 22px; border-left: 2px solid #5d987b; }.ancestor-parent-set > .ancestor-node.ancestor-branch-dashed::after { border-left-style: dashed; border-color: #907494; }.ancestor-stem { width: 2px; height: 22px; border-left: 2px solid #5d987b; }.ancestor-stem.dashed { border-left-style: dashed; border-color: #907494; }.ancestor-person { width: 174px; min-height: 138px; padding: 10px 12px 11px; position: relative; box-shadow: 0 8px 20px rgba(38,69,59,.08); }.ancestor-person.ancestor-branch-dashed { border-color: #d6c7d8; }.ancestor-generation { margin-bottom: 4px; color: #a1704d; font: 700 8px/1.15 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }.ancestor-initial { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #d8e9df; color: #315f50; font: 500 20px Georgia, serif; }.ancestor-person.ancestor-branch-dashed .ancestor-initial { color: #765d79; background: #eee6ef; }.ancestor-role { margin-top: 6px; color: #29705a; font-size: 9px; font-weight: 700; }.ancestor-related { margin-top: 28px; }.ancestor-related .section-head { margin-top: 0; }.ancestor-related .section-head h2 { margin-bottom: 3px; }.ancestor-related .section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 10px; line-height: 1.4; }.ancestor-related .tree-link-list { margin-top: 12px; }
.place-row { position: relative; }.place-row > span { margin-left: auto; padding: 3px 6px; border-radius: 99px; color: #6d8377; background: #e7efe9; font-size: 8px; font-weight: 700; }.place-mentioned > span { color: #76647b; background: #eee7f0; }.place-to_verify > span { color: #946026; background: #fae8c8; }.map-legend i.mentioned { background: #80627a; }
.review-actions-three { grid-template-columns: 1fr 1fr 1.2fr; }.review-actions-three .button { padding-left: 7px; padding-right: 7px; font-size: 9px; }
.synthesis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.synthesis-grid article { min-height: 86px; padding: 11px; display: grid; align-content: center; border-radius: 12px; color: #365e52; background: #eaf2ec; text-align: center; }.synthesis-grid article:nth-child(2) { color: #715f78; background: #eee7f0; }.synthesis-grid article:nth-child(3) { color: #8c6132; background: #fbedd7; }.synthesis-grid b { display: block; font: 500 27px Georgia, serif; }.synthesis-grid span { margin-top: 3px; font-size: 8px; line-height: 1.3; }.synthesis-gaps { margin: 18px 0; padding: 12px; border-radius: 12px; background: #f5f1e9; }.synthesis-gaps b { font-size: 11px; }.synthesis-gaps ul { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 16px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
@media (max-width: 390px) { .welcome-intro, .consent-ritual { min-height: 430px; }.welcome-origin { padding-top: 31px; }.welcome-origin h1 { font-size: 33px; }.origin-option small { font-size: 8px; } }
@media (max-width: 620px) { .welcome-hero-art { width: 100%; height: 54dvh; opacity: .34; }.welcome-hero-art::before { background: linear-gradient(180deg, rgba(20,60,53,.1), #143c35 90%); }.welcome-hero-art img { object-position: 70% 40%; }.welcome-intro { padding-top: 26dvh; } }
.welcome-objective { max-width: 610px; padding: 35px 0 22px; }.welcome-objective h1 { max-width: 570px; margin: 8px 0; color: #fbf8f0; font-size: clamp(30px, 6.5vw, 44px); line-height: 1.06; }.welcome-objective > p:not(.eyebrow) { max-width: 520px; color: #c1d3c8; font-size: 12px; line-height: 1.55; }.objective-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 23px 0 16px; }.objective-option { min-height: 78px; padding: 11px; display: grid; grid-template-columns: 19px 1fr; gap: 8px; align-items: start; border: 1px solid rgba(237,244,236,.18); border-radius: 13px; color: #d1e0d6; background: rgba(244,248,239,.06); text-align: left; }.objective-option:hover, .objective-option.is-selected { border-color: #e9bf7f; color: #fff9ee; background: rgba(237,188,120,.13); }.objective-option > span { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #a9c4b5; border-radius: 50%; color: #173c35; font-size: 10px; }.objective-option.is-selected > span { border-color: #efbf7d; background: #efbf7d; }.objective-option b, .objective-option small { display: block; }.objective-option b { font: 500 13px/1.15 Georgia, serif; }.objective-option small { margin-top: 3px; color: #b9cec1; font-size: 8px; line-height: 1.3; }.objective-banner { margin: 15px 0; padding: 13px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid #d5dfd7; border-radius: 15px; background: #f5f8f3; }.objective-banner.is-sensitive { border-color: #dcbfcd; background: #faf4f7; }.objective-banner b, .objective-banner small { display: block; }.objective-banner b { margin-top: 2px; color: #214c43; font: 500 15px Georgia, serif; }.objective-banner small { max-width: 460px; margin-top: 4px; color: #687970; font-size: 9px; line-height: 1.4; }.objective-actions { display: grid; justify-items: end; gap: 6px; }.objective-actions .text-button { white-space: nowrap; font-size: 9px; }.sensitive-notice { margin-top: 14px; padding: 10px; border-left: 3px solid #80627a; border-radius: 0 10px 10px 0; color: #68516a; background: #f4edf5; font-size: 10px; line-height: 1.45; }.synthesis-objective { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; color: #3e6659; background: #edf4ed; font-size: 10px; line-height: 1.4; }
@media (max-width: 620px) { .objective-options { grid-template-columns: 1fr; }.objective-banner { align-items: flex-start; }.objective-actions { flex: 0 0 auto; } }

/* Accessibility and mobile readability audit */
:focus-visible { outline: 3px solid #b86741; outline-offset: 3px; }
.modal-close:focus-visible { outline-offset: 2px; }
.ai-inquiry { overflow: hidden; isolation: isolate; }
.ai-inquiry > :not(.ai-guide-visual) { position: relative; z-index: 2; }
.ai-guide-visual { width: 118px; height: 138px; position: absolute; z-index: 1; top: 0; right: 0; overflow: hidden; opacity: .22; pointer-events: none; }
.ai-guide-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fffdf8 0%, rgba(255,253,248,.84) 25%, rgba(255,253,248,.08) 100%), linear-gradient(0deg, #fffdf8 0%, transparent 46%); }
.ai-guide-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; filter: saturate(.83) contrast(.98); }
.ai-guide-glow { width: 52px; height: 52px; position: absolute; z-index: 2; top: 22px; left: 40px; border-radius: 50%; background: rgba(221,155,93,.78); filter: blur(20px); }
.ai-guide-orb { width: 30px; height: 30px; position: absolute; z-index: 3; right: 12px; bottom: 13px; display: grid; place-items: center; border: 1px solid rgba(248,245,238,.72); border-radius: 50% 50% 50% 12%; color: #173c35; background: #edbb79; box-shadow: 0 5px 14px rgba(23,60,53,.16); }
.ai-guide-orb svg { width: 16px; }
.ai-guide-visual.ori-hummingbird { width: 150px; height: 158px; top: -25px; right: -11px; overflow: visible; opacity: 1; }
.ai-guide-visual.ori-hummingbird::after { background: radial-gradient(circle at 69% 40%, rgba(255, 232, 182, .3), transparent 31%), linear-gradient(90deg, #fffdf8 0%, rgba(255,253,248,.88) 27%, rgba(255,253,248,.06) 82%); }
.ai-guide-visual.ori-hummingbird img { object-fit: contain; object-position: center; filter: drop-shadow(0 11px 13px rgba(28, 66, 52, .16)) saturate(.94); transform-origin: 62% 56%; }
.ai-guide-visual.ori-hummingbird .ai-guide-glow { top: 53px; left: 77px; opacity: .56; }
.ai-guide-visual.ori-hummingbird .ai-guide-orb { right: 21px; bottom: 18px; }
.ai-guide-visual.ori-hummingbird.is-resting { opacity: .78; }
.ai-guide-visual.ori-hummingbird.is-resting img { transform: rotate(-5deg) translateY(5px); }
.modal-ai-hero { height: 126px; position: relative; overflow: hidden; margin: -25px -20px 18px; border-radius: 23px 23px 16px 16px; background: #173c35; }
.modal-ai-hero .ai-guide-visual { width: 100%; height: 100%; opacity: 1; }
.modal-ai-hero .ai-guide-visual::after { background: linear-gradient(90deg, #173c35 0%, rgba(23,60,53,.78) 34%, rgba(23,60,53,.08) 100%); }
.modal-ai-hero .ai-guide-visual img { object-position: 59% 33%; opacity: .92; }
.modal-ai-hero .ai-guide-glow { background: rgba(221,155,93,.9); }
.modal-ai-hero .ai-guide-orb { right: 20px; bottom: 19px; }
.mission-snapshot { margin: 16px 1px 0; padding: 12px 13px; border-left: 3px solid #78a895; border-radius: 0 11px 11px 0; color: #355d52; background: #f0f5ef; }
.mission-snapshot > p:last-child { margin-top: 4px; font-size: 14px; line-height: 1.45; }
.research-details { margin-top: 18px; border-top: 1px solid #ded8cd; }
.research-details > summary { padding: 14px 1px; color: #416359; cursor: pointer; font-size: 13px; font-weight: 700; }
.research-details > summary::marker { color: #b86741; }
.research-details-content { padding-bottom: 2px; }
.research-details .mission-milestones { margin-top: 2px; }

/* Raíces: cultural context stays visibly separate from family evidence. */
.roots-launcher, .roots-archive-link { width: 100%; margin-top: 15px; padding: 13px; display: grid; grid-template-columns: 33px 1fr 19px; gap: 10px; align-items: center; border: 1px solid #cadfd3; border-radius: 15px; color: #285447; background: #f0f7f1; text-align: left; }
.roots-launcher > span:first-child, .roots-archive-link > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50% 50% 50% 12%; color: #173c35; background: #edbf7e; }
.roots-launcher svg, .roots-archive-link svg { width: 18px; }
.roots-launcher > span:nth-child(2) small, .roots-launcher > span:nth-child(2) b, .roots-launcher > span:nth-child(2) em, .roots-archive-link b, .roots-archive-link small { display: block; }
.roots-launcher small { color: #7b6952; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.roots-launcher b, .roots-archive-link b { margin-top: 2px; font: 500 16px Georgia, serif; }
.roots-launcher em, .roots-archive-link small { margin-top: 3px; color: #5c786d; font-size: 9px; font-style: normal; line-height: 1.35; }
.roots-main-entry { margin: 13px 0 2px; border-color: #b9d5c4; box-shadow: 0 8px 18px rgba(31, 83, 68, .08); }
.roots-archive-link { margin: 12px 0 3px; background: #f7fbf7; }
.roots-page { padding-bottom: 38px; }
.roots-safety { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 18px; padding: 11px 12px; border: 1px solid #ecd9b9; border-radius: 12px; color: #735c3e; background: #fff8ec; font-size: 10px; line-height: 1.5; }
.roots-safety svg { flex: 0 0 18px; width: 18px; color: #ae7638; }
.roots-query-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.roots-query-card { min-height: 292px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #d8e4da; border-radius: 18px; background: #fffdf9; box-shadow: 0 7px 18px rgba(27,60,50,.04); }
.roots-query-card > span { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 11px; color: #234e43; background: #dcece1; }
.roots-query-card > span svg { width: 19px; }
.roots-query-card h2 { margin: 5px 0; font-size: 20px; line-height: 1.05; }
.roots-query-card > p:not(.eyebrow) { min-height: 54px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.roots-query-card input { margin-top: auto; }
.roots-query-card .button { width: 100%; margin-top: 9px; font-size: 10px; }
.roots-connection { margin-top: 19px; padding: 15px; border-radius: 17px; background: #eaf2ec; }
.roots-connection h2 { margin-top: 4px; font-size: 20px; }
.roots-connection p:not(.eyebrow) { margin-top: 5px; color: #567369; font-size: 10px; line-height: 1.45; }
.root-person-list { display: flex; gap: 7px; overflow-x: auto; margin-top: 13px; padding-bottom: 2px; scrollbar-width: none; }
.root-person-list::-webkit-scrollbar { display: none; }
.root-person-button { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px 6px 6px; border: 1px solid #c8dcd0; border-radius: 99px; color: #315b50; background: #fffefa; font-size: 10px; font-weight: 700; }
.root-person-button span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #704a30; background: #f2d6b4; font: 500 12px Georgia, serif; }
.roots-results { margin-top: 25px; }
.root-context-list { display: grid; gap: 10px; }
.root-context-card { padding: 17px; border: 1px solid #d8e2d7; border-radius: 18px; background: #fffdf9; box-shadow: 0 8px 19px rgba(27,60,50,.04); }
.root-context-card.is-unknown { border-style: dashed; border-color: #dfcfae; background: #fffcf5; }
.root-context-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.root-context-head h2 { margin-top: 4px; font-size: 26px; }
.root-context-head > span { margin-top: 2px; padding: 4px 7px; border-radius: 99px; color: #4a7362; background: #e1eee5; font-size: 8px; font-weight: 800; text-align: center; }
.is-unknown .root-context-head > span { color: #90612b; background: #fae9c9; }
.root-origin-copy { margin: 12px 0 14px; color: #426359; font-size: 12px; line-height: 1.5; }
.root-detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 11px; }
.root-detail-grid > div { padding: 10px; border-radius: 12px; background: #f3f6f1; }
.root-detail-grid b { display: block; margin-bottom: 7px; color: #61766d; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.root-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.root-region-chip, .root-empty-chip, .root-variants span { padding: 4px 6px; border: 1px solid #ccdbd1; border-radius: 99px; color: #476a5e; background: #fffefa; font-size: 8px; line-height: 1.2; }
.root-region-chip.is-selected { border-color: #c48a4d; color: #67452d; background: #f7ddb3; }
.root-empty-chip { color: #8b7a65; border-style: dashed; }
.root-history { margin-top: 12px; border-top: 1px solid #e4ddd0; }
.root-history summary { padding: 11px 0 5px; color: #4f7165; cursor: pointer; font-size: 10px; font-weight: 800; }
.root-history p { color: #5e7068; font-size: 10px; line-height: 1.5; }
.root-source { display: flex; gap: 8px; align-items: center; margin: 13px 0; padding: 9px; border-radius: 11px; background: #f8f4eb; }
.root-source > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #86613e; background: #f0dfc4; }
.root-source svg { width: 14px; }
.root-source b, .root-source a { display: block; }
.root-source b { color: #7d6b55; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.root-source a { margin-top: 2px; color: #356758; font-size: 10px; font-weight: 700; }
.root-source small { display: block; margin-top: 4px; color: #786e61; font-size: 8px; line-height: 1.35; }
.roots-map-section { margin-top: 28px; }
.roots-map { min-height: 230px; position: relative; overflow: hidden; padding: 20px; border: 1px solid #d9ded4; border-radius: 20px; color: #eff6ef; background: #234d43; }
.roots-map::before { content: ''; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(#d9c99c 1px, transparent 1px); background-size: 18px 18px; }
.roots-map::after { content: ''; width: 270px; height: 270px; position: absolute; top: -170px; right: -70px; border: 1px solid rgba(237,196,127,.46); border-radius: 50%; }
.roots-map-contours { width: 78%; height: 44%; position: absolute; z-index: 1; top: 30%; left: 10%; border: 2px dashed rgba(238,190,121,.58); border-radius: 50%; transform: rotate(-8deg); }
.roots-map-contours::after { content: ''; position: absolute; inset: 16px -21px -14px 20px; border: 1px solid rgba(238,190,121,.3); border-radius: 50%; }
.roots-map-points { position: relative; z-index: 2; min-height: 167px; display: grid; align-content: center; justify-items: start; gap: 10px; }
.roots-map-point { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; border: 1px solid rgba(240,247,239,.25); border-radius: 99px; color: #eaf3eb; background: rgba(11,43,36,.36); font-size: 10px; }
.roots-map-point:nth-child(even) { align-self: end; justify-self: end; }
.roots-map-point i { width: 7px; height: 7px; border-radius: 50%; background: #edbc79; box-shadow: 0 0 0 5px rgba(237,188,121,.15); }
.roots-map-point.is-active { border-color: #f4cc91; color: #fff9eb; background: rgba(237,188,121,.17); }
.roots-map-caption { position: absolute; z-index: 2; right: 16px; bottom: 14px; max-width: 220px; color: #b8d0c4; font-size: 8px; line-height: 1.35; text-align: right; }
.roots-map-empty { position: relative; z-index: 2; max-width: 230px; margin: 57px auto; color: #c9dbcf; font-size: 12px; line-height: 1.5; text-align: center; }
.roots-region-detail { margin-top: 9px; padding: 11px 13px; border-left: 3px solid #d89b5c; border-radius: 0 10px 10px 0; background: #f7f2e8; }
.roots-region-detail b { color: #5f4a33; font-size: 11px; }
.roots-region-detail p { margin-top: 3px; color: #6b746d; font-size: 10px; line-height: 1.45; }
.roots-next-step { margin-top: 26px; padding: 16px; display: grid; grid-template-columns: 31px 1fr auto; gap: 11px; align-items: center; border-radius: 17px; color: #edf5ee; background: #255247; }
.roots-next-step > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #174137; background: #efbd79; }
.roots-next-step svg { width: 17px; }
.roots-next-step h2 { margin-top: 3px; color: #fff9ed; font-size: 18px; }
.roots-next-step p:not(.eyebrow) { margin-top: 4px; color: #c8dcd0; font-size: 9px; line-height: 1.4; }
.roots-next-step .button { white-space: nowrap; color: #1c4b40; background: #e8f1e8; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 11px; }
  .fine-print, .ai-guidance-note, .objective-banner small, .mission-milestones li, .board-grid p, .revelation-card p, .session-trust, .menu-list small, .source-list small, .evidence-main > p, .evidence-main small, .modal-title p:not(.eyebrow) { font-size: 12px; line-height: 1.5; }
  .badge { font-size: 10px; }
  .inquiry-context, .why-ask p, .ai-guidance-alternative, .source-notice, .sensitive-notice { font-size: 13px; }
  .inquiry-alternatives .text-button, .ai-guidance-control, .objective-actions .text-button { font-size: 12px; }
  .research-sky-caption { font-size: 10px; }
  .ai-inquiry { padding: 21px 18px; }
  .inquiry-head h2 { max-width: calc(100% - 12px); font-size: 26px; }
  .modal { padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); }
  .modal-title h2 { font-size: 28px; }
  .ai-guide-visual { width: 104px; height: 130px; }
  .ai-guide-visual.ori-hummingbird { width: 126px; height: 140px; top: -22px; right: -10px; }
  .roots-query-grid { grid-template-columns: 1fr; }
  .roots-query-card { min-height: 238px; }
  .roots-query-card > p:not(.eyebrow) { min-height: 0; }
  .root-context-head h2 { font-size: 23px; }
  .root-detail-grid { grid-template-columns: 1fr; }
  .roots-next-step { grid-template-columns: 31px 1fr; }
  .roots-next-step .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 620px) {
  .ancestor-tree-canvas { margin-right: -20px; margin-left: -20px; border-right: 0; border-left: 0; border-radius: 0; }
  .ancestor-tree { min-width: 340px; padding-right: 15px; padding-left: 15px; }
  .ancestor-parent-set { gap: 12px; }
  .ancestor-person { width: 150px; min-height: 132px; padding-right: 9px; padding-left: 9px; }
  .ancestor-person b { max-width: 132px; font-size: 14px; }
  .ancestor-person small { max-width: 136px; }
  .ancestor-tree-canvas + .derived-caption { padding-right: 10px; padding-left: 10px; }
}

/* The AI remains secondary to the research action, but is always easy to find. */
.ai-inquiry .ai-guidance-control { width: 100%; min-height: 61px; margin-top: 14px; padding: 10px 11px; display: grid; grid-template-columns: 29px 1fr 18px; gap: 9px; align-items: center; border: 1px solid #b9d4c6; border-radius: 13px; color: #234e43; background: #edf5ef; text-align: left; }
.ai-inquiry .ai-guidance-control > svg:first-child { width: 27px; height: 27px; padding: 5px; border-radius: 50% 50% 50% 12%; color: #173c35; background: #e9b679; }
.ai-inquiry .ai-guidance-control > svg:last-child { width: 17px; color: #567b6d; }
.ai-inquiry .ai-guidance-control b, .ai-inquiry .ai-guidance-control small { display: block; }
.ai-inquiry .ai-guidance-control b { font-size: 13px; }
.ai-inquiry .ai-guidance-control small { margin-top: 2px; color: #557367; font-size: 11px; line-height: 1.35; font-weight: 500; }
.ai-inquiry .ai-guidance-control[disabled] { opacity: .7; cursor: wait; }

/* Legacy activity records remain readable in the archive, without a scoring interface. */
.mission-history { margin-top: 26px; }
.mission-history .section-head { align-items: start; }
.mission-history .section-head p { margin-top: 4px; color: #66796f; font-size: 10px; }
.mission-history ol { margin: 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.mission-history li { padding: 11px 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-radius: 12px; background: #f3f5f0; }
.mission-history li b, .mission-history li small { display: block; }
.mission-history li b { font-size: 11px; }
.mission-history li small { margin-top: 3px; color: #75847c; font-size: 9px; }
.mission-history li > span { flex: 0 0 auto; color: #2f6555; font-size: 10px; font-weight: 800; }
.mission-history .mission-history-empty { justify-content: flex-start; color: #6d7b74; font-size: 11px; }
.migration-report { margin-top: 20px; padding: 15px; border: 1px solid #d8c7a9; border-radius: 16px; background: #fff8ec; }
.migration-report h2 { font-size: 18px; }
.migration-report p { margin-top: 4px; color: #725f47; font-size: 10px; line-height: 1.45; }
.migration-report dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.migration-report dl div { padding: 8px; border-radius: 9px; background: rgba(255, 253, 249, .78); text-align: center; }
.migration-report dt { color: #7b6d5d; font-size: 8px; }
.migration-report dd { margin: 3px 0 0; color: #274f43; font: 600 18px Georgia, serif; }

/* Reviewable external sources */
.source-search-results { margin-top: 18px; display: grid; gap: 16px; }
.source-search-loading { padding: 18px; border-radius: 14px; background: #eef5ef; text-align: center; }
.source-search-loading b { font-size: 13px; }
.source-search-loading p { margin-top: 4px; color: #60756b; font-size: 10px; }
.external-result-group { display: grid; gap: 8px; }
.external-result-group > h3, .ocr-results > h3 { font-size: 17px; }
.external-result { padding: 12px; display: grid; gap: 10px; border: 1px solid #ded8cd; border-radius: 13px; background: #fffdf9; }
.external-result span { color: #a25f3d; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.external-result h3 { margin-top: 3px; font-size: 15px; }
.external-result p { margin-top: 3px; color: #65776f; font-size: 10px; line-height: 1.4; }
.external-result > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.external-result .button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
.person-profile-section { margin-top: 22px; }
.person-profile-section > h3 { margin-bottom: 9px; font-size: 16px; }
.profile-pieces { display: grid; gap: 8px; }
.profile-piece { padding: 12px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; background: #fffdf9; }
.profile-piece > div { min-width: 0; }
.profile-piece span:not(.badge) { color: #9b6242; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.profile-piece h3 { margin-top: 3px; font-size: 14px; }
.profile-piece p, .profile-piece small, .profile-empty { margin-top: 4px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.profile-relations { display: grid; gap: 7px; padding: 0; list-style: none; }
.profile-relations li { padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; border-bottom: 1px solid var(--line); }
.profile-relations li > span:not(.badge) { color: var(--ink-soft); font-size: 10px; }
.profile-relations .badge { grid-column: 2; grid-row: 1 / 3; }
.source-empty, .source-warning { padding: 10px 11px; border-radius: 10px; color: #6d776f; background: #f3f3ee; font-size: 10px; line-height: 1.45; }
.source-warning { color: #795732; background: #fff2dc; }
.ocr-results { display: grid; gap: 8px; }
.ocr-results blockquote { margin: 0; padding: 12px; border-left: 3px solid #78a895; border-radius: 0 11px 11px 0; background: #f0f5ef; }
.ocr-results blockquote p { color: #47645a; font-size: 10px; line-height: 1.55; }
.ocr-results blockquote .button { margin-top: 8px; }

@media (max-width: 620px) {
  .mission-history li b, .migration-report p, .external-result p, .source-empty, .source-warning, .ocr-results blockquote p { font-size: 12px; }
  .migration-report dl { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ori-guide img { filter: none; }
}

/* ===== Ori compañero flotante ===== */
.ori-companion {
  position: fixed;
  z-index: 25;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  --ori-flight-x: 0px;
  --ori-flight-y: 0px;
  --ori-micro-x: 0px;
  --ori-micro-y: 0px;
}

.ori-anchor-default { --ori-flight-x: 0px; --ori-flight-y: 0px; }
.ori-anchor-investigar { --ori-flight-x: clamp(-230px, -18vw, -96px); --ori-flight-y: clamp(-270px, -26vh, -140px); }
.ori-anchor-historia { --ori-flight-x: clamp(-270px, -22vw, -120px); --ori-flight-y: clamp(-360px, -38vh, -190px); }
.ori-anchor-arbol { --ori-flight-x: clamp(-320px, -28vw, -150px); --ori-flight-y: clamp(-430px, -50vh, -240px); }
.ori-anchor-mapa { --ori-flight-x: clamp(-350px, -30vw, -160px); --ori-flight-y: clamp(-300px, -32vh, -160px); }
.ori-anchor-raices { --ori-flight-x: clamp(-280px, -24vw, -125px); --ori-flight-y: clamp(-350px, -40vh, -180px); }
.ori-anchor-archivo { --ori-flight-x: clamp(-320px, -26vw, -145px); --ori-flight-y: clamp(-430px, -54vh, -240px); }
.ori-anchor-arrival { --ori-flight-x: clamp(-205px, -17vw, -92px); --ori-flight-y: clamp(-430px, -60vh, -260px); }

.ori-micro-none { --ori-micro-x: 0px; --ori-micro-y: 0px; }
.ori-micro-left-20 { --ori-micro-x: -20px; --ori-micro-y: -10px; }
.ori-micro-right-20 { --ori-micro-x: 20px; --ori-micro-y: -10px; }
.ori-micro-left-30 { --ori-micro-x: -30px; --ori-micro-y: -13px; }
.ori-micro-right-30 { --ori-micro-x: 30px; --ori-micro-y: -13px; }
.ori-micro-left-40 { --ori-micro-x: -40px; --ori-micro-y: -16px; }
.ori-micro-right-40 { --ori-micro-x: 40px; --ori-micro-y: -16px; }
.ori-micro-left-50 { --ori-micro-x: -50px; --ori-micro-y: -19px; }
.ori-micro-right-50 { --ori-micro-x: 50px; --ori-micro-y: -19px; }
.ori-micro-left-60 { --ori-micro-x: -60px; --ori-micro-y: -22px; }
.ori-micro-right-60 { --ori-micro-x: 60px; --ori-micro-y: -22px; }

.ori-bubble {
  max-width: min(230px, calc(100vw - 96px));
  padding: 9px 12px;
  border-radius: 14px 14px 4px 14px;
  color: var(--ink);
  background: rgba(255, 253, 249, .97);
  border: 1px solid rgba(228, 221, 208, .95);
  box-shadow: var(--shadow);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px) scale(.96);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}

.is-idle .ori-bubble { opacity: .82; }

.ori-companion.is-curious .ori-bubble,
.ori-companion.is-excited .ori-bubble,
.ori-companion.is-proud .ori-bubble,
.ori-companion.is-calm .ori-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ori-body {
  pointer-events: auto;
  position: relative;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.ori-flight-sprite {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-image: url('/assets/ori-guide-flight-sprite-v4.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 400% 300%;
  filter: drop-shadow(0 7px 5px rgba(22, 54, 47, .16));
}

@keyframes ori-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  24% { transform: translate3d(0, -6px, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(1deg); }
  76% { transform: translate3d(0, -5px, 0) rotate(0deg); }
}

@keyframes ori-flight-frames {
  0%, 8.32% { background-position: 0 0; }
  8.333%, 16.65% { background-position: 33.333% 0; }
  16.666%, 24.99% { background-position: 66.666% 0; }
  25%, 33.32% { background-position: 100% 0; }
  33.333%, 41.65% { background-position: 0 50%; }
  41.666%, 49.99% { background-position: 33.333% 50%; }
  50%, 58.32% { background-position: 66.666% 50%; }
  58.333%, 66.65% { background-position: 100% 50%; }
  66.666%, 74.99% { background-position: 0 100%; }
  75%, 83.32% { background-position: 33.333% 100%; }
  83.333%, 91.65% { background-position: 66.666% 100%; }
  91.666%, 100% { background-position: 100% 100%; }
}

@keyframes ori-arrival {
  0% { transform: translate3d(22px, 26px, 0) scale(.78) rotate(8deg); }
  45% { transform: translate3d(-5px, -8px, 0) scale(1.08) rotate(-3deg); }
  70% { transform: translate3d(3px, 3px, 0) scale(.98) rotate(2deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .ori-companion {
    transform: translate3d(
      calc(var(--ori-flight-x, 0px) + var(--ori-micro-x, 0px)),
      calc(var(--ori-flight-y, 0px) + var(--ori-micro-y, 0px)),
      0
    );
    transition: transform 4.8s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
  }

  .ori-body { animation: ori-float 4.8s ease-in-out infinite; }
  .ori-flight-sprite { animation: ori-flight-frames 3.6s steps(1, end) infinite; }

  .ori-companion.is-excited .ori-body { animation-duration: 4s; }
  .ori-companion.is-arriving .ori-body { animation: ori-arrival 1.15s cubic-bezier(.22, 1, .36, 1) both; }
  .ori-bubble:not(:empty) { will-change: transform, opacity; }
}

@media (prefers-reduced-motion: reduce) {
  .ori-companion { transform: none !important; transition: none !important; }
  .ori-body, .ori-flight-sprite { animation: none !important; }
}

/* Ori stays helpful on a phone without occupying the research card. */
@media (max-width: 620px) {
  .ori-companion {
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .ori-body { width: 44px; height: 44px; }
  .ori-bubble {
    max-width: min(185px, calc(100vw - 84px));
    padding: 7px 9px;
    font-size: 10px;
    line-height: 1.35;
  }
}

/* Conversational first run: a lighter entry into the research experience. */
.welcome-conversation { width: min(100%, 620px); padding: 26px 0 18px; }
.welcome-progress { display: flex; gap: 8px; margin: 0 0 29px; color: #8eafa0; }
.welcome-progress > span { min-width: 42px; display: grid; justify-items: center; gap: 4px; font: 700 9px "DM Mono", monospace; opacity: .58; }
.welcome-progress > span::before { content: ''; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(233, 193, 129, .35); border-radius: 50%; }
.welcome-progress > span.is-active, .welcome-progress > span.is-complete { color: #f0c180; opacity: 1; }
.welcome-progress > span.is-active::before { border-color: #f0c180; background: rgba(240, 193, 128, .14); }
.welcome-progress > span.is-complete::before { content: '✓'; border-color: #8fbea4; color: #143c35; background: #b9d4c2; }
.welcome-progress small { color: inherit; font: inherit; font-size: 8px; }
.welcome-conversation > h1, .welcome-plan h1 { max-width: 590px; margin: 9px 0 12px; color: #fbf8ef; font-size: clamp(34px, 7vw, 54px); line-height: 1.04; }
.welcome-conversation > p:not(.eyebrow):not(.threshold-trust) { max-width: 540px; color: #c4d6cc; font-size: 13px; line-height: 1.55; }
.welcome-goal-options, .welcome-context-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 23px 0 15px; }
.welcome-goal-option, .welcome-context-option { min-height: 76px; padding: 12px; display: grid; align-items: start; border: 1px solid rgba(237, 244, 236, .18); border-radius: 15px; color: #d1e0d6; background: rgba(244, 248, 239, .06); text-align: left; transition: transform .16s, border .16s, background .16s; }
.welcome-goal-option { grid-template-columns: 31px 1fr 8px; gap: 10px; }
.welcome-goal-option:hover, .welcome-goal-option.is-selected, .welcome-context-option:hover, .welcome-context-option.is-selected { transform: translateY(-1px); border-color: #e9bf7f; color: #fff9ee; background: rgba(237, 188, 120, .13); }
.welcome-goal-option > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #143c35; background: #d5e4d9; }
.welcome-goal-option.is-selected > span { color: #173c35; background: #efbf7d; }
.welcome-goal-option svg { width: 17px; }
.welcome-goal-option b, .welcome-goal-option small, .welcome-context-option b, .welcome-context-option small { display: block; }
.welcome-goal-option b, .welcome-context-option b { font: 500 14px/1.15 Georgia, serif; }
.welcome-goal-option small, .welcome-context-option small { margin-top: 4px; color: #b9cec1; font-size: 9px; line-height: 1.35; }
.welcome-goal-option i { width: 8px; height: 8px; margin-top: 5px; border: 1px solid #a9c4b5; border-radius: 50%; }
.welcome-goal-option.is-selected i { border: 3px solid #efbf7d; background: #174139; }
.welcome-context-options { grid-template-columns: 1fr; }
.welcome-context-option { min-height: 59px; }
.welcome-context-option small { max-width: 420px; }
.welcome-conversation .begin-button:disabled { cursor: not-allowed; opacity: .43; box-shadow: none; }
.welcome-conversation .ritual-back { margin-top: 12px; }
.signal-choice-note { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 15px; color: #b8cec1; font-size: 9px; line-height: 1.4; }
.signal-choice-note svg { width: 14px; flex: 0 0 14px; color: #e7bc7b; }
.welcome-plan { position: relative; }
.welcome-plan-header { display: grid; grid-template-columns: 1fr 145px; gap: 20px; align-items: center; }
.welcome-plan-header > div:first-child > p:not(.eyebrow) { max-width: 445px; }
.welcome-plan-ori { height: 138px; display: grid; place-items: center; overflow: hidden; }
.welcome-plan-ori img { width: 145px; height: 145px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(4, 25, 20, .2)); }
.first-path-list { display: grid; gap: 8px; margin: 24px 0 14px; }
.first-path-mission { min-height: 84px; padding: 13px; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; border: 1px solid rgba(237, 244, 236, .18); border-radius: 15px; color: #d1e0d6; background: rgba(244, 248, 239, .06); }
.first-path-mission.is-primary { border-color: rgba(239, 191, 125, .68); background: rgba(237, 188, 120, .12); }
.first-path-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #174139; background: #d4e4d8; }
.first-path-mission.is-primary .first-path-mark { background: #efbf7d; }
.first-path-mark svg { width: 16px; }
.first-path-mission small { color: #e6be7f; font: 700 8px "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.first-path-mission h2 { margin-top: 4px; color: #fff9ee; font-size: 17px; }
.first-path-mission p { margin-top: 4px; color: #b9cec1; font-size: 10px; line-height: 1.4; }
.first-path-explanation { margin: 0 0 17px; padding: 11px 12px; border-left: 3px solid #e7bb78; color: #cfdfd4; background: rgba(239, 191, 125, .08); font-size: 10px; line-height: 1.45; }
.explore-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 23px 0 13px; }
.explore-preview-grid article { min-height: 103px; padding: 12px; display: grid; align-content: space-between; border: 1px solid rgba(237, 244, 236, .18); border-radius: 15px; background: rgba(244, 248, 239, .06); }
.explore-preview-grid span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #173c35; background: #d5e4d9; }
.explore-preview-grid svg { width: 16px; }
.explore-preview-grid b { margin-top: 12px; color: #fff9ee; font: 500 15px Georgia, serif; }
.explore-preview-grid small { margin-top: 3px; color: #b9cec1; font-size: 9px; line-height: 1.35; }
.explore-preview-note { display: flex; gap: 7px; align-items: center; margin-bottom: 18px; color: #b9cec1; font-size: 9px; }
.explore-preview-note svg { width: 14px; color: #e7bb78; }
.session-header-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.tutorial-link { padding: 3px 0; border: 0; color: #8e6343; background: transparent; font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tutorial-link:hover { color: #b05f3a; }
.feature-guide { display: grid; grid-template-columns: 65px 1fr auto; gap: 13px; align-items: center; margin: 0 0 18px; padding: 12px 13px; border: 1px solid #cadfd1; border-radius: 16px; background: #eef5ef; }
.feature-guide-art { width: 65px; height: 58px; display: grid; place-items: center; overflow: hidden; }
.feature-guide-art img { width: 77px; height: 68px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(28, 66, 52, .13)); }
.feature-guide-copy h2 { margin: 3px 0 3px; color: #214c43; font: 500 17px Georgia, serif; }
.feature-guide-copy p:not(.eyebrow) { max-width: 470px; color: #557367; font-size: 10px; line-height: 1.45; }
.feature-guide-actions { display: grid; justify-items: end; gap: 5px; }
.feature-guide-actions .button { min-height: 33px; padding: 7px 10px; font-size: 10px; }
.feature-guide-actions .text-button { color: #5c7469; font-size: 9px; }
.archive-guide-entry { display: flex; justify-content: flex-end; padding: 13px 20px 0; }
.archive-guide-entry + .feature-guide { margin: 10px 20px 0; }

@media (max-width: 620px) {
  .welcome-goal-options { grid-template-columns: 1fr; }
  .welcome-conversation { padding-top: 14px; }
  .welcome-conversation > h1, .welcome-plan h1 { font-size: 35px; }
  .welcome-plan-header { grid-template-columns: 1fr; }
  .welcome-plan-ori { position: absolute; top: 76px; right: 3px; width: 88px; height: 86px; opacity: .82; }
  .welcome-plan-ori img { width: 91px; height: 91px; }
  .welcome-plan-header > div:first-child { padding-right: 66px; }
  .explore-preview-grid { grid-template-columns: 1fr; }
  .explore-preview-grid article { min-height: 65px; grid-template-columns: 30px 1fr; gap: 9px; align-items: center; }
  .explore-preview-grid b { margin-top: 0; }
  .explore-preview-grid small { grid-column: 2; margin-top: -8px; }
  .feature-guide { grid-template-columns: 48px 1fr; gap: 10px; }
  .feature-guide-art { width: 48px; height: 50px; }
  .feature-guide-art img { width: 62px; height: 58px; }
  .feature-guide-actions { grid-column: 2; display: flex; justify-content: flex-start; align-items: center; flex-direction: row; }
  .archive-guide-entry { padding: 11px 20px 0; }
  .archive-guide-entry + .feature-guide { margin-right: 20px; margin-left: 20px; }
  .session-header { align-items: flex-start; }
  .session-header-tools { gap: 5px; }
  .live-research { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-goal-option, .welcome-context-option { transition: none; }
  .welcome-goal-option:hover, .welcome-context-option:hover { transform: none; }
}
