/* ─── Phoebee AI — Widget CSS ─────────────────────────────────────────────────
   Floating widget retired. Styles below support the homepage block,
   modal, and shared message components.
   ──────────────────────────────────────────────────────────────────────────── */

.khhw-message {
    max-width: 88%;
    animation: khhw-fadein 0.18s ease;
}

@keyframes khhw-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.khhw-message p {
    margin: 0;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
}

.khhw-bot {
    align-self: flex-start;
}

.khhw-bot p {
    background: #ffffff;
    color: #214E63;
    border-radius: 4px 14px 14px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.khhw-user {
    align-self: flex-end;
}

.khhw-user p {
    background: #439bc0;
    color: #ffffff;
    border-radius: 14px 14px 4px 14px;
}

/* Links inside bot messages */
.khhw-bot p a {
    color: #439bc0;
    text-decoration: underline;
    word-break: break-all;
}

.khhw-bot p a:hover {
    color: #214E63;
}

/* Divider inside bot messages */
.khhw-bot p hr {
    border: none;
    border-top: 1px solid #d0e4ee;
    margin: 8px 0;
}
.khhw-bot p ol,
.khhw-bot p ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

.khhw-bot p li {
    margin-bottom: 3px;
}

/* ─── Typing Indicator ───────────────────────────────────────────────────────── */
#khhw-typing p {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.khhw-dot {
    width: 7px;
    height: 7px;
    background: #439bc0;
    border-radius: 50%;
    display: inline-block;
    animation: khhw-bounce 1.2s infinite;
}

.khhw-dot:nth-child(2) { animation-delay: 0.2s; }
.khhw-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes khhw-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-5px); }
}

/* ─── Input Area ─────────────────────────────────────────────────────────────── */
#khhw-input-area {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #e4eef4;
    background: #ffffff;
    gap: 8px;
    flex-shrink: 0;
}

#khhw-input {
    flex: 1;
    border: 1px solid #d0e4ee;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    color: #214E63;
    outline: none;
    transition: border-color 0.15s;
    background: #f6f9fb;
}

#khhw-input:focus {
    border-color: #439bc0;
    background: #ffffff;
}

#khhw-input::placeholder {
    color: #9ab8c8;
}

#khhw-send {
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

#khhw-send:hover {
    background: #3489ad;
}

#khhw-send:disabled {
    background: #a8cfde;
    cursor: not-allowed;
}

/* ─── Responsive (mobile) ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    #khhw-widget {
        bottom: 0;
        left: 0;
        width: 100%;
    }

    /* Hide the bubble on mobile — widget opens via menu instead */
    #khhw-bubble {
        display: none;
    }

    /* Full-width chat window sitting at bottom of screen */
    #khhw-window {
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 16px 16px 0 0;
        height: 420px;
    }
}

/* ─── Desktop: always stay bottom left ──────────────────────────────────────── */
@media (min-width: 768px) {
    #khhw-widget {
        left: 24px;
    }
}

/* ─── Phoebee Top Nav Icon ───────────────────────────────────────────────────── */
#phoebee-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s;
}

#phoebee-nav-icon:hover {
    opacity: 1;
}
.phoebee-persistent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: #f6f9fb;
    border-top: 1px solid #e4eef4;
}

.phoebee-quick-btn {
    background: #ffffff;
    color: #439bc0;
    border: 1.5px solid #439bc0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.phoebee-quick-btn:hover {
    background: #439bc0;
    color: #ffffff;
}

/* ─── Phoebee Full-Page (Mobile App) ────────────────────────────────────────── */
.phoebee-fullpage {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    background: #f6f9fb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    z-index: 9999;
}

.phoebee-fullpage.phoebee-fullpage--app {
    display: flex;
}

.phoebee-fullpage-header {
    background: #439bc0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phoebee-fullpage-icon { width: 36px; height: 36px; object-fit: contain; }
.phoebee-fullpage-title { color: #ffffff; font-weight: 700; font-size: 16px; }
.phoebee-fullpage-subtitle { color: rgba(255,255,255,0.8); font-size: 12px; }

.phoebee-fullpage-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f6f9fb;
    -webkit-overflow-scrolling: touch;
}

.phoebee-fullpage-actions {
    background: #ffffff;
    border-top: 1px solid #e4eef4;
    border-bottom: 1px solid #e4eef4;
    padding: 8px 12px;
    flex-shrink: 0;
}

.phoebee-fullpage-input-area {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 55px);
    background: #ffffff;
    gap: 10px;
    flex-shrink: 0;
}

.phoebee-fullpage-input-area input {
    flex: 1;
    border: 1px solid #d0e4ee;
    border-radius: 24px;
    padding: 11px 16px;
    font-size: 15px;
    color: #214E63;
    outline: none;
    background: #f6f9fb;
    transition: border-color 0.15s;
    font-family: inherit;
    -webkit-appearance: none;
}

