:root {
  --bg: var(--paper);
  --surface: var(--card);
  --surface2: var(--accent-soft);
  --border: var(--line);
  --text: var(--ink);
  --text2: var(--muted);
  --accent2: var(--accent);
  --green: var(--positive);
  --yellow: var(--caution);
  --red: var(--negative);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { max-width: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .5; }
a { color: inherit; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden], .hidden { display: none !important; }

.studio-account-bar > .brand { white-space: nowrap; flex: 0 0 auto; min-width: max-content; }
.studio-account-bar > .brand > span { flex: 0 0 auto; white-space: nowrap; }
.studio-account-bar nav { min-width: 0; color: var(--ink); }
.studio-account-bar nav > a { white-space: nowrap; }
.studio-account-bar nav > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.studio-account-bar .session-expiry { max-width: 16ch; color: var(--muted); font-size: 10px; line-height: 1.4; }
.studio-account-bar .text-button { color: var(--ink); white-space: nowrap; }
.studio-account-bar .text-button:hover { color: var(--accent); }
/* A text-style button stays plain on hover and focus: the generic button:hover fill (indigo) would sit under
   the indigo hover text. */
button.text-button:hover, button.text-button:focus, button.text-button:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 36px 64px;
}
.container > header {
  padding: 27px 0 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.container > header::before {
  content: attr(data-brand) ' / RESEARCH WORKSPACE';
  display: block;
  margin-bottom: 19px;
  color: var(--accent);
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .15em;
}
.container > header h1 {
  max-width: 850px;
  color: var(--ink);
  font: 500 clamp(40px, 4.7vw, 69px)/1.19 var(--serif);
  letter-spacing: -.045em;
}
.container > header p {
  max-width: 540px;
  margin-top: 14px;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.8;
}
.config-badge {
  display: inline-block;
  margin: 14px 8px 0 0 !important;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text2);
  font-size: 10px;
  letter-spacing: .03em;
}
.config-badge.ok { border-color: var(--positive-line); color: var(--positive); }
.config-badge.warn { border-color: var(--caution-line); color: var(--yellow); }

.workflow-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--text2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.workflow-strip span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.workflow-strip span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: '';
}
.workflow-strip i { width: 32px; height: 1px; background: var(--line); }
.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 25px;
}
.workspace-main, .workspace-sidebar, .step { min-width: 0; }
.workspace-sidebar { position: sticky; top: 18px; order: 2; }
.workspace-sidebar .step { margin-bottom: 14px; }
.step {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: border-color .15s, box-shadow .15s;
}
.step.active { border-color: var(--accent); box-shadow: var(--shadow-active); }
.step.done { border-color: var(--accent-line); }
#datasetSetup { border-color: var(--line) !important; }
.step-header { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.step-num {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font: italic 17px/1 var(--serif);
}
.step.active .step-num { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.step.done .step-num { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
#datasetSetup .step-num { border-color: var(--line) !important; color: var(--accent) !important; }
.step-title { color: var(--ink); font: 600 25px/1.4 var(--sans); letter-spacing: -.025em; }
.step-desc { margin: 0 0 18px; color: var(--text2); font-size: 13px; line-height: 1.8; }
.eyebrow, .sidebar-kicker, .dataset-advanced summary {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 8px; }
.sidebar-kicker { margin-bottom: 12px; }
.dataset-advanced { margin-top: 12px; }
.dataset-advanced summary { color: var(--text2); cursor: pointer; letter-spacing: .08em; }

.field { min-width: 0; margin-bottom: 18px; }
.template-lead { margin: 0 0 8px; color: var(--text2); font-size: 13px; line-height: 1.6; }
.field-hint { margin: 6px 0 0; color: var(--text2); font-size: 12px; line-height: 1.6; }
.optional-note-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 18px; }
.optional-note { flex: 1 1 240px; margin: 0; color: var(--text2); font-size: 13px; line-height: 1.6; }
button.autofill-btn { padding: 7px 13px; font-size: 13px; }
#cohortDesc { min-height: 0; height: auto; resize: vertical; overflow-y: auto; }
.advanced-options { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.advanced-options > summary { padding: 12px 14px; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.advanced-options[open] > summary { border-bottom: 1px solid var(--line); }
.advanced-options > .field-hint, .advanced-options > .field, .advanced-options > .panel-settings { margin-right: 14px; margin-left: 14px; }
.advanced-options > .field-hint { margin-top: 12px; margin-bottom: 12px; }
.advanced-options > .panel-settings { margin-bottom: 14px; }
.panel-settings .sidebar-kicker { margin-bottom: 8px; }
.panel-settings .field { max-width: 260px; margin-bottom: 12px; }
.inline-check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.5; }
.inline-check input { margin-top: 3px; flex: 0 0 auto; }
.assumed-panel { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--paper); }
.assumed-panel h3 { margin: 0 0 6px; font-size: 14px; }
.assumed-list { margin: 0; padding-left: 1.2rem; font-size: 13px; line-height: 1.7; }
.assumed-hint { margin: 6px 0 0; color: var(--text2); font-size: 12px; }
.field-error { margin: 6px 0 0; color: var(--red); font-size: .85rem; line-height: 1.5; }
label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
textarea, input, select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  transition: border-color .15s, background-color .15s;
}
textarea { min-height: 176px; resize: vertical; font-family: var(--sans); font-size: 15px; line-height: 1.6; }
input[type="checkbox"], input[type="radio"] { width: auto; min-width: 0; accent-color: var(--accent); }
input[type="file"] { padding: 8px; font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); font-size: 13px; }
textarea:hover, input:hover, select:hover { border-color: var(--muted); }
textarea:focus, input:focus, select:focus { border-color: var(--accent); }

