:root {
  color-scheme: light;
  --ink: #202b22;
  --green: #365b3c;
  --paper: #f6f5ed;
  --line: #dedfd3;
  --muted: #667066;
  --gold: #aa8d3f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 system-ui,
    sans-serif;
}
header,
footer {
  padding: 22px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  font-weight: 750;
  letter-spacing: 0.13em;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.25em;
}
header #session-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
main {
  max-width: 1280px;
  padding: 35px 32px 60px;
  margin: auto;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}
h2 {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 550;
  margin: 4px 0 22px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.login {
  max-width: 540px;
  margin: 4vh auto;
  padding: 40px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 10px 0 22px;
}
.counts {
  display: flex;
  gap: 20px;
}
.counts strong {
  font:
    32px Georgia,
    serif;
  display: block;
  color: var(--green);
}
.counts span {
  font-size: 12px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 30px;
  padding-bottom: 8px;
}
button {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 7px;
  font: inherit;
  font-weight: 550;
  padding: 9px 15px;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.93);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.quiet,
nav button {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
nav button {
  border-color: transparent;
}
nav button.active {
  background: #e8ecdf;
  color: #233c25;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}
.row,
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 17px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #cdd2c5;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: auto;
  margin-top: 5px;
}
form > button {
  margin-top: 20px;
}
.badge {
  border-radius: 99px;
  padding: 5px 10px;
  background: #e8ecdf;
  font-size: 12px;
}
.notice {
  background: #f7f1dd;
  border-left: 3px solid #b79c50;
  padding: 12px;
  font-size: 13px;
}
.cards {
  display: grid;
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
}
.card .caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
}
.card .row {
  align-items: start;
}
.card .meta {
  font-size: 12px;
  color: var(--muted);
}
.card .error {
  color: #9c3c28;
  background: #fff0e9;
  padding: 10px;
  font-size: 13px;
}
.card .badge {
  white-space: nowrap;
}
.empty {
  padding: 35px;
  text-align: center;
  border: 1px dashed #c8cfbf;
  border-radius: 12px;
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
}
code {
  display: block;
  background: #f3f5ef;
  padding: 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
}
summary {
  cursor: pointer;
  font-weight: 550;
}
.account-list > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
#message:not(:empty) {
  position: fixed;
  right: 24px;
  bottom: 22px;
  max-width: 550px;
  background: #263d2c;
  color: #fff;
  padding: 15px 22px;
  box-shadow: 0 5px 25px #0002;
  border-radius: 9px;
  z-index: 50;
}
.error-message {
  background: #822e25 !important;
}
dialog {
  max-width: 650px;
  width: calc(100% - 30px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  color: var(--ink);
}
dialog::backdrop {
  background: #13201680;
}
a {
  color: var(--green);
}
footer {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
[hidden] {
  display: none !important;
}
#events > p {
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
}
@media (max-width: 800px) {
  header {
    align-items: start;
    flex-direction: column;
  }
  main {
    padding: 25px 16px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: start;
    flex-direction: column;
  }
  nav {
    flex-wrap: wrap;
  }
  .panel {
    padding: 22px;
  }
  .login {
    padding: 30px;
  }
  .counts {
    gap: 32px;
  }
  .row {
    flex-wrap: wrap;
  }
}
