:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0d1723;
  color: #e6edf5;
}
body {
  margin: 0;
}
* { box-sizing: border-box; }
header,
main,
footer {
  max-width: 960px;
  margin: auto;
  padding: 24px;
}
header {
  background: #142434;
}
h1 {
  margin: 0.3em 0;
  font-size: 2.5rem;
}
h2 {
  margin-top: 2em;
}
p {
  line-height: 1.6;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
a {
  color: #a7d5ff;
}
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
button {
  background: #b7e0ff;
  color: #102032;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font: inherit;
  margin: 6px 10px 6px 0;
  cursor: pointer;
  min-height: 44px;
  max-width: 100%;
}
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #ffd68a; outline-offset: 3px; }
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input, select {
  display: block;
  box-sizing: border-box;
  background: #0d1723;
  color: inherit;
  border: 1px solid #8c9cab;
  border-radius: 4px;
  padding: 12px;
  width: 100%;
  margin: 6px 0 16px;
  font: inherit;
  min-height: 44px;
}
select { max-width: 360px; }
.page-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.page-controls button { margin-right: 0; }
.page-summary { color: #b3c2d0; font-size: .9rem; }
article {
  background: #172737;
  padding: 20px;
  margin: 14px 0;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.85rem;
}
label {
  display: block;
}
footer {
  font-size: 0.9em;
  color: #b3c2d0;
}
[hidden] {
  display: none !important;
}
.danger {
  background: #ffc4b9;
}
#notice {
  padding: 14px;
  background: #203247;
  border-radius: 6px;
}
small {
  color: #b3c2d0;
}
@media (max-width: 560px) {
  header, main, footer { padding: 16px; }
  article { padding: 16px; }
  h1 { font-size: 2rem; }
  header > p { margin: 0; }
  header > p:last-of-type { margin: 8px 0 12px; }
  header button { margin-top: 0; margin-bottom: 0; }
  nav { gap: 4px 16px; }
  h2 { margin-top: 1.2em; }
  button, select { width: 100%; }
  button { margin-right: 0; }
  .page-controls { gap: 0; }
}
