.isyaka-ai-root {
    position: relative;
    width: 0;
    height: 0;
    z-index: 999999;
    pointer-events: none;
    font-family: inherit;
}

.isyaka-ai-launcher {
    position: fixed;
    z-index: 999999;
    right: 24px;
    bottom: 96px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #111;
    color: #fff;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .24),
        0 0 0 1px rgba(0, 0, 0, .04);
    cursor: pointer;
    pointer-events: auto;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .16s ease,
        visibility .16s ease;
}

.isyaka-ai-launcher:hover {
    transform: translateY(-2px);
    box-shadow:
        0 17px 40px rgba(0, 0, 0, .29),
        0 0 0 1px rgba(0, 0, 0, .04);
}

.isyaka-ai-launcher:focus-visible,
.isyaka-ai-header-action:focus-visible,
.isyaka-ai-starter:focus-visible {
    outline: 3px solid #f2e96b;
    outline-offset: 2px;
}

.isyaka-ai-root.is-panel-open .isyaka-ai-launcher {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.isyaka-ai-panel {
    position: fixed;
    z-index: 999999;
    right: 24px;
    bottom: 24px;
    width: min(448px, calc(100vw - 48px));
    height: min(720px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .24),
        0 4px 18px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.985);
    transform-origin: bottom right;
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.isyaka-ai-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.isyaka-ai-header {
    position: relative;
    z-index: 10;
    flex: 0 0 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px 0 16px;
    background: #0d0d0d;
    color: #fff;
}

.isyaka-ai-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.isyaka-ai-brand-mark {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: #111;
}

.isyaka-ai-brand-mark svg {
    display: block;
}

.isyaka-ai-brand-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.isyaka-ai-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.isyaka-ai-header-action {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.isyaka-ai-header-action:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.isyaka-ai-chat-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.isyaka-ai-chat-wrap {
    width: 100%;
    height: 100%;
    background: #fff;
}

#isyaka-ai-chatkit {
    display: block;
    width: 100%;
    height: 100%;
}

.isyaka-ai-welcome {
    position: absolute;
    z-index: 4;
    inset: 0 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 20px 18px;
    background: #fff;
    pointer-events: none;
}

.isyaka-ai-welcome[hidden] {
    display: none;
}

.isyaka-ai-greeting {
    align-self: flex-start;
    max-width: 92%;
    margin: 0;
    padding: 14px 17px;
    border-radius: 18px;
    background: #f3f3f3;
    color: #171717;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -.01em;
}

.isyaka-ai-starters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-end;
    gap: 9px;
    pointer-events: auto;
}

.isyaka-ai-starter {
    max-width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #dfdfdf;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
    transition:
        background-color .16s ease,
        border-color .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.isyaka-ai-starter:hover {
    background: #f7f7f7;
    border-color: #cfcfcf;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.isyaka-ai-starter:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}


.isyaka-ai-composer-placeholder {
    position: absolute;
    z-index: 6;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 52px;
    padding: 5px 7px 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    color: #a0a0a0;
    pointer-events: none;
}

.isyaka-ai-composer-placeholder[hidden] {
    display: none;
}

.isyaka-ai-composer-placeholder-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.2;
}

.isyaka-ai-composer-placeholder-send {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #111;
    color: #fff;
    opacity: .72;
}

.isyaka-ai-status {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    background: rgba(255, 255, 255, .96);
    color: #404040;
    font-size: 14px;
    line-height: 1.55;
}

.isyaka-ai-status[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .isyaka-ai-launcher {
        right: 16px;
        bottom: 92px;
        width: 54px;
        height: 54px;
    }

    .isyaka-ai-panel {
        inset: 8px;
        width: auto;
        height: auto;
        max-height: none;
        border-radius: 20px;
        transform-origin: bottom right;
    }

    .isyaka-ai-header {
        flex-basis: 60px;
        min-height: 60px;
        padding-left: 14px;
        padding-right: 10px;
    }

    .isyaka-ai-header-action {
        width: 34px;
        height: 34px;
    }

    .isyaka-ai-composer-placeholder {
        left: 8px;
        right: 8px;
        bottom: 7px;
        height: 54px;
        border-radius: 17px;
    }

    .isyaka-ai-welcome {
        bottom: 78px;
        padding: 18px 14px 14px;
        gap: 20px;
    }

    .isyaka-ai-greeting {
        max-width: 96%;
        padding: 13px 15px;
        font-size: 15px;
    }

    .isyaka-ai-starters {
        gap: 8px;
    }

    .isyaka-ai-starter {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 13.5px;
    }
}

@media (max-width: 390px) {
    .isyaka-ai-header-actions {
        gap: 0;
    }

    .isyaka-ai-brand-title {
        font-size: 15px;
    }

    .isyaka-ai-brand-mark {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .isyaka-ai-starter {
        width: 100%;
        border-radius: 16px;
    }
}

@media (max-height: 720px) and (min-width: 601px) {
    .isyaka-ai-panel {
        top: 16px;
        bottom: 16px;
        height: auto;
    }

    .isyaka-ai-welcome {
        padding-top: 16px;
        padding-bottom: 12px;
        gap: 14px;
    }

    .isyaka-ai-greeting {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .isyaka-ai-starters {
        gap: 7px;
    }

    .isyaka-ai-starter {
        min-height: 38px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .isyaka-ai-panel,
    .isyaka-ai-launcher,
    .isyaka-ai-header-action,
    .isyaka-ai-starter {
        transition: none;
    }
}
