.typewriter-modes {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  white-space: nowrap;
}

.typewriter-modes > a,
.typewriter-modes > [aria-hidden] {
  color: var(--muted);
}

.draft-exports { display: none; }
body:is([data-draft-storage="session"], [data-draft-storage="memory"]) .draft-exports {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px;
}
.draft-exports button, .pieces-button {
  min-height: 28px; color: var(--fg); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px;
}
.draft-exports button:disabled { opacity: .45; }
.pieces-button { padding: 0; font-weight: 600; }
p.receipt-kept { margin: 8px 0 -4px; }
/* Both typewriters print the rule and conditions under the two words. */
.receipt-rule, .receipt-conditions { margin-top: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.receipt-rule + .receipt-conditions { margin-top: 2px; }

@media (max-width: 480px) {
  .topnav .nav-links { gap: 8px; }
}

@media (max-width: 360px) {
  .topnav { flex-wrap: wrap; height: auto; min-height: 45px; }
  .topnav .nav-links { margin-inline-start: auto; }
}
