/* Optional page guides: shared styles, scoped to the guide itself. */
.page-guide__invite[hidden],
.page-guide [hidden] {
    display: none !important;
}

.page-guide__invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--app-radius, 8px);
    background: hsl(var(--accent-brand) / 0.06);
}

.page-guide__invite-text,
.page-guide__invite-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.page-guide {
    position: fixed;
    inset: auto;
    margin: 0;
    padding: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    border: 0;
    border-radius: var(--app-radius, 8px);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    overflow: visible;
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.22);
}

.page-guide::backdrop {
    background: rgb(8 24 40 / 0.3);
}

.page-guide__highlight {
    position: fixed;
    box-sizing: border-box;
    border: 2px solid hsl(var(--accent-brand));
    border-radius: var(--app-radius, 8px);
    background: rgb(255 255 255 / 0.06);
    pointer-events: none;
}

.page-guide__card {
    position: relative;
    padding: 16px 20px 20px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border-radius: inherit;
    background: hsl(var(--background));
}

.page-guide__top,
.page-guide__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-guide__progress {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.page-guide h2 {
    margin: 8px 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

/* The heading receives focus to announce each step; it is not an interactive control. */
.page-guide h2:focus {
    outline: none;
}

.page-guide .page-guide__close {
    min-width: 44px;
    min-height: 44px;
}

.page-guide__close-mark {
    font-size: 1.25rem;
}

.page-guide p {
    margin: 0 0 20px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}
