/* =========================================================
   PROJECT ARIA
   Premium AI Career Guide Interface
========================================================= */

/* =========================
   ROOT VARIABLES
========================= */

:root {
    --aria-primary: #6d4aff;
    --aria-primary-dark: #5531e8;
    --aria-primary-light: #8e76ff;
    --aria-accent: #b9acff;

    --aria-text-dark: #1d1b2b;
    --aria-text-medium: #69667a;
    --aria-text-light: #9a97a8;

    --aria-white: #ffffff;
    --aria-surface: rgba(255, 255, 255, 0.92);
    --aria-surface-soft: rgba(248, 246, 255, 0.94);

    --aria-border: rgba(109, 74, 255, 0.14);
    --aria-border-strong: rgba(109, 74, 255, 0.24);

    --aria-shadow-soft:
        0 12px 35px rgba(75, 54, 150, 0.13);

    --aria-shadow-medium:
        0 20px 55px rgba(58, 38, 130, 0.20);

    --aria-shadow-strong:
        0 28px 80px rgba(53, 34, 124, 0.28);

    --aria-radius-small: 12px;
    --aria-radius-medium: 18px;
    --aria-radius-large: 24px;
    --aria-radius-round: 999px;

    --aria-transition:
        0.32s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================
   MAIN WRAPPER
========================= */

.aria-assistant {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 99999;
    font-family: inherit;
    pointer-events: none;
}

.aria-assistant *,
.aria-assistant *::before,
.aria-assistant *::after {
    box-sizing: border-box;
}


/* =========================
   DESKTOP LAUNCHER
========================= */

.aria-launcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    width: 310px;
    min-height: 92px;
    padding: 14px 16px;

    border: 1px solid var(--aria-border);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.97),
            rgba(247, 243, 255, 0.95)
        );

    box-shadow:
        0 18px 45px rgba(71, 49, 145, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    cursor: pointer;
    pointer-events: auto;

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(45px)
        scale(0.96);

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow var(--aria-transition),
        border-color var(--aria-transition);

    overflow: hidden;
}

.aria-launcher::before {
    content: "";
    position: absolute;
    inset: -70px auto auto -50px;

    width: 150px;
    height: 150px;

    background:
        radial-gradient(
            circle,
            rgba(125, 93, 255, 0.20),
            transparent 68%
        );

    pointer-events: none;
}

.aria-launcher::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -60px;

    width: 145px;
    height: 145px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(178, 157, 255, 0.18),
            transparent 70%
        );

    pointer-events: none;
}

.aria-launcher.aria-visible {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(0)
        scale(1);
}

.aria-launcher.aria-floating {
    animation: ariaLauncherFloat 4.8s ease-in-out infinite;
}

.aria-launcher:hover {
    transform: translateY(-3px);

    border-color: var(--aria-border-strong);

    box-shadow:
        0 24px 55px rgba(71, 49, 145, 0.24),
        0 0 25px rgba(109, 74, 255, 0.10);
}

.aria-launcher:focus-visible {
    outline: 3px solid rgba(109, 74, 255, 0.22);
    outline-offset: 4px;
}

.aria-launcher-avatar {
    position: relative;
    flex: 0 0 62px;

    width: 62px;
    height: 62px;

    border-radius: 50%;

    padding: 3px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #dcd4ff
        );

    box-shadow:
        0 8px 18px rgba(90, 65, 173, 0.18);
}

.aria-launcher-avatar::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 3px;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: #38c976;
    border: 3px solid #ffffff;

    box-shadow:
        0 0 0 3px rgba(56, 201, 118, 0.12);
}

.aria-launcher-avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center top;

    border-radius: 50%;
}

.aria-launcher-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    flex: 1;

    text-align: left;
}

.aria-launcher-name {
    margin-bottom: 1px;

    color: var(--aria-text-dark);

    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
}

.aria-launcher-role {
    margin-bottom: 8px;

    color: var(--aria-primary);

    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
}

.aria-launcher-message {
    width: 100%;

    color: var(--aria-text-medium);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.aria-launcher-message.aria-message-changing {
    opacity: 0;
    transform: translateY(4px);
}

.aria-launcher-icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--aria-primary),
            var(--aria-primary-dark)
        );

    color: #ffffff;

    font-size: 15px;

    box-shadow:
        0 8px 18px rgba(91, 59, 222, 0.26);

    transition:
        transform var(--aria-transition),
        box-shadow var(--aria-transition);
}

.aria-launcher:hover .aria-launcher-icon {
    transform: scale(1.06);

    box-shadow:
        0 11px 22px rgba(91, 59, 222, 0.33);
}


/* =========================
   MOBILE LAUNCHER
========================= */

