header {
  gap: 20px;
  flex-wrap: wrap;
}
header .brand {
  margin-right: auto;
}
header a {
  white-space: nowrap;
}
.desk-panel {
  padding: 28px;
  background: #101e27;
  border: 1px solid #2b404b;
  border-radius: 18px;
  margin: 20px 0;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}
.toolbar label {
  flex: 1;
  min-width: 180px;
}
.toolbar a,
a.primary,
a.secondary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  padding: 12px 18px;
  border-radius: 9px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-grid .desk-panel {
  margin: 0;
}
.address-line {
  overflow-wrap: anywhere;
  font: 12px/1.8 monospace;
  color: #a7c5cf;
}
.empty {
  grid-column: 1/-1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.desk-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.desk-grid > .desk-panel {
  min-width: 0;
}
.metric {
  font-size: 26px;
  color: #c5f58a;
}
.step-number {
  font: 12px monospace;
  color: #c5f58a;
  letter-spacing: 0.15em;
}
.wallet-text {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.position-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.position-list button {
  font-size: 12px;
}
.tx-log a {
  overflow-wrap: anywhere;
}
#reviewDetails {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 50vh;
  overflow: auto;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select {
  min-width: 0;
}
dialog {
  max-width: min(620px, 90vw);
}
@media (max-width: 760px) {
  .desk-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  header {
    gap: 14px;
  }
  header .brand {
    width: 100%;
  }
  main {
    padding: 20px 16px;
  }
  .desk-panel {
    padding: 20px;
  }
  .page-title {
    align-items: start;
    gap: 16px;
    flex-direction: column;
  }
  .toolbar > * {
    width: 100%;
  }
  .form-actions > * {
    flex: 1 1 140px;
  }
  .page-title h1 {
    font-size: 38px;
  }
}
pre.wallet-text {
  white-space: pre-wrap;
  line-height: 1.7;
}
