/* Address book (/dashboard/profile/address-book/): Always ask for a code, the saved withdrawal addresses and bank
   accounts, the saved people, and the add and confirm forms. Builds on /css/dash.css. */
.ab .card-h { align-items: flex-start; }
.ab-codes-off { margin-bottom: 16px; }

/* Always ask for a code */
.ab-ask { padding: 18px 22px; }
.ab-ask .tgl input:disabled + .sw { opacity: .5; }
.ab-off-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ab-off-box .txt { margin-bottom: 12px; }
.ab-off-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ab-off-code { flex: 1 1 280px; max-width: 380px; }
.ab-off-row > .btn { height: 48px; padding: 0 18px; border-radius: 12px; }

/* A card per coin, and the people card */
.ab-coin-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.ab-coin-h h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.ab-coin-h div > span { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
.ab-coin-h .coin { flex: none; }
.ab-bank { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #3A8DF0, #2A5BD7); }
.ab-rows { display: flex; flex-direction: column; }
.ab-sk { width: auto; height: 40px; margin: 14px 20px; }
.ab-none { margin: 0; padding: 16px 20px; font-size: 13.5px; color: var(--muted-2); }

.ab-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 14px 20px; }
.ab-row + .ab-row { border-top: 1px solid var(--line); }
.ab-main { min-width: 0; }
.ab-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ab-title b { font-size: 14.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ab-title .tag { height: 21px; padding: 0 8px; font-size: 11.5px; }
.ab-addr { margin: 5px 0 0; font-family: 'YCP Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.ab-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.ab-meta:empty { display: none; }
.ab-acts { display: flex; gap: 6px; justify-content: flex-end; }
.ycp .ab-acts .btn { gap: 6px; }
.ycp .ab-acts .btn.confirm { color: #fff; border: 0; background: var(--grad); }
.ycp .ab-acts .btn.remove { color: #FF9A9A; }
.ycp .ab-acts .btn.remove:hover { border-color: rgba(255, 122, 122, .45); }
.ab-off-line { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; color: var(--hold); }

/* People */
.person-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-who > span:last-child { min-width: 0; }
.person-who b, .person-found b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.person-who small, .person-found small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.person-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-size: 15px; font-weight: 600; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-main.person .ab-ptags, .ab-main.person .ab-meta { margin-left: 50px; }
.ab-ptags { margin-top: 6px; }
.ab-ptags .label { font-size: 13px; color: var(--text-2); }
.ab-ptags .label::before { content: "Name: "; color: var(--muted); }
.person-found { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.person-found .person-avatar { width: 32px; height: 32px; font-size: 13px; }
.person-found .person-miss { color: #FF9A9A; font-weight: 500; font-size: 13.5px; }

/* Add and confirm forms */
.ab-form { display: flex; flex-direction: column; gap: 14px; }
.ab-form .field { margin: 0; }
.ab-form .txt { font-size: 13.5px; color: var(--muted); }
.ycp .ab-select { position: relative; }
.ab-select > .i { position: absolute; right: 14px; color: var(--muted); pointer-events: none; }
.ycp .ab-addrin input { font-family: 'YCP Mono', ui-monospace, monospace; font-size: 12.5px; }
.ab-iban { color: var(--in); }
.ab-iban.bad { color: #FF9A9A; }
.ycp .ab-codein input { font-family: 'YCP Mono', ui-monospace, monospace; letter-spacing: .08em; }
.ab-confirm { border-color: rgba(245, 185, 74, .35); background: linear-gradient(180deg, rgba(245, 185, 74, .06), rgba(245, 185, 74, 0) 160px), var(--surface); }
.ab-confirm-addr { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font-family: 'YCP Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }

@media (max-width: 750px) {
  /* The four profile tabs fit a phone's width without their icons */
  .dp-tabs { gap: 2px; }
  .ycp .dp-tabs a { padding: 0 6px; font-size: 13px; }
  .dp-tabs a .i { display: none; }
  .ab-ask { padding: 16px; }
  .ab-off-code { max-width: none; flex-basis: 100%; }
  .ab-off-row > .btn { flex: 1; }
  .ab-coin-h { padding: 13px 16px; }
  .ab-row { grid-template-columns: minmax(0, 1fr); padding: 13px 16px; }
  .ab-acts { justify-content: flex-start; margin-top: 4px; }
  .ab-acts { flex-wrap: wrap; }
  .ab-none { padding: 14px 16px; }
  .ab-sk { margin: 14px 16px; }
}
