* { box-sizing: border-box; }
:root { color-scheme: light; --paper: #f6f2e9; --ink: #292d29; --muted: #555b53; --rule: #c9c8bc; --white: #fffefa; --rust: #8e4433; --teal: #17645b; }
body { margin: 0; border-left: 8px solid var(--ink); background: var(--paper); color: var(--ink); font: 17px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.workspace { max-width: 1550px; margin: auto; padding: 30px 48px 24px; }
.masthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--rule); }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(32px, 3vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
.subtitle { margin: 7px 0 0; color: var(--muted); }
a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; color: var(--ink); text-underline-offset: 5px; }
.masthead a { flex-shrink: 0; }
button, textarea, input { font: inherit; }
button { min-width: 44px; min-height: 48px; padding: 10px 18px; border: 1px solid #858a7d; border-radius: 3px; background: var(--white); color: var(--ink); font-size: 15px; font-weight: 550; cursor: pointer; }
button:hover:not(:disabled) { background: #e8e6dc; border-color: var(--ink); }
button:disabled { color: #686d62; background: #ece9e0; border-color: var(--rule); cursor: default; }
button.primary { min-width: 160px; display: inline-flex; justify-content: space-between; gap: 26px; background: var(--ink); border-color: var(--ink); color: white; font-size: 16px; }
button.primary:hover { background: #41473f; color: white; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.editing { padding: 24px 0 22px; border-bottom: 1px solid var(--rule); }
.editors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.editor-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.editor-heading label { font-size: 18px; font-weight: 650; }
.limit { font-size: 14px; color: var(--muted); }
textarea { display: block; width: 100%; min-height: 140px; height: 154px; resize: vertical; border: 1px solid #858a7d; border-radius: 3px; padding: 13px 18px; background: var(--white); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.55; tab-size: 4; }
textarea::placeholder { color: #6b7066; opacity: 1; }
textarea[aria-invalid="true"] { border: 2px solid var(--rust); }
.count { margin: 5px 0 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.error { margin: 8px 0; color: #822e20; font-size: 14px; font-weight: 600; }
.compare-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; }
.method { margin: 0 0 0 6px; color: var(--muted); font-size: 16px; }
.comparison { padding-top: 24px; scroll-margin-top: 20px; }
.report-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-bottom: 20px; }
h2 { font-size: 29px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
.totals { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
.removed-ink { color: var(--rust); }
.added-ink { color: var(--teal); }
.navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
#change-position { margin: 0; min-width: 120px; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.navigation-buttons { display: flex; gap: 10px; }
.navigation-buttons button { font-size: 14px; }
.toggle { display: inline-flex; min-height: 48px; min-width: 44px; align-items: center; gap: 10px; padding: 0 5px; cursor: pointer; font-size: 15px; }
.toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.toggle:has(input:disabled) { color: #686d62; cursor: default; }
.notice { padding: 10px 14px; border-left: 3px solid var(--rust); background: #f5e4db; color: #713827; font-size: 14px; }
.result-message { margin: 0 0 15px; font-weight: 600; }
.empty-state { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 30px 20px 34px; text-align: center; background: var(--white); }
.empty-mark { display: block; margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; color: var(--muted); }
.empty-state h3 { font-size: 26px; margin: 0 0 9px; }
.empty-state p { margin: 5px 0; }
.support { color: var(--muted); font-size: 14px; }
.filter-message { font-size: 15px; color: var(--muted); }
.ledger { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--white); border-bottom: 1px solid var(--rule); }
.number-column { width: 76px; }
.ledger th { background: #e8e6dc; color: var(--muted); font-size: 14px; font-weight: 600; padding: 12px 10px; text-align: left; }
.ledger th:first-child, .ledger th:nth-child(2) { text-align: center; }
.ledger th + th, .ledger td + td { border-left: 1px solid var(--rule); }
.ledger td { vertical-align: top; padding: 9px 14px; border-bottom: 1px solid #e4e4db; }
.ledger .line-number { text-align: center; padding: 11px 5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.line-layout { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
.line-status { font-size: 14px; line-height: 1.8; white-space: nowrap; color: var(--muted); }
.line-text { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; min-height: 28px; }
.line.removed { background: #f5e4db; }
.line.added { background: #ddede6; }
.removed .line-status { color: var(--rust); font-weight: 650; }
.added .line-status { color: var(--teal); font-weight: 650; }
.removed td:last-child { box-shadow: inset 3px 0 var(--rust); }
.added td:last-child { box-shadow: inset 3px 0 var(--teal); }
.change-group { scroll-margin-top: 24px; }
.change-group.is-current { outline: 2px solid var(--ink); outline-offset: -2px; }
.change-group.is-current td:first-child { box-shadow: inset 5px 0 var(--ink); }
.only-changes .unchanged-group { display: none; }
.only-changes .change-group + .change-group { border-top: 10px solid var(--paper); }
.export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.export-actions p { margin: 0 0 0 8px; }
.action-status { color: var(--teal); min-height: 24px; margin: 12px 0 0; font-size: 14px; }
footer { color: var(--muted); font-size: 12px; padding-top: 18px; border-top: 1px solid var(--rule); margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
  .workspace { padding: 26px 28px 24px; }
  .editors { gap: 22px; }
  .report-heading { align-items: flex-start; }
  .navigation { width: 100%; }
}
@media (max-width: 620px) {
  body { border-left-width: 4px; }
  .workspace { padding: 20px 16px; }
  .masthead { gap: 12px; flex-wrap: wrap; padding-bottom: 18px; }
  .masthead a { font-size: 14px; }
  h1 { font-size: 32px; }
  .subtitle { font-size: 16px; }
  .editors { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .editor-heading { gap: 4px 12px; }
  .limit { font-size: 12px; }
  textarea { height: 145px; min-height: 130px; padding: 12px; font-size: 17px; }
  .compare-actions { align-items: stretch; }
  .compare-actions .primary { width: 100%; }
  .method { flex-basis: 100%; margin: 0; font-size: 14px; }
  h2 { font-size: 27px; }
  .totals { font-size: 14px; gap: 8px 16px; }
  .navigation { gap: 8px 12px; }
  #change-position { width: 100%; }
  .navigation-buttons { width: 100%; }
  .navigation-buttons button { flex: 1; padding: 10px 8px; }
  .number-column { width: 56px; }
  .ledger th { padding: 10px 3px; font-size: 12px; }
  .ledger th:last-child { padding-left: 12px; }
  .ledger td { padding: 9px 12px; }
  .ledger .line-number { padding: 10px 3px; font-size: 12px; }
  .line-layout { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .ledger thead .line-layout { display: grid; gap: 1px; }
  .line-status { font-size: 14px; }
  .line-text { font-size: 17px; }
  .empty-state { padding: 26px 14px; }
  .empty-state p { font-size: 16px; }
  .empty-state .support { font-size: 14px; }
  .export-actions { align-items: stretch; flex-direction: column; }
  .export-actions p { margin: 2px 0 0; }
}
@media print {
  @page { margin: 16mm; }
  body { border: 0; background: white; color: black; font-size: 12pt; }
  .workspace { max-width: none; padding: 0; }
  .masthead { padding: 0 0 14px; }
  .masthead a, .eyebrow, .editing, .navigation, .export-actions, .action-status, footer, .filter-message, noscript { display: none !important; }
  h1 { font-size: 25pt; }
  .subtitle { font-size: 12pt; }
  h2 { font-size: 20pt; }
  .report-heading { display: block; }
  .totals { font-size: 12pt; gap: 20px; }
  .only-changes .unchanged-group { display: table-row-group; }
  .only-changes .change-group + .change-group { border-top: 0; }
  .change-group.is-current { outline: none; }
  .change-group.is-current td:first-child, .removed td:last-child, .added td:last-child { box-shadow: none; }
  .ledger { width: 100%; }
  .number-column { width: 48px; }
  .ledger thead { display: table-header-group; }
  .ledger th { font-size: 10pt; color: black; }
  .ledger td { padding: 7px 9px; }
  .ledger .line-number { padding: 7px 3px; font-size: 10pt; color: black; }
  .line-layout { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 8px; }
  .ledger thead .line-layout { display: grid; }
  .line-text { font-size: 12pt; white-space: pre-wrap; overflow-wrap: anywhere; }
  .line-status, .removed .line-status, .added .line-status { color: black; font-size: 10pt; }
  .ledger tr { break-inside: avoid; }
  .line.removed, .line.added { background: white; }
  .notice { color: black; background: white; border-color: black; }
}
