/* ============================================================
   SHADOWSKINGS — AI ASSISTANT PANEL
   ============================================================ */

.sk-assistant-panel {
    position: relative;
    width: min(760px, 92vw);
    height: min(680px, 82vh);
    margin: 0 auto;
    color: #eadfff;
    font-family: "Cinzel", serif;
}

.sk-assistant-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;

    background:
        radial-gradient(
            circle at top,
            rgba(95, 36, 150, 0.22),
            rgba(8, 5, 15, 0.97) 48%
        );

    border: 1px solid rgba(171, 103, 255, 0.55);
    border-radius: 12px;

    box-shadow:
        0 0 22px rgba(122, 48, 204, 0.35),
        inset 0 0 22px rgba(79, 26, 126, 0.22);
}


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

.sk-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(54, 24, 83, 0.96),
            rgba(19, 10, 31, 0.96)
        );

    border-bottom:
        1px solid rgba(171, 103, 255, 0.38);
}

.sk-assistant-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.sk-assistant-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;

    filter:
        drop-shadow(
            0 0 8px rgba(155, 75, 255, 0.75)
        );
}

.sk-assistant-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: #f0e6ff;
}

.sk-assistant-subtitle {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #a88fc7;
}

.sk-assistant-close {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;

    border:
        1px solid rgba(172, 108, 255, 0.35);
    border-radius: 6px;

    background:
        rgba(13, 7, 22, 0.72);

    color: #d9c6f5;
    font-size: 25px;
    line-height: 30px;

    cursor: pointer;
}

.sk-assistant-close:hover {
    background:
        rgba(96, 41, 143, 0.42);

    color: #ffffff;
}


/* ============================================================
   CONVERSATION
   ============================================================ */

.sk-assistant-conversation {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;

    padding: 22px;

    scrollbar-width: thin;
}

.sk-assistant-welcome {
    max-width: 590px;
    margin: 12px auto 26px;
    text-align: center;
}

.sk-assistant-welcome-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;

    filter:
        drop-shadow(
            0 0 15px rgba(147, 67, 255, 0.62)
        );
}

.sk-assistant-welcome h2 {
    margin: 10px 0 14px;

    font-size: 25px;
    letter-spacing: 0.8px;
    color: #f0e6ff;
}

.sk-assistant-welcome p {
    margin: 10px auto;

    color: #cbbddd;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.sk-assistant-welcome-prompt {
    display: inline-block;

    margin-top: 14px;
    padding: 10px 16px;

    border:
        1px solid rgba(160, 91, 244, 0.35);
    border-radius: 8px;

    background:
        rgba(83, 35, 126, 0.22);

    color: #e6d7fb;
    font-size: 13px;
}


/* ============================================================
   MESSAGES
   ============================================================ */

.sk-assistant-message {
    max-width: 82%;
    margin: 14px 0;
    padding: 12px 14px;

    border-radius: 9px;

    font-family: Arial, sans-serif;
}

.sk-assistant-message-player {
    margin-left: auto;

    background:
        rgba(73, 45, 100, 0.58);

    border:
        1px solid rgba(181, 130, 225, 0.30);
}

.sk-assistant-message-assistant {
    margin-right: auto;

    background:
        rgba(30, 15, 48, 0.88);

    border:
        1px solid rgba(139, 71, 214, 0.42);

    box-shadow:
        0 0 12px rgba(94, 38, 158, 0.12);
}

.sk-assistant-message-label {
    margin-bottom: 6px;

    color: #b99adf;
    font-family: "Cinzel", serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sk-assistant-message-body {
    color: #eee8f5;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}


/* ============================================================
   INPUT
   ============================================================ */

.sk-assistant-input-area {
    display: flex;
    align-items: stretch;
    gap: 10px;

    padding: 14px 16px;

    background:
        rgba(11, 6, 18, 0.96);

    border-top:
        1px solid rgba(171, 103, 255, 0.30);
}

.sk-assistant-input {
    flex: 1 1 auto;
    min-width: 0;
    resize: none;

    padding: 11px 12px;

    border:
        1px solid rgba(158, 93, 225, 0.38);
    border-radius: 7px;

    outline: none;

    background:
        rgba(3, 2, 8, 0.72);

    color: #f0eaff;

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.sk-assistant-input:focus {
    border-color:
        rgba(185, 116, 255, 0.78);

    box-shadow:
        0 0 9px rgba(132, 61, 210, 0.28);
}

.sk-assistant-input::placeholder {
    color: #786c86;
}

.sk-assistant-send {
    min-width: 88px;
    padding: 0 18px;

    border:
        1px solid rgba(190, 124, 255, 0.62);
    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            rgba(104, 47, 158, 0.95),
            rgba(56, 23, 89, 0.95)
        );

    color: #ffffff;

    font-family: "Cinzel", serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;
}

.sk-assistant-send:hover {
    filter: brightness(1.16);
}


/* ============================================================
   STATUS
   ============================================================ */

.sk-assistant-status {
    min-height: 18px;

    padding: 0 17px 8px;

    background:
        rgba(11, 6, 18, 0.96);

    color: #a995bd;

    font-family: Arial, sans-serif;
    font-size: 11px;
}


/* ============================================================
   SMALL SCREENS
   ============================================================ */

@media (max-width: 620px) {

    .sk-assistant-panel {
        width: 96vw;
        height: 84vh;
    }

    .sk-assistant-title {
        font-size: 14px;
    }

    .sk-assistant-subtitle {
        display: none;
    }

    .sk-assistant-logo {
        width: 42px;
        height: 42px;
    }

    .sk-assistant-conversation {
        padding: 14px;
    }

    .sk-assistant-message {
        max-width: 92%;
    }

    .sk-assistant-send {
        min-width: 70px;
        padding: 0 12px;
    }
}


/* ============================================================
   SI ASSISTANT — MAP RETURN BUTTON
   ============================================================ */

.sk-assistant-map {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 0 18px;

    border: 1px solid rgba(151, 69, 220, 0.85);
    border-radius: 11px;

    background:
        linear-gradient(
            180deg,
            rgba(83, 31, 128, 0.96),
            rgba(41, 13, 67, 0.98)
        );

    color: #f2e8ff;

    font-family: "Cinzel", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;

    cursor: pointer;
}

.sk-assistant-map:hover {
    filter: brightness(1.18);
}

.sk-assistant-map:active {
    transform: translateY(1px);
}
