.ac-amplify-launcher {
    --ac-navy: #00324B;
    --ac-teal: #006F71;
    --ac-accent: #00A3A3;
    --ac-panel: #FFFFFF;
    --ac-border: #D9DEDC;
    --ac-muted: #52646A;
    --ac-info: #E8F4F3;
    --ac-viewport-height: 100vh;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483000;
    color: var(--ac-navy);
    font-family: "Neulis Sans", Arial, sans-serif;
}

.ac-amplify-launcher,
.ac-amplify-launcher * { box-sizing: border-box; }

.ac-amplify-launcher [hidden] { display: none !important; }

@supports (height: 100dvh) {
    .ac-amplify-launcher { --ac-viewport-height: 100dvh; }
}

.ac-amplify-launcher-panel {
    position: absolute;
    inset: auto 0 0 auto;
    width: min(420px, calc(100vw - 48px));
    max-width: none;
    height: min(620px, calc(var(--ac-viewport-height) - 48px));
    max-height: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    background: var(--ac-panel);
    border: 1px solid var(--ac-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 50, 75, 0.17);
}

.ac-amplify-launcher-panel[open] { display: flex; }

@media (width > 480px) {
    .ac-amplify-launcher[data-expanded="true"] .ac-amplify-launcher-panel {
        width: min(640px, calc(100vw - 48px));
        height: min(800px, calc(var(--ac-viewport-height) - 48px));
    }
}

.ac-amplify-launcher-panel-header {
    display: flex;
    min-height: 54px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--ac-border);
    background: var(--ac-panel);
    padding: 4px 8px 4px 12px;
}

.ac-amplify-launcher-panel-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.ac-amplify-launcher-panel-title p {
    margin: 0;
    color: var(--ac-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.ac-amplify-launcher-avatar { width: 64px; flex: none; }
.ac-amplify-launcher-avatar img { display: block; width: 100%; height: auto; }
.ac-amplify-launcher-controls { display: flex; flex: none; }

#ac-amplify-launcher .ac-amplify-launcher-control {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ac-muted);
    cursor: pointer;
}

#ac-amplify-launcher .ac-amplify-launcher-control:hover {
    background: var(--ac-info);
    color: var(--ac-navy);
}

.ac-amplify-launcher-icon {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ac-amplify-launcher-expand svg:last-child,
.ac-amplify-launcher[data-expanded="true"] #ac-amplify-launcher-expand svg:first-child { display: none; }
.ac-amplify-launcher[data-expanded="true"] #ac-amplify-launcher-expand svg:last-child { display: block; }

.ac-amplify-launcher-frame {
    width: 100%;
    min-height: 0;
    flex: 1;
    border: 0;
    background: var(--ac-panel);
}

.ac-amplify-launcher-status {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--ac-panel);
    color: var(--ac-muted);
    font-size: 14px;
    text-align: center;
}

.ac-amplify-launcher-unavailable {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    gap: 16px;
    overflow: auto;
    padding: 24px;
    text-align: center;
}

.ac-amplify-launcher-unavailable > .ac-amplify-launcher-icon {
    width: 54px;
    height: 54px;
    color: var(--ac-teal);
    fill: var(--ac-info);
    stroke-width: 1.5;
}

.ac-amplify-launcher-unavailable h2 {
    margin: 0 0 8px;
    color: var(--ac-navy);
    font: 700 clamp(20px, 5vw, 24px)/1.25 "Neulis Sans", Arial, sans-serif;
}

#ac-amplify-launcher .ac-amplify-launcher-sign-in {
    margin: 0;
    color: var(--ac-muted);
    font-size: 14px;
    line-height: 1.5;
}

#ac-amplify-launcher .ac-amplify-launcher-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    width: min(100%, 280px);
    min-height: 46px;
    margin: 0 auto;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--ac-teal);
    color: white;
    cursor: pointer;
    font: 700 16px/1 "Neulis Sans", Arial, sans-serif;
}

#ac-amplify-launcher .ac-amplify-launcher-retry:hover { background: var(--ac-navy); }

#ac-amplify-launcher .ac-amplify-launcher-unavailable a {
    color: var(--ac-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#ac-amplify-launcher #ac-amplify-launcher-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    font-size: 16px;
}

#ac-amplify-launcher .ac-amplify-launcher-button {
    appearance: none;
    display: inline-flex;
    min-height: 48px;
    margin: 0 56px 0 0;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--ac-accent);
    border-radius: 999px;
    background: var(--ac-navy);
    color: white;
    cursor: pointer;
    font: 700 16px/1 "Neulis Sans", Arial, sans-serif;
    letter-spacing: 0;
    opacity: 1;
    box-shadow: 0 3px 10px rgba(0, 50, 75, 0.22);
}

#ac-amplify-launcher .ac-amplify-launcher-button:hover { background: var(--ac-teal); }

.ac-amplify-launcher[data-open="true"] .ac-amplify-launcher-button { visibility: hidden; }

#ac-amplify-launcher :is(button, a):focus-visible {
    outline: 2px solid var(--ac-teal);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .ac-amplify-launcher {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .ac-amplify-launcher .ac-amplify-launcher-panel {
        position: fixed;
        inset: max(8px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right))
               max(8px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        width: auto;
        height: auto;
    }

    .ac-amplify-launcher-panel::backdrop { background: rgba(0, 24, 36, 0.58); }
    html:has(#ac-amplify-launcher-panel:modal) { overflow: hidden; }
    .ac-amplify-launcher-panel-title .ac-amplify-launcher-avatar,
    #ac-amplify-launcher #ac-amplify-launcher-expand { display: none; }
}
