:root {
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#19332e;
  background:#f3f5f1;
  font-size:16px;
  line-height:1.55;
  color-scheme:light;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
main {
  max-width:880px;
  margin:0 auto;
  padding:42px 24px 28px;
}
header {
  margin-bottom:24px;
}
.eyebrow {
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#526b61;
}
h1 {
  font-size:clamp(2rem,7vw,3rem);
  line-height:1.1;
  letter-spacing:-.04em;
  margin:12px 0 18px;
}
h2 {
  font-size:1.4rem;
  line-height:1.3;
  margin:0 0 14px;
}
h3 {
  font-size:1.05rem;
  margin:24px 0 10px;
}
p {
  margin:0 0 14px;
}
.intro {
  max-width:600px;
  font-size:1.1rem;
}
.notice {
  padding:16px 20px;
  border-left:3px solid #ad7620;
  background:#fff4d9;
  border-radius:0 12px 12px 0;
  font-size:.9rem;
  margin-bottom:24px;
}
.card {
  background:#fff;
  border:1px solid #d5ded7;
  border-radius:18px;
  padding:26px;
  margin-bottom:20px;
  box-shadow:0 3px 12px #19332e05;
}
label {
  display:block;
  font-weight:650;
  margin-bottom:8px;
}
input,textarea,button {
  font:inherit;
}
input,textarea {
  width:100%;
  border:1px solid #86988c;
  border-radius:9px;
  padding:12px;
  background:#fff;
  color:#19332e;
}
input {
  max-width:450px;
  min-height:48px;
}
textarea {
  resize:vertical;
  min-height:240px;
  line-height:1.6;
}
textarea[readonly] {
  background:#f4f6f3;
}
.hint {
  font-size:.83rem;
  color:#50645b;
}
#token-help {
  margin:7px 0 24px;
}
.input-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
  margin-top:8px;
}
output {
  white-space:nowrap;
  font-size:.8rem;
}
button {
  min-height:48px;
  border:0;
  border-radius:9px;
  background:#205c49;
  color:#fff;
  padding:12px 24px;
  font-weight:650;
  cursor:pointer;
}
button:disabled {
  background:#dbe2dc;
  color:#56685d;
  cursor:default;
}
button+.hint {
  margin:10px 0 0;
}
:focus-visible {
  outline:3px solid #2369b5;
  outline-offset:4px;
}
[hidden] {
  display:none!important;
}
.score {
  font-size:2.8rem;
  font-weight:700;
  line-height:1.15;
  margin:12px 0;
}
.coverage {
  font-size:.9rem;
  padding:12px;
  background:#f3f5f1;
  border-radius:8px;
}
.source-output {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  tab-size:4;
  line-height:1.95;
  padding:18px;
  background:#fafbf8;
  border:1px solid #d5ded7;
  border-radius:10px;
}
.text-block {
  cursor:pointer;
  border-radius:3px;
}
.text-block.selected {
  background:#ffe7a6;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.text-block[aria-pressed="true"] {
  outline:2px solid #205c49;
  outline-offset:2px;
}
.block-detail {
  padding:0 16px 8px;
  border-left:3px solid #205c49;
  margin-top:20px;
}
.block-detail h3 {
  padding-top:12px;
}
#feedback[data-state="error"] {
  border-color:#ad4135;
}
#feedback[data-state="error"] h2 {
  color:#902e25;
}
footer {
  color:#50645b;
  font-size:.8rem;
  padding:4px 6px 0;
}
#counter[data-invalid="true"] {
  color:#902e25;
  font-weight:700;
}
@media(max-width:560px) {
  main {
    padding:24px 14px;
  }
  .card {
    padding:20px 16px;
    border-radius:14px;
  }
  .notice {
    padding:14px 16px;
  }
  button {
    width:100%;
  }
  .input-meta {
    flex-direction:column;
    gap:0;
    margin-bottom:14px;
  }
  .input-meta p {
    margin-bottom:4px;
  }
  .source-output {
    padding:12px;
  }
  textarea {
    min-height:260px;
  }
  header {
    margin-bottom:20px;
  }
}
