:root {
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: #e9edf7;
  background: #0b1020;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1060px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #263047;
}
.brand {
  font-size: 25px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}
.brand span {
  color: #79e5bb;
}
header > span,
small,
footer {
  color: #9eabc4;
}
h1 {
  font-size: 30px;
  margin: 0 0 10px;
}
h2 {
  font-size: 20px;
  margin-top: 0;
}
h3 {
  font-size: 16px;
}
p {
  margin: 8px 0 18px;
}
a {
  color: #79e5bb;
}
section,
.card {
  background: #141d30;
  border: 1px solid #2b3650;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid section {
  margin-bottom: 0;
}
.stack {
  display: grid;
  gap: 12px;
}
label {
  display: block;
  font-size: 14px;
  color: #b4c2da;
}
input,
select,
button,
textarea {
  font: inherit;
  border: 1px solid #3b4d69;
  border-radius: 8px;
  padding: 11px;
  width: 100%;
  margin: 6px 0 12px;
}
input,
textarea,
select {
  background: #0b1426;
  color: #fff;
}
button,
.button {
  background: #79e5bb;
  color: #072e24;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #25354f;
  color: #e9edf7;
}
.danger {
  background: #4a2738;
  color: #ffd4df;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row button {
  width: auto;
}
.row > h1 {
  flex: 1;
}
.warn {
  border-left: 3px solid #ffd181;
  padding-left: 12px;
  color: #ffe0a9;
}
.list {
  padding: 14px 0;
  border-bottom: 1px solid #2b3650;
  overflow-wrap: anywhere;
}
.list:last-child {
  border: 0;
}
.badge {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 30px;
  background: #283b54;
}
.paid,
.matched {
  background: #16513d;
  color: #b4fadc;
}
.expired,
.cancelled,
.ignored {
  color: #fed5a0;
}
.amount {
  font-size: 38px;
  font-weight: 800;
}
.center {
  text-align: center;
  max-width: 510px;
  margin: auto;
}
.qr {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
}
code,
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: #0b1426;
  padding: 8px;
  display: block;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f9e6be;
  color: #372b15;
  padding: 14px;
  border-radius: 10px;
  max-width: 90%;
  z-index: 2;
}
#notice:empty {
  display: none;
}
.wide {
  grid-column: 1/-1;
}
details {
  margin: 20px 0;
}
summary {
  cursor: pointer;
}
footer {
  font-size: 13px;
}
button.small {
  font-size: 13px;
  padding: 7px;
  margin: 5px 0;
  width: auto;
}
.muted {
  color: #9eabc4;
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
  header,
  main,
  footer {
    padding: 16px;
  }
  section {
    padding: 18px;
  }
  h1 {
    font-size: 25px;
  }
}