button {
  max-width: 100%;
  padding: 11px 17px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
button:hover { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--on-accent); }
button:active { transform: translateY(1px); }
button:disabled { transform: none; }
button.secondary, .seg-row button {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
button.secondary:hover, .seg-row button:hover { background: var(--surface2); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.template-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
button.template-chip {
  padding: 6px 11px;
  border-color: var(--line);
  background: transparent;
  color: var(--text2);
  font-size: 11px;
  font-weight: 500;
}
button.template-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.markdown-toggle { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.markdown-toggle button { padding: 6px 10px; font-size: 11px; }
.markdown-toggle button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.field-label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.field-label-row label { flex: 1 1 180px; }
button.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}
button.btn-download:hover { background: var(--accent); color: var(--on-accent); }

.segments-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.seg-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
.seg-row input:first-child { flex: 3; }
.seg-row input:nth-child(2) { max-width: 80px; flex: 1; text-align: center; }
.seg-row button { padding: 8px 11px; }
.progress-bar {
  width: 100%;
  height: 7px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 5px;
  background: var(--line);
}
.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .3s ease;
}
.progress-fill.pulsing { animation: pulse-bar 1.5s ease-in-out infinite; }
@keyframes pulse-bar { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
/* A wait with no countable steps: a segment that slides across the bar. */
.progress-bar { position: relative; }
.progress-bar.indeterminate .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  transition: none;
  animation: slide-bar 1.4s ease-in-out infinite;
}
@keyframes slide-bar { 0% { left: -35%; } 100% { left: 100%; } }
.progress-text { margin-bottom: 8px; color: var(--text2); font-size: 12px; line-height: 1.7; }
.progress-estimate { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.6; }
.progress-estimate:empty { display: none; }
.progress-keep-open { margin: 4px 0 0; color: var(--text2); font-size: 12px; line-height: 1.6; }
.state-eyebrow, .result-eyebrow { margin-bottom: 8px; }
.state-eyebrow { color: var(--text2); }
.result-eyebrow { color: var(--accent); }
h2 { font: 600 25px/1.4 var(--sans); letter-spacing: -.025em; }
h3 { font: 600 21px/1.4 var(--sans); }
h4 { font: 600 14px/1.5 var(--sans); }
.eval-log, .results-details {
  max-width: 100%;
  margin-top: 12px;
  padding: 13px 15px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
}
.eval-log { max-height: 200px; }
.eval-log:empty { display: none; }
.eval-log div { padding: 2px 0; overflow-wrap: anywhere; }
.eval-log .pos, .stat.pos .stat-val { color: var(--positive); }
.eval-log .neu, .stat.neu .stat-val { color: var(--yellow); }
.eval-log .neg, .eval-log .err, .stat.neg .stat-val, .delta-neg { color: var(--red); }
.score-big {
  padding: 20px;
  color: var(--accent);
  font: 500 48px/1.2 var(--serif);
  letter-spacing: -.03em;
  text-align: center;
}
.score-big span { color: var(--text2); font: 400 17px/1 var(--sans); letter-spacing: 0; }
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 14px 0; }
.stat { min-width: 76px; text-align: center; }
.stat-val { color: var(--ink); font-size: 22px; font-weight: 600; }
.stat-label { color: var(--text2); font-size: 11px; }
.results-details { max-height: 400px; white-space: pre-wrap; }
#analysisRendered.results-details, #evalAnalysis.results-details { max-height: none; overflow: visible; }
#analysisDetails .markdown-toggle { margin: 8px 0; }
#analysisDetails .markdown-toggle button { padding: 5px 9px; font-size: 0.76rem; }
.markdown-source { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

#pipelineProgress, #revisionProgress, #cfProgress, #auditProgress, #datasetStatus {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface2);
}
#pipelineProgress, #revisionProgress, #cfProgress, #auditProgress { margin-top: 16px; }
.my-reports { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.my-reports > summary { padding: 12px 16px; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.5; }
.my-reports.pending { visibility: hidden; min-height: 47px; box-sizing: border-box; }   /* one line of the summary */
@media (max-width: 520px) { .my-reports.pending { min-height: 72px; } }   /* the summary wraps to two lines */
.my-reports[open] > summary { border-bottom: 1px solid var(--line); }
.report-list { display: grid; gap: 8px; max-height: 340px; padding: 12px 16px 16px; overflow-y: auto; color: var(--text2); font-size: 12px; line-height: 1.6; }
.report-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface2);
}
.report-info { flex: 1 1 220px; min-width: 0; }
.report-title { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; text-overflow: ellipsis; }
.report-meta { margin-top: 2px; color: var(--text2); font-size: 12px; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-actions button { padding: 7px 13px; font-size: 13px; }
.report-note { color: var(--text2); font-size: 12px; }
#evalResults { padding-top: 18px; border-top: 1px solid var(--line); }
.evaluation-verdict { margin: 0 0 18px; padding: 16px; border-left: 3px solid var(--accent2); background: var(--surface2); }
.verdict-sentence { margin: 0; font-size: 1.15rem; font-weight: 650; color: var(--ink); }
.verdict-counts, .verdict-simulation-note { margin: 8px 0 0; color: var(--text2); }
#fixFirstPanel { margin-top: 12px; }
#fixFirstHeading { margin: 0 0 5px; font-size: 0.95rem; }
#fixFirstList { margin: 0; padding-left: 1.4rem; }
#fixFirstList li { margin: 4px 0; }
#fixFirstList li span { color: var(--text2); }
.run-log-details { margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 9px; }
.run-log-details > summary { color: var(--text2); cursor: pointer; font-size: 0.9rem; }
#evalRunError, #cfRunError, #auditRunError { margin: 10px 0; }
#evalRunError p, #cfRunError p, #auditRunError p { margin: 4px 0 8px; }
#revisionPanel {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface2);
}
[role="alert"] {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 2px;
  background: var(--surface2);
  color: var(--red) !important;
  font-size: 12px !important;
  line-height: 1.6;
}
.dataset-meta.error { padding: 8px 10px; border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--surface2); }
#calStatus:not(.hidden), #datasetLockNote:not(.hidden), #variantAdoptNote:not(.hidden) {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  background: var(--surface2);
  font-size: 12px !important;
  line-height: 1.6;
}
#datasetLockNote:not(.hidden) { border-left-color: var(--yellow); }
.comparison-card, .change-card, .themes-block {
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}
#comparisonResult .comparison-card::before {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  content: 'REVISION COMPARISON';
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.comparison-card > .score-big { font-family: var(--sans); font-size: 1.6rem; font-weight: 600; letter-spacing: -.025em; }
.variant-card {
  margin: 12px 0 !important;
  padding: 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  background: var(--card) !important;
  box-shadow: var(--shadow-card);
}
.variant-card [data-field="label"] { min-width: 0 !important; }
.variant-card [data-field="text"] { min-height: 120px; }

