:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #172033;
  background: #f5f7fa;
  font-synthesis: none;
  --blue: #2b5fd9;
  --ink: #172033;
  --muted: #758094;
  --line: #e6ebf2;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9ebeff;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button,
.nav-link {
  touch-action: manipulation;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 18px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 48px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #fff;
  background: var(--blue);
  border-radius: 11px;
  font-size: 24px;
  font-weight: 700;
}
.brand small {
  display: block;
  margin-top: 5px;
  color: #8d96a7;
  letter-spacing: 1.8px;
  font-size: 9px;
  font-weight: 500;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: #68748a;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
}
.nav-link:hover {
  background: #f6f8fc;
}
.nav-link.active {
  background: #ecf2ff;
  color: var(--blue);
  font-weight: 650;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: #8a94a5;
  padding: 20px 16px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ba7ba;
}
.workspace {
  margin-left: 232px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 16px;
}
.desktop-location {
  font-size: 13px;
  color: var(--muted);
}
.mobile-brand {
  display: none;
}
.wallet-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wallet-address {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: #f3f5f9;
  padding: 9px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-address .status-dot {
  background: #36a280;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dce3ed;
  color: #44516a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  background: #f2f6ff;
  border-color: #bfcfee;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.primary:hover:not(:disabled) {
  background: #214fbc;
}
.btn.danger {
  color: #b75f1c;
  background: #fff6ec;
  border-color: #f5d8b5;
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
  color: #788398;
  padding: 8px;
}
.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.grant-active {
  border: 1px solid #c8e5dc;
  background: #edf8f3;
  color: #20805c;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 38px 40px 60px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #98a2b3;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
}
.page-heading h1 {
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 0;
  font-weight: 650;
}
.page-meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.toolbar {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 13px;
  background: transparent;
  color: #7b8597;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  min-height: 38px;
}
.tab.active {
  color: var(--blue);
  background: #edf3ff;
  font-weight: 650;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  background: #f6f8fb;
  border: 1px solid #e7ecf2;
  border-radius: 9px;
  height: 40px;
}
.search-wrap .icon {
  width: 16px;
  color: #99a3b5;
}
.search-wrap input {
  border: 0;
  background: transparent;
  width: 190px;
  min-width: 0;
  font-size: 12px;
  color: var(--ink);
  outline: none;
}
.search-wrap:focus-within {
  border-color: #83a7f4;
  box-shadow: 0 0 0 2px #e2ebff;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: #929caf;
  background: #fbfcfe;
  padding: 14px 22px;
  font-size: 11px;
  font-weight: 500;
}
td {
  padding: 20px 22px;
  border-top: 1px solid #f0f3f7;
  color: #536078;
}
tbody tr:hover {
  background: #fafcff;
}
.cell-main {
  color: var(--ink);
  font-weight: 600;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}
.amount {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 650;
}
.amount .currency {
  font-size: 10px;
  font-weight: 500;
  color: #98a1b3;
  margin-left: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #f1f4f8;
  color: #6c7890;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.pending {
  background: #fff6e7;
  color: #b98426;
}
.badge.success {
  background: #edf8f3;
  color: #29936c;
}
.badge.hold {
  background: #fff0ed;
  color: #c4775c;
}
.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.list-footer {
  padding: 17px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #929caf;
  font-size: 12px;
}
.pagination {
  display: flex;
  gap: 9px;
  align-items: center;
}
.page-number {
  padding: 5px 8px;
  color: #59677c;
}
.empty {
  padding: 76px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-symbol {
  height: 60px;
  width: 60px;
  border-radius: 19px;
  background: #f3f6fb;
  color: #a1b2cb;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.empty-symbol .icon {
  width: 27px;
  height: 27px;
}
.empty h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  max-width: 360px;
}
.empty .btn {
  margin-top: 8px;
}
.login-panel {
  min-height: 440px;
  display: grid;
  place-items: center;
}
.login-panel .empty {
  padding: 40px 24px;
}
.login-panel .empty-symbol {
  background: #edf3ff;
  color: var(--blue);
  width: 72px;
  height: 72px;
  border-radius: 23px;
}
.login-panel h2 {
  font-size: 22px;
  margin: 5px 0;
}
.login-panel .btn {
  min-width: 180px;
}
.card-list {
  display: none;
}
.subnav {
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.subnav .tab {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
}
.subnav .tab.active {
  background: #edf3ff;
  border-color: #cfdefb;
}
.exemption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 26px;
}
.limit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.limit-card h2 {
  font-size: 15px;
  margin: 0 0 20px;
}
.limit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--muted);
}
.limit-row strong {
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}
.panel-actions {
  padding: 0 26px 26px;
  display: flex;
  justify-content: flex-end;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 13px 20px;
  border-radius: 11px;
  background: #24324a;
  color: white;
  box-shadow: 0 8px 32px #10254929;
  font-size: 13px;
  line-height: 1.6;
}
.toast.error {
  background: #9c443a;
}
dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 90px #14294535;
}
dialog::backdrop {
  background: #18283b66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 22px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.dialog-head h2 {
  font-size: 18px;
  margin: 0;
}
.dialog-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100dvh - 240px);
}
.dialog-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fbfcfe;
}
.detail-list {
  margin: 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px 14px;
  align-items: start;
  font-size: 13px;
}
.detail-list dt {
  color: #8691a5;
  line-height: 1.65;
}
.detail-list dd {
  margin: 0;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.65;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.field:last-child {
  margin-bottom: 0;
}
.field label {
  font-size: 13px;
  color: #68758a;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce3ed;
  background: #fff;
  padding: 12px;
  border-radius: 9px;
  color: var(--ink);
  min-height: 44px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #83a7f4;
  outline: 2px solid #e2ebff;
}
.field-note {
  font-size: 11px;
  color: #99a2b3;
  overflow-wrap: anywhere;
}
.change-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.change-item:first-child {
  padding-top: 0;
}
.change-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.change-item h3 {
  font-size: 13px;
  margin: 0 0 10px;
  font-weight: 500;
  color: #7c879b;
}
.change-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.change-old {
  color: #8993a4;
  background: #f5f7fa;
  padding: 10px;
  border-radius: 7px;
}
.change-new {
  color: #2b5fd9;
  background: #eff4ff;
  padding: 10px;
  border-radius: 7px;
}
.change-arrow {
  padding-top: 10px;
  color: #a3aec0;
}
.error-inline {
  color: #b44e43;
  background: #fff2f0;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.confirm-caption {
  font-size: 12px;
  color: #8b95a7;
  margin: 0 0 20px;
  display: flex;
  justify-content: space-around;
}
.loading {
  width: 22px;
  height: 22px;
  border: 2px solid #e4ebf8;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.skip {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading {
    animation: none;
  }
}
@media (min-width: 1450px) {
  main {
    padding-top: 46px;
  }
  .page-heading {
    margin-bottom: 32px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 15px;
    padding-inline: 8px;
    gap: 9px;
  }
  .workspace {
    margin-left: 200px;
  }
  .topbar {
    padding: 0 26px;
  }
  main {
    padding: 30px 26px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .search-form {
    margin-left: auto;
  }
  th,
  td {
    padding-inline: 17px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    inset: auto 0 0;
    width: auto;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #ffffffed;
    backdrop-filter: blur(16px);
  }
  .brand,
  .sidebar-footer {
    display: none;
  }
  nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 2px;
  }
  .nav-link {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 8px 3px;
    min-height: 54px;
    font-size: 10px;
    border-radius: 9px;
  }
  .nav-link .icon {
    width: 21px;
    height: 21px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 17px 20px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .desktop-location {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
  }
  .mobile-brand .brand-symbol {
    width: 29px;
    height: 29px;
    font-size: 20px;
    border-radius: 9px;
  }
  .wallet-bar {
    gap: 7px;
  }
  .wallet-bar .btn {
    font-size: 11px;
    padding: 8px 11px;
    min-height: 34px;
  }
  .wallet-address {
    font-size: 10px;
    padding: 8px;
  }
  .wallet-bar .btn.quiet {
    padding: 4px 6px;
  }
  .grant-active {
    font-size: 11px;
    padding: 8px;
  }
  .wallet-bar.connected {
    width: 100%;
    justify-content: flex-start;
    padding-top: 5px;
  }
  .wallet-bar.connected .btn.quiet {
    margin-left: auto;
  }
  main {
    padding: 26px 16px 106px;
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 10px;
    align-items: center;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
    letter-spacing: 1.7px;
  }
  .page-meta {
    font-size: 12px;
    margin-top: 8px;
  }
  .page-heading .btn {
    font-size: 12px;
    padding: 9px 12px;
    min-height: 38px;
  }
  .panel {
    border-radius: 14px;
  }
  .toolbar {
    padding: 15px;
    gap: 14px;
  }
  .toolbar .tabs {
    width: 100%;
    gap: 3px;
    flex-wrap: nowrap;
  }
  .toolbar .tab {
    padding: 8px 11px;
    font-size: 12px;
    min-height: 36px;
  }
  .search-form {
    width: 100%;
    margin: 0;
  }
  .search-wrap {
    flex: 1;
    min-width: 0;
  }
  .search-wrap input {
    width: 100%;
  }
  .table-scroll {
    display: none;
  }
  .card-list {
    display: block;
  }
  .record-card {
    padding: 18px 17px;
    border-bottom: 1px solid var(--line);
  }
  .record-card:last-child {
    border-bottom: 0;
  }
  .card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
  }
  .card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 15px;
    font-size: 12px;
  }
  .card-field {
    min-width: 0;
  }
  .card-field dt {
    color: #929caf;
    font-size: 11px;
    margin-bottom: 6px;
  }
  .card-field dd {
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
  .card-field.wide {
    grid-column: 1/-1;
  }
  .card-foot {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }
  .card-foot .time {
    font-size: 10px;
    color: #9aa4b5;
  }
  .card-foot .btn {
    min-height: 36px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .list-footer {
    padding: 15px;
    font-size: 11px;
  }
  .pagination {
    gap: 4px;
  }
  .pagination .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .empty {
    padding: 58px 20px;
  }
  .login-panel {
    min-height: 390px;
  }
  .login-panel .empty {
    padding: 30px 20px;
  }
  .login-panel h2 {
    font-size: 20px;
  }
  .exemption-grid {
    grid-template-columns: 1fr;
    padding: 17px;
    gap: 14px;
  }
  .limit-card {
    padding: 18px;
  }
  .panel-actions {
    padding: 0 17px 20px;
  }
  .subnav {
    gap: 6px;
    margin-bottom: 16px;
  }
  .subnav .tab {
    padding: 9px 13px;
    font-size: 12px;
  }
  .toast {
    bottom: 90px;
    width: max-content;
  }
  dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-body {
    padding: 20px 18px;
    max-height: calc(100dvh - 210px);
  }
  .dialog-actions {
    padding: 14px 18px;
  }
  .dialog-actions .btn {
    flex: 1;
    min-height: 44px;
  }
  .detail-list {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px 10px;
  }
  .change-values {
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) 15px minmax(0, 1fr);
    font-size: 12px;
  }
}

.review-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.review-reason {
  margin-top: 20px;
}

.recovery-actions {
  padding-top: 24px;
}
