
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f6f8;
  color: #17202a;
  font-family: Tahoma, Arial, sans-serif;
}

.shell {
  width: min(
    1100px,
    calc(100% - 28px)
  );
  margin: 28px auto;
}

.shell.narrow {
  width: min(
    640px,
    calc(100% - 28px)
  );
}

.topbar,
.section-title,
.order-head,
.top-actions,
.wallet-card-head,
.wallet-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar h1,
.card h1,
.card h2 {
  margin-bottom: 6px;
}

.topbar p,
.muted {
  color: #6b7280;
}

.card {
  background: white;
  border: 1px solid #e4e7eb;
  border-radius: 14px;
  padding: 20px;
  margin-top: 18px;
  box-shadow:
    0 8px 30px
    rgba(0, 0, 0, .04);
}

.form-grid {
  display: grid;
  grid-template-columns:
    1fr 1fr;
  gap: 14px;
}

.form-grid .wide {
  grid-column:
    1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfd5dc;
  border-radius: 9px;
  font-size: 15px;
  direction: ltr;
  background: white;
}

input:focus,
select:focus {
  outline: 2px solid #dbe7ff;
  border-color: #84adff;
}

button {
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: white;
}

button.secondary {
  background: #e8ebef;
  color: #1f2937;
}

button.danger,
button.danger-small {
  background: #b42318;
  color: white;
}

button.danger-small {
  padding: 8px 10px;
  font-size: 12px;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.created,
.success,
.error {
  margin-top: 16px;
  padding: 14px;
  border-radius: 9px;
  word-break: break-word;
}

.created,
.success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.error {
  background: #fff1f0;
  border: 1px solid #fecdca;
  color: #b42318;
}

.hidden {
  display: none;
}

.order,
.wallet-card {
  padding: 15px 0;
  border-top: 1px solid #eef0f2;
}

.wallet-card:first-child,
.order:first-child {
  border-top: 0;
}

.wallet-list {
  margin-top: 18px;
}

.wallet-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
  direction: ltr;
}

.asset-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d0d5dd;
  background: #f9fafb;
  border-radius: 999px;
  font-size: 13px;
}

.asset-chip b {
  color: #101828;
}

.loading-chip {
  opacity: .65;
}

.muted-chip {
  color: #667085;
}

.balance-error {
  margin-top: 8px;
  color: #b42318;
  font-size: 12px;
  direction: ltr;
}

.kv {
  display: grid;
  grid-template-columns:
    120px 1fr;
  gap: 12px;
  margin-top: 9px;
}

.kv span {
  color: #6b7280;
}

.kv b {
  overflow-wrap: anywhere;
}

.mono {
  font-family:
    Consolas,
    monospace;
  direction: ltr;
}

.badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 99px;
  background: #eef2f6;
  font-size: 12px;
}

.badge.ok {
  background: #dcfae6;
  color: #067647;
}

.badge.warn {
  background: #fef0c7;
  color: #93370d;
}

.badge.bad {
  background: #fee4e2;
  color: #b42318;
}

.hint {
  font-weight: 400;
  color: #667085;
  direction: ltr;
}

.ok-text {
  color: #067647;
}

.bad-text {
  color: #b42318;
}

.approval {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
}

.big-amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 18px;
}

.approval-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

a {
  color: #175cd3;
}


.transaction-json {
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: #101828;
  color: #f2f4f7;
  font-family:
    Consolas,
    monospace;
  font-size: 12px;
}

details {
  margin-top: 14px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}@media (
  max-width: 700px
) {
  .form-grid {
    grid-template-columns:
      1fr;
  }

  .form-grid .wide {
    grid-column:
      auto;
  }

  .topbar,
  .wallet-card-head {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content:
      flex-start;
  }

  .kv {
    grid-template-columns:
      95px 1fr;
  }
}
