:root {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: #213049;
  background: #f4f6fa;
  font-size: var(--ui-font-size);
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-bottom: 1px solid #e4e9f1;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.brand {
  font-size: 19px;
  font-weight: 650;
  color: #243556;
  margin-right: auto;
  text-decoration: none;
}
.shell {
  display: flex;
  max-width: 1500px;
  margin: auto;
}
nav {
  width: 206px;
  padding: 25px 15px;
  flex-shrink: 0;
}
nav a {
  display: block;
  padding: 12px 18px;
  border-radius: 7px;
  color: #66758c;
  text-decoration: none;
  margin-bottom: 6px;
}
nav a.active {
  color: #3563e9;
  background: #e7edff;
  font-weight: 600;
}
main {
  padding: 30px;
  min-width: 0;
  flex: 1;
}
.heading {
  margin: 0 0 25px;
}
.heading h1 {
  font-size: 25px;
  font-weight: 650;
  margin: 0 0 6px;
}
.muted {
  color: #738097;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  padding: 25px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  background: white;
  margin-bottom: 20px;
}
h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  padding: 7px 15px;
  background: white;
  color: #354962;
  font: inherit;
  cursor: pointer;
  min-height: 40px;
}
button:hover {
  border-color: #3563e9;
  color: #3563e9;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.recharge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.primary {
  background: #3563e9;
  border-color: #3563e9;
  color: white;
}
.primary:hover {
  color: white;
  background: #284ed2;
}
a {
  color: #3563e9;
}
label {
  display: block;
  margin-bottom: 18px;
}
label > span {
  display: block;
  margin-bottom: 6px;
  color: #53627a;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 540px;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  background: white;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #7597f5;
  outline-offset: 2px;
}
.auth {
  max-width: 500px;
  margin: 30px auto;
}
.recharge-gift-info label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recharge-gift-info input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  padding: 0;
  flex: 0 0 18px;
}
.license-payment-links,
.actions,
.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pager {
  justify-content: flex-end;
  margin-top: 18px;
}
.error {
  color: #ba3447;
}
.table-wrap {
  border: 1px solid #e4e9f1;
  border-radius: 10px;
  overflow: auto;
  background: white;
}
.ps-primary-controls {
  width: 220px;
  max-width: 220px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
  text-align: left;
}
th {
  background: #f9fafc;
  font-size: var(--ui-font-size);
  color: #718096;
  font-weight: 500;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid #e9edf4;
  overflow-wrap: anywhere;
  max-width: 380px;
}
.empty {
  text-align: center;
  color: #8c98aa;
  padding: 45px;
}
.wallet-amount,
.wallet-ledger-kind {
  white-space: nowrap;
}
.wallet-amount {
  font-variant-numeric: tabular-nums;
}
#notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #243556;
  color: white;
  padding: 13px 22px;
  border-radius: 8px;
  max-width: 90vw;
  z-index: 3;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header {
    padding: 0 16px;
    gap: 8px;
  }
  .shell {
    display: block;
  }
  nav {
    width: auto;
    display: flex;
    gap: 5px;
    padding: 12px;
    overflow: auto;
  }
  nav a {
    white-space: nowrap;
    margin: 0;
    padding: 8px 12px;
  }
  main {
    padding: 18px;
  }
  .card {
    padding: 20px;
  }
  .auth {
    margin: 10px auto;
  }
  .heading h1 {
    font-size: 22px;
  }
  header #identity {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.close-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
}
.close-consent input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0.25rem;
}
