.tokenSummary {
  display: flex;
  gap: 28px;
  padding: 0 2px 12px;
  color: var(--muted);
}

.tokenSummary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.tokenLedger {
  padding: 0 20px;
  overflow-x: auto;
}

.tokenTableHead,
.tokenRecord {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 125px 95px 105px 155px minmax(190px, auto);
  align-items: center;
  gap: 14px;
  min-width: 980px;
}

.tokenTableHead {
  height: 44px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}

.tokenRecord {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.tokenRecord:last-child { border-bottom: 0; }
.tokenIdentity { min-width: 0; }

.tokenIdentity strong,
.tokenIdentity span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tokenIdentity span {
  color: var(--muted);
  font-size: 12px;
}

.tokenIdentity a {
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tokenActions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.tokenActions button {
  padding: 7px 9px;
  font-size: 12px;
  background: transparent;
}

.positive { color: var(--accent); }
.negative { color: var(--danger); }

.allocationRow.position {
  grid-template-columns: minmax(180px, 1fr) 190px minmax(250px, auto);
}

.allocationRow.position.deployerPosition {
  margin: 8px 0;
  padding: 0 12px;
  border: 1px solid rgba(233, 196, 106, .82);
  background: rgba(233, 196, 106, .055);
  box-shadow: inset 3px 0 0 var(--warning);
}

.devMark {
  display: inline-block !important;
  margin-left: 8px;
  color: var(--warning);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  vertical-align: 1px;
}

.sellControls,
.sellPresets {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sellControls { justify-content: flex-end; }

.sellPresets button,
.sellAllControls button {
  min-width: 48px;
  padding: 7px 8px;
  font-size: 12px;
  background: transparent;
}

.sellAllControls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sellAllControls > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .tokenSummary {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .tokenLedger { padding: 0 14px; }

  .allocationRow.position { grid-template-columns: 1fr; }
  .position .sellControls { grid-column: 1; justify-content: flex-start; flex-wrap: wrap; }
  .sellBar { align-items: flex-start; flex-direction: column; }
  .sellAllControls { flex-wrap: wrap; }
}
