.platform-select button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}
.platform-select .platform-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  color: inherit;
}
.history-disclosure {
  margin: 0 0 28px;
  border-block: 1px solid var(--line);
}
.history-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.history-disclosure > summary::-webkit-details-marker {
  display: none;
}
.history-summary-copy {
  flex: 1;
  min-width: 0;
}
.history-summary-copy strong {
  display: block;
  font-size: 15px;
}
.history-summary-copy small {
  color: var(--muted);
  font-size: 12px;
}
.history-chevron {
  transform: rotate(90deg);
  transition: transform 180ms var(--ease);
}
.history-disclosure[open] .history-chevron {
  transform: rotate(-90deg);
}
.history-disclosure > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
}
.history-body {
  padding-bottom: 24px;
}
.history-body h3 {
  font-size: 15px;
  margin-bottom: 6px;
}
.history-note {
  color: var(--muted);
  font-size: 12px;
  max-width: 65ch;
  line-height: 1.6;
}
.history-pending {
  margin-bottom: 24px;
}
.history-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history-row:last-child {
  border-bottom: 0;
}
.history-description {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.history-description strong {
  font-weight: 700;
}
.history-description time,
.history-operation-status {
  color: var(--muted);
  font-size: 12px;
}
.history-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.history-amount.credit {
  color: var(--accent-deep);
}
.history-amount.neutral {
  color: var(--muted);
  max-width: 110px;
  white-space: normal;
  font-size: 12px;
}
.history-status {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0;
}
.history-status.error {
  color: var(--danger);
}
.history-more,
.history-retry {
  margin-top: 16px;
}
/* Touch-action on safe blocks only: never restrict text fields or whole panels. */
@media (max-width: 760px) {
  .section-heading,
  .access-card,
  .account-summary,
  .privacy-note,
  .device-limit,
  .list-heading,
  .referral-stats,
  .quiet-note,
  .history-row {
    touch-action: pan-y pinch-zoom;
  }
}
@media (prefers-reduced-motion: reduce) {
  .history-chevron {
    transition: none;
  }
}
