.dka-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#dka-root {
    --dka-green: #7CB342;
    --dka-green-dark: #5f8f2e;
    --dka-ink: #172018;
    --dka-muted: #667064;
    --dka-line: #e4eadc;
    --dka-paper: #ffffff;
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

.dka-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px 12px 12px;
    background: var(--dka-green);
    color: #fff;
    box-shadow: 0 12px 30px rgba(92, 122, 46, 0.35);
    cursor: pointer;
}

.dka-launcher:hover,
.dka-launcher:focus-visible {
    background: var(--dka-green-dark);
    outline: 3px solid rgba(124, 179, 66, 0.35);
    outline-offset: 2px;
}

.dka-launcher__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
}

.dka-launcher__label {
    font-weight: 700;
    font-size: 14px;
}

.dka-panel {
    position: fixed;
    right: 22px;
    bottom: 86px;
    z-index: 99991;
    width: min(400px, calc(100vw - 24px));
    height: min(640px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: var(--dka-paper);
    color: var(--dka-ink);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(17, 24, 16, 0.22);
    border: 1px solid rgba(23, 32, 24, 0.06);
}

.dka-panel[hidden] {
    display: none;
}

.dka-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 14px;
    background: #172018;
    color: #fff;
}

.dka-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.dka-header p {
    margin: 3px 0 0;
    color: #c9d4c2;
    font-size: 12px;
}

.dka-header__actions {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.dka-text-btn,
.dka-icon-btn,
.dka-send,
.dka-chip,
.dka-retry,
.dka-more,
.dka-card a {
    font: inherit;
}

.dka-text-btn,
.dka-icon-btn {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.dka-text-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 8px;
}

.dka-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.dka-text-btn:hover,
.dka-icon-btn:hover,
.dka-text-btn:focus-visible,
.dka-icon-btn:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.dka-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(#f7f8f4, #fff);
}

.dka-msg {
    display: flex;
    margin-bottom: 12px;
}

.dka-msg--user {
    justify-content: flex-end;
}

.dka-bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 16px;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.dka-msg--assistant .dka-bubble {
    background: #fff;
    border: 1px solid var(--dka-line);
    border-bottom-left-radius: 6px;
}

.dka-msg--user .dka-bubble {
    background: var(--dka-green);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.dka-msg--error .dka-bubble {
    background: #fff4f2;
    border: 1px solid #f0c8c2;
    color: #7a2e24;
}

.dka-chips,
.dka-msg__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.dka-chip,
.dka-retry,
.dka-more {
    border: 1px solid var(--dka-line);
    background: #fff;
    color: var(--dka-ink);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
}

.dka-chip:hover,
.dka-retry:hover,
.dka-more:hover,
.dka-chip:focus-visible,
.dka-retry:focus-visible,
.dka-more:focus-visible {
    border-color: var(--dka-green);
    outline: none;
}

.dka-typing {
    display: inline-flex;
    gap: 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--dka-line);
    border-radius: 16px;
}

.dka-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dka-green);
    animation: dka-blink 1s infinite ease-in-out;
}

.dka-typing span:nth-child(2) { animation-delay: 0.15s; }
.dka-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dka-blink {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

.dka-cards {
    display: grid;
    gap: 10px;
    margin: -4px 0 12px;
}

.dka-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--dka-line);
    border-radius: 14px;
    overflow: hidden;
}

.dka-card__media {
    background: #eef2e8;
    min-height: 92px;
    display: grid;
    place-items: center;
    color: var(--dka-muted);
    font-size: 12px;
}

.dka-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dka-card__body {
    padding: 8px 10px 10px 0;
}

.dka-card__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 750;
}

.dka-card__price {
    margin: 0 0 4px;
    color: var(--dka-green-dark);
    font-weight: 800;
    font-size: 14px;
}

.dka-card__meta,
.dka-card__status {
    margin: 0;
    color: var(--dka-muted);
    font-size: 12px;
    line-height: 1.4;
}

.dka-card a {
    display: inline-block;
    margin-top: 6px;
    color: var(--dka-green-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.dka-card a:hover,
.dka-card a:focus-visible {
    text-decoration: underline;
}

.dka-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--dka-line);
    background: #fff;
}

.dka-form textarea {
    flex: 1;
    resize: none;
    max-height: 96px;
    border: 1px solid var(--dka-line);
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--dka-ink);
}

.dka-form textarea:focus {
    outline: 2px solid rgba(124, 179, 66, 0.45);
    border-color: var(--dka-green);
}

.dka-send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--dka-green);
    color: #fff;
    cursor: pointer;
}

.dka-send:disabled,
.dka-form textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dka-send:focus-visible {
    outline: 3px solid rgba(124, 179, 66, 0.35);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .dka-launcher__label {
        display: none;
    }

    .dka-launcher {
        padding: 12px;
        right: 14px;
        bottom: 14px;
    }

    .dka-panel {
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
