body.page-tool-compare-files #compare {
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(179, 34, 48, 0.34);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(179, 34, 48, 0.14), transparent 35rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    #121418;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body.page-tool-compare-files #compare h2 {
  margin-bottom: 0.4rem;
}

body.page-tool-compare-files #compare .compare-intro {
  max-width: 54rem;
  margin: 0 0 1.4rem;
  color: var(--page-text-muted);
}

body.page-tool-compare-files #compare .compare-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-tool-compare-files #compare .compare-field {
  min-width: 0;
}

body.page-tool-compare-files #compare label {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--page-text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.page-tool-compare-files #compare select,
body.page-tool-compare-files #compare input[type="file"] {
  width: 100%;
  min-height: 3.15rem;
  margin: 0;
  border: 1px solid var(--page-card-border);
  border-radius: 0.8rem;
  background: rgba(7, 9, 12, 0.72);
  color: var(--page-text);
}

body.page-tool-compare-files #compare input[type="file"] {
  padding: 0.45rem;
}

body.page-tool-compare-files #compare input[type="file"]::file-selector-button {
  min-height: 2.2rem;
  margin-right: 0.75rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(179, 34, 48, 0.2);
  color: var(--page-text);
  cursor: pointer;
}

body.page-tool-compare-files #compare .compare-detected {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 0.22rem solid #b32230;
  border-radius: 0.8rem;
  background: rgba(4, 6, 9, 0.48);
}

body.page-tool-compare-files #compare .compare-detected__label,
body.page-tool-compare-files #compare .compare-eyebrow {
  color: #e26c77;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.page-tool-compare-files #compare .compare-detected strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
}

body.page-tool-compare-files #compare .compare-detected strong i {
  margin-right: 0.25rem;
  color: #54c58b;
}

body.page-tool-compare-files #compare .compare-detected small {
  color: var(--page-text-muted);
}

body.page-tool-compare-files #compare .compare-status {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--page-text-muted);
}

body.page-tool-compare-files #compare .compare-status[data-kind="success"] {
  color: #8bddb2;
}

body.page-tool-compare-files #compare .compare-status[data-kind="warning"] {
  color: #f1c66b;
}

body.page-tool-compare-files #compare .compare-status[data-kind="error"] {
  color: #ff929c;
}

body.page-tool-compare-files #compare .compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

body.page-tool-compare-files #downloadLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--page-card-border);
  border-radius: 0.75rem;
  background: rgba(80, 0, 0, 0.1);
  color: var(--page-text);
  text-decoration: none;
}

body.page-tool-compare-files #downloadLink[hidden] {
  display: none;
}

body.page-tool-compare-files #compare .compare-summary {
  margin-top: 1.4rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(179, 34, 48, 0.28);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(179, 34, 48, 0.09), rgba(255, 255, 255, 0.025));
}

body.page-tool-compare-files #compare .compare-summary__lead {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

body.page-tool-compare-files #compare .compare-summary__lead h3,
body.page-tool-compare-files #compare .compare-results-heading h3,
body.page-tool-compare-files #compare .compare-empty h3 {
  margin: 0.15rem 0 0.25rem;
}

body.page-tool-compare-files #compare .compare-summary__lead p,
body.page-tool-compare-files #compare .compare-results-heading p,
body.page-tool-compare-files #compare .compare-empty p {
  margin: 0;
  color: var(--page-text-muted);
}

body.page-tool-compare-files #compare .compare-pill {
  flex: 0 0 auto;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(226, 108, 119, 0.35);
  border-radius: 999px;
  background: rgba(179, 34, 48, 0.12);
  color: #ffb3ba;
  font-size: 0.83rem;
  font-weight: 800;
}

body.page-tool-compare-files #compare .compare-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

body.page-tool-compare-files #compare .compare-card {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.8rem;
  background: rgba(3, 5, 8, 0.42);
}

body.page-tool-compare-files #compare .compare-card--accent {
  border-color: rgba(179, 34, 48, 0.38);
  background: rgba(179, 34, 48, 0.1);
}

body.page-tool-compare-files #compare .compare-card__value {
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

body.page-tool-compare-files #compare .compare-card__label {
  margin-top: 0.4rem;
  color: var(--page-text-muted);
  font-size: 0.82rem;
}

body.page-tool-compare-files #output {
  margin-top: 1rem;
}

body.page-tool-compare-files #compare .compare-results-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

body.page-tool-compare-files #compare .compare-copy-all,
body.page-tool-compare-files #compare .compare-copy-entry {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
  color: var(--page-text);
}

body.page-tool-compare-files #compare .compare-copy-all {
  flex: 0 0 auto;
}

body.page-tool-compare-files #compare .compare-copy-entry {
  min-height: 2.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
  cursor: pointer;
}

body.page-tool-compare-files #compare .compare-missing-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-tool-compare-files #compare .compare-missing-item {
  min-width: 0;
}

body.page-tool-compare-files #compare .compare-missing-item article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.95rem;
  background: rgba(5, 7, 10, 0.68);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.16);
}

body.page-tool-compare-files #compare .compare-missing-item header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

body.page-tool-compare-files #compare .compare-missing-item header div {
  display: grid;
  min-width: 0;
}

body.page-tool-compare-files #compare .compare-missing-item header span {
  color: #d86b75;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-tool-compare-files #compare .compare-missing-item header strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
}

body.page-tool-compare-files #compare .compare-missing-item pre {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  background: #090b0e;
  color: #dce6ee;
  white-space: pre;
  tab-size: 2;
}

body.page-tool-compare-files #compare .compare-missing-item code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

body.page-tool-compare-files #compare .compare-empty {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem;
  border: 1px solid rgba(84, 197, 139, 0.28);
  border-radius: 0.9rem;
  background: rgba(84, 197, 139, 0.07);
}

body.page-tool-compare-files #compare .compare-empty > i {
  margin-top: 0.25rem;
  color: #54c58b;
  font-size: 1.25rem;
}

body.page-tool-compare-files #compare .compare-empty--error {
  border-color: rgba(255, 92, 105, 0.3);
  background: rgba(255, 92, 105, 0.07);
}

body.page-tool-compare-files #compare .compare-empty--error > i {
  color: #ff7d88;
}

@media (max-width: 48rem) {
  body.page-tool-compare-files #compare {
    padding: 0.9rem;
  }

  body.page-tool-compare-files #compare .compare-toolbar,
  body.page-tool-compare-files #compare .compare-summary__grid {
    grid-template-columns: 1fr;
  }

  body.page-tool-compare-files #compare .compare-summary__lead,
  body.page-tool-compare-files #compare .compare-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  body.page-tool-compare-files #compare .compare-pill {
    align-self: flex-start;
  }

  body.page-tool-compare-files #compare .compare-actions > *,
  body.page-tool-compare-files #compare .compare-copy-all,
  body.page-tool-compare-files #downloadLink {
    width: 100%;
  }

  body.page-tool-compare-files #compare .compare-missing-item header {
    align-items: flex-start;
  }

  body.page-tool-compare-files #compare .compare-missing-item pre {
    padding: 0.8rem;
  }
}
