:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #edf1fc;
  background: #0b1020;
  font-size: 16px;
  line-height: 1.6;
  --muted: #bac5db;
  --border: #394661;
  --accent: #c3b5ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #c9bfff;
  text-underline-offset: 0.2em;
}
header,
main {
  max-width: 1200px;
  margin: auto;
  padding: 1.4rem 2rem;
}
header {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
header .brand {
  margin-right: auto;
  font-weight: 700;
  text-decoration: none;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.05rem;
}
button,
input,
textarea {
  font: inherit;
}
button {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  background: #293651;
  border: 1px solid #657699;
  border-radius: 8px;
  color: #f5f7ff;
  cursor: pointer;
}
button:hover {
  background: #374967;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.panel {
  padding: 1.25rem;
  margin: 1.2rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #121b2e;
}
.notice {
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: #1d2941;
}
.error {
  color: #ffd1d7;
}
dl {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: 0.5rem 1rem;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
p,
li,
td,
th {
  overflow-wrap: anywhere;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--muted);
}
article {
  border-top: 1px solid var(--border);
  padding: 0.8rem 0;
}
label {
  display: block;
  margin: 0.8rem 0 0.25rem;
  font-weight: 600;
}
input,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem;
  background: #0b1324;
  border: 1px solid #657699;
  border-radius: 8px;
  color: #f5f7ff;
}
textarea {
  resize: vertical;
}
dialog {
  max-width: min(42rem, calc(100vw - 2rem));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #657699;
  border-radius: 12px;
  padding: 1.4rem;
  background: #121b2e;
  color: #edf1fc;
}
dialog::backdrop {
  background: #000a;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem;
  background: #121b2e;
  z-index: 10;
}
.skip:focus {
  top: 0.5rem;
}
@media (max-width: 650px) {
  header,
  main {
    padding: 1rem;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
  dd {
    margin-bottom: 0.6rem;
  }
  .actions button {
    flex: 1 1 12rem;
  }
  .panel {
    padding: 1rem;
  }
  th,
  td {
    padding: 0.5rem;
  }
  dialog {
    padding: 1rem;
  }
}
