:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202a35;
  background: #f6f7f8;
  font-synthesis: none;
  --ink: #202a35;
  --muted: #64707b;
  --line: #dfe3e6;
  --accent: #e7ac46;
  --red: #ad3c43;
  --green: #23754f;
  --red-bg: #fff0ef;
  --green-bg: #edf8f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b37a1f;
  outline-offset: 3px;
}
button {
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 82px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand:hover {
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.brand-hyphen {
  color: #a57a33;
}
.header-note {
  margin-left: auto;
  color: #77818a;
  font-size: 14px;
}
.header-help {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.header-help > span {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.app-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100vh - 82px);
}
.tool-rail {
  background: #fcfcfd;
  border-right: 1px solid var(--line);
  padding: 40px 17px;
}
.tool-rail nav {
  display: grid;
  gap: 7px;
  position: sticky;
  top: 24px;
}
.tool-rail nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #5c6873;
  border: 1px solid transparent;
  border-radius: 5px;
}
.tool-rail nav a:hover {
  background: #f0f2f4;
  text-decoration: none;
}
.tool-rail nav a[aria-current="page"] {
  background: #202a35;
  color: #fff;
  border-color: #202a35;
  box-shadow: 0 3px 8px #202a3510;
}
.tool-symbol {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 500;
  font-size: 18px;
  min-width: 25px;
  text-align: center;
}
.rail-note {
  position: sticky;
  top: 385px;
  margin: 75px 14px 0;
  font-size: 13px;
  color: #7a848c;
}
.rail-note strong {
  font-size: 14px;
  color: #4a5762;
  font-weight: 600;
}
.rail-note p {
  line-height: 1.8;
  margin: 10px 0 18px;
}
.rail-note a {
  font-size: 12px;
  border-bottom: 1px solid #bac1c7;
}
.rail-line {
  width: 28px;
  height: 3px;
  background: var(--accent);
  display: block;
  margin-bottom: 21px;
}
main {
  padding: 38px 40px 0;
  min-width: 0;
  max-width: 1800px;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: clamp(27px, 2.5vw, 39px);
  letter-spacing: -1.5px;
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 650;
}
.page-heading p {
  color: var(--muted);
  font-size: 15px;
  max-width: 760px;
  margin: 0;
}
.workspace {
  background: #fff;
  border: 1px solid #d9dfe3;
  border-radius: 7px;
  box-shadow: 0 3px 15px #202a3505;
  overflow: hidden;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.workspace-heading > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.workspace-name {
  font-size: 14px;
  font-weight: 650;
}
.local-label {
  font-size: 12px;
  color: #758078;
  display: flex;
  gap: 6px;
  align-items: center;
}
.local-label svg {
  width: 12px;
  height: 12px;
}
.quiet {
  border: 0;
  background: transparent;
  color: #5d6872;
  font-size: 13px;
  font-weight: 550;
  padding: 6px 8px;
  border-radius: 4px;
}
.quiet:hover {
  background: #edf0f3;
  color: #202a35;
}
.editors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.editor {
  min-width: 0;
}
.editor + .editor {
  border-left: 1px solid var(--line);
}
.editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  gap: 8px;
  border-bottom: 1px solid #edf0f2;
  background: #fbfcfd;
}
.editor-title label {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.version-dot {
  height: 6px;
  width: 6px;
  border: 1px solid #9ca8b2;
  border-radius: 50%;
  display: block;
}
.version-dot.right {
  background: #8eaba1;
  border-color: #8eaba1;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px;
}
.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #63717d;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover {
  background: #e9edf0;
  border-color: #dfe4e8;
}
.file-open {
  font-size: 12px;
}
.drop-target {
  position: relative;
}
.drop-target.dragging {
  box-shadow: inset 0 0 0 2px #c58d2e;
  background: #fff7e9;
}
textarea {
  display: block;
  resize: vertical;
  min-height: 310px;
  width: 100%;
  height: 310px;
  border: 0;
  outline: 0 !important;
  border-radius: 0;
  background: transparent;
  padding: 20px 21px;
  font-size: 14px;
  line-height: 1.8;
  font-family:
    ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  tab-size: 2;
  color: #33424e;
}
textarea::placeholder {
  color: #9aa2aa;
}
textarea:focus {
  box-shadow: inset 0 0 0 2px #cda65b;
}
.editor-meta {
  border-top: 1px solid #edf0f2;
  padding: 8px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #89929a;
  min-height: 43px;
}
.editor-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}
.editor-meta .quiet {
  font-size: 11px;
}
.input-tools {
  padding: 18px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: #fcfcfd;
}
.comparison-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #5e6b76;
  cursor: pointer;
}
.check input {
  width: 14px;
  height: 14px;
  accent-color: #202a35;
}
.run-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  border-color: #dda23c;
  color: #322919;
}
.primary:hover {
  background: #dda13b;
  text-decoration: none;
}
.primary kbd {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.65;
  border: 1px solid #9c702255;
  border-radius: 3px;
  padding: 0 4px;
  white-space: nowrap;
}
.secondary {
  background: #fff;
  border-color: #cfd6db;
  color: #3c4c59;
  padding: 7px 12px;
  font-size: 12px;
}
.secondary:hover {
  background: #f1f4f6;
}
.workspace-footnote {
  padding: 13px 21px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #7b868e;
  border-top: 1px solid var(--line);
}
.workspace-footnote a {
  margin-left: auto;
  font-size: 11px;
  border-bottom: 1px solid #c6cdd2;
}
.device-icon {
  display: flex;
}
.device-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}
.hint {
  font-size: 12px;
  color: #77838e;
}
.message {
  margin: 13px 21px;
  padding: 10px 13px;
  border-radius: 4px;
  background: #f3f5f7;
  font-size: 13px;
  border-left: 3px solid #a8b6c2;
}
.message.error {
  color: #87333d;
  background: #fff1f0;
  border-color: #b45159;
}
.progress-message {
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #d5dce2;
  border-top-color: #283b49;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f2;
}
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  font-weight: 550;
}
.summary .removed {
  color: var(--red);
}
.summary .added {
  color: var(--green);
}
.summary .neutral {
  color: #76808a;
}
.result-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
}
.view-buttons {
  display: flex;
  gap: 2px;
  background: #e9edf0;
  border: 1px solid #e1e5e8;
  padding: 3px;
  border-radius: 5px;
}
.view-buttons button {
  font-size: 12px;
  background: transparent;
  color: #6d7883;
  border: 0;
  padding: 5px 9px;
  border-radius: 3px;
}
.view-buttons button[aria-pressed="true"] {
  background: #fff;
  color: #26333f;
  box-shadow: 0 1px 3px #00000014;
}
.result-options {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #697783;
}
.result-options > label {
  display: flex;
  align-items: center;
  gap: 7px;
}
select {
  font-size: 12px;
  color: #3d4f5b;
  border: 1px solid #d5dce1;
  padding: 4px 19px 4px 8px;
  border-radius: 4px;
  background: #fff;
}
.export-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.result-scroll {
  overflow: auto;
  max-height: 540px;
  overscroll-behavior: contain;
  position: relative;
}
.diff-table {
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  min-width: 100%;
}
.diff-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  color: #7a858e;
  font:
    11px/1.5 ui-sans-serif,
    system-ui;
  border-bottom: 1px solid var(--line);
}
.diff-head > div {
  padding: 9px 13px;
}
.diff-head > div + div {
  border-left: 1px solid var(--line);
}
.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid #f0f2f3;
  position: relative;
}
.diff-row.active-change {
  outline: 2px solid #cc943a;
  outline-offset: -2px;
  z-index: 1;
}
.diff-cell {
  display: grid;
  grid-template-columns: 35px 15px minmax(0, 1fr) auto;
  min-height: 28px;
  align-items: start;
  padding-right: 5px;
}
.diff-cell + .diff-cell {
  border-left: 1px solid var(--line);
}
.line-no {
  color: #9aa3ab;
  text-align: right;
  padding: 3px 8px 3px 2px;
  user-select: none;
  font-size: 10px;
}
.line-sign {
  padding-top: 3px;
  text-align: center;
  user-select: none;
  color: #85909a;
}
.line-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 3px 6px 3px 3px;
  min-height: 28px;
}
.diff-cell.removed {
  background: var(--red-bg);
}
.diff-cell.added {
  background: var(--green-bg);
}
.diff-cell.removed .line-sign {
  color: var(--red);
}
.diff-cell.added .line-sign {
  color: var(--green);
}
.diff-cell mark {
  background: #f8c9c8;
  color: inherit;
  border-radius: 2px;
  padding: 1px 0;
}
.diff-cell.added mark {
  background: #bce5c6;
}
.merge-button {
  background: #fff9;
  border: 1px solid #d4dcdc;
  border-radius: 3px;
  font:
    10px/1.5 ui-sans-serif,
    system-ui;
  color: #64737c;
  margin: 4px 0;
  padding: 1px 4px;
  white-space: nowrap;
}
.merge-button:hover {
  background: white;
  color: #202a35;
}
.unified .diff-row {
  grid-template-columns: 1fr;
}
.unified .diff-cell {
  grid-template-columns: 40px 18px minmax(0, 1fr) auto;
  border-left: 0;
}
.result-bottom {
  padding: 10px 18px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.result-bottom #pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.result-bottom .hint {
  font-size: 10px;
}
.sheet-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f4f7f8;
  padding: 8px 16px;
  font-size: 12px;
}
.sheet-picker select {
  max-width: 260px;
}
.cell-table {
  border-collapse: collapse;
  width: 100%;
  font:
    12px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.cell-table th,
.cell-table td {
  border: 1px solid #e1e6e9;
  padding: 6px 10px;
  max-width: 300px;
  min-width: 80px;
  vertical-align: top;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cell-table th {
  background: #f5f7f8;
  font-weight: 500;
  color: #74818c;
  position: sticky;
  top: 0;
}
.cell-table .row-number {
  min-width: 36px;
  width: 40px;
  background: #f5f7f8;
  color: #8c969f;
  font-size: 10px;
}
.cell-table td.cell-change {
  background: #fff7e6;
}
.cell-before {
  color: var(--red);
  display: block;
  background: var(--red-bg);
}
.cell-after {
  color: var(--green);
  display: block;
  background: var(--green-bg);
}
.cell-same {
  color: #647581;
}
.cell-empty {
  color: #9ba5ae;
  font-style: italic;
  font-size: 10px;
}
.image-empty {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6b7c89;
}
.image-empty svg {
  width: 45px;
  fill: none;
  stroke: #aebdc7;
  stroke-width: 1.5;
  margin-bottom: 8px;
}
.image-empty strong {
  font-size: 14px;
  font-weight: 550;
}
.image-empty > span {
  font-size: 12px;
}
.image-preview {
  width: 100%;
  height: 310px;
  object-fit: contain;
  padding: 14px;
  background: repeating-conic-gradient(#f4f5f7 0% 25%, white 0% 50%) 50%/16px
    16px;
}
.image-stage {
  position: relative;
  max-width: 100%;
  width: max-content;
  margin: auto;
  overflow: hidden;
  background: repeating-conic-gradient(#e6e8eb 0% 25%, #f6f7f8 0% 50%) 50%/16px
    16px;
}
.image-stage canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.image-stage .image-top {
  position: absolute;
  inset: 0;
}
.image-stage .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e7ac46;
  box-shadow: 0 0 0 1px #0003;
  pointer-events: none;
}
.slider-line:after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: -13px;
  background: #fff;
  color: #584024;
  border: 1px solid #d2a24f;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.image-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #5d6c78;
}
.image-controls label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.image-controls input {
  width: 120px;
  accent-color: #b7832d;
}
.image-controls output {
  min-width: 18px;
}
.explainer {
  margin: 54px 0 47px;
}
.explainer > h2,
.next-tools h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin: 0 0 24px;
}
.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.explain-grid h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}
.explain-grid p {
  font-size: 13px;
  line-height: 1.9;
  color: #77828b;
  margin: 0;
}
.next-tools {
  padding: 27px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}