.aria-mobile-launcher {
    display: none;

    position: relative;

    width: 66px;
    height: 66px;

    padding: 4px;

    border: none;
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #e8e2ff
        );

    box-shadow:
        0 16px 34px rgba(65, 43, 145, 0.26),
        0 0 0 1px rgba(109, 74, 255, 0.12);

    cursor: pointer;
    pointer-events: auto;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(20px)
        scale(0.88);

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.aria-mobile-launcher.aria-visible {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}

.aria-mobile-launcher img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center top;

    border-radius: 50%;
}

.aria-mobile-notification {
    position: absolute;
    right: 1px;
    top: 2px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #7b59ff;
    border: 3px solid #ffffff;

    box-shadow:
        0 0 0 4px rgba(123, 89, 255, 0.13);
}


/* =========================
   CHAT WINDOW
========================= */

.aria-chat-window {
    position: absolute;
    right: 0;
    bottom: 0;

    width: 390px;
    height: min(630px, calc(100vh - 56px));

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(109, 74, 255, 0.16);
    border-radius: var(--aria-radius-large);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.97),
            rgba(249, 247, 255, 0.96)
        );

    box-shadow: var(--aria-shadow-strong);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(24px)
        scale(0.92);

    transform-origin: bottom right;

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.aria-chat-window.aria-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* =========================
   CHAT HEADER
========================= */

.aria-chat-header {
    position: relative;

    min-height: 98px;
    padding: 18px 18px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    background:
        linear-gradient(
            135deg,
            #7050ff 0%,
            #5b3ce7 55%,
            #4930c9 100%
        );

    color: #ffffff;
}

.aria-chat-header::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -35px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.19),
            transparent 68%
        );

    pointer-events: none;
}

.aria-chat-header::after {
    content: "";
    position: absolute;
    left: 65px;
    bottom: -65px;

    width: 150px;
    height: 110px;

    background:
        radial-gradient(
            ellipse,
            rgba(255, 255, 255, 0.08),
            transparent 70%
        );

    pointer-events: none;
}

.aria-header-profile {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.aria-header-avatar {
    position: relative;
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    padding: 3px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(219, 209, 255, 0.94)
        );

    box-shadow:
        0 10px 24px rgba(29, 16, 91, 0.25);
}

.aria-header-avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center top;

    border-radius: 50%;
}

.aria-header-details {
    min-width: 0;
}

.aria-header-name-row {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 2px;
}

.aria-header-name-row h2 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;
    font-weight: 750;
    line-height: 1.2;
}

.aria-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;
    height: 19px;
    padding: 0 7px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--aria-radius-round);

    background: rgba(255, 255, 255, 0.14);

    color: rgba(255, 255, 255, 0.96);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.aria-header-details p {
    margin: 0 0 5px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.aria-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 11px;
    font-weight: 550;
}

.aria-availability-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #75f2a5;

    box-shadow:
        0 0 0 4px rgba(117, 242, 165, 0.13);
}

.aria-close-button {
    position: relative;
    z-index: 3;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.11);

    color: #ffffff;

    font-size: 17px;

    cursor: pointer;

    transition:
        background var(--aria-transition),
        transform var(--aria-transition),
        border-color var(--aria-transition);
}

.aria-close-button:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.28);

    transform: rotate(4deg) scale(1.04);
}

.aria-close-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.30);
    outline-offset: 3px;
}


/* =========================
   CHAT BODY
========================= */

.aria-chat-body {
    flex: 1;

    padding: 18px 16px;

    overflow-y: auto;
    overscroll-behavior: contain;

    background:
        linear-gradient(
            180deg,
            rgba(250, 248, 255, 0.92),
            rgba(255, 255, 255, 0.98)
        );

    scrollbar-width: thin;
    scrollbar-color:
        rgba(109, 74, 255, 0.22)
        transparent;
}

.aria-chat-body::-webkit-scrollbar {
    width: 5px;
}

.aria-chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.aria-chat-body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(109, 74, 255, 0.20);
}


/* =========================
   WELCOME AREA
========================= */

.aria-welcome-area {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;
    padding: 14px;

    border: 1px solid rgba(109, 74, 255, 0.10);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(240, 236, 255, 0.88),
            rgba(252, 251, 255, 0.94)
        );

    box-shadow:
        0 8px 22px rgba(82, 59, 151, 0.07);
}

.aria-welcome-avatar {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    overflow: hidden;

    background: #e8e1ff;

    box-shadow:
        0 5px 14px rgba(85, 60, 165, 0.15);
}

.aria-welcome-avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center top;
}

.aria-welcome-text {
    min-width: 0;
}

