/* Brand tokens and fonts from konsn.org/style.css (also test.konsn.org). */
@font-face {
  font-family: Studio;
  src: url("/fonts/studio-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Pagella;
  src: url("/fonts/studio-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f0eee7;
  --ink: #362936;
  --muted: #736b71;
  --line: #36293635;
  --signal: #e2ed77;
  --panel: #e6e2da;
  --sans: Studio, Arial, sans-serif;
  --mono: "Courier New", monospace;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
html[data-theme="dark"] {
  --paper: #211d24;
  --ink: #eee9e0;
  --muted: #b8adb7;
  --line: #eee9e035;
  --signal: #dce97e;
  --panel: #2e2831;
  color-scheme: dark;
}
::selection {
  background: var(--signal);
  color: #362936;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.brand-dot {
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 5vw;
  padding: 12px;
  background: var(--signal);
  color: #362936;
}
.skip-link:focus {
  top: 10px;
  z-index: 2;
}
.serif-word {
  font-family: Pagella, Georgia, serif;
  font-style: italic;
  letter-spacing: -0.045em;
}
.tag {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-family: var(--mono);
  font-weight: 400;
  background: var(--panel);
  padding: 6px 9px;
  color: var(--muted);
}
#health {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1640px;
  margin: auto;
  padding: 32px 0 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink);
}
h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 14px 0 12px;
}
.intro > p:last-child {
  line-height: 1.7;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 30px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.panel {
  border-top: 1px solid var(--ink);
  padding: 26px 0;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}
.step {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  margin-right: 10px;
  font-weight: 400;
}
.examples {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  padding: 9px 12px;
  color: inherit;
}
button:hover {
  background: var(--panel);
}
button[aria-pressed="true"] {
  border-color: var(--signal);
  color: #362936;
  background: var(--signal);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin: 18px 0 8px;
}
label span {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-left: 5px;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.options-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.text-button {
  border: 0;
  color: var(--ink);
  padding: 5px;
  background: transparent;
}
.option-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 28px;
  gap: 7px;
  margin-bottom: 8px;
  align-items: start;
}
.option-row input {
  font-family: var(--mono);
  font-size: 11px;
}
.option-row textarea {
  font-size: 14px;
  padding: 9px;
  min-height: 42px;
}
.remove {
  border: 0;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 18px;
}
.connection {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  font-weight: 400;
}
.policy-row {
  display: flex;
  gap: 10px;
  align-items: end;
}
.policy-row > div {
  flex: 1;
  min-width: 0;
}
.secondary {
  min-height: 44px;
}
.run-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.run-row > span {
  font-size: 10px;
  color: var(--muted);
}
.primary {
  background: var(--signal);
  color: #362936;
  border-color: var(--signal);
  padding: 13px 18px;
  font-size: 16px;
  white-space: nowrap;
}
.primary:hover {
  background: var(--signal);
  border-color: var(--ink);
}
.primary span {
  margin-left: 15px;
}
#notice:empty {
  display: none;
}
#notice,
#error {
  font-size: 12px;
  line-height: 1.6;
}
#error {
  background: var(--panel);
  color: var(--ink);
  border-left: 3px solid var(--ink);
  padding: 12px;
  overflow-wrap: anywhere;
}
.output {
  min-height: 520px;
}
#empty {
  text-align: center;
  padding: 66px 0 55px;
}
.empty-icon {
  margin: auto auto 24px;
  width: 62px;
  height: 62px;
  background: var(--signal);
  border-radius: 50%;
  color: #362936;
  font-size: 32px;
  display: grid;
  place-items: center;
}
h3 {
  font-size: 23px;
  font-weight: 400;
}
#empty p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.empty-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 30px;
}
.inspect {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.inspect details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.inspect details:last-child {
  border-bottom: 0;
}
pre {
  font-size: 11px;
  line-height: 1.65;
  font-family: var(--mono);
  background: var(--panel);
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 350px;
  overflow: auto;
}
#selected {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
#abstention {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin: 24px 0;
  padding: 18px 0;
  gap: 10px;
}
.stats span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.stats strong {
  font-size: 21px;
  font-weight: 500;
}
.distribution-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.distribution-heading h3 {
  font-size: 12px;
}
.distribution-heading span {
  font-size: 10px;
  color: var(--muted);
}
.score-row {
  margin: 16px 0;
}
.score-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.score-label span:first-child {
  min-width: 0;
}
progress {
  width: 100%;
  height: 8px;
  border: 0;
  overflow: hidden;
  background: var(--panel);
  accent-color: var(--ink);
}
progress::-webkit-progress-bar {
  background: var(--panel);
}
progress::-webkit-progress-value {
  background: var(--ink);
}
progress::-moz-progress-bar {
  background: var(--ink);
}
.score-note,
#metadata {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
#metadata {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 22px;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-dot {
  margin: 0 10px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 30px;
  }
  .output {
    min-height: 400px;
  }
  #empty {
    padding: 30px 0;
  }
}
@media (max-width: 450px) {
  .panel {
    padding: 22px 0;
  }
  .option-row {
    grid-template-columns: 90px minmax(0, 1fr) 24px;
  }
  .run-row > span {
    max-width: 120px;
    line-height: 1.6;
  }
  label span {
    display: block;
    margin: 4px 0 0;
  }
  footer {
    flex-direction: column;
  }
  .policy-row {
    align-items: end;
  }
  .intro > p:last-child {
    font-size: 16px;
  }
}
/* Expand option descriptions so the full criterion stays visible on phones. */
.option-row textarea {
  field-sizing: content;
  min-height: 44px;
  max-height: 240px;
}
@supports not (field-sizing: content) {
  .option-row textarea {
    min-height: 80px;
  }
}