.next-tools h2 {
  font-size: 17px;
  margin: 0 0 5px;
}
.next-tools p {
  font-size: 12px;
  color: #818b93;
  margin: 0;
}
.next-tools nav {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  max-width: 550px;
  justify-content: flex-end;
}
.next-tools nav a {
  font-size: 11px;
  color: #60717e;
  display: flex;
  gap: 5px;
  align-items: center;
}
.next-tools .tool-symbol {
  font-size: 13px;
  min-width: 18px;
}
.site-footer {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 10px;
  color: #919aa2;
  border-top: 1px solid var(--line);
}
.site-footer nav {
  display: flex;
  gap: 20px;
}
.site-footer a {
  font-size: 11px;
}
.prose {
  max-width: 850px;
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
}
.prose h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 25px 0 10px;
}
.prose p {
  font-size: 15px;
  line-height: 1.9;
  color: #63717e;
}
.prose a {
  color: #855f1b;
  text-decoration: underline;
}
.prose .primary {
  color: #322919;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  background: #202a35;
  color: white;
  padding: 10px;
  z-index: 99;
}
.skip-link:focus {
  top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.noscript {
  background: #fff0d2;
  padding: 20px;
}
.image-view .result-scroll {
  background: #e8ecf0;
}
.all-same {
  padding: 24px;
  text-align: center;
  color: var(--green);
  font-size: 14px;
}
.result-empty {
  padding: 20px;
  color: #7b8791;
  text-align: center;
}
body[data-mode="page"] .next-tools {
  margin-top: 30px;
}
@media (min-width: 1600px) {
  main {
    padding: 45px 55px 0;
  }
  .page-heading {
    margin-bottom: 36px;
  }
  textarea,
  .image-empty,
  .image-preview {
    height: 350px;
    min-height: 350px;
  }
}
@media (max-width: 1150px) {
  .app-layout {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  main {
    padding: 30px 25px 0;
  }
  .tool-rail {
    padding: 30px 10px;
  }
  .tool-rail nav a {
    padding: 11px 9px;
    font-size: 12px;
    gap: 7px;
  }
  .rail-note {
    margin-left: 9px;
    margin-right: 9px;
  }
  .workspace-heading > div {
    gap: 12px;
  }
  .local-label {
    font-size: 10px;
  }
  .comparison-options {
    gap: 8px;
  }
  .check {
    font-size: 11px;
  }
  .input-tools {
    padding: 15px;
  }
  .next-tools {
    align-items: flex-start;
  }
  .next-tools nav {
    max-width: 270px;
    gap: 9px;
  }
  .site-footer > span:last-child {
    display: none;
  }
  .result-options {
    gap: 6px;
  }
  .primary kbd {
    display: none;
  }
  .diff-cell {
    grid-template-columns: 29px 12px minmax(0, 1fr) auto;
  }
  .merge-button {
    font-size: 9px;
  }
}
@media (max-width: 820px) {
  .site-header {
    height: 69px;
    padding: 0 22px;
  }
  .brand {
    font-size: 20px;
  }
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .header-note {
    display: none;
  }
  .header-help {
    margin-left: auto;
  }
  .app-layout {
    display: block;
  }
  .tool-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 9px 13px;
    overflow: auto;
    position: static;
  }
  .tool-rail nav {
    display: flex;
    gap: 5px;
    position: static;
    min-width: max-content;
  }
  .tool-rail nav a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .tool-rail .tool-symbol {
    font-size: 15px;
    min-width: 20px;
  }
  .rail-note {
    display: none;
  }
  main {
    padding: 29px 22px 0;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .workspace-heading {
    padding: 14px 16px;
  }
  .workspace-heading > div {
    display: block;
  }
  .local-label {
    margin-top: 4px;
    font-size: 10px;
  }
  .input-tools {
    flex-wrap: wrap;
  }
  .run-actions {
    margin-left: auto;
  }
  .comparison-options {
    gap: 13px;
  }
  .check {
    font-size: 12px;
  }
  .editor-title {
    padding: 10px 12px;
  }
  .editor-title label {
    font-size: 12px;
  }
  .editor-actions {
    gap: 0;
  }
  .file-open {
    font-size: 11px;
  }
  .icon-button {
    width: 26px;
    height: 28px;
    padding: 5px;
  }
  .editor-meta {
    padding: 7px 12px;
  }
  .explain-grid {
    gap: 22px;
  }
  .explain-grid p {
    font-size: 12px;
  }
  .result-controls {
    padding: 10px 12px;
    gap: 10px;
  }
  .result-options {
    order: 3;
    flex-basis: 100%;
  }
  .export-actions {
    margin-left: auto;
  }
  .result-bottom {
    flex-wrap: wrap;
  }
  .next-tools {
    gap: 15px;
  }
  .result-scroll {
    max-height: 530px;
  }
}
@media (max-width: 560px) {
  .site-header {
    padding: 0 16px;
    height: 64px;
  }
  .brand {
    font-size: 20px;
  }
  .header-help {
    font-size: 12px;
    gap: 6px;
  }
  .header-help > span {
    display: none;
  }
  .tool-rail {
    padding: 7px 9px;
  }
  .tool-rail nav {
    gap: 3px;
  }
  .tool-rail nav a {
    font-size: 11px;
    padding: 7px 10px;
  }
  .tool-symbol {
    font-size: 14px;
  }
  main {
    padding: 25px 14px 0;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
    max-width: 350px;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 1.75;
  }
  .workspace {
    border-radius: 5px;
  }
  .workspace-heading {
    padding: 12px 13px;
  }
  .workspace-name {
    font-size: 13px;
  }
  .workspace-heading .quiet {
    font-size: 11px;
  }
  .local-label {
    font-size: 9px;
  }
  .editors {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor + .editor {
    border-left: 0;
    border-top: 1px solid #d0d8df;
  }
  .editor-title {
    padding: 9px 12px;
  }
  .editor-title label {
    font-size: 12px;
  }
  .file-open {
    font-size: 11px;
  }
  textarea {
    height: 195px;
    min-height: 150px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
  }
  .editor-meta {
    padding: 5px 12px;
    min-height: 34px;
    font-size: 10px;
  }
  .input-tools {
    padding: 13px;
    gap: 15px;
  }
  .comparison-options {
    gap: 7px 12px;
  }
  .check {
    font-size: 11px;
  }
  .comparison-options .hint {
    font-size: 11px;
  }
  .run-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .primary {
    font-size: 12px;
    padding: 9px 15px;
  }
  .workspace-footnote {
    font-size: 9px;
    flex-wrap: wrap;
    padding: 10px 13px;
    gap: 5px;
  }
  .workspace-footnote a {
    font-size: 9px;
  }
  .explainer {
    margin: 38px 0 30px;
  }
  .explainer > h2 {
    font-size: 20px;
    margin-bottom: 23px;
  }
  .explain-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .explain-grid h3 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  .explain-grid p {
    font-size: 13px;
  }
  .next-tools {
    display: block;
    padding: 23px 0;
  }
  .next-tools nav {
    justify-content: flex-start;
    max-width: 100%;
    gap: 14px;
    margin-top: 18px;
  }
  .next-tools h2 {
    font-size: 17px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 13px;
    font-size: 10px;
    padding: 20px 0;
  }
  .site-footer nav {
    gap: 15px;
  }
  .site-footer a {
    font-size: 10px;
  }
  .result-top {
    padding: 13px;
  }
  .summary {
    font-size: 12px;
    gap: 9px;
  }
  .result-top .quiet {
    font-size: 11px;
  }
  .result-controls {
    padding: 10px;
    gap: 8px;
  }
  .view-buttons button {
    font-size: 11px;
    padding: 4px 8px;
  }
  .export-actions {
    gap: 2px;
  }
  .export-actions .quiet {
    font-size: 10px;
    padding: 4px;
  }
  .export-actions .secondary {
    font-size: 10px;
    padding: 5px 7px;
  }
  .result-options {
    font-size: 10px;
    gap: 7px;
  }
  .result-options select {
    font-size: 10px;
    padding: 3px 17px 3px 6px;
  }
  .result-options .check {
    font-size: 10px;
  }
  .result-options .quiet {
    padding: 4px;
  }
  .result-options .hint {
    font-size: 10px;
  }
  .diff-table {
    min-width: 640px;
  }
  .diff-table.unified {
    min-width: 100%;
  }
  .diff-table.unified .diff-cell {
    grid-template-columns: 27px 14px minmax(0, 1fr) auto;
  }
  .result-scroll {
    max-height: 460px;
  }
  .result-bottom {
    padding: 10px;
    font-size: 10px;
  }
  .image-empty {
    min-height: 220px;
  }
  .image-preview {
    height: 220px;
  }
  .image-controls {
    padding: 12px;
    font-size: 11px;
    gap: 12px;
  }
  .image-controls input {
    width: 90px;
  }
  .sheet-picker select {
    max-width: 210px;
  }
  .prose p {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 18px;
  }
  .message {
    margin: 10px 12px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .tool-rail,
  .page-heading,
  .input-section,
  .workspace-heading,
  .result-controls,
  .result-bottom,
  .workspace-footnote,
  .explainer,
  .next-tools,
  .site-footer,
  .merge-button,
  .result-top button,
  .image-controls {
    display: none !important;
  }
  .app-layout {
    display: block;
  }
  main {
    padding: 0;
  }
  .workspace {
    border: 0;
    box-shadow: none;
  }
  .result-scroll {
    max-height: none;
    overflow: visible;
  }
  .diff-head {
    position: static;
  }
  .diff-table {
    font-size: 9px;
    min-width: 100%;
  }
  .line-text {
    overflow-wrap: anywhere;
  }
  .diff-cell {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .result-top {
    padding-left: 0;
  }
  .diff-row {
    break-inside: avoid;
  }
}
