:root {
  font:
    15px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #233348;
  background: #f4f6f9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid #ccd5e2;
  border-radius: 8px;
  padding: 9px 16px;
  background: white;
  color: #243b58;
}
button.primary,
form > button {
  background: #2155c4;
  color: white;
  border-color: #2155c4;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px;
  background: white;
  color: #233348;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label {
  display: block;
  margin: 12px 0;
}
a {
  color: #2258c5;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 19px;
}
h1,
h2,
p {
  margin-top: 0;
}
header {
  background: #14283f;
  color: white;
  padding: 22px 28px;
}
header .topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
header p {
  margin: 0;
  color: #c8d5e7;
}
nav {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
nav a {
  padding: 8px 14px;
  border-radius: 7px;
  color: #d7e4f6;
  text-decoration: none;
}
nav a[aria-current] {
  background: #304c70;
  color: white;
}
main {
  max-width: 1160px;
  padding: 28px;
  margin: auto;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #557395;
}
.card {
  background: white;
  border: 1px solid #e0e6ee;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}
.muted,
small {
  color: #617186;
}
.toolbar,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar > * {
  flex: 1;
  min-width: 130px;
}
.toolbar {
  margin-bottom: 20px;
}
.actions {
  margin-top: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid #e4e9f0;
}
th {
  font-size: 13px;
  color: #617186;
}
.table-wrap {
  overflow: auto;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #617186;
}
.badge {
  background: #eaf0ff;
  color: #214e9a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(620px, 94vw);
  max-height: 90vh;
  padding: 24px;
  box-shadow: 0 24px 100px #0003;
}
dialog::backdrop {
  background: #14283f88;
}
.auth {
  max-width: 480px;
  margin: 7vh auto;
  background: white;
  border-radius: 14px;
  padding: 30px;
}
.error {
  color: #aa2735;
  white-space: pre-wrap;
}
#notice {
  min-height: 24px;
}
.message {
  border-bottom: 1px solid #e5eaf2;
  padding: 16px 0;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.quote {
  border-left: 3px solid #a4b8d8;
  padding-left: 12px;
  color: #617186;
}
.link {
  overflow-wrap: anywhere;
}
#chat-log {
  max-height: 55vh;
  overflow: auto;
}
[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  main {
    padding: 16px;
  }
  header {
    padding: 18px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  nav {
    gap: 3px;
  }
  nav a {
    padding: 7px 9px;
  }
  h1 {
    font-size: 24px;
  }
  .auth {
    margin: 4vh 12px;
  }
  td,
  th {
    padding: 9px;
  }
  .toolbar > * {
    min-width: 110px;
  }
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  max-height: 320px;
  overflow: auto;
}
input[type="checkbox"] {
  display: inline-block;
  width: auto;
  margin-right: 8px;
}
.card > button {
  margin: 4px 8px 4px 0;
}
#notification-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(400px, 90vw);
  background: #14283f;
  color: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 5px 25px #0003;
  z-index: 20;
}
