.csd-mobile-install-prompt,
.csd-mobile-install-prompt *,
.csd-web-app-menu,
.csd-web-app-menu *,
.csd-web-app-update-prompt,
.csd-web-app-update-prompt *,
.csd-voice-alert-prompt,
.csd-voice-alert-prompt *,
.csd-passkey-setup-prompt,
.csd-passkey-setup-prompt * {
    box-sizing: border-box;
}

.csd-web-app-menu {
    --csd-web-app-menu-surface: #ffffff;
    --csd-web-app-menu-border: #dce6f0;
    --csd-web-app-menu-text: #0f172a;
    --csd-web-app-menu-muted: #475569;
    --csd-web-app-menu-primary: #0f172a;
    --csd-web-app-menu-dark: #1d2327;
    --csd-web-app-menu-dark-subtle: #2c3338;
    --csd-web-app-menu-dark-border: #111820;
    --csd-web-app-menu-dark-text: #f0f0f1;
    --csd-web-app-menu-dark-muted: #c3c4c7;
    --csd-web-app-menu-active: #2271b1;
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 100002;
    max-width: calc(100vw - 28px);
    font-family: inherit;
}

.csd-web-app-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--csd-web-app-menu-primary);
    border-radius: 999px;
    background: var(--csd-web-app-menu-primary);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
    cursor: pointer;
}

.csd-web-app-menu-toggle span {
    position: relative;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.csd-web-app-menu-toggle span::before,
.csd-web-app-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 15px;
    height: 2px;
    border-radius: inherit;
    background: currentColor;
}

.csd-web-app-menu-toggle span::before {
    top: -5px;
}

.csd-web-app-menu-toggle span::after {
    top: 5px;
}

