.swap-preference {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  background: transparent;
  font: 500 14px/1.3 var(--sans);
  text-align: start;
}
.swap-preference strong {
  min-width: 0;
  margin-inline-start: auto;
  color: var(--color-text-primary);
  font-weight: 580;
  text-align: end;
  overflow-wrap: anywhere;
}
.swap-preference > svg { width: 16px; height: 16px; flex: none; }
.swap-preference:disabled { cursor: default; }
.swap-preference:disabled > svg { visibility: hidden; }

.recipient-sheet {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100% - 32px));
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  box-shadow: 0 20px 72px -24px rgb(0 0 0 / .45);
  overscroll-behavior: contain;
}
.recipient-sheet::backdrop { background: rgb(16 16 16 / .55); backdrop-filter: blur(5px); }
.recipient-sheet form { display: grid; gap: 24px; padding: clamp(20px,5vw,32px); }
.recipient-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.recipient-network { display: flex; align-items: center; gap: 7px; color: var(--color-text-secondary); font: 550 12px/1.4 var(--sans); }
.recipient-network-dot { width: 7px; height: 7px; background: var(--color-accent-solid); border-radius: 50%; }
.recipient-sheet h2 { margin-top: 10px; font: 580 clamp(28px,5vw,38px)/1.05 var(--display); letter-spacing: -.05em; }
.recipient-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 11px; }
.recipient-close, .recipient-own { background: var(--color-bg-subtle); color: var(--color-text-primary); }
.recipient-editor { min-width: 0; }
.recipient-label-row, .recipient-own { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.recipient-label-row { margin-bottom: 4px; }
.recipient-label-row label { font: 550 14px/1.4 var(--sans); }
#recipient-paste { background: transparent; min-height: 40px; padding-inline: 5px; color: var(--color-accent-text); font: 600 13px/1.4 var(--sans); }
#custom-recipient {
  display: block;
  width: 100%;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  font: 450 16px/1.5 var(--mono);
  overflow-wrap: anywhere;
  resize: vertical;
}
#custom-recipient:focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 1px; }
#custom-recipient::placeholder { color: var(--color-text-tertiary); }
#custom-recipient[aria-invalid=true] { border-color: var(--color-accent-text); }
#recipient-feedback { min-height: 2.8em; margin-top: 9px; color: var(--color-text-secondary); font: 450 13px/1.4 var(--sans); }
#recipient-feedback[data-state=error] { color: var(--color-accent-text); }
.recipient-actions { display: grid; gap: 8px; }
.recipient-actions > button { min-height: 47px; padding: 12px 16px; border-radius: 10px; font: 560 14px/1.35 var(--sans); }
#recipient-apply { background: var(--color-accent-solid); color: var(--color-on-accent); }
#recipient-apply:disabled { background: var(--color-disabled); color: var(--color-disabled-text); cursor: default; opacity: 1; }
.recipient-own small { color: var(--color-text-secondary); font-size: 12px; }
@media (hover:hover) {
  .swap-preference:not(:disabled):hover, .recipient-close:hover, .recipient-own:hover { background: var(--color-bg-sunken); }
  #recipient-apply:not(:disabled):hover { background: var(--color-accent-hover); }
  #recipient-paste:hover { text-decoration: underline; }
}
@media (max-width: 550px) {
  .recipient-sheet { inset: auto 0 0; width: 100%; max-height: calc(100dvh - 12px); margin: 0; border-radius: 21px 21px 0 0; }
  .recipient-sheet form { padding-bottom: max(20px,env(safe-area-inset-bottom)); gap: 20px; }
}
@media (prefers-reduced-motion:no-preference) {
  .recipient-sheet[open] { animation: recipient-appear 190ms cubic-bezier(.2,.8,.2,1); }
  @keyframes recipient-appear { from { opacity: .2; transform: translateY(12px); } }
}
