:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --surface: #fff;
  --ink: #242d28;
  --text: #424d46;
  --muted: #647067;
  --line: #dce2d8;
  --soft-line: #e8ece5;
  --green: #205c45;
  --green-dark: #164330;
  --green-wash: #ecf2e9;
  --amber: #835918;
  --amber-wash: #f9f3e6;
  --red: #a13b30;
  --red-wash: #fbefeb;
  font-family: "Avenir Next", Avenir, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.7; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, a, summary { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
:where(button, a, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid #79a18b; outline-offset: 4px; }
#workspace:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; text-wrap: balance; }
p { line-height: 1.8; text-wrap: pretty; }
strong, b { font-weight: 600; }
ul, ol { padding-left: 21px; }
li { overflow-wrap: anywhere; }
.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; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 5; padding: 10px 18px; background: var(--green); color: #fff; border-radius: 5px; }
.skip-link:focus { top: 12px; }
.app-header { border-bottom: 1px solid var(--line); background: #ffffffc9; }
.header-inner { display: flex; align-items: center; gap: 52px; min-height: 78px; max-width: 1440px; margin: auto; padding: 0 48px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-size: 25px; font-weight: 650; letter-spacing: -1px; flex: none; }
.brand-mark { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.brand-mark i { display: block; width: 5px; border-radius: 1px 1px 0 0; background: currentColor; height: 10px; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 28px; }
.product-nav { display: flex; align-self: stretch; gap: 28px; }
.product-nav a { display: flex; align-items: center; position: relative; min-height: 44px; color: var(--muted); }
.product-nav a:hover { color: var(--green); }
.product-nav a[aria-current] { color: var(--green); font-weight: 600; }
.product-nav a[aria-current]::after { position: absolute; content: ""; height: 3px; bottom: -1px; left: 0; right: 0; background: var(--green); }
.local-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.local-label > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.workspace { max-width: 1440px; margin: auto; padding: 0 48px; min-width: 0; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 42px 0 32px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 1.2px; font-weight: 500; margin-bottom: 9px; }
h1 { font-size: clamp(28px, 2.7vw, 36px); letter-spacing: -.9px; line-height: 1.45; }
.intro { color: var(--muted); font-size: 15px; margin-top: 9px; max-width: 42em; }
.principles { display: grid; gap: 7px; border-left: 1px solid #c9d4c8; padding-left: 25px; flex: none; }
.principles span { display: flex; gap: 15px; color: var(--text); }
.principles b { font-size: 12px; color: #7b8c7e; font-variant-numeric: tabular-nums; font-weight: 400; }
.workflow-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.workflow-tab { display: flex; align-items: flex-start; gap: 13px; position: relative; border: 0; padding: 19px 21px 18px; text-align: left; background: transparent; color: var(--muted); min-width: 0; }
.workflow-tab::after { position: absolute; content: ""; height: 3px; left: 21px; right: 21px; bottom: -1px; background: transparent; }
.workflow-tab:first-child { padding-left: 0; }
.workflow-tab:first-child::after { left: 0; }
.workflow-tab:hover { background: #eef3e9; }
.workflow-tab.active { color: var(--green); }
.workflow-tab.active::after { background: var(--green); }
.workflow-tab strong, .workflow-tab small { display: block; }
.workflow-tab strong { font-size: 15px; }
.workflow-tab small { margin-top: 3px; font-size: 12px; color: var(--muted); }
.step-index { font-size: 12px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tab-mark { margin-left: auto; font-size: 20px; color: #9aa89a; }
.workflow-tab.active .tab-mark { color: var(--green); }
.workflow-panel { min-width: 0; }
.workflow-panel:focus { outline: none; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { font-size: 24px; line-height: 1.5; letter-spacing: -.4px; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: 7px; max-width: 66em; }
.badge { display: inline-flex; align-items: center; align-self: flex-start; width: fit-content; max-width: 100%; padding: 4px 9px; background: #eaf0e6; color: var(--green); border-radius: 3px; line-height: 1.5; font-size: 12px; font-weight: 500; white-space: normal; }
.badge.warning { color: var(--amber); background: var(--amber-wash); }
.badge.muted { color: var(--muted); background: #edf0e9; }
.badge.error { color: var(--red); background: var(--red-wash); }
.industry-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 36px; border-top: 1px solid var(--line); padding-top: 25px; }
.industry-sidebar h3 { font-size: 12px; font-weight: 500; color: var(--muted); margin: 2px 0 13px 12px; letter-spacing: 1px; }
#industry-nav { display: grid; gap: 3px; }
.industry-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: 0; border-radius: 5px; color: var(--text); text-align: left; min-height: 48px; padding: 11px 13px; }
.industry-button:hover { background: #eff3eb; }
.industry-button[aria-pressed="true"] { background: #e7efe1; color: var(--green); font-weight: 600; }
.industry-button > span:last-child { font-size: 12px; font-weight: 400; color: #81917e; }
.sidebar-note { border-top: 1px solid var(--line); padding: 17px 12px 0; margin-top: 24px; color: var(--muted); font-size: 12px; }
.industry-content { min-width: 0; }
.industry-heading { display: flex; justify-content: space-between; gap: 28px; padding-bottom: 22px; }
.industry-heading h3 { font-size: 22px; }
.industry-heading p { margin-top: 7px; color: var(--muted); max-width: 56em; }
.industry-heading .industry-count { color: var(--green); font-size: 35px; font-weight: 400; letter-spacing: -1px; line-height: 1.2; flex: none; padding-top: 3px; }
.industry-count small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0; line-height: 1.8; margin-top: 6px; }
.opportunity-list { border-top: 1px solid var(--line); }
.opportunity { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.opportunity-index { color: #91a08b; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.opportunity-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.opportunity h4 { font-size: 18px; }
.opportunity-problem { margin-top: 8px; color: var(--muted); max-width: 62em; }
.opportunity-detail { margin-top: 16px; }
summary { cursor: pointer; width: fit-content; min-height: 28px; color: var(--green); }
summary::marker { font-size: 11px; }
.opportunity-detail summary { font-size: 13px; }
.opportunity-detail[open] summary { margin-bottom: 17px; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; padding: 20px 24px; background: #eef3e9; border-radius: 4px; }
.research-grid h5 { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.research-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.research-grid li + li { margin-top: 6px; }
.source-disclosure { margin-top: 24px; }
.source-disclosure summary { color: var(--muted); font-size: 13px; }
.source-list { margin: 14px 0 0; padding: 0; list-style: none; }
.source-list li { padding: 8px 0; }
.source-list a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.source-list small { color: var(--muted); font-size: 12px; display: block; margin-top: 3px; }
.source-inline { margin-top: 15px; color: var(--muted); font-size: 12px; }
.source-inline a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; margin-right: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 5px; font-weight: 500; text-align: center; line-height: 1.5; background: transparent; color: var(--text); }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.button.secondary { border-color: #cbd4c7; background: var(--surface); }
.button.secondary:hover:not(:disabled) { background: #f1f5ec; border-color: #9eaf97; }
.button.text-button { color: var(--green); padding-left: 7px; padding-right: 7px; }
.button.text-button:hover:not(:disabled) { background: #e9f0e3; }
.button.compact { padding: 7px 11px; min-height: 40px; font-size: 13px; }
.button:not(:disabled):active, .industry-button:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; color: var(--green); text-decoration: underline; text-decoration-color: #c0cebb; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--green); }
.next-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 33px; padding: 18px 24px; background: #edf2e8; border-radius: 5px; }
.next-strip p { color: var(--muted); }
.next-strip strong { color: var(--text); margin-right: 10px; }
.selection-strip { display: flex; align-items: center; gap: 24px; background: #eaf1e4; border-left: 3px solid #6e9172; padding: 17px 22px; margin-bottom: 27px; }
.selection-strip strong { display: block; color: var(--green); }
.selection-strip p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.selection-strip .button { margin-left: auto; flex: none; }
.preparation-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px,.8fr); gap: 45px; }
.form-group { padding: 22px 0; border-top: 1px solid var(--line); }
.form-group > summary { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 17px; color: var(--ink); font-weight: 600; list-style: none; }
.form-group > summary::-webkit-details-marker { display: none; }
.form-group > summary::after { content: "+"; color: var(--muted); margin-left: auto; font-size: 20px; font-weight: 400; }
.form-group[open] > summary::after { content: "−"; }
.form-group .group-number { font-size: 12px; font-weight: 400; color: #8c9b85; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 23px; padding-top: 21px; }
.field { min-width: 0; }
.field label { display: block; color: var(--text); font-size: 13px; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid #cdd6c8; border-radius: 5px; color: var(--ink); background: #fff; font-size: 14px; }
.field textarea { resize: vertical; }
.field .helper { font-size: 12px; line-height: 1.65; margin-top: 7px; }
input::placeholder, textarea::placeholder { color: #74806f; opacity: 1; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.full-width { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 23px; }
.form-actions p, .analysis-actions p { color: var(--muted); font-size: 13px; }
.work-status { color: var(--muted); margin-top: 15px; min-height: 25px; overflow-wrap: anywhere; font-size: 13px; }
.work-status.error { color: var(--red); border-left: 2px solid var(--red); padding-left: 10px; }
.preparation-aside { border-left: 1px solid var(--line); padding-left: 28px; padding-top: 22px; }
.principle-list { list-style: none; padding: 0; margin: 20px 0 0; }
.principle-list li { display: flex; gap: 14px; padding: 0 0 25px; }
.principle-list li > span { color: #8c9b85; font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 4px; }
.principle-list h3 { font-size: 15px; margin-bottom: 7px; }
.principle-list p { color: var(--muted); font-size: 13px; }
.aside-note { padding: 18px 20px; margin-top: 8px; background: #edf2e8; border-radius: 5px; font-size: 13px; }
.aside-note p { color: var(--muted); margin-top: 7px; }
.generated-result { margin-top: 38px; padding-top: 30px; border-top: 1px solid #b9c8b3; scroll-margin-top: 24px; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.result-heading h3 { font-size: 22px; }
.result-heading p { color: var(--muted); margin-top: 7px; max-width: 55em; }
.download-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; margin: 23px 0 29px; }
.metric { padding: 20px 22px; border-left: 1px solid var(--line); min-width: 0; }
.metric:first-child { border-left: 0; background: var(--green-wash); }
.metric dt { font-size: 13px; color: var(--muted); }
.metric dd { margin: 9px 0 0; font-size: 27px; font-weight: 600; letter-spacing: -.7px; line-height: 1.35; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.metric:first-child dd { color: var(--green); }
.metric dd.words { font-size: 21px; }
.metric p { margin-top: 8px; font-size: 12px; color: var(--muted); }
.report-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 31px; }
.report-section { min-width: 0; margin-top: 26px; }
.report-section h4 { font-size: 17px; margin-bottom: 8px; }
.report-section > p { color: var(--muted); margin-bottom: 16px; }
.task-list { list-style: none; padding: 0; margin: 20px 0 0; }
.task-list > li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--soft-line); }
.task-list > li:first-child { padding-top: 0; border-top: 0; }
.task-index { font-size: 12px; color: #82977c; font-variant-numeric: tabular-nums; padding-top: 3px; flex: none; }
.task-body { min-width: 0; }
.task-body h5 { margin: 0 0 6px; color: var(--ink); font-size: 15px; font-weight: 600; }
.task-body p { color: var(--muted); font-size: 13px; }
.task-body details { margin-top: 9px; font-size: 13px; }
.task-body ul { color: var(--muted); margin: 8px 0 15px; padding-left: 18px; }
.plain-list { padding-left: 18px; color: var(--muted); margin: 12px 0; }
.plain-list li { margin: 7px 0; }
.callout { border-left: 3px solid #7b9974; background: var(--green-wash); padding: 17px 20px; margin: 20px 0; border-radius: 0 4px 4px 0; }
.callout.warning { border-left-color: #b3945e; background: var(--amber-wash); }
.callout strong { color: var(--ink); }
.callout p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.helper { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 9px; }
.experiment-intake { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 30px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.intake-main { min-width: 0; }
.intake-title { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.intake-title h3 { font-size: 17px; }
.intake-title > span { color: var(--muted); font-size: 12px; }
.input-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; margin-top: 19px; }
.input-actions .text-link { font-size: 12px; }
.file-button { position: relative; overflow: hidden; cursor: pointer; }
.file-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid #79a18b; outline-offset: 4px; }
.intake-note { display: flex; gap: 13px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 25px; font-size: 13px; align-items: flex-start; }
.note-number { font-family: Georgia, serif; font-style: italic; color: var(--green); border: 1px solid #a9bda4; border-radius: 50%; width: 22px; height: 22px; text-align: center; flex: none; font-size: 15px; line-height: 21px; margin-top: 3px; }
.editor-toolbar { display: flex; align-items: center; gap: 21px; padding: 20px 0 13px; }
.compact-field { display: flex; gap: 11px; align-items: center; flex: none; }
.compact-field select { width: 150px; margin-top: 0; min-height: 40px; padding: 7px 11px; }
.source-label { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.editor-toolbar > .button { margin-left: auto; flex: none; font-size: 12px; }
.data-editor { display: block; width: 100%; resize: vertical; min-height: 230px; max-height: 600px; padding: 19px 21px; border: 1px solid #cbd5c6; border-radius: 5px; background: #fdfefa; color: #435241; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.8; tab-size: 2; }
.editor-foot { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,1fr); align-items: start; gap: 30px; margin-top: 14px; }
.editor-foot .helper { margin-top: 0; }
.as-of-field label { font-size: 12px; }
.as-of-field label span { margin-left: 6px; }
.as-of-field input { min-height: 39px; padding: 8px 11px; font-size: 12px; }
.format-help { margin-top: 17px; font-size: 12px; }
.format-help summary { color: var(--muted); }
.format-help dl { margin-top: 11px; padding: 17px 20px; background: #eef3e9; }
.format-help dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin-top: 8px; }
.format-help dl > div:first-child { margin-top: 0; }
.format-help dt { font-weight: 600; color: var(--text); }
.format-help dd { margin: 0; color: var(--muted); }
.analysis-actions { display: flex; align-items: center; gap: 20px; margin-top: 23px; }
.table-wrap { max-width: 100%; min-width: 0; overflow: auto; max-height: 440px; border: 1px solid var(--line); border-radius: 5px; overscroll-behavior-x: contain; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.7; text-align: left; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); padding: 12px 15px; background: #f3f6ef; }
th, td { padding: 12px 15px; vertical-align: top; border-bottom: 1px solid var(--soft-line); }
th { background: #f1f5ec; color: var(--muted); font-weight: 500; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
td { min-width: 94px; max-width: 320px; overflow-wrap: anywhere; color: var(--text); }
td:first-child { min-width: 130px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f0f5ea; }
.evidence-meta { display: grid; gap: 8px; background: #eff3ea; padding: 18px 22px; font-size: 12px; margin-top: 20px; }
.evidence-meta > div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; }
.evidence-meta dt { color: var(--muted); }
.evidence-meta dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.result-raw { margin-top: 26px; }
.result-raw > summary { color: var(--muted); font-size: 12px; }
.review-next-button { margin-top: 25px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #eef3e9; color: var(--muted); padding: 18px; border-radius: 4px; max-height: 360px; overflow: auto; font-size: 12px; line-height: 1.8; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.results-summary { border-top: 1px solid var(--line); margin-top: 26px; }
.summary-row { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 24px 0; }
.summary-index { font-size: 23px; color: #92a089; font-weight: 400; }
.summary-row h3 { font-size: 17px; }
.summary-row p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.summary-row .badge { align-self: center; }
.empty-result { padding: 31px 0 10px; }
.empty-result h3 { font-size: 21px; }
.empty-result p { color: var(--muted); max-width: 54em; margin-top: 7px; }
.empty-actions { display: flex; gap: 12px; margin-top: 20px; }
.review-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(230px, .8fr); gap: 50px; margin-top: 35px; }
.review-form h3 { font-size: 19px; }
.review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 22px; margin-top: 20px; }
.handoff-aside { border-left: 1px solid var(--line); padding-left: 29px; }
.next-actions { padding-left: 19px; margin: 19px 0 22px; }
.next-actions li { padding: 0 0 17px 4px; color: var(--muted); }
.next-actions strong { color: var(--text); font-size: 14px; }
.next-actions p { font-size: 13px; margin-top: 5px; }
.handoff-aside > .text-link { margin-top: 18px; font-size: 13px; }
.package-actions { background: #e8f0e2; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 23px 27px; margin-top: 31px; }
.package-actions h3 { font-size: 17px; }
.package-actions p { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 53em; }
.package-actions .download-actions { flex: none; }
.footer { display: flex; flex-wrap: wrap; gap: 14px 25px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 26px 0 30px; margin-top: 48px; color: var(--muted); font-size: 12px; }
.footer > span { display: inline-flex; align-items: baseline; gap: 13px; }
.footer strong { color: var(--green); font-size: 17px; }
.footer div { display: flex; gap: 22px; }
.footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.footer p { flex-basis: 100%; color: #7d887b; font-size: 11px; }
.noscript-message { margin: 20px auto; padding: 20px; max-width: 900px; color: var(--red); }
[aria-busy="true"] .generated-result { opacity: .6; }
@media (max-width: 1100px) {
  .header-inner, .workspace { padding-left: 30px; padding-right: 30px; }
  .header-inner { gap: 35px; }
  .industry-layout { grid-template-columns: 195px minmax(0,1fr); gap: 27px; }
  .workflow-tab { padding-left: 15px; padding-right: 15px; gap: 10px; }
  .workflow-tab::after { left: 15px; right: 15px; }
  .tab-mark { display: none; }
  .opportunity-title { display: block; }
  .opportunity-title .button { margin: 8px 0 0 -7px; }
  .preparation-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 28px; }
  .experiment-intake { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .intake-note { border-left: 0; border-top: 1px solid var(--soft-line); padding: 17px 0 0; }
  .package-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 800px) {
  .header-inner, .workspace { padding-left: 22px; padding-right: 22px; }
  .header-inner { gap: 25px; min-height: 70px; }
  .brand { font-size: 22px; }
  .product-nav { gap: 18px; font-size: 12px; }
  .local-label { font-size: 11px; }
  .workspace-heading { padding-top: 30px; }
  .principles { display: none; }
  .workflow-nav { margin-bottom: 28px; }
  .workflow-tab { display: block; padding: 13px 10px; }
  .workflow-tab strong { font-size: 13px; margin-top: 3px; }
  .workflow-tab small { display: none; }
  .workflow-tab::after { left: 10px; right: 10px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > .badge { display: none; }
  .industry-layout { grid-template-columns: minmax(0,1fr); gap: 25px; padding-top: 20px; }
  .industry-sidebar h3, .sidebar-note { display: none; }
  #industry-nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .industry-button { padding: 9px 11px; min-height: 46px; font-size: 12px; border: 1px solid var(--line); }
  .industry-button > span:last-child { display: none; }
  .industry-heading { padding-bottom: 19px; }
  .industry-heading h3 { font-size: 20px; }
  .opportunity-title { display: flex; }
  .opportunity-title .button { margin: 0; flex: none; }
  .opportunity h4 { font-size: 16px; }
  .preparation-layout { grid-template-columns: minmax(0,1fr); }
  .preparation-aside { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .principle-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .principle-list li > span { display: none; }
  .aside-note { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .report-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .result-heading { flex-direction: column; gap: 14px; }
  .editor-foot { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .as-of-field { max-width: 360px; }
  .review-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .handoff-aside { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .next-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
}
@media (max-width: 560px) {
  .header-inner, .workspace { padding-left: 17px; padding-right: 17px; }
  .header-inner { gap: 15px; flex-wrap: wrap; padding-top: 15px; padding-bottom: 0; }
  .brand { font-size: 23px; }
  .local-label { margin-left: auto; }
  .product-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 clamp(10px, 3vw, 20px); font-size: 13px; }
  .product-nav a { padding: 6px 0 10px; }
  .workspace-heading { padding: 27px 0 24px; }
  h1 { font-size: 26px; letter-spacing: -.5px; }
  .intro { font-size: 13px; }
  .eyebrow { font-size: 11px; }
  .workflow-tab { padding: 10px 4px 12px; }
  .workflow-tab strong { font-size: 12px; line-height: 1.5; }
  .workflow-tab::after { left: 4px; right: 4px; }
  .step-index { font-size: 11px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p:not(.eyebrow) { font-size: 13px; }
  #industry-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .industry-heading { gap: 18px; }
  .industry-heading p { font-size: 13px; }
  .industry-heading .industry-count { font-size: 28px; }
  .opportunity { grid-template-columns: 22px minmax(0,1fr); gap: 9px; padding: 20px 0; }
  .opportunity-title { display: block; }
  .opportunity-title .button { margin: 6px 0 0 -7px; }
  .opportunity-problem { font-size: 13px; margin-top: 3px; }
  .research-grid { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 20px; }
  .next-strip { align-items: flex-start; flex-direction: column; padding: 17px; gap: 10px; }
  .next-strip p { font-size: 13px; }
  .next-strip strong { display: block; }
  .selection-strip { align-items: flex-start; gap: 9px; flex-direction: column; padding: 15px 17px; }
  .selection-strip .button { margin-left: -7px; }
  .form-grid, .review-fields { grid-template-columns: minmax(0,1fr); }
  .form-actions, .analysis-actions { flex-direction: column; align-items: flex-start; gap: 11px; }
  .form-group > summary { font-size: 16px; }
  .principle-list { grid-template-columns: minmax(0,1fr); gap: 0; }
  .principle-list li > span { display: block; }
  .metric { padding: 16px; }
  .metric dd { font-size: 25px; }
  .metric dd.words { font-size: 18px; }
  .experiment-intake { padding: 20px 17px; }
  .input-actions { gap: 10px; }
  .input-actions .button { font-size: 13px; padding: 9px 12px; }
  .intake-title { gap: 5px; }
  .intake-title > span { width: 100%; }
  .editor-toolbar { gap: 10px; flex-wrap: wrap; }
  .editor-toolbar .source-label { order: 3; width: 100%; }
  .compact-field select { width: 135px; }
  .data-editor { font-size: 11px; padding: 14px; min-height: 210px; }
  .format-help dl { padding: 14px; }
  .format-help dl > div { grid-template-columns: minmax(0,1fr); gap: 3px; margin-top: 13px; }
  .summary-row { grid-template-columns: 25px minmax(0,1fr); gap: 14px; }
  .summary-row > .button, .summary-row > .badge { grid-column: 2; justify-self: start; }
  .summary-index { font-size: 21px; }
  .next-actions { grid-template-columns: minmax(0,1fr); gap: 0; }
  .package-actions { padding: 20px; }
  .package-actions .download-actions { width: 100%; }
  .package-actions .button { font-size: 13px; }
  .evidence-meta { padding: 15px; }
  .evidence-meta > div { grid-template-columns: minmax(0,1fr); gap: 2px; }
  .footer > span { display: block; }
  .footer strong { margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
