:root {
  color-scheme: light dark;
  font:
    15px/1.5 system-ui,
    sans-serif;
  --bg: #0d1218;
  --panel: #171e26;
  --ink: #e5edf5;
  --sub: #a9b7c7;
  --line: #394555;
  --action: #faac77;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
header {
  padding: 1rem max(4vw, 1rem);
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
header a,
h1,
h2 {
  font-weight: 650;
}
main {
  max-width: 1050px;
  margin: 2rem auto 5rem;
  padding: 0 1rem;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
}
p {
  color: var(--sub);
  overflow-wrap: anywhere;
}
section {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1rem 0;
}
a {
  color: var(--action);
}
.bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: end;
}
.settings {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  margin: 1rem 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.83rem;
  color: var(--sub);
  min-width: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
}
button {
  cursor: pointer;
  margin: 0.25rem 0.3rem 0.25rem 0;
}
button:disabled {
  opacity: 0.5;
}
button.primary {
  background: var(--action);
  color: #1a1b1c;
}
details {
  margin: 0.8rem 0;
}
summary {
  cursor: pointer;
}
pre {
  font:
    12px/1.6 ui-monospace,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#notice,
#status {
  color: var(--ink);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f5f7fa;
    --panel: #fff;
    --ink: #1b2a37;
    --sub: #47596b;
    --line: #c8d2dc;
    --action: #a84d16;
  }
  button.primary {
    color: white;
  }
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f7fa;
  --panel: #fff;
  --ink: #1b2a37;
  --sub: #47596b;
  --line: #c8d2dc;
  --action: #a84d16;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
header button {
  margin-left: auto;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0;
  padding: 0.6rem 0 0;
  min-width: 0;
}
legend,
caption {
  font-weight: 600;
  color: var(--ink);
}
legend {
  padding-right: 0.6rem;
}
textarea,
pre,
td:nth-child(2),
td:nth-child(3) {
  font-family: ui-monospace, Consolas, monospace;
}
.grid textarea {
  width: 100%;
  resize: vertical;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
caption {
  text-align: left;
  margin-bottom: 0.5rem;
}
th,
td {
  text-align: left;
  border-top: 1px solid var(--line);
  padding: 0.45rem;
}
th {
  color: var(--sub);
}
tr[data-result='passed'] td:nth-child(4) {
  color: #43986b;
}
tr[data-result='failed'] td:nth-child(4) {
  color: #d56956;
}
:root[data-theme='light'] button.primary {
  color: #fff;
}
summary:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
