:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #191735;
  background: #f5f2fc;
  --muted: #55536d;
  --purple: #5130e8;
  --line: #d0c9e5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--purple); }
button, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7154fb; outline-offset: 3px; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem clamp(1rem, 4vw, 3rem);
}
header { border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: .9rem; align-items: center; color: inherit; text-decoration: none; font-weight: 780; font-size: 1.16rem; }
.brand span { color: var(--purple); border-right: 1px solid var(--line); padding-right: .9rem; font: 700 1.28rem ui-monospace, monospace; }
.button { display: inline-block; border: 1px solid transparent; border-radius: .48rem; background: var(--purple); color: white; padding: .68rem 1.14rem; font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { background: #3e21c9; }
main { width: min(85%, 1220px); margin: 0 auto 2.25rem; }
.intro { text-align: center; margin: 2.35rem 0 1.9rem; }
h1 { font-size: clamp(2rem, 4.3vw, 3.05rem); line-height: 1.1; letter-spacing: -.05em; margin: 0; }
.intro p { margin: .65rem 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.17rem); }
.intro-actions { justify-content: center; flex-wrap: wrap; }
.compare-summary { color: var(--muted); margin: 0 0 1rem; }
.panel { background: #fdfcff; border: 1px solid var(--line); border-radius: .7rem; padding: 1rem 1.25rem; }
.editors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
label { display: block; font-size: 1.1rem; font-weight: 750; margin-bottom: .52rem; }
textarea { display: block; width: 100%; min-height: 13.5rem; resize: vertical; padding: .8rem; background: #f2eefb; border: 1px solid #c9bfe9; border-radius: .48rem; color: #171431; font: .88rem/1.45 ui-monospace, monospace; }
textarea[aria-invalid="true"] { border-color: #b72848; }
.error { color: #9b1736; margin: .5rem 0 0; font-size: .9rem; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.12rem; }
.text-link { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--purple); }
.result { margin-top: 1.35rem; }
h2 { margin: 0 0 .65rem; font-size: 1.55rem; letter-spacing: -.035em; }
ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: .42rem; overflow: hidden; }
ul:empty { display: none; }
li { display: grid; grid-template-columns: minmax(10rem, 1fr) auto minmax(0, 2.1fr); align-items: baseline; gap: .75rem; padding: .47rem .72rem; font-size: .93rem; overflow-wrap: anywhere; }
li + li { border-top: 1px solid #e6e0f0; }
.status { border-radius: .3rem; background: #dbf4e6; color: #145936; font-size: .79rem; padding: .12rem .42rem; font-weight: 725; }
.status.difference { background: #fce8ed; color: #972041; }
.scope { color: var(--muted); font-size: .88rem; margin: .68rem 0 0; }
.review { display: flex; flex-direction: column; }
.review h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.review p, .review-terms { color: var(--muted); margin: 0 0 .75rem; }
.review .actions { flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 690px) {
  main { width: calc(100% - 2rem); }
  .editors { grid-template-columns: 1fr; gap: 1rem; }
  .brand { font-size: .95rem; gap: .45rem; }
  .brand span { padding-right: .45rem; }
  header .button { font-size: .86rem; padding: .54rem .55rem; }
  li { grid-template-columns: 1fr auto; gap: .2rem .5rem; }
  li span:last-child { grid-column: 1 / -1; }
}
