
.wikk-assistant {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wikk-assistant-toggle {
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 35px rgba(0,0,0,.24);
    cursor: pointer;
}

.wikk-assistant-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.wikk-assistant-panel {
    width: min(390px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 90px));
    background: #fff;
    border: 1px solid rgba(17,24,39,.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0,0,0,.30);
}

.wikk-assistant-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 16px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.wikk-assistant-header small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.74);
    line-height: 1.35;
}

#wikkAssistantClose {
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.wikk-assistant-messages {
    padding: 14px;
    height: 310px;
    overflow-y: auto;
    background: #f8fafc;
}

.wikk-msg {
    max-width: 92%;
    padding: 11px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    line-height: 1.42;
    font-size: 14px;
}

.wikk-msg-user {
    margin-left: auto;
    background: #1d4ed8;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.wikk-msg-bot {
    margin-right: auto;
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17,24,39,.08);
    border-bottom-left-radius: 4px;
}

.wikk-assistant-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(17,24,39,.08);
    background: #fff;
}

.wikk-assistant-quick button {
    border: 1px solid rgba(17,24,39,.12);
    background: #f9fafb;
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 13px;
}

.wikk-assistant-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid rgba(17,24,39,.08);
}

.wikk-assistant-form textarea {
    resize: none;
    border: 1px solid rgba(17,24,39,.16);
    border-radius: 12px;
    padding: 10px;
    font: inherit;
    outline: none;
}

.wikk-assistant-form button {
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.wikk-assistant-cta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 11px 12px 13px;
    background: #fff;
    border-top: 1px solid rgba(17,24,39,.08);
}

.wikk-assistant-cta a {
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    color: #111827;
    border: 1px solid rgba(17,24,39,.12);
    border-radius: 12px;
    padding: 8px 6px;
    background: #f9fafb;
}

@media (max-width: 520px) {
    .wikk-assistant {
        right: 12px;
        bottom: 12px;
    }

    .wikk-assistant-panel {
        width: calc(100vw - 24px);
    }

    .wikk-assistant-cta {
        grid-template-columns: 1fr;
    }
}
