.acc-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 600px) { .acc-overlay { align-items: center; } }
.acc-sheet { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto; background: var(--card-bg, #fff); color: var(--text-primary, #1d1d2b); border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 40px rgba(0,0,0,.25); }
@media (min-width: 600px) { .acc-sheet { border-radius: 22px; } }
.acc-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(127,127,127,.15); color: inherit; font-size: 15px; cursor: pointer; }
.acc-body h3 { margin: 6px 0 4px; font-size: 19px; font-weight: 800; }
.acc-muted { margin: 0 0 14px; font-size: 12.5px; line-height: 1.7; color: var(--text-muted, #6b6b80); }
.acc-fine { margin: 14px 0 0; font-size: 11.5px; }
.acc-fine a { color: inherit; }
.acc-email { margin: 0 0 6px; font-weight: 700; word-break: break-all; text-align: right; }
.acc-btn { display: block; width: 100%; margin: 8px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.acc-primary { background: var(--primary, #6c4cf0); border-color: transparent; color: #fff; }
.acc-danger { color: #d33; border-color: rgba(221,51,51,.45); }
.acc-or { text-align: center; font-size: 12px; margin: 10px 0; color: var(--text-muted, #6b6b80); }
.acc-form input { display: block; width: 100%; margin: 8px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(127,127,127,.4); background: transparent; color: inherit; font: inherit; text-align: left; }
.acc-note { min-height: 20px; margin: 8px 0 0; font-size: 12.5px; color: var(--text-muted, #6b6b80); }
.acc-note.bad { color: #d33; }
.acc-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 10px 0 0; }
.acc-link { background: none; border: 0; padding: 4px 0; color: var(--primary-text, var(--primary, #6c4cf0)); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
[data-account-btn].acc-on { color: var(--primary, #6c4cf0); }
[data-account-btn][hidden] { display: none !important; }

/* Password fields: show/hide button, requirements list */
.acc-pass { position: relative; }
.acc-pass input { padding-right: 46px; }
.acc-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text-muted, #6b6b80); cursor: pointer; }
.acc-eye:hover { background: rgba(127, 127, 127, .14); color: var(--text-primary, #1d1d2b); }
.acc-eye[aria-pressed="true"] { color: var(--primary, #5B4CF0); }
.acc-rules { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 4px; }
.acc-rules li { --acc-ok: #15803D; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted, #6b6b80); transition: color .15s; }
.acc-rules li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 11px; line-height: 1; }
.acc-rules li.ok { color: var(--acc-ok); font-weight: 700; }
.acc-rules li.ok i { background: var(--acc-ok); border-color: var(--acc-ok); color: #fff; }
.acc-rules li.ok i::before { content: "✓"; }
html[data-theme="dark"] .acc-rules li { --acc-ok: #34D57A; }
html[data-theme="dark"] .acc-rules li.ok i { color: #0E1424; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .acc-rules li { --acc-ok: #34D57A; } html:not([data-theme="light"]) .acc-rules li.ok i { color: #0E1424; } }
.acc-primary:disabled { opacity: .45; cursor: not-allowed; }

/* Delete-account confirmation */
.acc-del-title { color: #B91C1C; }
html[data-theme="dark"] .acc-del-title { color: #FF8A9E; }
.acc-warn { margin: 6px 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(229, 52, 95, .09); border: 1.5px solid rgba(229, 52, 95, .45); font-size: 13px; line-height: 1.8; color: var(--text-primary, #1d1d2b); }
.acc-warn p { margin: 0 0 6px; }
.acc-warn-h { font-weight: 800; color: #B91C1C; }
html[data-theme="dark"] .acc-warn-h { color: #FF8A9E; }
.acc-warn ul { margin: 0 0 8px; padding-inline-start: 20px; }
.acc-warn li { margin: 2px 0; }
.acc-warn-foot { margin: 0 !important; font-size: 12px; color: var(--text-muted, #6b6b80); }
.acc-del-label { display: block; margin: 0 0 6px; font-size: 13px; color: var(--text-primary, #1d1d2b); }
.acc-del-input { display: block; width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(229, 52, 95, .5); background: transparent; color: inherit; font: inherit; text-align: center; }
.acc-danger:disabled { opacity: .4; cursor: not-allowed; }

/* Progress conflict chooser */
.acc-choice { margin: 10px 0; padding: 12px; border-radius: 16px; border: 2px solid rgba(127, 127, 127, .3); }
.acc-choice.best { border-color: var(--primary, #5B4CF0); background: color-mix(in srgb, var(--primary, #5B4CF0) 7%, transparent); }
.acc-choice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; }
.acc-choice-ic { font-size: 20px; }
.acc-badge { margin-inline-start: auto; padding: 2px 10px; border-radius: 99px; background: #FFC531; color: #3A2A00; font-size: 11.5px; font-weight: 800; }
.acc-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.acc-stat { padding: 3px 10px; border-radius: 99px; background: rgba(127, 127, 127, .14); font-size: 13px; }
.acc-stat b { font-size: 15px; }
.acc-choice .acc-btn { margin-bottom: 0; }
.acc-conflict-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(229, 52, 95, .09); border: 1px solid rgba(229, 52, 95, .4); font-size: 12.5px; line-height: 1.7; color: var(--text-primary, #1d1d2b); }
