:root {
  --ink: #25302d;
  --muted: #69716b;
  --faint: #90968f;
  --paper: #f7f3e9;
  --paper-deep: #eee7d8;
  --card: rgba(255, 253, 247, 0.86);
  --white: #fffef9;
  --line: #d9d1c1;
  --line-dark: #bcb3a3;
  --forest: #285c4d;
  --forest-dark: #174337;
  --mint: #dcebe2;
  --coral: #db6f55;
  --coral-soft: #f4d8ce;
  --marigold: #e6a637;
  --marigold-soft: #f8e9bf;
  --blue: #416d8b;
  --blue-soft: #dce8ed;
  --violet: #775a84;
  --violet-soft: #e8deeb;
  --rose: #a94e50;
  --rose-soft: #f3d9d7;
  --shadow: 0 16px 40px rgba(53, 47, 35, 0.08);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.paper-grain { position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .25; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--forest); color: white; padding: 10px 14px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px 20px; background: #24332e; color: #f8f3e8; display: flex; flex-direction: column; overflow: auto; border-right: 1px solid rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.brand small { color: #b7c1bc; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 36px; display: flex; gap: 3px; align-items: end; transform: rotate(-3deg); }
.brand-mark i { width: 8px; border-radius: 6px 6px 2px 2px; background: var(--coral); display: block; }
.brand-mark i:nth-child(1) { height: 21px; }
.brand-mark i:nth-child(2) { height: 32px; background: #e9bd54; }
.brand-mark i:nth-child(3) { height: 25px; background: #80a48f; }
.study-switcher { margin: 38px 0 24px; }
.eyebrow { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: 10px; }
.sidebar .eyebrow { color: #94a39c; }
.study-button { width: 100%; margin-top: 7px; display: flex; align-items: center; justify-content: space-between; padding: 12px; text-align: left; color: #fffaf0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; cursor: pointer; }
.study-button:hover { background: rgba(255,255,255,.1); }
.study-button span:first-child { display: grid; gap: 2px; }
.study-button strong { font-size: 13px; }
.study-button small { color: #afbbb5; font-size: 11px; }
.nav-list { display: grid; gap: 3px; }
.nav-list a { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; min-height: 43px; padding: 8px 10px; color: #c1cbc5; text-decoration: none; border-radius: 10px; transition: .18s ease; }
.nav-list a:hover { color: white; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-list a.active { color: #fff; background: #355d50; box-shadow: inset 3px 0 var(--coral); }
.nav-index { color: #7e9389; font-family: var(--serif); font-size: 11px; }
.nav-list a.active .nav-index { color: #eab5a6; }
.nav-list b { min-width: 24px; padding: 1px 6px; background: rgba(255,255,255,.1); border-radius: 999px; color: #cbd6d0; text-align: center; font-size: 10px; font-weight: 600; }
.sidebar-note { position: relative; margin: auto 8px 20px; padding: 18px 14px 12px; color: #c9d0cc; font-family: var(--serif); font-size: 14px; font-style: italic; border-top: 1px solid rgba(255,255,255,.13); transform: rotate(-1deg); }
.note-pin { position: absolute; width: 8px; height: 8px; top: -5px; left: 50%; border-radius: 50%; background: var(--coral); box-shadow: 0 2px 0 #723629; }
.sidebar-footer { display: grid; grid-template-columns: 34px 34px 1fr; gap: 9px; align-items: center; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer > span { display: grid; font-size: 11px; }
.sidebar-footer small { color: #9dacA5; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: #713629; font-size: 11px; font-weight: 800; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: transparent; color: inherit; cursor: pointer; }

.main-content { min-width: 0; background: radial-gradient(circle at 88% 2%, rgba(219,111,85,.1), transparent 28%), var(--paper); }
.mobile-header { display: none; }
.page { max-width: 1260px; margin: 0 auto; padding: 42px 48px 70px; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.page-header h1 { max-width: 700px; margin: 5px 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.04em; line-height: 1.02; }
.page-header p { max-width: 670px; margin: 0; color: var(--muted); }
.header-actions, .button-row, .filter-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-dark); background: var(--white); color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; transition: .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(47,42,31,.1); }
.button.primary { border-color: var(--forest); background: var(--forest); color: #fff; }
.button.coral { border-color: var(--coral); background: var(--coral); color: white; }
.button.ghost { background: transparent; border-color: transparent; color: var(--forest); }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(219,111,85,.35); outline-offset: 2px; }

.card { position: relative; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(50,44,31,.035); backdrop-filter: blur(7px); }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0 0 3px; font-family: var(--serif); font-weight: 500; }
.card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 18px; }

.status-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); margin-bottom: 20px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.45); }
.status-item { min-height: 91px; padding: 16px 18px; border-left: 1px solid var(--line); }
.status-item:first-child { border-left: 0; background: var(--forest); color: white; }
.status-item strong { display: block; margin-top: 5px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.status-item small { color: var(--muted); font-size: 11px; }
.status-item:first-child small, .status-item:first-child .eyebrow { color: #c5d5cf; }
.progress { height: 6px; margin-top: 11px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: #f2c764; }

.editable { border-bottom: 1px dashed transparent; }
.editable:hover { border-color: var(--line-dark); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field .helper { color: var(--faint); font-size: 11px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255,254,249,.72); color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
select { cursor: pointer; }

.context-board { overflow: hidden; background-color: #e9e3d5; background-image: linear-gradient(rgba(89,78,56,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(89,78,56,.055) 1px, transparent 1px); background-size: 22px 22px; }
.post-it-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding: 22px 10px 28px; align-items: start; }
.post-it { --note: #f4e79e; position: relative; min-height: 310px; padding: 40px 24px 26px; background: var(--note); color: #353024; box-shadow: 3px 6px 0 rgba(74,63,41,.08), 0 14px 24px rgba(63,53,34,.14); transform: rotate(-1.2deg); transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; }
.post-it::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.22'/%3E%3C/svg%3E"); mix-blend-mode: multiply; pointer-events: none; }
.post-it::after { content: ""; position: absolute; right: 0; bottom: 0; width: 36px; height: 36px; background: linear-gradient(135deg, rgba(255,255,255,0) 50%, rgba(89,73,41,.1) 51%); pointer-events: none; }
.post-it:nth-child(2) { transform: rotate(1.1deg) translateY(10px); }
.post-it:nth-child(3) { transform: rotate(-.5deg) translateY(-4px); }
.post-it:hover, .post-it:focus-within { transform: rotate(0) translateY(-4px); box-shadow: 4px 10px 0 rgba(74,63,41,.07), 0 20px 34px rgba(63,53,34,.17); z-index: 2; }
.post-it-yellow { --note: #f5e899; }
.post-it-blue { --note: #cfe4e4; }
.post-it-coral { --note: #edb9a5; }
.post-it-tape { position: absolute; top: -10px; left: 50%; width: 82px; height: 27px; transform: translateX(-50%) rotate(-2deg); background: rgba(250,245,224,.72); border-left: 1px dashed rgba(94,82,57,.22); border-right: 1px dashed rgba(94,82,57,.22); box-shadow: 0 1px 2px rgba(70,60,41,.08); }
.post-it:nth-child(2) .post-it-tape { transform: translateX(-50%) rotate(3deg); }
.post-it-kicker { margin-bottom: 8px; color: rgba(53,48,36,.58); font-family: var(--serif); font-style: italic; font-size: 13px; }
.post-it label { display: block; margin-bottom: 12px; color: rgba(53,48,36,.77); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-it textarea { min-height: 178px; padding: 0; resize: none; overflow: auto; border: 0; border-radius: 0; background: transparent; color: #302d25; font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.post-it textarea:focus-visible { outline: 2px dashed rgba(40,92,77,.5); outline-offset: 7px; }
.post-it-edit { position: absolute; right: 18px; bottom: 12px; color: rgba(53,48,36,.45); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.post-it:hover .post-it-edit, .post-it:focus-within .post-it-edit { opacity: 1; }
.board-caption { margin: 2px 10px 0; padding-top: 14px; border-top: 1px dashed rgba(71,62,43,.25); color: var(--muted); font-family: var(--serif); font-size: 13px; font-style: italic; }

.source-pill, .tag, .confidence { width: fit-content; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.source-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.source-pill.participant { color: var(--blue); background: var(--blue-soft); }
.source-pill.researcher { color: var(--violet); background: var(--violet-soft); }
.source-pill.mixed { color: var(--forest); background: var(--mint); }
.tag { color: var(--forest); background: var(--mint); }
.tag.coral { color: #8c3e2f; background: var(--coral-soft); }
.tag.gold { color: #815b16; background: var(--marigold-soft); }
.tag.rose { color: var(--rose); background: var(--rose-soft); }

.check-list { display: grid; gap: 9px; }
.check-row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.38); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }
.check-row strong { display: block; font-size: 13px; }
.check-row small { display: block; color: var(--muted); font-size: 11px; }
.check-row .tag { margin-top: 1px; }

.activity-list { display: grid; gap: 10px; }
.activity-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.44); border: 1px solid var(--line); transition: .2s; }
.activity-row:hover { border-color: #9dac9f; transform: translateX(2px); }
.activity-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--marigold-soft); color: #8c621b; font-family: var(--serif); font-size: 21px; }
.activity-row:nth-child(2n) .activity-icon { background: var(--blue-soft); color: var(--blue); }
.activity-row strong { display: block; font-family: var(--serif); font-weight: 500; }
.activity-row small { color: var(--muted); }

.metric-tabs { display: flex; gap: 6px; margin-bottom: 18px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.metric-tab { white-space: nowrap; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-tab.active { background: var(--forest); border-color: var(--forest); color: white; }
.metric-summary { display: grid; grid-template-columns: 180px 1fr; gap: 22px; padding: 20px; margin-bottom: 18px; border-radius: 16px; color: white; background: var(--forest); }
.metric-summary .big-number { font-family: var(--serif); font-size: 68px; line-height: .85; }
.metric-summary p { margin: 5px 0 0; color: #d3e1db; }
.metric-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.metric-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.metric-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.metric-card h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.metric-card > p { min-height: 43px; color: var(--muted); font-size: 13px; }
.metric-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.metric-detail div { padding: 9px; border-radius: 8px; background: rgba(239,234,221,.65); }
.metric-detail span { display: block; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-detail strong { display: block; margin-top: 3px; font-size: 11px; }
.risk-note { margin-top: 10px; padding: 9px 10px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: #743c31; font-size: 11px; }

.journal-layout { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 18px; align-items: start; }
.journal-list { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding: 8px; }
.search-wrap { position: relative; margin: 4px 4px 10px; }
.search-wrap input { padding-left: 35px; }
.search-wrap::before { content: "⌕"; position: absolute; left: 12px; top: 8px; color: var(--muted); font-size: 18px; }
.entry-item { width: 100%; padding: 13px 12px; display: grid; grid-template-columns: 42px 1fr; gap: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.entry-item:hover, .entry-item.active { background: var(--mint); border-radius: 11px; border-top-color: transparent; }
.entry-date { color: var(--coral); font-family: var(--serif); font-size: 12px; text-align: center; line-height: 1.15; }
.entry-date b { display: block; font-size: 24px; }
.entry-item strong { display: block; font-size: 13px; }
.entry-item small { color: var(--muted); }
.entry-detail { min-height: 650px; }
.entry-quote { position: relative; margin: 18px 0; padding: 24px 25px 22px 38px; background: var(--blue-soft); border-radius: 4px 18px 18px 18px; color: #294c63; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.entry-quote::before { content: "“"; position: absolute; left: 13px; top: 5px; font-size: 44px; color: var(--blue); }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.evidence-block { padding: 16px; border-radius: 13px; border: 1px solid var(--line); }
.evidence-block.participant { background: rgba(220,232,237,.48); border-color: #b8cdd7; }
.evidence-block.researcher { background: rgba(232,222,235,.48); border-color: #cfc0d3; }
.evidence-block h3 { margin: 10px 0 4px; font-family: var(--serif); font-weight: 500; }
.evidence-block p { margin: 0; font-size: 13px; }
.metadata { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }

.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.guide-menu { position: sticky; top: 20px; display: grid; gap: 6px; padding: 8px; align-self: start; }
.guide-menu button { padding: 10px 12px; border: 0; border-radius: 9px; text-align: left; background: transparent; cursor: pointer; font-size: 13px; }
.guide-menu button.active { background: var(--forest); color: white; }
.script-card { overflow: hidden; margin-bottom: 14px; }
.script-label { margin: -22px -22px 18px; padding: 10px 22px; background: var(--marigold-soft); color: #795513; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.script-text { font-family: var(--serif); font-size: 19px; line-height: 1.55; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-child { border-bottom: 1px solid var(--line); }
details.faq summary { padding: 15px 4px; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 700; list-style: none; }
details.faq summary::after { content: "+"; color: var(--coral); font-size: 20px; }
details.faq[open] summary::after { content: "–"; }
details.faq p { max-width: 760px; margin: 0 0 17px 4px; color: var(--muted); }

.insight-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.45); border-radius: 14px; }
.kpi strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.kpi span { color: var(--muted); font-size: 11px; }
.chart-card { min-height: 300px; }
.line-chart { width: 100%; height: 190px; overflow: visible; }
.line-chart .gridline { stroke: var(--line); stroke-width: 1; }
.line-chart .area { fill: url(#areaFill); }
.line-chart .line { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .point { fill: var(--paper); stroke: var(--forest); stroke-width: 3; }
.chart-caption { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 35px; gap: 10px; align-items: center; font-size: 12px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--coral); transform-origin: left; animation: grow .7s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
.theme-cloud { display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 9px; min-height: 180px; }
.theme-cloud button { border: 1px solid transparent; cursor: pointer; transition: .18s; }
.theme-cloud button:hover { border-color: currentColor; transform: rotate(-1deg) scale(1.02); }
.theme-cloud .large { font-size: 16px; }
.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.factor-list { display: grid; gap: 8px; }
.factor { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.4); font-size: 12px; }
.factor b { margin-left: auto; white-space: nowrap; }

.report-paper { padding: clamp(25px, 5vw, 58px); background: #fffdf6; border: 1px solid var(--line); box-shadow: var(--shadow); }
.report-cover { display: grid; grid-template-columns: 1fr 210px; gap: 30px; min-height: 280px; padding-bottom: 35px; margin-bottom: 30px; border-bottom: 1px solid var(--ink); }
.report-cover h2 { margin: 25px 0 8px; font-family: var(--serif); font-size: clamp(37px, 5vw, 64px); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.report-stamp { align-self: start; padding: 18px; border: 2px solid var(--coral); color: var(--coral); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; transform: rotate(7deg); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.report-section { display: grid; grid-template-columns: 180px 1fr; gap: 35px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.report-section > h3 { margin: 0; font-family: var(--serif); font-weight: 500; }
.finding { position: relative; padding-left: 22px; margin-bottom: 24px; }
.finding::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 2px; width: 4px; border-radius: 4px; background: var(--coral); }
.finding h4 { margin: 0 0 6px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.finding p { color: var(--muted); }
.evidence-thread { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; }
.confidence { color: #7a571a; background: var(--marigold-soft); }
.confidence.high { color: var(--forest); background: var(--mint); }

.empty-note { padding: 22px; text-align: center; border: 1px dashed var(--line-dark); border-radius: 13px; color: var(--muted); }
.app-dialog { width: min(620px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(24,31,28,.28); }
.app-dialog::backdrop { background: rgba(27,38,34,.62); backdrop-filter: blur(3px); }
.dialog-inner { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; }
.dialog-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.dialog-intro { margin-top: -8px; color: var(--muted); }
.study-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.study-list-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.45); text-align: left; cursor: pointer; }
.study-list-item:hover { border-color: var(--forest); background: var(--mint); }
.study-list-item.current { border-color: var(--forest); box-shadow: inset 3px 0 var(--forest); }
.study-list-item span:first-child { display: grid; }
.study-list-item small { color: var(--muted); }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: grid; gap: 8px; }
.toast { padding: 11px 15px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); animation: toastIn .25s ease both; font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .page { padding-inline: 28px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .insight-kpis { grid-template-columns: 1fr 1fr; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .post-it-grid { grid-template-columns: 1fr 1fr; }
  .post-it:last-child { grid-column: 1 / -1; min-height: 240px; }
  .post-it:last-child textarea { min-height: 115px; }
  .status-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .status-item:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 120; inset: 0 15% 0 0; height: 100vh; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 50px rgba(0,0,0,.24); }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: #fff; background: #24332e; }
  .mobile-header .brand strong { font-size: 20px; }
  .mobile-header .brand-mark { transform: scale(.8); }
  .page { padding: 28px 16px 60px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header h1 { font-size: 38px; }
  .grid-2, .grid-3, .field-grid, .metric-cards, .journal-layout, .faq-layout, .evidence-grid, .split-list { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .status-strip { grid-template-columns: 1fr; }
  .status-item { border-left: 0; border-top: 1px solid var(--line); }
  .status-item:first-child { border-top: 0; }
  .metric-summary { grid-template-columns: 100px 1fr; }
  .journal-list, .guide-menu { position: static; max-height: none; }
  .journal-list { max-height: 370px; }
  .guide-menu { grid-template-columns: 1fr 1fr; }
  .insight-kpis { grid-template-columns: 1fr 1fr; }
  .report-cover, .report-section { grid-template-columns: 1fr; }
  .report-stamp { width: 130px; }
  .report-section { gap: 14px; }
  .post-it-grid { grid-template-columns: 1fr; gap: 22px; padding-inline: 2px; }
  .post-it, .post-it:last-child { grid-column: auto; min-height: 260px; transform: rotate(-.7deg); }
  .post-it:nth-child(2), .post-it:nth-child(3) { transform: rotate(.6deg); }
  .post-it textarea, .post-it:last-child textarea { min-height: 140px; }
}

@media print {
  .sidebar, .mobile-header, .header-actions, .paper-grain, .toast-region { display: none !important; }
  .app-shell { display: block; }
  .page { max-width: none; padding: 0; }
  body, .main-content { background: white; }
  .report-paper { border: 0; box-shadow: none; }
}
