



:root {
  --ink: #2b1721;
  --muted: #6b5f64;
  --paper: #f8f3ec;
  --stone: #ded2c8;
  --burgundy: #2b1721;
  --mint: #01a072;
  --mint-dark: #007c58;
  --mint-soft: #dff3eb;
  --shell: #fffaf3;
  --white: #fffdf8;
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--white);
  --card-foreground: var(--ink);
  --popover: var(--white);
  --popover-foreground: var(--ink);
  --primary: var(--mint);
  --primary-foreground: var(--ink);
  --secondary: var(--shell);
  --secondary-foreground: var(--ink);
  --muted-foreground: var(--muted);
  --accent: var(--mint-soft);
  --accent-foreground: var(--ink);
  --destructive: #a41e35;
  --border: var(--stone);
  --input: var(--stone);
  --ring: var(--mint);
  --radius: 0.8rem;
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.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; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px 40px;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid rgba(43, 23, 33, 0.10);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; width: 212px; min-width: 176px; }
.brand img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 0.88rem; font-weight: 700; }
.site-nav a { padding: 11px 16px; border-radius: 999px; transition: 160ms ease; }
.site-nav a:hover { background: var(--mint-soft); }
.site-nav .strategy-nav { max-width: 360px; background: var(--burgundy); color: var(--white); text-align: center; line-height: 1.2; }
.site-nav .strategy-nav:hover { background: var(--mint); color: var(--ink); }
.mobile-menu-button { display: none; border: 0; background: transparent; color: var(--ink); }

