/* Kept independent of page layouts and PrimeFaces dialog styles. */
.clarity-preferences {
    position: fixed;
    z-index: 2100;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(1rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    color: var(--brand-ink);
    background: var(--brand-cream);
    border: 1px solid var(--brand-control-border);
    border-radius: .85rem;
    box-shadow: 0 5px 24px color-mix(in srgb, var(--brand-ink) 13%, transparent);
    font: 400 .875rem/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
    width: min(27rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1.25rem;
}
.clarity-preferences[hidden], .clarity-settings[hidden] { display: none !important; }
.clarity-preferences h2 { font: 700 1.125rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif; margin: 0 0 .5rem; }
.clarity-preferences p { margin: 0 0 .75rem; }
.clarity-preferences a { color: var(--brand-accent-hover); text-decoration: underline; }
.clarity-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1rem; }
.clarity-actions button {
    min-height: 44px;
    padding: .625rem .875rem;
    cursor: pointer;
    font: 600 .875rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
    flex: 1 1 9rem;
    color: var(--brand-accent-hover);
    background: var(--brand-cream);
    border: 1px solid var(--brand-accent);
    border-radius: .5rem;
}
.clarity-actions button:hover { background: var(--brand-blush); }
.clarity-settings {
    position: static;
    border: 0;
    background: transparent;
    padding: .5rem 0;
    min-height: 44px;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    cursor: pointer;
}
.clarity-settings:hover { color: var(--brand-accent-hover); }
.clarity-preferences :focus-visible, .clarity-settings:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
