/* AccioPix design system (agreed 17 Nov 2026). Everything is prefixed ax- so
   pages can move onto it one at a time without fighting the old styles.
   Rules: one white button per screen; grey for secondary; text links for the
   rest; red outline for destructive (never white); colour means status only;
   Inter 13/15/17/22/32/52; Lucide icons at 16/20/24, stroke 1.75. */

:root {
    --ax-ink-0: #000000;      /* page */
    --ax-ink-1: #111113;      /* cards, panels, menus, dialogs */
    --ax-ink-2: #1c1c1f;      /* raised: inputs, hover, tiles */
    --ax-line: #2a2a2e;       /* borders, dividers */
    --ax-line-2: #3a3a3f;     /* control borders */
    --ax-text-1: #ececee;     /* headings, body */
    --ax-text-2: #a3a3a8;     /* secondary text (8.6:1 on black) */
    --ax-text-3: #7a7a80;     /* quiet labels (4.9:1, the floor) */
    --ax-action: #ffffff;     /* the one primary per screen */
    --ax-on-action: #111111;
    --ax-ok: #8ff0bb;
    --ax-warn: #f5c46b;
    --ax-danger: #ff8a80;
    --ax-whatsapp: #25d366;   /* WhatsApp buttons only */

    --ax-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ax-13: 13px; --ax-15: 15px; --ax-17: 17px; --ax-22: 22px; --ax-32: 32px; --ax-52: 52px;

    --ax-r-sm: 10px; --ax-r: 16px; --ax-r-lg: 20px; --ax-pill: 999px;
    --ax-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    --ax-sheet-max: 600px;
}

