:root {
  font:
    16px/1.65 system-ui,
    sans-serif;
  color: #304b3d;
  background: #edf1e8;
  color-scheme: light;
}
.support-dialog { width: min(650px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 24px; color: inherit; background: #fffdf7; border: 1px solid #9ba88f; border-radius: 16px; }
.support-dialog::backdrop { background: #172c2680; }
.support-dialog p { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-account button { max-width: 100%; overflow-wrap: anywhere; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px max(16px, calc((100vw - 1000px) / 2));
  background: #fffaf0;
}
main {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px 40px;
}
.card {
  background: #fffdf7;
  padding: 24px;
  border: 1px solid #d1d9c9;
  border-radius: 16px;
  margin-bottom: 18px;
}
#login-view {
  max-width: 460px;
  margin: 30px auto;
}
h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
a {
  color: #275c44;
}
label {
  display: block;
  margin: 14px 0 5px;
}
input,
select,
textarea,
button,
.button {
  font: inherit;
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 12px;
}
input,
select,
textarea {
  border: 1px solid #9ba88f;
  width: 100%;
  background: white;
  color: inherit;
}
button,
.button {
  border: 1px solid #355c45;
  background: #355c45;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: #fffdf7;
  color: #304b3d;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.row > input {
  flex: 1;
  min-width: 120px;
}
.check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
}
.muted {
  color: #697761;
  font-size: 0.9rem;
}
#message {
  white-space: pre-wrap;
  color: #8b3528;
  background: #fff7dc;
  padding: 10px;
  border-radius: 10px;
}
#message:empty {
  display: none;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
td,
th {
  padding: 9px;
  border-bottom: 1px solid #d5ddcf;
  text-align: left;
  vertical-align: top;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
nav button[aria-current="true"] {
  background: #8a622e;
}
pre {
  overflow: auto;
  max-height: 350px;
}
#payment-qr {
  max-width: 100%;
  object-fit: contain;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b7833e;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    margin: 12px auto;
    padding: 0 10px 25px;
  }
  .card {
    padding: 18px;
  }
  header {
    padding: 12px;
  }
  .row > * {
    max-width: 100%;
  }
  th,
  td {
    padding: 7px;
  }
  h1 {
    font-size: 1.4rem;
  }
}
