/* Accounts: author links, the profile's account box, login/reset pages and
   the editors that open in #accountSheet. */

.author-link,
.feature-author { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; max-width: 100%; }
.author-link { margin-top: 5px; color: var(--muted); font-size: 12px; }
.author-link img,
.feature-author img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.feature-author img { width: 30px; height: 30px; }
@media (hover: hover) and (pointer: fine) {
  .author-link:hover,
  .feature-author:hover { text-decoration: underline; }
}

.account-box { margin-top: 16px; padding: 14px; background: var(--white); border-radius: 18px; text-align: left; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.account-box p { margin: 0 0 10px; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.account-links button,
.account-links a { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; display: inline-grid; place-items: center; }
.account-links .account-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }

.account-page { max-width: 420px; margin: 0 auto; padding: 28px 16px 48px; }
.account-page h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.05em; }
.account-page > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.account-form { display: grid; gap: 14px; margin-top: 18px; }
.account-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.account-form label small { color: var(--muted); font-weight: 600; }
.account-form input:not([type="radio"]):not([type="file"]) { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); }
.account-form input:focus { outline: 2px solid var(--lime-dark); outline-offset: 2px; }
.account-form .primary-button { width: 100%; justify-content: center; }
.account-hint,
.account-note { margin: -6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-note { margin: 0; padding: 10px 12px; background: var(--mint); border-radius: 12px; color: var(--ink-soft); font-size: 13px; }
.account-error { margin: 0; min-height: 1em; color: #c0392b; font-size: 13px; }
.account-error:empty { display: none; }
.account-buttons { display: flex; gap: 10px; }
.account-buttons > * { flex: 1; }

.account-sheet { max-height: calc(100dvh - 24px); overflow: auto; }
.photo-row { display: flex; align-items: center; gap: 16px; }
.photo-preview { width: 84px; height: 84px; border-radius: 28px; object-fit: cover; background: var(--lime); flex: none; }
.photo-actions { display: grid; gap: 8px; justify-items: start; }
.photo-pick,
.outline-button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-weight: 800; display: inline-grid; place-items: center; cursor: pointer; }
.account-form .photo-pick { display: inline-grid; font-size: 14px; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.photo-row.busy .photo-preview { opacity: 0.4; }

.fill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.fill-row legend { margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.fill-row label { display: block; }
.fill-row input { position: absolute; opacity: 0; pointer-events: none; }
.fill-row span { display: block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.fill-row input:checked + span { border-color: var(--ink); }
.fill-row input:focus-visible + span { outline: 2px solid var(--lime-dark); outline-offset: 2px; }
