:root {
  color-scheme: light;
  --ink: #12334a;
  --muted: #557082;
  --teal: #007f91;
  --line: #d9e4ec;
  --paper: #f8fbff;
  --wash: #e4f5f4;
  --white: #fff;
  --display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
}
.page {
  max-width: 1220px;
  margin: auto;
  padding: 0 40px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font: 700 25px var(--display);
  letter-spacing: -1px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  width: 32px;
  height: 36px;
  font: 700 24px var(--mono);
  border-radius: 3px;
  box-shadow: 5px 0 0 var(--teal);
}
nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
}
nav a {
  text-decoration: none;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  padding: 54px 0 36px;
}
.eyebrow {
  font: 600 11px var(--body);
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
h1 {
  font: 650 clamp(30px, 3.5vw, 45px) / 1.16 var(--display);
  letter-spacing: -1.8px;
  margin: 0;
}
h1 span {
  color: var(--teal);
}
.lede {
  color: var(--muted);
  margin: 20px 0 0;
  line-height: 1.7;
}
.privacy-note {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 4px;
  font-size: 12px;
}
.privacy-note strong {
  font-size: 13px;
}
.privacy-note p {
  color: var(--muted);
  margin: 5px 0 0;
}
.privacy-icon {
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--teal);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 25px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
  font-size: 12px;
}
.toolbar label {
  font-weight: 600;
}
select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 30px 7px 10px;
  color: var(--ink);
  background: var(--white);
}
#engine {
  margin-left: auto;
  color: var(--muted);
}
.editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.editor {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.input-panel {
  border-right: 1px solid var(--line);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.panel-heading h2 {
  font: inherit;
  margin: 0;
}
#count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
textarea,
pre {
  font: 14px/1.9 var(--mono);
  tab-size: 2;
}
#input {
  resize: vertical;
  min-height: 255px;
  width: 100%;
  border: 0;
  padding: 24px 20px;
  background: var(--white);
  color: var(--ink);
  outline-offset: -4px;
}
#output {
  flex: 1;
  min-height: 255px;
  padding: 24px 20px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: linear-gradient(90deg, #f1faf9 0, #f1faf9 3px, var(--white) 3px);
  font-size: 14px;
}
.panel-note,
.result-footer {
  padding: 13px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  min-height: 51px;
}
.result-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.result-footer button {
  padding: 3px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.badge {
  font-size: 10px;
  line-height: 1.3;
  border-radius: 4px;
  padding: 5px 7px;
  background: #edf2f6;
  font-weight: 500;
}
.badge.passed {
  background: var(--wash);
  color: #00665f;
}
.badge.review {
  background: #fff1d5;
  color: #855d11;
}
.badge.blocked {
  background: #fde9e8;
  color: #9f3337;
}
.known {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
.known summary {
  cursor: pointer;
  font-weight: 600;
}
.known summary span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
.known label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
}
.known textarea {
  width: 100%;
  max-width: 700px;
  min-height: 85px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
}
.known p {
  color: var(--muted);
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 22px 0 0;
}
.actions > div {
  display: flex;
  gap: 10px;
}
button {
  font: 600 12px var(--body);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 5px;
  padding: 12px 17px;
  cursor: pointer;
  transition: background 0.12s;
}
button:hover:enabled {
  background: #eef5f7;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  padding: 13px 21px;
}
.primary span {
  margin-left: 20px;
}
.primary:hover:enabled {
  background: var(--teal);
  border-color: var(--teal);
}
.review-toggle {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
input[type="checkbox"] {
  accent-color: var(--teal);
}
.feedback {
  font-size: 12px;
  color: var(--muted);
  min-height: 22px;
  margin: 12px 0;
}
.limitations {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  font-size: 12px;
}
.limitations strong {
  font-size: 12px;
}
.limitations p {
  margin: 0;
  color: var(--muted);
}
.limitations a {
  color: var(--teal);
}
footer {
  border-top: 1px solid var(--line);
  padding: 21px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .privacy-note {
    display: none;
  }
  .page {
    padding: 0 25px;
  }
  .intro {
    padding-top: 38px;
  }
  .known summary span {
    display: block;
    margin: 5px 0 0 15px;
  }
  .limitations {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .actions {
    align-items: flex-start;
  }
  .review-toggle {
    max-width: 180px;
  }
  footer span:last-child {
    display: none;
  }
}
@media (max-width: 620px) {
  .page {
    padding: 0 16px;
  }
  header {
    padding: 20px 0;
  }
  .brand {
    font-size: 22px;
  }
  nav {
    gap: 15px;
    font-size: 11px;
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .desktop {
    display: none;
  }
  .lede {
    font-size: 13px;
  }
  .intro {
    padding: 30px 0 26px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .toolbar #engine {
    flex-basis: 100%;
    margin: 0;
  }
  .editors {
    grid-template-columns: 1fr;
  }
  .input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #input,
  #output {
    min-height: 190px;
    padding: 18px;
    font-size: 12px;
  }
  .actions {
    flex-direction: column;
  }
  .review-toggle {
    max-width: none;
  }
  .panel-heading {
    padding: 13px 16px;
  }
  .primary {
    padding: 13px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
