/* ═══════════════════════════════════════════════════════
   SHARED COMPONENTS — one definition, used by every page.
   Load after tokens.css and before the page stylesheet, so a
   page can still place a component (position, margins) but
   never restyle it.
   ═══════════════════════════════════════════════════════ */

/* ─── Small uppercase labels ──────────────────────────── */
/* Form-group / panel labels. (Marketing section kickers are
   .section-kicker in style.css: same type, green pill.) */
.field-label,
.canvas-size-group,
.biz-block h2,
.pf-shop {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* ─── Option chips (pill) ─────────────────────────────── */
.chip,
.orient-btn,
.canvas-size-btn {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border-md);
    background: var(--surface-warm);
    color: var(--ink-soft);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.chip:hover, .orient-btn:hover, .canvas-size-btn:hover { border-color: var(--cta); }
.chip.selected, .orient-btn.selected, .canvas-size-btn.selected {
    background: var(--cta);
    border-color: var(--cta);
    color: var(--white);
}

/* ─── Account menu (site nav, studio bar, paint page) ─── */
.pbn-account-control { position: relative; }

.pbn-account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    padding: 6px 14px 6px 6px;
    border-radius: var(--r-pill);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.pbn-account-trigger:hover { background: rgba(0, 0, 0, 0.04); }

.pbn-account-avatar {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--cta);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pbn-account-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pbn-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--s-xl);
    padding: 10px;
    z-index: 1100;
}

.pbn-account-menu-email {
    font-size: 0.78rem;
    color: var(--ink-soft);
    padding: 4px 8px 10px;
    word-break: break-all;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.pbn-account-logout {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 8px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background 0.15s;
}
.pbn-account-logout:hover { background: var(--danger-soft); color: var(--danger); }

/* ─── Modal parts ─────────────────────────────────────── */
.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.close-btn:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }

.confirm-icon { font-size: 2.4rem; margin-bottom: 14px; }

.confirm-actions { display: flex; gap: 10px; }

.confirm-btn {
    flex: 1;
    min-height: 44px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.confirm-btn.cancel {
    background: var(--bg);
    border: 1px solid var(--border-md);
    color: var(--ink);
}
.confirm-btn.cancel:hover { background: var(--bg-soft); }
.confirm-btn.danger { background: var(--danger); color: var(--white); }
.confirm-btn.danger:hover { background: var(--danger-hover); }

/* ─── Sign-in modal ───────────────────────────────────── */
.modal.auth-modal { max-width: 380px; }
.auth-modal .modal-header { margin-bottom: 10px; }
.auth-modal-sub {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}
.auth-google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center;
    gap: 12px; min-height: 54px; padding: 14px 20px;
    border: 1px solid var(--border-md); border-radius: var(--r-pill);
    background: var(--white); color: var(--ink);
    font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
    cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.auth-google-btn svg { flex: none; }
.auth-google-btn:hover {
    background: var(--bg-soft); border-color: var(--cta); transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}
.auth-google-btn:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10); }
.auth-google-btn:focus-visible { outline: 2px solid var(--cta); outline-offset: -1px; }
.auth-google-btn.is-loading { opacity: 0.65; cursor: default; transform: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10); }
.auth-status-msg {
    font-size: 0.85rem; text-align: center;
    color: var(--cta); min-height: 1.2em;
}
.auth-status-msg.is-error { color: var(--danger); }
