:root {
  color-scheme: light;
  --ink: #163333;
  --dim: #4e6766;
  --line: #cfdad2;
  --paper: #f5f6ef;
  --white: #fffffa;
  --green: #225d49;
  --lime: #d7eeb2;
  --red: #9a3b2b;
  --gold: #87652a;
  font:
    16px/1.52 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(5vw, 20px);
  gap: 14px;
}
header {
  background: #142f30;
  color: var(--white);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 680;
  text-decoration: none;
  color: inherit;
}
.mark {
  font-size: 34px;
  color: var(--lime);
}
.brand-sub,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.brand-sub {
  border-left: 1px solid #67817c;
  padding-left: 14px;
  margin-left: 4px;
  color: #d2ddcf;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: clamp(26px, 4vw, 64px) max(3vw, 18px);
  min-height: calc(100vh - 145px);
}
h1,
h2,
h3,
p {
  margin: 0 0 0.55em;
}
h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(34px, 5vw, 69px);
  font-weight: 520;
}
h2 {
  font-size: 26px;
  font-weight: 560;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  display: block;
  color: var(--green);
  margin-bottom: 12px;
}
.hint,
.meta,
small {
  font-size: 13px;
  color: var(--dim);
}
p {
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8%;
  align-items: center;
  margin: 7vh auto;
  max-width: 1020px;
}
.intro p {
  max-width: 500px;
  font-size: 18px;
  color: var(--dim);
  margin-top: 20px;
}
.wave {
  font-size: 32px;
  letter-spacing: 0.07em;
  color: #6c9274;
  margin-top: 44px;
}
.panel,
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.panel {
  margin: 12px 0;
}
.login-card {
  padding: 32px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #94a99e;
  border-radius: 6px;
  padding: 9px 10px;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 85px;
  resize: vertical;
}
button {
  cursor: pointer;
  border: 1px solid #a4b7a9;
  background: #f6f9f1;
  color: var(--ink);
  font-weight: 600;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 14px;
}
button:hover {
  background: #e4eddb;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #174c3b;
}
.login-card .primary {
  width: 100%;
  margin: 10px 0;
}
.actions,
.tabs,
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tabs {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 14px;
  margin: 18px 0 24px;
}
.tabs button {
  background: transparent;
  border-color: transparent;
}
.tabs button[aria-current="page"] {
  background: var(--ink);
  color: white;
}
.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.metric {
  background: #eaf0e3;
  padding: 14px 18px;
  border-radius: 9px;
  text-align: left;
}
.metric strong {
  font-size: 27px;
  display: block;
  line-height: 1.2;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stack > * + * {
  margin-top: 12px;
}
.row {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.row:first-child {
  border-top: 0;
}
.row:last-child {
  padding-bottom: 0;
}
.body {
  white-space: pre-wrap;
  word-break: break-word;
}
.chip {
  display: inline-block;
  border-radius: 5px;
  background: #e5efdf;
  color: #2b503e;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 650;
}
.warn {
  background: #fbedd0;
  color: #755721;
}
.bad,
.form-error {
  color: var(--red);
}
.danger {
  border-color: #c79b8c;
  color: var(--red);
}
details {
  margin: 10px 0;
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 600;
}
dt {
  font-size: 12px;
  color: var(--dim);
  margin-top: 5px;
}
dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.paircode {
  display: block;
  letter-spacing: 0.12em;
  font-size: 24px;
  font-family: monospace;
  color: var(--green);
}
#live:not(:empty) {
  position: sticky;
  top: 0;
  background: #e7efdf;
  border-bottom: 1px solid var(--line);
  padding: 10px max(5vw, 20px);
  z-index: 2;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 0;
  top: 0;
  background: white;
  z-index: 4;
}
.check {
  display: flex;
  align-items: center;
}
.check input {
  width: auto;
}
.sr {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}
audio {
  max-width: 100%;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #679570;
  outline-offset: 2px;
}
#identity {
  font-size: 14px;
}
#identity button {
  margin-left: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eef2e9;
  padding: 12px;
  border-radius: 7px;
}
.intro h1 {
  max-width: 480px;
}
@media (max-width: 710px) {
  .login-layout,
  .grid {
    grid-template-columns: 1fr;
  }
  .login-layout {
    margin: 0;
    gap: 18px;
  }
  .wave {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .counts {
    gap: 5px;
  }
  .metric {
    padding: 10px;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding: 7px;
  }
  .panel,
  .card {
    padding: 15px;
  }
  footer {
    align-items: flex-start;
  }
  footer span {
    text-align: right;
  }
  .login-card {
    padding: 20px;
  }
}
