:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: #202825;
  background: #f6f7f8;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 196px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e2e6e4;
}
.brand {
  font-size: 19px;
  font-weight: 650;
  padding: 0 12px;
  margin-bottom: 30px;
}
.nav {
  display: block;
  width: 100%;
  padding: 11px 14px;
  margin: 4px 0;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #66716a;
}
.nav.active {
  background: #eaf2ed;
  color: #205b3d;
  font-weight: 600;
}
.nav:hover {
  background: #f0f3f1;
}
.side-bottom {
  margin-top: auto;
  padding: 12px;
  color: #748078;
  font-size: 12px;
}
main {
  margin-left: 196px;
  padding: 30px 36px 16px;
  max-width: 1400px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
}
h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
h3 {
  margin: 0;
  font-size: 16px;
}
p {
  line-height: 1.6;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #66716a;
}
.card {
  background: #fff;
  border: 1px solid #e0e5e2;
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
.connection-card {
  min-height: 254px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 9px 15px;
  min-height: 38px;
  border: 1px solid #d8dfda;
  border-radius: 5px;
  background: #fff;
  color: #34493b;
}
.button + .button {
  margin-left: 4px;
}
.actions .button + .button {
  margin-left: 0;
}
.button.primary {
  background: #256143;
  border-color: #256143;
  color: #fff;
}
.button:hover {
  filter: brightness(0.97);
}
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #709b7f;
  outline-offset: 2px;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eef3ef;
  color: #41634c;
  font-size: 12px;
  white-space: nowrap;
}
.pill.neutral {
  color: #66716a;
  background: #f0f2f1;
}
.muted,
.detail {
  color: #6b766e;
  font-size: 13px;
  line-height: 1.7;
}
.detail {
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.metrics .card {
  padding: 20px 24px;
}
.metrics p {
  margin: 0 0 12px;
  color: #66716a;
  font-size: 13px;
}
.metrics strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.metrics .token-number {
  font-size: 24px;
}
.metrics .status-text {
  font-size: 22px;
}
.metrics small {
  display: block;
  margin-top: 10px;
  color: #7a857d;
  font-size: 12px;
}
dl {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 13px;
  margin: 0 0 24px;
  font-size: 13px;
}
dt {
  color: #788179;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
#qr-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e5e9e6;
  border-radius: 6px;
  text-align: center;
}
#qr-image {
  display: block;
  width: 256px;
  height: 256px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
}
#qr-state {
  margin: 12px 0 0;
  color: #4f6155;
  font-size: 13px;
}
#notice {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 5px;
  background: #edf4ef;
  color: #3d6248;
  line-height: 1.6;
}
#notice.error {
  color: #913f35;
  background: #fff0ed;
}
.gate {
  max-width: 560px;
  margin: 55px auto;
}
.form-card {
  max-width: 900px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #47574b;
}
label small {
  color: #869087;
  font-size: 12px;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbe1dc;
  border-radius: 5px;
  background: #fff;
  color: #29382e;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #256143;
}
.group-choice {
  margin: 4px 8px 4px 0;
  padding: 8px 12px;
  border: 1px solid #dce3de;
  border-radius: 5px;
  background: #f8faf8;
  color: #375641;
}
.memory-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #edf0ed;
  padding: 16px 0;
}
.memory-item p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e9edea;
  white-space: nowrap;
}
th {
  color: #778279;
  font-weight: 500;
  background: #fafbfa;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding: 16px 0;
  color: #8b938d;
  font-size: 11px;
}
@media (max-width: 1000px) {
  main {
    padding: 24px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid #e2e6e4;
  }
  .brand {
    padding: 0;
    margin-bottom: 12px;
    font-size: 17px;
  }
  nav {
    display: flex;
    gap: 6px;
  }
  .nav {
    text-align: center;
    padding: 9px 6px;
    margin: 0;
  }
  .side-bottom {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 20px 16px;
  }
  h1 {
    font-size: 21px;
  }
  header {
    gap: 8px;
    margin-bottom: 20px;
  }
  .account {
    gap: 8px;
    font-size: 12px;
  }
  .card {
    padding: 20px;
  }
  .metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .metrics .card {
    padding: 18px 20px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
