@font-face {
  font-family: "Instrument Sans";
  src: url("/static/fonts/InstrumentSans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #342d3b;
  --text: #4d4554;
  --muted: #6c6274;
  --paper: #f8f7fa;
  --white: #fff;
  --line: #e4dfe8;
  --line-strong: #cfc5d6;
  --accent: #724760;
  --accent-soft: #f1e9ef;
  --accent-dark: #3b2e47;
  --positive: #43654e;
  --positive-soft: #edf3ed;
  --reading: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--paper);
  font: 15px/1.55 "Instrument Sans", Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: #72476018; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--accent); text-underline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: 34px; font-weight: 620; line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 10px; }
h2 { font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -.45px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin-bottom: 9px; }
p { max-width: 78ch; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 12px 18px; background: var(--accent-dark); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.workspace { min-height: 100vh; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-inner, .main-nav { max-width: 1420px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.masthead-inner { min-height: 89px; display: flex; align-items: center; gap: 35px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 650; line-height: 1.1; letter-spacing: -.65px; }
.brand-sub { display: block; font-size: 12px; font-weight: 450; color: var(--muted); letter-spacing: 0; margin-top: 5px; }
.workspace-identity { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 30px; gap: 2px; font-size: 12px; color: var(--muted); }
.workspace-name { font-weight: 550; color: var(--text); font-size: 13px; }
.masthead-actions { margin-left: auto; display: flex; gap: 23px; align-items: center; }
.masthead-actions > .text-button { gap: 8px; }
.utility-menu { position: relative; font-size: 12px; }
.utility-menu > summary { cursor: pointer; padding: 10px 0 10px 10px; color: var(--muted); }
.utility-menu > div { position: absolute; right: 0; top: 100%; min-width: 190px; display: grid; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 12px 35px #35254015; z-index: 20; }
.utility-menu .text-button { justify-content: start; white-space: nowrap; }
.view.home-view { max-width: 1000px; padding-top: clamp(65px, 12vh, 125px); min-height: calc(100dvh - 160px); }
.home-intro h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -1.8px; margin-bottom: 18px; }
.home-intro > p { max-width: 55ch; font-size: 17px; line-height: 1.8; margin-bottom: 35px; color: var(--muted); }
.home-search { padding: 23px 25px 19px; background: white; border: 1px solid #cfc3da; border-radius: 12px; box-shadow: 0 5px 22px #36294206; }
.home-search label { margin-bottom: 14px; }
.home-query-row { display: flex; align-items: center; gap: 18px; }
.home-query-row input { flex: 1; min-width: 0; border: 0; padding: 8px 0; border-radius: 0; font-size: 20px; background: transparent; }
.home-query-row input:disabled { opacity: .65; }
.home-query-row .button { min-height: 47px; padding-inline: 22px; }
.home-search > p { font-size: 12px; color: var(--muted); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.home-search .notice { border-top: 0; padding: 12px; }
.home-alternatives { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 15px 0 60px; }
.home-alternatives > span { color: var(--muted); font-size: 11px; }
.home-workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; margin: 0; padding: 23px 0 0; border-top: 1px solid var(--line); }
.home-workflow strong { font-size: 13px; display: block; font-weight: 550; color: var(--ink); }
.home-workflow span { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.home-privacy { font-size: 11px; color: var(--muted); margin-top: 35px; max-width: none; }
.analysis-nav { border-bottom: 1px solid var(--line); }
.analysis-nav .analyse-another { margin-left: auto; align-self: center; white-space: nowrap; }
.search-settings { margin-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.search-settings > summary { padding: 12px 0; color: var(--muted); cursor: pointer; }
.search-settings .search-options { margin-top: 0; border-top: 0; padding-top: 0; }
.collection-details { font-size: 12px; color: var(--muted); }
.collection-details > summary { cursor: pointer; padding: 12px 0; }
.collection-details .collection-rail { margin-top: 10px; max-width: 600px; }
.main-nav { display: flex; align-items: stretch; gap: 28px; min-height: 55px; overflow-x: auto; scrollbar-width: thin; }
.nav-item { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); border-bottom: 2px solid transparent; padding: 14px 0 15px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.nav-count { min-width: 22px; padding: 1px 5px; border-radius: 4px; background: #f1eef4; color: #6c5978; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
main { min-width: 0; }
main:focus { outline: none; }
.view { max-width: 1420px; margin: 0 auto; padding: 38px 48px 38px; min-height: calc(100vh - 210px); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 0 30px; }
.page-heading p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.keyboard-hint, .view-note { color: var(--muted); font-size: 12px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 24px; margin-right: 5px; padding: 0 6px; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); font: 12px "Instrument Sans", sans-serif; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 43px; padding: 10px 17px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.button:hover { background: #f3f0f5; border-color: #b5a5be; }
.button.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.primary:hover { background: #574062; border-color: #574062; }
.button.small { min-height: 36px; font-size: 12px; padding: 7px 12px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 4px 0; border: 0; color: var(--accent); background: none; font-size: 12px; font-weight: 550; text-decoration: none; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
label { display: block; font-size: 12px; font-weight: 550; color: var(--text); margin-bottom: 7px; }
input, select, textarea { display: block; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 400; }
input::placeholder, textarea::placeholder { color: #75697e; }
select { padding-right: 30px; }
textarea { resize: vertical; line-height: 1.7; }
.search-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1000px; gap: 25px; align-items: start; }
.search-main { min-width: 0; }
.search-panel { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 23px 24px 0; }
.search-panel > label { font-size: 12px; font-weight: 550; margin-bottom: 12px; }
.query-row { display: flex; gap: 14px; align-items: center; }
.query-row input { flex: 1; min-width: 0; border: 0; padding: 7px 0; border-radius: 0; font-size: 17px; line-height: 1.55; }
.query-row input:focus-visible { outline-offset: 5px; }
.query-row .button { min-height: 45px; padding-left: 19px; padding-right: 15px; }
.search-options { display: flex; align-items: end; gap: 20px; margin-top: 23px; padding: 18px 0; border-top: 1px solid #eeeaf1; }
.search-options label { margin: 0; font-size: 11px; color: var(--muted); }
.search-options label:first-child { flex: 1.4; }
.search-options label:nth-child(2) { flex: .75; }
.search-options label:last-child { flex: .8; }
.search-options select, .search-options input { min-height: 35px; padding: 6px 9px; font-size: 12px; margin-top: 7px; background: #fcfbfd; border-color: #e6e0e9; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 15px 0 32px; font-size: 11px; }
.examples > span { color: var(--muted); margin-right: 2px; }
.examples button { border: 0; border-radius: 4px; padding: 6px 9px; color: #6b5874; background: #eeebf2; font-size: 11px; min-height: 30px; }
.examples button:hover { color: var(--accent-dark); background: #e5ddea; }
.collection-rail { background: #f0edf4; border-radius: 11px; padding: 24px 20px; }
.rail-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.rail-header h2 { font-size: 16px; letter-spacing: -.2px; margin: 0; }
.rail-symbol { color: #9a879f; }
.rail-summary { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 12px 0 24px; }
.rail-topics { display: grid; gap: 4px; }
.topic-row { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 0; background: none; border: 0; color: #62566d; font-size: 12px; text-align: left; }
.topic-row:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.topic-row > span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.topic-swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #927ba2; }
.topic-swatch.swatch-1 { background: #ac846c; }
.topic-swatch.swatch-2 { background: #789889; }
.topic-swatch.swatch-3 { background: #8797af; }
.rail-browse { margin: 15px 0 23px; width: 100%; background: #ffffffa6; border-color: #ded5e5; }
.method-help { border-top: 1px solid #ded6e4; padding-top: 17px; color: #6c6077; font-size: 12px; }
.method-help summary { cursor: pointer; color: #53445f; font-weight: 550; padding: 2px 0 5px; }
.method-help p { margin: 12px 0 0; font-size: 12px; line-height: 1.75; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.result-heading h2 { font-size: 17px; letter-spacing: -.25px; font-weight: 600; margin: 0; }
.result-heading > span { color: var(--muted); font-size: 11px; }
.collection-preview { border-top: 1px solid var(--line); }
.preview-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) 26px; gap: 12px; width: 100%; text-align: left; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); }
.preview-row:hover .preview-title { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.preview-id { font-size: 11px; color: #786581; padding-top: 4px; }
.preview-title { display: block; font-size: 16px; font-weight: 550; color: var(--ink); line-height: 1.4; margin-bottom: 6px; }
.preview-excerpt { display: block; font-family: var(--reading); color: #776e7b; font-size: 14px; line-height: 1.7; }
.preview-arrow { font-size: 19px; color: #a18baa; text-align: right; padding-top: 1px; }
.preview-topic { display: block; color: #716278; margin-top: 10px; font-size: 10px; }
.initial-loading { padding: 28px 0; color: var(--muted); font-size: 13px; }
.result-list { display: grid; gap: 15px; }
.result-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 24px; }
.search-main .result-list { gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: clip; }
.search-main .result-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 22px 23px; }
.search-main .result-card:last-child { border-bottom: 0; }
.result-topline { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.result-topline h3 { margin: 0; min-width: 0; }
.ranked-title { display: flex; gap: 11px; align-items: baseline; min-width: 0; }
.result-rank { font-size: 11px; font-variant-numeric: tabular-nums; color: #776181; min-width: 10px; }
.result-title { padding: 0; border: 0; background: none; color: var(--ink); font-size: 18px; font-weight: 550; text-align: left; line-height: 1.4; overflow-wrap: anywhere; }
.result-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.score { display: inline-flex; align-items: center; flex-shrink: 0; color: #735780; background: #f2edf5; border-radius: 4px; padding: 4px 7px; font-size: 10px; font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #786581; margin: 10px 0 13px; font-size: 10px; }
.topic-tag { color: #6b5874; background: #f2eef6; border-radius: 3px; padding: 2px 7px; font-size: 10px; }
.passage { font-family: var(--reading); font-size: 15px; line-height: 1.85; color: #695f6c; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.result-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: #786581; margin-top: 17px; padding-top: 12px; border-top: 1px solid #f0ebf3; }
.result-footer a { overflow-wrap: anywhere; }
.result-footer .text-button { min-height: 27px; font-size: 11px; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.comparison .result-heading { flex-direction: column; align-items: start; gap: 5px; }
.comparison .result-title { font-size: 15px; }
.comparison .result-topline { flex-wrap: wrap; gap: 9px; }
.comparison .passage { font-size: 14px; }
.comparison .result-card { padding: 19px 17px; }
.control-panel { display: flex; gap: 20px; align-items: end; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.control-panel label { min-width: 120px; margin: 0; font-size: 11px; color: var(--muted); }
.control-panel label select, .control-panel label input { margin-top: 8px; font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.context-note { font-size: 11px; line-height: 1.8; color: #74647c; margin: 16px 0 25px; max-width: 95ch; }
.notice { color: #796477; padding: 16px 18px; border-radius: 7px; background: #f1ebef; font-size: 12px; line-height: 1.8; margin: 22px 0; }
.empty-state { padding: 75px 30px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-top: 27px; }
.empty-state h2 { font-size: 24px; margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-family: var(--reading); font-size: 15px; line-height: 1.85; max-width: 56ch; margin: 0 auto; }
.empty-symbol { display: inline-flex; align-items: center; justify-content: center; background: #f2edf5; border-radius: 50%; width: 44px; height: 44px; color: #93769f; font-size: 24px; margin-bottom: 23px; }
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 23px; margin-bottom: 19px; }
.evidence > div { min-width: 0; padding: 0 0 0 16px; border-left: 2px solid #e6dce9; }
.evidence > div:first-child { border-left-color: #c9ada2; }
.evidence-label { display: block; font-size: 11px; font-weight: 550; color: #786181; margin-bottom: 11px; }
.evidence p { font-family: var(--reading); font-size: 15px; line-height: 1.9; color: #675d69; margin-bottom: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%; }
.review-label { margin-left: auto; font-size: 11px; color: var(--muted); }
.review-note { margin-top: 14px; }
.review-note input { font-size: 12px; background: #fcfbfd; }
.selected-review { color: var(--positive); background: var(--positive-soft); border-color: #9eb1a1; }
.exclusions { display: flex; flex-wrap: wrap; gap: 17px; margin: 0 0 18px; padding: 8px 0; }
.exclusions span { font-size: 11px; color: #786581; }
.method-section + .method-section { margin-top: 35px; }
.pair-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pair-heading > span:first-child { font-size: 11px; color: #786181; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pair-grid > div { min-width: 0; }
.pair-grid > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.pair-grid .result-title { font-size: 17px; }
.heading-actions { display: flex; gap: 10px; }
.collection-toolbar { display: flex; gap: 25px; align-items: end; justify-content: space-between; margin: 24px 0; }
.collection-toolbar .grow { max-width: 450px; margin-bottom: 0; }
.collection-toolbar input { margin-top: 8px; background: #fff; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { font-size: 11px; font-weight: 500; color: #77627f; background: #faf8fc; padding: 14px 20px; white-space: nowrap; }
td { padding: 18px 20px; border-top: 1px solid #ece6f0; vertical-align: middle; }
td:first-child { min-width: 280px; }
td .result-title { font-size: 14px; }
td:nth-child(3) { font-variant-numeric: tabular-nums; color: var(--muted); }
.table-id { font-size: 10px; color: #786581; margin-top: 5px; }
.eligibility { font-size: 11px; color: var(--positive); white-space: nowrap; }
.eligibility.no { color: #8a6b5d; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-top: 22px; }
.metric-panel { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.metric-panel h2 { font-size: 21px; margin-bottom: 24px; }
.metric-panel td:first-child { min-width: 0; }
.metric-panel th, .metric-panel td { padding: 12px 10px; font-variant-numeric: tabular-nums; }
.metric-explanation { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 29px 0; }
.metric-explanation > div { padding: 4px 0 4px 17px; border-left: 2px solid #d3c2dc; }
.metric-explanation h3 { font-size: 15px; }
.metric-explanation p { font-family: var(--reading); color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.evaluation-heading { font-size: 19px; margin: 35px 0 12px; }
.query-list { padding: 0; list-style: none; }
.query-list li { display: flex; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.query-list strong { color: var(--accent); font-size: 11px; padding-top: 3px; min-width: 28px; }
footer { max-width: 1420px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; padding: 22px 48px; color: #75617e; font-size: 10px; border-top: 1px solid var(--line); }
.error-banner, .busy-banner { max-width: 1324px; margin: 18px auto 0; padding: 12px 16px; font-size: 12px; border-radius: 6px; }
.error-banner { color: #953f4b; background: #faebee; border: 1px solid #edc7ce; }
.busy-banner { display: flex; align-items: center; gap: 11px; background: #efe9f3; color: #6e4d82; }
.spinner { width: 14px; height: 14px; border: 2px solid #d4c5df; border-top-color: #805893; border-radius: 50%; flex-shrink: 0; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
dialog { width: calc(100% - 32px); max-width: 710px; max-height: 90dvh; border: 1px solid #d4c9dc; border-radius: 13px; background: #fff; padding: 28px 30px; color: var(--text); box-shadow: 0 24px 100px #35254030; overscroll-behavior: contain; }
dialog::backdrop { background: #35263e62; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.dialog-header h2 { margin: 0; font-size: 23px; }
.icon-button { border: 0; border-radius: 6px; width: 35px; height: 35px; background: #f1ecf5; color: #7c668b; font-size: 25px; line-height: 1; }
.icon-button:hover { background: #e8dfee; }
dialog label { margin-top: 17px; }
dialog p { color: var(--muted); font-size: 13px; line-height: 1.8; }
dialog .button.primary { margin-top: 20px; }
dialog textarea { min-height: 130px; font-family: var(--reading); font-size: 15px; }
.article-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.checkbox-label { display: flex; align-items: center; gap: 11px; }
.checkbox-label input { width: 17px; min-height: 17px; accent-color: var(--accent); }
.dialog-error { color: #953f4b; font-size: 12px; padding: 12px; background: #faebee; border-radius: 5px; margin-top: 15px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-panel { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 36px; }
.login-brand { color: var(--muted); font-size: 12px; margin: 20px 0 25px; }
.login-panel h1 { font-size: 30px; }
.login-panel p:not(.login-brand) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.login-panel .button { width: 100%; margin-top: 18px; }
#login-error { color: #953f4b; margin-top: 14px; margin-bottom: 0; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 20; max-width: 90vw; border-radius: 7px; background: var(--accent-dark); color: #fff; padding: 12px 19px; box-shadow: 0 5px 25px #35254020; font-size: 12px; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1500px) {
  .view { padding-top: 45px; }
  .search-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 48px; }
}
@media (max-width: 1100px) {
  .masthead-inner, .main-nav { padding-left: 30px; padding-right: 30px; }
  .main-nav { gap: 22px; }
  .view { padding: 32px 30px; }
  .search-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 25px; }
  .query-row { flex-wrap: wrap; }
  .query-row input { flex-basis: 100%; }
  .query-row .button { min-height: 39px; margin-top: 4px; }
  .search-options { gap: 11px; }
  .comparison { grid-template-columns: 1fr; }
  .keyboard-hint { display: none; }
  footer { padding-left: 30px; padding-right: 30px; }
  .error-banner, .busy-banner { margin-left: 30px; margin-right: 30px; }
}
@media (max-width: 760px) {
  .masthead-inner { min-height: 80px; padding: 14px 20px; gap: 15px; }
  .brand { font-size: 22px; gap: 9px; }
  .brand img { width: 33px; height: 33px; }
  .brand-sub { font-size: 10px; }
  .workspace-identity { display: none; }
  .masthead-actions { gap: 12px; }
  .masthead-actions .button { padding: 8px 10px; }
  .masthead-actions .button svg { display: none; }
  .main-nav { min-height: 49px; gap: 24px; padding: 0 20px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-item { padding: 12px 0 13px; font-size: 12px; gap: 7px; }
  .nav-item svg { width: 15px; height: 15px; }
  .view { padding: 28px 20px; min-height: calc(100vh - 200px); }
  .page-heading { align-items: start; gap: 18px; margin-bottom: 24px; }
  h1 { font-size: 28px; letter-spacing: -.9px; }
  .page-heading p { font-size: 13px; line-height: 1.7; }
  .view-note { display: none; }
  .search-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .search-panel { padding: 20px 17px 0; }
  .query-row { gap: 11px; }
  .query-row input { font-size: 16px; }
  .query-row .button { width: 100%; min-height: 43px; justify-content: space-between; margin-top: 3px; }
  .search-options { flex-wrap: wrap; gap: 15px 12px; padding: 16px 0 19px; margin-top: 18px; }
  .search-options label:first-child { flex-basis: 100%; }
  .search-options label { flex: 1; }
  .search-options select, .search-options input { min-height: 39px; }
  .examples { gap: 6px; margin: 13px 0 27px; }
  .examples button { font-size: 10px; padding: 6px 8px; }
  .result-heading { align-items: start; flex-wrap: wrap; gap: 5px; }
  .result-heading h2 { font-size: 16px; }
  .preview-row { grid-template-columns: 30px minmax(0,1fr) 18px; gap: 10px; padding: 21px 0; }
  .preview-title { font-size: 15px; }
  .preview-excerpt { font-size: 13px; }
  .collection-rail { padding: 23px 20px; }
  .rail-topics { grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .rail-summary { margin-bottom: 15px; }
  .rail-browse { margin-bottom: 18px; }
  .result-topline { flex-wrap: wrap; gap: 10px; }
  .result-title { font-size: 17px; }
  .result-card, .search-main .result-card { padding: 20px 17px; }
  .passage { font-size: 14px; }
  .control-panel { gap: 16px 12px; padding: 18px; }
  .control-panel .grow { min-width: 100%; }
  .control-panel label { flex: 1; min-width: 0; }
  .control-panel .button { min-width: 100%; }
  .context-note { font-size: 11px; }
  .notice { padding: 13px 15px; }
  .empty-state { padding: 45px 22px; }
  .empty-state h2 { font-size: 22px; }
  .evidence, .pair-grid, .metric-grid, .metric-explanation { grid-template-columns: minmax(0,1fr); }
  .evidence { gap: 22px; }
  .evidence p { font-size: 14px; }
  .review-actions { gap: 8px; }
  .review-label { margin-left: 0; flex-basis: 100%; margin-top: 5px; }
  .pair-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .heading-actions { flex-wrap: wrap; }
  #view-collection .page-heading { flex-direction: column; }
  .collection-toolbar { flex-direction: column; align-items: stretch; gap: 13px; }
  .collection-toolbar .grow { max-width: none; }
  .collection-toolbar .text-button { align-self: start; }
  .metric-panel { padding: 20px 17px; }
  .article-form-grid { grid-template-columns: 1fr; gap: 0; }
  dialog { padding: 23px 20px; }
  .error-banner, .busy-banner { margin: 15px 20px 0; }
  footer { padding: 20px; font-size: 9px; flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .button { transition: none; }
}
@media (max-width: 760px) {
  .masthead-inner { gap: 12px; }
  .masthead-actions { gap: 13px; }
  .view.home-view { padding-top: 55px; }
  .home-intro h1 { letter-spacing: -1px; }
  .home-intro > p { font-size: 15px; }
  .home-search { padding: 19px; }
  .home-query-row { display: block; }
  .home-query-row input { font-size: 17px; min-height: 48px; }
  .home-query-row .button { margin-top: 15px; width: 100%; }
  .home-alternatives { margin-bottom: 35px; gap: 7px 12px; }
  .home-workflow { grid-template-columns: 1fr; gap: 20px; }
  .home-workflow span { margin-top: 4px; }
  .analysis-nav { gap: 20px; }
  .analysis-nav .nav-item svg { display: none; }
  .analysis-nav .analyse-another { display: none; }
}

.collection-sources { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 30px; background: #fff; }
.collection-source { display: flex; gap: 20px; padding: 28px; }
.collection-source + .collection-source { border-left: 1px solid var(--line); }
.website-source { background: #eeebf3; }
.collection-source h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.3px; }
.collection-source p { font-size: 13px; color: var(--muted); max-width: 47ch; margin: 0 0 20px; line-height: 1.75; }
.source-mark { flex: 0 0 50px; height: 57px; display: grid; place-items: center; color: #655170; border: 1px solid #cfc3d8; border-radius: 50%; font-size: 13px; font-weight: 650; letter-spacing: -.6px; }
.file-mark { border-radius: 5px 13px 5px 5px; background: #f8f7fa; }
.collection-source .source-availability { margin-bottom: 0; font-weight: 550; }
#website-dialog { width: calc(100vw - 48px); max-width: 1120px; height: min(850px, 92dvh); max-height: 92dvh; padding: 0; overflow: hidden; }
#website-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.website-header { margin: 0; padding: 24px 28px 20px; }
.website-header p { margin: 5px 0 0; }
.website-steps { display: flex; list-style: none; padding: 14px 28px; margin: 0; gap: 28px; border-block: 1px solid var(--line); background: #f8f7fa; }
.website-steps li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.website-steps li span { display: grid; place-items: center; height: 24px; width: 24px; border-radius: 50%; border: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.website-steps [aria-current=step] { color: var(--ink); font-weight: 650; }
.website-steps [aria-current=step] span { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.website-steps .complete span { background: #edf3ed; border-color: #bccdc1; color: var(--positive); }
.website-workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 0; overflow: auto; }
.website-source-panel { padding: 25px; background: #faf9fc; border-right: 1px solid var(--line); overflow: visible; }
#website-source-settings > summary { padding: 5px 0 14px; cursor: pointer; font-weight: 550; font-size: 13px; }
.website-source-panel h3 { font-size: 15px; margin: 0; }
.website-source-panel > p { font-size: 12px; margin: 8px 0 20px; }
#website-form { display: grid; gap: 8px; }
#website-form label { margin: 8px 0 0; }
#website-form input, #website-form select { font-size: 12px; min-width: 0; }
#website-form .button { justify-self: start; margin-top: 12px; }
.website-retention { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; }
.website-retention p { font-size: 12px; margin: 7px 0 0; }
.website-content-panel { padding: 25px 28px; overflow: visible; min-width: 0; }
.website-status-area { position: sticky; top: 0; z-index: 1; background: var(--white); padding-bottom: 1px; }
#extraction-meter { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 18px; border: 0; border-radius: 9px; background: var(--line); color: var(--accent); }
#extraction-meter::-webkit-progress-bar { background: var(--line); border-radius: 9px; }
#extraction-meter::-webkit-progress-value { background: var(--accent); border-radius: 9px; }
#extraction-meter::-moz-progress-bar { background: var(--accent); border-radius: 9px; }
#extraction-progress[data-state=stopped] #extraction-meter::-webkit-progress-value { background: var(--muted); }
#extraction-progress[data-state=stopped] #extraction-meter::-moz-progress-bar { background: var(--muted); }
#website-progress { margin: 0 0 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 600; }
.website-empty { max-width: 47ch; margin: 55px auto; }
.website-empty h3 { font-size: 22px; font-weight: 550; letter-spacing: -.5px; }
.website-empty p { line-height: 1.85; }
.website-page-symbol { width: 60px; height: 74px; padding: 23px 12px; border: 1px solid #cfc5d6; border-radius: 5px 17px 5px 5px; margin-bottom: 25px; background: #f4f1f7; }
.website-page-symbol span { display: block; margin-bottom: 6px; height: 2px; background: #b6a5c2; }
.website-page-symbol span:last-child { width: 65%; }
.website-selection-tools { padding-bottom: 10px; }
.website-selection-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 10px; }
.website-selection-actions p { margin: 0 auto 0 0; font-size: 12px; }
.website-candidates { border-block: 1px solid var(--line); }
#website-dialog .website-candidate { display: flex; align-items: start; gap: 12px; padding: 15px 8px; margin: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.website-candidate:last-child { border-bottom: 0; }
.website-candidate:hover { background: #faf8fc; }
.website-candidate:has(input:checked) { background: #f1edf6; }
.website-candidate input { width: 17px; height: 17px; min-height: 0; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--accent-dark); }
.website-candidate span { overflow-wrap: anywhere; line-height: 1.6; }
.website-candidate small { display: block; font-weight: normal; color: var(--muted); margin-top: 3px; }
.website-no-matches { padding: 20px 0; }
.website-preview-summary { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin: 12px 0; }
.website-preview-summary strong { font-size: 18px; font-weight: 550; color: var(--ink); }
.website-preview-summary span { color: var(--muted); }
.website-preview { margin: 10px 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.website-preview summary { padding: 15px; cursor: pointer; font-size: 13px; font-weight: 550; }
.website-preview[open] summary { border-bottom: 1px solid var(--line); background: #f7f5fa; }
.website-preview > p { margin: 12px 17px; overflow-wrap: anywhere; }
.website-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.85 var(--reading); padding: 4px 17px 20px; margin: 0; }
.website-action-bar { padding: 16px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: #fff; }
.website-action-bar > p { font-size: 12px; margin: 0; max-width: 35ch; line-height: 1.65; }
.website-action-bar .heading-actions { flex-wrap: wrap; justify-content: end; }
#website-dialog .website-action-bar .button { margin: 0; white-space: normal; }
#website-dialog .website-limit-note { max-width: none; margin: 0; padding: 10px 25px; background: #f8f7fa; font-size: 10px; line-height: 1.7; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .collection-sources { grid-template-columns: 1fr; }
  .collection-source { padding: 22px; gap: 15px; }
  .collection-source + .collection-source { border-left: 0; border-top: 1px solid var(--line); }
  #website-dialog { width: calc(100vw - 20px); height: 94dvh; max-height: 94dvh; }
  .website-header { padding: 17px; gap: 10px; align-items: start; }
  .website-header h2 { font-size: 19px; }
  .website-header p { font-size: 12px; }
  .website-steps { gap: 12px; padding: 12px 16px; justify-content: space-between; }
  .website-steps li { font-size: 10px; gap: 5px; }
  .website-steps li span { width: 20px; height: 20px; flex-shrink: 0; }
  .website-workspace { display: block; overflow: auto; }
  .website-source-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .website-retention { display: none; }
  .website-content-panel { padding: 20px 18px; overflow: visible; }
  .website-empty { margin: 25px 0; }
  .website-action-bar { padding: 12px 16px; display: block; }
  .website-action-bar > p { max-width: none; margin-bottom: 8px; font-size: 11px; }
  .website-action-bar .heading-actions { justify-content: start; gap: 8px; }
  #website-dialog .website-limit-note { padding: 8px 16px; }
}

/* Existing editorial palette; clearer paths and readable evidence. */
.view.home-view { padding-top: 48px; }
.entry-paths { display: grid; grid-template-columns: .85fr 1.2fr; gap: 36px; align-items: start; }
.sample-entry { padding: 0; }
.current-collection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 20px; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.current-collection h2 { margin-bottom: 8px; }
.current-collection p { margin: 0; max-width: 50ch; font-size: 13px; }
.sample-entry > p { max-width: 46ch; }
.website-entry h2 { margin-bottom: 10px; }
.entry-paths .home-search { padding: 20px; box-shadow: none; }
.entry-paths .home-query-row { flex-wrap: wrap; }
.entry-paths .home-query-row input { min-width: 180px; flex: 1 1 180px; }
.entry-paths .home-query-row button { flex: 0 0 auto; }
.home-privacy { max-width: 90ch; }
.feature-explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-block: 1px solid var(--line); padding: 20px 0; margin: 28px 0 12px; }
.feature-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--text); text-decoration: none; }
.feature-card h2 { color: var(--ink); font-size: 17px; line-height: 1.4; margin: 0; }
.feature-card p { font-size: 13px; line-height: 1.65; margin: 0; }
.feature-card:hover { border-color: var(--accent); }
.import-success { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; background: var(--positive-soft); border: 1px solid #c5d8c8; padding: 22px; margin: 20px 0; border-radius: 8px; }
.import-success h2 { margin: 0 0 6px; }
.import-success p { margin: 0; font-size: 13px; }
.collection-imports { border-block: 1px solid var(--line); margin-bottom: 24px; }
.collection-imports > summary { padding: 16px 0; cursor: pointer; font-weight: 550; }
.about-demo { border-top: 1px solid var(--line); width: calc(100% - 96px); max-width: 1324px; margin: 36px auto 0; padding-top: 18px; }
.import-success { max-width: 1324px; margin-inline: auto; }
.about-demo > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; cursor: pointer; font-weight: 550; margin-bottom: 14px; list-style: none; }
.about-demo > summary::-webkit-details-marker { display: none; }
.about-demo > summary svg { width: 18px; height: 18px; flex: 0 0 18px; }
.about-demo > summary span { min-width: 0; overflow-wrap: anywhere; }
.about-demo[open] > summary svg { transform: rotate(180deg); }
.about-demo p { font-size: 13px; max-width: 85ch; }

/* Editorial link workbench: scores describe similarity; colour describes selection. */
.link-method { margin-block: 28px 40px; }
.link-review-count { font-variant-numeric: tabular-nums; }
.link-workbench { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.link-overview { min-width: 0; }
.link-overview > h3 { font-size: 15px; margin: 0 0 6px; }
.link-overview > p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.link-candidates { display: grid; gap: 8px; }
.link-candidate { width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 10px; text-align: left; padding: 15px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--text); }
.link-candidate:hover { border-color: var(--line-strong); background: #fcfbfd; }
.link-candidate[aria-selected=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.link-candidate-rank { color: var(--muted); font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.link-candidate-title { display: block; font-size: 13px; font-weight: 550; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.link-candidate-state { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.link-candidate[data-review=useful] .link-candidate-state::before { content: '✓ '; }
.link-candidate[data-review=not_useful] .link-candidate-state::before { content: '× '; }
.link-candidate[data-review=not_useful]:not([aria-selected=true]) { border-style: dashed; }
.link-candidate-score { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 2px; color: var(--accent-dark); }
.link-inspect { margin-top: 16px; font-size: 12px; padding-block: 10px; }
.link-detail { min-width: 0; padding: 25px 28px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); scroll-margin-top: 20px; }
.link-detail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.link-detail-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.link-review-state { padding: 4px 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; white-space: nowrap; }
.link-detail[data-review=useful] .link-review-state { color: var(--accent-dark); background: var(--accent-soft); }
.link-detail[data-review=not_useful] .link-review-state { border-style: dashed; }
.link-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) 115px; gap: 24px; }
.link-route { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 13px; align-items: start; min-width: 0; }
.link-route-source { grid-column: 2; padding-bottom: 8px; position: relative; }
.link-route-source::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--line-strong); border-radius: 50%; position: absolute; left: -27px; top: 6px; }
.link-route-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.link-route-source .result-title { font-size: 14px; font-weight: 450; }
.link-route-arrow { grid-column: 1; grid-row: 2; justify-self: center; color: var(--accent); font-size: 23px; line-height: 1.6; }
.link-route-target { grid-column: 2; grid-row: 2; }
.link-route-target h3 { margin: 0; }
.link-route-target .result-title { font-size: 23px; line-height: 1.4; letter-spacing: -.45px; }
.link-similarity { text-align: right; min-width: 0; }
.link-similarity strong { display: block; font-size: 30px; letter-spacing: -1px; color: var(--accent-dark); font-weight: 550; line-height: 1.2; font-variant-numeric: tabular-nums; }
.link-similarity > span { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.link-score-help { grid-column: 1 / -1; margin-top: 0; text-align: left; }
.link-score-help summary { font-size: 11px; padding-block: 5px; cursor: pointer; color: var(--accent); }
.link-score-help[open] { grid-column: 1 / -1; }
.link-score-help p { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; margin: 8px 0 0; }
.link-editorial { border-block: 1px solid var(--line); padding-block: 18px; margin-block: 24px; }
.link-editorial > p { font-size: 13px; color: var(--ink); font-weight: 550; margin-bottom: 10px; }
.link-editorial .review-actions { gap: 8px; }
.link-editorial .button { min-height: 40px; }
.link-decision-selected { color: var(--accent-dark); background: var(--accent-soft); border-color: var(--accent); }
.link-note-editor { margin-top: 12px; }
.link-note-editor summary { cursor: pointer; padding-block: 6px; color: var(--muted); font-size: 12px; }
.link-note-editor label { font-size: 11px; margin-top: 8px; color: var(--muted); }
.link-note-editor input { font-size: 13px; margin-top: 7px; }
.link-evidence-heading h4 { font-size: 14px; font-weight: 600; margin: 0 0 7px; }
.link-evidence-heading p { font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 65ch; margin: 0 0 20px; }
.link-passage { padding: 15px 18px; background: var(--paper); border-left: 2px solid #c9b8d2; margin-top: 12px; min-width: 0; }
.link-passage h4 { margin: 0 0 9px; font-size: 11px; font-weight: 550; color: var(--muted); }
.link-excerpt { font: 15px/1.75 var(--reading); color: var(--ink); margin: 0; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.link-excerpt-note, .link-offsets { font-size: 11px; line-height: 1.65; color: var(--muted); margin: 10px 0 0; }
.link-passage-links { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 6px 18px; margin-top: 8px; }
.link-passage-links > a, .link-passage-links > span { font-size: 11px; padding-block: 5px; margin-top: 10px; }
.link-passage .full-evidence { min-width: 0; flex: 1 1 220px; }
.link-passage .full-evidence[open] { flex-basis: 100%; }
.link-passage .full-evidence summary { font-size: 11px; }
.link-passage .full-evidence pre { font-size: 14px; max-height: none; margin-bottom: 0; }
.link-back { display: none; }
.link-inspect, .link-back { min-height: 44px; }
@media (max-width: 1050px) and (min-width: 761px) {
  .link-workbench { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 18px; }
  .link-detail { padding: 20px; }
  .link-detail-heading { grid-template-columns: minmax(0, 1fr) 100px; gap: 16px; }
  .link-route-target .result-title { font-size: 20px; }
}
@media (max-width: 760px) {
  .link-workbench { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .link-detail { padding: 20px 16px; }
  .link-candidate { padding: 12px; }
  .link-detail-heading { grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; }
  .link-route-target .result-title { font-size: 20px; }
  .link-detail-topline { margin-bottom: 18px; }
  .link-back { display: inline-block; font-size: 12px; padding-block: 10px; margin-bottom: 14px; }
  .link-passage { padding: 14px; }
}
@media (max-width: 400px) {
  .link-detail-heading { grid-template-columns: minmax(0, 1fr); }
  .link-similarity { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; text-align: left; padding-left: 31px; }
  .link-similarity strong { font-size: 25px; }
  .link-score-help { flex-basis: 100%; margin-top: 0; }
}
.full-evidence { margin: 10px 0 0; }
.full-evidence > summary { font: 13px/1.5 'Instrument Sans', Arial, sans-serif; color: var(--accent); cursor: pointer; padding-block: 5px; }
.full-evidence pre { font: 15px/1.85 var(--reading); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.evidence-preview { font: 15px/1.85 var(--reading); overflow-wrap: anywhere; margin-bottom: 8px; }
.result-card .result-topline h3 { flex: 1; min-width: 0; }
.evidence-label { display: block; overflow-wrap: anywhere; }
.examples { flex-wrap: wrap; }
.examples button { max-width: 100%; white-space: normal; text-align: left; }
#sample-dialog { padding: 26px; max-width: 650px; }
#sample-dialog .dialog-header { padding: 0 0 18px; }
#sample-dialog p { font-size: 14px; }
#sample-dialog #sample-keep { margin-bottom: 22px; }
#extraction-progress, #collection-capacity { padding: 12px 15px; margin-block: 12px; background: var(--paper); border-radius: 6px; }
progress { display: block; width: 100%; height: 12px; accent-color: var(--accent); margin-top: 10px; }
#import-success .heading-actions { flex-wrap: wrap; }
.import-exclusions { border: 1px solid var(--line); border-radius: 6px; padding: 12px 15px; margin-block: 12px; }
.import-exclusions summary { cursor: pointer; font-weight: 550; }
.import-exclusions p { margin-top: 12px; font-size: 13px; }
@media (max-width: 760px) {
  .entry-paths { grid-template-columns: 1fr; gap: 14px; }
  .sample-entry { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .feature-explainer { grid-template-columns: 1fr; gap: 15px; }
  .masthead-inner { flex-wrap: wrap; gap: 12px; }
  .masthead-actions { width: 100%; justify-content: space-between; margin-left: 0; gap: 10px; }
  .home-intro h1 { font-size: 34px; }
  .import-success { padding: 16px; }
  .about-demo { width: calc(100% - 40px); }
  .view.home-view { padding-top: 25px; }
  .comparison .evidence { grid-template-columns: 1fr; }
}

/* Import work is announced in the active dialog, not behind it. */
.website-loading { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 28px 16px; }
.website-loading h3, .website-loading p { margin: 0; }
.website-loading p { max-width: 48ch; color: var(--muted); }
.website-loading .spinner { display: inline-block; width: 28px; height: 28px; border-width: 3px; }
.website-operation { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--paper); border-radius: 6px; }
#extraction-progress { border: 1px solid var(--line); padding: 20px; }
#extraction-progress label { font-weight: 600; }
#extraction-count { color: var(--ink); font-weight: 500; }

.feature-report-heading { flex-wrap: wrap; }
.feature-report-heading > div { flex: 1 1 280px; }
.feature-report-heading [data-export-pdf] { flex-shrink: 0; }