.phoebee-fullpage-input-area input:focus { border-color: #439bc0; background: #ffffff; }
.phoebee-fullpage-input-area input::placeholder { color: #9ab8c8; }

.phoebee-fullpage-input-area button {
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    flex-shrink: 0;
    -webkit-appearance: none;
}

.phoebee-fullpage-input-area button:hover { background: #3489ad; }
.phoebee-fullpage-input-area button:disabled { background: #a8cfde; }

.phoebee-block {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(67,155,192,0.15);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(67,155,192,0.2);
    width: 100%;
}

.phoebee-block-header {
    background: #439bc0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.phoebee-block-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.phoebee-block-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phoebee-block-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phoebee-block-messages {
    padding: 0 14px;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f6f9fb;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.phoebee-block.phoebee-block--has-messages .phoebee-block-messages {
    max-height: 560px;
    padding: 16px 14px;
    overflow-y: auto;
}

.phoebee-block.phoebee-block--has-messages .phoebee-block-messages::-webkit-scrollbar { width: 4px; }
.phoebee-block.phoebee-block--has-messages .phoebee-block-messages::-webkit-scrollbar-track { background: transparent; }
.phoebee-block.phoebee-block--has-messages .phoebee-block-messages::-webkit-scrollbar-thumb { background: #c5d8e4; border-radius: 4px; }

.phoebee-block-input-area {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #e4eef4;
    background: #ffffff;
    gap: 8px;
}

.phoebee-block-input-area input {
    flex: 1;
    border: 1px solid #d0e4ee;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    color: #214E63;
    outline: none;
    background: #f6f9fb;
    transition: border-color 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phoebee-block-input-area input:focus {
    border-color: #439bc0;
    background: #ffffff;
}

.phoebee-block-input-area input::placeholder { color: #9ab8c8; }

.phoebee-block-input-area button {
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phoebee-block-input-area button:hover { background: #3489ad; }
.phoebee-block-input-area button:disabled { background: #a8cfde; cursor: not-allowed; }

/* ─── Phoebee Modal ──────────────────────────────────────────────────────────── */
.phoebee-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33,78,99,0.5);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.phoebee-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 624px;
    height: 75vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    animation: khhw-slideup 0.22s ease;
}

#phoebee-modal .phoebee-block-messages {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-top: 16px;
}

.phoebee-modal-header {
    background: #439bc0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.phoebee-modal-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phoebee-modal-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.phoebee-modal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.phoebee-modal-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#phoebee-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 22px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
}

#phoebee-modal-close:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* ─── Mobile modal full screen ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .phoebee-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .phoebee-modal {
        max-width: 100%;
        width: 100%;
        height: 85vh;
        height: 85dvh;
        max-height: 85vh;
        max-height: 85dvh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
    }
}

/* ─── KK Launch Modal ────────────────────────────────────────────────────────── */
.kk-launch-overlay {
    position: fixed;
    inset: 0;
    background: rgba(33,78,99,0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kk-launch-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: khhw-slideup 0.22s ease;
}

.kk-launch-header {
    background: #439bc0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.kk-launch-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kk-launch-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.kk-launch-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-launch-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#kk-launch-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 22px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.15s;
}

#kk-launch-close:hover { background: rgba(255,255,255,0.15); color: #ffffff; }

/* Views */
.kk-launch-view { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.kk-launch-view.active { display: flex; }

.kk-launch-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Phase pill */
.kk-phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7fb;
    border: 1px solid #d0e8f0;
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 11px;
    color: #4a7a8a;
    margin-bottom: 12px;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-phase-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #439bc0;
    flex-shrink: 0;
}

/* Chat areas */
.kk-launch-chat-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px;
    min-height: 180px;
    max-height: 340px;
}

.kk-launch-chat-area::-webkit-scrollbar { width: 4px; }
.kk-launch-chat-area::-webkit-scrollbar-track { background: transparent; }
.kk-launch-chat-area::-webkit-scrollbar-thumb { background: #c5d8e4; border-radius: 4px; }

/* Messages */
.kk-launch-msg {
    display: flex;
    max-width: 88%;
    animation: khhw-fadein 0.18s ease;
}

.kk-launch-msg--bot  { align-self: flex-start; }
.kk-launch-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.kk-launch-bubble {
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-launch-msg--bot .kk-launch-bubble {
    background: #e8f4f9;
    color: #214E63;
    border-radius: 4px 14px 14px 14px;
}

.kk-launch-msg--user .kk-launch-bubble {
    background: #439bc0;
    color: #ffffff;
    border-radius: 14px 14px 4px 14px;
}

.kk-launch-bubble a { color: #439bc0; text-decoration: underline; }
.kk-launch-msg--user .kk-launch-bubble a { color: rgba(255,255,255,0.9); }
.kk-launch-bubble strong { font-weight: 600; }
.kk-launch-bubble ol, .kk-launch-bubble ul { margin: 4px 0 4px 16px; padding: 0; }
.kk-launch-bubble li { margin-bottom: 2px; }

/* Loading dots */
.kk-launch-loading {
    display: flex;
    gap: 5px;
    padding: 14px 4px;
    align-items: center;
}

/* Context card (Phase 1) */
.kk-ctx-card {
    background: #ffffff;
    border: 1px solid #d0e4ee;
    border-radius: 10px;
    padding: 10px 13px;
    margin-top: 10px;
    font-size: 13px;
}

.kk-ctx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    color: #214E63;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-ctx-row + .kk-ctx-row { border-top: 1px solid #eef4f8; }
.kk-ctx-row span:first-child { color: #7aabb8; font-size: 12px; }

.kk-ctx-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.kk-btn-confirm {
    flex: 1;
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.15s;
}

.kk-btn-confirm:hover { background: #3489ad; }

.kk-btn-edit {
    background: none;
    border: 1px solid #d0e4ee;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: #7aabb8;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.15s, color 0.15s;
}

.kk-btn-edit:hover { border-color: #439bc0; color: #439bc0; }

/* Path selector */
.kk-path-prompt {
    font-size: 14px;
    color: #4a6a7a;
    text-align: center;
    margin: 0 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.kk-path-card {
    border: 1px solid #d0e4ee;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.kk-path-card:hover { border-color: #439bc0; }
.kk-path-card.selected { border: 2px solid #439bc0; }

.kk-path-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e8f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
}

.kk-path-name {
    font-size: 14px;
    font-weight: 600;
    color: #214E63;
    margin: 0 0 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-path-desc {
    font-size: 12px;
    color: #7aabb8;
    margin: 0;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#kk-path-continue {
    width: 100%;
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.15s;
}

#kk-path-continue:hover { background: #3489ad; }

/* Tab bar */
.kk-launch-tab-bar {
    display: flex;
    border-bottom: 1px solid #e4eef4;
    flex-shrink: 0;
}

.kk-launch-tab {
    padding: 10px 18px;
    font-size: 13px;
    color: #7aabb8;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-launch-tab.active {
    color: #439bc0;
    border-bottom-color: #439bc0;
    font-weight: 600;
}

/* Input row */
.kk-launch-input-row {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e4eef4;
    flex-shrink: 0;
    margin-top: 6px;
}

.kk-launch-input-row input {
    flex: 1;
    border: 1px solid #d0e4ee;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    color: #214E63;
    outline: none;
    background: #f6f9fb;
    transition: border-color 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-launch-input-row input:focus { border-color: #439bc0; background: #ffffff; }
.kk-launch-input-row input::placeholder { color: #9ab8c8; }

.kk-launch-input-row button {
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.15s;
    white-space: nowrap;
}

.kk-launch-input-row button:hover { background: #3489ad; }
.kk-launch-input-row button:disabled { background: #a8cfde; cursor: not-allowed; }

/* Submit button */
#kk-launch-submit {
    width: 100%;
    background: #2e7d4f;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.15s;
}

#kk-launch-submit:hover    { background: #235f3c; }
#kk-launch-submit:disabled { background: #7ab89a; cursor: not-allowed; }

/* [kk_launch_button] shortcode */
.kk-launch-btn {
    display: inline-block;
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(67,155,192,0.2);
}

.kk-launch-btn:hover {
    background: #3489ad;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67,155,192,0.3);
}

/* Mobile */
@media (max-width: 600px) {
    .kk-launch-modal {
        max-width: 100%;
        max-height: 100%;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        margin: 0;
    }
    .kk-launch-overlay { align-items: flex-end; padding: 0; }
    .kk-paths { grid-template-columns: 1fr; }
    .kk-launch-chat-area { max-height: 240px; }
}

/* ─── KK Launch Embed ────────────────────────────────────────────────────────── */
.kk-embed-wrap {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(67,155,192,0.2);
    box-shadow: 0 4px 20px rgba(67,155,192,0.12);
    overflow: hidden;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kk-embed-header {
    background: #439bc0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kk-embed-icon { width: 34px; height: 34px; object-fit: contain; }

.kk-embed-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.kk-embed-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
}

.kk-embed-view   { display: none; flex-direction: column; }
.kk-embed-view.active { display: flex; }

.kk-embed-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kk-embed-chat {
    min-height: 220px;
    max-height: 420px;
}

.kk-embed-tab-bar {
    display: flex;
    border-bottom: 1px solid #e4eef4;
    padding: 0 18px;
}

#kk-embed-path-continue {
    width: 100%;
    background: #439bc0;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#kk-embed-path-continue:hover { background: #3489ad; }

#kk-embed-submit {
    width: 100%;
    background: #2e7d4f;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.15s;
    margin-bottom: 10px;
}

#kk-embed-submit:hover    { background: #235f3c; }
#kk-embed-submit:disabled { background: #7ab89a; cursor: not-allowed; }

.kk-embed-path-card {
    border: 1px solid #d0e4ee;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.kk-embed-path-card:hover    { border-color: #439bc0; }
.kk-embed-path-card.selected { border: 2px solid #439bc0; }
