:root {
  color-scheme: light;
  font: 16px "Segoe UI", system-ui, sans-serif;
  --page: #f0f3f6;
  --surface: #fff;
  --ink: #142132;
  --muted: #475569;
  --border: #cbd6e0;
  --teal: #006e63;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, select { font: inherit; }
a { color: inherit; }
svg { display: block; width: 1.4em; height: 1.4em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-width { width: min(calc(100% - 8vw), 1440px); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: clamp(64px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.privacy { display: flex; align-items: center; gap: 12px; color: var(--ink); margin: 0; font-size: clamp(.82rem, 1.45vw, 1.25rem); line-height: 1.25; }
main { padding-block: clamp(32px, 3vw, 46px) 36px; }
.intro { margin: 0 1.5% clamp(24px, 3vw, 43px); }
h1 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.75rem); font-weight: 780; letter-spacing: -.045em; line-height: 1.05; }
.intro p { margin: 12px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.8rem); line-height: 1.4; }

.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.file-card { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 27px); min-height: clamp(90px, 8.5vw, 130px); padding: clamp(15px, 1.65vw, 25px); border: 1.5px dashed #9fadc1; border-radius: 14px; background: #f9fbfc; }
.file-card.dragging { border-color: var(--teal); background: #e5f5f1; }
.file-icon { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.file-info { flex: 1; min-width: 0; }
.file-info h2 { margin: 0 0 4px; font-size: clamp(1.04rem, 1.8vw, 1.65rem); line-height: 1.2; letter-spacing: -.022em; }
.file-info p { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: clamp(.9rem, 1.6vw, 1.45rem); line-height: 1.35; }
.controls { display: flex; align-items: center; gap: clamp(10px, 1.65vw, 25px); margin: clamp(18px, 2.4vw, 37px) 0 0; }
.controls label { flex-shrink: 0; font-size: clamp(1rem, 1.65vw, 1.47rem); font-weight: 690; }
.controls select { min-width: 0; width: clamp(155px, 18vw, 275px); min-height: 44px; padding: .48em .72em; background: var(--surface); border: 1px solid #93a3b5; border-radius: 8px; font-size: clamp(.95rem, 1.6vw, 1.42rem); color: var(--ink); }
#sample { margin-inline-start: auto; }
.button { color: var(--teal); background: var(--surface); border: 1px solid var(--teal); border-radius: 8px; padding: .53em 1.05em; min-height: 44px; font-size: clamp(.875rem, 1.52vw, 1.37rem); line-height: 1.2; font-weight: 690; white-space: nowrap; cursor: pointer; }
.button.primary { min-width: clamp(102px, 12vw, 185px); background: var(--teal); color: #fff; }
.outline:not(:disabled):hover { background: #eaf7f4; }
.primary:not(:disabled):hover { background: #00554d; }
:is(button, a, select, summary, .table-scroll):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.button:disabled, select:disabled { opacity: .48; cursor: default; }
.feedback { margin: 12px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.feedback:empty { margin: 0; }
.feedback[data-error] { color: #963126; }

.results { margin: clamp(24px, 3vw, 46px) -1.5% 0; padding: clamp(14px, 1.45vw, 22px); background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: clamp(15px, 1.9vw, 29px); }
.filters { max-width: 100%; display: flex; flex-wrap: wrap; gap: 3px; }
.filter { color: var(--ink); background: #f8fafb; border: 1px solid var(--border); border-radius: 8px; padding: .5em .92em; min-height: 44px; font-size: clamp(.88rem, 1.53vw, 1.38rem); cursor: pointer; }
.filter[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); font-weight: 700; background: #f2faf8; }
.filter:not([aria-pressed="true"]):hover { background: #edf3f6; }
.filter span { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; }
.table-scroll:focus-visible { outline-offset: 1px; }
table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 640px; text-align: left; font-size: clamp(.9rem, 1.55vw, 1.42rem); }
.status-col { width: 19%; }
.key-col { width: 17%; }
.field-col { width: 16%; }
.value-col { width: 24%; }
thead { background: #f4f6f9; }
th, td { vertical-align: top; padding: .55em .82em; overflow-wrap: anywhere; border-bottom: 1px solid var(--border); }
th { font-weight: 730; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
td :is(.empty, .absent) { color: var(--muted); }
.data-value { white-space: pre-wrap; }
.original.changed { background: #fff7e7; }
.original.removed { background: #fce9ec; }
.updated.changed, .updated.added { background: #e9f7ed; }
.status { display: inline-block; padding: .18em .62em; border-radius: 7px; font-weight: 700; font-size: .88em; }
.status.added { color: #15602e; background: #d9f2dd; }
.status.removed { color: #97283e; background: #f9dce3; }
.status.changed { color: #7b4800; background: #ffedc7; }
summary { font-weight: 580; cursor: pointer; }
dl { margin: .5em 0 0; }
dt { color: var(--muted); font-size: .8em; font-weight: 680; }
dd { margin: 0 0 .45em; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; color: var(--muted); }
.pagination button { font-size: .88rem; }
.empty-row { text-align: center; padding: 30px 16px; color: var(--muted); }

@media (max-width: 770px) {
  .page-width { width: calc(100% - 32px); }
  .brand { gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .privacy { gap: 6px; }
  .files { grid-template-columns: 1fr; }
  .intro, .results { margin-inline: 0; }
  .controls { flex-wrap: wrap; }
  .controls label { width: 100%; }
}

@media (max-width: 400px) {
  #sample { width: 100%; }
  .privacy { max-width: 120px; }
  .results { padding: 11px; }
  .filters { gap: 4px; }
  .filter { padding-inline: .56em; }
}