main { flex: 1; }
.eyebrow, .section-label, .reference-label { margin: 0; color: var(--mint-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.research-intro { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: clamp(68px, 9vw, 118px) 0 92px; }
.research-intro.compact { width: min(1120px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 42px 0 50px; }
.intro-copy h1 { margin: 14px 0 16px; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.7rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; }
.intro-text { margin: 0; max-width: 690px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.55; }
.research-intro:not(.compact) .research-composer { margin-top: 42px; }
.research-composer { overflow: hidden; background: var(--white); border: 1px solid var(--stone); border-radius: 18px; box-shadow: 0 20px 60px rgba(43, 23, 33, 0.08); }
.research-composer textarea { width: 100%; min-height: 148px; resize: vertical; border: 0 !important; border-radius: 0; background: transparent; padding: 24px 26px 14px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.55; box-shadow: none !important; }
.compact .research-composer textarea { min-height: 92px; font-size: 1.08rem; }
.research-composer textarea::placeholder { color: #998c90; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid rgba(43, 23, 33, 0.08); }
.composer-actions button, .download-button, .review-actions button { min-height: 48px; border-radius: 999px; background: var(--mint); color: var(--ink); padding: 0 22px; font-weight: 800; }
.composer-actions button:hover, .download-button:hover, .review-actions button:hover { background: #00b37d; }
.composer-actions button:disabled { opacity: 0.46; }
.composer-actions svg, .download-button svg, .review-actions svg { width: 18px; height: 18px; }
.attach-control { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 0.93rem; font-weight: 700; cursor: pointer; }
.attach-control:hover { color: var(--mint-dark); }
.attach-control svg { width: 18px; height: 18px; }
.attach-control input { position: absolute; opacity: 0; pointer-events: none; }
.attached-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.file-chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--mint-soft); padding: 7px 9px 7px 12px; color: var(--ink); font-size: 0.82rem; }
.file-chip > svg { width: 14px; height: 14px; }
.file-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.file-chip button:hover { background: rgba(43, 23, 33, 0.08); }
.file-chip button svg { width: 14px; height: 14px; }
.form-error, .connection-note { margin: 15px 4px 0; font-size: 0.9rem; line-height: 1.5; }
.form-error { color: #9a1631; }
.connection-note { color: var(--muted); }
.connection-note a { color: var(--mint-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.report-stage { padding: 0 0 92px; scroll-margin-top: 88px; }
.report-document { width: min(1320px, calc(100% - 40px)); margin: 0 auto; border: 1px solid var(--stone); background: var(--white); box-shadow: 0 30px 90px rgba(43, 23, 33, 0.08); }
.report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(34px, 5vw, 66px); border-bottom: 1px solid var(--stone); }
.report-heading h1 { margin: 12px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.report-heading > div > p:last-child { margin: 0; max-width: 720px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.download-button { flex: 0 0 auto; }
.report-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(36px, 6vw, 86px); padding: clamp(34px, 5vw, 66px); }
.report-reference { position: sticky; top: 112px; align-self: start; border-radius: 14px; background: var(--mint-soft); padding: 24px; }
.report-reference > p:nth-child(2) { margin: 14px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.45; }
.report-reference dl { margin: 0; }
.report-reference dl div { padding: 13px 0; border-top: 1px solid rgba(43, 23, 33, 0.12); }
.report-reference dt { color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.report-reference dd { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.4; }
.report-body { min-width: 0; }
.executive-summary { margin-bottom: 44px; padding-bottom: 42px; border-bottom: 1px solid var(--stone); }
.executive-summary > p:nth-child(2) { margin: 15px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.7vw, 2.45rem); line-height: 1.35; letter-spacing: -0.02em; }
.consultation-invitation { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; border-top: 1px solid var(--stone); padding-top: 22px; }
.consultation-invitation p { margin: 0; max-width: 620px; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.consultation-invitation a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 46px; border-radius: 999px; background: var(--mint); padding: 0 20px; font-size: 0.86rem; font-weight: 800; transition: 160ms ease; }
.consultation-invitation a:hover { background: var(--mint-dark); color: var(--white); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 56px; }
.metric { min-height: 178px; border: 1px solid var(--stone); padding: 22px; }
.metric-value { margin: 0 0 18px; color: var(--mint-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.1; }
.metric h2 { margin: 0 0 8px; font-size: 0.9rem; }
.metric > p:last-child { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.report-section { margin: 0 0 50px; padding-left: 24px; border-left: 3px solid var(--mint); }
.report-section.client_claim { border-left-color: #7a5fa8; }
.report-section.sustainaprise_interpretation { border-left-color: var(--burgundy); }
.report-section.unknown { border-left-color: #b46b24; }
.report-section h2 { margin: 11px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 400; line-height: 1.15; }
.report-section > p:not(.section-label), .report-section li { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.75; }
.report-section ul { margin: 14px 0 0; padding-left: 22px; }
.citations { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: super; }
.citations a { color: var(--mint-dark); font-family: Inter, sans-serif; font-size: 0.65rem; font-weight: 800; }
.sources-section { margin-top: 58px; padding-top: 32px; border-top: 1px solid var(--stone); }
.sources-section ol { list-style: none; margin: 20px 0 0; padding: 0; }
.sources-section li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(43, 23, 33, 0.1); }
.sources-section li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-dark); font-size: 0.75rem; font-weight: 800; }
.sources-section li div { display: grid; gap: 3px; }
.sources-section strong, .sources-section a, .sources-section small { line-height: 1.4; }
.sources-section strong { font-size: 0.82rem; }
.sources-section a { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; text-decoration: underline; text-decoration-color: rgba(1, 160, 114, 0.45); text-underline-offset: 3px; }
.sources-section small { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 34px 40px; background: var(--burgundy); color: var(--white); }
.site-footer img { width: 180px; }
.site-footer p { margin: 0; max-width: 620px; color: rgba(255, 253, 248, 0.78); font-size: 0.9rem; }
.footer-links { display: flex; gap: 16px; font-size: 0.78rem; font-weight: 700; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }

.header-preview-page { min-height: 100vh; background: var(--paper); }
.header-preview-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(58px, 8vw, 96px) 0 104px; }
.workplace-page-intro { max-width: 820px; }
.workplace-page-intro h1 { margin: 14px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.3vw, 5.8rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.05em; }
.header-preview-intro { max-width: 720px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.strategy-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 78px); align-items: end; margin-top: clamp(58px, 8vw, 92px); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); padding: clamp(38px, 5vw, 64px) 0; }
.strategy-panel-copy { max-width: 760px; }
.strategy-panel h2 { margin: 14px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4.4vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.strategy-panel-copy > p:last-child { margin: 0; max-width: 660px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.strategy-panel-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 230px; }
.preview-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid var(--mint); border-radius: 999px; background: var(--mint); padding: 0 22px; font-weight: 800; transition: 160ms ease; }
.preview-button:hover { background: var(--mint-dark); border-color: var(--mint-dark); color: var(--white); }
.preview-button.secondary { border-color: var(--burgundy); background: transparent; }
.preview-button.secondary:hover { background: var(--burgundy); color: var(--white); }

@media (max-width: 880px) {
  .site-header { padding: 13px 20px; }
  .brand { width: 176px; }
  .mobile-menu-button { display: grid; place-items: center; }
  .site-nav { position: absolute; top: 100%; right: 16px; left: 16px; display: none; align-items: stretch; flex-direction: column; padding: 14px; border: 1px solid var(--stone); background: var(--shell); box-shadow: 0 18px 50px rgba(43, 23, 33, 0.14); }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: left; }
  .site-nav .strategy-nav { max-width: none; }
  .research-intro.compact { display: block; }
  .compact .intro-copy { margin-bottom: 18px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-reference { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .report-reference dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .report-reference dl div { padding-right: 10px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { min-height: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .strategy-panel { grid-template-columns: 1fr; align-items: start; }
  .strategy-panel-actions { flex-direction: row; min-width: 0; }
  .strategy-panel-actions a { flex: 1; }
}

@media (max-width: 560px) {
  .research-intro, .research-intro.compact, .report-document, .header-preview-main { width: min(100% - 24px, 100%); }
  .research-intro { padding-top: 54px; }
  .intro-copy h1 { font-size: 3.25rem; }
  .composer-actions { align-items: stretch; flex-direction: column; }
  .composer-actions button { width: 100%; }
  .attach-control { justify-content: center; }
  .report-heading { align-items: stretch; flex-direction: column; }
  .download-button { width: 100%; }
  .report-grid, .report-heading { padding: 26px 20px; }
  .report-reference { display: block; }
  .report-reference dl { display: block; }
  .site-footer { padding: 30px 22px; }
  .review-actions { flex-direction: column; }
  .consultation-invitation, .strategy-panel-actions { align-items: stretch; flex-direction: column; }
  .consultation-invitation a { justify-content: center; }
}

@media print {
  .site-header, .research-intro, .site-footer, .download-button { display: none !important; }
  body { background: white; }
  .report-stage { padding: 0; }
  .report-document { width: 100%; border: 0; box-shadow: none; }
  .report-reference { position: static; }
}

/* Version 3 interface baseline. Keep this visual system for the research console. */
body { min-width: 320px; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.site-header { position: fixed; inset: 0 0 auto; min-height: 0; padding: 14px 40px; background: rgba(255, 250, 243, 0.94); }
.site-nav { gap: 18px; font-size: 14px; }
.site-nav a { padding: 0; border-radius: 0; color: var(--burgundy); font-weight: 800; }
.site-nav a:hover { background: transparent; color: var(--mint); }
.site-nav .nav-cta { padding: 9px 14px; border: 1px solid rgba(1, 160, 114, 0.95); border-radius: 999px; white-space: nowrap; }
.site-nav .primary-nav { background: var(--mint); border-color: var(--mint); }
.site-nav .primary-nav:hover { color: var(--white); }

.research-workspace { min-height: 100svh; display: grid; align-items: center; padding: 128px 0 72px; color: var(--white); background: radial-gradient(circle at 82% 20%, rgba(1, 160, 114, 0.16), transparent 30%), var(--burgundy); }
.workspace-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(480px, 1.22fr); gap: clamp(44px, 7vw, 86px); align-items: center; }
.kicker, .report-kicker, .section-kicker, .context-label { margin: 0 0 12px; color: var(--mint); font-size: 13px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.workspace-heading h1 { max-width: 520px; margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5.3vw, 68px); font-weight: 500; line-height: 0.98; }
.workspace-heading > p:last-child { max-width: 470px; margin: 0; color: rgba(255, 253, 248, 0.78); font-size: 18px; line-height: 1.58; }
.sample-report-link { margin-top: 24px; padding: 0 0 3px; border: 0; border-bottom: 1px solid rgba(255, 253, 248, 0.5); background: transparent; color: var(--white); font-size: 14px; font-weight: 800; }
.sample-report-link:hover { border-bottom-color: var(--mint); color: var(--mint); }
.composer { overflow: hidden; background: var(--shell); border: 1px solid rgba(255, 253, 248, 0.32); border-radius: 8px; color: var(--ink); box-shadow: 0 22px 70px rgba(43, 23, 33, 0.16); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.composer:focus-within { border-color: var(--mint); box-shadow: 0 24px 76px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(1, 160, 114, 0.16); }
.composer.dragging { border-color: var(--mint); background: var(--mint-soft); transform: translateY(-2px); }
.composer textarea { display: block; width: 100%; min-height: 230px; padding: 28px 30px 18px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; }
.composer textarea::placeholder { color: #8a7a80; opacity: 1; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 16px; }
.file-chip { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px 7px 12px; border-radius: 999px; background: var(--mint-soft); color: var(--ink); font-size: 13px; font-weight: 750; }
.file-chip > svg { width: 15px; height: 15px; }
.file-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-file { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(43, 23, 33, 0.1); color: var(--ink); }
.remove-file:hover { background: var(--burgundy); color: var(--white); }
.remove-file svg { width: 13px; height: 13px; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px 16px 26px; border-top: 1px solid var(--stone); }
.attachment-area { min-width: 0; display: flex; align-items: center; gap: 12px; }
.attachment-area input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.attach-button { display: inline-flex; align-items: center; gap: 8px; color: var(--burgundy); font-size: 14px; font-weight: 800; cursor: pointer; }
.attach-button:hover { color: var(--mint-dark); }
.attach-button svg { width: 20px; height: 20px; }
.drop-note { color: var(--muted); font-size: 13px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 750; transition: transform 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button.primary { background: var(--mint); color: var(--burgundy); }
.button.primary:hover:not(:disabled) { color: var(--white); }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.submit-button { flex: 0 0 auto; min-width: 168px; }
.composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.composer .form-error { margin: 0; padding: 0 26px 18px; color: #a41e35; font-size: 18px; font-weight: 700; line-height: 1.5; }

.report-stage { width: min(1360px, calc(100% - 32px)); min-height: calc(100svh - 96px); margin: 0 auto; padding: 104px 0 108px; scroll-margin-top: 0; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.saved-report-info { display: grid; gap: 3px; min-width: min(100%, 320px); margin-right: auto; }
.saved-report-info strong { font-weight: 700; }
.saved-report button:disabled { cursor: wait; opacity: .65; }
.saved-report .view-report { background: #44624a; color: #fff; }
.saved-report .remove-report { margin-left: 0 !important; }
.account-panel { border-top: 1px solid #ded2cc; }
.account-panel + .unified-footer { margin-top: 0; }
@media(max-width:680px) { .saved-report { align-items: stretch; } .saved-report-info { width: 100%; } .saved-report button { flex: 1; } }
.report-status { margin: 0 0 24px; padding: 14px 18px; border: 1px solid #b8d8cc; border-radius: 10px; background: #edf8f4; color: #173e34; font-weight: 700; }
.report-status:empty { display: none; }
.report-actions { display: flex; align-items: center; gap: 18px; }
.report-actions form { margin: 0; }
.back-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 800; }
.back-button:hover { color: var(--mint-dark); }
.report { animation: report-in 420ms ease both; }
@keyframes report-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.report-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; padding: 0 0 32px; border-bottom: 1px solid var(--stone); }
.report-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 60px); font-weight: 500; line-height: 1; }
.report-kicker { margin-bottom: 10px; }
.report-meta { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: right; }
.report-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 34px; }
.report-sidebar { position: sticky; top: 96px; display: grid; gap: 12px; }
.context-card { padding: 18px; border: 1px solid var(--stone); border-radius: 8px; background: var(--shell); }
.context-card.question-card { background: var(--mint-soft); border-color: rgba(1, 160, 114, 0.25); }
.context-label { margin-bottom: 9px; color: var(--mint-dark); font-size: 12px; }
.question-reference { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.38; }
.context-detail { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.context-detail + .context-detail { margin-top: 8px; }
.sidebar-composer { overflow: hidden; padding: 16px; border: 1px solid var(--stone); border-radius: 8px; background: var(--shell); box-shadow: 0 10px 32px rgba(43, 23, 33, 0.07); }
.sidebar-composer:focus-within { border-color: var(--mint); box-shadow: 0 10px 32px rgba(43, 23, 33, 0.08), 0 0 0 3px rgba(1, 160, 114, 0.12); }
.sidebar-composer.dragging { border-color: var(--mint); background: var(--mint-soft); }
.sidebar-composer textarea { width: 100%; min-height: 88px; display: block; margin: 0 0 11px; padding: 10px 12px; resize: vertical; border: 1px solid var(--stone); border-radius: 5px; outline: 0; background: var(--white); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.42; }
.sidebar-composer textarea:focus { border-color: var(--mint); }
.sidebar-composer-actions { display: grid; }
.sidebar-composer .form-error { margin: 12px 0 0; color: #a41e35; font-size: 13px; line-height: 1.45; }
.sidebar-submit { width: 100%; min-height: 44px; }
.consultation-card { padding: 18px; border-radius: 8px; background: var(--burgundy); color: var(--white); }
.consultation-card p { margin: 0 0 11px; color: rgba(255, 253, 248, 0.76); font-size: 14px; line-height: 1.48; }
.consultation-card a { display: inline-block; color: var(--mint); font-size: 14px; font-weight: 850; line-height: 1.35; text-decoration: underline; text-decoration-color: rgba(1, 160, 114, 0.55); text-underline-offset: 4px; }
.consultation-card a:hover { color: var(--white); }
.report-content { min-width: 0; }
.answer-panel { position: relative; overflow: hidden; margin-bottom: 18px; padding: 26px 30px 28px; border: 1px solid var(--stone); background: var(--shell); color: var(--ink); }
.answer-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--mint); }
.answer-panel .section-kicker { color: var(--mint-dark); }
.answer-panel > p:nth-child(2) { max-width: 920px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.58; }
.report-panel { margin-bottom: 18px; padding: clamp(28px, 4vw, 42px); border: 1px solid var(--stone); background: var(--shell); }
.report-panel:last-child { margin-bottom: 0; }
.report-panel .section-kicker { color: var(--mint-dark); }
.report-panel h2 { margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.05; }
.report-panel h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.focus-card { background: var(--mint-soft); border-color: rgba(1, 160, 114, 0.28); }
.focus-card h2 { margin: 0 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; line-height: 1.08; }
.focus-description { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.focus-history { margin: 0 0 14px; padding-left: 19px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.focus-history li + li { margin-top: 6px; }
.focus-card form { display: grid; gap: 8px; }
.focus-card label { color: var(--mint-dark); font-size: 11px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.focus-card textarea { width: 100%; min-height: 96px; padding: 10px 11px; resize: vertical; border: 1px solid var(--stone); border-radius: 7px; outline: 0; background: var(--white); color: var(--ink); font: 14px/1.45 Arial, sans-serif; }
.focus-card textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(1, 160, 114, .12); }
.focus-actions { display: flex; align-items: stretch; flex-direction: column; gap: 8px; }
.focus-actions span { color: var(--muted); font-size: 12px; }
.focus-actions .button { width: 100%; min-height: 42px; padding: 10px 14px; }
.focus-card .form-error { margin: 0; color: #a41e35; font-size: 12px; line-height: 1.4; }
.consultation-card { background: var(--shell); border-color: rgba(43, 23, 33, 0.18); color: var(--ink); }
.consultation-card .context-label { color: var(--mint-dark); }
.consultation-card h2 { margin: 0 0 10px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 600; line-height: 1.12; }
.consultation-card > p:not(.context-label):not(.form-error) { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.consultation-report-button { width: 100%; min-height: 44px; padding: 10px 14px; line-height: 1.3; }
.report-prose, .evidence-section p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.68; }
.report-prose + .report-prose { margin-top: 18px; }
.evidence-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--stone); }
.evidence-section p + p { margin-top: 14px; }
.finding-list, .next-step-list { list-style: none; padding: 0; margin: 0; }
.finding-list li, .next-step-list li { position: relative; padding-left: 31px; color: var(--muted); font-size: 16px; line-height: 1.62; }
.finding-list li + li, .next-step-list li + li { margin-top: 17px; }
.finding-list li::before, .next-step-list li::before { content: ""; position: absolute; top: 0.67em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.embedded-list { margin-top: 14px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.evidence-card { min-width: 0; padding: 21px; border: 1px solid var(--stone); background: var(--white); }
.evidence-number { display: block; margin-bottom: 15px; color: var(--mint-dark); font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; }
.evidence-card p { margin: 0; color: var(--ink); line-height: 1.55; }
.evidence-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.coverage-gap { padding: 22px; border-left: 4px solid var(--mint); background: var(--mint-soft); }
.coverage-gap p { margin: 7px 0 0; color: var(--muted); }
.source-list { margin: 0; padding: 0; list-style: none; }
.source-list li { position: relative; padding: 16px 0 16px 31px; border-top: 1px solid var(--stone); }
.source-list li:first-child { padding-top: 0; border-top: 0; }
.source-list li::before { content: ""; position: absolute; top: 1.45em; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.source-list li:first-child::before { top: 0.45em; }
.source-list a { font-weight: 800; text-decoration: underline; text-decoration-color: rgba(1, 160, 114, 0.5); text-underline-offset: 3px; }
.source-list a:hover { color: var(--mint-dark); }
.source-list small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.citations { display: inline-flex; gap: 4px; margin-left: 4px; }
.citations a { color: var(--mint-dark); font-size: 12px; font-weight: 850; }
.site-footer { display: block; padding: 42px 0; background: var(--burgundy); color: rgba(255, 253, 248, 0.74); }
.footer-inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 190px minmax(260px, 1fr) auto; align-items: center; gap: 34px; }
.footer-inner img { width: 210px; height: auto; }
.footer-inner p { max-width: 530px; margin: 0; padding-left: 24px; font-size: 14px; text-align: left; }
.footer-inner .footer-links { display: grid; justify-items: end; gap: 5px; font-size: 13px; }
.footer-inner .footer-links a { color: var(--white); text-decoration: none; }
.footer-inner .footer-links a:hover { color: var(--mint); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; max-width: calc(100% - 40px); padding: 11px 17px; border-radius: 999px; background: var(--burgundy); color: var(--white); font-size: 14px; font-weight: 750; box-shadow: 0 12px 36px rgba(43, 23, 33, 0.24); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; padding: 0.75rem 1rem; gap: 0.65rem; }
  .brand { width: 118px; min-width: 112px; flex: 0 0 auto; }
  .site-nav { position: static; order: 2; width: 100%; display: flex; align-items: center; flex-direction: row; gap: 10px; overflow-x: auto; padding: 0.1rem 0 0.2rem; border: 0; background: transparent; box-shadow: none; font-size: 13px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; text-align: left; }
  .site-nav .nav-cta { padding: 8px 11px; }
  .research-workspace { padding-top: 148px; }
  .workspace-wrap { width: min(100% - 32px, 760px); grid-template-columns: 1fr; gap: 34px; }
  .workspace-heading h1 { max-width: 680px; }
  .workspace-heading > p:last-child { max-width: 620px; }
  .report-stage { width: min(100% - 32px, 820px); padding-top: 152px; }
  .report-layout { grid-template-columns: 1fr; }
  .report-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-card { grid-column: 1 / -1; }
  .sidebar-composer, .consultation-card { grid-column: 1 / -1; }
  .footer-inner { width: min(100% - 32px, 1160px); }
}

@media (max-width: 680px) {
  .research-workspace { align-items: start; padding-top: 148px; }
  .workspace-heading h1 { font-size: 44px; }
  .composer textarea { min-height: 190px; }
  .composer-footer { align-items: stretch; flex-direction: column; padding: 16px 18px 18px; }
  .attachment-area { justify-content: space-between; }
  .submit-button { width: 100%; }
  .composer-actions { width: 100%; align-items: stretch; flex-direction: column-reverse; }
  .drop-note { display: none; }
  .report-stage { padding-bottom: 76px; }
  .report-toolbar, .report-heading { align-items: flex-start; flex-direction: column; }
  .report-heading { display: flex; gap: 20px; }
  .report-meta { text-align: left; }
  .report-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .report-actions form { margin-left: auto; }
  .report-actions .button { padding-inline: 16px; }
  .report-sidebar { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .focus-actions { align-items: stretch; flex-direction: column; }
  .focus-actions .button { width: 100%; }
  .footer-inner { display: grid; grid-template-columns: 1fr; align-items: start; }
  .footer-inner p { padding-left: 0; text-align: left; }
  .footer-inner .footer-links { justify-items: start; }
}

@media print {
  .site-header, .research-workspace, .site-footer, .report-toolbar { display: none !important; }
  #copy-status { display: none !important; }
  .site-shell { min-height: 0; display: block; }
  main { display: block; }
  .report-stage { width: 100%; min-height: 0; margin: 0; padding: 0; }
  .report-sidebar { position: static; }
  .source-list li, .evidence-card { break-inside: avoid; page-break-inside: avoid; }
}

[hidden]{display:none!important} main{flex:1}.site-header{position:relative}.research-workspace{min-height:70vh;padding:80px 0}.report-stage{padding-top:40px}.preview-note{font-size:14px;line-height:1.6}.composer .preview-note{padding:0 26px}.sample-banner{padding:16px;background:#dff3eb;border-radius:8px;margin-bottom:24px}.report-toolbar{flex-wrap:wrap}.report-actions{flex-wrap:wrap}button{cursor:pointer}.attachment-area:focus-within{outline:2px solid #007c58}.unified-footer{margin-top:auto}@media(max-width:680px){.site-header{flex-direction:column;padding:18px;gap:15px}.site-nav{flex-wrap:wrap;justify-content:center}.research-workspace{padding:48px 0}.workspace-wrap{grid-template-columns:minmax(0,1fr)}.composer-footer{flex-wrap:wrap}.report-actions{gap:8px}}@media print{.unified-footer,.sample-banner,.report-sidebar{display:none!important}.report-layout{display:block}.report-stage{width:100%}}

.account-panel{padding:20px max(24px,calc((100% - 1160px)/2));background:#fffaf3}.account-panel p{margin:6px 0;font-size:14px}.account-panel form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0}.account-panel label{display:grid;gap:6px}.account-panel input{padding:10px;border:1px solid #b9abae;border-radius:6px;max-width:100%}.account-panel button{border:1px solid #44624a;border-radius:20px;padding:8px 16px;background:transparent;color:#2b1721}.account-panel summary{cursor:pointer;font-weight:700;margin-top:16px}.saved-report{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid #ddd;padding:12px 0}.saved-report small{color:#6b5f64}.saved-report .remove-report{margin-left:auto}@media print{.account-panel{display:none!important}}
.report-heading h1{margin-bottom:24px}
#report-title:focus{outline:none}
.report-heading-side{display:grid;justify-items:end;align-self:end;gap:16px;max-width:560px}
.report-heading-side .report-actions{justify-content:flex-end;transform:none}
@media(max-width:760px){.report-heading-side{width:100%;justify-items:start}.report-heading-side .report-actions{width:auto}.report-heading h1{margin-bottom:18px}}