.aria-welcome-text span {
    display: block;

    margin-bottom: 3px;

    color: var(--aria-primary);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.aria-welcome-text h3 {
    margin: 0 0 4px;

    color: var(--aria-text-dark);

    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
}

.aria-welcome-text p {
    margin: 0;

    color: var(--aria-text-medium);

    font-size: 11px;
    line-height: 1.55;
}


/* =========================
   MESSAGE LAYOUT
========================= */

.aria-message {
    width: 100%;

    display: flex;
    align-items: flex-end;
    gap: 9px;

    margin-bottom: 16px;

    animation:
        ariaMessageAppear
        0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.aria-message-assistant {
    justify-content: flex-start;
}

.aria-message-user {
    justify-content: flex-end;
}

.aria-message-avatar {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    overflow: hidden;

    background: #e6e0ff;

    box-shadow:
        0 5px 12px rgba(79, 55, 157, 0.13);
}

.aria-message-avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center top;
}

.aria-message-content {
    max-width: 78%;
}

.aria-message-user .aria-message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.aria-message-bubble {
    padding: 12px 14px;

    border-radius:
        17px
        17px
        17px
        5px;

    background:
        linear-gradient(
            145deg,
            #f1edff,
            #faf8ff
        );

    border: 1px solid rgba(109, 74, 255, 0.10);

    color: var(--aria-text-dark);

    box-shadow:
        0 7px 18px rgba(73, 53, 138, 0.07);

    font-size: 13px;
    line-height: 1.58;
}

.aria-message-user .aria-message-bubble {
    border: none;

    border-radius:
        17px
        17px
        5px
        17px;

    background:
        linear-gradient(
            145deg,
            var(--aria-primary),
            var(--aria-primary-dark)
        );

    color: #ffffff;

    box-shadow:
        0 9px 20px rgba(88, 56, 211, 0.20);
}

.aria-message-bubble p {
    margin: 0 0 8px;
}

.aria-message-bubble p:last-child {
    margin-bottom: 0;
}

.aria-message-time {
    display: block;

    margin-top: 5px;
    padding: 0 3px;

    color: var(--aria-text-light);

    font-size: 9px;
    line-height: 1.2;
}


/* =========================
   THINKING INDICATOR
========================= */

.aria-typing-indicator {
    display: none;
    align-items: flex-end;
    gap: 9px;

    margin: 2px 0 15px;
}

.aria-typing-indicator.aria-visible {
    display: flex;

    animation:
        ariaMessageAppear
        0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.aria-typing-bubble {
    position: relative;

    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 40px;
    padding: 11px 14px;

    border: 1px solid rgba(109, 74, 255, 0.10);
    border-radius:
        16px
        16px
        16px
        5px;

    background:
        linear-gradient(
            145deg,
            #f2eeff,
            #fbfaff
        );

    color: var(--aria-text-medium);

    box-shadow:
        0 7px 18px rgba(73, 53, 138, 0.07);

    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;

    overflow: hidden;
}

.aria-thinking-symbol {
    position: relative;

    flex: 0 0 9px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--aria-primary-light);

    box-shadow:
        0 0 0 4px rgba(109, 74, 255, 0.10);

    animation:
        ariaThinkingPulse
        1.35s ease-in-out infinite;
}

.aria-thinking-text {
    display: block;

    min-width: 0;

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 0.20s ease,
        transform 0.20s ease;
}

.aria-thinking-text.aria-thinking-changing {
    opacity: 0;
    transform: translateY(4px);
}


/* =========================
   QUICK SUGGESTIONS
========================= */

.aria-suggestions {
    display: flex;
    gap: 8px;

    padding: 11px 14px 12px;

    overflow-x: auto;

    border-top:
        1px solid rgba(109, 74, 255, 0.08);

    background:
        rgba(255, 255, 255, 0.94);

    scrollbar-width: none;
}

.aria-suggestions::-webkit-scrollbar {
    display: none;
}

.aria-suggestion-button {
    flex: 0 0 auto;

    min-height: 34px;
    padding: 8px 12px;

    border: 1px solid rgba(109, 74, 255, 0.14);
    border-radius: var(--aria-radius-round);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f4ff
        );

    color: #5c4a8e;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background var(--aria-transition),
        color var(--aria-transition),
        border-color var(--aria-transition),
        transform var(--aria-transition),
        box-shadow var(--aria-transition);
}

.aria-suggestion-button:hover {
    border-color: rgba(109, 74, 255, 0.27);

    background:
        linear-gradient(
            145deg,
            #f2edff,
            #ffffff
        );

    color: var(--aria-primary);

    transform: translateY(-1px);

    box-shadow:
        0 7px 15px rgba(85, 59, 160, 0.09);
}


/* =========================
   CHAT FOOTER
========================= */

.aria-chat-footer {
    padding: 12px 14px 11px;

    border-top:
        1px solid rgba(109, 74, 255, 0.10);

    background:
        rgba(255, 255, 255, 0.97);

    box-shadow:
        0 -7px 20px rgba(67, 45, 137, 0.04);
}