/* ─── Icons ───────────────────────────────────────────────────────────── */
.ax-i {
    width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle;
    stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.ax-i--16 { width: 16px; height: 16px; }
.ax-i--24 { width: 24px; height: 24px; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.ax-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: var(--ax-pill);
    font: 600 var(--ax-15)/1 var(--ax-font); letter-spacing: 0; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.ax-btn:focus-visible { outline: 2px solid var(--ax-action); outline-offset: 2px; }
.ax-btn[disabled], .ax-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.ax-btn--primary { background: var(--ax-action); color: var(--ax-on-action); }
.ax-btn--primary:hover { background: #e6e6e9; }
.ax-btn--secondary { background: #2a2a2e; color: var(--ax-text-1); border-color: var(--ax-line-2); }
.ax-btn--secondary:hover { background: #333338; }
.ax-btn--danger { background: transparent; color: var(--ax-danger); border-color: rgba(255, 138, 128, .55); }
.ax-btn--danger:hover { background: rgba(255, 138, 128, .1); }
.ax-btn--whatsapp { background: var(--ax-whatsapp); color: #04230f; }
.ax-btn--whatsapp:hover { background: #2fe072; }
.ax-btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--ax-13); }
.ax-btn--lg { min-height: 52px; padding: 0 28px; }
.ax-btn--block { width: 100%; }
.ax-btn--icon { width: 44px; padding: 0; }
.ax-btn--icon.ax-btn--sm { width: 36px; }

.ax-link {
    background: none; border: 0; padding: 4px 0; min-height: 24px; cursor: pointer;
    font: 500 var(--ax-15)/1.3 var(--ax-font); color: var(--ax-text-1);
    text-decoration: underline; text-decoration-color: #55555b; text-underline-offset: 3px;
    display: inline-flex; align-items: center; gap: 6px;
}
.ax-link:hover { text-decoration-color: var(--ax-text-1); }
.ax-link--quiet { color: var(--ax-text-2); }
.ax-link:focus-visible { outline: 2px solid var(--ax-action); outline-offset: 2px; border-radius: 4px; }

/* ─── Surfaces, fields, chips ─────────────────────────────────────────── */
.ax-card { background: var(--ax-ink-1); border: 1px solid var(--ax-line); border-radius: var(--ax-r-lg); }
.ax-input {
    width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
    background: var(--ax-ink-2); border: 1px solid var(--ax-line-2); color: var(--ax-text-1);
    font: 400 var(--ax-15)/1.4 var(--ax-font);
}
.ax-input::placeholder { color: var(--ax-text-3); }
.ax-input:focus { outline: none; border-color: var(--ax-text-1); }
.ax-label { font: 500 var(--ax-13)/1.3 var(--ax-font); color: var(--ax-text-2); }
.ax-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
    border-radius: var(--ax-pill); background: var(--ax-ink-2); border: 1px solid var(--ax-line);
    color: var(--ax-text-1); font: 500 var(--ax-13)/1 var(--ax-font); cursor: pointer;
}
/* Selected is not primary: a white outline, never a white fill */
.ax-chip[aria-pressed="true"], .ax-chip.is-selected { border-color: var(--ax-text-1); box-shadow: inset 0 0 0 1px var(--ax-text-1); }
.ax-status--ok { color: var(--ax-ok); }
.ax-status--warn { color: var(--ax-warn); }
.ax-status--danger { color: var(--ax-danger); }
.ax-note {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    background: var(--ax-ink-2); border: 1px solid var(--ax-line); color: var(--ax-text-1);
    font: 400 var(--ax-13)/1.5 var(--ax-font);
}
.ax-note--warn { border-color: rgba(245, 196, 107, .45); }
.ax-note--warn .ax-i { color: var(--ax-warn); }

/* ─── Dialog shell: a centred card, a bottom sheet under 600px ────────── */
dialog.ax-dialog {
    border: 1px solid var(--ax-line); border-radius: var(--ax-r-lg); padding: 0;
    background: var(--ax-ink-1); color: var(--ax-text-1); box-shadow: var(--ax-shadow);
    width: min(480px, calc(100vw - 32px)); max-height: min(85vh, 760px);
    font-family: var(--ax-font);
}
dialog.ax-dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ax-dialog__inner { display: flex; flex-direction: column; gap: 16px; padding: 24px; max-height: inherit; overflow: auto; }
.ax-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ax-dialog__title { margin: 0; font: 700 var(--ax-22)/1.2 var(--ax-font); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.ax-dialog__body { margin: 0; font: 400 var(--ax-15)/1.5 var(--ax-font); color: var(--ax-text-2); }
.ax-dialog__close {
    flex: none; width: 40px; height: 40px; margin: -8px -8px 0 0; border-radius: 50%;
    display: grid; place-items: center; background: none; border: 0; color: var(--ax-text-2); cursor: pointer;
}
.ax-dialog__close:hover { background: var(--ax-ink-2); color: var(--ax-text-1); }
.ax-dialog__close:focus-visible { outline: 2px solid var(--ax-action); }
.ax-dialog__actions { display: flex; flex-direction: column; gap: 10px; }
.ax-dialog__actions--row { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; }
.ax-dialog__grab { display: none; }

@media (max-width: 600px) {
    dialog.ax-dialog {
        width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0;
        max-height: 92vh; max-height: 92dvh;
    }
    .ax-dialog__inner { padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
    .ax-dialog__grab { display: block; width: 36px; height: 4px; border-radius: 9px; background: var(--ax-line-2); margin: 0 auto 2px; }
    .ax-dialog__actions--row { flex-direction: column-reverse; }
    .ax-dialog__actions--row .ax-btn { width: 100%; }
    dialog.ax-dialog[open] { animation: ax-sheet-in .22s ease-out; }
}
@keyframes ax-sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* While any dialog is open, nothing floats over it */
html.ax-dialog-open #cc-banner-root,
html.ax-dialog-open .cc-banner,
html.ax-dialog-open .kb-bubble { visibility: hidden !important; }

@media (prefers-reduced-motion: reduce) {
    dialog.ax-dialog[open] { animation: none; }
    .ax-btn { transition: none; }
}

/* ─── Site chrome: header, avatar menu ────────────────────────────────── */
/* Which links show: signed out (.ax-pub) vs signed in (.ax-auth). The server
   sets <html data-signed-in>; auth.js adds body.is-signed-in as a fallback. */
.ax-auth { display: none !important; }
html[data-signed-in] .ax-pub, body.is-signed-in .ax-pub { display: none !important; }
html[data-signed-in] .ax-auth, body.is-signed-in .ax-auth { display: revert !important; }
html[data-signed-in] .ax-nav .ax-auth, body.is-signed-in .ax-nav .ax-auth { display: inline-flex !important; }
html[data-signed-in] .ax-header__end .ax-auth, body.is-signed-in .ax-header__end .ax-auth { display: flex !important; }

body .header.ax-header {
    display: flex; align-items: center; gap: 8px; flex-wrap: nowrap;
    width: calc(100% - 32px); max-width: 1168px; margin: 16px auto 0; min-height: 60px;
    padding: 8px 10px 8px 22px; border-radius: 999px;
    background: rgba(22, 22, 24, .92) !important; border: 1px solid var(--ax-line) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35) !important;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    font-family: var(--ax-font); color: var(--ax-text-1);
}
body .header.ax-header .ax-header__logo {
    font: 800 19px/1 var(--ax-font) !important; letter-spacing: -.02em; color: #fff !important;
    text-decoration: none; margin-right: auto; white-space: nowrap;
}
.ax-nav { display: flex; align-items: center; gap: 2px; }
.ax-nav__link {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
    font: 500 var(--ax-15)/1 var(--ax-font); color: var(--ax-text-2) !important; text-decoration: none; white-space: nowrap;
}
.ax-nav__link:hover { color: var(--ax-text-1) !important; background: var(--ax-ink-2); }
.ax-nav__link[aria-current="page"] { color: var(--ax-text-1) !important; }
.ax-header__end { display: flex; align-items: center; gap: 6px; }
.ax-header__end .ax-header__start { margin-left: 4px; }
body .header.ax-header .user-dropdown { margin: 0 0 0 6px; }
body .header.ax-header .user-avatar {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ax-line-2);
    background: #3a3a3f; color: #fff; font: 600 13px/1 var(--ax-font);
    display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden;
}
body .header.ax-header .user-avatar:focus-visible { outline: 2px solid var(--ax-action); outline-offset: 2px; }
body .header.ax-header .ax-header__menu {
    width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center;
    background: none; border: 0; color: var(--ax-text-1); padding: 0; cursor: pointer;
}
@media (max-width: 860px) {
    .ax-nav { display: none; }
    body .header.ax-header { padding: 6px 6px 6px 18px; min-height: 56px; }
    body .header.ax-header .ax-header__signin { display: none !important; }
    body .header.ax-header .ax-header__menu { display: grid; }
    html[data-signed-in] body .header.ax-header .ax-header__menu,
    body.is-signed-in .header.ax-header .ax-header__menu { display: none !important; }
}

/* Avatar menu: dropdown on desktop, bottom sheet on phones. Opaque. */
.user-menu-backdrop { position: fixed; inset: 0; z-index: 9998; background: transparent; }
.ax-menu {
    position: fixed; z-index: 9999; width: 300px; padding: 8px;
    background: var(--ax-ink-1); border: 1px solid #2c2c31; border-radius: 18px; box-shadow: var(--ax-shadow);
    color: var(--ax-text-1); font-family: var(--ax-font); display: flex; flex-direction: column;
}
.ax-menu[hidden], .user-menu-backdrop[hidden] { display: none !important; }
.ax-menu__head { display: flex; align-items: center; gap: 12px; padding: 10px 6px 12px 10px; border-bottom: 1px solid #26262a; margin-bottom: 6px; }
.ax-menu__avatar { width: 36px; height: 36px; border-radius: 50%; background: #3a3a3f; display: grid; place-items: center; font: 600 13px var(--ax-font); color: #fff; flex: none; overflow: hidden; }
.ax-menu__avatar .user-menu-avatar-initials { font: inherit; color: inherit; }
.ax-menu__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ax-menu__name { font: 600 var(--ax-15)/1.3 var(--ax-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-menu__balance { font: 400 12.5px/1.3 var(--ax-font); color: var(--ax-text-3); }
.ax-menu .ax-dialog__close { margin: 0; width: 36px; height: 36px; }
.ax-menu__item {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px;
    border-radius: 10px; background: none; border: 0; color: var(--ax-text-1); text-decoration: none; text-align: left;
    font: 400 var(--ax-15)/1.2 var(--ax-font); cursor: pointer;
}
.ax-menu__item .ax-i { color: var(--ax-text-2); }
.ax-menu__item:hover, .ax-menu__item:focus-visible { background: #1f1f23; outline: none; }
.ax-menu__tag { margin-left: auto; font: 500 12px var(--ax-font); font-style: normal; color: var(--ax-text-2); }
.ax-menu__tag.ax-status--ok { color: var(--ax-ok); }
.ax-menu__rule { border: 0; border-top: 1px solid #26262a; margin: 6px 4px; }
.ax-menu__item--phone { display: none; }
@media (min-width: 601px) { .ax-menu .ax-dialog__close { display: none; } }
@media (max-width: 600px) {
    .user-menu-backdrop { background: rgba(0, 0, 0, .6); }
    .ax-menu {
        left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: 100%;
        border-radius: 22px 22px 0 0; border-bottom: 0; padding: 8px 10px calc(14px + env(safe-area-inset-bottom, 0px));
        max-height: 88vh; overflow: auto; animation: ax-sheet-in .22s ease-out;
    }
    .ax-menu__item { min-height: 50px; }
    .ax-menu__item--phone { display: flex; }
}

/* Phone drawer (signed out) */
dialog.ax-drawer { width: min(420px, calc(100vw - 32px)); }
.ax-drawer__logo { font: 800 19px/1 var(--ax-font); letter-spacing: -.02em; color: #fff; text-decoration: none; padding-top: 8px; }
.ax-drawer__links { display: flex; flex-direction: column; }
.ax-drawer__links .ax-menu__item { min-height: 48px; font-size: var(--ax-17); }

/* ─── Simple app pages (Account, Help, Start) ─────────────────────────── */
body.ax-page { margin: 0; background: var(--ax-ink-0); color: var(--ax-text-1); font-family: var(--ax-font); -webkit-font-smoothing: antialiased; }
.ax-main { width: 100%; max-width: 720px; margin: 0 auto; padding: 48px 16px 64px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.ax-main--narrow { max-width: 520px; }
.ax-h1 { margin: 8px 0 0; font: 700 var(--ax-32)/1.15 var(--ax-font); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.ax-h2 { margin: 0; font: 600 var(--ax-17)/1.3 var(--ax-font); color: #fff; }
.ax-lede { margin: 0; font: 400 var(--ax-17)/1.5 var(--ax-font); color: var(--ax-text-2); }
.ax-eyebrow { font: 600 12px/1 var(--ax-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ax-text-3); }
.ax-block { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ax-block--danger { border-color: #4a2420; }
.ax-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ax-muted { color: var(--ax-text-2); font-size: var(--ax-15); line-height: 1.5; margin: 0; }
.ax-small { color: var(--ax-text-3); font-size: var(--ax-13); line-height: 1.5; margin: 0; }
.ax-big { font: 700 var(--ax-32)/1 var(--ax-font); color: #fff; }
.ax-who { display: flex; align-items: center; gap: 14px; }
.ax-who__av { width: 44px; height: 44px; border-radius: 50%; background: #3a3a3f; display: grid; place-items: center; font: 600 15px var(--ax-font); color: #fff; flex: none; }
.ax-table-wrap { overflow-x: auto; }
.ax-table { width: 100%; border-collapse: collapse; font-size: var(--ax-15); }
.ax-table th { text-align: left; font: 500 var(--ax-13) var(--ax-font); color: var(--ax-text-3); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--ax-line); }
.ax-table td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--ax-line); color: var(--ax-text-1); font-variant-numeric: tabular-nums; }
.ax-table tr:last-child td { border-bottom: 0; }
.ax-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ax-steps li { display: flex; gap: 12px; align-items: center; color: var(--ax-text-1); font-size: var(--ax-15); }
.ax-steps li span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ax-line-2); display: grid; place-items: center; font: 500 12px var(--ax-font); color: var(--ax-text-2); flex: none; }
.ax-faq { border-top: 1px solid var(--ax-line); }
.ax-faq details { border-bottom: 1px solid var(--ax-line); }
.ax-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font: 500 var(--ax-17)/1.35 var(--ax-font); color: var(--ax-text-1); min-height: 44px; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary .ax-i { color: var(--ax-text-2); transition: transform .15s ease; }
.ax-faq details[open] summary .ax-i { transform: rotate(180deg); }
.ax-faq details p { margin: 0 0 16px; color: var(--ax-text-2); font-size: var(--ax-15); line-height: 1.6; max-width: 62ch; }
.ax-faq details p a { color: var(--ax-text-1); }
.ax-footer { max-width: 1168px; margin: 0 auto; padding: 28px 16px 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; border-top: 1px solid #1c1c1f; font: 400 var(--ax-13)/1.4 var(--ax-font); color: var(--ax-text-3); box-sizing: border-box; }
.ax-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.ax-footer a { color: var(--ax-text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.ax-footer a:hover { color: var(--ax-text-1); }
.ax-skeleton { color: var(--ax-text-3); }

.ax-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* State-dependent copy (dashboard): body.is-new-host / body.is-old-host */
.ax-new-only, .ax-old-only { display: none; }
body.is-new-host .ax-new-only { display: revert; }
body.is-old-host .ax-old-only { display: revert; }
.ax-show-sm { display: none; }
@media (max-width: 600px) { .ax-hide-sm { display: none; } .ax-show-sm { display: inline; } }

/* Sizing: padding never widens a component past its box */
.ax-btn, .ax-input, .ax-card, .ax-chip, .ax-menu, .ax-menu__item, .ax-dialog__inner, dialog.ax-dialog, body .header.ax-header, .ax-note { box-sizing: border-box; }
@media (max-width: 860px) {
    body .header.ax-header #nav-login.ax-header__signin { display: none !important; }
}
.ax-menu .user-menu-avatar-initials { position: static; width: auto; height: auto; background: none; font: inherit; color: inherit; display: inline; }
dialog.ax-drawer[open] { display: block; }
.ax-drawer .ax-dialog__inner { text-align: left; }
@media (max-width: 600px) { dialog.ax-drawer { width: 100%; max-width: 100%; } }

/* Slim footer: undo the marketing footer's box (footer.css styles every <footer>) */
footer.ax-footer { background: none; margin: 48px auto 0; padding: 28px 16px 36px; z-index: auto; width: 100%; max-width: 1168px; border-top: 1px solid #1c1c1f; }

/* ─── Overlay for the older div-based boxes (extend, download, cover) ───
   Their scripts toggle style.display; this makes them look like .ax-dialog. */
.ax-overlay {
    position: fixed !important; inset: 0 !important; z-index: 100000 !important;
    background: rgba(0, 0, 0, .6) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
}
.ax-overlay__card {
    width: min(480px, 100%); max-height: min(85vh, 760px); overflow: auto; box-shadow: var(--ax-shadow);
    color: var(--ax-text-1); font-family: var(--ax-font); padding: 0 !important; margin: 0 !important;
}
@media (max-width: 600px) {
    .ax-overlay { align-items: flex-end !important; padding: 0 !important; }
    .ax-overlay__card { width: 100%; border-radius: 22px 22px 0 0; border-bottom: 0; max-height: 92vh; }
}
html:has(.ax-overlay[style*="flex"]) #cc-banner-root,
html:has(.ax-overlay[style*="flex"]) .kb-bubble { visibility: hidden !important; }
.ax-table b { font-weight: 600; color: var(--ax-text-1); }

/* Legacy .modal boxes (download): card look and one white button */
.ax-legacy .modal-content { background: var(--ax-ink-1) !important; border: 1px solid var(--ax-line) !important; border-radius: var(--ax-r-lg) !important; color: var(--ax-text-1) !important; font-family: var(--ax-font) !important; box-shadow: var(--ax-shadow) !important; backdrop-filter: none !important; }
.ax-legacy .modal-header h2 { font: 700 22px/1.2 var(--ax-font) !important; color: #fff !important; text-transform: none !important; }
.ax-legacy .modal-body, .ax-legacy .modal-body p { color: var(--ax-text-2) !important; font: 400 15px/1.5 var(--ax-font) !important; }
.ax-legacy .ax-legacy-primary { background: var(--ax-action) !important; color: var(--ax-on-action) !important; border: 0 !important; border-radius: 999px !important; min-height: 44px; padding: 0 20px !important; font: 600 15px var(--ax-font) !important; }
.ax-legacy .ax-legacy-secondary { background: #2a2a2e !important; color: #fff !important; border: 1px solid var(--ax-line-2) !important; border-radius: 999px !important; min-height: 44px; padding: 0 20px !important; font: 600 15px var(--ax-font) !important; }
.ax-legacy .close-modal-btn { background: none !important; border: 0 !important; color: var(--ax-text-2) !important; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
@media (max-width: 600px) { .ax-legacy .modal-content { width: 100% !important; max-width: 100% !important; border-radius: 22px 22px 0 0 !important; margin: 0 !important; } }

/* My photos hero: sentence case, one white "Save all" */
#hero-download-btn.ax-btn, #hero-share-btn.ax-btn, #view-gallery-btn.ax-btn { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--ax-font) !important; }
#hero-download-btn.ax-btn--primary { background: var(--ax-action) !important; color: var(--ax-on-action) !important; border: 0 !important; }
#hero-share-btn.ax-btn--secondary, #view-gallery-btn.ax-btn--secondary { background: #2a2a2e !important; color: #fff !important; border: 1px solid var(--ax-line-2) !important; }

/* Guest pages: the AccioPix promo is quiet (the host's brand comes first) */
.album-promo { background: var(--ax-ink-1) !important; border: 1px solid var(--ax-line) !important; color: var(--ax-text-1) !important; box-shadow: none !important; backdrop-filter: none !important; }
.album-promo .album-promo-title { font-size: 17px !important; font-weight: 600 !important; color: var(--ax-text-1) !important; }
.album-promo .album-promo-text { color: var(--ax-text-2) !important; font-size: 14px !important; }
.album-promo .album-promo-cta { background: #2a2a2e !important; color: #fff !important; border: 1px solid var(--ax-line-2) !important; box-shadow: none !important; }
.album-promo .btn-feedback { background: none !important; border: 0 !important; text-decoration: underline; text-decoration-color: #55555b; color: var(--ax-text-2) !important; }

/* Marketing pages: "Start free" is white in the hero, the closing band and the phone's
   sticky bar; every repeat in between is grey (one white button per screen). */
.btn-action:not(.hero-buttons .btn-action):not(.closing-section .btn-action):not(.sticky-cta .btn-action):not(.hero-section .btn-action) {
    background: #2a2a2e !important; color: #fff !important; border: 1px solid #3a3a3f !important; box-shadow: none !important;
}
.btn-action { text-transform: none !important; }
.btn-pulse { animation: none !important; }

/* ─── Help chat (kb-widget.js) ─────────────────────────────────────────── */
.axh-launcher {
    position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 24px; z-index: 9990;
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: var(--ax-ink-2); color: var(--ax-text-1); border: 1px solid var(--ax-line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: opacity .2s ease, transform .2s ease;
}
.axh-launcher[hidden] { display: none; }
.axh-launcher.is-away, html.ax-dialog-open .axh-launcher, html.axh-open .axh-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }
.axh-launcher:focus-visible { outline: 2px solid var(--ax-action); outline-offset: 2px; }
.axh-panel {
    position: fixed; right: 24px; bottom: 24px; z-index: 9995; width: 400px; height: min(640px, calc(100vh - 48px));
    display: flex; flex-direction: column; background: var(--ax-ink-1); color: var(--ax-text-1);
    border: 1px solid var(--ax-line); border-radius: 16px; box-shadow: var(--ax-shadow); font-family: var(--ax-font); overflow: hidden;
}
.axh-panel[hidden] { display: none; }
.axh-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid #26262a; }
.axh-mark { width: 26px; height: 26px; border-radius: 7px; background: #fff; color: #000; display: grid; place-items: center; font: 800 13px var(--ax-font); flex: none; }
.axh-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.axh-title b { font: 600 15px var(--ax-font); }
.axh-title small { font: 400 12px var(--ax-font); color: var(--ax-text-2); }
.axh-head .ax-dialog__close { margin: 0; }
.axh-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.axh-greet { margin: 0; color: var(--ax-text-2); font-size: 14px; }
.axh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.axh-me, .axh-bot { max-width: 86%; padding: 9px 12px; font: 400 14px/1.45 var(--ax-font); white-space: pre-wrap; word-wrap: break-word; }
.axh-me { align-self: flex-end; background: var(--ax-action); color: var(--ax-on-action); border-radius: 16px 16px 4px 16px; }
.axh-bot { align-self: flex-start; background: var(--ax-ink-2); border: 1px solid var(--ax-line); border-radius: 16px 16px 16px 4px; }
.axh-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.axh-person { align-self: flex-start; font-size: 13px; margin-top: 2px; }
.axh-typing { display: inline-flex; gap: 4px; padding: 12px; }
.axh-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ax-text-3); animation: axh-dot 1s infinite ease-in-out; }
.axh-typing i:nth-child(2) { animation-delay: .15s; } .axh-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes axh-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.axh-ticket { border-top: 1px solid #26262a; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.axh-ticket[hidden] { display: none; }
.axh-ticket textarea.ax-input { min-height: 72px; padding: 10px 14px; resize: vertical; }
.axh-t-row { display: flex; align-items: center; gap: 14px; }
.axh-t-err { color: var(--ax-danger); }
.axh-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #26262a; margin: 0; }
.axh-in .ax-input { min-height: 44px; }
.axh-send { width: 44px; flex: none; border-radius: 12px; border: 1px solid var(--ax-line-2); background: #2a2a2e; color: var(--ax-text-3); display: grid; place-items: center; cursor: pointer; }
.axh-send.is-ready { background: var(--ax-action); color: var(--ax-on-action); border-color: var(--ax-action); }
.axh-send:disabled { cursor: default; }
.axh-nudge {
    position: fixed; right: 24px; bottom: 88px; z-index: 9991; max-width: 300px; padding: 14px; box-sizing: border-box;
    background: var(--ax-ink-1); border: 1px solid var(--ax-line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    display: flex; flex-direction: column; gap: 10px; font-family: var(--ax-font); color: var(--ax-text-1);
    animation: ax-sheet-in .22s ease-out;
}
.axh-nudge__t { display: flex; gap: 8px; align-items: flex-start; }
.axh-nudge__text { flex: 1; text-align: left; background: none; border: 0; padding: 0; color: var(--ax-text-1); font: 400 14px/1.45 var(--ax-font); cursor: pointer; }
.axh-nudge__x { flex: none; background: none; border: 0; color: var(--ax-text-2); cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; margin: -4px -4px 0 0; }
.axh-nudge .ax-btn { align-self: flex-start; }
html.ax-dialog-open .axh-nudge { display: none; }
@media (max-width: 600px) {
    .axh-launcher { right: 16px; width: 48px; height: 48px; }
    .axh-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .axh-nudge { right: 16px; left: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .axh-nudge { animation: none; } .axh-typing i { animation: none; opacity: .6; } }

/* ─── Motion: one style everywhere. Transform + opacity only (no layout, no blur
   animation), 160–220 ms, ease-out in, nothing bouncy. ───────────────────── */
:root { --ax-ease: cubic-bezier(.2, .8, .2, 1); }
@keyframes ax-pop-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ax-fade-in { from { opacity: 0; } to { opacity: 1; } }
dialog.ax-dialog[open] { animation: ax-pop-in .18s var(--ax-ease); }
dialog.ax-dialog[open]::backdrop { animation: ax-fade-in .18s ease-out; }
.ax-menu:not([hidden]) { animation: ax-pop-in .16s var(--ax-ease); transform-origin: top right; }
.axh-panel:not([hidden]) { animation: ax-pop-in .2s var(--ax-ease); transform-origin: bottom right; }
.ax-overlay[style*="flex"] .ax-overlay__card { animation: ax-pop-in .18s var(--ax-ease); }
@media (max-width: 600px) {
    dialog.ax-dialog[open], .ax-menu:not([hidden]), .ax-overlay[style*="flex"] .ax-overlay__card { animation: ax-sheet-in .22s var(--ax-ease); }
    .axh-panel:not([hidden]) { animation: ax-fade-in .18s ease-out; }
}
@keyframes ax-sheet-in { from { transform: translateY(32px); opacity: .5; } to { transform: none; opacity: 1; } }

/* Event cards: a small lift on hover instead of scaling the whole photo */
.event-grid-card { transition: transform .2s var(--ax-ease), box-shadow .2s var(--ax-ease) !important; }
.event-grid-card:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 32px rgba(0, 0, 0, .45) !important; }
.event-grid-card:active { transform: translateY(0) scale(.99) !important; transition-duration: .1s !important; }
.event-grid-card .event-grid-card__bg, .event-grid-card:hover .event-grid-card__bg, .event-grid-card:active .event-grid-card__bg { transform: none !important; transition: none !important; }
.ax-btn, .ax-chip, .ax-menu__item, .ax-nav__link { transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease; }

@media (prefers-reduced-motion: reduce) {
    dialog.ax-dialog[open], dialog.ax-dialog[open]::backdrop, .ax-menu:not([hidden]), .axh-panel:not([hidden]), .ax-overlay__card, .axh-nudge { animation: none !important; }
    .event-grid-card, .event-grid-card:hover { transition: none !important; transform: none !important; }
}

/* Dialogs centre themselves with margin: auto; styles.css's "* { margin: 0 }" was
   pinning them to the top-left corner. Phones keep the bottom sheet (margin-top: auto). */
dialog.ax-dialog { margin: auto; position: fixed; inset: 0; }
@media (max-width: 600px) { dialog.ax-dialog { margin: auto 0 0; } }
/* Quieter scrollbars and focus rings inside dialogs */
.ax-dialog textarea, .ax-dialog .ax-dialog__inner, .axh-log { scrollbar-width: thin; scrollbar-color: #3a3a3f transparent; }
.ax-dialog .ax-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 2px; }

/* ─── Album pages: no site header; the host's brand bar appears on scroll ─── */
html.ax-album .header, html.ax-album #header-placeholder { display: none !important; }
.ax-brandbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
    background: rgba(10, 10, 12, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ax-line); transform: translateY(-100%); opacity: 0;
    transition: transform .22s var(--ax-ease, ease-out), opacity .18s ease-out; pointer-events: none;
}
.ax-brandbar.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.ax-brandbar__in { max-width: 1168px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.ax-brandbar__brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--ax-text-1); text-decoration: none; }
.ax-brandbar__brand img, .ax-brandbar__brand .sb-logo-img, .ax-brandbar__brand .sb-logo-mask { max-height: 28px; }
.ax-brandbar__name { font: 700 17px/1.2 var(--ax-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-brandbar__event { font: 500 14px var(--ax-font); color: var(--ax-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; border-left: 1px solid var(--ax-line); }
@media (max-width: 600px) { .ax-brandbar__event { display: none; } .ax-brandbar__find span { display: none; } .ax-brandbar__find { width: 40px; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .ax-brandbar { transition: none; } }
.ax-brandbar__brand > :first-child { flex: none; max-width: 60vw; }
.ax-brandbar__brand > :first-child * { text-overflow: clip !important; }
/* Hidden brand bar must not be clickable or reachable by keyboard */
.ax-brandbar { visibility: hidden; transition: transform .22s var(--ax-ease, ease-out), opacity .18s ease-out, visibility 0s linear .22s; }
.ax-brandbar.is-shown { visibility: visible; transition: transform .22s var(--ax-ease, ease-out), opacity .18s ease-out, visibility 0s; }
