:root {
  font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  color:#15372e;
  background:#f3f6f3;
  font-size:14px;
  line-height:1.6;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
header {
  height:90px;
  background:#fff;
  border-bottom:1px solid #dce5df;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(24px,calc((100vw - 1200px)/2));
  gap:20px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-icon {
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#176748;
  color:#fff;
  width:46px;
  height:46px;
  font-size:23px;
  font-weight:700;
}
.brand strong {
  font-size:21px;
  letter-spacing:1px;
}
.brand small {
  display:block;
  color:#7a8d84;
  font-size:11px;
  letter-spacing:2px;
}
.header-right {
  display:flex;
  align-items:center;
  gap:16px;
  color:#698074;
}
main {
  max-width:1200px;
  padding:36px 24px;
  margin:auto;
  min-height:calc(100vh - 160px);
}
h1,h2,p {
  margin:0;
}
h1 {
  font-size:30px;
  letter-spacing:-.5px;
  line-height:1.5;
}
h2 {
  font-size:18px;
  font-weight:650;
  margin-bottom:12px;
}
p {
  margin:8px 0 16px;
}
button,input,textarea {
  font:inherit;
}
button {
  cursor:pointer;
  border:1px solid #ccd9d0;
  background:#fff;
  color:#245541;
  border-radius:8px;
  padding:9px 16px;
  font-weight:600;
  transition:background .15s;
}
button:hover {
  background:#eaf2ec;
}
button:disabled {
  opacity:.5;
  cursor:wait;
}
.primary {
  background:#176748;
  color:white;
  border-color:#176748;
}
.primary:hover {
  background:#125337;
}
input,textarea {
  width:100%;
  border:1px solid #cedbd2;
  border-radius:8px;
  padding:11px 12px;
  background:#fbfcfb;
  color:#183e2b;
  outline:none;
}
input:focus,textarea:focus {
  border-color:#20845c;
  box-shadow:0 0 0 3px #20845c12;
}
textarea {
  resize:vertical;
  overflow-wrap:anywhere;
}
label {
  display:block;
  font-size:13px;
  font-weight:600;
  margin:12px 0 6px;
}
label input {
  margin-top:6px;
}
.muted {
  color:#73847b;
  font-size:13px;
}
.eyebrow {
  font-size:11px;
  letter-spacing:2px;
  color:#688373;
  font-weight:700;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 0 22px;
}
.page-heading p {
  margin:4px 0 0;
}
.status-pill {
  padding:6px 12px;
  background:#e4eee7;
  border:1px solid #cddfd2;
  border-radius:30px;
  font-size:12px;
  color:#367454;
}
.wallet {
  background:#123f30;
  color:#fff;
  border-radius:16px;
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr 1.3fr;
  align-items:center;
  padding:24px 30px;
  margin-bottom:28px;
  gap:24px;
}
.wallet small {
  color:#b8cec1;
  font-size:12px;
}
.wallet strong {
  display:block;
  font-size:36px;
  line-height:1.4;
  font-weight:600;
  letter-spacing:-1px;
}
.wallet p {
  border-left:1px solid #486b58;
  padding-left:24px;
  font-size:12px;
  color:#b8cec1;
  margin:0;
}
nav {
  display:flex;
  gap:8px;
  border-bottom:1px solid #d8e2da;
  margin-bottom:24px;
  overflow-x:auto;
}
nav button {
  background:transparent;
  border:0;
  border-bottom:3px solid transparent;
  border-radius:0;
  padding:12px 18px;
  white-space:nowrap;
  color:#75877b;
}
nav button.active {
  color:#176748;
  border-bottom-color:#176748;
}
.card {
  background:#fff;
  border:1px solid #dce6de;
  border-radius:12px;
  padding:24px;
  margin-bottom:20px;
}
.account-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.number {
  font-size:12px;
  color:#6a8c75;
  margin-right:10px;
}
.row {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.card .row {
  margin-top:14px;
}
.tip {
  font-size:12px;
  color:#88988e;
  margin:12px 0 0;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.section-heading h2 {
  margin:0;
}
.workflow {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:12px;
  color:#668474;
  padding:0 0 22px;
  flex-wrap:wrap;
}
.workflow b {
  display:inline-grid;
  place-items:center;
  border:1px solid #c5d7c9;
  border-radius:50%;
  width:23px;
  height:23px;
  margin-right:6px;
}
.workflow i {
  color:#aec2b3;
  font-style:normal;
}
.empty {
  padding:28px 12px;
  color:#91a093;
  text-align:center;
}
.item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid #edf1ed;
}
.item:last-child {
  border-bottom:0;
}
.item-title {
  font-weight:650;
  font-size:15px;
}
.item small {
  display:block;
  color:#7a8f80;
  margin-top:3px;
  overflow-wrap:anywhere;
}
.item .row {
  margin-top:8px;
}
.chip {
  display:inline-block;
  background:#edf3ee;
  color:#4b7258;
  padding:3px 8px;
  border-radius:5px;
  font-size:12px;
}
.warn {
  background:#fff3df;
  color:#977029;
}
.table-wrap {
  overflow:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  text-align:left;
}
th {
  color:#829387;
  font-weight:500;
  background:#f7faf7;
}
td,th {
  padding:12px 10px;
  border-bottom:1px solid #edf2ee;
  white-space:nowrap;
}
td.wrap {
  white-space:normal;
  min-width:150px;
  overflow-wrap:anywhere;
  max-width:260px;
}
td button {
  padding:4px 8px;
  font-size:12px;
}
.login-wrap {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:70px;
  align-items:center;
  min-height:68vh;
  max-width:1000px;
  margin:auto;
}
.intro h1 {
  font-size:48px;
  line-height:1.3;
  margin:22px 0;
}
.intro p {
  color:#7a8b80;
  line-height:1.9;
}
.intro-rule {
  display:flex;
  gap:16px;
  align-items:center;
  margin-top:28px;
}
.intro-rule b {
  font-size:58px;
  line-height:1;
  color:#176748;
}
.intro-rule span {
  font-size:15px;
}
.intro-rule small {
  font-size:11px;
  color:#85968a;
}
.login-card {
  padding:38px;
  margin:0;
}
.login-card h2 {
  font-size:25px;
  margin:10px 0;
}
.wide {
  width:100%;
  margin-top:24px;
}
.error {
  color:#b0473b;
  font-size:12px;
  min-height:0;
}
.admin-title {
  margin-bottom:20px;
}
a {
  color:#176748;
  word-break:break-all;
}
#publicUrl {
  display:block;
  margin-top:16px;
}
dialog {
  border:1px solid #d1dfd4;
  border-radius:16px;
  padding:28px;
  max-width:460px;
  width:calc(100vw - 32px);
  color:#163d2c;
}
dialog::backdrop {
  background:#0a241c66;
}
dialog p {
  white-space:pre-line;
  color:#6c7d71;
}
dialog .row {
  justify-content:flex-end;
  margin-top:24px;
}
footer {
  text-align:center;
  padding:18px;
  font-size:12px;
  color:#8c9c90;
}
footer span {
  font-size:10px;
  margin-left:12px;
  color:#a4b1a6;
}
#toast {
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  max-width:90vw;
  padding:12px 22px;
  border-radius:10px;
  color:#fff;
  background:#173e30;
  box-shadow:0 8px 30px #102d2522;
  z-index:100;
}
#toast.error {
  background:#9b443b;
}
#detailCard {
  scroll-margin:20px;
}
.actions {
  margin-bottom:10px;
}
[hidden] {
  display:none!important;
}
@media(max-width:700px) {
  header {
    height:76px;
    padding:0 18px;
  }
  .brand strong {
    font-size:18px;
  }
  .header-right {
    font-size:11px;
    gap:8px;
  }
  .header-right button {
    padding:5px 8px;
  }
  .brand small {
    font-size:9px;
    letter-spacing:1px;
  }
  main {
    padding:24px 16px;
  }
  h1 {
    font-size:24px;
  }
  .page-heading {
    align-items:flex-start;
  }
  .status-pill {
    font-size:10px;
    padding:4px 8px;
  }
  .wallet {
    grid-template-columns:repeat(3,1fr);
    padding:20px;
    gap:12px;
  }
  .wallet strong {
    font-size:28px;
  }
  .wallet p {
    grid-column:1/-1;
    border-left:0;
    border-top:1px solid #486b58;
    padding:12px 0 0;
    line-height:1.7;
  }
  .wallet p br {
    display:none;
  }
  .account-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .card {
    padding:18px;
  }
  nav button {
    padding:10px;
    font-size:13px;
  }
  .workflow {
    gap:10px;
    font-size:10px;
  }
  .workflow b {
    width:18px;
    height:18px;
  }
  .workflow i {
    display:none;
  }
  .section-heading {
    align-items:flex-start;
  }
  .section-heading>span {
    max-width:120px;
    text-align:right;
    font-size:11px;
  }
  .item {
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .login-wrap {
    grid-template-columns:1fr;
    gap:20px;
    min-height:auto;
  }
  .intro h1 {
    font-size:32px;
    margin:12px 0;
  }
  .intro h1 br {
    display:none;
  }
  .intro p {
    font-size:12px;
  }
  .intro-rule {
    display:none;
  }
  .login-card {
    padding:24px;
  }
  .intro {
    padding:12px;
  }
  .login-card h2 {
    font-size:22px;
  }
  .brand-icon {
    width:38px;
    height:38px;
    font-size:20px;
  }
}
@media(max-width:700px) {
  header {
    padding:0 16px;
    gap:8px;
  }
  .brand {
    gap:8px;
    flex-shrink:0;
  }
  .brand strong {
    white-space:nowrap;
    font-size:16px;
  }
  .brand small {
    white-space:nowrap;
    font-size:8px;
    letter-spacing:1px;
  }
  .header-right {
    min-width:0;
  }
  .header-right #identity {
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .header-right button,#closeDetail {
    white-space:nowrap;
    flex-shrink:0;
  }
  #closeDetail {
    min-width:60px;
  }
}
@media(max-width:420px) {
  .header-right #identity {
    max-width:58px;
  }
  .header-right {
    gap:6px;
  }
}
.order-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.order-choice input {
  width: 18px;
  height: 18px;
  accent-color: #176748;
  margin: 0;
}
.selection-actions {
  padding-top: 16px;
  border-top: 1px solid #edf1ed;
}
