/* Account > Your data (js/account-data.js): the two privacy actions and the confirmation of a deletion */
.yd-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.yd-row + .yd-row { margin-block-start: 10px; }
.yd-row.danger { border-color: rgba(255, 82, 82, .35); background: linear-gradient(0deg, rgba(255, 82, 82, .05), rgba(255, 82, 82, .05)), var(--surface-2); }
.yd-icon { display: inline-flex; align-items: center; justify-content: center; inline-size: 40px; block-size: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-strong); }
.yd-row.danger .yd-icon { background: rgba(255, 82, 82, .14); color: var(--danger); }
.yd-row.off .yd-icon { background: var(--surface-3); color: var(--text-faint); }
.yd-icon svg { inline-size: 20px; block-size: 20px; }
.yd-text { min-width: 0; }
.yd-title { font-size: 13.5px; font-weight: 700; }
.yd-sub { margin-block-start: 3px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); overflow-wrap: anywhere; }
.yd-act { justify-self: end; }
.yd-act .btn { min-block-size: 40px; min-inline-size: 176px; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
.yd-act .btn svg { inline-size: 15px; block-size: 15px; flex: none; }
.yd-act .btn-outline-accent { border: 1px solid var(--accent); color: var(--accent-strong); background: transparent; }
.yd-act .btn-outline-accent:hover { background: var(--accent-soft); }
.yd-act .btn-outline-danger { border: 1px solid var(--danger); color: var(--danger); background: transparent; }
.yd-act .btn-outline-danger:hover:not(:disabled) { background: rgba(255, 82, 82, .12); }
.yd-act .btn:disabled { opacity: .45; cursor: not-allowed; }
.yd-wait { display: inline-flex; align-items: center; justify-content: center; min-block-size: 40px; min-inline-size: 176px; }

@media (max-width: 640px) {
  .yd-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .yd-act { grid-column: 2; justify-self: start; margin-block-start: 6px; }
  .yd-act .btn, .yd-wait { min-inline-size: 0; padding-inline: 18px; }
}
@media (max-width: 360px) {
  .yd-row { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .yd-icon { display: none; }
  .yd-act { grid-column: 1; justify-self: stretch; }
  .yd-act .btn, .yd-wait { inline-size: 100%; }
}

/* the confirmation of a deletion */
.yd-lose { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.yd-lose li { position: relative; padding-inline-start: 22px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.yd-lose li::before { content: "✕"; position: absolute; inset-inline-start: 0; color: var(--danger); font-weight: 800; }
.yd-lose li b { color: var(--text); }
.yd-keep { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.yd-word { display: grid; gap: 6px; font-size: 13px; }
.yd-word code { font-size: 13px; font-weight: 800; letter-spacing: .08em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); }
.yd-word input { min-block-size: 42px; inline-size: 100%; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; letter-spacing: .06em; padding: 0 12px; }
.yd-word input:focus { outline: 2px solid var(--danger); outline-offset: 1px; }
.btn.yd-final { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.yd-final:disabled { opacity: .4; cursor: not-allowed; }
