:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #172b2a;
  background: #f5f6f3;
  font-size: 14px;
  --ink: #172b2a;
  --muted: #7c8985;
  --line: #e4e9e3;
  --green: #166b50;
  --mint: #dff1de;
  --warm: #f4e7cd;
  --red: #ac4545;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
button:hover:not(:disabled),
.button:hover {
  background: #edf2ec;
}
button.primary,
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
button.primary:hover:not(:disabled) {
  background: #0f543e;
}
button.danger {
  color: var(--red);
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.small {
  padding: 6px 10px;
  font-size: 12px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3dc;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b1d1b6;
  border-color: #76a88e;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 7px;
  color: #526660;
}
.field {
  margin-bottom: 18px;
}
[hidden] {
  display: none !important;
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.65;
}
.check input {
  margin-top: 4px;
}
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: #142d29;
  color: #cad7cf;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d6ecc1;
  color: #214b38;
  font-size: 24px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.5px;
  display: block;
  color: #8ba49a;
  margin-top: 3px;
  font-weight: 400;
}
.navlabel {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #6e8c80;
  margin: 43px 13px 14px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  justify-content: flex-start;
  background: transparent;
  border: 0;
  color: #aebfb7;
  border-radius: 7px;
  padding: 13px 15px;
  font-weight: 400;
  font-size: 13px;
  text-align: left;
  gap: 13px;
}
.nav button.active {
  background: #2a433b;
  color: #e5f7d7;
}
.nav button:hover {
  background: #233e35;
}
.nav .ico {
  width: 18px;
  font-size: 17px;
}
.sidefoot {
  margin-top: auto;
  padding-top: 32px;
  font-size: 11px;
  color: #8ba49a;
}
.sidefoot .statusdot {
  background: #baddab;
}
.statusdot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
}
.sidefoot a {
  display: block;
  margin-top: 16px;
  color: #d5e5d5;
  text-decoration: none;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fafbf8;
  font-size: 12px;
  color: #789084;
  gap: 12px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 13px;
}
.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 30px;
  height: 30px;
  background: #e6ece0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  color: #355742;
  font-weight: 700;
}
.content {
  padding: 36px 40px 55px;
  max-width: 1540px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #82918a;
  font-weight: 600;
  margin-bottom: 9px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.sub {
  color: var(--muted);
  line-height: 1.7;
  font-size: 12px;
  margin: 0;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.banner {
  padding: 13px 17px;
  border: 1px solid #e2d9bd;
  background: #f7f1e3;
  color: #77663e;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.banner.good {
  border-color: #d5e6d0;
  background: #edf5e9;
  color: #456d42;
}
.hero {
  border: 1px solid #dce7d7;
  background: linear-gradient(110deg, #e8efdd 0%, #eff3e7 65%, #e4ecda 100%);
  border-radius: 12px;
  padding: 30px 32px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}
.hero h2 {
  font-size: 25px;
  line-height: 1.5;
}
.hero p {
  font-size: 12px;
  color: #71806a;
  line-height: 1.8;
  max-width: 500px;
  margin: 12px 0 22px;
}
.hero-art {
  position: relative;
  width: 220px;
  height: 145px;
  flex-shrink: 0;
}
.art-card {
  position: absolute;
  inset: 5px 12px 14px 20px;
  background: #1f5040;
  border-radius: 14px;
  box-shadow: 9px 16px 0 #d5dfc7;
  transform: rotate(-9deg);
  padding: 20px;
  color: #d6e9c9;
}
.art-card b {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.art-card .chip {
  width: 27px;
  height: 22px;
  background: #c3d4a1;
  border-radius: 5px;
  margin: 15px 0 10px;
}
.art-card span {
  font-size: 11px;
  letter-spacing: 3px;
}
.art-lock {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #fff;
  border: 1px solid #e0e6d5;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--green);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 22px;
}
.statlabel {
  font-size: 12px;
  color: #7d8b83;
  display: flex;
  justify-content: space-between;
}
.stat strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  display: block;
  margin: 14px 0 7px;
}
.stat small {
  font-size: 11px;
  color: #8a968d;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panelhead {
  padding: 22px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0ea;
}
.panelbody {
  padding: 24px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  letter-spacing: 0.3px;
  font-weight: 500;
  color: #8b978f;
  background: #fbfcf9;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #eff2ec;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td .subline {
  display: block;
  font-size: 10px;
  color: #94a095;
  margin-top: 5px;
}
td .mono {
  font-size: 11px;
}
.mono,
code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf2eb;
  color: #74836c;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.badge.success {
  color: #3d7c4b;
  background: #e7f3e7;
}
.badge.draft,
.badge.processing,
.badge.submitting {
  color: #6a7fa1;
  background: #edf2f9;
}
.badge.uncertain,
.badge.needs_action {
  color: #997b2b;
  background: #fbf2d9;
}
.badge.failed,
.badge.rejected,
.badge.expired {
  color: #ad6b64;
  background: #faeeec;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr);
  gap: 24px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: #92a08f;
  line-height: 1.8;
  font-size: 12px;
}
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.filterbar input {
  max-width: 420px;
  flex: 1 1 160px;
}
.filterbar select {
  max-width: 170px;
}
.muted {
  color: var(--muted);
}
.sectionnote {
  font-size: 12px;
  line-height: 1.9;
  color: #7b8b7a;
  margin-top: 15px;
}
.producttabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.producttabs button {
  font-size: 12px;
  font-weight: 500;
  padding: 15px 8px;
  flex-direction: column;
  gap: 5px;
}
.producttabs button.active {
  border-color: #88ac82;
  background: #eff5e9;
  color: #35683b;
}
.producttabs small {
  font-size: 9px;
  color: #9ba795;
  letter-spacing: 0.8px;
}
.factrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1e9;
  font-size: 12px;
}
.factrow span:first-child {
  color: #87977d;
}
.factrow span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.price {
  font-size: 30px;
  letter-spacing: -1px;
  padding: 12px 0 7px;
}
.cardgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bankcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  min-width: 0;
}
.bankcard .pan {
  font-size: 22px;
  letter-spacing: 3px;
  margin: 25px 0 13px;
  color: #3e5d4b;
}
.bankcard .actions {
  margin-top: 20px;
}
.bankcard .meta {
  font-size: 11px;
  color: #809078;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.bankcard .counts {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 11px;
  color: #829079;
}
.bankcard .counts b {
  display: block;
  color: #3c5744;
  margin-top: 5px;
  font-size: 17px;
}
.notice {
  padding: 16px;
  background: #f7f9f2;
  border-left: 3px solid #b3c99b;
  color: #7a8e70;
  line-height: 1.9;
  font-size: 12px;
  margin-bottom: 20px;
}
.json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8faf5;
  border: 1px solid #e5ebdf;
  border-radius: 8px;
  padding: 20px;
  font-size: 11px;
  line-height: 1.8;
  max-height: 520px;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: min(500px, 90vw);
  background: #173d2d;
  color: #f4f7ee;
  padding: 15px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #132d2926;
  z-index: 30;
  display: none;
  line-height: 1.7;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #85463f;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #8b9b82;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.loginart {
  background: #183e30;
  color: #e7efd9;
  padding: 70px 13%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.loginart .eyebrow {
  color: #a2b68f;
}
.loginart h1 {
  font-size: 48px;
  line-height: 1.45;
  letter-spacing: -2px;
  max-width: 500px;
}
.loginart p {
  color: #a0b394;
  line-height: 2;
  font-size: 13px;
}
.loginart footer {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8ca17f;
}
.loginbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background: #fafbf7;
}
.loginform {
  width: 100%;
  max-width: 350px;
}
.loginform h1 {
  font-size: 29px;
}
.loginform .field {
  margin-top: 28px;
}
.loginform button {
  width: 100%;
  margin-top: 7px;
}
.loginform .sub {
  margin-bottom: 22px;
}
.loginform .sectionnote {
  margin-top: 28px;
}
.portal {
  max-width: 760px;
  margin: 0 auto;
  padding: 45px 24px;
}
.portal .brand {
  color: var(--ink);
  margin-bottom: 45px;
}
.portal h1 {
  margin-bottom: 14px;
}
.hidden {
  display: none !important;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0;
}
.step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.step .num {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  background: #edf3e5;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5a7e4b;
  font-size: 11px;
}
.step p {
  margin: 5px 0 0;
  color: #91a086;
  font-size: 11px;
  line-height: 1.8;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.resource {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  gap: 12px;
  overflow-wrap: anywhere;
}
.resource > div {
  min-width: 0;
}
.resource > button {
  flex-shrink: 0;
}
.resource:last-child {
  border: 0;
}
.resource small {
  color: #8b9b81;
  display: block;
  margin-top: 6px;
}
.errorbox {
  border: 1px solid #edcbc4;
  background: #fff4ef;
  color: #9c5d53;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.mobilebrand {
  display: none;
}
.rowlink {
  cursor: pointer;
}
.rowlink:hover {
  background: #f8faf4;
}
.pagination {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #7b8b72;
}
dialog {
  width: min(650px, 94vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #132b2966;
}
dialog h2 {
  margin-bottom: 20px;
}
.nowrap {
  white-space: nowrap;
}
details {
  font-size: 12px;
  color: #7b8b72;
}
summary {
  cursor: pointer;
  padding: 10px 0;
}
.link {
  color: #2f7144;
  text-decoration: underline;
  cursor: pointer;
}
.customer-link { padding-left: 0; color: var(--green); text-align: left; }
.customer-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.customer-id { font-size: 11px; overflow-wrap: anywhere; }
.customer-stats .customer-amounts { font-size: 22px; letter-spacing: 0; overflow-wrap: anywhere; }
.customer-own-summary { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0 2px 22px; font-size: 13px; color: var(--muted); }
.customer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
@media (max-width: 700px) { .customer-profile { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 1700px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    min-height: 235px;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    width: 195px;
    padding: 25px 16px;
  }
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .hero-art {
    width: 180px;
  }
  .cardgrid {
    grid-template-columns: 1fr;
  }
  .loginart {
    padding: 60px 9%;
  }
  .loginart h1 {
    font-size: 38px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 17px;
  }
  .brand {
    font-size: 17px;
  }
  .sidebar .navlabel,
  .sidefoot {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 20px;
    gap: 4px;
  }
  .nav button {
    flex-shrink: 0;
    padding: 10px;
    font-size: 11px;
  }
  .nav .ico {
    display: none;
  }
  .topbar {
    height: 53px;
    padding: 0 17px;
  }
  .topright {
    gap: 8px;
  }
  .content {
    padding: 24px 16px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 24px;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero-art {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 25px;
  }
  .grid3,
  .formgrid {
    grid-template-columns: 1fr;
  }
  .panelbody {
    padding: 18px;
  }
  .panelhead {
    padding: 18px;
  }
  .producttabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .login {
    display: block;
  }
  .loginart {
    padding: 35px;
    min-height: 260px;
  }
  .loginart .brand {
    margin-bottom: 30px;
  }
  .loginart h1 {
    font-size: 28px;
  }
  .loginart p,
  .loginart footer {
    display: none;
  }
  .loginbox {
    padding: 35px 25px;
  }
  .filterbar {
    flex-wrap: wrap;
  }
  td,
  th {
    padding: 15px;
  }
  .pagehead > .actions {
    max-width: 160px;
  }
  .price {
    font-size: 25px;
  }
}
