/* "Finish your pub profile" (pub-profile-setup.js): the home nudge and the two-step panel. */
.psu-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 24px; padding: 20px 24px; border: 1px solid #d9b8f5; border-radius: var(--radius-card); background: linear-gradient(135deg, var(--color-primary-light) 0%, #ffffff 70%); box-shadow: var(--shadow-card) }
.psu-nudge[hidden] { display: none }
.psu-nudge__body { flex: 1 1 320px; min-width: 0 }
.psu-eyebrow { margin: 0 0 4px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary) }
.psu-nudge__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-text-primary) }
.psu-nudge__copy { margin: 6px 0 0; max-width: 560px; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary) }
.psu-nudge__actions { display: flex; flex-wrap: wrap; gap: 8px }
.psu-nudge__actions .btn { min-width: 0 }
.psu-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none }
.psu-check { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--color-surface-base); border: 1px solid var(--color-border); font-size: 13px; font-weight: 600; color: var(--color-text-secondary) }
.psu-check__dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--color-border); font-size: 11px; line-height: 1; color: #fff }
.psu-check.is-done { color: #138a4a; border-color: #9be3b8 }
.psu-check.is-done .psu-check__dot { background: #19a35b; border-color: #19a35b }

/* ── Panel ── */
body.psu-locked { overflow: hidden }
.psu-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(26, 22, 34, 0.5); backdrop-filter: blur(4px) }
.psu-overlay[hidden] { display: none }
.psu-panel { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 28px 22px; background: var(--color-surface-base); border-radius: var(--radius-card); box-shadow: var(--shadow-float) }
.psu-head { margin-bottom: 18px }
.psu-head__top { display: flex; align-items: center; justify-content: space-between }
.psu-head__top .psu-eyebrow { margin: 0 }
.psu-close { border: none; background: none; padding: 0 4px; font-size: 26px; line-height: 1; color: var(--color-text-tertiary); cursor: pointer }
.psu-close:hover { color: var(--color-text-primary) }
.psu-title { margin: 6px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-primary) }
.psu-copy { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-text-secondary) }
.psu-progress { height: 4px; margin-top: 14px; border-radius: 999px; background: var(--color-border-subtle); overflow: hidden }
.psu-progress span { display: block; height: 100%; background: var(--color-gradient-accent); transition: width 250ms ease }
.psu-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--color-text-tertiary) }
.psu-error { margin: 0; font-size: 12.5px; color: var(--color-error) }
.psu-error[hidden] { display: none }
.psu-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px }
.psu-actions .btn { min-width: 0 }
.psu-panel .login-error { margin-top: 12px }

.psu-logo-row { display: flex; align-items: center; gap: 20px }
.psu-logo-actions { min-width: 0 }
.psu-logo { flex-shrink: 0; object-fit: cover; border-radius: 16px; border: 1px solid var(--color-border); background: var(--color-surface-section) }
.psu-logo--lg { width: 112px; height: 112px }
.psu-logo--md { width: 64px; height: 64px; border-radius: 14px }
.psu-logo--empty { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: var(--color-text-tertiary) }
.psu-logo--lg.psu-logo--empty { font-size: 40px; border-style: dashed }
.psu-logo--md.psu-logo--empty { font-size: 24px }

.psu-socials { display: flex; flex-direction: column; gap: 12px }
.psu-social .form-input[aria-invalid="true"] { border-color: var(--color-error) }
.psu-social__label { display: inline-flex; align-items: center; gap: 8px }
.psu-social__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff }
.psu-social__icon--facebook { background: #1877f2 }
.psu-social__icon--instagram { background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%) }
.psu-social__icon--tiktok { background: #111 }

.psu-primary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; border: 0 }
.psu-primary legend { width: 100%; margin-bottom: 8px; padding: 0 }
.psu-chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none }
.psu-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-base); color: var(--color-text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color 120ms ease, background 120ms ease, color 120ms ease }
.psu-chip:hover { border-color: var(--color-primary); color: var(--color-text-primary) }
.psu-chip-input:checked + .psu-chip { border-color: var(--color-primary); background: var(--color-primary); color: #fff }
.psu-chip-input:focus-visible + .psu-chip { outline: 2px solid var(--color-primary); outline-offset: 2px }

/* The answer sheet's "who to follow" card, as printed (greyscale, centred). */
.psu-preview { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--color-surface-section); border: 1px solid var(--color-border) }
.psu-preview__caption { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-tertiary) }
.psu-sheet { display: flex; align-items: center; gap: 14px; max-width: 320px; margin: 0 auto; padding: 12px 14px; background: #fff; border: 1px dashed #bbb; border-radius: 6px; color: #333; font-family: Helvetica, Arial, sans-serif }
.psu-sheet__qr { flex-shrink: 0; width: 52px; height: 52px; padding: 5px; border: 1px solid #333; background: #fff }
.psu-sheet__qr span { display: block; width: 100%; height: 100%; background: repeating-conic-gradient(#333 0% 25%, #fff 0% 50%) 0 0 / 10px 10px }
.psu-sheet__qr.is-empty { border-style: dashed; border-color: #bbb }
.psu-sheet__qr.is-empty span { background: none }
.psu-sheet__text { min-width: 0 }
.psu-sheet__label { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: #555 }
.psu-sheet__name { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: #333; overflow-wrap: anywhere }
.psu-sheet__handle { margin: 2px 0 0; font-size: 12px; color: #555; overflow-wrap: anywhere }
.psu-sheet__handle.is-empty { font-style: italic; color: #999 }
.psu-preview .psu-hint { text-align: center }

.psu-done { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 12px; background: #effcf4; border: 1px solid #9be3b8 }
.psu-done .psu-sheet__name { margin: 0 }

@media (max-width: 520px) {
    .psu-overlay { align-items: flex-end; padding: 0 }
    .psu-panel { max-height: 92vh; border-radius: var(--radius-card) var(--radius-card) 0 0; padding: 20px 18px 18px }
    .psu-logo-row { flex-direction: column; align-items: flex-start }
    .psu-nudge { padding: 18px }
}
