:root {
  color-scheme: light;
  --paper: #f5f2ed;
  --surface: #fffdfa;
  --surface-raised: #ffffff;
  --surface-soft: #f4f1fb;
  --ink: #242334;
  --ink-soft: #454356;
  --muted: #696778;
  --muted-soft: #6b6878;
  --line: #dedbe5;
  --line-strong: #77748a;
  --accent: #5142cc;
  --accent-dark: #392e9b;
  --accent-soft: #efedff;
  --accent-wash: #f8f7ff;
  --green: #235f4b;
  --green-soft: #e9f3ec;
  --danger: #963c3c;
  --danger-soft: #f9efed;
  --shadow-card: 0 12px 34px -26px rgb(41 34 78 / 32%), 0 2px 6px -4px rgb(41 34 78 / 20%);
  --focus: #5445d3;
  --radius-card: 18px;
  --radius-small: 11px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-tap-highlight-color: rgb(81 66 204 / 12%);
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: rgb(81 66 204 / 12%);
}

button {
  color: inherit;
}

a {
  color: var(--accent-dark);
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  border-radius: 9px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease-out;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-shell {
  width: min(100% - 64px, 1480px);
  margin-inline: auto;
}

.masthead {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.footer-brand {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px 12px 12px 4px;
  background: var(--accent);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  transition: background-color 150ms ease-out;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.brand:hover .brand-mark {
  background: var(--accent-dark);
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.session-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 670;
}

.session-dot,
.editor-state-dot,
.result-status-dot,
.coverage-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.045em;
}

.locale-switch a {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.locale-switch a:hover,
.locale-switch a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.page-content {
  padding-top: 42px;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding: 4px 0 37px;
}

.intro-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.eyebrow-rule {
  width: 23px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

.intro h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.intro-lede {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
}

.privacy-note {
  min-width: 195px;
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.privacy-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
}

.privacy-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: 26px;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.editor-card {
  min-width: 0;
  padding: 24px;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.step-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.035em;
}

.editor-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  border: 1px solid #d9e8dc;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 720;
  white-space: nowrap;
}

.editor-state-dot {
  width: 6px;
  height: 6px;
}

.editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 17px;
}

.editor-heading .eyebrow {
  margin-bottom: 5px;
}

.editor-heading h2,
.results-heading-row h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.format-tag {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.format-tag span {
  color: var(--accent);
  padding-inline: 2px;
}

.form-alert {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 0 0 15px;
  border: 1px solid #e9c9c4;
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.alert-mark {
  width: 18px;
  height: 18px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.report-form {
  display: grid;
  gap: 10px;
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
}

.field-optional {
  color: var(--muted-soft);
  font-size: 10px;
}

.textarea-wrap {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-raised);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.textarea-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.textarea-wrap textarea {
  display: block;
  min-height: 258px;
  resize: vertical;
  border: 0;
  border-radius: 12px 12px 0 0;
  padding: 15px 16px 10px;
  background: transparent;
  box-shadow: none;
}

textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
}

.textarea-footer {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 0 12px;
}

.editor-hint,
.character-count {
  color: var(--muted);
  font-size: 10px;
}

.character-count {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.character-count.is-over-limit {
  color: var(--danger);
  font-weight: 760;
}

.textarea-wrap:has(textarea[aria-invalid="true"]) {
  border-color: var(--danger);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.engine-note {
  color: var(--ink-soft);
  font-weight: 650;
}

.field-error {
  margin: -3px 0 2px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 650;
}

.upload-zone {
  position: relative;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 10px 11px;
  background: #fcfbff;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.upload-zone:hover,
.upload-zone:focus-within {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.upload-zone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.upload-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.upload-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.upload-copy strong,
.upload-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.upload-copy strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.upload-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.upload-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}

.upload-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-meta-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.file-name {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: right;
}

.format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.format-row select {
  width: auto;
  min-width: 152px;
  min-height: 44px;
  padding: 7px 32px 7px 10px;
  color-scheme: light;
  font-size: 11px;
}

.language-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
  align-items: center;
}

.language-row select {
  width: 100%;
  max-width: none;
}

.language-row .field-help {
  grid-column: 1 / -1;
  margin-top: -4px;
}

.sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 5px;
}

.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 5px 7px;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
  text-align: left;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

.text-button:hover:not(:disabled) {
  background: var(--accent-soft);
  color: #2d237e;
}

.text-button:disabled {
  color: var(--muted-soft);
  cursor: not-allowed;
}

.text-button-icon {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 2px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  transition: transform 140ms ease-out, color 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.82;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 5px 12px -7px #392e9b;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 7px 15px -8px #392e9b;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-dark);
}

.button-tertiary {
  min-height: 44px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--accent-dark);
}

.button-tertiary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.button-arrow {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.button-spinner {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.form-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.results-column {
  min-width: 0;
  display: grid;
  gap: 19px;
}

.results-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 0 3px 2px;
}

.results-kicker {
  margin-bottom: 7px;
}

.results-heading-row h2 {
  font-size: 30px;
}

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  margin-bottom: 4px;
  border: 1px solid #d9e8dc;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.result-status-idle {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.result-status-idle .result-status-dot {
  background: var(--muted-soft);
}

.result-status-error {
  max-width: 164px;
  border-color: #e9c9c4;
  background: var(--danger-soft);
  color: var(--danger);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

.result-status-error .result-status-dot {
  background: var(--danger);
}

.report-summary,
.revision-summary {
  min-width: 0;
  padding: 20px;
}

.summary-source-row,
.source-identity {
  min-width: 0;
  display: flex;
  align-items: center;
}

.summary-source-row {
  justify-content: space-between;
  gap: 14px;
}

.source-identity {
  gap: 11px;
}

.file-type-icon {
  width: 39px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #dad5f4;
  border-radius: 9px 9px 9px 4px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.source-copy {
  min-width: 0;
}

.source-copy .eyebrow {
  margin-bottom: 3px;
}

.source-name {
  max-width: 420px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.coverage-pill {
  max-width: 245px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.coverage-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.document-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 19px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.document-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  order: -1;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.35vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 630;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sample-caveat {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-top: 17px;
  border-radius: 9px;
  padding: 10px 11px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.caveat-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  border: 1px solid #877bd6;
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
}

.sample-caveat p {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.signals-section,
.content-section {
  min-width: 0;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.section-title-row .eyebrow {
  margin-bottom: 4px;
}

.section-title-row h3,
.compact-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-count {
  min-width: 27px;
  min-height: 25px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.signal-notes {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.signal-notes li {
  display: flex;
  align-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.note-mark {
  flex: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.evidence-list {
  display: grid;
  gap: 10px;
}

.evidence-card,
.edit-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.evidence-meta,
.edit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.evidence-card blockquote,
.evidence-excerpt {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.evidence-card blockquote {
  border-left: 2px solid #9b91e6;
  padding-left: 12px;
}

.evidence-excerpt {
  font-size: 14px;
}

.review-question {
  margin: 9px 0 0 14px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.review-reason {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.line-reference,
.citation-keys {
  color: var(--muted);
  font-size: 10px;
  font-weight: 710;
  overflow-wrap: anywhere;
}

.citation-keys {
  max-width: 100%;
  border-radius: 6px;
  padding: 3px 7px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 7px;
  background: #faf9fc;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section-disclaimer {
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.quiet-state {
  min-height: 76px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
}

.quiet-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.repetition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.compact-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.compact-heading .eyebrow {
  margin-bottom: 3px;
}

.compact-heading h3 {
  font-size: 16px;
}

.compact-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

.compact-icon-loop {
  font-size: 18px;
}

.compact-list {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.compact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compact-list strong {
  flex: none;
  color: var(--accent-dark);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.muted-empty {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.disclosure-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.disclosure-card summary {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 740;
  list-style: none;
}

.disclosure-card summary::-webkit-details-marker {
  display: none;
}

.disclosure-card summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.disclosure-card summary:hover {
  background: var(--accent-wash);
}

.summary-chevron {
  color: var(--muted);
  font-size: 16px;
  transition: transform 160ms ease-out;
}

.disclosure-card[open] .summary-chevron {
  transform: rotate(180deg);
}

.disclosure-body {
  border-top: 1px solid var(--line);
  padding: 13px;
}

.disclosure-body .section-disclaimer {
  margin: 0 0 9px;
}

.code-preview {
  max-width: 100%;
  max-height: 440px;
  overflow: auto;
  border: 1px solid #353248;
  border-radius: 10px;
  padding: 13px;
  background: #252334;
  color: #f2f0fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.diff-preview {
  color: #f4f1ff;
}

.download-source {
  display: none !important;
}

.download-button {
  margin-top: 9px;
}

.edit-card {
  display: grid;
  gap: 11px;
}

.edit-reason {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.edit-before,
.edit-after {
  min-width: 0;
  border-radius: 9px;
  padding: 10px 11px;
}

.edit-before {
  border: 1px solid #ead8d6;
  background: #fcf4f2;
}

.edit-after {
  border: 1px solid #d1e4d7;
  background: #eff7f0;
}

.edit-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edit-after .edit-label {
  color: var(--green);
}

.edit-before p,
.edit-after p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.revision-notice {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-top: 17px;
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.revision-notice > span {
  flex: none;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.revision-notice p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.empty-review {
  min-height: 472px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 25px;
}

.empty-illustration {
  position: relative;
  width: 100%;
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 11px;
  overflow: hidden;
  border: 1px solid #e8e3f6;
  border-radius: 14px;
  background: #f1eefb;
}

.illustration-orbit {
  position: absolute;
  width: 205px;
  height: 112px;
  border: 1px solid #d7d1ef;
  border-radius: 50%;
  transform: rotate(-16deg);
}

.orbit-two {
  width: 163px;
  height: 86px;
  border-color: #e3def5;
  transform: rotate(23deg);
}

.illustration-paper {
  position: relative;
  z-index: 1;
  width: 87px;
  height: 111px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 19px 15px;
  border: 1px solid #d3cfdf;
  border-radius: 7px 7px 12px 7px;
  background: #fffefa;
  box-shadow: 0 10px 23px -15px #423975;
  transform: rotate(-5deg);
}

.illustration-paper::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 17px;
  height: 17px;
  border-left: 1px solid #d3cfdf;
  border-bottom: 1px solid #d3cfdf;
  border-radius: 0 6px 0 5px;
  background: #f1effa;
  content: "";
}

.illustration-paper span {
  height: 3px;
  border-radius: 3px;
  background: #dad7e5;
}

.illustration-paper span:nth-child(1) {
  width: 70%;
  height: 5px;
  background: #8b81d5;
}

.illustration-paper span:nth-child(2) {
  width: 100%;
}

.illustration-paper span:nth-child(3) {
  width: 83%;
}

.illustration-paper i {
  width: 43px;
  height: 20px;
  display: block;
  margin-top: 5px;
  border: 1px solid #d6d0ef;
  border-radius: 5px;
  background: var(--accent-soft);
}

.illustration-lens {
  position: absolute;
  z-index: 2;
  top: 69px;
  left: calc(50% + 25px);
  width: 37px;
  height: 37px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #faf9ff;
}

.illustration-lens::after {
  position: absolute;
  right: -11px;
  bottom: -7px;
  width: 16px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  content: "";
  transform: rotate(47deg);
  transform-origin: left center;
}

.illustration-lens span {
  position: absolute;
  inset: 8px;
  border: 1px solid #c7c0ed;
  border-radius: 50%;
}

.illustration-spark {
  position: absolute;
  z-index: 1;
  color: #6d5ed0;
  font-size: 18px;
}

.spark-one {
  top: 30px;
  left: calc(50% + 69px);
}

.spark-two {
  bottom: 25px;
  left: calc(50% - 84px);
  font-size: 31px;
  line-height: 1;
}

.empty-review > .eyebrow {
  margin: 10px 0 5px;
}

.empty-review h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.empty-copy {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.empty-checklist {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 21px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  padding-left: 18px;
  color: var(--accent-dark);
}

.empty-checklist li {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.empty-disclaimer {
  margin: auto 0 0;
  padding-top: 19px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.results-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 3px;
}

.footer-rule {
  width: 18px;
  height: 1px;
  flex: none;
  background: var(--accent);
}

.results-footer p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-style: italic;
}

.page-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 41px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  width: 25px;
  height: 25px;
  border-radius: 8px 8px 8px 3px;
  font-size: 16px;
}

.page-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.page-footer > span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

@media (max-width: 1080px) {
  .site-shell {
    width: min(100% - 44px, 940px);
  }

  .intro {
    align-items: start;
  }

  .privacy-note {
    margin-top: 28px;
  }

  .workbench {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 18px;
  }

  .editor-card {
    padding: 20px;
  }

  .form-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .button {
    min-height: 46px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 40px, 700px);
  }

  .page-content {
    padding-top: 32px;
  }

  .intro {
    gap: 20px;
    padding-bottom: 27px;
  }

  .privacy-note {
    min-width: 165px;
    max-width: 180px;
    padding: 9px;
    font-size: 10px;
  }

  .workbench {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .editor-card {
    position: static;
    padding: 23px;
  }

  .textarea-wrap textarea {
    min-height: 235px;
  }

  .form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-column {
    gap: 17px;
  }

  .empty-review {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 32px, 480px);
  }

  .masthead {
    min-height: 72px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .masthead-meta {
    gap: 10px;
  }

  .session-label {
    gap: 6px;
    font-size: 10px;
  }

  .locale-switch {
    gap: 2px;
    font-size: 10px;
  }

  .locale-switch a {
    min-width: 44px;
    min-height: 44px;
  }

  .page-content {
    padding-top: 29px;
  }

  .intro {
    display: block;
    padding-bottom: 21px;
  }

  .intro .eyebrow {
    margin-bottom: 11px;
  }

  .intro h1 {
    max-width: 500px;
    font-size: clamp(2.35rem, 11.5vw, 3.45rem);
    line-height: 1.02;
  }

  .intro-lede {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.58;
  }

  .privacy-note {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    margin-top: 16px;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .privacy-icon {
    width: 25px;
    height: 25px;
  }

  .workbench {
    gap: 23px;
  }

  .editor-card {
    padding: 17px;
    border-radius: 15px;
  }

  .editor-state {
    gap: 5px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .editor-heading {
    margin-top: 22px;
  }

  .editor-heading h2 {
    font-size: 25px;
  }

  .textarea-wrap textarea {
    min-height: 220px;
    padding: 13px 12px 9px;
    font-size: 13px;
  }

  .textarea-footer {
    min-height: 34px;
    padding-inline: 9px;
  }

  .editor-hint,
  .character-count {
    font-size: 9px;
  }

  .upload-zone {
    min-height: 64px;
    gap: 8px;
    padding: 8px;
  }

  .upload-copy {
    gap: 7px;
  }

  .upload-icon {
    width: 30px;
    height: 30px;
  }

  .upload-copy strong {
    font-size: 10px;
  }

  .upload-copy small {
    font-size: 8px;
  }

  .upload-button {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .format-row {
    align-items: start;
  }

  .format-row label {
    padding-top: 10px;
  }

  .format-row select {
    min-width: 130px;
    max-width: 58%;
  }

  .language-row {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.8fr);
  }

  .language-row select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .text-button {
    min-height: 44px;
    font-size: 9px;
  }

  .sample-row {
    gap: 4px;
  }

  .form-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .button {
    min-height: 47px;
    font-size: 11px;
  }

  .results-heading-row {
    align-items: center;
    min-height: 58px;
  }

  .results-heading-row h2 {
    font-size: 27px;
  }

  .result-status {
    padding: 5px 8px;
    font-size: 9px;
  }

  .result-status-error {
    max-width: 132px;
  }

  .report-summary,
  .revision-summary {
    padding: 15px;
  }

  .summary-source-row {
    align-items: start;
    flex-direction: column;
  }

  .coverage-pill {
    max-width: 100%;
    margin-left: 50px;
  }

  .document-stats {
    gap: 7px;
    margin-top: 15px;
    padding-top: 14px;
  }

  .stat-value {
    font-size: clamp(1.15rem, 6vw, 1.5rem);
  }

  .stat-label {
    font-size: 9px;
  }

  .repetition-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-title-row h3 {
    font-size: 20px;
  }

  .evidence-card,
  .edit-card {
    padding: 13px;
  }

  .evidence-card blockquote {
    font-size: 15px;
  }

  .empty-review {
    min-height: 440px;
    padding: 17px;
  }

  .empty-illustration {
    height: 142px;
  }

  .illustration-paper {
    width: 77px;
    height: 99px;
    gap: 8px;
    padding: 17px 13px;
  }

  .illustration-lens {
    top: 62px;
    left: calc(50% + 20px);
    width: 33px;
    height: 33px;
  }

  .empty-checklist {
    gap: 5px;
  }

  .empty-checklist li {
    font-size: 9px;
  }

  .page-footer {
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 16px;
  }

  .page-footer p {
    max-width: calc(100% - 36px);
  }

  .page-footer > span:last-child {
    width: 100%;
    margin-left: 33px;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-name span {
    font-size: 10px;
  }

  .session-label {
    max-width: 75px;
    font-size: 9px;
  }

  .masthead-meta {
    gap: 5px;
  }

  .locale-switch a {
    min-width: 44px;
    min-height: 44px;
  }

  .editor-card {
    padding: 14px;
  }

  .step-label {
    font-size: 10px;
  }

  .editor-state {
    font-size: 8px;
  }

  .field-heading {
    align-items: start;
    flex-direction: column;
    gap: 1px;
  }

  .sample-row {
    align-items: start;
    flex-direction: column;
  }

  .clear-button {
    margin-left: -7px;
  }

  .document-stats {
    gap: 5px;
  }

  .stat-value {
    font-size: 1.18rem;
  }

  .stat-label {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
