:root {
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #16213a;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body {
  margin: 0;
  min-height: 100vh;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}

.panel {
  background: #fff;
  border: 1px solid #d9e0ec;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(20, 34, 58, 0.06);
}

section {
  margin-bottom: 18px;
}

h1,
h2 {
  margin: 0 0 18px;
  letter-spacing: 0;
}

form,
.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d2e1;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: #1958d8;
  text-decoration: none;
  cursor: pointer;
}

button.secondary {
  color: #1958d8;
  background: #e9f0ff;
}

.message {
  min-height: 24px;
  margin-top: 12px;
  color: #46556e;
}

.error {
  color: #b42318;
}

.success {
  color: #067647;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid #e5eaf2;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #46556e;
  font-size: 13px;
  background: #f8fafd;
}

.muted {
  color: #68758d;
  font-size: 13px;
}

#assets-table,
#batches-table,
#redemptions-table {
  overflow-x: auto;
}

@media (max-width: 640px) {
  main {
    padding: 20px 12px;
  }

  .panel {
    padding: 18px;
  }
}
