/* Account & engagement (S6/S7). Loaded only when the engagement_enabled flag is on. Additive to the site design system. */

/* like / save buttons (static markup, hydrated by account.js) */
.zq-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-engage { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--c-line); }
.recipe-hero__actions .zq-actions { gap: 10px; }
.zq-actions .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.zq-actions .btn__count { margin-inline-start: 2px; font-size: 13px; font-weight: var(--fw-medium); color: var(--c-muted-2); min-width: 1ch; }
.zq-actions .btn[aria-pressed="true"] .btn__count { color: inherit; }

/* header + mobile panel */
.mobile-panel__links button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; background: transparent; font: inherit; color: inherit; text-align: start; cursor: pointer; border-radius: var(--r-sm); }
.mobile-panel__links button:hover { background: var(--c-tint); }
.header-tools .avatar > img, .avatar > img { object-fit: cover; }
.header-tools .avatar { width: 40px; height: 40px; }

/* first-login consent */
.zq-welcome { max-width: 560px; margin: 26px auto 0; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.zq-welcome__lead { font-size: 17px; line-height: 1.9; color: var(--c-text-2); }
.zq-welcome__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.zq-welcome__note { font-size: 13px; color: var(--c-muted-2); }
.zq-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--c-line-2); border-radius: var(--r-md); background: var(--c-surface-2); font-size: 15px; line-height: 1.8; cursor: pointer; }
.zq-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--c-pink); flex: 0 0 auto; }
.zq-check a { text-decoration: underline; }

/* alerts, hints, field errors */
.zq-alert { margin: 16px var(--gutter) 0; padding: 12px 16px; border-radius: var(--r-md); background: #FDECEF; color: #8E1F42; font-size: 14px; }
.zq-alert--ok { background: #EAF6EE; color: #1E6B3A; }
.zq-alert p + p { margin-top: 4px; }
.zq-hint { font-size: 13px; color: var(--c-muted-2); }
.zq-hint a { text-decoration: underline; }
.zq-form-error, .zq-field-error { font-size: 13px; color: var(--c-danger, #C0264F); min-height: 0; }
.zq-form-error:empty, .zq-field-error:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--c-danger, #C0264F); }

/* collections */
.zq-inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 var(--gutter); padding: 14px 0 0; }
.zq-inline-form[hidden] { display: none; }
.zq-inline-form .input { flex: 1 1 220px; max-width: 360px; }
.zq-collection-tools { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.collection-title { flex-wrap: wrap; }
.saved-card { position: relative; }
.zq-move { width: auto; min-width: 120px; max-width: 150px; align-self: center; }
.saved-card [data-zq-unsave][aria-busy="true"], .liked-card [data-zq-unlike][aria-busy="true"] { opacity: .5; pointer-events: none; }
a.collection-card { text-decoration: none; color: inherit; }
a.tab { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* settings */
.zq-typed { margin-top: 6px; text-align: start; }
.zq-typed[hidden] { display: none; }
.modal--confirm .zq-form-error { margin-top: 6px; }
button.chip[aria-pressed] { cursor: pointer; }

/* "match my profile" chip on section pages */
.chip[data-zq-match][hidden] { display: none; }
[data-zq-match][aria-pressed="true"] { background: var(--c-tint); border-color: #F3B7C7; color: #8E1F42; font-weight: var(--fw-medium); }

@media (max-width: 640px) {
  .zq-welcome__actions .btn { flex: 1 1 100%; }
  .zq-move { max-width: 110px; }
}