.csd-web-app-menu-toggle strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.csd-web-app-menu-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    gap: 4px;
    width: min(270px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(70vh, 460px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--csd-web-app-menu-border);
    border-radius: 14px;
    background: var(--csd-web-app-menu-surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.csd-web-app-menu-panel[hidden] {
    display: none !important;
}

.csd-web-app-menu-section {
    display: block;
    padding: 8px 10px 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.csd-web-app-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--csd-web-app-menu-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    text-align: left;
}

.csd-web-app-menu-link:hover,
.csd-web-app-menu-link:focus {
    background: #f1f5f9;
    color: var(--csd-web-app-menu-text);
    outline: none;
}

.csd-web-app-menu-link.is-active {
    background: var(--csd-web-app-menu-primary);
    color: #ffffff;
}

.csd-web-app-menu-label {
    display: block;
    min-width: 0;
}

.csd-web-app-menu-icon {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: currentColor;
}

.csd-web-app-menu-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.csd-web-app-menu.is-unified .csd-web-app-menu-toggle {
    border-color: #111827;
    background: #111827;
}

.csd-web-app-menu.is-unified .csd-web-app-menu-panel {
    width: min(286px, calc(100vw - 28px));
    max-height: min(78vh, 560px);
    padding: 10px;
    border-radius: 16px;
}

.csd-web-app-menu.is-unified .csd-web-app-menu-section {
    padding: 9px 10px 4px;
    color: #64748b;
}

.csd-web-app-menu.is-unified .csd-web-app-menu-link {
    min-height: 42px;
    border-radius: 8px;
}

.csd-web-app-menu.is-unified .csd-web-app-menu-link.is-active {
    background: #111827;
}

.csd-web-app-menu.is-unified .csd-web-app-menu-link.is-active .csd-web-app-menu-icon {
    color: #ffffff;
}

.csd-web-app-update-prompt {
    --csd-install-surface: #ffffff;
    --csd-install-border: #dce6f0;
    --csd-install-text: #0f172a;
    --csd-install-muted: #475569;
    --csd-install-primary: #0f172a;
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
    left: max(14px, env(safe-area-inset-left));
    z-index: 100003;
    display: grid;
    gap: 10px;
    max-width: 390px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid var(--csd-install-border);
    border-radius: 8px;
    background: var(--csd-install-surface);
    color: var(--csd-install-text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.csd-web-app-update-prompt .csd-mobile-install-main {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
}

@media (max-width: 782px) {
    body.csd-web-app-menu-active {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    body.csd-web-app-menu-active :is(footer, .site-footer, #colophon, #wpfooter) {
        padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    body.csd-web-app-menu-active .csd-client-nav {
        gap: 0;
        min-height: 0;
        margin: 0;
    }

    body.csd-web-app-menu-active .csd-client-nav > .csd-client-nav-link,
    body.csd-web-app-menu-active .csd-client-nav > .csd-client-account-security > .csd-client-account-security-button {
        display: none !important;
    }

    body.csd-web-app-menu-active .csd-client-nav > .csd-client-account-security {
        width: 0;
        min-width: 0;
        height: 0;
        margin: 0;
        overflow: visible;
    }
}

.csd-web-app-update-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.csd-web-app-update-icon::before,
.csd-web-app-update-icon::after {
    content: "";
    position: absolute;
    border-color: #ffffff;
}

.csd-web-app-update-icon::before {
    inset: 10px;
    border-style: solid;
    border-width: 2px;
    border-left-color: transparent;
    border-radius: 999px;
}

.csd-web-app-update-icon::after {
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-style: solid solid none none;
    border-width: 2px;
    transform: rotate(45deg);
}

.csd-mobile-install-prompt,
.csd-voice-alert-prompt,
.csd-passkey-setup-prompt {
    --csd-install-surface: #ffffff;
    --csd-install-border: #dce6f0;
    --csd-install-text: #0f172a;
    --csd-install-muted: #475569;
    --csd-install-primary: #0f172a;
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    z-index: 100000;
    display: grid;
    gap: 12px;
    max-width: 430px;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid var(--csd-install-border);
    border-radius: 14px;
    background: var(--csd-install-surface);
    color: var(--csd-install-text);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.csd-voice-alert-prompt {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(430px, calc(100vw - 32px));
    margin: 0;
    transform: translate(-50%, -50%);
    box-shadow: 0 26px 72px rgba(15, 23, 42, 0.24), 0 0 0 9999px rgba(15, 23, 42, 0.38);
}

.csd-mobile-install-main,
.csd-voice-alert-main,
.csd-passkey-setup-main {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.csd-mobile-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.csd-passkey-setup-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0f172a;
    position: relative;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.csd-passkey-setup-icon::before {
    content: "";
    position: absolute;
    inset: 11px 13px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-bottom-width: 3px;
    border-radius: 999px;
}

.csd-voice-alert-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.csd-voice-alert-icon::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 14px;
    width: 10px;
    height: 16px;
    border-radius: 3px 0 0 3px;
    background: #ffffff;
    clip-path: polygon(0 28%, 42% 28%, 100% 0, 100% 100%, 42% 72%, 0 72%);
}

.csd-voice-alert-icon::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 12px;
    width: 12px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
}

.csd-mobile-install-copy,
.csd-voice-alert-copy,
.csd-passkey-setup-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.csd-mobile-install-copy strong,
.csd-voice-alert-copy strong,
.csd-passkey-setup-copy strong {
    color: var(--csd-install-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.22;
}

.csd-mobile-install-copy span,
.csd-voice-alert-copy span,
.csd-passkey-setup-copy span {
    color: var(--csd-install-muted);
    font-size: 13px;
    line-height: 1.35;
}

.csd-voice-alert-copy em,
.csd-passkey-setup-copy em {
    color: #475569;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
}

.csd-voice-alert-copy em.is-error,
.csd-passkey-setup-copy em.is-error {
    color: #b91c1c;
}

.csd-voice-alert-sound-choice {
    display: grid;
    gap: 6px;
}

.csd-voice-alert-sound-choice label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.csd-voice-alert-sound-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.csd-voice-alert-sound-controls select {
    min-width: 0;
    min-height: 38px;
    width: 100%;
    padding: 7px 32px 7px 10px;
    border: 1px solid var(--csd-install-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--csd-install-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.csd-mobile-install-actions,
.csd-voice-alert-actions,
.csd-passkey-setup-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
    gap: 8px;
}

.csd-mobile-install-prompt .button,
.csd-web-app-update-prompt .button,
.csd-voice-alert-prompt .button,
.csd-passkey-setup-prompt .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--csd-install-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--csd-install-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.csd-mobile-install-prompt .button-primary,
.csd-web-app-update-prompt .button-primary,
.csd-voice-alert-prompt .button-primary,
.csd-passkey-setup-prompt .button-primary {
    border-color: var(--csd-install-primary);
    background: var(--csd-install-primary);
    color: #ffffff;
}

.csd-voice-alert-prompt .button:disabled,
.csd-passkey-setup-prompt .button:disabled {
    cursor: progress;
    opacity: 0.72;
}

@media (min-width: 720px) {
    .csd-web-app-update-prompt {
        right: 24px;
        left: auto;
        width: min(390px, calc(100vw - 48px));
        margin: 0;
    }

    .csd-mobile-install-prompt,
    .csd-voice-alert-prompt,
    .csd-passkey-setup-prompt {
        right: 24px;
        left: auto;
        bottom: 24px;
        width: 430px;
    }

    .csd-voice-alert-prompt {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

body.csd-web-app-menu-active .csd-mobile-install-prompt,
body.csd-web-app-menu-active .csd-passkey-setup-prompt {
    top: max(14px, env(safe-area-inset-top));
    bottom: auto;
}

@media (max-width: 782px) {
    .csd-mobile-install-prompt,
    .csd-passkey-setup-prompt {
        top: max(14px, env(safe-area-inset-top));
        bottom: auto;
    }
}

@media (min-width: 720px) {
    body.csd-web-app-menu-active .csd-mobile-install-prompt,
    body.csd-web-app-menu-active .csd-passkey-setup-prompt {
        top: max(24px, env(safe-area-inset-top));
        bottom: auto;
    }
}