.version-result-card {
  min-width: 0;
  margin: 12px 0;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.version-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.version-rank {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font: italic 14px/1 var(--serif);
}
.version-card-title { margin: 0; font: 600 16px/1.4 var(--sans); overflow-wrap: anywhere; }
.version-owner { color: var(--text2); font-size: 12px; }
.version-result-line { margin: 2px 0 6px; font-size: 14px; font-weight: 600; }
.version-clarity { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 600; }
.version-change-desc { margin: 0 0 6px; color: var(--text2); font-size: 13px; }
.version-extra { margin: 0 0 6px; color: var(--text2); font-size: 12px; }
.version-text-details { margin: 8px 0; }
.version-text-details > summary { color: var(--text2); cursor: pointer; font-size: 0.9rem; }
.version-full-text {
  width: 100%;
  max-width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.version-result-card > button { margin-top: 4px; }
.copy-status { margin: 6px 0 0; color: var(--positive); font-size: 12px; }
.copy-status:empty { display: none; }

.change-card, .comparison-card, .themes-block {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
}
.change-card { background: var(--surface2); }
.rewrite-accuracy-note { margin: 0 0 12px; color: var(--text2); font-size: 12px; line-height: 1.6; }
.change-card .field { margin-bottom: 10px; }
.change-card input, .change-card textarea { background: var(--card); }
.change-card textarea { min-height: 72px; }
.change-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.change-header span { font-size: 13px; font-weight: 600; }
.comparison-card { border-left: 3px solid var(--accent); }
.themes-block { background: var(--paper); font-size: 13px; line-height: 1.8; }
.themes-block ul { margin: 5px 0 0; padding-left: 20px; }
.themes-block li { margin: 4px 0; }

.table-scroll { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.gradient-table {
  width: 100%;
  min-width: 600px;
  margin: 15px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
.gradient-table th, .gradient-table td { min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.gradient-table th { border-bottom-width: 2px; color: var(--text2); font-weight: 600; }
.gradient-table pre { width: 100%; max-width: min(500px, 100%); max-height: 260px; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
.gradient-table tr:hover { background: var(--surface2); }
#auditTable { min-width: 720px; table-layout: fixed; }
#auditTable th:nth-child(1) { width: 14%; }
#auditTable th:nth-child(2) { width: 13%; }
#auditTable th:nth-child(3) { width: 18%; }
#auditTable th:nth-child(4) { width: 19%; }
#auditTable th:nth-child(5) { width: 36%; }
.delta-pos { color: var(--positive); font-weight: 600; }
.delta-bar { display: inline-block; height: 8px; border-radius: 4px; vertical-align: middle; }
.dataset-anchor { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; margin: 0 0 13px; color: var(--accent); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.dataset-anchor:hover { text-decoration: underline; text-underline-offset: 3px; }
.dataset-meta { min-height: 34px; margin-top: 8px; color: var(--text2); font-size: 11px; line-height: 1.6; }
.dataset-meta.ready { color: var(--positive); }
.dataset-meta.error { color: var(--red); }
.dataset-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.dataset-count { color: var(--text2); font-size: 10px; white-space: nowrap; }
.locked-note { margin-top: 8px; color: var(--yellow); font-size: 11px; }
.image-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.image-list:empty { display: none; }
.image-chip { position: relative; width: 112px; max-width: 100%; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.image-chip img { display: block; width: 100%; height: 80px; object-fit: cover; }
.image-chip figcaption { padding: 5px 6px; overflow: hidden; background: var(--card); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.image-chip button { position: absolute; top: 4px; right: 4px; padding: 0 7px; border-color: var(--ink); background: var(--ink); font-size: 13px; line-height: 1.5; }
.image-note { margin-top: 6px; color: var(--text2); font-size: 11px; }
.image-note[aria-live="polite"]:empty { display: none; }
.markdown-body {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
  margin: 1.1em 0 .45em;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.3;
}
.markdown-body h1 { font-size: 25px; }
.markdown-body h2 { font-size: 21px; }
.markdown-body h3 { font-size: 18px; }
.markdown-body p { margin: .55em 0; }
.markdown-body ul, .markdown-body ol { margin: .55em 0; padding-left: 1.45rem; }
.markdown-body blockquote { margin: .8em 0; padding: .2em 1em; border-left: 3px solid var(--accent); color: var(--text2); }
.markdown-body a { color: var(--accent); text-underline-offset: 3px; }
.markdown-body code { padding: .1em .3em; border-radius: 3px; background: var(--surface2); font-size: .9em; }
.markdown-body pre { max-width: 100%; padding: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.results-details, #pipelineProgress pre, #revisionProgress pre, #cfProgress pre, #auditProgress pre { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; }
.markdown-body pre code { padding: 0; background: transparent; white-space: pre; }
.markdown-body table { width: 100%; min-width: 420px; margin: .8em 0; border-collapse: collapse; font-size: .9em; }
.markdown-body th, .markdown-body td { padding: 7px 9px; border: 1px solid var(--line); text-align: left; }
.markdown-body th { background: var(--surface2); }
.markdown-body.results-details { overflow-wrap: anywhere; white-space: normal; }
.markdown-empty { color: var(--text2); font-size: 12px; }

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }

.studio-paywall {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  box-shadow: var(--shadow-modal);
}
.studio-paywall::backdrop { background: var(--scrim); }
.studio-paywall-card {
  position: relative;
  padding: clamp(24px, 6vw, 38px);
  background: var(--card);
}
.studio-paywall-close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--text2);
  font-size: 25px;
}
.studio-paywall-close:hover { background: var(--surface2); color: var(--ink); }
.studio-paywall-card > .eyebrow { margin: 0 38px 12px 0; }
.studio-paywall-card h2 { margin: 0 36px 8px 0; font-size: clamp(21px, 5vw, 27px); line-height: 1.3; }
.studio-paywall-description { color: var(--text2); font-size: 13px; line-height: 1.75; }
.studio-paywall-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 21px 0 22px; }
.studio-paywall-price { color: var(--ink); font: 28px/1.2 var(--serif); }
.studio-paywall-price-label { color: var(--text2); font-size: 11px; }
.studio-paywall-card h3 { margin-bottom: 8px; font-size: 13px; }
.studio-paywall-includes { display: grid; gap: 6px; margin: 0; padding-left: 20px; color: var(--text2); font-size: 12px; line-height: 1.7; }
.studio-paywall-includes li::marker { color: var(--accent); }
.studio-paywall-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.studio-paywall-actions button:first-child { flex: 1 1 230px; }
.studio-paywall-actions button.secondary { flex: 0 1 auto; }
.studio-paywall-note { margin-top: 12px; color: var(--text2); font-size: 10px; line-height: 1.7; }

@media (max-width: 850px) {
  .container { padding: 0 24px 48px; }
  .workspace-shell { grid-template-columns: minmax(0, 1fr); }
  .workspace-main { order: 0; }
  .workspace-sidebar { position: static; order: 1; }
  #step1 { min-height: 0; }
}
@media (max-width: 520px) {
  .studio-account-bar { min-height: 76px; padding: 20px 22px; }
  .studio-account-bar nav { gap: 9px 12px; }
  .studio-account-bar .session-expiry { max-width: 13ch; }
  .container { padding: 0 22px 42px; }
  .container > header { padding: 23px 0 20px; margin-bottom: 17px; }
  .container > header::before { margin-bottom: 15px; font-size: 9px; }
  .container > header h1 { font-size: clamp(38px, 10.5vw, 46px); line-height: 1.12; }
  .container > header p { margin-top: 11px; font-size: 13px; }
  .studio-paywall { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .studio-paywall-card { padding: 25px 21px 22px; }
  .studio-paywall-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .studio-paywall-actions button:first-child, .studio-paywall-actions button.secondary { width: 100%; }
  .workflow-strip { flex-wrap: wrap; gap: 7px; margin-bottom: 15px; font-size: 9px; letter-spacing: .09em; }
  .workflow-strip span { gap: 5px; }
  .workflow-strip i { width: 13px; }
  .step { padding: 20px; }
  .workspace-sidebar .step { padding: 19px; }
  .step-desc { font-size: 12px; }
  textarea { min-height: 160px; }
  .field-label-row { align-items: flex-start; }
  .markdown-toggle { margin-left: auto; }
  .stats-row { gap: 12px; }
  .stat { min-width: 68px; }
  .score-big { padding: 14px 4px; font-size: 42px; }
  .eval-log, .results-details { padding: 11px; }
  .change-card, .comparison-card, .themes-block, #revisionPanel, #pipelineProgress, #revisionProgress, #cfProgress, #auditProgress, #datasetStatus { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Without motion, a bar with no countable steps becomes a full-width striped bar that is clearly not a percentage. */
  .progress-bar.indeterminate .progress-fill {
    position: static;
    width: 100%;
    background: repeating-linear-gradient(135deg, var(--accent) 0 8px, var(--line) 8px 16px);
  }
}

.details-download { margin: 8px 0 0; font-size: 13px; }
.details-download a { color: var(--text2); text-underline-offset: 3px; }
.print-only { display: none; }

/* Print or save as PDF: only the report is printed, as dark ink text on white paper. */
@media print {
  @page { margin: 16mm; }
  html, body { background: var(--white) !important; color: var(--ink) !important; font-size: 11pt; }
  .site-header, .studio-account-bar, .container > header, .workflow-strip, .workspace-sidebar,
  .studio-footer, .public-notice,
  #apiKeySetup, #myReports, .studio-form, #datasetSetup, #datasetStatus,
  #pipelineProgress, #cfProgress, #auditProgress, #revisionProgress,
  .run-log-details, #variantEditor, #variantAdoptNote, .btn-row, button, .markdown-toggle,
  .step-header, .step-desc, .details-download, .copy-status, dialog, .studio-paywall, #privateLinkBox, #testAgainRow {
    display: none !important;
  }
  #revisionPanel > :not(#comparisonResult):not(#revisionRunDetails) { display: none !important; }
  .print-only { display: block; margin: 0 0 14pt; padding: 0 0 8pt; border-bottom: 1px solid var(--ink); }
  .print-brand-row { display: flex; align-items: center; gap: 8px; }
  .print-brand-mark { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
  .print-brand { font: 600 16pt/1.3 var(--sans); }
  .print-date { margin-top: 2pt; font-size: 10pt; }
  .print-note { margin-top: 4pt; font-size: 10pt; font-style: italic; }
  .container { max-width: none; padding: 0; }
  .workspace-shell { display: block; }
  .step, .step.active, .step.done { margin: 0 0 12pt; padding: 0; border: 0; background: none; box-shadow: none; }
  #evalResults { padding-top: 0; border-top: 0; }
  .evaluation-verdict, .assumed-panel, .themes-block, .comparison-card, .version-result-card {
    border-color: var(--ink); background: none; box-shadow: none; break-inside: avoid;
  }
  .eval-log, .results-details, .version-full-text, .markdown-body, .table-scroll { max-height: none !important; overflow: visible !important; background: none; }
  .gradient-table, .markdown-body table { min-width: 0; }
  details > summary { color: var(--ink); font-weight: 600; list-style: none; }
  details > summary::-webkit-details-marker { display: none; }
  a { color: var(--ink); text-decoration: none; }
  .score-big, .stat-val, .stat.pos .stat-val, .stat.neg .stat-val, .stat.neu .stat-val, .score-badge { color: var(--ink) !important; }
}

/* A review of an image (a logo, a package) has no rewritten-text versions and no changed-text re-test (the support line #directionsRefund stays): syncRunButtons sets
   data-image-first="on" on <html>. "Test a changed text" (the restart) stays: it goes back to step 2 to change the image. */
[data-image-first="on"] #directionsBtn, [data-image-first="on"] #directionsPrice, [data-image-first="on"] #directionsGate,
[data-image-first="on"] #directionsEstimate, [data-image-first="on"] #reviseBtn { display: none !important; }

/* One page, two presentations. The page starts in the public one (data-tier="public" on <html>); the answer
   from /api/public/whoami switches members to the beta one. */
[data-tier="public"] .beta-only, [data-tier="public"]:not([data-view="wizard"]) #imageField, [data-tier="public"] .session-expiry { display: none !important; }
[data-tier="beta"] .public-only { display: none !important; }
[data-tier="public"] .workspace-shell { grid-template-columns: minmax(0, 1fr); }
.container > header.public-intro::before { content: none; }
.container > header.public-intro h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.22; }
.container > header.public-intro .public-intro-link { margin-top: 10px; font-size: 14px; }
.public-intro-link a { color: var(--accent); text-underline-offset: 3px; }
.public-notice {
  margin: 12px 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.studio-footer {
  max-width: 1312px;
  margin: 0 auto;
  padding: 24px 36px 48px;
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 13px;
}
.studio-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.studio-footer a { text-underline-offset: 3px; }
.get-link summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.resend-form { margin-top: 12px; max-width: 460px; }
.resend-row { display: flex; flex-wrap: wrap; gap: 8px; }
.resend-row input { flex: 1 1 220px; min-width: 0; }
.resend-status { min-height: 1.6em; margin-top: 8px; color: var(--ink); }
@media (max-width: 720px) { .studio-footer { padding: 20px 22px 40px; } }

/* "Your private link": the on-screen way back to a paid report. Never printed (see the print rules above). */
.private-link {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  background: var(--card);
}
.private-link-title { margin: 0 0 4px; font: 600 15px/1.5 var(--sans); }
.private-link-text { margin: 4px 0; color: var(--ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.private-link-text:empty { display: none; }
.private-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.private-link-row input { flex: 1 1 260px; min-width: 0; text-overflow: ellipsis; }
.private-link-change {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text2);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.private-link-change:hover { color: var(--ink); background: none; }
.private-link-form { margin-top: 8px; }
.private-link-form label { display: block; margin-bottom: 4px; font-size: 13px; }
.private-link-lost > :not(.private-link-title):not(#privateLinkStatus) { display: none; }

/* A general line followed by a sentence from the server is written on two lines. */
.progress-text, .public-notice, [role="alert"], #modelQuota, .resend-status { white-space: pre-line; }

/* Example mode (/studio?example=<template>): a saved real run, read-only. The page sets data-example on <html>. */
[data-example] .example-hide, [data-example] button[data-use-variant] { display: none !important; }
.example-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
}
.example-banner-copy { flex: 1 1 320px; min-width: 0; }
.example-banner-text { font-size: 15px; font-weight: 600; line-height: 1.55; }
.example-lang-note { margin-top: 4px; color: var(--text2); font-size: 13px; line-height: 1.5; }
.example-exit { flex: 0 0 auto; }
.public-intro-link a + a { margin-left: 18px; }
@media print {
  .example-banner { margin: 0 0 12pt; padding: 0 0 6pt; border: 0; border-bottom: 1px solid var(--ink); background: none; }
  .example-exit { display: none !important; }
}

/* The wizard (wizard view, turned on by studio-wizard.js with data-wizard="on"): six steps in place of the old form. */
[data-wizard="on"] #publicIntro, [data-wizard="on"] #step1 > .step-header, [data-wizard="on"] #step1 > .step-desc, [data-wizard="on"] #studioForm { display: none; }
.wizard { max-width: 640px; margin: 0 auto 24px; }
.wizard-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.wizard-strip i { color: var(--text2); font-style: normal; }
.wizard-example { margin: 0 0 18px; font-size: 14px; }
.wizard-example a { color: var(--accent); text-underline-offset: 3px; }
.wizard-progress { margin: 0 0 14px; }
.wizard-step-label { margin: 0 0 6px; color: var(--text2); font-size: 13px; }
.wizard-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.wizard-bar-fill { height: 100%; background: var(--accent); transition: width .2s ease; }
.wizard-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.wizard-legend { display: block; width: 100%; padding: 0; }
.wizard-legend h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; }
.wizard-legend h2:focus { outline: none; }
.wizard-legend h2:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wizard-help { margin: 0 0 14px; }
.readers-where { color: var(--text2); font-size: 0.9rem; margin: 12px 0 0; }
.readers-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-size: 0.9rem; }
.readers-feedback .readers-question { color: var(--text2); }
.readers-feedback .readers-thanks { margin: 0; color: var(--text2); }
.wizard-notice { background: var(--surface2); border-left: 3px solid var(--accent); padding: 8px 12px; margin: 8px 0 0; font-size: 0.9rem; }
/* Steps 1, 3, 4 and 5 are text fields. Step 1 prints one example sentence as plain text; steps 3 to 5 offer the common answers as
   pill buttons under the field that fill it in (2026-10-06). */
.wizard-body > input[type="text"], .wizard-body > textarea { display: block; width: 100%; box-sizing: border-box; margin: 0 0 4px; }
.wizard-body > textarea { min-height: 84px; resize: vertical; }
.wizard-hint { margin: 2px 0 4px; }
.wizard-examples { margin: 0 0 14px; color: var(--text2); font-size: 14px; line-height: 1.55; cursor: default; user-select: text; }
/* Common answers under the field: wrapping pill chips that fill the field; the pressed one shows ✓ (2026-10-06). */
.wizard-options { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 8px 0 14px; }
.wizard-options-label { flex: 0 0 100%; margin: 0 0 2px; color: var(--text2); font-size: 12px; line-height: 1.5; }
.wizard-option {
  display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; min-height: 32px; margin: 0;
  padding: 5px 12px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); box-shadow: none; color: var(--text2); font: inherit; font-size: 13px; line-height: 1.5;
  text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.wizard-option:hover, .wizard-option:focus-visible { border-color: var(--accent); background: var(--surface2); color: var(--text); }
.wizard-option:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wizard-option:active { transform: translateY(1px); }
.wizard-option[aria-pressed="true"] { border-color: var(--accent); background: var(--surface2); color: var(--text); font-weight: 500; }
.wizard-option[aria-pressed="true"]::before { content: "\2713"; flex: none; color: var(--accent); font-weight: 600; }
@media (max-width: 480px) { .wizard-option { min-height: 36px; padding: 7px 14px; font-size: 14px; } }
.wizard-fill-row { margin: 0 0 12px; }
.wizard-summary { margin: 0 0 14px; }
.wizard-summary-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wizard-summary dt { color: var(--text2); font-size: 13px; }
.wizard-summary dd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 16px; margin: 0; }
.wizard-summary-value { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.wizard-change { justify-self: end; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 18px 0 0; }
.wizard-back { color: var(--text2); font-size: 14px; text-underline-offset: 3px; }
.wizard-restart { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 480px) {
  .wizard-actions { position: sticky; bottom: 0; padding: 10px 0; background: var(--bg); }
  .wizard-actions .wizard-next { flex: 1 1 100%; }
}
/* The wizard replaces the old stage strip and the old field label that repeats the step question. */
[data-wizard="on"] .workflow-strip, [data-wizard="on"] #wizardBody .field-label-row { display: none; }
/* Step 2: a button in the page language opens the file chooser; the browser's own control stays out of sight. */
.wizard-images { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.wizard-images input[type="file"] { display: none; }
/* The label stays for screen readers; the sighted line is the note below ("Optional · 0/3 images · ..."). */
.wizard-images > label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wizard-images .wizard-add-images { order: 1; flex: 0 0 auto; }
.wizard-images .image-list, .wizard-images .image-note { flex: 1 1 100%; order: 3; }

/* The free first reader: the wait, then one reader open and the others locked, with the way to pay. */
.sample { max-width: 760px; margin: 0 auto 24px; }
.sample-title { margin: 0 0 14px; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; }
.sample-title:focus { outline: none; }
.sample-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sample-wait .progress-bar { margin: 14px 0 0; }
.sample-readers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.sample-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.sample-card-open { grid-column: 1 / -1; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sample-card-locked { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: var(--text2); background: var(--surface2); }
.sample-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
.sample-name { color: var(--ink); font-size: 16px; }
.sample-facts { margin: 2px 0 0; color: var(--text2); font-size: 13px; line-height: 1.5; }
.sample-score { margin: 0; color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1; white-space: nowrap; }
.sample-block { margin: 12px 0 0; }
.sample-block h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text2); }
.sample-block ul { margin: 0; padding-left: 20px; }
.sample-block li { margin: 2px 0; }
.sample-none { margin: 0; color: var(--text2); }
.sample-summary { margin: 0; }
.sample-lock { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; }
.sample-lock-icon { position: relative; display: inline-block; flex: 0 0 auto; width: 14px; height: 10px; margin-top: 6px; border: 2px solid currentColor; border-radius: 2px; }
.sample-lock-icon::before { content: ""; position: absolute; left: 1px; bottom: 100%; width: 6px; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.sample-verdict { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.sample-sim { margin: 0 0 18px; color: var(--text2); font-size: 14px; }
.sample-gets, .sample-assumed { margin: 0 0 18px; }
.sample-gets h3, .sample-assumed h3 { margin: 0 0 6px; font-size: 16px; }
.sample-gets ul, .sample-assumed ul { margin: 0; padding-left: 20px; }
.sample-pay { margin: 0 0 14px; }
.sample-pay-button { width: 100%; max-width: 420px; }
.refund-line { margin: 8px 0 0; color: var(--text2); font-size: 13px; }
.refund-line a, .studio-paywall-note a { color: inherit; text-decoration: underline; }
.sample-retry, .sample-example { margin: 0 0 14px; }
.sample-example a { color: var(--accent); text-underline-offset: 3px; }
.sample-restart { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 640px) {
  .sample-readers { grid-template-columns: minmax(0, 1fr); }
  .sample-pay-button { max-width: none; }
}
@media print { .wizard, .wizard-restart, .sample { display: none !important; } }

/* The report of the wizard view: one document, every part on the page as plain headings and content. */
.directions-price { margin: 0 4px; color: var(--text2); font-size: 14px; }
.report-part { margin: 22px 0 0; }
.report-part-heading { margin: 0 0 10px; color: var(--text); font-size: 1.1rem; font-weight: 600; break-after: avoid; }
#evaluationRunMetadata p { margin: 4px 0; color: var(--text2); font-size: 14px; overflow-wrap: anywhere; }
/* The readers, by the band of their score: the sub-headings match the three score tiles. */
.report-group { margin: 14px 0 0; }
.report-group-heading { margin: 0 0 8px; color: var(--text2); font-size: 0.95rem; font-weight: 600; break-after: avoid; }
.report-reader { margin: 0 0 14px; break-inside: avoid; }
.report-reader > p { margin: 4px 0 0; overflow-wrap: anywhere; }
.report-reader-heading { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--ink); break-after: avoid; overflow-wrap: anywhere; }
.report-reader-dash { font-weight: 400; color: var(--text2); }
.score-badge { display: inline-block; padding: 0 7px; border: 1px solid currentColor; border-radius: 10px; font-size: 0.8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.score-badge.pos { color: var(--positive); }
.score-badge.neu { color: var(--yellow); }
.score-badge.neg { color: var(--red); }
/* The end of the report: the rewrites button with its price on one line and a short note under it, then print, then the two
   quiet controls as links, then the support line. */
[data-wizard="on"] .report-primary { margin-top: 22px; }
[data-wizard="on"] .report-primary > .directions-price { white-space: nowrap; }
[data-wizard="on"] .report-primary > #directionsEstimate { flex: 0 0 100%; margin: -2px 0 4px; color: var(--text2); font-size: 13px; }
.test-again { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.report-link { color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* The short report reference: one unbreakable piece, in a fixed-width face so it can be read out and typed. */
.report-reference { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.wizard-run-done { display: none !important; }