.aria-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;

    min-height: 52px;
    padding: 6px 6px 6px 15px;

    border: 1px solid rgba(109, 74, 255, 0.16);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf8ff
        );

    transition:
        border-color var(--aria-transition),
        box-shadow var(--aria-transition),
        background var(--aria-transition);
}

.aria-chat-form:focus-within {
    border-color: rgba(109, 74, 255, 0.38);

    box-shadow:
        0 0 0 4px rgba(109, 74, 255, 0.08);

    background: #ffffff;
}

.aria-message-input {
    flex: 1;

    width: 100%;
    min-height: 38px;
    max-height: 110px;

    padding: 9px 0 7px;

    border: none;
    outline: none;
    resize: none;

    background: transparent;

    color: var(--aria-text-dark);

    font-family: inherit;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.45;

    overflow-y: auto;
}

.aria-message-input::placeholder {
    color: #aaa6b7;
}

.aria-send-button {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--aria-primary),
            var(--aria-primary-dark)
        );

    color: #ffffff;

    font-size: 14px;

    box-shadow:
        0 8px 16px rgba(88, 56, 211, 0.23);

    cursor: pointer;

    transition:
        transform var(--aria-transition),
        box-shadow var(--aria-transition),
        opacity var(--aria-transition);
}

.aria-send-button:hover:not(:disabled) {
    transform:
        translateY(-2px)
        scale(1.03);

    box-shadow:
        0 11px 21px rgba(88, 56, 211, 0.31);
}

.aria-send-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

.aria-footer-note {
    margin: 8px 0 0;

    color: var(--aria-text-light);

    text-align: center;

    font-size: 9px;
    line-height: 1.35;
}


/* =========================
   BACKDROP
========================= */

.aria-chat-backdrop {
    position: fixed;
    inset: 0;

    z-index: -1;

    display: none;

    background:
        rgba(22, 16, 47, 0.30);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.aria-chat-backdrop.aria-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================
   ACCESSIBILITY
========================= */

.aria-visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================
   BODY LOCK
========================= */

body.aria-chat-open {
    overflow: hidden;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes ariaLauncherFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

}

@keyframes ariaMessageAppear {

    from {
        opacity: 0;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes ariaThinkingPulse {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.82);
        box-shadow:
            0 0 0 4px rgba(109, 74, 255, 0.08);
    }

    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow:
            0 0 0 7px rgba(109, 74, 255, 0.13);
    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .aria-assistant {
        right: 20px;
        bottom: 20px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .aria-assistant {
        right: 16px;
        bottom: 16px;
    }

    .aria-launcher {
        display: none;
    }

    .aria-mobile-launcher {
        display: block;
    }

    .aria-chat-window {
        position: fixed;

        left: 14px;
        right: 14px;
        top: 14px;
        bottom: 14px;

        width: auto;
        height: auto;

        max-width: none;
        max-height: none;

        border-radius: 22px;

        transform:
            translateY(26px)
            scale(0.96);

        transform-origin: bottom center;
    }

    .aria-chat-window.aria-open {
        transform:
            translateY(0)
            scale(1);
    }

    .aria-chat-header {
        min-height: 90px;
        padding:
            calc(15px + env(safe-area-inset-top))
            16px
            15px;
    }

    .aria-header-avatar {
        flex-basis: 52px;

        width: 52px;
        height: 52px;
    }

    .aria-header-name-row h2 {
        font-size: 18px;
    }

    .aria-close-button {
        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }

    .aria-chat-body {
        padding: 16px 13px;
    }

    .aria-welcome-area {
        padding: 12px;
        margin-bottom: 17px;
    }

    .aria-welcome-avatar {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .aria-welcome-text h3 {
        font-size: 13px;
    }

    .aria-welcome-text p {
        font-size: 10.5px;
    }

    .aria-message-content {
        max-width: 82%;
    }

    .aria-message-bubble {
        font-size: 12.5px;
    }

    .aria-suggestions {
        padding: 10px 12px;
    }

    .aria-chat-footer {
        padding:
            11px
            12px
            calc(10px + env(safe-area-inset-bottom));
    }

    .aria-chat-backdrop {
        display: block;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

    .aria-chat-window {
        left: 8px;
        right: 8px;
        top: 8px;
        bottom: 8px;

        border-radius: 18px;
    }

    .aria-chat-header {
        padding-left: 13px;
        padding-right: 13px;
    }

    .aria-header-avatar {
        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }

    .aria-header-name-row h2 {
        font-size: 17px;
    }

    .aria-chat-body {
        padding-left: 11px;
        padding-right: 11px;
    }

    .aria-message-content {
        max-width: 84%;
    }

    .aria-suggestion-button {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 10.5px;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .aria-launcher,
    .aria-mobile-launcher,
    .aria-chat-window,
    .aria-message,
    .aria-thinking-symbol {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

}